How to display image from cursor in ImageView? - Android?

I recommand you to store your imageID somewhere on your Adapter Then you can get the adapter of your Gallery on your OnItemClickListener then get the corresponding item ImageAdapter imageAdapter = (ImageAdapter) arg0.getAdapter() or ImageAdapter imageAdapter = sdcardImages.getAdapter() Then you can get your imageID previously stored (you have to adapt your getItem method) : int imageID = imageAdapter. GetItem(position) Then you're good to change your ImageView source :).

I recommand you to store your imageID somewhere on your Adapter Then you can get the adapter of your Gallery on your OnItemClickListener then get the corresponding item ImageAdapter imageAdapter = (ImageAdapter) arg0.getAdapter(); or ImageAdapter imageAdapter = sdcardImages.getAdapter(); Then you can get your imageID previously stored (you have to adapt your getItem method) : int imageID = imageAdapter. GetItem(position); Then you're good to change your ImageView source :).

Final String projection = {MediaStore.Images.Thumbnails. Cursor = managedQuery( MediaStore.Images.Thumbnails. Projection, null, null, MediaStore.Images.Thumbnails.

ColumnIndex = cursor. Final ImageView imageView = (ImageView) findViewById(R.id. Final Gallery sdcardImages = (Gallery) findViewById(R.id.

Public void onItemClick(AdapterView

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions


Thank You!
send