Motorola Droid X :: Get Cursor Where You Want It
Jul 18, 2010I discovered by accident that if you tap and then tap and hold on the screen it brings up a zoom box of where the cursor is and you can slide it where you want it.
View 1 RepliesI discovered by accident that if you tap and then tap and hold on the screen it brings up a zoom box of where the cursor is and you can slide it where you want it.
View 1 RepliesIs there a way to increase the size of the cursor or bold it or flag it or something? On some apps I have difficulty finding the cursor while editing and it's a royal pita.
View 1 Replies View RelatedIs there a replacement keyboard that has a way to position the cursor without sliding out the useless physical keyboard? I despise the keyboard and would never slide it out if there were another way to move the cursor around.
I wish I liked the Incredible, but I don't. I would pay retail for a Droid without the keyboard and with the cursor function of the Incredible.
I use the hardware keyboard exclusively, but am wanting to use the software keyboard more, figuring that my next phone may only have that. My real problem is figuring out how to move the cursor around in the text. If I want to go back and edit using the hardware keyboard, I just use the d-pad to move back to the spot I need. How do I do that with the software keyboard? Am I forced to tap the screen (which never chooses where I want it, and I have to key pecking at it to get it in the right place)?
View 14 Replies View RelatedLet me explain :
Let's say I was typing for a bit and I noticed that I mis typed something. If I want to put my cursor where the mis typed letter is, it is not always the easiest thing to do. I noticed on my friends iphone if he were to put the cursor near the letter and hold his finger there a zoomed in window would pop up and alow him to move the cursor to the location he wants to put it.
Is there any app that can do this on the droid?
The structure of some of my activities is a simple ListView with a custom CursorAdapter. The cursor is created in onCreate() on the activity from a SQLite database. The problem is that querying the SQLite database can be quite slow at times with lots of data (and let's assume I've already optimized the sql query as much as possible). Because it occurs in onCreate() on the UI thread, I get ugly black screens when opening the activity, which sometimes turn into ANRs, on a slow phone like the G1. I want to load the cursor in a background and show "Loading.." on screen while doing so. I saw AsyncQueryHandler used extensively in the framework, but this seems a solution geared more towards Content Providers and not application-local SQLite databases. I then thought of trying to load the cursor in a background thread, but realize that this might be problematic, as the CursorAdapter should be instantiated in onCreate() and should take a cursor as a parameter. The latest thought I had was to instantiate an empty MatrixCursor in onCreate() and pass that to the cursor adapter, while kicking off a thread/TimerTask to query the database. Then, on database cursor load, call cursorAdapter.change Cursor to the properly filled cursor. This doesn't seem very elegant and seems quite wasteful, however.
View 10 Replies View RelatedI get records from the system by quering a ContentResolver. I maintain the order of the items in the database. So I want to display the items in the order taken from my database.
How do I merge these two informations?
I am looking after an alternative way now. As what I ideally want is:
Get order of contacts by a custom order held in my database (this involves joining CR with my DB cursor, and doing an order by, later seams it's not possible with CursorJoiner) but there is more, if the join is not unique I want to sort by contact's name as last measure
Which is impossible using Cursor and Joiners, because of the missing feature of order bys, also I need to return a Cursor, as I will be using the in an ExpandableList
Also this translated to TSQL it would look like
select * from contactsdata
left join category on contactsdata.catid=category.id
order by category.pos asc, contact.display_name asc
So I am looking now after an alternative. I have in mind to load in a temporary DB table all data from CR, then do the query on the temporary table where I can join tables and do order bys? How does this sound to you?
is there a app to get a cursor (like on a computer or winmo)?
View 8 Replies View RelatedI have an android list activity that is backed by a database cursor through a SimpleCursorAdapter.
i have one constraint that need to be modify the cursor data. i cannot add the constraint in query.
How should I be update cursor ?
I have different views on my activity. I wanna change my cursor style when cursor is move to any view. How to do same in android.For example there is a normal cursor on the android activity when cursor moves to a button i wanna change cursor style normal to finger style.
View 1 Replies View RelatedmyInput.setText(myInput.getText().replace(myInput.getSelectionStart(), myInput.getSelectionEnd(), myText));
myInput.setSelection(myInput.getSelectionStart() + myText.length(), myInput.getSelectionEnd() + myText.length())
I ask because I think this code is much longer than it needs to be - Is there something shorter like myInput.insertTextAtCursor(myText) or is this the way everyone does it?
How can I create a list Array (the list display First Alphabet when scroll) with the cursor data?
View 1 Replies View RelatedI have been reading a lot on this issue since my 3 week old Eris has started moving the home screens and cursors to the far left but only when charging. Is there a fix to this I can do myself? I know if I go to Verizon (corp store) they will offer to replace it with a FRU model (refurb) and I will not have that since this phone is brand new. Since being a Verizon customer for 4 years I have had FRU replacements all resulting in a replacement phone that has even more issue's than the one it replaced which then resulted in a multi model FRU to a new phone (Samsung Gleam (2 replacements) to a new Env2 (3 Env's) then to an new LG voyager that lasted 2 years.What worries me is that Verizon has dropped the Eris and if I cant get a new Eris replacement I know they are going to throw the cinder block sized Moto Droid at me.
View 7 Replies View RelatedI cant find a way to save the checkbox state when using a Cursor adapter. Everything else works fine but if i click on a checkbox it is repeated when it is recycled. Ive seen examples using array adapters but because of my lack of experience im finding it hard to translate it into using a cursor adapter. Could someone give me an example of how to go about it.code...
View 3 Replies View RelatedI am seeing the exception in 'adb logcat'.But I don't know if it is caused by my application or android platform.Can you please give me any idea how to troubleshoot this exception?
View 3 Replies View RelatedWhen my phone is plugged in my cursor jumps to the left making it impossible to type or access applications that are not on the menu screen all the way to the left. It also navigates itself away from web pages and I think the constant left motion of the cursor makes the phone run slowly. I cant look at maps either.
View 2 Replies View RelatedFor some reason today when i go on a website ex. google (applies to other sites as well) i'm not able to click the search button. Also when I text, the cursor dissapears and i cant bring it back until i click out of the message application and come back to it.
View 1 Replies View RelatedHow do I get the row ID from a Cursor?
View 2 Replies View Relatedwhen u touch on screen in a text field, is there a way to move the cursor? or you just have to keep touching each point in the word to get to the point u want to change a letter at?
View 2 Replies View RelatedI've got this piece of code where I count words in a dictionary and then I try to query them:
CODE:.............
The SELECT_BY_LENGTH is defined this way: private static final String SELECT_BY_LENGTH = "select word._id, word.word from word where length(word.word) between ? and ? ";
And the count works perfectly but the cursor.move(1) always returns false. I've tried to get the column count and responds with the correct count and the column names map too. I mean that the method getColumnIndex works too but I can't get any data from the cursor. All such methods fail. Am I doin' something wrong? I'm using android 1.5.
I call ContentResolver's query method to get a Cursor, and I would like to update the title of that row to 'new title' how to do it?
CODE:...................
How do get the row ID from a Cursor?
View 5 Replies View RelatedI have a Cursor points to a Contact. How can I get an url built from that Cursor?
I need to know that because from here: http://developer.android.com/guide/topics/providers/content-providers.html
I need to have an url so that I can build a phone uri, like this: phoneUri = Uri.withAppendedPath(uri, People.Phones.CONTENT_DIRECTORY);
and I can query all the phone numbers for that contact.
I have two tables I want to (inner) join, Contacts.People and Contacts.ContactMethods. The result will be displayed in a ListActivity. After looking into this, it appears that I should use CursorJoiner. So the code would look something like this: So my question is, how to I make a new cursor from the first two?
View 2 Replies View RelatedI have a query that is making use of GROUP BY so that the results are grouped by a date column. My question is this:
When I move through the cursor to get the results of the query, how can I get the multiple items associated with each group into my vector? For example, I want to get BOTH "Item X" and "Item Y" for October 16, 2010. Currently, I get them each separately.
Here is my code:
CODE:..........
So, when I get the results from my Vector, I will get:
October 12, 2010
- Item X
October 12, 2010
- Item Y
And I want:
October 12, 2010 - Item X, Item Y
Yes, I do have to change my Vector to support multiple items, but hopefully you get what issue I'm facing...
I have problems with Cursor in my Android application.
I have a SQLiteDatabase that return me Cursor when I try to fetch the values with :
code:.......
But I don't know how to obtain the value of the field in the Cursor.
If I do that :
code:........
I obtain the name of the columns (_id, title, body) but not the value.
I want to make a content provider for font file. But I can not find any way to return a Typeface from Cursor. According to SDK reference, Matrix Cursor sounds like a solution, but it doesn't support any object except String,Long,Double,Short,Flow.
View 4 Replies View RelatedIf I pass a cursor to a simplecursoradapter, do I still need to close the cursor? if so when: after I pass it to the adapter or when the adapter is finished?
View 2 Replies View RelatedI noticed the 4 big cursor keys on the side (landscape) and bottom (portrait) of the HTC Sense keyboard on the EVO. After playing with the HD2 that has the same layout, I prefer not having them there. It makes me have to reach farther with my right thumb to get to the spacebar and gives an unbalanced feel. I end up hitting the period by accident.
-Can the cursor keys be removed?
-If I install a 3rd party keyboard like Smart Keyboard or Better Keyboard (I've purchased both) on the EVO, will that get rid of the cursor keys?
When i use the AVD to test my apps the cursor in the avd window changes from the windows default cursor to a custom black cursor. I would like to use the windows default.
View 5 Replies View Related