Re: [android-developers] Toast not showing on Samsung Galaxy S3 (latest update 4.1.2)

2013-01-14 Thread Tobias
To bad,
got any more clues on what could be wrong, this is making me crazy. Galaxy 
S3 is a too popular phone
to ignore =/

On Monday, January 14, 2013 3:59:03 PM UTC+1, Mark Murphy (a Commons Guy) 
wrote:
>
> On Mon, Jan 14, 2013 at 9:24 AM, Tobias > 
> wrote: 
> > I have a print out both before and after the Toast that I can see so the 
> > code is definitely executed. Have you tried it on S3 with 
> > latest update? 
>
> I don't own one -- a problem which I may need to rectify. 
>
> -- 
> Mark Murphy (a Commons Guy) 
> http://commonsware.com | http://github.com/commonsguy 
> http://commonsware.com/blog | http://twitter.com/commonsguy 
>
> Localized Android Question-and-Answer Sites: http://www.andglobe.com 
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Toast not showing on Samsung Galaxy S3 (latest update 4.1.2)

2013-01-14 Thread Mark Murphy
On Mon, Jan 14, 2013 at 9:24 AM, Tobias  wrote:
> I have a print out both before and after the Toast that I can see so the
> code is definitely executed. Have you tried it on S3 with
> latest update?

I don't own one -- a problem which I may need to rectify.

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Localized Android Question-and-Answer Sites: http://www.andglobe.com

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Toast not showing on Samsung Galaxy S3 (latest update 4.1.2)

2013-01-14 Thread Tobias
Yes,
I have a print out both before and after the Toast that I can see so the 
code is definitely executed. Have you tried it on S3 with
latest update?

On Monday, January 14, 2013 3:09:46 PM UTC+1, Mark Murphy (a Commons Guy) 
wrote:
>
> Have you used a debugger, or Log statements, to confirm that the code 
> paths in which you raise the Toast is still being executed? 
>
> On Mon, Jan 14, 2013 at 9:05 AM, Tobias > 
> wrote: 
> > I tried for e.g. the Alarm app and ofc the Toast worked there but I 
> still 
> > find it strange, I haven't made any changes and it worked bofore and 
> > when I am trying on e.g. my HTC wildfire S that I got here as well it 
> works 
> > fine. 
> > 
> > On Monday, January 14, 2013 2:55:09 PM UTC+1, Mark Murphy (a Commons 
> Guy) 
> > wrote: 
> >> 
> >> On Mon, Jan 14, 2013 at 8:48 AM, Tobias  wrote: 
> >> > I am using an Activity context. As mentioned it works on every phone 
> I 
> >> > have 
> >> > in the office but the Samsung Galaxy S3 and it used to work on Galaxy 
> >> > S3. To me it seems like Samsung have broken Toasts in their latest 
> >> > update. 
> >> 
> >> Do any other apps, already on the device, display toasts as they used 
> to? 
> >> 
> >> -- 
> >> Mark Murphy (a Commons Guy) 
> >> http://commonsware.com | http://github.com/commonsguy 
> >> http://commonsware.com/blog | http://twitter.com/commonsguy 
> >> 
> >> Localized Android Question-and-Answer Sites: http://www.andglobe.com 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> > Groups "Android Developers" group. 
> > To post to this group, send email to 
> > android-d...@googlegroups.com 
> > To unsubscribe from this group, send email to 
> > android-developers+unsubscr...@googlegroups.com  
> > For more options, visit this group at 
> > http://groups.google.com/group/android-developers?hl=en 
>
>
>
> -- 
> Mark Murphy (a Commons Guy) 
> http://commonsware.com | http://github.com/commonsguy 
> http://commonsware.com/blog | http://twitter.com/commonsguy 
>
> Localized Android Question-and-Answer Sites: http://www.andglobe.com 
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Toast not showing on Samsung Galaxy S3 (latest update 4.1.2)

2013-01-14 Thread jason_gates
Hi,
A few suggestions: 

   - I would verify that your code is actually executed (I,E, the code 
   statements in your original post). 
   - Verify no exceptions are thrown. Make sure your code segment is housed 
   in try/catch block.
   - Add statements to the Toast object and ask it to report the x/y 
   coordinates, gravity, etc.

Most unexpected behavior is either in the application code, or the 
application code's interaction with dependent libraries. For example, a 
prior version of a dependent library always constructed a value. In the 
newer library version, the value is set to null and not guaranteed to have 
a value till certain conditions are met. If your application is not 
checking that values are null before use, you will get unexpected behavior.

Hope that helps :)
Good Luck
Jason 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Toast not showing on Samsung Galaxy S3 (latest update 4.1.2)

2013-01-14 Thread Mark Murphy
Have you used a debugger, or Log statements, to confirm that the code
paths in which you raise the Toast is still being executed?

