[codenameone-discussions] Re: Cn1 still supports J2ME/blackberry?

2020-05-24 Thread Gareth Murfin
Im presuming lwuit still works if I can go back to that and avoid cn1, will give it a go. J2ME is still going in some countries believe it or not, I made some stuff for africa and phillipines not that long ago. On Monday, May 25, 2020 at 10:51:34 AM UTC+8, Gareth Murfin wrote: > > ahh

[codenameone-discussions] Re: Cn1 still supports J2ME/blackberry?

2020-05-24 Thread Gareth Murfin
ahh bugger, I dont blame you really! Holding it all back... looks like im back to my "tools" from 2000s !. I like the html/js support but I think you are charging too much for that tier personally. When I had it for free I was so loving it, I made so many cool things... Thanks Shai!.. On

[codenameone-discussions] Re: Cn1 still supports J2ME/blackberry?

2020-05-24 Thread Gareth Murfin
Also any thoughts on KaiOS? Can cn1 bujild for it? Im assuming not because it seems things are made in html5/js these days :-( On Sunday, May 24, 2020 at 11:50:20 PM UTC+8, Gareth Murfin wrote: > > Hi guys, > I might be doing a J2ME app for old school nokia/blackberry etc, does cn1

[codenameone-discussions] Cn1 still supports J2ME/blackberry?

2020-05-24 Thread Gareth Murfin
Hi guys, I might be doing a J2ME app for old school nokia/blackberry etc, does cn1 still support this? And to what level? Thanks! -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving

[codenameone-discussions] Re: Best way to reuse a container full of components

2020-05-15 Thread Gareth Murfin
actually its really easy, in gui builder make a "container" not a "form".. then you can just get it and put it inside a container in another screen, some example code Container ContainerNORTHinset = (Container)findByName("ContainerNORTHinset",f);//the place (on your current form) where you

[codenameone-discussions] Re: Exception: java.lang.ArrayIndexOutOfBoundsException - 0 ui.util.Resources.readMultiImage

2020-04-24 Thread Gareth Murfin
Hi Shai, Thanks for the help.. Theyre pngs from client, i did quick add multi images, seems ok, then i save and run my app and it gives that error. The theme does open yes, but when i go to delete unused images it hangs. Ive never touched xml team mode so I dont think its on. It works ok if I

[codenameone-discussions] Exception: java.lang.ArrayIndexOutOfBoundsException - 0 ui.util.Resources.readMultiImage

2020-04-23 Thread Gareth Murfin
For some reason when I add a multiimage using the gui editor, then run my app it crashes with the error below. It seems like there is something wrong with the image somehow, I tried resaving in photoshop but it always happens, the only way to fix it is to replace the .res with a backup one.

[codenameone-discussions] Codenameone and Unity3D

2020-04-14 Thread Gareth Murfin
Could I use codenameone to call on android code written in unity? See what I want to do is a normal cn1 app but there is a section where I need to use a camera to measure the size of someones hand, I dont think this is possible in cn1? So I thought I could develop it in unity using ar

[codenameone-discussions] Re: Scaling images fo tablet

2020-03-23 Thread Gareth Murfin
oh it did work for some images, im just a little confused really, I know tablet should maximise screens better, but icons looking tiny is weird.. ill bring them in larger and reduce them via code for phone. On Monday, March 23, 2020 at 8:03:16 PM UTC+8, Gareth Murfin wrote: > > Actually

[codenameone-discussions] Re: Scaling images fo tablet

2020-03-23 Thread Gareth Murfin
Actually I cant figure out what youre doing there.. I never call Resources.open, it seems to be done already when it comers into initVars? Do I need to do it again and pass the dpi? And why isnt there simply a version of getImage() that lets you get images from any DPI? Also it doesnt seem to

[codenameone-discussions] Re: Scaling images fo tablet

2020-03-18 Thread Gareth Murfin
Thanks guys, thats nifty! Will give it a shot. On Saturday, February 8, 2020 at 1:25:52 PM UTC+8, Shai Almog wrote: > > Normally in an app you want to better use the tablet screen not to take up > more room. I'm assuming this is for a game where the situation is a bit > different sometimes. >

[codenameone-discussions] Scrolling on Y breaks if you use createContainer

2020-03-18 Thread Gareth Murfin
Ive noticed that if I have a form with a border layout, then use createContainer to load a container, add it to the centre of the form. Then the scrolling on Y will not work in this container. If I dont use createContainer (and just add directly to the form) then the scrolling on y works. Im

[codenameone-discussions] Re: Dialog on tablet takes up full screen width as a square

2020-02-07 Thread Gareth Murfin
worked this out, its because its showing in landscape then moving to portrait due to my code. works fine in a uitimer with small delay On Friday, February 7, 2020 at 6:59:33 PM UTC+8, Gareth Murfin wrote: > > Im testign on galaxy Tab A, my dialogs are like a square the full

[codenameone-discussions] Scaling images fo tablet

2020-02-07 Thread Gareth Murfin
I just watched this https://m.youtube.com/watch?time_continue=654=sK-u1TBWFX8=emb_logo But it doesnt really explain what to do on a tablet. For example im testing now on galaxy Tab A, lots of my images are small and could take up much more of the screen. How do I deal with this without

[codenameone-discussions] Dialog on tablet takes up full screen width as a square

2020-02-07 Thread Gareth Murfin
Im testign on galaxy Tab A, my dialogs are like a square the full width of the screen, with the same height as width. So they look quite weird, how do you make a dialog look normal sized on a tablet? -- You received this message because you are subscribed to the Google Groups "CodenameOne

[codenameone-discussions] Textarea in a borderlayout scrolls too far

2020-01-12 Thread Gareth Murfin
I have a textarea in the centre of a borderlayout (its parent is also centre in another borderlayout), scrolling works fine but it goes far too far, so you can make the entire screen white. How can I stop it scrolling when the user gets to the end of the text? -- You received this message

[codenameone-discussions] Hardware back button acts slightly weird

2020-01-12 Thread Gareth Murfin
I am calling the same code when I tap hardware back on android and my own on screen back button. The on screen button works as expected but the hardware one sometimes blacks out the screen for a milli second, and I can almost see a very fast transition going on which looks a bit ugly. My own

Re: [codenameone-discussions] Re: tickerSpeedInt

2019-12-27 Thread Gareth Murfin
Won't let me set a value, can it be done from code ? Merry Xmas On Wed, Dec 25, 2019, 10:21 AM Shai Almog wrote: > 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 a topic in the

[codenameone-discussions] tickerSpeedInt

2019-12-23 Thread Gareth Murfin
in the old editor I cant seem to set a value for tickerSpeedInt, hence im getting (well I think thats why) java.lang.NumberFormatException - For input string: "" I just want to turn off tickering for a multibutton, any way around this? -- You received this message because you are subscribed

[codenameone-discussions] Re: Bluetooth library leaves app on white screen when it turns on bluetooth

2019-12-05 Thread Gareth Murfin
othConnect); } } }).schedule(1000, false, f); On Thursday, December 5, 2019 at 7:27:31 PM UTC+8, Gareth Murfin wrote: > > The Bluetooth library leaves app on white screen when it turns on > bluetooth, there seems to be no way to get around this, I need to quit app >

