* * *

Author Topic: Android Module Wizard  (Read 264352 times)

jmpessoa

  • Hero Member
  • *****
  • Posts: 856
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: 143
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: 143
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: 856
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: 143
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: 856
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: 856
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: 856
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

liyuangarcia

  • Newbie
  • Posts: 3
Re: Android Module Wizard
« Reply #955 on: March 29, 2017, 09:23:44 pm »
I have an error while build the APK

Buildfile: D:\App\LamwGUIProject2\build.xml




-set-mode-check:



-set-debug-files:

-check-env:
 [checkenv] Android SDK Tools Revision 24.4.1
 [checkenv] Installed at D:\lamw\android-sdk-windows

-setup:
     [echo] Project Name: LamwGUIProject2
  [gettype] Project Type: Application

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup:

[getbuildtools] Using latest Build Tools: 25.0.2
     [echo] Resolving Build Target for LamwGUIProject2...
[gettarget] Project Target:   Android 4.2.2
[gettarget] API level:        17
     [echo] ----------
     [echo] Creating output directories if needed...
    [mkdir] Created dir: D:\App\LamwGUIProject2\bin\rsObj
    [mkdir] Created dir: D:\App\LamwGUIProject2\bin\rsLibs
     [echo] ----------
     [echo] Resolving Dependencies for LamwGUIProject2...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
     [echo] ----------
     [echo] Building Libraries with 'debug'...
   [subant] No sub-builds to iterate on

-code-gen:
[mergemanifest] Found Deleted Target File
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
     [echo] Handling aidl files...
     [aidl] No AIDL files to compile.
     [echo] ----------
     [echo] Handling RenderScript files...
     [echo] ----------


     [echo] Handling Resources...
     [aapt] Found Deleted Target File
     [aapt] Generating resource IDs...
     [echo] ----------
     [echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.

-pre-compile:

-compile:
    [javac] Compiling 5 source files to D:\App\LamwGUIProject2\bin\classes

    [javac] D:\App\LamwGUIProject2\src\org\lamw\lamwguiproject2\android-17\App.java:75: error: method jAppOnCreate in class Controls cannot be applied to given types;
    [javac]       controls.jAppOnCreate(this, controls.appLayout);
    [javac]               ^
    [javac]   required: Context,RelativeLayout,Intent
    [javac]   found: App,RelativeLayout
    [javac]   reason: actual and formal argument lists differ in length
    [javac] D:\App\LamwGUIProject2\src\org\lamw\lamwguiproject2\android-17\App.java:80: error: method jAppOnNewIntent in class Controls cannot be applied to given types;
    [javac]     protected void onNewIntent(Intent intent) {super.onNewIntent(intent); controls.jAppOnNewIntent();}
    [javac]                                                                                   ^
    [javac]   required: Intent
    [javac]   found: no arguments
    [javac]   reason: actual and formal argument lists differ in length

    [javac] 2 errors

Any help please?


Win8.1: laz4android1.5-50093-FPC3.1.1
LAMW: 0.7.14

jmpessoa

  • Hero Member
  • *****
  • Posts: 856
Re: Android Module Wizard
« Reply #956 on: March 29, 2017, 10:12:04 pm »

Fixed!

Please, update from github

ref.

https://github.com/jmpessoa/lazandroidmodulewizard

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

liyuangarcia

  • Newbie
  • Posts: 3
Re: Android Module Wizard
« Reply #957 on: March 29, 2017, 10:49:30 pm »
Great Job. Working fine!

Congratulations!

jmpessoa

  • Hero Member
  • *****
  • Posts: 856
Re: Android Module Wizard
« Reply #958 on: March 30, 2017, 06:43:10 am »
Hi All!

There is a new LAMW revision!

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


Version 0.7.15 - 29 - March - 2017

   NEW! jTextToSpeech  component

   NEW! demo AppTextToSpeechDemo1

   UPDATED! demo AppCustomFontDemo1 --- Added Font Awesome Icons example


Thanks to All
« Last Edit: March 30, 2017, 06:46:26 am by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

m4u_hoahoctro

  • Full Member
  • ***
  • Posts: 143
Re: Android Module Wizard
« Reply #959 on: April 02, 2017, 03:31:51 pm »
can I implement admob banner to app ?
and if, how to do ?
thanks much :) :)

 

Recent

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