Well the first thing that immediately springs to mind is the lack of
package prefix in your key string. From the Intent API: "The name must
include a package prefix, for example the app com.android.contacts
would use names like "com.android.contacts.ShowAll""
So your putExtra key should be something like "org.myapp.table", to
match the package name that you have set in your manifest. I'm not
sure if it will fix your problem, but it seems plausible.
You should be check for null for casts like this as well, in case the
activity is ever called without a "table" being passed in...
Serializable data = getIntent().getSerializableExtra("table");
if (data != null) {
Hashtable table = (Hashtable)data;
}
else {
// Handle missing table when intent does not have it
}
Cheers,
Sean
On Fri, Nov 13, 2009 at 9:35 AM, Samuh <[email protected]> wrote:
> *Correction* : the put statement is:
> intent.putExtra("table",mHashTable);
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" 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-beginners?hl=en
--
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en