I'm now for sure 99% of the way complete on my code... I need to know one last thing. How do I programatically dim the of the android.
I have tried making a set of intent groups. One loads the code for the dimmer then intents into the actual program and that runs with little issue other then the screen did not dim after the screen flipped over. Here is the code I am using: import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.provider.Settings; import android.view.WindowManager; public class bright extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); Settings.System.putInt(this.getContentResolver(), Settings.System.SCREEN_BRIGHTNESS, 20); WindowManager.LayoutParams lp = getWindow().getAttributes(); lp.screenBrightness =0.0f;// 100 / 100.0f; getWindow().setAttributes(lp); Intent i = new Intent(this, gateBridge.class); i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(i); finish(); } } Since I know brightness settings can only be used after the screen has been reset or changed. So the question, how do I get this done? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en