Autore Topic: Problema Mappa  (Letto 536 volte)

Offline Guccio92

  • Utente junior
  • **
  • Post: 66
  • Respect: 0
    • Mostra profilo
  • Dispositivo Android:
    Galaxy S5
  • Sistema operativo:
    Windows 7 64bit/ Mavericks 10.9
Problema Mappa
« il: 24 Gennaio 2014, 10:12:13 CET »
0
Salve io vorrei creare una web view per una mappa con un indirizzo specifico, ma non si visualizza...ho provato anche a mettere l'api key...ma sicuramente ho sbagliato qualcosa....Posto un pezzo del mio codice java e il manifest
Codice (ActionScript 3): [Seleziona]
[code=java]public class ActivityGiorgMappa extends Activity {
       
        private WebView mWebView;
        private String url = "https://www.google.it/maps/preview/place/Autonoleggio+Autocarrozzeria+Giorgi+Di+Giorgi+Claudio,+Viale+Guido+Rossa,+Aulla,+MS/@44.203712,10.0137144,17z/data=!3m1!4b1!4m2!3m1!1s0x12d5194731901c1f:0x2285c4750e2f2fda";
       
       

        @Override
        protected void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                setContentView(R.layout.activity_activity_giorg_mappa);
               

                mWebView = (WebView) findViewById(R.id.webView1);
                 mWebView.setWebViewClient(new WebViewClient());
     mWebView.loadUrl(url);

               
        }
[/code]

Manifest:
Codice (XML): [Seleziona]
 
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
   package="com.example.giorgi_app3"
   android:versionCode="1"
   android:versionName="1.0"
   android:apiKey="............."
        >


   
    <uses-sdk
       android:minSdkVersion="8"
       android:targetSdkVersion="18" />

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.CALL_PHONE" />

    <application
       android:allowBackup="true"
       android:icon="@drawable/ic_launcher"
       android:label="@string/app_name"
       android:theme="@style/AppTheme" >
        <activity
           android:name="com.example.giorgi_app3.MainActivity"
           android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>

Post unito: 24 Gennaio 2014, 18:14:19 CET
Allego il logcat di errori:

01-24 10:50:55.670: W/EGL_emulation(1769): eglSurfaceAttrib not implemented
01-24 10:50:55.670: D/OpenGLRenderer(1769): Enabling debug mode 0
01-24 10:51:46.404: W/EGL_emulation(1769): eglSurfaceAttrib not implemented
01-24 10:51:51.494: W/EGL_emulation(1769): eglSurfaceAttrib not implemented
01-24 10:51:54.244: W/EGL_emulation(1769): eglSurfaceAttrib not implemented
01-24 10:51:55.764: D/dalvikvm(1769): GC_FOR_ALLOC freed 61K, 3% free 5715K/5840K, paused 15ms, total 22ms
01-24 10:51:56.174: W/EGL_emulation(1769): eglSurfaceAttrib not implemented
01-24 10:51:58.374: W/EGL_emulation(1769): eglSurfaceAttrib not implemented
01-24 10:52:00.074: D/dalvikvm(1769): GC_FOR_ALLOC freed 74K, 2% free 6641K/6776K, paused 13ms, total 14ms
01-24 10:52:00.084: W/GooglePlayServicesUtil(1769): Google Play Store is missing.
01-24 10:52:00.084: W/GooglePlayServicesUtil(1769): Google Play Store is missing.
01-24 10:52:00.094: W/GooglePlayServicesUtil(1769): Google Play Store is missing.
01-24 10:52:00.094: W/GooglePlayServicesUtil(1769): Google Play Store is missing.
01-24 10:52:00.094: W/GooglePlayServicesUtil(1769): Google Play Store is missing.
01-24 10:52:00.104: W/GooglePlayServicesUtil(1769): Google Play Store is missing.
01-24 10:52:00.244: W/EGL_emulation(1769): eglSurfaceAttrib not implemented
01-24 10:52:02.894: D/AndroidRuntime(1769): Shutting down VM
01-24 10:52:02.904: W/dalvikvm(1769): threadid=1: thread exiting with uncaught exception (group=0xb2d3cb08)
01-24 10: c52:02.914: E/AndroidRuntime(1769): FATAL EXCEPTION: main
01-24 10:52:02.914: E/AndroidRuntime(1769): Process: com.example.giorgi_app3, PID: 1769
01-24 10:52:02.914: E/AndroidRuntime(1769): java.lang.NullPointerException
01-24 10:52:02.914: E/AndroidRuntime(1769):    at android.app.Instrumentation.execStartActivity(Instrumentation.java:1417)
01-24 10:52:02.914: E/AndroidRuntime(1769):    at android.app.Activity.startActivityForResult(Activity.java:3423)
01-24 10:52:02.914: E/AndroidRuntime(1769):    at android.app.Activity.startActivityForResult(Activity.java:3384)
01-24 10:52:02.914: E/AndroidRuntime(1769):    at android.app.Activity.startActivity(Activity.java:3626)
01-24 10:52:02.914: E/AndroidRuntime(1769):    at android.app.Activity.startActivity(Activity.java:3594)
01-24 10:52:02.914: E/AndroidRuntime(1769):    at com.google.android.gms.dynamic.a$5.onClick(Unknown Source)
01-24 10:52:02.914: E/AndroidRuntime(1769):    at android.view.View.performClick(View.java:4424)
01-24 10:52:02.914: E/AndroidRuntime(1769):    at android.view.View$PerformClick.run(View.java:18383)
01-24 10:52:02.914: E/AndroidRuntime(1769):    at android.os.Handler.handleCallback(Handler.java:733)
01-24 10:52:02.914: E/AndroidRuntime(1769):    at android.os.Handler.dispatchMessage(Handler.java:95)
01-24 10:52:02.914: E/AndroidRuntime(1769):    at android.os.Looper.loop(Looper.java:137)
01-24 10:52:02.914: E/AndroidRuntime(1769):    at android.app.ActivityThread.main(ActivityThread.java:4998)
01-24 10:52:02.914: E/AndroidRuntime(1769):    at java.lang.reflect.Method.invokeNative(Native Method)
01-24 10:52:02.914: E/AndroidRuntime(1769):    at java.lang.reflect.Method.invoke(Method.java:515)
01-24 10:52:02.914: E/AndroidRuntime(1769):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777)
01-24 10:52:02.914: E/AndroidRuntime(1769):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)
01-24 10:52:02.914: E/AndroidRuntime(1769):    at dalvik.system.NativeStart.main(Native Method)
« Ultima modifica: 24 Gennaio 2014, 18:14:19 CET da Guccio92, Reason: Merged DoublePost »