[android-developers] CountDownTimer doen't work during device in deep sleep?

2010-12-22 Thread optimusgeek
I use CountDownTimer for counting 24hours with 1minute interval. but It seems that the onTick() not called when device in deep sleep. When I check the millisUntilFinished value after activating device, The value was not match first but after few seconds, It show correct value. I think, when device

[android-developers] How can I disable an item of ListView?

2010-08-27 Thread optimusgeek
When I have a list view and there are 3 items which can choose by user, I wanna show only choosable items to user because of some reason. but I could not find any method in ListView or ArrayAdapter class. Is there a solution? protected void onCreate(Bundle savedInstanceState) { ..

[android-developers] How to get current pure UTC time?

2010-08-25 Thread optimusgeek
I need to get pure UTC time in application level. It should not be changed by user or location or anything else. When I try with System.currentTimeMillis() or getTime() of Date class, they always return value of local time. If user change date or time, the return value is also changed. I found

[android-developers] Re: How to get current pure UTC time?

2010-08-25 Thread optimusgeek
, optimusgeek пишет: I need to get pure UTC time in application level. It should not be changed by user or location or anything else. When I try with System.currentTimeMillis() or getTime() of Date class, they always return value of local time. If user change date or time, the return value

[android-developers] Re: Question about APN for Browser and MMS

2010-08-24 Thread optimusgeek
anybody?? On 8월17일, 오후3시26분, optimusgeek choongb...@gmail.com wrote: I'm very confusing aboutAPNin android. I saw theapntype onAPNsetting could be 'default' for data connection and 'mms' for MMS. (Are there else values??) If theapntype value should be one of them, does it mean

[android-developers] Re: How to get absolute time ?

2010-08-23 Thread optimusgeek
, optimusgeek ڬ ֬ : alright... Date.getTime() is not available... when I change time in setting of emulator, the getTime() is changed as much again. How can I get current UTC time independent of local time? On 8 23 , 11 26 , optimusgeek choongb...@gmail.com wrote: Is the Date.getTime

[android-developers] Re: How to get absolute time ?

2010-08-22 Thread optimusgeek
Yes... the reboot is problem... so I think I need a current time and remind time. 1. get current time - this time should not be changed by user or location or anything else : absolute time?? 2. save remind time as a sharedreference. ( ex. remind time = current time + 30minutes) 3. start timer 4.

[android-developers] Re: How to get absolute time ?

2010-08-22 Thread optimusgeek
In case of #4, the rest time for timer will be set. ex) new rest time = get current time - saved remind time; start timer for the rest time... On 8월23일, 오전9시17분, optimusgeek choongb...@gmail.com wrote: Yes... the reboot is problem... so I think I need a current time and remind time. 1. get

[android-developers] Re: How to get absolute time ?

2010-08-22 Thread optimusgeek
Jan. 1, 1970, midnight GMT. Returns the number of milliseconds since Jan. 1, 1970, midnight GMT. = On 8월23일, 오전10시37분, optimusgeek choongb...@gmail.com wrote: In case of #4, the resttimefor timer will be set. ex

[android-developers] Re: How to get absolute time ?

2010-08-22 Thread optimusgeek
alright... Date.getTime() is not available... when I change time in setting of emulator, the getTime() is changed as much again. How can I get current UTC time independent of local time? On 8월23일, 오전11시26분, optimusgeek choongb...@gmail.com wrote: Is the Date.getTime() available? It will return

[android-developers] Re: Layout Problem in different screen size

2010-08-20 Thread optimusgeek
LinearLayout android:orientation=horizontal android:layout_width=fill_parent android:layout_height=wrap_content LinearLayout android:orientation=vertical !-- android:layout_width=fill_parent -- android:layout_height=wrap_content android:layout_weight=3

[android-developers] How to get absolute time ?

2010-08-20 Thread optimusgeek
I'll notify something to user after 30 minutes for example. so I need to get a time which is not changable by user or anything. Does it call UTC? I guess I need to get current time and it should have nothing to do with user handle or location actually, I'm focusing '30minutes from now' rather than

[android-developers] Question about APN for Browser and MMS

2010-08-17 Thread optimusgeek
I'm very confusing about APN in android. I saw the apn type on APN setting could be 'default' for data connection and 'mms' for MMS. (Are there else values??) If the apn type value should be one of them, does it mean that it separated by only for MMS and for the other apps? Anyway, I heard that a

[android-developers] Re: how can I check my app stopped by which home key or other apps

2010-08-10 Thread optimusgeek
- develop...@googlegroups.com] On Behalf Of optimusgeek Sent: Tuesday, August 10, 2010 8:32 AM To: Android Developers Subject: [android-developers] Re: how can I check my app stopped by which home key or other apps Thank you all. Here is what I'm doing. I'd like to register a notification

[android-developers] Re: how can I check my app stopped by which home key or other apps

2010-08-09 Thread optimusgeek
about home key eventually... and I know I can't control home key. I think it's unnecessary worry. thanks guys. On 8월9일, 오후10시57분, TreKing treking...@gmail.com wrote: 2010/8/8 optimusgeek choongb...@gmail.com I mean I want to do something when my app going to be stopped. Yes, I understand

[android-developers] how can I check my app stopped by which home key or other apps

2010-08-08 Thread optimusgeek
Hello~ 1. As android application life cycle, when I press home key my app will be stopped. onPause()-onStop() 2. Also If an another app comes to front like an incoming call, my app will be stopped. onPause()-onStop() I want to do something differently in each case. but both cases go to onStop()

[android-developers] Re: how can I check my app stopped by which home key or other apps

2010-08-08 Thread optimusgeek
method. because I want to put different codes by the situation(#1 or #2) On 8월9일, 오후12시09분, TreKing treking...@gmail.com wrote: On Sun, Aug 8, 2010 at 9:49 PM, optimusgeek choongb...@gmail.com wrote: Is there any way to find out? What difference does it make how your app is stopped

[android-developers] Re: detecting home screen, idle of device

2010-07-27 Thread optimusgeek
, Joseph Earl joseph.w.e...@gmail.com wrote: It would be reasonable to start a service when the device is idle. I think it would be unreasonable to start a visible activity without user interaction. The user will start your app when they want to. On Jul 27, 3:47 am, optimusgeek choongb...@gmail.com

[android-developers] Re: detecting home screen, idle of device

2010-07-27 Thread optimusgeek
to user. In this case, I want to show it to users right away without the notification. I think this is not kind of right and wrong. It just matter of scenario. On 7월27일, 오후11시41분, TreKing treking...@gmail.com wrote: On Mon, Jul 26, 2010 at 9:47 PM, optimusgeek choongb...@gmail.com wrote: I want

[android-developers] detecting home screen, idle of device

2010-07-26 Thread optimusgeek
I want to start my activity when the device is in idle(home screen). I found a solution like below. = ActivityManager actvityManager = (ActivityManager)getSystemService( ACTIVITY_SERVICE ); ListActivityManager.RunningTaskInfo task =