[codenameone-discussions] Bluetooth library leaves app on white screen when it turns on bluetooth

2019-12-05 Thread Gareth Murfin
The Bluetooth library leaves app on white screen when it turns on bluetooth, there seems to be no way to get around this, I need to quit app and reload to get past it. Has anyone managed to get around this? -- You received this message because you are subscribed to the Google Groups

[codenameone-discussions] Sidemenu affected by canvas movement

2019-11-18 Thread Gareth Murfin
My toolbar sidemenu behaves very stranger when im on a custom written canvas, the painting of the menu moves along with some stuff that moves on my canvas (I have an arrow going up and down and this affects the side menu making it move up and down too) is there a way to fix this? -- You

[codenameone-discussions] error 400 signup on amazon / cognito

2019-10-22 Thread Gareth Murfin
Im trying to sign up on cogniti on amazon like this https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SignUp.html I think im submitting everything right, plus headers and content type but I get a reponse Unhandled error code: 400 for

[codenameone-discussions] How to use sources?

2019-10-05 Thread Gareth Murfin
In the old days I could tick include sources, and then load the project in Android Studio.. that doest seem to work anymore. So what are the exact steps to actually loading a project in AS? I really need to debug some native code :-/ -- You received this message because you are subscribed to

[codenameone-discussions] Re: Can't stack custom component in grid layout

2019-10-04 Thread Gareth Murfin
Seems to be caused by the components themselves reporting their own size as wrong.. I thought they would report the width and height of the space availale to them based on the layout theyre added to. On Friday, October 4, 2019 at 5:48:52 PM UTC+1, Gareth Murfin wrote: > > So I have

[codenameone-discussions] Can't stack custom component in grid layout

2019-10-04 Thread Gareth Murfin
So I have a grid layout 2x2, and if I add buttons, they stack as expected. For example myGrid.add(new Button("AAA")); myGrid.add(new Button("AAA")); myGrid.add(new Button("AAA")); myGrid.add(new Button("AAA")); Adds 4 buttons which sit in each of the cells as expected. But when I try this with

