adapter

zend newbie question - "No adapter found for "

Working through a zend tutorial & get this message, & not sure where to look. thanks, An error occurred Application error Exception information: Message: No adapter found for Model_DbTable_Books Stack trace: #0 C:\xampp\php\PEAR\Zend\Db\Table\Abstract.php(739): Zend_Db_Table_Abstract->_setupDatabaseAdapter() #1 C:\xampp\php\PEAR\Zend...

Updating images dynamically from URL with Android

So I have this program that grabs the RSS feed at http://www.muttville.org/mutts/feed and displays a list of the available dogs, basically filling out each item in a ListView with an image of the dog on the left, and the headline about the dog on the right. My application executes and grabs and parses the XML feed fine. onCreate, it sto...

GetView Vs. BindView in a custom CursorAdapter?

So, I'm watching this video http://www.youtube.com/watch?v=N6YdwzAvwOA and Romain Guy is showing how to make more efficient UI adapter code using the getView() method. Does this apply to CursorAdapters as well? I'm currently using bindView() and newView() for my custom cursor adapters. Should I be using getView instead? ...

Custom list cursor adaptor crashes at bindView on emulator -- not on phone

Hi all I will try to be specific if I can - please be patient, first time asker and relatively new to programming on this platform. Apologies if this has been asked/answered before - please link it to me. I have searched up and down but find other unrelated (to me at least) problems. The real puzzler for me is that my app is crashing on...

Is this really an example of the adapter pattern?

I have an interface -- "EventHandler" -- that declares several methods. public interface EventHandler { void handleEvent1(); void handleEvent2(); void handleEvent3(); void handleEvent4(); } I also have a class -- "EventHandlerAdapter" -- that implements EventHandler. However, it doesn't actually "implement" anything...

Android ListView ArrayAdapter data updates Best Practices.

Hi, I have an activity with multiple list views that are continuously receiving new values form a socket thread, another thread parses the data and updates the array adapters, then the ui thread calls notifyDataSetChanged() to cause the list to refresh. My issue is that im refreshing all the list a couple of time a second, this causes t...

Dynamic ArrayAdapter and listview Updating issues.

Hi, I am using several listview's in my application that receive many notifications each second on a thread. when this happens i update data in the array adapter and then call notifiyDataSetChanged() on the UI thread. However this causes getView to be called on the adapter on all the visible postions. this is causes various issues for m...

Android Listview, cursor adapter with custom multiple select

I'm building a list of contacts, where the user can select more than one one contact. Currently the android layouts only provide a multiple select with a single textview and a checkbox, what I want to do is have the name and number and a checkbox (two textviews and a checkbox). When I implement this with a custom layout, and when the use...

Android Techniques for Mock Data Source in Activity Unit testing

I'm fairy new to unit testing and I've been learning how to use the jUnit framework for android(using ActivityInstrumentationTestCase2) but I'm having trouble working out how to I inject a mock data source into and activity, example: in the activiy I have this public void onCreate(Bundle savedInstanceState) { super.onCreate(sav...

Android Beginner: Adapter for simple view or direct DB query?

First off I'm really new to android (< 4 days). I'm trying to wrap my head around how database data is linked to Views and widgets. I've done a few tutorials and I've noticed that Adapters are used to link AdapterViews which are (as I understand it) Views which contain a bunch of identical subviews (eg lists, gallery, etc). So the A...

How to add a different type of item in the ListView using SimpleAdapter?

I want to add a different type of item (like a simple textview) to the last position in my ListView. I extends the SimpleAdapter and override some methods: @Override public int getCount() { if (super.getCount() == 0) { return 0; } else { return super.getCount() + 1; } } @Override public Object getItem(int p...

What's the role of adapters in Android?

I have recently started working on Android. I want to know when and where adapters are used and how they are used. I didn't get much information from androids developer documentation. ...

Android ListView is not expanding as intended

My scenario is like this: <ScrollView android:layout_width="fill_parent" android:layout_height="fill_parent" android:scrollbars="vertical" android:background="#ffffeb"> <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent...

Manual call to onListItemCLick

I am using a ListView with a SimpleAdapter. Once data is populated into it I would like to set the first item in the list. This can be done by clicking on the list item on the screen. I want to just call the method directly after I populate the list so that when you see the UI its already done. My only problem is getting the View fro...

Best practices of working with multiple sqlite DB tables in Android

Hi guys, in my android app I use a DB with multiple tables, I have an XML parser which needs to write data to 2 tables while parsing. I created 2 DBadapters for 2 tables, but now I have a problem. When working with one table it's easy, I can do: FirstDBAdapter firstTable = new FirstDBAdapter(mycontext); firstTable.open(); // open and ...

CURLOPT_FOLLOWLOCATION equivalent for socket adapter in Zend_Http_client

I would like to use the socket adapter instead of Curl for my code but however this the problem i am facing. (case 1 :) I am querying a server for response using Zend_http_client (default socket adapter) and I am getting a 404 error, (case 2 :) while, for the same server as above, I am getting a response back when using CURL adapter wi...

numpy array <=> python DB-API adapter?

Dear All, Anyone knows is there any other adapter between numpy array and sqlite database besides the atpy? Thanks! Rgs, KC ...

Creating a "Mobile Adapter" for Visual Web parts in Sharepoint 2010

Hi, I've followed this guide on how to create mobile web parts in Sharepoint 2010, but no content is listed when I access the page with a mobile device, or use the "/m"-url. Are there any other sources on how to create a mobile adapter for visual web parts for Sharepoint 2010? My adapter-class looks like this: using System; using Syst...

FTP adapter from orchestrations in BizTalk 2009

Hello. I have an orchestration that receives an xml file with a ftp url. I want to send the url, username and password to the FTP adapter and retrieve the file. Is this possible from within an orchestration, or is the FTP adapter simply built for polling from a predefined server url? Regards ...

Clear listview content?

I have a little problem with listview. How do i clear a listview content, knowing that it has a custom adapter? edit : the custom adapter class extends BaseAdapter, it looks like this : import android.app.Activity; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGrou...