Declare Artist, Song and Album activity in manifest file. I think this example you are trying is from developer.android.com and there, they have not specified to include these activities in manifest file. Include them and your code should execute without any exceptions.