Recent

Author Topic: Android Module Wizard  (Read 707998 times)

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Android Module Wizard
« Reply #195 on: October 15, 2014, 04:19:54 pm »
May be a good idea to indicate where you changed what exactly.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

xinyiman

  • Hero Member
  • *****
  • Posts: 2256
    • Lazarus and Free Pascal italian community
Re: Android Module Wizard
« Reply #196 on: October 15, 2014, 04:36:08 pm »
Io ho cambiato le mie impostazioni in questi posti

Hi  xinyiman,

Lazarus

->Project

->Project -> Option

->Path

Change this information for correct one!

"C:\adt32\ndk7"

"C:\adt32\eclipse\workspace"

Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: Android Module Wizard
« Reply #197 on: October 15, 2014, 05:35:04 pm »
Hi xinyiman

Quote
Error: Path "C:\adt32\eclipse\workspace\AppSqliteDemo1\libs\armeabi\" does not exist

Open/edit the "controls.lpi" [...\jni],  you can use Notepad like editor....

Modify some [piece] of path information [C:\adt32\eclipse\workspace] according to your system ..
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 #198 on: October 16, 2014, 03:35:11 pm »
Hi xinyiman

Quote
Error: Path "C:\adt32\eclipse\workspace\AppSqliteDemo1\libs\armeabi\" does not exist

Open/edit the "controls.lpi" [...\jni],  you can use Notepad like editor....

Modify some [piece] of path information [C:\adt32\eclipse\workspace] according to your system ..

It's ok! :)

But when I install the package on my android (2.3.6) phone I get this message

"problem with the analysis of the packet"

why?!
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: Android Module Wizard
« Reply #199 on: October 16, 2014, 09:39:29 pm »
Hi All!

There is a  MAJOR Android Module Wizard update!

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

