Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to embed a website into an Android App?

Tags:

android

web

I have a mobile website, users user smart phone browser to access my site.

Now some users would like to have an Android App.

So is there any easy and fast way to create an Android App which will access the existing mobile website so that I can have an Android App without developing Android app?

like image 803
Sato Avatar asked Dec 09 '16 02:12

Sato


2 Answers

You would have to create a "wrapper" Android App. That is a native Android App with a Main Activity that contains a WebView with JavaScript enabled and some sort of navigation controls either on the mobile website or the native app (buttons or menu) but you could bump into problems such as:

  • Users being stuck in a particular page with no way to navigating back or forward.
  • Google is now more picky with the apps and they have policies to reject or ban apps that are only wrappers or point to external websites (kind of what Apple did for iOS)

Any case, you would have to create a mobile layout for your website or a make it responsive (special CSS and JS UI/UX that fits better on mobile devices).

Another alternative is to make your website compatible with PROGRESSIVE WEB APPS (https://developers.google.com/web/progressive-web-apps/) which is basically a Web app with some special elements that allow it to receive push notifications, put a shortcut or app icon on the device's home screen, etc.

Good luck! Hope this helped!

like image 139
Oscar Salguero Avatar answered Sep 18 '22 12:09

Oscar Salguero


You can use android WebView. For more details you go through the link Android Webview

like image 36
Mick Avatar answered Sep 18 '22 12:09

Mick