We're doing an app, where the user can send a MMS, and we would like to be able to extract the phone number from the current SMS/MMS (if one is open) and reapply it, so we don't delete the recipient when inserting the image...
So is there any way for us to access this info, so we can set it with:
picMessageIntent.putExtra("address", new String("here we want the number"));
Related
Short: Is there any way to send phone number of unsaved contacts in telegram?
Long: I need to send unsaved contact to telegram bot like 20 times a day.
I know, than I can open phone app > go to "recent" tab > click on unsaved phone number > copy it > switch back to telegram > paste it. Is there any way to send it automatically or simplify this process?
I am not asking you about fully working program. Just tell if it is possible or give me ideas.
So far, I found that it is possible to send my phone number to telegram bot via API. But can't find a way to send unsaved contact.
Also, telegram has built-in feature to send contacts, but it works only with telegram contacts, not with unsaved phone numbers.
So far, I came up with using auto clicker.
This may help you:
My phone is Android device. I am using default Samsung phone app. And I have full control over that telegram bot.
Links:
Telegram API
Telegram API #2
Telegram API #3
Example of unsaved phone number in contacts app
You can send contacts using a code like below when you program in Telegram Bot API:
await Bot.SendContactAsync(update.Message.Chat.Id, Phone_Number, "First_Name", "Last_Name");
Here inside your own app (which could be telegram android bot) you can access your phone's call log and replace the Phone Number (which is a string) with phone numbers that your bot extracts locally.
By the way, Last Name is optional in the code that I mentioned.
I have my app's icon showing up against a Contact in the Contacts app. When I press the icon, I would like to send the phone number of the contact to my app while launching it. Where do I specify the details and pass them as Extras ? Appreciate your help.
As of now, I retrieve the URI of the Contact, get the ContactID and use that to get my App-specific information that is stored for my App's custom MimeType. If I could get a way to send the information (username) while the App icon is clicked, I could save on a bit of processing.
I have a app which takes all the contacts from phone book and check them in my server to check if they are present or not. For which I normally take all the phone numbers each time and check for the sync.
What I want to know if there is any key which is attached to a contact item and we can change with our value so we dont have to send all numbers to server each time, we will just send those numbers which do not have value set by us. In this way we can differentiate the synced and unsynced numbers?
I have developed an android application which now I want to extend so as it can send text messages.
Most probably I will be able to find documentation on how to send a text message, but what I am looking for is something I don't know how to do a research on it.
There are two types of text messages you can receive.
One type is from a contact you already know, hence you will see the contact name.
Second type is from a contact you don't know. And, depending on the contact, you will either see a mobile number or a name (eg Google).
My goal is to extend my android application to send a text message in a way that the recipient will see a name as sender (eg Google) and not a mobile number.
I cannot extend my application to use 3G to communicate with a server and send the sms through the server nor I can use an online service which is going to send the sms.
I have to either send the text message from the android application directly or send an sms to an sms service to forward the text message to the recipient.
Is this possible to do?
I would like to have a submit button send the content of a related form directly to a phone number via SMS. However, the phone number should be private. Can the number be encoded?
Your submit button's onClick handler needs to do something like this:
Go through all relevant views in your activity and fetch the current values.
Create a text string from the values.
Create a SMS message with the text string as its message body and send to your server.
Use android.telephony.SmsManager to send SMS messages. Be aware that your app needs special permissions to do this.
Here is a tutorial that shows how to do all of this: http://mobiforge.com/developing/story/sms-messaging-android.