[android-developers] Permission of SystemClock.setCurrentTimeMillis()

2009-03-18 Thread elvisw
Hi everyone, The document says: SystemClock.setCurrentTimeMillis() Sets the current wall time, in milliseconds. Requires the calling process to have appropriate permissions. --- What is the appropriate permission I should declare in uses- permission??? Thanks your help... Elvis.

[android-developers] Re: Permission of SystemClock.setCurrentTimeMillis()

2009-03-18 Thread elvisw
/ mwuahah ;) On Wed, Mar 18, 2009 at 3:12 PM, elvisw elvise...@gmail.com wrote: Hi everyone, The document says: SystemClock.setCurrentTimeMillis() Sets the current wall time, in milliseconds. Requires the calling process to have appropriate permissions. --- What is the appropriate

[android-developers] Re: Remove time field of notification shown in the expanded status bar

2009-02-19 Thread elvisw
; notification.setLatestEventInfo(context, title, message, pendingIntent); On Feb 19, 9:12 pm, Jon Colverson jjc1...@gmail.com wrote: On Feb 19, 4:13 am, elvisw elvise...@gmail.com wrote:     The notification in the expanded status bar has time field.     How can I set the time invisible or remove it?? If you

[android-developers] Remove time field of notification shown in the expanded status bar

2009-02-18 Thread elvisw
Hi, everyone, The notification in the expanded status bar has time field. How can I set the time invisible or remove it?? Does anyone know about this?? Best Regards, Elvis. --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] catch HOME KeyDown Event

2009-01-15 Thread elvisw
Hi all, How can I catch HOME KeyDown Event in Activity or Dialog?? I find that the event is not passed into onKeyDown(), but I really need the function to make an AP's lock screen... Set WindowManager.LayoutParams.TYPE_SYSTEM_OVERLAY works?? Or how can I do this... Thanks,

[android-developers] How to initial SharedPreferences from an XML file in SD card

2009-01-02 Thread elvisw
Hi, Can I initial a SharedPreferences instance from an XML file saved in SD card?? Is it possible to do that?? Best Regards, Elvis. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] Activity Lifecycle

2008-10-01 Thread elvisw
Hi everyone, Normally, when onDestroy() been called, the process is still there and waiting the system to kill it. Is it possible to kill the process in onDestroy() when every time it is called?? Is there API to exit the process by the activity itself?? Best Regards, Elvis.

[android-developers] difference between start a service and a thread

2008-09-18 Thread elvisw
I'm not so familiar with the service mechanism. A simple question here, what is the difference between starting a service and starting a thread in a BroadcastReceiver?? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: difference between start a service and a thread

2008-09-18 Thread elvisw
or what about starting a service that starting the thread? On Sep 18, 2:08 pm, elvisw [EMAIL PROTECTED] wrote: I'm not so familiar with the service mechanism. A simple question here, what is the difference between starting a service and starting a thread in a BroadcastReceiver

[android-developers] Re: difference between start a service and a thread

2008-09-18 Thread elvisw
Is it an okey implementation that starting a thread in BroadcastReceiver and the thread will not call back the BroadcastReceiver?? The thread doesn't interact with the BroadcastReceiver, keeping doing its job, and doesn't care if the BroadcastReceiver is still active (still in onReceive() ).

[android-developers] Re: difference between start a service and a thread

2008-09-18 Thread elvisw
in it. [...] the system will consider its process to be empty and aggressively kill it so that resources are available for other more important processes. Peli On Sep 18, 3:07 pm, elvisw [EMAIL PROTECTED] wrote: Is it an okey implementation that starting a thread in BroadcastReceiver

[android-developers] Re: Will android provide Mail API??

2008-09-03 Thread elvisw
); smtp.sendMessage(message); } catch (MessagingException e) { // TODO Auto-generated catch block e.printStackTrace(); } On Aug 29, 9:14 pm, elvisw [EMAIL PROTECTED] wrote: Hi... It is too hard

[android-developers] Re: Will android provide Mail API??

2008-08-29 Thread elvisw
Hi... It is too hard to arrange the required classes within apache-harmony- src and jsse.jar (j2se lib - for SSL) that used at runtime... The dependency is quite complicate. I read the article already, http://davanum.wordpress.com/2007/12/22/android-send-email-via-gmail-actually-via-smtp/ , but

[android-developers] Re: Will android provide Mail API??

2008-08-29 Thread elvisw
Hi... It is too hard to arrange the required classes within apache-harmony- src and jsse.jar (j2se lib - for SSL) that used at runtime... The dependency is quite complicate. I read the article already, http://davanum.wordpress.com/2007/12/22/android-send-email-via-gmail-actually-via-smtp/ , but

[android-developers] Will android provide Mail API??

2008-08-28 Thread elvisw
Hi, everyone, Some questions here.. 1. Will android provide Mail API?? 2. there are mail implementation under apps/Email/ folder, does IMAP stuff under the folder follow IMAP4 protocol ?? elviselle. --~--~-~--~~~---~--~~ You received this message