last day (15 days later) » 

08:44
0
A: Different image path for capture and upload option using cordova , android app

Divesh SalianFor getting the exact location you can make use of filesystem api in phonegap. So your upload code will look like var fileuri =""; function uploadSubmit(){ var uploadingImage = document.getElementById('largeImage'); var imgUrl = uploadingImage.src; window.resolveLocalFileSystemURI(...

window.resolveLocalFileSystemURI(imgUrl , resolveOnSuccess, fsFail); is not running. I am new to cordova, please tell me how to get it .
have u added file plugin ??
Check this link
file plugin ? are to talking about config.xml file ?
I am using version 2.9.0 , so i added
<plugin name="File" value="org.apache.cordova.FileUtils" />
<plugin name="FileTransfer" value="org.apache.cordova.FileTransfer" />
If its 2.9 den you don't need to add plugin.... wat error u get ?
I am not getting any error , after "var imgUrl = uploadingImage.src;" program get stops. its not executing after this window.resolveLocalFileSystemURI(imgUrl , resolveOnSuccess, fsFail);

How to saw error in emulator ? i checked this after downloading apk
08:44
enable logcat
try running code from
exclipse so u can
debug
but what about camera file ?
sorry camera
its not working
r u thr ?
I am not able to check camera function
09:48
I am not able to check camera function in eclipse
How to debug in elcipse ?
Let me upload my code in fiddle ?
try searching
in google
\how to enable logcat
I mean to say
run your application via
exclipse
10:08
logcat is enabled , but how can i check the camera functionality in desktop ?
Sumbdy has developed plugin
for testing camera
on dekstop
search on google
Ok i will check, Please check this fiddle and tell me suggetions ,

http://jsfiddle.net/randeep161/hyG9U/1/
?
r u able to take pic
10:37
yes
ok
does it goes under
add this function
function fsFail(message) {
alert(message +" "+ message.target.error.code);
}
it will catch
resolve block error
if any error found
ok
let me try
11:08
do u get any error now
11:52
its working now.. but showing another error, missing API emulation
error code ?
12:05
i am using intel xdk emulator after successfuly recieving the image tag, i got an alert like
missing API emulation
FileTransfer.upload

It appears that we are missing emulation for that API yet.

Push the Fail button to continue the API by calling the fail callback. Push the Success button to continue the API by calling the success callback.
 
2 hours later…
13:39
well I dont use emulator
we test directly on device

  last day (15 days later) »