0

I Am Having Base class which is called common activity,In that i am returning the String in every activity.By using the following code.

txtHeader = (TextView)findViewById(R.id.txtHeaderText);
        txtHeader.setText(getScreenHeader());

and i am returning the empty string

protected String getScreenHeader(){
        return "";
    }

In another activity i will do in this way.

public  final static String SCREEN_NAME = "Dashboard";
@Override
    protected String getScreenHeader() {
        return SCREEN_NAME;
    }

How can i do this For IMAGE-VIEW.

Sorry for my English.

Thansks, Nikhil.

1
  • not getting the question May 12, 2012 at 9:27

1 Answer 1

1

You will need to use a Bitmap object such as this:

 Bitmap b = getBitmapImage();
 ImageView img = (ImageView )findViewById(R.id.imgView);
 img.setImageBitmap(b);
1
  • Then you need to explain what you do need. May 12, 2012 at 10:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.