02 2016 档案
摘要:PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);通过 Context.getSystemService().方法获取PowerManager实例。 然后通过PowerManager的newWakeLoc
阅读全文
摘要:paintPath = MediaStore.Images.Media.insertImage(context.getContentResolver(),bitmap,str,null); Uri uri = Uri.parse(paintPath); /** * 通过uri获得文件路径 * @pa
阅读全文
摘要:在Android代码中,我们有时会使用比我们在AndroidManifest中设置的android:minSdkVersion版本更高的方法,此时编译器会提示警告,解决方法是在方法上加上@SuppressLint("NewApi")或者@TargetApi()。 那他们之间有什么区别呢,很简单, @
阅读全文

浙公网安备 33010602011771号