[codenameone-discussions] Re: Avoid calling localNotificationReceived on iOS automatically

2021-06-14 Thread Ivan
Hi, 
yes, in that case it is invoked properly. 


Dátum: piatok 11. júna 2021, čas: 4:34:35 UTC+2, odosielateľ: Shai Almog

> Hi,
> if you kill the app and then click the notification will the 
> localNotificationReceived be invoked?
>
> On Friday, June 11, 2021 at 12:06:35 AM UTC+3 Ivan wrote:
>
>> Hi guys,
>>
>> I'm using local notifications in my application. On android everything 
>> works well.
>> I have troubles with iOS. When the application is active and notification 
>> is scheduled and sent it's immediately received (localNotificationReceived 
>> is called). 
>>
>> I tried to use LocalNotification.setForeground(true) and to trap the 
>> automatic call of localNotificationReceived. In this case the notification 
>> is displayed in notification area but clicking on it does not call  
>> localNotificationReceived anymore (because it was received already, 
>> probably)
>>
>> Is it possible to disable automatic call of localNotificationReceived() 
>> in iOS when application is active? 
>>
>> thanks
>>
>> Ivan
>>
>

-- 
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/71087bb8-5e21-43dd-9662-dd2a99a040dcn%40googlegroups.com.


[codenameone-discussions] Avoid calling localNotificationReceived on iOS automatically

2021-06-10 Thread Ivan
Hi guys,

I'm using local notifications in my application. On android everything 
works well.
I have troubles with iOS. When the application is active and notification 
is scheduled and sent it's immediately received (localNotificationReceived 
is called). 

I tried to use LocalNotification.setForeground(true) and to trap the 
automatic call of localNotificationReceived. In this case the notification 
is displayed in notification area but clicking on it does not call  
localNotificationReceived anymore (because it was received already, 
probably)

Is it possible to disable automatic call of localNotificationReceived() in 
iOS when application is active? 

thanks

Ivan

-- 
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/f51a4d9b-216c-4b39-a39a-86f9d41deee9n%40googlegroups.com.


[codenameone-discussions] List item style not rendered

2021-05-02 Thread Ivan
Hi guys,
I'm usig com.codename1.ui.List with items of type Multibutton and in 
renderer I'm setting color of "Line1".text  based on data.
When list is shown my style is not applied. I have to scroll the list the 
style to appear.
I tried to revalidate/repaint in various places and the workaround: set 
selected to index 0 and scrollToSelected but this is ignored until I change 
index beyond current screen and it really scrolls (which is not acceptable)
How to force the list to revalidate/repaint my styles?

Tested in simulator.

Thanks

Ivan

-- 
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/13ff9cbc-b7f0-4d04-b972-14f48e1de821n%40googlegroups.com.


[codenameone-discussions] Chart is moving with side menu

2020-12-02 Thread Ivan

Hi guys,
when I swiping left side menu to open it, underlying chart component reacts 
also to drag move a moves verticaly and horizontaly too. Here is video: 
https://www.dropbox.com/s/38fnea1m5zilgfa/calendar.mp4?dl=0
I cannot get rid of this. How to fix the chart pls?
(tested in simulator and Android device)
BR
Ivan

-- 
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/80fcf297-b0c9-4dcf-8e2e-9dad0c9d5b12n%40googlegroups.com.


[codenameone-discussions] Re: Is side menu open?

2020-12-01 Thread Ivan
Hi, that would be nice :)

Dátum: streda 2. decembra 2020, čas: 4:23:56 UTC+1, odosielateľ: Shai Almog

> Hi,
> this should be the default behavior of the menu back command. At least 
> historically I think we had some code to deal with folding the menu when 
> the back command was pressed, we should probably update that.
> On Tuesday, December 1, 2020 at 10:02:30 AM UTC+2 Ivan wrote:
>
>> Hi,
>> I'm implementing back command for soft key (back) on main form of 
>> application and when the menu is open the back command should close it 
>> otherwise it shlould exit the application.
>>
>> Dátum: utorok 1. decembra 2020, čas: 3:53:26 UTC+1, odosielateľ: Shai 
>> Almog
>>
>>> Hi,
>>> I thought we have an API for that but we don't. These are old APIs from 
>>> previous iterations of menus. What are you trying to accomplish that 
>>> requires this API?
>>>
>>> On Tuesday, December 1, 2020 at 1:49:36 AM UTC+2 Ivan wrote:
>>>
>>>> Hi guys,
>>>> how can I find out thar left side menu is open ?
>>>> I tried isMenuOpen, isMenuShowing on Form.gerToolBar().getMenuBar() but 
>>>> nothing works for me. The only solution was to check if sideMenuDialog 
>>>> exists in form's component tree, but it's really ugly solution.
>>>> Thanks
>>>> Ivan
>>>>
>>>

-- 
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/3f0565cc-654f-4ee3-a059-91b4a7441aa9n%40googlegroups.com.


[codenameone-discussions] Re: Is side menu open?

2020-12-01 Thread Ivan
Hi,
I'm implementing back command for soft key (back) on main form of 
application and when the menu is open the back command should close it 
otherwise it shlould exit the application.

Dátum: utorok 1. decembra 2020, čas: 3:53:26 UTC+1, odosielateľ: Shai Almog

> Hi,
> I thought we have an API for that but we don't. These are old APIs from 
> previous iterations of menus. What are you trying to accomplish that 
> requires this API?
>
> On Tuesday, December 1, 2020 at 1:49:36 AM UTC+2 Ivan wrote:
>
>> Hi guys,
>> how can I find out thar left side menu is open ?
>> I tried isMenuOpen, isMenuShowing on Form.gerToolBar().getMenuBar() but 
>> nothing works for me. The only solution was to check if sideMenuDialog 
>> exists in form's component tree, but it's really ugly solution.
>> Thanks
>> Ivan
>>
>

-- 
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/febf6c3e-2e29-4617-8b41-4b8ff2b5d71en%40googlegroups.com.


[codenameone-discussions] Is side menu open?

2020-11-30 Thread Ivan
Hi guys,
how can I find out thar left side menu is open ?
I tried isMenuOpen, isMenuShowing on Form.gerToolBar().getMenuBar() but 
nothing works for me. The only solution was to check if sideMenuDialog 
exists in form's component tree, but it's really ugly solution.
Thanks
Ivan

-- 
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/68c2be60-332b-4176-8847-391585e10576n%40googlegroups.com.


[codenameone-discussions] Re: Table layout with vertical and horizontal span

2020-11-15 Thread Ivan
Yes I understand. As I don't need the last row I need to make it thin 
enough to be "invisible" in full screen. That's the only reason I did it 1% 
high. Now it looks OK.

Dátum: sobota 14. novembra 2020, čas: 6:51:03 UTC+1, odosielateľ: Shai Almog

