What is the best way to schedule an event that will wake up the phone if it goes into sleep mode?

by Mark Murphy » Tue, 02 Mar 2010 22:10:27 GMT

Sponsored Links

What do you consider a "system service" to be?

Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

_Beginning Android_ from Apress Now Available!


Other Threads

1. To test the integrated codec

Hi All,

I have integrated WMA codec onto android i.e compiled successfully but
i want to test that integrated codec without parser.

Can I test the integrated codec without building the complete audio
graph or by creating some dummy graph?

If I hard code elementry stream(output of parser) in codec and
forcefully try to execute WMA code, will it work?

Thanks in advance,
unsubscribe: [EMAIL PROTECTED]

2. MapActivity / MapView causes application to crash at startup


I'm trying to create a new application with a MapView.
When I first create a new Android project in Eclipse, I run it in the
emulator and get the expected "Hello, [project name]" message.
Then, I try changing "Activity" to "MapActivity" and adding a MapView
(I've tried both the xml and the code route):

public class MyMap extends MapActivity {
    /** Called when the activity is first created. */
    public void onCreate(Bundle savedInstanceState) {

        MapView mMapView = new MapView(this, "my_map_api_key");


        protected boolean isRouteDisplayed() {
                // TODO Auto-generated method stub
                return false;

However, when I run this in the emulator, it immediately crashes with
the "Application has stopped unexpectedly" error. The de{*filter*} shows
this error:

Thread [<3> main] (Suspended (exception RuntimeException))
line: 2068
line: 2156
        ActivityThread.access$1800(ActivityThread, ActivityThread
$ActivityRecord) line: 112
        ActivityThread$H.handleMessage(Message) line: 1580
        ActivityThread$H(Handler).dispatchMessage(Message) line: 88
        Looper.loop() line: 123
        ActivityThread.main(String[]) line: 3742
        Method.invokeNative(Object, Object[], Class, Class[], Class, int,
boolean) line: not available [native method]
        Method.invoke(Object, Object...) line: 515
        ZygoteInit$MethodAndArgsCaller.run() line: 739
        ZygoteInit.main(String[]) line: 497
        NativeStart.main(String[]) line: not available [native method]

I know I'm making some stupid mistake.. but I can't figure it out.


3. Problems with HttpClient, HttpGet and HttpResponse ...

4. programmatically send email with data file attachment

5. WLAN handling

6. Eclipse cannot find MediaMetadataRetriever class

7. com.google.android.AbstractGDataSyncAdapter