Recent

Author Topic: Android Module Wizard  (Read 705459 times)

m4u_hoahoctro

  • Full Member
  • ***
  • Posts: 160
Re: Android Module Wizard
« Reply #960 on: April 04, 2017, 05:14:37 pm »
I have problem with new version
I used code
if(AndroidModule2 = nil) then
  begin
      gApp.CreateForm(TAndroidModule2, AndroidModule2);
      AndroidModule2.Init(gApp);
  end
  else
  begin
    AndroidModule2.Show;
    androidmodule1.Finish;
  end;     

but android module 1 doesnt close, it still be there with android module 2

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Android Module Wizard
« Reply #961 on: April 05, 2017, 12:25:05 am »
Hi m4u!

We have only a screen, so we need  set the form2 background
to some  color .... [not default/transparent]

NOTE: androidmodule1.Finish not is recommendad.

About admob banner:

Good suggestion!

I will try some implementation!

Thank you!


« Last Edit: April 05, 2017, 12:32:00 am by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

m4u_hoahoctro

  • Full Member
  • ***
  • Posts: 160
Re: Android Module Wizard
« Reply #962 on: April 05, 2017, 04:26:48 am »
Hi m4u!

We have only a screen, so we need  set the form2 background
to some  color .... [not default/transparent]

NOTE: androidmodule1.Finish not is recommendad.

About admob banner:

Good suggestion!

I will try some implementation!

Thank you!

About form, in previous versions we neednt set background color to hide them and i still use this until this update. Anyway thanks much :) :)
Hope admob will be intergrated soon.

majid.ebru

  • Sr. Member
  • ****
  • Posts: 494
Re: Android Module Wizard
« Reply #963 on: April 15, 2017, 03:28:35 pm »
Hi
Mr.jmpessoa updated LAMW.
.
he added Alphta Transparent.
.
i think he forgot (maybe)?!?!
.
he Improved  jPanel and jTextView => [SetBackgroundAlpha]
.
.
thank you very much :-* :-* :-* :-* :-*

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Android Module Wizard
« Reply #964 on: April 30, 2017, 07:16:32 am »
Hi All!

There is a new LAMW revision!

Version 0.7.16 - 29 - April - 2017

   NEW! jSMSWidgetProvider component

   NEW! demo AppSMSWidgetProviderDemo1

      HINT 1: How to install widget:

         a)Run/Install the App
         b) Use BackButton to leave the App
         c) long press the home screen and select "widgets"
         d) loook for "AppSMSWidgetProviderDemo1 4x1"
         f) long press "AppSMSWidgetProviderDemo1 4x1" to install
         g) keep waiting for a "sms"
         h) has sms arrived? click the widget to re-open and hanlde the message from your App!

      HINT 2: Configure your project:

      res/layout
         smswigetlayout.xml    <<-- change [only content, NOT the file name] to configure
      res/drawable-xxxx
         smswidgetbackgroundimage.jpg  <<-- change [only content, NOT the file name]  to configure
      res/xml
         smswidgetinfo.xml   <<-- change [only content,  NOT the file name]  to configure
         

   IMPROVED! jSqliteDataAccess ["java" template all rewrited by Renabor!]
         NEW! support to pack [and automatic handle] database in "assets" folder
         NEW! support to database version-control

   NEW! demo AppSQliteDemo3  <<--- demo for "assets" support... [thanks to Renabor!]
         NOTE: how to store your pre-build database:
            ..../assets   <<--- put your database file here [default]
               ....assets/databases  <<--- OR put your file here [default, too!]
               ....assets/myCustomFolderName  <<-- ????? OR put your file here [not default!]

               if you prefere "myCustomFolderName" as folder name then call:
                  jSqliteDataAccess1.SetAssetsSearchFolder("myCustomFolderName");
                  in "OnJNIPrompt" event.                  

   UPDATED! demo AppSQliteDemo1 
   UPDATED! demo AppSQliteDemo2   


Thanks to All!

Special thanks to Renabor!
« Last Edit: April 30, 2017, 07:19:25 am by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

georgebou

  • New Member
  • *
  • Posts: 45
Re: Android Module Wizard
« Reply #965 on: April 30, 2017, 03:19:44 pm »
Thanks for the example man.

I will test it as soon as i get back to my main PC :)

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Android Module Wizard
« Reply #966 on: May 16, 2017, 06:07:25 am »

Hi All!

There is a new LAMW revision!

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

