在我的Android相机应用程序中,我使用此代码从Android图库获取选择图像。为什么我无法从Android图库中获取所选图像?
Intent intent = new Intent();
intent.setType("image/*");
intent.setAction(Intent.ACTION_GET_CONTENT);//
//startActivity(intent);
startActivityForResult(Intent.createChooser(intent, "Select Picture"),10);
//finish();
我得到了画廊,一切似乎都很好。但是当我在画廊的特定图像上选择时,没有任何事情发生,画廊的活动完成。
我想选择该图像并对其进行一些操作。 怎么可能?
只是看看这个类似的问题[如何从图库(SD卡)为我的应用程序在Android中选择一个图像?](http://stackoverflow.com/questions/2507898/how-to-pick-a - 图像 - 从画廊-SD卡换我-APP-在-机器人)。 – user370305