2012-01-02 26 views

回答

0

我想請您看看其他SO後:

In-App Billing After Purchase

SharedPreferences看起來是這樣的:

if(settings.getBoolean("isAwesomeItemBought") { 
    buyButton.setVisibility(View.GONE); 
    buyText.setVisibility(View.VISIBLE); 
} 

或者我真的建議格倫的回答是:https://stackoverflow.com/a/8571465/805031

+0

嗨,那實際上是我做的另一篇文章。由於我沒有使用他提到的Dungeons教程,所以我在哪裏放置sharedPreferences代碼時遇到了問題,而是使用了上面我的文章中的Blundell教程。希望你能幫助更多! :) – 2012-01-02 06:19:31