Any known exisiting issues with Nougat (Android 7) and CN1?

32 views
Skip to first unread message

killerbe...@gmail.com

unread,
Mar 2, 2017, 11:10:38 PM3/2/17
to CodenameOne Discussions
I have a CN1 app on Google Play that was last built in 2014, so it has been quite a while. It is rated Android 2.1+.  Life has been pretty worry free with it over this time.

Recently I have gotten a few reports from people that have upgraded to "Nougat" (A 7) or use a Google Pixel (which I believe comes with 7 installed) that the app now starts up and goes to a black screen. I am sure CN1 code/API has moved a bit in that time but are there any current issues with Nougat that you guys are aware of?

Shai Almog

unread,
Mar 3, 2017, 2:10:32 AM3/3/17
to CodenameOne Discussions
I got some reports that some old unmaintained apps also stopped working with Android 7.
Obviously if you rebuild it then it should work fine but that might break other things as Codename One changed a lot since 2014.

killerbe...@gmail.com

unread,
Mar 4, 2017, 11:20:58 PM3/4/17
to CodenameOne Discussions
Ok Shai,  I am going to try and build it this week and will report the results for you, I do believe I have someone that currently has the old failing build on a 7 machine, and would be willing to test a new one.

thx.

killerbe...@gmail.com

unread,
Mar 9, 2017, 10:48:04 AM3/9/17
to CodenameOne Discussions
Hi Again Shai,

Just wanted to let you know I have been able to rebuild the app fairly easily and it is now being tested on an And7 device. I have also run it on 6 and will soon run it on my older test devices, but I do not anticipate any real issues I have not already seen.

So definitely an older app (mine is last compiled Feb '14) can experience graphical issues and may need to be recompiled for android 7.

For others that may encounter this same situation:

I did a new build by downloading Neon,
installing Java 8,
naming my main app the same as before in a new project
adding the rest of the code
editing the main app class (some parts are auto gen and then there is my own code - I took out the all global toolbar true call)
making sure the old theme file and graphics were in the src directory as well
setting the properties


The one real issue that seemed to come up was I was using a now deprecated class "DefaultLookAndFeel" on a derived class of checkboxes - I suspect It was causing my check boxes to be invisible (I did not use the GUI Builder for this app and was painting on my own). this seems to be an easy fix.


Thanks again, Shai.



On Friday, March 3, 2017 at 1:10:32 AM UTC-6, Shai Almog wrote:
Reply all
Reply to author
Forward
0 new messages