Android LiveFolders Demo
来源:互联网 发布:excel编程 编辑:程序博客网 时间:2024/05/29 10:44
AndroidManifest.xm
<activity android:name="com.example.test012.LiveFolderActivity"> <intent-filter > <action android:name="android.intent.action.CREATE_LIVE_FOLDER"/> </intent-filter> </activity>
LiveFolderActivity.java
public class LiveFolderActivity extends Activity{@Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);if(LiveFolders.ACTION_CREATE_LIVE_FOLDER.equals(getIntent().getAction())){Intent intent = new Intent();intent.setData(People.CONTENT_URI);//这里的uri(content Uri),可以是系统的“通讯录”,也可以是我们自己的intent.putExtra(LiveFolders.EXTRA_LIVE_FOLDER_NAME, "实时文件夹Demo");//设置显示名称intent.putExtra(LiveFolders.EXTRA_LIVE_FOLDER_DISPLAY_MODE, LiveFolders.DISPLAY_MODE_LIST);//设置显示模式setResult(RESULT_OK, intent);finish();}}}
运行后,
0 0
- Android LiveFolders Demo
- android学习笔记之LiveFolders
- android demo
- android demo
- android demo
- Android Demo
- Android Development Demo: “DialANumber”
- Android多媒体的Demo
- Android重力感应Demo
- android handler 多线程demo
- Android DataGrid Demo
- android GPS DEMO
- Android显示视频Demo
- Android重力感应Demo
- android多点触摸demo
- android widget-demo
- Android Custom ContentProvider Demo
- android多点触摸demo
- linux中shell的变量类型
- 1.编写一个程序,它从标准输入读取C源代码,并验证所有的花括号都正确的成对出现。
- JavaScript继承详解(三)
- EM算法学习笔记_2(opencv自带EM sample学习)
- Delphi 字符串分割与转型
- Android LiveFolders Demo
- 固定在网页右侧的浮动层实现代码
- Codeforces Round #176 (Div. 2)B pipeline
- springmvc + ajaxfileupload 实现异步上传文件(图片)
- 【牛腩】——ASP.NET真假分页
- POJ3009---Curling 2.0
- IO - 同步,异步,阻塞,非阻塞
- 设计模式之适配器模式
- Orientation Auto Rotation旋转屏幕crash问题(Unity3D开发之十四)