adapter

Confused on TDD wrappers/adapters

Hi, I'm new to the TDD scene and trying to isolate my tests is having me go around in circles. I have an app I am trying to write that uses OpenXML so it has a mass of objects that it depends on to work from an external framework. I thought it would be a good idea to have wrappers around these objects so I was isolated from them in ca...

Android ExpandableListView does not work (Black/Empty Screen)

Hi @ll, i try to build a ExpandableListView with a own ExpandableListAdapter but the ExpandableListView is not visible in my activity :-( Below you find my Source-Code. Thanks for your help :-) Greetings, Kangee Here the Code from the activity: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceS...

android expandableListView - add items to a specific group at run time

Hi all , i met a problem , i have a expandableListView has 5 groups if i wanna add some items to the second group , and update the expandableListView at run time, could someone teach me how to do that? ...

What are Containers/Adapters? C++

What are containers/adapters? Someone please explain in layman's language. I have tried to look up on the internet but the definitions and explanations are too technical and hard to understand. I have basic knowledge of C++ and its sub-topics like (class/templates/STL). EDIT 1: Can anyone please give me a practical example of the ap...

Calling notifyDataSetChanged() throws exception

I have a ListView that I'm binding to an adapter. The adapter is a protected member of my main class. I have a listener thread that receives data and updates the source list for my adapter. When I call the adapter's notifyDataSetChanged() method, an exception is thrown: Runtime Exception: PhoneLayoutInflater(LayoutInflater).inflate(i...

Scrolling ListView like in TweetDeck

Hi, I was wondering if anyone knows how the scrolling in TweetDeck can be done. In particular how they did it so that the last item can be scrolled up to the top of the listview. I think this is kinda awesome and would like to use such a behavior in my app too. ...

Android: How to work with Checked ListViews?

Hi, I wish to work with checked list views wherein only one item can be selected at a time. Some queries related to this: 1) Is it advised to work with CheckedTextView as the ListView items, or a combination of CheckBox and TextView? 2) If using CheckedTextView, the text comes first and the checkbox appears on right edge. Is it possib...

extract interface and adaptor from 3rd party libraries

I'm looking for a tool for .NET libraries that: given: a 3rd party library with only concrete implementations of classes produces: extracts an interface from the 3rd party library and creates an adapter to the concrete implementation I have some pretty big 3rd party tools... doing it by hand looks like a pain. I'm hoping to be able t...

notifydatasetchanged not working in android 2.2 but works in 1.6 fine (and I believe 2.1)

This is a clearer and more precise definition (with test code) of the problem originally detailed here http://stackoverflow.com/questions/3814392/app-working-under-2-1-android-now-hangs-on-2-2-both-in-emulator-and-desire. I have narrowed the cause of the problem down to a call to notifyDataSetChanged(). The code works fine in versions p...

TNetSharingManager access violation problem

I'm trying to compile this project in Delphi 2010, which uses TNetSharingManager. I have imported the type library and tried compiling it, but unfortunately I'm getting an Access Violation in this function: function TNetSharingManager.GetDefaultInterface: INetSharingManager; begin if FIntf = nil then Connect; Assert(FIntf nil,...

adapters notifyDataSetChanged does not work

EDIT 2: I did solve my problem, but i don't know how:S I was moving my code snippets a bit around, a suddenly it worked. Must have done something in the wrong order, but its weird, checked it many times. Thanks for you help, and sorry I can't post an answer ;) Hi. I have a list view which I'm trying to refresh to update it self when i...

getItemAtPosition() not returning value in listview

I have created a custom Base Adapter class, to populate a list view with image and text. The code of class is as below : public class ViewAdapter extends BaseAdapter { private Activity activity; private String[] data; private static LayoutInflater inflater=null; public ImageLoader imageLoader; private ArrayList<String> items; public ...

virtual network adapter - accessible from lan

Hello all, I would like to install a virtual NIC (like the Microsoft Loopback Adapter) which is accessible from the lan. Very similar in concept to what vmware player does (in the sense that its virtualised network adapter looks like it's physically plugged into the lan). Thankyou, Fidel p.s. I know it's possible to bind multiple IP ...

ArrayAdapter of a dynamic size in Android

I need a gallery to be able to hold up to thirty custom views. These views need to added or removed whenever, they also need to be able to be display in a display bow beneath the gallery. How do I do this? I looked at the doc file for arrayadapter but it requires me to use a reference Id for each view I add, but each view is all java cod...

Crazy SQLite and cursor leak on AutoComplete

In my activity, I have an AutoCompleteTextView that gets its contents from my custom adapter. I created my adapter by following this example. The adapter works so far, but I am getting so many errors on leaks and cursors that are not finalized. My question is: how do I close the db in runQueryOnBackgroundThread? Here is my method: @...

Rails 3: DataMapper instead of ActiveRecord

After all the hussle about Rails 3, can I, after all, painlessly use DataMapper without almost changing my ActiveRecord code so that I could run my Rails at GAE without any bother? ...

Using the system sync notification in android 2.1

Hi all, I have an application which using a sync adapter and one of the requirements is to have a notification in the status bar. I added a notification but the problem is that there is also a system icon which is displayed but only part of the time during the sync operation. I would like to use one (just one) of the icons. Does anyo...

Android table with columns with text and color elements

Hi, I want to create a table layout in android. It should look a bit like the calendar on my HTC Desire with HTC Sense. What I want is a 4 rows: 1: Small area with a specific color (color read from database, dynamic) 2: Text 3: Text 4: text I have successfully created some tables out of a list view, by creating a list_item.xml where ...

Android Custom ListView selected item children?

I have a custom listview row that contains a number of textView components. Instead of the "standard" single text item, I have created a item where each listview row contains several bits of information. For this example, I have a record id, a name, and a description for each row in the listview. I have my listview populated via thi...

Problem with Hello, Views: List View tutorial

I've just started Android development with Eclipse, so I've been going through all the "Hello" tutorials on the Android Developers site. I have come unstuck, however, on the List View tutorial. I have tried many times to correct the problems, but I am inexperienced and whatever I do doesn't seem to work. I have copied and pasted the code...