I tried to display a simple String, but I can only see something like:

android.widget.EditText{3cdce91dVFED..CL.F.......0,79-758..

```
//works fine
String userId = "42";
popupMenu.getMenu().add(0, 0, 2, userId );

//is showing the code from above
String userId = sharedPreferences.getString("userId", "");
popupMenu.getMenu().add(0, 0, 2, userId );

```

I used a Class with static String fields as well and got the same result.

I use two different actions, one form to insert the userId and one action where I want to show the userId within a popup Menu. What would be the best method to solve this problem?

I save the value into the shared preferences with the following code:

```
EditText userId = (EditText)findViewById(R.id.editTextId);           
sharedPreferences.edit().putString("userId", userId.toString()).commit();

```