Handle Multi Screen

by Me » Wed, 20 Apr 2011 22:11:14 GMT


Sponsored Links
 Hi Community I am using smack for a chatting module in my application 
Now there is need to handle the multi chat screens.

Right now I am opening my chat screen activity as below

Intent chatIntent=new Intent(HomeActivity.this,ChatActivity.class);

startActivity(chatIntent);

When a user press back button/receive call/other function to that away
him/her from current screen >There I need to handle the activity GUI with
data..

What should I do for this ?

Is there other way I can user other View else start to new activity for chat
windows . . . .

How I can handle the multi chat screens 

Thanks  . .
-----------------------------------------------
Regards :
               Aftab
-----------------------------------------------

-- 



Other Threads

1. InCallScreen is not public

I want to pass the intent to InCallScreen directly so that my intent
won't be intercepted by another app:

        Intent newIntent = new Intent(Intent.ACTION_CALL, uri);
        newIntent.putExtra(Intent.EXTRA_PHONE_NUMBER, number);
        newIntent.setClass(this, InCallScreen.class);
        newIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        this.startActivity(newIntent);

But InCallScreen is not in the public SDK 1.0.  Why is that?  Can we
expect it to become public in a later SDK release?
--~--~---------~--~----~------------~-------~--~----~

2. unable to get GUI.

Hi,
  I am unable to get android GUI. getting following error.
After going through few posts, tried to fix it by adding to init.rc
  chmod 0771 /dev/fb0
but still unable to fix.

Can anyone explain what is going wrong?

Regards,
Rupesh

$logcat
 I/dalvikvm(  428): System server process 441 has been created
 599 I/Zygote  (  428): Accepting command socket connections
 600 D/dalvikvm(  441): Trying to load lib /system/lib/libandroid_servers.so
0x0
 601 D/dalvikvm(  441): Added shared lib /system/lib/libandroid_servers.so
0x0
 602 I/sysproc (  441): Entered system_init()
 603 I/sysproc (  441): ServiceManager: 0xcd138
 604 I/SurfaceFlinger(  441): SurfaceFlinger is starting
 605 E/MemoryHeapBase(  441): error opening /dev/pmem: No such file or
directory
 606 I/SurfaceFlinger(  441): SurfaceFlinger's main thread ready to run.
Initializing graphics H/W...
 607 E/SurfaceFlinger(  441): Couldn't open
/sys/android_power/wait_for_fb_sleep or /sys/android_power/wait_for_fb_wake
 608 E/GLLogger(  441): couldn't load <libhgl.so> library (Cannot find
library)
 609 I/SurfaceFlinger(  441): EGL informations:
 610 I/SurfaceFlinger(  441): # of configs : 4
 611 I/SurfaceFlinger(  441): vendor    : Android
 612 I/SurfaceFlinger(  441): version   : 1.2 Android META-EGL
 613 I/SurfaceFlinger(  441): extensions: EGL_ANDROID_query_string_config
EGL_ANDROID_swap_rectangle
 614 I/SurfaceFlinger(  441): ext/config: EGL_ANDROID_swap_rectangle
 615 I/SurfaceFlinger(  441): Client API: OpenGL ES
 616 W/EGLDisplaySurface(  441): page flipping not supported
(yres_virtual=480, requested=960)
 617 I/EGLDisplaySurface(  441): using (fd=21)
 618 I/EGLDisplaySurface(  441): id           = CLCD FB
 619 I/EGLDisplaySurface(  441): xres         = 640 px
 620 I/EGLDisplaySurface(  441): yres         = 480 px
 621 I/EGLDisplaySurface(  441): xres_virtual = 640 px
 622 I/EGLDisplaySurface(  441): yres_virtual = 480 px
 623 I/EGLDisplaySurface(  441): bpp          = 16
 624 I/EGLDisplaySurface(  441): r            =  0:5
 625 I/EGLDisplaySurface(  441): g            =  5:6
 626 I/EGLDisplaySurface(  441): b            = 11:5
 627 I/EGLDisplaySurface(  441): width        = 51 mm (318.745087 dpi)
 628 I/EGLDisplaySurface(  441): height       = 38 mm (320.842102 dpi)
 629 I/EGLDisplaySurface(  441): refresh rate = 68.38 Hz
 630 I/SurfaceFlinger(  441): OpenGL informations:
 631 I/SurfaceFlinger(  441): vendor    : Android
 632 I/SurfaceFlinger(  441): renderer  : Android PixelFlinger 1.0
 633 I/SurfaceFlinger(  441): version   : OpenGL ES-CM 1.0
 634 I/SurfaceFlinger(  441): extensions: GL_OES_byte_coordinates
GL_OES_fixed_point GL_OES_single_precision GL_OES_read_format
GL_OES_compressed_paletted_texture GL_OES_draw_te     xture
GL_OES_matrix_get GL_OES_query_matrix GL_ARB_texture_compression
GL_ARB_texture_non_power_of_two GL_ANDROID_direct_texture
GL_ANDROID_user_clip_plane GL_ANDROID_verte     x_buffer_object
GL_ANDROID_generate_mipmap
 635 I/sysproc (  441): System server: starting Android runtime.
 636 I/sysproc (  441): System server: starting Android services.
 637 I/SystemServer(  441): Entered the Android system server!
 638 I/sysproc (  441): System server: entering thread pool.
 639 E/GLLogger(  441): couldn't load <libhgl.so> library (Cannot find
library)

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [EMAIL PROTECTED]
website: 

3. Unique Emulator ID

4. Animation seems slow

5. Trouble with SoundPool

6. Is RTP/RTSP supported in Android

7. Accelerometer sensitivity: very very high?