现在很多软件中都有设置的界面,设置界面一般都是软件更新关于和本产品的介绍等等,还有一个就是评分,点击后打开应用市场,比如应用宝、360手机助手,会调用这些发布市场的App,打开后直接到自己发布的App下。代码实现如下:
[java] view
plaincopyprint?
Intent intent = new Intent(Intent.ACTION...
分类:
移动开发 时间:
2014-12-09 15:47:51
阅读次数:
199
ActivityManager mActivityManager = (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE);
final Intent mainIntent = new Intent(Intent.ACTION_MAIN, null);
mainIntent.addCategory(...
分类:
移动开发 时间:
2014-12-09 15:45:29
阅读次数:
314
/**
* 分享应用.
*/
private void shareApk() {
Intent intent = new Intent();
intent.setAction("android.intent.action.SEND");
intent.addCategory("android.intent.category.DEFAULT");
intent.setTyp...
分类:
移动开发 时间:
2014-12-09 14:06:13
阅读次数:
160
[java] view
plaincopyprint?
//序列化
intent.toURI();
//反序列 化使用:
Intent.parseUri(uriString, 0);
序列化
[java] view
plaincopyprint?
Intent...
分类:
移动开发 时间:
2014-12-09 09:19:23
阅读次数:
218
此篇文章主要讲述通过GridView控件实现添加本地图片并显示.主要是关于GridView控件的基本操作,通过调用SimpleAdapter适配器实现实现加载图片,在gridView1.setOnItemClickListener()点击函数中响应不同操作.当点击加号图片(+)时,调用本地相册通过Intent实现获取图片路径存并显示图片,同时能删除图片,希望文章对大家有所帮助....
分类:
微信 时间:
2014-12-08 23:11:33
阅读次数:
589
在设置向导的第三个界面,点击“选择联系人按钮”进入选择联系人界面,并且在选择联系人界面传回电话号码到第三个设置向导界面。
监听事件:
/**
* 选择联系人的按钮的点击事件
*
* @param view
*/
public void selectContact(View view) {
Intent intent = new Intent(Setup3Activity...
分类:
其他好文 时间:
2014-12-08 23:11:02
阅读次数:
346
我们需要在LostFindActivity这个类中,展示第三个设置向导页面传过来的安全号码,第四个页面如果勾选上了,则将防盗保护是否开启的图片换掉,最终结果如下图。
首先看最后一个设置向导页面:
package com.ustc.mobilemanager;
import android.content.Intent;
import android.conte...
分类:
移动开发 时间:
2014-12-08 23:07:11
阅读次数:
290
当在Android4.4上进行图片的扫描功能开发时一般会使用:sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse("file://"+ Environment.getExternalStorageDirectory()+ picPath)));的广播
但因为Android4.4中限制了系统应用才有权限使用广播通知系统...
分类:
移动开发 时间:
2014-12-08 19:38:27
阅读次数:
336
原文地址:http://yanwushu.sinaapp.com/android_wechat_share/由于需求,要实现在应用中实现分享文字+图片到微信朋友圈。在网上找了一些资料,总结如下:思路1.使用android的intent实现应用程序之间的通信,将信息通过intent传递给微信(文章后面...
分类:
微信 时间:
2014-12-08 19:19:17
阅读次数:
313
使用Bundle在Activity间传递数据源Activitypublic class SourceActivty extends Activity {private Intent intent=null;@Overrideprotected void onCreate(Bundle savedIn...
分类:
其他好文 时间:
2014-12-08 19:04:45
阅读次数:
137