How to change label, size of child-tab(tabspec) (of tabhost)

by Huynh Ngoc Bang » Fri, 20 May 2011 09:34:00 GMT


Sponsored Links
 I create tabhost with 4 tabspec.

I would like to change label (setIndicator), size of tab  when tab
change from this  tab to another.
How can I do.?

Thanks!

-- 



Other Threads

1. Porting on msm7225

Hi,
We are trying to port android on MSM 7225 hardware. Currently we are
trying to manually bring up the framework. It fails during the init
with the following logs. The service manager seems to die due to
insufficient permissions(Permission denied). The service _manager
binary seems to have execute permission. Any pointers would be much
appreciated.

# df
Filesystem           1k-blocks      Used Available Use% Mounted on
tmpfs                    34644         4     34640   0% /dev
/dev/mtdblock0           96512      5664     90848   6% /mnt/flash
/dev/mtdblock1           61440     50028     11412  81% /system
#
we have abt 32 MB of RAM free before the framework is started.

# ./init
init: cannot open '/initlogo.rle'
sh: can't access tty; job control turned off
# init: cannot find '/system/bin/playmp3', disabling 'bootsound'
init: untracked pid 911 exited
app_process used greatest stack depth: 4848 bytes left
init: untracked pid 899 exited
init: untracked pid 1002 exited
init: untracked pid 1024 exited
app_process used greatest stack depth: 4812 bytes left
init: untracked pid 1013 exited
init: untracked pid 1036 exited
app_process used greatest stack depth: 4764 bytes left
init: untracked pid 1026 exited
init: critical process 'servicemanager' exited 4 times in 4 minutes;
rebooting i
nto recovery mode
+Restarting system with command 'recovery'.


strace logs for the forked service manager process:

01:04:26 dup(5) = 9
01:04:26 open("/dev/null", O_RDWR|O_LARGEFILE)                    = 10
01:04:26 dup2(10, 0) = 0
01:04:26 dup2(10, 1)                         = 1
01:04:27 dup2(10, 2) = 2
01:04:27 close(10) = 0
01:04:27 getpid()                      = 1023
01:04:27 setpgid(0, 1023)               = 0
01:04:27 setuid32(1000)                         = 0
01:04:27 execve("/system/bin/servicemanager", ["/system/bin/
servicemanager"], [/* 9 vars */]) = -1 EACCES (Permission denied)
01:04:27 exit_group(127)                = ?

The service manager binary seems to have the right permissions:
# cd /system/bin
# ls -l
-rwxr-xr-x    1 1000     1000          189 Dec  4  2008 am
-rwxr-xr-x    1 1000     1000         5564 Dec  5  2008 app_process
-rwxr-xr-x    1 1000     1000         5420 Dec  5  2008 dalvikvm
-rwxr-xr-x    1 1000     1000       121728 Dec  5  2008 dbus-daemon
-rwxr-xr-x    1 1000     1000        18024 Dec  5  2008 de{*filter*}d
-rwxr-xr-x    1 1000     1000         9644 Dec  5  2008 dexopt
-rwxr-xr-x    1 1000     1000        40372 Dec  5  2008 dhcpcd
-rwxr-xr-x    1 1000     1000         3266 Dec  4  2008 dumpstate
-rwxr-xr-x    1 1000     1000         9724 Dec  5  2008 dumpsys
-rwxr-xr-x    1 1000     1000         5460 Dec  5  2008 dvz
-rwxr-xr-x    1 1000     1000         9640 Dec  5  2008 flash_image
-rwxr-xr-x    1 1000     1000        18896 Dec  5  2008 hciattach
-rwxr-xr-x    1 1000     1000       178716 Dec  5  2008 hcid
-rw-r--r--    1 1000     1000          201 Dec  4  2008 input
-rwxr-xr-x    1 1000     1000        14020 Dec  5  2008 installd
-rwxr-xr-x    1 1000     1000       109020 Dec  5  2008 iptables
-rwxr-xr-x    1 1000     1000        71312 Dec  5  2008 linker
-rwxr-xr-x    1 1000     1000         9736 Dec  5  2008 logcat
-rwxr-xr-x    1 1000     1000         9656 Dec  5  2008 logwrapper
-rwxr-xr-x    1 1000     1000         5364 Dec  5  2008 mediaserver
-rwxr-xr-x    1 1000     1000          205 Dec  4  2008 monkey
-rwxr-xr-x    1 1000     1000        17996 Dec  5  2008 mountd
-rwxr-xr-x    1 1000     1000         5616 Dec  5  2008 netcfg
-rwxr-xr-x    1 1000     1000        22128 Dec  5  2008
omx_h264_dec_test
-rwxr-xr-x    1 1000     1000         9796 Dec  5  2008
omx_mp4_dec_test
-rwxr-xr-x    1 1000     1000        26628 Dec  5  2008 ping
-rwxr-xr-x    1 1000     1000          191 Dec  4  2008 pm
-rwxr-xr-x    1 1000     1000         9720 Dec  5  2008 qemud
-rwxr-xr-x    1 1000     1000         5328 Dec  5  2008 radiooptions
-rwxr-xr-x    1 1000     1000       276424 Dec  5  2008 recovery
-rwxr-xr-x    1 1000     1000         5592 Dec  5  2008 rild
-rwxr-xr-x    1 1000     1000        46460 Dec  5  2008 sdptool
-rwxr-xr-x    1 1000     1000         5524 Dec  5  2008 sdutil
-rwxr-xr-x    1 1000     1000         9764 Dec  5  2008 service
-rwxr-xr-x    1 1000     1000         9828 Dec  5  2008 servicemanager
-rwxr-xr-x    1 1000     1000         5376 Dec  5  2008 set_grp_id
-rwxr-xr-x    1 1000     1000        86936 Dec  5  2008 sh
-rwxr-xr-x    1 1000     1000         5340 Dec  5  2008 surfaceflinger
-rwxr-xr-x    1 1000     1000          192 Dec  4  2008 svc
-rwxr-xr-x    1 1000     1000         5332 Dec  5  2008 system_server
-rwxr-xr-x    1 1000     1000        68484 Dec  5  2008 toolbox
-rwxr-xr-x    1 1000     1000        64936 Dec  5  2008 wlan_loader
#
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website:  http://www.***.com/ 
-~----------~----~----~----~------~----~------~--~---

2. How to add a EFI bootloader to android

I want to use a EFI bootloader to start android on an intel atom
board. Can someone help me with this?
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. How get MediaRecorder to record in MP3 format

4. Is There Ever Going to be a Google Chrome Mobile for Android?

5. Dialogs: in(determinate) vs. spinner/horizontal style

6. (pre- & post-) processing raw audio data

7. Is it just me or do you have to press one button too many to switch off the G1?