Display some part of HTML file in WebView

by mansur Android » Wed, 21 Apr 2010 21:49:34 GMT


Sponsored Links
 Hi All,

We have a large HTML which contents 1000's of lines. But we want to
show content of the HTML file that fits a
single screen.  We want provide a '>'  kind of to show the next
contents of the same HTML file.

Our objective is to only display the HTML contents that fits the
screen.Similar to reader application  For user, it seems there are
several pages.

Is there any way in which we can achieve this functionality. Whether
WebView has any function related to full fill the requirement.

Thanks and Regards,
*Mansur*

--



Display some part of HTML file in WebView

by Sean Hodges » Wed, 21 Apr 2010 22:02:06 GMT


 Why must all the content be on a single HTML page?

If you really can't split it out, you could use some Javascript
actions to hide/display sections of the HTML page when the user clicks
the '>' button. However, the browser will still need to download and
render the entire page when it loads, which may take a long time. The
best solution would be to split the content into a number of pages.

On Wed, Apr 21, 2010 at 2:49 PM, mansur Android


>


Sponsored Links


Other Threads

1. To access Android's external db thru native code .. !!

Why don't you try to access the corresponding ContentProvider instead ?





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

2. boot freeze (I.mx27)

hello,

i have to port android on the APF27 plateform from Armadeus. I builded
an Android kernel and i boot with it. After i plug my USB key with the
android's files and start it (chroot /mnt/usb /init)

when i boot android i see the bootlogo but the system stop...

someone understand it?
thanks

