phonegap-plugins

Sound recognition for Phonegap

六眼飞鱼酱① 提交于 2021-01-29 04:15:04
问题 I am creating an Android application using Phonegap. I would like to record a sound (for example, a doorbell), and detect if that sound is heard again. Is there any sound recognition plugin for Phonegap? If not, how can I access the frequencies of the recorded sound (for example, in an array), so I can manually write an algorithm to compare the two audio files? Is there any audio format which stores data in that form? Thank you 来源: https://stackoverflow.com/questions/39315104/sound

How to catch exit app event?

与世无争的帅哥 提交于 2021-01-27 00:35:56
问题 Hy! I need to catch the exit app event in my phonegap application. Actually I want to trigger a looseLife() function if the player tries to cheat and exit the app with minimize and exit from task manager while he already started a new lvl. If he exit it correctly, by pressing the back button it works fine. I tried onunload or onbeforeunload but these functions get called only if I close the app normally, without minimizing it and closing it from task manager. The pause function also doesn't

How to catch exit app event?

无人久伴 提交于 2021-01-27 00:33:58
问题 Hy! I need to catch the exit app event in my phonegap application. Actually I want to trigger a looseLife() function if the player tries to cheat and exit the app with minimize and exit from task manager while he already started a new lvl. If he exit it correctly, by pressing the back button it works fine. I tried onunload or onbeforeunload but these functions get called only if I close the app normally, without minimizing it and closing it from task manager. The pause function also doesn't

Cordova - download image from URL to the pictures gallery

你。 提交于 2021-01-01 06:33:13
问题 I created a simple cordova android app and I am trying to download an image from an URL to the pictures gallery, but I really can't figure out what is going wrong. I have already searched a lot here in stackoverflow, including the following links: Phonegap - Save image from url into device photo gallery How to save an Image object into a file in Android with Phonegap? I have installed cordova File Transfer plugin and tried to do the example from the official site, but it didn't work too:

Cordova - download image from URL to the pictures gallery

偶尔善良 提交于 2021-01-01 06:31:31
问题 I created a simple cordova android app and I am trying to download an image from an URL to the pictures gallery, but I really can't figure out what is going wrong. I have already searched a lot here in stackoverflow, including the following links: Phonegap - Save image from url into device photo gallery How to save an Image object into a file in Android with Phonegap? I have installed cordova File Transfer plugin and tried to do the example from the official site, but it didn't work too:

cordova: media.getDuration returns -1

放肆的年华 提交于 2020-06-16 04:24:11
问题 I am using Media.getDuration() function to get duration of an audio file but I am always getting -1 as response. This works fine if I build using build.phonegap.com But whenever I build using cli I then getDuration does not work. Following are simple steps to reproduce this issue: CLI: cordova start my_project cordova plugin add cordova-plugin-media cordova platform add android cordova build android www/index.html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4

cordova: download from url to android download folder

夙愿已清 提交于 2020-05-13 07:52:12
问题 Well before i start i tried below answers from stack overflow. Download file to downloads folder ios/android using phonegap FileTransfer Cordova download path Download a file to Downloads folder of device using Cordova FileTransfer http://www.phonegaptutorial.com/downloading-an-image-from-the-internet-with-phonegap/ But no luck at all. I am trying to download a file from internet. My target is to download the file in download folder on Android phone. I tried all the above answers and also i

Cordova plugin: danwilson/google-analytics-plugin not working on android device

こ雲淡風輕ζ 提交于 2020-02-08 02:49:30
问题 I'm trying to use the google analytics on Cordova app, I've followed the instruction on the the repository , and all works well on the chrome android emulator . I see live activity on google analytics site. but when i log into the app from the device , it seems the analytics is not recognizing the the app. in my config.xml I have : < access origin="*" > In the android manifest I have the permissions : android.permission.INTERNET android.permission.ACCESS_NETWORK_STATE When running in debug

Android phonegap app : unable to retrieve an image taken by the camera using my own code (not phonegap's)

醉酒当歌 提交于 2020-02-07 03:20:26
问题 Note- even though im using phonegap, the question is not about some issue in that. Hi, im developing a android app. my app is using phonegap 1.3. mi problem... Im using phonegap apis to take a picture and display it in my app. But whats happening is due to some reason the os kills my app after the camera is launched, so that after the photo is clicked, my app is relaunched and it doesnt get the info abt the taken picture. As a workaround to this problem (the problem), i designed a phonegap

$_files is empty in image upload in Phonegap/Cordova [closed]

孤街醉人 提交于 2020-02-05 03:56:08
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . Now its almost 6 days and I am trying to fix image upload issue in cordova-php but not able to fix it. I tried multiple solutions from Google and Stack Overflow. But none of them is working for me. I am using the below code as front end. <div> <h3>Server URL for upload.php:</h3> <input id="serverUrl" type="text"