I want open specific activity my app android after click url my website from browser android.
if my url = <a href="http://myapp.com/aa-bb-cc-dd.html"> open activity </a>
and my activity is DetailActivity , how to open this activity after click my url ?
and I want "aa-bb-cc-dd" for setText Textview in DetailActivity .
text1.setText("aa"); text2.setText("bb"); text3.setText("cc"); text4.setText("dd");
How its work?
In your
AndroidManifest.xml
, declare that yourDetailActivity
can handle the URL.You can then open up the URL as usual.
In your
DetailActivity
, you can get and parse the URL passed to it as follows.