As title says, Should I send each of my hashmaps over xmpp (gcm / ccm) individusally such as creating a bundle for each hashmap? or should I make 1 bundle and put all my hashmaps into the 1 bundle and then send?
Sorry I'm tired, here's my question in code form:
Question in code form:
Bundle sending= new Bundle();
then
gcm.send(Photex.SENDER_ID + "@gcm.googleapis.com", regId, sending);
or
sending.putSerializable("1", HashMap1);
sending.putSerializable("2", HashMap2);
sending.putSerializable("3", HashMap3);
sending.putSerializable("4", HashMap4);
sending.putSerializable("5", HashMap5);
sending.putSerializable("6", HashMap6);
sending.putSerializable("7", HashMap7);
gcm.send(Photex.SENDER_ID + "@gcm.googleapis.com", regId, sending);
0 comments:
Post a Comment