Thanks for the response! The other problem I have with this is I'm showing ads with admob but within the webview rather than using the android native code (theres a good reason for this) but would this sort of code be scaleable to work with admob too? I'm not very familiar with JavaScript.
On Aug 28, 2:45 pm, "Maps.Huge.Info (Maps API Guru)" <[email protected]> wrote: > 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

