| Author |
unable to create the service ,it gives null pointer exception
|
sameera liyanage
Ranch Hand
Joined: Nov 25, 2008
Posts: 691
|
|
here is my main class
here is service class
here is manifest.xml file
here is exception in logcat
|
 |
andrew chou
Greenhorn
Joined: Dec 06, 2011
Posts: 1
|
|
guess u'r testing it on Virtual Machine.
add the following part to the onCreate of your Service,you'll understand:
if(player == null) System.out.println(" MediaPlayer not surported here ");
Good luck!
|
 |
 |
|
|
subject: unable to create the service ,it gives null pointer exception
|
|
|