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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2006 Vikram Goyal
About this chapter
Cite this chapter
(2006). Accessing Media Over the Network. In: Pro Java ME MMAPI. Apress. https://doi.org/10.1007/978-1-4302-0157-1_5
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0157-1_5
Publisher Name: Apress
Print ISBN: 978-1-59059-639-5
Online ISBN: 978-1-4302-0157-1
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)