开发者

Need to implement share functionality in my android app, [closed]

开发者 https://www.devze.com 2023-03-28 19:23 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the hel开发者_开发知识库p center. Closed 11 years ago.

I need to support my android app to share data between facebook, twitter and linkedin. what i did was in my share tab item display and table with above site login page url. when use tap on the table row i'll load the site login page on web view.

what i want if user has already installed and appellation/s which support above social network sites i want to prompt the user with available application and ask him to choose from list or use the default as webview login.can some one help me to solve this issue. sam


The Android way to share content is to send an ACTION_SEND intent. Construct the Intent object with the correct mime type and data, then you can use the Intent#createChooser method to generate a wrapper Intent that will allow the user to choose the share target from a list. Any app the user has installed that can accept that type of content will be presented to the user.

With this approach apps are able to cooperate to share content without being directly aware of one another's existence.

0

精彩评论

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