HTC EVO 4G :: Cursor Dissapearing
Sep 22, 2010
For 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
Mar 29, 2010
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 Related
Feb 3, 2009
All my pictures are gone. I open the pictures app and all I see are grey boxes with an exclamation mark (!)
I've rebooted the phone and they still won't show. I can't connect to a pc till I get home later tonight.
View 15 Replies
View Related
Jun 29, 2010
Is anybody else getting missing internal storage?
This has been happening since I got the phone on launch day. This is my first Android phone so maybe this is supposed to happen. But when I reboot the phone, internal memory disappears.
As a test I didn't install or uninstall any apps, didn't get any updates, nothing. After two days I reset the phone and was at 327 megs of storage. After the reboot I had 320. This has been happening every few days.
I thought it was from installing an app. In one example I had 360 megs, installed an app that brought me to 357, did a reboot after a few mins, and had 354 at startup.
I've tried this on another phone (my girlfriend has one) and she gets the same thing. I've tried wiping my phone just to be sure and same thing.
View 3 Replies
View Related
Mar 21, 2010
I 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?
View 1 Replies
View Related
Feb 16, 2010
I have recently encountered a new issue. From time to time, all my icons disappearing from my screens. I can still scroll through the pages, and bring up my menu drawer, but nothing there. Only new install is the Good News/Weather widget.
View 5 Replies
View Related
Dec 13, 2009
If i answer a quick text, the message i was replying too disappears. It's becoming a hassle. I liked this feature, but now I've turned it off so that I won't loose any of my texts.
View 2 Replies
View Related
Jul 18, 2010
Everytime i put my droid into the desktop charger and then remove it later, all of my desktop icons and widgets on all 3 screens dissapear.
2 questions:
1. is there a way to stop this from happening
2. if not, is there an easier way to fix it besides shutting down the phone and restarting it?
Moto droid, not rooted, have aquarium live wallpaper, beutiful widgets large, no launcher or home applications installed.
View 2 Replies
View Related
Jul 6, 2009
I have TabHost with custom ListView implemented. My ListView disappears after returning from SMS screen when I try to switch tab (refresh list content).
I have context menu option to send SMS to contact from the list, I start SMS activity there and Im able to return to my app. If I don't type anything in SMS screen, just return immediately everything is fine. List will work. If I type something in SMS and press back key, toast will be displayed: "Your message is saved in Drafts". And now if try to switch tabs, list content disappears.
Debugging revealed that list items are present, and that list adapter constructor is called. However, listAdapters GetView function is never called. And list results are not displayed.
I found similar problem in this post: http://groups.google.com/group/android-developers/browse_thread/threa...
Im working on sdk 1.5 and device.
Here is my list adapter function, pretty standard:
CODE:..................
my ListView widget has no special properties, just width and height to fit parent.
View 5 Replies
View Related
May 6, 2009
I 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 Related
May 17, 2010
How do I get the row ID from a Cursor?
View 2 Replies
View Related
Jun 8, 2010
when 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 Related
Oct 18, 2009
I'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.
View 5 Replies
View Related
Jul 18, 2010
I 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 Replies
View Related
Apr 12, 2010
is there a app to get a cursor (like on a computer or winmo)?
View 8 Replies
View Related
Apr 24, 2009
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:...................
View 4 Replies
View Related
May 17, 2010
How do get the row ID from a Cursor?
View 5 Replies
View Related
Jun 16, 2009
I 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.
View 1 Replies
View Related
Jun 25, 2009
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 Related
Nov 19, 2010
I 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...
View 1 Replies
View Related
May 24, 2009
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.
View 2 Replies
View Related
Oct 30, 2009
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 Related
Jul 19, 2010
If 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 Related
Apr 21, 2010
I 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?
View 3 Replies
View Related
Nov 10, 2010
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
Sep 7, 2009
I want to do customised sorting on cursor which is returned after query is done. Is it possible to do? Is there any way to do updates on Cursor?
View 7 Replies
View Related
Oct 8, 2010
I found out that if you use the Samsung Keypad that it not only makes your phone a ton easier to use, but it also has an arrow pad if you hold the ?123 button down. I found it when I held down settings in the samsung keypad. Now my frustrations of cursor control are null and void and I don't have to worry about swype getting my text spelling horribly wrong
View 3 Replies
View Related
Nov 21, 2010
I think the following scenario is common, but I can't figure the way to implement it:
We have three Activities, and one database. We ask the user for an input to search in the database. The query should get none, one or may results.
If you get none you simple inform the user.
If you get only one, you show it in a new activity with the right view.
If you get many you show them in a list to let the user to chose the right one and then you pass that to the activity which with show the data in the case of one result only.
The problem is that, in order to know the number of results, you need to do the query (and get the cursor) in the first activity. And in the case you get more than one result you need to send the data (pass the cursor?)to the list acitivty. Doing the query again in the list activity can't be right, right?
I'm aware that you can share cursors by using a content provider, but as the activities are from the same application and the data is private (useless outside), don't see the point of making it avaliable to anyone else.
I read here around that you can crate a parcelable cursor and send it in bundle, but I'm not sure if that is the right use.
View 1 Replies
View Related
Sep 16, 2010
Simple concept, I feel stupid for asking. Let's say I typed that as "Simple concept, I feel stupid for basking" and tapped the screen to put the cursor after the B in BASKING to delete it, but accidentally inserted before the B. How do I delete that without struggling to get the cursor exactly after the B? On a BB you can just hit the ALT key while hitting delete and it would delete the B after the cursor. I can't seem to figure out a simple typing issue.
View 11 Replies
View Related
Apr 18, 2010
Just noticed that there doesn't appear to be any kind of optical trackpad on it. How will you be able to do things like move a cursor through text? Are they just relying on the bigger screen to enable more accurate touching?
View 17 Replies
View Related