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 December 12th, 2011, 08:48 PM
Authorized User
 
Join Date: Nov 2011
Posts: 86
Thanks: 3
Thanked 5 Times in 5 Posts
Default CH 7: Provider setListadapter not found

Hi all
I have entered the code on page 240 and all is well until the last line.
this.setListAdapter(adapter);
I get the following error:
The method setListAdapter(SimpleCursorAdapter) is undefined for the type ProviderActivity
I have all the imports and can not figure out what is wrong.
Thanks for your Help
Cliff
__________________
"Software to the Stars"
Failure is not an option. It comes bundled with your Microsoft products.
 
Old December 13th, 2011, 08:26 PM
Authorized User
 
Join Date: Nov 2011
Posts: 86
Thanks: 3
Thanked 5 Times in 5 Posts
Thumbs up

Hi all
I found the problem. The code generated when I created the project said:
public class ProviderActivity extends Activity {
/** Called when the activity is first created. */

and what I needed was
public class ProviderActivity extends ListActivity {
/** Called when the activity is first created. */

Cliff
__________________
"Software to the Stars"
Failure is not an option. It comes bundled with your Microsoft products.
The Following User Says Thank You to Cliff2310 For This Useful Post:
barcapat (February 28th, 2012)





Similar Threads
Thread Thread Starter Forum Replies Last Post
CH 7: Provider setListadapter not found Cliff2310 BOOK: Beginning Android Application Development 0 December 12th, 2011 08:30 PM
Run-time Error '3706' Provider cannot be found Star007 VB How-To 1 August 10th, 2006 05:02 AM
Provider cannot be found Star007 Pro VB 6 0 April 6th, 2006 07:03 AM
Provider not found wwwdirzala Access 1 April 19th, 2004 02:05 PM
Cryptographic service provider (CSP) not found Pipo BOOK: ASP.NET Website Programming Problem-Design-Solution 2 April 15th, 2004 06:38 PM





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