1, the Debugging apkCordova Build AnoroidFigure AGenerates a debug mode apk, for exampleFigure 22. Use the Keytool command provided in the JDK to generate a signed certificateCMD to the xxxx-release-unsigned.apk directory generated in the previous stepKeytool-genkey-v-keystore xxxx.keystore-alias xxxx-keyalg rsa-validity 365Figure 3Detailed Command ReferenceHttp://www.cnblogs.com/kungfupanda/archive/2010/09/01/1815047.htmlGenerate Xxxx.keystore certificates in the same directoryFigure Five3. Use
Tags: blog Io ar Java file Div on 2014 Art 1. recording function Navigator. device. capture. captureaudio (function (Files) {// success callback function Ext. getcmp ("video_files_mainview "). config. param. sourceobj. startupload (files [0]. fullpath, 2) ;}, function (error) {// failure callback function // navigator. notification. alert ('error code: '+ error. code, null, 'capture error') ;},{ limit: 1}); // maximum number of files recorded at a time 2. Video RecordingNavigator. device. captur
(intent );}View code
9 modify the androidmanifest. xml file
---------------------- Modify the application node Android: Name = "com. Baidu. frontia. frontiaapplication"
---------------------- Register the mypushmessagereceiver class
The XML file is as follows:
View code
10. Enable this function in the oncreate method of the active node.
public void onCreate(Bundle savedInstanceState) { try{ PushManager.startWork(getApplicationContext(), PushConstants.LOGIN_TYPE_API_KEY
I created a phonegap-based iPhone project and added the asihttprequest library downloaded from the Internet to report an error. After searching for the information for half a day, I had to modify it myself. The resource library has been uploaded. The address is
Http://download.csdn.net/detail/yqmfly/4114365
After the download, add
Libz. dylib, libxml2.dylib, storekit. Framework, and cfnetwork. framework can be compiled successfully in the project
1. Create a Cordova project with a commandCordova coreate Hello Com.example.hello Hello2. Open MainactivityIn the OnCreate method, addSetcontentview (r.layout.main_activity);3. main_activity files are as follows:Systemwebview is an extended WebView4. Re-Makewebview method and Createviews method @Override protected Cordovawebview Makewebview () { Systemwebview WebView = (systemwebview) Findviewbyid ( R.id.cordovawebview); Cordovawebview Cordovawebview = new Cordovawebviewimpl (n
After I installed and configured all the dependencies on the PhoneGap project, I tried to execute
$ Cordova Run Android
command, the following error occurred.
Error:/home/sam/front/redwine/platforms/android/cordova/run:command failed with exit code 8At Childprocess.whendone (/usr/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js : 135:23)At ChildProcess.EventEmitter.emit (events.js:98:17)At Maybeclose (child_process.js:743
Reference:
Phonegap:free Mobile application framework based Web standard-html 5, JavaScript
Http://www.phonegap.com/about
Tutorial:a Sencha Touch MVC application with PhoneGap
Http://www.dev.extjs.com/learn/Tutorial:A_Sencha_Touch_MVC_application_with_PhoneGap
ExtJS: A good web framework. The Sencha touch Framework supports only the iphone, Android, and does not support the BlackBerry for the time being
Create amazing apps built on web stand
],
function () {
$$ (" Txtname "). value=" ";
$$ ("Txtscore"). value= "";
Alert ("successfully added 1 records!");
},
function (tx,ex) {
console.log (ex.message)
})}}}
4. Querying data function Querydata () {
if (db) {
var sql = "Select * from Stuinfo";
Db.transaction (Function (TX) {
tx.executesql (sql,[],
function (TX, results) {
var len = Results.rows.length,i;
var htmldata = "";
for (i = 0; i
or fullscreen to Set the presentation style (defaults to fullscreen ).
Transitionstyle: Set to FlipHorizontal, Crossdissolve or coververtical to Set the transition style (defaults to C oververtical).
toolbarposition: Set to top or bottom (default is bottom). Causes the toolbar to is at the top or bottom of the window.Windows only:
hidden: Set to Yes to create the browser and load the page, but not show it. The Loadstop event fires when loading was complete. Omit or set to No (default)
the call will be returned through the Onrestar method and the OnStar method to return to the music interface, and adjust the music playback progress of 1 minutes 50 seconds.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 suitable for mobile app startup
return to the music interface, and adjust the music playback progress of 1 minutes 50 seconds.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 suitable for mobile app startup small white. This release of the 3rd to 5th chapter as the basis for readers t
1. Page Toggle Animation End Card (disable animation)2, search or navigation labels need to be fixed (tag Selector dynamic modification height)3, Pancel container by default when the content is not put through the dynamic of the $ (""). Empty (). HTML () When adding content, there is a problem with the scrollbar, and there is no afscrollbar to create the scroll container (the label defaults to a 4, Fast switch details page and List page appear suspended animation (Disable system Return key 2 sec
Guangzhou huadu Forum, intends to launch local Service application. Rapid development of mobile applications, PhoneGapMy station, http://www.w30.cn/.If there is any problem can also go to the group message, if possible, contribute an IP:)PhoneGap Group Http://www.w30.cn/go/w30If there is any problem can also join our QQ group: 64674997Here is my installation processEnvironment construction First, you need to download some installation packages:(Note b
These two days encounter a little problem, make a record:Symptom: Run, debug when reported: Unable to execute dex:multiple Dex files define error, after the release of the app installed to the phone after the run, prompted: "Program name has been stopped";Workaround:1, Project->properties->java build Path->order and Export, remove: Android 4.3.1 and Android-support-v4.jar choice;2. Project->properties->java build Path->libraries->add external JARS, found: extras/android/support/v4/in SDK directo
1.CSS3 rounded white edge: When using the CSS3 fillet effect, white edges are generated on some Android machines, so a div should be in the rounded div (the background color is the same as the outside), and then there is a fillet effect inside the div that uses its own background colorborder-radius:5px;Box-shadow:inset 0 2px 5px #e1e1e1;2. Screen resolution problems: for example, the 640*480 on the PC and the device's resolution 640*480 different, involving resolution density (DPI). On a PC, a p
When you add a click event to a custom overlay, you will find that the mobile side is not triggering at all, which is a bug.I recently developed a second edition for my Map app, and I was bothered to add behavior to a cover, the Click event of the custom overlay was not triggered on the iphone, and the open Source Library in the Baidu Map JS API involved a custom overlay Click event that was not valid.I worry for this bug for a long time, until today, QQ Group in the Netizen (in this first thank
Custom WebView window opensImport Com.ap.work.QuickWebpublic class Quickplugin extends Cordovaplugin {/** * Newly opened WebView open link * * @param context * @ return */public void WebUrl (Jsonarray data, Callbackcontext callbackcontext) {try {//The following two sentences are the most critical, Use intent to start the new activityintent intent = new Intent (). SetClass (Cordova.getactivity (), quickweb.class); Intent.setflags ( intent.flag_activity_new_task| Intent.flag_activity_clear_top);
PS: Installation process refer to this page of Cordova official website1. Installing CordovaGo to Cordova website to download and installOr: Download and install node. js, under the premise that NPM can be usedInstalling with NPM install cordova-g in cmd2. Installing the JDKIncludes: JDK SDKs antPS: Remember to add environment variables, includingThe bin directory of the JDK, the Platform-tools directory of the SDK, the tools directory of the SDK, the ant bin directoryand the new environment var
In web programs, # is often used to scroll and locate elements on the same page, as shown below:
You may want to achieve the same effect in the phonegap/jqm application, but the default HTML behavior does not work in jqm,
You need to define multiple internal pages (page elements) in an HTML file.
You can place your code in index.html, the first page of the phonegapapplication, but the following two situations are not all true:
1) But if you
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.