I want to give the user the option to import the his WhatsApp chats in my app. The chats can be exported in WhatsApp as Txt-File sent in an email as attachment with the option "Send chat by email". The problem is, I don't know how to receive the Intent WhatsApp is sending to get avaivable email apps. The java code is already finished, but in the AndroidManifest.xml file I dont know what to write to be known as email app.
Edit
I don't want to send E-Mails, but I want that the user has the possibility to import Chat-Data for the chatbot App I am programming.
In order to list your app as an option to receive Intent.ACTION_SEND, you have to do:
1: Register your app as an e-Mail client, you can use Gmail API from Google to send and receive e-Mails.
2: Use intent-filter in your Mainifest.xml as
<action android:name="android.intent.action.SEND" />
Simple tutorial at: Android Developer | Receiveing simple data
Since WhatsApp sends chats as a .txt attachment, so you need to register for that data-type in your intent-filter too.
Related
Im just wondering, it is possible send sms to gmail without internet and action send like gmail. i want is when user input the data . then click the "SEND" button
it will automatically send. skip the action using like GMAIL,etc.
then when receive data from gmail, it will automatically generated/inserted from my excel.
I need is SMS only consume to send data, not INTERNET.
You cant sorry:(
Email work on the internet that's the whole point :P
You could do it if your on an Intranet having your own email network, but that wont work with gmail because you have to talk to that guy who isn't really present there, like making a call on a landline unless there is a connection between the two of you, you cant make the call :)
I am building an Android app and i am using Firebase as the database to store users and more. My requirement is that i need users to click on a button and send notifications to other users(typically they will be 2-3 users). When other users receive the notification they should have the option to "accept" it or "reject" the request. If they click to accept it the sender of the notification should get notified (just a notification) as well as the admin users.
I have found online several options on how to send notifications with FCM or using a third party server but the tricky part that i haven't found is how will they accept or reject a notification? Has anyone done something similar or can someone direct me to a solution that would satisfy this requirement(accept and reject a notification)?
My idea: have an hook to force Android to call a function of my App before an SMS will be sent.
What I want to do is to ask the user (that wrote the SMS using an arbitrary App or the standard App) if he wants to send the SMS using GSM (= normal way) or an other provider over Internet.
Is it possible? I found some information about ContentObserver, but I'm not sure how I can cancel the send of the "normal GSM send" after I sent the SMS via Internet...
Thanks for any help!
Luca
There is no such hook available to call your app function before sending the SMS. You may have to customise Android framework to achieve this.
I'm a starter in Android Programming, and I need some API/algorithm by which I can invoke the "email conversation" in WhatsApp without opening WhatsApp itself.
Searched WhatsApp FAQ, they give whatsapp://send?text= as the code to send text messages without actually opening the app.
Is there some way to do the same task for email conversation?
Im trying to make a simple app (just for learning sake) that will be able to send and receive emails from my own server. I don't have a problem sending emails from my app, my problem is:
How do you receive push notifications from the email server
Have the app check inbox, refresh the inbox list
I have tried searching for this, but have found nothing.
Thanks for your help
C2DM does push notifications, depending on your server. Search stackoverflow for it.
The app can check the inbox with whatever API is available to get the server's status. Even HTTP is possible.
The SampleSyncAdapter sample app is an example of using a sync adapter to regularly synchronize data between the server and the device, but you can use the same idea for download-only.