Android :: AVD Cursor - Windows Default
Nov 10, 2010When 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 RepliesWhen 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 RepliesMoving my thumb over the trackpad just goes from link to link, but it disorients me because I can't predict where it will jump.Is there a way to just make it show a cursor?
View 1 Replies View RelatedWhen I tried to parse a xml file with JDOM, I got the exception: Could not load default SAX parser: org.apache.xerces.parsers.SAXParser: SAX2 driver class org.apache.xerces.parsers.SAXParser not found: org.apache.xerces.parsers.SAXParser
The following is the code snippet:
CODE:..............
I'm using android sdk-windows-1.5_r3, JDOM 1.1.1 and xerces parsers comes with JDOM.
There are some warning messages when building the android project:
CODE:..................
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?
This is technically a Win7 question, but much related to Android. On my older Android devices, when connected to PC via USB for file transfer, they would "mount" the SD card as a standard disk drive within Windows. On my newer Android devices, however, they instead connect the device to Windows as a "portable media player." This is fine, except for one thing which really irks me. Every time the portable media player director structure comes up, it is displayed as giant icons. If I change it to "list" or "detail" view within Windows, there are two big problems:
- it doesn't stick (i.e. I'll reconnect later and it will be back to giant icon view)
- it doesn't apply recursively to all subfolders
With regular Win7 file explorer (i.e. for disk drives), it is really easy to set a default folder view for all disk drives on the whole system, and it will stick forever, and apply to all subfolders on every drive. Is it possible to do the same thing with portable media players?
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 Relatedi cant wait to get my Xperia upgraded to 2.1! i have one issue though. i only have access to a work PC with XP but no admin account (big corp, so no chance of getting it temporarily) or my housemates Mac. my girlfriend has a laptop but she wont be home until next weekend are there any non-windows/non-admin methods of upgrading?
View 6 Replies View RelatedI have had DC 2.08.1 installed for about 2 weeks with no issues. I decided to go ahead and partition the SD to utilized apps2SD as I was having memory issues. That process, while not smooth, went through okay and the SD card is working with the partition and apps2SD. However, ever since that was completed, my Windows 7 box no longer recognizes the phone either as a phone or as a drive. My Linux laptop recognizes the drive without issue.
Any suggestions on how I can reintroduce my phone to the Windows box, at least as a drive?
I want to override the default android messaging application.
If I receive a sms or mms I want to send that to email but i don't want any notification on phone.
So basically I want to replace the default messaging application.
How can I make my application the default one that receive the sms?
How do I get the row ID from a Cursor?
View 2 Replies View RelatedI have installed Dolphin and like it, and I've made it my default browser, which is great. However, it is not only the system default, but it even opens links I click on in the Android provided browser (sometimes I both open). On your computer, when you click links in your non-default browser it doesn't send the links to the default one, and it shouldn't on this OS, either. Any ideas how to keep Dolphin as my system default browser, but not have it open links I click on in the Android web browser?
View 1 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 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 RelatedI 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.
I am new in Android application programming.I need to develop an android application which simply displays the cursor position (co ordinates) very urgently.If any has some pointers in same would be a great help to me.
View 4 Replies View RelatedWhen i try to edit and already stored notepad ,i see the cursor at the end of first line.I want to make it appear to the end of the text.Please help me in this.
View 2 Replies View RelatedI want to read my cursor position so that, after a tap, I can convert the screen x,y coordinates to a Geopoint for distance calculations.I found a snippet to convert x,y coordinates to a Geopoint and probably could use Projection instead, but how do I input those screen x,y values in the first place? This is probably straightforward, but I'm confused.The class Cursor seems to be something different than what I need
View 2 Replies View RelatedUser wrote some text in EditText, then touched it somewhere in its field. Cursor position changed.I need to determine changed cursor position, and do some code. How can I do this?
View 1 Replies View RelatedMy user can flick through a set of records.I save the last seen record _ID in Preferences, so that they can start off from where they left when they access the application next time.The cursor that I have extracts _ID field too.However, I don't know how to move cursor to that particular row.The following functions of the cursor need a specific position to go to :- The _ID may not be sequential (due to deletes etc).Any way to do this?
View 1 Replies View RelatedI was going through the notepad tutorials.the cursor was placed in the middle of edit text.i tried to make the cursor to point in the first line as shown in the pic but not able to find the solution for it.Kindly look at the pic and give favorable reply.
View 4 Replies View RelatedI'm trying to customize my buttons in my view a bit and give them my own look. Whenever I set a picture as a background so that the button looks different though, I seem to lose my cursor. I can use my trackball to go through the items still but when I come to one of my custom buttons the cursor does not show. I have the same problem with some TextViews that I made clickable.
View 1 Replies View Related