Android and Special Chars?

by SteleFreak » Mon, 23 Mar 2009 06:19:08 GMT


Sponsored Links
 I created small rss reader application using DocumentBuilder class.
Everything works fine, but when Title and/or Description elements of
specific feed contains char  " , it cuts off all text after that char.

example:

if original text is -> This is "text"
then i get this    -> This is "

I have checked parser inside standard Java console application and in
it, everything works fine with the text under quotation (e.g. "Example
text"). What could be the problem? I put Title text inside a ListView
and description text inside TextView and it somehow cuts off text
after " !?

Please help, this is almost impossible to debug... :(
--~--~---------~--~----~------------~-------~--~----~



Android and Special Chars?

by Mark Murphy » Mon, 23 Mar 2009 06:28:25 GMT


 


It splits them over multiple text and entity nodes. Iterate over all the
nodes and concatenate the results.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com 
Android App Developer Books:  http://commonsware.com/books.html 

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Android and Special Chars?

by SteleFreak » Tue, 24 Mar 2009 21:18:47 GMT


 No. The problem occurs only in android app, while storage mechanism
and parser work perfectly in console app! I don't know what could be
the problem...I store each item element (rss2.0) - title, description
and link in a simple pojo class and then I take each of those pojo
objects and store their titles in listview and descriptions in
textviews. ... And there happens the problem with quotation
marks...very very strange...





--~--~---------~--~----~------------~-------~--~----~



Android and Special Chars?

by Mark Murphy » Tue, 24 Mar 2009 21:20:02 GMT


 


The parser behaves differently on Android.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com 
Warescription: Three Android Books, Plus Updates, $35/Year

--~--~---------~--~----~------------~-------~--~----~



Android and Special Chars?

by SteleFreak » Tue, 24 Mar 2009 21:45:40 GMT


 Thanks. I ll try to figure it out how to fix it.





--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Changing text color when text is selected in EditText

Hi,

I need to change the text color of the selected (highlited) text in an
EditText.
I tried like android:state_selected="true"
android:color="@android:color/white" but it is not working.
Can any one guide me where to set the color?

Thanks,
San

-- 

2. Adding different locales to an image

How do we add other locales?  Is there a comprehensive list of available 
locales for the platform and how do you add the locales to the image so that 
you can select them on a device?

Ryan Beesley
Senior QA Engineer

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. creating android user libraries (without resources)

4. exclusion filter not being respected - resources are being included in apk

5. Upgrading apps causing market ranking drop due to uninstall & prompt reinstall not getting logged

6. Upgrading apps causing market ranking drop due to uninstall & prompt reinstall not getting logged

7. NumberPicker based widgets function different in emulator than phone