Note that there are some explanatory texts on larger screens.

plurals
  1. POActivityNotFound - Launching Google Map using Intent
    primarykey
    data
    text
    <p>I am writing a program in which i am user to launch Google Map in Android, to launch Google Map i am using Intent but getting problem.</p> <p><strong>Error says:</strong> </p> <pre><code> android.app.Activity.startActivityForResult(Activity.java:3395) </code></pre> <p><strong>Logcat:-</strong></p> <pre><code>12-13 15:00:15.620: E/AndroidRuntime(5819): FATAL EXCEPTION: main 12-13 15:00:15.620: E/AndroidRuntime(5819): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=?q=pizza+hut48.89364,2.33739&amp;z=16 } 12-13 15:00:15.620: E/AndroidRuntime(5819): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1580) 12-13 15:00:15.620: E/AndroidRuntime(5819): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1431) 12-13 15:00:15.620: E/AndroidRuntime(5819): at android.app.Activity.startActivityForResult(Activity.java:3434) 12-13 15:00:15.620: E/AndroidRuntime(5819): at android.app.Activity.startActivityForResult(Activity.java:3395) 12-13 15:00:15.620: E/AndroidRuntime(5819): at android.app.Activity.startActivity(Activity.java:3605) 12-13 15:00:15.620: E/AndroidRuntime(5819): at android.app.Activity.startActivity(Activity.java:3573) 12-13 15:00:15.620: E/AndroidRuntime(5819): at com.example.gpstracking.AndroidGPSTrackingActivity$1.onClick(AndroidGPSTrackingActivity.java:41) 12-13 15:00:15.620: E/AndroidRuntime(5819): at android.view.View.performClick(View.java:4223) 12-13 15:00:15.620: E/AndroidRuntime(5819): at android.view.View$PerformClick.run(View.java:17275) 12-13 15:00:15.620: E/AndroidRuntime(5819): at android.os.Handler.handleCallback(Handler.java:615) 12-13 15:00:15.620: E/AndroidRuntime(5819): at android.os.Handler.dispatchMessage(Handler.java:92) 12-13 15:00:15.620: E/AndroidRuntime(5819): at android.os.Looper.loop(Looper.java:137) 12-13 15:00:15.620: E/AndroidRuntime(5819): at android.app.ActivityThread.main(ActivityThread.java:4921) 12-13 15:00:15.620: E/AndroidRuntime(5819): at java.lang.reflect.Method.invokeNative(Native Method) 12-13 15:00:15.620: E/AndroidRuntime(5819): at java.lang.reflect.Method.invoke(Method.java:511) 12-13 15:00:15.620: E/AndroidRuntime(5819): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1036) 12-13 15:00:15.620: E/AndroidRuntime(5819): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:803) 12-13 15:00:15.620: E/AndroidRuntime(5819): at dalvik.system.NativeStart.main(Native Method) 12-13 15:00:23.730: I/Process(5819): Sending signal. PID: 5819 SIG: 9 </code></pre> <p>Code <strong>to Launch Google Map</strong>, to show nearby PizzaHut using Intent</p> <pre><code> double latitude = gps.getLatitude(); double longitude = gps.getLongitude(); String uriBegin = latitude + "," + longitude; String uriString = "?q=pizza+hut" + uriBegin + "&amp;z=16"; Uri uri = Uri.parse(uriString); Intent intent = new Intent(android.content.Intent.ACTION_VIEW, uri); startActivity(intent); </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload