I have a problem with data transfer to other activities there is my code.
...
Intent i = new Intent(MainActivity.this, LoggedMain.class);
Intent toOther = new Intent(MainActivity.this, PickerFormActivity.class);
toOther.putExtra(LOGIN_NAME, userName);
toOther.putExtra(PASSWORD, password);
i.putExtra(LOGIN_NAME, userName);
startActivity(i);
in LoggedMain activity i can get value using
Intent i = getIntent();
String userName = i.getExtras().getString(MainActivity.LOGIN_NAME);
but when i use in PickerFormActivity activity im getting null pointer exception
final String username = getIntent().getExtras().getString(MainActivity.LOGIN_NAME);
final String password = getIntent().getExtras().getString(MainActivity.PASSWORD);
someone can help me with that problem?