WEBVIEW SET JAVASCRIPT;
webview1.getSettings().setJavaScriptEnabled(true);
PERMISSION ;
<uses-permission android:name="android.permission.WAKE_LOCK" />
CODE ;
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); intent.putExtra("android.intent.extras.CAMERA_FACING", 1);
startActivity(intent);
!!!! NÃO TESTADO !!!!!
audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); seekbar1.setMax(audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC));
}
AudioManager audioManager;
private void nothing() {
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();
BatteryManager bm = (BatteryManager)getSystemService(BATTERY_SERVICE); int batLevel = bm.getIntProperty(BatteryManager.BATTERY_PROPERTY_CAPACITY);
try {
if(Build.VERSION.SDK_INT >= 21) { linear1.setElevation(0f); }
} catch (Exception e) {}