* * *

Author Topic: Android Module Wizard  (Read 255515 times)

jmpessoa

  • Hero Member
  • *****
  • Posts: 818
Re: Android Module Wizard
« Reply #945 on: March 08, 2017, 11:09:37 pm »

Yes, this is correct!

You can see  in "Laz_And_Controls.pas"  //in line 1617

Code: Pascal  [Select]
  1.   // ----------------------------------------------------------------------------
  2.   //  Event Handler  : Java -> Pascal
  3.   // ----------------------------------------------------------------------------
  4.  
  5.   // Activity Event
  6.   Function  Java_Event_pAppOnScreenStyle         (env: PJNIEnv; this: jobject): JInt;  
  7.  

So I continue to think that these errors are due to some inconsistency in the structure of your project...
Did you try some "new" project? what about?

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

m4u_hoahoctro

  • Full Member
  • ***
  • Posts: 140
Re: Android Module Wizard
« Reply #946 on: March 18, 2017, 02:21:41 pm »
I meet this error and I read about your exlain how to fix
controls.lpr(564,1) Error: Wrong number of parameters specified for call to "Java_Event_pOnDraw"

I added parameter "jcanvas" in line has "ondraw" file controls.native
but it still be wrong
:(

m4u_hoahoctro

  • Full Member
  • ***
  • Posts: 140
Re: Android Module Wizard
« Reply #947 on: March 18, 2017, 03:15:15 pm »
 :( Now If I create new project, and empty form ( form doesnt have any controls component on ) and build-run, all ok
But for example, when I drop and drag some controls, as button and tedit then build-run, below errors appear
see image: http://imgur.com/a/qcMRj


 :( :( :( :( :(

jmpessoa

  • Hero Member
  • *****
  • Posts: 818
Re: Android Module Wizard
« Reply #948 on: March 18, 2017, 05:13:11 pm »
Hi m4u!

Please,  don't hack/change "controls.native" ....  indeed
"OnDraw" signature lost the "jCanvas" parameter [sorry] .... you need only change/adapt your app code...
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

m4u_hoahoctro

  • Full Member
  • ***
  • Posts: 140
Re: Android Module Wizard
« Reply #949 on: March 24, 2017, 05:00:21 pm »
@jmpessoa
Now my min api is 15 and target api max is 22
so can my app be run on newer version of android ? , such as android 6++ ?
if cant, how to change target api for that ?
thanks :)

jmpessoa

  • Hero Member
  • *****
  • Posts: 818
Re: Android Module Wizard
« Reply #950 on: March 25, 2017, 03:25:45 am »

Quote
...so can my app be run on newer version of android ?

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

jt2003

  • Newbie
  • Posts: 2
Re: Android Module Wizard
« Reply #951 on: March 25, 2017, 03:13:04 pm »
Error Trying to install version 0.7.14 - Package TFPandroidbridge_pack : cannot find textureview ....

Windows 10 64 bits
what could it be?
thanks,

jmpessoa

  • Hero Member
  • *****
  • Posts: 818
Re: Android Module Wizard
« Reply #952 on: March 25, 2017, 04:50:40 pm »

Sorry... I will fix it just now!

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

jt2003

  • Newbie
  • Posts: 2
Re: Android Module Wizard
« Reply #953 on: March 25, 2017, 05:02:54 pm »
Obrigado João!  ::)

Thanks a lot!

jmpessoa

  • Hero Member
  • *****
  • Posts: 818
Re: Android Module Wizard
« Reply #954 on: March 25, 2017, 05:45:56 pm »

Hi All!

there is a new LAMW revision!

Version 0.7.14 - 24 - March - 2017  [Fixed! thanks to jt2003]

   NEW! jVideoView component

   NEW! demo AppVideoViewDemo1

   IMPROVED!
      jNotificationManager   --- thanks to majid.ebru!

   NEW! demo AppNotificationManagerDemo2

   UPDATED! demo AppNotificationManagerDemo1 --- thanks to majid.ebru!

   IMPROVED!
      jTextView: news methods
         SetFontFromAssets  --- thanks to majid.ebru!
         SetTextIsSelectable
         SetScrollingText
         SetTextAsLink   
         
      jEditText:: new method
         SetFontFromAssets 

      jButton: new method 
         SetFontFromAssets

      jCheckBox: new method 
         SetFontFromAssets

      jRadioButton: new method
         SetFontFromAssets

   NEW! demo AppCustomFontDemo1   --- thanks to majid.ebru!
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