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.

[Résolu] Background dans application

Featured Replies

Posté(e)

Bonjour,

J'essaye désespérément d'ajouter une image de fond sur mon appli mais ceci provoque un crash ("Forcer la fermeture") au démarrage de celle-ci.

Voici un extrait de mon code :


<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
             android:layout_width="fill_parent"
             android:layout_height="fill_parent"
             android:gravity="center_vertical"
             android:background="@drawable/android"
             android:orientation="vertical" >

Mon background se nomme bien "android.jpg" et se trouve dans le dossier "res/drawable".

Si vous pouvez m'aider, je vous écoute !

Modifié par axool

Posté(e)
  • Auteur

Visiblement j'ai un "NotFoundException" alors que mon fichier se trouve bien à l'endroit prévu :

$NotFoundException: File res/drawable/android.jpg from xml type layout resource ID #0x7f020000

Je comprends pas vraiment là ...

Même quand je retire la ligne "android:background="@drawable/android", j'ai une erreur ... Le fichier .jpg semble poser problème ...

EDIT : résolu en faisant un "Clean & Build" sous NetBeans ...

Modifié par axool

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.