DEX files are Dalvik Executable file. You can view the content of a dex file an APK analyzer. With the help of an APK analyzer you can analyze your APK file and even compare it with the previous versions.
Overview SQLite is an opensource SQL database that is used to store data into a text file on a device. SQLite only supports NULL INTEGER REAL TEXT BLOB SQLite with MVVM Add the required dependency in build.gradle (Module) file. Create a data class data class User( val name : String , val dob : String , val address : String , val pin : String , val username : String , val password : String , val isLoggedIn : Int ) Create a class name DBHelper and extend it with SQLiteOpenHelper Create the repositories Some Syntax of SQL commands Do's and Dont's You cannot store a BOOLEAN value in SQLite, you have to use INTEGER for this purpose. Code to Open Database from external file public class DatabaseHelper extends SQLiteOpenHelper { public static final String DATABASE_NAME = "appDatabase.db" ; private static final int DATABASE_VERSION = 1 ; private static String DATABASE_PATH ; private final Context context ; private SQLiteDat...
Overview This code is used to covert password characters into an Asterisk. To do that you have to create a class and extend the class with PasswordTransformationMethod public class AsteriskMethod extends PasswordTransformationMethod { public CharSequence mPassword ; @Override public CharSequence getTransformation (CharSequence source , View view) { return new AsteriskMethod.PasswordCharSequence(source) ; } private class PasswordCharSequence implements CharSequence { public PasswordCharSequence (CharSequence source) { mPassword = source ; // Store char sequence } public char charAt ( int index) { return '*' ; // This is the important part } public int length () { return mPassword .length() ; // Return default } public CharSequence subSequence ( int start , int end) { return mPassword .subSequence(start , end) ; // Return default ...
Comments
Post a Comment