Business-Card-Scanner icon indicating copy to clipboard operation
Business-Card-Scanner copied to clipboard

Designing an Animation for loading time of an Activity

Open dhruv2601 opened this issue 6 years ago • 2 comments

It takes around 15-20 seconds to extract the details from a business card, so the user will naturally prefer to see something creative during that time. So, the issue is to create an engaging animation or mid-screen that will keep the user busy/interested in the application for that time duration.

Feel free to contribute, continuous support will be given for understanding the code!

dhruv2601 avatar Oct 08 '17 10:10 dhruv2601

Could you point out the activity in which the card is scanned?

rizal-rovins avatar Oct 08 '17 12:10 rizal-rovins

In the SaveCardActivity you can see the

    public class extractOCR extends AsyncTask<Void, Void, Void> {
    ProgressDialog pDial = new ProgressDialog(SaveCardActivity.this);

    @Override
    protected void onPreExecute() {
        pDial.setIcon(R.drawable.appicon);
        pDial.setMessage("Extracting Details");
        pDial.setCancelable(false);
        pDial.setTitle("Scanning Card");
        pDial.show();
        super.onPreExecute(); 
       }

Currently here an AlertDialog is present, which should be replaced.

dhruv2601 avatar Oct 09 '17 01:10 dhruv2601