├── app
├── .gitignore
├── src
│ ├── main
│ │ ├── sms-web.png
│ │ ├── res
│ │ │ ├── mipmap-hdpi
│ │ │ │ ├── sms.png
│ │ │ │ ├── ic_launcher.png
│ │ │ │ ├── sms_round.png
│ │ │ │ ├── ic_launcher_round.png
│ │ │ │ └── ic_launcher_foreground.png
│ │ │ ├── mipmap-mdpi
│ │ │ │ ├── sms.png
│ │ │ │ ├── ic_launcher.png
│ │ │ │ ├── sms_round.png
│ │ │ │ ├── ic_launcher_round.png
│ │ │ │ └── ic_launcher_foreground.png
│ │ │ ├── mipmap-xhdpi
│ │ │ │ ├── sms.png
│ │ │ │ ├── sms_round.png
│ │ │ │ ├── ic_launcher.png
│ │ │ │ ├── ic_launcher_round.png
│ │ │ │ └── ic_launcher_foreground.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ │ ├── sms.png
│ │ │ │ ├── sms_round.png
│ │ │ │ ├── ic_launcher.png
│ │ │ │ ├── ic_launcher_round.png
│ │ │ │ └── ic_launcher_foreground.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ │ ├── sms.png
│ │ │ │ ├── sms_round.png
│ │ │ │ ├── ic_launcher.png
│ │ │ │ ├── ic_launcher_round.png
│ │ │ │ └── ic_launcher_foreground.png
│ │ │ ├── drawable-hdpi
│ │ │ │ ├── ic_sms.png
│ │ │ │ ├── ic_call.png
│ │ │ │ ├── ic_insta.png
│ │ │ │ ├── ic_contact.png
│ │ │ │ └── ic_action_name.png
│ │ │ ├── drawable-mdpi
│ │ │ │ ├── ic_sms.png
│ │ │ │ ├── ic_call.png
│ │ │ │ ├── ic_insta.png
│ │ │ │ ├── ic_contact.png
│ │ │ │ └── ic_action_name.png
│ │ │ ├── drawable-xhdpi
│ │ │ │ ├── ic_call.png
│ │ │ │ ├── ic_insta.png
│ │ │ │ ├── ic_sms.png
│ │ │ │ ├── ic_contact.png
│ │ │ │ ├── ic_action_name.png
│ │ │ │ └── ic_fcb.xml
│ │ │ ├── drawable-xxhdpi
│ │ │ │ ├── ic_call.png
│ │ │ │ ├── ic_sms.png
│ │ │ │ ├── ic_insta.png
│ │ │ │ ├── ic_contact.png
│ │ │ │ └── ic_action_name.png
│ │ │ ├── values
│ │ │ │ ├── colors.xml
│ │ │ │ ├── dimens.xml
│ │ │ │ ├── strings.xml
│ │ │ │ ├── drawables.xml
│ │ │ │ └── styles.xml
│ │ │ ├── mipmap-anydpi-v26
│ │ │ │ ├── sms.xml
│ │ │ │ ├── sms_round.xml
│ │ │ │ ├── ic_launcher.xml
│ │ │ │ └── ic_launcher_round.xml
│ │ │ ├── values-v21
│ │ │ │ └── styles.xml
│ │ │ ├── drawable
│ │ │ │ ├── side_nav_bar.xml
│ │ │ │ └── ic_launcher_background.xml
│ │ │ ├── drawable-v21
│ │ │ │ ├── ic_menu_send.xml
│ │ │ │ ├── ic_menu_slideshow.xml
│ │ │ │ ├── ic_menu_gallery.xml
│ │ │ │ ├── ic_menu_manage.xml
│ │ │ │ ├── ic_menu_camera.xml
│ │ │ │ └── ic_menu_share.xml
│ │ │ ├── menu
│ │ │ │ ├── main.xml
│ │ │ │ └── activity_main_drawer.xml
│ │ │ ├── layout
│ │ │ │ ├── fragment_received_sms.xml
│ │ │ │ ├── fragment_call_log.xml
│ │ │ │ ├── fragment_insta_notifications.xml
│ │ │ │ ├── fragment_camera.xml
│ │ │ │ ├── fragment_email.xml
│ │ │ │ ├── fragment_contact.xml
│ │ │ │ ├── fragment_notification.xml
│ │ │ │ ├── content_main.xml
│ │ │ │ ├── activity_main.xml
│ │ │ │ ├── app_bar_main.xml
│ │ │ │ ├── nav_header_main.xml
│ │ │ │ ├── contact_cardview_layout.xml
│ │ │ │ ├── item_cardview_layout.xml
│ │ │ │ ├── notification_cardview_layout.xml
│ │ │ │ ├── email_cardview_layout.xml
│ │ │ │ └── call_log_cardview_layout.xml
│ │ │ └── drawable-v24
│ │ │ │ └── ic_launcher_foreground.xml
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── ghazi
│ │ │ │ └── admin
│ │ │ │ ├── Contact.java
│ │ │ │ ├── Sms.java
│ │ │ │ ├── Email.java
│ │ │ │ ├── CallLog.java
│ │ │ │ ├── Notification.java
│ │ │ │ ├── SmsAdapter.java
│ │ │ │ ├── EmailAdapter.java
│ │ │ │ ├── ContactAdapter.java
│ │ │ │ ├── CallLogAdapter.java
│ │ │ │ ├── NotificationAdapter.java
│ │ │ │ ├── ReceivedSmsFragment.java
│ │ │ │ ├── CallLogFragment.java
│ │ │ │ ├── CameraFragment.java
│ │ │ │ ├── EmailFragment.java
│ │ │ │ ├── ContactFragment.java
│ │ │ │ ├── InstaNotificationsFragment.java
│ │ │ │ ├── NotificationFragment.java
│ │ │ │ └── MainActivity.java
│ │ └── AndroidManifest.xml
│ ├── test
│ │ └── java
│ │ │ └── com
│ │ │ └── example
│ │ │ └── ghazi
│ │ │ └── admin
│ │ │ └── ExampleUnitTest.java
│ └── androidTest
│ │ └── java
│ │ └── com
│ │ └── example
│ │ └── ghazi
│ │ └── admin
│ │ └── ExampleInstrumentedTest.java
├── proguard-rules.pro
├── build.gradle
└── google-services.json
├── settings.gradle
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── .gitignore
├── .idea
├── vcs.xml
├── modules.xml
├── runConfigurations.xml
├── gradle.xml
└── misc.xml
├── README.md
├── gradle.properties
├── gradlew.bat
└── gradlew
/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/app/src/main/sms-web.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/sms-web.png
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/sms.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/mipmap-hdpi/sms.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/sms.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/mipmap-mdpi/sms.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/sms.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/mipmap-xhdpi/sms.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/sms.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/mipmap-xxhdpi/sms.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/sms.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/mipmap-xxxhdpi/sms.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/ic_sms.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/drawable-hdpi/ic_sms.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-mdpi/ic_sms.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/drawable-mdpi/ic_sms.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/ic_call.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/drawable-hdpi/ic_call.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/ic_insta.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/drawable-hdpi/ic_insta.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-mdpi/ic_call.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/drawable-mdpi/ic_call.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-mdpi/ic_insta.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/drawable-mdpi/ic_insta.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/ic_call.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/drawable-xhdpi/ic_call.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/ic_insta.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/drawable-xhdpi/ic_insta.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/ic_sms.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/drawable-xhdpi/ic_sms.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxhdpi/ic_call.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/drawable-xxhdpi/ic_call.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxhdpi/ic_sms.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/drawable-xxhdpi/ic_sms.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/sms_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/mipmap-hdpi/sms_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/sms_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/mipmap-mdpi/sms_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/sms_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/mipmap-xhdpi/sms_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/sms_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/mipmap-xxhdpi/sms_round.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/ic_contact.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/drawable-hdpi/ic_contact.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-mdpi/ic_contact.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/drawable-mdpi/ic_contact.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/ic_contact.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/drawable-xhdpi/ic_contact.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxhdpi/ic_insta.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/drawable-xxhdpi/ic_insta.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/sms_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/mipmap-xxxhdpi/sms_round.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/ic_action_name.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/drawable-hdpi/ic_action_name.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-mdpi/ic_action_name.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/drawable-mdpi/ic_action_name.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxhdpi/ic_contact.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/drawable-xxhdpi/ic_contact.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/ic_action_name.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/drawable-xhdpi/ic_action_name.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxhdpi/ic_action_name.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/drawable-xxhdpi/ic_action_name.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ghazikr/SpyAppAdmin/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/workspace.xml
5 | /.idea/libraries
6 | .DS_Store
7 | /build
8 | /captures
9 | .externalNativeBuild
10 |
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
154 | * See the Android Training lesson Communicating with Other Fragments for more information.
157 | */
158 | public interface OnFragmentInteractionListener {
159 | // TODO: Update argument type and name
160 | void onFragmentInteraction(Uri uri);
161 | }
162 | }
163 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/ghazi/admin/CallLogFragment.java:
--------------------------------------------------------------------------------
1 | package com.example.ghazi.admin;
2 |
3 | import android.content.Context;
4 | import android.net.Uri;
5 | import android.os.Bundle;
6 | import android.support.annotation.NonNull;
7 | import android.support.v4.app.Fragment;
8 | import android.support.v7.widget.LinearLayoutManager;
9 | import android.support.v7.widget.RecyclerView;
10 | import android.util.Log;
11 | import android.view.LayoutInflater;
12 | import android.view.View;
13 | import android.view.ViewGroup;
14 | import android.widget.ArrayAdapter;
15 | import android.widget.ListView;
16 |
17 | import com.google.android.gms.tasks.OnCompleteListener;
18 | import com.google.android.gms.tasks.Task;
19 | import com.google.firebase.firestore.DocumentSnapshot;
20 | import com.google.firebase.firestore.FirebaseFirestore;
21 | import com.google.firebase.firestore.QuerySnapshot;
22 |
23 | import java.util.ArrayList;
24 |
25 |
26 | /**
27 | * A simple {@link Fragment} subclass.
28 | * Activities that contain this fragment must implement the
29 | * {@link CallLogFragment.OnFragmentInteractionListener} interface
30 | * to handle interaction events.
31 | * Use the {@link CallLogFragment#newInstance} factory method to
32 | * create an instance of this fragment.
33 | */
34 | public class CallLogFragment extends Fragment {
35 | // TODO: Rename parameter arguments, choose names that match
36 | // the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
37 | private static final String ARG_PARAM1 = "param1";
38 | private static final String ARG_PARAM2 = "param2";
39 |
40 | // TODO: Rename and change types of parameters
41 | private String mParam1;
42 | private String mParam2;
43 |
44 | private OnFragmentInteractionListener mListener;
45 | private ArrayList
149 | * See the Android Training lesson Communicating with Other Fragments for more information.
152 | */
153 | public interface OnFragmentInteractionListener {
154 | // TODO: Update argument type and name
155 | void onFragmentInteraction(Uri uri);
156 | }
157 | }
158 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/ghazi/admin/CameraFragment.java:
--------------------------------------------------------------------------------
1 | package com.example.ghazi.admin;
2 |
3 | import android.content.Context;
4 | import android.net.Uri;
5 | import android.os.Bundle;
6 | import android.support.annotation.NonNull;
7 | import android.support.v4.app.Fragment;
8 | import android.support.v7.widget.LinearLayoutManager;
9 | import android.support.v7.widget.RecyclerView;
10 | import android.util.Log;
11 | import android.view.LayoutInflater;
12 | import android.view.View;
13 | import android.view.ViewGroup;
14 | import android.widget.ArrayAdapter;
15 | import android.widget.ListView;
16 |
17 | import com.google.android.gms.tasks.OnCompleteListener;
18 | import com.google.android.gms.tasks.Task;
19 | import com.google.firebase.firestore.DocumentSnapshot;
20 | import com.google.firebase.firestore.FirebaseFirestore;
21 | import com.google.firebase.firestore.QuerySnapshot;
22 |
23 | import java.util.ArrayList;
24 |
25 | import static android.content.ContentValues.TAG;
26 |
27 |
28 | /**
29 | * A simple {@link Fragment} subclass.
30 | * Activities that contain this fragment must implement the
31 | * {@link CameraFragment.OnFragmentInteractionListener} interface
32 | * to handle interaction events.
33 | * Use the {@link CameraFragment#newInstance} factory method to
34 | * create an instance of this fragment.
35 | */
36 | public class CameraFragment extends Fragment {
37 | // TODO: Rename parameter arguments, choose names that match
38 | // the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
39 | private static final String ARG_PARAM1 = "param1";
40 | private static final String ARG_PARAM2 = "param2";
41 | private ArrayList
156 | * See the Android Training lesson Communicating with Other Fragments for more information.
159 | */
160 | public interface OnFragmentInteractionListener {
161 | // TODO: Update argument type and name
162 | void onFragmentInteraction(Uri uri);
163 | }
164 | }
165 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/ghazi/admin/EmailFragment.java:
--------------------------------------------------------------------------------
1 | package com.example.ghazi.admin;
2 |
3 | import android.content.Context;
4 | import android.net.Uri;
5 | import android.os.Bundle;
6 | import android.support.annotation.NonNull;
7 | import android.support.v4.app.Fragment;
8 | import android.support.v7.widget.LinearLayoutManager;
9 | import android.support.v7.widget.RecyclerView;
10 | import android.util.Log;
11 | import android.view.LayoutInflater;
12 | import android.view.View;
13 | import android.view.ViewGroup;
14 | import android.widget.ArrayAdapter;
15 | import android.widget.ListView;
16 |
17 | import com.google.android.gms.tasks.OnCompleteListener;
18 | import com.google.android.gms.tasks.Task;
19 | import com.google.firebase.firestore.DocumentSnapshot;
20 | import com.google.firebase.firestore.FirebaseFirestore;
21 | import com.google.firebase.firestore.QuerySnapshot;
22 |
23 | import java.util.ArrayList;
24 | import java.util.Collections;
25 | import java.util.Comparator;
26 |
27 |
28 | /**
29 | * A simple {@link Fragment} subclass.
30 | * Activities that contain this fragment must implement the
31 | * {@link NotificationFragment.OnFragmentInteractionListener} interface
32 | * to handle interaction events.
33 | * Use the {@link NotificationFragment#newInstance} factory method to
34 | * create an instance of this fragment.
35 | */
36 |
37 |
38 | public class EmailFragment extends Fragment {
39 | // TODO: Rename parameter arguments, choose names that match
40 | // the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
41 | private static final String ARG_PARAM1 = "param1";
42 | private static final String ARG_PARAM2 = "param2";
43 |
44 | // TODO: Rename and change types of parameters
45 | private String mParam1;
46 | private String mParam2;
47 |
48 | private OnFragmentInteractionListener mListener;
49 | private ArrayList
157 | * See the Android Training lesson Communicating with Other Fragments for more information.
160 | */
161 | public interface OnFragmentInteractionListener {
162 | // TODO: Update argument type and name
163 | void onFragmentInteraction(Uri uri);
164 | }
165 | }
166 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/ghazi/admin/ContactFragment.java:
--------------------------------------------------------------------------------
1 | package com.example.ghazi.admin;
2 |
3 | import android.content.Context;
4 | import android.net.Uri;
5 | import android.os.Bundle;
6 | import android.support.annotation.NonNull;
7 | import android.support.v4.app.Fragment;
8 | import android.support.v4.widget.SwipeRefreshLayout;
9 | import android.support.v7.widget.GridLayoutManager;
10 | import android.support.v7.widget.LinearLayoutManager;
11 | import android.support.v7.widget.RecyclerView;
12 | import android.util.Log;
13 | import android.view.LayoutInflater;
14 | import android.view.View;
15 | import android.view.ViewGroup;
16 | import android.widget.ArrayAdapter;
17 | import android.widget.ListView;
18 |
19 | import com.google.android.gms.tasks.OnCompleteListener;
20 | import com.google.android.gms.tasks.Task;
21 | import com.google.firebase.firestore.DocumentSnapshot;
22 | import com.google.firebase.firestore.FirebaseFirestore;
23 | import com.google.firebase.firestore.QuerySnapshot;
24 |
25 | import java.util.ArrayList;
26 |
27 |
28 | /**
29 | * A simple {@link Fragment} subclass.
30 | * Activities that contain this fragment must implement the
31 | * {@link ContactFragment.OnFragmentInteractionListener} interface
32 | * to handle interaction events.
33 | * Use the {@link ContactFragment#newInstance} factory method to
34 | * create an instance of this fragment.
35 | */
36 | public class ContactFragment extends Fragment implements SwipeRefreshLayout.OnRefreshListener {
37 | // TODO: Rename parameter arguments, choose names that match
38 | // the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
39 | private static final String ARG_PARAM1 = "param1";
40 | private static final String ARG_PARAM2 = "param2";
41 |
42 | // TODO: Rename and change types of parameters
43 | private String mParam1;
44 | private String mParam2;
45 |
46 | private OnFragmentInteractionListener mListener;
47 | private ArrayList
163 | * See the Android Training lesson Communicating with Other Fragments for more information.
166 | */
167 | public interface OnFragmentInteractionListener {
168 | // TODO: Update argument type and name
169 | void onFragmentInteraction(Uri uri);
170 | }
171 | }
172 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/ghazi/admin/InstaNotificationsFragment.java:
--------------------------------------------------------------------------------
1 | package com.example.ghazi.admin;
2 |
3 | import android.content.Context;
4 | import android.net.Uri;
5 | import android.os.Bundle;
6 | import android.support.annotation.NonNull;
7 | import android.support.v4.app.Fragment;
8 | import android.support.v7.widget.LinearLayoutManager;
9 | import android.support.v7.widget.RecyclerView;
10 | import android.util.Log;
11 | import android.view.LayoutInflater;
12 | import android.view.View;
13 | import android.view.ViewGroup;
14 | import android.widget.ArrayAdapter;
15 | import android.widget.ListView;
16 |
17 | import com.google.android.gms.tasks.OnCompleteListener;
18 | import com.google.android.gms.tasks.Task;
19 | import com.google.firebase.firestore.DocumentSnapshot;
20 | import com.google.firebase.firestore.FirebaseFirestore;
21 | import com.google.firebase.firestore.QuerySnapshot;
22 |
23 | import java.util.ArrayList;
24 |
25 |
26 | /**
27 | * A simple {@link Fragment} subclass.
28 | * Activities that contain this fragment must implement the
29 | * {@link NotificationFragment.OnFragmentInteractionListener} interface
30 | * to handle interaction events.
31 | * Use the {@link NotificationFragment#newInstance} factory method to
32 | * create an instance of this fragment.
33 | */
34 | public class InstaNotificationsFragment extends Fragment {
35 | // TODO: Rename parameter arguments, choose names that match
36 | // the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
37 | private static final String ARG_PARAM1 = "param1";
38 | private static final String ARG_PARAM2 = "param2";
39 |
40 | // TODO: Rename and change types of parameters
41 | private String mParam1;
42 | private String mParam2;
43 |
44 | private OnFragmentInteractionListener mListener;
45 | private ArrayList