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

2009-03-18 Thread elvisw
> Not funny. --- I wonder that system time can be set only in phone or system process??? On Mar 18, 9:52 pm, Stoyan Damov wrote: > > > mwuahah ;) > > On Wed, Mar 18, 2009 at 3:12 PM, elvisw wrote: > > > Hi everyo

[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 ??? Thanks your help... Elvis. --~--~-~--~~---

[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 wrote: > On Feb 19, 4:13 am, elvisw wrote: > > >     The notification in the expanded status bar has time field. > >     How can I set the "time" invisible or remove it?? > >

[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, Elvis.

[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] Re: Activity Lifecycle

2008-10-02 Thread elvisw
But doing that pretty > nasty, and almost certainly won't work all that well. > > Why would you want to do such a thing? > > On Oct 1, 8:37 pm, elvisw <[EMAIL PROTECTED]> wrote: > > > Hi everyone, > > >     Normally, when onDestroy() been called, the proc

[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] Constructor of Notification

2008-09-23 Thread elvisw
Is it possible to use new Notification(int icon, CharSequence tickerText, long when) but assign nothing for icon?? If I dont want to show an icon.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "An

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

2008-09-18 Thread elvisw
pplication components that are running 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: &

[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-17 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

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

2008-09-17 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 Gro

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

2008-09-03 Thread elvisw
part2); message.setBody(rootPart); SmtpTransport smtp = new SmtpTransport("smtp+ssl+:// myname:[EMAIL PROTECTED]:465"); smtp.sendMessage(message); } catch (MessagingException e) {

[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 s

[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 s

[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 becau