
Android
-
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
Ethernet:- Make ethernet_bw.sh file. Copy below code snippet in file. [code lang=”bash”] #!/bin/sh INTERVAL=”1″ # update interval in…
-
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…
-
AES encryption and description
[code lang=”java”] import android.util.Base64; import javax.crypto.Cipher; import javax.crypto.spec.IvParameterSpec; import javax.crypto.spec.SecretKeySpec; public class AESCrypt { private final Cipher cipher;…
-
Error: base operand of ‘->’ has non-pointer type ‘JNIEnv’
You are using the C variant, but are compiling with g++, which invokes the C++ compiler (even if…
-
OpenSL ES example in Android
This examples shows to use of OpenSL ES framework in native files to play audio. Include following two…
-
Compile, decompile and sign APK using Apktool utility
Download latest apktool version. Download the batch file and aapt.exe. Create a folder anywhere in the PC and…
-
Android.mk, include all cpp files
[code lang=”text”] FILE_LIST := $(wildcard $(LOCAL_PATH)/[DIRECTORY]/*.cpp) LOCAL_SRC_FILES := $(FILE_LIST:$(LOCAL_PATH)/%=%) [/code]
-
Convert View to Drawable
[code lang=”java”] Bitmap snapshot = null; Drawable drawable = null; view.setDrawingCacheEnabled(true); view.setDrawingCacheQuality(View.DRAWING_CACHE_QUALITY_AUTO); // Quality of the snpashot try…
-
Change Global settings through ADB
Get current global time zone: [code lang=”text”] adb shell settings get global time_zone [/code] Set a time zone:…

Tyler Moore
Hello, my name is Tyler Moore and with the help of many people I made this template. I made it so it is super easy to update and so that it flows perfectly with my tutorials. I wish you the best of luck with your business, enjoy the adventure.
Must Read
Categories




