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

by Chen Ganir » Tue, 02 Mar 2010 22:08:47 GMT


Sponsored Links
 Hey Mark.

thanks for the quick response. I see that the AlarmManager is part of
the app package. Is it possible to use it in a system service?

Thanks,
Chen Ganir.







--



Other Threads

1. Widget update with Context.sendBroadcast()

Hello all,


I would like to update my AppWidget only, without interfering with the
other widgets in the system.
I created the following code, but I am not sure it other widgets will
also update, since I am using Context.sendBroadcast().

Intent myWidgetUpdate= new Intent
("android.appwidget.action.APPWIDGET_UPDATE");
myWidgetUpdate.setClassName("com.package.name",
"com.package.name.mywidget");
sendBroadcast(myWidgetUpdate);

In the reference it is written:

sendBroadcast(Intent intent, String receiverPermission)
Broadcast the given intent to all interested BroadcastReceivers...

Does this means that even if I specify the exact class to send the
intent to, other unrelated widgets will also be udpated?

Thank you.

Carl

-- 

2. Audio and Video Issue in android application....

Hi Friends,

Did anyone try playing audio/video through http/rtsp. I am having a
problem with either of the approach....
I am getting an error Command PLAYER_INIT completed with PVMFError
I some cases I got
Command PLAYER_INIT completed with
PVMFErrorContentInvalidForProgressiveDownoload.

Can some one explain what is the problem.
The code snippet I am using is given below...

-----------------------
--------------
VideoView mVideoView = (VideoView) findViewById(---------);
 mVideoView.setVideoPath("http://192.168.1.143:8080/3.3gp");
            mVideoView.setMediaController(new MediaController(this));
            mVideoView.requestFocus();
            mVideoView.start();


The code works fine when I say
mVideoView.setVideoPath("/sdcard/vv.3gp");
but not able to play if I give a rtsp/http urls

In case of http it says PVMFErrorContentInvalid for progressive
download....

Can some body tell me what is the problem.
Can you please post the code if someone has been successful in playing
audio/video through http/rtsp.....

Thanks & Regards
DileepKumar
mail: dileepkumar.renint...@gmail.com

-- 

3. Code difference at driver level ....................

4. Maximum display resolution possible

5. SimpleCursorAdapter and Spinner control

6. Cannot see map in my mobile device

7. Multiple Layouts in a ListView