android - how to pass 2 dimensional array to broadcast reciver class -


I'm new to Android and my main activity class is facing a problem to keep in mind that with the intention of class Is passing, which enforces the broadcast receiver and intends to include a 2-dimensional array

// Here curDts is my 2-dimensional array

  bundle b = new bundle (); B Pedestrians ("dates", crores); Intent = new intent (this, alarm receiver class); Intent.putExtras (b); Receiver on Public Zero (Reference ARB0, Intent AR1) {Bundle B = arg1.getExtras (); //Log.v("hahahha" ,"curDts "); String [] [] my_date = (string [] []) b.getSerializable ("Date"); Log.v ("date", my_date + "-"); }   

My_date looks null here

Please help me ..

< Div class = "post-text" itemprop = "text">

this way. But I never compile it and run it.

  bundle b = new bundle (); Intent = new intent (this, alarm receiver class); Intent.putExtra ("lane", curDts.length); For (int i = 0; i & lt; curDts.length; i ++) {intent.putExtra ("items" + i, curDts [i]); } Receive on public null (reference arg0, int arg2) {//Log.v("ahahha "," curDts "); String [] [] my_date = new string [] [arg1.getIntExtra ("lane"]]; For (int i = 0; i & lt; arg1.getIntExtra ("len"); i ++) {my_date [i] = arg1.getStringArrayExtra ("object" + i, null); } Logs. V ("Date", my_date + "-"); }    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -