随笔分类 -  Android

ok6410 android driver(12)
摘要:In this essay, I will talk about how to write the service libraries. TIPS :I won't discuss the name rules about HAL libraries, but it's quite important to our understanding.You can check the source file :android_source/hardware/libhardware/hardware.cOr google with key word :android hardware. 阅读全文

posted @ 2013-08-04 20:46 plinx 阅读(436) 评论(0) 推荐(0)

ok6410 android driver(11)
摘要:This essay, I go to a deeply studying to android HAL device driver program. According to the android architecture we disscus in last essay, when we are designing a android device driver, we should follow the steps below : (1) linux device driver In this driver, we should try our best to cut d... 阅读全文

posted @ 2013-08-04 17:47 plinx 阅读(568) 评论(0) 推荐(0)

ok6410 android driver(10)
摘要:From this essay, we go to a new discussion "Android Hardware AbstractionLayer". In this essay, we fisrt talk about the architecture of linux and android. 1、linux If you have got some brief reading about 《Linux Kernel Development》 or 《Linux Device Driver》, you would know the Linux Kernel wo 阅读全文

posted @ 2013-08-04 10:43 plinx 阅读(385) 评论(0) 推荐(0)

ok6410 android driver(9)
摘要:In this essay, I will write the JNI to test our leds device. If you don't know how to create a jni project, I suggest you to have a read on the following website :http://www.cnblogs.com/plinx/p/3213824.html 1、string.xml ledsjni Settings String input: Str Input I/O control: I/O ... 阅读全文

posted @ 2013-07-28 20:22 plinx 阅读(321) 评论(0) 推荐(0)

ok6410 android driver(8)
摘要:In the past, we know how to create and run a simple character device driver on pc, goldfish and ok6410. These two essays I will talk about a led device real exists on ok6410. In this essay, we will compile a led device driver and test it. At first, I wanna write some short summary of the diff... 阅读全文

posted @ 2013-07-28 20:05 plinx 阅读(398) 评论(0) 推荐(0)

ok6410 android driver(7)
摘要:This article talk about how to test device driver on JNI. There are two ways to test the device driver : (1) Create methods to control devices in .c/.cpp file, the .java call the methods in .c/.cpp : This way is call JNI (Java Native Interface), means java works via native interface in C/C++. ... 阅读全文

posted @ 2013-07-27 13:17 plinx 阅读(451) 评论(0) 推荐(0)

ok6410 android driver(6)
摘要:This is a short essay about the mistakes in compiling ok6410 android-2.3 source codes. If there is nothing happen when you compiling forlinx android-2.3, just go past. My local host is 64bit system, but the forlinx android souce code was compiler on 32bit. So we should change the follwing files... 阅读全文

posted @ 2013-07-25 12:38 plinx 阅读(352) 评论(0) 推荐(0)

ok6410 android driver(5)
摘要:Test the android driver by JNI (Java Native Interface), In the third article, we know how to compiler the moduler for localhost, ok6410 and goldfish platform.http://www.cnblogs.com/plinx/p/3209500.html But we didn't try to test the driver using by C/C++ program on ok6410 and goldfish. Android w. 阅读全文

posted @ 2013-07-24 22:04 plinx 阅读(281) 评论(0) 推荐(0)

ok6410 android driver(4)
摘要:Install busybox for goldfish/phone 1. Download busybox source codehttp://www.busybox.net/ 2. Decompress busybox$ tar xvf busybox-1.21.0.tar.bz2 -C ~/Android/$ cd ~/Android/busybox-1.21.0 3. Correct the cross compiler$ vim Makefile// add the compiler following CROSS_COMPILECROSS_COMPILE ?= arm-l... 阅读全文

posted @ 2013-07-24 10:29 plinx 阅读(333) 评论(0) 推荐(0)

ok6410 android driver(3)
摘要:This article discusses the Makefile and how to port the module to different platform (localhost and arm). 1、localhost My localhost system is debian wheezy. If you would like to set up the environment for user-mode, you can follow the website :http://www.cnblogs.com/plinx/p/3149216.html Actur... 阅读全文

posted @ 2013-07-23 21:58 plinx 阅读(589) 评论(1) 推荐(0)

ok6410 android driver(2)
摘要: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 阅读(513) 评论(2) 推荐(0)

ok6410 android driver(1)
摘要: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 阅读(348) 评论(0) 推荐(0)

Fix the error in NeighboringCellInfo.java in CM10.1
摘要: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 阅读(1905) 评论(0) 推荐(0)

Compile android source and kernel for emulator in Debian
摘要: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 阅读(922) 评论(0) 推荐(0)

Install NDK in Eclipse/Android Studio
摘要: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 阅读(8748) 评论(0) 推荐(0)

First Android application
摘要: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 阅读(272) 评论(0) 推荐(0)

Install ADT in debian Wheezy
摘要: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 阅读(468) 评论(0) 推荐(0)

Install Android Studio in debian Wheezy
摘要: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 阅读(2171) 评论(1) 推荐(0)

导航