1 / 4

1. NDK

1. NDK. Project Background. NDK:

Download Presentation

1. NDK

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 1.NDK

  2. Project Background NDK: 1. 下载Android 1.5 NDK, Release 1 For Windows 并解压到D:\android-ndk-1.5_r12.下载Cygwin, 执行setup.exe并开始安装(根据网络速度快慢而定, 预计安装需要20分钟左右)注意:1. 选择台湾的http站点,速度会快很多; 2.开发选项里必须勾选gcc和make,否则后期无法编译3.执行桌面图标Cygwin,出现linux shell提示符后, 修改当前目录(/home/username)下.bash_profile文件, 加入如下内容在文件尾部ANDROID_NDK_ROOT=/cygdrive/d/android-ndk-1.5_r1export ANDROID_NDK_ROOT4.退出Cygwin,重新进入,执行以下命令cd $ANDROID_NDK_ROOTbuild/host-setup.sh一切顺利的话会提示设置成功, 如果出错, 则检查错误并修复5.编译sample hello-jni进入Cygwincd $ANDROID_NDK_ROOTmake APP=hello-jni一切顺利则会生成libhello-jni.so文件在 $ANDROID_NDK_ROOT/apps/hello-jni/project/libs/armeabi目录下6.启动预先配置好的Eclipse + ADT环境,创建一个Android Project,选择Create project form existring sourceLocation = D:\android-ndk-1.5_r1\apps\hello-jni\project, 直接确认即可开始编译并生成apk文件7.运行这个Project,及可看到效果.

  3. Customer Requirement • cmwap and cmnet : • CMWAP是手机上网使用的接入点的名称。 • cmwap相当于局域网通过路由器上网,cmnet相当于直接给你一个外网ip地址上网 • 代理地址:10.0.0.172 ,代理端口:80 ,名称 cmwap • 在国际上,通常只有一种GPRS接入方. • CMWAP 和 CMNET 只是中国移动人为划分的两个GPRS接入方式。前者是为手机WAP上网而设立的,后者则主要是为PC、笔记本电脑、PDA等利用GPRS上网服务。它们在实现方式上并没有任何差别,但因为定位不同,所以和CMNET相比,CMWAP便有了部分限制,资费上也存在差别。 • cmwap接入方式的限制很多,cmwap接入方式只开放80,8080,9201端口,仅支持http和wap协议。也就是说,你的移动设备将无法使用基于POP3、IMAP等协议的软件。 • 在电信重组之前,中国移动只有移动电话业务。cmwap接入方式花费的是移动内网的流量,而cmnet花费的则是铁通的流量,移动需要为此支付网间结算费。

  4. 5Q & A

More Related