Hi Crontabpy, Thanks for the tip. I googled for this issue and I found that I only have to change the Location on windows configuration:
"In Windows XP, the problem is solved changing the numbers, time, date format from your language to english." (you'll also have to restart eclipse) As a matter of documentation, for more details on this issue, please see http://code.google.com/p/android/issues/detail?id=915 On Fri, Dec 12, 2008 at 12:03 PM, crontabpy <[email protected]> wrote: > > hi there aldo, > > I remember I've read something about this on a post, think there's a > work around in some settings so you can test it in your own O.S. > language. just search in this group. > > good luck! > > > > On Dec 12, 10:44 am, "Aldo Neto" <[email protected]> wrote: > > Thanks a lot for all the help, but apparently the problem is very odd. I > > didn't know what else to do, so I started asking people to test on they > > machines and after a few tests, the GPS simulation only worked on the > > English version of the Windows. I have a Portuguese windows installed in > my > > machine and it didn't work, but when I run the same code in a English > > Windows it worked. I really have no idea why this happens, but after 5 > tests > > I think I can tell that the problem is the language version of my OS!!!! > > (what a shame) > > > > On Thu, Dec 11, 2008 at 12:56 PM, Christine <[email protected] > >wrote: > > > > > > > > > I have > > > locMgr = > > > (LocationManager) getBaseContext().getSystemService( > > > Context.LOCATION_SERVICE); > > > > > but I don't remember why I put in the "getBaseContext()". > > > Also, as Mark said, I never tried with 0,0 for time and distance > > > intervals. > > > > > On Dec 11, 2:33 pm, Mark Murphy <[email protected]> wrote: > > > > Aldo Neto wrote: > > > > > I have a very simple code (see below) that I took from a > > > > > tutorial but even that doesn't work. I believe that I'm missing > > > > > something here, but I have no idea what it might be. > > > > > > The only difference I see off the top of my head between what I've > used > > > > and what you have there is that I never use 0, 0 for the minimum > > > > distance and time. I always use some non-zero value there. > > > > > > You say you took code from a tutorial. Have you tried just using the > > > > tutorial without modifications? Does that work? > > > > > > If it works, then the problem is clearly with the modifications you > made > > > > to the tutorial code. > > > > > > If it does not work, there are any number of possible causes, > including > > > > a bad tutorial. > > > > > > If you want to try a different starting set of code, you can try: > > > > > >http://commonsware.com/Android > > > > > > Download the source to Version 1.9 of my book. The Internet/Weather > and > > > > Service/WeatherPlus examples both use locations. They go a little > > > > overboard on the permissions, as I too had frustrations with the > > > > location stuff, during the M5->0.9->1.0 SDK shifts. They definitely > work > > > > under 1.0r1. I'll be trying them on 1.0r2 before the year's out. > > > > > > -- > > > > Mark Murphy (a Commons Guy)http://commonsware.com > > > > > > Android Training on the Ranch! -- Mar 16-20, 2009 > > >http://www.bignerdranch.com/schedule.shtml > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

