小编San*_*ngh的帖子

在应用程序计费中,IAB设置成功,但quaryInventory报告未设置IAB帮助程序

我正在尝试在app结算中实施.我已经使用了trivialdrivesample.

public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    // load game data
    loadData();


    String base64EncodedPublicKey = "my key";



    // Create the helper, passing it our context and the public key to verify signatures with
    Log.d(TAG, "Creating IAB helper.");
    mHelper = new IabHelper(this, base64EncodedPublicKey);

    // enable debug logging (for a production application, you should set this to false).
    mHelper.enableDebugLogging(true);

    // Start setup. This is asynchronous and the specified listener
    // will be called once setup completes.
    Log.d(TAG, "Starting setup.");
    mHelper.startSetup(new IabHelper.OnIabSetupFinishedListener() …
Run Code Online (Sandbox Code Playgroud)

android google-play

10
推荐指数
1
解决办法
2989
查看次数

布局和布局之间的区别-400dp-land

该应用程序的要求是它应该适用于所有设备.我支持这个

以下布局定义 -

layout/
layout-land/
layout-sw400dp-port/
layout-sw400dp-land/
layout-sw600dp-port/
layout-sw600dp-land/
layout-sw7200dp-port/
layout-sw7200dp-land/
Run Code Online (Sandbox Code Playgroud)

它适用于7"和10"平板电脑.

对于sw400dp设备,例如像Samsung Note等5"设备,他们正在使用layout/layout-land/.我如何强制使用这些设备 layout-sw400dp-port/layout-sw400dp-land/

android android-layout android-screen android-screen-support

5
推荐指数
1
解决办法
2084
查看次数