SharedPreferences prefb = getSharedPreferences(getResources().getString(R.string.app_name), Context.MODE_PRIVATE);
Map<String,?> keys = prefb.getAll();
for (Map.Entry<String,?> entry : keys.entrySet()){
Log.d(TAG, "SharedPreferences::" + entry.getKey() + "::" + entry.getValue().toString());
}
2014년 4월 30일 수요일
2014년 4월 24일 목요일
how to service registering the service for runnable jar file on centos
vi /etc/init.d/astmiddleware
#! /bin/sh
### BEGIN INIT INFO
# Provides: musesoft
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# X-Interactive: false
# Short-Description: service init script
# Description: Start/stop an service script
### END INIT INFO
DESC="astmiddleware"
NAME=astmiddleware
#DAEMON=
do_start()
{
echo "starting!";
}
do_stop()
{
echo "stopping!"
}
case "$1" in
start)
cd /usr/local/src/astmiddleware
/usr/bin/java -jar astmiddleware.jar &
;;
stop)
killall -v java
;;
esac
exit 0
chmod a+rx /etc/init.d/astmiddleware
chkconfig --add /usr/local/src/astmiddleware
chkconfig --list
chkconfig --del astmiddleware
#! /bin/sh
### BEGIN INIT INFO
# Provides: musesoft
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# X-Interactive: false
# Short-Description: service init script
# Description: Start/stop an service script
### END INIT INFO
DESC="astmiddleware"
NAME=astmiddleware
#DAEMON=
do_start()
{
echo "starting!";
}
do_stop()
{
echo "stopping!"
}
case "$1" in
start)
cd /usr/local/src/astmiddleware
/usr/bin/java -jar astmiddleware.jar &
;;
stop)
killall -v java
;;
esac
exit 0
chmod a+rx /etc/init.d/astmiddleware
chkconfig --add /usr/local/src/astmiddleware
chkconfig --list
chkconfig --del astmiddleware
2014년 4월 21일 월요일
kill process by the command
ps -aux | grep astm*
9181 ? Sl 4:05 java -jar astmiddleware.jar
19225 pts/1 Tl 0:04 java -jar astmiddleware.jar
19670 pts/1 S+ 0:00 grep astmiddleware.jar
kill -9 9181
kill -9 19225
9181 ? Sl 4:05 java -jar astmiddleware.jar
19225 pts/1 Tl 0:04 java -jar astmiddleware.jar
19670 pts/1 S+ 0:00 grep astmiddleware.jar
kill -9 9181
kill -9 19225
2014년 4월 17일 목요일
android release packaging by the console
./gradlew clean assembleRelease
/Users/pointermans/Documents/Work/adt-bundle-mac-x86_64-20140321/sdk/platform-tools/adb uninstall com.iteras.iGen
/Users/pointermans/Documents/Work/adt-bundle-mac-x86_64-20140321/sdk/platform-tools/adb install -r app/build/outputs/apk/app-release.apk
/Users/pointermans/Documents/Work/adt-bundle-mac-x86_64-20140321/sdk/platform-tools/adb uninstall com.iteras.iGen
/Users/pointermans/Documents/Work/adt-bundle-mac-x86_64-20140321/sdk/platform-tools/adb install -r app/build/outputs/apk/app-release.apk
피드 구독하기:
글 (Atom)