I`ve problem with converting String to Integer.
public SharedPreferences abc;
abc = getApplicationContext().getSharedPreferences("Trening",0);
Integer i = Integer.parseInt(abc.getString("T1",null).toString());
The Error is:
Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String android.content.SharedPreferences.getString(java.lang.String, java.lang.String)' on a null object reference
I learn to program for 3 days and hope you can help me and explain how to fix it, so I can learn.
Sorry for my english. :)