Recent

Author Topic: Android Module Wizard  (Read 708062 times)

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: Android Module Wizard
« Reply #1140 on: February 20, 2019, 05:10:16 am »

Quote
what do i miss? why can't I display AndroidModule2 using this code?

Please,  put your project in some "online-drive". I will try help.....
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

nullpointer

  • New Member
  • *
  • Posts: 35
  • impossible is nothing
    • tauhidslab
Re: Android Module Wizard
« Reply #1141 on: February 20, 2019, 06:23:48 am »

Quote
what do i miss? why can't I display AndroidModule2 using this code?

Please,  put your project in some "online-drive". I will try help.....

I solved this problem by changing the background color of AndroidModule2. So it turns out that actually AndroidModule2 has been displayed only because the background color is the same as AndroidModule1 so it's not visible. :D

nullpointer

  • New Member
  • *
  • Posts: 35
  • impossible is nothing
    • tauhidslab
Re: Android Module Wizard
« Reply #1142 on: March 01, 2019, 02:20:06 am »
I did not find an example of a login page in the LAMW demo folder. However, I want to remove Titlebar but I don't find it in the AndroidModule Object Inspector.

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: Android Module Wizard
« Reply #1143 on: March 01, 2019, 03:23:57 am »
Quote
I did not find an example of a login page in the LAMW demo folder....

Login, where?? [http] web server? Or just "page layout"?

Quote
I want to remove Titlebar...

Go to your project folder ".....\res\values-v21\styles.xml"

change this line:

<style name="AppBaseTheme" parent="android:Theme.DeviceDefault">

to:

<style name="AppBaseTheme" parent="android:Theme.Holo.Light.NoActionBar">

But you can notice some more [unexpected] changes ...


EDITED: Fixed "Project Options" --> "LAMW..." --> "Application" theme

Please,  update LAMW from github...

Thank you!
« Last Edit: March 01, 2019, 07:49:25 am by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

nullpointer

  • New Member
  • *
  • Posts: 35
  • impossible is nothing
    • tauhidslab
Re: Android Module Wizard
« Reply #1144 on: March 02, 2019, 08:00:17 am »
Quote

EDITED: Fixed "Project Options" --> "LAMW..." --> "Application" theme

Please,  update LAMW from github...

Thank you!

Nice! Thank you jmpessoa 

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: Android Module Wizard
« Reply #1145 on: August 13, 2019, 10:52:28 pm »
Hi, All


LAMW, major update!
       
Version 0.8 - rev 05 - 13 - August - 2019
   
   NEW! jForm/jPanel/jImageView [effect]  Animation Trasition!!!
      Add properties:
         Animation {Fade, RightToLeft, LeftToRight)
         AnimationDuration

         how it works:
            jForm {InitShowing, Show, Close}
            jPanel/jImageView {BringToFront}
      
   NEW!  demo "AppAnimationDemo1"  -> jForm/jPanel/jImageView  Animation       
   MEW!  demo  "AppImageViewListDemo1"   --> jImageView  Animation
   UPDATED! demo "AppCompatNavigationDrawerDemo1" -> jPanel   Animation


        NEW! Compoments!
      jSoundPool componet and "AppSoundPoolDemo"   [thanks to @TR3E!]
      jMidiManager componet and "AppMidiManagerDemo1" [thanks to Marco Bramardi]
      jWifiManager componet and "AppWifiManagerDemo1"

      jExpression componet and "AppExpressionDemo1"     [link to a local "jar" file...]
      jZBarcodeScannerView componet and "AppZBarcodeScannerViewDemo1"

      jsContinuousScrollableImageView component and "AppCompatContinuousScrollableImageViewDemo1"

   NEW! Palette "JCenter" <-- Link to external java libraries,  need "Gradle"

      jcSignaturePad componet and "AppJCenterSignaturePadDemo1"
      jcOpenStreetMap componet and "AppJCenterOpenStreetMapDemo2"
      jcMikrotikRouterOS componet and "AppJCenterMikrotikRouterOSDemo1"
      jcLantern componet and "AppJCenterLanternDemo1"
      jcScreenShot componet and "AppJCenterScreenShotDemo1"


   CHANGED!
      ref. https://forum.lazarus.freepascal.org/index.php/topic,46340.0.html

      "Init"  no longer show the form....Some old code can be easily fixed:

      example:

      procedure TAndroidModule1.jButton1Click(Sender: TObject);
      begin
           if AndroidModule2 = nil then
           begin
                gApp.CreateForm(TAndroidModule2, AndroidModule2);
                AndroidModule2.InitShowing(gApp);                             // <-- Fixed!!!
           end
           else
           begin
                AndroidModule2.Show();
           end;
      end;


   REQUIREMENTS:

      1. Java JDK 1.8 
      2. Gradle 4.4.1 [or up] + Internet Connection!
      3. Android SDK "plataforms" 28 + "build-tools" 28.0.3   [Min "target" need by Google Play Store]
      4. Android SDK/Extra  "Support Repository"
      5. Android SDK/Extra  "Support Library"
      6. Android SDK/Extra  "Google Repository"
      7. Android SDK/Extra  "Google Play Services"
« Last Edit: August 22, 2019, 07:07:47 am by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

AFFRIZA 亜風実

  • Full Member
  • ***
  • Posts: 144
Re: Android Module Wizard
« Reply #1146 on: August 22, 2019, 05:16:08 am »
Btw, I have one question. Hehe...  :D

Is that possible to show SDK Windows automatically when this happening? (in attachment)
Because the error show require to accept the license, but there's no license agreement window is there.
Kyoukai Framework: https://github.com/afuriza/kyoukai_framework

Dukung kemerdekaan Donetsk dan Lugansk! Tidak membalas profil berbendera biru-kuning apalagi ber-Bandera.

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: Android Module Wizard
« Reply #1147 on: August 22, 2019, 06:35:32 am »
No. That is a gradle [process] report....

What this "error" does mean?   [Gradle, won't be able to install it, because it depends on "accept license"  event...]

So, you need [manually] install the required sdk/platform "android-28"  [and sdk/built-tools"28.0.3"].

Just execute the GUI "SDK Manager" (aka "sdk/tool/android.bat")
[and there you wil need  "accept license" to update your system]


 
« Last Edit: August 22, 2019, 06:37:30 am by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

AFFRIZA 亜風実

  • Full Member
  • ***
  • Posts: 144
Re: Android Module Wizard
« Reply #1148 on: August 22, 2019, 06:38:47 am »

No. That is a gradle [process] report....

What this "error" does mean?   [Gradle, won't be able to install it, because it depends on "accept license"  event...]

So, you need [manually] install the required sdk/platform "android-28"  [and sdk/built-tools"28.0.3"].

Just execute the GUI "SDK Manager" (aka "sdk/tool/android.bat")
Noted.

I just updated LAMW, there are many things are changed. Like forcing SDK 28 and all my App Test doesn't work anymore, it's always stopped working. I think I should revert to previous LAMW.
Kyoukai Framework: https://github.com/afuriza/kyoukai_framework

Dukung kemerdekaan Donetsk dan Lugansk! Tidak membalas profil berbendera biru-kuning apalagi ber-Bandera.

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: Android Module Wizard
« Reply #1149 on: August 22, 2019, 06:42:41 am »

Quote
  I think I should revert to previous LAMW....

No! You need only update your sdk!!!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

AFFRIZA 亜風実

  • Full Member
  • ***
  • Posts: 144
Re: Android Module Wizard
« Reply #1150 on: August 22, 2019, 06:49:30 am »

Quote
  I think I should revert to previous LAMW....

No! You need only update your sdk!!!
I do it already, but all of my projects still stopped working. I even modifying old build.gradle file, because it won't build anymore.

I think, there are major causes: I try to add easel's panel into the main form after the splash screen, and I think I can't init any form in the JNI_Promt event anymore.\

I'm using AppCompatNoActionbar, btw.

Code: Pascal  [Select][+][-]
  1. procedure TViewSplash.tmrStartupTimer(Sender: TObject);
  2. begin
  3.   if clStartup < 11 then
  4.   begin
  5.      clStartup += 1;
  6.      pbStartup.Max := 10;
  7.      pbStartup.Progress := clStartup;
  8.   end
  9.   else
  10.   begin
  11.     clStartup := 0;
  12.     tmrStartup.Enabled := False;
  13.     gApp.CreateForm(TMainControl, MainControl);
  14.     MainControl.InitShowing(gApp);
  15.   end;
  16. end;
  17.  

This is problematic.
Code: Pascal  [Select][+][-]
  1. procedure TMainControl.MainControlJNIPrompt(Sender: TObject);
  2. begin
  3.   if not Assigned(ViewLogin) then
  4.   begin
  5.     gApp.CreateForm(TViewLogin, ViewLogin);
  6.     ViewLogin.Init(gApp);
  7.     ViewLogin.pnView.SetViewParent(pnView);
  8.   end;
  9. end;  
  10.  

Code: Pascal  [Select][+][-]
  1. procedure TViewLogin.ViewLoginJNIPrompt(Sender: TObject);
  2. begin
  3.   jsFloatingButton1.SetPressedRippleColor(colbrCyan);
  4.   jsFloatingButton1.ImageIdentifier:= 'ic_gear_white_36dp';
  5.   edUsername.Text := '';
  6.   edPassword.Text := '';
  7. end;
  8.  
« Last Edit: August 22, 2019, 07:02:30 am by Dio Affriza »
Kyoukai Framework: https://github.com/afuriza/kyoukai_framework

Dukung kemerdekaan Donetsk dan Lugansk! Tidak membalas profil berbendera biru-kuning apalagi ber-Bandera.

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: Android Module Wizard
« Reply #1151 on: August 22, 2019, 07:03:55 am »

The "AppCompatNavigationDrawerDemo1"  is up-to-date!!!

The main change is documented!

Code: Pascal  [Select][+][-]
  1.       procedure TAndroidModule1.jButton1Click(Sender: TObject);
  2.       begin
  3.            if AndroidModule2 = nil then
  4.            begin
  5.                 gApp.CreateForm(TAndroidModule2, AndroidModule2);
  6.                 AndroidModule2.InitShowing(gApp);                             // <-- Fixed!!!
  7.            end  
  8.            else
  9.            begin
  10.                 AndroidModule2.Show();
  11.            end;
  12.       end;
  13.  
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

AFFRIZA 亜風実

  • Full Member
  • ***
  • Posts: 144
Re: Android Module Wizard
« Reply #1152 on: August 22, 2019, 07:20:41 am »
I think that's doesn't what I mean. But, yeah. The demo doesn't even work too.
Kyoukai Framework: https://github.com/afuriza/kyoukai_framework

Dukung kemerdekaan Donetsk dan Lugansk! Tidak membalas profil berbendera biru-kuning apalagi ber-Bandera.

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: Android Module Wizard
« Reply #1153 on: August 22, 2019, 07:22:27 am »

You code:
Quote
ViewLogin.Init(gApp);     

What about:  ViewLogin.InitShowing(gApp); ??
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

AFFRIZA 亜風実

  • Full Member
  • ***
  • Posts: 144
Re: Android Module Wizard
« Reply #1154 on: August 22, 2019, 07:32:06 am »

You code:
Quote
ViewLogin.Init(gApp);     

What about:  ViewLogin.InitShowing(gApp); ??
I mean, it's actEasel...  :D

Code: Pascal  [Select][+][-]
  1. if not Assigned(ViewLogin) then
  2.   begin
  3.     gApp.CreateForm(TViewLogin, ViewLogin);
  4.     ViewLogin.Init(gApp); // <- Don't show actEasel forms...
  5.     ViewLogin.pnView.SetViewParent(pnView); // <- here you are.
  6.   end;
  7.  

Btw, actEasel on "AppCompatNavigationDrawerDemo1" have the same problem too.  :(
« Last Edit: August 22, 2019, 07:35:04 am by Dio Affriza »
Kyoukai Framework: https://github.com/afuriza/kyoukai_framework

Dukung kemerdekaan Donetsk dan Lugansk! Tidak membalas profil berbendera biru-kuning apalagi ber-Bandera.

 

TinyPortal © 2005-2018