2011-03-20 100 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