Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Post History

50%
+0 −0
Q&A What's the minimum API level for activity transition?

It worked for me hardly. Intent intent = new Intent(Activity.this, SecondActivity.class); ActivityOptions options = ActivityOptions.makeSceneTransitionAnimation(Activity.this); startActivity(int...

posted 2y ago by Anonymous‭  ·  edited 2y ago by Anonymous‭

Answer
#4: Post edited by user avatar Anonymous‭ · 2021-09-20T06:13:37Z (over 2 years ago)
  • It worked for me hardly.
  • ```java
  • Intent intent = new Intent(Activity.this, SecondActivity.class);
  • ActivityOptions options = ActivityOptions.makeSceneTransitionAnimation(Activity.this);
  • startActivity(intent, options.toBundle());
  • ```
  • According to [the answer](https://stackoverflow.com/a/8983437/16897106), R.anim was available from API level 1 and above.
  • According to [the answer](https://stackoverflow.com/a/3389916/16897106), `overridePendingTransistion` was available from Android version 2.0 and above. 2.0 is called Eclair as an android app developer I will call it E (API level is 5).
  • According to [the answer](https://stackoverflow.com/a/33924235/16897106), ` ActivityCompat.startActivity()` works for API level 22 and above.
  • And, answer of the code is available [here](https://stackoverflow.com/a/46079327/16897106)
  • In the code written above, options is making transition and when I had added it to `startActivity` then, when changing the activity; it was sending transition animation with intent.
  • It worked for me hardly.
  • ```java
  • Intent intent = new Intent(Activity.this, SecondActivity.class);
  • ActivityOptions options = ActivityOptions.makeSceneTransitionAnimation(Activity.this);
  • startActivity(intent, options.toBundle());
  • ```
  • According to [the answer](https://stackoverflow.com/a/8983437/16897106), R.anim was available from API level 1 and above.
  • According to [the answer](https://stackoverflow.com/a/3389916/16897106), `overridePendingTransistion` was available from Android version 2.0 and above. 2.0 is called Eclair as an android app developer I will call it E (API level is 5).
  • According to [the answer](https://stackoverflow.com/a/33924235/16897106), ` ActivityCompat.startActivity()` works for API level 22 and above.
  • And, answer of the code is available [here](https://stackoverflow.com/a/46079327/16897106)
  • In the code written above, options is making transition and when I had added it to `startActivity` then, when changing the activity; it was sending transition animation with intent.
  • <h2>For custom transition :</h2>
  • ```java
  • Intent i = new Intent(Activity.this, SecondActivity.class);
  • ActivityOptions options = ActivityOptions.makeCustomAnimation(Activity.this, R.anim.fade, R.anim.fade_out);
  • startActivity(i,options.toBundle());
  • ```
#3: Post edited by user avatar Anonymous‭ · 2021-09-13T10:54:54Z (over 2 years ago)
  • It worked for me hardly.
  • ```java
  • Intent intent = new Intent(Activity.this, SecondActivity.class);
  • ActivityOptions options = ActivityOptions.makeSceneTransitionAnimation(Activity.this);
  • startActivity(intent, options.toBundle());
  • ```
  • According to [the answer](https://stackoverflow.com/a/8983437/16897106), R.anim was available from API level 1 and above.
  • According to [the answer](https://stackoverflow.com/a/3389916/16897106), `overridePendingTransistion` was available from Android version 2.0 and above. 2.0 is called Eclair as an android app developer I will call it E (API level is 5).
  • According to [the answer](https://stackoverflow.com/a/33924235/16897106), ` ActivityCompat.startActivity()` works for API level 22 and above.
  • And, answer of the code is available [here](https://stackoverflow.com/a/46079327/16897106)
  • It worked for me hardly.
  • ```java
  • Intent intent = new Intent(Activity.this, SecondActivity.class);
  • ActivityOptions options = ActivityOptions.makeSceneTransitionAnimation(Activity.this);
  • startActivity(intent, options.toBundle());
  • ```
  • According to [the answer](https://stackoverflow.com/a/8983437/16897106), R.anim was available from API level 1 and above.
  • According to [the answer](https://stackoverflow.com/a/3389916/16897106), `overridePendingTransistion` was available from Android version 2.0 and above. 2.0 is called Eclair as an android app developer I will call it E (API level is 5).
  • According to [the answer](https://stackoverflow.com/a/33924235/16897106), ` ActivityCompat.startActivity()` works for API level 22 and above.
  • And, answer of the code is available [here](https://stackoverflow.com/a/46079327/16897106)
  • In the code written above, options is making transition and when I had added it to `startActivity` then, when changing the activity; it was sending transition animation with intent.
#2: Post edited by user avatar Anonymous‭ · 2021-09-13T09:38:28Z (over 2 years ago)
  • It worked for me hardly.
  • ```java
  • Intent intent = new Intent(Activity.this, SecondActivity.class);
  • ActivityOptions options = ActivityOptions.makeSceneTransitionAnimation(Activity.this);
  • startActivity(intent, options.toBundle());
  • ```
  • It worked for me hardly.
  • ```java
  • Intent intent = new Intent(Activity.this, SecondActivity.class);
  • ActivityOptions options = ActivityOptions.makeSceneTransitionAnimation(Activity.this);
  • startActivity(intent, options.toBundle());
  • ```
  • According to [the answer](https://stackoverflow.com/a/8983437/16897106), R.anim was available from API level 1 and above.
  • According to [the answer](https://stackoverflow.com/a/3389916/16897106), `overridePendingTransistion` was available from Android version 2.0 and above. 2.0 is called Eclair as an android app developer I will call it E (API level is 5).
  • According to [the answer](https://stackoverflow.com/a/33924235/16897106), ` ActivityCompat.startActivity()` works for API level 22 and above.
  • And, answer of the code is available [here](https://stackoverflow.com/a/46079327/16897106)
#1: Initial revision by user avatar Anonymous‭ · 2021-09-13T09:09:46Z (over 2 years ago)
It worked for me hardly.

```java
Intent intent = new Intent(Activity.this, SecondActivity.class);
ActivityOptions options = ActivityOptions.makeSceneTransitionAnimation(Activity.this);
startActivity(intent, options.toBundle());
```