Nemo
Nemo

Reputation: 1079

Launching android application from Email

Is there any way to launch android application from Email, without using http/https ?

Upvotes: 1

Views: 106

Answers (2)

zmbq
zmbq

Reputation: 39013

You could use a custom protocol, and install a custom handler in your app. Check this out. In this example, if your mail contains a link to foo:do_something, clicking on it would open the app.

According to this, the way around it is to leave HTTP URLs in your email, and have a webserver transform them into your custom protocol. This is fine if you control the emails.

I don't know if it will work by simply returning a 301 or 302 response - you should try it.

Upvotes: 1

Nikhil Dinesh
Nikhil Dinesh

Reputation: 3409

You need to send your email in HTML, with your link in an tag:

<a href='myscheme://myhost?data=whatever'>Launch App

and before that you have to add this in the manifest file

<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="ace" android:host="samuel"/>
</intent-filter>

while clicking on the link it will prompt you to complete your action by, then select your app from that.

Thanks.

Upvotes: 0

Related Questions