search

Home  >  Q&A  >  body text

java - Android 魅族系统相册适配

在调用系统相册是的时候,在其他型号的时候上,可以完美运行,在魅族上可以进入相册,在点击完成后,就会出现等待不回传问题,现象表现为,一直回会出现一个圈再转,等待没有结果,求帮忙 部分代码如下

 Intent intent = new Intent(Intent.ACTION_GET_CONTENT, null);  
 intent.setType("image/*");  
 intent.putExtra("crop", "true");  
 intent.putExtra("aspectX", 1);  
 intent.putExtra("aspectY", 1);  
 intent.putExtra("outputX", 80);  
 intent.putExtra("outputY", 80);  
 intent.putExtra("return-data", true);  
 return intent;  
伊谢尔伦伊谢尔伦2950 days ago326

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 17:39:03

    Intent galleryIntent = new Intent(Intent.ACTION_PICK,android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
    Try to use this Aciton to see

    reply
    0
  • 迷茫

    迷茫2017-04-17 17:39:03

    Do you want to call the system’s cropping tool?

    reply
    0
  • Cancelreply