How do I receive a “Share URL” from browser?

后端 未结 2 451
轻奢々
轻奢々 2021-02-08 06:13

I read this ( How do I handle the browser's "share page" intent in android? ) which I can get the Share link to detect my app, now how do I get Activity to receive

2条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-08 06:46

    When your application receives the "Share page" from the browser, you could also get the title of the webpage:

    String subject = intent.getStringExtra(Intent.EXTRA_SUBJECT);
    

提交回复
热议问题