Friday, December 2, 2011

[android-developers] useing tabactvitygroup in on click listener

Hi
iam getting tis error my actvity when pressing the button can any one
help me in this

currentLoc = (Button) findViewById(R.id.Current);
currentLoc.setOnClickListener(new OnClickListener() {

@Override
public void onClick(View v) {
// TODO Auto-generated method stub
Intent lookup = new Intent(getParent(),
Lookup.class);
TabGroupActivity parentActivity = (TabGroupActivity) getParent();
parentActivity.startChildActivity("LookupActivity",
lookup);
}
});

error like this getting in logfile:
android.view.WindowManager$BadTokenException: Unable to add window --
token android.app.LocalActivityManager$LocalActivityRecord@4058a470 is
not valid; is your activity running?

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate