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 <[email protected]> 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 [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