How do I use Android PowerProfile private API?
<p>I downloaded the source code from the below link and added to my project.</p>

<p><a href="http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.2_r1.1/com/android/internal/os/PowerProfile.java" rel="nofollow">http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.2_r1.1/com/android/internal/os/PowerProfile.java</a></p>

<p>I am getting and it can not find R file shown below.</p>

<pre><code> int id = com.android.internal.R.xml.power_profile;
</code></pre>

<p>Also can not import </p>

<pre><code>import com.android.internal.util.XmlUtils;
</code></pre>

<p>I basically want to measure the power consumption of Android devices. </p>

<p>Thanks in advance.</p>
