Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

215
Views
I got problem when i update targetSdkVersion 29 to targetSdkVersion 30

hello all i have problem with my app i update targetSdkVersion from 29 to targetSdkVersion 30 or 31

and i got problem
app work in all android version 10,9,8,7,etc

in android 11 I have button stop work to change from activity 1 to activity 2

this java from first java activity

                case 503:
                    if (this.mMainGalleryLayout.getVisibility() == View.VISIBLE) {
                        this.mMainGalleryLayout.setVisibility(View.GONE);
                    }
                    if (this.mPatternGalleryLayout.getVisibility() == View.VISIBLE) {
                        this.mPatternGalleryLayout.setVisibility(View.GONE);
                    }
                    if (this.mSeekbarLayout.getVisibility() == View.VISIBLE) {
                        this.mSeekbarLayout.setVisibility(View.GONE);
                    }
                    if (this.mGridLayout.getVisibility() == View.VISIBLE) {
                        this.mGridLayout.setVisibility(View.GONE);
                    }
                    if (this.mFrameRatiosGalleryLayout.getVisibility() == View.VISIBLE) {
                        this.mFrameRatiosGalleryLayout.setVisibility(View.GONE);
                    }
                    if (this.mCount < this.mFrameNumber) {
                        Toast.makeText(getApplicationContext(), "Please fill all the images.", Toast.LENGTH_SHORT).show();
                        return;
                    } else if (!this.nextButtonClick) {
                        this.nextButtonClick = true;
                        hideAllAdjustor();
                        disableAllGalleryLayouts();
                        this.mMainFrameLayout.setDrawingCacheEnabled(false);
                        this.mFinalBitmap = this.mMainFrameLayout.getDrawingCache(true);
                        String saveBitmap = saveBitmap("imageforaddingstickerandtext", 100, this.mFinalBitmap);
                        this.mMainFrameLayout.destroyDrawingCache();
                        File file = new File(saveBitmap);
                        if (file.exists()) {
                            OpenShareActivity();

                            Intent Intent = new Intent(this, ShareActivity.class);
                            startActivity(Intent);

                        }

                        return;
                    } else {
                        return;
                    }

this 2 pic will explain the problem when i press the save icon in pic should be move to this activity

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

What's the problem?

You just said that "in android 11 I have button stop work to change from activity 1 to activity 2"

Does it mean that this code doesn't work? Did you add some debugged log to check the problem point?

else if (!this.nextButtonClick) {
                        this.nextButtonClick = true;
                        hideAllAdjustor();
                        disableAllGalleryLayouts();
                        this.mMainFrameLayout.setDrawingCacheEnabled(false);
                        this.mFinalBitmap = this.mMainFrameLayout.getDrawingCache(true);
                        String saveBitmap = saveBitmap("imageforaddingstickerandtext", 100, this.mFinalBitmap);
                        this.mMainFrameLayout.destroyDrawingCache();
                        File file = new File(saveBitmap);
                        if (file.exists()) {
                            OpenShareActivity();

                            Intent Intent = new Intent(this, ShareActivity.class);
                            startActivity(Intent);

                        }

                        return;
                    }
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!