* * *

Author Topic: Android Module Wizard  (Read 423060 times)

jmpessoa

  • Hero Member
  • *****
  • Posts: 1124
Re: Android Module Wizard
« Reply #1050 on: May 22, 2018, 06:55:00 pm »

Good info!

I will [try] implement SetDataAndType [within today]!

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

jmpessoa

  • Hero Member
  • *****
  • Posts: 1124
Re: Android Module Wizard
« Reply #1051 on: May 23, 2018, 06:13:08 am »

Done!

[Added "SetDataAndType" to jIntentManager ... ]

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

alexc

  • New member
  • *
  • Posts: 7
Re: Android Module Wizard
« Reply #1052 on: May 23, 2018, 09:14:25 am »
Thank you very much. I will try it now.

alexc

  • New member
  • *
  • Posts: 7
Re: Android Module Wizard
« Reply #1053 on: May 23, 2018, 09:51:29 am »
It working fine. Thank you.

m4u_hoahoctro

  • Full Member
  • ***
  • Posts: 156
Re: Android Module Wizard
« Reply #1054 on: May 24, 2018, 03:48:20 pm »
Is AppCompatTheme not stable ?
With an ActionBarTab app using Compat Theme with NoActionBarTab option, the app will crash when opend
This doesnt happen with DefaultDeviceTheme option

jmpessoa

  • Hero Member
  • *****
  • Posts: 1124
Re: Android Module Wizard
« Reply #1055 on: May 24, 2018, 06:38:24 pm »

Hi m4u!

AppCompat need other tabbar: jsTabBar  [or   jsViewPager]  [Android Bridges Support palette...]

for simple tab, you can use "jsViewPager" see the demo "AppCompatViewPagerDemo1"
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

serbod

  • Full Member
  • ***
  • Posts: 121
Re: Android Module Wizard
« Reply #1056 on: May 25, 2018, 04:58:59 pm »
1. Project name with spaces cause Gradle and Java errors, related to class name.
For example, <manifest package="org.lamw.My project" />

2. Hidden project options in controls.lpi, <CustomData />, project can't migrate to other system.

3.  src\org\lamw\myproject\*.java not re-created on build. For example, I copy some jForm (lfm + pas) from other project, and get runtime error:

Quote
I/dalvikvm(21351): java.lang.NoSuchMethodError: no method with name='jTimer_Create' signature='(J)Ljava/lang/Object;' in class Lorg/lamw/myproject/Controls;

4. Lack of properties for related controls (widgets). For example, setting jForm.ActionBarTitle to abtTextAsTitle cause runtime error, that ActionBar not found. And there no property to assign ActionBar or it's name/id. Same for other related controls - AppBarLayout, TabLayout, ViewPager...

5. Context menu - Change parent is not active, parent can be changed only by editing .lfm

jmpessoa

  • Hero Member
  • *****
  • Posts: 1124
Re: Android Module Wizard
« Reply #1057 on: May 25, 2018, 05:32:06 pm »

Hello, serbod!

I will try some fixes...

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

m4u_hoahoctro

  • Full Member
  • ***
  • Posts: 156
Re: Android Module Wizard
« Reply #1058 on: May 30, 2018, 06:16:38 pm »
@jmpessoa
jLocation crashes on Android 6.0 and higher
I tested, it works well on Android 5.x and below
Or because i use ndk r10e ?  :o

jmpessoa

  • Hero Member
  • *****
  • Posts: 1124
Re: Android Module Wizard
« Reply #1059 on: May 31, 2018, 12:55:13 am »
Hi m4u!

I think your system need some "cleanup"!!!

1) you can try  "cleanup" your app project: Open your project and then

Lazarus IDE: "Run" --> "Clean up and Build..."

2) if not working [yet],  you can try  "cleanup" the LAMW packages:

Lazarus IDE: "Packages" --> "Open Package File (.lpk)"
 
Select some/all LAWM package then:

--> "More" --> "Recompile Clean"     

and

--> "Use" --> "Install"

and then (1) again..
« Last Edit: May 31, 2018, 12:57:13 am by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

rx3.fireproof

  • New member
  • *
  • Posts: 49
Re: Android Module Wizard
« Reply #1060 on: May 31, 2018, 10:53:58 pm »
Hello jmpessoa

Thanks for excellent work.

There's a little problem in  Lawn version 0.8.

For Android 6 and higher  after install app need to manually enable the permissions in system  or use exceptions in code.

example for white/read permissions

Code: Pascal  [Select]
  1.  
  2. try
  3.  
  4. //code...
  5.  
  6.  stringlist_text.SaveToFile(Self.GetEnvironmentDirectoryPath(dirSdCard) + 'mydir' + '/' +'myfile.txt';
  7.  
  8. //code...
  9.  
  10. except
  11.  
  12.         showmessage('no write/read permission');
  13.    
  14.   end;      


Otherwise, the application will crash.

I have everything works on the following settings:

Windows-x86,
Lazarus Android Module Wizard 0.8.1,
laz4android 1.8, FPC  3.0.4,
Java JDK 1.8 update 171,
Android SDK Build-Tools 27.0.3
Android NDK r17,
min SDK version 15,
target SDK version 27, 
Ant 1.10.3. 

best regards

rx3.fireproof

p.s.
to manually change settings for other builds it's hard :-[       


   







jmpessoa

  • Hero Member
  • *****
  • Posts: 1124
Re: Android Module Wizard
« Reply #1061 on: June 01, 2018, 12:22:46 am »

Hi rx3.fireproof!

[welcome back!]

Quote
For Android 6 and higher ....

Quote
use exceptions in code....

Good Info!

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

alexc

  • New member
  • *
  • Posts: 7
Re: Android Module Wizard
« Reply #1062 on: June 12, 2018, 11:10:54 am »
Hello.

I have a Pervasive database and Pervasive JDBC Driver (The Pervasive PSQL JDBC driver is a Type 4, 100% Pure Java certified client driver. The driver supports the JDBCTM 2.0 standard. The driver works on all platforms that support the JVM.).

How can I used it in LAMW, if it's possible?

abssistemas

  • Newbie
  • Posts: 1
Re: Android Module Wizard
« Reply #1063 on: June 21, 2018, 03:19:41 pm »
Hello,

How do I publish an apk in google play?


Leledumbo

  • Hero Member
  • *****
  • Posts: 7907
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Android Module Wizard
« Reply #1064 on: June 22, 2018, 12:25:41 am »
Hello,

How do I publish an apk in google play?
Follow this guide. Note: prepare your credit card.

 

Recent

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