[android-developers] How to make a listview with only XML and no adapter

2008-12-25 Thread ChisterNordvik
Hi! On one of my screens I want to have a list with only one item and I want to declare the item in XML since that's easier than writing a separate adapter . So i tried doing it without a ListView like in Code 1. The problem then is that selection isn't working like in the listview. I can't

[android-developers] Service not able to download network data while in standby

2008-12-14 Thread ChisterNordvik
Hi! I have a service polling data at regular time intervals and this works great except when the phone goes into standby. Then the service never runs the timer thread and it never receives data. How does the SMS/ Email application do this since I get those notifications while in standby? When I

[android-developers] How to replicate GUI of Android settings menu

2008-12-04 Thread ChisterNordvik
Hi! I want to make my settings menu look like the one in Android where they have a heading and a multiline text below the heading for each listitem. Anyone got the source code for that GUI? :-) --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Parsing RSS feeds, encoding problems

2008-11-30 Thread ChisterNordvik
Hi! Does anyone have a working RSS parser with Android? I tried doing simple DOM parsing of the XML but the character encoding isn't handled properly so the norwegian characters aren't displayed. I have tried everything but when I get the description element I just get the text until the

[android-developers] Re: Parsing RSS feeds, encoding problems

2008-11-30 Thread ChisterNordvik
problem. Any suggestions? On Nov 30, 10:53 pm, ChisterNordvik [EMAIL PROTECTED] wrote: Hi! Does anyone have a workingRSSparser with Android? I tried doing simple DOM parsing of the XML but the character encoding isn't handled properly so the norwegian characters aren't displayed. I have

[android-developers] Setting gradient color of TextView creates problems with selection color

2008-11-02 Thread ChisterNordvik
Hi! I have a ListView with lines of TextViews (standings table for Premier League). In the first column I want to have a gradient so I have modified my code like this: //Top team should have a nice green color if(position == 0) { toColor = Color.argb(255, 79, 191, 124); grad =