2013年7月22日

摘要: I will paste and anlaysis a small character device driver in this paragraph.#include #include #include #include #include #include #include #define DEVICE_NAME "wordcount2"#define TRUE -1#define FALSE 0static unsigned char mem[1024];static int word_count = 0;static char is_spacewhite(char c 阅读全文
posted @ 2013-07-22 21:48 plinx 阅读(507) 评论(2) 推荐(0) 编辑
摘要: target system : Android (OK6410) host system : Debian Wheezy AMD64 1、Set up android system in ok6410 More details check the forlinx OK6410 UserGuide pdf. 2、There are two different ways to control the android system on ok6410 (1) minicom and USB-to-serial More details check the following webs... 阅读全文
posted @ 2013-07-22 19:39 plinx 阅读(343) 评论(0) 推荐(0) 编辑

2013年7月2日

摘要: 1、error messenge:frameworks/base/telephony/java/android/telephony/NeighboringCellInfo.java:104: error 101: Unresolved link/see tag "TelephonyManager#NETWORK_TYPE_DCHSPAP TelephonyManager.NETWORK_TYPE_DCHSPAP" in android.telephony.NeighboringCellInfoframeworks/base/telephony/java/android/te 阅读全文
posted @ 2013-07-02 13:01 plinx 阅读(1893) 评论(0) 推荐(0) 编辑

2013年6月24日

摘要: 1、add the apt-key as 'root' (! don't do this as 'sudo' )$ su root$ wget -O - http://suwako.nomanga.net/suwako.asc | apt-key add - 2、add therepository to source.list$ sudo vim /etc/apt/source.list# bumblebeedeb http://suwako.nomanga.net/debian sid main contribdeb-src http://suwako 阅读全文
posted @ 2013-06-24 08:41 plinx 阅读(590) 评论(0) 推荐(0) 编辑

2013年6月23日

摘要: 1、download the android source code Reference fromhttp://source.android.com/source/downloading.html follow the reference: Create the dir and export the PATH$ mkdir ~/bin$ PATH=~/bin:$PATH Download the repo$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo$ chmod 775 ~/b... 阅读全文
posted @ 2013-06-23 14:23 plinx 阅读(904) 评论(0) 推荐(0) 编辑

2013年6月22日

摘要: 1、check the kernel version$ uname -r3.2.0-4-amd64 2、install the source code$ sudo apt-get install linux-source-3.2 then there would be a file in /usr/src$ ls /usr/src | grep linux-sourcelinux-source-3.2.tar.bz2 3、decompress the .bz2$ sudo tar xvf linux-source-3.2.tat.bz2 4、configure the files.... 阅读全文
posted @ 2013-06-22 03:12 plinx 阅读(506) 评论(0) 推荐(0) 编辑

2013年6月19日

摘要: 1、 Download NDKhttps://developer.android.com/tools/sdk/ndk/index.html 2、Install NDK$ tar xvf android-ndk-r8e-linux-x86_64.tar.bz2 -C ~/Software/Android/$ cd Android$ mv android-ndk-r8e/ ndk/ 3、add PATH$ vim ~/.bashrc//----------------- add the following text ----------------------export NDK_HOME... 阅读全文
posted @ 2013-06-19 00:20 plinx 阅读(8725) 评论(0) 推荐(0) 编辑

2013年6月16日

摘要: In eclipse ADT : 1、创建一个新工程File -> New -> Android Application Project 2、三个主要的文件/src/MainActivity.java/res/layout/activity_main.xml/res/values/strings.xml 3、activity_main.xml文件 文件下方有两种编辑方式:Graphical layout 编辑 与 xml 编辑。 此时暂时不需要修改main.xml文件。 4、string.xml文件 文件下方有两种编辑方式:Resources 编译 与 xml 编辑。 ... 阅读全文
posted @ 2013-06-16 16:17 plinx 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 1、download ADT from offical websitehttps://developer.android.com/sdk/index.html TIPS:With a single download, the ADT Bundle includes everything you need to begin developing apps:Eclipse + ADT pluginAndroid SDK ToolsAndroid Platform-toolsThe latest Android platformThe latest Android system image f... 阅读全文
posted @ 2013-06-16 14:18 plinx 阅读(454) 评论(0) 推荐(0) 编辑
摘要: 1、download Android Studio from the offical websitehttps://developer.android.com/sdk/installing/studio.html (You could also check the offical website tips to install the Android Studio.) 2、Unpack the downloaded Tar file.$ sudo tar xvf android-studio-bundle-130.687321-linux.tgz -C ~/Software/Andro... 阅读全文
posted @ 2013-06-16 09:55 plinx 阅读(2160) 评论(1) 推荐(0) 编辑

导航