Saturday 29 November 2014

Superuser permission for file manager (Genymotion)



  • Open file manager.
  • Open settings choose general settings.
  • Click on access mode change it to 'Root Access mode'





Creating Share folder in Genymotion


  • Go to your VirtualBox VM setting / Shared folder tab
  • Add a shared folder with the folder you want to shared, and check the "auto mount" option
  • Start your VM as usual from the Genymotion software
  • Your shared folder is available in the /mnt/shared directory (multiple shared folders are supported)

Friday 28 November 2014

Android softkeyboard in Genymotion (emulator)

Go to 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>