title: Another "how to find className"
body: <p>I've used the search functions and i've read and tried a lot of examples, but I can't find a solution for my problem... So, here we go: </p>
  
  <p>I want to send Intents to only 1 BroadcastReceiver. Therefore I need to create a new Intent and send it to the packageName and the packageClass: </p>
  
  <p><code>intent.setComponent(new ComponentName(packageName, className));
  </code></p>
  
  <p>To find out packageName and className i use this code: </p>
  
  <pre><code>String appInfo = list.get(myPlayer).activityInfo.toString();
  Log.d("TAG", "app " + appInfo);
  
  String packageName = list.get(myPlayer).activityInfo.packageName.toString();    
  Log.d("TAG", "package " + packageName);
  
  String className = list.get(myPlayer).activityInfo.getClass().getName().toString();
  Log.d("TAG", "class " + className);
  </code></pre>
  
  <p>From logcat I get following results(example for Play Music): </p>
  
  <pre><code>app ActivityInfo{417bd5e0 com.google.android.music.MediaButtonIntentReceiver}
  package com.google.android.music
  class android.content.pm.ActivityInfo
  </code></pre>
  
  <p>Isn't this strange? For some reason, I'd expect for the class log only "MediaButtonIntentReceiver" and not "android.content.pm.ActivityInfo"!!! </p>
  
  <p>Does anybody know how to fix this? </p>