Can it be done?!?!

The place to discuss anything and everything about running your LiveCode on Android

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

btz
Posts: 5
Joined: Sat Sep 21, 2019 5:17 pm

Can it be done?!?!

Post by btz » Sat Sep 21, 2019 5:32 pm

Hello guys, i’m new to programing and i was wondering if i can build and app with livecode
I want to build a android app that access the phone camera on motion detection, start recording, if the lenght of the recording exceeds 5 min it splits the video into 5 min episodes, rename the videos with the timestamp of the recording and save the recording on the device

I want to use the app for surveillance

So can it be done with livecode? :shock:

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5393
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Can it be done?!?!

Post by richmond62 » Sat Sep 21, 2019 6:36 pm

I want to use the app for surveillance
Is that a good thing?

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: Can it be done?!?!

Post by [-hh] » Sat Sep 21, 2019 7:01 pm

Yes, but you have to do it by yourself.
shiftLock happens

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5393
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Can it be done?!?!

Post by richmond62 » Sat Sep 21, 2019 7:08 pm

Yes, but you have to do it by yourself.
Words of very great wisdom.

btz
Posts: 5
Joined: Sat Sep 21, 2019 5:17 pm

Re: Can it be done?!?!

Post by btz » Sat Sep 21, 2019 7:39 pm

Any advice on “start recording on motion detection”?

the app will turn phone into surveillance cam

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5393
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Can it be done?!?!

Post by richmond62 » Sat Sep 21, 2019 7:42 pm

Any advice
What did the chap write?

btz
Posts: 5
Joined: Sat Sep 21, 2019 5:17 pm

Re: Can it be done?!?!

Post by btz » Sat Sep 21, 2019 8:14 pm

richmond62 wrote:
Sat Sep 21, 2019 7:42 pm
Any advice
What did the chap write?
Lyrics 🤞

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: Can it be done?!?!

Post by [-hh] » Sat Sep 21, 2019 11:44 pm

I didn't say you can't ask.

But not this way, you post only lyrics so you get lyrics back.

You didn't even search the resources.
And you didn't tell us what you have tried and what doesn't work with your approach.
shiftLock happens

btz
Posts: 5
Joined: Sat Sep 21, 2019 5:17 pm

Re: Can it be done?!?!

Post by btz » Sun Sep 22, 2019 12:21 pm

Well i did say i’m new to programing (any programing language), i quess a little php does not count
I did not try anything yet just installed the community edition, started the app, draq and drop some text field and button, watched some tutorials, exported my first app .... yeah it looks yeasy :P

So, all smartphone cameras have a motion detector .. right?!? so that senzor could be asked if it detects motion or not, right?!? :roll:

bogs
Posts: 5104
Joined: Sat Feb 25, 2017 10:45 pm

Re: Can it be done?!?!

Post by bogs » Sun Sep 22, 2019 12:41 pm

Being new to programming of almost any kind, it seems like your trying to jump to the top of a building from the ground level instead of taking the stairs (or even elevator!).

I don't program for mobile, but having said that, you can find out which features the camera supports that *might* be accessible from Lc. Try reading this page about the mobileCameraFeatures function . It doesn't answer all of your questions, so your next stop would probably be the dictionary to actually look up that function. This should tell you if the camera on the phone your working with has motion detection or not (I have no idea, and I am sure they are all different).

As for trying to jump from the ground to the rooftop, I'd suggest skipping doing it that way, and start off on the first step of the porch. Either start off with the guide for mobile, or go to the lessons for mobile page and run through those, or even get used to the language/environment with some beginner desktop stuff.

IF your feeling really ambitious, and are serious about actually learning this environment, give the BYU Course on Lc a whirl. There are lots of sources of help, and this one was formatted to take you from beginner up in a logical manner.

Not only will that give you some background to be able to write your own applications, but it will give you a better understanding of the answers you (may) receive here.
Last edited by bogs on Sun Sep 22, 2019 12:44 pm, edited 1 time in total.
Image

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5393
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Can it be done?!?!

Post by richmond62 » Sun Sep 22, 2019 12:44 pm

yeah it looks yeasy
Well, yes, LiveCode looks "yeasy", and it is "yeasy" to make something that is very basic indeed.

HOWEVER after 19 years with LiveCode and lots more time with its predecessors (HyperCard, ToolBook, . . .)
I can honestly say that to develop anything more than something "yeasy" involves quite a bit of thought,
practice and experience.

AND "Drag 'n' Drop" is insufficient.

Most of my work has proven "yeasty" and not "yeasy" at all. 8)

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 5840
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Can it be done?!?!

Post by jacque » Sun Sep 22, 2019 5:24 pm

I agree you've chosen a very advanced project and it would be advisable to start with something much simpler until you are more familiar with LiveCode. Cameras do not have built-in motion detection, they are just dumb recorders. You'd need to compare frames against each other to determine if there were changes, and also probably to determine if those changes were relevant. That's advanced stuff.

To make your decision easier, I believe Android video recording has been discontinued recently due to some issues with the technology, but it may return later. That would give you time to learn LiveCode while you wait.

If you're like the rest of us here, you'll get hooked and start creating amazing things - - with or without video support. :-)
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5393
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Can it be done?!?!

Post by richmond62 » Sun Sep 22, 2019 5:30 pm

You are very welcome here:

https://www.facebook.com/RMLCclasses/ :D

And, "sad to say," it is all 'walking' rather than either 'running' or
the 'hop, skip and a jump' that you wanted to do at the start of this tread.

btz
Posts: 5
Joined: Sat Sep 21, 2019 5:17 pm

Re: Can it be done?!?!

Post by btz » Mon Sep 23, 2019 7:46 pm

Ok, i will try something easy

So how about a desktop app
The screen of the app is splited in two screens and in each one is loaded a browser
The sound from one screens is connected to the pc sound card and the other one is connected to the external sound card
It would be nice if the browser can have add block :mrgreen: and flowers

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5393
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Can it be done?!?!

Post by richmond62 » Mon Sep 23, 2019 7:59 pm

Ok, i will try something easy
I don't think you really understand what something easy is:
your idea about the sound card and so on is still relatively advanced.

Post Reply

Return to “Android Deployment”