[codenameone-discussions] Black text on statusbar?

2019-10-01 Thread Gareth Murfin
On Android can you se the text in the status bar to be black? Im using yellow for the status bar and white is hard to see, I tried this but it stays white, im presuming colorAccent is the text/clock colour etc? I tried ff00 and but it seems it's still white. #ffFBD532

[codenameone-discussions] Viewpager

2019-09-30 Thread Gareth Murfin
Is there anything like the viewpager in cn1? Would be cool to have an example project for it. Thanks, Gareth -- 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

Re: [codenameone-discussions] Can't assign value '${codename1.version}' to attribute version

2019-09-19 Thread Gareth Murfin
OK it seems codenameone_settings.properties was overwritten somehow.. it was much smaller, I copied one from my backup and things work fine now!.. not quite sure why that would happen. On Thursday, September 19, 2019 at 8:46:24 PM UTC+1, Gareth Murfin wrote: > > Thanks Steve, though

Re: [codenameone-discussions] Can't assign value '${codename1.version}' to attribute version

2019-09-19 Thread Gareth Murfin
, Gareth Murfin wrote: > > Thanks Steve, though I have not changed the version number at all, it is > still 1.0 in the settings. > > Now if I try to run in netbeans I am getting errors too.. (all of this > came out of the blue, I think perhaps I sent a build to server while one &g

Re: [codenameone-discussions] Can't assign value '${codename1.version}' to attribute version

2019-09-19 Thread Gareth Murfin
koverflow.com/a/50940047 > > On Thu, Sep 19, 2019 at 11:14 AM Gareth Murfin > wrote: > >> Everything was working fine, but suddenly now when I send Android build I >> get this error, any ideas? >> >> C:\Users\Gaz\Documents\hobmonitor-app_v2_bitbucket\codenameonePr

[codenameone-discussions] Re: Build failed (trying to use a .aar)

2019-09-19 Thread Gareth Murfin
thanks shai, I just wrote the code i needed in a standalone android studio project then copied it into my native interface so its ok now. On Thursday, September 19, 2019 at 3:20:44 AM UTC+1, Shai Almog wrote: > > Make sure to use Gradle 4.6 and define it in intellij as explained there. > Try

[codenameone-discussions] Can't assign value '${codename1.version}' to attribute version

2019-09-19 Thread Gareth Murfin
Everything was working fine, but suddenly now when I send Android build I get this error, any ideas? C:\Users\Gaz\Documents\hobmonitor-app_v2_bitbucket\codenameoneProject\build.xml:346: Can't assign value '${codename1.version}' to attribute version, reason: class

[codenameone-discussions] Re: Build failed (trying to use a .aar)

2019-09-18 Thread Gareth Murfin
Resolution Outcome: Project settings: Gradle model version=1.12, NDK version is UNKNOWN On Wednesday, September 18, 2019 at 2:58:31 PM UTC+1, Gareth Murfin wrote: > > Thanks Shai, which bit in particular? this? android.enableAapt2=false > > Similar error: > Could not determine the class

[codenameone-discussions] Re: Build failed (trying to use a .aar)

2019-09-18 Thread Gareth Murfin
Thanks Shai, which bit in particular? this? android.enableAapt2=false Similar error: Could not determine the class-path for class org.jetbrains.plugins.gradle.model.ProjectImportAction. going to try upgrading AS. On Wednesday, September 18, 2019 at 3:51:05 AM UTC+1, Shai Almog wrote: > > Try

[codenameone-discussions] Re: Build failed (trying to use a .aar)

2019-09-17 Thread Gareth Murfin
google play? seems to be on 27. None of this would matter if I could test the .arr in the project but I cannot compile, and anything I type is considered "OK" by Android Studio. ANy ideas how I get a proper working AS project? On Tuesday, September 17, 2019 at 6:03:05 PM UTC+1, Gareth Mu

[codenameone-discussions] Re: Build failed (trying to use a .aar)

2019-09-17 Thread Gareth Murfin
Ohhh yes.. thanks again Shai, great support. On Tuesday, September 17, 2019 at 6:34:06 AM UTC+1, Shai Almog wrote: > > 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

[codenameone-discussions] Re: javax.net.ssl.SSLHandshakeException

2019-09-16 Thread Gareth Murfin
On Monday, September 16, 2019 at 5:26:13 PM UTC+1, Mohamed Bouichou wrote: > > Hi, > i'm trying to communicate with an API published in a remote server using > https protocol, the https certificate is installed in the server but still > i get this error whenever i call the server from the

[codenameone-discussions] Re: Build failed (trying to use a .aar)

2019-09-16 Thread Gareth Murfin
Thanks Shai, it compiles fine now, but I cant work out how to call the code. The .aar contains a class called "AlgorithmCWrapper" but I cannot seem to import it (ive done a cn1lib refresh).. the interface in the c looks like below... So I expected to be able to do AlgorithmCWrapper cwrap = new

[codenameone-discussions] Build failed (trying to use a .aar)

2019-09-10 Thread Gareth Murfin
Hi guys, I am trying to use a .aar for the first time and Im getting build failed. I think this is the error: Merging result: ERROR /tmp/build8355134923580384042xxx/MyApplication/src/main/AndroidManifest.xml:15:17-46 Error: Attribute application@label value=(HobMonitor_V1) from

[codenameone-discussions] Re: Cipher classes..

2019-09-05 Thread Gareth Murfin
Thanks Shai! What a great community!!.. On Thursday, September 5, 2019 at 3:35:28 AM UTC+1, Shai Almog wrote: > > No. > But there's a community member who implemented this already: > https://github.com/jsfan3/SHA-Codename-One > -- You received this message because you are subscribed to the

[codenameone-discussions] Cipher classes..

2019-09-04 Thread Gareth Murfin
Im trying to convert this code to CN1, is there any equivalent to Cipher and MessageDigest classes? public static byte[] decrypt(bytes[] key, byte[] bytesToDecrypt) { try { Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5PADDING"); int blockSize =

[codenameone-discussions] Re: Codename on settings window wont appear

2019-09-04 Thread Gareth Murfin
Took some time to figure out, it was appearing offscreen! fix is: For Windows 10 in order to use the old move the window with the cursor keys trick you need to have the Shift key pressed when you open the context menu from the Task bar. On Thursday, August 29, 2019 at 3:37:41 AM UTC+1, Shai

Re: [codenameone-discussions] Re: Bluetooth library refuses to connect to anything

2019-08-30 Thread Gareth Murfin
Yes, I got it working by adjusting that one line my fix is listed here https://github.com/chen-fishbein/bluetoothle-codenameone/issues/13 On Thursday, August 29, 2019 at 3:21:23 PM UTC+1, Gareth Murfin wrote: > > Seems like the lib should pass BluetoothDevice.TRANSPORT_LE here ? > Blue

Re: [codenameone-discussions] Re: NoSuchMethodError No Direct Method

2019-08-29 Thread Gareth Murfin
That's confusing. Weirdly I was trying to make a change to the bluetooth lib but then when I try to use it I get the same error. about missing method etc...once i compile it. hair tearing madness. On Thursday, August 29, 2019 at 3:36:12 AM UTC+1, Shai Almog wrote: > > Notice that there is more

Re: [codenameone-discussions] Re: Bluetooth library refuses to connect to anything

2019-08-29 Thread Gareth Murfin
Seems like the lib should pass BluetoothDevice.TRANSPORT_LE here ? BluetoothGatt bluetoothGatt = device.connectGatt(cordova.getActivity().getApplicationContext(), false, bluetoothGattCallback); On Thursday, August 29, 2019 at 2:51:21 PM UTC+1, Gareth Murfin wrote: > > Painful indeed, it

Re: [codenameone-discussions] Re: Bluetooth library refuses to connect to anything

2019-08-29 Thread Gareth Murfin
. Or maybe my phone isnt supported (samsung s7, android 8).. On Thursday, August 29, 2019 at 1:44:04 PM UTC+1, Gareth Murfin wrote: > > thanks Shai, this is a bluetooth LE device, is there something specific I > need to do to connect? rather than just calling connect() ? > > On T

Re: [codenameone-discussions] Re: Bluetooth library refuses to connect to anything

2019-08-29 Thread Gareth Murfin
sgid/codenameone-discussions/fac02c23-34aa-4d9c-b26d-fbbf8de5ca85%40googlegroups.com > <https://groups.google.com/d/msgid/codenameone-discussions/fac02c23-34aa-4d9c-b26d-fbbf8de5ca85%40googlegroups.com?utm_medium=email_source=footer> > . > -- Gareth Murfin (Android Freelancer -

[codenameone-discussions] Re: java.io.IOException: Bluetooth not initialized

2019-08-28 Thread Gareth Murfin
Did you ever get the callback for connect() to work? Doesnt work here, this library seems very flakey.. On Wednesday, August 28, 2019 at 8:21:48 PM UTC+1, Gareth Murfin wrote: > > Still more issues, connecting I always get "Device previously connected, > reconnect or close

[codenameone-discussions] Re: java.io.IOException: Bluetooth not initialized

2019-08-28 Thread Gareth Murfin
Wednesday, August 28, 2019 at 6:33:54 PM UTC+1, Gareth Murfin wrote: > > Oh I see! Yes it seems to work, location is a weird permission to need, > and I wonder why it doesnt prompt for it when it requests permission. > Thanks again. > > On Wednesday, August 28, 2019 at 6:07:53 PM

[codenameone-discussions] Re: java.io.IOException: Bluetooth not initialized

2019-08-28 Thread Gareth Murfin
Oh I see! Yes it seems to work, location is a weird permission to need, and I wonder why it doesnt prompt for it when it requests permission. Thanks again. On Wednesday, August 28, 2019 at 6:07:53 PM UTC+1, Kandy Bitxenio wrote: > > Hi Garet, you need to activate the location on Android, se the

Re: [codenameone-discussions] Re: java.io.IOException: Bluetooth not initialized

2019-08-28 Thread Gareth Murfin
who knows whats going on this bluetooth library is terrible. issue described here. https://github.com/chen-fishbein/bluetoothle-codenameone/issues/11 On Wed, 28 Aug 2019 at 16:54, Gareth Murfin wrote: > hmmm now im getting android errors, im presuming these need to be set as > build

[codenameone-discussions] Re: Codename on settings window wont appear

2019-08-28 Thread Gareth Murfin
Is there any way to launch it from command line so I can check for errors? I really need to add some build hints to get the bluetooth going etc. On Wednesday, August 28, 2019 at 1:31:30 PM UTC+1, Gareth Murfin wrote: > > yes, win10, java 1.8.0_101-b13... > > On Wednesday, August 28,

[codenameone-discussions] Re: java.io.IOException: Bluetooth not initialized

2019-08-28 Thread Gareth Murfin
, 2019 at 12:25:12 AM UTC+1, Gareth Murfin wrote: > > Getting this error with the bluetooth lib on Android (samsung s7 - > Android 8.0) > > W/System.err: java.io.IOException: Bluetooth not initialized > W/System.err: at com.codename1.cordova.Cordova.execute(Cordova.java:

Re: [codenameone-discussions] Re: java.io.IOException: Bluetooth not initialized

2019-08-28 Thread Gareth Murfin
Thanks Kandy! Your libraries worked perfectly for me. Much appreciated! No idea why mine didnt work!!.. Thanks again, let me know if you ever need any help in return. On Wed, 28 Aug 2019 at 15:30, Gareth Murfin wrote: > Thanks very much! Grabbing the libs now, but my internet is poor..

[codenameone-discussions] Re: java.io.IOException: Bluetooth not initialized

2019-08-28 Thread Gareth Murfin
www.dropbox.com/sh/d652hpn11bowq0s/AAA-jEVH3WRv-1sueCOReuQ5a?dl=0 > > My project is copied from: > > https://github.com/chen-fishbein/bluetoothle-codenameone/tree/master/BTDemo > > Best Regards > > El miércoles, 28 de agosto de 2019, 15:37:51 (UTC+2), Gareth Murfin > escri

[codenameone-discussions] Re: java.io.IOException: Bluetooth not initialized

2019-08-28 Thread Gareth Murfin
well I think so.. my libs dir is shown below, anything else required? ModeLastWriteTime Length Name - -- d- 28/08/2019 14:03impl -a 27/08/2019 20:462264815 CLDC11.jar

Re: [codenameone-discussions] Re: NoSuchMethodError No Direct Method

2019-08-28 Thread Gareth Murfin
ttps://www.codenameone.com/manual/advanced-topics.html#_libraries_cn1lib > > Best Regards Kandy > > > > El miércoles, 28 de agosto de 2019, 15:06:03 (UTC+2), Gareth Murfin > escribió: >> >> Thanks very much for your reply Kandy. >> >> They look similar (though)

[codenameone-discussions] Re: NoSuchMethodError No Direct Method

2019-08-28 Thread Gareth Murfin
CN1JSON.ver > -rw-rw-rw- 1 user group 6129031 Jul 8 12:36 CodenameOne.jar > -rw-rw-rw- 1 user group10695991 Jul 8 12:36 CodenameOne_SRC.zip > drwxrwxrwx 1 user group 0 Jul 3 20:47 impl > > > > Best Regards Kandy > > El miércoles, 28 de

[codenameone-discussions] Re: NoSuchMethodError No Direct Method

2019-08-28 Thread Gareth Murfin
Im starting a contract today coding bluetooth in codenameone, so hopefully someone can help in some way!! On Wednesday, August 28, 2019 at 12:35:31 AM UTC+1, Gareth Murfin wrote: > > actually on the device im still getting the error, im very confused right > now, any thoughts?? >

[codenameone-discussions] Re: Codename on settings window wont appear

2019-08-28 Thread Gareth Murfin
yes, win10, java 1.8.0_101-b13... On Wednesday, August 28, 2019 at 6:11:57 AM UTC+1, Shai Almog wrote: > > Do you mean Codename One Settings? > On which OS/JVM? > -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from

[codenameone-discussions] Codename on settings window wont appear

2019-08-27 Thread Gareth Murfin
FOr some reason the settings window only appears in the task bar, I cannot maximise it.. any thoughts? -- 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

[codenameone-discussions] Re: NoSuchMethodError No Direct Method

2019-08-27 Thread Gareth Murfin
in /data/app/com.pippa.hobmonitor-i555BGum4BjW27o1gIXtCQ==/base.apk) On Tuesday, August 27, 2019 at 10:13:24 PM UTC+1, Gareth Murfin wrote: > > Seems like it should be due to no json lib, but its there, then I realised > it was only 30k somehow soI grabbed it from here > > https://github.

[codenameone-discussions] Re: java.io.IOException: Bluetooth not initialized

2019-08-27 Thread Gareth Murfin
-i555BGum4BjW27o1gIXtCQ==/base.apk) On Wednesday, August 28, 2019 at 12:25:12 AM UTC+1, Gareth Murfin wrote: > > Getting this error with the bluetooth lib on Android (samsung s7 - > Android 8.0) > > W/System.err: java.io.IOException: Bluetooth not initialized > W/System.err:

[codenameone-discussions] java.io.IOException: Bluetooth not initialized

2019-08-27 Thread Gareth Murfin
Getting this error with the bluetooth lib on Android (samsung s7 - Android 8.0) W/System.err: java.io.IOException: Bluetooth not initialized W/System.err: at com.codename1.cordova.Cordova.execute(Cordova.java:33) W/System.err: at

[codenameone-discussions] Re: NoSuchMethodError No Direct Method

2019-08-27 Thread Gareth Murfin
.json.JSONObject; ) , even after doing refresh cn1 libs. I cannot work out whats going wrong ive used the json lib hundreds of times with no issue. On Tuesday, August 27, 2019 at 9:30:11 PM UTC+1, Gareth Murfin wrote: > > I compiled and sent this project to the server > https://github.com/chen

[codenameone-discussions] NoSuchMethodError No Direct Method

2019-08-27 Thread Gareth Murfin
I compiled and sent this project to the server https://github.com/chen-fishbein/bluetoothle-codenameone/tree/master/BTDemo It runs fine but when I tap "initialise" I get this error "no such method error, no direct method java/util/map in class ca/weblite/codename1/json/JSonObject Any ideas?

[codenameone-discussions] Bluetooth encryption

2019-07-31 Thread Gareth Murfin
Does the cn1 bluetooth lib support encryption? For example to stop another unauthorised user nearby connecting and seeing the data? Whats the best way to avoid this? -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe

[codenameone-discussions] How to use JNI in cn1?

2019-07-31 Thread Gareth Murfin
I have a client who wants an Android app done, they have some stuff written in native C/NDK, so their files are .so and belong in "jniLibs" - they want me to make an app which will utilise this. Assuming I want to use this in CN1, how do I go about it? And more importantly, is it possible to

[codenameone-discussions] Render animation to mp4?

2019-07-10 Thread Gareth Murfin
Hi, Ive made a canvas app that includes some animation of a photograph, its all done using code and done in paint(). I would like to save the animation out for the purpose of sharing on facebook. Whats the easiest way to do this? Im assuming I should write each frame to an image, then

[codenameone-discussions] Any voip support?

2019-07-01 Thread Gareth Murfin
Does CN1 have any way to make voip calls from within an app? Would it be feasible to launch skype from cn1, if not ? Also my client wants to "scan documents" from this app, is there any document scanning support for cn1? if not would it be feasible to launch an external app to do this? I

[codenameone-discussions] Re: Dump to binary file

2019-04-19 Thread Gareth Murfin
actually unzip and parse takes only 3 seconds on my device! so might be just fine! On Friday, April 19, 2019 at 8:31:15 PM UTC+8, Gareth Murfin wrote: > > Im not sure exactly what I want here, but basically I have to read in a > .txt file with 164,000 entries, each line needs to

[codenameone-discussions] Dump to binary file

2019-04-19 Thread Gareth Murfin
Im not sure exactly what I want here, but basically I have to read in a .txt file with 164,000 entries, each line needs to be string-tokenized. So the code is easy but it obviously takes a lng time to do this in Java on a phone or desktop even. So I was wondering is there some other way to

[codenameone-discussions] Re: NFC lib?

2019-04-03 Thread Gareth Murfin
Haha, do you remember the *hell *I went through last time making the AerServ lib? ALMOST KILLED ME :) But yes, I will write an NFC lib, I will call it CN1NFC, and I will release it on my github... so hopefully everyone can use it. I think the hardest bit of the whole thing was simply not

[codenameone-discussions] Re: How to get xcode proj?

2019-04-02 Thread Gareth Murfin
Sorry it worked, i forgot to save ! On Tuesday, April 2, 2019 at 6:26:44 PM UTC+8, Gareth Murfin wrote: > > I ticked include sources but i dont see the xcode project anywhere? where > is it meant to be ? > -- You received this message because you are subscribed to the G

[codenameone-discussions] NFC lib?

2019-04-02 Thread Gareth Murfin
Client needs NFC, can codenameone do this yet? or is it a case of making a native lib? -- 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] How to get xcode proj?

2019-04-02 Thread Gareth Murfin
I ticked include sources but i dont see the xcode project anywhere? where is it meant to be ? -- 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] Re: Downloading image to label automatically

2019-03-29 Thread Gareth Murfin
No I didnt do anything like that, just ordinary usage. Is there an event when the image is downloaded I can tap into to try and do it there? As for url as name, doesnt seem to matter, this only fails the very first time it is downloaded, from then on since it exists its set right away. On

[codenameone-discussions] Re: Date parsing different on iOS?

2019-03-29 Thread Gareth Murfin
im assuming the week begins on a sunday in java, if so all good, i remember seeing that once on my casio watch but never again :) On Friday, March 29, 2019 at 7:42:06 PM UTC+8, Gareth Murfin wrote: > > So yeah I was substringing date.toString, not a good idea. I changed it to >

