Launch Android Default Email application through btn click - android

I posted this query here, but as usual, noone knows / no replies
http://www.anddev.org/viewtopic.php?p=41513#41513
How can I launch the android default mail application through the click of a button in my code?
I would also like to know, how this can be done to launch the contacts list also.
Any help in this regard is appreciated,
Regards,
Rony

How can I launch the android default mail application through the click of a button in my code?
Use an ACTION_SEND Intent.
(BTW, I apologize for the formatting of that blog post -- AndroidGuys keeps changing hosting providers, which screws up my posts)
I would also like to know, how this can be done to launch the contacts list also.
Use an ACTION_PICK Intent.

Related

How to pass data to the website opened from android app

I Want to open a site from an app and pass data from that app to that website.Like if we open google page from my app,the searching word should be passed from the app which is nothing but auto-filling.Can anybody please suggest
Thanks,in advance
Use Intent to pass data from one app to an another app.
Go through this http://developer.android.com/reference/android/content/Intent.html link for more info.
In your case, i guess implicit intents would be a better choice.

How do I know which application is selected by user in Sharing Intent in android

I have used Sharing Intent in my application so that user can share some content from my app using Facebook, Twitter, Gmail etc. I have successfully done this but my problem is that I just want to know that which application is get selected by user from Intent Chooser.
I have gone through some examples and questions but not able to find any helpful answer so if anyone can help me to sort out this it would be very helpful for me.
Any help would be appreciable, thanks in advance.
clickclickclack has an example implementation of how you can intercept the ACTION_SEND intent and choose what ends up happening. You can modify this sample for your situation.

Is it possible to override an apps built-in activity with your own?

Specifically, is it possible for me to override the email view in gmail, so that when the user clicks on an email in their inbox it will ask them whether they want to open the email in gmail or my app?
It depends on how the gmail app opens the email. It looks to me like it gets opened in a fragment, but you can check the source. Check here how to get it. I think the gmail app source should be included. If they open it in a separate Activity with an IntentFilter, then you can register your own activity for it. I think your chances are not that good, though...
Yes it is, you just need to find the right category to
add in manifest besides LAUNCHER and MAIN.
It could be Catergory.EMAIL, but do not know.
Would like to search it for you but am currently on my phone which isnt suited for googling around.
Edit:
Nevermimd, misread your question :-)

Lauch my application Intent from android contact details

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.

Android email trouble

I gave up the task of sending a background email...i've tried a lot of things but none of them seems to work.
I'm working for my dad's delivery restaurant. My app is supposed to send an email to our servers containing the order of the user.
I tried to send an email after pressing a button (without the gmail interface), directly from my activity. I wasn't able to achieve this, so i would like to ask you any other way to do something like this.
If there's no way, i'm thinking about using the default gmail interface. In this case i'd like to know if there's any option to avoid the user being able to modify the email content, adress and subject, just look it, and press send button.
Thank you.

Categories

Resources