adapter

android listviews: header and footer views

In my ListActivity, I need header and footer views (on the top and bottom of the list) to be used as previous page and next page buttons on my list, respectively, because I want to display only 20 items at a time. I set my header and foot views by doing: getListView().addHeaderView(myHeaderView); getListView().addFooterView(myFooterVie...

List items with alternating colors

I have a list view and an adapter that sets alternating background colors to the list items ("zebra" list style): public View getView(final int position, View convertView, ViewGroup parent) { int colorPos = position % colors.length; ... convertView.setBackgroundColor(colors[colorPos]); return convertView; } But now, wh...

No gem called "activerecord-sqlite3-ruby-adapter"

I am trying to set up active records on top of a sqlite3 database with native ruby 1.8. This should work easily enough, I have seen plenty of examples out there that explain how. I am using some example code I have found, its pretty basic and starts with the following lines: require 'rubygems' require 'active_record' #require 'sqlite3-r...

Network adapter disabled on VMWare Server Console 1.0.10 on XP

I have been running VMWare Server Console 1.0.10 for a while on my XP machine but a while ago I lost all communication between the host and the guests. The only reason I can see is that in Host->Virtual Network Settings, on the Host Virtual Adapters tab, both adapters (VMnet1 and VMnet8) are listed as Disabled. I can enable each one but ...

Join 2 classes - essentially

I've got a .NET Web Service Reference to a 3rd party WSDL. In that reference are 2 classes. Basically these 2 classes are most likely Interfaces on the 3rd Party API side but in .NET end up as 2 proxy classes. I have a need to combine both these classes into one class. Why? Because it's stupid that these are split, they're the servi...

Thread vs. Adapter for backgroud tasks - which one to prefer and why?

As a total noob to android programming I was advised to make use of adapters and handlers in order to update a textview periodically rather than thread/sleep. However, I wonder why! Any suggestions? ...

How do I implement an Excel (2007) host adapter for unit testing Excel Add-In in VS2008?

I have created an Excel 2007 Add-In and I would like to add a test project to test the code. I know I should do TDD but I did not know about TDD before hand :). I searched and found that I need to create a host adapter: Creating and Using Host Adapters. The samples from the SDK, however, are a "little" over my head. Has anyone already ...

IAdapterFactory for expensive adaptable?

In our RCP application we have views which require a C, and use an IAdapterFactory to get there from an A and B. The problem is that while A->C is fast, B->C is much slower (e.g., a database or file-system look-up) and should be done in a UI job. We thought about using a CProxy or LightweightC and asking the proxy or a service for the ...

Android: Filtering a SimpleCursorAdapter ListView

Right now, I'm running into issues trying to implement a FilterQueryProvider in my custom SimpleCursorAdapter, since I'm unsure of what to do in the FilterQueryProvider's runQuery function. In other words, since the query that comprises my ListView basically gets the rowID, name, and a third column from my databases's table, I want to b...

How can I access mainframe data with .Net applications and SQL Queries?

We have a large amount of data stored on an IBM mainframe using VSAM files. A lot of this data is dropped on the network every night in the form of text files to be processed and dumped into FoxPro and SQL Server databases. There are also many text files produced nightly by custom applications that get uploaded to the mainframe to keep e...

How to set selected item of Spinner by value, not by position?

I have a update view, where I need to preselect the value stored in database for a Spinner. I was having in mind something like this, but the Adapter has no indexOf method, so I am stuck . void setSpinner(String value) { int pos=getSpinnerField().getAdapter().indexOf(value); getSpinnerField().setSelection(pos); ...

How to invoke the getView method in the baseAdapter in Android from another WebService Bean?

The adapter in my code as follows, I extends the base adapter: @Override public View getView(final int position, View convertView, ViewGroup parent) { ViewHolder vHolder; // if (convertView == null) { vHolder = new ViewHolder(); convertView = mInflater.inflate(R.layout.home_item, null); vHolder.albumIcon = (ImageView) conver...

Problem with setting visibility in a Listview & BaseAdapter

Hi i'am working on an autogrowing listview. Everytime before i call mAdapter.notifyDataSetChanged(); i toggle the latest item on the list with a progress circle. /** * displays a progress banner instead of the last item. * @param reload boolean */ protected void showReloadView(boolean reload){ View ...

how to add item to Spinner's ArrayAdapter?

i had a EditText , a button and a spinner . When click the button , the spinner will add a new item with name you entered in the EditText. But here is the question, my adapter.add() method seems doesn't work...here is my code: public class Spr extends Activity { Button bt1; EditText et; ArrayAdapter<CharSequence> adapter; Spinner spinn...

Usage of Biztalk SAP Adapter without Biztalk Server to connect .NET and SAP

Is it possible to use the Biztalk adapter pack whithout a Biztalk installation (Biztalk license is available)? I want to use the Biztalk Adapter for SAP RFC calls within a .NET Application (as a replacement of the SAP Connector for .NET, which is unfortunately no longer maintened by SAP and I don't can use third party products like "Er...

drscheme c# adapter

Hi guys i need to integrate drscheme into my c# code for my assignment but i could find any luck on the web. Can anyone help me ? I tried ironscheme but got the following error. The type or namespace name 'Dynamic' does not exist in the namespace 'System' (are you missing an assembly reference?) C:\Documents and Settings\Administrato...

GridView row remove and animation - Android

I have a GridView in which each row has a custom view. The grid view adapter has an array that keeps the custom view. At click of a button, I want to remove a specific row from the Grid and while doing so I want animation on it. I have an AnimationListener. When I remove the upper most row from the array and setAdapter in onAnimationEn...

ArrayIndexOutOfBoundsException with custom Android Adapter for multiple views in ListView

I am attempting to create a custom Adapter for my ListView since each item in the list can have a different view (a link, toggle, or radio group), but when I try to run the Activity that uses the ListView I receive an error and the app stops. The application is targeted for the Android 1.6 platform. The code: public class MenuListAdap...

How do you interface with a USB to Parallel adapter?

I'm currently doing a project where I have to interact with a circuit I made through the parallel port of a computer. However, my computer doesn't have a parallel port so I borrowed a Parallel to USB adapter cable. The cable didn't come with any drivers, but it's recognized by the device manager as a "USB Printing Support" controller, un...

OracleDataAdapter returns no rows, but the query string works in SQLDeveloper [resolved]

visual studion 2008 oracle db 11.1.0.7 oracle client for .NET I have a relatively simple query, that selects the rows from across multiple tables (up to 4) using joins. OracleDataAdapter returns no rows for the only dataset's table, but if I copy and paste that query in SQLDeveloper then I get the desired results. I can get the data fro...