cordova

How to hide device back functionality in jquery mobile tab (navbar)?

笑着哭i 提交于 2020-01-15 23:50:48
问题 I have developed jquery mobile tab to my page. If my page having 5 tabs, now I'm in 3rd tab. I would like it so that when I press the back button from mobile, it should automatically redirect to the 2nd and 1st tab. Then it should redirect to my home page like another html page. When I press the back button from device, it'll automatically redirect to my home page not a previous tab page. How to control in jquery mobile? Please do the needful. Thanks in advance. 回答1: You need to listen to

Android permissions in Cordova 4.0 config.xml

与世无争的帅哥 提交于 2020-01-15 20:08:47
问题 I used Cordova 4.0 to create a phonegap app (that has worked fine via cli on iOS), but I also want to use build.phonegap.com particularly for Android. The main issue is that upon installing the APK on Android, the security warning lists all features, when I do not actually need any. I have read that you can remove all permissions with <preference name="permissions" value="none" /> and then selectively add back the ones you want. However, this is not working; I still get all the permissions

Cordova cli create with proxy

随声附和 提交于 2020-01-15 18:46:03
问题 I want to run cordova create hello com.example.hello HelloWorld but all I get is the base folder structure and the error: connect ETimedOut. I have set the proxy for node.js and PhoneGap projects get setup fine. Cordova cli is setup fine so far (can find it in c:\Users\username\AppData\Roaming\npm) Anything I am missing? (PATH is set to ...npm) 回答1: I managed to fix it: set the urls platform.js http instead of https. installed ANT and set some environement vars: ANT_HOME c:\dev\apache-ant-1.9

minimize iOS-Phonegap/Cordova App

扶醉桌前 提交于 2020-01-15 16:40:40
问题 In a Phonegap Javascript app I close the Android Version of this app with navigator.app.exitApp(); As we know, closing apps is not allowed in iOS. But the iPad User can minimize the app into the background e.g. by swiping. Two questions: Is it possible that I could minimize the app programmatically? Is there an event when the user minimizes the app? 回答1: This concerns your point Nr 2: When the App is minimized, i.e. put to the background, the "pause" Event is fired and can be handled. See

minimize iOS-Phonegap/Cordova App

岁酱吖の 提交于 2020-01-15 16:40:30
问题 In a Phonegap Javascript app I close the Android Version of this app with navigator.app.exitApp(); As we know, closing apps is not allowed in iOS. But the iPad User can minimize the app into the background e.g. by swiping. Two questions: Is it possible that I could minimize the app programmatically? Is there an event when the user minimizes the app? 回答1: This concerns your point Nr 2: When the App is minimized, i.e. put to the background, the "pause" Event is fired and can be handled. See

Given URL is not allowed by the Application configuration. when using the Facebook Javascript SDK

狂风中的少年 提交于 2020-01-15 12:33:45
问题 Im currently using the Facebook Javascript SDK and I keep running into the following problem that appears in the console: Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains. I've read a truck load of related posts but still can't get it to work. I am working locally using the following: http://localhost:8080

Given URL is not allowed by the Application configuration. when using the Facebook Javascript SDK

ⅰ亾dé卋堺 提交于 2020-01-15 12:33:26
问题 Im currently using the Facebook Javascript SDK and I keep running into the following problem that appears in the console: Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains. I've read a truck load of related posts but still can't get it to work. I am working locally using the following: http://localhost:8080

flot on android: how to fit the screen size

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-15 11:20:07
问题 I'm trying to use flot to plot something on the webview but hard to get the figure to fit nicely according to the screen size. It seems that only absolute size is accepted, while I change it to relative, the figure disappeared: <div id="placeholder" style="width:80%;height:40%;"></div> An example you can try is here from someone else: Using Flot's Bar Graph in an Android WebView with Highlighting 回答1: problem solved. I have to use the device-width: <div id="graphHolder" STYLE="height:200px

Sketch.js pageX undefined error

╄→гoц情女王★ 提交于 2020-01-15 10:59:06
问题 I am using sketch.js by intridea in my phonegap application.It works allright with the modification case 'touchstart': if (this.painting) {//add this.stopPainting(); //add }//add this.startPainting(); break; by adding the above lines to the code.But I am getting a pageX undefined error which is crashing my app. 01-23 19:53:59.342: E/Web Console(31932): Uncaught TypeError: Cannot read property 'pageX' of undefined at file:///android_asset/www/js/external_libs/sketch.js:107 How to overcome this

Native library not loaded from cordova apk

眉间皱痕 提交于 2020-01-15 10:37:09
问题 I'm making a cordova plugin that would be a simple wrapper for a .jar file and its two .so dependencies. I have tried it before in a normal android application with android studio. By copying the native libraries into the jniLibs/armeabi folder and the jar file into libs/ it worked perfectly. At the cordova plugin I've made the same folder structure and everything is on the same place. In the plugin.xml I have copying the two files into libs/armeabi which is working because if I look into the