[android-beginners] Android 2.0 - Dim screen programmatically

2009-12-13 Thread eclipsed4utoo
I am wanting to dim the screen of a device from a widget. Basically the same way the Power Manager widget for Android 2.0 does. I have tried this... Settings.System.putInt(context.getContentResolver(), Settings.System.SCREEN_BRIGHTNESS, someIntValue); ___

[android-beginners] Removing Widget from Home Screen when Uninstalled

2009-12-06 Thread eclipsed4utoo
When my application is uninstalled, the widget stays on the HOME screen and gives an error message "problem loading widget". How do I remove the widget when my application is uninstalled? Is there an attribute in the manifest that I am missing? -- You received this message because you are subsc

[android-beginners] Changing Widget Layout Programmatically

2009-12-06 Thread eclipsed4utoo
Let's say that I have two layouts for a widget: Layout1 and Layout2. The default for the widget is Layout1, but I allow the user to choose which layout they want the widget to be. So if the user changes to Layout2, how do I programmatically change the layout to Layout2? Thanks -- You received

[android-beginners] System.loadLibrary - Loading the Motorola Droid library

2009-11-24 Thread eclipsed4utoo
Any idea on what the name of the Motorola Droid library is to load using the System.loadLibrary? I was looking at "Glowing Pear", which turns on the Camera LEDs as a flashlight. I noticed that they used "galaxy" to load the library for the Samsung Galaxy. I tried "droid" but it failed. Any idea

[android-beginners] AlertDialog from AppWidget

2009-11-15 Thread eclipsed4utoo
Is it possible use the AlertDialog from an AppWidget? I have code that works from an Activity, but when I copy that code to work when a widget is clicked, I get an error that it has stopped unexpectedly. Is it possible? or do I need to do something different? I want to display an option box to

[android-beginners] Android 2.0 - Starting Service/App when core app starts

2009-11-11 Thread eclipsed4utoo
Is it possible to create a service that starts when the camera software starts? I have looked into services and I am still reading on them, but I wanted to know if it is possible to start a service when a core application is started/opened, and stop the service when that core application is stoppe

[android-beginners] Re: R cannot be resolved

2009-11-11 Thread eclipsed4utoo
If you are using Eclipse as your IDE, put the cursor on the R and hit Ctrl + Shift + O (the letter O). That will automatically add the needed import statement. Ryan On Nov 11, 10:42 am, jbrohan wrote: > Look at the other files in src/ There may be an R theredelete it! > > On Nov 8, 8:00 am,