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 a

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://c

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

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 th

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 change

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 Gu

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, alre

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) w

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:

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

2013-01-14 Thread Tobias
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 t

[android-developers] Toast in phone state listener

2012-12-20 Thread sujit dubey
I am trying to display a toast on incoming call and the toast should disappear on "CALL_STATE_IDLE" but toast continues to appear even after reaching to idle state, here is my code: @Override public void onCallStateChanged(int state, String incomingNumber) { To

Re: [android-developers] Toast not working on honeycomb and ics

2012-02-15 Thread Mark Murphy
This has worked on every Android device I have ever tried it on, including several 3.0+ devices. On Wed, Feb 15, 2012 at 3:43 AM, giles ian wrote: > Hi, > > The below piece of code is working fine on 2.2&2.3 but not on 3.0 onwards. > > Toast.makeText(SomeActivity.this, > getResources().getString(

[android-developers] Toast not working on honeycomb and ics

2012-02-15 Thread giles ian
Hi, The below piece of code is working fine on 2.2&2.3 but not on 3.0 onwards. Toast.makeText(SomeActivity.this, getResources().getString(R.string.not_implemented), Toast.LENGTH_SHORT).show(); Thanks, Pawan Nimje -- You received this message because you are subscribed to the Google Groups "And

Re: [android-developers] Toast messages very small on Galaxy Nexus for Launcher2 fork

2011-12-15 Thread David Strickland
> If you're modifying the source, try one of the groups dedicated to that - > you'll likely get better help than here from people dealing strictly with > the SDK. > Thanks for the tip. Only other group where this seems relevant is android-porting, so I've just now cross posted there (apologie

Re: [android-developers] Toast messages very small on Galaxy Nexus for Launcher2 fork

2011-12-12 Thread TreKing
On Mon, Dec 12, 2011 at 10:35 AM, David Strickland wrote: > However, the unmodified Launcher2 displays normal sized Toast messages. > > Any tips where to look that I may have messed up? > If you're modifying the source, try one of the groups dedicated to that - you'll likely get better help than

[android-developers] Toast messages very small on Galaxy Nexus for Launcher2 fork

2011-12-12 Thread David Strickland
Hi all, I cloned the Launcher2 project from source.android.com (master branch), made some modifications (keeping the attribution, of course), built it, and installed on a Galaxy Nexus device. For an unknown reason the Toast messages displayed by my launcher are extremely small. I assume this is d

Re: [android-developers] Toast for Non-activity class

2011-05-26 Thread m.haythem rouis
use thread to display Toast from non-activity class new Runnable() { public void run() { // Your toast Here } }; 2011/5/26 Abhishek Kumar Gupta > I want to display the Toast for Non-activity class which is

[android-developers] Toast for Non-activity class

2011-05-25 Thread Abhishek Kumar Gupta
I want to display the Toast for Non-activity class which is present in the framework(framework/base/policy). Please help me. -- 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@googlegroup

Re: [android-developers] Toast not disappearing

2011-03-01 Thread Julius Spencer
Hi, No unfortunately that didn't work. Thanks for the idea though. I think I'll use a notification instead (as it appears I probably should be). Cheers, Julius. On 2/03/2011, at 8:56 AM, Kostya Vasilyev wrote: > Yes, that's pretty close to what I had in mind - assuming that the handler is

Re: [android-developers] Toast not disappearing

2011-03-01 Thread Kostya Vasilyev
Yes, that's pretty close to what I had in mind - assuming that the handler is created on the UI thread, such as inside the service's onCreate(). And I would marshal the message string, not the Toast object, so you don't even have to instantiate Toast objects in the worker thread. But the $64

Re: [android-developers] Toast not disappearing

2011-03-01 Thread Julius Spencer
Hi Kostya, I'm not sure how to access the UI thread from within an IntentService. (If in an Activity I would use runOnUiThread) So far I have: private void showToastOnUIThread(final Toast toast) { handler.post(new Runnable() {

Re: [android-developers] Toast not disappearing

2011-03-01 Thread Kostya Vasilyev
Julius, You mentioned IntentService, which runs your code on a background thread. Even though Toast can supposedly be shown from any thread, I'd try changing the code so that you show the toast from the UI thread. That's easy to do with a Handler and a small Runnable subclass. -- Kostya 01.

Re: [android-developers] Toast not disappearing

2011-02-28 Thread Julius Spencer
Unfortunately that didn't work. In on Destroy() I put in: System.out.println("Duration: "+toastMessage.getDuration()); toastMessage.cancel(); (where toastMessage was assigned any toastMessage I'd created and shown) and I got: Duration: 0 Not sure

Re: [android-developers] Toast not disappearing

2011-02-28 Thread Julius Spencer
Yeah it's definitely being hit just once (I put a break point in). I'll try out dismissing it if the IntentService is destroyed. Thanks for the replies everyone. Regards, Julius. On 1/03/2011, at 4:15 PM, TreKing wrote: > On Mon, Feb 28, 2011 at 8:53 PM, Julius Spencer wrote: > I'm sure it's

Re: [android-developers] Toast not disappearing

2011-02-28 Thread TreKing
On Mon, Feb 28, 2011 at 8:53 PM, Julius Spencer wrote: > I'm sure it's just something I'm not thinking of but I'm stumped... You're not calling it over and over again are you? - TreKing

[android-developers] Toast not disappearing

2011-02-28 Thread Julius Spencer
Hi, I have an IntentService from which I am showing a Toast using: Toast.makeText(this, errorMessage.toString(), Toast.LENGTH_SHORT).show(); For some reason it's not disappearing. Just wondering if anyone has seen this before or knows what I'm doing wrong. I'm sure it's just something

[android-developers] Toast cropped on small screens

2010-12-03 Thread jraanamo
Toast messages get truncated/cropped when app is running on a smaller screen like SDK's QVGA. All messages with more than one word get wrapped on multiple lines but only the first line is visible and next is fading into transparency. Even tried with custom view, margins and positioning but now luck

Re: [android-developers] Toast not changing on mapactivity

2010-09-15 Thread TreKing
On Tue, Sep 14, 2010 at 10:40 PM, dadada wrote: > However, my first Toast appears and it never change despite detecting > changes in sensor values. > > What could be the reason? > You're sure the other statements are being hit? (Breakpoints or logging will tell you that. Is the value actually c

[android-developers] Toast not changing on mapactivity

2010-09-14 Thread dadada
Hello, I tried to update my mapactivity with toast as the sensor data changes. However, my first Toast appears and it never change despite detecting changes in sensor values. What could be the reason? Below is the snippet of my SensorListener: Can someone please give me some advices! Thanks!

[android-developers] Toast message not displayed

2010-08-05 Thread nikki
hi group i have a service class written which gives notification(Toast dialog) on every life cycle method call back. when i run my application all works well. but when run this service class from my test project the toast message are not displayed. it give the following log for the toast message

Re: [android-developers] Toast on Top of ListView?

2010-05-05 Thread TreKing
On Wed, May 5, 2010 at 7:00 AM, javame_android wrote: > Currently I get an error as IndexOutOfBoundException : Invalid location 15 > size is 1. > This sounds more like you have a bug in how you're accessing your list of data and probably has absolutely nothing to do with showing the toast. Look a

[android-developers] Toast on Top of ListView?

2010-05-05 Thread javame_android
Hi, I have a listview in my Android Application. Now, when the user presses Next Button other contents will be loaded into the listview. What I want is that if there are no more contents available then there should be a toast displayed indicating that there are no more data available. Say, for ex

Re: [android-developers] toast

2009-12-01 Thread Greg Donald
On Mon, Nov 30, 2009 at 11:30 PM, Suchand Ghosh wrote: > what code base you r using? there should be function to hide toast. Hide > generally post a msg to mHandler to hide the Toast. I'm still developing against 1.5. I guess hide() appears in 1.6 or 2.0 ? -- Greg Donald http://destiney.com/

Re: [android-developers] toast

2009-11-30 Thread Suchand Ghosh
what code base you r using? there should be function to hide toast. Hide generally post a msg to mHandler to hide the Toast. On Tue, Dec 1, 2009 at 10:50 AM, Greg Donald wrote: > On Mon, Nov 30, 2009 at 10:57 PM, Suchand Ghosh > wrote: > > Dear Greg Donald, > > There i

Re: [android-developers] toast

2009-11-30 Thread Greg Donald
On Mon, Nov 30, 2009 at 10:57 PM, Suchand Ghosh wrote: > Dear Greg Donald, >   There is problem with Toast cancel() function, > t.cancel() will not cancel the inflight notification. > Better option use t.hide() instead of t.cancel(). t.hide() doesn't seem to exist. -- G

Re: [android-developers] toast

2009-11-30 Thread Suchand Ghosh
Dear Greg Donald, There is problem with Toast cancel() function, t.cancel() will not cancel the inflight notification. Better option use t.hide() instead of t.cancel(). Cheers... BR, Suchand On Fri, Nov 27, 2009 at 11:23 PM, Greg Donald wrote: > How can I keep Toast fr

[android-developers] toast

2009-11-27 Thread Greg Donald
How can I keep Toast from building up a queue of messages? I'm working on a board game and I'm sending status messages back to the user with this wrapper function I created for Toast: private void toast( String s ) { if( t != null ) t.cancel

Re: [android-developers] Toast doesn't leave

2009-11-17 Thread Stephen Abrams
No stuck toasts here. As documented, you generally don't have to cancel them as they expire after the time you set, but there have been cases I've wanted to dismiss them sooner than the timer (depending on user actions), In the main UI thread you can call myInstantiatedToast.cancel(); Has to be i

Re: [android-developers] Toast doesn't leave

2009-11-17 Thread Wayne Wenthin
I haven't had a chance to try to reproduce it. I'm hoping to have him give me more information on the phone and the current os version. On Tue, Nov 17, 2009 at 9:32 AM, Aniruddh Bajirao wrote: > Are you able to recreate the exact problem mentioned by the user? > Try to see what is happening in t

Re: [android-developers] Toast doesn't leave

2009-11-17 Thread Aniruddh Bajirao
Are you able to recreate the exact problem mentioned by the user? Try to see what is happening in the logcat at that point when the toast refuses to go away. On Tue, Nov 17, 2009 at 11:26 AM, Wayne Wenthin wrote: > I'll switch them to short and see if that works. This guy was claiming > that i

Re: [android-developers] Toast doesn't leave

2009-11-17 Thread Wayne Wenthin
I'll switch them to short and see if that works. This guy was claiming that it didn't leave until he rebooted the phone. That sounds like a bad deal to me. I rely on the toasts to give information but I may just switch it out and show it in a custom area. I've got great plans but getting th

Re: [android-developers] Toast doesn't leave

2009-11-17 Thread Aniruddh Bajirao
I had a similar issue because of using Toast.LENGTH_LONG. Try reducing the duration. If you use the LENGTH_LONG and then the user switches to home screen immediately after the toast came up, I guess it will continue to be on the screen until it times out. Maybe you can test it with Toast.LENGTH_SHO

[android-developers] Toast doesn't leave

2009-11-17 Thread Wayne Wenthin
I've had a user say that one of my toasts never left the screen even after exiting the app. Has anyone else had a stuck toast? -- Writing code is one of few things that teaches me I don't know everything. http://www.fuligin.com -- You received this message because you are subscribed to the G

Re: [android-developers] Toast - I can't get it to work in Eclipse...

2009-11-04 Thread FFEH
Maybe you can try to use Toast.LENGTH_LONG On Wed, Nov 4, 2009 at 11:32 PM, furby wrote: > So I am slowly trying to figure out maps... I want to be able to click > on a point and pop up a message. Toast seemed the way to go. So I > added an "onTap" handler in my class that extends ItemizedOverla

Re: [android-developers] Toast - I can't get it to work in Eclipse...

2009-11-04 Thread Mark Murphy
furby wrote: > So I am slowly trying to figure out maps... I want to be able to click > on a point and pop up a message. Toast seemed the way to go. So I > added an "onTap" handler in my class that extends ItemizedOverlay (the > class is called HelloItemizedOverlay) and then tried to grab the Toast

[android-developers] Toast - I can't get it to work in Eclipse...

2009-11-04 Thread furby
So I am slowly trying to figure out maps... I want to be able to click on a point and pop up a message. Toast seemed the way to go. So I added an "onTap" handler in my class that extends ItemizedOverlay (the class is called HelloItemizedOverlay) and then tried to grab the Toast example... But I am

[android-developers] Toast or AlertDialog problem

2009-07-31 Thread Stefan
Hi, i need a alert dialog, which pop ups every time, when the location changed (after 100 meter for example). I want to have 2 Buttons in this dialog: left and right. If the user dont push one of these buttons after some seconds, the dialog should no longer be displayed. So I can't use the AlertD

[android-developers] Toast

2009-07-15 Thread Rohan Solanki
Hi all, I want my Toast to be displayed at specific points on the screen. How do i do that? Thanks in advance... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, se

[android-developers] Toast without light up

2009-05-29 Thread daniel.benedykt
Hi If I am running a service, and I want to sent a toast, the phone lights up. Is there a way to show the Toast without turning on the light? Thanks Daniel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android De

[android-developers] Toast appears to produces memory leaks

2009-01-12 Thread noblemaster
If you have out of memory errors and you are displaying toast messages, read on... I noticed displaying a toast message can prevent an Activity from being garbage collected correctly. Trying to restart an activity throws an out of memory error (my activity uses bitmap images). I can only assume t