开发者

open an activity by clicking on text hyperlink in android

开发者 https://www.devze.com 2023-02-18 07:16 出处:网络
I want to create a text hyperlink link \"Help\" So开发者_StackOverflow中文版 that when someone clicks on this text an action can be taken on it. Like in my case a new activity will be opened.

I want to create a text hyperlink link "Help"

So开发者_StackOverflow中文版 that when someone clicks on this text an action can be taken on it. Like in my case a new activity will be opened.

Can someone help me how to do this.

Thanks


Refer this:

Android: Launch activity from clickable text


Rishi,

See this answer here: Android Respond To URL in Intent

It shows you how to use <intent-filter> elements in your AndroidManifest to make your App respond to clicks on a particular URL.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号