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.

Aider un petit débutant....

Featured Replies

Posté(e)

Salut à tous et a toutes.

Je débute en Android et suis actuellement entrain de développer ma première application.

celle-ci est basée sur la géolocalisation, le principe étant que dès que je m'éloigne plus d'une certaine distance d'un point donné, mon téléphone doit sonner.

Comment dois-je procéder pour faire sonner le téléphone?

voici la partie du code où je dois mettre l'alarme :

Double Latitude = Double.parseDouble(Latitude1);
Double Longitude = Double.parseDouble(Longitude1);
float[] resultat = new float[3];
Location.distanceBetween(Latitude,Longitude,location.getLatitude(),location.getLongitude(),resultat);
if(resultat[0] > ripagemax)
{
//ICI ;)
[s]Log.i("Alarme", "wowowowowow on bouge là!");[/s] 
lManager.removeUpdates(this);
};

Quelle classe utiliser?

j'ai regardé quelques posts et mais les alarmes devaient sonner à une heure ou date T.

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.