jeff
Posts: 0
Joined: Fri Nov 23, 2012 12:40 pm

Making the camera device work

OK, I tried the direction to access the camera device for the Andriod. The direction are for a different version of Tiggzi and I was not successful. I am using the free version that currently comes up when launching the development gui. I finally figured out how to find the device under the data tab. Can you give me a step by step tutorial to create the app to turn on the camera when the button is touched and then store it in the image componet when the picture is taken. Then direct on how to test it. This is for Andriod 2.2.3.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Making the camera device work

Hello!

First, create an app.
Let's make UI. Add button and Image components on your Screen.
Then create new Service (Camera Service). Open Data tab on Start Screen.
Choose Type: Device and Component: Camera. Click "Add".
Click on "Edit Mapping" button.
Image
Open Response tab, drag imageDataBase64 to your UI component as it's shown on the following picture. Image
Then return to Design tab. Select Button component on your screen. On the events panel add new Click event, set parameters and click "Add".
Image

To test app on your Android device use Tiggzi Tester https://play.google.com/store/apps/de...

jeff
Posts: 0
Joined: Fri Nov 23, 2012 12:40 pm

Making the camera device work

Thank you. This worked as directed. One thing. You must save the app before it will create the APK to export or before it will run in the tester.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Making the camera device work

You don't have to export app to test it in Tiggzi Tester.
You can open it after it's saved.
Save the project before it's exported to APK.
If you export your project in builder it will be saved automatically.

Return to “Issues”