version 0.7 - rev. 17 - 14 May - 2017

   NEW! jSpeechToText component

   NEW! demo AppSpeechToTextDemo1

   Improved!
      jListView
         property "TextAlign" now works for "only text" items
      
      jSpinner: Added methods to support "hidden" tag by item         
         SetItem(_index: integer; _item: string; _strTag: string)
         Add(_item: string; _strTag: string);
         GetItemTagString(_index: integer): string
         SetItemTagString(_index: integer; _strTag: string);

   Fixed!
      jTextView/jEditText
         property "Alignment" now works for "LParamWidth = lpMatchParent"

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

Lucian Todor

  • Newbie
  • Posts: 2
Re: Android Module Wizard
« Reply #967 on: May 16, 2017, 10:50:51 am »
I've just updated the repo and rebuild the lazarus. After that, I observed that the jListView items overlaps with their image. I tried then the ListView demo and I have the same effect.

Note: I use API 17.

Further, I'm wondering, is it possible to set subtext description for each jListView item, something similar like subtitle from the action bar?
I would like to express my appreciation for this great tool. :-)

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Android Module Wizard
« Reply #968 on: May 17, 2017, 03:39:51 am »
Hello Luciantodor!

I tried some fix. Please update from github...

[Note: use the property TextAlign for  a not  overlaps layout]

Yes, it is!  just code a item as [ex]    "LAMW|Lazarus|Android" 
and use the properties TextSizeDecoreted, TextDecoreted and FontSize ... to get
the subtitles

Thank you!
« Last Edit: May 17, 2017, 03:41:23 am by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Lucian Todor

  • Newbie
  • Posts: 2
Re: Android Module Wizard
« Reply #969 on: May 17, 2017, 11:10:35 am »
The text size decoration and it's delimiter really works. Thank you for your hint and fast response.

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Android Module Wizard
« Reply #970 on: May 20, 2017, 08:35:36 am »

Hi All!

There is a new LAMW revision!

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


version 0.7 - rev. 18 - 20 May - 2017

   NEW! jModalDialog component   //<--- a suggestion by Anton (aka A.S.)!
         .ShowMessage
         .InputForActivityResult
         .QuestionForActivityResult

   NEW! demo AppModalDialogDemo1

   Improved!
      jListView
         New event "OnScrollStateChanged"  //<--- a suggestion by Anton!

   Updated
      jListViewDemo


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

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Android Module Wizard
« Reply #971 on: June 17, 2017, 06:27:57 am »

Hi All!

There is a new LAMW revision!

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

version 0.7 - rev. 19 - 16 June - 2017

   NEW! jComboEditText component  ["ComboBox" like]   

   NEW! demo AppComboEditTextDemo1

   Improved!
      jEditText
      jAutoTextView
      jListView
      jSpinner

   NEW!
      IDE Tools: Added new option "ADB Logcat"

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

majid.ebru

  • Sr. Member
  • ****
  • Posts: 494
Re: Android Module Wizard
« Reply #972 on: June 17, 2017, 02:23:56 pm »
thank you very much

lucabertoncini

  • New member
  • *
  • Posts: 7
Re: Android Module Wizard
« Reply #973 on: July 16, 2017, 11:17:57 am »
Hello JMPessoa,
first of all lamw is a wonderful work!
I’m a freepascal developer, as some of us, I need to create an Android App that interacts with my freepascal softwares. I’ve written the App using Android Studio, but I’ve some problems to understand at all the Android’s way of thinking. I’m evaluating lamw to rewrite the App with this framework. There are 2 aspects I need to investigate.

First
The App executes some HTTP Post to a https server. I use HttpsURLConnection object to post the data. The data I need to send is a JSON-string (not a Name / Value). To do this with jHttpClient, I need to access the equivalent of the output-stream as I do in Java. Is there any way to achieve this?

Second
The App is connected by a TCP socket to a server and receives or sends data in a binary way (I don’t use strings). Is it possible with jTCPSocketClient?

I don’t have enough knowledge to modify or create jObjects. If you have tutorials or documents that can explain how to create bridge objects, I will be interested to study these documents and to try to solve the problems by myself. Every help will be appreciated!

Thank you very much.

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Android Module Wizard
« Reply #974 on: July 16, 2017, 09:36:28 pm »

Hello, lucabertoncini!

Yes, jHttpClient and jTCPSocketClient can meet your requirements.. please go to
some app "demos" stuff ....

But, you can try, too, many pure freepascal FLC stuff [example:  fphttpclient ...]

If you need improve [or create] a component I can help you....
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

 

TinyPortal © 2005-2018