> This worked because you added 4 buttons. It has nothing to do with the 1 
> percent height. It has everything to do with the fact that you created 4 
> columns. Before that column 3 and 4 didn't "really" exist since nothing was 
> added there.
>
> On Friday, November 13, 2020 at 10:45:43 AM UTC+2 Ivan wrote:
>
>> the code is the same, I've just added one row and tile 1,3 appeared:
>>
>> Form hi = new Form("Table layout test");
>> TableLayout tl = new TableLayout(2,4);
>> hi.setLayout(tl);
>> hi.add(new Button("1,1"));
>> hi.add(new Button("1,2"));
>> TableLayout.Constraint constr = tl.createConstraint();
>> constr.horizontalSpan(2);
>> constr.verticalSpan(2);
>> hi.add(constr, new Button("1,3"));
>> hi.add(new Button("2,1"));
>> hi.add(new Button("2,2"));
>> 
>> 
>>
>>
>>
>>
>> *TableLayout.Constraint constr2 = tl.createConstraint();
>> constr2.setHeightPercentage(1);hi.add(constr2, new Button(" 
>> "));hi.add(new Button(" "));hi.add(new Button(" "));
>> hi.add(new Button(" "));*
>>
>> hi.show();
>>
>> Dátum: piatok 13. novembra 2020, čas: 5:13:19 UTC+1, odosielateľ: Shai 
>> Almog
>>
>>> I'm actually surprised this works for you. From the code it looks that 
>>> the columns would be broken not the rows but maybe this is different from 
>>> the actual code you're using.
>>>
>>> On Friday, November 13, 2020 at 12:03:07 AM UTC+2 Ivan wrote:
>>>
>>>> I added one extra row of height 1% to make horizontal span working and 
>>>> it looks quite good. 
>>>> If there is no real solution I can use this dirty workaround.
>>>>
>>>> Dátum: štvrtok 12. novembra 2020, čas: 10:15:12 UTC+1, odosielateľ: Ivan
>>>>
>>>>> what options do I have to display it? I tried to revalidate after all 
>>>>> cell are populated but without effect
>>>>>
>>>>> Dátum: štvrtok 12. novembra 2020, čas: 3:33:28 UTC+1, odosielateľ: 
>>>>> Shai Almog
>>>>>
>>>>>> Hi,
>>>>>> I think the horizontal span is problematic here. You're spanning two 
>>>>>> columns but they don't have a size.
>>>>>> Once you span your setting to the spanned column size are removed. 
>>>>>> That's OK if you have other cells within the column the size can be 
>>>>>> calculated but if you span over columns where there's no "regular" cell 
>>>>>> then we have no way of knowing what size of column you wanted. Bot 
>>>>>> columns 
>>>>>> end up being 0 width and aren't shown.
>>>>>>
>>>>>> On Thursday, November 12, 2020 at 2:24:54 AM UTC+2 Ivan wrote:
>>>>>>
>>>>>>> Hi guys,
>>>>>>> when I use vertical and horizontal span in table layout (both in one 
>>>>>>> constraint) the component is not rendered. When I remove one or another 
>>>>>>> then component appears.
>>>>>>> In example below the Button("1,3") is not rendered. What's wrong 
>>>>>>> with my code pls?
>>>>>>>
>>>>>>> Form hi = new Form("Table layout test");
>>>>>>> TableLayout tl = new TableLayout(2,4);
>>>>>>> hi.setLayout(tl);
>>>>>>> hi.add(new Button("1,1"));
>>>>>>> hi.add(new Button("1,2"));
>>>>>>> TableLayout.Constraint constr = tl.createConstraint();
>>>>>>> constr.horizontalSpan(2);
>>>>>>> constr.verticalSpan(2);
>>>>>>> hi.add(constr, new Button("1,3"));
>>>>>>> hi.add(new Button("2,1"));
>>>>>>> hi.add(new Button("2,2"));
>>>>>>> hi.show();
>>>>>>>
>>>>>>> Tested in simulator.
>>>>>>>
>>>>>>> Thanks
>>>>>>> Ivan
>>>>>>>
>>>>>>

-- 
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/fe1a1499-0afb-457b-acfa-21080dcf3c89n%40googlegroups.com.


[codenameone-discussions] Re: Table layout with vertical and horizontal span

2020-11-13 Thread Ivan
the code is the same, I've just added one row and tile 1,3 appeared:

Form hi = new Form("Table layout test");
TableLayout tl = new TableLayout(2,4);
hi.setLayout(tl);
hi.add(new Button("1,1"));
hi.add(new Button("1,2"));
TableLayout.Constraint constr = tl.createConstraint();
constr.horizontalSpan(2);
constr.verticalSpan(2);
hi.add(constr, new Button("1,3"));
hi.add(new Button("2,1"));
hi.add(new Button("2,2"));






*TableLayout.Constraint constr2 = tl.createConstraint();
constr2.setHeightPercentage(1);hi.add(constr2, new Button(" 
"));hi.add(new Button(" "));hi.add(new Button(" "));
hi.add(new Button(" "));*
   
hi.show();

Dátum: piatok 13. novembra 2020, čas: 5:13:19 UTC+1, odosielateľ: Shai Almog

> I'm actually surprised this works for you. From the code it looks that the 
> columns would be broken not the rows but maybe this is different from the 
> actual code you're using.
>
> On Friday, November 13, 2020 at 12:03:07 AM UTC+2 Ivan wrote:
>
>> I added one extra row of height 1% to make horizontal span working and it 
>> looks quite good. 
>> If there is no real solution I can use this dirty workaround.
>>
>> Dátum: štvrtok 12. novembra 2020, čas: 10:15:12 UTC+1, odosielateľ: Ivan
>>
>>> what options do I have to display it? I tried to revalidate after all 
>>> cell are populated but without effect
>>>
>>> Dátum: štvrtok 12. novembra 2020, čas: 3:33:28 UTC+1, odosielateľ: Shai 
>>> Almog
>>>
>>>> Hi,
>>>> I think the horizontal span is problematic here. You're spanning two 
>>>> columns but they don't have a size.
>>>> Once you span your setting to the spanned column size are removed. 
>>>> That's OK if you have other cells within the column the size can be 
>>>> calculated but if you span over columns where there's no "regular" cell 
>>>> then we have no way of knowing what size of column you wanted. Bot columns 
>>>> end up being 0 width and aren't shown.
>>>>
>>>> On Thursday, November 12, 2020 at 2:24:54 AM UTC+2 Ivan wrote:
>>>>
>>>>> Hi guys,
>>>>> when I use vertical and horizontal span in table layout (both in one 
>>>>> constraint) the component is not rendered. When I remove one or another 
>>>>> then component appears.
>>>>> In example below the Button("1,3") is not rendered. What's wrong with 
>>>>> my code pls?
>>>>>
>>>>> Form hi = new Form("Table layout test");
>>>>> TableLayout tl = new TableLayout(2,4);
>>>>> hi.setLayout(tl);
>>>>> hi.add(new Button("1,1"));
>>>>> hi.add(new Button("1,2"));
>>>>> TableLayout.Constraint constr = tl.createConstraint();
>>>>> constr.horizontalSpan(2);
>>>>> constr.verticalSpan(2);
>>>>> hi.add(constr, new Button("1,3"));
>>>>> hi.add(new Button("2,1"));
>>>>> hi.add(new Button("2,2"));
>>>>> hi.show();
>>>>>
>>>>> Tested in simulator.
>>>>>
>>>>> Thanks
>>>>> Ivan
>>>>>
>>>>

-- 
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/2c01930a-89f1-48e3-b0c3-3b38c6a8413bn%40googlegroups.com.


[codenameone-discussions] Re: Table layout with vertical and horizontal span

2020-11-12 Thread Ivan
I added one extra row of height 1% to make horizontal span working and it 
looks quite good. 
If there is no real solution I can use this dirty workaround.

Dátum: štvrtok 12. novembra 2020, čas: 10:15:12 UTC+1, odosielateľ: Ivan

> what options do I have to display it? I tried to revalidate after all cell 
> are populated but without effect
>
> Dátum: štvrtok 12. novembra 2020, čas: 3:33:28 UTC+1, odosielateľ: Shai 
> Almog
>
>> Hi,
>> I think the horizontal span is problematic here. You're spanning two 
>> columns but they don't have a size.
>> Once you span your setting to the spanned column size are removed. That's 
>> OK if you have other cells within the column the size can be calculated but 
>> if you span over columns where there's no "regular" cell then we have no 
>> way of knowing what size of column you wanted. Bot columns end up being 0 
>> width and aren't shown.
>>
>> On Thursday, November 12, 2020 at 2:24:54 AM UTC+2 Ivan wrote:
>>
>>> Hi guys,
>>> when I use vertical and horizontal span in table layout (both in one 
>>> constraint) the component is not rendered. When I remove one or another 
>>> then component appears.
>>> In example below the Button("1,3") is not rendered. What's wrong with my 
>>> code pls?
>>>
>>> Form hi = new Form("Table layout test");
>>> TableLayout tl = new TableLayout(2,4);
>>> hi.setLayout(tl);
>>> hi.add(new Button("1,1"));
>>> hi.add(new Button("1,2"));
>>> TableLayout.Constraint constr = tl.createConstraint();
>>> constr.horizontalSpan(2);
>>> constr.verticalSpan(2);
>>> hi.add(constr, new Button("1,3"));
>>> hi.add(new Button("2,1"));
>>> hi.add(new Button("2,2"));
>>> hi.show();
>>>
>>> Tested in simulator.
>>>
>>> Thanks
>>> Ivan
>>>
>>

-- 
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/52ab8373-041e-4b36-a718-944c1a9dc334n%40googlegroups.com.


[codenameone-discussions] Re: Dashboard

2020-11-12 Thread Ivan
Thanks Dave.
I resolved my problem right now: My app is very old created using old GUI 
builder.
Checkbox "Absolute center" was checked in my main Form's border layout. 
That's the reason why my dashboard hes been not able to fill whole screen.
Despite I specified CENTER on add() method, it was always "Absolute center".

Dátum: štvrtok 12. novembra 2020, čas: 21:00:28 UTC+1, odosielateľ: 
daved...@gmail.com

> Trying to get the behavior you want out of java layouts is a sysyphian 
> task.  I recommend you give up
> and arrange your windows manually the way you want.  When you're only 
> dealing with a few windows,
> it's not that hard.
>
> On Thursday, November 12, 2020 at 9:53:16 AM UTC-8 Ivan wrote:
>
>> Hi guys,
>> I'm trying to create system of database configurable dashboards but I'm 
>> not able to setup layout to suite my needs.
>> How can I fill whole center area of Border layout with container acting 
>> like a dashboard with tiles of different sizes arranged in grid/table 
>> layout.
>> I always end up with preferred sizes of components.
>> Here is small sample and screenshot.
>>Container c = new Container(new GridLayout(1,2));
>> Container c2 = new Container(new GridLayout(2,2));
>> c2.add(new Button("1,1"));
>> c2.add(new Button("1,2"));
>> c2.add(new Button("2,1"));
>> c2.add(new Button("2,2"));
>>   
>> c.add(c2);
>> c.add(new Button("1,3"));
>>
>> f.add(BorderLayout.CENTER, c);
>>
>>

-- 
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/06639752-1cf5-445c-a915-4136bb85b86bn%40googlegroups.com.


[codenameone-discussions] Re: Table layout with vertical and horizontal span

2020-11-12 Thread Ivan
what options do I have to display it? I tried to revalidate after all cell 
are populated but without effect

Dátum: štvrtok 12. novembra 2020, čas: 3:33:28 UTC+1, odosielateľ: Shai 
Almog

> Hi,
> I think the horizontal span is problematic here. You're spanning two 
> columns but they don't have a size.
> Once you span your setting to the spanned column size are removed. That's 
> OK if you have other cells within the column the size can be calculated but 
> if you span over columns where there's no "regular" cell then we have no 
> way of knowing what size of column you wanted. Bot columns end up being 0 
> width and aren't shown.
>
> On Thursday, November 12, 2020 at 2:24:54 AM UTC+2 Ivan wrote:
>
>> Hi guys,
>> when I use vertical and horizontal span in table layout (both in one 
>> constraint) the component is not rendered. When I remove one or another 
>> then component appears.
>> In example below the Button("1,3") is not rendered. What's wrong with my 
>> code pls?
>>
>> Form hi = new Form("Table layout test");
>> TableLayout tl = new TableLayout(2,4);
>> hi.setLayout(tl);
>> hi.add(new Button("1,1"));
>> hi.add(new Button("1,2"));
>> TableLayout.Constraint constr = tl.createConstraint();
>> constr.horizontalSpan(2);
>> constr.verticalSpan(2);
>> hi.add(constr, new Button("1,3"));
>> hi.add(new Button("2,1"));
>> hi.add(new Button("2,2"));
>> hi.show();
>>
>> Tested in simulator.
>>
>> Thanks
>> Ivan
>>
>

-- 
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/d11fa187-efa3-4e6a-872f-f80bed1ab867n%40googlegroups.com.


[codenameone-discussions] Table layout with vertical and horizontal span

2020-11-11 Thread Ivan
Hi guys,
when I use vertical and horizontal span in table layout (both in one 
constraint) the component is not rendered. When I remove one or another 
then component appears.
In example below the Button("1,3") is not rendered. What's wrong with my 
code pls?

Form hi = new Form("Table layout test");
TableLayout tl = new TableLayout(2,4);
hi.setLayout(tl);
hi.add(new Button("1,1"));
hi.add(new Button("1,2"));
TableLayout.Constraint constr = tl.createConstraint();
constr.horizontalSpan(2);
constr.verticalSpan(2);
hi.add(constr, new Button("1,3"));
hi.add(new Button("2,1"));
hi.add(new Button("2,2"));
hi.show();

Tested in simulator.

Thanks
Ivan

-- 
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/1b44a04e-89e0-427c-946a-d30362f0addan%40googlegroups.com.


[codenameone-discussions] Re: closeSideMenu vs overflow menu button

2020-10-25 Thread Ivan
No, this is not my case.
I don't use setOnTopSideMenu(false)
and I alredy call setAllowEnableLayoutOnPaint(true).

Base on your reply I experimented with setAllowEnableLayoutOnPaint(true) 
and I found out, that when I break the code on this istruction (in 
debugger) and then let it continue it works as expected.
But when it runs normaly it does not work (the button still disappeares).
It seems to be some kind of race condition, but I'm not able to resolve it 


Dátum: sobota 24. októbra 2020, čas: 7:36:36 UTC+2, odosielateľ: Shai Almog

> Hi,
> could it be related to this: 
> https://stackoverflow.com/questions/64503017/the-menu-button-disappear
>
> On Friday, October 23, 2020 at 10:26:23 PM UTC+3 Ivan wrote:
>
>> Hi guys,
>>
>> I started to use left side menu in my application and I have following 
>> issue.
>> Whenever Toolbar.closeSideMenu (or closeLeftSideMenu) method is called 
>> (either programatically or clicking outside the menu to close it) the 
>> overflow menu button disappeares (and back button sometimes too)
>> Using component browser I found out that button is still present but has 
>> zero size.
>> I need to call Toobar.revalidate() to show it again.
>>
>> Is it bug or how can I get rid of this behavior?
>>
>> Thanks
>> Ivan
>>
>> Tested in simulator and android device too (Xiaomi Redmi Note 6 Pro, 
>> Android 9) 
>>
>>

-- 
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/a0311f32-0122-4271-ba9f-b3c293482fc6n%40googlegroups.com.


[codenameone-discussions] closeSideMenu vs overflow menu button

2020-10-23 Thread Ivan
Hi guys,

I started to use left side menu in my application and I have following 
issue.
Whenever Toolbar.closeSideMenu (or closeLeftSideMenu) method is called 
(either programatically or clicking outside the menu to close it) the 
overflow menu button disappeares (and back button sometimes too)
Using component browser I found out that button is still present but has 
zero size.
I need to call Toobar.revalidate() to show it again.

Is it bug or how can I get rid of this behavior?

Thanks
Ivan

Tested in simulator and android device too (Xiaomi Redmi Note 6 Pro, 
Android 9) 

-- 
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/8b4b4704-dac1-4520-8340-87f60eab70dbn%40googlegroups.com.


[codenameone-discussions] Re: Self-signed certificate support

2020-03-13 Thread Ivan
yes, thank you, and one additional link for iOS 10+ if someone will have 
the same problem:
https://ios.developreference.com/article/15026508/In+2017%2c+how+should+we+handle+LAN+requests+without+HTTPS+in+respect+to+ATS+settings%3f

-- 
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/b42b1371-901f-4f71-9d9a-a3a5cb45956d%40googlegroups.com.


[codenameone-discussions] Re: Self-signed certificate support

2020-03-12 Thread Ivan
how do you mean it pls? iOS is mandatory to use only HTTPS requests, how 
can I achieve it with manual encryption?

-- 
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/2dc3dace-2bed-4a59-86c3-e5cc9086828c%40googlegroups.com.


[codenameone-discussions] Self-signed certificate support

2020-03-11 Thread Ivan
Hi guys, I cannot find clear answer if CN1 apps support self-signed server 
certificates.
I need to use app inside company against the server with private IP only 
(on LAN)
I found some documentation how to make device trust to self-signed 
certificate but cannot make it working with CN1 app.

Is it possible to setup CN1 app on iOS (and Adnroid) working with server 
installed with self-signed SSL certificate?

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/4a00c818-3833-44d7-b84b-a4439b89aed5%40googlegroups.com.


[codenameone-discussions] Re: UPDATE with ORDER BY stopped working

2020-03-03 Thread Ivan
hmm, that's strange then because when I attach to DB with sqlite client (DB 
Browser for SQLite) the statement runs without any problem 

Dňa utorok, 3. marca 2020 3:18:49 UTC+1 Shai Almog napísal(a):
>
> Hi,
> we don't implement the DB. The SQL is sent directly to the native 
> implementation and we didn't change the native implementation in the 
> simulator.
> Google might have updated sqlite with an OS update but we didn't.
>

-- 
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/16c84f1c-dec6-4274-86c8-63aeb790d708%40googlegroups.com.


[codenameone-discussions] UPDATE with ORDER BY stopped working

2020-03-02 Thread Ivan
Hi guys,
I have UPDATE sql statement with ORDER BY in my app and it stopped working 
(in simulator and in android device too)
Is there any change in DB implementation which can cause such a behavior?

This is my statement: 
String[] params = new String[2];
params[0] = iduser;
params[1] = fsname;
db.execute("UPDATE TSUSET SET FMSETT = FMSETT + 1 WHERE (IDUSER = ? OR 
IDUSER = 'ALL') and FSNAME= ? ORDER BY CASE IDUSER WHEN 'ALL' THEN 2 ELSE 1 
END LIMIT 1", params);

params are correctly entered

Previously it was working but now I'm getting error: syntax error near ORDER

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/b50f5b25-5cf8-4632-9229-869ca777e3e0%40googlegroups.com.


[codenameone-discussions] Re: Many issues for builds after 10 Jan 2020

2020-01-21 Thread Ivan
 My app has also similar problems. I have to call revalidate() on places 
where the app previously repaint automatically and on other places I have 
to replace repaint() with revalidate() to repaint the form.

But I found this post and calling setAllowEnableLayoutOnPaint(true) 
resolved my issues ... for now
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/6f733406-0434-4e0b-a8b5-0e52ec52ac62%40googlegroups.com.


[codenameone-discussions] Re: Native time picker OK button issue

2019-05-11 Thread Ivan
Thanks Kandy for quick response.
I removed the line, but still does not 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.
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/3a19a603-0b37-4386-9437-6467c7dc3ac5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Native time picker OK button issue

2019-05-11 Thread Ivan
I'm using time picker as follows
this.valueTimeText = new Picker();
this.valueTimeText.setType(Display.PICKER_TYPE_TIME);
this.valueTimeText.setDate(null);

it displays native iOS picker and when I change the value I hit OK. The 
value is overtaken to the destination field but picker remains visible. It 
does not react on Cancel button and when I hit OK again application freezes 
with white screen, see attachment.
What should be wrong with this component. (with light weight version it 
works ok)

[image: unnamed.jpg]


IDE: Eclispe
Desktop OS: Ubuntu 16.04
Simulator 
Device Iphone SE 12.2

-- 
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/afd62da9-c07e-4389-a4bc-31a4e70a6d49%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] iOS build error: _com_codename1_impl_ios_IOSNative_sqlCursorNullValueAtColumn___long_int_R_boolean

2019-05-10 Thread Ivan
Hi guys,

I'm trying to rebuild my app for iOS but I'm getting this error:

Undefined symbols for architecture arm64:
  
"_com_codename1_impl_ios_IOSNative_sqlCursorNullValueAtColumn___long_int_R_boolean",
 
referenced from:
  
_com_codename1_impl_ios_DatabaseImpl_CursorImpl_getBlob___int_R_byte_1ARRAY 
in com_codename1_impl_ios_DatabaseImpl_CursorImpl.o
  
_com_codename1_impl_ios_DatabaseImpl_CursorImpl_getDouble___int_R_double in 
com_codename1_impl_ios_DatabaseImpl_CursorImpl.o
  
_com_codename1_impl_ios_DatabaseImpl_CursorImpl_getFloat___int_R_float in 
com_codename1_impl_ios_DatabaseImpl_CursorImpl.o
  
_com_codename1_impl_ios_DatabaseImpl_CursorImpl_getInteger___int_R_int in 
com_codename1_impl_ios_DatabaseImpl_CursorImpl.o
  _com_codename1_impl_ios_DatabaseImpl_CursorImpl_getLong___int_R_long 
in com_codename1_impl_ios_DatabaseImpl_CursorImpl.o
  
_com_codename1_impl_ios_DatabaseImpl_CursorImpl_getShort___int_R_short in 
com_codename1_impl_ios_DatabaseImpl_CursorImpl.o
  
_com_codename1_impl_ios_DatabaseImpl_CursorImpl_getString___int_R_java_lang_String
 
in com_codename1_impl_ios_DatabaseImpl_CursorImpl.o
  ...
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see 
invocation)

** ARCHIVE FAILED **


The following build commands failed:
Ld 
/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcmgn/T/build4225499378208569652xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/BRMobile/InstallationBuildProductsLocation/Applications/BRMobile.app/BRMobile
 
normal arm64
(1 failure)
Process return code is 65
Failed xcodebuild step

How to resolve this issue?

IDE: Eclipse
Desktop OS: Ubuntu 16.04
Simulator 
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.
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/00ae9ad4-c40f-49ed-80dc-ac70e58fc200%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: long press in Javascript in browser component

2019-02-08 Thread Ivan
Javascript:

$(document).ready(function() {

$('#calendar').fullCalendar({
  theme: true   ,
  defaultView: 'month',
  header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaDay'
},
editable: false,
eventLimit: true, // allow "more" link when too many events
events: loadEvents,
  height: "parent",
  locale: "sk",
  dayClick: dayClick,
  eventAfterAllRender: attachLongPress,
  eventClick: eventClick,
  eventRender: eventRender,
  eventRenderWait: 100,
  defaultTimedEventDuration:"00:15:00"
  });
  });

  var attachLongPress = function(view) {
if (view.name === 'agendaDay') {
  var date = view.start.format('-MM-DD');
  var tds = $('.fc-slats .ui-widget-content').not('.fc-axis');
  tds.longpress(function(evt) {
var dateWs = date + " " + evt.target.parentElement.attributes[
'data-time'].value;
log('Create event: ' + dateWs);
createNewEvent(dateWs)
  }, undefined, 1000);
} else
if (view.name === 'month') {
  var tds = $('td.fc-day.ui-widget-content');
  tds.longpress(function(evt) {
longPress = true;
var dateWs = evt.target.attributes['data-date'].value;
log('Create event: ' + dateWs);
createNewEvent(dateWs);
evt.stopPropagation();
evt.preventDefault();
  }, undefined, 1000);
}
  };


