tag:blogger.com,1999:blog-72386855013225666.post1040976296341150922..comments2023-04-18T05:16:02.299-04:00Comments on Simon Mac Donald: Changes in PhoneGap Android 1.1.0Simon MacDonaldhttp://www.blogger.com/profile/14749383583517044214noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-72386855013225666.post-7890166906088905452012-03-26T12:24:53.272-04:002012-03-26T12:24:53.272-04:00@Salman FF
I think you just want to set the Camer...@Salman FF<br /><br />I think you just want to set the Camera.PictureSourceType to PHOTOLIBRARY or SAVEDPHOTOALBUM to get the data you want.Simon MacDonaldhttps://www.blogger.com/profile/14749383583517044214noreply@blogger.comtag:blogger.com,1999:blog-72386855013225666.post-49439553530475817262012-03-23T04:10:49.663-04:002012-03-23T04:10:49.663-04:00Thx for all your help Simon.
I also find there are...Thx for all your help Simon.<br />I also find there are big differences between Android & iOS implementations. With Android, I can use your clarifications to give users access to all their photos in the photo library. (thx @LucyJP for the question :) )<br />Do you know of any way to do that in iOS? <br />Browsing around a little, it seems the way to do it is via the ALAssetsLibrary library. Do you know of any phone gap plugins giving access to it? (There is a bar code scanner plugin using the library but no camera roll library!) <br />Thanks!Salman FFhttps://www.blogger.com/profile/13512868221169382044noreply@blogger.comtag:blogger.com,1999:blog-72386855013225666.post-31305537056219879342011-10-16T09:09:48.825-04:002011-10-16T09:09:48.825-04:00@James
Yes, the .js files are platform dependent....@James<br /><br />Yes, the .js files are platform dependent. you need a different one for each platform. we are working on it.Simon MacDonaldhttps://www.blogger.com/profile/14749383583517044214noreply@blogger.comtag:blogger.com,1999:blog-72386855013225666.post-20003875600263578022011-10-16T08:46:20.207-04:002011-10-16T08:46:20.207-04:00Hi Simon
Thank you for all your excellent work wi...Hi Simon<br /><br />Thank you for all your excellent work with PhoneGap and this post is very helpful. I am working on iOS and Android with PhoneGap 1.1.0 and have found that there is a huge difference between phonegap-1.1.0.js file for the two operating systems. For example, when I create a new xCode app, it creates a phonegap-1.1.0.js file of 125,723 bytes, but the Android sample uses phonegap-1.1.0.js which is 140,170 bytes. Does this mean I need to use two different phonegap.js files for the two operating systems?James Hendersonhttps://www.blogger.com/profile/13069792203840023040noreply@blogger.comtag:blogger.com,1999:blog-72386855013225666.post-14817353996073116842011-10-10T21:01:45.086-04:002011-10-10T21:01:45.086-04:00@Greg
It does on my Samsung device. Can't pro...@Greg<br /><br />It does on my Samsung device. Can't promise that it will work that way on all Android devices. Gotta love fragmentation.Simon MacDonaldhttps://www.blogger.com/profile/14749383583517044214noreply@blogger.comtag:blogger.com,1999:blog-72386855013225666.post-88938284650906336172011-10-10T14:04:25.145-04:002011-10-10T14:04:25.145-04:00Hi Simon,
By default - does taking a picture on t...Hi Simon,<br /><br />By default - does taking a picture on the Android iOS version save it to your Album?<br /><br />Thanks,<br />GregGreghttps://www.blogger.com/profile/04192686856648748899noreply@blogger.comtag:blogger.com,1999:blog-72386855013225666.post-73102308783503608442011-10-06T16:17:18.353-04:002011-10-06T16:17:18.353-04:00Hi Simon,
Thanks for the excellent help you provi...Hi Simon,<br /><br />Thanks for the excellent help you provided me along with the fixes for FileEntry.remove() and the double image bug. Nice write-up on this page.<br /><br />Cheers,<br />DavidAnonymoushttps://www.blogger.com/profile/06438397953682791284noreply@blogger.comtag:blogger.com,1999:blog-72386855013225666.post-23727783435846149172011-10-03T21:47:32.439-04:002011-10-03T21:47:32.439-04:00Hi Simon, thank you for your response, it worked v...Hi Simon, thank you for your response, it worked very well!! Thank you!LucyJphttps://www.blogger.com/profile/12320699022185322847noreply@blogger.comtag:blogger.com,1999:blog-72386855013225666.post-76481936996686612882011-10-03T18:18:48.817-04:002011-10-03T18:18:48.817-04:00@LucyJp
Yup, you just need to do a:
window.resol...@LucyJp<br /><br />Yup, you just need to do a:<br /><br />window.resolveLocalFileSystemURI("content://media/external/video/media/360", onSuccess, onError);<br /><br />and you will get back a FileEntry object which you can then get the fullPath property which is perfect for the FileTransfer.upload() method.Simon MacDonaldhttps://www.blogger.com/profile/14749383583517044214noreply@blogger.comtag:blogger.com,1999:blog-72386855013225666.post-87771996174491477142011-10-03T16:05:56.768-04:002011-10-03T16:05:56.768-04:00Hi Simon, thank you for the nice post! Very happy ...Hi Simon, thank you for the nice post! Very happy to see that now we can get the video files via getPicture () method!<br /><br />Question, do you know there is way that we can get the file extension and mime type of the video file? When calling getPicture() and receiving FILE_URI , the uri does not contain the file extension (i.g: content://media/external/video/media/360 ). <br /><br />Need the file extension for our server side process (need either mime type or file extension so that file will have correct content type)<br /><br />For the photo, I am appending the extension (jpg) and mime type (options.mimeType="image/jpeg";) before calling FileTransfer.upload() but video file extension can be different on different devices. <br /><br />Could you please suggest me something?<br /><br />Thank youLucyJphttps://www.blogger.com/profile/12320699022185322847noreply@blogger.com