normally in Java ~ which I am reading is the Primary Programming Linguistic for this Android Platform one would run that with Timer and TimerTask - the Alarm Manager is intended for cases where you want to have your application code run at a specific time, even if your application is not currently running.
use of the word "Airplane" in your post suggests to me AnimationSet will be productive the way your question is worded which would be driven with CountDownTimer to use then normally this would be driving the AnimationSet and after reading one OHA tech page today you would be best performance if these are nested classes as that would make driving the call-stack efficient based on what the compiler would have to do and the way they have CountDownTimer coded in the sample code that would be an idealized implementation of traditional Java code written platform-specific for the Android thus you would place one of these in ListActivity with (probably) ListActivity being inside of Activity with CountDownTimer being started from onCreate(Bundle) and careful attention to Activity Lifecycle as documented ~ programming with anything with the name Alarm sounds like programming with Exceptions and is not considered correct practice On Oct 28, 5:13 pm, Bryce <[email protected]> wrote: > I've been searching high and low about a particular problem I am > having, but not able to find the solution. I am making an Android app > that does the following: > > 1. searches for signal and after a specified time (e.g. 5 minutes), if > no signal is found, the app will enable Airplane mode > 2. After a another interval (e.g. 10 minutes), airplane mode is > disabled and it checks again for a signal. > > I've asked about classes to accomplish this and my search came up with > PhoneStateListener, AlarmManager, and Settings, but nothing to help me > to check whether or not time has passed. > > The app is made out of four classes: > > nman - ListActivity (main class) > nmanAir - Activity (class that sets time interval for airplane mode to > be enabled) > nmanRecheck - Activity (class that sets time interval in which to > disable Airplane and check allow for signal to detected) > Receiver - BroadcastReceiver (supposed to get one of the AlarmManagers > and accomplish task, but does not work) > > I cannot make another Broadcast receiver without knowing how to get a > specified AlarmManager. One is labeled as aSender and the other is > labelled as bSender. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