[codenameone-discussions] Re: Date parsing different on iOS?

2019-03-29 Thread Gareth Murfin
reak; case 8: monthName="Sep";break; case 9: monthName="Oct";break; case 10: monthName="Nov";break; case 11: monthName="Dec";break; } _("MONTH ->"+monthName); monthNumber=

[codenameone-discussions] Date parsing different on iOS?

2019-03-29 Thread Gareth Murfin
this code runs fine on android and emulator from my test it produces: "dateTodayS: Fri Aug 31, dayName: Fri monthName: Aug, dayDate: 31, monthNumber:08", but on real ios it produces: "dateTodayS: August 31, dayName: Aug monthName: st, dayDate: 1, monthNumber:08", I realise its just parsing

Re: [codenameone-discussions] MediaPlayer on ios

2019-03-29 Thread Gareth Murfin
Though one thing ive noticed is that behind the video (presumably where it doesnt fit due to ratio or whatever) there is a black background, I need this to be white, is there any way? On Friday, March 29, 2019 at 5:57:48 PM UTC+8, Gareth Murfin wrote: > > Sorry!! turns out somehow my p

Re: [codenameone-discussions] MediaPlayer on ios

2019-03-29 Thread Gareth Murfin
Sorry!! turns out somehow my prepare line was commented out! It does work perfectly. Thanks. Also setting it to invisible just before transition stops the jerk.. awesome! now if only i could fix my status bar on ios On Friday, March 29, 2019 at 5:20:13 PM UTC+8, Gareth Murfin wrote: > >

