Recent

Author Topic: [SOLVED] App crash on Samsung Tab3 but work on Sony  (Read 3614 times)

Adie

  • New Member
  • *
  • Posts: 13
[SOLVED] App crash on Samsung Tab3 but work on Sony
« on: November 15, 2018, 02:44:02 pm »
Hi, Im new to android programming so bear with me.  :(

I finally got the Lazarus sample compiled to APK via LAMW after trying various options on the net here https://sourceforge.net/projects/laztoapk/files/

This one finally got the sample running on the Xperia with Android 8.

My app need to run on a Samsung Tab3.  Android 4.4 but keep crashing with [AppCustomDialogDemo2 has stopped] message.

I did download SDK Android-19 and changed the setting under [Project options] [LAMW.... to 19 but still no luck.

Would appreciate if someone can tell me the API and other setting.

thanks
Adie

** edit **
Library 28 was above 19 in the lib search path

** end **
« Last Edit: November 15, 2018, 03:07:26 pm by Adie »

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: [SOLVED] App crash on Samsung Tab3 but work on Sony
« Reply #1 on: November 16, 2018, 11:06:23 pm »

 A good choice for compatibilities issues:  [for android 4.0 until 8.1]
1) NDK API <= 22   
2) MinSDk API = 14
3) Target API = 26   [required by "google play" store]
« Last Edit: November 17, 2018, 06:44:06 pm by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

CC

  • Full Member
  • ***
  • Posts: 149
Re: [SOLVED] App crash on Samsung Tab3 but work on Sony
« Reply #2 on: November 29, 2018, 04:54:35 pm »
jmpessoa,

What would be your suggestion  to include Android 9?

Adie

  • New Member
  • *
  • Posts: 13
Re: [SOLVED] App crash on Samsung Tab3 but work on Sony
« Reply #3 on: November 29, 2018, 08:07:18 pm »
I decided to stick to B4X at the moment.  It is easy but powerful so I can develop with my limited knowledge.  :(

See my other post somewhere.

Adie

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: [SOLVED] App crash on Samsung Tab3 but work on Sony
« Reply #4 on: November 29, 2018, 10:23:37 pm »
Quote
What would be your suggestion  to include Android 9?

A good choice for compatibilities issues:  [for android 4.0  until  9.0.x]
1) NDK API <= 22   [keep here, otherwise  4.x will break!]
2) MinSDk API = 14   [keep here, otherwise  4.x will break!]
3) Target API = 26   is the min required by "google play" store,
    but you can go forward to API 28 (Android 9)!
« Last Edit: November 29, 2018, 11:47:41 pm by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

CC

  • Full Member
  • ***
  • Posts: 149
Re: [SOLVED] App crash on Samsung Tab3 but work on Sony
« Reply #5 on: November 30, 2018, 01:15:19 am »
Thank you!

I may have red somewhere that only MinSDK API = 15 is suitable  for API 28.

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: [SOLVED] App crash on Samsung Tab3 but work on Sony
« Reply #6 on: November 30, 2018, 05:57:35 am »

Quote
I may have red somewhere that only MinSDK API = 15 is suitable  for API 28...

Please, test it! and confirm here!

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

CC

  • Full Member
  • ***
  • Posts: 149
Re: [SOLVED] App crash on Samsung Tab3 but work on Sony
« Reply #7 on: November 30, 2018, 11:46:57 am »
OK :)

 

TinyPortal © 2005-2018