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

Apps Need help creating a simple launcher [Beginner]

AHaz86

Lurker
Hello,

I am a beginner with app development using Java and have a requirement which I am not sure how to complete. I need to create a simple launcher that will just launch a specified website in the default browser (essentially the same thing as creating a shortcut from within chrome browser).

I had attempted to create an app already and it launches the browser but it also opens my app which leaves mine running in the background. I have the following in the oncreate:
finish();
moveTaskToBack(true);
System.exit(0);


The other thing I had tried was using webview but the site I am linking to requires authentication and after the first authentication, javascript does not seem to be working (works fine on initial page using browser.getSettings().setJavaScriptEnabled(true))

If this is in the wrong place please let me know where would be the best place to seek help.

Thank you in advance,
Alex
 
Back
Top Bottom