Featured post

Marshmallow Features Point by Point

Android Runtime (“ART”) Improved application performance and lower memory overhead for faster  multi-tasking. Battery Doze...

Monday 22 February 2016

Call Toast From Services

Handler handler = new Handler(Looper.getMainLooper());
    handler.post(new Runnable() {

        @Override
        public void run() {
             Toast.makeText(getApplicationContext(), 
                        getString(R.string.car_opened), 
                        Toast.LENGTH_SHORT).show();             
        }
    });

No comments:

Post a Comment