Wednesday 27 April 2016

Android Application Locker - :-)




Setting a lock code on your smartphone is highly recommended to protect your personal information, but sometimes a lock code can be a bit inconvenient.

What if you could do away with the device lock code, instead locking only the apps you want to keep private? An Android app named App Lock let's you do just that. That's not to say you can't use App Lock in addition to the lock code on your device, adding an extra level of security to your information.

App Lock, preventing unwanted access to any app you deem private.







Thursday 21 April 2016

Function to Copy Application Db To Download Folder






public static void copyAppDbToDownloadFolder() throws IOException {
   try {
       File backupDB = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS), "Database_BK_UP.db"); // for example "my_data_backup.db"
       File currentDB = ctx.getDatabasePath("Estibyan.db"); //databaseName=your current application database name, for example "my_data.db"
       if (currentDB.exists()) {
           FileInputStream fis = new FileInputStream(currentDB);
           FileOutputStream fos = new FileOutputStream(backupDB);
           fos.getChannel().transferFrom(fis.getChannel(), 0, fis.getChannel().size());
           // or fis.getChannel().transferTo(0, fis.getChannel().size(), fos.getChannel());
           fis.close();
           fos.close();
           Log.i("Database successfully", " copied to download folder");
           
       } else Log.i("Copying Database", " fail, database not found");
   } catch (IOException e) {
       Log.d("Copying Database", "fail, reason:", e);
   }
}

How to do text writing animation?  In Android Development we do not have the option to use any other custom font in our default Tex...