I have this piece of code in Activity A:
Properties properties = new Properties();
/** Fill up properties here */
Intent intent = new Intent(this,Another.class);
intent.putExtra("prop",properties);
startActivity(intent);
Now..I try grant that extra from the Activity B (through Intent's Bundle) by:
Properties properties = (Properties) bundle.getSerializable("prop");
But I getting java.lang.ClassCastException followed by that message:
java.lang.RuntimeException: Unable to start activity ComponentInfo{gr.kanellis.sqlify/gr.kanellis.sqlify.activities.DatabaseView}: java.lang.ClassCastException: java.util.HashMap cannot be cast to java.util.Properties
And pointing the line that I cast the Properties object in Activity B.
I can't figure out how to solve this problem. Any help will be much appreciated.