thanks... i got it.. quit strange i removed that post from the group.. but looks you still got it. anyhow, thanks for your will to help
chris On May 22, 11:58 pm, Alexey Volovoy <avolo...@gmail.com> wrote: > why did you declare you View class static ? > Move it out of actvity. Create public method init in the view. Get an > extra in your activity and pass to View. > > On May 22, 3:45 pm, guruk <ilovesi...@gmail.com> wrote: > > > > > Hi, > > > i have a: > > > public class basal extends GraphicsActivity { > > > ---------- > > @Override protected void onCreate(Bundle savedInstanceState) { > > super.onCreate(savedInstanceState);setContentView(new > > SampleView > > (this)); } > > > private static class SampleView extends View implements > > OnGestureListener { > > private .... .... > > --------- > > > and just like to request my: db_table = getIntent().getStringExtra > > ("db_table"); > > as I did in all other Activites before. But i always get: "Can not > > make a static reference to the non-static method getIntent? > > > Anyhow... how can I get my StringExtra in this SampleView?? > > > Thanks > > Chris --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---