How to display contact name in MIT App Inventor - android

Could you help me to find out how I will get and display contact name.
I am able to get and display the contact number only, but what I need is to get the data of contact name via contact number saved on the phone. This is for my school project purposes.
I am using MIT App inventor. What should I do?
Here is a screenshot of my blocks

The texting component does not provide that information. As you can see, you can only get the number and the message text.
To get the contact name, you could use the Read Contact Extension by Andres Daniel. Note: this is a paid extension.
For a list of available extensions, see https://puravidaapps.com/extensions.php

Related

How to get last call from/to contact in android

I am trying to retrieve some contacts info. by now what i am using is in this style to get contact's name, phone, organization and email.
{ContactsContract.CommonDataKinds.Phone.NUMBER}
But i have not found a similar simple way to get the last call to/from contact (last time contacted, if you want) so i would appreciate any help
thank you all

Custom Contacts List in Android

I am looking to build a local Contacts list in Android. The user selects, say 3 contacts, from the address book and the code needs to save this list locally. The list should include Contact name, mobile number and email address. The user should also be able to edit this list. I am new to Android and struggling to get a solution for this.
The app I am building needs a user to create a local contacts list. I need to be able to extract the full contacts list from the Address Book and then the user gets to choose a limited number of contacts which get saved for later retrieval/modifications.
try Retrieving a List of Contacts in Android Developer.
This link may helps you to retrive the contact list.
Replace book objects with contact objects in the following tutorial and it might be useful...
http://stirfriedcode.blogspot.jp/2013/11/getting-specific-data-from-sqlite.html
I tried a new workaround and adapter-free solution . It's worth to have a look at :
https://github.com/draxdave/ConstraintAccordion

Make changes to contacts

I'm making android app that tells you the operator's name of your contact's number.
Is there a way to put a label containing the name of the operator next to every number directly in the contacts list?
You will need to create your own sync provider and your own RawContacts table. Fill it up with name, phone number and the data you need (e.g., the operator name). Not an easy. task There's a very nice post with lots of details here:
http://www.c99.org/2010/01/23/writing-an-android-sync-provider-part-1/
http://www.c99.org/2010/01/23/writing-an-android-sync-provider-part-2/
There's an example in the android Technical Resources pages: http://developer.android.com/resources/samples/SampleSyncAdapter/index.html

Insert contacts Last Name using Intent android

Google should really document their contacts API, its really irritating to find out how to insert specific details.
Anyways,
I want to send following contact details to Contact native application of android:
Name
Last Name [Family Name]
Street Address
City
State
Zip Code
Contact Phone no.
I have figured out that Family name is stored in ContactsContract.CommonDataKinds.StructuredName.FAMILY_NAME
Anyhelp will really be appreciated. And if you know any other columns insertion beyond these mentioned. I am ready to buy it. Only condition is it should use ContactsContract i.e. above android 2.1 API Level 5
Thankx :)
To set the name, your code would be like :
ConactsIntent.putExtra(ContactsContract.Intents.Insert.NAME, firstName);
Try Adding a space in between first name and the last name.
ConactsIntent.putExtra(ContactsContract.Intents.Insert.NAME, firstName+" "+lastName);
ContactsContract.CommonDataKinds.StructuredPostal.STREET
ContactsContract.CommonDataKinds.StructuredPostal.CITY
ContactsContract.CommonDataKinds.StructuredPostal.REGION
ContactsContract.CommonDataKinds.StructuredPostal.POSTCODE
ContactsContract.CommonDataKinds.Phone.NUMBER
You'll find all of them here.

vcard manager in android

I want to make VCard manager in android for 1.5 and above . This application will be able to perform following functions:
1 Send and receive contact . I want that when i send a contact to any mobile it should get the save option to save the contact and if some send me a business card then i should be able to save it in my contacts.
Can you please suggest me how to do it.
Is there any particular format for sending a VCard . For eg in nokia phones we are able to send a contact and its details(email etc) in form of business card and the other person can save it .
Can the same thing be achieved in android ?
Regards
Gaurav Gupta
# Keenora Fluffball
HI i am able to fetch the contacts details and able to send it in the format specified by you.. when i receive vcard in that format i want that i should get a save to contacts option. Though i can do this by using broad cast receiver. if a message contains text like BEGIN:VCARD
BEGIN:VCARD
VERSION:2.1
N:Gaurav;TEL;PREF9780898201
END:VCARD
But what about the other phones whether they will respond to it like in nokia we get popup business card received.
I want it to work on all phones. whether it is nokia or android.
Please suggest..

Categories

Resources