Re: [android-developers] Re: Problem when coming back to activity after changing font in Galaxy S

2011-05-20 Thread Suresh Chandra Pal
Sorry for the wrong code, but the ActivityOne do not have a button, but is starting ActivityTwo immediately in its onCreate() method. and this code is creating problem. @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setConte

Re: [android-developers] Re: Problem when coming back to activity after changing font in Galaxy S

2011-05-20 Thread Suresh Chandra Pal
Hi Simon, You suggested to make activity singleton. But is 'making activity' singleton not equal to single instance. At a time I'll be having a single instance. and I dont want to do that. Moreover mainly, I want a way which is acceptable according to android concepts. and if that is not possible t

[android-developers] Re: Problem when coming back to activity after changing font in Galaxy S

2011-05-19 Thread Simon Jackson
how about to singleton something static Activity me; oncreate() if(me==null) me = this else me. finish(); or such Cheers Jacko -- 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@goo