我有三星Galaxy S的这款手机的画廊有一个分享按钮。当您单击按钮,菜单中包含共享站点出现。您可以选择一个加时赛他们上传的图片。菜单的最好的部分;如果您下载的应用程序(例如Facebook)的到您的手机,它appers在菜单中。我想你使用该功能在我的应用程序。我会用相机,拍下照片并显示在ImageView的。然后,我要让这样一个按钮,并分享照片。我问,因为我下载一个画廊的应用程序,是不是手机的本土画廊,它也有相同的按钮。反正是有,我可以在我的应用程序直接使用它。我不想调用库后使用它。
i have Samsung Galaxy S. In the phone's gallery there is a share button. When you click the button, a menu contains share sites show up. You can pick one ot them and upload the picture. The best part of the menu; İf you download an application(for example facebook) into your phone, it appers in the menu. İ want to you use that function in my app. I will use camera, take picture and display on the imageview. And then i want to make a button like this one and share the photo. I am asking that because i download a gallery application which is not the native gallery of the phone, It also has the same button. Is there anyway that i can use it directly in my application. I dont want to use it after calling the gallery.
推荐答案试试这个code
intent = new Intent(Intent.ACTION_SEND); intent.setType("text/plain"); intent.putExtra(Intent.EXTRA_SUBJECT, "try this application "); intent.putExtra(Intent.EXTRA_TEXT, "market.android/details?id=com.music.player"); startActivity(Intent.createChooser(intent, "Share with"));有关详细信息,请检查此链接
更多推荐
如何实现我的应用程序本土画廊的功能
发布评论