Software Archive
Read-only legacy content
17061 Discussions

mobile app with pictures

carmine_n_
Beginner
544 Views

I am trying to build a hybrid mobile app where users can take pictures and store them online with a description so they can be viewed and responded to on a different tab in the app.

Is this possible with xdk or do i need to go a different route?

Thanks.

 

0 Kudos
4 Replies
Patrick_H_2
Beginner
544 Views

It's perfect for a Intel XDK Hybrid App!
You can easy handle the Smartphone Camera with one line of code.

intel.xdk.camera.takePicture(quality, saveToLibrary, pictureType);

 

Example:

intel.xdk.camera.takePicture(50,false,"jpg");

 

So you can get your Picture add a onSuccess Method and send it to your Server as jpg or Base64 String.

0 Kudos
carmine_n_
Beginner
544 Views

it opens the camera, but I cannot get it to save the pic or display the pic.

documentation is not very clear.

thanks.

 

 

0 Kudos
John_H_Intel2
Employee
544 Views

Since you are just getting started with your app, I would encourage you to use the Cordova version of the plugins. The intel.xdk.* plugins are not as maintained as the Cordova version.

Check out this simple example that takes a picture and puts it on the screen.

 

0 Kudos
carmine_n_
Beginner
544 Views

Thanks.

0 Kudos
Reply