I've updated to 1.5 release 3 on both Ubuntu 8.04 and Windows XP Pro 
using Eclipse and latest ADT Plugin (0.9 Final).  This snippet of code 
is still not working on the emulator whereas it was before 1.5.  What am 
I missing here?  The User Permissions are set to ACCESS_FINE_LOCATION 
and the minimal API to 3 and level 3 AVD. I set the   The Log.v still 
says the Location is null.

   public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
      
        LocationManager locmgr = 
(LocationManager)getSystemService(this.LOCATION_SERVICE);
        if(locmgr == null)
            Log.v("err","Couldn't get locmgr");
        Location loc = 
locmgr.getLastKnownLocation(LocationManager.GPS_PROVIDER);
        if(loc == null)
            Log.v("err","loc is null");
    }

So is GPS emulation still broken?

Thanks,
Brian Conrad
JyotishTools.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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to