* * *

Author Topic: Android Module Wizard  (Read 429161 times)

ocloma

  • Newbie
  • Posts: 4
Re: Android Module Wizard
« Reply #1020 on: April 02, 2018, 07:07:42 pm »
Very nice work! Thanks!

jmpessoa

  • Hero Member
  • *****
  • Posts: 1143
Re: Android Module Wizard
« Reply #1021 on: April 02, 2018, 10:09:40 pm »

Hi All!

There is new major LAMW 0.8 version!

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

   NEW! "AppCompat" material theme support!
   NEW! "Android Bridges Support" component palete to support "AppCompat" material theme!
      NEW! jsDrawerLayout component
      NEW! jsNavigationView component
      NEW! jsCoordinatorLayout component
      NEW! jsAppBarLayout component
      NEW! jsCollapsingToolbarLayout component
      NEW! jsToolbar component
      NEW! jsTabLayout component
      NEW! jsNestedScrollView component
      NEW! jsRecyclerView component
      NEW! jsViewPager component
      NEW! jsCardView component
      NEW! jsFloatingButton component
      NEW! jsBottomNavigationView component
      NEW! jsTextInput component

   NEW! demo AppCompatFloatingButtonDemo1
   NEW! demo AppCompatViewPagerDemo1
   NEW! demo AppCompatNavigationDrawerDemo1
   NEW! demo AppCompatCollapsingToolbarDemo1
   NEW! demo AppCompatTabLayoutDemo1
   NEW! demo AppCompatTabLayoutDemo2

   NEW! jDBListView component by Martin Lowry [Thanks!]
   NEW! demo AppDBGridViewDemo1  by Martin Lowry [Thanks!]

   REQUIREMENTS:

      [LAMW 0.8] "AppCompat" [material] theme need:

      1. Java JDK 1.8

      2. Gradle 4.1 + Internet Connection!
      https://gradle.org/next-steps/?version=4.1&format=bin
      Simply extract the zip file to a convenient location...

      3. Android SDK "plataforms" 25 + "build-tools" 25.0.3 [or]
      3. Android SDK "plataforms" 26 + "build-tools" 26.0.3 [or]
      3. Android SDK "plataforms" 27 + "build-tools" 27.0.3
      4. Android SDK/Extra  "Support Repository"
      5. Android SDK/Extra  "Support Library"
      
      Hint. [Gradle] If your connection has a proxy, edit the "gradle.properties" file content. Example:
 
         systemProp.http.proxyHost=10.0.16.1
         systemProp.http.proxyPort=3128
         systemProp.https.proxyHost=10.0.16.1
         systemProp.https.proxyPort=3128

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

arirod

  • New member
  • *
  • Posts: 15
Re: Android Module Wizard
« Reply #1022 on: April 04, 2018, 07:36:40 am »
srs. sobre a release 0.8...instalacao WayneSherman
crio um projeto novo GUI, com apenas um botao sem eventos
quando executo "Build Android APK and Run"...retorna erros que nao consegui resolver...peço orientacoes!
//------------------
Messages, Hints: 2
Verbose: Selected chip architecture: armeabi-v7a
Verbose: Taking libraries from folder: /home/aeondc/lamw-projetos/proj2/libs/armeabi-v7a
Verbose: Found library: libcontrols.so
Note: Duplicate unit "controls" in "controls", orphaned ppu "/home/aeondc/lamw-projetos/proj2/obj/controls/controls.o"
Note: Duplicate unit "controls" in "LCLBase 1.9", ppu="/home/aeondc/fpcupdeluxe/lazarus/lcl/units/arm-android/controls.ppu", source="/home/aeondc/fpcupdeluxe/lazarus/lcl/controls.pp"
Compile Project, OS: android, CPU: arm, Target: /home/aeondc/lamw-projetos/proj2/libs/armeabi-v7a/libcontrols.so: Success
Building APK (Gradle)... : Exit code 256, Errors: 2
Panic: xfce4-terminal: Opção desconhecida "clean"
Panic: tool stopped with exit code 256. Use context menu to get more information.
Exception, Errors: 1
Fatal: [Exception] Failed: Cannot build APK!
//------------------
obrigado!

WayneSherman

  • New member
  • *
  • Posts: 29
Re: Android Module Wizard
« Reply #1023 on: April 05, 2018, 01:26:11 am »
Quote
Building APK (Gradle)... : Exit code 256, Errors: 2
Panic: xfce4-terminal: Opção desconhecida "clean"
Panic: tool stopped with exit code 256. Use context menu to get more information.
Exception, Errors: 1
Fatal: [Exception] Failed: Cannot build APK!

Some things to check and try:
1) Make sure you have gradle installed according to the instructions (see section 3.4. Environment variables)
2) Edit gradle_local_build.sh to correct errors. (possibly all you need is one line:  gradle clean build --info)
3) Give gradle_local_build.sh execute permission
4) Try running gradle_local_build.sh from a command line.


« Last Edit: April 05, 2018, 01:29:54 am by WayneSherman »

arirod

  • New member
  • *
  • Posts: 15
