`
wanghuihui513
  • 浏览: 5382 次
  • 性别: Icon_minigender_1
  • 来自: 上海
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表
在最新的android 4.0中,在日历方面新增加了相关的API,可以操作了,简单小结下. 1 创建一个日历的intent   Intent calIntent = new Intent(Intent.ACTION_INSERT); calIntent.setType("vnd.android.cursor.item/event"); startActivity(calIntent); 2 设置日历的具体信 ...
在android中,如何判断网络是否连接或WIFI已连接呢,很简单,可以用如下的方法判断 Java代码 public static boolean checkNetworkConnection(Context context)       {           final ConnectivityManager connMgr = (ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE);              final android.net.Networ ...

android 访问SD卡

 
android中判断sd卡是否准备好 Boolean isSDPresent = android.os.Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED); if(isSDPresent) {   // 卡已准备 } else { // 卡没准备好 }
Android中获得SD卡中的值 在android中,如何获得SD卡的值呢,可以这样: File externalStorage = Environment.getExternalStorageDirectory();  String strUri = externalStorage.getAbsolutePath()+"/"+"test.mp3";  System.out.println(strUri); 在HTC上,路径是: /sdcard/test.mp3 Samsung Galaxy 3上: /mnt/sdcard/test.m ...
Android开发中如何使用绘制图表 http://tech.it168.com/a2011/0603/1200/000001200313.shtml
Global site tag (gtag.js) - Google Analytics