1

I would like to launch my custom app from web browser. I have found the answer to this question here: Make a link in the Android browser start up my app?

Now I would like to return some data from my custom application back to the web page that opened it and then POST it to the server.

Any ideas how to do this?

Matra

Community
  • 1
  • 1
matra
  • 9,763
  • 4
  • 20
  • 31

1 Answers1

0

That is not possible, sorry.

You are welcome to have your custom application load some other Web page in the browser using an ACTION_VIEW Intent. Or, you can integrate WebView into your application and have much greater control.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
  • 1) What if I make my local application a "local web server" that listen to requests and send a HTTP request from browser to my app which would then in turn return response to the server? 2) Is it possible that application GUI will pop up over the browser gui when it receives such a request? – matra Apr 20 '12 at 04:54
  • @matra: 1) This could work but is a big-time security hole, because any app on the device can make HTTP requests of your app, as can any app on any other device on the local network segment. 2) No, that would only happen if your Web page had a link that triggered some separate app's UI, not if it loaded a fresh HTML page or used AJAX-style HTTP requests. – CommonsWare Apr 20 '12 at 11:05