Answer the question
In order to leave comments, you need to log in
How to make an application a hyperlink?
Good afternoon.
Can you tell me how to make an application a hyperlink? By clicking on the application icon in the phone, you immediately go to the desired site. The website is responsive for mobile devices.
If possible, either a ready-made code or an example where it is written in detail.
I just installed android studio today, and I'm not very familiar with all this yet.
Answer the question
In order to leave comments, you need to log in
I just installed android studio today, and I'm not very familiar with all this yet. - I assure you, no one cares , you don’t know - pay those who know or teach, for thanks you can only answer a specific question, and not fulfill your request to write something!
p.s.
In the onCreate() method of your Activity, write the following code:
String url = "http://www.example.com";
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(url));
startActivity(i);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question