It looks like your activity is not bound to the intent. Have you bound it in
manifest.xml ?

Le 19 nov. 2009 05:05, "Esmail" <[email protected]> a écrit :

Pierre Henry Perret wrote: > What is the error trace ?
Ok, this is what I get:

11-18 22:03:07.485: ERROR/Error(711):
android.content.ActivityNotFoundException: No Activity found to handle
Intent
{ action=android.intent.action.VIEW data=geo:0,0?q=white+house
11-18 22:03:07.485: ERROR/Error(711):  }

and this is the code (fails regardless of the address):

try
{
    String address = addressfield.getText().toString();
    address = address.replace(' ', '+');
    Intent geoIntent = new Intent(android.content.Intent.ACTION_VIEW,
Uri.parse("geo:0,0?q=" + address));
    startActivity(geoIntent);

} catch (Exception e) { AlertDialog ad = adb.create(); ad.setMessage("Failed
to Launch!");...
    Log.e("Error", e.toString());
}

--

You received this message because you are subscribed to the Google Groups
"Android Beginners" group....

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to