[codenameone-discussions] Re: Downloading image to label automatically

2019-03-29 Thread Shai Almog
There is no event for download. Try creating a hello world with a label/URL 
image and see if that works. Then try to reproduce the problem you're 
experiencing.

-- 
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/660bf524-6745-44ec-a000-cb63d47536e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2019-03-29 Thread Shai Almog
Are you using the SimpleDateFormat from java.text or com.codename1.l10n?
Use the latter.

-- 
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/7b9ee9a3-044f-4460-b173-41732f3567f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] MediaPlayer on ios

2019-03-29 Thread Shai Almog
Just set the UIID value to a white background on the media UIID. You can 
find that via component inspector.

-- 
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/8af75751-d00e-4a02-9cf5-6fdadc9aad21%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2019-03-29 Thread Shai Almog
I'll need a test case as this doesn't happen in our tests. So I'll need you 
to isolate that in a clean sample. 

-- 
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/2746728d-a501-40f7-81f7-a80240e6fab0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: status of sqlite DB and threads?

2019-03-29 Thread Shai Almog
Because the constructor happens on a separate thread.

-- 
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/8e8ad7c4-acb7-4acc-9505-1ee28df8a929%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Downloading image to label automatically

2019-03-29 Thread Gareth Murfin
No I didnt do anything like that, just ordinary usage. Is there an event 
when the image is downloaded I can tap into to try and do it there?

As for url as name, doesnt seem to matter, this only fails the very first 
time it is downloaded, from then on since it exists its set right away.

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

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


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

2019-03-29 Thread Gareth Murfin
im assuming the week begins on a sunday in java, if so all good, i remember 
seeing that once on my casio watch but never again :)

