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. Android is calling: Walk and Text and be Malicious

[SOURCE]
https://blog.avast.com/2011/03/21/android-is-calling-walk-and-text-and-be-malicious/?utm_source=twitter&utm_medium=twitterfeed&utm_campaign=blog
[/SOURCE]

Hi, I've received this article from my Google Reader. Is this really a
malicious application?


-- 
.

2. unknown mimetypes and file managers...

I'd like to handle a file extention (.m3u8) which has no registered
MIME mapping for the extention, when the file is opened in a file
manager/explorer. But no matter what I try, the file managers I tried
aren't able to open the file with my app. Is this something that is
generally impossible in Android, are the file managers poorly
programmed, or am I doing something wrong?

This is my current state in manifest.xml:
<intent-filter>
  <action android:name="android.intent.action.VIEW" />
  <category android:name="android.intent.category.DEFAULT" />
  <category android:name="android.intent.category.BROWSABLE" />
  <data android:scheme="file" />
  <data android:host="*" />
  <data android:mimeType="*/*" />
  <data android:pathPattern=".*\\.m3u8" />
</intent-filter>

I also tried without BROWSABLE and/or host, because I thought that
might be only for browser downloads, but it didn't change anything.

-- 

3. Problems by testing on different devices

4. Android version upgrade

5. Android upgrade methods

6. Notification from lower layer

7. Video chat?