Android error with importanceReasonComponent.getShortClassName(); ?
<p>I have :
String list[];</p>

<pre><code>ActivityManager m = (ActivityManager)getSystemService(ACTIVITY_SERVICE);
List&lt;ActivityManager.RunningAppProcessInfo&gt; process = m.getRunningAppProcesses();

list = new String[process.size()];
    for(int i=0;i&lt;process.size();i++)
    {

        list[i]=process.get(i).importanceReasonComponent.getShortClassName();    

    }       
</code></pre>

<p>if I try to run the app it force closes, please tell me what's the problem </p>
