The way I do it is:

class myActivity extends Activity {
    public static Activity me = null;
    ...
    protected void onCreate(Bundle icicle) {
         ...
        me = this;
        ...
        };
    };

class myClass {
    void myMthd() {
        ...
        Intent  myIntnt = myActivity.me.getIntent();
        ...
        };
    };

Hope this helps.

Jim Renkel


On Mar 22, 1:04 pm, Raja Nagendra Kumar <[EMAIL PROTECTED]>
wrote:
> Nope.. I thought there should be some way as most of the new
> frameworks such as spring etc does have application level context to
> reduce refernce passing..
>
> Regards,
> Raja Nagendra Kumar,
> C.T.Owww.tejasoft.com
--~--~---------~--~----~------------~-------~--~----~
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
[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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to