0

I am adding a Master/Detail Activity using the Gallery.

I set a login activity (also made from the Gallery) as it's parent (this is important or this piece of code won't be generated), and this line has an error:

 navigateUpFromSameTask(this);

If I add import android.support.v4.app.NavUtils; and change the code to:

NavUtils.navigateUpFromSameTask(this);

it works.

Is this a bug from the template or am I missing something here? Because shipping code that wouldn't even compile doesn't sound much Google to me.

Michel Feinstein
  • 13,416
  • 16
  • 91
  • 173

0 Answers0