[codenameone-discussions] Re: Status bar on ios flashes white during transition

2019-03-29 Thread Gareth Murfin
Well, thats a difficult question to answer because im not sure what you mean, well im not sure what the white bar is in the first place. My form is a borderlayout, inside "contentpane" I have NORTH, CENTRE, SOUTH, but im presuming that is not relevant. So looking at component inspector I have

Re: [codenameone-discussions] MediaPlayer on ios

2019-03-29 Thread Gareth Murfin
Thu, Mar 28, 2019 at 9:40 AM Gareth Murfin > wrote: > >> Ive noticed when I leave a screen with the media player on it briefly >> flashes black, is there some way to stop this? like do I need to release it >> before I swap forms or something? >> >> On

Re: [codenameone-discussions] MediaPlayer on ios

2019-03-28 Thread Gareth Murfin
Ive noticed when I leave a screen with the media player on it briefly flashes black, is there some way to stop this? like do I need to release it before I swap forms or something? On Monday, March 11, 2019 at 7:17:59 PM UTC+8, Gareth Murfin wrote: > > thanks steve, will give it a go... r

[codenameone-discussions] Re: Status bar on ios flashes white during transition

2019-03-28 Thread Gareth Murfin
Yes, you can see during the transition the top turns white, before and after its fine. https://www.dropbox.com/s/kb3t35q4o5le65c/Snap%202019-03-29%20at%2000.30.50.png?dl=0 On Saturday, March 9, 2019 at 1:09:24 PM UTC+8, Shai Almog wrote: > > Can you get a screenshot of the problem? > -- You

[codenameone-discussions] Downloading image to label automatically

2019-03-28 Thread Gareth Murfin
I want to be able to download an image and then have it appear in the label automatically when its ready, so Im using this: setIconOnMe.setIcon(URLImage.createToStorage(placeHolder, url, url, URLImage.RESIZE_SCALE)); but it doesnt seem to set the image when it comes in? It works fine if I

[codenameone-discussions] Re: Cache a form?

2019-03-28 Thread Gareth Murfin
Thanks, I tried to cache some forms but it didnt seem to keep the complete form. For example once I have set up the UI and then populated it, I call this in postShow(): cachedForm=getCurrentForm(); then if I come back to the form I do if (cachedForm!=null) {

[codenameone-discussions] Re: Delete unused images (old editor)

2019-03-26 Thread Gareth Murfin
why impractical? anyway i whipped up a java app to put all code into StateMachine.java temporarily then I can remove unused images then restore StateMachine.java :) thanks. On Wednesday, March 6, 2019 at 12:00:16 PM UTC+8, Shai Almog wrote: > > No. We try not to scan anymore. It's impractical

[codenameone-discussions] Finding centre point of an arc?

2019-03-26 Thread Gareth Murfin
I realise this is not strictly a codenameone question but I have been stuck for so long I thought I would ask. I am drawing a pie chart using drawArc(), and I want to draw the percentage text in the middle of the arc. But, how do I find that x,y point? Is there any way I can use other methods

Re: [codenameone-discussions] Does compilation remove "empty" methods?

2019-03-20 Thread Gareth Murfin
whoops i meant if (1==2) { _("hello");//this surely would be redundant code and removed? doSomeWork();//this surely would be redundant code and removed? } On Wednesday, March 20, 2019 at 10:24:01 PM UTC+8, Gareth Murfin wrote: > > Thanks for the answer. Oh shame, I thought prog

[codenameone-discussions] Does compilation remove "empty" methods?

2019-03-20 Thread Gareth Murfin
So I always make a method like this: //for printing private static void _(String s) { if (Prefs.DEBUG) { com.codename1.io.Log.p(Prefs.ANSI_GREEN+"StateMachine "+s); } } then when it comes to release I set Prefs.DEBUG (which is final) to false,

Re: [codenameone-discussions] MediaPlayer on ios

2019-03-11 Thread Gareth Murfin
you enable autoplay, this should >> work around it for now. There will be a fix soon. >> >> On Fri, Mar 8, 2019 at 12:08 AM Gareth Murfin > > wrote: >> >>> on ios my mediaplayer is just black, no controls or frames.. works fine >>> on android/simulato

[codenameone-discussions] MediaPlayer on ios

2019-03-08 Thread Gareth Murfin
on ios my mediaplayer is just black, no controls or frames.. works fine on android/simulator - 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

[codenameone-discussions] Re: Status bar on ios flashes white during transition

2019-03-08 Thread Gareth Murfin
I tried styling StatusBar with zero padding/margin to see if it would help but it still flashes, any ideas? On Thursday, February 28, 2019 at 11:11:32 AM UTC+8, Shai Almog wrote: > > The StatusBar UIID in the designer/css... > That only applies to native Android devices. > -- You received this

[codenameone-discussions] Delete unused images (old editor)

2019-03-05 Thread Gareth Murfin
I see when you go to delete used images the editor must scan StateMachine these days too, which is great, but ive just refactored a ton of logic into their on class for each screen, now delete unused images doesnt scan them files. Its a long shot but wondering if theres a way to make it scan

[codenameone-discussions] Cache a form?

2019-03-05 Thread Gareth Murfin
The set up time for some of my screens takes almost 1 second, so app seems unresponsive, I was wondering, is there any way to cache a form? So it doesnt have to "build" every time, and do all my logic? Can we store a finished form and use that to speed up the app? I guess in a way this is

[codenameone-discussions] Testflight

2019-02-27 Thread Gareth Murfin
I cant find much about testflight on cn1, is it just the testflight build hint ? ios.testFlight=true , and then submit it as a beta build on appstore connect? And is it available on the basic account? -- You received this message because you are subscribed to the Google Groups "CodenameOne

[codenameone-discussions] How to reliably add custom components?

2019-02-25 Thread Gareth Murfin
Ive made a pie chart that draws on canvas, when I add this it doesnt appear, I have only managed to find one way to get it working in a test form but as soon as I add other things to the form it seems to stop displaying. Is there anything special I need to do to get my custom component

  1   2   3   4   5   >