Easiest way to launch webpage in android with an icon

后端 未结 8 722
北荒
北荒 2021-02-03 11:02

We have a website that offers an e-mail service. We would like to create a fully fledged app for this but cannot afford this right now. In the mean time it would be great if we

8条回答
  •  一生所求
    2021-02-03 11:50

    Create a new Android project (after following the SDK installation steps provided at http://developer.android.com)

    on the directory /res/drawable-*dpi you have the laucher icons. Modify all of them.

    In the main activity, delete all inside the onCreate method an put this:

    String url = "http://www.YOUR-URL.com";
    Intent i = new Intent(Intent.ACTION_VIEW);
    i.setData(Uri.parse(url));
    startActivity(i);
    

    This will open the android browser with the URL provided.

提交回复
热议问题