public void run() {
button1.setText(R.string.btn1);
} });
<uses-permission android:name="com.android.vending.BILLING" />Package的名稱必須Rename,
package com.wsj.android.trivialdrivesample;換入你上傳App後的金鑰,
String base64EncodedPublicKey = "MIIBIjANBgkqhkiG9w0B...省略.....";Google Play Console中,產生程式中購買的對應物品,以便測試
AlertDialog alert = new AlertDialog.Builder(this).create(); alert.show(); // DisplayMetrics metrics = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(metrics); int h90 = (int)(0.9f*((float)metrics.heightPixels)) ; //高度設為90% alert.getWindow().setLayout(ViewGroup.LayoutParams.WRAP_CONTENT, h90); //