[Index page]
[Download source code]
Famous Android (1)-build an Android development environment and a Hello World Program in Windows
Author: webabcd
IntroductionBuild an Android development environment and write a simple sample program
Build an Android development environ
.
SDK Resources
Msdn + emulator + extensive blog resources (but our windows mobile Blog community team has a lot of Information). Windows Mobile is developed in a rich array, and Android is also a new system, there are few learning resources, and Google's open sdks are not comprehensive. When developing
Android development will be used in future work, so if you want to build a development environment, your laptop will be installed with win7
Prepare the file:
1. Download the Android SDK
Http://code.google.com/android/download.html
Windows 7 is installed in the same way as Windows
use bluestacks but be careful about the ads and spam apps it pushes.If there is a real machine, you can not run the emulator, to configure the driver, so that the ADB devices can see the corresponding device.10. Android Run保持packager开启,就是上一步的命令行不关闭的意思, and then open a command-line window and run it in the project directory (my Awesomeproject folder)react-native run-androidThe first run takes a few minutes
react-native more practical significance.Pit Force React-native for Android
First of all, have to spit out the React-native team, but more is to feel the power of Facebook, F8 just 8 hours out of such a powerful thing, the project code is developed on the Mac, but also the first to support the development of Mac platform, the Windows platform was later expanded, In particular,
.
SDK Platform (required): the development tool of the corresponding Platform. You can download the development tool under the Platform.
Samples for SDK (optional): the built-in Android sample program, which is recommended for installation.
Sources for Android SDK (optional): source code of Android API. It is recommended to install it.
Xxxxxxxx Image (optional):
There are three ways to develop the Android environment, namely Jdk+sdk+eclipse+adt, Jdk+adt-bundle, and Jdk+android Studio.
Do not use Jdk+sdk+eclipse+adt this way, not to say what is too complicated, because the Guo Jia network you know, open the SDK tool after the download is not. Android Studio is also not good, said the collection of large open environment.
multiple physical machines, explicitly specify the device name or version number in your code.
The first automated testing requirement is simple: launch the built-in dialer software and search for "Hello Toby". The code is as follows:From AppiumImport Webdriverdesired_caps = {}desired_caps[' platformname '] = ' Android ' desired_caps[' platformversion '] = ' 7.1.1 ' desired_caps['devicename '] = ' Android
;android Application project to create a new Android project.8, after the application input project name, the rest of the system will give you fill, here is hello. The rest defaults. Always point to the next step, you may be a bit longer when you finish, please wait patiently.9, after the new can be run directly, the system has been written to you HelloWorld.10. Select Run as
Resources-Layout-Main.axml can go to the design of the page.
The main code for this example is Activity1.cs, which is directly explained by the following illustration:See this code, I think we should not feel strange. The pen has some students who say to me that it feels like the Windows Form application program seems to be Activity1.cs as the Controller of the MVC layer. Through the Setcontentview method, tell the system which page to load. Then,
I made this tutorial into a PDF, slow network friends can download http://files.cnblogs.com/vengen/AndroidSetup.zip here
Prepare the file:
Windows 7 is installed in the same way as Windows XP.
1. Install JDK
Run jdk-6u14-windows-i586.exe
Check whether JDK is successfully installed. Open the CMD window and enter Java-version t
Developers of Android PC OS remix OS today announced the launch of Remixos Player, which allows users to run Android apps in Windows (Getting Started tutorial ty300.com). Remixos player is essentially an Android emulator, although
spent the 10 Many minutes, probably pc Recommended Links:1, the Android SDK manager update download slow solution:http://my.oschina.net/765155496/blog/2992722, the establishment of virtual machines: Baidu (Geek College Android introductory video) 3 Tip:emulator:ERROR:x86 emulation currently requires hardware acceleration! Please ensure the Intel HAXM is properl
computer, then "USB Debug" under "System Settings" and "developer Options" of the phone. Cond... 3. ADB command Syntax The use of the ADB command from the command line or script file of the development computer is : adb [-d|-e|-s If only one emulator is running or only one phone is connected, the ADB command is sent to the device by default. If you have more than one emulator or phone running, you need
Written in front of the crapGeneral Android developers will use Eclipse,android Studio to observe the log output, in fact, the background is to use ADB to print the log, here is how to let the log output to the cmd window, not eclipse,android studio, Testers can use this method to fetch logs to developers, and developers can use this method for emergencies when t
,java development environment, address http://download.oracle.com/otn-pub/java/jdk/8u40-b25/jdk-8u40-windows-x64.exeAVD arm support, the default Android emulator is not arm supported, need to download arm image, address https://dl.google.com/android/repository/sys-img/google_apis/ Sysimg_arm-21_r03.zipVisual Studio Com
folder is placed in the root directory of the Android SDK, and the adb directory is added to the system PATH path, you can directly access the command line ADB, FastBoot and other tools.
Support Library: contains supportive, V7, and V13, download the extracted entire folder to copy or move to the your sdk 路径/extras next, then open the SDK Manager, open the Tools(工具) menu selection Options(选项) menu item Open the
://developer.android.com/sdk/installing/index.htmlBecause Google is blocked in China, the above URL may not be able to play cards, can be downloaded from the following address:Http://tools.android-studio.org/index.php/sdkThen, configure the ANDROID_HOME environment variable. Add the Android tool to the PATH variable: D:\Program Files (x86) \android\android-sdk-
ObjectiveWhen doing Android automation, start a appium service that only matches one phone to automate execution. Sometimes you want the same set of code that can be executed on different phones, measuring the app's compatibility on different phones.This requires multiple Appium services to be started, and the Android device and the Appium must correspond.Start multiple phones1. In this case, the night God
next until finish, our project was created.
Since the program is running on the emulator, we have not created an emulator, so we need to create one and close it when we have created it.
Click the Triangle Run button and select the emulator you just created, and the program starts running. Tip: Start the simulator will be slow, so when the program to make
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.