I want to initialize ImageView class in Class which do not extends
View.
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
System.out.println("Hi");
//mImageView = new ImageView();
mBitmap =
BitmapFactory.decodeFile("/data/data/javapadawan.android/
files/fromclick.jpg");
System.out.println("After decoding "+mBitmap.getRowBytes());
mImageView.setImageBitmap(mBitmap);
setContentView(R.layout.preview);
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---