[英]In-app Billing Version 3 API SharedPreferences storage alternative
我正在研究Android的應用內結算版本3 API的實現 ,並在Android的示例代碼中遇到以下警告:
/*
* WARNING: on a real application, we recommend you save data in a secure way to
* prevent tampering. For simplicity in this sample, we simply store the data using a
* SharedPreferences.
*/
如果用戶購買了一個商品,我只需要存儲一個簡單的標志,並且使用SQLite數據庫似乎有點過頭了。 我只是想知道我的替代方案是什么,似乎Android似乎建議不要使用SharedPreferences。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.