Friday, 22 March 2013

play back media player in android

Media player class can be used to control playback of audio/video files and streams.An example below is shows how to use  and play a video .
the following code will be useful:

How to create my own cotent provider in android

A content provider manages access to a central repository of data.A provider is a part of an Adnroid application,which often provides its own UI for working with the data.However,content providers are primarily intended to be used by other applications, which access the provider using a provider client object.Together,providers and provider clients offer a consistent,standard interfaceto data that also handles inter-process communication and securedata access.

This code describes the basics of the following:

  • How content providers work.
  • The API you use retrieve data from a content provider.
  • The API you use to insert,update,or delete data in a contentprovider.
  • other API features that facilitate working wiht providers.
  • The following code is useful to create content provider