I have a asp.net website on a public server and it has a form. The button on the form should initialize a camera and when capture is done, the image file should be uploaded on the server to save it in the database.
We are looking for the similar thing for Android. For now whatever forum I visited in relation, they all point to developing a java based web app e.g. PhoneGap which is not an option for us.
So I have two questions:
Is there any native AndroidAPI which can be called via Javascript and enable to interact with the Camera and upload an image?
or
Is there any Android APP which can be called via Javascript for intitializing camera and upload an image?
I checked that but in my web page when I link phonegap.js and I used the link you suggested, the navigator.camera alsways comes as undefined.
I was correctly linking the phonegap js from the android folder.
I dont think only linking the phonegap js file I would be able to use camera. Probably there is requirement of app development as android folder in the phonegap package also comes with a jar file. Not sure how I can link this phonegap libs to my asp.net
web application.
If that link didn't helped you, then i don't think you can achieve your requirement using Web App! If you want to access the device, you need to develop an thick app!
vsambhe
Member
2 Points
3 Posts
Initializing Android Camera and upload an image through a website form
Dec 14, 2011 04:10 PM|LINK
Hi,
I have a asp.net website on a public server and it has a form. The button on the form should initialize a camera and when capture is done, the image file should be uploaded on the server to save it in the database.
We implemented this for Iphone though a webapp called QuickPic. We call this application through the javascript. The link below has the javascript code for the same. http://www.resolved-technologies.com/php/cliqcliq-quickpic-upload-for-php/
We are looking for the similar thing for Android. For now whatever forum I visited in relation, they all point to developing a java based web app e.g. PhoneGap which is not an option for us.
So I have two questions:
Is there any native AndroidAPI which can be called via Javascript and enable to interact with the Camera and upload an image?
or
Is there any Android APP which can be called via Javascript for intitializing camera and upload an image?
Thanks,
Vijay
roopeshreddy
All-Star
20143 Points
3327 Posts
Re: Initializing Android Camera and upload an image through a website form
Dec 15, 2011 06:42 AM|LINK
Hi,
Check the below link!
http://docs.phonegap.com/en/1.0.0/phonegap_camera_camera.md.html
The above link contains the JavaScript code from PhoneGap!
Hope it helps u...
Roopesh Reddy C
Roopesh's Space
vsambhe
Member
2 Points
3 Posts
Re: Initializing Android Camera and upload an image through a website form
Dec 15, 2011 08:20 AM|LINK
HI Roopesh,
I checked that but in my web page when I link phonegap.js and I used the link you suggested, the navigator.camera alsways comes as undefined.
I was correctly linking the phonegap js from the android folder.
I dont think only linking the phonegap js file I would be able to use camera. Probably there is requirement of app development as android folder in the phonegap package also comes with a jar file. Not sure how I can link this phonegap libs to my asp.net web application.
Thanks,
Vijay
roopeshreddy
All-Star
20143 Points
3327 Posts
Re: Initializing Android Camera and upload an image through a website form
Dec 15, 2011 01:03 PM|LINK
Hi,
If that link didn't helped you, then i don't think you can achieve your requirement using Web App! If you want to access the device, you need to develop an thick app!
Hope it helps u...
Roopesh Reddy C
Roopesh's Space
benzi1
Member
2 Points
1 Post
Re: Initializing Android Camera and upload an image through a website form
Nov 07, 2012 01:34 PM|LINK
Hi,
I have the same chalange (operate an Android camera from Web app)
Did you succeed doing it ?
Regards
Benzi Harel
roopeshreddy
All-Star
20143 Points
3327 Posts
Re: Initializing Android Camera and upload an image through a website form
Nov 08, 2012 04:24 AM|LINK
Hi,
Did you tried the Phone Gap Camera API? I think they have updated it and should work in Web browser too!
Hope it helps u...
Roopesh Reddy C
Roopesh's Space