Skip to content Skip to sidebar Skip to footer

Trying To Start An Activity Is Causing An Exception To Be Thrown, Unsure Why

Here is the code: public View getView(int position, View convertView, ViewGroup parent) { if (convertView == null) { convertView = new ExpenseIcon(context); (

Solution 1:

Try this,

Intent a = new Intent(context, ExpenseInput.class);
a.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(a);

Post a Comment for "Trying To Start An Activity Is Causing An Exception To Be Thrown, Unsure Why"