Mobile terminal development with the popularity of smartphones becoming more and more hot, what projects want to move a piece, but it is not easy to learn the control of the various terminals, but in particular, each terminal control and language are different, making this learning become more difficult.
Is there an easy way to quickly build a mobile terminal program and quickly package and use it on every terminal platform? The answer is yes, and
IntelliJ IDEA build a PhoneGap for Android Development Environment
We all know that the PhoneGap cross-platform mobile framework supports IOS, Android, Windows 8, and so on /...... And other mainstream mobile operating systems!
Now let's build the HelloWorld program for Android development using
Use Cordova (PhoneGap) to build the Android program, cordovaphonegap
Mobile terminal development is becoming increasingly popular with the popularity of smartphones, and all projects want to be moved. However, it is not easy to learn how to use the controls of these terminals, in particular, the control and language used on each terminal are different, making this learning more difficult.Is there a simple
1, the basic software installation and configuration of the environmentJDK, Android SDK, NodeJs, AntTheir installation method and environment variable configuration can be self-Baidu or Google.2, the installation of PhoneGapOpen the cmd window and enter NPM install-g PhoneGap (provided the Nodejs is installed and configured).3, the installation of CordovaOpen the cmd window and enter NPM install-g Cordova4, the installation of IonicOpen the cmd window
You follow the following steps to write, no errors, in the middle because there is no Cordova-2.9.1.jar file, resulting in the construction of the project error, so step 2 is very important.1, in the PHONEGAP official website (phonegap.com/install) Download the latest version (currently PhoneGap 2.9.1), download and unzip.2, the new version of the PhoneGap 2.9.1,
下载 203.208.46.146 dl.google.com 203.208.46.146 dl-ssl.google.com And in the Android SDK Manager, set Tools---options tick force https ... to HTTP, that is, enforce the use of HTTP links 3.ant compilation ErrorKey exception: Class not found:javac1.8 The reason is that ant1.9 does not support jdk1.8, either change the ant version or change the JDK version 4. Missing Hello-cordovalib.jarCordova importing a project with Eclipse (with two projects Cordovaapp-cordovalib projects and user-created proje
It is purely a result of idle effort, but there are still some problems in the middle. record it. Because there is no iOS development Key, only the android installation program is released successfully. I have written an article about building a webapp project
The official website of phonegap provides a buid generator which can generate corresponding installation programs. Address: https://build.phonegap.com/#, click here first, and then give the app
1: CopyPhonegap-1.2.0.jsToAssets/WWWDirectory
2: Copy phonegap-1.2.0.jar to libs directory after buildpath
3: Copy XML folderResDirectory
4: Modify the androidmanifest. xml file
4: Modify Activity
package com.xinxin;import com.phonegap.DroidGap;import android.app.Activity;import android.os.Bundle;public class HelloWorldPGActivity extends DroidGap { /** Called when the activity is first created. */ @Override public void onCreate(Bundle save
1. Create an Android Project in eclipse.2. Create two folders under the project directory:/Libs/Assets/www3. Enter the Anroid directory in the PhoneGap package that we just downloaded and decompressed. all the resources we need are in this directory.Copy the js file cordova. js (the specific name depends on the version downloaded at the time) to the/assets/www directory,Copy the cordova-2.9.0.jar file to the/libs directory.Copy the xml directory (the
integrates HTML5 mobile development. This book is intended for beginners of mobile development. It is easy to read and is suitable for mobile APP startups. This release is 3rd ~ Chapter 5 serves as the basis for readers to learn. If you are interested, please purchase this book! Welcome to join the group: 348632872. Ask the author directly!
Build a Phonegap Environment
Follow these steps to
style and so on. Without CSS, it is difficult to control the positioning and style of your page. It is recommended that you have knowledge about CSS3 and write a better interface;
L JavaScript: Background interaction is implemented by JavaScript, read and write databases, and load data into Google Map;
L PhoneGap Class Library: Are JavaScript library, use is very simple, there are detailed documents, can refer to the official website: http://docs.pho
app, run: Phonegap/cordova Create hello Com.vmeitime.hello HelloWorldA project named HelloWorld is created under C:\hello, and the HTML5 file is in the C:\hello\www directory.The first parameter, Hello, represents the project folder name, where the WWW subdirectory is generated as the main page in the directory, including Css,js and IMG resources. In this configuration, config: Contains important resource descriptions and project configurations infor
1 who is Cordova? PhoneGapthe official documentationthat's very clear. Cordovais aPhoneGapengine, the relationship between the two is similar toWebKitwith theChromethe browser's relationship. So some core basic operations areCordovawith thePhoneGapare interlinked. Sometimes usePhoneGapCreate the project will appear some inexplicable problems, recommend the use ofCordova created . 2 Downloads phonegap and Cordova a little. See "Installation Configurati
introduction.Steps:1. Download Crosswalk Cordova for AndroidChoose Cordova android (ARM) This can, x86 Android devices are not many. Select Stable stable version of the download, beta and canary version may have some bugs.2, the download down the zip decompression, such as decompression to D:\crosswalk-cordova-8.37.189.12-arm3, create a PhoneGap project, under E:\hello.CD e:d:\crosswalk-cordova-8.37.189.12-arm\bin\create Hello Com.pushsoft.hello Hell
details, refer to the official documentation. The official phonegap website is http://phonegap.com /. Different initial environments are required for different platforms. For example, android needs to import jar packages and configure the initial XML. Once these environments are configured, multiple platforms can access the same Html or dynamic web page to achieve hardware interaction with each platform.
Environment
directory for the project using Xcode, Eclipse, or any of the native toolchain needed. Then use the tool to run the project. The specific steps are outlined in each platform's respective getting Started guide. Symbolic links are often used to transfer "www" folders to a common directory location across multiple native projects.A similar workflow is required to install the native packaged PhoneGap application on the device. However, to complement this
obtained using the element's ID attribute on line 13th. Readers familiar with JavaScript can find that this is exactly the same as JavaScript's DOM operations.Tsinghua University Press launched the "build cross-platform App:phonegap mobile app" is an app book, contains more than 20 app instances and 3 app projects, but also combined with HTML5 mobile development. This book is for mobile development beginners, low threshold, shallow reading, the most
Previous blog post using PHONEGAP development based on HTML5 application one: phonegap introduction I introduced how to download the source code from the PHONEGAP official website and launch the first application, today we put the application of phonegap a little change, Let him achieve several features that compare th
PHONEGAP Official website: http://phonegap.com/
Part One: Installation Nodejs
Installation Address: http://nodejs.org/
Install PhoneGap official website Download http://phonegap.com/install/
$ sudo npm install-g phonegap This installation may be slower, patiently waiting for the next
Installation Successful
Usr/local/bin/
can find that there are three project,These three project are:Cordovalib:phonegap library file, build static library after compiling. a fileCordovalibtest: Unit test, no more.Cordovalibapp, this project is the application we want to run, we bulid this projectYou can see the following effects:Note: If you encounter the following error:Undefined Symbols for Architecture i386:"_objc_class_$_cmmotionmanager", referenced from:Objc-class-ref in LIBCORDOVA.
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.