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..
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.
In my app I want to send data in string to another device.
What i have now: sending data via QR-code with help of installed messengers (user can pick any like skype).
But it has a limit - nearly 4000 chars.
To clarify: I want to make a system, that can send some info on any distance in some way and receive and parse it next.
Any ideas?
I think you should create a .txt file with that text and you can share it with any messenger.
I think setting up the server is the best solution according to me. Moreover, you can use Firebase database or firebase storage to store your images or stirng. This will allow you to fetch any type to data from anywhere in the world
I am implementing a temperature sensing system project. I want to write a data on file and in temperature field if it exceed a certain temp then I want to send a mail to a user automatically. How can i do it?
These are the links which will help you in sending email directlty from your android app-
Link 1
Link 2
How would you beam a contact using your own app (and using Android Beam) to another device and have it saved in their contact list (i.e. the default contacts app). The contact on the sending device will be provided by the ContactsContract provider.
Preferably I don't want to have the other device running my app. The built-in contacts app (Android's default app) can beam and receive contacts. So it should be possible to beam a contact using a custom app to the built-in contacts app.
The answers to this question suggest that it's possible and that you can use the VCARD format.
Currently, my app will search for a contact by phone number, then display it in a new activity (which is the built-in contacts app). See below.
Uri uri = Uri.fromParts("tel", number.getText().toString(), "");
Log.d("ContactPicker", uri.toString());
startActivity(new Intent(ContactsContract.Intents.SHOW_OR_CREATE_CONTACT, uri));
// Example log message for the number (123)-123-1234 is "tel:(123)%20123-1234"
I'd prefer to do it this way, but don't think it's possible because I can't return the contact that was found (or the contact that was created if no existing one was found). And I need that information if I want to beam that specific contact.
I'll probably need to query all contacts, find the contact I'm looking for and save its ID.
Note: I'm using API 14
Edit
I made a proof of concept app that does this: https://github.com/dideler/HiFive
The app might be buggy. It's not maintained, but pull requests are welcome.
Yes, vCard is the way to go. It is the format that the built-in Contacts/People app will pick up. It is also the format that the app uses to store its own data, and I believe.
Can you please help me write an app which on tapping an NFC sticker write data such as Name, Mobile and Email. Once user reads the NFC it should open the save to contacts option with all data pre-filled in.
I am using NDEF plain/text format. Am I headed in the right direction ?
Cheers,
Ishwar
There is no real need to write an app for that. When tapping an NFC tag with an NDEF message with the MIME type "text/vcard" and payload data formatted according to the vCard standard, the vCard data will automatically be imported into the contacts app.