Java code:

public JSCalendarFrame(CalendarData dataProvider, TsviewExt view, final 
ListContainer lc, Date activeDate,
int scrollToY) {
this.dataProvider = dataProvider;
this.view = view;
this.lc = lc;

setLayout(new BorderLayout());
this.activeDate = (activeDate == null ? new Date() : activeDate);
createBrowserComponent();
String url = getCalendarUrl();
bc.setURL(url);
setupJSCallbacks();
Log.p("Callbacks", Log.ERROR);
revalidate();

}


   private void createBrowserComponent() {
this.bc = new BrowserComponent();
this.bc.setProperty("AllowFileAccessFromFileURLs", Boolean.TRUE);
this.bc.setProperty("AllowUniversalAccessFromFileURLs", Boolean.TRUE
);
this.add(BorderLayout.CENTER, bc);
bc.addWebEventListener("onLoad", new ActionListener() {
public void actionPerformed(ActionEvent evt) {
Log.p("onLoad", Log.DEBUG);
setupJSCallbacks();
bc.execute("refreshCalendar()");
}
});
}


private String getCalendarUrl() {
   
String home = DocumentHelper.getDefaultDataDirectory();
if (!home.startsWith("file://")) {
home = "file://" + home;
}
return home + "calendar/calendar.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.
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/a693e1eb-7533-4562-8512-7289c0936dd6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] long press in Javascript in browser component

