0

I'm launching Android app from browser using intent. How can I pass parameter from browser to mobile app and how can I retrieve that parameter value in Android app. I'm using jQuery Mobile and PhoneGap.

aygul
  • 3,227
  • 12
  • 38
  • 42
Bikash Ranjan
  • 136
  • 1
  • 12

1 Answers1

0

with Intent, can not it use putExtra and its correspond API to get some customized data? see Intent::putExtra

RyanShao
  • 429
  • 2
  • 9
  • Actually I am using window.location in browser file to redirect/launch Mobile App.In window.location I am giving intent value like window.location=testapp://site.com?param1=value1.Now I want to retrieve this parameter in Mobile App.Help in this scenario. – Bikash Ranjan Aug 12 '15 at 11:40
  • sorry, i did not experience this before. i guess maybe you can getIntent in onResume(or onCreate) and try to see whether it is passed in by the data of intent( you can get it by getIntent().getData()) – RyanShao Aug 13 '15 at 05:11
  • Actually I want to use authentication using external url in my Android Mobile App.I am opening that URL in Mobile browser.After successfully login, I want to set a flag in Mobile app.Can you tell me how to do this ? – Bikash Ranjan Aug 14 '15 at 09:40
  • can you please check whether [this](http://stackoverflow.com/questions/5123955/is-there-a-way-to-pass-a-message-from-an-android-browser-to-an-app) is what you need? – RyanShao Aug 17 '15 at 02:30