secure-preferences icon indicating copy to clipboard operation
secure-preferences copied to clipboard

Constructor error with null password

Open carlpoole opened this issue 8 years ago • 1 comments

When I try to create an instance of SharedPreferences using the constructor with null as the password as shown in the README:

new SecurePreferences(context,null,"name_of_file.xml");

I get an error:

Cannot resolve constructor 'SecurePreferences(android.content.Context, null, java.lang.String)'

I was able to workaround the issue by passing empty string as the password instead. It looks like the behavior is the same, and the lib will generate a key for me.

carlpoole avatar Mar 27 '17 17:03 carlpoole

Thanks for reporting this.

scottyab avatar Mar 28 '17 07:03 scottyab