[android-developers] Re: Android Keystore getEntry() and generateKeyPair() throw Exceptions sometimes

2014-05-31 Thread pskr
I just tested the following - Enable Screen lock password - Change it to PIN Then final KeyStore.PrivateKeyEntry entry = (KeyStore.PrivateKeyEntry) ks.getEntry( CERT_ALIAS, null); getEntry() is returning null. But, not the above exceptions. It looks like the key store e

[android-developers] Android Keystore getEntry() and generateKeyPair() throw Exceptions sometimes

2014-05-31 Thread pskr
My Android app need to encrypt a file so that it can decrypt and read it later. This should not be decrypt-able by anybody else other than the app, even user - in other words, it is application secret data. Following is how I am doing the encryption and decryption. This works most of the ti

Re: [android-developers] How to store app's secretkeys in AndroidKeyStore?

2014-05-31 Thread pskr
Hi, I am using AndroidKeyStore to generate RSA key pair, using which I encrypt and decrypt some app specific data. It works most of the time, but for some users the *getEntry*() and *generateKeyPair*() are generating exceptions. I posted the question on Stack Overflow with details. http://

[android-developers] How to get physical screen size reliably for all devices?

2014-01-31 Thread pskr
I am calculating the screen size in inches as the following: DisplayMetrics dm = new DisplayMetrics(); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) { getWindowManager().getDefaultDisplay().getRealMetrics(dm); } else { getWindowMan

Re: [android-developers] How to store app's secretkeys in AndroidKeyStore?

2014-01-30 Thread pskr
Works fine. Thank you very much. I don't know why, but I see the following warning in the logcat, but I am able to get the keys.. 01-30 21:44:02.860: W/keystore(188): Could not read CACERT_ -- You received this message because you are subscribed to the Google Groups "Android Developers" group.

Re: [android-developers] How to store app's secretkeys in AndroidKeyStore?

2014-01-30 Thread pskr
Thanks a lot, especially for the sample. Will try it. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+

[android-developers] How to store app's secretkeys in AndroidKeyStore?

2014-01-30 Thread pskr
>From Kitkat >release notes: Android now offers a custom Java Security Provider in the KeyStorefacility, called Android Key Store, which allows you to generate and

[android-developers] Re: Best approach to: free trial period - purchase license for further use

2014-01-24 Thread pskr
:-( On Friday, January 24, 2014 2:03:46 PM UTC-8, pskr wrote: > > I know this topic has been discussed many times in many forms, but, I > still would like to get the latest opinion. > > I have an App and I would like to sell it. But, many people may not buy it > without trying i

[android-developers] Best approach to: free trial period - purchase license for further use

2014-01-24 Thread pskr
I know this topic has been discussed many times in many forms, but, I still would like to get the latest opinion. I have an App and I would like to sell it. But, many people may not buy it without trying it. So, I want users to experience it for some time (trial period) before purchasing it. Fr

[android-developers] ClassNotFoundException for a compiled class

2010-11-15 Thread pskr
Hi, I am writing an application and due to various reasons I had to build it using make (froyo code) and not SDK. When I run my app on emulator it works fine. I have an Android device and code to build image for the device. When I build my app with device code, it builds fine. How ever, when I

[android-developers] Re: Sharing the machine for Android development

2009-12-10 Thread pskr
the one in eclipse (workspace/..) On Dec 10, 7:06 pm, pskr wrote: > Hi, >      We have a fast and powerful machine(Ubuntu 64bit) and we are > sharing it for Android development. But when running multiple eclipse > (with ADT) instances (by multiple users), we are getting  the >

[android-developers] Sharing the machine for Android development

2009-12-10 Thread pskr
Hi, We have a fast and powerful machine(Ubuntu 64bit) and we are sharing it for Android development. But when running multiple eclipse (with ADT) instances (by multiple users), we are getting the following error: Could not open Selected VM debug port (8700). Make you do not have another inst

[android-developers] Large number of Contacts - DB corruption

2009-09-23 Thread pskr
Hi, We have an application which adds, updates and deletes contacts. Some times, we get the following error and DB gets corrupted and we loose all contacts. I pasted the relevant log at the end. If you look closely, the error originates with 'Too many open files'. We just use ContentResolve