Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

209
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda