Jump to content
Sign in to follow this  
warleyalex

Android app with Smart Mobile Studio

Recommended Posts

Hi, I've combined Smart Mobile Studio and Cordova to generate a web application.  My  Delphi server side is providing (Customer data table which has more than 10,000 records) but is sending in small data packets to my datagrid (using remote paging).  Unfortunately, I can not test test this app on a real Android device, but at least it worked fine in an android player. Besides that I had to inject jquery to Smart. Anyway, using cordova, android .apk file was about 300kb! and service is authenticated.  See at:

 

 

Is there some built-in component to rearrange the application layout, depending on the resolution for example in order to handle one behavior on iPhone, and another layout for the iPad bigger screen?

Share this post


Link to post
Share on other sites

That looks great!

You should have a step by step blog, too ;-)
(Or perhaps you could write a guest article here?)


Anyway. Take a look at "The Layout Manager".

This is still pure runtime management, but you define the layouts you need (Horizontal, vertical, iPad, iPhone etc), and specify how various components should behave. Similar to alRight + alClient in Delphi.

In the "OnResize" event (which is also triggered when the device is rotated), you simply tell the Layout Manager to execute the correct layout on all components.


You can read about it here:
1) http://www.thedelphigeek.com/2012/05/laying-out-smart-applications-with.html
2) http://www.thedelphigeek.com/2012/05/laying-out-smart-applications-with_17.html
3) http://www.thedelphigeek.com/2012/05/laying-out-smart-applications-with_18.html
4) http://www.thedelphigeek.com/2012/05/laying-out-smart-applications-with_19.html

and a discussion here:
http://forums.smartmobilestudio.com/index.php?/topic/3320-tlayout-questions/

This topic is also described in "A Smart Book" ($9.99):
http://www.smartprogrammer.org/2012/06/smart-book-current-status.html

The examples from this book is available in the "Demos" folder.

You will also find 4 other examples in the "Featured demos" folder.

Edited by Bear
Fixed dead link

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×