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.

Ajout de fichiers dans le projet

Featured Replies

Posté(e)

Bonjour,

avez-vous une méthode pour ajouter des fichiers texte ou autre au projet Android pour pouvoir les lire dans l'application directement, en passant par la SDCard ou non, mais qu'il n'y ai pas besoin de télécharger ce fichier ou de le rajouter à la main.

Merci !

Posté(e)
  • Auteur

Un peu avancé, mais toujours un problème : j'ai mis mon fichier dans le dossier Assets du projet, et j'essaye de l'ouvrir :

InputStream ipsEn = getApplicationContext().getAssets().openFd("txt_en").createInputStream();

J'ai l'erreur suivante :

 java.io.FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed

C'est pas le bon chemin pour le fichier ?

Si quelqu'un à une idée ! Merci ! :)

Modifié par Cuillère

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.