dhruv2601 / Business-Card-Scanner

Engine for Optical Character Recognition to scan Business Cards locally on Android devices.
https://play.google.com/store/apps/details?id=businesscard.dhruv.businesscardscanner
26 stars 15 forks source link

Designing an Animation for loading time of an Activity #5

Open dhruv2601 opened 6 years ago

dhruv2601 commented 6 years ago

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!

rizal-rovins commented 6 years ago

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

dhruv2601 commented 6 years ago

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.