S
S
Sergey Egorkin2018-04-18 17:48:18
Mobile development
Sergey Egorkin, 2018-04-18 17:48:18

The application is just a link to the site. How to do for Android?

Tell me how to make the application so that when it starts, a link to the site opens in the chrome browser. Simply put, you need an apk file that, after installation, will add a link icon.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Oleg, 2018-04-18
@serega183

protected void onCreate(Bundle bundle) {
   super.onCreate(bundle);
String url = "http://www.example.com";
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(url));
startActivity(i);
finish();
}

but it's a perversion

S
Sergey Egorkin, 2018-04-18
@serega183

I found instructions on how to make an application with the desired button inside its interface. But that's not it, I need my apk icon to be a link to the site.
Ps I know how to add a link from the browser to the main screen. This is not it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question