there is the end of strace.... (how we can see, it's a loop. Android
try to receive something and can't)

strace chroot /mnt/usb /init

chown32("/sys/kernel/ipv4/tcp_wmem_max", 1000, 1000) = 0
chown32("/sys/kernel/ipv4/tcp_rmem_min", 1000, 1000) = 0
chown32("/sys/kernel/ipv4/tcp_rmem_def", 1000, 1000) = 0
chown32("/sys/kernel/ipv4/tcp_rmem_max", 1000, 1000) = 0
chown32("/proc/cmdline", 0, 1001)       = 0
futex(0x40001004, FUTEX_WAKE, 2147483647) = 0
futex(0x400028a0, FUTEX_WAKE, 2147483647) = 0
futex(0x40001004, FUTEX_WAKE, 2147483647) = 0
futex(0x40001004, FUTEX_WAKE, 2147483647) = 0
futex(0x400028a0, FUTEX_WAKE, 2147483647) = 0
futex(0x40001004, FUTEX_WAKE, 2147483647) = 0
futex(0x40001004, FUTEX_WAKE, 2147483647) = 0
futex(0x400028a0, FUTEX_WAKE, 2147483647) = 0
futex(0x40001004, FUTEX_WAKE, 2147483647) = 0
futex(0x40001004, FUTEX_WAKE, 2147483647) = 0
futex(0x400028a0, FUTEX_WAKE, 2147483647) = 0
futex(0x40001004, FUTEX_WAKE, 2147483647) = 0
futex(0x40001004, FUTEX_WAKE, 2147483647) = 0
futex(0x400028a0, FUTEX_WAKE, 2147483647) = 0
futex(0x40001004, FUTEX_WAKE, 2147483647) = 0
stat64("/sbin/adbd", {st_mode=S_IFREG|0777,
st_size=504486858588160, ...}) = 0
fork()                                  = 1698
clock_gettime(CLOCK_MONOTONIC, {136, 520464065}) = 0
futex(0x40001004, FUTEX_WAKE, 2147483647) = 0
poll([{fd=5, events=POLLIN}, {fd=7, events=POLLIN}, {fd=9,
events=POLLIN}], 3, -1) = 2 ([{fd=5, revents=POLLIN}, {fd=9, rev)
read(9, "\21"..., 92)                   = 1
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 255}], WNOHANG, NULL) =
1686
futex(0x40002fa0, FUTEX_WAKE, 2147483647) = 0
futex(0x40001004, FUTEX_WAKE, 2147483647) = 0
wait4(-1, 0xbed6ea60, WNOHANG, NULL)    = 0
poll([{fd=5, events=POLLIN}, {fd=7, events=POLLIN}, {fd=9,
events=POLLIN}], 3, -1) = 1 ([{fd=5, revents=POLLIN}])
recvfrom(5, "add@/kernel/uids/1000\0ACTION=add\0"..., 1024, 0, NULL,
NULL) = 86
recvfrom(5, "add@/kernel/uids/1013\0ACTION=add\0"..., 1024, 0, NULL,
NULL) = 86
recvfrom(5, "add@/kernel/uids/1001\0ACTION=add\0"..., 1024, 0, NULL,
NULL) = 86
recvfrom(5, 0xbed6e6e2, 1024, 0, 0, 0)  = -1 EAGAIN (Resource
temporarily unavailable)
poll([{fd=5, events=POLLIN}, {fd=7, events=POLLIN}, {fd=9,
events=POLLIN}], 3, -1) = 1 ([{fd=5, revents=POLLIN}])
recvfrom(5, "add@/class/vc/vcs7\0ACTION=add\0DEV"..., 1024, 0, NULL,
NULL) = 94
mknod("/dev/vcs7", S_IFCHR|0600, makedev(7, 7)) = 0
chown32("/dev/vcs7", 0, 0)              = 0
recvfrom(5, 0xbed6e6e2, 1024, 0, 0, 0)  = -1 EAGAIN (Resource
temporarily unavailable)
poll([{fd=5, events=POLLIN}, {fd=7, events=POLLIN}, {fd=9,
events=POLLIN}], 3, -1) = 1 ([{fd=5, revents=POLLIN}])
recvfrom(5, "add@/class/vc/vcsa7\0ACTION=add\0DE"..., 1024, 0, NULL,
NULL) = 98
mknod("/dev/vcsa7", S_IFCHR|0600, makedev(7, 135)) = 0esource
temporarily unavailable
chown32("/dev/vcsa7", 0, 0)             = 0
recvfrom(5, 0xbed6e6e2, 1024, 0, 0, 0)  = -1 EAGAIN (Resource
temporarily unavailable)
poll([{fd=5, events=POLLIN}, {fd=7, events=POLLIN}, {fd=9,
events=POLLIN}], 3, -1) = 1 ([{fd=5, revents=POLLIN}])
recvfrom(5, "remove@/class/vc/vcs7\0ACTION=remo"..., 1024, 0, NULL,
NULL) = 100
unlink("/dev/vcs7")                     = 0
recvfrom(5, 0xbed6e6e2, 1024, 0, 0, 0)  = -1 EAGAIN (Resource
temporarily unavailable)
poll([{fd=5, events=POLLIN}, {fd=7, events=POLLIN}, {fd=9,
events=POLLIN}], 3, -1) = 1 ([{fd=5, revents=POLLIN}])
recvfrom(5, "remove@/class/vc/vcsa7\0ACTION=rem"..., 1024, 0, NULL,
NULL) = 104
unlink("/dev/vcsa7")                    = 0
recvfrom(5, 0xbed6e6e2, 1024, 0, 0, 0)  = -1 EAGAIN (Resource
temporarily unavailable)
poll([{fd=5, events=POLLIN}, {fd=7, events=POLLIN}, {fd=9,
events=POLLIN}], 3, -1) = ? ERESTART_RESTARTBLOCK (To be restart)
--- SIGCHLD (Child exited) @ 0 request_suspend_state: wakeup (3->0) at
152202922726 (2008-11-05 05:48:05.870349563 UTC)
(0) ---
write(8, "\21"..., 1)                   = 1
sigreturn()                             = ? (mask now [])
poll([{fd=5, events=POLLIN}, {fd=7, events=POLLIN}, {fd=9,
events=POLLIN}], 3, -1) = 1 ([{fd=9, revents=POLLIN}])
read(9, "\21"..., 92)                   = 1
wait4(-1, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGKILL}], WNOHANG, NULL)
= 1692
kill(-1692, SIGKILL)                    = -1 ESRCH (No such process)
unlink("/dev/socket/zygote")            = 0
clock_gettime(CLOCK_MONOTONIC, {152, 200522245}) = 0
open("/sys/power/state", O_WRONLY|O_CREAT|O_LARGEFILE, 0622) = 10
write(10, "on"..., 2)                   = 2
close(10)                               = 0
futex(0x40003220, FUTEX_WAKE, 2147483647) = 0
futex(0x40001004, FUTEX_WAKE, 2147483647) = 0
wait4(-1, 0xbed6ea60, WNOHANG, NULL)    = 0
clock_gettime(CLOCK_MONOTONIC, {152, 218290421}) = 0
stat64("/system/bin/app_process", {st_mode=S_IFREG|0777,
st_size=23897198034944, ...}) = 0
fork()                                  = 1723
clock_gettime(CLOCK_MONOTONIC, {152, 241083739}) = 0
futex(0x40003220, FUTEX_WAKE, 2147483647) = 0
futex(0x40001004, FUTEX_WAKE, 2147483647) = 0
poll([{fd=5, events=POLLIN}, {fd=7, events=POLLIN}, {fd=9,
events=POLLIN}], 3, -1) = 1 ([{fd=5, revents=POLLIN}])
recvfrom(5, "add@/class/vc/vcs7\0ACTION=add\0DEV"..., 1024, 0, NULL,
NULL) = 94
mknod("/dev/vcs7", S_IFCHR|0600, makedev(7, 7)) = 0
chown32("/dev/vcs7", 0, 0)              = 0
recvfrom(5, 0xbed6e6e2, 1024, 0, 0, 0)  = -1 EAGAIN (Resource
temporarily unavailable)
poll([{fd=5, events=POLLIN}, {fd=7, events=POLLIN}, {fd=9,
events=POLLIN}], 3, -1) = 1 ([{fd=5, revents=POLLIN}])
recvfrom(5, "add@/class/vc/vcsa7\0ACTION=add\0DE"..., 1024, 0, NULL,
NULL) = 98
mknod("/dev/vcsa7", S_IFCHR|0600, makedev(7, 135)) = 0
chown32("/dev/vcsa7", 0, 0)             = 0
recvfrom(5, 0xbed6e6e2, 1024, 0, 0, 0)  = -1 EAGAIN (Resource
temporarily unavailable)
poll([{fd=5, events=POLLIN}, {fd=7, events=POLLIN}, {fd=9,
events=POLLIN}], 3, -1) = 1 ([{fd=5, revents=POLLIN}])
recvfrom(5, "remove@/class/vc/vcs7\0ACTION=remo"..., 1024, 0, NULL,
NULL) = 100
unlink("/dev/vcs7")                     = 0
recvfrom(5, 0xbed6e6e2, 1024, 0, 0, 0)  = -1 EAGAIN (Resource
temporarily unavailable)
poll([{fd=5, events=POLLIN}, {fd=7, events=POLLIN}, {fd=9,
events=POLLIN}], 3, -1) = 1 ([{fd=5, revents=POLLIN}])
recvfrom(5, "remove@/class/vc/vcsa7\0ACTION=rem"..., 1024, 0, NULL,
NULL) = 104
unlink("/dev/vcsa7")                    = 0
recvfrom(5, 0xbed6e6e2, 1024, 0, 0, 0)  = -1 EAGAIN (Resource
temporarily unavailable)
poll([{fd=5, events=POLLIN}, {fd=7, events=POLLIN}, {fd=9,
events=POLLIN}], 3, -1) = 1 ([{fd=5, revents=POLLIN}])
recvfrom(5, "add@/class/vc/vcs7\0ACTION=add\0DEV"..., 1024, 0, NULL,
NULL) = 94
mknod("/dev/vcs7", S_IFCHR|0600, makedev(7, 7)) = 0
chown32("/dev/vcs7", 0, 0)              = 0
recvfrom(5, 0xbed6e6e2, 1024, 0, 0, 0)  = -1 EAGAIN (Resource
temporarily unavailable)
poll([{fd=5, events=POLLIN}, {fd=7, events=POLLIN}, {fd=9,
events=POLLIN}], 3, -1) = 1 ([{fd=5, revents=POLLIN}])
recvfrom(5, "add@/class/vc/vcsa7\0ACTION=add\0DE"..., 1024, 0, NULL,
NULL) = 98
mknod("/dev/vcsa7", S_IFCHR|0600, makedev(7, 135)) = 0
chown32("/dev/vcsa7", 0, 0)             = 0
recvfrom(5, 0xbed6e6e2, 1024, 0, 0, 0)  = -1 EAGAIN (Resource
temporarily unavailable)
poll([{fd=5, events=POLLIN}, {fd=7, events=POLLIN}, {fd=9,
events=POLLIN}], 3, -1) = 1 ([{fd=5, revents=POLLIN}])
recvfrom(5, "remove@/class/vc/vcs7\0ACTION=remo"..., 1024, 0, NULL,
NULL) = 100
unlink("/dev/vcs7")                     = 0
recvfrom(5, 0xbed6e6e2, 1024, 0, 0, 0)  = -1 EAGAIN (Resource
temporarily unavailable)
poll([{fd=5, events=POLLIN}, {fd=7, events=POLLIN}, {fd=9,
events=POLLIN}], 3, -1) = 1 ([{fd=5, revents=POLLIN}])
recvfrom(5, "remove@/class/vc/vcsa7\0ACTION=rem"..., 1024, 0, NULL,
NULL) = 104
unlink("/dev/vcsa7")                    = 0


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

3. To access Android's external db thru native code .. !!

4. How to detect if activity is started by user or system

5. Detect app dropped on a widget

6. GSM re-registration too long

7. How to set an android sdk that I built with eclipse adt plugins