Hi All,
Probably not known to me but i do not find this happening with
Android-ActivityGroup
I have a service-bind() in the root activity of a activitygroup and in the
same frame two redirector buttons for two activities.
*public class RemoteServiceBinding extends ActivityGroup {*
*
localActMngr = getLocalActivityManager();
setContentView(R.layout.remote_service_binding);
Button activity1 = (Button)findViewById(R.id.activity1);
Button activity2 = (Button)findViewById(R.id.activity2);
activity1.setOnClickListener(activity1Listener);
activity2.setOnClickListener(activity2Listener);
initService();
*
*}*
on click of each i pass the current service-passed data and the same gets
updated there.
My problem starts with the back-key pressed on each of the invoked
activities.
Whenever i press the back button i do not come to the root activity which
started the activity.To top it the service also shuts down.
*public boolean onKeyDown(int keyCode, KeyEvent event) {
Activity current =
localActMngr
().getCurrentActivity();
if (current != null) {
Intent i = new
Intent(getApplicationContext(),RemoteServiceBinding.class);
localActMngr.startActivity("", i);
return current.onKeyDown(keyCode,
event);*/
}*
*return false;
}*
If somebody has an idea,please help.
--
Regards,
--
("`-''-/").___..--''"`-._
`6_ 6 ) `-. ( ).`-.__.`)
(_Y_.)' ._ ) `._ `. ``-..-'
_..`--'_..-_/ /--'_.' ,'
(il),-'' (li),' ((!.-'
KKK
9241482044
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en