AndroidManifest.xml注册service Activity中启动服务(注:LocalService.class继承于Service)方法1//启动服务 Intent intent=new Intent(this,Loc...
分类:
移动开发 时间:
2014-12-22 19:13:54
阅读次数:
130
package com.example.theold;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.Vibrator;
import android.provider.Contacts;...
分类:
其他好文 时间:
2014-12-22 18:07:06
阅读次数:
182
Android 官方文档原创译文《》,manifest 文件节点。
分类:
移动开发 时间:
2014-12-22 17:35:31
阅读次数:
153
如何获得andorid手机的程序安装列表,并调用其中一个app运行?
我目前试过如下方式
Intent intent = new Intent(ACTION_MAIN);
intent.addCategory(CATEGORY_LAUNCHER);
这里只是展示ACTION_MAIN 类型的应用程序,我知道PackageManager 可以获得程序的安装列表。但是如何调用其中一个程序运行呢...
分类:
移动开发 时间:
2014-12-22 14:32:31
阅读次数:
260
/** * TODO: Activity之间传递list,对象等工具类 * * @author * @date 2014-9-12 下午5:35:38 * @version 0.1.0 */public class FlashIntentUtils { private static vo...
分类:
其他好文 时间:
2014-12-22 14:14:20
阅读次数:
168
编程小白一枚,如题,如何才能做到,我现在已经在app中添加了浮动的导航菜单,我希望在点击导航菜单的时候启动一个新的activity,但是下面的代码完成不了,请大神看一下。
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
...
分类:
移动开发 时间:
2014-12-21 20:43:35
阅读次数:
211
//广播监听事件类
public class HomeKeyEventBroadCastReceiver extends BroadcastReceiver{
@Override
public void onReceive(Context context, Intent intent) {
//do what you want
System.e...
分类:
移动开发 时间:
2014-12-21 18:04:54
阅读次数:
174
//打开系统相册
Intent intent=new Intent(Intent.ACTION_GET_CONTENT);
intent.setType("image/*");
startActivity(intent);
//打开指定的一张照片
Intent intent = new Intent();
intent.setAction(android.content.Intent.ACTIO...
分类:
移动开发 时间:
2014-12-21 18:04:10
阅读次数:
332
当执行startActivity(Intent intent, Bundle options)函数的时候,应用程序不是直接呼叫另外一个Activity,而是将intent传进Android框架中.Android框架会查看startActivity呼叫传入的动作与Intent内容是否在注册表中,如.....
分类:
移动开发 时间:
2014-12-21 00:41:34
阅读次数:
265
android app中,我想从intentChooser 中抓取发送邮件的附件,以便知道是什么时候从sd卡中删除文件的时候
intentChooser 在下面的Fragment 中被调用
1
2
3
4
5
6
7
8
9
Intent
intent = new
Intent(...
分类:
移动开发 时间:
2014-12-20 22:13:32
阅读次数:
360