自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 345

原创 文章标题

直接分享到微信朋友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 484

原创 Android 使用MediaPlayer播放assets目录的音频文件

private AssetManager assetManager; private MediaPlayer playRing() { MediaPlayer player = null; try { player = new MediaPlayer(); assetManager = getAssets();

2016-10-11 10:21:43 15628 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 760

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除