On Friday, March 29, 2019 at 7:42:06 PM UTC+8, Gareth Murfin wrote:
>
> So yeah I was substringing date.toString, not a good idea. I changed it to 
> be more consistent as shown below, but I still have a weird issue, day of 
> the week seems to be 2 days out:
>
>  int DAY_OF_WEEK = cal.get(java.util.Calendar.DAY_OF_WEEK);
> switch(DAY_OF_WEEK)
> {
> case 0: dayName="Mon";break;
> case 1: dayName="Tue";break;
> case 2: dayName="Wed";break;
> case 3: dayName="Thu";break;
> case 4: dayName="Fri";break;
> case 5: dayName="Sat";break;
> case 6: dayName="Sun";break;
> }
>
> tells me aug 31 2018 was sunday, but it was friday?
> even if I start at case 1: its still one day out, whats happening? sure 
> ive been thru this so many times.
>
> SimpleDateFormat dateTodaySDF = new SimpleDateFormat("-MM-dd");
> Date dateToday = null; //a date object representing the string 
> they passed in
> try {
> dateToday   = dateTodaySDF.parse(stringDate);
> _("dateToday -> "+dateToday.toString());
> //do this purely in cn1 so its same on ios and android, no 
> toString stuff on dates
> java.util.Calendar cal = java.util.Calendar.getInstance(); 
> cal.setTime(dateToday); 
> 
> int DAY_OF_WEEK = cal.get(java.util.Calendar.DAY_OF_WEEK);
> int DAY_OF_MONTH = cal.get(java.util.Calendar.DAY_OF_MONTH);   
> switch(DAY_OF_WEEK)
> {
> case 0: dayName="Mon";break;
> case 1: dayName="Tue";break;
> case 2: dayName="Wed";break;
> case 3: dayName="Thu";break;
> case 4: dayName="Fri";break;
> case 5: dayName="Sat";break;
> case 6: dayName="Sun";break;
> }
> dayDate=""+DAY_OF_MONTH;
> _("DAY_OF_WEEK  ->"+dayName);
> _("DAY_OF_MONTH ->"+DAY_OF_MONTH);
> int MONTH = cal.get(java.util.Calendar.MONTH);
> switch(MONTH)
> {
> case 0: monthName="Jan";break;
> case 1: monthName="Feb";break;
> case 2: monthName="Mar";break;
> case 3: monthName="Apr";break;
> case 4: monthName="May";break;
> case 5: monthName="Jun";break;
> case 6: monthName="Jul";break;
> case 7: monthName="Aug";break;
> case 8: monthName="Sep";break;
> case 9: monthName="Oct";break;
> case 10: monthName="Nov";break;
> case 11: monthName="Dec";break;
> }
> _("MONTH ->"+monthName);
> monthNumber=(MONTH+1)+"";
> _("monthNumber-> "+monthNumber);
> _("So the date passed in was: "+dayName+", "+DAY_OF_MONTH+" of 
> "+monthName);
>
> On Friday, March 29, 2019 at 6:56:13 PM UTC+8, Gareth Murfin wrote:
>>
>> this code runs fine on android and emulator  from my test it produces:
>> "dateTodayS: Fri Aug 31, dayName: Fri monthName: Aug, dayDate: 31, 
>> monthNumber:08",
>>
>> but on real ios it produces:
>>
>> "dateTodayS: August 31, dayName: Aug monthName: st, dayDate: 1, 
>> monthNumber:08",
>>
>> I realise its just parsing different because of the result from parsing 
>> the date, but shouldnt it behave identically on all platforms?
>>
>>
>> _("DateStringHolder received "+stringDate);
>> SimpleDateFormat dateTodaySDF = new 
>> SimpleDateFormat("-MM-dd");
>> Date dateToday = null; //a date object representing the string 
>> they passed in
>> try {
>> dateToday   = dateTodaySDF.parse(stringDate);
>> String dateTodayS = dateToday.toString();
>> dayName= dateTodayS.substring(0,3);
>> monthName  = dateTodayS.substring(4,7);
>> dayDate= dateTodayS.substring(8,10);
>> monthNumber= stringDate.substring(5,7);
>> 
>> //for testing differences on ios and android!
>> Dialog.show("ios debug", "dateTodayS:"+dateTodayS+", 
>> dayName:"+dayName+", monthName:"+monthName+", dayDate:"+dayDate+", 
>> monthNumber:"+monthNumber, "OK", "Cancel");
>> }
>> catch(Exception e)
>> {
>> _("**warning** cant parse date! "+e.getMessage()+" 
>> ->"+stringDate);
>> e.printStackTrace();
>> }
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at 

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

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

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

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

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

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

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

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/3d346548-522a-4c2d-8ad0-0274b289a07e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Date parsing different on iOS?

2019-03-29 Thread Gareth Murfin
this code runs fine on android and emulator  from my test it produces:
"dateTodayS: Fri Aug 31, dayName: Fri monthName: Aug, dayDate: 31, 
monthNumber:08",

but on real ios it produces:

"dateTodayS: August 31, dayName: Aug monthName: st, dayDate: 1, 
monthNumber:08",

I realise its just parsing different because of the result from parsing the 
date, but shouldnt it behave identically on all platforms?


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

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

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


Re: [codenameone-discussions] MediaPlayer on ios

2019-03-29 Thread Gareth Murfin
Though one thing ive noticed is that behind the video (presumably where it 
doesnt fit due to ratio or whatever) there is a black background, I need 
this to be white, is there any way?

On Friday, March 29, 2019 at 5:57:48 PM UTC+8, Gareth Murfin wrote:
>
> Sorry!! turns out somehow my prepare line was commented out! It does work 
> perfectly. Thanks. Also setting it to invisible just before transition 
> stops the jerk.. awesome! now if only i could fix my status bar on ios 
>
> On Friday, March 29, 2019 at 5:20:13 PM UTC+8, Gareth Murfin wrote:
>>
>> Thanks, so you're saying I should remove it or set it invisible before 
>> transitioning to new screen?
>>
>> Also the "prepare" call doesnt stop the video player being black, the 
>> controls dont appear either, so instead of a video I just see a black box, 
>> this works fine on emulators and android. 
>>
>> On Friday, March 29, 2019 at 12:45:22 AM UTC+8, Steve Hannah wrote:
>>>
>>> This is likely because during a form transition, it needs to perform a 
>>> lightweight rendering of the outgoing form.  For native peers, this can 
>>> cause some jitter like you're describing.  
>>>
>>> On Thu, Mar 28, 2019 at 9:40 AM Gareth Murfin  
>>> wrote:
>>>
 Ive noticed when I leave a screen with the media player on it briefly 
 flashes black, is there some way to stop this? like do I need to release 
 it 
 before I swap forms or something? 

 On Monday, March 11, 2019 at 7:17:59 PM UTC+8, Gareth Murfin wrote:
>
> thanks steve, will give it a go... reminds me of j2me days :)
>
> On Friday, March 8, 2019 at 10:02:44 PM UTC+8, Steve Hannah wrote:
>>
>> Actually, upon closer inspection, I see why this is.  On iOS, it 
>> doesn't "prepare" the media automatically because the act of preparing 
>> media might disrupt other active media in the App.  You need to call the 
>> prepare() method on the media if you want the frame and embedded 
>> controls 
>> to appear.
>>
>>
>>
>> On Fri, Mar 8, 2019 at 5:40 AM Steve Hannah <
>> steve@codenameone.com> wrote:
>>
>>> There appears to be an issue there.  If you enable autoplay, this 
>>> should work around it for now.  There will be a fix soon.
>>>
>>> On Fri, Mar 8, 2019 at 12:08 AM Gareth Murfin  
>>> wrote:
>>>
 on ios my mediaplayer is just black, no controls or frames.. works 
 fine on android/simulator - any ideas?

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

>>>
>>>
>>> -- 
>>> Steve Hannah
>>> Software Developer
>>> Codename One
>>> http://www.codenameone.com
>>>
>>
>>
>> -- 
>> Steve Hannah
>> Software Developer
>> Codename One
>> http://www.codenameone.com
>>
> -- 
 You received this message because you are subscribed to the Google 
 Groups "CodenameOne Discussions" group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to codenameone-discussions+unsubscr...@googlegroups.com.
 Visit this group at 
 https://groups.google.com/group/codenameone-discussions.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/codenameone-discussions/29453d77-37f1-4add-8526-50600cf1c48a%40googlegroups.com
  
 
 .
 For more options, visit https://groups.google.com/d/optout.

>>>
>>>
>>> -- 
>>> 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/4ba1e1b4-9177-4353-93e6-fe5883e7ce89%40googlegroups.com.
For more options, visit 

Re: [codenameone-discussions] MediaPlayer on ios

2019-03-29 Thread Gareth Murfin
Sorry!! turns out somehow my prepare line was commented out! It does work 
perfectly. Thanks. Also setting it to invisible just before transition 
stops the jerk.. awesome! now if only i could fix my status bar on ios 

On Friday, March 29, 2019 at 5:20:13 PM UTC+8, Gareth Murfin wrote:
>
> Thanks, so you're saying I should remove it or set it invisible before 
> transitioning to new screen?
>
> Also the "prepare" call doesnt stop the video player being black, the 
> controls dont appear either, so instead of a video I just see a black box, 
> this works fine on emulators and android. 
>
> On Friday, March 29, 2019 at 12:45:22 AM UTC+8, Steve Hannah wrote:
>>
>> This is likely because during a form transition, it needs to perform a 
>> lightweight rendering of the outgoing form.  For native peers, this can 
>> cause some jitter like you're describing.  
>>
>> On Thu, Mar 28, 2019 at 9:40 AM Gareth Murfin  
>> wrote:
>>
>>> Ive noticed when I leave a screen with the media player on it briefly 
>>> flashes black, is there some way to stop this? like do I need to release it 
>>> before I swap forms or something? 
>>>
>>> On Monday, March 11, 2019 at 7:17:59 PM UTC+8, Gareth Murfin wrote:

 thanks steve, will give it a go... reminds me of j2me days :)

 On Friday, March 8, 2019 at 10:02:44 PM UTC+8, Steve Hannah wrote:
>
> Actually, upon closer inspection, I see why this is.  On iOS, it 
> doesn't "prepare" the media automatically because the act of preparing 
> media might disrupt other active media in the App.  You need to call the 
> prepare() method on the media if you want the frame and embedded controls 
> to appear.
>
>
>
> On Fri, Mar 8, 2019 at 5:40 AM Steve Hannah  
> wrote:
>
>> There appears to be an issue there.  If you enable autoplay, this 
>> should work around it for now.  There will be a fix soon.
>>
>> On Fri, Mar 8, 2019 at 12:08 AM Gareth Murfin  
>> wrote:
>>
>>> on ios my mediaplayer is just black, no controls or frames.. works 
>>> fine on android/simulator - any ideas?
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "CodenameOne Discussions" group.
>>> To unsubscribe from this group and stop receiving emails from it, 
>>> send an email to 
>>> codenameone-discussions+unsubscr...@googlegroups.com.
>>> Visit this group at 
>>> https://groups.google.com/group/codenameone-discussions.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/codenameone-discussions/a249f5f1-8b53-4767-93d2-391fecd1a4f4%40googlegroups.com
>>>  
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> -- 
>> Steve Hannah
>> Software Developer
>> Codename One
>> http://www.codenameone.com
>>
>
>
> -- 
> Steve Hannah
> Software Developer
> Codename One
> http://www.codenameone.com
>
 -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "CodenameOne Discussions" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to codenameone-discussions+unsubscr...@googlegroups.com.
>>> Visit this group at 
>>> https://groups.google.com/group/codenameone-discussions.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/codenameone-discussions/29453d77-37f1-4add-8526-50600cf1c48a%40googlegroups.com
>>>  
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> -- 
>> Steve Hannah
>> Software Developer
>> Codename One
>> http://www.codenameone.com
>>
>

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


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

2019-03-29 Thread Gareth Murfin
Well, thats a difficult question to answer because im not sure what you 
mean, well im not sure what the white bar is in the first place. 

My form is a borderlayout, inside "contentpane" I have NORTH, CENTRE, 
SOUTH, but im presuming that is not relevant. So looking at component 
inspector I have what you would expect Toolbar contains StatusBar, and a 
container with 2 buttons with TitleCommand uuid. 

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

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

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




On Friday, March 29, 2019 at 11:22:58 AM UTC+8, Shai Almog wrote:
>
> How did you customize the colors of the title area/form?
> I'm guessing you are seeing one of those there during the transition.
>

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


Re: [codenameone-discussions] MediaPlayer on ios

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

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

On Friday, March 29, 2019 at 12:45:22 AM UTC+8, Steve Hannah wrote:
>
> This is likely because during a form transition, it needs to perform a 
> lightweight rendering of the outgoing form.  For native peers, this can 
> cause some jitter like you're describing.  
>
> On Thu, Mar 28, 2019 at 9:40 AM Gareth Murfin  > wrote:
>
>> Ive noticed when I leave a screen with the media player on it briefly 
>> flashes black, is there some way to stop this? like do I need to release it 
>> before I swap forms or something? 
>>
>> On Monday, March 11, 2019 at 7:17:59 PM UTC+8, Gareth Murfin wrote:
>>>
>>> thanks steve, will give it a go... reminds me of j2me days :)
>>>
>>> On Friday, March 8, 2019 at 10:02:44 PM UTC+8, Steve Hannah wrote:

 Actually, upon closer inspection, I see why this is.  On iOS, it 
 doesn't "prepare" the media automatically because the act of preparing 
 media might disrupt other active media in the App.  You need to call the 
 prepare() method on the media if you want the frame and embedded controls 
 to appear.



 On Fri, Mar 8, 2019 at 5:40 AM Steve Hannah  
 wrote:

> There appears to be an issue there.  If you enable autoplay, this 
> should work around it for now.  There will be a fix soon.
>
> On Fri, Mar 8, 2019 at 12:08 AM Gareth Murfin  
> wrote:
>
>> on ios my mediaplayer is just black, no controls or frames.. works 
>> fine on android/simulator - any ideas?
>>
>> -- 
>> You received this message because you are subscribed to the Google 
>> Groups "CodenameOne Discussions" group.
>> To unsubscribe from this group and stop receiving emails from it, 
>> send an email to codenameone-discussions+unsubscr...@googlegroups.com
>> .
>> Visit this group at 
>> https://groups.google.com/group/codenameone-discussions.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/codenameone-discussions/a249f5f1-8b53-4767-93d2-391fecd1a4f4%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> -- 
> Steve Hannah
> Software Developer
> Codename One
> http://www.codenameone.com
>


 -- 
 Steve Hannah
 Software Developer
 Codename One
 http://www.codenameone.com

>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "CodenameOne Discussions" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to codenameone-discussions+unsubscr...@googlegroups.com 
>> .
>> Visit this group at 
>> https://groups.google.com/group/codenameone-discussions.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/codenameone-discussions/29453d77-37f1-4add-8526-50600cf1c48a%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> -- 
> Steve Hannah
> Software Developer
> Codename One
> http://www.codenameone.com
>

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