05 2013 档案

摘要:在Settings下的StorageVolumePreferenceCategory.java类下,找到对应项【DCIM】,加广播 intent = new Intent(Intent.ACTION_VIEW); intent.putExtra(Intent.EXTRA_LOCAL_ONLY,true); intent.setType("image/*;video/*");然后在Gallery2的AndroidManifest.xml 下的 Gallery Activity下加如下代码:<intent-filter> <action android:nam 阅读全文
posted @ 2013-05-22 17:44 玖兰枢_优姬 阅读(784) 评论(0) 推荐(0)
摘要:SimpleDateFormat sDateFormat ;String date;if(DateFormat.is24HourFormat(getActivity().getApplicationContext())){ sDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); date = sDateFormat.format(new java.util.Date());}else{ sDateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss&quo 阅读全文
posted @ 2013-05-20 16:55 玖兰枢_优姬 阅读(6968) 评论(1) 推荐(0)
摘要:copy至:http://www.jb51.net/article/32370.htm获取网络信息需要在AndroidManifest.xml文件中加入相应的权限。 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> 1)判断是否有网络连接 代码如下: public boolean isNetworkConnected(Context context) { if (context != null) { ConnectivityManager mConnectivit 阅读全文
posted @ 2013-05-10 11:04 玖兰枢_优姬 阅读(246) 评论(0) 推荐(0)