• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Tutorial : Build an android app for your website (Android Studio)

esinhaime

Lurker
change-icone1.png


Many of us own their personal websites or blogs with high quality content , and large traffic,but they dosn't have an android app for theire website , wich mean that they lose a big important traffic from app store such google play app store,amazon app store , iOs app store .
to be honest now you can creat an android app for your website in just few steps , this android tutorial will teach you how to buil app for website using android studio .so lets start converting a website to an android app , As an examp we will work on our website : nulledmobileapps an make an app to run the website as webpages inside android webview , wi will creat an intro animated splash screen for our android app , using android studio to generate icons with different android dimensions and density,working with webview settings , allow zoom In/Zoom Out , Loading webview indicator,
Material design ,working with navigation drawer ,and learn how to add responsive admob banner and how to link your app to firebase Then finally Generate Signed APK ready to publish.

Link Tutorial
 
wouldn't it be better to build a better website that works well on mobile devices? I don't see what benefit shoehorning a bad website into an app has for users.

Neither can I.
I've never understood the motivation for taking an existing website, and simply writing an app to present it. There are a couple of problems - First up is that your website will almost certainly not be friendly to mobile devices, simply because of the limited screen space. Controls will likely be microscopic, requiring the user to constantly pinch-zoom the page. That's a right PITA.
Next is that you now have to support an app on a multitude of devices, and across Android interface changes. This all requires effort to support.

A far more practical solution is to develop mobile friendly pages for your website. After all, practically all mobile devices have a web browser. Mobile friendly web pages tend to have much less content on them, and are simpler to navigate.
You get the web server to detect the client device, and serve up the appropriate pages accordingly.

But if someone can think of a genuine reason for requiring a webview app shell, I'm listening.
 
change-icone1.png


Many of us own their personal websites or blogs with high quality content , and large traffic,but they dosn't have an android app for theire website , wich mean that they lose a big important traffic from app store such google play app store,amazon app store , iOs app store .
to be honest now you can creat an android app for your website in just few steps , this android tutorial will teach you how to buil app for website using android studio .so lets start converting a website to an android app , As an examp we will work on our website : nulledmobileapps an make an app to run the website as webpages inside android webview , wi will creat an intro animated splash screen for our android app , using android studio to generate icons with different android dimensions and density,working with webview settings , allow zoom In/Zoom Out , Loading webview indicator,
Material design ,working with navigation drawer ,and learn how to add responsive admob banner and how to link your app to firebase Then finally Generate Signed APK ready to publish.

Link Tutorial
Hello
I like the idea of making an app for a website it is a marketing tool, by putting the app on Google Play Store you attract more users to the website. I found the tutorial very useful but I have a problem with the way the app is build, when you click back the app closes. Do you know by any chance how to allow the user to click back and return to the previous web page instead of closing the app. The comment section on the link provided and the contact are not working so I am stuck.
 
I really dislike anything that rolls up a standard web page and sticks it in an app.

Time and effort is better spent making the website better and more mobile friendly.

There are tools that will do this for you. Cross platform web design is exactly what is expected these days.

Doing an app instead is an evolutionary dead end... Who wants to work hard to be a dodo?
 
Hello
I like the idea of making an app for a website it is a marketing tool, by putting the app on Google Play Store you attract more users to the website. I found the tutorial very useful but I have a problem with the way the app is build, when you click back the app closes. Do you know by any chance how to allow the user to click back and return to the previous web page instead of closing the app. The comment section on the link provided and the contact are not working so I am stuck.

That's because a Webview isn't really a web browser. If you want the back button to behave like that, use the web browser ;)
 
That's because a Webview isn't really a web browser. If you want the back button to behave like that, use the web browser ;)
Actually I found a way to make it go to the previous web page, I added the code:
"@override
public void onBackPressed() {
if (myWebView.canGoBack()) {
myWebView.goBack();
} else if (!getFragmentManager().popBackStackImmediate()) {
super.onBackPressed();
}
}" to my MainActivity.java.
 
Actually I found a way to make it go to the previous web page, I added the code:
"@override
public void onBackPressed() {
if (myWebView.canGoBack()) {
myWebView.goBack();
} else if (!getFragmentManager().popBackStackImmediate()) {
super.onBackPressed();
}
}" to my MainActivity.java.

Fair play, nice that you figured out a solution.
 
You have a very odd colour scheme. The purple background makes the code totally unreadable.
 
Slapping a website within an app is simply for marketing. In a multi-billion dollar industry like this, just about every medium is leveraged to grow an online presence.

With that said, there's no reason why an app can't display a website properly while adding useful features. Not to mention that it's much lighter and faster to view a site within an app than a full blown browser like chrome or firefox.

As for rendering a site within an app efficiently is quite simple. For example, with the following css you can determine which version and features of your site to render depending on screen size.

CSS:
@media screen and (min-width: 700px) {
  ...
}

@media only screen and (max-width: 700px) {
  ...
}

This code can be used to display different features and layouts of a site depending on the screen size. There's other ways to do this, but this is one of the simplest and most common.

In my experience, users seem to like the idea of firing up a light weight app to help them consume content on a website they really like.
 
change-icone1.png


Many of us own their personal websites or blogs with high quality content , and large traffic,but they dosn't have an android app for theire website , wich mean that they lose a big important traffic from app store such google play app store,amazon app store , iOs app store .
to be honest now you can creat an android app for your website in just few steps , this android tutorial will teach you how to buil app for website using android studio .so lets start converting a website to an android app , As an examp we will work on our website : nulledmobileapps an make an app to run the website as webpages inside android webview , wi will creat an intro animated splash screen for our android app , using android studio to generate icons with different android dimensions and density,working with webview settings , allow zoom In/Zoom Out , Loading webview indicator,
Material design ,working with navigation drawer ,and learn how to add responsive admob banner and how to link your app to firebase Then finally Generate Signed APK ready to publish.

Link Tutorial
Hello
I have successfully created 4 apps with this code but I am stuck on the 5th one. The 5th app that I am trying to create it involves embedding radio stations, but the I only seam to be able to make one radio station player to work the others don't play. On the browser they all play. Any thought why is this happening? Do I need a special permission?
 
Back
Top Bottom