Recent

Author Topic: Android Module Wizard  (Read 707273 times)

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Android Module Wizard
« Reply #165 on: September 25, 2014, 06:37:29 pm »
Can I use the offical build Lazarus(now 1.2.4 with FPC 2.6.4)?
Lazarus 1.2.4 is OK, but FPC must be 2.7.1 since 2.6.4 contains no proper Android support.

Stygian

  • Jr. Member
  • **
  • Posts: 90
Re: Android Module Wizard
« Reply #166 on: September 25, 2014, 07:50:13 pm »
Thanks for the answer. Maybe others already said it but there is a bug in the Android Modul configure window. The Ant and SDK browse buttons are swapped.

greenzyzyzy

  • Full Member
  • ***
  • Posts: 249
Re: Android Module Wizard
« Reply #167 on: September 27, 2014, 11:20:54 am »
Hi greenzyzyzy,

In my experiments, all LCL dependencies failed!

Thank you!

PS. LCLBase ( LResources) is OK, for component icon!
      flc-image is OK!
      freetype is OK (please, see in this forum!)


old question,does TBitmap or TMemoryStream can use in Android Module Wizard?
it seems it is compiled ok.but i have not test.have you test?

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: Android Module Wizard
« Reply #168 on: October 02, 2014, 07:20:13 pm »
Hi!

I'm preparing a major change for Android Module Wizard: the form designer is here!

