androidadt

ADT import of android.media cannot be resolved


i try create my first android application for android 2.1 api level 7 in ADT. I wrote the following line to the default view and eclipse says, that android.media cannot be resolved:

import android.media;

how come, that this doesn't work?

thanks a lot


Solution

  • you cannot import android.media; because it is a package, try using:

    import android.media.*;
    

    or

    import android.media.MediaPlayer; // if you want to import MediaPlayer
    import android.media.Ringtone;    // if you want to import Ringtone