title: logcat displaying excessive delay setting brightness
body: <p>i created a simple android app in eclipse and and am running it on an emulator. its really slow and when i checked logcat i saw a couple of 'excessive delay' lines. </p>
  
  <p>EDIT: to clarify, the app does run and displays the intended <strong>'Enter a message sir'</strong>. i was looking at why it was so slow and thought the excessive delay would have something to do with the lag.</p>
  
  <p>Here are my files:</p>
  
  <p><strong>Emulator Settings:</strong></p>
  
  <pre><code>Target: Android 4.1 - API Level 16
  CPU: ARM (armeabi-v7a)
  SD Card: 9MiB
  Max VM application heap size: 1024
  Device Ram Size: 1024
  </code></pre>
  
  <p><strong>MainActivity.java:</strong></p>
  
  <pre><code>package com.example.my.first.app;
  
  import android.os.Bundle;
  import android.app.Activity;
  import android.view.Menu;
  
  public class MainActivity extends Activity {
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
  
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
      }
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          getMenuInflater().inflate(R.menu.activity_main, menu);
          return true;
      }
  }
  </code></pre>
  
  <p><strong>AndroidManifest.xml:</strong></p>
  
  <pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.example.my.first.app"
      android:versionCode="1"
      android:versionName="1.0" &gt;
  
      &lt;uses-sdk
          android:minSdkVersion="8"
          android:targetSdkVersion="15" /&gt;
  
      &lt;application
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name"
          android:theme="@style/AppTheme" &gt;
          &lt;activity
              android:name=".MainActivity"
              android:label="@string/title_activity_main" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
  
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p><strong>activity_main.xml:</strong></p>
  
  <pre><code>&lt;LinearLayout  xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent" 
      android:orientation="horizontal" &gt;
  
      &lt;EditText android:id="@+id/welcome_message"
          android:layout_width="0dp"
          android:layout_height="wrap_content"
          android:hint="@string/welcome_message_text" 
          android:layout_weight="1"/&gt;
  
      &lt;Button android:id="@+id/editor_button"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="@string/editor_button_text"   
          android:layout_weight="0"/&gt;
  
  &lt;/LinearLayout &gt;
  </code></pre>
  
  <p><strong>LOGCAT LOGS:</strong></p>
  
  <pre><code>09-24 17:26:00.363: E/PowerManagerService(158): Excessive delay setting brightness: 420ms, mask=2
  09-24 17:26:00.584: E/PowerManagerService(158): Excessive delay setting brightness: 218ms, mask=2
  09-24 17:26:01.602: I/Choreographer(1750): Skipped 48 frames!  The application may be doing too much work on its main thread.
  09-24 17:26:32.856: I/Choreographer(1750): Skipped 39 frames!  The application may be doing too much work on its main thread.
  09-24 17:26:52.942: E/PowerManagerService(158): Excessive delay setting brightness: 158ms, mask=2
  </code></pre>