2011-03-20 97 views

回答

2

我不知道副手,但你檢查了sample application?如果需要這些常量才能使應用內結算起作用,那麼它們應該在那裏。

2

這些僅僅是字符串,你可以讓自己的類,並從那裏引用它們:

public class Constants { 

    // These are the names of the fields in the request bundle. 
    public static final String BILLING_REQUEST = "BILLING_REQUEST"; 
    public static final String API_VERSION = "API_VERSION"; 
    public static final String PACKAGE_NAME = "PACKAGE_NAME"; 

} 

他們在SampleApplication通過@詹姆斯

+0

表示要跟進,我在一本包含教程:http://blog.blundell-apps.com/simple-inapp-billing-payment/ – Blundell 2012-05-11 16:33:47