On Wed, May 23, 2012 at 10:26 AM, Francisco M. Marzoa Alonso <
[email protected]> wrote:

> How could I do that?


Pass in garbage for "filename".

On Wed, May 23, 2012 at 3:20 PM, FiltrSoft <[email protected]> wrote:

> A simple way would be to set SharedPreferences to null, eg:
>
> SharedPreferences prefs = null;
>
> String exception = prefs.getString("","");
>

That would result in a null pointer exception, not an IO exception as the
OP wants.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to