Re: [android-developers] Re: How to parse JSON in Java?

2010-04-15 Thread Fabian Sturm
Hi, hmm I sent the email below a week ago but it still did not show up, so here once more my version of parsing json: Another option which works fine for me is: http://jackson.codehaus.org/ and a tutorial with code samples: http://wiki.fasterxml.com/JacksonInFiveMinutes it

Re: [android-developers] Re: MapView

2010-02-23 Thread Fabian Sturm
Hi, Am Dienstag, den 23.02.2010, 07:49 -0800 schrieb Aamir Yaseen: Hi everyone, I was able to solve this issue, so thought better update everyone, this might help others. do you use the focus state to change the icon in your statelistdrawable? I do this and it works but I can't focus, unfocus

[android-developers] MapView, can't focus, unfocus, refocus an overlayitem

2010-02-20 Thread Fabian Sturm
Hi, I already posted that I have trouble unfocusing and refocusing an overlayitem in a mapview. I now have added a bug report with a complete example showing the problem. Maybe someone can spot the problem in the code or in the mapview? http://code.google.com/p/android/issues/detail?id=6752

[android-developers] MapView Overlay that does always keeps an item selected?

2010-02-13 Thread Fabian Sturm
Hi, I want to add an ItemizedOverlay to a MapView that always keeps one OverlayItem as the selected one. I indicate this by using a StateListDrawable with two different marker drawables. But right now, whenever I tap on the map and not hitting a marker, the last selected item will get

Re: [android-developers] MapView Overlay that does always keeps an item selected?

2010-02-13 Thread Fabian Sturm
Hi, thanks for the hint! I already tried to implement this, but am now stuck with that setFocus works, but it does not raise the OverlayItem to the top. As is done if I select the item with a tap. So is there any chance to really select an item and not merely focusing it? Are you sure you want

Re: [android-developers] MapView Overlay that does always keeps an item selected?

2010-02-13 Thread Fabian Sturm
Hi, wow thanks a lot, your guess was right, I was missing an invalidate. Most of the time I would do an animateTo and that itself would trigger an invalidate :-) But unfortunately still not everything works. There seems to be a problem with focus handling. I can set the different items focus by

Re: [android-developers] Re: Installing app on android device

2010-01-29 Thread Fabian Sturm
Hi, From my experience with the Archos 5 IT I don't think there are any restriction on debugging. The only catch is, that the device comes without the google applications and api, so you e.g. can't run an application using google maps. But there is an unofficial way to get around this limitaion

[android-developers] Re: wrap around with textview in a tablelayout broken

2009-09-28 Thread Fabian Sturm
Hi! Thanks for your testing, at least I now know I am not doing anything stupid :-) And yes I guess I could use something different for the layout, I just thought the tablelayout would be the most logical choice to get all items in the second column aligned properly. Anyways I opened this bug

[android-developers] wrap around with textview in a tablelayout broken

2009-09-21 Thread Fabian Sturm
Hi! I have a very simple layout, a table with a single row containing two textviews. The first textview has a short text and the second a long text which needs to be wrapped around. Unfortunately the wrap around does not work. In the first line of the wrapped text the last word is missing a

[android-developers] ContentProvider with openFile but empty _data

2009-08-29 Thread Fabian Sturm
Hi! I implemented a custom ContentProvider and everything works great! I now wanted to extend it to also store a Bitmap in the table with the _data convention and the same url for the content as also the file. So I did everything as described: - I added a _data column type TEXT - Implemented

[android-developers] How to look up position in spinner from string array?

2009-08-24 Thread Fabian Sturm
Hello all! I have a pretty simple question, but I am still hammering my brain with finding an elegant solution. I have a spinner filled with an array defined as xml resource: string-array name=distances itemitem1/item itemitem2/item /string-array Whenever I close the

[android-developers] Re: How to look up position in spinner from string array?

2009-08-24 Thread Fabian Sturm
Hi! Am Montag, den 24.08.2009, 13:40 -0700 schrieb Jack Ha: Can you just save the position instead? Yes I could but the next time the app gets loaded the array might contain new entries. Therefore the position will no longer reflect the correct entry, e.g. after an app upgrade. Therefore I am