Tab Event

by Pinki » Fri, 23 Apr 2010 08:01:58 GMT


Sponsored Links
 Hi I want to add content to linear layout dynamically when i click on
tab .For that purpose i use the following code to create a new Linear
layout and new text view .
LinearLayout ll = new LinearLayout(this);
                                ll.setId(i);
                                ll.setLayoutParams(new
LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT));
                                ll.setPadding(0, 0, 0, 5);
                                ll.setClickable(true);

TextView name = new TextView(this);

                        name.setText(user_peoples.get(j).toString());
                                name.setWidth(100);
                                name.setId(++i);
                                name.setClickable(true);
                                name.setLayoutParams(new
LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT));

But it is not worked ,Give me some suggestion.Here Null Pointer
Exception is coming.Thanks in advance

--



Other Threads

1. Android in ARM926EJ CPU

Hola tengo un miniPC con las siguientes caracteristicas:

Samsung S3C2416X 400MHz - 32 bit RISC architecture ARM926EJ CPU core
16-bit 64MB/133MHz DDR2 memory - 512K Byte SRAM
2GB NAND Flash
7800x480 TFT
Host USB x 1
Device USB x 1
SD/MMC card port
2-wire RS232 x 2
8-wire RS232 x 1
GPIO x 8
GPS
GSM

Yo quiero instalar android, Cual puedo instalar? y Como?

Gracias!

-- 

2. start logcat service by change init.rc

hi, dear all

I want to record the log info into a file in sdcard when the device is running.
And the file name will be unique so that there will be a new file for each time.

add end of init.rc with following code:

service logcat /system/bin/logcat -r 1000 -v long -f
/mnt/sdcard/log_$(date +%b_%d_%H_%M_%S).txt

However, I can see "log_$(date" file under /mnt/sdcard. And this file
will be flushed when logcat service restart.
It seem that init process does not interpreter "$(date
+%b_%d_%H_%M_%S)" as shell command when parse init.rc.


When I do "adb shell", and run following command.
/system/bin/logcat -r 1000 -v long -f /mnt/sdcard/log_$(date
+%b_%d_%H_%M_%S).txt

A file like log_Apr_08_14_04_06.txt will be saved in /mnt/sdcard.
Because the android shell can parse $(date +%b_%d_%H_%M_%S).


How can I do this in init.rc?
Anyone can help me out? Thank you very much!

-- 
Best Regards!
xiaofen

-- 

3. Logging for system components

4. chmod by init.rc

5. ssh to htc development phones

6. /libc6/libc.so.6: version `GLIBC_2.11' not found (required by /usr/lib/libGLU.so.1)

7. Android InetAddress.isReachable always returns False