android 通过代码打开系统相册应用,能使用相册里面所有功能
Intent i = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
startActivity(i);
我在网上找到的这段代码能浏览图片但是一个功能都用不了,我想是直接跳到相册,跳出自己的应用,这个代码需要怎么写,请大神指导
android 通过代码打开系统相册应用,能使用相册里面所有功能
Intent i = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
startActivity(i);
我在网上找到的这段代码能浏览图片但是一个功能都用不了,我想是直接跳到相册,跳出自己的应用,这个代码需要怎么写,请大神指导
直接上代码
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setType("image/*");
context.startActivity(intent);