Recent

Author Topic: Android Module Wizard  (Read 705603 times)

renabor

  • Jr. Member
  • **
  • Posts: 73
Re: Android Module Wizard
« Reply #615 on: August 31, 2015, 06:38:24 am »
@xinyiman

Quote
...Installed API 23 for sdk is this the problem?!

You can try other  API .... I do not test API 23 ... 
[but if API 23 dropped  apache HttpClient, we have a problem!]

You are on the right path jmpessoa, org.apache.http.client was removed in API 23. It is better, xinyiman, that you target your app to API 21, just to avoid such problems

http://developer.android.com/sdk/api_diff/23/changes.html

« Last Edit: August 31, 2015, 03:35:52 pm by renabor »
FPC 3.2.2 | Lazarus 2.2.3 | Kubuntu 22.04 64bit

xinyiman

  • Hero Member
  • *****
  • Posts: 2256
    • Lazarus and Free Pascal italian community
Re: Android Module Wizard
« Reply #616 on: August 31, 2015, 12:59:44 pm »
With 21 API are able to compile correctly.
How do I configure the emulator Android?
So then release the virtual machine.
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

euller

  • New Member
  • *
  • Posts: 16
Re: Android Module Wizard
« Reply #617 on: August 31, 2015, 02:09:51 pm »
All error 11-sigsev related with my code was caused by accessing empty array or using a cursor after a malformed sql query.
Are you sure that Strings['data_a'] and Strings['data_2'] are valid and reachable?

Yes, before calling the method I've assured that I had something to retrieve, it's just to simple act of trying to retrieve, that fires the error.
The best way to find a if a tool is faulty; is to use it in a stupid way for stupid purposes

renabor

  • Jr. Member
  • **
  • Posts: 73
Re: Android Module Wizard
« Reply #618 on: August 31, 2015, 02:43:51 pm »
With 21 API are able to compile correctly.
How do I configure the emulator Android?
So then release the virtual machine.

~/Android/sdk/tools/android avd &

FPC 3.2.2 | Lazarus 2.2.3 | Kubuntu 22.04 64bit

renabor

  • Jr. Member
  • **
  • Posts: 73
Re: Android Module Wizard
« Reply #619 on: August 31, 2015, 02:44:58 pm »
All error 11-sigsev related with my code was caused by accessing empty array or using a cursor after a malformed sql query.
Are you sure that Strings['data_a'] and Strings['data_2'] are valid and reachable?

Yes, before calling the method I've assured that I had something to retrieve, it's just to simple act of trying to retrieve, that fires the error.

Other solution that I gived you worked?
FPC 3.2.2 | Lazarus 2.2.3 | Kubuntu 22.04 64bit

euller

  • New Member
  • *
  • Posts: 16
Re: Android Module Wizard
« Reply #620 on: August 31, 2015, 03:01:31 pm »
@renabor:

Nope, not even changed the output.
The best way to find a if a tool is faulty; is to use it in a stupid way for stupid purposes

xinyiman

  • Hero Member
  • *****
  • Posts: 2256
    • Lazarus and Free Pascal italian community
Re: Android Module Wizard
« Reply #621 on: August 31, 2015, 06:17:51 pm »
With 21 API are able to compile correctly.
How do I configure the emulator Android?
So then release the virtual machine.

~/Android/sdk/tools/android avd &

How set this in LAMW?!
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

euller

  • New Member
  • *
  • Posts: 16
Re: Android Module Wizard
« Reply #622 on: August 31, 2015, 09:07:06 pm »
for anyone who cares, I've created a topic to discuss my problem, because I feel that I'm sidetracking this topic with my situation, please contribute with it
The best way to find a if a tool is faulty; is to use it in a stupid way for stupid purposes

xinyiman

  • Hero Member
  • *****
  • Posts: 2256
    • Lazarus and Free Pascal italian community
Re: Android Module Wizard
« Reply #623 on: September 01, 2015, 07:26:57 am »
Hello curiosity , how come when I click twice on a component in place to create me the event editor gives me this error ?

Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

xinyiman

  • Hero Member
  • *****
  • Posts: 2256
    • Lazarus and Free Pascal italian community
Re: Android Module Wizard
« Reply #624 on: September 02, 2015, 11:32:27 am »
Solved, it was enough to re-read him the source directory of free pascal.
One more question, to find an example of the use of tested and working database where do I go?
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

simonsayz

  • New Member
  • *
  • Posts: 27
Re: FYI. don't set API = 23 until fixing the text relocations
« Reply #625 on: September 12, 2015, 05:07:56 pm »
Always Thanks.

Just Tip for using Android Module Wizard

Maybe, Android 6.0 policy will be changed.

Android 6.0 (API =23) can't loading App when has Text Relocations.
Until today, FPC generate shared library with RextREL,
So, When set API =23, App will be crashed.

Ref. http://slowbutdeadly.blogspot.kr/2015/09/javalangunsatisfiedlinkerror-dlopen.html


## Updated Information (09.18.2015) ##
svn r31739 : FPC supports the PIC
Now, FPC app works on Android 6.o (targetSDK = 23)
Thanks to Yury Sidorov


Best Regards
Simon,Choi

« Last Edit: September 17, 2015, 06:29:51 pm by simonsayz »

m4u_hoahoctro

  • Full Member
  • ***
  • Posts: 160
Re: Android Module Wizard
« Reply #626 on: September 19, 2015, 11:12:28 am »
hi all
I find in list of max target api ( menu create new project ) a list from 15 to 21
but from 22, I dont find, have lamw not support higher api yet ?

xinyiman

  • Hero Member
  • *****
  • Posts: 2256
    • Lazarus and Free Pascal italian community
Re: Android Module Wizard
« Reply #627 on: September 19, 2015, 01:12:09 pm »
Hello guys, some advice, I have to create a program that allows the inclusion of data with a component similar to a grid. Is there anything like that?

Also as a component should I use to use the tab?
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Android Module Wizard
« Reply #628 on: September 19, 2015, 07:22:18 pm »
@m4u_hoahoctro

Yes, we have some problems  with API = 23

1. jHttpClient fail!

 solution:  redesign jHttpClient code is need ....

2. FPC fail!

solution by simonsayz:

http://forum.lazarus.freepascal.org/index.php/topic,29713.0.html

@TrueTom,   

what a about a new "Laz4Android"  with FPC simonsayz patch?


@xinyiman,

There are:

 "jGridView" component and "AppGridViewDemo1"


"jActionBar" component  and "AppActionBarTabDemo1"

Please,  Upgrade demos code:

Lazarus IDE --> menu Tools --> [Lamw] Android Module Wizard --> Upgrade code Templates [*.lpr, *.java]

More info about "demos" use: "readme.txt"

Thanks to All!!!
« Last Edit: September 19, 2015, 07:24:09 pm by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

m4u_hoahoctro

  • Full Member
  • ***
  • Posts: 160
Re: Android Module Wizard
« Reply #629 on: September 20, 2015, 10:52:55 am »
@m4u_hoahoctro

Yes, we have some problems  with API = 23

1. jHttpClient fail!

 solution:  redesign jHttpClient code is need ....

2. FPC fail!

solution by simonsayz:

http://forum.lazarus.freepascal.org/index.php/topic,29713.0.html


So it means my app ( including component jhttpclient) will cant run on android M ?  :o

 

TinyPortal © 2005-2018