APMN
APMN

Reputation: 1

Android Studio : Failed to set EGL_SWAP_BEHAVIOR on surface

I am new to Android Studio. I am trying to display what was entered as a pop up.

Toast.makeText(getApplicationContext(), input.toString(), Toast.LENGTH_LONG).show();

Error Log:

eglSurfaceAttrib not implemented
Failed to set EGL_SWAP_BEHAVIOR on surface 0xac96ba80, error=EGL_SUCCESS
getSlotFromBufferLocked: unknown buffer: 0xaa1705a0

Thanks!

Upvotes: 0

Views: 5927

Answers (1)

nurahmat tureke
nurahmat tureke

Reputation: 1

try to use try catch.

try{
 Toast.makeText(getApplicationContext(), input.toString(), Toast.LENGTH_LONG).show();
}catch (IOError error){
error.printStackTrace();
}

do not forget to import java.io.IOError;

Upvotes: 0

Related Questions