I have a method that needs to be called from another activity, and I need to use it to set an ImageView in it's own activity.
Hi am developed XMLParsing android application.Here i followed dis tutorials Android Custom ListView with Image and Text.
its successfully worked for me.But hear am implementing dis activity to one of my project.
I am currently attempting to pass a string across activities. The string is used to set an image in the second activity. So the user is clicking a button in the first activity and then the appropriate image is loaded in the second activity based upon what was selected.
i have a gridview that content some image view, i want from this image view of the grid view can get onclick to change a activity, how can i do it, i try this code but it not work.in main activity a init a grid view and add imageview to it, then i try to create onclick even but it not work
gridview.findViewById(R.id.image).setOnClickListener(new View.OnClickListener() {
public void onClick(
I am new to android and I tried to implement onclicklistener on image view. But it's not working.. Please help.
I am looking for a built in method of the ImageView object to tell me which file I retrieved my image from.
For example earlier in the code I called...
ImageView iv = new ImageView(MainActivity.this);
iv.setImageBitmap(BitmapFactory.decodeFile(f.getAbsolutePath()));
Assume I no longer have a reference to 'f' and need to find out what f was. Is there a way to do that?
I have a layout where one imageView want dynamically load an image from drawable files. I want this I have a certain size imageView whatever drawable image, so you need to assign a size to upload.
This is my activity class which parsing RSS
public class RSSReader extends Activity {
ArrayList<String> xmlImage=new ArrayList<String>();
ArrayList<String> xmlList=new ArrayList<String>();
ArrayList<String> xmlLink=new ArrayList<String>();
public class arkaPlanIsleri extends AsyncTask<Void, Void, Void> {
private ProgressDialog dialog = new
in my android application, when i click on button new activity starts and retrieves image info from sdcard n display it.when i click one of thumbnail of image i want to send that image to 1st activity.how can i do this using startactivityforresult.how to store image path and send it back to 1st activity.i want array for storing uri off all images as i'm listing them dynamically
in 1st activty-