WEBVIEW SET JAVASCRIPT;

webview1.getSettings().setJavaScriptEnabled(true);

WEBVIEW SET COOKIES ;

CookieManager.getInstance().setAcceptCookie(false);

LEAVE SCREEN ON;

PERMISSION ;

<uses-permission android:name="android.permission.WAKE_LOCK" />

CODE ;

getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);






FRONT CAMERA ;

Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); intent.putExtra("android.intent.extras.CAMERA_FACING", 1);

startActivity(intent);

!!!! NÃO TESTADO !!!!!

GET ASSEMBLY ;

textview1.setText(Build.FINGERPRINT);

GET HOST ;

textview1.setText(Build.HOST);

GET SECURITY PATCH ;

textview1.setText(Build.VERSION.SECURITY_PATCH);


GET CPU ;

textview1.setText(Build.CPU_ABI);

SECURITY PATCH ;

textview1.setText(Build.VERSION.SECURITY_PATCH);

VOLUME OF MUSIC ;

audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); seekbar1.setMax(audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC));

}

AudioManager audioManager;

private void nothing() {

CUSTOM TOAST ;

LayoutInflater i = getLayoutInflater();
View v = i.inflate(R.layout.toast,
(ViewGroup) findViewById(R.id.toastlinear1)
);
Toast t = Toast.makeText(getApplicationContext(),"",Toast.LENGTH_SHORT);
t.setView(v);
t.show();

BATTERY LEVEL ;

BatteryManager bm = (BatteryManager)getSystemService(BATTERY_SERVICE); int batLevel = bm.getIntProperty(BatteryManager.BATTERY_PROPERTY_CAPACITY);

DIALOG DISMISS ;

dialog.dismiss();

TEXT SIZE ;


Version 1 ;

textview1.setTextSize((float)10);

Version 2 ;

textview1.setTextSize(5p);

SET ELEVATION ANDROID 5.0+ ;

try {

if(Build.VERSION.SDK_INT >= 21) { linear1.setElevation(0f); }
} catch (Exception e) {}