Android phone not displaying SMS sender ID - android

My Android phone does not show SMS sender ID, for example if one of the friends from my contact list, texts me, my phone will not show the name of the sender (which is saved in my contact list), it just shows the phone number of the sender. But when they call me, my phone shows the caller ID name (as saved in my contact list). Any help fixing this issue will be appreciated.

See if your App has necessary permission
Or
Delete the App data/ reinstall it
Or
Try some other messaging app
Or
Reset your phone

I fixed it. In settings, search for Sync (google contact sync), enable it. That will fix the problem.

Related

how to check if a phone number is valid whatsapp number in Android?

so I have an edit text that will be used as a view to get phone number from user, say if the phone number is +6123456789 , I want to check if this number has whatsapp number or not,i want to avoid the user to input fake whatsapp number, how to do that ?
Update (Nov 2022):
Whatsapp are repurposing the contacts node starting in v2.43 to no longer provide status information about a phone number. Regardless of whether a user has WhatsApp, it will always return valid for status in the response. For more information see official docs
original answer:
You must have: Facebook Whatsapp Business Api for contacts check
Once you have a valid business account you could then query the Contact. You will get all the details in the documentation.
Hope it works for you!
You can try this service https://watverifyapi.live
It allows you to verify multiple whatsapp number at a time.

how to add register user contacts in android app same as whatsapp?

I want to add contact list of registered user in my android app.
for eg. many user registered to whatsapp? when we install it then all save contacts shown in whats up contact list.How it will happened.I am new in android development please give me solution.
Get all contacts from the device
Send to your server
Compare with your list of registered users (from your DB)
Return back the registered list of users to that device
List as you wish in your app

android check if a contact installed an app android (like whatsapp)

I want to let my app scan the users contactlist , and display the name of the contacts who also installed the app.
I have no idea where to begin with this . so if someone could help me getting started , that would be apreciated.
grtz
You will need to research ContentResolver because you will have to query the database containing the contacts. To do these queries, you will need the URI and column/header names for contacts db which can be found in the Contacts class.
You will also need users to register that they have your app on your own servers and the registration will need a piece of information about the user that other users would have in their contacts (the users phone number, email address, etc).
You will then need to query a few users at a time from the users contacts for this piece of information (using the ContentResolver and Contacts class), pass it to your server (as text) where it will check if they are registered, then send a message back to initial user (and possibly the match) that you found a match.
That's where you should start, and end :)
Note, you will need these permissions in the Manifest file:
android.permission.INTERNET
android.permission.READ_CONTACTS
First of all, welcome to StackOverflow. StackOverflow is for programming questions. As is such, a post asking for help should always provide a description of what you have already tried. If you haven't tried anything yet, I highly encourage you to try something, and post when you encounter a problem.
As your question stands now, we don't know what the problem is. Are you having problems scanning a contact list? Or are you having problems trying to figure out if another user has installed the app?
That being said, you will have to maintain a database for your app containing a list of people who have installed your app. When your app is launched on one device, do whatever you need to do to register the user in your database. Due to the nature of a "contact," one person's phone may only have their phone number, email address, or even just a name. This is of course something you will have to deal with in your implementation.

How do I get Contact number + name when app is launched from 'complete action using (sms app)' screen?

I have recently discovered how to launch my sms app from the 'Complete Action Using' screen when selecting send sms from within the devices main contacts screen,
but I am having difficulty taking any details from the contact that I selected I want to send the message to, and placing those details (Phone number & Recipient name) into an edit text box,
If anyone could possibly tell me how to make my app take the recipients details on startup and place them in the appropriate EditText/TextView boxes I would be very appreciative thanx in advanced.
PS, I'm not sure if this matters but I'll mention anyway, my app is made to work with Android 2.1+ so I aren't to worried about pre-2.1 compatability.
Ahh, sooo to get the Phone number I have used the following code
String phoneNumber = getIntent().getDataString();
But I'm still struggling to find out how to get the selected contacts name :\

Phantom Contact Account Appearing - Android

I am writing an app that allows the user to select from a list of names and then add one of the names (with phone number, etc) to their contacts. When I retrieve my phone's list of Contact Accounts, I am getting 3 results: "Phone", "a000000229aa3e....", "Gmail".
The center result, "a000000229aa3e...." is not an account that I have setup or appears anywhere else on my phone. This also does not appear in the emulator.
My coworker ran it on hit Droid (original Droid) and did not get the odd account. I am running it on a Droid X.
Does anyone know where this Contact Group is coming from? Is there something I need to do to filter this out?
I was able to get the name and type for the odd contact account:
Account Name: a00000229aa3e5-8877431712057062230#random.svcmot.com
Account Type: com.motorola.blur.service.bsutils.MOTHER_USER_CREDS_TYPE
From what I could gather, MOTHER_USER_CREDS_TYPE indicates some sort of Motorola/Provider created account... I ended up filtering this out with !(mAccounts.get(i).getType().toString().contains("MOTHER_USER_CREDS_TYPE")) - I don't know if this will hold up across all devices but it fixed my problem, for the moment.
I don't know all that much about Android apps, but is your phone made by Motorola? or was your previous phone made by Motorola and you copied settings across?
If so it could be a default account, can you see this account when not using your application?

Categories

Resources