is there a limit on Extras inside an intent (or a bug on putExtra) ?

by Dianne Hackborn » Thu, 21 May 2009 06:04:51 GMT

Sponsored Links
 There should be no such limit; internally Bundle is just storing things  in
a HashMap.

Dianne Hackborn
Android framework engineer

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.


Other Threads

1. New Screens (one per class)


I'm totally out of my depth but persistently wading and learning as I
I'm really unfamiliar with the Java paradigm, so please bear with me
and don't assume I know anything (because, really, I probably don't :-
( ).

A few questions:

1. Could someone point me to, or explain to me, the intended flow of
an Android application? eg. if I want to:
"do X; get results from X; then display Y to user; then get input;
then do Z"
I've gleaned so far that I have my main Activity class, in which I set
a listener for X, then call X, and that's the end of that class;
Then, when my listener is called, I set a listener for input from the
user, and display Y to user, and that's all for that class;
then, in yet another new class, I have the code that is called if the
user presses the button.

Is that right ?
Seems rather disjoint, and coming from a perl/python background I'm
used to systematic flow: "Do X, then display content to user, then
loop or block until user enters", so please correct my thinking above
if it's erroneous.

2. I have a class "extends Activity" which is the first class of my
application. I then want to display a list, and have a class that
"extends ListActivity". The ListActivity class is called from a
BroadcastReceiver (basically, I'm scanning SSIDs, the listener is
called when scan is complete, and then I want to display a list of
SSIDs to the user for selection). When I attempt to transfer to a
method inside the ListActivity class, my program crashes; I understand
that this is due to the different type of view (from TextView to
ListView, I suspect). I also have the feeling that I need to set an
intent to transition from the first class type to the second...
however I don't have sufficient knowledge/background/experience to
understand how to get this done (My attempt to create an intent and
call startActivity failed because startActivity is not available from
within a BroadcastReceiver class) ... :-o

Many thanks


2. ClassNotFoundException in Eclipse Layout tab when custom view references another project

I have an eclipse workspace containing several projects.

One project is an android project, containing a custom view (say
MyView) which I have added to my main.xml layout.  My custom view
references a class (say OtherClass) in another project in the
workspace.  The visual layout editor in Eclipse will not draw MyView,
because it takes a ClassNotFoundException on OtherClass.

I have included OtherClass's project in the "Java Build Path" and
"Project References" in the project properties for the android project
containing MyView.  MyView draws fine in the emulator.  It is only in
Eclipse's visual editor for the layout that I have a problem.

Is there another place to add to the classpath for the visual layout
editor?  Is this a known problem?  (If googled for it and looked at
the android FAQ to no avail.)


P.S. I am using Eclipse version 3.3.2, Android SDK 1.0 r1, and JDK


3. Market paid-for apps

4. Pass state from Activity to Service

5. seeking andriod developers

6. Slide from an Activity to another...

7. how to add webview to listview