I have an Activity which is packaged as a jar and I want to get the system service for Connectivity and use the ConnectivityManager. Hence, I am using getSystemService(Context.CONNECTIVITY_SERVICE). I want to use getActivity().getSystemService() or getApplication() of that activity but when I create a reference of it from other application(say Hello World) to which the jar file has already been added.
I want to have that application(Hello World) in another package. In this scenario the getApplication() method returns null. 1. Is there any way to get the application/ context? 2. Is there any other way by which i could access the getSystemService(Context.CONNECTIVITY_SERVICE) of the activity which i have bundled as the jar? Please Help! Thanks -- 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

