Hi Mark, Thanks for reply.
My observation over my Samsung Galaxy Spika I have installed one application from market which shows me my location so there is no problem in my device. Now in my app: I have set all the permission like <uses-permission android:name="android.permission.INTERNET"></ uses-permission> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> And it is running fine in emulator using mock location. So what else remaining. Please reply. Thanks, Vaikunth On Apr 1, 4:52 pm, Mark Murphy <mmur...@commonsware.com> wrote: > Vaikunth wrote: > > Hi Mark, > > >> Here is a sample application demonstrating obtaining your location via GPS: > > >>http://github.com/commonsguy/cw-android/tree/master/Service/WeatherPlus/ > > > The same thing happen the sample provided by you. > > In my device it is not working and in emulator it is working fine > > (when I send the lat and long). > > I am using eclips Ganymede. > > >> Assuming you have the proper permissions in your manifest, it should > >> just work. > > > I have set all the permission for the GPS in my application. > > > Waiting for your response. > > Add some logging statements to confirm whether you are actually getting > a GPS fix, as you may not get an actual forecast unless you are in the > United States. > > If that is not your problem, then your device may be broken. The code in > question has been used extensively and is known to work. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > _Beginning Android 2_ from Apress Now Available! -- 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 To unsubscribe, reply using "remove me" as the subject.