Код: Выделить всё
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
switch(requestCode) {
case GALLERY_REQUEST: {
if (resultCode == RESULT_OK) {
Uri chosenImageUri = data.getData();
photoview.setImageURI(chosenImageUri);
final Cursor cursor = getContentResolver().query( chosenImageUri, null, null, null, null );
cursor.moveToFirst();
final String filePath = cursor.getString(0);
}
break;
}
}
}Который изменяется динамически
Код: Выделить всё
...
public void select_photo_22(View v) {
photoact = 22;
photoview = (ImageView) findViewById(R.id.imageView_we22);
Intent photoPickerIntent = new Intent(Intent.ACTION_GET_CONTENT);
photoPickerIntent.setType("image/*");
startActivityForResult(photoPickerIntent, 22);
}
public void select_photo_23(View v) {
photoact = 23;
photoview = (ImageView) findViewById(R.id.imageView_we23);
Intent photoPickerIntent = new Intent(Intent.ACTION_GET_CONTENT);
photoPickerIntent.setType("image/*");
startActivityForResult(photoPickerIntent, 23);
}
...
Если картинки маленькие то где то 6 штук позволяет выбрать
В чем дело? Помогите разобраться...