Archives for: "February 2015"
Quick Fix for Android Studio - Alt+Enter
This is the first keyboard shortcut you need to learn if you use Android Studio. This is ALT+Enter. It opens to Quick Fix Menu, which has the suggestions about fixing the errors in the current line of code. more »
Error: Specified key is not a valid size for this algorithm. (TripleDES)
I built a Cryptography application by using TripleDES. But I got an error:
System.Security.Cryptography.CryptographicException: Specified key is not a valid size for this algorithm.
The key I used was in an incorrect length, it should 16 bytes length.… more »
Like keyword in db.rawQuery with parameter
You can use "?" as the placeholder in sql for parameter in db.rawQuery in Android For example CodeString sql= "select Id , Name, Note from notewhere Name = ?"; Cursor c = db.rawQuery(sql, new String[] { name.toUpperCase() }); How… more »