Popular questions for this item

I experience more than 100 java errors while following the customisation steps

You may need to clean the project. Or select android version (right click->properties->android and select android version).

If it still shows error, please replace all com.kungfunguyen.onepicsoneword with your package name.

How can we change when the full page ad shows. After each one is against ADMOB tos. After every 3 would be best.

You can config it. I provided that option. You can config it to every 2, every 3, every 4,... whatever you want. Please read the documentation for more details.

there is a way to put them in random order?

No, if I provide this option I also need to implement “Resume” button. If you still want that function, you can buy an extended version and hire a freelancer to do it for you.

The In App purchase from your demo gives an error, so I dont know if I am setting it up right. ERROR. error processing purchase BM-CCH-17

First step :

Check my demo apk at https://play.google.com/store/apps/details?id=com.kungfunguyen.onepicsoneword.car. If it works it means your code is error. In-app purchase is out of my reach so I can’t help you debug it. I’m sure that if you follow my documentation it should works.

If it doesn’t work, it means you have problem with in-app payment. Please check your credit card, etc.

Hello , can i edit game to make it in Arabic or French lang ?

I don’t know about Arabic, but French is possible. You just need to replace all English words to French words

Are you planing to add Admob Banner Ads?

No, I won’t. There’s not enough space for banner ads. If you still want it you can buy an extended version and hire a freelancer to customize it for you.

im getting this error 03-25 07:41:57.018: E/AndroidRuntime(1282): FATAL EXCEPTION: main 03-25 07:41:57.018: E/AndroidRuntime(1282): Process: com.kungfunguyen.onepicsoneword, PID: 1282 03-25 07:41:57.018: E/AndroidRuntime(1282): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.kungfunguyen.onepicsoneword/com.kungfunguyen.onepicsoneword.StartActivity}: java.lang.NullPointerException 03-25 07:41:57.018: E/AndroidRuntime(1282): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195) 03-25 07:41:57.018: E/AndroidRuntime(1282): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245) 03-25 07:41:57.018: E/AndroidRuntime(1282): at android.app.ActivityThread.access$800(ActivityThread.java:135) 03-25 07:41:57.018: E/AndroidRuntime(1282): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) 03-25 07:41:57.018: E/AndroidRuntime(1282): at android.os.Handler.dispatchMessage(Handler.java:102) 03-25 07:41:57.018: E/AndroidRuntime(1282): at android.os.Looper.loop(Looper.java:136) 03-25 07:41:57.018: E/AndroidRuntime(1282): at android.app.ActivityThread.main(ActivityThread.java:5017) 03-25 07:41:57.018: E/AndroidRuntime(1282): at java.lang.reflect.Method.invokeNative(Native Method) 03-25 07:41:57.018: E/AndroidRuntime(1282): at java.lang.reflect.Method.invoke(Method.java:515) 03-25 07:41:57.018: E/AndroidRuntime(1282): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) 03-25 07:41:57.018: E/AndroidRuntime(1282): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) 03-25 07:41:57.018: E/AndroidRuntime(1282): at dalvik.system.NativeStart.main(Native Method) 03-25 07:41:57.018: E/AndroidRuntime(1282): Caused by: java.lang.NullPointerException 03-25 07:41:57.018: E/AndroidRuntime(1282): at com.kungfunguyen.onepicsoneword.inappbilling.util.IabHelper.startSetup(IabHelper.java:267) 03-25 07:41:57.018: E/AndroidRuntime(1282): at com.kungfunguyen.onepicsoneword.StartActivity.LoadListeners(StartActivity.java:360) 03-25 07:41:57.018: E/AndroidRuntime(1282): at com.kungfunguyen.onepicsoneword.StartActivity.onCreate(StartActivity.java:123) 03-25 07:41:57.018: E/AndroidRuntime(1282): at android.app.Activity.performCreate(Activity.java:5231) 03-25 07:41:57.018: E/AndroidRuntime(1282): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) 03-25 07:41:57.018: E/AndroidRuntime(1282): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)

If you got any error log about iaphelper.java . Please don’t worry, it’s only happens on emulator, not real device.

How to turn off in-app purchase ?

In StartActivity.java find “checkboxAds.setVisibility(View.INVISIBLE);” in line 129 and uncomment it.

In PlayActivity.java replace ivGetCoins = (ImageView) findViewById(R.id.icon_get_coins);

with ivGetCoins = (ImageView) findViewById(R.id.icon_get_coins); ivGetCoins.setVisibility(View.INVISIBLE);

In app purchase doesn’t work.

For those who have bought or going to purchase, I just want to comment that this template is definitely a working template as I have finished and published mine. All you need is just pay little attention on how the code works, do some searching of reference code and do a lot of testing. The in-app working perfectly. If it doesn’t work, pls make sure you: 1) Upload an APK in draft mode (allow 1-2 hrs to populate) 2) Configure you in-app product and Set it to active 3) Add a test account (different from your developer account) 4) install the same apk (must be signed apk with same version code). You can do this via adb install option 5) use your device with the test account to test the in-app.

upgradedb.txt does not work

Sorry, it’s my fault. Please find this function in src/com/kungfunguyen/onepiconeword/db/DatabaseHandler.java line 46

@Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { /*// Upgrade the Categories/Levels/Words. Never drop tables here. // Drop older table if existed db.execSQL(“DROP TABLE IF EXISTS ” + WordInfoDB.DATABASE_TABLE + ”;”); db.execSQL(“DROP TABLE IF EXISTS ” + LevelInfoDB.DATABASE_TABLE + ”;”); db.execSQL(“DROP TABLE IF EXISTS ” + CategoryInfoDB.DATABASE_TABLE + ”;”); db.execSQL(“DROP TABLE IF EXISTS ” + AchievementInfoDB.DATABASE_TABLE + ”;”); // Create tables again onCreate(db); */ DBHelper.upgrade(db,mContext); }


@Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { db.execSQL(“DROP TABLE IF EXISTS ” + WordInfoDB.DATABASE_TABLE + ”;”); onCreate(db); DBHelper.upgrade(db,mContext); }

You also need to change database version from 1 to 2

public static final int DATABASE_VERSION =1;

Change it to

public static final int DATABASE_VERSION =2;

Every time upgradedb.txt is run all database will be clear , and install new images in upgradedb.txt

Show more