Skip to content

To generate qrcode using android with save as image class

Notifications You must be signed in to change notification settings

amolood/QRcodeGen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QRcodeGen

To generate qrcode using android with save as image class

how to use CodeGenerator ?

in your activity

  generateCode(YOUR VALUE HERE);

how to save with share our without ?

First parameter is Boolean that do you want to share or not ? ture for save with share. Second parameter is input value. Type (String) Thirtd paramter is output. Type (Bitmap)

saveAndShare(false, inputStr, output);

SaveImage funcation ?

private void saveAndShare(final boolean shouldShare, String name, Bitmap bitmap) {
        if(shouldShare) {
            AppUtils.showToast(mContext, getString(R.string.preparing));
        } else {
            AppUtils.showToast(mContext, getString(R.string.saving));
        }
        SaveImage saveImage = new SaveImage(name, bitmap);
        saveImage.setSaveListener(new SaveImage.SaveListener() {
            @Override
            public void onSaved(String savedTo) {
                if (shouldShare) {
                    AppUtils.share(mActivity, savedTo);
                } else {
                    AppUtils.showToast(mContext, getString(R.string.saved_to) +"'"+ Constants.SAVE_TO +"' "+getString(R.string.directory_in));
                }
            }
        });
        saveImage.execute();
    }

About

To generate qrcode using android with save as image class

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages