View Single Post
  #1 (permalink)  
Old December 16th, 2008, 09:20 AM
mobilekid mobilekid is offline
Registered User
 
Join Date: Dec 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 8 example 4

Hi,

I have problems running the fourth example from chapter 8. Basically, I have created a new project from the provided source, however, upon running it throws out the following message:

12-16 13:16:58.102: ERROR/AndroidRuntime(15341): java.lang.SecurityException: Requires VIBRATE permission
12-16 13:17:58.580: ERROR/AndroidRuntime(15353): at android.os.Parcel.readException(Parcel.java:1234)
12-16 13:17:58.580: ERROR/AndroidRuntime(15353): at android.os.Parcel.readException(Parcel.java:1222)
12-16 13:17:58.580: ERROR/AndroidRuntime(15353): at android.app.INotificationManager$Stub$Proxy.enqueu eNotification(INotificationManager.java:152)
12-16 13:17:58.580: ERROR/AndroidRuntime(15353): at android.app.NotificationManager.notify(Notificatio nManager.java:96)
12-16 13:17:58.580: ERROR/AndroidRuntime(15353): at com.paad.earthquake.EarthquakeService.announceNewQ uake(EarthquakeService.java:167)
12-16 13:17:58.580: ERROR/AndroidRuntime(15353): at com.paad.earthquake.EarthquakeService.addNewQuake( EarthquakeService.java:124)
12-16 13:17:58.580: ERROR/AndroidRuntime(15353): at com.paad.earthquake.EarthquakeService.doRefreshEar thquakes(EarthquakeService.java:251)
12-16 13:17:58.580: ERROR/AndroidRuntime(15353): at com.paad.earthquake.EarthquakeService.access$0(Ear thquakeService.java:190)
12-16 13:17:58.580: ERROR/AndroidRuntime(15353): at com.paad.earthquake.EarthquakeService$1.run(Earthq uakeService.java:186)
12-16 13:17:58.580: ERROR/AndroidRuntime(15353): at java.lang.Thread.run(Thread.java:935)

Could you please suggest how to fix that? Thank you.

Last edited by mobilekid; December 16th, 2008 at 10:01 AM..
Reply With Quote