sharedpreferences doesn't save data
<p>i want to save data in the first activity and use it in the second activity, on the first activity i used this:</p>

<pre><code>android.content.SharedPreferences someData;
public static String filename = "mySharedString";
someData = getSharedPreferences(filename, 0);
android.content.SharedPreferences.Editor editor = someData.edit();
editor.putString("HostIP", "192.168.1.101");
</code></pre>

<p>in the second activity i used this</p>

<pre><code>android.content.SharedPreferences someData;
TextView Message;
public static String filename = "mySharedString";
String HostIP;
someData = getSharedPreferences(filename, 0);
HostIP = someData.getString("HostIP", "0");
phoneNumber.setText(HostIP);
</code></pre>

<p>but the results prints on phonenumber is <code>0</code> not <code>192.168.1.101</code></p>