However, before upgrading the github repository, I would like some feedback, mainly due to compatibility issues!

   :: New Android Widgets Fom Designer! //<<--- thanks to LiteZarus by x2nie!

      -->> Windows Users: Get LiteZarus4Android [Lazarus 1.3 + x2nie patch [No LCLform design] + TrueTom fpc 2.7.1 cross Arm/x86/android/]

                        ::To Install, please, read the "LiteZarus4Android_readme.txt"

      Download from: [EDITED!]

                https://onedrive.live.com/redir?resid=78D6F726E8F0C522%21236
         
      -->> Linux Users: Get Lazarus 1.3 rev >= 45216,45217 ... and fpc 2.7.1 cross /arm/x86/android ... etc
     
   1. Guide line for "Old" Projects [Collateral Effects] --- *Please make a backup* !!

      -->> Some TAndroidModule form properties was supressed!

         Please, no panic! When prompt "Read error" [Unknown Property] just choice "Continue Loading" !

      -->> Components conteiners behavior [jPanel e jScrollView] :  remove and put [again] yours controls into them!
                 
      -->> Now adjust yours widgets, the concept continue the same:

         .LayoutParamWidth/LayoutParamHeight
         .Anchor
         .PosRelativeToAnchor
         .PosRelativeToParent

      -->> Add new "AndroidWidget" unit to uses clauses [*.dpr/*.pas]

   2. NEWS !!
   
      -->> The form *.lfm parse now is OK !!!

      -->> AppTest1 [eclipse project] :: jPanel and form close/callback demo...

                      form1 design : https://jmpessoa.opendrive.com/files?Ml82NTQ0NDMxNl9CV292dg
                      form1 Screen : https://jmpessoa.opendrive.com/files?Ml82NTQ0NDM2OV9SUVJ1NA

                      form2 design : https://jmpessoa.opendrive.com/files?Ml82NTQ0Nzk5N19RbXFjVw
                      form2 Screen : https://jmpessoa.opendrive.com/files?Ml82NTQ0NzQ3NF9wMGhHcQ
                     
      -->> AppCameraDemo [eclipse project] :: jPanel and jCamera demo

      -->> AppDemo1 [eclipse project] was adjusted/updated !     

   3. Download  "NEW" Android Module Wizard - version 0.6: [EDITED!]
 
       https://onedrive.live.com/redir?resid=78D6F726E8F0C522%21237

   4. Download  demos: [EDITED!]
            https://onedrive.live.com/redir?resid=78D6F726E8F0C522%21238


Thanks to All!
« Last Edit: October 04, 2014, 12:45:45 am by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

luri

  • New member
  • *
  • Posts: 7
Re: Android Module Wizard
« Reply #169 on: October 03, 2014, 04:17:13 am »
all download link: "This item might not exist or is no longer available"

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: Android Module Wizard
« Reply #170 on: October 03, 2014, 05:14:39 am »
Hi luri,  I Edited the links!

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

xinyiman

  • Hero Member
  • *****
  • Posts: 2256
    • Lazarus and Free Pascal italian community
Re: Android Module Wizard
« Reply #171 on: October 04, 2014, 08:06:24 pm »
Sorry, but I can not find clear documentation and well-argued on this topic.

How to start from scratch?
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: Android Module Wizard
« Reply #172 on: October 04, 2014, 08:41:04 pm »
Hi xinyiman, there are:

"readme.txt"

"fast_tutorial_eclipse_users.txt"

"fast_tutorial_ant_users.txt"

ref. folder "LazAndroidWizard"  [ https://onedrive.live.com/redir?resid=78D6F726E8F0C522%21237]

But If you can enumerate your questions I can try to help!

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

greenzyzyzy

  • Full Member
  • ***
  • Posts: 249
Re: Android Module Wizard
« Reply #173 on: October 10, 2014, 03:03:32 pm »
Hi xinyiman, there are:

"readme.txt"

"fast_tutorial_eclipse_users.txt"

"fast_tutorial_ant_users.txt"

ref. folder "LazAndroidWizard"  [ https://onedrive.live.com/redir?resid=78D6F726E8F0C522%21237]

But If you can enumerate your questions I can try to help!

Welcome!


sorry , i can not open this link.
can you add the program to https://github.com/jmpessoa/lazandroidmodulewizard  ?

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: Android Module Wizard
« Reply #174 on: October 10, 2014, 06:33:56 pm »
« Last Edit: October 10, 2014, 08:42:56 pm by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

thierrydijoux

  • New Member
  • *
  • Posts: 21
Re: Android Module Wizard
« Reply #175 on: October 11, 2014, 12:19:47 pm »
Hi,
I played with android during 1 week, using Android Module Wizard.
Very nice tool !
I'm using the ant process to compile and build apk.
I have questions about themes. I'm trying using the Holo theme light, but i always have froyo style interfaces. Did someone succeeded to apply native theme (i targeted android 4.4 in sdk target).
And what about strings.xml, i don't know if it's possible to get values from strings.xml to have multi language interfaces. If it's possible and if someone has a piece of code to show...
Thanks in advance

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Android Module Wizard
« Reply #176 on: October 11, 2014, 05:12:03 pm »
And what about strings.xml, i don't know if it's possible to get values from strings.xml to have multi language interfaces. If it's possible and if someone has a piece of code to show...
Thanks in advance
Since AMW use LCL style resources, I think you should use the same approach for multilingual apps. The same way as the desktop apps. The problem is everytime you change strings.xml, R.java is automatically regenerated and you will need a dynamic JNI wrapper to be able to call the entries in the R class. It's not impossible, but you will need R.java JNI wrapper.

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: Android Module Wizard
« Reply #177 on: October 11, 2014, 06:03:28 pm »
Hi,

@thierrydijoux,

You can try modify this line,

Code: [Select]
android:theme="@style/AppTheme" >

in "AndroidManifest.xml"

Well, You can try change "styles.xml" too:  [ .....\res\values\styles.xml ]

@Leledumbo, you got played with new "form designer" version?  ;D

Thanks!
 

« Last Edit: October 11, 2014, 09:50:41 pm by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

thierrydijoux

  • New Member
  • *
  • Posts: 21
Re: Android Module Wizard
« Reply #178 on: October 11, 2014, 09:37:04 pm »
@jmpessoa and @Leledumbo :Thanks for your reply

@Leledumbo : how can i have or genrate the R.java JNI wrapper ? I think it's the same thing for all resources (bitmap etc).
Managing translations in the generated .so is not really a problem, but managing bitmap for different screens resolutions can be tricky. I think the R.java JNI wrapper could be quite usefull.

@jmpessoa : have you try to access the android actionbar with fpc ?

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Android Module Wizard
« Reply #179 on: October 12, 2014, 05:37:14 am »
@Leledumbo, you got played with new "form designer" version?  ;D
Is it in the github already?
@Leledumbo : how can i have or genrate the R.java JNI wrapper ? I think it's the same thing for all resources (bitmap etc).
Managing translations in the generated .so is not really a problem, but managing bitmap for different screens resolutions can be tricky. I think the R.java JNI wrapper could be quite usefull.
The same as creating other JNI wrapper. jmpessoa should be able to tell you what to do to create a JNI wrapper in general with his AMW.

 

TinyPortal © 2005-2018