[codenameone-discussions] Re: is there an API to view tasks like Windows Task Manager

2019-06-29 Thread Shai Almog
Android tools are literally on your device. You can activate them and run 
them. 
You can use xcode tools with include source or without. Everything here is 
100% applicable.
When the app is suspended it takes no significant CPU. If it would the OS 
would kill it.

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


[codenameone-discussions] Re: Problem with Date Picker Pervious & Next Month Days Selection

2019-06-29 Thread Shai Almog
They are disabled because they're a part of the next month. You need to 
switch to the next month to select them. You can change their style by 
overriding the disabled style of Day.

-- 
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/2ac7d4a7-48fd-46c4-99b4-4706909575a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: The links that have pages with gif animations are not shown

2019-06-29 Thread Shai Almog
Decode can take some time. You can do it on a separate thread so you won't 
block the EDT. It should work for this particular case although I'm not 
100% sure.

-- 
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/322be61e-94f0-4cff-8bba-ec98aeab8e19%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: is there an API to view tasks like Windows Task Manager

2019-06-29 Thread shop . service . assistant
Do we have an Codenameone API to access these tools?

I would like to see the basic performance while the app is running VS being 
suspended.

Thoughts?

On Friday, June 28, 2019 at 11:53:21 PM UTC-4, Shai Almog wrote:
>
> Yes devices also have energy management tools as well to see energy usage. 
> You can see these in the developer tools on Android devices. In iOS you can 
> see this information via the xcode profiler tools.
>

-- 
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/1d57792c-73c5-45b4-8e81-179a5279955a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Problem with Date Picker Pervious & Next Month Days Selection

2019-06-29 Thread shop . service . assistant
Yes.
Now click/touch any date after the 30th.

touching any date in current month, you can see it is selectes/highlighted.
Touching any date like the 1st will not highlight and when clicking on Done 
does not change date.

Regards.

On Friday, June 28, 2019 at 11:57:59 PM UTC-4, Shai Almog wrote:
>
> Hi,
> this worked for me. Did you click "Done"?
>
> Form hi = new Form("Test");
> Picker A3TimeSheetDate = new Picker();
> A3TimeSheetDate.setUseLightweightPopup(true);
> A3TimeSheetDate.setDate(new Date());
> A3TimeSheetDate.setType(Display.PICKER_TYPE_CALENDAR);
> hi.add(A3TimeSheetDate);
>
>
>

-- 
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/82d123d1-90b9-4bd4-955e-350ea4bef960%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: Android API 28

2019-06-29 Thread Steve Hannah
> I see the problem. It's a bit tricky. It seems Android killed support for
> enlarging the clipping area which is a bit insane...
>

I have some uncommitted code that complies with this clipping limitation.
I made the changes as part of some experiments to improve performance, but
I didn't commit them because they didn't cause any performance improvement
- and the deprecated way still worked as far as I knew.  I'll parse these
changes out and commit them.

Steve

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


[codenameone-discussions] Re: The links that have pages with gif animations are not shown

2019-06-29 Thread Fuad Nassar
https://media.giphy.com/media/WprtU5zQoOPvdo260u/giphy.gif 

-- 
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/de107e0b-a1b2-4888-b9c3-f0a5256c0a3b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: The links that have pages with gif animations are not shown

2019-06-29 Thread Fuad Nassar
https://media.giphy.com/media/WprtU5zQoOPvdo260u/giphy.gif 

>
>
> [image: sp2.gif]
> and set this code in main.class
>   Form hi = new Form("Gif", new BorderLayout());
> try {
> hi.add(CENTER, new 
> ScaleImageLabel(GifImage.decode(getResourceAsStream("/sp2.gif"), 950272)));
> } catch (IOException err) {
> log(err);
> }
> hi.show();
>
> and after tested that on the real android device (8.0.0.158v) the black 
> screen is keeping show before loading gif img like this 
>
> [image: isuess.jpg]
>
> i don't like to keep this black screen and i want to get any way can help 
> to fix this.
>
> some ideas (but i don't know if that possible):
> 1) load gif image before open app 
> 2) use native code 
> 3) get a gif image from theme file 
> 4) replace black screen to first frame for gif image
> 5) reduce size of gif image( This can help, but is not a fix to the 
> problem)
>
>
>
>
> On Saturday, June 29, 2019 at 6:49:38 AM UTC+3, Shai Almog wrote:
>>
>> https://www.codenameone.com/blog/animated-gif-support.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/38237dc3-9aae-44dc-8543-0fafa19bc50f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: The links that have pages with gif animations are not shown

2019-06-29 Thread Fuad Nassar
I used same these cn1lib and add this image in src file


[image: sp2.gif]
and set this code in main.class
  Form hi = new Form("Gif", new BorderLayout());
try {
hi.add(CENTER, new 
ScaleImageLabel(GifImage.decode(getResourceAsStream("/sp2.gif"), 950272)));
} catch (IOException err) {
log(err);
}
hi.show();

and after tested that on the real android device (8.0.0.158v) the black 
screen is keeping show before loading gif img like this 

[image: isuess.jpg]

i don't like to keep this black screen and i want to get any way can help 
to fix this.

some ideas (but i don't know if that possible):
1) load gif image before open app 
2) use native code 
3) get a gif image from theme file 
4) replace black screen to first frame for gif image
5) reduce size of gif image( This can help, but is not a fix to the problem)




On Saturday, June 29, 2019 at 6:49:38 AM UTC+3, Shai Almog wrote:
>
> https://www.codenameone.com/blog/animated-gif-support.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/7db9d347-80c3-485e-ad04-66c4140b9efd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Android API 28

2019-06-29 Thread Thomas
time to switch to a common redering engine like skia for all platforms  ;)

On Saturday, June 29, 2019 at 5:51:45 AM UTC+2, Shai Almog wrote:
>
> Hi,
> I see the problem. It's a bit tricky. It seems Android killed support for 
> enlarging the clipping area which is a bit insane... 
>

-- 
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/0aca6327-2ed0-47b2-a730-0602cc70f388%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.