Skip to content Skip to sidebar Skip to footer

Android - Make Toast From Another Class For Main Activity

I have already searched all day for a solution. Unfortunately, have not found anything that can help me. I have to change every 15 minutes ago values​​. I would not do in my ma

Solution 1:

You never assign a value to the toast field. When you access it in toast.setGravity(Gravity.CENTER, 0, 0); you get a null pointer exception.


Post a Comment for "Android - Make Toast From Another Class For Main Activity"