Dharmesh

  • Did you got this error while building with Jack?

    Did you got this error while building with Jack?

    Code :- [code] [ X% Y/Z] Building with Jack: /home/minealex2244/los/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex FAILED: /bin/bash /home/minealex2244/los/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex.rsp Communication error with Jack server…


  • API doc error in Android 4.4.2 (Kitkat)

    API doc error in Android 4.4.2 (Kitkat)

    Checking API: checkapi-last out / target / common / obj / PACKAGING / public_api.txt: 23556: error 12: Class…


  • TCP Socket error codes

    TCP Socket error codes

    0 = Success 1 = Operation not permitted 2 = No such file or directory 3 = No…


  • Usefull commands

    Usefull commands

    List currently running services [code] dumpsys -l [/code] Print all crashed logs [code] dumpsys dropbox –print [/code] Provide…


  • Installing Oracle Java 6 on Ubuntu

    Installing Oracle Java 6 on Ubuntu

    Download jdk-6u32-linux-x64.bin(or any version). If you have used 32-bit Ubuntu installation, download jdk-6u32-linux-x32.bin(or any version). To make the…


  • Force landscape orientation through Android build system

    Force landscape orientation through Android build system

    Open the following file from Android framework. /android/frameworks/base/services/java/com/android/server/wm/WindowManagerService.java Go to “computeForcedAppOrientationLocked” function. Add below code at appropriate place.…


  • Disable the lock screen forever

    Disable the lock screen forever

    Open the following file from Android framework. /android/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/KeyguardViewMediator.java Go to “doKeyguardLocked(Bundle options)” function. Add below code at appropriate…


  • Get Ethernet and WiFi bandwidth in Android

    Get Ethernet and WiFi bandwidth in Android

    Ethernet:- Make ethernet_bw.sh file. Copy below code snippet in file. [code lang=”bash”] #!/bin/sh INTERVAL=”1″ # update interval in…


  • Linux commands

    Linux commands

    Unzip “zip” file Install Dependency :- apt-get install unzip [code lang=”bash”] unzip file.zip, unzip file.zip -d destination_folder [/code]…


  • Call Java functions in Cocos2d-x
    ,

    Call Java functions in Cocos2d-x

    Java [code lang=”java”] public static Activity _activiy; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //Save activity instance _activiy…