This doesn't really seem like you need to create a new thread to be honest. Instead of:
pref = getSharedPreferences("login", 0);
message = (TextView) findViewById(R.id.message);
create = (Button) findViewById(R.id.button1);
input = "Welcome, " + pref.getString("fName", "User");
setMessage("Welcome, " + pref.getString("fName", "User"));
You should write:
pref = getSharedPreferences("login", 0);
message = (TextView) findViewById(R.id.message);
create = (Button) findViewById(R.id.button1);
input = "Welcome, " + pref.getString("fName", "User");
// Just set the text in your onCreate
message.setText("Welcome, " + pref.getString("fName", "User"));
If, however, you really want to keep the setMessage
method, just change it to this:
private void setMessage(String input)
{
this.input = input;
message.setText(input);
create.setVisibility(4);
Toast.makeText(this, input, Toast.LENGTH_LONG).show();
}