Business-Card-Scanner
Business-Card-Scanner copied to clipboard
Designing an Animation for loading time of an Activity
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!
Could you point out the activity in which the card is scanned?
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.