Just wondering about Oracle's recent announcements about commercial support
for Java - should I care, does it affect CN1 apps ?
--
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's really hard to grow a company on 19USD or 79USD."
My thoughts on this, as a LWUIT/CN1 user from way back, but who does mobile
as a sideline
(1) the main issue you have in getting people to use CN1 is that the
"native" L is not actually native widgets but is CN1's best effort to
emulate
If you look at the "old" side menu screenshot, you'll see it covers about
75% of the width, so I take the meaning of that parameter to be the amount
of the underlying form you want displayed i.e. 25%.
On Thursday, May 18, 2017 at 3:32:54 PM UTC+10, Shai Almog wrote:
>
> Looking at this again
sideMenuSize[*] is set to 25 (for all 4 variations)
The side menu doesn't change size (i.e. cannot swipe it) - will only
display on menu button press
On Wednesday, May 17, 2017 at 4:08:00 PM UTC+10, Shai Almog wrote:
>
> Odd. Did you define any theme constants?
> It should respect
Tried this out, and doesn't open enough. If there some setting I need ?
My init() code:
Toolbar.setGlobalToolbar(true);
Toolbar.setOnTopSideMenu(true);
Attached are before and after screenshots.
--
You received this message because you are subscribed to the Google Groups
It's the drop shadow. Works fine without.
On Friday, February 17, 2017 at 4:54:09 PM UTC+10, Shai Almog wrote:
>
> Is it the dropshadow specifically that causes the issue or something else?
> If you just remove the dropshadow is the transition smooth?
>
> Dropshadow uses blur which might be the
This doesn't seem to have any effect:
Form hi = new Form("A form with a very, very, very long title");
hi.getTitleComponent().setAutoSizeMode(true);
not sure if it should ?
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions"
I solved it by a bit of hack, but it seems to work OK. In the attached
file, when I instantiate my Painter, I save
top = f.getTitleComponent().getPreferredSize().getHeight();
and in the paint method
if (ypos < top) return;.
On Friday, January 20, 2017 at 3:00:08 PM UTC+10, Shai Almog
I'm using a Painter to display a validation hint, similar to the example in
the API docs.
This is the code that actually paints the image:
private void paintMe(Graphics g, Component comp) {
int xpos = comp.getAbsoluteX();
int ypos = comp.getAbsoluteY();
float width
I've used code similar to this to add multiple attachments, which works well
Message m = new Message(sb.toString());
m.setMimeType(Message.MIME_TEXT);
m.getAttachments().put(filename1, "text/html");
m.getAttachments().put(filename2, "text/html");
Message.sendMessage(recipients, "subject", m);
OK - thanks Steve - I didn't think to look at Integer class.
On Friday, December 23, 2016 at 12:01:38 PM UTC+10, Steve Hannah wrote:
>
> Currently Integer doesn't implement Comparable. Its on the to do list so
> hopefully we'll have this soon. In the mean time, use the 2-arg version of
>
On Thursday, December 22, 2016 at 11:54:47 AM UTC+10, Steve Hannah wrote:
>
> You can give that a try. Usually I start a new Codename One project, and
> copy the java source files into it. Then start fixing errors as they come
> up. With something like PDF, you're likely to get in deep
Not sure I understand why it needs native code of server-side stuff.
It's just a library producing a text file, it's all Java. When I create a
CN1 app, doesn't just the byte code of my app get sent to the build server ?
In any case, I just checked the PDFJet Open Source code, and it's
I'm considering http://pdfjet.com/ to generate PDF's in Android (and other
platforms I guess).
AFAIK, the commercial version just ships the .jar file. Is this all CN1
needs to build with ?
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions"
OK, thanks.
--
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.
Visit this group at
Have this function as per the blog:
private static String getCachePath() {
String root;
if (FileSystemStorage.getInstance().hasCachesDir()) {
root = FileSystemStorage.getInstance().getCachesDir() + "blah/";
} else {
root =
Wondering if anyone has successfully managed to send HTML formatted email
from Android (using Gmail app). It seems to strip most HTML formatting (in
particular ), but leaves etc, .
I set the mime-type correctly in CN1.
This isn't a CN1 problem - Googling comes up with quite a few people
Indeed it does :)
--
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.
Visit this group at
Just wanting a suggestion on best UI approach to allow a user to delete the
currently displayed ImageViewer image. Was thinking of a FloatingButton and
querying the selectedIndex of the ListModel. Any better suggestion ?
--
You received this message because you are subscribed to the Google
Thanks for the heads up on the validation framework. Have used the source
to Validator to achieve just what I wanted.
Even though it's a battle sometimes because of the infinite flexibility,
there's always a way with CN1 !
On Monday, October 31, 2016 at 11:28:58 AM UTC+10, Shai Almog wrote:
>
The value entered in the dialog doesn't "take". If you re-edit, displays as
zero.
--
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
Is there a better way to add a tick/cross to a text field ?
Form hi = new Form("Badge");
Button chat = new Button("");
FontImage.setMaterialIcon(chat, FontImage.MATERIAL_CHAT, 7);
Label badge = new Label("33");
That's very neat - but it's a lot of hard work setting it up. I can see
this sort of thing would be very useful for edit fields to have a tick or
cross for data validation (like you see on some web sites).
On Thursday, October 27, 2016 at 12:46:07 PM UTC+10, Shai Almog wrote:
>
> See
>
I wouldn't say it's a lack of responsiveness, it's just not _as_ responsive
as the native code.
The SignatureComponent seems about the same as my component (which you'd
hope as it's exactly the same code).
It's not really an issue - on a fast, newish tablet the difference is
probably not
Forgot the code.
On Tuesday, October 11, 2016 at 10:47:47 AM UTC+10, Bryan Buchanan wrote:
>
> I've adapted the code from the SignatureComponent (see Form2.java), which
> works fine. I've also tried some native Android code -
>
>
> http://www.mysamplecode.com/2011/11/android
I've adapted the code from the SignatureComponent (see Form2.java), which
works fine. I've also tried some native Android code -
http://www.mysamplecode.com/2011/11/android-capture-signature-using-canvas.html
They both work pretty much the same, but the native Android code is
noticeably more
If I use the generic TTF sizing of "Medium" it displays fine, so I think
you are correct. I need to re-think my logic on setting font sizes.
On Sunday, October 9, 2016 at 6:17:49 AM UTC+10, Steve Hannah wrote:
>
> On your large screen are you sure that millimetres aren't just very small
>
Just wondering of anything has been done about this ?
On Saturday, September 24, 2016 at 5:16:27 PM UTC+10, Bryan Buchanan wrote:
>
> Attached is:
>
> 1. program used for testing. Note that
>
> Display.getInstance().sendMessage(new String[]{"
> bry...@webbt
I want to do the same as this Android code in CN1:
Bitmap mBitmap = Bitmap.createBitmap(mContent.getWidth(), mContent.getHeight(),
Bitmap.Config.RGB_565);
Canvas canvas = new Canvas(mBitmap);
v.draw(canvas);// draw current view to bitmap
ByteArrayOutputStream stream =
OK, I'll try that. But before I do, I need to solve a problem with
scrolling.
On the form, I have two containers, and they each set their size like this:
static final int SIZE = 25; // DIPS ~ 1mm/dip
/**
* sets size of container at top of screen
*/
class MyContainerTop
See the attached.
Initially 65 was entered, and displayed on the bottom, then 21 which also
displayed on the bottom, which pushed 65 up, etc.
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop
OK - having done a bit of research, it appears I can run my own vector tile
server:https://github.com/tilezen/vector-datasource/wiki/Mapzen-Vector-Tile-Service,
and there is an OpenGL rendering library:
https://github.com/tangrams/tangram-es
Is it feasible for me to think about using this in
In the Developer Guide, it says "The MapComponent uses a somewhat outdated
tiling API which is not as rich as modern native maps." Can you elaborate
on that, and whether it is still usable with a custom TiledProvider to use
across all platforms (Android, iOS, UWP) ?
--
You received this
1360x768, DPI set to 100% (default).
It's an Intel Compute Stick plugged in to the HDMI port of an LG TV.
--
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
I've just been looking at a Xamarin demo of 3D graphics. They've wrapped
https://urho3d.github.io/ (Urho3D) for C# -
https://developer.xamarin.com/guides/cross-platform/urho/introduction/
Is there anything similar for use with CN1 ?
--
You received this message because you are subscribed to
On Thursday, September 1, 2016 at 1:39:13 PM UTC+10, Steve Hannah wrote:
>
> Was the good build last week a debug build or a windows store build?
>
>
Debug.
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this
UWP Debug build -> works OK
UWP Store Build -> labels are incorrect
--
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
Last week.
On Thursday, September 1, 2016 at 9:28:38 AM UTC+10, Steve Hannah wrote:
>
> Strange. When was your last known good build?
>
>
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop
OK, thanks, I'll wait until the weekend.
--
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.
Visit
See attached message about precompiled.NET packages. What does it mean ?
--
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 cancelled it last night and it eventually cancelled. I re-submitted 3
hours ago and it's still in the building stage.
On Sunday, August 28, 2016 at 2:26:31 PM UTC+10, Shai Almog wrote:
>
> Cancel and resend. If this is stuck in the same "building" stage then this
> is something we need to
static final String STORAGE = "nstV3";
public void start() {
if (current != null) {
current.show();
return;
}
hi = new Form("Test");
hi.setLayout(new BoxLayout(BoxLayout.Y_AXIS));
hi.setScrollableY(true);
hi.show();
Manifest look OK:
http://schemas.microsoft.com/appx/manifest/foundation/windows10; xmlns:mp=
"http://schemas.microsoft.com/appx/2014/phone/manifest; xmlns:uap=
"http://schemas.microsoft.com/appx/manifest/uap/windows10;
IgnorableNamespaces="uap mp">
NSTPriceList
NS Timber Pty
Just tried another app which connects to a different server, and it freezes
now also, so I'm thinking there has been some regression with the new build
code.
On Saturday, August 20, 2016 at 1:05:31 PM UTC+10, Bryan Buchanan wrote:
>
> I've just tried this again, and these issue
I've just tried this again, and these issues seem to be resolved,
however
The app uses a ConnectionRequest to load info from a remote servlet. This
has worked fine on all platforms previously, and just now works fine in the
simulator. The WP10 version used to work, but the new version
These are closed. I've just updated the CN1 plugin (3.5.2), and I thought
the build server was being updated Sunday.
I've rebuilt the apps, and there appears to be no change in the behaviour.
--
You received this message because you are subscribed to the Google Groups
"CodenameOne
Well, I give up. I think that's it for me with Apple devices. Googling
turns up a heap of people with the same issue, with all manner of advice to
fix. I completely reset the device and the app still won't install. It's
unlikely to be a CN1 issue.
I have to say, *every *time I do anything with
Done.
On Tuesday, July 5, 2016 at 2:40:38 PM UTC+10, Shai Almog wrote:
>
> Can you file an issue on that?
> It's OK to include just one TTF file that's free e.g. Roboto with the test
> case.
>
--
You received this message because you are subscribed to the Google Groups
"CodenameOne
final Form hi = new Form("Fonts");
hi.setLayout(new BoxLayout(BoxLayout.Y_AXIS));
hi.setScrollableX(false);
hi.setScrollableY(true);
int[] sizes = {2, 3, 4, 6, 8};
String[] fonts = {"ArchitectsDaughter",
"Cabin-Regular",
Works if I include a ttf file with the 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 codenameone-discussions+unsubscr...@googlegroups.com.
I had a custom ListCellRendered which had
setUIID("Underline");
focus = new Label("");
focus.setUIID("UnderlineSelected");
and
@Override
public Component getListFocusComponent(List list) {
return focus;
}
so when the List item is selected the visual appearance of that item
Replying to myself - it looks like Lead Component is what is needed.
On Wednesday, June 29, 2016 at 3:39:37 PM UTC+10, Bryan Buchanan wrote:
>
> Further to this, if I add a bunch of components (each one a container with
> things layed out as per my current cell renderer), what is the e
It does:
if (Storage.getInstance().exists(part.getUrl())) {
EncodedImage myimage = EncodedImage.create((byte[]) Storage.
getInstance().readObject(part.getUrl()));
image.setIcon(myimage);
} else {
image.setIcon(blank);
}
So if I use
Have followed Steve's instructions at
https://github.com/codenameone/CodenameOne/wiki/Working-with-UWP, but no
luck in installing.
See the attached screenshots. The app doesn't display on the phone or show
under "Installed Apps" from the web page.
Any ideas ?
--
You received this message
Yes, I did that, and looks like it works (i.e. Nebeans says it's checked
for updates for CN1 at hh.mm etc), but the CN1 options don't appear in "New
Project" or right clicking on an existing project. I'll try deleting the
install (again) and starting from scratch.
On Friday, June 24, 2016 at
OK, thanks Steve. Any idea why CN1 seems to have disappeared from Netbeans ?
On Friday, June 24, 2016 at 7:36:40 AM UTC+10, Steve Hannah wrote:
>
> The windows stuff I'm adding to the guide hasn't actually been released
> yet. It will be in the next plugin update.
>
--
You received this
I was trying to test the latest Windows build stuff as per Steve's
installation guide. On my version I didn't have all the Windows build
options, so I tried to update the CN1 plugin, but it doesn't display in the
Available Plugins. I went through the alternative installation instructions
to
FYI, I created a new CN1 starter project, built it OK for Windows, but it
also silently refuses to install.
--
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
App build fine for Android target, but barfs on this error for Windows
build:
Executing: c:\Program Files\Java\jdk1.8.0_60\bin\java
-Dretrolambda.inputDir=C:\Users\Shai\AppData\Local\Temp\build1466699689663839410xxx\classes
Thanks, although I'm not too sure what else there is to do - seems like the
procedure Steve has given should work fine. Windows can obviously parse the
binary that is being installed because it displays the correct app name,
but then gives you no indication of success or failure, which is
Thanks Steve - added these hints (not sure if the syntax is correct):
codename1.arg.uwp.buildType=debug
codename1.arg.uwp.platforms=ARM
but still no joy. Is there anything I can set (apart from Field Medic which
doesn't seem to do anything) to get some debug info ?
--
You received this
61 matches
Mail list logo