2019-02-07 Thread Ivan
Hi guys,

I embedded https://fullcalendar.io/ into my application using cn1 
BrowserComponent and I added longpress event handling 
using https://github.com/vaidik/jquery-longpress (to create task in 
calendar)
Everything worked ok.
After longer time I want to create new version of the application but this 
longpress stuff stopped working, but ONLY ON REAL DEVICE (it works in 
browser, and on simulator too).
On device the longpress does not work I have to tap with two fingers 
instead to invoke "longpress" event.

What could cause this changed behaviour?

Thanks
Ivan

IDE: Eclipse
Desktop OS: Ubuntu 16.04
Simulator : Samsung S8
Device: Xiaomi Redmi Note 6, Android 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.
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/dddcb998-9c5b-4314-a996-b945045f7b03%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Cannot create folder in Adroid 8 Oreo

2018-12-07 Thread Ivan
ok, thank you Shai, thank you Andrea, I will refactor the filesystem stuff 
in my app

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
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/82f7f772-5226-49ae-826d-3ca8da492a22%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Cannot create folder in Adroid 8 Oreo

2018-12-06 Thread Ivan

>
> Hi Shai,


this is very old app and using this (previously) public folder we've been 
sharing files with 3rd party apps (using URI scheme and 
Display.getInstance().execute()).
Should I avoid this and use something else? Share button?
Thanks
Ivan

-- 
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/8a7a0e1b-c3cb-4fe2-b34f-d1dced77d0f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Cannot create folder in Adroid 8 Oreo

2018-12-05 Thread Ivan
Hi guys,

my app stopped working after installation on Android 8 device. (A 5, A 6, 
simulator works ok)
I've read about file system permission change in Oreo, I allowed my app to 
work with filesystem, double check in permission settings.
But mkdir fails silently and required directory is not created, so my app 
crashes.
I tried to increase min_sdk_version (tried 21 and 23) but then it crashes 
immediately before start with ClassNotFoundException MultiDexApplication.
What to do to start my app on A8 Oreo ?
Thanks

This is my code and build hints:

private static String getDefaultDataDirectoryAndroid(String dir) {

  FileSystemStorage fs = FileSystemStorage.getInstance();
  final char sep = fs.getFileSystemSeparator();

  String[] roots = fs.getRoots();

  String root = null;
  for (int i = 0; i < roots.length; i++) {
root = roots[i] + sep + "Android" + sep + "data";
if (fs.exists(root))  /// HERE THE BASE PATH SUCCESSFULLY FOUND
break;
  }

  if (root == null) {
BRMobileBase.showErrorAndExit("Cannot find application data directory " 
+ "Android" + sep + "data");
  }

  String defaultDir = root + sep + dir;

  if (!fs.exists(defaultDir)) {   HERE MY DIRECTORY DOES NOT EXIST
fs.mkdir(defaultDir);   TRY TO CREATE IT
BRMobileBase.showError(""+fs.exists(defaultDir));    HERE THE 
DIRECTORY STILL DOES NOT EXIST, NO ERROR, NO EXCEPTION
  }

  return defaultDir + sep;
}

My build hints:
baseClass=src/generated/StateMachineBase.java
codename1.android.keystore=x
codename1.android.keystoreAlias=x
codename1.android.keystorePassword=x
codename1.arg.android.asyncPaint=true
codename1.arg.android.enableProguard=false
codename1.arg.android.min_sdk_version=19
codename1.arg.android.multidex=true
codename1.arg.android.xpermissions=
codename1.arg.build.incSources=1
codename1.arg.ios.includePush=false
codename1.arg.ios.keyboardOpen=false
codename1.arg.ios.newStorageLocation=true
codename1.arg.ios.NSCameraUsageDescription=Some functionality of the 
application requires your camera
codename1.displayName=MaintPlan Mobile CMMS
codename1.icon=icon.png
codename1.j2me.nativeTheme=nativej2me.res
codename1.mainName=MPMobile
codename1.packageName=sk.easysoft.maintplan
codename1.rim.certificatePassword=
codename1.rim.signtoolCsk=
codename1.rim.signtoolDb=
codename1.secondaryTitle=mpmobile
codename1.vendor=Easysoft s.r.o.
codename1.version=3.07
guiResource=theme.res
libVersion=212
mainForm=Splash
package=generated
userClass=src/userclasses/StateMachine.java

IDE: Eclipse
Desktop OS: Ubuntu 16.04
Simulator 
Device: Xiaomi Redmi Note 6 Pro (Android 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.
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/020638b1-0201-4dd9-9a51-cdd977c53074%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: iOS ignores dialog button border

2018-11-25 Thread Ivan
works, thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/73cabbfe-eabd-45fc-8b75-baa3a40e46ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] iOS ignores dialog button border

2018-11-24 Thread Ivan
Hi guys,

I have dlgCommadButtonUIID set to "Button" (using theme from SocailBoo 
demo).
iOS (real devices and simulator skins too) ignores buttos's Border setting. 
In Android it's working ok.
Is it bug or I'm missing something?
thanks




-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/4853d427-ae43-4cf9-ae7f-e300a9518d48%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] iOS NFC

2018-11-20 Thread Ivan
Hi guys, 

I've read some older posts about NFC limitations in iOS but now the API 
seems to be open for developers. 
Is there already some support or do you intend to support NFC in CN1 
(Android + iOS)?

Thanks
Ivan

-- 
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/d413848a-2ce7-45ee-ac6f-c3e9aea55459%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: CAMERA permission workaroud

2017-12-04 Thread Ivan
Hi Shai, I'm in troubles with Android 6 permissions again and previous 
solution does not work for my second application

I have two applications in the same eclipse workspace (CN1 v.3.8), libs 
ver. 196, no android hints at all, build.xml of the same version (3.8) ... 
setup is the same (except theme.res)

One application, mentioned in posts above (let's name it app A) works as 
follows:
I install app A on Android 6, run it. try to capture photo. Application 
asks for permission to access media, files, ... I allow the access, camera 
is started. Everything works OK.
I check the phone Setting -> Permissions -> Camera and the application A is 
NOT in list of permissions for camera (despite this works ok)

Second application (let's name it app B) work as follows:
I install app B on Android 6, run it. try to capture photo. Application 
asks for permission to access media, files, ... I allow the access, camera 
is NOT started, exception occurs (SecurityException - Permission Denial, 
same like in my first post)
I check the phone Setting -> Permissions -> Camera and the application B IS 
in list of permissions for camera, but is OFF (despite I clicked ALLOW in 
permissions dialog at runtime)
When I set here the permission manually everything works ok.
(also when I set target SDK = 21 app B works ok)

Do you have an idea why two applications with the same setup behave 
differently?
Why the app A does not appear in list of camera permissions but works and 
app B does appear there but the permission is not allowed despite the user 
allowed it at runtime?

thanks in advance for each advice






-- 
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/941e9485-4524-4516-87b6-b8f44e8e7e16%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: text box strange behavior on ios

2017-11-01 Thread Ivan
issue created #2264 

-- 
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/8ad7fff1-1065-4e68-a08a-210acc065d2f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: text box strange behavior on ios

2017-11-01 Thread Ivan
everything works ok when the south area is blank or those 6 buttons in my 
example are normal height. 
As I change the height of the buttons to double it starts do this strange 
things.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails 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/b4049ee2-3944-465c-b61e-a49572b8f379%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: text box strange behavior on ios

2017-10-31 Thread Ivan
Hi,

enclosing text box with scrollable Y container makes things much better. 
Surrounding components remain visible and on place but text box itself is 
still jumping up and down on each key stroke.
I tried more combinations with scrollable Y container but cannot get it 
working properly :(

My app is not new. A few months ago this worked OK on iOS and Android only 
on UWP I had some minor issues. 

thanks in advance for help 

-- 
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/a0864c2b-d87e-4f6c-b5be-6137c7a947a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: text box strange behavior on ios

2017-10-30 Thread Ivan
Hi Steve, it seems it is related to content of the SOUTH area, try this:

public void testIOSTextRegression() {
Form f = new Form();

f.setLayout(new BorderLayout(BorderLayout.CENTER_BEHAVIOR_CENTER));

Container c = new Container(new BoxLayout(BoxLayout.Y_AXIS));
c.setScrollableY(true);
Container btnsContainer = new Container(new 
BoxLayout(BoxLayout.Y_AXIS));

Label frmIco = new Label();
FontImage.setMaterialIcon(frmIco, FontImage.MATERIAL_INPUT, 15);
//frmIco.setIcon(createFormIcon(frmIco, FontImage.MATERIAL_INPUT, 
15));
Container iconCont = new Container(new FlowLayout(CENTER));
iconCont.add(frmIco);

c.add(iconCont);

Container codeContainer = new Container(new 
BorderLayout(BorderLayout.CENTER_BEHAVIOR_CENTER));
TextField code = new TextField("", "code_hnt");

codeContainer.add(BorderLayout.CENTER, code);
Button history = new Button();
FontImage.setMaterialIcon(history, FontImage.MATERIAL_HISTORY);

codeContainer.add(BorderLayout.EAST, history);

c.add(codeContainer);

f.addComponent(BorderLayout.CENTER, c);

/**/

Container container1 = new Container(new GridLayout(2));
Container container2 = new Container(new GridLayout(2));
Container container3 = new Container(new GridLayout(2));

container1.add(getDoubleHeightButton("b11"));
container1.add(getDoubleHeightButton("b12"));

container2.add(getDoubleHeightButton("b21"));
container2.add(getDoubleHeightButton("b22"));

container3.add(getDoubleHeightButton("b31"));
container3.add(getDoubleHeightButton("b32"));

btnsContainer.add(container1);
btnsContainer.add(container2);
btnsContainer.add(container3);

f.addComponent(BorderLayout.SOUTH, btnsContainer);

/**/

f.show();
}

private Button getDoubleHeightButton(String title){
return new Button(title){
@Override
protected Dimension calcPreferredSize() {
Dimension d = super.calcPreferredSize();
return new Dimension(d.getWidth(), d.getHeight()*2);
}
};
}



Dňa pondelok, 30. októbra 2017 13:58:52 UTC+1 Steve Hannah napísal(-a):
>
> I can't think of anything that would have caused this either.  I tried 
> building a sample app with the code provided, and it seems to be working 
> fine in the iOS simulator for an iPhone SE, and on my actual device iPhone 
> 8.
>
> My test case is 
>
> public void testIOSTextRegression() {
> Form f = new Form();
> f.setLayout(new BorderLayout(BorderLayout.CENTER_BEHAVIOR_CENTER));
> 
> Container c = new Container(new BoxLayout(BoxLayout.Y_AXIS));
> c.setScrollableY(true);
> Container btnsContainer = new Container(new 
> BoxLayout(BoxLayout.Y_AXIS));
> 
> Label frmIco = new Label();
> FontImage.setMaterialIcon(frmIco, FontImage.MATERIAL_INPUT, 15);
> //frmIco.setIcon(createFormIcon(frmIco, FontImage.MATERIAL_INPUT, 
> 15));
> Container iconCont = new Container(new FlowLayout(CENTER));
> iconCont.add(frmIco);
> 
> c.add(iconCont);
> 
> Container codeContainer = new Container(new 
> BorderLayout(BorderLayout.CENTER_BEHAVIOR_CENTER));
> TextField code = new TextField("", "code_hnt");
> 
> codeContainer.add(BorderLayout.CENTER, code);
> Button history = new Button();
> FontImage.setMaterialIcon(history, FontImage.MATERIAL_HISTORY);
> 
> codeContainer.add(BorderLayout.EAST, history);
> 
> c.add(codeContainer);
>
> f.addComponent(BorderLayout.CENTER, c);
> f.show();
> }
>
> If you can modify this test case to reproduce the behaviour, I can take 
> another look.
>
> Steve
>
> On Sun, Oct 29, 2017 at 10:04 PM, Shai Almog  > wrote:
>
>> I don't see any commit from the past week that could be suspect: 
>> https://github.com/codenameone/CodenameOne/commits/master
>> Is this only on this specific text field or is there a wider impact? 
>> Is this related to the border layout center behavior for the text field?
>>
>> -- 
>> 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/codenameon

