Work MODE
- By AG32123
- VIP Lounge
- 5 Replies
Ha sanyone else lost the option to turn work mode off and on in the dropdown settings?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.

ContextWrapper cw= new ContextWrapper( getApplicationContext() );
File directory = cw.getDir( "imgDir",Context.MODE_APPEND );
File destination= new File( directory,"capture_01.bmp" );
ByteArrayOutputStream bytes = new ByteArrayOutputStream();
image.compress( Bitmap.CompressFormat.JPEG, 100, bytes );
long filesizeinBytes = image.getByteCount();
long fileSizeInKB = filesizeinBytes / 1024;
FileOutputStream fo;
try {
fo = new FileOutputStream( destination );
fo.write( bytes.toByteArray() );
fo.close();
} catch (IOException e) {
e.printStackTrace();
//TODO REMOVE TOASTMESSAGE
Toast.makeText( this,e.getMessage(),Toast.LENGTH_SHORT ).show();
}
Toast.makeText( this,"Image saved sucessfully" ,Toast.LENGTH_SHORT ).show();
}
ContextWrapper cw= new ContextWrapper( getApplicationContext() );
File directory = cw.getDir( "imgDir", Context.MODE_APPEND );
File destination= new File( directory,"capture_01.bmp" );
try {
MediaStore.Images.Media.insertImage( context.getContentResolver(),destination.getAbsolutePath(),destination.getName(),null );
context.sendBroadcast( new Intent(
Intent.ACTION_MEDIA_SCANNER_SCAN_FILE,Uri.fromFile( destination )
) );
} catch (FileNotFoundException e) {
e.printStackTrace();
}
ByteArrayOutputStream bytes = new ByteArrayOutputStream();
image.compress( Bitmap.CompressFormat.JPEG, 100, bytes );
long filesizeinBytes = image.getByteCount();
long fileSizeInKB = filesizeinBytes / 1024;
FileOutputStream fo;
try {
fo = new FileOutputStream( destination );
fo.write( bytes.toByteArray() );
fo.close();
} catch (IOException e) {
e.printStackTrace();
Toast.makeText( this,e.getMessage(),Toast.LENGTH_SHORT ).show();
}
Toast.makeText( this,"Image saved sucessfully" ,Toast.LENGTH_SHORT ).show();
}