emulator udp broadcast on host subnet?

by Liam Staskawicz » Tue, 16 Dec 2008 06:07:18 GMT


Sponsored Links
 I've been able to use the redir command to get packets to and from an
emulator instance from another device on my dev machine's local subnet
- specifying addresses like 192.168.0.xxx works just fine.

I have not been able, however, to send a UDP broadcast packet from the
emulator on my dev machine's local subnet.  Is this possible?  Thanks
for any tips!

Liam

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Service with timer

I have a service running that has a Timer. The Timer schedules a
TimerTask to run at a certain interval. The TimerTask simply display's
a notification. In theory it all sort of works but I find it very
inconsistent.

The notifications only occur when the device is not sleeping. Also
sometimes it seems as though the Timer is only counting time when the
device is not asleep. If I leave the device asleep for 15 minutes then
wake it up after a minute or two I will get 4 notifications in a row.
All the ones that should have been displayed periodically over the
last 15 minutes.

Am I handling this situation the correct way? Is a timer the correct
way to do this? How can I make the device wake from sleep and display
the notifications at the correct intervals?

public class GameScoreService extends Service {

    Timer timer = null;

        private void startService() {

                timer = new Timer();

                timer.scheduleAtFixedRate(new getNewScores(), 5000, 180000);
        }

        class getNewScores extends TimerTask {
                public void run() {

                        ...perform notification
               }
        }

        @Override
    public void onStart(Intent intent, int startId) {

        super.onStart(intent, startId);

                startService();
    }
}

--~--~---------~--~----~------------~-------~--~----~

2. port openRecordStore from J2ME to android

which class I should be using to do that?
Thanks
Tony

--~--~---------~--~----~------------~-------~--~----~

3. HelloSpinner Example!!

4. How to display RGB 565 byte array on the screen

5. How to draw a piece of Bitmap

6. Using SDK 1.5 to build 1.1 apps?

7. Is anyone else getting bored of announced product releases that don't materialise ...