Recent

Author Topic: Android Module Wizard  (Read 705458 times)

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Android Module Wizard
« Reply #840 on: May 24, 2016, 07:29:27 pm »

Hi All!

There is a new LAMW revision!

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

Version 0.6 - rev. 46 - 24 May 2016 -

   NEW!   jAlarmManager component
   NEW!   AppAlarmManagerDemo1

Thanks to All!

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

Handoko

  • Hero Member
  • *****
  • Posts: 5131
  • My goal: build my own game engine using Lazarus
Re: Android Module Wizard
« Reply #841 on: May 29, 2016, 01:15:04 pm »
How to disable auto screen rotate when rotating the device?

rx3.fireproof

  • New Member
  • *
  • Posts: 49
Re: Android Module Wizard
« Reply #842 on: May 29, 2016, 04:15:26 pm »
Hi Handoko

For only vertical screen I added in "AndroidManifest.xml" this code.

Quote
android:screenOrientation="portrait"

 in the line  activity.

Quote
<activity android:name="org.lazarus.rx3android.App" android:label="@string/app_name" android:screenOrientation="portrait" android:configChanges="orientation|keyboardHidden|screenSize|screenLayout|fontScale"

Handoko

  • Hero Member
  • *****
  • Posts: 5131
  • My goal: build my own game engine using Lazarus
Re: Android Module Wizard
« Reply #843 on: May 29, 2016, 04:31:28 pm »
Thanks you rx3.fireproof.
I'll try it.

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Android Module Wizard
« Reply #844 on: May 29, 2016, 05:50:20 pm »

Hello rx3!
Hello Handoko!

We can try  [too]:

   Self.SetScreenOrientationStyle(ssPortrait);

  or:

   Self.SetScreenOrientationStyle(ssLandscape);

   etc...

handling events: "OnJNIPrompt" or "OnRotate" handle...
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

rx3.fireproof

  • New Member
  • *
  • Posts: 49
Re: Android Module Wizard
« Reply #845 on: May 29, 2016, 06:31:12 pm »
Hello jmpessoa!

Well. I'll try.
"My method" for the old version LAMW ;)

Handoko

  • Hero Member
  • *****
  • Posts: 5131
  • My goal: build my own game engine using Lazarus
Re: Android Module Wizard
« Reply #846 on: May 29, 2016, 07:31:01 pm »
Tested using AndroidManifest.xml and SetScreenOrientationStyle. Both work.

Thank you.

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Android Module Wizard
« Reply #847 on: June 12, 2016, 08:28:03 am »

Hello All!

There is an updated LAMW revision!

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


Version 0.6 - rev. 47 - 11 June 2016 -

   NEW!   jDownloadService component
   NEW!   jDownloadManager component

   NEW!   AppDownloadServiceDemo1
   NEW!   AppDownloadManagerDemo1

   IMPROVED!
      jGridView   // <<---- thanks to tintinux suggestions
         New methods:
            SetHorizontalSpacing
            SetVerticalSpacing
            SetSelection
            SetStretchMode

      jDrawingView   // <<---- thanks to tintinux suggestions
         New events:
            OnFlingGesture
            OnPinchZoomGesture
         Changed:
            OnDraw signature

   UPDATED:
      AppGridViewDemo1
      AppDrawingViewDemo1   


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

rx3.fireproof

  • New Member
  • *
  • Posts: 49
Re: Android Module Wizard
« Reply #848 on: June 12, 2016, 09:23:14 pm »
Hello jmpessoa!

In the new version I have a little error. The "ant/bin"  path is not saved in the path settings.
Shows the path to the SDK.
From command line everything works.

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Android Module Wizard
« Reply #849 on: June 13, 2016, 02:52:32 am »


Quote
...The "ant/bin"  path is not saved in the path settings.

Fixed!

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

rx3.fireproof

  • New Member
  • *
  • Posts: 49
Re: Android Module Wizard
« Reply #850 on: June 13, 2016, 07:03:36 pm »
Hello jmpessoa!

Everything works. Thank you.

I have long wanted to ask.
It is possible to add a property "alignment"  to a jSpinner ?  ::)

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Android Module Wizard
« Reply #851 on: July 12, 2016, 07:48:47 am »

Hello All!

There is a Major  LAMW update!

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

Version 0.7 - 11 July 2016

   WARNING!
      .Uninstall all LAMW package before install the new version 0.7
         .uninstall [amw_ide_tools.lpk]
         .uninstall [lazandroidwizardpack.lpk]
         .uninstall [tfpandroidbridge_pack.lpk]   // <--- uninstall at last!
   
   IMPROVEMENTS!
      .Smart code composition/generation     [old @leledumbo suggestion!]
      .Smart "Demos" perception/detection and [ndk/sdk] paths auto-fixed
      .Automatic java templates update/synchronization

   CLEANUP! [new folders organization]
      .android_bridges   [tfpandroidbridge_pack.lpk] // <<-- install first
      .android_wizard      [lazandroidwizardpack.lpk]
      .ide_tools      [amw_ide_tools.lpk]
      .java
         .lamwdesigner
      .docs
         .linux

   CLEANUP!
      .Component tabs organization


   WARNING!
      .Please, whenever a dialog prompt, select "Reload from disk"


   NEW!   jChronometer component
   NEW!   jMediaRecorder component   //thanks to  Mario H. D. suggestion!

   NEW!   AppChronometerDemo1
   NEW!   AppMediaRecorderDemo1      //thanks to  Mario H. D. suggestion!

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

Handoko

  • Hero Member
  • *****
  • Posts: 5131
  • My goal: build my own game engine using Lazarus
Re: Android Module Wizard
« Reply #852 on: July 12, 2016, 08:19:37 am »
Just downloaded and updated. Thank you.

x2nie

  • Hero Member
  • *****
  • Posts: 515
  • Impossible=I don't know the way
    • impossible is nothing - www.x2nie.com
Re: Android Module Wizard
« Reply #853 on: July 12, 2016, 12:47:52 pm »
hi @jmpessoa, would you like to add screenshot of running demos? if you can't, a photo (by camera) is okay. 8-)
When you were logged in, you can see attachments.
Lazarus Github @ UbuntuCinnamon-v22.04.1 + LinuxMintDebianEdition5

Handoko

  • Hero Member
  • *****
  • Posts: 5131
  • My goal: build my own game engine using Lazarus
Re: Android Module Wizard
« Reply #854 on: July 14, 2016, 04:56:06 pm »
Hello, jmpessoa.

After I upgraded LAMW to version 0.7 yesterday, now I always get the message telling me to "Reload from disk" or "Ignore disk changes" when I open my old project, even I've already reload and saved it.

Is it a new behavior set by intention? Or bug? Or something wrong with my project file? Please see the attached image.

 

TinyPortal © 2005-2018