There should be no such limit; internally Bundle is just storing things in a HashMap.
On Wed, May 20, 2009 at 8:35 AM, Vignesh <[email protected]> wrote: > Hi, >> >> I am struck with an interesting problem. >> >> Problem: >> I create and putExtras into the intent and try to receive on the receiving >> Activity(getBundle). The Receiving activity receives NULL for some of the >> Strings that I had put inside the intent >> >> On debugging I found, that intent is not able to accept more than 5 values >> via putExtra. Is there any limit on intent.putExtras? >> >> Intent intent = new Intent(screen3time.this, screen5confirm.class); >> intent.putExtra(screen1.WHEN, choosenWhen); >> //intent.mExtras.mMap.elementcount Value is 1 >> intent.putExtra(screen1.WHAT, choosenWhat); >> //intent.mExtras.mMap.elementcount Value is 2 >> intent.putExtra(screen1.DD, dateDatePicker.getDayOfMonth()); >> //intent.mExtras.mMap.elementcount Value is 3 >> intent.putExtra(screen1.MM, dateDatePicker.getMonth() + 1); >> //intent.mExtras.mMap.elementcount Value is 4 >> intent.putExtra(screen1.YYYY, dateDatePicker.getYear()); >> //intent.mExtras.mMap.elementcount Value is 5 >> intent.putExtra(screen1.HH, timePicker.getCurrentHour().intValue()); >> //intent.mExtras.mMap.elementcount Value remains 5 instead of 6 >> intent.putExtra(screen1.MIN, >> timePicker.getCurrentMinute().intValue()); >> //intent.mExtras.mMap.elementcount Value remains 5 instead of 7 >> intent.putExtra(screen1.REPEAT_IN_SECONDS, repeat_in_seconds); >> //intent.mExtras.mMap.elementcount Value remains 5 instead of 8 >> >> Last 3 putExtra doesn't update the intent with values. >> >> Can someone help me understand if there are limits on putExtra? >> >> Thanking in advance, >> -vignesh >> > > > > > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---

