Skip to content
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/textView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/accueil_soustitre"
android:textColor="@android:color/white"
android:background="#6DD100"
android:textSize="25sp"
android:paddingBottom="20dp"
android:paddingTop="20dp"
android:gravity="center"
android:textStyle="bold"/>
<TextView
android:id="@+id/textView2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/accueil_info"/>
<!--android:autoLink="all"
android:autoLink="phone|email"-->
<TextView
android:id="@+id/textView3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/stub"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
android:id="@+id/btmap"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/map_title"
android:layout_weight="1"/>
<Button
android:id="@+id/btWarning"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/alerte_titre"
android:layout_weight="1"/>
</LinearLayout>
<Button
android:id="@+id/btannuaire"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Annuaire" />
</LinearLayout>
</ScrollView>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:id="@+id/alerte_intitule"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/alerte_intitule"
android:labelFor="@id/alerte_intitule" />
<EditText
android:id="@+id/alerte_editText_intitule"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:inputType="text"
android:text="" />
<TextView
android:id="@+id/alerte_lieu"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/alerte_lieu" />
<AutoCompleteTextView
android:id="@+id/alerte_AutoC_lieu"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:inputType="text"
android:text="" />
<TextView
android:id="@+id/alerte_information"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/alerte_information" />
<EditText
android:id="@+id/alerte_editText_information"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="top"
android:ems="10"
android:layout_weight="10"
android:inputType="textCapSentences|textMultiLine"
android:text="" />
<CheckBox
android:id="@+id/alerte_checkBox_urgent"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/alerte_urgent" />
<Button
android:id="@+id/alerte_bt_envoyer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="SEND"
android:onClick="envoyerClick"/>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1">
<TextView
android:id="@+id/ttitre"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/animal_title"
android:textSize="30sp"
android:gravity="center"
android:paddingBottom="20dp"
android:paddingTop="20dp"
android:background="#6DD100"
android:textColor="@android:color/white"
/>
<TextView
android:id="@+id/tNom"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/animal_nom"
android:textSize="15sp"/>
<EditText
android:id="@+id/edNom"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:inputType="text"
android:text="" />
<TextView
android:id="@+id/tAge"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/animal_age"
android:textSize="15sp"/>
<EditText
android:id="@+id/etAge"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:inputType="text"
android:text="" />
<TextView
android:id="@+id/tEspece"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/animal_espece"
android:textSize="15sp"/>
<EditText
android:id="@+id/etEspece"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:inputType="text"
android:text="" />
<Button
android:id="@+id/btAddAnimal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Enregistrer" />
<Button
android:id="@+id/btChercher"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/animal_chercher" />
<ScrollView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
<TextView
android:id="@+id/tvresultat"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="15sp"
/>
</ScrollView>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:stretchColumns="*">
<TableRow android:background="@android:color/holo_green_light">
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
style="@style/cellule"
android:text="Directrice"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="09090909"
android:autoLink="phone"
style="@style/cellule.tel"/>
</TableRow>
<TableRow>
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="Directrice-adjointe"
style="@style/cellule"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="09090909"
android:autoLink="phone"
style="@style/cellule.tel"/>
</TableRow>
<TableRow android:background="@android:color/holo_green_light">
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="Bernard le koala"
style="@style/cellule"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="022090909"
android:autoLink="phone"
style="@style/cellule.tel"/>
</TableRow>
<TableRow>
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="Bernadette la chouette"
style="@style/cellule"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="5263628391"
android:autoLink="phone"
style="@style/cellule.tel"
/>
</TableRow>
</TableLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:title="@string/menu_carte"
android:id="@+id/menu_carte"
android:icon="@android:drawable/ic_menu_mapmode"
android:showAsAction="ifRoom"/>
<item android:title="@string/animal_title"
android:id="@+id/menu_animaux"
android:icon="@android:drawable/ic_menu_add"
android:showAsAction="ifRoom"
/>
<item android:title="@string/menu_option"
android:id="@+id/menu_option"
android:icon="@android:drawable/ic_menu_preferences"
android:showAsAction="ifRoom"
>
<menu>
<item android:title="@string/menu_envoyer"
android:id="@+id/menu_envoyer"
android:icon="@android:drawable/ic_menu_send"
android:checkable="true"/>
/>
</menu>
</item>
</menu>
\ No newline at end of file
<resources>
<string name="map_title">Accueil</string>
<string name="Stephane_emotional_map">Zoo du 31</string>
<string name="fish_tank">Aquarium</string>
<string name="popcorn">Popcorn</string>
<string name="map_welcome_msg">Bienvenu au zoo</string>
<string name="popcorn_warning">Ne pas nourrir les poissons (%1$d %2$s)</string>
<plurals name="popcorn_seconds">
<item quantity="one">seconde</item>
<item quantity="other">secondes</item>
</plurals>
<string name="accueil_soustitre">app officielle</string>
<string name="accueil_info">Robert est très content de vous voir ici, voici son numéro 0309090909 et son adresse mail Robertdu56@yahoo.com</string>
<string name="alerte_titre">Alerte !</string>
</resources>
\ No newline at end of file
<resources>
<string name="app_name" translatable="false">Zoo</string>
<string name="Stephane_emotional_map" translatable="false">Zoo map</string>
<string name="map_title" translatable="false">Home</string>
<string name="fish_tank" translatable="false">Fish Tank</string>
<string name="popcorn" translatable="false">Popcorn</string>
<string name="map_welcome_msg" translatable="false">Welcom !</string>
<!-- Pour les textes à trous : -->
<string name="popcorn_warning" translatable="false">Don\'t feed fish (%1$d %2$s)</string>
<!-- gérer les pluriels -->
<plurals name="popcorn_seconds" translatable="false">
<item quantity="one">second</item>
<item quantity="other">seconds</item>
</plurals>
<string name="accueil_soustitre" translatable="false">official app</string>
<string name="accueil_info" translatable="false">You can contact bob if your children have been eated by a lion.
\n<b>The zoo decline all responsibility </b> for any injury we can have during your visit.
the zoo surface is about 30000 m<small><sup>2</sup></small>. You can contact bob at 0709080809</string>
<string name="stub" translatable="false">**********************</string>
<string name="alerte_titre" translatable="false">WARNING</string>
<!-- FORMULAIRE-->
<string name="alerte_intitule" translatable="false">Intitulé</string>
<string name="alerte_lieu" translatable="false">Lieu</string>
<string name="alerte_information" translatable="false">Information</string>
<string name="alerte_urgent" translatable="false">Urgent</string>
<string name="alerte_envois" translatable="false"> Alerte %1$s envoyée </string>
<string name="alerte_envois_urgent" translatable="false">Alerte %1$s URGENT !!!!!!</string>
<array name="alerte_lieu" translatable="false">
<item>Enclos des lions</item>
<item>Aquarium</item>
<item>Enclos des singes</item>
<item>Buvette</item>
<item>Stand de saucisse</item>
<item>Secours</item>
<item>Terrarium</item>
</array>
<string name="annuaire_titre" translatable="false">Annuaire</string>
<string name="alerte_confirmé" translatable="false">Confirmer envois ?</string>
<string name="menu_carte" translatable="false">Map</string>
<string name="menu_option" translatable="false">Option</string>
<string name="menu_envoyer" translatable="false">Send</string>
<string name="menu_animaux" translatable="false">Animals</string>
<string name="animal_title" translatable="false">Add Animals</string>
<string name="animal_espece" translatable="false">Species</string>
<string name="animal_age" translatable="false">Age</string>
<string name="animal_nom" translatable="false">Nom</string>
<string name="animal_validation" translatable="false">Tout les champs doivent être remplit ! </string>
<string name="animal_espece_dont_exist" translatable="false">This species doesn\'t exist in the zoo ! </string>
<string name="animal_chercher" translatable="false">Chercher Animal</string>
</resources>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="cellule">
<!--APPLIQUE A TOUT ELEMENTS AVEC CE STYLE -->
<item name="android:layout_margin">2sp</item>
</style>
<style name="cellule.tel">
<item name="android:gravity">end</item>
</style>
<style name="annuaire_gris" parent="Theme.AppCompat.Light">
<item name="android:background">#8599A2</item>
</style>
</resources>
\ No newline at end of file
package com.ldnr.welovestephane;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() {
assertEquals(4, 2 + 2);
}
}
\ No newline at end of file
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
alias(libs.plugins.android.application) apply false
}
\ No newline at end of file
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. For more details, visit
# https://developer.android.com/r/tools/gradle-multi-project-decoupled-projects
# org.gradle.parallel=true
# AndroidX package structure to make it clearer which packages are bundled with the
# Android operating system, and which are packaged with your app's APK
# https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX=true
# Enables namespacing of each library's R class so that its R class includes only the
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
\ No newline at end of file
[versions]
agp = "8.4.0"
junit = "4.13.2"
junitVersion = "1.1.5"
espressoCore = "3.5.1"
appcompat = "1.6.1"
material = "1.10.0"
[libraries]
junit = { group = "junit", name = "junit", version.ref = "junit" }
ext-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" }
espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" }
appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }
material = { group = "com.google.android.material", name = "material", version.ref = "material" }
[plugins]
android-application = { id = "com.android.application", version.ref = "agp" }
#Tue May 21 13:54:39 CEST 2024
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
#!/usr/bin/env sh
#
# Copyright 2015 the original author or authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
##############################################################################
##
## Gradle start up script for UN*X
##
##############################################################################
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
# Need this for relative symlinks.
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$link"
fi
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >/dev/null
APP_HOME="`pwd -P`"
cd "$SAVED" >/dev/null
APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
warn () {
echo "$*"
}
die () {
echo
echo "$*"
echo
exit 1
}
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "`uname`" in
CYGWIN* )
cygwin=true
;;
Darwin* )
darwin=true
;;
MINGW* )
msys=true
;;
NONSTOP* )
nonstop=true
;;
esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD="java"
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
# Increase the maximum file descriptors if we can.
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
MAX_FD_LIMIT=`ulimit -H -n`
if [ $? -eq 0 ] ; then
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
MAX_FD="$MAX_FD_LIMIT"
fi
ulimit -n $MAX_FD
if [ $? -ne 0 ] ; then
warn "Could not set maximum file descriptor limit: $MAX_FD"
fi
else
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
fi
fi
# For Darwin, add options to specify how the application appears in the dock
if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi
# For Cygwin or MSYS, switch paths to Windows format before running java
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
JAVACMD=`cygpath --unix "$JAVACMD"`
# We build the pattern for arguments to be converted via cygpath
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
SEP=""
for dir in $ROOTDIRSRAW ; do
ROOTDIRS="$ROOTDIRS$SEP$dir"
SEP="|"
done
OURCYGPATTERN="(^($ROOTDIRS))"
# Add a user-defined pattern to the cygpath arguments
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
fi
# Now convert the arguments - kludge to limit ourselves to /bin/sh
i=0
for arg in "$@" ; do
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
else
eval `echo args$i`="\"$arg\""
fi
i=`expr $i + 1`
done
case $i in
0) set -- ;;
1) set -- "$args0" ;;
2) set -- "$args0" "$args1" ;;
3) set -- "$args0" "$args1" "$args2" ;;
4) set -- "$args0" "$args1" "$args2" "$args3" ;;
5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
esac
fi
# Escape application args
save () {
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
echo " "
}
APP_ARGS=`save "$@"`
# Collect all arguments for the java command, following the shell quoting and substitution rules
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
exec "$JAVACMD" "$@"