当前位置: 动力学知识库 > 问答 > 编程问答 >

android - Making In-app Billing Requests with Javascript

问题描述:

I am developing a webapp for android and I need a way to sell digital contents.

Is there a way to make make In-app Billing Requests with javascript or html5 ?

网友答案:

You can add html pages and javascript actions to your Android app using a web view inside the layout of your Activity/Fragment.

If you want to store the html and javascript pages into your app (like all the other java and xml elements) you must save them into an asset folder, and recall its contents through your activity.

See this example to have a better understanding how to link html/javascript actions with java android: https://github.com/alessandroargentieri/JavaScript-Android

分享给朋友:
您可能感兴趣的文章:
随机阅读: