GPS / event.speed issue

Hello again! 

I want to use the GPS / event.speed function in my App but I’m not getting any output from the function (on the device) !? 

Even in the demo app from corona I am getting no data… (on the device) 

If anyone could give me an example it would be very cool!

PS: I used the sample code from the corona documentation! 

Any help or pointers in the right direction would be gratefully appreciated.

For the best help, tell folks:

  • Your device make/ model / ++ OS version it is runnig
  • Version of Corona you built with
  • Output of debug logs if any
  • … yada yada

Okay…  :lol:

  • Samsung galaxy a5 / Android 5.0.2

  • Corona Version 2017.3068

  • no debug logs 

Hmm.  That seems a bit of an old copy of Corona.

It probably won’t help, but just in case give this a try.

Grab the latest version of Corona here:  https://developer.coronalabs.com/downloads/daily-builds/

Then try building again.

Okay I will try it and let you know if anything changes!

Thank you!!

Yeaah!!! It worked  :smiley:

Thank you very much!!! Now I will check for the latest updates of corona to avoid such issues.  :rolleyes:

Ps: The corona app looks really cool now…

Hmmm.  I just tried this and it isn’t working for me either.

Hardware: Samsung Galaxy Tab 4 (SM-T230NU)

OS: Android 4.4.2

Corona: 2017.3135

A quick look at ADB logs show no errors, just the basic startup header.

Well.  Good enough for me.  As long as you’ve got your app working I’m happy.

-Ed

hmm you have to run a view meters with your device because the GPS doesn’t recognize small movements… 

Hey… I want you to ask a quick question without starting a new topic…

Is it possible to limit the characters of a label / display.newText ( to display only  2 or 3 places behind the comma ) 

and to limit the characters of a user input / native.newTextField?

Thankssssss… I am feeling bad for asking so many questions  

Yes, you can use string.format() for that: https://docs.coronalabs.com/api/library/string/format.html

For example, lets say you wanted to limit the decimal places to 3 for a float:

local text = string.format("%.3f", math.pi ) print( text ) print( math.pi )

Thank you very much!!! 

For the best help, tell folks:

  • Your device make/ model / ++ OS version it is runnig
  • Version of Corona you built with
  • Output of debug logs if any
  • … yada yada

Okay…  :lol:

  • Samsung galaxy a5 / Android 5.0.2

  • Corona Version 2017.3068

  • no debug logs 

Hmm.  That seems a bit of an old copy of Corona.

It probably won’t help, but just in case give this a try.

Grab the latest version of Corona here:  https://developer.coronalabs.com/downloads/daily-builds/

Then try building again.

Okay I will try it and let you know if anything changes!

Thank you!!

Yeaah!!! It worked  :smiley:

Thank you very much!!! Now I will check for the latest updates of corona to avoid such issues.  :rolleyes:

Ps: The corona app looks really cool now…

Hmmm.  I just tried this and it isn’t working for me either.

Hardware: Samsung Galaxy Tab 4 (SM-T230NU)

OS: Android 4.4.2

Corona: 2017.3135

A quick look at ADB logs show no errors, just the basic startup header.