I want to add a new menu or context menu item to existing applications like the Phone and Contacts.
For example, in the contact list, select a contact then you see "Send picture to this person" in the menu. Or from the phone app, while talking to someone, you see a button that says "Mark this call for follow-up" or anything like this.
I've looked at the source code but couldn't figure out how to do it.
The answer is: this cannot be done unless I write a modified OS and install on a rooted phone.
Related
I would add custom action into system contact detail of Android like Viber (see attached screenshot) and other messaging apps do.
When user clicks on such custom action, my app will handle. Any help?
I doubt it is as easy as it sounds. From what I see you need to create a new Account on the device to achieve something like this.
Is there a way I can control what contact list and messages show? I want to make an app that if enabled will hide certain contacts or messages from certain people. I am not sure of this is doable
Please let me know if this can be done programmatically. Please note that I am referring to the default contact/messages APP that comes with android and I want to be able to control what it shows from my app
Thank you
Please note that I am referring to the default contact/messages APP that comes with android and I want to be able to control what it shows from my app
Fortunately, this is not possible, except by modifying the actual data, as noted in a comment on your question. You cannot hack into other apps like some script kiddie.
Note that, due to synchronization, deleting contacts may wind up deleting them from an upstream data source. The user may not appreciate this.
You are welcome to build your own contact app that maintains its own filtered list of contacts.
I want to lauch my application Intent from android contact details, like Whatsapp does.
I mean that when you go to native contacts application and open a contact's details you should see, among the details shown, an action to be performed by my own application.
This is possible beacause Whatsapp does it.
Can you help me?
Please.
Yes, I can help you, but you probably won't like the answer.
Technically, you can respond to a click in the native contacts application, by having an intent filter that catches the outgoing intent from "contacts". The problem is that the Contacts app doesn't publish the names of the outgoing Intents. You have to look for them yourself in the Android Open Source Project.
Also, you can't add anything that the Contacts app doesn't already do. The Contacts app doesn't support that.
You can write your own version of the Contacts app and provide the ability to attach any action you want.
I have a contact picker in my application that keeps crashing when a facebook contact is selected. I won't have the code I'm using to open the picker in front of me, but I believe I'm accessing the contacts through a call similar to this:
new Intent(Intent.ACTION_PICK, People.CONTENT_URI)
Does anyone have experience with this?
i wish i had an answer for you but i posted 2 similar questions without any good answers. seems like a totally reasonable question and easy to do in most other dev environments (im actually a c# developer) but android has got me stuck on this. i think i may just have to write my "own contact picker" so that i can test for the fact that the contact has a number before adding them to the picker list programmatically.
anyways, my questions are here:
How do get the android sdk contact picker to give me just phone results and not all my twitter followers
how do i get startActivityForResult() to bring up just a list of telephone contacts (like when i click on the "People" icon) using the android sdk?
in my app i am testing that the phone gets returned from the picked contact before trying to send it a message (so mine doesnt crash), but i dont want the user to have to see a "that contact doesnt have a number" message if they dont have to.
i found this too:
http://mobile.dzone.com/news/contacts-api-20-and-above
while it DOESNT show you how to filter the contact list, it does show how to programmatically create a list that has only contacts with numbers. write back on my questions if you find anything that could be useful, thanks!
Please see the requirement below.
For instance, take Astro browser as a template. You might have seen context menu (with menu options such as Open as, Edit, Details and Send), popping up once an item in the list is selected. I want to implement a similar context menu, with different options, when user taps an email attachment irrespective of email clients. Ideally an option would be 'send via bluetooth', allowing the user to send the attachment straight away.
I looked for suitable APIs. However, there isn't any. This made me think about native programming. I am pretty new to those stuffs.
Could anyone throw some inputs on how to proceed?
Thanks in advance!
I want to implement a similar context menu, with different options, when user taps an email attachment irrespective of email clients.
That is not possible, sorry. You are welcome to implement your own mail client with your own context menu, though.