Android accessing main UI thread form anywhere

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

    }
});


Post a Comment

0Comments
Post a Comment (0)

#buttons=(Accept !) #days=(20)

Our website uses cookies to enhance your experience. Learn More
Accept !