In Logout callback, include the below code snippet
Saturday, 27 December 2014
Saturday, 13 December 2014
Testing IAP/In-App Purchase Subscriptions with Google Play/Android
To test the app auto-renewing subscription product type done the following:
- Uploaded a draft binary to Google Play but not published it.
- Created and published the Subscription product in the developer console.
- Added my Google account to the list of test accounts in the developer console
- Exported my APK from eclipse (with the same package name and version name/code as the one uploaded to Google Play)
- Installed this exported APK on my test device which is logged in with the test account.
Saturday, 29 November 2014
Friday, 28 November 2014
Android softkeyboard in Genymotion (emulator)
Go to
Reference
Settings
-> Language & input
and open the Default
item under Keyboard & Input Methods
. There is a Hardware
setting that you can toggle on/off. When it is on you use your physical keyboard and when it is off the standard soft keyboard should pop-up whenever a text field gets focus.Reference
Sunday, 23 November 2014
Change color of Cursor (Titanium)
1. Create mytheme.xml ( platform/android/res/values/mytheme.xml )
<?xml version="1.0" encoding="UTF-8" ?>
<resources>
<style name="Theme.CursorColor" parent="@style/Theme.AppCompat.Translucent.NoTitleBar">
<item name="android:editTextStyle">@style/editText</item>
</style>
<style name="editText" parent="@android:style/Widget.EditText">
<item name="android:textCursorDrawable">@null</item>
<item name="android:textColor">#000000</item>
</style>
</resources>
2. Modify Tiapp.xml<android xmlns:android="http://schemas.android.com/apk/res/android">
<manifest>
<application android:theme="@style/Theme.CursorColor"/>
<!-- Need to specify at least API level 11 for Titanium SDK 3.2.x and prior -->
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="19"/>
</manifest>
</android>
Subscribe to:
Posts (Atom)