w3c geolocation working but prompt not showing

by geow » Thu, 19 May 2011 18:44:46 GMT

Sponsored Links
 Hi everybody, I am trying to embed a web app which uses google maps
JavaScript API and W3C geolocation in a Web View. The applicaion works
but it doesn't show any prompt for geolocation permission to the users
and I cant' find the problem. Here the AndroidManifest.xml:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android=" http://schemas.android.com/apk/res/android" ;
    <uses-permission android:name="android.permission.INTERNET"/>

    <application android:icon="@drawable/icon" android:label="@string/
app_name" android:debuggable="true" >
        <activity android:name=".bottegheActivity"
android:theme="@android:style/Theme.NoTitleBar" >

                <action android:name="android.intent.action.MAIN" />
android:name="android.intent.category.LAUNCHER" />


And here the java code:

package it.progettaremappeonline;

import android.app.Activity;
import android.os.Bundle;
import android.webkit.GeolocationPermissions.Callback;
import android.webkit.WebChromeClient;
import android.webkit.WebView;

public class bottegheActivity extends Activity {

        WebView webView;

        public void onCreate(Bundle savedInstanceState) {
        webView = (WebView) findViewById(R.id.webview);
        webView.loadUrl(" http://www.progettaremappeonline.it/test/ 
        webView.setWebChromeClient(new WebChromeClient() {
                 public void onGeolocationPermissionsShowPrompt(String origin,
android.webkit.GeolocationPermissions.Callback callback) {
                    callback.invoke(origin, true, false);


Thanks for helping!!


Other Threads

1. Unexpected behavior with animated views

I am using a button to trigger an animation of a view. This button
toggles the view, such that the view slides on and off the screen...

      final Animation animout = AnimationUtils.loadAnimation(this,
R.anim.slideout );
      final Animation animin = AnimationUtils.loadAnimation(this,
R.anim.slide );


2. Android Market: New country/region pricing - non-US sales drop to zero

Hard to say from the outside if this is connected, but...

After setting a variety of country/region pricing in the Android
Market console - GBP, EUR and so forth - I continue to see sales in
USD only, at the USD price point of $2.99. I'd expect sales in other
currencies, or the exchange rate equivalent, but there's none of that.
After enjoying a constant stream of purchases from outside the US,
such sales are completely gone now. How I can tell? 90%+ of sales for
the app are from outside the US, mostly the UK, where the app is
targeted at. This is going on for a few days now where sales have
abruptly approached zero.
This is on an US based account - anybody else seeing this?


3. Device Serial #

4. NmeaListener not working in 2.3.3

5. how to develope online video

6. Are you submitting your app to more than just the Android Market?

7. Creating a class and migrating causes NullPointerException