2012年4月28日
摘要: 以下使用的是SDK自带的例子来进行分析:首先,需要在 AndroidManifest.xml中添加<action android:name= "android.intent.action.CREATE_LIVE_FOLDER" />然后如下分析:public class MyLiveFolder extends Activity { public static final Uri CONTENT_URI = Uri.parse("content://my.app/live"); protected void onCreate(Bundle s 阅读全文
posted @ 2012-04-28 15:18 lee0oo0 阅读(457) 评论(0) 推荐(0)
摘要: 创建快捷方式是需要在桌面中长按,然后选择shortcut,然后在选择需要创建快捷方式的程序。以下是步骤: 1. 首先,需要在AndroidManifest中添加<action android:name="android.intent.action.CREATE_SHORTCUT" /> 1A.判断是否要添加快捷方式:if (getIntent().getAction().equals(Intent.ACTION_CREATE_SHORTCUT)) 2. 创建一个Intent对象 3. 使用这个对象(第2步的Intent对象)创建快捷方式的名字,第一个参数固定,第 阅读全文
posted @ 2012-04-28 11:32 lee0oo0 阅读(877) 评论(0) 推荐(0)