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. How to avoid BLANK screen on pause camera preview

Guys hi ,

I'm running a standard camera preview (i use the camera api demo as a
reference).

When i hit the capture button, there is a black screen for a good 1/2
second until the captured image appears.

My question is how can i freeze the last image being previewed on the
screen while i do the capture work ?
I don't mind that the quality of the displayed image is not as good.

If i hit camera.stopPreview() -> that goes into the black screen which
i don't want.

Please advise

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

2. Why XML to define layouts and components?

I'm wondering whether other Android newbies than me find the empathy
on XML layout troublesome? I realize we should strive to separate view
from logic and that XML is hip and trendy, but is it really necessary
for these relatively simple Android applications?

XML layouts involves more files and what feels like a lot of
"magic" (type unsafe) properties, and makes samples harder to follow/
type. It also can't be especially efficient to use findViewById
(whether BFS or DFS based) constantly?

It sort of reminds me of the differences between JSF and Wicket, where
the former was designed by people sitting in an ivory tower while the
latter was designed for and by people at the ground, comfortable with
Java. Which also leads me to wonder how come Android uses the old type-
unsafe int enum pattern and also, why method chaining isn't used to
greater effect.

/Casper

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

3. why cannot i put "hello <b>%s</b>" in strings.xml?

4. Forcing an activity to reload completely?

5. why cannot i put "hello <b>%s</b>" in strings.xml?

6. mediaPlayer.setDataSource(fd) cause IOException: Prepare failed.: status=0x1

7. Android Installation Issue