Re: Android Module Wizard
« Reply #1024 on: April 05, 2018, 07:57:41 pm »

jmpessoa

  • Hero Member
  • *****
  • Posts: 1143
Re: Android Module Wizard
« Reply #1025 on: April 05, 2018, 11:21:55 pm »

Muito Bom, Ari!

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

WayneSherman

  • New member
  • *
  • Posts: 29
Re: Android Module Wizard
« Reply #1026 on: April 06, 2018, 01:08:17 am »
I didn't understand everything, but good job on the tutorial.

mr-highball

  • Newbie
  • Posts: 4
Re: Android Module Wizard
« Reply #1027 on: April 16, 2018, 07:47:33 pm »
First, this is a wonderful project, and I appreciate all the work you have put into it.

I'd like to see if there has been any thoughts/progress on background services?
Last year you mentioned there was no support for services, but I figured things can change in a year :)
https://forum.lazarus.freepascal.org/index.php/topic,36201.msg240997.html#msg240997

Embarcadero's approach to android services
http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Android_Service
http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Creating_Android_Services

I recently just stumbled upon LAMW so pardon if this has been asked/answered before.
Thanks for your time,
« Last Edit: April 16, 2018, 07:50:00 pm by mr-highball »
-Highball

jmpessoa

  • Hero Member
  • *****
  • Posts: 1143
Re: Android Module Wizard
« Reply #1028 on: April 17, 2018, 01:53:57 am »
Hello, Mr-Highball!

Sorry...  but  LAMW  do not support  custom user defined service, yet ...

[The LAMW 0.8    development focus  was "material design" and "support libraries" ....]

Now,  I will can try some approach to support "custom user defined service" ....

Until there, if you have some need for a specific service, I can try help you!

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

mr-highball

  • Newbie
  • Posts: 4
Re: Android Module Wizard
« Reply #1029 on: April 17, 2018, 06:03:34 pm »
Thank you for the reply! I thought as such, but I figured I would ask. I don't have a specific need now, but I like to tinker, so something may come up in the future.
-Highball

alexc

  • New member
  • *
  • Posts: 7
Re: Android Module Wizard
« Reply #1030 on: May 02, 2018, 12:13:11 pm »
Hi everybogy.

I have questions about jTCPSocketClient component.

When I try asyncConnect and sendmessage it is work perfect! but if I then do CloseConnection, and then again asyncConnect, it connected, but sendmessage didn't work (

How to create a new jTCPSocketClient component in run time?

I tryed :
clientsocket := jTCPSocketClient.Create(gApp);
clientsocket.Init(gApp); 

and

clientsocket := jTCPSocketClient.Create(Self);
clientsocket.Init(gApp); 

but both crashed in clientsocket.Init(gApp);

Thank you.

WayneSherman

  • New member
  • *
  • Posts: 29
Re: Android Module Wizard
« Reply #1031 on: May 05, 2018, 06:43:58 am »
I have questions about jTCPSocketClient component.

Sorry I can't help you with jTCPSocketClient.  If your application can use synchronous / blocking communication calls, another option is to use Synapse (see also here).  It works with Android with a small modification to one file (see bug report here).

Code: Pascal  [Select]
  1. uses BlckSock;
  2.  
  3.     TCPBlockSocket := TTCPBlockSocket.Create;
  4.  
  5.     TCPBlockSocket.Bind('', cAnyPort);
  6.     TCPBlockSocket.Connect(Host, Port);
  7.     TCPBlockSocket.SendString(AString);
  8.     if TCPBlockSocket.LastError <> 0 then begin
  9.     //error handling
  10.     end;
  11.  
  12.    FreeAndNil(TCPBlockSocket);
  13.  

jmpessoa

  • Hero Member
  • *****
  • Posts: 1143
Re: Android Module Wizard
« Reply #1032 on: May 12, 2018, 07:22:17 am »
Hello All!

There is an updated LAMW revision!

Version 0.8 - rev 01 - 12 - May- 2018

   IMPROVED/FIXED support/install to MacOs !!

      Warning: X11 [libGL.dylib] is no longer bundled with Mountain Lion (and later!)         
         [This will prevents/drops some LAMW features,
         including the use of OpenGL components "jCanvasES1" and "jCanvasES2"]


Thanks to All!

Special thanks to DonAlfredo and  A.S.
« Last Edit: May 12, 2018, 07:24:08 am by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

m4u_hoahoctro

  • Full Member
  • ***
  • Posts: 156
Re: Android Module Wizard
« Reply #1033 on: May 16, 2018, 05:30:13 am »
@jmpessoa

Does using old android sdk manager ( like r24/r25 ) affect to created app ?
Sometimes I see my app run well on my phone (android 5.0) but on higher it crashes ( if the app implemented internet connection components ) ( although the target api is android 6.0/7.0)

jmpessoa

  • Hero Member
  • *****
  • Posts: 1143
Re: Android Module Wizard
« Reply #1034 on: May 16, 2018, 06:13:41 am »
Quote
Does using old android sdk manager ( like r24/r25 ) affect to created app ?

No!  We need higher SDK only for "AppCompat" material theme...
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus