[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 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 Monday, May 25, 2020 at 9:53:41 AM UTC+8, Shai Almog wrote:
>>
>> Hi,
>> we deprecated and removed support for both a few years ago.
>> We support HTML/JS in the enterprise tier.
>>
>

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/eee594af-58ae-4e57-9d42-e10385151a4c%40googlegroups.com.


[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 Monday, May 25, 2020 at 9:53:41 AM UTC+8, Shai Almog wrote:
>
> Hi,
> we deprecated and removed support for both a few years ago.
> We support HTML/JS in the enterprise tier.
>

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/2a55bd34-52b4-4e47-a93b-af88ecc0f451%40googlegroups.com.


[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 
> 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 emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/df134f43-805e-4a6e-a327-f3d6806d367d%40googlegroups.com.


[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 emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/efb1f839-0bb0-4556-a9c9-d717cde22a20%40googlegroups.com.


[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 want to add your reusable container
ContainerNORTHinset.removeAll();//make sure its empty
Container IncludeStudentLifeHeaderSelectTerm  =  
(Container)createContainer(r, "IncludeStudentLifeHeaderSelectTerm"); //HERE 
you instance your container

ContainerNORTHinset.add(BorderLayout.CENTER,IncludeStudentLifeHeaderSelectTerm);//add
 
it to the form

viola, u may also sometimes need

 f.revalidate();

On Friday, May 15, 2020 at 11:19:08 PM UTC+8, Jaanus Kiipli wrote:
>
> Sorry for stupid question, but how to do that? is there a way to embed 
> container using the GUIBuilder or should I fiddle in the xml files manually 
> or in the java code or how?
>
> On Tuesday, October 22, 2013 at 10:05:47 PM UTC+3, Rikard Lindgren wrote:
>>
>> Not sure if this is what you are looking for, but you can use the Embed 
>> Container to achieve something similar to what you are asking for.
>> The Embed Container let´s you embed another GUI Element. So in your case 
>> i would create the Header and Footer as separate GUI elements and then use 
>> the Embed Container to add them to each page.
>>
>

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/730be7ea-c4f5-484f-bc98-0af66cb3f2cf%40googlegroups.com.


[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 dont use multi images and just add image normally using 
"add images"..

Image dimensions are 1080x865, I tried resizing to 1080x864 (in photoshop) 
to be multiple of 8 but it didnt help. In add multi images I tried various 
different source resolutions but it still happened. 


On Friday, April 24, 2020 at 2:36:53 PM UTC+8, Shai Almog wrote:
>
> How did you edit the multi image?
> Does the theme open in the designer tool?
> Is XML team mode on?
> Does it open with it off?
>

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/75d2a74e-63f5-423d-a5ae-486bb384fff5%40googlegroups.com.


[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. 
Any ideas whats going on ?


java.lang.ArrayIndexOutOfBoundsException: 0
[EDT] 0:0:1,420 - Exception: java.lang.ArrayIndexOutOfBoundsException - 0
at com.codename1.ui.util.Resources.readMultiImage(Resources.java:1099)
at com.codename1.ui.util.Resources.readMultiImage(Resources.java:1072)
at com.codename1.ui.util.Resources.createImage(Resources.java:1054)
at com.codename1.ui.util.Resources.createImage(Resources.java:964)
at com.codename1.ui.util.Resources.openFileImpl(Resources.java:309)
at com.codename1.ui.util.Resources.openFile(Resources.java:272)
at com.codename1.ui.util.Resources.(Resources.java:192)
at com.codename1.ui.util.Resources.open(Resources.java:743)
at com.codename1.ui.util.Resources.openLayered(Resources.java:705)
at com.codename1.ui.util.Resources.openLayered(Resources.java:669)
at generated.StateMachineBase.startApp(StateMachineBase.java:57)
at generated.StateMachineBase.(StateMachineBase.java:31)
at generated.StateMachineBase.(StateMachineBase.java:120)
at userclasses.StateMachine.(StateMachine.java:73)
at com.pippa.hobmonitor.MyApplication.start(MyApplication.java:49)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.codename1.impl.javase.Executor$3$1.run(Executor.java:261)
at com.codename1.ui.Display.processSerialCalls(Display.java:1303)
at com.codename1.ui.Display.mainEDTLoop(Display.java:1097)
at com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:120)
at com.codename1.impl.CodenameOneThread.run(CodenameOneThread.java:176)
java.io.IOException: 0
at com.codename1.ui.util.Resources.open(Resources.java:758)
at com.codename1.ui.util.Resources.openLayered(Resources.java:705)
at com.codename1.ui.util.Resources.openLayered(Resources.java:669)
at generated.StateMachineBase.startApp(StateMachineBase.java:57)
at generated.StateMachineBase.(StateMachineBase.java:31)
at generated.StateMachineBase.(StateMachineBase.java:120)
at userclasses.StateMachine.(StateMachine.java:73)
at com.pippa.hobmonitor.MyApplication.start(MyApplication.java:49)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.codename1.impl.javase.Executor$3$1.run(Executor.java:261)
at com.codename1.ui.Display.processSerialCalls(Display.java:1303)
at com.codename1.ui.Display.mainEDTLoop(Display.java:1097)
at com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:120)
at com.codename1.impl.CodenameOneThread.run(CodenameOneThread.java:176)
java.lang.NullPointerException
at generated.StateMachineBase.initTheme(StateMachineBase.java:110)
at generated.StateMachineBase.startApp(StateMachineBase.java:61)
at generated.StateMachineBase.(StateMachineBase.java:31)
at generated.StateMachineBase.(StateMachineBase.java:120)
at userclasses.StateMachine.(StateMachine.java:73)
at com.pippa.hobmonitor.MyApplication.start(MyApplication.java:49)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.codename1.impl.javase.Executor$3$1.run(Executor.java:261)
at com.codename1.ui.Display.processSerialCalls(Display.java:1303)
at com.codename1.ui.Display.mainEDTLoop(Display.java:1097)
at com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:120)
at com.codename1.impl.CodenameOneThread.run(CodenameOneThread.java:176)
Java Result: 1

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/08c1f4fc-da39-4a98-8558-02358a86eeef%40googlegroups.com.


[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 
foundation, then set up an interface and call it from cn1 somehow, almost 
just like an intent on android? 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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/a2d13d76-0751-408a-b0c0-4b6848db174b%40googlegroups.com.


[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 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 work for me, no matter what I call it always gives 
> me back the same images:
>
> example inside initVars I do
>
> res= Resources.open("/theme.res", Display.DENSITY_LOW);
>
> or 
>
> res= Resources.open("/theme.res", Display.DENSITY_2HD);
>
> but the images still look identical?
>
> I expected them to be different sizes?
>
>
> 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. 
>> See the cn1pocker demo. It includes this:
>>
>> 
>> UIManager.getInstance().setThemeProps(theme.getTheme(theme.getThemeResourceNames()[0]));
>> cards = Resources.open("/gamedata.res", calculateDPI());
>>
>> Notice we give the target DPI explicitly which lets you determine the DPI 
>> you want on the given 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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/4efb1254-4431-489e-a9f5-3a1c27a053b5%40googlegroups.com.


[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 work for me, no matter what I call it always gives 
me back the same images:

example inside initVars I do

res= Resources.open("/theme.res", Display.DENSITY_LOW);

or 

res= Resources.open("/theme.res", Display.DENSITY_2HD);

but the images still look identical?

I expected them to be different sizes?


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. 
> See the cn1pocker demo. It includes this:
>
> 
> UIManager.getInstance().setThemeProps(theme.getTheme(theme.getThemeResourceNames()[0]));
> cards = Resources.open("/gamedata.res", calculateDPI());
>
> Notice we give the target DPI explicitly which lets you determine the DPI 
> you want on the given 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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/389db72a-af3c-4d71-b3d8-5c76b5cbeadf%40googlegroups.com.


[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. 
> See the cn1pocker demo. It includes this:
>
> 
> UIManager.getInstance().setThemeProps(theme.getTheme(theme.getThemeResourceNames()[0]));
> cards = Resources.open("/gamedata.res", calculateDPI());
>
> Notice we give the target DPI explicitly which lets you determine the DPI 
> you want on the given 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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/f13e3e3e-3ffc-4a87-96ba-1652d5e56820%40googlegroups.com.


[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 presuming this is a bug, any work around?

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/b5548334-e02d-417d-ad75-9cd6143760fe%40googlegroups.com.


[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 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 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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/a002e626-0362-461a-a775-bdfa33994962%40googlegroups.com.


[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 breaking all the sizes 
etc on the mobile where it already looks perfect? 
For now im doing if (isTablet()) and then calling scaledLargerRatio on the 
images (*2), this works but im wondering if it is bad practise? 

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/9e07f88e-1333-47b0-966a-72116e469ea0%40googlegroups.com.


[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 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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/16fbf468-7454-436e-acd1-e9cd942fabb8%40googlegroups.com.


[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 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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/a3717a5d-aae5-4f11-a3f6-0fdca42f73fe%40googlegroups.com.


[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 
on screen back button doesnt do that, is there something I can tweak to 
make them behave identically?

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/43ee11f2-5dbe-4f45-bc32-400a35b7b651%40googlegroups.com.


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
> Google Groups "CodenameOne Discussions" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/codenameone-discussions/HHi4Nt7MHtI/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/0225e092-dd6b-4a5e-8e9d-fd2b2a0587b2%40googlegroups.com
> 
> .
>

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CANOaY6%3DZjCQFhqL0tmcHJ-No0U2%2BS10V43d%3DDTytui5YkSB_KQ%40mail.gmail.com.


[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 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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/97c2e94b-8fe4-4a3a-aaae-fa442f2d17b1%40googlegroups.com.


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

2019-12-05 Thread Gareth Murfin
 uitimer fixes it!.. 


new UITimer(new Runnable() { //use this to fix the bug where it 
goes to a white screen when initialised.
public void run()
{   
if (USE_BLUETOOTH)
{
_("# kicking off the bluetooth party! a #");
//we want to show a dialog spinning while this 
happens,
//its already doing that from the form we made in 
the ui builder
startBluetooth(HobIncludeBluetoothConnect);
}
}
}).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 
> 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" 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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/0e3e9bca-a925-4f5a-beb3-f2c9640065d7%40googlegroups.com.


[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" 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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/f6ee88b8-e10a-471a-8138-e2a4ae413840%40googlegroups.com.


[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 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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/ab46d283-5b58-4464-a27a-5ee9d200c11b%40googlegroups.com.


[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 
https://cognito-idp.eu-west-1.amazonaws.com

is there a way to get a better error message? I 
tried r.setReadResponseForErrors(true) with no difference. it looks like 
there is a list of better errors they throw 
like CodeDeliveryFailureException etc, but how do i get which one it is?

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/7488f3a8-1327-42e3-8ba1-b139581006c2%40googlegroups.com.


[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 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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/e5f4f349-7129-4232-ad95-29b4a8d38c5a%40googlegroups.com.


[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 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 my own custom component (with its own canvas) 
> then they dont stack into each cell, they seem to paint over the top of 
> each other.  ie if I add 4, they all sit in cell 0,0 (painting over the top 
> of each other) which is weird, because I have done this before and it did 
> work perfectly. But I cant work out why.. Hopefully that is explained 
> properly, any ideas what I am doing wrong?
>

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/dbf9530b-6954-430e-9c5b-63a3c64a18f4%40googlegroups.com.


[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 my own custom component (with its own canvas) then 
they dont stack into each cell, they seem to paint over the top of each 
other.  ie if I add 4, they all sit in cell 0,0 (painting over the top of 
each other) which is weird, because I have done this before and it did work 
perfectly. But I cant work out why.. Hopefully that is explained properly, 
any ideas what I am doing wrong?

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/f3f05ac7-6a8f-457f-b71d-806067aef96d%40googlegroups.com.


[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
   #ffFBD532
   #


-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/b4405780-4867-446b-8df5-6501e4fe415c%40googlegroups.com.


[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 email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/255ecc4c-3d3f-4ecb-ad24-50046e8515c8%40googlegroups.com.


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 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 
> was still cleaning?)
>
> Compile is forcing compliance to the supported API's/features for maximum 
> device compatibility. This allows smaller
> code size and wider device support
> compile:
> run:
> java.lang.ClassNotFoundException: 
> ${codename1.packageName}.${codename1.mainName}
> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> at java.lang.ClassLoader.findSystemClass(ClassLoader.java:1001)
> at 
> com.codename1.impl.javase.ClassPathLoader.findClass(ClassPathLoader.java:105)
> at 
> com.codename1.impl.javase.ClassPathLoader.loadClass(ClassPathLoader.java:55)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:264)
> at com.codename1.impl.javase.Executor$3.run(Executor.java:217)
> at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
> at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
> at java.awt.EventQueue.access$500(EventQueue.java:97)
> at java.awt.EventQueue$3.run(EventQueue.java:709)
> at java.awt.EventQueue$3.run(EventQueue.java:703)
> at java.security.AccessController.doPrivileged(Native Method)
> at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
> at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
> at 
> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
> at 
> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
> at 
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
> at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
>
> On Thursday, September 19, 2019 at 7:27:01 PM UTC+1, Steve Hannah wrote:
>>
>> Probably your app version number is not in a valid format.  Needs to be a 
>> decimal number.  
>> 1.01 == OK
>> 1.0.1 == NOT OK
>>
>> See this SO answer for more:
>> https://stackoverflow.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\codenameoneProject\build.xml:346:
>>>  
>>> Can't assign value '${codename1.version}' to attribute version, reason: 
>>> class java.lang.NumberFormatException with message 'For input string: 
>>> "${codename1.version}"'
>>>
>>> -- 
>>> 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 web visit 
>>> https://groups.google.com/d/msgid/codenameone-discussions/73e8f47e-cf75-431f-8fc3-c1358a3a47e8%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/codenameone-discussions/73e8f47e-cf75-431f-8fc3-c1358a3a47e8%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>>
>>
>> -- 
>> Steve Hannah
>> Software Developer
>> Codename One
>> http://www.codenameone.com
>>
>

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/bc369dde-f318-43a2-a6a6-18ee5c74683c%40googlegroups.com.


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

2019-09-19 Thread Gareth Murfin
Looks like something has got corrupted, title, packagename, main class, all 
of that is gone.. android signing etc , all my codenameone settings are 
gone. I should have back ups, which files should I copy back? bit of a 
disaster really!..

On Thursday, September 19, 2019 at 8:46:24 PM UTC+1, 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 
> was still cleaning?)
>
> Compile is forcing compliance to the supported API's/features for maximum 
> device compatibility. This allows smaller
> code size and wider device support
> compile:
> run:
> java.lang.ClassNotFoundException: 
> ${codename1.packageName}.${codename1.mainName}
> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> at java.lang.ClassLoader.findSystemClass(ClassLoader.java:1001)
> at 
> com.codename1.impl.javase.ClassPathLoader.findClass(ClassPathLoader.java:105)
> at 
> com.codename1.impl.javase.ClassPathLoader.loadClass(ClassPathLoader.java:55)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:264)
> at com.codename1.impl.javase.Executor$3.run(Executor.java:217)
> at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
> at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
> at java.awt.EventQueue.access$500(EventQueue.java:97)
> at java.awt.EventQueue$3.run(EventQueue.java:709)
> at java.awt.EventQueue$3.run(EventQueue.java:703)
> at java.security.AccessController.doPrivileged(Native Method)
> at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
> at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
> at 
> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
> at 
> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
> at 
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
> at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
>
> On Thursday, September 19, 2019 at 7:27:01 PM UTC+1, Steve Hannah wrote:
>>
>> Probably your app version number is not in a valid format.  Needs to be a 
>> decimal number.  
>> 1.01 == OK
>> 1.0.1 == NOT OK
>>
>> See this SO answer for more:
>> https://stackoverflow.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\codenameoneProject\build.xml:346:
>>>  
>>> Can't assign value '${codename1.version}' to attribute version, reason: 
>>> class java.lang.NumberFormatException with message 'For input string: 
>>> "${codename1.version}"'
>>>
>>> -- 
>>> 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 web visit 
>>> https://groups.google.com/d/msgid/codenameone-discussions/73e8f47e-cf75-431f-8fc3-c1358a3a47e8%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/codenameone-discussions/73e8f47e-cf75-431f-8fc3-c1358a3a47e8%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>>
>>
>> -- 
>> Steve Hannah
>> Software Developer
>> Codename One
>> http://www.codenameone.com
>>
>

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/1053463a-ea4d-4bc3-ba4c-1b0e278076cc%40googlegroups.com.


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

2019-09-19 Thread Gareth Murfin
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 was 
still cleaning?)

Compile is forcing compliance to the supported API's/features for maximum 
device compatibility. This allows smaller
code size and wider device support
compile:
run:
java.lang.ClassNotFoundException: 
${codename1.packageName}.${codename1.mainName}
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.findSystemClass(ClassLoader.java:1001)
at 
com.codename1.impl.javase.ClassPathLoader.findClass(ClassPathLoader.java:105)
at 
com.codename1.impl.javase.ClassPathLoader.loadClass(ClassPathLoader.java:55)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at com.codename1.impl.javase.Executor$3.run(Executor.java:217)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at 
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at 
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at 
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

On Thursday, September 19, 2019 at 7:27:01 PM UTC+1, Steve Hannah wrote:
>
> Probably your app version number is not in a valid format.  Needs to be a 
> decimal number.  
> 1.01 == OK
> 1.0.1 == NOT OK
>
> See this SO answer for more:
> https://stackoverflow.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\codenameoneProject\build.xml:346:
>>  
>> Can't assign value '${codename1.version}' to attribute version, reason: 
>> class java.lang.NumberFormatException with message 'For input string: 
>> "${codename1.version}"'
>>
>> -- 
>> 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 web visit 
>> https://groups.google.com/d/msgid/codenameone-discussions/73e8f47e-cf75-431f-8fc3-c1358a3a47e8%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/codenameone-discussions/73e8f47e-cf75-431f-8fc3-c1358a3a47e8%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>
>
> -- 
> Steve Hannah
> Software Developer
> Codename One
> http://www.codenameone.com
>

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/081fcd7b-a810-4156-8c31-471fd079b7ad%40googlegroups.com.


[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 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 it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/ac898a8f-5179-456e-9210-c6f48355c23a%40googlegroups.com.


[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 java.lang.NumberFormatException with message 'For input string: 
"${codename1.version}"'

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/73e8f47e-cf75-431f-8fc3-c1358a3a47e8%40googlegroups.com.


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

2019-09-18 Thread Gareth Murfin
Upgrading did no good still getting errors. 

15:31 Gradle sync started with IDEA sync

15:31 Gradle sync failed: Could not determine the class-path for class 
org.jetbrains.plugins.gradle.model.ProjectImportAction.
Consult IDE log for more details (Help | Show Log) (11 s 72 ms)

15:31 NDK 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-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 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 codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/5e6e0b4d-7bfd-4c32-a38a-2dbe8130c03f%40googlegroups.com.


[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 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 codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/0a4ff4b8-42e0-4ef3-b9b9-c70df5d6700b%40googlegroups.com.


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

2019-09-17 Thread Gareth Murfin

There seems to be issues with the Android Studios project:

ERROR: Could not determine the class-path for class 
com.android.tools.idea.gradle.project.sync.ng.SyncAction.

And after cleaning and trying again I keep seeing

Build script error, unsupported Gradle DSL method found: 'google()'!

Possible causes could be:  
  - you are using Gradle version where the method is absent (Fix Gradle 
settings)
  - you didn't apply Gradle plugin which provides the method (Apply Gradle 
plugin)
  - or there is a mistake in a build script (Goto source)
Open File


FInally shouldnt it use SDK28 foro 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 Murfin wrote:
>
> 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 class in Android Studio then copy/paste the code 
>> from there.
>>
>

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/8ffab400-9e9e-4979-8272-e3881d0e1b44%40googlegroups.com.


[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 class in Android Studio then copy/paste the code 
> from there.
>

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/77891e71-d608-452e-8988-fed3af6742aa%40googlegroups.com.


[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 simulator or the APK :
>
> "Exception: javax.net.ssl.SSLHandshakeException - 
> sun.security.validator.ValidatorException: PKIX path building failed: 
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
> valid certification path to requested target
> javax.net.ssl.SSLHandshakeException: 
> sun.security.validator.ValidatorException: PKIX path building failed: 
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
> valid certification path to requested target
> at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
> at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1946)
> at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:316)
> at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:310)
> at sun.security.ssl
> .ClientHandshaker.serverCertificate(ClientHandshaker.java:1639)"
>
> What is exactly might be the issue? and please note the emergency of this 
> problem .
>
> Thank you.
>
>
> Hi, I had this issue once, it turned out to be a server side problem. My 
> server guy fixed it, this is what he said:
>

"ok ssl issue is resolved. i had to put the full chain cert in the 
ssl.conf file


just fyi, and in case it comes up again for any of your other customers, 
you create a fullchain,pem file and paste in the root certificate and the 
intermediate certificate from the cert authority and then enable that file 
in the ssl.conf file

SSLCertificateChainFile /root/.ssh/fullchain.pem

then restart the httpd service" 



 

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/65d0bd4a-4ba0-4172-8d35-cca7f0c70b41%40googlegroups.com.


[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 
AlgorithmCWrapper(); 
or maybe
AlgorithmCWrapper my = NativeLookup.create(AlgorithmCWrapper.class);

but AlgorithmCWrapper doesnt import. Ive done this quite a few times but I 
can't see my old code because I'm travelling. How would I get it to work?

package uk.co.skyrad.hobmonitoralgo;
public class AlgorithmCWrapper {
static {
System.loadLibrary("hobmonitor");
}

public native void set_input(byte[] packedBluetoothData, byte hobLayoutId);
public native int[] get_pan_indexes();
public native float[] get_pan_temperatures();
public native int[] get_pan_states();
public native int[] get_pan_boiling_time_seconds();
public native int[] get_time_since_food_added_seconds();
public native void init();
public native void step();}


On Wednesday, September 11, 2019 at 3:35:39 AM UTC+1, Shai Almog wrote:
>
> 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 codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/93eae52e-dd5e-468c-8bd5-43b8bca7626d%40googlegroups.com.


[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 
AndroidManifest.xml:15:17-46
is also present at [:HobMonitorAlgo:] AndroidManifest.xml:13:9-39 
value=(HobMonitorAlgo).
Suggestion: add 'tools:replace="android:label"' to  element at 
AndroidManifest.xml:15:3-42:103 to override

Is there any way I can do tools:replace from a build hint to fix this? Or 
do I need to adjust the .aar ?

Thanks!
Gaz.

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/1cfa24cd-9d5e-4abe-8921-09a29ae57ace%40googlegroups.com.


[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 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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/4f0d05dd-cc16-4a6e-8253-f444c9bcc6ab%40googlegroups.com.


[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 = cipher.getBlockSize();

byte[] iv = Arrays.copyOfRange(bytesToDecrypt, 0, blockSize);
byte[] encryptedData = Arrays.copyOfRange(bytesToDecrypt, 
blockSize, bytesToDecrypt.length);

IvParameterSpec ivspec = new IvParameterSpec(iv);
SecretKeySpec secretKey = new SecretKeySpec(key, "AES");
cipher.init(Cipher.DECRYPT_MODE, secretKey, ivspec);

return cipher.doFinal(encryptedData);
} catch (Exception e) {
Log.e(TAG, "Error while decrypting: " + e.toString());
}
return null;}

public byte[] sha256Hash(String inputCode) {
MessageDigest digest = MessageDigest.getInstance("SHA-256");
return digest.digest(inputCode.getBytes(StandardCharsets.UTF_8));}



-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/f4f08b89-d04e-498d-b3a0-c8a1855b250f%40googlegroups.com.


[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 Almog wrote:
>
> Sure:
> java -jar ~/.codenamone/GUIBuilder.jar -settings 
> /path-to-project/codenameone_settings.properties
>

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/aeec2454-1287-47a1-9197-061f65442c36%40googlegroups.com.


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 ?
> 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 simply wont connect no matter what I do (im presuming 
>> the call back should be called if it connects). So I guess I will have to 
>> cancel this contract unfortunately. Not sure if its due to the device im 
>> connecting to which is a rasberry pi but it is meant to be bluetooth LE. 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 Thu, 29 Aug 2019 at 03:39, Shai Almog  wrote:
>>>
>>>> I'm guessing you're trying to connect to a bluetooth device instead of 
>>>> a bluetooth-LE device. Notice the LE which is a different standard. 
>>>> Generally bluetooth in all its forms is painful.
>>>>
>>>> -- 
>>>> You received this message because you are subscribed to a topic in the 
>>>> Google Groups "CodenameOne Discussions" group.
>>>> To unsubscribe from this topic, visit 
>>>> https://groups.google.com/d/topic/codenameone-discussions/5hDDwbOFxyo/unsubscribe
>>>> .
>>>> To unsubscribe from this group and all its topics, send an email to 
>>>> codenameone-discussions+unsubscr...@googlegroups.com.
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/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 - www.garethmurfin.co.uk)
>>>
>>>

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/3a4cb18d-3734-4952-b080-f4724f6c9d30%40googlegroups.com.


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 than one json 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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/3458eb04-2bf7-4e18-9469-0d0c5c1fb035%40googlegroups.com.


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 simply wont connect no matter what I do (im presuming 
> the call back should be called if it connects). So I guess I will have to 
> cancel this contract unfortunately. Not sure if its due to the device im 
> connecting to which is a rasberry pi but it is meant to be bluetooth LE. 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 Thu, 29 Aug 2019 at 03:39, Shai Almog  wrote:
>>
>>> I'm guessing you're trying to connect to a bluetooth device instead of a 
>>> bluetooth-LE device. Notice the LE which is a different standard. Generally 
>>> bluetooth in all its forms is painful.
>>>
>>> -- 
>>> You received this message because you are subscribed to a topic in the 
>>> Google Groups "CodenameOne Discussions" group.
>>> To unsubscribe from this topic, visit 
>>> https://groups.google.com/d/topic/codenameone-discussions/5hDDwbOFxyo/unsubscribe
>>> .
>>> To unsubscribe from this group and all its topics, send an email to 
>>> codenameone-discussions+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/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 - www.garethmurfin.co.uk)
>>
>>

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/5fb4c817-7098-4048-beba-09c7fd27eb72%40googlegroups.com.


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

2019-08-29 Thread Gareth Murfin
Painful indeed, it simply wont connect no matter what I do (im presuming 
the call back should be called if it connects). So I guess I will have to 
cancel this contract unfortunately. Not sure if its due to the device im 
connecting to which is a rasberry pi but it is meant to be bluetooth LE. 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 Thu, 29 Aug 2019 at 03:39, Shai Almog  wrote:
>
>> I'm guessing you're trying to connect to a bluetooth device instead of a 
>> bluetooth-LE device. Notice the LE which is a different standard. Generally 
>> bluetooth in all its forms is painful.
>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "CodenameOne Discussions" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/codenameone-discussions/5hDDwbOFxyo/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> codenameone-discussions+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/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 - www.garethmurfin.co.uk)
>
>

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/fb719dd6-383f-4cdb-b204-eb763ea18bac%40googlegroups.com.


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

2019-08-29 Thread Gareth Murfin
thanks Shai, this is a bluetooth LE device, is there something specific I
need to do to connect? rather than just calling connect()  ?

On Thu, 29 Aug 2019 at 03:39, Shai Almog  wrote:

> I'm guessing you're trying to connect to a bluetooth device instead of a
> bluetooth-LE device. Notice the LE which is a different standard. Generally
> bluetooth in all its forms is painful.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "CodenameOne Discussions" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/codenameone-discussions/5hDDwbOFxyo/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/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 - www.garethmurfin.co.uk)

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CANOaY6kVegwAMTC5_jNMDu37QD-xV5fcdRqqW0ayZifSsV%2BWqw%40mail.gmail.com.


[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 for new device". There is no way to get the address it 
> thinks its connected to in order to call disconnect/reconnect. And it 
> erroneously thinks that I have connected, which I havent.
>
> On 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 UTC+1, Kandy Bitxenio wrote:
>>>
>>> Hi Garet, you need to activate the location on Android, se the library 
>>> documentation, the bluetooth library works fine on IOS and Android.
>>>
>>> Best Regards Kandy
>>>
>>

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/f318c734-2865-47c7-86ff-a9d2f192ddc9%40googlegroups.com.


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

2019-08-28 Thread Gareth Murfin
Still more issues, connecting I always get "Device previously connected, 
reconnect or close for new device". There is no way to get the address it 
thinks its connected to in order to call disconnect/reconnect. And it 
erroneously thinks that I have connected, which I havent.

On 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 UTC+1, Kandy Bitxenio wrote:
>>
>> Hi Garet, you need to activate the location on Android, se the library 
>> documentation, the bluetooth library works fine on IOS and Android.
>>
>> Best Regards Kandy
>>
>

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/6300f5c7-0d5c-41a3-bbd2-15e7f5dd4f26%40googlegroups.com.


[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 library 
> documentation, the bluetooth library works fine on IOS and Android.
>
> Best Regards Kandy
>

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/87836208-c190-4a18-8ac6-88abca0617ba%40googlegroups.com.


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 hints.. BluetoothLeScanner: fail to start le scan - SecurityException
> thrown: java.lang.SecurityException: Need ACCESS_COARSE_LOCATION or
> ACCESS_FINE_LOCATION permission to get scan results
>
> 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: at
>> com.codename1.cordova.Cordova.execute(Cordova.java:33)
>> W/System.err: at
>> com.codename1.bluetoothle.Bluetooth.enable(Bluetooth.java:85)
>> W/System.err: at userclasses.MainForm.startBluetooth(MainForm.java:55)
>> W/System.err: at
>> com.pippa.hobmonitor.MyApplication.start(MyApplication.java:41)
>> W/System.err: at
>> com.pippa.hobmonitor.MyApplicationStub.run(MyApplicationStub.java:163)
>> W/System.err: at
>> com.pippa.hobmonitor.MyApplicationStub$1.run(MyApplicationStub.java:107)
>> W/System.err: at
>> com.codename1.ui.Display.processSerialCalls(Display.java:1298)
>> W/System.err: at
>> com.codename1.ui.Display.mainEDTLoop(Display.java:1093)
>> W/System.err: at
>> com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:120)
>> W/System.err: at
>> com.codename1.impl.CodenameOneThread$1.run(CodenameOneThread.java:60)
>> W/System.err: at java.lang.Thread.run(Thread.java:764)
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "CodenameOne Discussions" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/codenameone-discussions/BID1gcFOGqw/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/57d9d6f0-4002-4c34-987c-50d4e5379f42%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/57d9d6f0-4002-4c34-987c-50d4e5379f42%40googlegroups.com?utm_medium=email_source=footer>
> .
>


-- 
Gareth Murfin
(Android Freelancer - www.garethmurfin.co.uk)

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CANOaY6m602_E_98Bdc_%3Dhe_A8Yji%2BMiCj24G8Dp45xedVjbZrA%40mail.gmail.com.


[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, 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 this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/9fac3843-9f31-429b-88f1-032a832e4cd3%40googlegroups.com.


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

2019-08-28 Thread Gareth Murfin
hmmm now im getting android errors, im presuming these need to be set as 
build hints.. BluetoothLeScanner: fail to start le scan - SecurityException 
thrown: java.lang.SecurityException: Need ACCESS_COARSE_LOCATION or 
ACCESS_FINE_LOCATION permission to get scan results

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: at com.codename1.cordova.Cordova.execute(Cordova.java:33)
> W/System.err: at 
> com.codename1.bluetoothle.Bluetooth.enable(Bluetooth.java:85)
> W/System.err: at userclasses.MainForm.startBluetooth(MainForm.java:55)
> W/System.err: at 
> com.pippa.hobmonitor.MyApplication.start(MyApplication.java:41)
> W/System.err: at 
> com.pippa.hobmonitor.MyApplicationStub.run(MyApplicationStub.java:163)
> W/System.err: at 
> com.pippa.hobmonitor.MyApplicationStub$1.run(MyApplicationStub.java:107)
> W/System.err: at 
> com.codename1.ui.Display.processSerialCalls(Display.java:1298)
> W/System.err: at 
> com.codename1.ui.Display.mainEDTLoop(Display.java:1093)
> W/System.err: at 
> com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:120)
> W/System.err: at 
> com.codename1.impl.CodenameOneThread$1.run(CodenameOneThread.java:60)
> W/System.err: at java.lang.Thread.run(Thread.java:764)
>

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/57d9d6f0-4002-4c34-987c-50d4e5379f42%40googlegroups.com.


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.. my
> email is gareth.mur...@gmail.com
>
> On Wednesday, August 28, 2019 at 2:56:30 PM UTC+1, Kandy Bitxenio wrote:
>>
>> Hi Gareth
>>
>> This are my libs, please give me your mail to send the project.
>>
>> https://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
>> escribió:
>>>
>>> That would be great Kandy, a dummy project that you know works would
>>> help me greatly. I appreciate your help!
>>>
>>> On Wednesday, August 28, 2019 at 2:25:43 PM UTC+1, Kandy Bitxenio wrote:
>>>>
>>>> If you I can send you my libraries, or my dummy project.
>>>>
>>>> Best Regards.
>>>>
>>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "CodenameOne Discussions" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/codenameone-discussions/BID1gcFOGqw/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/fa6721df-38b4-420d-ac2d-f00f99bd4e50%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/fa6721df-38b4-420d-ac2d-f00f99bd4e50%40googlegroups.com?utm_medium=email_source=footer>
> .
>


-- 
Gareth Murfin
(Android Freelancer - www.garethmurfin.co.uk)

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CANOaY6moEbX4-H3dg1ZDLhN95qW5V-kaEo-PN--bWB7xjTZ3gg%40mail.gmail.com.


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

2019-08-28 Thread Gareth Murfin
Thanks very much! Grabbing the libs now, but my internet is poor.. my email 
is gareth.mur...@gmail.com

On Wednesday, August 28, 2019 at 2:56:30 PM UTC+1, Kandy Bitxenio wrote:
>
> Hi Gareth
>
> This are my libs, please give me your mail to send the project.
>
> https://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 
> escribió:
>>
>> That would be great Kandy, a dummy project that you know works would help 
>> me greatly. I appreciate your help!
>>
>> On Wednesday, August 28, 2019 at 2:25:43 PM UTC+1, Kandy Bitxenio wrote:
>>>
>>> If you I can send you my libraries, or my dummy project.
>>>
>>> Best Regards.
>>>
>>

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/fa6721df-38b4-420d-ac2d-f00f99bd4e50%40googlegroups.com.


[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
-a   27/08/2019 21:46  50396 CN1Bluethooth.cn1lib
-a   14/08/2017 10:44  30533 CN1JSON.cn1lib
-a   27/08/2019 21:196256001 CodenameOne.jar
-a   27/08/2019 21:19   1036 CodenameOne_SRC.zip

On Wednesday, August 28, 2019 at 6:11:01 AM UTC+1, Shai Almog wrote:
>
> Did you install the dependencies?
>

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/07fa319c-80ef-428d-99a9-4d1596f34fb3%40googlegroups.com.


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

2019-08-28 Thread Gareth Murfin
I do have that library if you look carefully. I have tried cleaning and
reimporting many times... seems ok on the emulator (ie json lib works) but
on phone it always has that error.

On Wed, 28 Aug 2019 at 14:13, Kandy Bitxenio  wrote:

> Hi Gareht
>
> You haven´t all the required libs, You must import the Json
> CN1JSON.cn1lib.
>
> I recomended you, clean your libs and reimport it.
>
> I importd directly from codenameOne Preferences, I use Eclipse. Whai Ide
> you use?
>
> Just see this links:
>
> https://www.codenameone.com/cn1libs.html
> https://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) not exactly the same as mine.. where did you
>> get CN1Bluetooth.cn1lib from? im using theirs which as you can see has a
>> spelling mistake, so yours might be different?
>>
>> ModeLastWriteTime Length Name
>> - -- 
>> d-   28/08/2019 14:03impl
>> -a   27/08/2019 20:462264815 CLDC11.jar
>> -a   27/08/2019 21:46  50396 CN1Bluethooth.cn1lib
>> -a   14/08/2017 10:44  30533 CN1JSON.cn1lib
>> -a   27/08/2019 21:196256001 CodenameOne.jar
>> -a   27/08/2019 21:19   1036 CodenameOne_SRC.zip
>>
>>
>>
>> On Wednesday, August 28, 2019 at 1:49:26 PM UTC+1, Kandy Bitxenio wrote:
>>>
>>> Hi Garet
>>>
>>> I used the BlueThooh codename one lib and didn't have any problem. The
>>> project work fine for me. I added the BT and Json Required Libraries from
>>> Codename One Settings (libs option).
>>>
>>> This are my libs size
>>>
>>> C:\dev\eclipseOxigen\OxigenApp\lib>ls -la
>>> total 18736
>>> drwxrwxrwx   1 user group   0 Jul  3 20:47 .
>>> drwxrwxrwx   1 user group   0 Jul  3 20:47 ..
>>> -rw-rw-rw-   1 user group   12380 Jul  3 20:47
>>> AnimatedGifSupport.cn1lib
>>> -rw-rw-rw-   1 user group  10 Jul  3 20:47
>>> AnimatedGifSupport.ver
>>> -rw-rw-rw-   1 user group 2264815 Jul  3 20:47 CLDC11.jar
>>> -rw-rw-rw-   1 user group   46807 Jul  3 20:47
>>> CN1Bluetooth.cn1lib
>>> -rw-rw-rw-   1 user group  10 Jul  3 20:47 CN1Bluetooth.ver
>>> -rw-rw-rw-   1 user group   30564 Jul  3 20:47 CN1JSON.cn1lib
>>> -rw-rw-rw-   1 user group  10 Jul  3 20:47 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 agosto de 2019, 14:32:17 (UTC+2), Gareth Murfin
>>> escribió:
>>>>
>>>> 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??
>>>>>
>>>>>  Exception: java.lang.NoSuchMethodError - No direct method
>>>>> (Ljava/util/Map;)V in class Lca/weblite/codename1/json/JSONObject; 
>>>>> or
>>>>> its super classes (declaration of 'ca.weblite.codename1.json.JSONObject'
>>>>> appears in 
>>>>> /data/app/com.pippa.hobmonitor-i555BGum4BjW27o1gIXtCQ==/base.apk)
>>>>> W/System.err: java.lang.NoSuchMethodError: No direct method
>>>>> (Ljava/util/Map;)V in class Lca/weblite/codename1/json/JSONObject; 
>>>>> or
>>>>> its super classes (declaration of 'ca.weblite.codename1.json.JSONObject'
>>>>> appears 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
>>>>>>
&

[codenameone-discussions] Re: NoSuchMethodError No Direct Method

2019-08-28 Thread Gareth Murfin
Thanks very much for your reply Kandy.

They look similar (though) not exactly the same as mine.. where did you 
get CN1Bluetooth.cn1lib from? im using theirs which as you can see has a 
spelling mistake, so yours might be different?

ModeLastWriteTime Length Name
- -- 
d-   28/08/2019 14:03impl
-a   27/08/2019 20:462264815 CLDC11.jar
-a   27/08/2019 21:46  50396 CN1Bluethooth.cn1lib
-a   14/08/2017 10:44  30533 CN1JSON.cn1lib
-a   27/08/2019 21:196256001 CodenameOne.jar
-a   27/08/2019 21:19   1036 CodenameOne_SRC.zip



On Wednesday, August 28, 2019 at 1:49:26 PM UTC+1, Kandy Bitxenio wrote:
>
> Hi Garet
>
> I used the BlueThooh codename one lib and didn't have any problem. The 
> project work fine for me. I added the BT and Json Required Libraries from 
> Codename One Settings (libs option).
>
> This are my libs size
>
> C:\dev\eclipseOxigen\OxigenApp\lib>ls -la
> total 18736
> drwxrwxrwx   1 user group   0 Jul  3 20:47 .
> drwxrwxrwx   1 user group   0 Jul  3 20:47 ..
> -rw-rw-rw-   1 user group   12380 Jul  3 20:47 
> AnimatedGifSupport.cn1lib
> -rw-rw-rw-   1 user group  10 Jul  3 20:47 
> AnimatedGifSupport.ver
> -rw-rw-rw-   1 user group 2264815 Jul  3 20:47 CLDC11.jar
> -rw-rw-rw-   1 user group   46807 Jul  3 20:47 CN1Bluetooth.cn1lib
> -rw-rw-rw-   1 user group  10 Jul  3 20:47 CN1Bluetooth.ver
> -rw-rw-rw-   1 user group   30564 Jul  3 20:47 CN1JSON.cn1lib
> -rw-rw-rw-   1 user group  10 Jul  3 20:47 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 agosto de 2019, 14:32:17 (UTC+2), Gareth Murfin 
> escribió:
>>
>> 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??
>>>
>>>  Exception: java.lang.NoSuchMethodError - No direct method 
>>> (Ljava/util/Map;)V in class Lca/weblite/codename1/json/JSONObject; or 
>>> its super classes (declaration of 'ca.weblite.codename1.json.JSONObject' 
>>> appears in /data/app/com.pippa.hobmonitor-i555BGum4BjW27o1gIXtCQ==/base.apk)
>>> W/System.err: java.lang.NoSuchMethodError: No direct method 
>>> (Ljava/util/Map;)V in class Lca/weblite/codename1/json/JSONObject; or 
>>> its super classes (declaration of 'ca.weblite.codename1.json.JSONObject' 
>>> appears 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.com/codenameone/CodenameOneLibs/tree/master/cn1libs
>>>>
>>>> that one was 85k... but now it wont compile  (complains that it cannot 
>>>> find ca.weblite.codename1.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-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?
>>>>>
>>>>

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/f145faf7-fa26-4e82-a72b-93505d702048%40googlegroups.com.


[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??
>
>  Exception: java.lang.NoSuchMethodError - No direct method 
> (Ljava/util/Map;)V in class Lca/weblite/codename1/json/JSONObject; or 
> its super classes (declaration of 'ca.weblite.codename1.json.JSONObject' 
> appears in /data/app/com.pippa.hobmonitor-i555BGum4BjW27o1gIXtCQ==/base.apk)
> W/System.err: java.lang.NoSuchMethodError: No direct method 
> (Ljava/util/Map;)V in class Lca/weblite/codename1/json/JSONObject; or 
> its super classes (declaration of 'ca.weblite.codename1.json.JSONObject' 
> appears 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.com/codenameone/CodenameOneLibs/tree/master/cn1libs
>>
>> that one was 85k... but now it wont compile  (complains that it cannot 
>> find ca.weblite.codename1.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-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?
>>>
>>

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/46f62dc9-bcaa-4ebf-a109-0a491f26ae0b%40googlegroups.com.


[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 this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/b11d8a3a-1132-48c2-bb96-3a2553aa1352%40googlegroups.com.


[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 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/20db2f33-54e8-4fe4-a861-5d1674dba5af%40googlegroups.com.


[codenameone-discussions] Re: NoSuchMethodError No Direct Method

2019-08-27 Thread Gareth Murfin
actually on the device im still getting the error, im very confused right 
now, any thoughts??

 Exception: java.lang.NoSuchMethodError - No direct method 
(Ljava/util/Map;)V in class Lca/weblite/codename1/json/JSONObject; or 
its super classes (declaration of 'ca.weblite.codename1.json.JSONObject' 
appears in /data/app/com.pippa.hobmonitor-i555BGum4BjW27o1gIXtCQ==/base.apk)
W/System.err: java.lang.NoSuchMethodError: No direct method 
(Ljava/util/Map;)V in class Lca/weblite/codename1/json/JSONObject; or 
its super classes (declaration of 'ca.weblite.codename1.json.JSONObject' 
appears 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.com/codenameone/CodenameOneLibs/tree/master/cn1libs
>
> that one was 85k... but now it wont compile  (complains that it cannot 
> find ca.weblite.codename1.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-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?
>>
>

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/17a67f47-af0f-4e53-befc-07c78541bde8%40googlegroups.com.


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

2019-08-27 Thread Gareth Murfin
seems to be related to the json lib not working .. any ideas?

 Exception: java.lang.NoSuchMethodError - No direct method 
(Ljava/util/Map;)V in class Lca/weblite/codename1/json/JSONObject; or 
its super classes (declaration of 'ca.weblite.codename1.json.JSONObject' 
appears in /data/app/com.pippa.hobmonitor-i555BGum4BjW27o1gIXtCQ==/base.apk)
W/System.err: java.lang.NoSuchMethodError: No direct method 
(Ljava/util/Map;)V in class Lca/weblite/codename1/json/JSONObject; or 
its super classes (declaration of 'ca.weblite.codename1.json.JSONObject' 
appears in /data/app/com.pippa.hobmonitor-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: at com.codename1.cordova.Cordova.execute(Cordova.java:33)
> W/System.err: at 
> com.codename1.bluetoothle.Bluetooth.enable(Bluetooth.java:85)
> W/System.err: at userclasses.MainForm.startBluetooth(MainForm.java:55)
> W/System.err: at 
> com.pippa.hobmonitor.MyApplication.start(MyApplication.java:41)
> W/System.err: at 
> com.pippa.hobmonitor.MyApplicationStub.run(MyApplicationStub.java:163)
> W/System.err: at 
> com.pippa.hobmonitor.MyApplicationStub$1.run(MyApplicationStub.java:107)
> W/System.err: at 
> com.codename1.ui.Display.processSerialCalls(Display.java:1298)
> W/System.err: at 
> com.codename1.ui.Display.mainEDTLoop(Display.java:1093)
> W/System.err: at 
> com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:120)
> W/System.err: at 
> com.codename1.impl.CodenameOneThread$1.run(CodenameOneThread.java:60)
> W/System.err: at java.lang.Thread.run(Thread.java:764)
>

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/029f7da2-f98c-49cc-9ff4-171af8c3b6f5%40googlegroups.com.


[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 
com.codename1.bluetoothle.Bluetooth.enable(Bluetooth.java:85)
W/System.err: at userclasses.MainForm.startBluetooth(MainForm.java:55)
W/System.err: at 
com.pippa.hobmonitor.MyApplication.start(MyApplication.java:41)
W/System.err: at 
com.pippa.hobmonitor.MyApplicationStub.run(MyApplicationStub.java:163)
W/System.err: at 
com.pippa.hobmonitor.MyApplicationStub$1.run(MyApplicationStub.java:107)
W/System.err: at 
com.codename1.ui.Display.processSerialCalls(Display.java:1298)
W/System.err: at com.codename1.ui.Display.mainEDTLoop(Display.java:1093)
W/System.err: at 
com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:120)
W/System.err: at 
com.codename1.impl.CodenameOneThread$1.run(CodenameOneThread.java:60)
W/System.err: at java.lang.Thread.run(Thread.java:764)

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/6a94979e-9c0b-4ae0-a2f1-58903c160035%40googlegroups.com.


[codenameone-discussions] Re: NoSuchMethodError No Direct Method

2019-08-27 Thread Gareth Murfin
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.com/codenameone/CodenameOneLibs/tree/master/cn1libs

that one was 85k... but now it wont compile  (complains that it cannot find 
ca.weblite.codename1.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-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?
>

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/549b88e6-ab19-4490-a186-30621b1e34e5%40googlegroups.com.


[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?

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/0216d49b-5fa0-4240-9945-7aa3cb4274fb%40googlegroups.com.


[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 from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/2675f3bd-c520-452f-b6b0-1691c743dd22%40googlegroups.com.


[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 use this 
also in the iOS version? What is the route I need to take to use this 
native code on both android/ios? Do I need to rewrite their c in obj-c and 
make a native lib for ios?

-- 
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 web visit 
https://groups.google.com/d/msgid/codenameone-discussions/c3dfa6e5-d2c4-4db3-8947-97fb690b9cea%40googlegroups.com.


[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 construct an mp4 
from the image, but is there any way to create videos like this in 
codenameone ?

-- 
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 https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/6db9a243-80f1-4ed9-ae29-e9c229074286%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 presume you can do this as the QR code scanner appears to work this way.

Cheers,
Gaz

-- 
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 https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/f3a7b269-2d1f-48d3-b681-068d78a70828%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 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 
> do it, like do it once and save it as some sort of binary file that can be 
> loaded back into the ram at highspeed? Its probably a silly question really 
> but I am looking for ways to speed this up because this stuff is used as a 
> "realtime" search within the app so I cant exactly force the user to wait 
> 10 minutes everytime they load the app just to prepare the search data. 
>
> MY CODE:
>
>
>   hi.add(new Label("START"));
>   List allLineObjects = new ArrayList();
>   long start = System.currentTimeMillis();
> try
> {
> //The format of the comma-delimited data 
> is:{romaji},{kanji},{kana},{English gloss}
> //egdoujou,   仝,
>  どうじょう, 1. "as above" mark. 
> _("Reading in search data now!");
> final String fileName = "/searchdata.txt";
> InputStream in = 
> Display.getInstance().getResourceAsStream(Form.class, fileName);
> String fileContents = 
> com.codename1.io.Util.readToString(in);// efficient
> _("Finished reading ("+fileContents.length()+"), now parse");
>   
>List lines_ = StringUtil.tokenize(fileContents, '\n');
>for (int x=0; x{
> StringTokenizer st = new 
> StringTokenizer(lines_.get(x),",");
>  
> int i=0;
> String romaji = "";
> String kanji = "";
> String kana = "";
> String english = "";
>
> 
> while (st.hasMoreElements())
> {
> String token = (String) st.nextElement();
> switch (i)
> {
> case 0:romaji=token;break;
> case 1:kanji=token;break;
> case 2:kana=token;break;
> case 3:english=token;break;
> default:_("UNKNOWN STATE HERE PARSING CVS "+i);
> }
> i++;
> if (i>3)
> {
> _(""+x+" ROMANJI: "+romaji+" KANJI: "+kanji+" 
> KANA:"+kana+" ENGLISH:"+english);
> LangHolder lh = new 
> LangHolder(romaji,kanji,kana,english);
> allLineObjects.add(lh);
> romaji = "";
> kanji = "";
> kana = "";
> english = "";
>
> i=0;
> }
> }
>}
>_("finished making search data, there are 
> "+allLineObjects.size()+" objects holding the info");
>long end = System.currentTimeMillis();
>_("time took "+((end-start)/1000)/60+" mins.");
>hi.add(new Label("finished making search data, there are 
> "+allLineObjects.size()+" objects holding the info"));
>hi.invalidate();
>hi.add(new Label("time took "+((end-start)/1000)/60+" mins."));
>
> EXAMPLE OF FILE:
>
> doujou,仝,どうじょう,1. "as above" mark. 
> kansuujizero,漢数字ゼロ,かんすうじゼロ,1. "kanji" zero. 
> maru,○/〇,まる,1. circle (sometimes used for zero). 2. 'correct' (when 
> marking). 3. symbol used as a placeholder (either because a number of other 
> words could be used in that position, or because of censorship). 4. period. 
> 5. full stop. 6. maru mark. 7. semivoiced sound. 8. p-sound. 
> e-bi-shi-jixyun,ABC順,エービーシーじゅん,1. alphabetical order. 
> shi-dyi-pure-ya-,CDプレーヤー/CDプレイヤー,シーディープレイヤーシーディープレーヤー/シーディープレイヤー,1. CD 
> player. 
> shi-dyi-pureiya-,CDプレーヤー/CDプレイヤー,シーディープレイヤーシーディープレーヤー/シーディープレイヤー,1. CD 
> player. 
> enukixyou,N響,エヌきょう,1. NHK Symphony Orchestra. 
> o-bakku,Oバック,オーバック,1. O-back. 2. skirt with peek-a-boo hole in rump. 
> a-ruesunisannike-buru,RS232ケーブル,アールエスにさんにケーブル,1. rs232 c

[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 
do it, like do it once and save it as some sort of binary file that can be 
loaded back into the ram at highspeed? Its probably a silly question really 
but I am looking for ways to speed this up because this stuff is used as a 
"realtime" search within the app so I cant exactly force the user to wait 
10 minutes everytime they load the app just to prepare the search data. 

MY CODE:


  hi.add(new Label("START"));
  List allLineObjects = new ArrayList();
  long start = System.currentTimeMillis();
try
{
//The format of the comma-delimited data 
is:{romaji},{kanji},{kana},{English gloss}
//egdoujou,   仝,
 どうじょう, 1. "as above" mark. 
_("Reading in search data now!");
final String fileName = "/searchdata.txt";
InputStream in = 
Display.getInstance().getResourceAsStream(Form.class, fileName);
String fileContents = com.codename1.io.Util.readToString(in);// 
efficient
_("Finished reading ("+fileContents.length()+"), now parse");
  
   List lines_ = StringUtil.tokenize(fileContents, '\n');
   for (int x=0; x3)
{
_(""+x+" ROMANJI: "+romaji+" KANJI: "+kanji+" 
KANA:"+kana+" ENGLISH:"+english);
LangHolder lh = new 
LangHolder(romaji,kanji,kana,english);
allLineObjects.add(lh);
romaji = "";
kanji = "";
kana = "";
english = "";
   
i=0;
}
}
   }
   _("finished making search data, there are 
"+allLineObjects.size()+" objects holding the info");
   long end = System.currentTimeMillis();
   _("time took "+((end-start)/1000)/60+" mins.");
   hi.add(new Label("finished making search data, there are 
"+allLineObjects.size()+" objects holding the info"));
   hi.invalidate();
   hi.add(new Label("time took "+((end-start)/1000)/60+" mins."));

EXAMPLE OF FILE:

doujou,仝,どうじょう,1. "as above" mark. 
kansuujizero,漢数字ゼロ,かんすうじゼロ,1. "kanji" zero. 
maru,○/〇,まる,1. circle (sometimes used for zero). 2. 'correct' (when 
marking). 3. symbol used as a placeholder (either because a number of other 
words could be used in that position, or because of censorship). 4. period. 
5. full stop. 6. maru mark. 7. semivoiced sound. 8. p-sound. 
e-bi-shi-jixyun,ABC順,エービーシーじゅん,1. alphabetical order. 
shi-dyi-pure-ya-,CDプレーヤー/CDプレイヤー,シーディープレイヤーシーディープレーヤー/シーディープレイヤー,1. CD 
player. 
shi-dyi-pureiya-,CDプレーヤー/CDプレイヤー,シーディープレイヤーシーディープレーヤー/シーディープレイヤー,1. CD 
player. 
enukixyou,N響,エヌきょう,1. NHK Symphony Orchestra. 
o-bakku,Oバック,オーバック,1. O-back. 2. skirt with peek-a-boo hole in rump. 
a-ruesunisannike-buru,RS232ケーブル,アールエスにさんにケーブル,1. rs232 cable. 
texi-shatsu,Tシャツ,ティーシャツ,1. T-shirt. 
texi-bakku,Tバック,ティーバック,1. T-back. 2. bikini thong. 
aun'nokokyuu,あうんの呼吸/阿吽の呼吸,あうんのこきゅう,1. the harmonizing, mentally and 
physically, of two parties engaged in an activity. 2. singing from the same 
hymn-sheet. 3. dancing to the same beat. 
meihaku,明白,めいはく,1. obvious. 2. clear. 3. plain. 4. evident. 5. apparent. 6. 
explicit. 7. overt. 
akarasama,明白/偸閑/白地,あからさま,1. plain. 2. frank. 3. candid. 4. open. 5. direct. 
6. straightforward. 7. unabashed. 8. blatant. 9. flagrant. 
akudoi,悪どい,あくどい,1. gaudy. 2. showy. 3. excessive. 4. crooked. 5. vicious. 
agetsurau,論う,あげつらう,1. to discuss. 2. to find fault with. 3. to criticize. 
4. to criticise. 
asoko,彼処/彼所,あこあそこ/あすこ/かしこ/アソコ/あしこ/あこ,1. there (place physically distant 
from both speaker and listener). 2. over there. 3. that place. 4. yonder. 
5. you-know-where. 6. genitals. 7. private parts. 8. nether regions. 9. 
that far (something psychologically distant from both speaker and 
listener). 10. that much. 11. that point. 
ashiko,彼処/彼所,あこあそこ/あすこ/かしこ/アソコ/あしこ/あこ,1. there (place physically distant 
from both speaker and listener). 2. over there. 3. that place. 4. yonder. 
5. you-know-where. 6. genitals. 7. private parts. 8. nether regions. 9. 
that far (something psychologically distant from both speaker and 
listener). 10. that much. 11. that point. 
ako,彼処/彼所,あこあそこ/あすこ/かしこ/アソコ/あしこ/あこ,1. there (place physically distant from 
both speaker and listener). 2. over there. 3. that place. 4. yonder. 5. 
you-know-where. 6. genitals. 7. private parts. 8. nether regions. 9. that 
far (something psychologically distant from both speaker and listener). 10. 
that much. 11. that point. 
asuko,彼処/彼所,あこあそこ/あすこ/かしこ/アソコ/あしこ/あこ,1. there (place physically distant 
from both speaker 

[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 knowing about 
this in obj-c: 
dispatch_async(dispatch_get_main_queue(), ^{

so hopefully it will be A LOT easier this time. Cheers.

On Wednesday, April 3, 2019 at 11:45:02 AM UTC+8, Shai Almog wrote:
>
> We don't have that. You would need to port one yourself.
>

-- 
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 https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/1a16da75-785d-47aa-8a86-1bf7bba2782f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 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 https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/eb799def-e4a3-483e-bdf6-3fdcd533cb5e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/0a41056e-808c-47f7-b3e0-1981b759815f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/ad09fcbd-0db7-4c6e-83ac-a941c19a278d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 Friday, March 29, 2019 at 11:20:49 AM UTC+8, Shai Almog wrote:
>
> That should work but you used the URL and image name as the same value. 
> Did you make changes to the animation behavior used to refresh the 
> placeholder?
>

-- 
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 https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/ed1b2bd5-6075-4813-a156-48eb122b0a14%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 
> be more consistent as shown below, but I still have a weird issue, day of 
> the week seems to be 2 days out:
>
>  int DAY_OF_WEEK = cal.get(java.util.Calendar.DAY_OF_WEEK);
> switch(DAY_OF_WEEK)
> {
> case 0: dayName="Mon";break;
> case 1: dayName="Tue";break;
> case 2: dayName="Wed";break;
> case 3: dayName="Thu";break;
> case 4: dayName="Fri";break;
> case 5: dayName="Sat";break;
> case 6: dayName="Sun";break;
> }
>
> tells me aug 31 2018 was sunday, but it was friday?
> even if I start at case 1: its still one day out, whats happening? sure 
> ive been thru this so many times.
>
> SimpleDateFormat dateTodaySDF = new SimpleDateFormat("-MM-dd");
> Date dateToday = null; //a date object representing the string 
> they passed in
> try {
> dateToday   = dateTodaySDF.parse(stringDate);
> _("dateToday -> "+dateToday.toString());
> //do this purely in cn1 so its same on ios and android, no 
> toString stuff on dates
> java.util.Calendar cal = java.util.Calendar.getInstance(); 
> cal.setTime(dateToday); 
> 
> int DAY_OF_WEEK = cal.get(java.util.Calendar.DAY_OF_WEEK);
> int DAY_OF_MONTH = cal.get(java.util.Calendar.DAY_OF_MONTH);   
> switch(DAY_OF_WEEK)
> {
> case 0: dayName="Mon";break;
> case 1: dayName="Tue";break;
> case 2: dayName="Wed";break;
> case 3: dayName="Thu";break;
> case 4: dayName="Fri";break;
> case 5: dayName="Sat";break;
> case 6: dayName="Sun";break;
> }
> dayDate=""+DAY_OF_MONTH;
> _("DAY_OF_WEEK  ->"+dayName);
> _("DAY_OF_MONTH ->"+DAY_OF_MONTH);
> int MONTH = cal.get(java.util.Calendar.MONTH);
> switch(MONTH)
> {
> case 0: monthName="Jan";break;
> case 1: monthName="Feb";break;
> case 2: monthName="Mar";break;
> case 3: monthName="Apr";break;
> case 4: monthName="May";break;
> case 5: monthName="Jun";break;
> case 6: monthName="Jul";break;
> case 7: monthName="Aug";break;
> case 8: monthName="Sep";break;
> case 9: monthName="Oct";break;
> case 10: monthName="Nov";break;
> case 11: monthName="Dec";break;
> }
> _("MONTH ->"+monthName);
> monthNumber=(MONTH+1)+"";
> _("monthNumber-> "+monthNumber);
> _("So the date passed in was: "+dayName+", "+DAY_OF_MONTH+" of 
> "+monthName);
>
> On Friday, March 29, 2019 at 6:56:13 PM UTC+8, Gareth Murfin wrote:
>>
>> 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 different because of the result from parsing 
>> the date, but shouldnt it behave identically on all platforms?
>>
>>
>> _("DateStringHolder received "+stringDate);
>> SimpleDateFormat dateTodaySDF = new 
>> SimpleDateFormat("-MM-dd");
>> Date dateToday = null; //a date object representing the string 
>> they passed in
>> try {
>> dateToday   = dateTodaySDF.parse(stringDate);
>> String dateTodayS = dateToday.toString();
>> dayName= dateTodayS.substring(0,3);
>> monthName  = dateTodayS.substring(4,7);
>> dayDate= dateTodayS.substring(8,10);
>>

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

2019-03-29 Thread Gareth Murfin
So yeah I was substringing date.toString, not a good idea. I changed it to 
be more consistent as shown below, but I still have a weird issue, day of 
the week seems to be 2 days out:

 int DAY_OF_WEEK = cal.get(java.util.Calendar.DAY_OF_WEEK);
switch(DAY_OF_WEEK)
{
case 0: dayName="Mon";break;
case 1: dayName="Tue";break;
case 2: dayName="Wed";break;
case 3: dayName="Thu";break;
case 4: dayName="Fri";break;
case 5: dayName="Sat";break;
case 6: dayName="Sun";break;
}

tells me aug 31 2018 was sunday, but it was friday?
even if I start at case 1: its still one day out, whats happening? sure ive 
been thru this so many times.

SimpleDateFormat dateTodaySDF = new SimpleDateFormat("-MM-dd");
Date dateToday = null; //a date object representing the string they 
passed in
try {
dateToday   = dateTodaySDF.parse(stringDate);
_("dateToday -> "+dateToday.toString());
//do this purely in cn1 so its same on ios and android, no 
toString stuff on dates
java.util.Calendar cal = java.util.Calendar.getInstance(); 
cal.setTime(dateToday); 

int DAY_OF_WEEK = cal.get(java.util.Calendar.DAY_OF_WEEK);
int DAY_OF_MONTH = cal.get(java.util.Calendar.DAY_OF_MONTH);   
switch(DAY_OF_WEEK)
{
case 0: dayName="Mon";break;
case 1: dayName="Tue";break;
case 2: dayName="Wed";break;
case 3: dayName="Thu";break;
case 4: dayName="Fri";break;
case 5: dayName="Sat";break;
case 6: dayName="Sun";break;
}
dayDate=""+DAY_OF_MONTH;
_("DAY_OF_WEEK  ->"+dayName);
_("DAY_OF_MONTH ->"+DAY_OF_MONTH);
int MONTH = cal.get(java.util.Calendar.MONTH);
switch(MONTH)
{
case 0: monthName="Jan";break;
case 1: monthName="Feb";break;
case 2: monthName="Mar";break;
case 3: monthName="Apr";break;
case 4: monthName="May";break;
case 5: monthName="Jun";break;
case 6: monthName="Jul";break;
case 7: monthName="Aug";break;
case 8: monthName="Sep";break;
case 9: monthName="Oct";break;
case 10: monthName="Nov";break;
    case 11: monthName="Dec";break;
}
_("MONTH ->"+monthName);
monthNumber=(MONTH+1)+"";
_("monthNumber-> "+monthNumber);
_("So the date passed in was: "+dayName+", "+DAY_OF_MONTH+" of 
"+monthName);

On Friday, March 29, 2019 at 6:56:13 PM UTC+8, Gareth Murfin wrote:
>
> 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 different because of the result from parsing 
> the date, but shouldnt it behave identically on all platforms?
>
>
> _("DateStringHolder received "+stringDate);
> SimpleDateFormat dateTodaySDF = new SimpleDateFormat("-MM-dd");
> Date dateToday = null; //a date object representing the string 
> they passed in
> try {
> dateToday   = dateTodaySDF.parse(stringDate);
> String dateTodayS = dateToday.toString();
> dayName= dateTodayS.substring(0,3);
> monthName  = dateTodayS.substring(4,7);
> dayDate= dateTodayS.substring(8,10);
> monthNumber= stringDate.substring(5,7);
> 
> //for testing differences on ios and android!
> Dialog.show("ios debug", "dateTodayS:"+dateTodayS+", 
> dayName:"+dayName+", monthName:"+monthName+", dayDate:"+dayDate+", 
> monthNumber:"+monthNumber, "OK", "Cancel");
> }
> catch(Exception e)
> {
> _("**warning** cant parse date! "+e.getMessage()+" 
> ->"+stringDate);
> e.printStackTrace();
> }
>

-- 
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 https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/3d346548-522a-4c2d-8ad0-0274b289a07e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 different because of the result from parsing the 
date, but shouldnt it behave identically on all platforms?


_("DateStringHolder received "+stringDate);
SimpleDateFormat dateTodaySDF = new SimpleDateFormat("-MM-dd");
Date dateToday = null; //a date object representing the string they 
passed in
try {
dateToday   = dateTodaySDF.parse(stringDate);
String dateTodayS = dateToday.toString();
dayName= dateTodayS.substring(0,3);
monthName  = dateTodayS.substring(4,7);
dayDate= dateTodayS.substring(8,10);
monthNumber= stringDate.substring(5,7);

//for testing differences on ios and android!
Dialog.show("ios debug", "dateTodayS:"+dateTodayS+", 
dayName:"+dayName+", monthName:"+monthName+", dayDate:"+dayDate+", 
monthNumber:"+monthNumber, "OK", "Cancel");
}
catch(Exception e)
{
_("**warning** cant parse date! "+e.getMessage()+" 
->"+stringDate);
e.printStackTrace();
}

-- 
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 https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/c2286ffa-b149-49aa-85ea-8fc37a69b775%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 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:
>>
>> Thanks, so you're saying I should remove it or set it invisible before 
>> transitioning to new screen?
>>
>> Also the "prepare" call doesnt stop the video player being black, the 
>> controls dont appear either, so instead of a video I just see a black box, 
>> this works fine on emulators and android. 
>>
>> On Friday, March 29, 2019 at 12:45:22 AM UTC+8, Steve Hannah wrote:
>>>
>>> This is likely because during a form transition, it needs to perform a 
>>> lightweight rendering of the outgoing form.  For native peers, this can 
>>> cause some jitter like you're describing.  
>>>
>>> On 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 Monday, March 11, 2019 at 7:17:59 PM UTC+8, Gareth Murfin wrote:
>>>>>
>>>>> thanks steve, will give it a go... reminds me of j2me days :)
>>>>>
>>>>> On Friday, March 8, 2019 at 10:02:44 PM UTC+8, Steve Hannah wrote:
>>>>>>
>>>>>> Actually, upon closer inspection, I see why this is.  On iOS, it 
>>>>>> doesn't "prepare" the media automatically because the act of preparing 
>>>>>> media might disrupt other active media in the App.  You need to call the 
>>>>>> prepare() method on the media if you want the frame and embedded 
>>>>>> controls 
>>>>>> to appear.
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Fri, Mar 8, 2019 at 5:40 AM Steve Hannah <
>>>>>> steve@codenameone.com> wrote:
>>>>>>
>>>>>>> There appears to be an issue there.  If 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/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 email to 
>>>>>>>> codenameone-discussions+unsubscr...@googlegroups.com.
>>>>>>>> Visit this group at 
>>>>>>>> https://groups.google.com/group/codenameone-discussions.
>>>>>>>> To view this discussion on the web visit 
>>>>>>>> https://groups.google.com/d/msgid/codenameone-discussions/a249f5f1-8b53-4767-93d2-391fecd1a4f4%40googlegroups.com
>>>>>>>>  
>>>>>>>> <https://groups.google.com/d/msgid/codenameone-discussions/a249f5f1-8b53-4767-93d2-391fecd1a4f4%40googlegroups.com?utm_medium=email_source=footer>
>>>>>>>> .
>>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> -- 
>>>>>>> Steve Hannah
>>>>>>> Software Developer
>>>>>>> Codename One
>>>>>>> http://www.codenameone.com
>>>>>>>
>>>>>>
>>>>>>
>>>>>> -- 
>>>>>> Steve Hannah
>>>>>> Software Developer
>>>>>> Codename One
>>>>>> http://www.codenameone.com
>>>&g

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:
>
> Thanks, so you're saying I should remove it or set it invisible before 
> transitioning to new screen?
>
> Also the "prepare" call doesnt stop the video player being black, the 
> controls dont appear either, so instead of a video I just see a black box, 
> this works fine on emulators and android. 
>
> On Friday, March 29, 2019 at 12:45:22 AM UTC+8, Steve Hannah wrote:
>>
>> This is likely because during a form transition, it needs to perform a 
>> lightweight rendering of the outgoing form.  For native peers, this can 
>> cause some jitter like you're describing.  
>>
>> On 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 Monday, March 11, 2019 at 7:17:59 PM UTC+8, Gareth Murfin wrote:
>>>>
>>>> thanks steve, will give it a go... reminds me of j2me days :)
>>>>
>>>> On Friday, March 8, 2019 at 10:02:44 PM UTC+8, Steve Hannah wrote:
>>>>>
>>>>> Actually, upon closer inspection, I see why this is.  On iOS, it 
>>>>> doesn't "prepare" the media automatically because the act of preparing 
>>>>> media might disrupt other active media in the App.  You need to call the 
>>>>> prepare() method on the media if you want the frame and embedded controls 
>>>>> to appear.
>>>>>
>>>>>
>>>>>
>>>>> On Fri, Mar 8, 2019 at 5:40 AM Steve Hannah  
>>>>> wrote:
>>>>>
>>>>>> There appears to be an issue there.  If 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/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 email to 
>>>>>>> codenameone-discussions+unsubscr...@googlegroups.com.
>>>>>>> Visit this group at 
>>>>>>> https://groups.google.com/group/codenameone-discussions.
>>>>>>> To view this discussion on the web visit 
>>>>>>> https://groups.google.com/d/msgid/codenameone-discussions/a249f5f1-8b53-4767-93d2-391fecd1a4f4%40googlegroups.com
>>>>>>>  
>>>>>>> <https://groups.google.com/d/msgid/codenameone-discussions/a249f5f1-8b53-4767-93d2-391fecd1a4f4%40googlegroups.com?utm_medium=email_source=footer>
>>>>>>> .
>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>
>>>>>>
>>>>>>
>>>>>> -- 
>>>>>> Steve Hannah
>>>>>> Software Developer
>>>>>> Codename One
>>>>>> http://www.codenameone.com
>>>>>>
>>>>>
>>>>>
>>>>> -- 
>>>>> Steve Hannah
>>>>> Software Developer
>>>>> Codename One
>>>>> http://www.codenameone.com
>>>>>
>>>> -- 
>>> 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 
>>> https://groups.google.com/group/codenameone-discussions.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/codenameone-discussions/29453d77-37f1-4add-8526-50600cf1c48a%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/codenameone-discussions/29453d77-37f1-4add-8526-50600cf1c48a%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> -- 
>> Steve Hannah
>> Software Developer
>> Codename One
>> http://www.codenameone.com
>>
>

-- 
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 https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/cd3b0ca0-75a0-4583-b33a-9b462cc8e794%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 what you would expect Toolbar contains StatusBar, and a 
container with 2 buttons with TitleCommand uuid. 

Now I want the text to be white and the background to be whatever the rest 
of NORTH is. So I tried styling StatusBar and TitleCommand, but none of my 
changes have any affect, I delierately used bright colours so it would be 
easy to notice.

I wonder if its related to having the side menu ?? Ive made an animated gif 
to show the issue properly, please excuse the cracked iphone screen :))) 

Any 
ideas?? https://www.dropbox.com/s/oodfxzropqufjhc/20190329_174059.gif?dl=0




On Friday, March 29, 2019 at 11:22:58 AM UTC+8, Shai Almog wrote:
>
> How did you customize the colors of the title area/form?
> I'm guessing you are seeing one of those there during 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 codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/f02026be-eb12-4466-a733-a461b73aa884%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] MediaPlayer on ios

2019-03-29 Thread Gareth Murfin
Thanks, so you're saying I should remove it or set it invisible before 
transitioning to new screen?

Also the "prepare" call doesnt stop the video player being black, the 
controls dont appear either, so instead of a video I just see a black box, 
this works fine on emulators and android. 

On Friday, March 29, 2019 at 12:45:22 AM UTC+8, Steve Hannah wrote:
>
> This is likely because during a form transition, it needs to perform a 
> lightweight rendering of the outgoing form.  For native peers, this can 
> cause some jitter like you're describing.  
>
> On 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 Monday, March 11, 2019 at 7:17:59 PM UTC+8, Gareth Murfin wrote:
>>>
>>> thanks steve, will give it a go... reminds me of j2me days :)
>>>
>>> On Friday, March 8, 2019 at 10:02:44 PM UTC+8, Steve Hannah wrote:
>>>>
>>>> Actually, upon closer inspection, I see why this is.  On iOS, it 
>>>> doesn't "prepare" the media automatically because the act of preparing 
>>>> media might disrupt other active media in the App.  You need to call the 
>>>> prepare() method on the media if you want the frame and embedded controls 
>>>> to appear.
>>>>
>>>>
>>>>
>>>> On Fri, Mar 8, 2019 at 5:40 AM Steve Hannah  
>>>> wrote:
>>>>
>>>>> There appears to be an issue there.  If 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/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 email to codenameone-discussions+unsubscr...@googlegroups.com
>>>>>> .
>>>>>> Visit this group at 
>>>>>> https://groups.google.com/group/codenameone-discussions.
>>>>>> To view this discussion on the web visit 
>>>>>> https://groups.google.com/d/msgid/codenameone-discussions/a249f5f1-8b53-4767-93d2-391fecd1a4f4%40googlegroups.com
>>>>>>  
>>>>>> <https://groups.google.com/d/msgid/codenameone-discussions/a249f5f1-8b53-4767-93d2-391fecd1a4f4%40googlegroups.com?utm_medium=email_source=footer>
>>>>>> .
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>>
>>>>>
>>>>> -- 
>>>>> Steve Hannah
>>>>> Software Developer
>>>>> Codename One
>>>>> http://www.codenameone.com
>>>>>
>>>>
>>>>
>>>> -- 
>>>> Steve Hannah
>>>> Software Developer
>>>> Codename One
>>>> http://www.codenameone.com
>>>>
>>> -- 
>> 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 
>> https://groups.google.com/group/codenameone-discussions.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/codenameone-discussions/29453d77-37f1-4add-8526-50600cf1c48a%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/codenameone-discussions/29453d77-37f1-4add-8526-50600cf1c48a%40googlegroups.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> -- 
> Steve Hannah
> Software Developer
> Codename One
> http://www.codenameone.com
>

-- 
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 https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/8909f838-b2e8-4c43-b100-d1162a296b10%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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... reminds me of j2me days :)
>
> On Friday, March 8, 2019 at 10:02:44 PM UTC+8, Steve Hannah wrote:
>>
>> Actually, upon closer inspection, I see why this is.  On iOS, it doesn't 
>> "prepare" the media automatically because the act of preparing media might 
>> disrupt other active media in the App.  You need to call the prepare() 
>> method on the media if you want the frame and embedded controls to appear.
>>
>>
>>
>> On Fri, Mar 8, 2019 at 5:40 AM Steve Hannah  
>> wrote:
>>
>>> There appears to be an issue there.  If 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/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 email to codenameone-discussions+unsubscr...@googlegroups.com.
>>>> Visit this group at 
>>>> https://groups.google.com/group/codenameone-discussions.
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/codenameone-discussions/a249f5f1-8b53-4767-93d2-391fecd1a4f4%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/codenameone-discussions/a249f5f1-8b53-4767-93d2-391fecd1a4f4%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>
>>> -- 
>>> Steve Hannah
>>> Software Developer
>>> Codename One
>>> http://www.codenameone.com
>>>
>>
>>
>> -- 
>> Steve Hannah
>> Software Developer
>> Codename One
>> http://www.codenameone.com
>>
>

-- 
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 https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/29453d77-37f1-4add-8526-50600cf1c48a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 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 https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/d54ffd53-6ab7-42e9-ad39-b28d58b0538c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 
revisit the form, but I expected it to download then set automatically, 
should 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.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/06d1bcf7-dd7c-4b0f-8a67-354f5301c80e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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)
{  
cachedForm.show();
return;
}

this works but it does not show the changes I made to the form, for example 
most of my forms are full of empty containers, at run time I use 
createContainer to swap in various things I have designed in the gui 
editor, but none of them appear on the cached form.

Did I do it wrong somehow ? 

On Wednesday, March 6, 2019 at 11:58:07 AM UTC+8, Shai Almog wrote:
>
> start() literally caches the last Form. You don't need to throw away the 
> Form objects.
>

-- 
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 https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/6642b67d-f6b4-4049-9f51-3945907ade54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 to scan the sources for 
> image names. 
>

-- 
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 https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/c8fb8874-ae06-4c87-bdc9-a88a5f7a19ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 
in cn1 to help me find this? So far all my attempts to do the maths have 
failed and not a single answer on the web has worked. My maths is not 
exactly AAA, so I am unable to solve this for now!.. Any thoughts would be 
good. Thanks guys, I think its actually quite a tough one though ;-(

-- 
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 https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/5eda5fa0-f379-40d4-aea3-d025977f534d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 proguard already did this a 
> decade ago? I mean if the compiler is even slightly smart and a variable is 
> declared *final*, then its not really runtime state I would have thought 
> and therefore should be removed.  Would it be the same if you did something 
> like:
>
> if (1==1)
> {
>  _("hello");//this surely would be redundant code and removed?
>  doSomeWork();//this surely would be redundant code and removed?
> }
>
> On Wednesday, March 20, 2019 at 7:50:41 PM UTC+8, Steve Hannah wrote:
>>
>> Build-time pruning does not make use of any runtime state for determining 
>> code paths.  Therefore changing the value of Prefs.DEBUG would have no 
>> effect.  
>>
>> On Wed, Mar 20, 2019 at 1:31 AM Gareth Murfin  
>> wrote:
>>
>>> 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, would this mean the method was stripped out during compilation? On 
>>> both iOS/Android? Or not ? It's just that during dev I really need A LOT of 
>>> print outs to follow my code, but then for release obviously I dont want 
>>> any. In the old J2ME days I used to do a find and replace on all calls to 
>>> _("hello"); etc before release, but im wondering if that's necessary 
>>> anymore? 
>>>
>>> I assume if its not stripped out during compilation then each call even 
>>> if it really does nothing may add up (i do a lot in loops etc) to 
>>> eventually slow certain things down (even by X many ms). But from what I 
>>> understand modern java compilers would remove it since it really doesnt do 
>>> anything if debug is 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 codenameone-discussions+unsubscr...@googlegroups.com.
>>> Visit this group at 
>>> https://groups.google.com/group/codenameone-discussions.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/codenameone-discussions/da3337af-e83e-4c7d-bdbf-487375537853%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/codenameone-discussions/da3337af-e83e-4c7d-bdbf-487375537853%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> -- 
>> Steve Hannah
>> Software Developer
>> Codename One
>> http://www.codenameone.com
>>
>

-- 
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 https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/a529f339-8380-453a-9dce-c1e2a2ffdc61%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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, 
would this mean the method was stripped out during compilation? On both 
iOS/Android? Or not ? It's just that during dev I really need A LOT of 
print outs to follow my code, but then for release obviously I dont want 
any. In the old J2ME days I used to do a find and replace on all calls to 
_("hello"); etc before release, but im wondering if that's necessary 
anymore? 

I assume if its not stripped out during compilation then each call even if 
it really does nothing may add up (i do a lot in loops etc) to eventually 
slow certain things down (even by X many ms). But from what I understand 
modern java compilers would remove it since it really doesnt do anything if 
debug is 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 codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/da3337af-e83e-4c7d-bdbf-487375537853%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] MediaPlayer on ios

2019-03-11 Thread Gareth Murfin
thanks steve, will give it a go... reminds me of j2me days :)

On Friday, March 8, 2019 at 10:02:44 PM UTC+8, Steve Hannah wrote:
>
> Actually, upon closer inspection, I see why this is.  On iOS, it doesn't 
> "prepare" the media automatically because the act of preparing media might 
> disrupt other active media in the App.  You need to call the prepare() 
> method on the media if you want the frame and embedded controls to appear.
>
>
>
> On Fri, Mar 8, 2019 at 5:40 AM Steve Hannah  > wrote:
>
>> There appears to be an issue there.  If 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/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 email to codenameone-discussions+unsubscr...@googlegroups.com 
>>> .
>>> Visit this group at 
>>> https://groups.google.com/group/codenameone-discussions.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/codenameone-discussions/a249f5f1-8b53-4767-93d2-391fecd1a4f4%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/codenameone-discussions/a249f5f1-8b53-4767-93d2-391fecd1a4f4%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> -- 
>> Steve Hannah
>> Software Developer
>> Codename One
>> http://www.codenameone.com
>>
>
>
> -- 
> Steve Hannah
> Software Developer
> Codename One
> http://www.codenameone.com
>

-- 
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 https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/fef210f3-d7cf-49a1-8530-079a59c718c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/a249f5f1-8b53-4767-93d2-391fecd1a4f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 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 https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/3ffdbf21-9ecf-40f4-ac41-3faaae8da365%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 them 
all ?

-- 
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 https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/3312fb8b-822f-4b0e-bd93-5e4059fa0f6a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 kind of like onResume in Android, only onCreate 
does the hard work, and only gets called first time its made. 

-- 
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 https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/464a78b7-8a5f-4a09-9b6d-6451746b38aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 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 https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/4944fdd9-6703-43fa-b3bf-3eb87491f6da%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 actually appearing correctly?

-- 
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 https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/bcb4b1f7-ff77-4e6e-a9ab-3560d05c717d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


  1   2   3   4   5   >