android ActivityManager cannot be resolved as a type
<p>I'm trying to determine the size of an LruCache depending on the device's memory, so I was trying to do something like:</p>

<pre><code>int memClass =
  ((ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE)).getMemoryClass();
</code></pre>

<p>but the compiler is giving an "ActivityManager cannot be resolved as a type". </p>

<p>Does anyone know why this is happening? At first I thought that the API I was using was too old, but ActivityManager says its been around his API 1. haha.</p>

<p>This is the tutorial I was reading: 
<a href="http://developer.android.com/training/displaying-bitmaps/cache-bitmap.html" rel="nofollow">http://developer.android.com/training/displaying-bitmaps/cache-bitmap.html</a></p>

<p>Thanks!</p>
