addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwchatcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscrosseditemptyheartexportfacebookfolderfullheartglobegmailgoogleimageimagesinstagramlinklocation-pinmagnifying-glassmailminusmoremuplabelShape 3 + Rectangle 1outlookpersonplusprice-ribbonImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruseryahoo

Re: [londroid] Architecture question

Sent on: Wednesday, April 25, 2012 10:54 AM
I'm not good  in English...but I will try to explain what I thing a best solution for you.

You can use Mosquitto Push Solution to push the data from server to your mobile without AsynTast or other...
When data is available, it can push to your mobile without on demand...and you can create an Observer to update your view

 Push Implementation in Mosquitto MQTT (French)  : 

On 25 April[masked]:44, Muzero <[address removed]> wrote:

Hi to all,
I'm new in android dev and I'm developing an Android game. My aim is to have a network server service that update the view 
with these components:

1) A blocking serversocket that wait for external data and push in a queue
2) An asyncronous polling service that fetch data from the queue and update the view (a Drawable view)

My questions are:
1) what should I use for the ServerSocket? A Service or a BroadcastReceiver or even simply a thread?
I'm asking why I see that there are different opinions about these components, i.e BroadcastReceiver hangs out after 10 secs!

2) the pooling service in which way should update the thread? 
I create a sequence of commands using a simple strategy pattern...and these commands
should inherent an AsyncTask or be a sequence of IntentServices or should I execute them directly in the UI thread ?

many thanks for any suggestion.

Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Muzero ([address removed]) from The London Android Group - Londroid.
To learn more about Muzero, visit his/her member profile
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]

SIDIBE Ali-Broma

Our Sponsors

  • Novoda

    Organising speakers, dates, attendees and advocating attendance.

  • SkillsMatter

    Offers use of their meeting areas and recording facilities

  • Microsoft

    Sponsoring the food, drinks & ping pong at the event on the 26th April

  • Google

    Offering Pizza & Beer to attendees at key events.

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy