Wednesday, November 16, 2011

Hide showed Toast Messages

In my App, there is a list, when a user clicks on an button, a toast message is being displayed, 10 items - 10 toast messages, so if the user clicks 10 times, then presses the button... he/she has to wait for some seconds, until he's able to read the menu option text.

I have found the below solution to hide the shows toast message.

public class SampleToastActivity extends Activity {
Toast myToast;
static int i=0;
public void onCreate(Bundle savedInstanceState) {
Button b1 = (Button) findViewById(;
b1.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
myToast = Toast.makeText(SampleToastActivity.this, "Sample"+i, 10);


  1. Its great if it will really work. There are too many android applications provided by android app developers so that android mobile phones perform awesome.

  2. Thanks for this information this was really helpful.
    Best Android Apps

  3. your blog is nice,if you upload any screen shots then it's use full to all of us...thanks

  4. Good to know about your blog i have visit and i am very inspired from your ideas It will be interesting to see what we learn about the use of mobile phones in the coming years.

    Big Button Mobile Phones

  5. It's nice information that advice me how to hide showed toast messages in the android smart phone so i say thanks for posting this kind of blog which help me and other user who don't know this kind of facility of android.

    Android App Development

  6. Thanks for share this nice post. Very helpful.

    Android Apps

  7. Excellent article. Thanks for this kind of article.
    Top Url Shortener Sites

  8. Recently i am facing this issue, by reading your article now i am able to resolve this bug in my program. Thank for sharing it with us!!!

    apps developers India

  9. Wonderful blog.. Thanks for sharing informative blog.. its very useful to me..

    Mobile App Development

  10. Nice it seems to be good post... It will get readers engagement on the article since readers engagement plays an vital role in every blog.i am expecting more updated posts from your hands.
    iOS App Development Company
    Android App Development Company

  11. These ways are very simple and very much useful, as a beginner level these helped me a lot thanks fore sharing these kinds of useful and knowledgeable information.
    Sms marketing
    Text message marketing
    Fitness SMS

  12. Mobisoft Infotech offers comprehensive and custom-built mobility solutions and services to startups and enterprises by leveraging our years of experience shipping high-quality digital products. By adopting the best industry standards, processes, technologies, and tools for custom software development, we are able to generate much higher ROI for our customers, making us one of the top mobile app development companies in Pune.

  13. Wonderful blog... really helpful for me.

  14. This comment has been removed by the author.

  15. Thanks for sharing the great blog post with us! We provide custom Uber for trucking app development solution and truck dispatch software for logistics and freight businesses to bring simplicity and efficiency to their dispatch operations.
    Hire Angularjs Developers | Truck Dispatch Software | Taxi App Development

  16. It’s hard to come by experienced people about this subject, but you seem like you know what you’re talking about! Thanks

    Digital Marketing Company in Pune

    Software Development Company

    Mobile App Development Compaany