0

I have tried using webviewer, using a tutorial only to discover that it opens the url in the web-browser. How do I create this app so that it displays a website inside the app? Would I need to set it up to use html5? then throw in an iframe?

Any help would be appreciated. The 3rd party program I used to create my webapp has started to throw in popup adds and I'm losing rating because of it.

Is there perhaps an android studio -project file- i can download that has the template all setup? Where all I need to do is input the url?

2 Answers2

0

You dont necessary need to use 3rd party programs to do this. Android has a built in Class called WebView using this you can view your WebPage or WebApp inside an Android Activity. Have a look on this. And it is always better to develop your own code rather than downloading ready made projects when it comes to small programs like this. Hope it helps.

jofftiquez
  • 7,548
  • 10
  • 67
  • 121
0

If you want to create new app, take a look at Ionic, Sencha frameworks. If you simply want to display existing website, use WebView in android. Refer this link for WebView Tutorial.

Paritosh
  • 2,097
  • 3
  • 30
  • 42
  • Thank you. That was so much more simpler than the tutorial I followed. Haha now it works correctly. I guess I'll ask another question for your insight. If I want to include a google adsense code in a block above the webView, how would I do so? – Stephen M. Yantz Apr 28 '15 at 11:02
  • I don't know about `adSense`. Is it `Java` code or `Javascript`? If it is `Java`, add it in Android code. If it is `Javascript`, add it in your website code. – Paritosh Apr 28 '15 at 12:05