File comparison in Android
You can visually compare pages. This resolution independent comparison allows you to quickly spot differences between pages.
There are two main ways to integrate the out-of-box UI components in your application:
Standalone activity
The DiffActivity is a standalone component that handles from picking two files to generating the comparison result.

Define the activity
Storage Permission
Please follow the latest Android best practices and guidelines outlined here
Show the activity
Comparison options dialog
If you have your own viewer already and only want to show the comparison options in your application, the DiffOptionsDialogFragment can be used.

where compareFile is:
AsyncTask pattern can be used instead of Disposable pattern if desired.
Last updated
Was this helpful?