phonegap

How do I get a Phonegap app to receive variables on Android?

匿名 (未验证) 提交于 2019-12-03 02:20:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: With much help from the Stack OVerflow community, I now have successfully set up my Android app so that when one clicks on a link in an email, it opens my app directly. In other words, I have my <intent-filter> in my AndroidManifest.xml properly configured. So far so good, but there is one last step that I am still struggling with, which is getting my Phonegap-built app to pick up and use the variables that I pass to it from a URL in an email. The link in the email looks like this: <a target="_blank" href="https://mysite.com/confirmation

Phonegap + Android status=0 returned from webservice

匿名 (未验证) 提交于 2019-12-03 02:20:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Phonegap Crew, I have an problem with accessing a webservice using android. I have no problem accessing it using iOS. The enclosed code uses a public webservice so you can try the code if you are so inclined. On iOS we get a xmlhttp.status == 200 and returned data. On Android we get a xmlhttp.status == 0. We are using cordova-1.8.1.jar We have the white list set in res/xml/cordova.xml like this: <access origin=".*"/> I am bring that up because I am suspicious that our white list is not working. here is the code: function testweather(){ var

PhoneGap iOS App Icon [duplicate]

匿名 (未验证) 提交于 2019-12-03 02:18:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: This question already has an answer here: How to add app icon within phonegap projects? 13 answers So I'm trying to specify my custom iOS icons for my app in my config.xml file, using the guide at https://build.phonegap.com/docs/config-xml However, when I use the line of code they give you, the app fails to load, and throws an error in XCode; 2013-07-24 09:32:06.121 iLens[19852:c07] *** Assertion failure in -[CDVConfigParser parser:parseErrorOccurred:], /Applications/MAMP/htdocs/carlzeiss/phonegap-2.9.0/iLens/CordovaLib/Classes

Disabling text selection in PhoneGap

匿名 (未验证) 提交于 2019-12-03 02:18:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Is it possible to disable text selection to make a PhoneGap app more similar to normal native app? Something like this: document.onselectstart = function() {return false;} or: * { user-select: none; -moz-user-select: -moz-none; -khtml-user-select: none; -webkit-user-select: none; } Or many other things don't work. 回答1: I looked all over for help on this. This finally worked for me. public class MainActivity extends DroidGap { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.loadUrl("file:/

New PhoneGap 3.0 The import org.apache.cordova cannot be resolved

匿名 (未验证) 提交于 2019-12-03 02:16:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm installing the new phone gap 3.0 with the all-mighty command line. cordova create hello com.example.hello HelloWorld cordova platform add android When I open the android project in eclipse I get this error on HelloWorld.java : The import org.apache.cordova cannot be resolved I guess I have a missing library but how to I solve this if the only way to install 3.0 is thought the command line. 回答1: Update: If you upgrade to Phonegap 3.3 you shouldn't need to do this anymore. Details on updating Phonegap: http://phonegap.com/blog/2013/12/13

Build android release apk on Phonegap 3.x CLI

匿名 (未验证) 提交于 2019-12-03 02:11:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: How can I build an android app locally using the Phonegap 3.x CLI, ready to release? I check the bin folder generated inside the platforms/android directory of the project, and only has .debug APKs. By the way, I use this command: phonegap local build android 回答1: This is for Phonegap 3.0.x to 3.3.x. For PhoneGap 3.4.0 and higher see below . Found part of the answer here , at Phonegap documentation. The full process is the following: Open a command line window, and go to /path/to/your/project/ platforms/android/cordova . Run build --release

PhoneGap Eclipse Issue - eglCodecCommon glUtilsParamSize: unknow param errors

匿名 (未验证) 提交于 2019-12-03 02:11:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have just started on phonegap and trying to setup first basic minimal project in eclipse. I followed through the phonegap docs at http://docs.phonegap.com/en/edge/guide_platforms_android_index.md.html#Android%20Platform%20Guide but I am getting continuous errors like these. Any pointer to fix this would be helpful. thx 03-12 06:08:05.970: E/eglCodecCommon(825): glUtilsParamSize: unknow param 0x00000b44 03-12 06:08:05.980: E/eglCodecCommon(825): glUtilsParamSize: unknow param 0x00000bd0 03-12 06:08:06.080: I/chromium(825): [INFO:async_pixel

Phonegap - Save image from url into device photo gallery

匿名 (未验证) 提交于 2019-12-03 02:11:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm developing phonegap application and I need to save Image from url to the Device Photo Gallery. I can't find at the Phonegap Api a way for doing it and Also I didn't find phonegap plugin for that. I need it to work with Iphone & Android Thanks a lot! 回答1: This is file download code which can be used by anyone. You just have three parameters to use this like- 1) URL 2) Folder name which you want to create in your Sdcard 3) File name (You can give any name to file) All types of file can download by using this code. you can use this as .js

PhoneGap - Open external application

匿名 (未验证) 提交于 2019-12-03 02:06:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am developing a PhoneGap App, All what I need is to open an external application. e.g. my app namespace is com.demo.app1 and I need to open the com.demo.app2 application, Is this feasible ? I am using PhoneGap 3.3 I found that there is many versions of the WebIntent plugin An example may help :) Thanks 回答1: You can crea a plugin with this java code: Intent LaunchIntent = this.cordova.getActivity().getPackageManager().getLaunchIntentForPackage("com.demo.app2"); this.cordova.getActivity().startActivity(LaunchIntent); or try any of this 2

Screen Resolution On A PhoneGap App

匿名 (未验证) 提交于 2019-12-03 02:06:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm writing a Phonegap (3.2) app, I take a HTML5 canvas, make it full screen and the whole app UI is on this canvas. Using a Samsung Galaxy S4 (Android 4.3) to test the app, the screen resolution of the app is only 360X640 and not 1080X1920 like I want it to be. What is needed to be done in-order to make the app use the maximum possible screen resolution ? I've added screen shots 1) // Looks OK but bad resolution windowWidth = window.innerWidth; windowHeight = window.innerHeight; 2) // Takes small part of the screen, rest is white