Do you wanna add the ImageView into Layout when start a Activity??

2009/3/21 Chetan <hackpal...@gmail.com>

>
> 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);
>        }
> >
>


-- 
Best Regards!
--------------------------------------------------------------------------------

王心锋
Software Engineer/AndroidOS Creator
Email: kyowxf2...@gmail.com| Web: http://androidos.cc| Community:
http://androidos.cc/bbs
Tel:0551-2341751 Mobile: 13485512230
Address: 34#503,7#602 ShuNanTingYuan, WangJiang Road,HeFei City,An Hui
Province

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to