On Mon, Jan 14, 2013 at 9:05 AM, Tobias  wrote:
> I tried for e.g. the Alarm app and ofc the Toast worked there but I still
> find it strange, I haven't made any changes and it worked bofore and
> when I am trying on e.g. my HTC wildfire S that I got here as well it works
> fine.
>
> On Monday, January 14, 2013 2:55:09 PM UTC+1, Mark Murphy (a Commons Guy)
> wrote:
>>
>> On Mon, Jan 14, 2013 at 8:48 AM, Tobias  wrote:
>> > I am using an Activity context. As mentioned it works on every phone I
>> > have
>> > in the office but the Samsung Galaxy S3 and it used to work on Galaxy
>> > S3. To me it seems like Samsung have broken Toasts in their latest
>> > update.
>>
>> Do any other apps, already on the device, display toasts as they used to?
>>
>> --
>> Mark Murphy (a Commons Guy)
>> http://commonsware.com | http://github.com/commonsguy
>> http://commonsware.com/blog | http://twitter.com/commonsguy
>>
>> Localized Android Question-and-Answer Sites: http://www.andglobe.com
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Localized Android Question-and-Answer Sites: http://www.andglobe.com

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Toast not showing on Samsung Galaxy S3 (latest update 4.1.2)

2013-01-14 Thread Tobias
I tried for e.g. the Alarm app and ofc the Toast worked there but I still 
find it strange, I haven't made any changes and it worked bofore and
when I am trying on e.g. my HTC wildfire S that I got here as well it works 
fine.

On Monday, January 14, 2013 2:55:09 PM UTC+1, Mark Murphy (a Commons Guy) 
wrote:
>
> On Mon, Jan 14, 2013 at 8:48 AM, Tobias > 
> wrote: 
> > I am using an Activity context. As mentioned it works on every phone I 
> have 
> > in the office but the Samsung Galaxy S3 and it used to work on Galaxy 
> > S3. To me it seems like Samsung have broken Toasts in their latest 
> update. 
>
> Do any other apps, already on the device, display toasts as they used to? 
>
> -- 
> Mark Murphy (a Commons Guy) 
> http://commonsware.com | http://github.com/commonsguy 
> http://commonsware.com/blog | http://twitter.com/commonsguy 
>
> Localized Android Question-and-Answer Sites: http://www.andglobe.com 
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Toast not showing on Samsung Galaxy S3 (latest update 4.1.2)

2013-01-14 Thread Mark Murphy
On Mon, Jan 14, 2013 at 8:48 AM, Tobias  wrote:
> I am using an Activity context. As mentioned it works on every phone I have
> in the office but the Samsung Galaxy S3 and it used to work on Galaxy
> S3. To me it seems like Samsung have broken Toasts in their latest update.

Do any other apps, already on the device, display toasts as they used to?

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Localized Android Question-and-Answer Sites: http://www.andglobe.com

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Toast not showing on Samsung Galaxy S3 (latest update 4.1.2)

2013-01-14 Thread Tobias
I am using an Activity context. As mentioned it works on every phone I have 
in the office but the Samsung Galaxy S3 and it used to work on Galaxy
S3. To me it seems like Samsung have broken Toasts in their latest update.

On Monday, January 14, 2013 2:27:46 PM UTC+1, Mark Murphy (a Commons Guy) 
wrote:
>
> What Context are you using? Is it the Activity, or something else? If 
> it is not the Activity, try switching to that and see if the behavior 
> changes. 
>
> I wouldn't expect that to have an impact, but, then again, I wouldn't 
> expect your problem, either. 
>
>
> On Mon, Jan 14, 2013 at 8:06 AM, Tobias > 
> wrote: 
> > I have a toast displayed in the following way: 
> > 
> > Toast.makeText(context, "The message", Toast.LENGTH_LONG).show(); 
> > 
> > 
> > I am 100% I am displaying the toast from the UI thread and I can add 
> that it 
> > worked fine for many devices including older updates of Galaxy S3 but 
> after 
> > latest update no one of my toasts are being displayed. 
> > 
> > Have anyone else experienced this and have a solution? 
> > 
> > Thanks, 
> > Tobias 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> > Groups "Android Developers" group. 
> > To post to this group, send email to 
> > android-d...@googlegroups.com 
> > To unsubscribe from this group, send email to 
> > android-developers+unsubscr...@googlegroups.com  
> > For more options, visit this group at 
> > http://groups.google.com/group/android-developers?hl=en 
>
>
>
> -- 
> Mark Murphy (a Commons Guy) 
> http://commonsware.com | http://github.com/commonsguy 
> http://commonsware.com/blog | http://twitter.com/commonsguy 
>
> Localized Android Question-and-Answer Sites: http://www.andglobe.com 
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Toast not showing on Samsung Galaxy S3 (latest update 4.1.2)

2013-01-14 Thread Mark Murphy
What Context are you using? Is it the Activity, or something else? If
it is not the Activity, try switching to that and see if the behavior
changes.

I wouldn't expect that to have an impact, but, then again, I wouldn't
expect your problem, either.


On Mon, Jan 14, 2013 at 8:06 AM, Tobias  wrote:
> I have a toast displayed in the following way:
>
> Toast.makeText(context, "The message", Toast.LENGTH_LONG).show();
>
>
> I am 100% I am displaying the toast from the UI thread and I can add that it
> worked fine for many devices including older updates of Galaxy S3 but after
> latest update no one of my toasts are being displayed.
>
> Have anyone else experienced this and have a solution?
>
> Thanks,
> Tobias
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Localized Android Question-and-Answer Sites: http://www.andglobe.com

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en