Android Tutorials - Herong's Tutorial Examples - v3.05, by Herong Yang
Installing "AboutAndroid" to Samsung Tablet
This section provides a tutorial example on how to install my 'AboutAndroid' application to my Samsung 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 Samsung 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 868 KB/s (23132 bytes in 0.026s) pkg: /sdcard/tmp/AboutAndroid-debug.apk Success
2. Go to the tablet. Tap on "Applications", then "AboutAndroid" to run the application. You will see the output:
System properties ------------ java.vm.specification.vendor: The Android Project java.vm.name: Dalvik java.vm.specification.version: 0.9 java.vendor.url: http://www.android.com/ user.home: / java.ext.dirs: java.specification.name: Dalvik Core Library file.encoding: UTF-8 java.runtime.version: 0.9 user.name: root java.library.path: /vendor/lib;/system/lib os.version: 3.4.5-2364900 android.icu.unicode.version: 6.2 java.boot.class.path: /system/frameword/core.jar;... os.arch: armv7I java.io.tmpdir: /data/data/com.herongyang/cache java.vm.version: 1.6.0 http.agent: Dalvik/1.6.0 (Linux; U; Android 4.4.2; SM-T210R... android.openssl.version: OpenSSL 1.0.1e 11 Feb 2013 java.home: /system java.class.version: 46.0 ... Environment variables ------------ ANDROID_SOCKET_zygot: 9 EMULATED_STORAGE_SOURCE: /mnt/shell/emulated SECONDARY_STORAGE: /storage/extSdCard ANDROID_STORAGE: /storage EXTERNAL_STORAGE: /storage/emulated/legacy ANDROID_ASSETS: /system/app ASEC_MOUNTPOINT: /mnt/asec PATH: /sbin;/vendor/bin;/system/sbin;/system/bin;/system/xbin ANDROID_DATA: /data ANDROID_ROOT: /system LD_LIBRARY_PATH: /vendor/lib;/system/lib;/lib ... Environment folders ------------ Data folder: /data Download cache folder: /cache External storage folder: /storage/emulated/0 Root folder: /system Application context info ------------ Cache folder: /data/data/com.herongyang/cache External cache folder: /storage/emulated/0/Android/data/com.herong... File folder: /data/data/herongyang/files OBB folder: /storage/emulated/0/Android/obb/com.herongyang 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 the device 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
Samsung USB Driver for Mobile Phones
Turning on USB Debugging on Samsung Galaxy Tab 3
Running "adb" on USB Debugging Interface
Installing Application to Tablet using "ant installd"
Installing Application to Tablet using "adb -d install"
►Installing "AboutAndroid" to Samsung Tablet
USB Debugging Applications on LG-V905R Tablet