cursor

The constructor SimpleCursorAdapter(MyProgram, int, Cursor, int) is undefined

Keep getting "The constructor SimpleCursorAdapter(MyProgram, int, Cursor, int) is undefined" and am not sure why. Here is my code. Cursor c = mDbHelper.getAllTypes(); startManagingCursor(c); SimpleCursorAdapter notes = new SimpleCursorAdapter(this, R.layout.list_item1, c, R.id.text1); setListAdapter(notes); Any ideas? ...

Dealing w/ Sqlite Join results in a cursor

I have a one-many relationship in my local Sqlite db. Pretty basic stuff. When I do my left outer join I get back results that look like this: the resulting cursor has multiple rows that look like this: A1.id | A1.column1 | A1.column2 | B1.a_id_fk | B1.column1 | B1.column2 A1.id | A1.column1 | A1.column2 | B2.a_id_fk | B2.column1 | B...

Where to find good Windows-compatible mouse cursor images?

I"d like to find some good, basic mouse cursor graphics (like the pointing finger used when mousing over a hyperlink). Any suggestions of some good sources for that? ...

FLASH/AS3: Figure that follows the cursor yet constrained to an irregular area

How can I make in Actionscript 3 in Flash a MovieClip that follow the cursor, but is constrained to the irregular shape of another MovieClip? Edit: this is somewhat what I need: stage.addEventListener(MouseEvent.MOUSE_MOVE,follow); function follow(evt:MouseEvent){ if(container.hitTestPoint(mouseX, mouseY, true)) { cursor.x = ...

Show underlying applications mouse cursor when hovering over visible section of my application.

I am writing a WPF application that allows the user to draw over the entire screen when the right mouse button is held down. I use a full screen transparent overlay form to achieve this, however, as I draw lines with the mouse, what's happening is that the portion of my window that contains the line is becoming visible (as expected). The...

Change mouse cursor while left mouse button is pressed?

Hello, I need to change the mouse cursor while the left mouse button is pressed. Unfortunately changes to the mouse cursor are ignored until the left mouse button is released. Is there any workaround to this? Thanks for any hint! (I'm using WPF and C#) EDIT: Sample Project: http://cid-0432ee4cfe9c26a0.skydrive.live.com/self.aspx/%c3%...

How to know the alive time for a explicit cursor?

Hi All, After how much time oracle itself closes an explicitly defined cursor? ...

Why does my TextBox with custom control template not have a visible text cursor?

I have a custom control template which is set via the style property on a TextBox. The visual poperties are set correctly, even typing to the textbox works, but there is no insertion cursor (the | symbol) visible which makes editing challenging for our users. How does the control template need changing to get the traditional TextBox beh...

Lifetime of a cursor in Oracle

If I open a cursor and forget to close it, for how long will the cursor exist in Oracle? Are there some settings to configure the lifetime of the cursor? ...

StaleDataException: access closed cursor

In my application, after enough clicking around, I get this error: 06-08 19:47:59.967: ERROR/AndroidRuntime(2429): java.lang.RuntimeException: Unable to pause activity {com.MYAPP.app/com.MYAPP.app.MainActivity}: android.database.StaleDataException: Access closed cursor What I have is a Tab Activity (my MainActivity), which has a ListA...

Android Proxy Cursor

I have a database with which I wish to expose data with a ContentProvider. However, it is important that all the colums are not exposed, and also they should be renamed. Is there any good way of doing this? I was thinking maybe some kind of proxy-cursor which takes a cursor and translates its columns to the desired ones, and calls to clo...

Avoid hourglass mouse cursor when calling a web-service?

I don't know if this is a general web-services issue or just my specific scenario, which is a WPF application with a DispatcherTimer calling a web-service method. Whenever the timer is called, the mouse cursor automatically changes to an hourglass cursor. The processing of the call is very short and happens every 3 seconds, so the user ...

Change Cursor for Netbeans on Linux

Hi, I am recently have been successfully installed NetBean 6.8 on Ubuntu Box (10.04). But the problem is, NetBeans doesn't use the Gnome mouse Cursor by default. instead, It uses some freak mouse cursor that I hate! So, do you have any idea about how to change the cursor that appears inside netbeans.(I have looked inside tools> options...

Android list all images available

hi friends, I m making an application which requires me to list all the images available on the SD-Card of the phone. i tried querying the ContentResolver way i.e. Cursor image = getContentResolver().query(Images.Media.EXTERNAL_CONTENT_URI, new String[]{Images.Media._ID,Images.Media.DATA,Images.Media.DISPLAY_NAME}, null, null, null);...

Which is faster in SQL, While loop, Recursive Stored proc, or Cursor?

Which is faster in SQL, While loop, Recursive Stored proc, or Cursor? I want to optimize the performance in a couple of spots in a stored procedure. The code I'm optimizing formats some strings for output to a file. ...

using SimpleCusorAdapter to populate a ListView for android

Hi all, I'm trying to get multiple pieces of data from an SQLite database into a ListView but it doesn't seem to be working. I'm using the code from developer.android.com's Notepad example and it works fine for 1 piece of data but not 2. I'm trying to get the title and body of each database entry from the database, through a cursor an...

Getting data from the next row in Oracle cursor

Hi, I'm building nested tree and I need to get data for the next row in cursor, using Oracle. And I still need current row, so looping forward is not a solution. Example: OPEN emp_cv FOR sql_stmt; LOOP FETCH emp_cv INTO v_rcod,v_rname,v_level; EXIT WHEN emp_cv%NOTFOUND; /*here lies the code for getting v_next_level*/ if...

How to get the start and end points of selection in text area?

i want to get the cursor start and end position of a selected range in a text-field or text-area. i tried lot of functions in various forums. but when the last character of the selection is a new line character JavaScript ignore it in IE6. any one having idea ? ...

create temporary table from cursor

Is there any way, in PostgreSQL accessed from Python using SQLObject, to create a temporary table from the results of a cursor? Previously, I had a query, and I created the temporary table directly from the query. I then had many other queries interacting w/ that temporary table. Now I have much more data, so I want to only process 10...

Finalizing a Cursor that has not been deactivated or closed non-fatal error

Hello all, i'm getting a "Finalizing a Cursor that has not been deactivated or closed" error on this piece of code. The code is used to fill a listview. Since it's a non-fatal error , there is no crash and all seems to works fine..but i don't like the error. If i close the cursor at the end of this code..the listview stay's emp...