├── settings.gradle ├── .gradle ├── 4.4 │ ├── fileChanges │ │ └── last-build.bin │ ├── fileHashes │ │ ├── fileHashes.bin │ │ ├── fileHashes.lock │ │ └── resourceHashesCache.bin │ ├── javaCompile │ │ ├── taskJars.bin │ │ ├── jarAnalysis.bin │ │ ├── javaCompile.lock │ │ ├── taskHistory.bin │ │ └── classAnalysis.bin │ ├── fileContent │ │ └── fileContent.lock │ └── taskHistory │ │ ├── taskHistory.bin │ │ └── taskHistory.lock └── buildOutputCleanup │ ├── cache.properties │ ├── outputFiles.bin │ └── buildOutputCleanup.lock ├── WhatsApp.apk ├── Screenshots ├── s1.png └── s2.png ├── app ├── src │ ├── main │ │ ├── res │ │ │ ├── drawable │ │ │ │ ├── i1.jpg │ │ │ │ ├── icon.png │ │ │ │ ├── send.png │ │ │ │ ├── attachment.png │ │ │ │ ├── icon_round.png │ │ │ │ ├── attach_camera.png │ │ │ │ ├── input_emoji.png │ │ │ │ ├── attach_gallery.png │ │ │ │ ├── attach_location.png │ │ │ │ ├── arrow_back_black.png │ │ │ │ ├── arrow_back_white.png │ │ │ │ ├── message_background.jpg │ │ │ │ ├── rectangle_grey2.xml │ │ │ │ ├── rectangle_green2.xml │ │ │ │ ├── video.xml │ │ │ │ ├── account.xml │ │ │ │ ├── message.xml │ │ │ │ ├── message_processing.xml │ │ │ │ ├── plus.xml │ │ │ │ ├── rectangle.xml │ │ │ │ ├── rectangle_green.xml │ │ │ │ ├── rectangle_grey.xml │ │ │ │ ├── camera.xml │ │ │ │ ├── dots_vertical.xml │ │ │ │ ├── magnify.xml │ │ │ │ ├── phone.xml │ │ │ │ ├── attach.xml │ │ │ │ └── ic_launcher_background.xml │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ ├── layout │ │ │ │ ├── user_details_tool_bar.xml │ │ │ │ ├── activity_show_image.xml │ │ │ │ ├── activity_contact.xml │ │ │ │ ├── received_text.xml │ │ │ │ ├── sent_text.xml │ │ │ │ ├── tool_bar2.xml │ │ │ │ ├── fragment_chat.xml │ │ │ │ ├── fragment_contacts.xml │ │ │ │ ├── search_contact.xml │ │ │ │ ├── received_image.xml │ │ │ │ ├── sent_image.xml │ │ │ │ ├── editaccount.xml │ │ │ │ ├── contact_cell.xml │ │ │ │ ├── person_cell.xml │ │ │ │ ├── tool_bar.xml │ │ │ │ ├── activity_verify_phone_number.xml │ │ │ │ ├── activity_set_profile_data.xml │ │ │ │ ├── activity_register_phone_number.xml │ │ │ │ ├── settings.xml │ │ │ │ ├── activity_chat.xml │ │ │ │ ├── activity_user_details_screen.xml │ │ │ │ └── activity_message.xml │ │ │ ├── values │ │ │ │ ├── dimens.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── styles.xml │ │ │ │ └── strings.xml │ │ │ ├── menu │ │ │ │ ├── message_menu.xml │ │ │ │ └── menu_chat.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ └── drawable-v24 │ │ │ │ └── ic_launcher_foreground.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── whatsapp │ │ │ │ ├── AttachmentCell.java │ │ │ │ ├── MyReceiver.java │ │ │ │ ├── ShowImage.java │ │ │ │ ├── PersonCell.java │ │ │ │ ├── ContactCell.java │ │ │ │ ├── Message.java │ │ │ │ ├── DBHelper.java │ │ │ │ ├── ContactActivity.java │ │ │ │ ├── ContactAdapter.java │ │ │ │ ├── ContactAdapter2.java │ │ │ │ ├── VerifyPhoneNumberActivity.java │ │ │ │ ├── UserDetailsScreen.java │ │ │ │ ├── SetProfileData.java │ │ │ │ ├── ChatAdapter.java │ │ │ │ ├── RegisterPhoneNumber.java │ │ │ │ ├── MessageAdapter.java │ │ │ │ ├── Settings.java │ │ │ │ ├── editaccount.java │ │ │ │ ├── SyncMessagesService.java │ │ │ │ └── ChatActivity.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── example │ │ │ └── whatsapp │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── example │ │ └── whatsapp │ │ └── ExampleInstrumentedTest.java └── build.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── local.properties ├── gradle.properties ├── LICENSE ├── README.md ├── gradlew.bat └── gradlew /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /.gradle/4.4/fileChanges/last-build.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /WhatsApp.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarhanShoukat/MessagingApp/HEAD/WhatsApp.apk -------------------------------------------------------------------------------- /Screenshots/s1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarhanShoukat/MessagingApp/HEAD/Screenshots/s1.png -------------------------------------------------------------------------------- /Screenshots/s2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarhanShoukat/MessagingApp/HEAD/Screenshots/s2.png -------------------------------------------------------------------------------- /.gradle/buildOutputCleanup/cache.properties: -------------------------------------------------------------------------------- 1 | #Sun Sep 09 12:29:42 PKT 2018 2 | gradle.version=4.4 3 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/i1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarhanShoukat/MessagingApp/HEAD/app/src/main/res/drawable/i1.jpg -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarhanShoukat/MessagingApp/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/drawable/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarhanShoukat/MessagingApp/HEAD/app/src/main/res/drawable/icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/send.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarhanShoukat/MessagingApp/HEAD/app/src/main/res/drawable/send.png -------------------------------------------------------------------------------- /.gradle/4.4/fileHashes/fileHashes.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarhanShoukat/MessagingApp/HEAD/.gradle/4.4/fileHashes/fileHashes.bin -------------------------------------------------------------------------------- /.gradle/4.4/fileHashes/fileHashes.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarhanShoukat/MessagingApp/HEAD/.gradle/4.4/fileHashes/fileHashes.lock -------------------------------------------------------------------------------- /.gradle/4.4/javaCompile/taskJars.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarhanShoukat/MessagingApp/HEAD/.gradle/4.4/javaCompile/taskJars.bin -------------------------------------------------------------------------------- /.gradle/4.4/fileContent/fileContent.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarhanShoukat/MessagingApp/HEAD/.gradle/4.4/fileContent/fileContent.lock -------------------------------------------------------------------------------- /.gradle/4.4/javaCompile/jarAnalysis.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarhanShoukat/MessagingApp/HEAD/.gradle/4.4/javaCompile/jarAnalysis.bin -------------------------------------------------------------------------------- /.gradle/4.4/javaCompile/javaCompile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarhanShoukat/MessagingApp/HEAD/.gradle/4.4/javaCompile/javaCompile.lock -------------------------------------------------------------------------------- /.gradle/4.4/javaCompile/taskHistory.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarhanShoukat/MessagingApp/HEAD/.gradle/4.4/javaCompile/taskHistory.bin -------------------------------------------------------------------------------- /.gradle/4.4/taskHistory/taskHistory.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarhanShoukat/MessagingApp/HEAD/.gradle/4.4/taskHistory/taskHistory.bin -------------------------------------------------------------------------------- /.gradle/4.4/taskHistory/taskHistory.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarhanShoukat/MessagingApp/HEAD/.gradle/4.4/taskHistory/taskHistory.lock -------------------------------------------------------------------------------- /app/src/main/res/drawable/attachment.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarhanShoukat/MessagingApp/HEAD/app/src/main/res/drawable/attachment.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/icon_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarhanShoukat/MessagingApp/HEAD/app/src/main/res/drawable/icon_round.png -------------------------------------------------------------------------------- /.gradle/4.4/javaCompile/classAnalysis.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarhanShoukat/MessagingApp/HEAD/.gradle/4.4/javaCompile/classAnalysis.bin -------------------------------------------------------------------------------- /.gradle/buildOutputCleanup/outputFiles.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarhanShoukat/MessagingApp/HEAD/.gradle/buildOutputCleanup/outputFiles.bin -------------------------------------------------------------------------------- /app/src/main/res/drawable/attach_camera.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarhanShoukat/MessagingApp/HEAD/app/src/main/res/drawable/attach_camera.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/input_emoji.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarhanShoukat/MessagingApp/HEAD/app/src/main/res/drawable/input_emoji.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/attach_gallery.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarhanShoukat/MessagingApp/HEAD/app/src/main/res/drawable/attach_gallery.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/attach_location.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarhanShoukat/MessagingApp/HEAD/app/src/main/res/drawable/attach_location.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarhanShoukat/MessagingApp/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarhanShoukat/MessagingApp/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarhanShoukat/MessagingApp/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /.gradle/4.4/fileHashes/resourceHashesCache.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarhanShoukat/MessagingApp/HEAD/.gradle/4.4/fileHashes/resourceHashesCache.bin -------------------------------------------------------------------------------- /app/src/main/res/drawable/arrow_back_black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarhanShoukat/MessagingApp/HEAD/app/src/main/res/drawable/arrow_back_black.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/arrow_back_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarhanShoukat/MessagingApp/HEAD/app/src/main/res/drawable/arrow_back_white.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/message_background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarhanShoukat/MessagingApp/HEAD/app/src/main/res/drawable/message_background.jpg -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarhanShoukat/MessagingApp/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarhanShoukat/MessagingApp/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /.gradle/buildOutputCleanup/buildOutputCleanup.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarhanShoukat/MessagingApp/HEAD/.gradle/buildOutputCleanup/buildOutputCleanup.lock -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarhanShoukat/MessagingApp/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/FarhanShoukat/MessagingApp/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/FarhanShoukat/MessagingApp/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/FarhanShoukat/MessagingApp/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/FarhanShoukat/MessagingApp/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Thu Oct 26 19:06:53 PKT 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/rectangle_grey2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/rectangle_green2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/layout/user_details_tool_bar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 16dp 6 | 8dp 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/menu/message_menu.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/video.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | -------------------------------------------------------------------------------- /local.properties: -------------------------------------------------------------------------------- 1 | ## This file must *NOT* be checked into Version Control Systems, 2 | # as it contains information specific to your local configuration. 3 | # 4 | # Location of the SDK. This is only used by Gradle. 5 | # For customization when using a Version Control System, please read the 6 | # header note. 7 | #Sun Sep 09 12:27:37 PKT 2018 8 | ndk.dir=D\:\\Farhan\\Android\\SDK\\ndk-bundle 9 | sdk.dir=D\:\\Farhan\\Android\\SDK 10 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | #FFFFFF 8 | #000000 9 | #128C7E 10 | #075E54 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/account.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/message.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/message_processing.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/menu/menu_chat.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 10 | 11 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/plus.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/rectangle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/rectangle_green.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/rectangle_grey.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 11 | -------------------------------------------------------------------------------- /app/src/test/java/com/example/whatsapp/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.example.whatsapp; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_show_image.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/whatsapp/AttachmentCell.java: -------------------------------------------------------------------------------- 1 | package com.example.whatsapp; 2 | 3 | /** 4 | * Created by farha on 03-Oct-17. 5 | */ 6 | 7 | public class AttachmentCell { 8 | int imageId; 9 | String name; 10 | 11 | public AttachmentCell(int imageId, String name) { 12 | this.imageId = imageId; 13 | this.name = name; 14 | } 15 | 16 | public int getImageId() { 17 | return imageId; 18 | } 19 | 20 | public String getName() { 21 | return name; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/camera.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/dots_vertical.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/magnify.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/phone.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_contact.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 12 | 13 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/whatsapp/MyReceiver.java: -------------------------------------------------------------------------------- 1 | package com.example.whatsapp; 2 | 3 | import android.content.BroadcastReceiver; 4 | import android.content.Context; 5 | import android.content.Intent; 6 | 7 | import com.google.firebase.auth.FirebaseAuth; 8 | 9 | /** 10 | * Created by farha on 30-Nov-17. 11 | */ 12 | 13 | public class MyReceiver extends BroadcastReceiver { 14 | @Override 15 | public void onReceive(Context context, Intent intent) { 16 | if(FirebaseAuth.getInstance().getCurrentUser() != null) { 17 | context.startService(new Intent(context, SyncMessagesService.class)); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/attach.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 9 | 10 | 11 | 12 | 15 | 16 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/whatsapp/ShowImage.java: -------------------------------------------------------------------------------- 1 | package com.example.whatsapp; 2 | 3 | import android.content.Intent; 4 | import android.net.Uri; 5 | import android.support.v7.app.AppCompatActivity; 6 | import android.os.Bundle; 7 | 8 | import com.github.chrisbanes.photoview.PhotoView; 9 | 10 | public class ShowImage extends AppCompatActivity { 11 | 12 | @Override 13 | protected void onCreate(Bundle savedInstanceState) { 14 | super.onCreate(savedInstanceState); 15 | setContentView(R.layout.activity_show_image); 16 | 17 | Intent intent = getIntent(); 18 | String path = (String) intent.getSerializableExtra("image"); 19 | PhotoView view = (PhotoView) findViewById(R.id.image); 20 | view.setImageURI(Uri.parse(path)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | org.gradle.jvmargs=-Xmx1536m 13 | 14 | # When configured, Gradle will run in incubating parallel mode. 15 | # This option should only be used with decoupled projects. More details, visit 16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 17 | # org.gradle.parallel=true 18 | -------------------------------------------------------------------------------- /app/src/main/res/layout/received_text.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 21 | 22 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/example/whatsapp/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.example.whatsapp; 2 | 3 | import android.content.Context; 4 | import android.support.test.InstrumentationRegistry; 5 | import android.support.test.runner.AndroidJUnit4; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | /** 13 | * Instrumented test, which will execute on an Android device. 14 | * 15 | * @see Testing documentation 16 | */ 17 | @RunWith(AndroidJUnit4.class) 18 | public class ExampleInstrumentedTest { 19 | @Test 20 | public void useAppContext() throws Exception { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getTargetContext(); 23 | 24 | assertEquals("com.example.whatsapp", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/src/main/res/layout/sent_text.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 23 | 24 | -------------------------------------------------------------------------------- /app/src/main/res/layout/tool_bar2.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 13 | 14 | 22 | 23 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/whatsapp/PersonCell.java: -------------------------------------------------------------------------------- 1 | package com.example.whatsapp; 2 | 3 | import android.net.Uri; 4 | 5 | /** 6 | * Created by farha on 07-Nov-17. 7 | */ 8 | 9 | public class PersonCell { 10 | private Uri photo; 11 | private String name; 12 | private String lastMessage; 13 | private String date; 14 | private String phone; 15 | 16 | public PersonCell(Uri photo, String name, String lastMessage, String date, String phone) { 17 | this.photo = photo; 18 | this.name = name; 19 | this.lastMessage = lastMessage; 20 | this.date = date; 21 | this.phone = phone; 22 | } 23 | 24 | public Uri getPhoto() { 25 | return photo; 26 | } 27 | 28 | public String getName() { 29 | return name; 30 | } 31 | 32 | public String getLastMessage() { 33 | return lastMessage; 34 | } 35 | 36 | public String getDate() { 37 | return date; 38 | } 39 | 40 | public String getPhone() { 41 | return phone; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_chat.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 12 | 13 | 14 | 26 | 27 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_contacts.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 12 | 13 | 14 | 26 | 27 | -------------------------------------------------------------------------------- /app/src/main/res/layout/search_contact.xml: -------------------------------------------------------------------------------- 1 | 10 | 11 | 17 | 18 | 27 | 28 | -------------------------------------------------------------------------------- /app/src/main/res/layout/received_image.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 12 | 13 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Farhan Shoukat 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /app/src/main/res/layout/sent_image.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 13 | 14 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/whatsapp/ContactCell.java: -------------------------------------------------------------------------------- 1 | package com.example.whatsapp; 2 | 3 | import android.net.Uri; 4 | 5 | /** 6 | * Created by farha on 09-Nov-17. 7 | */ 8 | 9 | public class ContactCell { 10 | private Uri photo; 11 | private String name; 12 | private String status; 13 | private String phone; 14 | 15 | public ContactCell(Uri photo, String name, String status, String phone) { 16 | this.photo = photo; 17 | this.name = name; 18 | this.status = status; 19 | this.phone = phone; 20 | } 21 | 22 | public Uri getPhoto() { 23 | return photo; 24 | } 25 | 26 | public String getName() { 27 | return name; 28 | } 29 | 30 | public String getStatus() { 31 | return status; 32 | } 33 | 34 | public String getPhone() { 35 | return phone; 36 | } 37 | 38 | public void setPhoto(Uri photo) { 39 | this.photo = photo; 40 | } 41 | 42 | public void setName(String name) { 43 | this.name = name; 44 | } 45 | 46 | public void setStatus(String status) { 47 | this.status = status; 48 | } 49 | 50 | public void setPhone(String phone) { 51 | this.phone = phone; 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 18 | 19 | 25 | 26 | 30 | 31 |