Getting inflate exception in Android?

I don't know if this is the cause of your error, but your constructors call the init() function, and the init function uses that mPaint variable The mPaint variable is declared as Paint mPaint but it is never instantiated, so it is null. You'll be getting a nullPointerException there I think I don't know how the constructor of mPaint works, but you need to do something like this before you can use it: mPaint = new Paint mPaint() edit: ah: i'm seeing that your onDraw() does use Paint paint = new Paint() But that might be a bit too late?

I don't know if this is the cause of your error, but your constructors call the init() function, and the init function uses that mPaint variable. The mPaint variable is declared as Paint mPaint;, but it is never instantiated, so it is null. You'll be getting a nullPointerException there I think I don't know how the constructor of mPaint works, but you need to do something like this before you can use it: mPaint = new Paint mPaint(); edit: ah: i'm seeing that your onDraw() does use Paint paint = new Paint();.

But that might be a bit too late?

Thanx a lot. This was the only problem . Thanx a lot figuring it out – nikki Feb 4 at 11:01.

Final LayoutInflater inflater = (LayoutInflater)getSystemService(Context. Gallery = new GalleryConfig. Adapter = new LazyAdapterConfig.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions