[android-developers] How to start an Intent from preference page AND GET RESULTS?

2009-03-06 Thread Xin Zhao
Hey guys, I am trying to start an intent from a preference activity, AND GET RESULTS once the new intent is done. As such, I can update the summary of the preference. Normall we do startActivityForResult() to wait for results. But how can I do this here? My code is as follow: PreferenceSc

[android-developers] HELP! View layout issue

2009-02-08 Thread Xin Zhao
Hey guys, I am trying to define a view with the following requirements: 1. the view should occupy the entire screen, except the notification area (the top small bar) 2. The view should be even split into three parts, the top and bottom are two huge buttons, and the middle is a scrollable list. No

[android-developers] Can we start a new activity or at least display a Toast in TimerTask.run()?

2009-02-06 Thread Xin Zhao
I tried to deploy a timer and switch the user to another dialog for setting if times out. But the dialog just cannot display. No error/exception reported. Vibration works fine though. What's wrong? Code: private void setAutoPhonecardSelector(int interval) { Date timeToRun = new Date(System

[android-developers] I tried to deploy a timer and switch the user to another dialog for setting if times out. But the dialog just cannot display. No error/exception reported. Vibration works fine t

2009-02-06 Thread Xin Zhao
I tried to deploy a timer and switch the user to another dialog for setting if times out. But the dialog just cannot display. No error/exception reported. Vibration works fine though. What's wrong? Code: private void setAutoPhonecardSelector(int interval) { Date timeToRun = new Date(System

[android-developers] Re: I tried to deploy a timer and switch the user to another dialog for setting if times out. But the dialog just cannot display. No error/exception reported. Vibration works fi

2009-02-06 Thread Xin Zhao
rdSelector, timeToRun); } /*-*/ On Fri, Feb 6, 2009 at 5:40 PM, Xin Zhao wrote: > I tried to deploy a timer and switch the user to another dialog for setting > if times out. But the dialog just cannot display. No error/exce