Integrate a browser into an android app - android

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.

Related

Run 2 or more applications inside our third android based application

I want to executive/run other pre-installed android based application inside my new developed application. For example I want to run what's app, Facebook, and Skype at the same time within my application.
I am analyzing about the android containers in which application can be load and execute. Like we used WebView container to load website.
Please suggest for the same
You should use Deep Links or better Dynamic Links - https://firebase.google.com/docs/dynamic-links/android/receive
How it works? You have 2 buttons in your App. On click on them you will open needed app or open it page on Play Market (or your own web site or something else, because you can config it via Dynamic Links).

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.

Mobile App is not able to show a PDF that is stored on Web Server

My team works on a Mobile application, as well as a web application. The mobile apps are about 80% web views that live on the web server.
We have a Help page that now requires a link to a PDF File that also lives on the Web server.
When I attempt to make the controller return File("pdflink.pdf","application/pdf") everything works fine on the iOS application. When I try to use one of our Androids to hit the same link, the Android just shows a blank page and the PDF does not open.
I was wondering if anyone has ever had to create a mobile view on a web platform that was then called by mobile applications.
I have tried creating a view that used an iframe with the pdf in it, but that also did not work on either device (iOS/Android).
Any help with how to handle a web link to a pdf from mobile applications?

Android App for mobile website

I'm looking to build an android app based off a mobile site. Basically, I just need an app with a browser that I can use as a platform.
Many of the "build an app online" sites offer this, where you just put in the home url etc, but they all include their own ads etc.
Any ideas where to start?
If you want to make your own simple app without Ads, use just a WebView inside of a simgle activity layout set to fill the screen.
Doing this you will eliminate all ads, as well as have the ability to add in more features later on if you so choose.
If you just want to create a launcher icon that will open up the default browser to your sites page, you can do that by just starting a browser intent, and then closing the actual app.
This will allow you to have an app icon and play store listing, however the only thing that iw will do is bring the user to your website like you have mentioned.
Create an Activity with a WebView.
I think you're looking for an app that displays a WebView. However, that will only display the website as if you were looking at it in a mobile browser such as Android Chrome.
If you want the data from a mobile site, without anything else, then you have to hope that the site provides that, or you have to download its HTML and scrape it.

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