K
K
kakgebesit2015-04-10 19:19:27
Android
kakgebesit, 2015-04-10 19:19:27

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

1 answer(s)
I
IceJOKER, 2015-04-10
@IceJOKER

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);

Source: stackoverflow.com/questions/3004515/android-sendin...
Or better yet, use the WebView component, more about this is written at the office. site and on Russian-language resources, full of information with examples, SEARCH

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question