Obviously, I don't fully context. Q: How do I get the second lm_distance variable to not be null below. Thanks for any leads! -cellurl
------------------------------------ package org.wikispeedia.com.example.android.simplewiktionary4; public class Translate extends Activity implements OnClickListener { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); onCreate(savedInstanceState); lm_distance = (LocationManager)getSystemService(Context.LOCATION_SERVICE); //lm_distance is android.location.LocationManager@1234 Speedlimit speedlimit= new Speedlimit(); } -------------------------------------------- package org.wikispeedia.speedlimit; public class Speedlimit { public Speedlimit() { lm_distance = (LocationManager)getSystemService(Context.LOCATION_SERVICE); //lm_distance null } } -- 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