sábado, 27 de fevereiro de 2016

WM - Como saber se é Tablet ou Celular no Android com o Windev Mobile




// Returns True if the device that runs the application is a tablet
import android.content.res.Configuration;
PUBLIC static boolean isTablet(){
RETURN (getApplicationContext().getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) >= Configuration.SCREENLAYOUT_SIZE_LARGE;
}


isTablet()

http://forum.pcsoft.fr/pt-BR/pcsoft.br.windev/990-como-saber-tablet-celular-android-com-windev-mobile/read.awp








Nenhum comentário:

Postar um comentário

Teste

Teste
teste