如何实现我的应用程序本土画廊的功能

编程入门 行业动态 更新时间:2024-10-26 22:30:12
本文介绍了如何实现我的应用程序本土画廊的功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有三星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"));

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

更多推荐

如何实现我的应用程序本土画廊的功能

本文发布于:2023-11-12 03:29:54,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1580383.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:画廊   如何实现   应用程序   本土   功能

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!