Android Tutorials - Herong's Tutorial Examples - v3.05, by Herong Yang
Installing "AboutAndroid" to LG-V905R Tablet
This section provides a tutorial example on how to install my 'AboutAndroid' application to my LG-V905R tablet. 'HelloAndroid' needs to be uninstalled first, because both applications share the same Java package name 'com.herongyang'.
My first application "HelloAndroid" works on my LG-V905R tablet, now let's see what will happen to my second application "AboutAndroid".
1. Uninstall "HelloAndroid", then install "AboutAndroid". Keeping "HelloAndroid" on the tablet will cause installation problem with "AboudAndroid", because both "HelloAndroid" and "AboutAndroid" use the same Java class package name.
C:\herong\AboutAndroid>\local\android-sdk-windows\platform-tools\adb -d uninstall com.herongyang Success C:\herong\cod\AboutAndroid>\local\android-sdk-windows\platform-tools\adb -d install -s bin\AboutAndroid-debug.apk 778 KB/s (23132 bytes in 0.029s) pkg: /sdcard/tmp/AboutAndroid-debug.apk Success
2. Go to the tablet. Tap on "Home", "Applications", then "AboutAndroid" to run the application. You will see the output:
System properties ------------ java.vm.version: 1.5.0 java.vm.name: Dalvik user.dir: / javax.net.ssl.trustedStore: /system/etc/security/cacerts.bks java.io.tmpdir: /sdcard java.runtime.name: Android Runtime http.agent: Dalvik/1.5.0 (Linux; U; Android 3.0.1; LG-V905R Build/H... java.net.preferIPv6Addresses: true java.boot.class.path: /system/frameword/core.jar;... java.library.path: /vendor/lib;/system/lib file.encoding: UTF-8 java.vm.specification.version: 0.9 java.vm.specification.vendor: The Android Project o.name: Linux android.vm.dexfile.true java.specification.name: Dalvik Core Library os.version: 2.6.36.3+ os.arch: armv7I java.runtime.version: 0.9 java.class.version: 46.0 Environment variables ------------ ANDROID_SOCKET_zygot: 9 EXTERNAL_STORAGE: /mnt/sdcard ANDROID_ASSETS: /system/app ASEC_MOUNTPOINT: /mnt/asec PATH: /sbin;/vendor/bin;/system/sbin;/system/bin;/system/xbin ANDROID_DATA: /data ANDROID_ROOT: /system Environment folder ------------ Data folder: /data/data/com.herongyang/cache External cache folder: /mnt/sdcard/Android/data/com.herongyang/cache File folder: /data/data/com.herongyang/files Package name: com.herongyang Package code path: /data/app/com.herongyang-1.apk Package resource path: /data/app/com.herongyang-1.apk
Note that you may get execution errors, if tablet Android version is not compatible with AboutAndroid build version.
Table of Contents
Installing JDK 1.8 on Windows System
Installation of Android SDK R24 and Emulator
Installing Apache Ant 1.9 on Windows System
Developing First Android Application - HelloAndroid
Android Application Package (APK) Files
Android Debug Bridge (adb) Tool
AboutAndroid - Application to Retrieve System Information
android.app.Activity Class and Activity Lifecycle
View Objects and Layout Resource Files
Using "adb logcat" Command for Debugging
Build Process and Package File Content
Samsung Galaxy Tab 3 Mini Tablet
USB Debugging Applications on Samsung Tablet
►USB Debugging Applications on LG-V905R Tablet
Turning on USB Debugging on LG-V905R
Viewing LG-V905R Android USB Device in Control Panel
Running "adb" on LG-V905R USB Debugging Interface
Installing Application to Tablet using "ant installd" Command
Installing Application to Tablet using "adb -d install" Command
►Installing "AboutAndroid" to LG-V905R Tablet