[android-developers] Re: WebView and geolocation questions

2011-04-23 Thread Maps.Huge.Info
Have you considered using Android code to write your own location
service? You have a lot more options doing it this way.

-John Coryat

-- 
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


[android-developers] Re: WebView and geolocation questions

2011-04-23 Thread Moose
My purpose in developing this app is to enable access to a webapp. A 
particular tool in this webapp using google maps. The webapp also needs to 
function on a browser.

I am confused by the lack of functioning samples and the unhelpful 
documentation available.

If anyone has any experience getting this to work I would appreciate the 
assistance.

Thanks

-- 
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

Re: [android-developers] Re: WebView and geolocation questions

2011-04-23 Thread Mark Murphy
On Sat, Apr 23, 2011 at 7:19 PM, Moose  wrote:
> My purpose in developing this app is to enable access to a webapp. A
> particular tool in this webapp using google maps. The webapp also needs to
> function on a browser.

Either write an HTML5 offline-cached Web app, or use PhoneGap as your
container. I'm not sure what you're gaining by rolling your own
container.

> I am confused by the lack of functioning samples and the unhelpful
> documentation available.

If nothing else, you're not calling
webView.getSettings().setGeolocationEnabled(true);

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.6 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


Re: [android-developers] Re: WebView and geolocation questions

2011-04-23 Thread Moose
Thanks for the suggestion, I will definitely be looking into phonegap - I 
have seen it mentioned a lot lately.

I added the call to enable geolocation - the link to the sample code I 
posted isn't actually my own stuff.

It still doesn't make any sense that this functionality doesn't work as is 
though. I would really appreciate any insight into the workings of 
Goelocation. Maybe by pulling apart the phonegap source I'll be able to 
figure something out.

I'm still interested in functioning examples.

-- 
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

Re: [android-developers] Re: WebView and geolocation questions

2011-04-23 Thread Moose
So I might have discovered my problem.

I borrowed a friends phone and tested my app on it. It works.
The device I had been testing it on was the motorola xoom (wifi only).

By logcat, it seems that on the phone (CM6), does make the call to 
onGeolocationPermissionsShowPrompt, while the tablet does not  (edit: and my 
old phone - also CM6 - does not make the call to 
onGeolocationPermissionsShowPrompt) .

Possibilities:
- no sim card?
  - if that is the case, can I force it to get location from wifi?
- difference in permissions required? (unlikely, because dream is running 
the same ROM - although the dream already has issues. It got thrown across 
the room and hasn't been quite the same since)

My company is planning on using the xoom with the data connection when we 
roll out, does someone own one that could test and make sure the sample 
works? I can export and sign the sample, or if you can make it from the 
source I specified at the start of the thread.
That being said - is there some explanation about why the app won't perform 
the call to onGeolocationPermissionsShowPrompt?

-- 
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

Re: [android-developers] Re: WebView and geolocation questions

2011-04-23 Thread Moose
Further testing: 
Phone that already worked (with sim card) works without sim card over wifi 
(or gps?). 
Other phone does not work with or without sim card.
XOOM - still doesn't work
Got friend to install apk - they say it works on their phone as well.

gps 'in use' icon never flashes on any of the devices

I am completely baffled by this.

-- 
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

Re: [android-developers] Re: WebView and geolocation questions

2011-04-24 Thread Mark Murphy
On Sun, Apr 24, 2011 at 2:28 AM, Moose  wrote:
> Further testing:
> Phone that already worked (with sim card) works without sim card over wifi
> (or gps?).
> Other phone does not work with or without sim card.
> XOOM - still doesn't work
> Got friend to install apk - they say it works on their phone as well.
> gps 'in use' icon never flashes on any of the devices
> I am completely baffled by this.

Off the cuff, it feels like a XOOM or Android 3.0 issue.
Unfortunately, we do not have the source code to Android 3.0.

I have no idea how HTML5 geolocation works on the emulator (with DDMS
or telnet as the source of geo fixes). You might try a 2.2 and a 3.0
emulator (note: not 2.3.3 -- buggy) and see what behaviors you see
there. If it works on the 3.0 emulator, then the problem may be
XOOM-specific, and I'd advise you to visit the MOTODEV discussion
boards to provide sample code and explain what you're seeing.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android 3.0 Programming Books: http://commonsware.com/books

-- 
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


Re: [android-developers] Re: WebView and geolocation questions

2011-04-24 Thread Moose
I just tried using phonegap as a front for it, however I have exactly the 
same problem. The test website somehow works in the firefox browser (not the 
AOSP browser though). I know firefox uses some really low level interaction 
with the hardware - I wonder if that might be why /it/ works.

-- 
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

Re: [android-developers] Re: WebView and geolocation questions

2011-05-16 Thread Andrew
I guess this is an old post. The follow up is that it was a problem with the
specific device that I was testing on. I got a new device and the problem is
a non-issue.
On Apr 24, 2011 4:07 PM, "Moose"  wrote:
> I just tried using phonegap as a front for it, however I have exactly the
> same problem. The test website somehow works in the firefox browser (not
the
> AOSP browser though). I know firefox uses some really low level
interaction
> with the hardware - I wonder if that might be why /it/ works.
>
> --
> 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

-- 
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