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

Apps Shortcut

It's not that hard.

In you main activity, use ACTION_VIEW to launch the webpage.

example.java
Code:
public class example extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        Uri uri = Uri.parse("www.example.com");
	    Intent intent = new Intent(Intent.ACTION_VIEW, uri);
	    startActivity(intent);
    }
}

AndroidManifest.xml
Code:
...
</activity>

    </application>
    <uses-permission android:name="android.permission.INTERNET" />
</manifest>

That should launch the site.
 
Upvote 0
It's not that hard.

In you main activity, use ACTION_VIEW to launch the webpage.

example.java
Code:
public class example extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        Uri uri = Uri.parse("www.example.com");
	    Intent intent = new Intent(Intent.ACTION_VIEW, uri);
	    startActivity(intent);
    }
}

AndroidManifest.xml
Code:
...
</activity>

    </application>
    <uses-permission android:name="android.permission.INTERNET" />
</manifest>

That should launch the site.

Thanks very much for the reply. I am currently a beginner, so I am using Android App Inventor, and have no idea how to do it.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones