Wrox Programmer Forums
|
BOOK: Beginning Android Application Development
This is the forum to discuss the Wrox book Beginning Android Application Development by Wei-Meng Lee; ISBN: 978-1-1180-1711-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Android Application Development section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 13th, 2011, 08:24 PM
Registered User
 
Join Date: Nov 2011
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default Chapter 2 - Notifications - Error

Hi,

Keep getting an error on Chapter 2 - Notifications "Try It Out". It is a security exception that there is no permission for VIBRATE. However, I have added the line to the manifest to get permission:

<uses-permission android:name="android.permission.VIBRATE"/>

Is there something I'm missing?

The error comes up on virtual and a real phone.

Thanks!
 
Old November 15th, 2011, 02:09 PM
Authorized User
 
Join Date: Oct 2011
Posts: 10
Thanks: 1
Thanked 2 Times in 2 Posts
Default

This may not be helpful: Check where you have actually placed the permission. Is it inside the relevant < />?
The Following User Says Thank You to Tave For This Useful Post:
football (November 18th, 2011)
 
Old November 18th, 2011, 11:29 PM
Registered User
 
Join Date: Nov 2011
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Tave View Post
This may not be helpful: Check where you have actually placed the permission. Is it inside the relevant < />?
Hi Tave,

The placement of the permission in the file did seem to make the difference. When I moved the permission toward the top of the manifest, the program worked.

Thanks!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 2 Displaying notifications Tave BOOK: Beginning Android Application Development 1 October 26th, 2011 03:56 AM
Online Chat Notifications ASP.NET AmitGuptaIT ASP.NET 3.5 Basics 2 June 12th, 2009 07:59 AM
Windows Notifications from Icon in System Tray bmains General .NET 0 October 3rd, 2006 09:35 PM
Chapter-13-direct SQL command-ExecuteNonQuery erro lionking BOOK: Beginning ASP.NET 1.0 3 May 13th, 2004 10:42 PM
Chapter-13-direct SQL command-ExecuteNonQuery erro softdev BOOK: Beginning ASP.NET 1.0 6 February 22nd, 2004 07:55 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.