##android create app project
android create project --target <target-id> --name MyFirstApp \
--path <path-to-workspace>/MyFirstApp --activity MainActivity \
--package com.example.myfirstapp
##start avd
android list avd/targets #list avds/targets
emulator -avd android-device
###########
;;; emacs android-mode usage
In this example:
the app is named "Test" and it is a debug version
the source directory is ".../Android/Code/mycode/"
the package name is "com.example.test"
the activity is "MainActivity"
the Target is "1", the virtual device is "XX-XXXX"
the Android mode is version: 0.2.3.
Emacs is GNU Emacs 24.3.1.
1) Go to .../Android/Code/mycode/ with
M-x dired
2) Create the project's directory "Test" with
+
3) Change into this directory "Test"
4) Create the project "Test" with
M-x android-create-project
Parameters:
Path: .../Android/Code/mycode/Test/
Package: com.example.test
Activity: MainActivity
Target: 1
5) Create a debug version of the app "Test"
M-x android-ant-debug
6) Start the emulator
M-x android-start-emulator
Give the name of your Android Virtual Device.
7) Install the app "Test" on the emulator
M-x android-ant-installd
Commands
"d" android-start-ddms
"e" android-start-emulator
"l" android-logcat
"C" android-ant-clean
"t" android-ant-test
"c" android-ant-debug
"i" android-ant-installd
"r" android-ant-reinstall
"u" android-ant-uninstall
"a" android-start-app
You can give this commands as (example):
C-c C-c d
or
M-x android-start-ddms
#################################
JNI
run java JNI program
java -Djava.library.path=. HelloWorld
Android signature
###############################
apktool
dex2jar
jd-gui
get cable mac
cat /sys/class/net/eth0/address
keytool -genkey -alias MyApp.keystore -keyalg RSA -validity 40000 -keystore MyApp.keystore
jarsigner -verbose -keystore MyApp.keystore -signedjar my_signed.apk my_nosign.apk MyApp.keystore
android create project --target <target-id> --name MyFirstApp \
--path <path-to-workspace>/MyFirstApp --activity MainActivity \
--package com.example.myfirstapp
##start avd
android list avd/targets #list avds/targets
emulator -avd android-device
xiaomi phone :打开调试模式,*#*#717717#*#*
###########
;;; emacs android-mode usage
In this example:
the app is named "Test" and it is a debug version
the source directory is ".../Android/Code/mycode/"
the package name is "com.example.test"
the activity is "MainActivity"
the Target is "1", the virtual device is "XX-XXXX"
the Android mode is version: 0.2.3.
Emacs is GNU Emacs 24.3.1.
1) Go to .../Android/Code/mycode/ with
M-x dired
2) Create the project's directory "Test" with
+
3) Change into this directory "Test"
4) Create the project "Test" with
M-x android-create-project
Parameters:
Path: .../Android/Code/mycode/Test/
Package: com.example.test
Activity: MainActivity
Target: 1
5) Create a debug version of the app "Test"
M-x android-ant-debug
6) Start the emulator
M-x android-start-emulator
Give the name of your Android Virtual Device.
7) Install the app "Test" on the emulator
M-x android-ant-installd
Commands
"d" android-start-ddms
"e" android-start-emulator
"l" android-logcat
"C" android-ant-clean
"t" android-ant-test
"c" android-ant-debug
"i" android-ant-installd
"r" android-ant-reinstall
"u" android-ant-uninstall
"a" android-start-app
You can give this commands as (example):
C-c C-c d
or
M-x android-start-ddms
#################################
JNI
run java JNI program
java -Djava.library.path=. HelloWorld
Android signature
###############################
apktool
dex2jar
jd-gui
get cable mac
cat /sys/class/net/eth0/address
keytool -genkey -alias MyApp.keystore -keyalg RSA -validity 40000 -keystore MyApp.keystore
jarsigner -verbose -keystore MyApp.keystore -signedjar my_signed.apk my_nosign.apk MyApp.keystore