I guess it depends on what you mean by "Web App." If you are talking about 
a purely Web-driven application that the user gets to by browsing to your 
website in Chrome or another browser, then you don't need to do anything 
special for Android.

I suspect, however, that you are talking about an Android app where most of 
the logic is in Javascript running in a WebView. In this case, you must 
have an Activity that created the WebView. This Activity is the logical 
place to initiate in-app billing. You can't call the in-app billing API 
directly from Javascript, but you can write a Java method to do it and then 
inject that Java method into your Javascript using 
WebView.addJavascriptInterface<http://developer.android.com/reference/android/webkit/WebView.html#addJavascriptInterface(java.lang.Object,
 
java.lang.String)>. 
Ian


On Wednesday, November 7, 2012 12:42:32 PM UTC-8, TreKing wrote:
>
> On Wed, Nov 7, 2012 at 8:25 AM, Juan Manuel Rodriguez Castro <
> [email protected] <javascript:>> wrote:
>
>> Thanks TreKing, i found the same information, but nothing about in-app 
>> billing at webapps. The Android API has no further information regarding 
>> this.
>
>
> Well, I haven't used either, so take this with a grain of salt until 
> someone with better knowledge comes around, but I expect that the two are 
> mutually exclusive. I would think you'd have an app that is a shell for 
> your web app, in which you could implement in-app billing. Then you'd have 
> your web app where a user would have an account and would sign in, perhaps 
> with their Google Account. Then the app passes the in-app billing 
> information to the web app ... somehow. Good luck with the somehow =)
>
>
> -------------------------------------------------------------------------------------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago 
> transit tracking app for Android-powered devices
>
>

-- 
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

Reply via email to