I have also tried this with the Galaxy S3 and 4.1.1, and the Toast shows 
fine.

Here's the code I used:

public class MainActivity extends Activity {

    @Override
protected void onResume() {

super.onResume();
Toast.makeText(MainActivity.this, "The message", Toast.LENGTH_LONG).show();
}

@Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is 
present.
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }
    
}


On Tuesday, January 15, 2013 2:41:05 PM UTC-6, andjarnic wrote:
>
> Ok..I just tried and it worked for me. I have Android 4.1.1, checked for 
> updates nothing there.. so this seems to work for me. I am plugged in via 
> USB debugging. 
>
>
> On Tue, Jan 15, 2013 at 4:44 AM, Tobias Lindberg 
> <tobias.e...@gmail.com<javascript:>
> > wrote:
>
>> Thx :)
>>
>> Try this in your onResume method of an Activity:
>> Toast.makeText(YourActivity.this, "The message", 
>> Toast.LENGTH_LONG).show();
>>
>> Also make sure that you have updated the phone to the latest update 
>> because stuff was working before I made updates.
>>
>> Cheers,
>> Tobias
>>
>> 2013/1/15 Kevin Duffey <andj...@gmail.com <javascript:>>
>>
>>> Toast.makeText(context, "The message", Toast.LENGTH_LONG).show();
>>
>>
>>
>>  -- 
>> 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<javascript:>
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com <javascript:>
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>

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

Reply via email to