开发者

open an activity by clicking on text hyperlink in android

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