I am getting an Application Error : Com.rect
An Error has occurred in com.rect
ResourceID #0xFFF0000.
when i execute this code
package com.rect;


public class RectDemo extends Activity
{
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle icicle)
    {
        super.onCreate(icicle);
        setContentView(new DrawCanvas(this));
    }
}
class DrawCanvas extends View
{
        Paint paint ;
        public DrawCanvas(Context context)
        {
                super(context);
                setFocusable(true);

        }
        public void onDraw(Canvas c)
        {
                if (paint== null)
                {
                        paint = new Paint();
                }
                paint.setARGB(100,225,225,0);
                setBackground(Color.RED);
                c.drawRect(10f,10f,40f,20f,paint);
        }
}

so please help me
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to