How to bring a background task to the front below honeycomb?

前端 未结 2 1791
心在旅途
心在旅途 2020-11-30 14:22

in my applications root activity, I have a customized tab bar, containing three tabs to switch between three screens implemented using ViewFlipper.

What I now want

2条回答
  •  一个人的身影
    2020-11-30 15:05

    This works for me on android versions above and below Honeycomb. The keys are the intent flags

    Intent intent = new Intent(context, YourClass.class);//The class you want to show
    
    intent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT | Intent.FLAG_ACTIVITY_NEW_TASK);
    
    context.startActivity(intent);
    

提交回复
热议问题