Recent

Author Topic: Android Module Wizard  (Read 705396 times)

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Android Module Wizard
« Reply #255 on: November 23, 2014, 05:09:28 pm »
@ Leledumbo,

Quote
...after asking for Laz4Android location (I don't think it's required)...

Yes, we need "lazbuild" to rebuild ".so" in "LATE" [IDE plugin]...

Thank you!

EDITED:

1. @xinyiman: I will test it!

2.Roadmap: I'm finishing support to ActionBar! and a complete redesign of jMenu component (and NEW jContextMenu) with total support to it and Icons!
« Last Edit: November 23, 2014, 05:30:51 pm by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Android Module Wizard
« Reply #256 on: November 24, 2014, 02:12:12 am »
@ Leledumbo,

Quote
...after asking for Laz4Android location (I don't think it's required)...

Yes, we need "lazbuild" to rebuild ".so" in "LATE" [IDE plugin]...
lazbuild is part of lazarus, not laz4android, so it should be deducible automatically.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Android Module Wizard
« Reply #257 on: November 26, 2014, 08:41:58 am »
Finally, it works with Lazarus trunk on Linux. I can create a project, but somehow I can't drop any component on the module. Any component on any palette will redirect me to standard tab with no component selected. Existing projects, such as the demos, can be opened and I can see the form designer with components rendered fine. Same problem with dropping new components, though.

Weird thing is that I can drop components from android bridge tab to lcl form, but not on android module. Maybe I should try on stable lazarus.

EDIT:
It's a regression.
« Last Edit: November 28, 2014, 07:33:03 pm by Leledumbo »

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Android Module Wizard
« Reply #258 on: December 03, 2014, 07:32:09 am »
Hi All

There is a new update to Android Module Wizard!

ref. https://github.com/jmpessoa/lazandroidmodulewizard

Version 0.6 - rev. 06 - 03 December 2014 -
      
   NEW!
      .Add sub entry "Resource Editor" ["Android Module Wizard" to Lazarus IDE "Tools" menu] <<---- by Thierry Dijoux
      .LATE [IDE Tools]: Improve logcat support:
         --> TAG Filter log
         --> Run Time Error log
      
   NEW!   .jContextMenu component [Android Bridges Extra]  -->> Improve the support to Android Menus....
      .jMenu - Improve support --> Icons and ActionBar support!

         UPDATE Demo: AppMenuDemo
         ref. images:
            https://jmpessoa.opendrive.com/files?Ml82OTk0MjAzNV9VekM1dA
            https://jmpessoa.opendrive.com/files?Ml82OTk0MjE2MF9QS1dTaQ
            https://jmpessoa.opendrive.com/files?Ml82OTk0MjI2OF9jU3ZwSg

      .jActionBarTab component [Android Bridges Extra] - ActionBar TAB Support!

         NEW! Demo: AppActionBarTabDemo1 -
         ref. Images:            
                                https://jmpessoa.opendrive.com/files?Ml82OTk0MjM4OV9jRklmaw
            https://jmpessoa.opendrive.com/files?Ml82OTk0MjQ3Ml96N1ZTMg
            https://jmpessoa.opendrive.com/files?Ml82OTk0MjU5MF82VlRrNA

      .Add new methods to jForm  [ActionBar Support!]:
      
         GetActionBar;   
         HideActionBar;
         ShowActionBar;
         ShowTitleActionBar;
         HideLogoActionBar;
         SetTitleActionBar;
         SetSubTitleActionBar;
         SetIconActionBar;
         RemoveAllTabsActionBar();

         SetTabNavigationModeActionBar;  --- Need for ActionBar TAB Support!


      WARNING: Action bar was introduced in Android 3.0 (API level 11)
      [Set targetSdkVersion to >= 14, then test your app on Android 4.0]


      .Others improvements and fixs by Leledumbo!

Thanks to All!
« Last Edit: December 07, 2014, 05:54:58 am by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Android Module Wizard
« Reply #259 on: December 07, 2014, 05:54:07 am »
Hi All

There is a new update to Android Module Wizard!

ref. https://github.com/jmpessoa/lazandroidmodulewizard

Version 0.6 - rev. 07 - 07 December 2014 -

   NEW!   .jCustomDialog component [Android Bridges Extra]  <<---- A suggestion and request by Leledumbo

         NEW! Demo: AppCustomDialogDemo1
         ref. image:
            https://jmpessoa.opendrive.com/files?Ml83MDgwNTQxMl9jTEJkcA

Thanks to All!

Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Android Module Wizard
« Reply #260 on: December 16, 2014, 06:09:23 pm »
Hi All

I have updated  "Android Module Wizard"

ref. https://github.com/jmpessoa/lazandroidmodulewizard

Version 0.6 - rev. 08 - 15 December 2014 -

   NEW! Add Support to build release Apk!
      [win  -->> build-release.bat]
      [linux ->> build-release.sh]

      Please, look for:
         readme.txt [Project Folder]
         readme-keytool-input.txt [Project Folder]

   IMPROVEMENTS:

   Component "jSqliteDataAccess" [.pas]
      
      News Methods:

         SetForeignKeyConstraintsEnabled;
         SetDefaultLocale;

         DeleteDatabase;          
         CheckDataBaseExistsByName

         InsertIntoTableBatch
         UpdateTableBatch   
         UpdateImageBatch

   Class "jSqliteDataAccess" [java wrapper]

   Added Safe operation:

       beginTransaction();
         ....
      setTransactionSuccessful()
         ....
      endTransaction();

   NEW!   App Demo: AppSqliteDemo2

   FIXs   Some minor fixs!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Android Module Wizard
« Reply #261 on: December 20, 2014, 06:59:05 am »
Hi All

There is a updated revision of  "Android Module Wizard"

ref. https://github.com/jmpessoa/lazandroidmodulewizard

Version 0.6 - rev. 09 - 20 December 2014 -

   NEW! Improve/Add support to res/drawable to [many] components:
               .jBitmap
               .jImageView
               .jImageBtn
               .jListView
               .jImageFileManager
       And Fixs...
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Android Module Wizard
« Reply #262 on: December 20, 2014, 07:43:10 am »
Hello, jmpessoa. As more features are added, lazandroidmodule becomes bigger and bigger. Even hello, world now eats nearly 1 MB apk (with .so itself eats 2.6 MB uncompressed). Do you think it's the time to refactor the code so only needed ones get linked in?

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Android Module Wizard
« Reply #263 on: December 20, 2014, 06:01:15 pm »
@Leledumbo

Quote
...  .so itself eats 2.6 MB uncompressed ...

I agree with you. From Pascal side I can do the this task just now... If you can point out some bottleneck and offer any suggestions will be very well accepted!

Thank You!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

ps

  • Full Member
  • ***
  • Posts: 136
    • CSS
Re: Android Module Wizard
« Reply #264 on: December 21, 2014, 10:46:46 am »
Nice work jmpessoa!

Hints:
- please can you include in first post Fast tutorial? (from third page?). Its hard to find how to start.
- maybe fast_tutorial_eclipse_users.txt isn't good naming, when I downloaded zip, I spend half hour searching for install instructions. What about rename it to eg.: install_tutorial_eclipse_users.txt (install* is important )
Small simple CSS/box model implementation: https://github.com/pst2d/csscontrols/tree/dev

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Android Module Wizard
« Reply #265 on: December 21, 2014, 06:58:04 pm »
@Ps

His suggestion was accepted!

   "install_tutorial_ant_users.txt"
   "install_tutorial_eclipse_users.txt"

Thank you!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Android Module Wizard
« Reply #266 on: December 22, 2014, 02:12:29 am »
Hi All!

There is a updated revision of  "Android Module Wizard"

ref. https://github.com/jmpessoa/lazandroidmodulewizard

Version 0.6 - rev. 10 - 21 December 2014 -

   Important Code Reorganization: A sugestion by Leledumbo [Thank you very much Leledumbo!]

   Significantly reducing the final size of "controls.so"  [just about half!]

   Typical example:
Code: [Select]
TAndroidModule1 = class(jForm)
jButton1: jButton;
jEditText1: jEditText;
jListView1: jListView;
jSpinner1: jSpinner;
jTextView1: jTextView;
      procedure jButton1Click(Sender: TObject);
private
      {private declarations}
public
      {public declarations}
end;

   Before:
      controls.so  --------- 2768 KB

   After code reorganization:
      controls.so ---------- 1371 KB

Thanks to All!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Android Module Wizard
« Reply #267 on: December 22, 2014, 05:55:35 am »
Great job, jmpessoa! I haven't even got the time to look at what to do, but you already strip it down to half in size!

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Android Module Wizard
« Reply #268 on: January 06, 2015, 12:33:35 pm »
Hi there!

There is a updated revision of  "Android Module Wizard"

ref. https://github.com/jmpessoa/lazandroidmodulewizard

Version 0.6 - rev. 11 - 03 January 2015 -

   .Major Code Reorganization/Cleanup [Pascal and Java sides]:
   
   .WARNIG! you need [must] upgrade your existing code/application!
      Please, use the IDE "tools" -> "Android Module Wizard" -> "Upgrade Code Templates"

   .Reducing the final size of "controls.so"  [now less than half!!]
      
   Typical example:
Code: [Select]
TAndroidModule1 = class(jForm)
jButton1: jButton;
jEditText1: jEditText;
jListView1: jListView;
jSpinner1: jSpinner;
jTextView1: jTextView;
      procedure jButton1Click(Sender: TObject);
private
      {private declarations}
public
      {public declarations}
end;
..............................
   Before [Typical example]:
      controls.so  --------- 2768 KB

   After first code reorganization [Typical example]:
      controls.so ---------- 1371 KB

   Now [Typical example]:
      controls.so ---------- 1206 KB  [!!]

   How it scale? The "AppDemo1" uses 14 forms and many, many components and code:
      controls.so ---------- 1379 KB  [Added only 14% !!]

   FIX/NEW! jEditText
      :: New! Added event property "OnChanged"         
      :: FIX/NEW! Event handles now is OK with help of the news methods
         "DispatchOnChangeEvent" and "DispatchOnChangedEvent"!
      :: FIX! InputTypeEx property now is ok!

   NEW! Demo AppEditTextDemo1 [Eclipse Project...]        
                               
   WARNIG! jEditText property name "LineMaxLength" changed to the correct "MaxTextLength" !
      .Please, no panic! When prompt "Read error" [Unknown Property] just choice "Continue Loading"!
      (simulates some component property change e save it!)
   
   WARNIG! jImageView lost the property "IsBackgroundImage"
      .Please, no panic! When prompt "Read error" [Unknown Property] just choice "Continue Loading"!
      (Simulates some component property change e save it!)
      .Just puts the jImageView "first" on jForm and set LayoutParams [H/W] to lpMatchParent
         (Form Background Image is done!)


Thanks to All!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Android Module Wizard
« Reply #269 on: January 11, 2015, 10:44:11 pm »
Hi All!

There is a updated revision of  "Android Module Wizard"

ref. https://github.com/jmpessoa/lazandroidmodulewizard

Version 0.6 - rev. 12 - 10 January 2015 -

   NEW! Added component jToggleButton [Android Bridges Extras]
   NEW! Demo AppToggleButtonDemo1 [Eclipse project]

   NEW! Added component jSwitchButton [Android Bridges Extras]
   NEW! Demo AppSwitchButtonDemo1 [Eclipse project]

   NEW! Added component jGridView [Android Bridges Extras] //<<-A suggestion and request by Valmadson
   NEW! Demo AppGridViewDemo1 [Eclipse project]

   FIXs : Some component lost needless published property "Text"
      .Please, no panic! When prompt "Read error" [Unknown Property] just choice "Continue Loading"
      (simulates just one component property change e save it!)

   UPDATED! All Demos updated!

Thanks to All!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

 

TinyPortal © 2005-2018