Recent

Author Topic: Android Module Wizard  (Read 705488 times)

abssistemas

  • New Member
  • *
  • Posts: 21
Re: Android Module Wizard
« Reply #1110 on: September 29, 2018, 02:17:53 pm »

Sorry...  Fixed here!

Hi jmpessoa,

Is it missing to create the TOnBytesReceived event in my project?
The jTCPSocketClient component does not have the TOnBytesReceived event on it, only the TOnConnected and TOnMessagesReceived events.
I'm declaring it right, see what I've done:

type

  { TAndroidModuleMaps }
    procedure jButton2Click(Sender: TObject);
    procedure jTCPSocketClient1BytesReceived(Sender: TObject;
      var bytesReceived: TDynArrayOfJByte);


procedure TAndroidModuleMaps.jButton2Click(Sender: TObject);
begin
  //NEW!!! Prepare to "Send" and "Receive"  bytes
  jTCPSocketClient1.SetDataTransferMode(dtmByte);
  jTCPSocketClient1.ConnectAsync('192.168.15.5',1024);
end;

procedure TAndroidModuleMaps.jTCPSocketClient1BytesReceived(Sender: TObject;
  var bytesReceived: TDynArrayOfJByte);
begin
  //is not showing this message
   ShowMessage('Received bytes');
end;





jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Android Module Wizard
« Reply #1111 on: September 29, 2018, 06:51:10 pm »

Quote
The jTCPSocketClient component does not have the TOnBytesReceived event on it,

You need to upgrade the LAMW from github!!

this event  was added 6 days ago!

added here:
"tcpsocketclient.pas"
"laz_and_controls_events.pas"
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Segator

  • Full Member
  • ***
  • Posts: 168
    • https://github.com/Nenirey
Re: Android Module Wizard
« Reply #1112 on: September 30, 2018, 02:41:38 am »
Hi jmpessoa how i can read my old sms saved in the phone with LAMW?, i see the AppSMSDemo1 and AppSMSWidgetProviderDemo1 but this only read the incoming sms and i need read all sms saved.
i am Reinier, Nenirey and Segator :) https://github.com/Nenirey

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Android Module Wizard
« Reply #1113 on: September 30, 2018, 07:50:48 pm »
@Segator

Quote
i need read all sms saved.....

Ok. I will try some solution!

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

Segator

  • Full Member
  • ***
  • Posts: 168
    • https://github.com/Nenirey
Re: Android Module Wizard
« Reply #1114 on: October 01, 2018, 02:47:33 am »
Thanks jmpessoa i appreciate it
i am Reinier, Nenirey and Segator :) https://github.com/Nenirey

abssistemas

  • New Member
  • *
  • Posts: 21
Re: Android Module Wizard
« Reply #1115 on: October 04, 2018, 01:37:16 pm »

Quote
The jTCPSocketClient component does not have the TOnBytesReceived event on it,

You need to upgrade the LAMW from github!!

this event  was added 6 days ago!

added here:
"tcpsocketclient.pas"
"laz_and_controls_events.pas"


With the lamw update o  jTCPSocketClient worked perfectly, congratulations.

I'm having a new problem with the jActionBarTab component.

It is not working on android oreo 8.0, closes the application. In sdk target 22 it works, but  26 or 27 does not.

If I run on android 7 or smaller runs smoothly.

Thank you for your effort and dedication.

abssistemas

  • New Member
  • *
  • Posts: 21
Re: Android Module Wizard
« Reply #1116 on: October 06, 2018, 05:38:56 pm »

With the lamw update o  jTCPSocketClient worked perfectly, congratulations.

I'm having a new problem with the jActionBarTab component.

It is not working on android oreo 8.0, closes the application. In sdk target 22 it works, but  26 or 27 does not.

If I run on android 7 or smaller runs smoothly.

Thank you for your effort and dedication.

Solved the problem with the jActionBarTab component using the target sdk 24 or 25.


abssistemas

  • New Member
  • *
  • Posts: 21
Re: Android Module Wizard
« Reply #1117 on: October 15, 2018, 02:35:37 pm »

With the lamw update o  jTCPSocketClient worked perfectly, congratulations.

I'm having a new problem with the jActionBarTab component.

It is not working on android oreo 8.0, closes the application. In sdk target 22 it works, but  26 or 27 does not.

If I run on android 7 or smaller runs smoothly.

Thank you for your effort and dedication.

Solved the problem with the jActionBarTab component using the target sdk 24 or 25.

Hi, jmpessoa.

What do I do to run the jActionBarTab component on sdk 26 since google play does not support sdk versions smaller than 26?

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Android Module Wizard
« Reply #1118 on: October 20, 2018, 04:14:02 am »

Hi, Segator!

There is a new "jSMSManager" component
 
and a new demo "AppSMSManagerDemo1"

Now you can read all sms inbox!

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

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Android Module Wizard
« Reply #1119 on: October 24, 2018, 12:01:09 am »
@abssistemas

Quote
What do I do to run the jActionBarTab component on sdk 26 since google play does not support sdk versions smaller than 26?

Fixed!

Please,  update the LAMW framework from github and re-install the packages:
"tfpandroidbridge_pack.lpk" and  "lazandroidwizardpack.lpk"


Thank you!
« Last Edit: October 24, 2018, 12:06:55 am by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

bobkos

  • New Member
  • *
  • Posts: 32
    • Personal Finance Manager
Re: Android Module Wizard
« Reply #1120 on: October 27, 2018, 04:12:13 pm »
@jmpessoa

Thank you for your great efforts for LAMW developing and all other contributors.
May I ask about jListView in version 0.8, (because before update it was ok), why when is in the line exist "(" or ")" it going to display as is attached one.

Thank you in advance.

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Android Module Wizard
« Reply #1121 on: October 27, 2018, 10:43:52 pm »

Hi, bobkos!

jListView has some default tokens  delimiters for line text formatation purposes...

but, you can change the defaults....

procedure TAndroidModule1.AndroidModule1JNIPrompt(Sender: TObject);
begin
  jListView1.SetLeftDelimiter('{');
  jListView1.SetRightDelimiter('}');;
end;
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

bobkos

  • New Member
  • *
  • Posts: 32
    • Personal Finance Manager
Re: Android Module Wizard
« Reply #1122 on: October 28, 2018, 02:40:33 am »
Hi, jmpessoa!

Thank you very much, now it's clear!

m4u_hoahoctro

  • Full Member
  • ***
  • Posts: 160
Re: Android Module Wizard
« Reply #1123 on: November 06, 2018, 04:33:15 am »
hi
@jmpessoa , is there someway to use MQTT in lamw ?  :)

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Android Module Wizard
« Reply #1124 on: November 06, 2018, 04:47:07 am »


Yes!

https://play.google.com/store/apps/details?id=com.abs.cell500p&hl=en
[by @abssistema]


But, I dont have a pascal implementation.  Maybe @abssistema can help you! 
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

 

TinyPortal © 2005-2018