diff --git a/app/src/main/java/com/example/akash/geofencingyou/MainActivity.java b/app/src/main/java/com/example/akash/geofencingyou/MainActivity.java
index b8c1aa9..ccc8b85 100644
--- a/app/src/main/java/com/example/akash/geofencingyou/MainActivity.java
+++ b/app/src/main/java/com/example/akash/geofencingyou/MainActivity.java
@@ -24,6 +24,10 @@ protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
RelativeLayout constraintLayout = (RelativeLayout) findViewById(R.id.cl_home);
+
+ /*
+ Animated drawable on home screen
+ */
animationDrawable = (AnimationDrawable) constraintLayout.getBackground();
animationDrawable.setEnterFadeDuration(2000);
animationDrawable.setExitFadeDuration(3000);
diff --git a/app/src/main/java/com/example/akash/geofencingyou/MyIntentServiceGeoFencing.java b/app/src/main/java/com/example/akash/geofencingyou/MyIntentServiceGeoFencing.java
index 0942e2d..29b6dee 100644
--- a/app/src/main/java/com/example/akash/geofencingyou/MyIntentServiceGeoFencing.java
+++ b/app/src/main/java/com/example/akash/geofencingyou/MyIntentServiceGeoFencing.java
@@ -26,16 +26,16 @@ protected void onHandleIntent(Intent intent) {
String message = "";
GeofencingEvent geofencingEvent = GeofencingEvent.fromIntent(intent);
if (geofencingEvent.getGeofenceTransition() == Geofence.GEOFENCE_TRANSITION_ENTER) {
- message = "Entering In the Geofence";
+ message = getString(R.string.txt_enter_geofence);
Log.e("GeoFenceService", "Entering Geofence");
} else if (geofencingEvent.getGeofenceTransition() == Geofence.GEOFENCE_TRANSITION_EXIT) {
- message = "Exiting from the Geofence";
+ message = getString(R.string.txt_exiting_geofence);
Log.e("GeoFenceService", "Exiting Geofence");
}
NotificationCompat.Builder mBuilder =
new NotificationCompat.Builder(this)
.setSmallIcon(R.drawable.cast_ic_notification_small_icon)
- .setContentTitle("Geofence Notification")
+ .setContentTitle(getString(R.string.txt_notification_title))
.setContentText(message);
// Sets an ID for the notification
diff --git a/app/src/main/res/layout/activity_sample.xml b/app/src/main/res/layout/activity_sample.xml
deleted file mode 100644
index fc7757a..0000000
--- a/app/src/main/res/layout/activity_sample.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index ae8fd6b..b2ba2d8 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -1,3 +1,6 @@
GeoFencingYou
+ Entering In the Geofence
+ Exiting from the Geofence
+ Geofence Notification