Basic4Andoid入门指南
- 格式:doc
- 大小:4.14 MB
- 文档页数:51
1 Getting started(开始)Basic4android is a simple yet powerful development environment that targets Android devices.Basic4android是为Android设备准备的一个简单但功能强大的开发环境。
Basic4android language is similar to Visual Basic language with additional support for objects.Basic4android语言类似于Visual Basic语言还有附加了对对象的支持。
Basic4android compiled applications are native Android applications, there are no extra runtimes or dependencies.Basic4android编译应用程序是原生的Android应用程序,没有额外的运行时或依赖其他东西。
Unlike other IDEs Basic4android is 100% focused on Android development. Basic4android includes a powerful GUI designer with built-in support for multiple screens andorientations. No XML writing is required.有别于其他IDE,Basic4android是100%专注于Android开发。
Basic4android 包括一个强大的GUI设计器,内置支持多个屏幕andorientations。
编写XML不是必须的。
You can develop and debug with the Android emulator or with a real device (USB connected or over the local network).你可以Android模拟器或用一个真实的设备开发和调试(使用USB连接或在本地网络连接)。
Basic4android has a rich set of libraries that make it easy to develop advanced applications.Basic4android有一组丰富的库,这使它容易开发高级的应用程序。
This includes: SQL databases, GPS, Serial ports (Bluetooth), Camera, XML parsing, Web services(HTTP), Services (background tasks), JSON, Animations, Network (TCP and UDP), Text To Speech(TTS), Voice Recognition, WebView, AdMob (ads), Charts, OpenGL, Graphics and more.包括了: SQL databases, GPS, 串行设备(蓝牙), 摄像头, XML解析, Web services(HTTP), Services (后台任务), JSON, 动画, 网络(TCP 和UDP), 语音引擎(TTS), 语音识别, WebView, AdMob (ads), 图表, OpenGL, 画图和更多。
.Android 1.6 and above are supported (including tablets like Motorola Xoom).支持安卓1.6及以上的设备(包括摩托罗拉的Xoom平板电脑)。
1.1 Installing Basic4Android and Android SDK(安装Basic4Android 和Android SDK)Basic4android depends on two additional (free) components:Basic4android依赖于两个额外(免费的)组件:- Java JDK- Android SDKInstallation instructions:安装说明:The first step should be to install the Java JDK as Android SDK requires it as well.第一步应该是安装Java JDK,Android SDK也需要安装。
Note that there is no problem with having several versions of Java installed on the same computer.要注意安装在相同的计算机有几个版本的Java是没有任何问题的。
- Open the Java 6 JDK download link.点击Java 6 JDK下载链接。
- Check the Accept License Agreement radio button.选择接受许可协议单选按钮。
- Select "Windows x86" in the platforms list (for 64 bit machines as well).在平台列表里面选择"Windows x86"(也有64位的)Android SDK doesn't work with Java 64bit JDK.You should install the regular JDK for 64-bit computers as well.发现Android SDK不适用Java 64位JDK的情况,你应该安装64位的JDK。
If for some reason, you don't see the red Continue button try to switch to a different browser.如果由于某种原因,你没有看到红色的Continue(继续)按钮就尝试换到一个不同的浏览器试试。
- On the next page, you should press on the file link:你应该点击文件链接,如下图所示:- Download the file and install it.下载文件并安装。
Next step is to install the Android SDK and a platform下一步是安装Android SDK 和平台。
- Download Android SDK.- Install the SDK.- 下载Android SDK.- 安装SDK.The SDK doesn't always behave properly when it is installed in a path with spaces (likeProgram Files). It is recommended to install it to a custom folder similar to C:\Android.SDK并不总是被正正规规被安装在常见路径里面(如Program Files文件夹)。
建议安装一个自定义文件夹类似于C:\ Android。
- When the application opens, it will show a page with all the available packages. Press the"Cancel" button, as you do not need to install all the platforms.—当应用程序打开时,它将显示一个页面,可以看到所有可用的软件包。
当你不需要安装所有的平台按下“Cancel”按钮。
- Choose "Available Packages" and choose "SDK Platform 2.2, API 8". It should appear under the"Android repository" node.选择“Available Packages”并选择“SDK Platform 2.2, API 8”。
它应该出现在“Android repository”节点。
The file structure of API 9 is different. For now, you should use API 8.文件结构的API 9是不同的。
现在,您应该使用API 8。
注意,Note that you can install more packages later.注意,您以后可以安装更多的packages- Press on Install Selected and install both packages.点击Install安装已选择的这两个packages。
1.1.1 Install and configure Basic4Android- Download and install Basic4android.下载并安装Basic4android- Open Basic4android.打开Basic4android- Choose Tools menu - Configure Paths.选择- Choose Tools menu –设置路径s.Use the browse buttons to locate "javac.exe" and "android.jar"选择browse按钮定位"javac.exe" 和"android.jar"。
javac is located under <java folder>\bin.Javac在<java 安装文件夹>\bin目录.android.jar is located under <android-sdk-windows>\platforms\android-8 android.jar 在<android-sdk-windows>\platforms\android-8下面定位The folder depends on where you installed the Android SDK,it should be C:\Android\android-sdk-windows\platforms\android-8\android.jar.文件夹取决于您安装Android SDK的位置。