如何实现我的应用程序本土画廊的功能 [英] How to implement native gallery functions in my application

查看:107
本文介绍了如何实现我的应用程序本土画廊的功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有三星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, "https://market.android.com/details?id=com.music.player");
                startActivity(Intent.createChooser(intent, "Share with"));


有关详细信息,请检查此链接

这篇关于如何实现我的应用程序本土画廊的功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