aspose file tools*
The moose likes Android and the fly likes unable to create the service ,it gives null pointer exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "unable to create the service ,it gives null pointer exception" Watch "unable to create the service ,it gives null pointer exception" New topic
Author

unable to create the service ,it gives null pointer exception

sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1032
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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: unable to create the service ,it gives null pointer exception
 
Similar Threads
getting null pointer
contacts doesn't display
is there any way to trigger onLocationChanged other than moving
How to find out programatically that file is already exist or not?
Uncaught handler: thread main exiting due to uncaught exception