Advertisement

Accessing Media Over the Network

Chapter
  • 278 Downloads

Summary

Accessing media data over the network requires careful consideration because it involves two issues. First, network access should be done in a separate thread from the main thread, because accessing the network may block the main thread for a long time, leading to an unresponsive MIDlet. Second, network access requires permission from the user of the MIDlet as it may lead to charges from the network operator.

This chapter showed you how to overcome these two issues by explaining threads in Java ME and how they affect network access. The chapter also explained the concept of protection domains and how to overcome them for requesting permissions for network access. The chapter finished with an all-encompassing example that solved those two issues together.

The next chapter covers generating and playing tones using MMAPI with the help of the ToneControl control.

Keywords

Network Access Media File Remote Server Audio File Main Thread 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Vikram Goyal 2006

Personalised recommendations