java - Passing an array to activity (Android) -


in activity a, have built array q1 of question , passed activity b:

intent = new intent(getapplicationcontext(), b.class); i.putextra("questions", q1); startactivity(i); finish(); 

in activity b:

object c= getintent().getextras().getserializable("questions"); 

now, how can reconvert "c" in array of questions? can not make cast (question[])

this helpful.

 question[] questions = (question)context.getintent().getextras().get(key) 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

c++ - End of file on pipe magic during open -