Hi Mark,

Thanks for the reply. Have resolved the issue. Since I have set the X and Y
parameter as 0 and 0 and tried to override it in the createBitmap function
it gave error. I have another query. Can you please let me know is it
possible to a view(For example: ImageButton  or TextView) to a ViewGroup. I
am able to add the View successfully to the ViewGroup object, but the view
is not visible on screen.

     Play_Button = new ImageButton(context);

     LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(
                LinearLayout.LayoutParams.FILL_PARENT,
                LinearLayout.LayoutParams.FILL_PARENT);



Play_Button.setImageResource(com.android.internal.R.drawable.tt_player_icon_play);
       Play_Button.setLayoutParams(layoutParams);

If I try to add it to ViewGroup it is getting added but no display is seen
on screen. Can you please let me know what am I missing?

Thanks & Regards,
Sathya

On Thu, Nov 26, 2009 at 7:06 AM, Mark Murphy <[email protected]>wrote:

> sathya subbiah wrote:
> > Hi,
> >
> > I am trying to mention X and Y values for the Bitmap image, but the
> > phone panics on mentioning the values.
> >
> >
> > Bitmap temp_image =
> > Bitmap.createBitmap(mAlbumArtImage,0,0,old_width,old_height,matrix,true);
> > - Phone does not panic with this code as X and Y values are 0 and 0
> >
> > Panic code:
> > Bitmap temp_image =
> > Bitmap.createBitmap(mAlbumArtImage,2,2,old_width,old_height,matrix,true);
> > - On mentioning X and Y values in the code, the phone panics.
> >
> > Can anyone please let me know if I am missing anything.
>
> You are missing the Java stack trace, to tell you where you are going
> wrong. You can get the exception's stack trace from adb logcat, DDMS, or
> the DDMS perspective in Eclipse.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://twitter.com/commonsguy
>
> Android Development Wiki: http://wiki.andmob.org
>
> --
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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

Reply via email to