[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) { .. men

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

2010-08-25 Thread optimusgeek
NTP server. > > http://www.pool.ntp.org/en/ > > -- Kostya > > 25.08.2010 12:11, 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 wi

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

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

2010-08-24 Thread optimusgeek
anybody?? On 8월17일, 오후3시26분, optimusgeek 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,

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

2010-08-23 Thread optimusgeek
I know that.. I just do it for fast wording... It's not my topic. On 8월23일, 오후4시48분, Kostya Vasilyev wrote: >  getTime is not a static method, but rather an instance method. > > You need to do: > > Date d = new Date(); > long millisSinceJan1of1970 = d.getTime(); > >

[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 wrote: > Is the Date.getTime() available? It will return milliseconds ba

[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 wrote: > In case of #4, the resttimefor timer will be set. > ex) new resttim

[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 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
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] 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] Re: Layout Problem in different screen size

2010-08-20 Thread optimusgeek
android:layout_height="wrap_content" android:layout_weight="3" > android:orientation="vertical" android:layout_height="wrap_content" android:layout_weight="7" > It just my thought.. not checked in code. On 8월20일, 오후6시09분, CMF wrote: >

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

2010-08-16 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 s

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

2010-08-10 Thread optimusgeek
From: android-developers@googlegroups.com [mailto:android- > > 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

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

2010-08-09 Thread optimusgeek
I do not notice that It's all 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 wrote: > 2010/8/8 optimusgeek > > > I mean I want to do something when my app going to be stoppe

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

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

[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: 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 wrote: > On Mon, Jul 26, 2010 at 9:47 PM, optimusgeek wrote: > > I want to start my activity when t

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

2010-07-27 Thread optimusgeek
, 오후11시56분, Joseph Earl 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 wrote: >

[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 ); List task = actvityManager.getRunningTasks(1); Compo