How To Make Launch Of Application
I am working on one application,What i am trying to do is first user will register from my app,after successful registration,one confirmation link will get in gmail,now from that m
Solution 1:
you must do some changes your manifest. Do changes in launcher or default activity like below:
<activityandroid:name=".MainActivity"android:configChanges="keyboardHidden|orientation|keyboard|screenSize"android:windowSoftInputMode="stateHidden"><intent-filter><actionandroid:name="android.intent.action.VIEW" /><categoryandroid:name="android.intent.category.BROWSABLE" /><categoryandroid:name="android.intent.category.DEFAULT" /><dataandroid:host="yoursitedomain.com"android:scheme="http" /><dataandroid:host="www.yoursitedomain.com"android:scheme="http" /></intent-filter></activity>
BROWSABLE and data tags help you.
Solution 2:
Yes it possible but the logic is a bit tricky.
Prerequisite:
Google Cloud Messaging (GCM)
Any back-end running in the
cloud
.
The idea here is to trigger the GCM
via the link you send in the email.
When user clicks the link your web back-end should kick/trigger the GCM
, then the GCM
will open your app for you.
Solution 3:
JavaScript can call android from webView
.
If you can show that email in your own webView
.
You can programmatically call Android Activity.
I was call activity, function, dialog
from webView
.
Post a Comment for "How To Make Launch Of Application"