Page 1 of 1

Making the camera device work

Posted: Fri Nov 30, 2012 3:10 am
by jeff

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.


Making the camera device work

Posted: Fri Nov 30, 2012 11:18 am
by Kateryna Grynko

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...


Making the camera device work

Posted: Fri Nov 30, 2012 2:39 pm
by jeff

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.


Making the camera device work

Posted: Fri Nov 30, 2012 2:59 pm
by Kateryna Grynko

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.