摘要
串口在数据通信中应用广泛,但Android SDK指定使用Java作为第三方应用开发语言,这给C语言实现串口应用带来了困难。虽然Google Android已经发布了NDK(Native Development Kit,原生态开发包),支持开发者用C/C++语言开发Android程序,但目前官方提供的技术指导比较简略。通过开发一个Android下串口通信应用实例,详细介绍了Android NDK的开发流程,帮助开发人员快速的完成平台搭建。
Serial communication is widely used in data communication,but the Android SDK uses the Java language as a designated third-party application development,which makes it difficult to achieve serial applications with C language.Although Google Android has released NDK(Native Development Kit)which supports the developer to develop Android program with C/C++ language,but the official technical guidance has been relatively brief.Through the development of serial communication under an Android platform as an application example,article gives a thoroughly description of the Android NDK development process that can help developers quickly build platforms.
作者
金智义
张戟
JIN Zhi-yi,ZHANG Ji(Vehicle College,Tongji University,Shanghai 201804,China)
出处
《电脑知识与技术》
2011年第5期2983-2985,2990,共4页
Computer Knowledge and Technology