وبلاگ بلیان

Pro Android media : developing graphics, music, video, and rich media apps for smartphones and tablets ; [utilize the Android media APIs to create dynamic mobile apps

معرفی کتاب «Pro Android media : developing graphics, music, video, and rich media apps for smartphones and tablets ; [utilize the Android media APIs to create dynamic mobile apps» نوشتهٔ Shawn Van Every، منتشرشده توسط نشر Apress; Distributed to the book trade worldwide by Springer Science+Business Media در سال 2010. این کتاب در 9 صفحه، فرمت pdf، زبان انگلیسی ارائه شده است.

Mobile devices have evolved to focus on rich media production and consumption. Developers of mobile applications are able to create applications that allow people to play, capture, and share media in a variety of new ways on mobile devices. The popularity of Android has soared in part because the platform offers developers a rich set of capabilities including access to media capturing and playback functions. Pro Android Media provides concise and clear instruction on how to utilize the media APIs made available through Android to create dynamic apps. It takes you from a simple means to gain access to the camera to complex video capture and sharing examples. It also covers sound, graphics, painting, and more—everything you need to make your app come "alive." After reading this book, the app you create will showcase the best of multimedia that Android has to offer. What you’ll learn Develop graphics, music, video and rich media apps for Android smartphones and tablets Build touchscreen input features into Android apps that allow users to draw, paint, and do other creative forms of input Turn the Android smartphone into a full fledged media player Integrate and use location-based services and media-related web service APIs Who this book is for This book is aimed primarily at the growing market of Android developers. It is written in such a way that it may be used by those who are familiar with Android, but have no experience developing applications that deal with images, audio, or video. Table of Contents Introduction to Android Imaging Building Custom Camera Applications Image Editing and Processing Graphics and Touch Events Introduction to Audio on Android Background and Networked Audio Audio Capture Audio Synthesis and Analysis Introduction to Video Advanced Video Video Capture Media Consumption and Publishing Using Web Services Prelim......Page 1 Contents at a Glance......Page 5 Contents......Page 6 About the Author......Page 10 About the Technical Reviewers......Page 11 Acknowledgments......Page 12 Preface......Page 13 Image Capture Using the Built-In Camera Application......Page 15 Returning Data from the Camera App......Page 17 Capturing Larger Images......Page 19 Displaying Large Images......Page 20 Image Storage and Metadata......Page 24 Obtaining an URI for the Image......Page 25 Updating Our CameraActivity to Use MediaStore for Image Storage and to Associate Metadata......Page 26 Retrieving Images Using the MediaStore......Page 30 Creating an Image Viewing Application......Page 32 Summary......Page 35 Using the Camera Class......Page 37 Preview Surface......Page 38 Implementing the Camera......Page 39 Putting It All Together......Page 49 Building a Timer-Based Camera App......Page 52 Building a Time-Lapse Photography App......Page 57 Summary......Page 59 Selecting Images Using the Built-In Gallery Application......Page 61 Drawing a Bitmap onto a Bitmap......Page 66 Basic Image Scaling and Rotating......Page 68 Enter the Matrix......Page 69 Matrix Methods......Page 72 Alternative to Drawing......Page 78 ColorMatrix......Page 79 Altering Contrast and Brightness......Page 81 Image Compositing......Page 83 Summary......Page 92 Bitmap Creation......Page 93 Bitmap Configuration......Page 94 Creating the Canvas......Page 95 Working with Paint......Page 96 Drawing Shapes......Page 97 Drawing Text......Page 101 Touch Events......Page 107 Drawing on Existing Images......Page 111 Saving a Bitmap-Based Canvas Drawing......Page 115 Summary......Page 118 Audio Playback......Page 119 Supported Audio Formats......Page 120 Using the Built-In Audio Player via an Intent......Page 121 Creating a Custom Audio-Playing Application......Page 123 MediaStore for Audio......Page 129 Summary......Page 137 Services......Page 139 Local Service plus MediaPlayer......Page 143 Controlling a MediaPlayer in a Service......Page 146 HTTP Audio Playback......Page 151 Streaming Audio via HTTP......Page 157 Summary......Page 164 Audio Capture with an Intent......Page 165 Custom Audio Capture......Page 168 MediaRecorder Output Formats......Page 169 MediaRecorder State Machine......Page 170 MediaRecorder Example......Page 171 Other MediaRecorder Methods......Page 176 Raw Audio Recording with AudioRecord......Page 181 Raw Audio Playback with AudioTrack......Page 184 Raw Audio Capture and Playback Example......Page 186 Summary......Page 191 Digital Audio Synthesis......Page 193 Playing a Synthesized Sound......Page 194 Generating Samples......Page 196 Audio Analysis......Page 201 Capturing Sound for Analysis......Page 202 Visualizing Frequencies......Page 203 Summary......Page 207 Supported Formats......Page 209 Playback Using an Intent......Page 210 Playback Using VideoView......Page 211 Adding Controls with MediaController......Page 213 Playback Using a MediaPlayer......Page 214 Summary......Page 224 MediaStore for Retrieving Video......Page 225 Full MediaStore Video Example......Page 226 Supported Network Video Types......Page 232 Network Video Playback......Page 235 Summary......Page 242 Recording Video Using an Intent......Page 243 Adding Video Metadata......Page 246 MediaRecorder for Video......Page 249 Full Custom Video Capture Example......Page 260 Summary......Page 264 Web Services......Page 265 HTTP Requests......Page 266 JSON......Page 268 Pulling Flickr Images Using JSON......Page 271 Location......Page 277 Pulling Flickr Images Using JSON and Location......Page 280 Representing Data in XML......Page 287 SAX Parsing......Page 288 Making an HTTP Request......Page 292 Uploading Video to Blip.TV......Page 294 Summary......Page 304 ¦ A......Page 305 ¦ C......Page 306 ¦......Page 307 ¦ E......Page 308 ¦ I......Page 309 ¦ L......Page 310 ¦ P......Page 312 ¦ R......Page 313 ¦V......Page 315 ¦ X, Y, Z......Page 316 Prelim 1 Contents at a Glance 5 Contents 6 About the Author 10 About the Technical Reviewers 11 Acknowledgments 12 Preface 13 Introduction to Android Imaging 15 Image Capture Using the Built-In Camera Application 15 Returning Data from the Camera App 17 Capturing Larger Images 19 Displaying Large Images 20 Image Storage and Metadata 24 Obtaining an URI for the Image 25 Updating Our CameraActivity to Use MediaStore for Image Storage and to Associate Metadata 26 Retrieving Images Using the MediaStore 30 Creating an Image Viewing Application 32 Internal Metadata 35 Summary 35 Building Custom Camera Applications 37 Using the Camera Class 37 Camera Permissions 38 Preview Surface 38 Implementing the Camera 39 Putting It All Together 49 Extending the Custom Camera Application 52 Building a Timer-Based Camera App 52 Building a Time-Lapse Photography App 57 Summary 59 Image Editing and Processing 61 Selecting Images Using the Built-In Gallery Application 61 Drawing a Bitmap onto a Bitmap 66 Basic Image Scaling and Rotating 68 Enter the Matrix 69 Matrix Methods 72 Alternative to Drawing 78 Image Processing 79 ColorMatrix 79 Altering Contrast and Brightness 81 Changing Saturation 83 Image Compositing 83 Summary 92 Graphics and Touch Events 93 Canvas Drawing 93 Bitmap Creation 93 Bitmap Configuration 94 Creating the Canvas 95 Working with Paint 96 Drawing Shapes 97 Drawing Text 101 Finger Painting 107 Touch Events 107 Drawing on Existing Images 111 Saving a Bitmap-Based Canvas Drawing 115 Summary 118 Introduction to Audio on Android 119 Audio Playback 119 Supported Audio Formats 120 Using the Built-In Audio Player via an Intent 121 Creating a Custom Audio-Playing Application 123 MediaStore for Audio 129 Summary 137 Background and Networked Audio 139 Background Audio Playback 139 Services 139 Local Service plus MediaPlayer 143 Controlling a MediaPlayer in a Service 146 Networked Audio 151 HTTP Audio Playback 151 Streaming Audio via HTTP 157 RTSP Audio Streaming 164 Summary 164 Audio Capture 165 Audio Capture with an Intent 165 Custom Audio Capture 168 MediaRecorder Audio Sources 169 MediaRecorder Output Formats 169 MediaRecorder Audio Encoders 170 MediaRecorder Output and Recording 170 MediaRecorder State Machine 170 MediaRecorder Example 171 Other MediaRecorder Methods 176 Inserting Audio into the MediaStore 181 Raw Audio Recording with AudioRecord 181 Raw Audio Playback with AudioTrack 184 Raw Audio Capture and Playback Example 186 Summary 191 Audio Synthesis and Analysis 193 Digital Audio Synthesis 193 Playing a Synthesized Sound 194 Generating Samples 196 Audio Analysis 201 Capturing Sound for Analysis 202 Visualizing Frequencies 203 Summary 207 Introduction to Video 209 Video Playback 209 Supported Formats 209 Playback Using an Intent 210 Playback Using VideoView 211 Adding Controls with MediaController 213 Playback Using a MediaPlayer 214 Summary 224 Advanced Video 225 MediaStore for Retrieving Video 225 Video Thumbnails from the MediaStore 226 Full MediaStore Video Example 226 Networked Video 232 Supported Network Video Types 232 Network Video Playback 235 Summary 242 Video Capture 243 Recording Video Using an Intent 243 Adding Video Metadata 246 Custom Video Capture 249 MediaRecorder for Video 249 Full Custom Video Capture Example 260 Summary 264 Media Consumption and Publishing Using Web Services 265 Web Services 265 HTTP Requests 266 JSON 268 Pulling Flickr Images Using JSON 271 Location 277 Pulling Flickr Images Using JSON and Location 280 REST 287 Representing Data in XML 287 SAX Parsing 288 HTTP File Uploads 292 Making an HTTP Request 292 Uploading Video to Blip.TV 294 Summary 304 Index 305 ¦ A 305 B 306 ¦ 306 ¦ C 306 D 307 ¦ 307 F 308 ¦ 308 ¦ E 308 ¦ H 309 ¦ G 309 ¦ I 309 M 310 ¦ 310 ¦ J, K 310 ¦ L 310 ¦ N 312 ¦ O 312 ¦ P 312 ¦ S ¦ Q 313 ¦ R 313 ¦ T 315 U 315 ¦ 315 ¦ W 315 ¦V 315 ¦ X, Y, Z 316

Mobile devices haveevolved to focus onrich media production and consumption. Developers of mobile applications are able to create applications that allow people to play, capture, andshare media in a variety of new ways on mobile devices. The popularity of Android has soared in part because the platform offers developers a rich set of capabilities including access to media capturing and playback functions.

Pro Android Mediaprovides concise and clear instruction on how to utilize the media APIs made available through Android to create dynamic apps. It takes youfrom a simple means to gain access to the camera to complex video capture and sharing examples. It also covers sound, graphics, painting, and more—everything you need to make your app come "alive."

After reading this book, the app you create willshowcase the best of multimedia that Android has to offer.

What you’ll learn

  • Develop graphics, music, video and rich media apps for Android smartphones and tablets
  • Build touchscreen input features into Android apps that allow users to draw, paint,and do other creative forms of input
  • Turn the Android smartphone into a full fledged media player
  • Integrate and use location-based services and media-related web service APIs
Who this book is for

This book is aimed primarily at the growing market of Android developers. It is written in such a way that it may be used by those who are familiar with Android, but have no experience developing applications that deal with images, audio, or video.

Table of Contents

  1. Introduction to Android Imaging
  2. Building Custom Camera Applications
  3. Image Editing and Processing
  4. Graphics and Touch Events
  5. Introduction to Audio on Android
  6. Background and Networked Audio
  7. Audio Capture
  8. Audio Synthesis and Analysis
  9. Introduction to Video
  10. Advanced Video
  11. Video Capture
  12. Media Consumption and Publishing Using Web Services
Mobile devices have evolved to focus on rich media production and consumption. Developers of mobile applications are able to create applications that allow people to play, capture, and share media in a variety of new ways on mobile devices. The popularity of Android has soared in part because the platform offers developers a rich set of capabilities including access to media capturing and playback functions. Pro Android Media provides concise and clear instruction on how to utilize the media APIs made available through Android to create dynamic apps. It takes you from a simple means to gain access to the camera to complex video capture and sharing examples. It also covers sound, graphics, painting, and more - everything you need to make your app come "alive." After reading this book, the app you create will showcase the best of multimedia that Android has to offer. What you'll learn * Develop graphics, music, video and rich media apps for Android smartphones and tablets * Build touchscreen input features into Android apps that allow users to draw, paint, and do other creative forms of input * Turn the Android smartphone into a full fledged media player * Integrate and use location-based services and media-related web service APIs Who this book is for This book is aimed primarily at the growing market of Android developers. It is written in such a way that it may be used by those who are familiar with Android, but have no experience developing applications that deal with images, audio, or video. Table of Contents * Introduction to Android Imaging * Building Custom Camera Applications * Image Editing and Processing * Graphics and Touch Events * Introduction to Audio on Android * Background and Networked Audio * Audio Capture * Audio Synthesis and Analysis * Introduction to Video * Advanced Video * Video Capture * Media Consumption and Publishing Using Web Services
دانلود کتاب Pro Android media : developing graphics, music, video, and rich media apps for smartphones and tablets ; [utilize the Android media APIs to create dynamic mobile apps