Review Activity
public class ReviewActivity extends AppCompatActivity implements ReviewFragmentListener, ReviewFragmentInterface
Screen API When you use the Screen API, the Content copied to clipboard
ReviewActivity
displays the photographed or imported image and allows the user to review it by checking the sharpness, quality and orientation of the image. The user can correct the orientation by rotating the image. The preferred way of adding network calls to the Gini Capture SDK is by creating a GiniCapture instance with a GiniCaptureNetworkService and a GiniCaptureNetworkApi implementation.
The ReviewActivity
is started by the CameraActivity after the user has taken a photo or imported an image of a document.
The following items are customizable:
- Rotate button icon: via images for mdpi, hdpi, xhdpi, xxhdpi, xxxhdpi named
gc_review_button_rotate.png
- Rotate button color: via the color resources named
gc_review_fab_mini
andgc_review_fab_mini_pressed
- Next button icon: via images for mdpi, hdpi, xhdpi, xxhdpi, xxxhdpi named
gc_review_fab_next.png
- Next button color: via the color resources named
gc_review_fab
andgc_review_fab_pressed
- Bottom advice text: via the string resource named
gc_review_bottom_panel_text
- Bottom text color: via the color resource named
gc_review_bottom_panel_text
- Bottom text font: via overriding the style named
GiniCaptureTheme.Review.BottomPanel.TextStyle
and setting an item namedgcCustomFont
with the path to the font file in yourassets
folder - Bottom text style: via overriding the style named
GiniCaptureTheme.Review.BottomPanel.TextStyle
and setting an item namedandroid:textStyle
tonormal
,bold
oritalic
- Bottom text size: via overriding the style named
GiniCaptureTheme.Review.BottomPanel.TextStyle
and setting an item namedandroid:textSize
to the desiredsp
size - Bottom panel background color: via the color resource named
gc_review_bottom_panel_background
- Background color: via the color resource named
gc_background
. Note: this color resource is global to all Activities (CameraActivity, , ReviewActivity, AnalysisActivity)
Important: All overridden styles must have their respective Root.
prefixed style as their parent. Ex.: the parent of GiniCaptureTheme.Review.BottomPanel.TextStyle
must be Root.GiniCaptureTheme.Review.BottomPanel.TextStyle
.
The following items are customizable:
- Background color: via the color resource named
gc_action_bar
(highly recommended for Android 5+: customize the status bar color viagc_status_bar
) - Title: via the string resource you set in your
AndroidManifest.xml
when declaring your Activity that extends ReviewActivity. The default title string resource is namedgc_title_review
- Title color: via the color resource named
gc_action_bar_title
- Back button: via images for mdpi, hdpi, xhdpi, xxhdpi, xxxhdpi named
gc_action_bar_back
Functions
Link copied to clipboard
Link copied to clipboard
final void addOnContextAvailableListener(OnContextAvailableListener listener)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
boolean bindIsolatedService(Intent service, int flags, String instanceName, Executor executor, ServiceConnection conn)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
boolean bindServiceAsUser(Intent service, ServiceConnection conn, int flags, UserHandle user)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Array<int> checkCallingOrSelfUriPermissions(List<Uri> uris, int modeFlags)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Array<int> checkUriPermissions(List<Uri> uris, int pid, int uid, int modeFlags)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
PendingIntent createPendingResult(int requestCode, Intent data, int flags)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
void dump(String prefix, FileDescriptor fd, PrintWriter writer, Array<String> args)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
void enforceCallingOrSelfUriPermission(Uri uri, int modeFlags, String message)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
void enforcePermission(String permission, int pid, int uid, String message)
Content copied to clipboard
Link copied to clipboard
void enforceUriPermission(Uri uri, int pid, int uid, int modeFlags, String message)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
T getExtraData<T extends ComponentActivity.ExtraData>(Class<T> extraDataClass)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
View onCreateView(View parent, String name, Context context, AttributeSet attrs)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Called when an error occurred.
Link copied to clipboard
Link copied to clipboard
void onGetDirectActions(CancellationSignal cancellationSignal, Consumer<List<DirectAction>> callback)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
void onPerformDirectAction(String actionId, Bundle arguments, CancellationSignal cancellationSignal, Consumer<Bundle> resultListener)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
void onProceedToAnalysisScreen(@NonNull() Document document, @Nullable() String errorMessage)
Content copied to clipboard
Called when the user tapped on the Next button and one of the following conditions apply:
- Analysis is in progress
- Analysis completed with an error
- The image was rotated
You should start your Activity extending AnalysisActivity and set the document as the EXTRA_IN_DOCUMENT extra.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
void onProvideKeyboardShortcuts(List<KeyboardShortcutGroup> data, Menu menu, int deviceId)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
void onRequestPermissionsResult(int requestCode, Array<String> permissions, Array<int> grantResults)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
ActionMode onWindowStartingSupportActionMode(ActionMode.Callback callback)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
SQLiteDatabase openOrCreateDatabase(String name, int mode, SQLiteDatabase.CursorFactory factory)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
void registerActivityLifecycleCallbacks(Application.ActivityLifecycleCallbacks callback)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
final ActivityResultLauncher<I> registerForActivityResult<I, O>(ActivityResultContract<I, O> contract, ActivityResultRegistry registry, ActivityResultCallback<O> callback)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
final void removeOnContextAvailableListener(OnContextAvailableListener listener)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
final void requestPermissions(Array<String> permissions, int requestCode)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
void sendBroadcastWithMultiplePermissions(Intent intent, Array<String> receiverPermissions)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
void sendOrderedBroadcastAsUser(Intent intent, UserHandle user, String receiverPermission, BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initialData, Bundle initialExtras)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
void sendStickyOrderedBroadcast(Intent intent, BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initialData, Bundle initialExtras)
Content copied to clipboard
Link copied to clipboard
void sendStickyOrderedBroadcastAsUser(Intent intent, UserHandle user, BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initialData, Bundle initialExtras)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Set a listener for review events.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
void startActivityFromChild(Activity child, Intent intent, int requestCode)
Content copied to clipboard
Link copied to clipboard
void startActivityFromFragment(Fragment fragment, Intent intent, int requestCode)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
boolean startInstrumentation(ComponentName className, String profileFile, Bundle arguments)
Content copied to clipboard
Link copied to clipboard
void startIntentSender(IntentSender intent, Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags)
Content copied to clipboard
Link copied to clipboard
void startIntentSenderForResult(IntentSender intent, int requestCode, Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags)
Content copied to clipboard
Link copied to clipboard
void startIntentSenderFromChild(Activity child, IntentSender intent, int requestCode, Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags)
Content copied to clipboard
Link copied to clipboard
void startIntentSenderFromFragment(Fragment fragment, IntentSender intent, int requestCode, Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags, Bundle options)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
void startSearch(String initialQuery, boolean selectInitialQuery, Bundle appSearchData, boolean globalSearch)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
void unregisterActivityLifecycleCallbacks(Application.ActivityLifecycleCallbacks callback)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
void updateServiceGroup(ServiceConnection conn, int group, int importance)
Content copied to clipboard
Link copied to clipboard