title: on Android UsageEvents.Event getClass().getName() returns only android.app.usage.UsageEvents$Event and not the name
body: <p>I'm trying to get the usage on my Android app. Android offers a <a href="https://developer.android.com/reference/android/app/usage/package-summary.html" rel="nofollow noreferrer">package</a> to get that info. To get the events, I need to set a time and retrieve a list of events from different apps, I'm only interested on the events from my own app.</p>
  
  <pre><code>UsageStatsManager usm = (UsageStatsManager)context.getSystemService(USAGE_STATS_SERVICE);
  Calendar calendar = Calendar.getInstance();
  long endTime = calendar.getTimeInMillis();
  calendar.add(Calendar.WEEK_OF_YEAR, -1);
  long startTime = calendar.getTimeInMillis();
  List&lt;UsageStats&gt; luStats = usm.queryUsageStats(UsageStatsManager.INTERVAL_DAILY,startTime,endTime);
  while (uEvents.hasNextEvent()){
      UsageEvents.Event e = new UsageEvents.Event();
      uEvents.getNextEvent(e);
      if (e != null){
          Log.d(TAG, "Event: " + e.getPackageName() + "\t" +e.getClass().getName()+ "\t" +  dateFormat.format(new Date (e.getTimeStamp())));
              }
          }
  </code></pre>
  
  <p>The problem is that the result from <code>e.getClass().getName()</code> is not the name of the class that was used but instead just <code>android.app.usage.UsageEvents$Event</code> .  What am I doing wrong? How can I retrieve the name of the class from an event?</p>
  
  <p>Any clue is appreciated! </p>