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.

   -d uninstall com.herongyang

   -d install -s bin\AboutAndroid-debug.apk
868 KB/s (23132 bytes in 0.026s)
        pkg: /sdcard/tmp/AboutAndroid-debug.apk

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 Dalvik
java.vm.specification.version: 0.9
user.home: /
java.ext.dirs: Dalvik Core Library
file.encoding: UTF-8
java.runtime.version: 0.9 root
java.library.path: /vendor/lib;/system/lib
os.version: 3.4.5-2364900 6.2
java.boot.class.path: /system/frameword/core.jar;...
os.arch: armv7I /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
EMULATED_STORAGE_SOURCE: /mnt/shell/emulated
SECONDARY_STORAGE: /storage/extSdCard
EXTERNAL_STORAGE: /storage/emulated/legacy
ANDROID_ASSETS: /system/app
PATH: /sbin;/vendor/bin;/system/sbin;/system/bin;/system/xbin
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

 About This Book

 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

 Android File Systems

 AboutAndroid - Application to Retrieve System Information Class and Activity Lifecycle

 View Objects and Layout Resource Files

 Using "adb logcat" Command for Debugging

 Build Process and Package File Content

 Building Your Own Web Browser

 Android Command Line Shell

 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

 Android Tablet - LG-V905R

 USB Debugging Applications on LG-V905R Tablet

 Android Phone - LG-P925g

 USB Debugging Applications on LG-P925g Phone

 Archived Tutorials


 Full Version in PDF/EPUB