[codenameone-discussions] Capture.capturePhoto() stoppen working on iOS

2017-10-30 Thread Ivan


IDE: Eclipse

OS: Ubuntu 16.04

Simulator : iphone6.skin, ipad_os7.skin
Device: ipad mini (32 bit) ios 9, iphone se (64 bit) ios 10

Hi guys, 

Capture.capturePhoto() stopped working for me on iOS even in simulator with 
ios device skins.
In simulator capturePhoto() generates from given source image 1 pixel 
picture with two dots in file name, e.g.: 
ile:///tmp/temp8767158651086139521s..jpg (see attached)

In device I cannot capture the image at all (the camera opens, takes a 
picture, hit "Use photo", and nothing more). 
I tried to create image from returned file path, copy the file, ... but 
nothing worked. The image does not exist after capture. Following code

String path = Capture.capturePhoto();
Log.p(path);
Log.p("Orig file exists: " + FileSystemStorage.getInstance().exists(path));

generates this log output
[EDT] 0:0:5,801 - 
file:/var/mobile/Containers/Data/Application/79F67DF9-B321-4300-8B6C-897105EF5D4C/Documents/temp_images.jpg
[EDT] 0:0:5,807 - Orig file exists: false

I tried experiment with prefix: file://, file:///, without prefix ... but 
nothing helped.

whats wrong with capturePhoto on iOS or my setup?





-- 
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/bfe552cb-072c-4d2c-9123-4f22685d3ec8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] text box strange behavior on ios

2017-10-29 Thread Ivan







Hi guys,

my app has problem with text box editing after last update today.
I have form with one text box and a few buttons.
On startup it looks ok (see 01-before-keyboard.png). 
After I click into text box, keyboard comes up and everything disapears but 
textbox (see 02-after-keyboard.png)
After I start to type textbox disapears too and text is jumpin up and down 
after each stroke (see 03-typing.png)

this is my code:

this.setLayout(new BorderLayout(BorderLayout.CENTER_BEHAVIOR_CENTER
));

Container c = new Container(new BoxLayout(BoxLayout.Y_AXIS));
c.setScrollableY(true);
Container btnsContainer = new Container(new BoxLayout(BoxLayout.
Y_AXIS));

Label frmIco = new Label();
frmIco.setIcon(createFormIcon(frmIco, FontImage.MATERIAL_INPUT, 15
));
Container iconCont = new Container(new FlowLayout(CENTER));
iconCont.add(frmIco);

c.add(iconCont);

Container codeContainer = new Container(new BorderLayout(
BorderLayout.CENTER_BEHAVIOR_CENTER));
this.code = new TextField("", "code_hnt");

codeContainer.add(BorderLayout.CENTER, code);
Button history = getHistoryButton();

codeContainer.add(BorderLayout.EAST, history);

c.add(codeContainer);

this.addComponent(BorderLayout.CENTER, c);




with previous libs versions it worked ok.

thanks for each help



IDE: Eclipse
Desktop OS Ubuntu 16.04
Simulator 
Device ipad mini (32 bit) iOS 9, iphone se (64 bit) iOS 10

-- 
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/ec66288a-a95b-4525-b4f1-de4e28bfd5c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: CAMERA permission workaroud

2017-10-29 Thread Ivan
I had this in build hints 



and when I removed it, it works also on 6.0.x

-- 
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/101dbab9-f870-4a95-aec8-7440c0e0eeeb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: CAMERA permission workaroud

2017-10-29 Thread Ivan
Hi Shai, thanks for answer but I'm confused little bit now.

I tried it on another device with Android 6.0.1 (Xiaomi Redmi A4) and the 
behavior is the same.
I start the photo capturing, I get the question to allow photo capturing, I 
click yes and then I get above mentioned security exception.
I found stack overflow discussion (mentioned in my previos post) about 
Android M Camera Intent + permission bug where you write about to add 
workaround to CN1 for that (on August 11th 2017).
Is there the workaround or what should I do to make the camera working?







Dňa nedeľa, 29. októbra 2017 6:07:53 UTC+1 Shai Almog napísal(-a):
>
> Hi,
> this isn't a recent regression as this was never the issue. Camera 
> permission shouldn't be requested as we invoke an intent and that's a 
> request that should be made by the intent provider not by us. I think this 
> might be related to an app you might have installed recently on the device 
> that took over the camera intent.
>

-- 
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/094d8ed4-a2a7-4cf9-88df-8972419be9ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] CAMERA permission workaroud

2017-10-28 Thread Ivan
Hi guys,

