cursor

Android Media database direct access from code

Can I access android MediaProvider (Images & Videos) databases directly from my code rather then through a content provider ? I'm planning to have my own Cursor implementation so inside it I want to access the media databases directly, possible or android does not allow it ? ...

Finding name of Android contact from number

In my app, I get the name of the person calling from the contacts database and read it out. A user contacted me about a number in the format 123-456-7890 which doesn't work. I've tested this myself and can't see why it wouldn't work. The full code I'm using is available here, but the relevant part is below: Cursor c = getContentResolve...

Need a the last records of a day, from a range of days.

Ok heres the problem, I have 5 different tables created by god knows who each with different data, an dI need to merge them in a single table. My first problem is that each day have a time stamp but I only need the last records add each day, so how can I search each day for the last records and save them on a new table, most of this tab...

How can I hide Cursor in Windows? (delphi)

I want my program to work sort of like Team Player. Multi mice, multi cursor but only one focus. But the problem is I can't hide the default cursor. I only want it to be invisible. So far this works inside my application only. ShowCursor(false); and Screen.Cursor:=crNone; Is there a way to hide the cursor for the entire system (jus...

Inserting text at cursor in a textarea, with Javascript

I've had a look round the web for solutions, and there are some, but they all seem to split code into supporting IE and Firefox. I was wondering if there's a more elegant way which would work on every browser, to insert some text at the cursor in a textarea. Thanks very much, Rich ...

How to only show specific elements in a CursorAdapter

I have a custom CursorAdapter that is taking items from a database and displaying them in a listview. If possible, I would like to display only certain elements based on some boolean value within a database element. Here is something similar to what I would like to do: package itp.uts.program; import android.content.Context; import and...

SQLite on Android: Union with limits alternative

I want to create a Cursor, which later I will pass via CursorAdapter to AutoCompleteTextView for autocompletion suggestions. The problem is that my SQL statement needs to select 2 different result sets from the same table, just sorted by different criteria. At the same time these result sets must not overlap - otherwise I would have mult...

Can I retrieve a value from a previous line using CURSORs of SQL?

I'm developing a query, where I need that a certain field of my current line be the result of "the field of my current line" + "the same field of the previous line". (SQL Server 2008) How can I do it by using cursors? ...

I would like to insert token at the insertion point of the cursor, not the end of the array

I have a button that adds a token to a NSTokenField. It adds the token always to the end of the field: NSTokenField *currentField = [sender representedObject]; // Determine which token should be inserted into the field using the tag of the sender. switch( [sender tag] ) { case eFileNameToken_StartDate: ...

Javascript: Hide Mouse Cursor When Idle

In a webpage is it possible use JavaScript to set the cursor:none; CSS attribute if the mouse is inactive for a certain amount of time (say, five seconds) and set it back to cursor:auto; when it again becomes active? Thanks for your help. ...

Need cursor at beginning of text in textarea

I have this in my body and it works onLoad='document.forms.post.message.focus()' but I need the cursor to be placed in the textarea at the beginning of any existing text, not at the end. This puts it at the end. Note that I know nothing about JavaScript, so be gentle. Thanks ...

Oracle - Understanding the 'Using' Keyword...?

I'm trying to open a REF CURSOR using a select statement like.... OPEN myREF FOR SELECT * FROM MYTABLE WHERE MYID IN (:Values) USING myPassedInValList; But this only work when myPassedInValList has only a single ID in it. I'm trying to use a list like '1','2','5', etc... Can someone tell me why this doesn't work. I tried to Google...

Android: Sorting a merged cursor

Hi, I'm wondering if there's any way to merge two cursors together and then resort them. I can easily merge two cursors together by using a MergedCursor, but that doesn't sort them. I have two sets of contacts in two separate cursors (with totally different schemas) and I want to merge them and sort them by name (the name column is di...

OnListItemClick is never called?

I don't think this problem is caused from my ListActivity subclass. I think it has something to do with with my BaseAdapter subclass: package com.mohit.gtodo; import com.mohit.gtodo.database.TasksDBAdapter; import android.content.Context; import android.database.Cursor; import android.view.LayoutInflater; import android.view.View; imp...

Jquery - Follow the cursor with a DIV

Hey, how can i follow the cursor with a DIV (with jquery)? kind reagards Peter ...

Get cursor to all phone calls, sms, contacts, and mail in Android?

Is there a way to retrieve a cursor to all phone calls, SMS, and email sent in android? To be used to gather the calls, sms, and email sent by a specific person. Also a cursor to all the contacts in the local phone. ...

Check cursor is over element

Hello, how can I check whether the cursor is over some div at the html page with JQuery/Javascript? I'm trying to get cursor coordinates and look if they are in the rectangle of my element. Maybe there are predefined methods? UPD, don't say anything about hover events, etc. I need some method which will return true/false for some eleme...

Dummy AJAX calls to force a "wait" cursor. Bad idea?

I would like the user's cursor to be in "wait-state" during certain actions, but the problems with using the CSS cursor property is forcing me to search for more... creative solutions. (The problem I'm referring to, is that the cursor doesn't change until the user moves the cursor. See, for example: http://stackoverflow.com/questions/175...

Need help with ncurses cursor and threads

I am using ncurses to write a text-based client in C. The main loop of the program simply blocks until a keypress is detected and then handles it and continues to wait for another keypress. I have a single thread I launch (posted below) that blocks (using select) waiting for input from the server and when it receives it adds it to the c...

Get all IDs of items in a ListView

How can I get all IDs of items in a ListView with a Cursor adapter? ...