You asked how to sort an array but you're sorting an ArrayList which is a
list.
You do that with Collections.sort().
--
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,
Did you change your classpath?
--
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-discussions+unsubscr...@googlegroups.com.
To view this
I just tried this on the latest intellij and it worked for me. Are you sure
the code just isn't implicitly collapsed/hidden which is the default
behavior for our GUI code?
Can you paste the Java source generated here and look in the intellij log
to see if there's anything of interest?
--
You
What's the content of the GUI java file that you see?
--
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
Did you follow the signin tutorial here:
https://www.codenameone.com/manual/misc-features.html
None of this code is necessary.
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails
It seems the class doesn't support quoting. You can file an issue about
that and we'll look into it.
--
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
We don't expose that API because it would be a bit of a pain to manager.
You can just add a components into the map and group them accordingly in a
map. Then remove/add a group based on its overlay layer.
--
You received this message because you are subscribed to the Google Groups
OK,
please file an issue and make sure to reference that you believe this is a
regression. It might be an errant revalidate that's breaking the animation
here.
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from
I'm not sure why it causes it but there's a bug in the code and when you
fix it the animation works.
You forgot f.setScrollable(false). Since a form is scrollable by default
you should disable that for tabs. With BorderLayout this is implicitly
turned off so we don't need to explicitly write
Hi,
this works for me:
Form hi = new Form("Tabs", new BorderLayout());
Tabs t = new Tabs();
Label t1 = new Label("Blue");
t1.getAllStyles().setBgColor(0xff);
t1.getAllStyles().setBgTransparency(255);
Label t2 = new Label("Green");
t2.getAllStyles().setBgColor(0xff00);
Thanks, we pushed out another fix hopefully it resolves this issue for
everyone.
--
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
Hi,
not at this time. You'll need to edit it on launch.
--
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
Please check again now. We just uploaded a fix for the issue.
--
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
Use the component inspector to see which elements take up the space.
Placing something in the south gives it the preferred size so that might
not match your expectations of filling up the parent.
--
You received this message because you are subscribed to the Google Groups
"CodenameOne
Migrating the code to OSM is possible even without a server but no one did
it and we're flooded with other tasks.
--
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,
There seems to be an issue with the hack we did to resolve a regression
with iOS 13 based on this stackoverflow answer:
https://stackoverflow.com/a/56776561/756809
Following answers seem to offer better solutions which we should adopt.
Please file an issue and provide a link to this
Put the button in the center if you want it to occupy all available space
in the container.
--
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
The simulator uses the Windows sharing API implicitly because you're
running on the OS and file requests to that OS are translated
automatically. However, Android/iOS might not offer such a capability so
it's unlikely that such a URL will work.
--
You received this message because you are
Hi,
the map was disabled a while back because of google imposed limits to usage
of its API keys. In the past you could create a free maps API key but this
is no longer the case. You need billing in the project and could be
charged. Because of the nature of the project the key needs to be
Hi,
if the phone is connected via VPN already you might be able to use the file
chooser cn1lib to pick a file from that directory.
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving
Hi,
a black screen is usually an indication of an exception. The native thread
makes sense, try to wrap your native code in the android native event
dispatch thread as explained here:
https://www.codenameone.com/blog/tip-use-native-edt.html
--
You received this message because you are
How are you drawing on the canvas?
Are you taking the parent X/Y into account?
Do you have a sample of how your paint method looks?
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving
If you just invoke the brightness native interface in the beginning of the
start() method in your main class doesn't that work correctly?
If not I'm not really sure, it's low level native Android behavior I
haven't personally touched.
--
You received this message because you are subscribed to
Hi,
onDestroy()/onResume() will never be invoked in your code. They are methods
of activity which you don't derive (and shouldn't derive).
You can detect suspend/resume via stop()/start() methods of the main class
and re-activate the brightness code in start().
--
You received this message
We support 3 separate QR libraries.
Is this a question about embedding the zxing library into Codename One?
--
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
Hi,
what's the stack of the error?
I wouldn't call a class "MenuBar" as we have a public Codename One class
with that exact name and imports might be problematic here...
I also wouldn't use commands for that. Most of the menus with the buttons
in the bottom are really just tabs so for 90% of
Hi,
is this related to Codename One?
--
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-discussions+unsubscr...@googlegroups.com.
To view
See my reply here:
https://stackoverflow.com/questions/58869443/codename-one-push-notification-meet-error-javax-net-ssl-sslhandshakeexception/58869666#58869666
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this
OK, assuming you're up to date with the latest cn1lib I suggest you file an
issue. There might be a regression with anchor positioning.
You can file an issue here:
https://github.com/codenameone/CodenameOne/issues/
--
You received this message because you are subscribed to the Google Groups
Is this behaving the same way in the simulator and the device?
--
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
Where did you get the marker options object from and what's the stack of
the NullPointerException you got?
--
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
Try adding the anchor with a null image, maybe this is an issue with the
image.
You can also use the MarkerOptions version of the addMarker API which lets
you set an anchor point.
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To
Hi,
I don't follow that. Did you specify the anchor? Can you provide
code/screenshots to illustrate?
--
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
Hi,
just use a null anchor UI and show a custom UI in the click event e.g.
using InteractionDialog or by adding a component to the map
https://www.codenameone.com/blog/map-component-positioning-revisited.html
--
You received this message because you are subscribed to the Google Groups
No. Native interfaces don't extend activity and it shouldn't work. It's a
different lifecycle.
Native interfaces are objects we create. An activity is something the OS
needs to create. These are very different things. We create the native
CodenameOneActivity and provide you various tools to
Unfortunately that isn't practical as we create/discard these fields
dynamically as needed.
--
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
I'm guessing this has something to do with code like this:
(Exception e) {}
If you catch and swallow exceptions things will fail.
You can import the native utils but only in the native code. It doesn't
exist in the Codename One space classes only for native compilation.
--
You received this
I'm afraid we can't debug your code for you. We rarely even do that for
enterprise accounts.
I suggest adding logging and trying to pinpoint the issue.
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group
If your device is an Android 5 device then the previous code might have
worked as it predates the Android 6 update. Still I haven't tried this
myself so I'm not sure what could happen there. I suggest connecting a
cable and looking through logcat logs. You can also debug on Android Studio
if
I didn't explain this properly... I'm not above "hacking a solution". This
isn't that case.
Codename One doesn't create an Android resource file and doesn't use one
normally. So these fields/files just don't exist for a Codename One
application.
In order to get this you would have to build
Using these is problematic from Codename One. There are build hints to
inject these things but they generally don't work too well.
In this case it looks like the library is expecting an Android text
field/password field. Those are problematic as we only have a native field
during the editing
This looks related to re-signing the framework, Steve any ideas?
--
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
It looks like you're working with really old Android samples. You need to
make sure your native code works on a modern device, it's very possible
this is no longer accessible to the app.
Modern Android devices require runtime permissions too see:
Yes but under a swipeable container for words as short as "edit"?
There's no decent alternative that will work which is why I asked for an
issue to track this.
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this
That's illegal according to Apple. If you intend this strictly for testing
purposes you can have up to 100 people you explicitly list within your
account (annually). With that amount of people your time will be better
spent just sending out an upgrade link email.
--
You received this message
Can you file an issue on that?
Why are you using a span button instead of Button here?
Essentially lead components are a bit trickier in some edge cases such as
this as their event propagation is a bit more nuanced.
--
You received this message because you are subscribed to the Google Groups
Hi,
we don't have an API for that. You can probably use native interfaces to do
that but it's not something apps normally do as it's normally controlled by
device sensors.
Are you just trying to disable the screensaver?
--
You received this message because you are subscribed to the Google
We can help with those things privately only on enterprise accounts.
Otherwise it's community support so we give the same support but it's for
everyone so if someone runs into a similar problem he can benefit from
reading the discussion around it.
If you have a specific build error you can
Great!
You can submit this as a cn1lib which will make it easier for people to
edit/work with.
FYI you're deriving from CodenameOneActiivity and trying to override
onResume et. al.
That won't work. What you should use is
AndroidNativeUtil.addLifecycleListener(new LifecycleListener() {
Play services isn't a dep you should add that way. It's a special case.
You can customize the play services version using the build hint:
android.playServicesVersion notice that you should be careful as not all
versions are supported.
To include location you need to add the build hint:
We'll add the build hint android.activityClassBody for the next update this
Friday. It will let you define something like:
android.activityClassBody=public boolean
dispatchTouchEvent(android.view.MotionEvent ev) { myCodeThatINeed();
return super.dispatchTouchEvent(ev); }
Look in the Network Monitor and see the response. It usually includes the
full error even for error code responses.
--
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,
This probably relates to this:
https://github.com/codenameone/CodenameOne/issues/2747
We'll try to push out the fix soon.
--
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
Do you mean try/catch?
That should work just log the exception e.g.:
catch(Throwable t) {
Log.e(t);
}
instead of
catch(Throwable t) {}
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop
Everything you write to Log.p/e is logged. There is also native logging.
You can use Log.sendLogAync() in the pro accounts you can also use this:
https://www.codenameone.com/blog/native-logging-certificate-wizard.html for
all account levels.
You can also connect your Android device with a cable
This was resolved 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-discussions+unsubscr...@googlegroups.com.
To view this discussion
Our hosting provider is conducting some emergency maintenance soon which
might cause service disruption of up to 60 minutes. This is being resolved
and our services will be up and running soon enough!
--
You received this message because you are subscribed to the Google Groups
"CodenameOne
Hi,
thanks!
I think I see the problem here, I fixed it in this commit:
https://github.com/codenameone/CodenameOne/commit/3fc47e5fc2e65ea5de6eee6f2a2cb1fdaf0cea18
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from
Grid layout asks components for their preferred size and takes the
preferred size of the largest components then uses that to construct a
grid. TableLayout might be more appropriate for your needs.
--
You received this message because you are subscribed to the Google Groups
"CodenameOne
That's unlikely. If you invoke setText() it should implicitly repaint the
button, it's possible there was an exception somewhere or some other
problem but it's probably unrelated to the screensaver. It might be related
to you overriding paint or blocking the EDT somewhere else in the code.
--
Sorry about this, we had a regression in today's update which should be
fixed 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
Hi,
the fact that you have enough power doesn't matter. OS's kill processes
that take too much CPU without permission because they want to conserve
power. That's the OS policy. When you do stuff in the background you can't
do anything you want.
If you're running in the foreground you can
Background execution is hard core for mobile. Native platforms make it hard
on purpose because you're essentially running all the time and "wasting
battery" so they don't really want you to do that.
When the app is in the foreground you can get location constantly using the
LocationManager
These colors come from the Android native theme not from our colors. We
don't provide a way to customize them beyond light/dark.
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving
Did you look at the "Location in the Background" section in the developer
guide?
https://www.codenameone.com/manual/misc-features.html
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving
Tabs are pretty close but not identical.
--
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-discussions+unsubscr...@googlegroups.com.
To
I answered this here:
https://stackoverflow.com/questions/58165252/floorplan-with-gps-location-markers/58177795#58177795
--
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
You'd still need a certificate for that.
@Date that has no bearing on his question. See macincloud.com we have the
capability of automating that stage of submission too but we haven't gotten
around to it.
--
You received this message because you are subscribed to the Google Groups
Hi,
what's printed to the devices logcat.
--
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-discussions+unsubscr...@googlegroups.com.
To
You DO need that account. We generate a certificate through the official
apple tool chain. We don't circumvent their security/signing process.
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop
Hi,
all Codename One apps are signed with an Apple id. You don't need a mac for
this process. We have macs in the cloud that handle that.
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop
I answered this here:
https://stackoverflow.com/questions/58116650/ios-wkwebview-does-not-work-with-mailto-link-or-tel-link/58126586#58126586
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop
FYI Steve committed a fix yesterday and we deployed it shortly after so
things should work by 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
Steve committed a fix. It will be in the build servers within an hour.
--
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
We're dong our best to resolve this asap. We will push a hotfix once we're
able to resolve the issue.
There are often issues when Apple or Google upgrade their respective OS's,
this is true for apps written to the native SDK as well as tools such as
ours.
--
You received this message because
Hi,
We're investigating this and will get back to you. If required we'll push a
hotfix during the week.
--
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
Make sure to use Gradle 4.6 and define it in intellij as explained there.
Try using AS 3.2 which should generally work.
--
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
Does this exact behavior happen in the device and the simulator?
Are you seeing the JavaScript maps or the native SDK maps when running on
the device?
When you generated the keys is it possible you restricted them in any way?
--
You received this message because you are subscribed to the Google
Try this:
https://www.codenameone.com/blog/tip-include-source-android-studio-3.html
--
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
What certificate are you using on the server and whats the version of the
JDK you're using locally?
--
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
It won't import in the IDE but it should work when you compile in the build
cloud. The best way to get this working is send a build with include source
and edit the native class in Android Studio then copy/paste the code from
there.
--
You received this message because you are subscribed to
Hi,
no.
The physical limitation is the screen size/finger size and those won't
change ;-)
Even on Tablets which resolved some of the screen size limits the screen is
still smaller and the UI elements need to be "finger friendly". So you
should stick in more details but not nearly as much as
Hi,
you can have a 2 week trial of the pro account for free. It's the default
when you subscribe for the monthly account.
We plan to offer a free push quota for trying in a future update but we
don't have an ETA on that.
--
You received this message because you are subscribed to the Google
There's no real advantage. Each approach moves the cost differently. If the
background thread is long running then split tasks might fit into different
EDT "beats" but that would be random.
Calls will remain "in order" when executed though.
Just make sure to minimize the "heavy lifting" on
Sorry I see that fix it should be there. We'll need a fresh link to the
error log.
--
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
I'm not sure that fix made it. I don't see it in build daemon.
He's talking about the keystore password for the certificate.
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails
They don't actually change the images, it's just a rendering bug. If you
click the themes again you'll see all the constants back to normal.
I find that we need to take complex swing/desktop UI's and break them down
to more forms when moving from desktop to mobile.
--
You received this
We don't provide support for that. If it doesn't work you're on your own
--
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
Here are our instructions for integrating push
https://www.codenameone.com/manual/push.html
--
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
That's just a bug in this old UI. Click the theme again and select the
constants tab it should have the right value.
--
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,
It's hard to tell with a large app but notice that overflow is a separate
form. It might still work but when the overflow menu is shown the current
form isn't active anymore. Call serially might not be enough since you
would have a transition of showing/hiding the overflow menu.
Another
AFAIK we sign as part of the gradle process so it should zipalign
correctly. I think this might be related to the API level 28 migration. Try
building for 26 to debug locally and see if the problem goes away. If so we
need to check how the native libraries were impacted by 28.
--
You received
But do you execute it when the form is already visible after the transition?
--
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
These look like you changed the entire theme and not just that constant. What
did you do exactly?
--
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
You typed mpiTabMeta in the search, could that search have hidden it?
I only see one image here.
--
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
Hi,
you can use android.xapplication_attr to inject attributes into the
application tag.
--
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
It's a boolean which means you need to check/uncheck the box to set it to
false.
--
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
Try setting the theme constant tabsGridBool to false.
--
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
Your question was closed by moderators on stackoverflow. Not us.
Generally the site is designed for properly phrased questions and you wrote
something that was both vague and an RFE both of which are outside its
domain.
I nominated the question for reopening but this would require votes from
Hi,
you can use push notification to send updates from your app.
--
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
801 - 900 of 2677 matches
Mail list logo