how i can draw the same image or same message to the players

0 votes
i am using j2me appwarp sdk.

i am develop two player fighting game.

i want to draw an image or draw string message to the both player at the same time ie i want to send image or string draw message to the appwarp server . for this if i draw image or string msg in the Player class in any switch case no i could not use these lines here

winnerImg..setPosition(0, 0);

winnerImg.paint(g);

OR

g.drawString("mahesh is Winner");

then how can i do it.
asked Apr 17, 2014 in AppWarp by maheshsahu125 (20 points)

1 Answer

0 votes

With appwarp you can only send text or binary message with a size limit of 1024 characters.
To share image files you can use App42 upload service along with appwarp. Upload the file to App42 cloud and then share the link with other user. 

You can create your own JSON format and send it. It could be something like this
{
    "type": "image",
    "url" : "http://..."
}

or

{
   "type" : "string",
   "string" : "mahesh is Winner"
}

Let me know if this is helpful. 

answered Apr 17, 2014 by Suyash Mohan (900 points)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...