Creating a different layout for a Webview - android

I was trying to make an app using Android Webview. I am able to use Webview to load my site. My site is for registered users only. As a result, I wanted to create a Webview only for my logged in users. So, one layout (empty) for login page and another(tabbed) for logged in user.
So, is it possible to have 2 different layouts in a Webview in the same app? I am new in Android Studio and did not find specific discussion/solution of this problem elsewhere.
Share your thoughts. Thanks.

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).

Share session between WebViews Android WebView

I'm using React Native to merge two native apps into a single codebase, as an intermediate app I have a WebView-based solution where we just show parts of our website inside WebViews.
On iOS, the user logs into one WebView, then all other WebViews refresh in the background and once finished loading the user will be logged in and be able to access all logged in features.
I was expecting the same behaviour on Android, however nothing happens. It's as if the user never logged in. I tried manually setting the cookies with react-native-cookies, however this doesn't fix the issue either.
Is it possible to have the same functionality as iOS currently has on Android?

Android Webview and Facebook Login Not working

I am having a problem with a WebView app that I am working on.
We have this responsive website that is being displayed through an android WebView.
The website has a Sign in with Facebook option, this works fine in a mobile browser and on the website itself. Whenever I try to use the WebView app to login using Facebook, it results in a white screen.
I am having difficulties finding a solution to get this to work.
Appreciate any advise.
I was able to find a solution based on a previous question on stackoverflow.com
Making facebook login work with an Android Webview
Here is a link to my MainActivity : http://pastebin.com/KdzfhqDJ
I'm fairly certain it's this same issue. Essentially it opens in another window and WebView doesn't support multiple windows out-of-the-box.
Luckily for you, unlike that question which was iOS-specific, if I recall correctly, it's possible to extend WebView to support multiple windows. You'll need to extend WebChromeClient, implement onCreateWindow and use it in your WebView.

Creating android app, say mother app

I'm new to this forum..
I want to create a Android app (say mother app), which can be installed to the Android devices on the home menu. This app should contains one or more apps inside (say child app)..
The mother app should have online login verification and on the successful login this app should show all the child app...
The concept is just like creating a app such as newsstand of iPhone.
Is it possible to create such app for Android using Adobe Air
When any child app is installed from the marketplace then It must be shown inside mother app instead of home menu
To make it clear:
I want to create a app which store my other apps when it is downloaded from anywhere, instead of placing my apps here and there on the device.
I suggest that you try out Android tutorial first and proceed further. It will surely help you out. You can check this Stackoverflow question for information about using Adobe Air in your application. I can help you with this information only. :D

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.

Categories

Resources