- 博客(4)
- 收藏
- 关注
原创 获取指定Activity的截屏,保存到png文件
/** * 获取指定Activity的Bitmap截屏 */ private Bitmap takeScreenShot(Activity activity) { // View是你需要截图的View View view = activity.getWindow().getDecorView(); view.setDraw
2016-10-11 14:12:03 348
原创 文章标题
直接分享到微信朋友try { File file=new File(path);//path为要分享的图片路径 Intent intent = new Intent(); //分享至微信 ComponentName comp = new ComponentName("com.tencent.mm", "com.tencent.mm.ui.t
2016-10-11 11:46:46 487
原创 Android 使用MediaPlayer播放assets目录的音频文件
private AssetManager assetManager; private MediaPlayer playRing() { MediaPlayer player = null; try { player = new MediaPlayer(); assetManager = getAssets();
2016-10-11 10:21:43 15634 7
转载 android.util.AndroidRuntimeException: requestFeature() must be called before adding content
AndroidRuntime(419): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.dream/com.dream.activity.YunXingChengXuActivity}: android.util.AndroidRuntimeException: requestFeature() mus
2015-06-03 23:22:49 763
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人