Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Mobile Development > BOOK: Beginning Android Application Development
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old October 13th, 2011, 08:36 PM
Registered User
Points: 13, Level: 1
Points: 13, Level: 1 Points: 13, Level: 1 Points: 13, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default ContactsContract.CommonDataKinds.Phone question

If the contacts list is empty and you try and set the i.setType(ContactsContract.CommonDataKinds.Phone.C ONTENT_TYPE) the statement will fail. Is there a way of capturing the exception and handling it more gracefully?
Reply With Quote
  #2 (permalink)  
Old October 21st, 2011, 08:59 AM
Registered User
Points: 38, Level: 1
Points: 38, Level: 1 Points: 38, Level: 1 Points: 38, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2011
Location: UK, Kidderminster
Posts: 12
Thanks: 0
Thanked 2 Times in 1 Post
Default

I have just run the example code from the Wrox site. My contact list is empty. When I click on the Choose Contact button I get a new screen with a "You don't have any contacts to display. To add contacts, press Menu and touch:...".

Are you sure your code is OK?

I am running the emulator as an Android 2.3.3 device.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
phone book nadia_poloei Java Basics 0 January 20th, 2010 04:46 AM
Phone Dialer using .net 2.0 priyan.viji Pro VB 6 1 August 9th, 2007 10:14 PM
pc to phone priyan.viji ASP.NET 1.x and 2.0 Application Design 0 August 4th, 2007 03:51 AM
Dialing a phone? seananderson Access 2 March 18th, 2007 04:02 AM
phone dialer itekcorp ASP.NET 1.x and 2.0 Application Design 2 January 2nd, 2004 02:27 PM



All times are GMT -4. The time now is 02:43 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.