Aller au contenu
View in the app

A better way to browse. Learn more.

Forum de Frandroid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

probleme intent

Featured Replies

Posté(e)

voila je fait appel a vous j'ai un petit souci avec un detail d'imagebutton

quand je clique tout va bien

c'est des que je demarre une des deux activiter lier aux imagebutton, je referme et je ne peut plus cliquer sur le deuxieme

sauf si je tourne l'ecran et que je ferme et reouvre l'application

quand je tourne l'ecran il me marque skimagedecoder::factory returned null

et apres je peut cliquer une deuxieme fois

voici mon onglet3.java

public class Onglet3 extends Activity {

@Override

public void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.onglettroismain);

ImageButton imageButton = (ImageButton) findViewById(R.id.imageButton1);

imageButton.setOnClickListener(new OnClickListener() {

public void onClick(View v) {

setContentView(R.layout.onglettroismain);

Intent intent = new Intent(Onglet3.this, mainroot.class);

startActivity(intent);

}

});

ImageButton imageButton2 = (ImageButton) findViewById(R.id.imageButton2);

imageButton2.setOnClickListener(new OnClickListener() {

public void onClick(View v) {

setContentView(R.layout.onglettroismain);

Intent intent = new Intent(Onglet3.this, mainroot1.class);

startActivity(intent);

}

});

}}

Modifié par Avalondrey51

Posté(e)
  • Auteur

Voila enfin trouver,j'etait passer sur autres choses et apres re lecture

cetait mes " setContentView(R.layout.onglettroismain);"

a changer en (this)

Posté(e)

Pense a mettre un [Resolu] sur le titre de ton post ;-)

Archivé

Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.

Account

Navigation

Rechercher

Rechercher

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.