[android-developers] Re: Permission of SystemClock.setCurrentTimeMillis()
> 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 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 > permission>??? > > Thanks your help... > > > Elvis. > > --~--~-~--~~~---~--~~ 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 from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Permission of SystemClock.setCurrentTimeMillis()
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. --~--~-~--~~~---~--~~ 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 from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Remove time field of notification shown in the expanded status bar
I found that the sequence of code does matter. 1) TextView of time would be shown, if the sequence: notification.setLatestEventInfo(context, title, message, pendingIntent); notification.when = 0; 2) TextView of time would not be shown, if the sequence: notification.when = 0; 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?? > > If you use a RemoteView then you can put whatever you want in the > notification:http://developer.android.com/reference/android/widget/RemoteViews.html > > -- > Jon --~--~-~--~~~---~--~~ 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 from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Remove time field of notification shown in the expanded status bar
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 to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] catch HOME KeyDown Event
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. --~--~-~--~~~---~--~~ 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 from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to initial SharedPreferences from an XML file in SD card
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. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Activity Lifecycle
to release some resource violently... that resource has no API for me to release it smoothly.. it will keep working, cost cpu time unless i exit the process... so... Thanks On Oct 2, 3:35 pm, hackbod <[EMAIL PROTECTED]> wrote: > You can use the Process class to kill yourself. 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 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. > > --~--~-~--~~~---~--~~ 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 from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Activity Lifecycle
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. --~--~-~--~~~---~--~~ 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 from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Constructor of Notification
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 "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com 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 -~--~~~~--~~--~--~---
[android-developers] Re: difference between start a service and a thread
got it, deeply appreciate all your comments... thank u and hackbod... :) On 9月18日, 下午9時50分, Peli <[EMAIL PROTECTED]> wrote: > Yes, as far as I understand there is the risk that your thread can get > killed anytime, because the system does not assume that a thread > should be running. The whole process will be killed including all > threads. > > Carefully read this paragraph from the link given above by hackbod: > "Once you return from onReceive(), the BroadcastReceiver is no longer > active, and its hosting process is only as important as any other > application 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: > > > > > 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() ). > > > is there any risk here so that we must use Service?? > > > On Sep 18, 6:10 pm, hackbod <[EMAIL PROTECTED]> wrote: > > > > Well you simply shouldn't start a thread in BroadcastReceiver, as > > > explained > > > here:http://code.google.com/android/reference/android/content/BroadcastRec... > > > (starting a thread would count as an "asynchronous operation").- 隱藏被引用文字 - > > - 顯示被引用文字 - --~--~-~--~~~---~--~~ 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 from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: difference between start a service and a thread
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() ). is there any risk here so that we must use Service?? On Sep 18, 6:10 pm, hackbod <[EMAIL PROTECTED]> wrote: > Well you simply shouldn't start a thread in BroadcastReceiver, as > explained > here:http://code.google.com/android/reference/android/content/BroadcastRec... > (starting a thread would count as an "asynchronous operation"). > --~--~-~--~~~---~--~~ 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 from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: difference between start a service and a thread
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?? --~--~-~--~~~---~--~~ 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 from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] difference between start a service and a thread
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 Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com 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 -~--~~~~--~~--~--~---
[android-developers] Re: Will android provide Mail API??
t;); rootPart.addBodyPart(part1); rootPart.addBodyPart(part2); message.setBody(rootPart); SmtpTransport smtp = new SmtpTransport("smtp+ssl+:// myname:[EMAIL PROTECTED]:465"); 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 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-... > , > but still cannot work well. > Could anyone provide the least extra classes as a package, it will > help those who work on this topic a lot > thanks > > elvis. > > On 8月29日, 上午12時36分, "Mark Murphy" <[EMAIL PROTECTED]> wrote: > > > > 1. Will android provideMailAPI?? > > > There does not appear to be a public API formail, such as javax.mail, in > > the 0.9 SDK. > > > That being said, JavaMail worked under M5, if you found the right JAR > > files. I haven't tried it yet under 0.9, but I should within a week. > > > -- > > Mark Murphy (a Commons Guy)http://commonsware.com > > _The Busy Coder's Guide to Android Development_ Version 1.1 Published! --~--~-~--~~~---~--~~ 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 from this group, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Will android provide Mail API??
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 still cannot work well. Could anyone provide the least extra classes as a package, it will help those who work on this topic a lot thanks elvis. On 8月29日, 上午12時36分, "Mark Murphy" <[EMAIL PROTECTED]> wrote: > > 1. Will android provideMailAPI?? > > There does not appear to be a public API formail, such as javax.mail, in > the 0.9 SDK. > > That being said, JavaMail worked under M5, if you found the right JAR > files. I haven't tried it yet under 0.9, but I should within a week. > > -- > Mark Murphy (a Commons Guy)http://commonsware.com > _The Busy Coder's Guide to Android Development_ Version 1.1 Published! --~--~-~--~~~---~--~~ 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 from this group, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Will android provide Mail API??
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 still cannot work well. Could anyone provide the least extra classes as a package, it will help those who work on this topic a lot thanks elvis. On 8月29日, 上午12時36分, "Mark Murphy" <[EMAIL PROTECTED]> wrote: > > 1. Will android provideMailAPI?? > > There does not appear to be a public API formail, such as javax.mail, in > the 0.9 SDK. > > That being said, JavaMail worked under M5, if you found the right JAR > files. I haven't tried it yet under 0.9, but I should within a week. > > -- > Mark Murphy (a Commons Guy)http://commonsware.com > _The Busy Coder's Guide to Android Development_ Version 1.1 Published! --~--~-~--~~~---~--~~ 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 from this group, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Will android provide Mail API??
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 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 from this group, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---