随笔 - 18, 文章 - 0, 评论 - 1, 阅读 - 17211
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

03 2011 档案

摘要:最近在看MMS 编程的部分, 要支持多种文件的发送,这就需要知道文件MIME类型 我们看一下 android 文件的mime类型: {".3gp", "video/3gpp"}, {".apk", "application/vnd.android.package-archive"}, {".asf", "video/x-ms-asf"}, {".avi", "video/x-msvideo"}, {".bin", & 阅读全文

posted @ 2011-03-31 14:08 nobile.amir 阅读(400) 评论(0) 推荐(0) 编辑

摘要:网络上盛传Android 有四大天王,分别有: Activity,Service, Intent,BroadcastReceiver。 我今天就针对 Activity 说说俺的看法。 An activity is a single, focused thing that the user can do. Almost all activities interact with the user, so the Activity class takes care ofcreating a window for you in which you can place your UI with setC 阅读全文

posted @ 2011-03-24 19:20 nobile.amir 阅读(414) 评论(0) 推荐(0) 编辑

摘要:想要实现一个自启动的功能,要扑捉系统的开机广播,我理解成时系统启动的广播通知: 不说了,直接上代码: 扑捉系统启动广播通知的类。 要继承系统 BroadcastReceiver类, 并且实现public void onReceive(Context aContext, Intent aIntent),还是看下边的代码:package com.amir.bootflag;import android.content.BroadcastReceiver;import android.content.Context;import android.content.Intent;public clas. 阅读全文

posted @ 2011-03-24 17:22 nobile.amir 阅读(708) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示