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 emails
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 (tha
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 disabl
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 codenameone-discus
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.
--
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 Discus
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 thi
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 Dis
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 o
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
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 r
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 i
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, se
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); }
android.activityClass
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:
android.
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() {
publ
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 post
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 Group
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
"
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 b
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
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:
https://www.codenameone.com/blog/marshmallow-perm
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 codenameone-discussions+unsubscr...@g
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 pr
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 th
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 th
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 an
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 m
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 codenameo
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 work
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
"Codenam
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
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 u
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 emai
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 codenameone-discussions+unsubscr...@goo
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
"C
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
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 thi
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 the
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 ema
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 bec
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 t
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 emai
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 subscrib
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 emai
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 exposed
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 sub
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 codenameo
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 discussion/
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, send
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 Discuss
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 codenameone-discussions+unsubscr...@googlegro
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 codenameone-discussions+unsubscr...@goog
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 codenameone-discussi
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);
t2.getAllStyles().setBgTransp
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 tha
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 this
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
"CodenameOne
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
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 f
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 codenameone-discussions+unsubscr...@googlegroups
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 r
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 disc
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, se
You need to use the form somewhere in the app e.g. in the start() method of
the main class.
--
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 codename
It will keep working, push will stop working but everything else will keep
working as usual.
--
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 codename
You can pass an instance of the Resource class if you wish. If you don't
we'll implicitly use the default one (see the default empty constructor).
Resources class includes the content of the .res file which includes the
images, themes etc.
--
You received this message because you are subscribed
Notice that the first constructor calls
this(com.codename1.ui.util.Resources.getGlobalResources());
That means it invokes the second constructor. This is called constructor
chaining, it's effectively invoking the other constructor with the global
resources.
--
You received this message becau
We automatically adjust the size of the dialogs on rotation to fit the new
proportions otherwise they might look distorted. You can disable it for
this dialog by overriding this Dialog method as a blank method:
@Override
protected void autoAdjust(int w, int h) {
}
Alternatively you can disab
Is this text area editable?
If it's editable then that's a problem. A text area is a very special
component that transitions between native and lightweight editing. As such
you would be relying on native behavior and long press is already
associated with functionality in native text editing.
If
Editing is a difficult process because we transition from lightweight to
heavyweight so text might not be in the exact same position. In the
lightweight you might click on a word which will be a different word in the
native. As I said, native editing already does things like long press and
sinc
We're trying to reproduce/resolve this 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 codenameone-discussions+unsubscr...@googlegroups.com.
T
This should be fixed in the build servers 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.
T
CSS generates a new theme.css file every time you build the project. You
can have another res file but it can't be named theme.res. You can add its
styles via theme layering as explained here:
https://www.codenameone.com/manual/advanced-theming.html
--
You received this message because you are
This very much depends on the type of shadow you created. How did you
create the shadow?
--
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-
Can you file an issue on that?
We'll have a look. Also be sure to specify an exact version of Android as
this can impact things
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails
On a border? A round or round rect border?
--
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 vi
There is no feature to control the shadow color in RoundRectBorder. I've
added a shadow color property to the RoundRectBorder class which should be
there for the weekly update.
But doing this in the UI is more challenging so if you want that you'd need
to customize it from code.
--
You receive
The value for tickerSpeedInt should be 0 not blank. Not sure how you got
that number format error.
--
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 co
I won't post about it as it's a pretty minor thing. RoundRectShadow will
just have a shadowColor(int) method after the next Friday update.
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiv
You need to set it in the spinner widget. There's a method in the
DefaultLookAndFeel class to set it globally.
--
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
You can use validation which does that automatically based on constraints:
https://www.codenameone.com/javadoc/
It can also adapt based on input styles/OS see:
https://www.codenameone.com/blog/pixel-perfect-text-input-part-2.html
--
You received this message because you are subscribed to the G
Sorry I looked at the screenshot and didn't properly read the title. That's
a validation X.
If you're using TextComponet in the onTop mode you can use action() with a
material font icon to clear the text and actionClick() to invoke
setText("").
You can implement it otherwise by using somethin
Hi,
We use gradle 4.6 so I think it should without a change but I'm not sure.
The Java 8 support in Android native isn't something that's currently
toggleable. We have an experimental flag android.java8=true but I'm not
sure if it will work correctly.
--
You received this message because you ar
Hi,
we will try to push out an update on Thursday evening. That's as soon as
reasonably possible for this fix.
As a workaround you might be able to copy the code of Tabs to a different
name in your local repository and use that just for this release.
--
You received this message because you ar
When it says that you should see a dialog somewhere on the screen to enter
your username/password. Is it possible that dialog is hidden somewhere or
blocked by software on your machine?
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group
Are you running under an environment such as headless linux where there's
no access to the GUI and the dialog can't show?
--
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 i
This seems to be a problem with their SDK. Is it meant to work with API
level 28? Maybe it needs a newer version of the build tools?
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving em
Hi,
this isn't supported in Codename One since no OS supports this officially.
Android dropped support for this recently but you might find a workaround
if you don't need Google play. In that case you'll need to write Android
native code using native interfaces:
https://www.codenameone.com/how-
Is it possible the JVM running can't reach the X server to show the dialog
and fails because of that?
--
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 best approach here is to download the sources without the changes and
try to integrate the lib into there. Then look at the changes you had to do
to the build and try to replicate them exactly in the build cloud.
--
You received this message because you are subscribed to the Google Groups
I saw another report for this. We're looking 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 codenameone-discussions+unsubscr...@googlegroups
We use something similar to this:
*.jar
nbproject/private/
/build/
nbbuild/
dist/
lib/CodenameOne_SRC.zip
/lib/impl/
/native/internal_tmp/
.cn1_css_checksums
.DS_Store
*.bak
*.xml~
Versions.properties
.cn1/
--
You received this message because you are subscribed to the Google Groups
"CodenameOn
I'm assuming there's nothing printed out to the console?
Did you update the OS/JVM?
We use the Java "Desktop" API to invoke these URLs. These APIs are pretty
flaky e.g. they don't work on Linux but unfortunately there's nothing else
we can use.
--
You received this message because you are subs
Are you using setBackCommand or something else?
--
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.
You can override calcScrollSize which is pretty low level. I wouldn't do
that. Unfortunately there's nothing standard that implements this. Maybe
you can use a WebBrowser component for this case?
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussi
You'll need to show a new dialog instance on this new form. Forms aren't
disposable.
Generally I'd advise re-thinking the UX here. Dialogs are meant to be small
interactions for OK/Cancel sort of stuff. If you have more functionality
there you should probably put it in a Form.
--
You received
Only on Android
--
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 on the w
Use the theme constant: nativeHintBool=true
--
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 v
See https://www.codenameone.com/blog/picking-dialog-type.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 codenameone-discussions+unsubscr...@goog
601 - 700 of 3232 matches
Mail list logo