Version 0.6 - 15 October 2014 -
   1. NEW !!
      -->> Android Widgets Fom Designer! //<<--- thanks to LiteZarus by x2nie!
                      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

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

         :DOWNLOAD from: https://onedrive.live.com/redir?resid=78D6F726E8F0C522%21236 [right click to download!]
         :To Install, please, read the "LiteZarus4Android_readme.txt"

         1. From LiteZarus4Android IDE - Install Wizard Packages
         1.1 Package -> Open Package -> "tfpandroidbridge_pack.lpk"  [Android Components Bridges!]
            Ref. image: https://www.opendrive.com/files?Ml8zNjMwNDQ3NF83SzhsZg
         1.1.1 From Package Wizard
            - Compile
            - Use -> Install
          1.2 Package -> Open Package -> "lazandroidwizardpack.lpk"
            1.2.1 From Package Wizard
            - Compile
            - Use -> Install     
         HINT: to compile/install/reinstall a package in LiteZarus4Android,
            please, open a "dummy" windows project....
            you always MUST close the cross compile project!           

      -->> Linux Users: Get Lazarus 1.3 rev >= 45216,45217 ... and fpc 2.7.1 cross /arm/x86/android ... etc.

   2. NEW !!
      -->> AppTest1 [eclipse project] :: jPanel and form close/callback demo...
      -->> AppTest2 [eclipse project]::Present direct/hack JNI access and a new component implementation
                  model "laz_and_jni_controls.pas" [not java wrapper at all!]
                  [--->> A suggestion and request by Stephano]                   
      -->> All Apps Demos [Eclipse projects] was adjusted/updated ! 
      -->> All project now support Ant "build.*" "intall.*" etc..
         :warning: if needed change this files according to your system!

   3. Guide line for "Old" Projects [Collateral Effects]
      -->> Some TAndroidModule Form properties was supressed!
                -->> Some jComponents 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
         WARNING: android's "wildcards" [WrapContent and lpMatchParent] overlaps the design vision!
               and more: if this properties values are achieved, the "Object Inspector" will "freeze"
               this value! To "unfreeze" not just change by design, you will need
               change the value in OI by hand to any other value, so it will adjust correctly!
      -->> Add new "AndroidWidget" unit to uses clauses [*.dpr/*.pas]

   4. How to use the Demos:
      Change this information to correct one!
         "C:\adt32\ndk7"   -- just my system NDK path
         "C:\adt32\eclipse\workspace"  -- just my system eclipse workspace
      1. Go to Lazarus IDE
         ->Project
         ->Project -> Option
         ->Path
         change/modify paths according to your system ..
      2. Open/edit the "controls.lpi" [...\jni],  you can use Notepad like editor....
         Modify some [piece] of path information
         [C:\adt32\eclipse\workspace]
         [C:\adt32\ndk7]
         according to your system ..

           3. For Ant users: Change/edit build.* , intall.* , unistall.*, logcat.*  according to your system!
                                  
   5.FIXs [BUGS]   
      -->> The form *.lfm parse now is OK !!!
      -->> jListView bug fix[check/not checkd]
         and new added properties: "HighLightSelectedItem" [True/False] and "HighLightSelectedItemColor"

Thanks to All!
« Last Edit: October 16, 2014, 09:51:12 pm by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

chenyuchih

  • Jr. Member
  • **
  • Posts: 81
Re: Android Module Wizard
« Reply #200 on: October 17, 2014, 01:45:54 am »
OH MY GOODNESS! Nice Job!
Thanks for your hard works for this!

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Android Module Wizard
« Reply #201 on: October 17, 2014, 05:22:07 am »
Seems like the form designer is in github already. I'm pulling...

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: Android Module Wizard
« Reply #202 on: October 17, 2014, 08:48:19 pm »
Hi!

1. Fix a minor bug in "controls.dpr" generated code: commented the "datetime" in the "first" line!   [thanks to Stephano!]
2. The AppAntDemo1 was updated! [thanks to Stephano!]

Thanks to All!
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 #203 on: October 18, 2014, 09:56:11 pm »
According to me you could create a virtual machine that has as its sole purpose is to create Android applications with this tool. It would be good to do it in linux (any version). Because the end user to program interesting and not realize the development environment. What do you say, someone wants to do it? But then to be kept up to date. I guarantee that many would use it.
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

Fred vS

  • Hero Member
  • *****
  • Posts: 3168
    • StrumPract is the musicians best friend
Re: Android Module Wizard
« Reply #204 on: October 18, 2014, 11:31:07 pm »
Hello  ;)

Are you using/testing Android on VirtualBox ?

I have install android-x86-4.4-RC1.iso on VirtualBox-linux-Mint/64bit, it works sometimes but it has lot of crash too.  :-X

Do you have a better iso ?

Thanks.
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: Android Module Wizard
« Reply #205 on: October 19, 2014, 03:12:07 am »
@xinyiman,
@Fred vS

I do not use virtual machine/box.... I have not thought about this possibility or necessity...

1. To make android App:

-----On windows you can try:

LiteZarus4Android [Lazarus 1.3 + x2nie patch [No LCLform design] + TrueTom fpc 2.7.1 cross Arm/x86/android/]

:DOWNLOAD from: https://onedrive.live.com/redir?resid=78D6F726E8F0C522%21236 [right click to download!]

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

----On Linux: get Lazarus 1.3 rev >= 45216,45217 ... and fpc 2.7.1 cross /arm/x86/android ... etc.

2. To Run/Test App:

-->> Emulator
-->> Real Device [my is Galaxy S3 / android 4.3]

Greetings!
« Last Edit: October 19, 2014, 03:16:19 am by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

greenzyzyzy

  • Full Member
  • ***
  • Posts: 249
Re: Android Module Wizard
« Reply #206 on: October 19, 2014, 03:47:22 am »
Hello guys, I'm trying to follow this video guide

when I install the package lazandroidwizardpack me this error

C: \ laz4android \ components \ LazAndroidWizard \ androidwizard_intf.pas (166.15) Error: There is no method in an ancestor class to be overridden: "GetObjInspNodeImageIndex (TPersistent; LongInt var);"

I'm on windows xp
How can I fix?

thanks

i got the same problem,if i do not want to use LiteZarus4Android,can i mark this codes  out?

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: Android Module Wizard
« Reply #207 on: October 19, 2014, 05:11:48 am »
Well, you just need Lazarus 1.3 rev >= 45216,45217

But,  LiteZarus4Android [win32]  is a cross compile package!

     = Lazarus 1.3 rev >= 45216,45217  +
        TrueTom fpc 2.7.1 cross Arm/x86/android/  [for NDK 9b]

Greetings!

PS. Precisely the  [@x2nie] patch is a contribution to No LCLform design ["GetObjInspNodeImageIndex" ... etc ]!

« Last Edit: October 19, 2014, 06:33:55 am by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

truetom

  • Jr. Member
  • **
  • Posts: 73
    • http://sourceforge.net/projects/laz4android/
Re: Android Module Wizard
« Reply #208 on: October 19, 2014, 07:20:06 am »
Hello all,

I have updated laz4android to new version.

Date:2014-10-18
FPC: 2.7.1 SVN 28863  win32/arm-android/i386-android/jvm-android
Lazarus:1.3 trunk svn 46592
Android NDK: r10c (arm-linux-androideabi-4.6 + x86-4.6)

2014-10-18:
1.Fixed examples\androidlcl,now it can compatible with this version.

2.Compatible with Jmpessoa's LazAndroidModuleWizard,thanks Jmpessoa and Simonsays.

the Link:
http://sourceforge.net/projects/laz4android/files/?source=navbar

Thanks and best regards!
laz4android : a Lazarus for Android Package.
http://sourceforge.net/projects/laz4android/

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: Android Module Wizard
« Reply #209 on: October 19, 2014, 01:44:26 pm »
Hi TrueTom!

I Will add support [Android Module Wizard] for this new release!

I will try it today!

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

 

TinyPortal © 2005-2018