87
Views
8
Comments
Creating a Sensor-App

Hi everyone,

we are currently trying to create an application within a student project basically just recording and displaying data of the following sensors: Camera, microphone, location and acceleration.
We should also be able to export the data in a way we can decide ourselves.
Even though we are highly motivated we are now facing troubles as beginners integrating the plugins we found.

It already starts with the camera plugin which has a good step by step documentation as we are trying to do Step 13 [Link zu Camera Plugin Documentation] not being able to put the local variable created before at it's place. We think there is a simple solution which is just difficult to find for beginners, do you have any idea?

With the other plugins partly having no documentation and our limited coding skills in addition to time pressure we would appreciate any advise on how we could deal with our challenge in general as well, any help is highly appreciated. Did anyone here create such an application before? Did anyone work on one of the sub tasks? Thank you!

P.S. May all of you in this community arrive well and safely in 2021

2019-11-08 16-23-42
César Mateus Conceição

Hi Bob,

I made a pretty simple quick demo, maybe can guide you.

Evidence: Video Demo

You can test the app for a quick view here

The OAP is here


Regards

UserImage.jpg
Bob Törzs

Hi,

thank you very much. When i try to open the oap it says "Invalid Intellectual Property" and it wont let me start. Is there a way to open the oap?

Regards


Update:

I got it to work. Thank you very much.

2019-11-08 16-23-42
César Mateus Conceição

Good to know ... if need anything just give a shout. :-)

yes I forgot that I need to free OAP with IPP . Sorry


Have a nice new year 

UserImage.jpg
Bob Törzs

Hey César,

happy new year.

Currently i have one button which takes the picture and afterwards the picture is shown right below the button. But i want the picture to be on a second screen. I implemented a second button which leads to a second screen. But when I put an image there and configure it as my original one on the main screen, i cant choose the local variable in which my picture is stored. Can you help me on how i get access to the local variable on another screen?

Thank you

UserImage.jpg
Vidhi Rajput

Hey Bob 

You need to create one input parameter of binary data type on second screen then on navigation method of second button use this second screen and pass image data in input parameter and you can use this input parameter anywhere on a second screen.

Hope this will help you.




2019-11-08 16-23-42
César Mateus Conceição

You cant. Cause your local variable it's in another scope.

There are several ways you can do what you told. But, if you need your pictures on any context,

I truly recommend you, save in local storage and then you can access anywhere in your app.

You can use a webblock to optimize your UX or navigate to any screen.


I built this demo pretty quick just for your understanding 

Camera Plugin Demo (here)

Screencast: here


Regards


UserImage.jpg
Bob Törzs

Wow César. thank you very much!! This helps a lot!!

UserImage.jpg
Bob Törzs

I tried the demo and implemented some parts in my app. Is there a way to only show the pictures taken with my app and not show every picture on my smartphone? Do i have to create a Database Entity instead of a Local Storage Entity?

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.