with last version of libs (189) I'm getting security exception (see below) 
which was resolved previously in CN1 using workaround requesting 
permissions 
(https://stackoverflow.com/questions/45548597/codenameone-capture-capturephoto-requests-wrong-permission)

My app worked OK on device doogee x5max until now.

It's regression or it was removed on purpose or it's different issue?

thanks

Ivan

[EDT] 0:0:0,92 - Exception: java.lang.SecurityException - Permission 
Denial: starting Intent { act=android.media.action.
IMAGE_CAPTURE flg=0x403 
cmp=com.mediatek.camera/com.android.camera.CaptureActivity 
clip={text/uri-list 
U:file:///storage/emulated/0/Pictures/Hive%20Tracker/IMG_20171028_230800.jpg} 
(has extras) } from ProcessRecord{ec17a7e 
5166:com.koppert.hivetracker/u0a94} (pid=5166, uid=10094) with revoked 
permission android.permission.CAMERA
java.lang.SecurityException: Permission Denial: starting Intent { 
act=android.media.action.IMAGE_CAPTURE flg=0x403 
cmp=com.mediatek.camera/com.android.camera.CaptureActivity 
clip={text/uri-list 
U:file:///storage/emulated/0/Pictures/Hive%20Tracker/IMG_20171028_230800.jpg} 
(has extras) } from ProcessRecord{ec17a7e 
5166:com.koppert.hivetracker/u0a94} (pid=5166, uid=10094) with revoked 
permission android.permission.CAMERA
at android.os.Parcel.readException(Parcel.java:1599)
at android.os.Parcel.readException(Parcel.java:1552)
at 
android.app.ActivityManagerProxy.startActivity(ActivityManagerNative.java:2817)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1518)
at android.app.Activity.startActivityForResult(Activity.java:3978)
at android.app.Activity.startActivityForResult(Activity.java:3930)
at 
com.codename1.impl.android.CodenameOneActivity.startActivityForResult(CodenameOneActivity.java:576)
at 
com.codename1.impl.android.AndroidImplementation.capturePhoto(AndroidImplementation.java:6035)
at com.codename1.ui.Display.capturePhoto(Display.java:3173)
at com.codename1.capture.Capture.capturePhoto(Capture.java:77)
at com.codename1.capture.Capture.capturePhoto(Capture.java:143)
at com.codename1.capture.Capture.capturePhoto(Capture.java:85)
at com.koppert.hivetracker.view.QuestionaryOption.lambda$new$3(Unknown 
Source)
at 
com.koppert.hivetracker.view.QuestionaryOption$$Lambda$2.actionPerformed(Unknown
 
Source)
at 
com.codename1.ui.util.EventDispatcher.fireActionEvent(EventDispatcher.java:349)
at com.codename1.ui.Button.fireActionEvent(Button.java:499)
at com.codename1.ui.Button.released(Button.java:533)
at com.codename1.ui.Button.pointerReleased(Button.java:637)
at com.codename1.ui.Form.pointerReleased(Form.java:2794)
at com.codename1.ui.Component.pointerReleased(Component.java:4016)
at com.codename1.ui.Display.handleEvent(Display.java:2032)
at com.codename1.ui.Display.edtLoopImpl(Display.java:1028)
at com.codename1.ui.Display.mainEDTLoop(Display.java:946)
at com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:120)
at com.codename1.impl.CodenameOneThread$1.run(CodenameOneThread.java:60)
at java.lang.Thread.run(Thread.java:818)


If you are experiencing an issue please mention the full platform your 
issue applies to:
IDE: Eclipse
Desktop OS Ubuntu 16.04
Simulator 
Device doogee x5max , android 6.0

-- 
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/89967974-1012-4a9a-9c32-b79ccb75ad55%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Buttons captions uppercase

2017-07-16 Thread Ivan
Hi guys,

I compiled my app after few months and all buttons captions are uppercase , 
why?
In simulator it is ok, but in android device it's all uppercase.

Thanks
Ivan


IDE: Eclipse
Desktop OS: Ubuntu 16.04
Simulator 
Device: Xiaomi Redmi Note 3, Android 5.0.2

-- 
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/423b6d7b-677b-44ba-9bd6-9824f9e89234%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: Captured audio: missing file extension

2017-04-19 Thread Ivan Ilavsky
yes, with extension .3gpp it works for me again, thanks

On Wed, Apr 19, 2017 at 1:39 AM, Steve Hannah 
wrote:

> Capture.captureAudio() uses 3gpp format.  When you copy the file to file
> system storage, add the .3gpp extension and then it should work with
> Display.execute().
>
> I'm experimenting a little with the mimetypes and extensions right now in
> the android port to see if I can improve things for mimetype detection.  I
> will likely be changing the temp file produced by captureAudio() to use the
> .3gpp extension anyways.
>
> Notice that you shouldn't pass the path that you get back from
> captureAudio() directly to Display.execute().  You should first copy it to
> file system storage, then pass the copy to execute().
>
> Steve
>
> On Tue, Apr 18, 2017 at 1:01 AM, Ivan Ilavsky 
> wrote:
>
>> May be it's changed for longer time. One of the users discovered it now
>> after last libs update ... the extension is missing and the application is
>> not able to play the audio file on Android using 
>> Display.getInstance().execute(path);
>> (this worked for me previously)
>> How can I fInd out what encoding/mime type is used (AAC, AMR, ..) ?
>>
>>
>> On Tue, Apr 18, 2017 at 7:30 AM, Shai Almog  wrote:
>>
>>> Hi,
>>> are you sure?
>>> Looking at the history from the past 3 weeks:
>>> https://github.com/codenameone/CodenameOne/commits/master
>>> I can't see anything that should impact this. The only thing remotely
>>> close is https://github.com/codenameone/CodenameOne/commit/75a54f9ea8
>>> 9470bb4c3e67ac836dd85a9814052a and it's a trivial change.
>>>
>>> --
>>> 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/to
>>> pic/codenameone-discussions/KffK7T0UUn8/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> codenameone-discussions+unsubscr...@googlegroups.com.
>>> Visit this group at https://groups.google.com/grou
>>> p/codenameone-discussions.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/codenameone-discussions/6d09bf30-4dd1-46d8-8d60-05bfe13b
>>> e190%40googlegroups.com
>>> <https://groups.google.com/d/msgid/codenameone-discussions/6d09bf30-4dd1-46d8-8d60-05bfe13be190%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Ivan Ilavský
>>
>> Tamebytes s.r.o.
>> ivan.ilav...@tamebytes.sk
>> +421 905 664177 <+421%20905%20664%20177>
>> http://www.tamebytes.sk
>>
>> --
>> 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/grou
>> p/codenameone-discussions.
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/codenameone-discussions/CA%2BysJ8xM21oT0_6saV3BbuhQ1dAW8
>> sUmjyDHn4RqjXtxvThwXA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/codenameone-discussions/CA%2BysJ8xM21oT0_6saV3BbuhQ1dAW8sUmjyDHn4RqjXtxvThwXA%40mail.gmail.com?utm_medium=email&utm_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 a topic in the
> Google Groups "CodenameOne Discussions" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/codenameone-discussions/KffK7T0UUn8/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CAGOYrKXhb35vAOMJZBhtd69YfCjfR
> dhBS1GCaNxEOmThe-kz9w%40mail.gmail.com
> <https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKXhb35vAOMJZBhtd69YfCjfRdhBS1GCaNxEOmThe-kz9w%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/

Re: [codenameone-discussions] Re: Captured audio: missing file extension

2017-04-18 Thread Ivan Ilavsky
May be it's changed for longer time. One of the users discovered it now
after last libs update ... the extension is missing and the application is
not able to play the audio file on Android using
Display.getInstance().execute(path);
(this worked for me previously)
How can I fInd out what encoding/mime type is used (AAC, AMR, ..) ?


On Tue, Apr 18, 2017 at 7:30 AM, Shai Almog  wrote:

> Hi,
> are you sure?
> Looking at the history from the past 3 weeks: https://github.com/
> codenameone/CodenameOne/commits/master
> I can't see anything that should impact this. The only thing remotely
> close is https://github.com/codenameone/CodenameOne/commit/
> 75a54f9ea89470bb4c3e67ac836dd85a9814052a and it's a trivial change.
>
> --
> 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/KffK7T0UUn8/unsubscribe.
> To unsubscribe from this group and all its topics, 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/6d09bf30-4dd1-46d8-8d60-
> 05bfe13be190%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/6d09bf30-4dd1-46d8-8d60-05bfe13be190%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Ivan Ilavský

Tamebytes s.r.o.
ivan.ilav...@tamebytes.sk
+421 905 664177
http://www.tamebytes.sk

-- 
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/CA%2BysJ8xM21oT0_6saV3BbuhQ1dAW8sUmjyDHn4RqjXtxvThwXA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Captured audio: missing file extension

2017-04-17 Thread Ivan
Hi guys,

with last libs version (159) the media file captured using 
Capture.captureAudio() on Android has no extension (e.g. mtmp1245577840dat)
Is this intention and should I assess the mime type (and file extension) 
self somehow in new version or is it bug?
(Until now the extension was part of the temporary file name returned from 
Capture.captureAudio() and my app relies on this)

thanks

Ivan

IDE: Eclipse
Desktop OS: Ubuntu 16.04
Simulator 
Device Xiaomi Redmi Note 3

-- 
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/a74d43f8-8340-4001-8430-d58103a8d02b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Open image with uppercase extension JPG, PNG using Display.getInstance().execute(path)

2017-04-17 Thread Ivan Ilavsky
Hi Shai,

the image is in Android/data/ directory.
The full URL is:
file:///storage/emulated/0/Android/data/sk.easysoft.maintplan/IMG_20170417_09254.JPG

On Fri, Apr 14, 2017 at 7:53 AM, Shai Almog  wrote:

> Hi,
> Is the image under the app home path?
> How does the full URL to the file look?
> I think it might reach an edge case in getMimeType(String) and Android
> might not recognize some types correctly
>
> --
> 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/Dq8hhyNwqPg/unsubscribe.
> To unsubscribe from this group and all its topics, 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/7fa5d1ca-ff28-43a8-8465-
> 78dd383eaa4f%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/7fa5d1ca-ff28-43a8-8465-78dd383eaa4f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Ivan Ilavský

Tamebytes s.r.o.
ivan.ilav...@tamebytes.sk
+421 905 664177
http://www.tamebytes.sk

-- 
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/CA%2BysJ8wx2_a8xCsGYAHS0GeX-C-GwkNQPVbmi7RD5uky376u0w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Open image with uppercase extension JPG, PNG using Display.getInstance().execute(path)

2017-04-13 Thread Ivan Ilavsky
Hi Steve,

All my PDF apps have the "Clear defaults" option disabled because no
defaults are set.
I don't have associated app neither with JPG nor PNG.
When I click such a file in file manager (or gallery, or any other app) I'm
getting application selection to select in which application it should open
(PDF app is not present in the selection).
The same I have in CN1 application with lowercase extensions.

But uppercase JPG or PNG are always handled like PDF, I tested both
extensions on more devices and the behavior is the same.

Best regards

Ivan Ilavsky

On Thu, Apr 13, 2017 at 6:34 PM, Steve Hannah 
wrote:

> I don't see anything explicitly setting this in our code.  My guess is
> that android treats ".PNG" differently than ".png", and you have previously
> chosen your PDF program to open files with .PNG.  Check out the settings
> for your PDF application in settings to see if this is the case.
> Directions would be similar to this:
> http://www.guidingtech.com/13517/change-default-program-
> android-file-type-open/
>
> Best regards
>
> Steve
>
> On Thu, Apr 13, 2017 at 6:22 AM, Ivan  wrote:
>
>> Hi guys,
>>
>> on Android: when I try to open image with uppercase extension: JPG, PNG
>> in associated application using Display.getInstance().execute(path) the
>> device allways tries to open it as PDF.
>> With lowercase extension works everything ok.
>>
>> Is this CN1 bug or Android problem?
>>
>> (I'm using workaround renaming the file to lowercase extension currently,
>> but it's not very comfortable)
>>
>> thanks
>>
>> Ivan
>>
>> If you are experiencing an issue please mention the full platform your
>> issue applies to:
>> IDE: Eclipse
>> Desktop OS: Ubuntu 16.04
>> Simulator
>> Device: Xiaomi Redmi Note 4
>>
>> --
>> 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/grou
>> p/codenameone-discussions.
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/codenameone-discussions/cf15222d-f4c3-4907-be9b-08701261
>> 1ff2%40googlegroups.com
>> <https://groups.google.com/d/msgid/codenameone-discussions/cf15222d-f4c3-4907-be9b-087012611ff2%40googlegroups.com?utm_medium=email&utm_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 a topic in the
> Google Groups "CodenameOne Discussions" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/codenameone-discussions/Dq8hhyNwqPg/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CAGOYrKW6ebfC0O5hi_
> kE7A2pnFxAj0O4VoErhSUdRwKxcf9Y-g%40mail.gmail.com
> <https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKW6ebfC0O5hi_kE7A2pnFxAj0O4VoErhSUdRwKxcf9Y-g%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Ivan Ilavský

Tamebytes s.r.o.
ivan.ilav...@tamebytes.sk
+421 905 664177
http://www.tamebytes.sk

-- 
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/CA%2BysJ8yjpxr0AA%2BJ%3DnqKyzV%3D%2Bk6T6oH%2Bvwq%3DPA%3DcSKQTJ4fiwA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Open image with uppercase extension JPG, PNG using Display.getInstance().execute(path)

2017-04-13 Thread Ivan
Hi guys,

on Android: when I try to open image with uppercase extension: JPG, PNG in 
associated application using Display.getInstance().execute(path) the device 
allways tries to open it as PDF.
With lowercase extension works everything ok.

Is this CN1 bug or Android problem?

(I'm using workaround renaming the file to lowercase extension currently, 
but it's not very comfortable)

thanks

Ivan

If you are experiencing an issue please mention the full platform your 
issue applies to:
IDE: Eclipse
Desktop OS: Ubuntu 16.04
Simulator 
Device: Xiaomi Redmi Note 4

-- 
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/cf15222d-f4c3-4907-be9b-087012611ff2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: iOS Install: Cannot connect to codename-one.appspot.com

2017-02-07 Thread Ivan Ilavsky
works! App installed. Fixed for me, thanks!

Dňa 6.2.2017 15:23 používateľ "Shai Almog"  napísal:

> I did see some usage of http instead of https. This is fixed now.
>
> --
> 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/LNwPwgOkp7U/unsubscribe.
> To unsubscribe from this group and all its topics, 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/ce7b5e69-2ce0-450f-a00f-
> 16a65b339384%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CA%2BysJ8xDGedwOh4CDFM33x3CXHF7NiTb7MzeE-tyU-hGHTxA1A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: iOS Install: Cannot connect to codename-one.appspot.com

2017-02-03 Thread Ivan
Hi,

when the UDID is wrong, the message is different: "Unable to Download App: 
 could not be installed at this time."
this will be something else
I cannot find nothing special in permissions :(



-- 
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/add6eb78-5415-436e-b88d-6f753e184bd3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: iOS Install: Cannot connect to codename-one.appspot.com

2017-02-01 Thread Ivan

>
> Hi,
>
no, this is the first installation 

-- 
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/8bdb275c-738c-4cf9-b238-a5dad8b79426%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: UPW capturePhoto restarts app

2017-02-01 Thread Ivan
https://github.com/codenameone/CodenameOne/issues/2022

-- 
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/1a6328eb-8cf0-42d0-af49-3e989afc702d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] iOS barcode scan: Data matrix

2017-02-01 Thread Ivan
Hi guys,

I need to scan 2D code: Datamatrix. I'm using CodeScan cn1lib.
In android using external app barcode scanner it works like a charm.
But IOS implementation using  ZBar library does not support Datamatrix, so 
I created zxing service on sever and i'm using camera to capture photo and 
decoding it on server.
This solution works but it's not so comfortable and reliable as real 
scanning.
Is there some possibility to scan Datamatrix on iOS directly in cn1 app or 
using 3rd party app?

thanks

Ivan

IDE: Eclipse
Desktop OS: Ubuntu 16.04
Simulator 
Device iPad MIni

-- 
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/2d782ff1-fd15-4a56-a4bf-70ca07227b87%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] iOS Install: Cannot connect to codename-one.appspot.com

2017-02-01 Thread Ivan


<https://lh3.googleusercontent.com/-7k7vL7uiaCw/WJGp7Qxod5I/r6g/knS9x8DjPGoEg9-RAzGMJlasOAswYcD-wCLcB/s1600/image001.jpg>
Hi guys,

I have 4 iOS devices (iPad Mini, iPhone 7, iPhone 6 se, and iPhone 6s) and 
3 are able to install my (ios debug build) app: iPad Mini, iPhone 7, iPhone 
6 SE
and one not : iPhone 6S (not managed device, iOS v.10.2.1)
The error message appears right after click on green Install button (see 
screenshot atached).

I found that people are facing this problem but it's always related to 
enterprise apps, certificate issues, typos in manifest, etc. I cannot find 
anything what should solve my problem
I double checked the provision profile, all UDIDs are correctly added.

What should cause this problem?

thanks

Ivan


IDE: Eclipse
Desktop OS: Ubuntu 16.04
Simulator 
Device ipone 6s, iOS v.10.2.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.
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/1887821c-21fb-4de3-9086-713871f9904a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: UPW capturePhoto restarts app

2017-01-30 Thread Ivan
the camera demo does not crash but does not display the captured picture
may be something is wrong with returning the captured photo and that's why 
my app restarts 


-- 
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/792692b9-2744-401a-b064-d04982781357%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] UPW capturePhoto restarts app

2017-01-29 Thread Ivan
Hi guys,

this is probably bug (UWP):
after capturing photo using
String file = Capture.capturePhoto();
and confirming the captured photo the application restarts


IDE: Eclipse
Desktop OS: Ubuntu 16.04
Simulator 
Device Microsoft Lumia 550

-- 
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/a0e2080a-3e27-41b8-a039-6da0f69b433d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: Windows UWP Builds still broken?

2017-01-29 Thread Ivan
I tried it again and it works for me too now, thanks

Dňa sobota, 28. januára 2017 18:42:33 UTC+1 Steve Hannah napísal(-a):
>
> I just tried a build without providing a certificate and it worked fine.  
> Perhaps the problem is with the certificate that you provided.
>
> Steve
>
> On Sat, Jan 28, 2017 at 5:39 AM, Ivan > 
> wrote:
>
>> Hi guys,
>>
>> after 2 weeks waiting for server update the result is still the same:
>>
>>  [exec] 
>> "C:\Users\CODENA~1\AppData\Local\Temp\build2748453121598677799xxx\TestProject\UWPProject\UWPApp\UWPApp.csproj"
>>  (default target) (1) ->
>>  [exec] (_CreateMainPackage target) -> 
>>  [exec]   C:\Program Files 
>> (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(3484,5):
>>  error APPX0108: The certificate specified has expired. For more information 
>> about renewing certificates, see 
>> http://go.microsoft.com/fwlink/?LinkID=241478. 
>> [C:\Users\CODENA~1\AppData\Local\Temp\build2748453121598677799xxx\TestProject\UWPProject\UWPApp\UWPApp.csproj]
>>
>>
>> How to solve/workaround the certificate issue pls?
>> (I tried to generate certificate using cn1 windows wizard but w/o success, 
>> the error message is the same, seems like my cert is ignored ...)
>>
>> thanks
>>
>> Ivan
>>
>>
>>
>> -- 
>> 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/b334fafb-4a5e-4bef-a0ae-8b5bae5f3af9%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/codenameone-discussions/b334fafb-4a5e-4bef-a0ae-8b5bae5f3af9%40googlegroups.com?utm_medium=email&utm_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/27110073-0ce9-4c47-b1c5-c6ef93d45dbb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Windows UWP Builds still broken?

2017-01-28 Thread Ivan
Hi guys,

after 2 weeks waiting for server update the result is still the same:

 [exec] 
"C:\Users\CODENA~1\AppData\Local\Temp\build2748453121598677799xxx\TestProject\UWPProject\UWPApp\UWPApp.csproj"
 (default target) (1) ->
 [exec] (_CreateMainPackage target) -> 
 [exec]   C:\Program Files 
(x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(3484,5):
 error APPX0108: The certificate specified has expired. For more information 
about renewing certificates, see http://go.microsoft.com/fwlink/?LinkID=241478. 
[C:\Users\CODENA~1\AppData\Local\Temp\build2748453121598677799xxx\TestProject\UWPProject\UWPApp\UWPApp.csproj]


How to solve/workaround the certificate issue pls?
(I tried to generate certificate using cn1 windows wizard but w/o success, the 
error message is the same, seems like my cert is ignored ...)

thanks

Ivan



-- 
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/b334fafb-4a5e-4bef-a0ae-8b5bae5f3af9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: Codescan cn1lib vs iOS build

2017-01-19 Thread Ivan
you are right! I deleted and reinstalled codescan.cn1lib and it compiles 
again!
thanks Steve!

Dňa štvrtok, 19. januára 2017 19:53:16 UTC+1 Steve Hannah napísal(-a):
>
> I just created a fresh project, and added the codescan library using 
> Codename One settings.  And pasted in my old demo app code that uses this 
> API.  And it built OK.
>
> My guess is that you're using an out-of-date codescan library. You should 
> try to delete it from your lib dir, then re-add it using Codename One 
> settings, and refresh libs.
>
> Should work
>
> Best regards
>
> Steve
>
> On Wed, Jan 18, 2017 at 11:49 PM, Ivan Ilavsky  > wrote:
>
>> right, there is no other settings except these I've sent you
>> What should cause the compilation problem?
>>
>> Dňa 19.1.2017 5:48 používateľ "Shai Almog" > > napísal:
>>
>>> You are not sending an iphone_old build or something like that by any 
>>> chance right?
>>>
>>> -- 
>>> 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/Tf7Oq9QNRRk/unsubscribe
>>> .
>>> To unsubscribe from this group and all its topics, 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/48ebf452-d0f3-4e6a-adaf-aeb5ab05f2b6%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/codenameone-discussions/48ebf452-d0f3-4e6a-adaf-aeb5ab05f2b6%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> -- 
>> 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/CA%2BysJ8z4PMjQ8i8aYfPdyC_j%2BF7FQNYk17yYjUba8Z26Mr2nxA%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/codenameone-discussions/CA%2BysJ8z4PMjQ8i8aYfPdyC_j%2BF7FQNYk17yYjUba8Z26Mr2nxA%40mail.gmail.com?utm_medium=email&utm_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/185e0706-940f-4288-b048-d86a77a8c1e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: Codescan cn1lib vs iOS build

2017-01-18 Thread Ivan Ilavsky
right, there is no other settings except these I've sent you
What should cause the compilation problem?

Dňa 19.1.2017 5:48 používateľ "Shai Almog"  napísal:

> You are not sending an iphone_old build or something like that by any
> chance right?
>
> --
> 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/Tf7Oq9QNRRk/unsubscribe.
> To unsubscribe from this group and all its topics, 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/48ebf452-d0f3-4e6a-adaf-
> aeb5ab05f2b6%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CA%2BysJ8z4PMjQ8i8aYfPdyC_j%2BF7FQNYk17yYjUba8Z26Mr2nxA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Codescan cn1lib vs iOS build

2017-01-18 Thread Ivan
build hints:

codename1.arg.android.min_sdk_version=11
codename1.arg.ios.includePush=true
codename1.arg.ios.xcode_version=5.0
codename1.arg.ios.newStorageLocation=true
codename1.arg.ios.keyboardOpen=false
codename1.arg.build.incSources=1
codename1.arg.android.xpermissions=
codename1.arg.android.asyncPaint=true

iOS related settings:

codename1.ios.appid=*.sk.easysoft.maintplan
codename1.ios.debug.certificate=iosCerts/development_certificate.p12
codename1.ios.certificatePassword=
codename1.ios.debug.certificatePassword=*
codename1.ios.release.certificate=iosCerts/appstore_certificate.p12
codename1.ios.release.certificatePassword=**
codename1.ios.certificate=
codename1.ios.provision=
codename1.ios.debug.provision=iosCerts/development_provisioning_profile.mobileprovision
codename1.ios.release.provision=iosCerts/production_provisioning_profile.mobileprovision


-- 
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/37935531-2878-421b-af30-8448c2cee973%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Codescan cn1lib vs iOS build

2017-01-17 Thread Ivan
yes, we are using the new API from the cn1lib

Dňa utorok, 17. januára 2017 6:01:26 UTC+1 Shai Almog napísal(-a):
>
> Hi,
> are you using the new API from the cn1lib or are you still relying on the 
> old scan API's?
>

-- 
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/3b8f9019-5090-47f9-be8b-967a101fef0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Codescan cn1lib vs iOS build

2017-01-16 Thread Ivan
Hi guys,

after some months I'm going to compile my app for iOS again but build 
failed with error (see below). Including some minor changes I replaced cn1 
internal codescan implementation with codescan.cn1lib. The error message 
seems to be related to codescan.
Whats wrong with my setup pls?
thanks
Ivan

Undefined symbols for architecture armv7:
  "_ZBarReaderControllerResults", referenced from:
  -[ScanCodeImplExt imagePickerController:didFinishPickingMediaWithInfo:] 
in ScanCodeImplExt.o
  "_OBJC_CLASS_$_ZBarReaderViewController", referenced from:
  _OBJC_CLASS_$_CVZBarReaderViewControllerExt in 
CVZBarReaderViewControllerExt.o
  "_OBJC_METACLASS_$_ZBarReaderViewController", referenced from:
  _OBJC_METACLASS_$_CVZBarReaderViewControllerExt in 
CVZBarReaderViewControllerExt.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

** ARCHIVE FAILED **


The following build commands failed:
Ld 
build/Build/Intermediates/ArchiveIntermediates/MPMobile/InstallationBuildProductsLocation/Applications/MPMobile.app/MPMobile
 normal armv7
(1 failure)
Failed xcodebuild step




IDE: Eclipse
Simulator 
Device: iPad mini

-- 
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/0b790bc9-f0e1-40de-939f-cb2f263c604e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: TextAre in UWP

2017-01-16 Thread Ivan
great! thanks

Dňa pondelok, 16. januára 2017 20:45:02 UTC+1 Steve Hannah napísal(-a):
>
> This is now fixed in Git.
>
> https://github.com/codenameone/CodenameOne/commit/a626c1051d8d4620b9c4f99ee49d27b0f2e4cac3
>
> Will be available in next server update on Friday.
>
> Best regards
>
> Steve
>
> On Mon, Jan 16, 2017 at 11:06 AM, Ivan > 
> wrote:
>
>> hi Steve, 
>>
>> I tried to generate my certifcate but the error is the same. I used the 
>> Codename one settings wizard to generate the cert, cert is created, 
>> certificate is configured in codenameone_settings.properties but seems to 
>> be ignored.
>>
>> Dňa pondelok, 16. januára 2017 19:04:41 UTC+1 Steve Hannah napísal(-a):
>>>
>>> Yes.  It looks like the default certificate I was using in the project 
>>> has just expired.  I'm working on updating it.  If you generate/provide 
>>> your own certificate,it will get around the problem in the mean time.
>>>
>>> Steve
>>>
>>> On Mon, Jan 16, 2017 at 10:00 AM, Ivan  wrote:
>>>
>>>> I've prepared the hello world test app but I cannot create debug build 
>>>> due to expired certificate, this worked two days ago ...
>>>>
>>>> C:\Program Files 
>>>> (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(1908,5):
>>>>  warning APPX0108: The certificate specified has expired. For more 
>>>> information about renewing certificates, see 
>>>> http://go.microsoft.com/fwlink/?LinkID=241478. 
>>>> [C:\Users\CODENA~1\AppData\Local\Temp\build7009611265229920297xxx\TestProject\UWPProject\UWPApp\UWPApp.csproj]
>>>>
>>>>  
>>>>
>>>>
>>>> Dňa sobota, 14. januára 2017 6:49:14 UTC+1 Shai Almog napísal(-a):
>>>>>
>>>>> It's odd that something like this will go unnoticed is this happening 
>>>>> for a hello world application?
>>>>> Steve, any idea?
>>>>>
>>>> -- 
>>>> 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/fca27f3c-d718-46f8-a2cb-f73d4d2cce9f%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/codenameone-discussions/fca27f3c-d718-46f8-a2cb-f73d4d2cce9f%40googlegroups.com?utm_medium=email&utm_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/d5ff35a9-0cf7-4ea9-9b99-6f05516f82e8%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/codenameone-discussions/d5ff35a9-0cf7-4ea9-9b99-6f05516f82e8%40googlegroups.com?utm_medium=email&utm_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/0c8126ab-1830-40fe-9f05-f8fc24e9b4c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: TextAre in UWP

2017-01-16 Thread Ivan
hi Steve, 

I tried to generate my certifcate but the error is the same. I used the 
Codename one settings wizard to generate the cert, cert is created, 
certificate is configured in codenameone_settings.properties but seems to 
be ignored.

Dňa pondelok, 16. januára 2017 19:04:41 UTC+1 Steve Hannah napísal(-a):
>
> Yes.  It looks like the default certificate I was using in the project has 
> just expired.  I'm working on updating it.  If you generate/provide your 
> own certificate,it will get around the problem in the mean time.
>
> Steve
>
> On Mon, Jan 16, 2017 at 10:00 AM, Ivan > 
> wrote:
>
>> I've prepared the hello world test app but I cannot create debug build 
>> due to expired certificate, this worked two days ago ...
>>
>> C:\Program Files 
>> (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(1908,5):
>>  warning APPX0108: The certificate specified has expired. For more 
>> information about renewing certificates, see 
>> http://go.microsoft.com/fwlink/?LinkID=241478. 
>> [C:\Users\CODENA~1\AppData\Local\Temp\build7009611265229920297xxx\TestProject\UWPProject\UWPApp\UWPApp.csproj]
>>
>>  
>>
>>
>> Dňa sobota, 14. januára 2017 6:49:14 UTC+1 Shai Almog napísal(-a):
>>>
>>> It's odd that something like this will go unnoticed is this happening 
>>> for a hello world application?
>>> Steve, any idea?
>>>
>> -- 
>> 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/fca27f3c-d718-46f8-a2cb-f73d4d2cce9f%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/codenameone-discussions/fca27f3c-d718-46f8-a2cb-f73d4d2cce9f%40googlegroups.com?utm_medium=email&utm_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/d5ff35a9-0cf7-4ea9-9b99-6f05516f82e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: TextAre in UWP

2017-01-16 Thread Ivan
I've prepared the hello world test app but I cannot create debug build due 
to expired certificate, this worked two days ago ...

C:\Program Files 
(x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(1908,5):
 warning APPX0108: The certificate specified has expired. For more information 
about renewing certificates, see http://go.microsoft.com/fwlink/?LinkID=241478. 
[C:\Users\CODENA~1\AppData\Local\Temp\build7009611265229920297xxx\TestProject\UWPProject\UWPApp\UWPApp.csproj]

 


Dňa sobota, 14. januára 2017 6:49:14 UTC+1 Shai Almog napísal(-a):
>
> It's odd that something like this will go unnoticed is this happening for 
> a hello world application?
> Steve, any idea?
>

-- 
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/fca27f3c-d718-46f8-a2cb-f73d4d2cce9f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: UWP Display.getInstance().sendMessage

2017-01-14 Thread Ivan
Hi,

it is just doing nothing.

Dňa sobota, 14. januára 2017 6:50:08 UTC+1 Shai Almog napísal(-a):
>
> Hi,
> as far as I recall sendMessage used to work with the old port so it should 
> work today. Is it failing with a crash or just doing nothing?
>

-- 
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/d21550fd-04a9-45e7-bcd1-6b5b14634dab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: UWP Display.getInstance().sendMessage

2017-01-13 Thread Ivan
this is resolved: 
Display.getInstance().execute("mailto:i...@example.com?subject=email%20subject";);



Dňa piatok, 13. januára 2017 10:27:32 UTC+1 Ivan napísal(-a):
>
> Hi guys,
>
> as Display.getInstance().sendMessage does not work on win 10 mobile 
> device, is it possible somehow to send email from CN1 app using device's 
> built-in email client app?
>
> thanks
>
> Ivan
>
>
> IDE: NetBeans/Eclipse/IDEA
> Desktop OS: Ubuntu 16.04
> Simulator 
> Device: Microsoft Lumia 550
>

-- 
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/d494cad6-aea7-443a-948a-224568959468%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] UWP Display.getInstance().sendMessage

2017-01-13 Thread Ivan
Hi guys,

as Display.getInstance().sendMessage does not work on win 10 mobile device, 
is it possible somehow to send email from CN1 app using device's built-in 
email client app?

thanks

Ivan


IDE: NetBeans/Eclipse/IDEA
Desktop OS: Ubuntu 16.04
Simulator 
Device: Microsoft Lumia 550

-- 
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/1f5f8513-eed4-4af3-bc0c-9472e4d5a7d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: TextAre in UWP

2017-01-13 Thread Ivan
Hi Shai, 

I've tried Native Theme, Flat Blue theme but the behavior (in windows 
device) is still the same.
After gaining focus TA switches to single line. If there are new lines (\n) 
only first line is visible after focus. Editing text with new lines causes 
that invisible lines are lost ...



Dňa piatok, 13. januára 2017 7:54:23 UTC+1 Shai Almog napísal(-a):
>
> Hi,
> it looks like you are using a blank theme which isn't recommended as it 
> can produce very unpredictable results like this. I suggest using a theme 
> that derives from the native theme otherwise it takes a lot of effort to 
> try to detect the specific theme constant that might impact that behavior.
>

-- 
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/6259d51a-bef2-43d4-acb0-d61393b7635e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] TextAre in UWP

2017-01-12 Thread Ivan


Hi guys,

I'm trying to use TextArea in my UWP mobile application.
If focused the frame disappears and multi-line text transforms to on line 
and the edit has unpredictable results ... (see attached images)
It is possible somehow workaround such a behavior pls?  

thanks in advance

Ivan

IDE: Eclipse
Desktop OS: Ubuntu 16.04
Simulator 
Device: Microsoft Lumia 550

-- 
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/08a050d8-7296-4a48-863b-4427b55e6407%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.