detecting new media

All your problems with Audio, Video and Images.

detecting new media

Postby hellscarz » Wed May 06, 2009 4:20 pm

Hello,
I want to detect when a new media is taken.
I use a broadcast receiver like this
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.                 IntentFilter filter = new IntentFilter(TAKE_NEW_PICTURE);//            
  2.  
  3.                 try {
  4.  
  5.                         filter.addDataType("image/*");//                       
  6.  
  7.                 } catch (MalformedMimeTypeException e) {                       
  8.  
  9.                         e.printStackTrace();
  10.  
  11.         }
  12.  
  13. myReceiver = new MediaReceiver();
  14.  
  15. registerReceiver(myReceiver, filter);
  16.  
  17.  
Parsed in 0.032 seconds, using GeSHi 1.0.8.4

to detect new picture but I do not know how I can detect new video or sound because I have not found filter to detect these kind of media.
Thanks for your help.
hellscarz
Freshman
Freshman
 
Posts: 4
Joined: Thu Mar 26, 2009 5:52 pm

Top

Postby hellscarz » Mon May 11, 2009 3:40 pm

Up
Someone has an idea?
hellscarz
Freshman
Freshman
 
Posts: 4
Joined: Thu Mar 26, 2009 5:52 pm

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: Exabot [Bot] and 12 guests