[android-developers] delete carriers table in TelephonyProvider

2008-12-04 Thread forrestxu
Hi, Please help me to understand if I delete carriers table in TelephonyProvider. What will be happened? I use code below: try { Uri mContacts = Uri.parse("content://telephony/carriers"); ctx.getContentResolver().d

[android-developers] Re: how can i reboot the device or lock the device using sdk?

2008-11-23 Thread forrestxu
Please help On 11月22日, 下午11时05分, forrestxu <[EMAIL PROTECTED]> wrote: > I used > > Runtime run = Runtime.getRuntime(); > run.exec("reboot"); > > to reboot the device. but i am failed. > > On 11月22日, 下午11时03分, forrestxu <[EMAIL PROTECTED]>

[android-developers] Re: how can i reboot the device or lock the device using sdk?

2008-11-22 Thread forrestxu
I used Runtime run = Runtime.getRuntime(); run.exec("reboot"); to reboot the device. but i am failed. On 11月22日, 下午11时03分, forrestxu <[EMAIL PROTECTED]> wrote: > Hi Guys, > > Please help me to solve the problem listed as below: > > how can i reboot the devi

[android-developers] how can i reboot the device or lock the device using sdk?

2008-11-22 Thread forrestxu
Hi Guys, Please help me to solve the problem listed as below: how can i reboot the device or lock the device using sdk? Many thanks, Forrest --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group

[android-developers] Re: possible to lock device?

2008-11-15 Thread forrestxu
"android.permission.BRICK" does not work. Any help? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe f

[android-developers] Re: how to kill activity in android

2008-11-15 Thread forrestxu
Hi All, I think what you did is to kill the process not activity. Doing so, all threads created by this task (application) will be killed also. I think switching SCREEN_ORIENTATION_PORTRAIT to SCREEN_ORIENTATION_LANDSCAPE using Ctrl + F12 kill the activity but the process is still working. After

[android-developers] how to kill activity in android

2008-11-06 Thread forrestxu
Hi, I have question. For test purpose, I want to kill an activity of an android application when it is paused or stopped to simulate the android system kill an activity when it is in low resource. How to it? Regards, Forrest --~--~-~--~~~---~--~~ You received th