문제

This is an open question and I was really hoping for advice...

I am planning on creating a mobile app which will track your steps and distance (based on GPS), while sitting in your pocket.

I was planning to make the app out of html5 as I know you can calcualte the motion of the device using this

So, I am really asking if people think this is possible on HTML5?

Thanks

도움이 되었습니까?

해결책

Assuming you know JavaScript, you should be able to accomplish this with PhoneGap's Geolocation object.

Appcelerator has Titanium.Geolocation as well.

다른 팁

If you plan to do it with HTML5 and PhoneGap is probably your best option. But you'll still need to program a background service* in order to handle tracking the location while the app isn't actively in use.

It sounds like the real work will need to be done in Java either way so I think you should just make a regular Android application. But as I said PhoneGap is still an option for the interface if that's what you really want.

* The background service will still need to be done with Android API's. Which would then need to be hooked into PhoneGap. It might just be simpler to make a native app.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top