Intent vs Impact
Can we get one thing straight? Just because you didn’t INTEND to offend anyone doesn’t mean you DIDN’T. If someone tells you that what you’re doing is offensive, how can you turn back and tell them that they are in the wrong? How about you acknowledge that you were in the wrong (even though you didn’t MEAN to) and promise not to do it again? I’m tired of all these random ass people coming to defend brownfacing cosplayers.
BROWNFACE/BLACKFACE/YELLOWFACE IS OFFENSIVE WHETHER YOU INTEND IT OR NOT.
“It is time to simply hold people responsible for their words. If victims claim that those words were hurtful and damaging, that alone should carry blame and bring appropriate punishment. Arguments about whether or not speakers are racist are not useful, and function largely to reproduce White racism’s central ideas.”—Jane H. Hill, The Everyday Language of White Racism
Part 109: Accessing the Images/media on a device
To access all the images on your device, you can use a cursor:
Cursor mImageCursor = managedQuery( MediaStore.Images.Media.EXTERNAL_CONTENT_URI,
null, null, null, null );
String s = mImageCursor.getColumnNames();
int column = mImageCursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);
String filename = mImageCursor.getString(column);
Bitmap bm = BitmapFactory.decodeFile(filename);
} while ( mImageCursor.moveToNext());
This grabs all the images on the device, goes to the first image, gets its name via access its column called DATA.
You can then create a Bitmap resource from the filename using BitmapFactory.
Not that, if you’ve just added an image to the filesystem, it won’t show up. Not there and not if you try to access the devices images using the Intent choose way:.
Intent intent = new Intent();
startActivityForResult(Intent.createChooser(intent, “Select Picture”),0);
You must refresh the system’s cache of images in the device. You’ll learn how to do that next.