Are there any sample android apps with native controls/menus

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
shawnb
Posts: 11
Joined: Mon Jul 04, 2011 2:23 am

Are there any sample android apps with native controls/menus

Post by shawnb » Tue Aug 09, 2011 3:16 am

Are there any Android apps with native controls/menus? If so can someone please provide a link?

Thank you in advance.


Shawn
Until LC for Android can create the same type of applications that I can create with Java or Lua, I'll be using Java and Lua. I'd love to use LC, but LC for Android is not ready for prime time.

richervin
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 54
Joined: Sat Sep 17, 2011 5:04 pm

Re: Are there any sample android apps with native controls/menus

Post by richervin » Sat Sep 17, 2011 5:34 pm

Ditto - just one working app that demonstrates the viability of creating LiveCode apps for the Android platform.

I may end up producing the first one, from the looks of things, and this my first attempt at mobile platform development.

So far, I have mobile list scrolling working and can launch an e-mail sender.

I
LiveCode 5.1.1 on Mac OS Mountain Lion
Attempting to develop for Android and iPhone
Currently on my third trial, and still finding LiveCode to be difficult for mobile applications in general, and particularly poor for Android

BarrySumpter
Posts: 1201
Joined: Sun Apr 24, 2011 2:17 am

Re: Are there any sample android apps with native controls/menus

Post by BarrySumpter » Sun Sep 18, 2011 2:09 am

I've just been researching and trial and erroring for myself.
I placed a generic datagrid FORM (not table) on a generic card.
The dataGrid form properties match the androids menus for the android clock settings menu.
Font, row height, colour.
Headers and footers are rectangles.

I tried the table first but as already noted the gesture scroll for a table looks too clunky.

It took me about a week to get the scrolling and generic android menu features sorted.

hth
All my best,
Barry G. Sumpter

Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.

BarrySumpter
Posts: 1201
Joined: Sun Apr 24, 2011 2:17 am

Re: Are there any sample android apps with native controls/menus

Post by BarrySumpter » Mon Sep 19, 2011 9:18 am

I've got the momentum scrolling working in winxp32.

But the Repeat until mouseClick
isn't working properly.
I think its getting a mouseClick from Android.
Anyone have a workaround or a way to clear the mouseClick?
Or should I be using something else?
All my best,
Barry G. Sumpter

Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.

BarrySumpter
Posts: 1201
Joined: Sun Apr 24, 2011 2:17 am

Re: Are there any sample android apps with native controls/menus

Post by BarrySumpter » Mon Sep 19, 2011 3:06 pm

Code: Select all

Repeat
 if the mouse is down then exit repeat -- bail out
All my best,
Barry G. Sumpter

Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.

richervin
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 54
Joined: Sat Sep 17, 2011 5:04 pm

Re: Are there any sample android apps with native controls/menus

Post by richervin » Mon Sep 19, 2011 3:39 pm

I'm using the touchStart and touchEnd functionality. I haven't (yet) tried to get momentum scrolling working. It seems like you may be ahead of me on this one.

I got far enough to determine that it could be done, and am now moving on to e-mail and sqlite features.

I still have an open question in my mind about being able to detect selection of a form item while I am trapping scrolling gestures.

User should be able to:
Thumb drag the list up and down (I have this working)
Momentum scroll and stop the list (I can integrate this into my thumb-dragging code, I think, though that may not be the best/simplest)
Select an item in the list which generates a transition to a second card where the user can update the details, OR
Select one or more checkboxes that are part of the list item.

The last two I haven't tried yet, I'm concerned that the gesture scrolling code might interrupt the detection of those operations.
LiveCode 5.1.1 on Mac OS Mountain Lion
Attempting to develop for Android and iPhone
Currently on my third trial, and still finding LiveCode to be difficult for mobile applications in general, and particularly poor for Android

richervin
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 54
Joined: Sat Sep 17, 2011 5:04 pm

Re: Are there any sample android apps with native controls/menus

Post by richervin » Mon Sep 19, 2011 9:05 pm

I just received a link to the Summer Academy presentation which includes a link to a livecode application, deployable to both iOS and Android, and which includes a scrollable list including momentum scrolling.

Thank you runRev, this is just what I needed. Now if we can just work on the deployment pricing options :)

The scrolling is a bit jerky upon initial loading, but works and can probably be optimized for smoothness.
LiveCode 5.1.1 on Mac OS Mountain Lion
Attempting to develop for Android and iPhone
Currently on my third trial, and still finding LiveCode to be difficult for mobile applications in general, and particularly poor for Android

BarrySumpter
Posts: 1201
Joined: Sun Apr 24, 2011 2:17 am

Re: Are there any sample android apps with native controls/menus

Post by BarrySumpter » Mon Sep 19, 2011 10:12 pm

Thanks for posting that.

I've just had another look at my Summer Academy examples and found the gesture scrolling for a list box.
I don't recall ever adding more than a few tasks cause we were studying absolutely every thing else.
So the momentum scrolling never came into play.

I don't know why RunRev wouldn't tell me this example included momentum scrolling
or mention it when I specificly asked multiple times.

But super glad its there as a starting point none the less.


They were a bit too busy telling me to joing the RunRev iOS Development Program.
I'm sure they are super busy on all the iOS development.
And politely telling me to stop bugging them.
I accept that.
I'm glad I've had me coffee this morning or I'd be very paranoid about RunRev keeping things from me.

I spent about 4 hours thinking about it and two hours actual work on my version of getting my DataGrid form to momentum scroll.

I'll have a look at theirs to see if they've done anything I can take advantage of.
May be able to improve the scrolling with a bit of adjustment.

This sample is really nice.
I've forgotten how much we covered.

I've just been informed this is a "simulation" for momentum gesture and not a "native control solution".
Hince the stuttering even on my HD2.
I'm thinking a DG form would be smoother.
All my best,
Barry G. Sumpter

Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.

BarrySumpter
Posts: 1201
Joined: Sun Apr 24, 2011 2:17 am

Re: Are there any sample android apps with native controls/menus

Post by BarrySumpter » Wed Sep 21, 2011 7:54 am

Ok I've sorted the Android datagrid momentum scrolling from the summer academy list field momentum scrolling.

Much better formulas from much more learned RunRev peeps than I could have ever figured out.

Thats a big win for me.
All my best,
Barry G. Sumpter

Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.

richervin
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 54
Joined: Sat Sep 17, 2011 5:04 pm

Re: Are there any sample android apps with native controls/menus

Post by richervin » Wed Sep 21, 2011 8:40 pm

Better than I would have made the effort to figure out on my own.

Next up on my hit list:
- Figure out how to put two scrollers in one stack
- Customize the scroller
- Need a date input widget
LiveCode 5.1.1 on Mac OS Mountain Lion
Attempting to develop for Android and iPhone
Currently on my third trial, and still finding LiveCode to be difficult for mobile applications in general, and particularly poor for Android

Post Reply