saschoar

Dresden, Germany

saschahuth.com

Age: 27

I've been working as a freelancer in Android and web development for over two years. In addition to efficient, solid development practices, I'm aiming for a high usability and intuitive GUI design in my work.

Feb
23
revised Android content provider query IN clause
deleted 2 characters in body
Feb
23
answered Android content provider query IN clause
Feb
18
comment Rename an account on Android (AccountManager)
I don't think that it's done automatically, because you basically create a new account which has no reference to the old one. The contacts provider has no idea what's going on. I added some code to my answer to update the values manually. Please see if that works.
Feb
18
revised Rename an account on Android (AccountManager)
added 577 characters in body
Feb
18
comment Rename an account on Android (AccountManager)
I guess this fails because you are renaming the ACCOUNT_NAME field in each of the contacts, but not the account itself. Contacts usually have nothing to do with the accounts managed by AccountManager. Please see my answer.
Feb
18
answered Rename an account on Android (AccountManager)
Feb
12
revised ORMLite convert timestamp to Date
fixed small typo in annotation arguments
Feb
10
awarded Good Answer
Feb
3
awarded Autobiographer
Jan
10
awarded Yearling
Jan
10
awarded Yearling
Dec
2
awarded Necromancer
Nov
17
awarded Autobiographer
Nov
10
comment Android Endless List
From my understanding, the performance gain results from the fact that the evaluation here is only triggered when scrollState == SCROLL_STATE_IDLE, i.e. when the scrolling has finished. I think that's a reasonable trade-off between speed and user comfort.
Sep
30
awarded Explainer
Aug
12
comment Two identity columns
I know what you mean, @Gray, but when entering the else{...} case, it could still mean that the uniqueId field of data is not set: Think about a case where you get the data item from an API (that only returns the id and number fields, not your local uniqueId for that item) and you want save it in your database with createOrUpdate(). I'd say that case is quite common when you use ORMlite for syncing remote and local data.
Aug
10
comment Two identity columns
In the else case, don't you have to assign the uniqueId field of the existing Foo entry to the data object before calling update(data)? Because otherwise, the Dao wouldn't know which row to update. Also, before calling create(data), you'd have to make sure that the uniqueId field of the data item is not already existing in the database table.
Jul
23
awarded Notable Question
Jun
23
revised How to get duration of an video file?
added 1 character in body
Jun
23
revised Is it possible to set a maximum time allowed for android recording using intent?
edited body
1 2 3 4 5