Check App Info

//By Jetfrican Electro World Intent intent = new Intent(); intent.setAction(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS); Uri uri = Uri.fromParts("package", MainActivity.this.getPackageName(), null); intent.setData(uri); MainActivity.this.startActivity(intent);

Random Password Generator

} private static String generateRandomPassword() { String upperCaseChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; String lowerCaseChars = "abcdefghijklmnopqrstuvwxyz"; String numberChars = "0123456789"; String specialChars = "!@#$%^&*()_-+=<>?/{}~|"; int max_length = 10; String allowedChars = upperCaseChars +lowerCaseChars+numberChars+specialChars; Random rn = new Random(); StringBuilder sb = new StringBuilder(max_length); sb.append(allowedChars.charAt(rn.nextInt(allowedChars.length()-1))); for(int i=sb.length();i < max_length;++i){ sb.append(allowedChars.charAt(rn.nextInt(allowedChars.length()))); } return sb.toString(); } { //Below Code In On Button Click String pass = generateRandomPassword(); textview1.setText(pass);

Comments

Popular posts from this blog

View Pager

File Picker