Android accessing main thread form anywhere

Handler handler = new Handler(Looper.getMainLooper());
handler.post(new Runnable() {
    @Override    public void run()
    {
        Toast.makeText(mContext,"Service Started",Toast.LENGTH_SHORT).show();

    }
});


Comments