Updating Genymotion 2.5 on Ubuntu 14 x64

  • 0
1. Download bin files from official genymotion sites
2. chmod +x genymotion-2.5.bin
3. ./genymotion-2.5.bin
4. Open genymotion folder, Downloads/genymotion/.genymotion

If error occurred, such as abort (core dumped)... read the dumped log files. In my case it was incompatibility with Qt Library.

1. apt-get install libxi-dev libxmu-dev
2. mkdir QtLibs && mv *Qt*.so* QtLibs
The last options will force Genymotion to use your System Qt Library

Moving Android Project to Another Directory

  • 0
After moving your project directory open, Tools -> Android -> Sync Project with Gradle Files

How to Resize Ubuntu (Linux) Hard Disk Partition on Windows Dualboot.

  • 0
You are dual boot user. One day your Ubuntu is ran out space. You desperately delete those silly cat pictures files (or porn) on your Windows to regain some space. And then, you've some unallocated volume.. Next it's time to resize some ext4 Ubuntu volume. Should be easy right? After all that's what GParted promised.

Then you install GParted only to find it was useless, since you can't do anything with your harddisk if Ubuntu running on it. Just like you can't cut the branch you stand. So, what's should you do? Reinstall? Kill yourself? Hold your suicide pills my friend, don't worry I won't write this notes If I don't have the solution.

- First and foremost, delete your files on Windows, and Shrink the Volume on your Windows using diskmgmt.msc. And then you've got yourself Unallocated Volume
Note: If deleting or Shrink volume doesn't work, download Easus Partition Master. And use that software as diskmgmt.msc replacement.

- Follow Windows Method B: Manual in this GParted site.

(- If you're HP User, disable Secure Boot options on BIOS)

- Boot using that Live USB

- Resize using GParted at your will.

Typed on freshly 40 GB free Hard Disk space Ubuntu Home.

onQueryTextSubmit bug answer

  • 0
When you try to implement searchView, you add override two method onQueryTextSubmit and onQueryTextChange. The problem occur when user try to press "search icon" on Soft Keyboard, which launch onQueryTextSubmit.

It was because the query is null, (Android HATES null) so all I need to do is change it into empty String and request a focus.

            public boolean onQueryTextSubmit(String query) {
                searchView.setQuery("", false);
                return true;

Disabling Case Sensitive Feature in Android Studio

Settings -> Editor -> Code Completion (NONE)

(Android) Proven Code to Hide Soft Keyboard

  • 0
Programatically 2:
    public void hideSoftKeyboard(){
        if(getActivity().getCurrentFocus() != null){
            InputMethodManager inputMethodManager = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
            inputMethodManager.hideSoftInputFromWindow(getActivity().getCurrentFocus().getWindowToken(), 0);