Is it possible to navigate from html5 app in web browser to android app installed on phone.
Question referred to by user247245 in his comment provides one way of doing. Another way is to use a Java class together with your HTML5 application to handle the launching of the application activity.
Have a look at this post: http://satishbellapu.blogspot.co.uk/2011/09/launching-android-native-application.html - while the author's English is not great, it does explain (more-or-less) how to do this.
Related
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?
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!
You can use android WebView. For more details you go through the link Android Webview
the only way to do that, using WebView on your apps or you need to create manually
You can put your code into Cordova and convert it into other IDE like android studio or eclipse .
reference:
Import Cordova project in Android Studio
Good morning everyone,
I am facing an issue with both my Android and iOS apps. While they use webviews, we just had a requirement coming in to open the external browsers in order to reach our payment portal. For iOS especially, as part of the iOS guidelines this is preventing my app from getting accepted unfortunately.
I know how to open the browser externally, however I cannot close it as easily. It seems to boil down to it being a different application all together opened from either my android or iOS code. In this aspect window.close() or something similar does not work.
My question is, is there a trick to it using custom url schemes, all I am trying to achieve is to press a button in my external browser and close said browser which would bring my app back to front.
Or is there some kind of custom intent library for android which could help me achieve the same result.
Any hint would be appreciated, as my research so far as not been very fruitful.. Thank you in advance.
I understand that android has this few functions such as onBackPressed() which utilizes the back button on the android phones for native android applications,
I was wondering if it was possible to utilize this backbutton on a mobile website, are there any function or codes for them. Could anyone point me to any reference on these on how to go about coding it if possible.
The other question that I would like to ask as well is that is this also possible for IOS. Considering that the IOS back button is usually built into the application itself.
Added for clarity,
I'm designing my application using mainly jquery stuff.
If you are planning to use twitter bootstrap for you mobile website, may be this what you are looking for here
If you plan to use phone gap, you may want to have a look at
here
If you are using only jquery, then there is no way to disable the hardware back button as explained here
I'm developing an web-based application without PhoneGap.
The application consist on 7 modules (events, news, photos) and each module is one item on menu. Also each module is a independent webpage.
So, I don't know if I need implement 7 embedded browsers, or only one browser, or another kind of architecture.
Could you please help me?
If you are trying to basically make an embedded browser that uses your website you should only have 1 browser.
If you are trying to have a better integration with the android platform you should create one activity that works as a web browser and pass the url inside the intent for each "module" you are trying to access.
I'm not entirely sure what you mean by "Module". Is this something thats on the website or are you talking about activities inside the android platform?
I have a fully-working web app that is accessible using Android's browser.
The annoying part is the url bar uses a lot of the screen. Is there a way to make this web app a native Android app? I've read that webview can be used to embed a web site within the Android App.
Unfortunately, I only know web programming languages and have no Java experience. Will I still be able to do this on my own?
You certainly will need some learning in java, you can start with reading the following :
Webview documentation
A very detailled tutorial (quite hard if you haven't any java basics)
A basic tutorial on webview usage.
Have you looked at phonegap. It comes with a standalone app with a WebView embedded in it and with native android functionality support. You just need to provide your html/javascript app to it and you're done.
You can use a web app called MIT App Inventor
and get it done in less than 10 minutes, it's very easy, intuitive and requires no programming skills at all.
all you need to do is create a new project,
drag and drop a WebViewer component, on the right set the home url,
and your done! just connect to an android phone via USB to install the app
and you can even download the .apk to your computer, sign it and publish it on Google Play