I want to call an activity from a non activity class and base class send some arguments as bundle. But when I add the following code
final Intent intent = new Intent(UserSettingsFragment.this, UserAccount.class);
/*Sending some arguments*/
Bundle bundle = new Bundle();
bundle.putString("UserName",NAME);
bundle.putString("Id", ID);
intent.putExtras(bundle);
this.startActivity(intent);`
eclipse shows the error
The constructor `Intent(UserSettingsFragment, Class<UserAccount>) is undefined.
How can I solve this problem.