from which API level there have been support for W3C Geolocation API?

by geow » Thu, 19 May 2011 21:57:12 GMT


Sponsored Links
 Hi everybody, do you know from which API level there have been support
for W3C Geolocation API in Android web app using WebView class?
Thanks,
G

-- 



Other Threads

1. Using Google Gears inside a web view

Hi, I am trying to use a Google Gears enabled site in Android's
WebView, but it fails, saying Gears is not installed.

For example, my test application sets up a WebView and loadUrls:
http://code.google.com/apis/gears/samples/hello_world_geolocation.html

and I see a "Gears is not installed" message.

The WebSettings on the WebView has JavaScript and Plugins enabled.
WebView.getPluginList is empty.


import java.util.List;

import android.app.Activity;
import android.graphics.Path;
import android.graphics.drawable.GradientDrawable.Orientation;
import android.os.Bundle;
import android.webkit.Plugin;
import android.webkit.PluginList;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.Button;
import android.widget.LinearLayout;

public class HelloAndroid extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        WebView webView = new WebView(this);
                WebSettings settings = webView.getSettings();
                settings.setJavaScriptEnabled(true);
                settings.setPluginsEnabled(true);
                webView.refreshPlugins(true);
                PluginList pluginList = webView.getPluginList();
                List list = pluginList.getList();
                for(int i = 0; i < list.size(); i++)
                {
                        Plugin plugin = (Plugin)list.get(i);
                }
                webView.loadUrl("http://code.google.com/apis/gears/samples/
hello_world_geolocation.html");

                LinearLayout layout = new LinearLayout(this);
                layout.setOrientation(LinearLayout.VERTICAL);
                Button button = new Button(this);
                layout.addView(button);
                layout.addView(webView);
        setContentView(layout);
    }
}

--~--~---------~--~----~------------~-------~--~----~

2. Runtime exception with JSONObject.put() ???

Hi,

When I call:

    JSONObject j= new JSONObject();
    j.put("mykey", "hello");

I get a runtime exception which has a message of:

    "Stub!"

This worked fine in the beta version before the final release. Are we
not supposed to be using this, or ..?

Thanks
--~--~---------~--~----~------------~-------~--~----~

3. AndroidHttpClient gone so now what

4. problems installing the sample NotePad application from the web

5. Android application stopped unexpected ly

6. NotePad sample app fails to install over the web

7. Anyone mind testing quickly?