我正在尝试在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) 该应用程序的要求是它应该适用于所有设备.我支持这个
以下布局定义 -
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