What you'll need to do is create a link from your webview into your
app by using a JavaScript command. Inside your app you create an
intent that opens the market app:
JavaScript:
// Launch Market App... (appid is package name)
function launchMarket( appId ) {
webViewClass.launchMarket( appId ) ;
}
Java:
public void launchMarket(String appId) {
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("market://details?id=" + appId));
startActivity(intent);
finish() ;
}
You'll also need the requisite code to allow all this to happen, I
assume you know how to do that already. If not, Mark Murphy has an
excellent book that details all this out.
-John Coryat
--
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