Android Forums

Go Back   These FORUMS ARE DISABLED!! OUR NEW FORUMS ARE AT http://androidforum.com/ > Android Coders > Android Development, Answers, Tutorials, and Code Snippets
Connect with Facebook

Click Here To Register!
 
 
LinkBack Thread Tools Display Modes
Old 02-02-2009, 10:03 PM   #1
Junior Member
 
Join Date: Jan 2009
Posts: 2
Friends: 0
View pulkit.bhardwaj's Profile   View pulkit.bhardwaj's Photo Album   View pulkit.bhardwaj's Blog   View Social Groups
Hi,

We're working on Location based services with android emulator. But the issue is that the application crashes when any of the following statements executes:-

Location location = locationManager.getLastKnownLocation(locationManag er.getBestProvider(CRITERIA, true));

OR
Location location = locationManager.getLastKnownLocation("gps");

We have also defined permissions in manifest.xml as follows:-

<uses-permission android:name="android.permission.ACCESS_GPS"/>
<uses-permission android:name="android.permission.ACCESS_LOCATION"/>

PS: we are also spoofing coordinates using ddms. Google map works fine, but our application keeps crashing.

Any inputs please. Thanks in advance.
pulkit.bhardwaj is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
 

Thread Tools
Display Modes




Unlocked G1 Phones | Buy T-Mobile G1 | Google Phone

All times are GMT -6. The time now is 03:43 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.
Copyright (c) 2012 TalkAndroid.com. All rights reserved.