Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

145
Views
Animate activity which is not part of your app

How can I apply closing transition on activity which is not part of my app. Say, I am opening contacts app for picking contacts, I apply slide up transition when opening contacts app but closing app applies default animation (slide left).

Is there any possibility of animating it on closing too?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

I assume when you start activity of another app (in this example it is Contacts app) you use overridePendingTransition() in your activity for the animation, something like this :

Intent intent= new Intent(Intent.ACTION_PICK,  ContactsContract.Contacts.CONTENT_URI);
startActivityForResult(intent, requestCode);
overridePendingTransition(R.anim.slide_in_right_to_left, android.R.anim.fade_out);

In onResume() method of your activity you can use overridePendingTransition() as well to animate activity (that is from Contacts app) from which you return:

@Override
protected void onResume() {
    overridePendingTransition(0, android.R.anim.slide_out_right);
    super.onResume();
}
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!