简体   繁体   中英

How to add a friend in an Android App?

In my phone contact book, When I click on any of the contact, it displays the contact name and the phone number in the logcat, which are passed to the server as parameters of a POST call. What I want is, the moment I click on any contact, it should be added in my friend list as well.

Now, clicking on contact, gives me the name and number, how do I display this name in the form of a picture, so that the user can see that a friend has been added in his friend list.

Just to make my question more clear, when someone doesn't have a profile picture on facebook, and when you add this person as a friend, his name is displayed along with the image of human form. I want to achieve this in my App.

在您的图形对象中存储一个虚拟图像,如果用户没有照片,则只需使用该虚拟图像即可。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM