Welcome to the Treehouse Community
Looking to learn something new?
what am I doing wrong?
Use a method to set the TAG variable instead of hard-coding the class name as "TreehouseActivity". We want just the class name by itself without the package name: is it getName() or getSimpleName()? Change the "TreehouseActivity" string to the correct method call (ex. TreehouseActivity.class.<insert correct method>).
Kevin Faust15,353 Points
public static final String TAG = TreehouseActivity.class.getSimpleName();
We just want the name without the com package stuff
Seth Kroger56,403 Points
Just the name of the class by itself is getSimpleName(). getName() will include the package name along with the class name.
TreehouseActivity.class.getSimpleName() == "TreehouseActivity"
TreehouseActivity.class.getName() == "com.treehouse.TreehouseActivity"