I have created the following background thread:
public class loadSomeStuff extends AsyncTask <String, Integer, String>
{
@Override
protected String doInBackground(String... params) {
Intent i = new Intent("com.example.nadir_services.himan.class"); startActivity(i);
return null;
}
}
I also created a button, in which I call this thread:
new loadSomeStuff().execute("");
So, my question is, every time I press this button, will it create a new thread? If so, why is that bad? I mean, what will happen ?
And a side question, I noticed that this is called a "background thread". Does that mean there is another way to create a new thread ? I only know of this way.