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.


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) 
Android App Developer Books: 


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) 
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. SPB Mobile Shell for Android Looks To Be A Home Replacement On Steroids, Private Beta Now Open

Dari pengalaman penggunaan SPB Mobile Shell untuk WinMo, keren banget
dan banyak themesnya. Sesuai dengan informasi dari :
siap-siap mo private beta. Silahkan lihat videonya, asli, lancar
BANGET...., beda banget dng launcher2 yang ada di android sekarang.



2. untracked pid exited error while booting froyo

Hi All,
I was trying to boot Android 2.2.1 on Hawk board. I could successfully build
but when I boot I get the following error.
Can anyone help to resolve this?

Starting kernel ...

Linux version 2.6.32-rc6 (r...@srinidhi-desktop) (gcc version 4.3.3
(Sourcery G++ Lite 2009q1-203) ) #1 PREEMPT Mon Nov 8 12:32:05 IST 2010
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: OMAPL 138
Memory policy: ECC disabled, Data cache writeback
DaVinci da850/omap-l138 variant 0x0
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
Kernel command line: console=ttyS2,115200n8 console=tty1 noinitrd
root=/dev/mmcblk0p1 rootwait rw init=/init ip=none androidboot.console=ttyS2
Unknown boot option `androidboot.console=ttyS2': ignoring
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 125140KB available (3732K code, 726K data, 148K init, 0K highmem)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
Console: colour dummy device 80x30
Calibrating delay loop... 149.50 BogoMIPS (lpj=747520)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
DaVinci: 144 gpio irqs
regulator: core version 0.5
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switching to clocksource timer0_1
musb_hdrc: version 6.0, cppi4.1-dma, (host+peripheral), debug=0
Waiting for USB PHY clock good...
musb_hdrc: USB OTG mode controller at fee00000 using DMA, IRQ 58
musb_hdrc musb_hdrc: MUSB HDRC host driver
musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
ashmem: initialized
JFFS2 version 2.2. (NAND) 2001-2006 Red Hat, Inc.
msgmni has been set to 244
io scheduler noop registered
io scheduler anticipatory registered (default)
da8xx_lcdc da8xx_lcdc.0: GLCD: Found VGA_Monitor panel
Console: switching to colour frame buffer device 80x30
Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25) is a 16550A
serial8250.0: ttyS1 at MMIO 0x1d0c000 (irq = 53) is a 16550A
serial8250.0: ttyS2 at MMIO 0x1d0d000 (irq = 61) is a 16550A
console [ttyS2] enabled
brd: module loaded
ahci ahci: forcing PORTS_IMPL to 0x1
ahci ahci: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
ahci ahci: flags: ncq sntf pm led clo only pmp pio slum part ccc
scsi0 : ahci
ata1: SATA max UDMA/133 irq 67
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xa1 (Micron NAND 128MiB 1,8V
Bad block table not found for chip 0
Bad block table not found for chip 0
Scanning device for bad blocks
Creating 5 MTD partitions on "davinci_nand.1":
0x000000000000-0x000000020000 : "u-boot env"
0x000000020000-0x000000040000 : "UBL"
0x000000040000-0x0000000c0000 : "u-boot"
0x000000200000-0x000000400000 : "kernel"
0x000000400000-0x000008000000 : "filesystem"
davinci_nand davinci_nand.1: controller rev. 2.5
console [netcon0] enabled
netconsole: network logging started
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci ohci.0: DA8xx OHCI
ohci ohci.0: new USB bus registered, assigned bus number 2
ohci ohci.0: irq 59, io mem 0x01e25000
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
g_ether gadget: using random self ethernet address
g_ether gadget: using random host ethernet address
usb0: MAC 92:ff:b3:a4:f5:a3
usb0: HOST MAC 02:be:85:1c:6f:9c
g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
g_ether gadget: g_ether ready
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
watchdog watchdog: heartbeat 60 sec
cpuidle: using governor ladder
cpuidle: using governor menu
davinci_mmc davinci_mmc.0: Using DMA, 4-bit mode
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
logger: created 64K log 'log_main'
logger: created 256K log 'log_events'
logger: created 64K log 'log_radio'
logger: created 64K log 'log_system'
Advanced Linux Sound Architecture Driver Version 1.0.21.
No device for DAI tlv320aic3x
asoc: tlv320aic3x <-> davinci-i2s mapping ok
ALSA device list:
  #0: DA850/OMAP-L138 EVM (tlv320aic3x)
TCP cubic registered
NET: Registered protocol family 17
Clocks: disable unused emac
Clocks: disable unused spi1
ata1: SATA link down (SStatus 0 SControl 300)
davinci_emac_probe: using random MAC addr: fe:9e:72:0a:ab:8c
emac-mii: probed
Waiting for root device /dev/mmcblk0p1...
usb 2-1: new low speed USB device using ohci and address 2
usb 2-1: configuration #1 chosen from 1 choice
input: Logitech USB Keyboard as
generic-usb 0003:046D:C31C.0001: input: USB HID v1.10 Keyboard [Logitech USB
Keyboard] on usb-ohci.0-1/input0
input: Logitech USB Keyboard as
generic-usb 0003:046D:C31C.0002: input: USB HID v1.10 Device [Logitech USB
Keyboard] on usb-ohci.0-1/input1
mmc0: new high speed SD card at address b368
mmcblk0: mmc0:b368 SDC   1.85 GiB
 mmcblk0: p1
EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
kjournald starting.  Commit interval 5 seconds
EXT3 FS on mmcblk0p1, internal journal
EXT3-fs: mounted filesystem with writeback data mode.
VFS: Mounted root (ext3 filesystem) on device 179:1.
Freeing init memory: 148K
Warning: unable to open an initial console.
init: cannot open '/initlogo.rle'
init: cannot find '/system/etc/', disabling
# k
k: not found
# ls
ls: not found
# warning: `zygote' uses 32-bit capabilities (legacy support in use)
init: untracked pid 655 exited
init: untracked pid 692 exited
init: untracked pid 708 exited
init: untracked pid 723 exited
init: untracked pid 738 exited
init: untracked pid 753 exited
init: untracked pid 768 exited
init: untracked pid 783 exited
init: untracked pid 798 exited



3. android bluetooth

4. Black Campaign; Navigation

5. GK:How to set the FOCUS to my activity or listview

6. "zoomSupported = false" for android camera zooming.

7. The default camera error