Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
I really appreciated your responses on this. I have setup a login activity (actually the main activity) that asks for a userid to be entered and a login button. They have to enter something to get to the menu. This part works fine. I can get the userid that is entered and I save it to a shared preference so I can use it elsewhere in the app.Start by having a login credentials activity where users enter their credentials. This activity could be the main activity, started by the main activity, or perhaps started by clicking a login button somewhere.
In login activity's onCreate(), initialise an instance of an AsyncTask subclass. This AsyncTask subclass will do the network communication for logging in and downloading the preferences. It will do all of this in its doInBackground(Params...) method.
The AsyncTask subclass's constructor will include an parameter for passing in the login activity. In the AsyncTask subclass's onPostExecute(Result) method, it calls login activity's setResult(int) or setResult(int, Intent) method and then the finish() method.

This is where I'm stuck now. I suppose I need to pass the URL of my web service and the userid as a parameter at the end, but I can't figure out how it works.
OK, I figured out how to structure my AsyncTask...finally. I Got it so my web service is being called but not getting anything back. I know the web service works because I run it in the browser and get the proper JSON output. Getting JSONException when I try to parse the response. It can't parse nothing! That's my next challenge!In regards to the userid (and presumably the password), you pass them when you call execute(Params...) on your AsyncTask. Then you receive them in doInBackground(Params...).