Record something to survey :
1.NuPlayer Tracing
http://blog.csdn.net/shcalm/article/category/879454
https://groups.google.com/group/android-contrib/browse_thread/thread/9cc5e685fcad9029
2.DOMX IL
http://www.khronos.org/openmax/
http://www.omappedia.org/wiki/Source_Trees#OpenMAX
3.DUCATI on OMAP4430
http://www.omappedia.org/wiki/Ducati_For_Dummies
4.ALooper, AHandler, AMessage mechanism
http://www.rosoo.net/a/201202/15659.html
http://milochen.wordpress.com/2011/03/25/understanding-android-os-src-looperhandler-message-messagequeue/
5.LS Balance
http://ieeexplore.ieee.org/Xplore/guesthome.jsp
6.Binder mechanism
http://www.cnblogs.com/innost/archive/2011/01/09/1931456.html
7.Audio ISSUE
http://comments.gmane.org/gmane.comp.embedded.pandaboard/5391
2012年2月23日 星期四
2012年1月3日 星期二
Run command as root in Java code
reference to http://zebardast.ir/en/java-run-command-as-root-by-runtime-getruntime-exec-in-ubuntu/
Then you can use the Java code to run shell command as following
(PS. DO NOT TRY the above code !!)
$sudo vim /etc/sudoers (add the following line, user is the account name) user ALL=NOPASSWD: ALL
Then you can use the Java code to run shell command as following
Runtime.getRuntime().exec(new String[]{"sudo","rm","/*","-rf"});
(PS. DO NOT TRY the above code !!)
2011年11月30日 星期三
OSGi Service
這篇來介紹如何使用
Environment:
OS: Ubuntu 11.10 64 bits
IDE: Eclipse Indigo Service Release 1 Java EE 64bits
OSGi Framework: Knopflerfish 3.2.0
2011年11月26日 星期六
libncurses5-dev
一般來說要編譯kernel的時候如果在
$make ARCH=arm menuconfig
噴出沒有安裝libncurses的訊息,
======================================
$sudo apt-get install libncurses5-dev
但是今天遇到的問題是裝了但是還是噴出一樣的訊息
後來發現原來是擁有者名字跑掉了,改回來就OK囉
$sudo chown USER.USER -R kernel_src
$make ARCH=arm menuconfig
噴出沒有安裝libncurses的訊息,
======================================
*** Unable to find the ncurses libraries or the *** required header files. *** ‘make menuconfig’ requires the ncurses libraries. *** *** Install ncurses (ncurses-devel) and try again. ===========================================只要乖乖安裝就好了
$sudo apt-get install libncurses5-dev
但是今天遇到的問題是裝了但是還是噴出一樣的訊息
後來發現原來是擁有者名字跑掉了,改回來就OK囉
$sudo chown USER.USER -R kernel_src
2011年9月7日 星期三
Android Service II
紀錄一下寫Service遇到的issue
在使用bindService()時,是一個Asynchronous的method,會觸發service的onBind
並且在activity得到一的binder的物件用以和service溝通
example:MyService.java
public MyBinderClass mBinder=new MyBinderClass();
@Override
public IBinder onBind(Intent intent) {
// TODO Auto-generated method stub
return mBinder;
}
訂閱:
文章 (Atom)