A followup from my original question.
Is there a way to use ImageViews in android apps without using a lot of RAM?
In the original question I found that my app used a lot of RAM, and found that it was the ImageViews which I used that too up all the RAM.
To get the Image I use
public void addPictureOnClick(View view){
Intent intent = new Intent();
intent.setType("image/*");
intent.setAction(Intent.ACTION_GET_CONTENT);
startActivityForResult(Intent.createChooser(intent, "Select Picture"),1);
}
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
if (resultCode == RESULT_OK) {
if (requestCode == 1) {
// currImageURI is the global variable I'm using to hold the content:// URI of the image
Uri currImageURI = data.getData();
image.setImageURI(currImageURI);
}
I would like to know if there is another way to show pictures rather than the URI?