Hi
I am having problems going to the android market (from the code in the
mobile)
I am trying the two following approaches, both unsuccessful:
1)
myWebView = (WebView) findViewById(R.id.webview);
myWebView.getSettings().setJavaScriptEnabled(true);
myWebView.loadUrl("http://market.android.com/search?
q=pname:com.android.main.v30");
myWebView.setVisibility(RelativeLayout.VISIBLE);
with this approach, I get a frustrating not found error 404
2)
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("market://search?
q=pname:com.android.main.v30"));
startActivity(intent);
with this, I get the following error
07-29 12:48:56.103: ERROR/AndroidRuntime(240):
android.content.ActivityNotFoundException: No Activity found to handle
Intent { action=android.intent.action.VIEW data=market://search?
q=pname:com.android.main.v30 }
Does anybody know what I am missing?
Thanks a lot
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---