> On Dec 25, 11:44 am, Zi Yong Chua <chu...@gmail.com> wrote:
>> Sorry I am noob here and learning about the basics about android..
>>
>> May I know what is the differences between the bundles? I search
>> around and there is not much comments on the bundles as far as I can
>> find...
>>
>> public void onCreate(Bundle icicle) {
>>         super.onCreate(icicle);
>>
>> public void onCreate(Bundle savedInstanceState) {
>>         super.onCreate(savedInstanceState);
>>
>> From what I know is savedInstanceState is the save state when the
>> activity goes to onPause/onStop.. What about icicle?

In Java, you can name variables whatever you want (given minor
restrictions on punctuation and stuff).

So:

public void onCreate(Bundle icicle) {
         super.onCreate(icicle);

and:

public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);

and:

public void onCreate(Bundle quitWorryingAboutTheName) {
         super.onCreate(quitWorryingAboutTheName);

are all the same thing.

The name originally was "icicle" because onSaveInstanceState() used to
be called onFreeze().

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.9 Available!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to