ITeye博客

wanghuihui513的博客

wanghuihui513 · 共 5 篇文章

android 4中新增的日历处理相关API

在最新的android 4.0中,在日历方面新增加了相关的API,可以操作了,简单小结下. 1 创建一个日历的intent Intent calIntent = new Intent(Intent.ACTION_INSERT); calIntent.setType("vnd.android.cursor.item/event"); startActivity(calIntent); 2 设置日历的具体信息 Intent calIntent = new Intent(Intent.ACTION_INSERT); calIntent.setType("vnd.android.cursor.ite…

2011-12-26 16:18 · android · 评论(0)

android中判断网络和WIFI是否连接

在android中,如何判断网络是否连接或WIFI已连接呢,很简单,可以用如下的方法判断 Java代码 public static boolean checkNetworkConnection(Context context) { final ConnectivityManager connMgr = (ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE); final android.net.NetworkInfo wifi =connMgr.getNetworkInfo(Connectivit…

2011-12-26 16:16 · android · 评论(0)

android 访问SD卡

android中判断sd卡是否准备好 Boolean isSDPresent = android.os.Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED); if(isSDPresent) { // 卡已准备 } else { // 卡没准备好 }

2011-12-26 16:11 · android · 评论(0)

android 访问SD卡

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.mp3

2011-12-26 16:10 · android · 评论(0)

android图表

Android开发中如何使用绘制图表 http://tech.it168.com/a2011/0603/1200/000001200313.shtml

2011-12-26 16:03 · android · 评论(0)