How to communicate between Android web browser and my custom app - android

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

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.

Related

is it possible to open a web browser from my application without showing the URL?

can somebody tell how to open a web browser from android app without showing url on the web browser. I don't want people to see url on the web browser which is opened via my app. your suggestions will be appreciated.
If you don't want show link to user - try to use WebView. This is the simpliest solution.
You can't change browsers behaviour because it's other apps =( So you can't hide your link

How android application and web application working?

I'm a little confused because I couldn't understand how android application working at the same time with web application . for example I have a web site and I wanna have a android app for my website and how can i programming at the same time , can i build my android app with php ?? this is the main question i have and i don't understand what i should do and how web site and android app working . for example Amazon has a android and ios app at the same and Amazon has a website , how those thing working together ???
You can build a webview app that is app where you can display HTML with Css and maybe also JS.
That is what google said about webview app:
By default, a WebView provides no browser-like widgets, does not enable JavaScript and web page errors are ignored. If your goal is only to display some HTML as a part of your UI, this is probably fine; the user won't need to interact with the web page beyond reading it, and the web page won't need to interact with the user. If you actually want a full-blown web browser, then you probably want to invoke the Browser application with a URL Intent rather than show it with a WebView.
You can find more information about a webview app is here: https://developer.android.com/reference/android/webkit/WebView.html
If you have any other questions about it feel free to ask.

Integrate a browser into an android app

I am developing an app that latest news from different online pages, magazines etc. In the app I only display the title, source and short description and when a news is clicked it opens on a browser to read the content.
What I want to do is to embed a kind of browser in the app , and when a news is clicked to be open inside the app. For example the links on Facebook app are opened inside the app.
I know how to use a WebView, and how to load a link in a `WebView, but I don't know if this is the right way.
Is there a library or some other way in order to provide the same output.
Web view control is generally used to open any URL within your application. Therefore you don't have to move to the other application like inbuilt browser, or chrome etc.
As Documentation says :
If you want to deliver a web application (or just a web page) as a part of a client application, you can do it using WebView.

I want to create a downloadable bookmark in the Android market

I currently have a web app already and I would like to create a bookmark that can be downloaded from the android marketplace (and app store if possible) and it would redirect the user to my web app. I want to know if this is possible and if so how can it be done?
You can build your own webview app shell around your website:
http://developer.android.com/guide/webapps/webview.html
Or you can have your app simply launch the default browser with your specific url:
Sending an Intent to browser to open specific URL
If you use PhoneGap, you can do an iphone app at the same time..

How to call android application from web browser

I want to call android application on clicking of button on some website from mobile.
Suppose I am opening one url on android browser and I want to call my application on clicking on button provided by that site. How to do that??
Suppose we are using browser other than Chrome then is it allowing??
If you link to your application as "myapp://foo/bar", can't you use some sort of intent filter to start your application.
I mean, if you press a youtube link in the browser it asks if you want to complete the action with the YouTube app or the browser.
I have seen similar examples regarding Google Maps links (which would open in either browser, google maps(?) or GeoBeagle).
Please take a look at the WebViewDemo. Javascript code in the web page can call into your Activity. As well as the other way around.
You cannot... if the site is being browsed in the default browser (Chrome).
If you already have an application that embeds the WebView, then you can do some bit of handling of - mouse clicks, window alerts, navigation etc. Otherwise, not!

Categories

Resources