Android API 28

85 views
Skip to first unread message

Carlos Verdier

unread,
Jun 27, 2019, 7:42:31 AM6/27/19
to CodenameOne Discussions
Hi

Android is issuing a warning about api level 28 being mandatory in August. Will this be addressed soon? I know you are on summer vacation, that's why I'm asking.

Thanks

Kandy Bitxenio

unread,
Jun 27, 2019, 7:49:24 AM6/27/19
to CodenameOne Discussions
Hi Carlos

with this hint:

codename1.arg.android.targetSDKVersion=28

the warning on the Play Store disappears, but the App don't work on devices with Android 9 (Pie).

I think what in codenameOne must to make changes on the API 28 compiler.

Best Regards Kandy

Carlos Verdier

unread,
Jun 27, 2019, 7:53:55 AM6/27/19
to CodenameOne Discussions
Thank you , Kandy

I guess we'll have to wait then, because the hint does not entirely solve the issue.

Shai Almog

unread,
Jun 27, 2019, 11:24:47 PM6/27/19
to CodenameOne Discussions
I dropped the ball on this. I have an issue assigned to me to handle the migration before July and I got distracted.
We'll do the migration to 28 before July 28th.

Can you connect your phone to a cable and post the error messages you get under Pie?

Kandy Bitxenio

unread,
Jun 28, 2019, 4:28:10 AM6/28/19
to CodenameOne Discussions
Hi Shai

there are no errors on the console, the app start and close suddenly, if you want I can send you the apk or the source code. Send me a private contact (ka...@bitxenio.com)

Best Regards

Shai Almog

unread,
Jun 28, 2019, 11:51:45 PM6/28/19
to CodenameOne Discussions
Hi,
I see the problem. It's a bit tricky. It seems Android killed support for enlarging the clipping area which is a bit insane...

Thomas

unread,
Jun 29, 2019, 2:39:21 AM6/29/19
to CodenameOne Discussions
time to switch to a common redering engine like skia for all platforms  ;)

Steve Hannah

unread,
Jun 29, 2019, 10:06:09 AM6/29/19
to codenameone...@googlegroups.com
I see the problem. It's a bit tricky. It seems Android killed support for enlarging the clipping area which is a bit insane... 

I have some uncommitted code that complies with this clipping limitation.  I made the changes as part of some experiments to improve performance, but I didn't commit them because they didn't cause any performance improvement - and the deprecated way still worked as far as I knew.  I'll parse these changes out and commit them.

Steve

Steve Hannah

unread,
Jul 15, 2019, 1:11:38 PM7/15/19
to codenameone...@googlegroups.com
I have updated the clipping functionality to comply with the Replace.Op.REPLACE deprecation.

I have tested building and running KitchenSink using codename1.arg.android.targetSDKVersion=28 on Android Studio's Emulator running Android 9, and it is working fine.

This will be on the build server in the next update.

Best regards

Steve
--
Steve Hannah
Software Developer
Codename One

Carlos Verdier

unread,
Jul 30, 2019, 12:22:39 PM7/30/19
to CodenameOne Discussions
Hi

Is this ready? Today is the last day we can upload to Google Play with the api 27. Is this buiild hint working for Andoid 9 now?

codename1.arg.android.targetSDKVersion=28

Thanks

Steve Hannah

unread,
Jul 30, 2019, 2:17:43 PM7/30/19
to codenameone...@googlegroups.com
That should work now.

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/bfdd94d3-6ae1-40b5-af42-0d21b940f729%40googlegroups.com.

Shai Almog

unread,
Jul 30, 2019, 10:27:11 PM7/30/19
to CodenameOne Discussions
FYI this isn't necessary. Since the update on the 19th the default was API level 28 so all builds that didn't explicitly state the target API version used API level 28.

Carlos Verdier

unread,
Jul 31, 2019, 3:22:12 AM7/31/19
to CodenameOne Discussions
I didn't set any api level, but I had to build for 6.0 version, since I had a problem parsing dates, as I told on other thread.

Maybe that's the reason why I got the warning from Google store when submitting my app yesterday. I guess the default for 6.0 is api level 27. Am I right?

Shai Almog

unread,
Jul 31, 2019, 10:18:12 PM7/31/19
to CodenameOne Discussions
Yes. Versioned builds are limited to the state of the version otherwise it just wouldn't work.
Reply all
Reply to author
Forward
0 new messages