Answer the question
In order to leave comments, you need to log in
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
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();
}
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 questionAsk a Question
731 491 924 answers to any question