Re: [android-beginners] ViewGroup Problem

2010-01-28 Thread satish bhoyar
Actually I first tried with findViewById() but it failed & gave me Null Pointer exception on Vg then I thought because the Vg is not initialized thats why it might be failing so i did that way. I m not sure weather it is ok.. thanks, satish On Fri, Jan 29, 2010 at 3:08 AM, Justin Anderson wrote:

Re: [android-beginners] ViewGroup Problem

2010-01-28 Thread Justin Anderson
Probably because you have a null pointer... Logcat should be able to give you the name of the file and the line number where the problem occurs, but I would be willing to bet it is with this line: Vg V = new Vg(this);/* Vg is extending the ViewGroup */ I'm surprised that the application even

[android-beginners] ViewGroup Problem

2010-01-28 Thread satish bhoyar
Hi all, I am trying to extend the ViewGroup in my application. then from my main activity i will create a variable of type following is the code snippet public class NewViewGrp extends Activity { Vg V = new Vg(this);/* Vg is extending the ViewGroup */ TextView Tv; /** Called whe