Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

webview and gps

Is there a way to use the GPS functionality and to show the retreived GPS information in the webview?

— asked May 4th 2010 by Hans Blaauw
  • gps
  • location
0 Comments

4 Answers

  • depends… you can pass this info into the Window object and then overlay a label or something with the gps info. What are you trying to do? that will help us determine how to help you.

    — answered May 4th 2010 by Clint Tredway
    permalink
    0 Comments
  • To be more specific. Is there a way to fill input fields in a HTML file that is loaded in a webview with GPS values or accelerometer from a native part of the app?

    Don't get me wrong, I like Appcelerator but the lack of easily creating a UI (few steps back in time) forces me back to a combination of native for some elements and webviews.

    Is there anyone that has created a sample that works and is a complete project that can be deployed on an Android?

    — answered May 4th 2010 by Hans Blaauw
    permalink
    0 Comments
  • is this a local html file or an external html file?

    — answered May 4th 2010 by Clint Tredway
    permalink
    0 Comments
  • Could be both, local or remote file. There are not many samples with a passing native values to webview html files.

    — answered May 5th 2010 by Hans Blaauw
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.