Android Emulator: How to access the sqlite database of an app

This is an example of how to access the sqlite database of an Android app running on an emulator. Make sure you have the android adb tool on your PATH. Run this command in the terminal: adb version If you have adb on your path, it should show something similar to this: Android Debug Bridge version 1.0.31 If not, follow this guide: Adding the adb tool to the terminal for easy access. Accessing the SQLITE database Open a

» Read more

Adding the Android adb tool to the command line

If you need to use the adb tool that comes with the Android SDK, you can easily add it to the command line. This example is on OS X, but also works on different Linux distros such as Ubuntu. The adb executable is located in the /platform-tools folders, where is the path to here you installed (unzipped) the Android SDK. Open a terminal, and type echo $PATH. This is your systems PATH variable, containing a list of folders separated by

» Read more

Android Studio & Gradle: Cannot run gradlew. Permission denied.

If you are getting the “permission denied” error message while trying to run ./gradlew clean or ./gradlew build manually in your project: -bash: ./gradlew: Permission denied</div> You have to make the gradlew file executable. Open a terminal, navigate to the folder where your gradlew file is, and set execute permissions: chmod +x gradlew  It is also a good idea to close the project in Android Studio while working with the gradle wrapper from the terminal.

» Read more

Open files and folders with Sublime Text 3 from the OS X Terminal

If you are using Sublime Text 3 on your mac, you may want to be able to open files and folders in Sublime via the Terminal? You can easily do that via creating a new command, lets create the “sublime” command. sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/sublime open your ~./profile file either via command line, or another editor: vi ~./profile add /usr/local/bin to the PATH variable, for example like

» Read more