diff --git a/.DS_Store b/.DS_Store
index 3310573..d58c740 100644
Binary files a/.DS_Store and b/.DS_Store differ
diff --git a/Harshit/.DS_Store b/Harshit/.DS_Store
new file mode 100644
index 0000000..bac6622
Binary files /dev/null and b/Harshit/.DS_Store differ
diff --git a/Harshit/BroadcastReceivers/BroadcastReceivers.iml b/Harshit/BroadcastReceivers/BroadcastReceivers.iml
new file mode 100644
index 0000000..d5ec4f5
--- /dev/null
+++ b/Harshit/BroadcastReceivers/BroadcastReceivers.iml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Harshit/BroadcastReceivers/app/.gitignore b/Harshit/BroadcastReceivers/app/.gitignore
new file mode 100644
index 0000000..796b96d
--- /dev/null
+++ b/Harshit/BroadcastReceivers/app/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/Harshit/BroadcastReceivers/app/app.iml b/Harshit/BroadcastReceivers/app/app.iml
new file mode 100644
index 0000000..22d8129
--- /dev/null
+++ b/Harshit/BroadcastReceivers/app/app.iml
@@ -0,0 +1,131 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ generateDebugSources
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Harshit/BroadcastReceivers/app/build.gradle b/Harshit/BroadcastReceivers/app/build.gradle
new file mode 100644
index 0000000..afb8335
--- /dev/null
+++ b/Harshit/BroadcastReceivers/app/build.gradle
@@ -0,0 +1,30 @@
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion 25
+ buildToolsVersion "25.0.2"
+ defaultConfig {
+ applicationId "com.codingblocks.broadcastreceivers"
+ minSdkVersion 15
+ targetSdkVersion 26
+ versionCode 1
+ versionName "1.0"
+ testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
+ }
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+dependencies {
+ compile fileTree(dir: 'libs', include: ['*.jar'])
+ androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
+ exclude group: 'com.android.support', module: 'support-annotations'
+ })
+ compile 'com.android.support:appcompat-v7:26.+'
+ compile 'com.android.support.constraint:constraint-layout:1.0.2'
+ testCompile 'junit:junit:4.12'
+}
diff --git a/Harshit/BroadcastReceivers/app/proguard-rules.pro b/Harshit/BroadcastReceivers/app/proguard-rules.pro
new file mode 100644
index 0000000..39850f7
--- /dev/null
+++ b/Harshit/BroadcastReceivers/app/proguard-rules.pro
@@ -0,0 +1,25 @@
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in /Users/harshit/Library/Android/sdk/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the proguardFiles
+# directive in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
+
+# Uncomment this to preserve the line number information for
+# debugging stack traces.
+#-keepattributes SourceFile,LineNumberTable
+
+# If you keep the line number information, uncomment this to
+# hide the original source file name.
+#-renamesourcefileattribute SourceFile
diff --git a/Harshit/BroadcastReceivers/app/src/androidTest/java/com/codingblocks/broadcastreceivers/ExampleInstrumentedTest.java b/Harshit/BroadcastReceivers/app/src/androidTest/java/com/codingblocks/broadcastreceivers/ExampleInstrumentedTest.java
new file mode 100644
index 0000000..bc7ed8c
--- /dev/null
+++ b/Harshit/BroadcastReceivers/app/src/androidTest/java/com/codingblocks/broadcastreceivers/ExampleInstrumentedTest.java
@@ -0,0 +1,26 @@
+package com.codingblocks.broadcastreceivers;
+
+import android.content.Context;
+import android.support.test.InstrumentationRegistry;
+import android.support.test.runner.AndroidJUnit4;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+import static org.junit.Assert.*;
+
+/**
+ * Instrumentation test, which will execute on an Android device.
+ *
+ * @see Testing documentation
+ */
+@RunWith(AndroidJUnit4.class)
+public class ExampleInstrumentedTest {
+ @Test
+ public void useAppContext() throws Exception {
+ // Context of the app under test.
+ Context appContext = InstrumentationRegistry.getTargetContext();
+
+ assertEquals("com.codingblocks.broadcastreceivers", appContext.getPackageName());
+ }
+}
diff --git a/Harshit/BroadcastReceivers/app/src/main/AndroidManifest.xml b/Harshit/BroadcastReceivers/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..bcefc17
--- /dev/null
+++ b/Harshit/BroadcastReceivers/app/src/main/AndroidManifest.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Harshit/BroadcastReceivers/app/src/main/java/com/codingblocks/broadcastreceivers/MainActivity.java b/Harshit/BroadcastReceivers/app/src/main/java/com/codingblocks/broadcastreceivers/MainActivity.java
new file mode 100644
index 0000000..70b4bc7
--- /dev/null
+++ b/Harshit/BroadcastReceivers/app/src/main/java/com/codingblocks/broadcastreceivers/MainActivity.java
@@ -0,0 +1,160 @@
+package com.codingblocks.broadcastreceivers;
+
+import android.app.Notification;
+import android.app.NotificationManager;
+import android.app.PendingIntent;
+import android.content.BroadcastReceiver;
+import android.content.Context;
+import android.content.Intent;
+import android.content.IntentFilter;
+import android.graphics.Color;
+import android.os.Handler;
+import android.os.HandlerThread;
+import android.os.Message;
+import android.support.constraint.ConstraintLayout;
+import android.support.v4.app.NotificationCompat;
+import android.support.v4.content.ContextCompat;
+import android.support.v4.content.LocalBroadcastManager;
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+import android.util.Log;
+import android.view.View;
+import android.widget.Button;
+import android.widget.LinearLayout;
+import android.widget.TextView;
+import android.widget.Toast;
+
+public class MainActivity extends AppCompatActivity {
+
+ TextView textView;
+ LinearLayout constraintLayout;
+ Button b;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_main);
+ textView = (TextView) findViewById(R.id.tView);
+ constraintLayout = (LinearLayout) findViewById(R.id.constraintLayout);
+ b = (Button) findViewById(R.id.button);
+ b.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+// startAnewThread(5);
+// buildNotification();
+ Intent intent = new Intent();
+ intent.setAction("MY_Action");
+ intent.putExtra("key", "Notice me Senpai");
+
+ LocalBroadcastManager.getInstance(getBaseContext()).sendBroadcast(intent);
+ }
+ }
+ );
+ MyReceiver myReceiver = new MyReceiver();
+ IntentFilter intentFilter = new IntentFilter();
+ intentFilter.addAction(Intent.ACTION_POWER_CONNECTED);
+ intentFilter.addAction(Intent.ACTION_POWER_DISCONNECTED);
+ registerReceiver(myReceiver, intentFilter);
+
+ MyOtherReceiver myOtherReceiver = new MyOtherReceiver();
+ IntentFilter intentFilter1 = new IntentFilter("MY_Action");
+
+ LocalBroadcastManager.getInstance(this).registerReceiver(myOtherReceiver, intentFilter1);
+
+ }
+
+
+ @Override
+ protected void onActivityResult(int requestCode, int resultCode, Intent data) {
+// super.onActivityResult(requestCode, resultCode, data);
+ Log.e("TAG", "onActivityResult: " + requestCode);
+ if (requestCode == 111) {
+ Toast.makeText(this, "Launched Via pendingIntent", Toast.LENGTH_SHORT).show();
+ }
+ }
+
+ private void buildNotification() {
+
+ Intent intent = new Intent(this, MainActivity.class);
+
+ PendingIntent pendingIntent = PendingIntent.getActivity(this, 111, intent, PendingIntent.FLAG_CANCEL_CURRENT);
+
+ Notification notification = new NotificationCompat.Builder(this)
+ .setContentTitle("This is a title")
+ .setContentText("Hi, I'm the description")
+ .setSmallIcon(R.mipmap.ic_launcher_round)
+ .setContentIntent(pendingIntent)
+ .addAction(android.R.drawable.ic_menu_send, "Send", pendingIntent)
+ .build();
+
+ ((NotificationManager) getSystemService(NOTIFICATION_SERVICE)).notify(1, notification);
+ }
+
+ private void startAnewThread(final int timer) {
+
+ Handler h = new Handler() {
+
+ @Override
+ public void handleMessage(Message msg) {
+ super.handleMessage(msg);
+ }
+ };
+//
+// HandlerThread handlerThread = new HandlerThread("thread");
+// handlerThread.start();
+//
+// Handler h = new Handler(handlerThread.getLooper());
+//
+// h.post(new Runnable() {
+// @Override
+// public void run() {
+// for (int i = 0; i < timer;i++){
+// long currtime = System.currentTimeMillis();
+// while (System.currentTimeMillis() - currtime < 1000);
+// }
+// textView.setText("Work Done");
+// }
+// });
+
+// Thread thread = new Thread(new Runnable() {
+// @Override
+// public void run() {
+// for (int i = 0; i < timer;i++){
+// long currtime = System.currentTimeMillis();
+// while (System.currentTimeMillis() - currtime < 1000);
+// }
+// textView.setText("Work Done");
+// }
+// });
+// thread.start();
+ }
+
+ class MyOtherReceiver extends BroadcastReceiver {
+
+ @Override
+ public void onReceive(Context context, Intent intent) {
+ textView.setText(intent.getStringExtra("key"));
+ }
+ }
+
+ class MyReceiver extends BroadcastReceiver {
+
+ public MyReceiver() {
+ }
+
+ @Override
+ public void onReceive(Context context, Intent intent) {
+ Intent i = new Intent(context, MainActivity.class);
+ i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
+ context.startActivity(i);
+ if (intent.getAction().equals(Intent.ACTION_POWER_CONNECTED)) {
+ textView.setText("Power Connected");
+ constraintLayout.setBackgroundColor(Color.GREEN);
+ } else if (intent.getAction().equals(Intent.ACTION_POWER_DISCONNECTED)) {
+ textView.setText("Power Disconnected");
+ constraintLayout.setBackgroundColor(Color.RED);
+ }
+ }
+ }
+
+}
diff --git a/Harshit/BroadcastReceivers/app/src/main/res/layout/activity_main.xml b/Harshit/BroadcastReceivers/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 0000000..f4a0c51
--- /dev/null
+++ b/Harshit/BroadcastReceivers/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
diff --git a/Harshit/BroadcastReceivers/app/src/main/res/mipmap-hdpi/ic_launcher.png b/Harshit/BroadcastReceivers/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..cde69bc
Binary files /dev/null and b/Harshit/BroadcastReceivers/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/Harshit/BroadcastReceivers/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/Harshit/BroadcastReceivers/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
new file mode 100644
index 0000000..9a078e3
Binary files /dev/null and b/Harshit/BroadcastReceivers/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/Harshit/BroadcastReceivers/app/src/main/res/mipmap-mdpi/ic_launcher.png b/Harshit/BroadcastReceivers/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..c133a0c
Binary files /dev/null and b/Harshit/BroadcastReceivers/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/Harshit/BroadcastReceivers/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/Harshit/BroadcastReceivers/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
new file mode 100644
index 0000000..efc028a
Binary files /dev/null and b/Harshit/BroadcastReceivers/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/Harshit/BroadcastReceivers/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/Harshit/BroadcastReceivers/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..bfa42f0
Binary files /dev/null and b/Harshit/BroadcastReceivers/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/Harshit/BroadcastReceivers/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/Harshit/BroadcastReceivers/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..3af2608
Binary files /dev/null and b/Harshit/BroadcastReceivers/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/Harshit/BroadcastReceivers/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/Harshit/BroadcastReceivers/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..324e72c
Binary files /dev/null and b/Harshit/BroadcastReceivers/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/Harshit/BroadcastReceivers/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/Harshit/BroadcastReceivers/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..9bec2e6
Binary files /dev/null and b/Harshit/BroadcastReceivers/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/Harshit/BroadcastReceivers/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/Harshit/BroadcastReceivers/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..aee44e1
Binary files /dev/null and b/Harshit/BroadcastReceivers/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/Harshit/BroadcastReceivers/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/Harshit/BroadcastReceivers/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..34947cd
Binary files /dev/null and b/Harshit/BroadcastReceivers/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/Harshit/BroadcastReceivers/app/src/main/res/values/colors.xml b/Harshit/BroadcastReceivers/app/src/main/res/values/colors.xml
new file mode 100644
index 0000000..3ab3e9c
--- /dev/null
+++ b/Harshit/BroadcastReceivers/app/src/main/res/values/colors.xml
@@ -0,0 +1,6 @@
+
+
+ #3F51B5
+ #303F9F
+ #FF4081
+
diff --git a/Harshit/BroadcastReceivers/app/src/main/res/values/strings.xml b/Harshit/BroadcastReceivers/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..f1f7f7f
--- /dev/null
+++ b/Harshit/BroadcastReceivers/app/src/main/res/values/strings.xml
@@ -0,0 +1,3 @@
+
+ BroadcastReceivers
+
diff --git a/Harshit/BroadcastReceivers/app/src/main/res/values/styles.xml b/Harshit/BroadcastReceivers/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..5885930
--- /dev/null
+++ b/Harshit/BroadcastReceivers/app/src/main/res/values/styles.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
diff --git a/Harshit/BroadcastReceivers/app/src/test/java/com/codingblocks/broadcastreceivers/ExampleUnitTest.java b/Harshit/BroadcastReceivers/app/src/test/java/com/codingblocks/broadcastreceivers/ExampleUnitTest.java
new file mode 100644
index 0000000..e8923b7
--- /dev/null
+++ b/Harshit/BroadcastReceivers/app/src/test/java/com/codingblocks/broadcastreceivers/ExampleUnitTest.java
@@ -0,0 +1,17 @@
+package com.codingblocks.broadcastreceivers;
+
+import org.junit.Test;
+
+import static org.junit.Assert.*;
+
+/**
+ * Example local unit test, which will execute on the development machine (host).
+ *
+ * @see Testing documentation
+ */
+public class ExampleUnitTest {
+ @Test
+ public void addition_isCorrect() throws Exception {
+ assertEquals(4, 2 + 2);
+ }
+}
\ No newline at end of file
diff --git a/Harshit/BroadcastReceivers/build.gradle b/Harshit/BroadcastReceivers/build.gradle
new file mode 100644
index 0000000..c2eea8e
--- /dev/null
+++ b/Harshit/BroadcastReceivers/build.gradle
@@ -0,0 +1,23 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+
+buildscript {
+ repositories {
+ jcenter()
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:2.3.3'
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ jcenter()
+ }
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
diff --git a/Harshit/BroadcastReceivers/gradle.properties b/Harshit/BroadcastReceivers/gradle.properties
new file mode 100644
index 0000000..aac7c9b
--- /dev/null
+++ b/Harshit/BroadcastReceivers/gradle.properties
@@ -0,0 +1,17 @@
+# 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=-Xmx1536m
+
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
diff --git a/Harshit/BroadcastReceivers/gradlew b/Harshit/BroadcastReceivers/gradlew
new file mode 100755
index 0000000..9d82f78
--- /dev/null
+++ b/Harshit/BroadcastReceivers/gradlew
@@ -0,0 +1,160 @@
+#!/usr/bin/env bash
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# 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
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+esac
+
+# 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
+
+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" ] ; 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, switch paths to Windows format before running java
+if $cygwin ; 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=$((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
+
+# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
+function splitJvmOpts() {
+ JVM_OPTS=("$@")
+}
+eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
+JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
+
+exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
diff --git a/Harshit/BroadcastReceivers/gradlew.bat b/Harshit/BroadcastReceivers/gradlew.bat
new file mode 100644
index 0000000..aec9973
--- /dev/null
+++ b/Harshit/BroadcastReceivers/gradlew.bat
@@ -0,0 +1,90 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windowz variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+if "%@eval[2+2]" == "4" goto 4NT_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+goto execute
+
+:4NT_args
+@rem Get arguments from the 4NT Shell from JP Software
+set CMD_LINE_ARGS=%$
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/Harshit/BroadcastReceivers/local.properties b/Harshit/BroadcastReceivers/local.properties
new file mode 100644
index 0000000..32d87b2
--- /dev/null
+++ b/Harshit/BroadcastReceivers/local.properties
@@ -0,0 +1,10 @@
+## This file is automatically generated by Android Studio.
+# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
+#
+# This file should *NOT* be checked into Version Control Systems,
+# as it contains information specific to your local configuration.
+#
+# Location of the SDK. This is only used by Gradle.
+# For customization when using a Version Control System, please read the
+# header note.
+sdk.dir=/Users/harshit/Library/Android/sdk
\ No newline at end of file
diff --git a/Harshit/BroadcastReceivers/settings.gradle b/Harshit/BroadcastReceivers/settings.gradle
new file mode 100644
index 0000000..e7b4def
--- /dev/null
+++ b/Harshit/BroadcastReceivers/settings.gradle
@@ -0,0 +1 @@
+include ':app'
diff --git a/Harshit/FirebaseSample/.gitignore b/Harshit/FirebaseSample/.gitignore
new file mode 100644
index 0000000..39fb081
--- /dev/null
+++ b/Harshit/FirebaseSample/.gitignore
@@ -0,0 +1,9 @@
+*.iml
+.gradle
+/local.properties
+/.idea/workspace.xml
+/.idea/libraries
+.DS_Store
+/build
+/captures
+.externalNativeBuild
diff --git a/Harshit/FirebaseSample/app/.gitignore b/Harshit/FirebaseSample/app/.gitignore
new file mode 100644
index 0000000..796b96d
--- /dev/null
+++ b/Harshit/FirebaseSample/app/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/Harshit/FirebaseSample/app/build.gradle b/Harshit/FirebaseSample/app/build.gradle
new file mode 100644
index 0000000..f23d9b7
--- /dev/null
+++ b/Harshit/FirebaseSample/app/build.gradle
@@ -0,0 +1,36 @@
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion 25
+ buildToolsVersion "25.0.2"
+ defaultConfig {
+ applicationId "com.codingblocks.firebasesample"
+ minSdkVersion 15
+ targetSdkVersion 25
+ versionCode 1
+ versionName "1.0"
+ testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
+ }
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+dependencies {
+ compile fileTree(dir: 'libs', include: ['*.jar'])
+ androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
+ exclude group: 'com.android.support', module: 'support-annotations'
+ })
+ compile 'com.android.support:appcompat-v7:25.3.1'
+ compile 'com.android.support.constraint:constraint-layout:1.0.2'
+ compile 'com.google.firebase:firebase-messaging:10.0.1'
+ testCompile 'junit:junit:4.12'
+ compile 'com.android.support:design:25.3.1'
+
+}
+
+
+apply plugin: 'com.google.gms.google-services'
\ No newline at end of file
diff --git a/Harshit/FirebaseSample/app/google-services.json b/Harshit/FirebaseSample/app/google-services.json
new file mode 100644
index 0000000..0834702
--- /dev/null
+++ b/Harshit/FirebaseSample/app/google-services.json
@@ -0,0 +1,55 @@
+{
+ "project_info": {
+ "project_number": "239339088948",
+ "firebase_url": "https://fir-sample-96b87.firebaseio.com",
+ "project_id": "fir-sample-96b87",
+ "storage_bucket": "fir-sample-96b87.appspot.com"
+ },
+ "client": [
+ {
+ "client_info": {
+ "mobilesdk_app_id": "1:239339088948:android:af130174a1585402",
+ "android_client_info": {
+ "package_name": "com.codingblocks.firebasesample"
+ }
+ },
+ "oauth_client": [
+ {
+ "client_id": "239339088948-n9vb4kf47cltg4kab349ts50nkehhs03.apps.googleusercontent.com",
+ "client_type": 1,
+ "android_info": {
+ "package_name": "com.codingblocks.firebasesample",
+ "certificate_hash": "30990d3ef9eb1ad03730348e0e45210ac3be2438"
+ }
+ },
+ {
+ "client_id": "239339088948-1egdp9tfnodelvh8bn2en97pa2h44g06.apps.googleusercontent.com",
+ "client_type": 3
+ }
+ ],
+ "api_key": [
+ {
+ "current_key": "AIzaSyBxElDqoVdLOVMWVVn1CYAxPftg4M9P6bw"
+ }
+ ],
+ "services": {
+ "analytics_service": {
+ "status": 1
+ },
+ "appinvite_service": {
+ "status": 2,
+ "other_platform_oauth_client": [
+ {
+ "client_id": "239339088948-1egdp9tfnodelvh8bn2en97pa2h44g06.apps.googleusercontent.com",
+ "client_type": 3
+ }
+ ]
+ },
+ "ads_service": {
+ "status": 2
+ }
+ }
+ }
+ ],
+ "configuration_version": "1"
+}
\ No newline at end of file
diff --git a/Harshit/FirebaseSample/app/proguard-rules.pro b/Harshit/FirebaseSample/app/proguard-rules.pro
new file mode 100644
index 0000000..39850f7
--- /dev/null
+++ b/Harshit/FirebaseSample/app/proguard-rules.pro
@@ -0,0 +1,25 @@
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in /Users/harshit/Library/Android/sdk/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the proguardFiles
+# directive in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
+
+# Uncomment this to preserve the line number information for
+# debugging stack traces.
+#-keepattributes SourceFile,LineNumberTable
+
+# If you keep the line number information, uncomment this to
+# hide the original source file name.
+#-renamesourcefileattribute SourceFile
diff --git a/Harshit/FirebaseSample/app/src/androidTest/java/com/codingblocks/firebasesample/ExampleInstrumentedTest.java b/Harshit/FirebaseSample/app/src/androidTest/java/com/codingblocks/firebasesample/ExampleInstrumentedTest.java
new file mode 100644
index 0000000..bcca184
--- /dev/null
+++ b/Harshit/FirebaseSample/app/src/androidTest/java/com/codingblocks/firebasesample/ExampleInstrumentedTest.java
@@ -0,0 +1,26 @@
+package com.codingblocks.firebasesample;
+
+import android.content.Context;
+import android.support.test.InstrumentationRegistry;
+import android.support.test.runner.AndroidJUnit4;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+import static org.junit.Assert.*;
+
+/**
+ * Instrumentation test, which will execute on an Android device.
+ *
+ * @see Testing documentation
+ */
+@RunWith(AndroidJUnit4.class)
+public class ExampleInstrumentedTest {
+ @Test
+ public void useAppContext() throws Exception {
+ // Context of the app under test.
+ Context appContext = InstrumentationRegistry.getTargetContext();
+
+ assertEquals("com.codingblocks.firebasesample", appContext.getPackageName());
+ }
+}
diff --git a/Harshit/FirebaseSample/app/src/main/AndroidManifest.xml b/Harshit/FirebaseSample/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..64c4df9
--- /dev/null
+++ b/Harshit/FirebaseSample/app/src/main/AndroidManifest.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Harshit/FirebaseSample/app/src/main/java/com/codingblocks/firebasesample/MainActivity.java b/Harshit/FirebaseSample/app/src/main/java/com/codingblocks/firebasesample/MainActivity.java
new file mode 100644
index 0000000..ecc080e
--- /dev/null
+++ b/Harshit/FirebaseSample/app/src/main/java/com/codingblocks/firebasesample/MainActivity.java
@@ -0,0 +1,43 @@
+package com.codingblocks.firebasesample;
+
+import android.content.DialogInterface;
+import android.os.Bundle;
+import android.support.design.widget.BaseTransientBottomBar;
+import android.support.design.widget.Snackbar;
+import android.support.v7.app.AlertDialog;
+import android.support.v7.app.AppCompatActivity;
+import android.widget.EditText;
+import android.widget.LinearLayout;
+import android.widget.Toast;
+
+public class MainActivity extends AppCompatActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_main);
+
+
+ final LinearLayout l = (LinearLayout) getLayoutInflater().inflate(R.layout.custom_dialog,null);
+
+// final
+ Snackbar.make(findViewById(android.R.id.content),"Hello", BaseTransientBottomBar.LENGTH_INDEFINITE).show();
+
+ AlertDialog dialog = new AlertDialog.Builder(this)
+ .setTitle("This is a dialog")
+ .setView(l)
+ .setPositiveButton("Submit", new DialogInterface.OnClickListener() {
+ @Override
+ public void onClick(DialogInterface dialogInterface, int i) {
+ EditText editText = (EditText) l.findViewById(R.id.editText);
+// TextView textView = l.findViewById(R.id.textView);
+// textView.setText(editText.getText().toString());
+
+ Toast.makeText(MainActivity.this,editText.getText().toString(),Toast.LENGTH_SHORT).show();
+ }
+ })
+ .create();
+
+ dialog.show();
+ }
+}
diff --git a/Harshit/FirebaseSample/app/src/main/res/drawable-hdpi/back.png b/Harshit/FirebaseSample/app/src/main/res/drawable-hdpi/back.png
new file mode 100644
index 0000000..1477de7
Binary files /dev/null and b/Harshit/FirebaseSample/app/src/main/res/drawable-hdpi/back.png differ
diff --git a/Harshit/FirebaseSample/app/src/main/res/drawable-mdpi/back.png b/Harshit/FirebaseSample/app/src/main/res/drawable-mdpi/back.png
new file mode 100644
index 0000000..016dd51
Binary files /dev/null and b/Harshit/FirebaseSample/app/src/main/res/drawable-mdpi/back.png differ
diff --git a/Harshit/FirebaseSample/app/src/main/res/drawable-xhdpi/back.png b/Harshit/FirebaseSample/app/src/main/res/drawable-xhdpi/back.png
new file mode 100644
index 0000000..87ab4a5
Binary files /dev/null and b/Harshit/FirebaseSample/app/src/main/res/drawable-xhdpi/back.png differ
diff --git a/Harshit/FirebaseSample/app/src/main/res/drawable-xxhdpi/back.png b/Harshit/FirebaseSample/app/src/main/res/drawable-xxhdpi/back.png
new file mode 100644
index 0000000..b1743b4
Binary files /dev/null and b/Harshit/FirebaseSample/app/src/main/res/drawable-xxhdpi/back.png differ
diff --git a/Harshit/FirebaseSample/app/src/main/res/layout/activity_main.xml b/Harshit/FirebaseSample/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 0000000..4fad8c5
--- /dev/null
+++ b/Harshit/FirebaseSample/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,43 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Harshit/FirebaseSample/app/src/main/res/layout/custom_dialog.xml b/Harshit/FirebaseSample/app/src/main/res/layout/custom_dialog.xml
new file mode 100644
index 0000000..0d90302
--- /dev/null
+++ b/Harshit/FirebaseSample/app/src/main/res/layout/custom_dialog.xml
@@ -0,0 +1,53 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Harshit/FirebaseSample/app/src/main/res/mipmap-hdpi/ic_launcher.png b/Harshit/FirebaseSample/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..cde69bc
Binary files /dev/null and b/Harshit/FirebaseSample/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/Harshit/FirebaseSample/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/Harshit/FirebaseSample/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
new file mode 100644
index 0000000..9a078e3
Binary files /dev/null and b/Harshit/FirebaseSample/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/Harshit/FirebaseSample/app/src/main/res/mipmap-mdpi/ic_launcher.png b/Harshit/FirebaseSample/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..c133a0c
Binary files /dev/null and b/Harshit/FirebaseSample/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/Harshit/FirebaseSample/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/Harshit/FirebaseSample/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
new file mode 100644
index 0000000..efc028a
Binary files /dev/null and b/Harshit/FirebaseSample/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/Harshit/FirebaseSample/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/Harshit/FirebaseSample/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..bfa42f0
Binary files /dev/null and b/Harshit/FirebaseSample/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/Harshit/FirebaseSample/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/Harshit/FirebaseSample/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..3af2608
Binary files /dev/null and b/Harshit/FirebaseSample/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/Harshit/FirebaseSample/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/Harshit/FirebaseSample/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..324e72c
Binary files /dev/null and b/Harshit/FirebaseSample/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/Harshit/FirebaseSample/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/Harshit/FirebaseSample/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..9bec2e6
Binary files /dev/null and b/Harshit/FirebaseSample/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/Harshit/FirebaseSample/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/Harshit/FirebaseSample/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..aee44e1
Binary files /dev/null and b/Harshit/FirebaseSample/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/Harshit/FirebaseSample/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/Harshit/FirebaseSample/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..34947cd
Binary files /dev/null and b/Harshit/FirebaseSample/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/Harshit/FirebaseSample/app/src/main/res/values/colors.xml b/Harshit/FirebaseSample/app/src/main/res/values/colors.xml
new file mode 100644
index 0000000..3ab3e9c
--- /dev/null
+++ b/Harshit/FirebaseSample/app/src/main/res/values/colors.xml
@@ -0,0 +1,6 @@
+
+
+ #3F51B5
+ #303F9F
+ #FF4081
+
diff --git a/Harshit/FirebaseSample/app/src/main/res/values/strings.xml b/Harshit/FirebaseSample/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..285c275
--- /dev/null
+++ b/Harshit/FirebaseSample/app/src/main/res/values/strings.xml
@@ -0,0 +1,3 @@
+
+ FirebaseSample
+
diff --git a/Harshit/FirebaseSample/app/src/main/res/values/styles.xml b/Harshit/FirebaseSample/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..5885930
--- /dev/null
+++ b/Harshit/FirebaseSample/app/src/main/res/values/styles.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
diff --git a/Harshit/FirebaseSample/app/src/test/java/com/codingblocks/firebasesample/ExampleUnitTest.java b/Harshit/FirebaseSample/app/src/test/java/com/codingblocks/firebasesample/ExampleUnitTest.java
new file mode 100644
index 0000000..279aad8
--- /dev/null
+++ b/Harshit/FirebaseSample/app/src/test/java/com/codingblocks/firebasesample/ExampleUnitTest.java
@@ -0,0 +1,17 @@
+package com.codingblocks.firebasesample;
+
+import org.junit.Test;
+
+import static org.junit.Assert.*;
+
+/**
+ * Example local unit test, which will execute on the development machine (host).
+ *
+ * @see Testing documentation
+ */
+public class ExampleUnitTest {
+ @Test
+ public void addition_isCorrect() throws Exception {
+ assertEquals(4, 2 + 2);
+ }
+}
\ No newline at end of file
diff --git a/Harshit/FirebaseSample/build.gradle b/Harshit/FirebaseSample/build.gradle
new file mode 100644
index 0000000..d2e5667
--- /dev/null
+++ b/Harshit/FirebaseSample/build.gradle
@@ -0,0 +1,24 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+
+buildscript {
+ repositories {
+ jcenter()
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:2.3.3'
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ classpath 'com.google.gms:google-services:3.0.0'
+ }
+}
+
+allprojects {
+ repositories {
+ jcenter()
+ }
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
diff --git a/Harshit/FirebaseSample/gradle.properties b/Harshit/FirebaseSample/gradle.properties
new file mode 100644
index 0000000..aac7c9b
--- /dev/null
+++ b/Harshit/FirebaseSample/gradle.properties
@@ -0,0 +1,17 @@
+# 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=-Xmx1536m
+
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
diff --git a/Harshit/FirebaseSample/gradlew b/Harshit/FirebaseSample/gradlew
new file mode 100755
index 0000000..9d82f78
--- /dev/null
+++ b/Harshit/FirebaseSample/gradlew
@@ -0,0 +1,160 @@
+#!/usr/bin/env bash
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# 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
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+esac
+
+# 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
+
+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" ] ; 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, switch paths to Windows format before running java
+if $cygwin ; 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=$((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
+
+# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
+function splitJvmOpts() {
+ JVM_OPTS=("$@")
+}
+eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
+JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
+
+exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
diff --git a/Harshit/FirebaseSample/gradlew.bat b/Harshit/FirebaseSample/gradlew.bat
new file mode 100644
index 0000000..aec9973
--- /dev/null
+++ b/Harshit/FirebaseSample/gradlew.bat
@@ -0,0 +1,90 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windowz variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+if "%@eval[2+2]" == "4" goto 4NT_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+goto execute
+
+:4NT_args
+@rem Get arguments from the 4NT Shell from JP Software
+set CMD_LINE_ARGS=%$
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/Harshit/FirebaseSample/settings.gradle b/Harshit/FirebaseSample/settings.gradle
new file mode 100644
index 0000000..e7b4def
--- /dev/null
+++ b/Harshit/FirebaseSample/settings.gradle
@@ -0,0 +1 @@
+include ':app'
diff --git a/Harshit/InterFragment/.gitignore b/Harshit/InterFragment/.gitignore
new file mode 100644
index 0000000..39fb081
--- /dev/null
+++ b/Harshit/InterFragment/.gitignore
@@ -0,0 +1,9 @@
+*.iml
+.gradle
+/local.properties
+/.idea/workspace.xml
+/.idea/libraries
+.DS_Store
+/build
+/captures
+.externalNativeBuild
diff --git a/Harshit/InterFragment/app/.gitignore b/Harshit/InterFragment/app/.gitignore
new file mode 100644
index 0000000..796b96d
--- /dev/null
+++ b/Harshit/InterFragment/app/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/Harshit/InterFragment/app/build.gradle b/Harshit/InterFragment/app/build.gradle
new file mode 100644
index 0000000..04d06ae
--- /dev/null
+++ b/Harshit/InterFragment/app/build.gradle
@@ -0,0 +1,30 @@
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion 26
+ buildToolsVersion "26.0.0"
+ defaultConfig {
+ applicationId "com.codingblocks.interfragment"
+ minSdkVersion 15
+ targetSdkVersion 26
+ versionCode 1
+ versionName "1.0"
+ testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
+ }
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+dependencies {
+ compile fileTree(dir: 'libs', include: ['*.jar'])
+ androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
+ exclude group: 'com.android.support', module: 'support-annotations'
+ })
+ compile 'com.android.support:appcompat-v7:26.+'
+ compile 'com.android.support.constraint:constraint-layout:1.0.2'
+ testCompile 'junit:junit:4.12'
+}
diff --git a/Harshit/InterFragment/app/proguard-rules.pro b/Harshit/InterFragment/app/proguard-rules.pro
new file mode 100644
index 0000000..39850f7
--- /dev/null
+++ b/Harshit/InterFragment/app/proguard-rules.pro
@@ -0,0 +1,25 @@
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in /Users/harshit/Library/Android/sdk/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the proguardFiles
+# directive in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
+
+# Uncomment this to preserve the line number information for
+# debugging stack traces.
+#-keepattributes SourceFile,LineNumberTable
+
+# If you keep the line number information, uncomment this to
+# hide the original source file name.
+#-renamesourcefileattribute SourceFile
diff --git a/Harshit/InterFragment/app/src/androidTest/java/com/codingblocks/interfragment/ExampleInstrumentedTest.java b/Harshit/InterFragment/app/src/androidTest/java/com/codingblocks/interfragment/ExampleInstrumentedTest.java
new file mode 100644
index 0000000..ca7738d
--- /dev/null
+++ b/Harshit/InterFragment/app/src/androidTest/java/com/codingblocks/interfragment/ExampleInstrumentedTest.java
@@ -0,0 +1,26 @@
+package com.codingblocks.interfragment;
+
+import android.content.Context;
+import android.support.test.InstrumentationRegistry;
+import android.support.test.runner.AndroidJUnit4;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+import static org.junit.Assert.*;
+
+/**
+ * Instrumentation test, which will execute on an Android device.
+ *
+ * @see Testing documentation
+ */
+@RunWith(AndroidJUnit4.class)
+public class ExampleInstrumentedTest {
+ @Test
+ public void useAppContext() throws Exception {
+ // Context of the app under test.
+ Context appContext = InstrumentationRegistry.getTargetContext();
+
+ assertEquals("com.codingblocks.interfragment", appContext.getPackageName());
+ }
+}
diff --git a/Harshit/InterFragment/app/src/main/AndroidManifest.xml b/Harshit/InterFragment/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..a60e2d7
--- /dev/null
+++ b/Harshit/InterFragment/app/src/main/AndroidManifest.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Harshit/InterFragment/app/src/main/java/com/codingblocks/interfragment/AFragment.java b/Harshit/InterFragment/app/src/main/java/com/codingblocks/interfragment/AFragment.java
new file mode 100644
index 0000000..c881ce4
--- /dev/null
+++ b/Harshit/InterFragment/app/src/main/java/com/codingblocks/interfragment/AFragment.java
@@ -0,0 +1,31 @@
+package com.codingblocks.interfragment;
+
+import android.os.Bundle;
+import android.support.annotation.Nullable;
+import android.support.v4.app.Fragment;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.Button;
+
+/**
+ * Created by the-dagger on 25/06/17.
+ */
+
+public class AFragment extends Fragment {
+
+ @Nullable
+ @Override
+ public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
+ View v = inflater.inflate(R.layout.fragment_a,container,false);
+ Button button = v.findViewById(R.id.button);
+ button.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ MainActivity mainActivity = (MainActivity) getActivity();
+ mainActivity.changeText("HELLO");
+ }
+ });
+ return v;
+ }
+}
diff --git a/Harshit/InterFragment/app/src/main/java/com/codingblocks/interfragment/BFragment.java b/Harshit/InterFragment/app/src/main/java/com/codingblocks/interfragment/BFragment.java
new file mode 100644
index 0000000..7a6b5a3
--- /dev/null
+++ b/Harshit/InterFragment/app/src/main/java/com/codingblocks/interfragment/BFragment.java
@@ -0,0 +1,32 @@
+package com.codingblocks.interfragment;
+
+import android.os.Bundle;
+import android.support.annotation.Nullable;
+import android.support.v4.app.Fragment;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.TextView;
+
+/**
+ * Created by the-dagger on 25/06/17.
+ */
+
+public class BFragment extends Fragment {
+
+ TextView textView;
+
+ @Nullable
+ @Override
+ public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
+ View v = inflater.inflate(R.layout.fragment_b, container, false);
+ textView = v.findViewById(R.id.textView);
+ return v;
+ }
+
+ public void setText(){
+ textView.setText("HOLAAAAAAAAAAAA");
+ }
+
+}
+
diff --git a/Harshit/InterFragment/app/src/main/java/com/codingblocks/interfragment/CFragment.java b/Harshit/InterFragment/app/src/main/java/com/codingblocks/interfragment/CFragment.java
new file mode 100644
index 0000000..b88fb2e
--- /dev/null
+++ b/Harshit/InterFragment/app/src/main/java/com/codingblocks/interfragment/CFragment.java
@@ -0,0 +1,31 @@
+package com.codingblocks.interfragment;
+
+import android.os.Bundle;
+import android.support.annotation.Nullable;
+import android.support.v4.app.Fragment;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.TextView;
+
+/**
+ * Created by the-dagger on 25/06/17.
+ */
+
+public class CFragment extends Fragment {
+
+ TextView textView;
+
+ @Nullable
+ @Override
+ public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
+ View v = inflater.inflate(R.layout.fragment_c,container,false);
+ textView = v.findViewById(R.id.textViewC);
+ return v;
+ }
+
+ void changeFragmentCText(String text){
+ textView.setText(text);
+ }
+
+}
diff --git a/Harshit/InterFragment/app/src/main/java/com/codingblocks/interfragment/Communicator.java b/Harshit/InterFragment/app/src/main/java/com/codingblocks/interfragment/Communicator.java
new file mode 100644
index 0000000..1e1f9ad
--- /dev/null
+++ b/Harshit/InterFragment/app/src/main/java/com/codingblocks/interfragment/Communicator.java
@@ -0,0 +1,11 @@
+package com.codingblocks.interfragment;
+
+/**
+ * Created by the-dagger on 25/06/17.
+ */
+
+public interface Communicator {
+
+ void changeText(String text);
+
+}
diff --git a/Harshit/InterFragment/app/src/main/java/com/codingblocks/interfragment/DetailActivity.java b/Harshit/InterFragment/app/src/main/java/com/codingblocks/interfragment/DetailActivity.java
new file mode 100644
index 0000000..2e0528b
--- /dev/null
+++ b/Harshit/InterFragment/app/src/main/java/com/codingblocks/interfragment/DetailActivity.java
@@ -0,0 +1,19 @@
+package com.codingblocks.interfragment;
+
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+
+public class DetailActivity extends AppCompatActivity implements Communicator{
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_detail);
+ }
+
+ @Override
+ public void changeText(String text) {
+ CFragment cFragment = (CFragment) getSupportFragmentManager().findFragmentById(R.id.fragmentC);
+ cFragment.changeFragmentCText(text);
+ }
+}
diff --git a/Harshit/InterFragment/app/src/main/java/com/codingblocks/interfragment/MainActivity.java b/Harshit/InterFragment/app/src/main/java/com/codingblocks/interfragment/MainActivity.java
new file mode 100644
index 0000000..6e5d051
--- /dev/null
+++ b/Harshit/InterFragment/app/src/main/java/com/codingblocks/interfragment/MainActivity.java
@@ -0,0 +1,29 @@
+package com.codingblocks.interfragment;
+
+import android.content.Intent;
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+import android.view.View;
+import android.widget.Button;
+
+public class MainActivity extends AppCompatActivity implements Communicator {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_main);
+ Button button = (Button) findViewById(R.id.buttonNext);
+ button.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ startActivity(new Intent(getBaseContext(),DetailActivity.class));
+ }
+ });
+ }
+
+ @Override
+ public void changeText(String text) {
+ BFragment bFragment = (BFragment) getSupportFragmentManager().findFragmentById(R.id.fragmentB);
+ bFragment.setText();
+ }
+}
diff --git a/Harshit/InterFragment/app/src/main/res/layout/activity_detail.xml b/Harshit/InterFragment/app/src/main/res/layout/activity_detail.xml
new file mode 100644
index 0000000..b6d364f
--- /dev/null
+++ b/Harshit/InterFragment/app/src/main/res/layout/activity_detail.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+
diff --git a/Harshit/InterFragment/app/src/main/res/layout/activity_main.xml b/Harshit/InterFragment/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 0000000..b7709dd
--- /dev/null
+++ b/Harshit/InterFragment/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/Harshit/InterFragment/app/src/main/res/layout/fragment_a.xml b/Harshit/InterFragment/app/src/main/res/layout/fragment_a.xml
new file mode 100644
index 0000000..f6785d2
--- /dev/null
+++ b/Harshit/InterFragment/app/src/main/res/layout/fragment_a.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Harshit/InterFragment/app/src/main/res/layout/fragment_b.xml b/Harshit/InterFragment/app/src/main/res/layout/fragment_b.xml
new file mode 100644
index 0000000..1b3d39e
--- /dev/null
+++ b/Harshit/InterFragment/app/src/main/res/layout/fragment_b.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Harshit/InterFragment/app/src/main/res/layout/fragment_c.xml b/Harshit/InterFragment/app/src/main/res/layout/fragment_c.xml
new file mode 100644
index 0000000..2bb2e90
--- /dev/null
+++ b/Harshit/InterFragment/app/src/main/res/layout/fragment_c.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Harshit/InterFragment/app/src/main/res/mipmap-hdpi/ic_launcher.png b/Harshit/InterFragment/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..cde69bc
Binary files /dev/null and b/Harshit/InterFragment/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/Harshit/InterFragment/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/Harshit/InterFragment/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
new file mode 100644
index 0000000..9a078e3
Binary files /dev/null and b/Harshit/InterFragment/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/Harshit/InterFragment/app/src/main/res/mipmap-mdpi/ic_launcher.png b/Harshit/InterFragment/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..c133a0c
Binary files /dev/null and b/Harshit/InterFragment/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/Harshit/InterFragment/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/Harshit/InterFragment/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
new file mode 100644
index 0000000..efc028a
Binary files /dev/null and b/Harshit/InterFragment/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/Harshit/InterFragment/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/Harshit/InterFragment/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..bfa42f0
Binary files /dev/null and b/Harshit/InterFragment/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/Harshit/InterFragment/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/Harshit/InterFragment/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..3af2608
Binary files /dev/null and b/Harshit/InterFragment/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/Harshit/InterFragment/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/Harshit/InterFragment/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..324e72c
Binary files /dev/null and b/Harshit/InterFragment/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/Harshit/InterFragment/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/Harshit/InterFragment/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..9bec2e6
Binary files /dev/null and b/Harshit/InterFragment/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/Harshit/InterFragment/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/Harshit/InterFragment/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..aee44e1
Binary files /dev/null and b/Harshit/InterFragment/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/Harshit/InterFragment/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/Harshit/InterFragment/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..34947cd
Binary files /dev/null and b/Harshit/InterFragment/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/Harshit/InterFragment/app/src/main/res/values/colors.xml b/Harshit/InterFragment/app/src/main/res/values/colors.xml
new file mode 100644
index 0000000..3ab3e9c
--- /dev/null
+++ b/Harshit/InterFragment/app/src/main/res/values/colors.xml
@@ -0,0 +1,6 @@
+
+
+ #3F51B5
+ #303F9F
+ #FF4081
+
diff --git a/Harshit/InterFragment/app/src/main/res/values/strings.xml b/Harshit/InterFragment/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..6f6ced6
--- /dev/null
+++ b/Harshit/InterFragment/app/src/main/res/values/strings.xml
@@ -0,0 +1,3 @@
+
+ InterFragment
+
diff --git a/Harshit/InterFragment/app/src/main/res/values/styles.xml b/Harshit/InterFragment/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..5885930
--- /dev/null
+++ b/Harshit/InterFragment/app/src/main/res/values/styles.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
diff --git a/Harshit/InterFragment/app/src/test/java/com/codingblocks/interfragment/ExampleUnitTest.java b/Harshit/InterFragment/app/src/test/java/com/codingblocks/interfragment/ExampleUnitTest.java
new file mode 100644
index 0000000..9a7d7da
--- /dev/null
+++ b/Harshit/InterFragment/app/src/test/java/com/codingblocks/interfragment/ExampleUnitTest.java
@@ -0,0 +1,17 @@
+package com.codingblocks.interfragment;
+
+import org.junit.Test;
+
+import static org.junit.Assert.*;
+
+/**
+ * Example local unit test, which will execute on the development machine (host).
+ *
+ * @see Testing documentation
+ */
+public class ExampleUnitTest {
+ @Test
+ public void addition_isCorrect() throws Exception {
+ assertEquals(4, 2 + 2);
+ }
+}
\ No newline at end of file
diff --git a/Harshit/InterFragment/build.gradle b/Harshit/InterFragment/build.gradle
new file mode 100644
index 0000000..c2eea8e
--- /dev/null
+++ b/Harshit/InterFragment/build.gradle
@@ -0,0 +1,23 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+
+buildscript {
+ repositories {
+ jcenter()
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:2.3.3'
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ jcenter()
+ }
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
diff --git a/Harshit/InterFragment/gradle.properties b/Harshit/InterFragment/gradle.properties
new file mode 100644
index 0000000..aac7c9b
--- /dev/null
+++ b/Harshit/InterFragment/gradle.properties
@@ -0,0 +1,17 @@
+# 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=-Xmx1536m
+
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
diff --git a/Harshit/InterFragment/gradlew b/Harshit/InterFragment/gradlew
new file mode 100755
index 0000000..9d82f78
--- /dev/null
+++ b/Harshit/InterFragment/gradlew
@@ -0,0 +1,160 @@
+#!/usr/bin/env bash
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# 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
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+esac
+
+# 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
+
+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" ] ; 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, switch paths to Windows format before running java
+if $cygwin ; 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=$((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
+
+# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
+function splitJvmOpts() {
+ JVM_OPTS=("$@")
+}
+eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
+JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
+
+exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
diff --git a/Harshit/InterFragment/gradlew.bat b/Harshit/InterFragment/gradlew.bat
new file mode 100644
index 0000000..aec9973
--- /dev/null
+++ b/Harshit/InterFragment/gradlew.bat
@@ -0,0 +1,90 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windowz variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+if "%@eval[2+2]" == "4" goto 4NT_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+goto execute
+
+:4NT_args
+@rem Get arguments from the 4NT Shell from JP Software
+set CMD_LINE_ARGS=%$
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/Harshit/InterFragment/settings.gradle b/Harshit/InterFragment/settings.gradle
new file mode 100644
index 0000000..e7b4def
--- /dev/null
+++ b/Harshit/InterFragment/settings.gradle
@@ -0,0 +1 @@
+include ':app'
diff --git a/Harshit/Whatsapp/.gitignore b/Harshit/Whatsapp/.gitignore
new file mode 100644
index 0000000..39fb081
--- /dev/null
+++ b/Harshit/Whatsapp/.gitignore
@@ -0,0 +1,9 @@
+*.iml
+.gradle
+/local.properties
+/.idea/workspace.xml
+/.idea/libraries
+.DS_Store
+/build
+/captures
+.externalNativeBuild
diff --git a/Harshit/Whatsapp/app/.gitignore b/Harshit/Whatsapp/app/.gitignore
new file mode 100644
index 0000000..796b96d
--- /dev/null
+++ b/Harshit/Whatsapp/app/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/Harshit/Whatsapp/app/build.gradle b/Harshit/Whatsapp/app/build.gradle
new file mode 100644
index 0000000..a9758bd
--- /dev/null
+++ b/Harshit/Whatsapp/app/build.gradle
@@ -0,0 +1,32 @@
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion 25
+ buildToolsVersion "25.0.2"
+ defaultConfig {
+ applicationId "com.codingblocks.whatsapp"
+ minSdkVersion 15
+ targetSdkVersion 26
+ versionCode 1
+ versionName "1.0"
+ testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
+ }
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+dependencies {
+ compile fileTree(dir: 'libs', include: ['*.jar'])
+ androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
+ exclude group: 'com.android.support', module: 'support-annotations'
+ })
+ compile 'com.android.support:appcompat-v7:25.3.1'
+ compile 'com.android.support.constraint:constraint-layout:1.0.2'
+ compile 'com.android.support:recyclerview-v7:25.3.1'
+ compile 'com.android.support:design:25.3.1'
+ testCompile 'junit:junit:4.12'
+}
diff --git a/Harshit/Whatsapp/app/local.properties b/Harshit/Whatsapp/app/local.properties
new file mode 100644
index 0000000..7760274
--- /dev/null
+++ b/Harshit/Whatsapp/app/local.properties
@@ -0,0 +1,11 @@
+## This file is automatically generated by Android Studio.
+# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
+#
+# This file must *NOT* be checked into Version Control Systems,
+# as it contains information specific to your local configuration.
+#
+# Location of the SDK. This is only used by Gradle.
+# For customization when using a Version Control System, please read the
+# header note.
+#Sun Jun 25 16:26:12 IST 2017
+sdk.dir=/Users/harshit/Library/Android/sdk
diff --git a/Harshit/Whatsapp/app/proguard-rules.pro b/Harshit/Whatsapp/app/proguard-rules.pro
new file mode 100644
index 0000000..39850f7
--- /dev/null
+++ b/Harshit/Whatsapp/app/proguard-rules.pro
@@ -0,0 +1,25 @@
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in /Users/harshit/Library/Android/sdk/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the proguardFiles
+# directive in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
+
+# Uncomment this to preserve the line number information for
+# debugging stack traces.
+#-keepattributes SourceFile,LineNumberTable
+
+# If you keep the line number information, uncomment this to
+# hide the original source file name.
+#-renamesourcefileattribute SourceFile
diff --git a/Harshit/Whatsapp/app/src/androidTest/java/com/codingblocks/whatsapp/ExampleInstrumentedTest.java b/Harshit/Whatsapp/app/src/androidTest/java/com/codingblocks/whatsapp/ExampleInstrumentedTest.java
new file mode 100644
index 0000000..b0d64b9
--- /dev/null
+++ b/Harshit/Whatsapp/app/src/androidTest/java/com/codingblocks/whatsapp/ExampleInstrumentedTest.java
@@ -0,0 +1,26 @@
+package com.codingblocks.whatsapp;
+
+import android.content.Context;
+import android.support.test.InstrumentationRegistry;
+import android.support.test.runner.AndroidJUnit4;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+import static org.junit.Assert.*;
+
+/**
+ * Instrumentation test, which will execute on an Android device.
+ *
+ * @see Testing documentation
+ */
+@RunWith(AndroidJUnit4.class)
+public class ExampleInstrumentedTest {
+ @Test
+ public void useAppContext() throws Exception {
+ // Context of the app under test.
+ Context appContext = InstrumentationRegistry.getTargetContext();
+
+ assertEquals("com.codingblocks.whatsapp", appContext.getPackageName());
+ }
+}
diff --git a/Harshit/Whatsapp/app/src/main/AndroidManifest.xml b/Harshit/Whatsapp/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..69a869e
--- /dev/null
+++ b/Harshit/Whatsapp/app/src/main/AndroidManifest.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Harshit/Whatsapp/app/src/main/java/com/codingblocks/whatsapp/activity/MainActivity.java b/Harshit/Whatsapp/app/src/main/java/com/codingblocks/whatsapp/activity/MainActivity.java
new file mode 100644
index 0000000..d9ea8d8
--- /dev/null
+++ b/Harshit/Whatsapp/app/src/main/java/com/codingblocks/whatsapp/activity/MainActivity.java
@@ -0,0 +1,133 @@
+package com.codingblocks.whatsapp.activity;
+
+import android.support.design.widget.TabLayout;
+import android.support.v4.app.Fragment;
+import android.support.v4.app.FragmentManager;
+import android.support.v4.app.FragmentPagerAdapter;
+import android.support.v4.view.ViewPager;
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+
+import com.codingblocks.whatsapp.R;
+import com.codingblocks.whatsapp.fragment.CallFragment;
+import com.codingblocks.whatsapp.fragment.CameraFragment;
+import com.codingblocks.whatsapp.fragment.ChatFragment;
+import com.codingblocks.whatsapp.fragment.StatusFragment;
+import com.codingblocks.whatsapp.model.Call;
+import com.codingblocks.whatsapp.model.Chat;
+import com.codingblocks.whatsapp.model.Status;
+
+import java.util.ArrayList;
+
+public class MainActivity extends AppCompatActivity {
+
+ ArrayList chatArrayList = new ArrayList<>();
+ ArrayList callArrayList = new ArrayList<>();
+ ArrayList statusArrayList = new ArrayList<>();
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_main);
+ ViewPager viewPager = (ViewPager) findViewById(R.id.viewPager);
+ PagerAdapter pagerAdapter = new PagerAdapter(getSupportFragmentManager());
+ viewPager.setAdapter(pagerAdapter);
+
+ chatArrayList.add(new Chat("Harshit","Hey, there?", "6 : 30 pm"));
+ chatArrayList.add(new Chat("Harshit","Hey, there?", "6 : 30 pm"));
+ chatArrayList.add(new Chat("Harshit","Hey, there?", "6 : 30 pm"));
+ chatArrayList.add(new Chat("Harshit","Hey, there?", "6 : 30 pm"));
+ chatArrayList.add(new Chat("Harshit","Hey, there?", "6 : 30 pm"));
+ chatArrayList.add(new Chat("Harshit","Hey, there?", "6 : 30 pm"));
+ chatArrayList.add(new Chat("Harshit","Hey, there?", "6 : 30 pm"));
+ chatArrayList.add(new Chat("Harshit","Hey, there?", "6 : 30 pm"));
+ chatArrayList.add(new Chat("Harshit","Hey, there?", "6 : 30 pm"));
+ chatArrayList.add(new Chat("Harshit","Hey, there?", "6 : 30 pm"));
+
+ callArrayList.add(new Call("Bae Ji","5 : 30 am","16 January"));
+ callArrayList.add(new Call("Bae Ji","5 : 30 am","16 January"));
+ callArrayList.add(new Call("Bae Ji","5 : 30 am","16 January"));
+ callArrayList.add(new Call("Bae Ji","5 : 30 am","16 January"));
+ callArrayList.add(new Call("Bae Ji","5 : 30 am","16 January"));
+ callArrayList.add(new Call("Bae Ji","5 : 30 am","16 January"));
+ callArrayList.add(new Call("Bae Ji","5 : 30 am","16 January"));
+ callArrayList.add(new Call("Bae Ji","5 : 30 am","16 January"));
+ callArrayList.add(new Call("Bae Ji","5 : 30 am","16 January"));
+ callArrayList.add(new Call("Bae Ji","5 : 30 am","16 January"));
+ callArrayList.add(new Call("Bae Ji","5 : 30 am","16 January"));
+ callArrayList.add(new Call("Bae Ji","5 : 30 am","16 January"));
+ callArrayList.add(new Call("Bae Ji","5 : 30 am","16 January"));
+ callArrayList.add(new Call("Bae Ji","5 : 30 am","16 January"));
+ callArrayList.add(new Call("Bae Ji","5 : 30 am","16 January"));
+ callArrayList.add(new Call("Bae Ji","5 : 30 am","16 January"));
+ callArrayList.add(new Call("Bae Ji","5 : 30 am","16 January"));
+
+ statusArrayList.add(new Status("Someone Else","5 : 30 pm"));
+ statusArrayList.add(new Status("Someone Else","5 : 30 pm"));
+ statusArrayList.add(new Status("Someone Else","5 : 30 pm"));
+ statusArrayList.add(new Status("Someone Else","5 : 30 pm"));
+ statusArrayList.add(new Status("Someone Else","5 : 30 pm"));
+ statusArrayList.add(new Status("Someone Else","5 : 30 pm"));
+ statusArrayList.add(new Status("Someone Else","5 : 30 pm"));
+ statusArrayList.add(new Status("Someone Else","5 : 30 pm"));
+ statusArrayList.add(new Status("Someone Else","5 : 30 pm"));
+ statusArrayList.add(new Status("Someone Else","5 : 30 pm"));
+ statusArrayList.add(new Status("Someone Else","5 : 30 pm"));
+ statusArrayList.add(new Status("Someone Else","5 : 30 pm"));
+ statusArrayList.add(new Status("Someone Else","5 : 30 pm"));
+ statusArrayList.add(new Status("Someone Else","5 : 30 pm"));
+ statusArrayList.add(new Status("Someone Else","5 : 30 pm"));
+ statusArrayList.add(new Status("Someone Else","5 : 30 pm"));
+ statusArrayList.add(new Status("Someone Else","5 : 30 pm"));
+ statusArrayList.add(new Status("Someone Else","5 : 30 pm"));
+ statusArrayList.add(new Status("Someone Else","5 : 30 pm"));
+ TabLayout tabLayout = (TabLayout) findViewById(R.id.tabLayout);
+ tabLayout.setupWithViewPager(viewPager);
+
+ }
+
+ class PagerAdapter extends FragmentPagerAdapter {
+
+ public PagerAdapter(FragmentManager fm) {
+ super(fm);
+ }
+
+ @Override
+ public Fragment getItem(int position) {
+ switch (position){
+ case 0:
+ return ChatFragment.newInstance();
+ case 1:
+ return StatusFragment.newInstance();
+ case 2:
+ return CallFragment.Companion.newInstance(callArrayList);
+ case 3:
+ return CameraFragment.newInstance();
+ default:
+ return null;
+ }
+ }
+
+ @Override
+ public int getCount() {
+ return 4;
+ }
+
+ @Override
+ public CharSequence getPageTitle(int position) {
+ switch (position){
+ case 0:
+ return "Chats";
+ case 1:
+ return "Status";
+ case 2:
+ return "Calls";
+ case 3:
+ return "Camera";
+ default:
+ return "";
+ }
+ }
+ }
+
+}
diff --git a/Harshit/Whatsapp/app/src/main/java/com/codingblocks/whatsapp/adapter/CallAdapter.java b/Harshit/Whatsapp/app/src/main/java/com/codingblocks/whatsapp/adapter/CallAdapter.java
new file mode 100644
index 0000000..33fc656
--- /dev/null
+++ b/Harshit/Whatsapp/app/src/main/java/com/codingblocks/whatsapp/adapter/CallAdapter.java
@@ -0,0 +1,47 @@
+package com.codingblocks.whatsapp.adapter;
+
+import android.support.v7.widget.RecyclerView;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+
+import com.codingblocks.whatsapp.R;
+import com.codingblocks.whatsapp.model.Call;
+
+import java.util.ArrayList;
+
+/**
+ * Created by the-dagger on 24/06/17.
+ */
+
+public class CallAdapter extends RecyclerView.Adapter{
+
+ ArrayList callArrayList;
+
+ public CallAdapter(ArrayList callArrayList) {
+ this.callArrayList = callArrayList;
+ }
+
+ @Override
+ public CallHolder onCreateViewHolder(ViewGroup parent, int viewType) {
+ return new CallHolder(LayoutInflater.from(parent.getContext()).inflate(R.layout.single_item_call,parent,false));
+ }
+
+ @Override
+ public void onBindViewHolder(CallHolder holder, int position) {
+
+ }
+
+ @Override
+ public int getItemCount() {
+ return callArrayList.size();
+ }
+
+ class CallHolder extends RecyclerView.ViewHolder{
+
+ public CallHolder(View itemView) {
+ super(itemView);
+ }
+ }
+
+}
diff --git a/Harshit/Whatsapp/app/src/main/java/com/codingblocks/whatsapp/adapter/ChatAdapter.java b/Harshit/Whatsapp/app/src/main/java/com/codingblocks/whatsapp/adapter/ChatAdapter.java
new file mode 100644
index 0000000..f1f6e24
--- /dev/null
+++ b/Harshit/Whatsapp/app/src/main/java/com/codingblocks/whatsapp/adapter/ChatAdapter.java
@@ -0,0 +1,48 @@
+package com.codingblocks.whatsapp.adapter;
+
+import android.support.v7.widget.RecyclerView;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+
+import com.codingblocks.whatsapp.R;
+import com.codingblocks.whatsapp.model.Chat;
+
+import java.util.ArrayList;
+
+/**
+ * Created by the-dagger on 24/06/17.
+ */
+
+public class ChatAdapter extends RecyclerView.Adapter{
+
+ ArrayList chatArrayList;
+
+ public ChatAdapter(ArrayList chatArrayList) {
+ this.chatArrayList = chatArrayList;
+ }
+
+
+ @Override
+ public ChatHolder onCreateViewHolder(ViewGroup parent, int viewType) {
+ return new ChatHolder(LayoutInflater.from(parent.getContext()).inflate(R.layout.single_item_chat,parent,false));
+ }
+
+ @Override
+ public void onBindViewHolder(ChatHolder holder, int position) {
+
+ }
+
+ @Override
+ public int getItemCount() {
+ return chatArrayList.size();
+ }
+
+ class ChatHolder extends RecyclerView.ViewHolder{
+
+ public ChatHolder(View itemView) {
+ super(itemView);
+ }
+ }
+
+}
diff --git a/Harshit/Whatsapp/app/src/main/java/com/codingblocks/whatsapp/adapter/StatusAdapter.java b/Harshit/Whatsapp/app/src/main/java/com/codingblocks/whatsapp/adapter/StatusAdapter.java
new file mode 100644
index 0000000..91a2fde
--- /dev/null
+++ b/Harshit/Whatsapp/app/src/main/java/com/codingblocks/whatsapp/adapter/StatusAdapter.java
@@ -0,0 +1,47 @@
+package com.codingblocks.whatsapp.adapter;
+
+import android.support.v7.widget.RecyclerView;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+
+import com.codingblocks.whatsapp.R;
+import com.codingblocks.whatsapp.model.Status;
+
+import java.util.ArrayList;
+
+/**
+ * Created by the-dagger on 24/06/17.
+ */
+
+public class StatusAdapter extends RecyclerView.Adapter {
+
+ private ArrayList statusArrayList;
+
+ public StatusAdapter(ArrayList statusArrayList) {
+ this.statusArrayList = statusArrayList;
+ }
+
+ @Override
+ public StatusHolder onCreateViewHolder(ViewGroup parent, int viewType) {
+ return new StatusHolder(LayoutInflater.from(parent.getContext()).inflate(R.layout.single_item_status, parent, false));
+ }
+
+ @Override
+ public void onBindViewHolder(StatusHolder holder, int position) {
+
+ }
+
+ @Override
+ public int getItemCount() {
+ return statusArrayList.size();
+ }
+
+ class StatusHolder extends RecyclerView.ViewHolder {
+
+ public StatusHolder(View itemView) {
+ super(itemView);
+ }
+ }
+
+}
diff --git a/Harshit/Whatsapp/app/src/main/java/com/codingblocks/whatsapp/fragment/CallFragment.kt b/Harshit/Whatsapp/app/src/main/java/com/codingblocks/whatsapp/fragment/CallFragment.kt
new file mode 100644
index 0000000..e6da02a
--- /dev/null
+++ b/Harshit/Whatsapp/app/src/main/java/com/codingblocks/whatsapp/fragment/CallFragment.kt
@@ -0,0 +1,47 @@
+package com.codingblocks.whatsapp.fragment
+
+import android.content.Context
+import android.os.Bundle
+import android.support.v4.app.Fragment
+import android.support.v7.widget.LinearLayoutManager
+import android.support.v7.widget.RecyclerView
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+
+import com.codingblocks.whatsapp.R
+import com.codingblocks.whatsapp.adapter.ChatAdapter
+import com.codingblocks.whatsapp.model.Call
+import com.codingblocks.whatsapp.model.Chat
+
+import java.util.ArrayList
+
+/**
+ * Created by the-dagger on 24/06/17.
+ */
+
+class CallFragment : Fragment() {
+
+ override fun onAttach(context: Context?) {
+ super.onAttach(context)
+ }
+
+ override fun onCreateView(inflater: LayoutInflater?, container: ViewGroup?, savedInstanceState: Bundle?): View? {
+ val v = inflater!!.inflate(R.layout.fragment_call, container, false)
+ val recyclerView = v.findViewById(R.id.rvCall) as RecyclerView
+ recyclerView.layoutManager = LinearLayoutManager(activity)
+ recyclerView.adapter = ChatAdapter(arguments.getSerializable("CALL") as ArrayList)
+ return v
+ }
+
+ companion object {
+
+ fun newInstance(callArrayList: ArrayList): CallFragment {
+ val args = Bundle()
+ args.putSerializable("CALL", callArrayList)
+ val fragment = CallFragment()
+ fragment.arguments = args
+ return fragment
+ }
+ }
+}
diff --git a/Harshit/Whatsapp/app/src/main/java/com/codingblocks/whatsapp/fragment/CameraFragment.java b/Harshit/Whatsapp/app/src/main/java/com/codingblocks/whatsapp/fragment/CameraFragment.java
new file mode 100644
index 0000000..e34cdef
--- /dev/null
+++ b/Harshit/Whatsapp/app/src/main/java/com/codingblocks/whatsapp/fragment/CameraFragment.java
@@ -0,0 +1,55 @@
+package com.codingblocks.whatsapp.fragment;
+
+import android.content.Context;
+import android.content.Intent;
+import android.net.Uri;
+import android.os.Bundle;
+import android.os.Environment;
+import android.provider.MediaStore;
+import android.support.annotation.Nullable;
+import android.support.v4.app.Fragment;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+
+import com.codingblocks.whatsapp.R;
+
+import java.io.File;
+
+/**
+ * Created by the-dagger on 24/06/17.
+ */
+
+public class CameraFragment extends Fragment{
+
+
+
+ @Override
+ public void onAttach(Context context) {
+ super.onAttach(context);
+ }
+
+ public static CameraFragment newInstance() {
+
+ Bundle args = new Bundle();
+
+ CameraFragment fragment = new CameraFragment();
+ fragment.setArguments(args);
+ return fragment;
+ }
+
+ @Nullable
+ @Override
+ public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
+ View v = inflater.inflate(R.layout.fragment_camera,container,false);
+ return v;
+ }
+
+ @Override
+ public void onResume() {
+ super.onResume();
+ Intent i = new Intent();
+ i.setAction(MediaStore.ACTION_IMAGE_CAPTURE);
+ startActivity(i);
+ }
+}
diff --git a/Harshit/Whatsapp/app/src/main/java/com/codingblocks/whatsapp/fragment/ChatFragment.java b/Harshit/Whatsapp/app/src/main/java/com/codingblocks/whatsapp/fragment/ChatFragment.java
new file mode 100644
index 0000000..e4a793e
--- /dev/null
+++ b/Harshit/Whatsapp/app/src/main/java/com/codingblocks/whatsapp/fragment/ChatFragment.java
@@ -0,0 +1,33 @@
+package com.codingblocks.whatsapp.fragment;
+
+import android.os.Bundle;
+import android.support.annotation.Nullable;
+import android.support.v4.app.Fragment;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+
+import com.codingblocks.whatsapp.R;
+
+/**
+ * Created by the-dagger on 24/06/17.
+ */
+
+public class ChatFragment extends Fragment{
+
+ public static ChatFragment newInstance() {
+
+ Bundle args = new Bundle();
+
+ ChatFragment fragment = new ChatFragment();
+ fragment.setArguments(args);
+ return fragment;
+ }
+
+ @Nullable
+ @Override
+ public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
+ View v = inflater.inflate(R.layout.fragment_chat,container,false);
+ return v;
+ }
+}
diff --git a/Harshit/Whatsapp/app/src/main/java/com/codingblocks/whatsapp/fragment/StatusFragment.java b/Harshit/Whatsapp/app/src/main/java/com/codingblocks/whatsapp/fragment/StatusFragment.java
new file mode 100644
index 0000000..86daeeb
--- /dev/null
+++ b/Harshit/Whatsapp/app/src/main/java/com/codingblocks/whatsapp/fragment/StatusFragment.java
@@ -0,0 +1,33 @@
+package com.codingblocks.whatsapp.fragment;
+
+import android.os.Bundle;
+import android.support.annotation.Nullable;
+import android.support.v4.app.Fragment;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+
+import com.codingblocks.whatsapp.R;
+
+/**
+ * Created by the-dagger on 24/06/17.
+ */
+
+public class StatusFragment extends Fragment{
+
+ public static StatusFragment newInstance() {
+
+ Bundle args = new Bundle();
+
+ StatusFragment fragment = new StatusFragment();
+ fragment.setArguments(args);
+ return fragment;
+ }
+
+ @Nullable
+ @Override
+ public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
+ View v = inflater.inflate(R.layout.fragment_status,container,false);
+ return v;
+ }
+}
diff --git a/Harshit/Whatsapp/app/src/main/java/com/codingblocks/whatsapp/model/Call.java b/Harshit/Whatsapp/app/src/main/java/com/codingblocks/whatsapp/model/Call.java
new file mode 100644
index 0000000..7f53e55
--- /dev/null
+++ b/Harshit/Whatsapp/app/src/main/java/com/codingblocks/whatsapp/model/Call.java
@@ -0,0 +1,30 @@
+package com.codingblocks.whatsapp.model;
+
+import java.io.Serializable;
+
+/**
+ * Created by the-dagger on 24/06/17.
+ */
+
+public class Call implements Serializable{
+
+ String name,time,date;
+
+ public Call(String name, String time, String date) {
+ this.name = name;
+ this.time = time;
+ this.date = date;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public String getTime() {
+ return time;
+ }
+
+ public String getDate() {
+ return date;
+ }
+}
diff --git a/Harshit/Whatsapp/app/src/main/java/com/codingblocks/whatsapp/model/Chat.java b/Harshit/Whatsapp/app/src/main/java/com/codingblocks/whatsapp/model/Chat.java
new file mode 100644
index 0000000..2861539
--- /dev/null
+++ b/Harshit/Whatsapp/app/src/main/java/com/codingblocks/whatsapp/model/Chat.java
@@ -0,0 +1,30 @@
+package com.codingblocks.whatsapp.model;
+
+import java.io.Serializable;
+
+/**
+ * Created by the-dagger on 24/06/17.
+ */
+
+public class Chat implements Serializable{
+
+ String name,description,time;
+
+ public Chat(String name, String description, String time) {
+ this.name = name;
+ this.description = description;
+ this.time = time;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public String getTime() {
+ return time;
+ }
+}
diff --git a/Harshit/Whatsapp/app/src/main/java/com/codingblocks/whatsapp/model/Main2Activity.java b/Harshit/Whatsapp/app/src/main/java/com/codingblocks/whatsapp/model/Main2Activity.java
new file mode 100644
index 0000000..db6eaed
--- /dev/null
+++ b/Harshit/Whatsapp/app/src/main/java/com/codingblocks/whatsapp/model/Main2Activity.java
@@ -0,0 +1,15 @@
+package com.codingblocks.whatsapp.model;
+
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+
+import com.codingblocks.whatsapp.R;
+
+public class Main2Activity extends AppCompatActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_main2);
+ }
+}
diff --git a/Harshit/Whatsapp/app/src/main/java/com/codingblocks/whatsapp/model/Status.java b/Harshit/Whatsapp/app/src/main/java/com/codingblocks/whatsapp/model/Status.java
new file mode 100644
index 0000000..8754f0c
--- /dev/null
+++ b/Harshit/Whatsapp/app/src/main/java/com/codingblocks/whatsapp/model/Status.java
@@ -0,0 +1,12 @@
+package com.codingblocks.whatsapp.model;
+
+
+/**
+ * Created by the-dagger on 24/06/17.
+ */
+
+public class Status{
+
+ String name,time;
+
+}
diff --git a/Harshit/Whatsapp/app/src/main/java/com/codingblocks/whatsapp/model/TestModel.kt b/Harshit/Whatsapp/app/src/main/java/com/codingblocks/whatsapp/model/TestModel.kt
new file mode 100644
index 0000000..ac23de1
--- /dev/null
+++ b/Harshit/Whatsapp/app/src/main/java/com/codingblocks/whatsapp/model/TestModel.kt
@@ -0,0 +1,7 @@
+package com.codingblocks.whatsapp.model
+
+/**
+ * Created by the-dagger on 25/06/17.
+ */
+
+internal class TestModel(var name: String, var course: String, var batch: String, var age: Int, var number: Int, var marks: Int)
diff --git a/Harshit/Whatsapp/app/src/main/res/layout/activity_main.xml b/Harshit/Whatsapp/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 0000000..8673ded
--- /dev/null
+++ b/Harshit/Whatsapp/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/Harshit/Whatsapp/app/src/main/res/layout/activity_main2.xml b/Harshit/Whatsapp/app/src/main/res/layout/activity_main2.xml
new file mode 100644
index 0000000..4eaf867
--- /dev/null
+++ b/Harshit/Whatsapp/app/src/main/res/layout/activity_main2.xml
@@ -0,0 +1,9 @@
+
+
+
+
diff --git a/Harshit/Whatsapp/app/src/main/res/layout/fragment_call.xml b/Harshit/Whatsapp/app/src/main/res/layout/fragment_call.xml
new file mode 100644
index 0000000..0df3390
--- /dev/null
+++ b/Harshit/Whatsapp/app/src/main/res/layout/fragment_call.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/Harshit/Whatsapp/app/src/main/res/layout/fragment_camera.xml b/Harshit/Whatsapp/app/src/main/res/layout/fragment_camera.xml
new file mode 100644
index 0000000..612b803
--- /dev/null
+++ b/Harshit/Whatsapp/app/src/main/res/layout/fragment_camera.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Harshit/Whatsapp/app/src/main/res/layout/fragment_chat.xml b/Harshit/Whatsapp/app/src/main/res/layout/fragment_chat.xml
new file mode 100644
index 0000000..be7bad1
--- /dev/null
+++ b/Harshit/Whatsapp/app/src/main/res/layout/fragment_chat.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/Harshit/Whatsapp/app/src/main/res/layout/fragment_status.xml b/Harshit/Whatsapp/app/src/main/res/layout/fragment_status.xml
new file mode 100644
index 0000000..7110a88
--- /dev/null
+++ b/Harshit/Whatsapp/app/src/main/res/layout/fragment_status.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/Harshit/Whatsapp/app/src/main/res/layout/single_item_call.xml b/Harshit/Whatsapp/app/src/main/res/layout/single_item_call.xml
new file mode 100644
index 0000000..a889bde
--- /dev/null
+++ b/Harshit/Whatsapp/app/src/main/res/layout/single_item_call.xml
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Harshit/Whatsapp/app/src/main/res/layout/single_item_chat.xml b/Harshit/Whatsapp/app/src/main/res/layout/single_item_chat.xml
new file mode 100644
index 0000000..9d96eb6
--- /dev/null
+++ b/Harshit/Whatsapp/app/src/main/res/layout/single_item_chat.xml
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Harshit/Whatsapp/app/src/main/res/layout/single_item_status.xml b/Harshit/Whatsapp/app/src/main/res/layout/single_item_status.xml
new file mode 100644
index 0000000..4382588
--- /dev/null
+++ b/Harshit/Whatsapp/app/src/main/res/layout/single_item_status.xml
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Harshit/Whatsapp/app/src/main/res/menu/menu_main2.xml b/Harshit/Whatsapp/app/src/main/res/menu/menu_main2.xml
new file mode 100644
index 0000000..6655e46
--- /dev/null
+++ b/Harshit/Whatsapp/app/src/main/res/menu/menu_main2.xml
@@ -0,0 +1,10 @@
+
diff --git a/Harshit/Whatsapp/app/src/main/res/mipmap-hdpi/ic_launcher.png b/Harshit/Whatsapp/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..cde69bc
Binary files /dev/null and b/Harshit/Whatsapp/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/Harshit/Whatsapp/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/Harshit/Whatsapp/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
new file mode 100644
index 0000000..9a078e3
Binary files /dev/null and b/Harshit/Whatsapp/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/Harshit/Whatsapp/app/src/main/res/mipmap-mdpi/ic_launcher.png b/Harshit/Whatsapp/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..c133a0c
Binary files /dev/null and b/Harshit/Whatsapp/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/Harshit/Whatsapp/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/Harshit/Whatsapp/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
new file mode 100644
index 0000000..efc028a
Binary files /dev/null and b/Harshit/Whatsapp/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/Harshit/Whatsapp/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/Harshit/Whatsapp/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..bfa42f0
Binary files /dev/null and b/Harshit/Whatsapp/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/Harshit/Whatsapp/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/Harshit/Whatsapp/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..3af2608
Binary files /dev/null and b/Harshit/Whatsapp/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/Harshit/Whatsapp/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/Harshit/Whatsapp/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..324e72c
Binary files /dev/null and b/Harshit/Whatsapp/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/Harshit/Whatsapp/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/Harshit/Whatsapp/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..9bec2e6
Binary files /dev/null and b/Harshit/Whatsapp/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/Harshit/Whatsapp/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/Harshit/Whatsapp/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..aee44e1
Binary files /dev/null and b/Harshit/Whatsapp/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/Harshit/Whatsapp/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/Harshit/Whatsapp/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..34947cd
Binary files /dev/null and b/Harshit/Whatsapp/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/Harshit/Whatsapp/app/src/main/res/values-w820dp/dimens.xml b/Harshit/Whatsapp/app/src/main/res/values-w820dp/dimens.xml
new file mode 100644
index 0000000..63fc816
--- /dev/null
+++ b/Harshit/Whatsapp/app/src/main/res/values-w820dp/dimens.xml
@@ -0,0 +1,6 @@
+
+
+ 64dp
+
diff --git a/Harshit/Whatsapp/app/src/main/res/values/colors.xml b/Harshit/Whatsapp/app/src/main/res/values/colors.xml
new file mode 100644
index 0000000..3ab3e9c
--- /dev/null
+++ b/Harshit/Whatsapp/app/src/main/res/values/colors.xml
@@ -0,0 +1,6 @@
+
+
+ #3F51B5
+ #303F9F
+ #FF4081
+
diff --git a/Harshit/Whatsapp/app/src/main/res/values/dimens.xml b/Harshit/Whatsapp/app/src/main/res/values/dimens.xml
new file mode 100644
index 0000000..cef3abc
--- /dev/null
+++ b/Harshit/Whatsapp/app/src/main/res/values/dimens.xml
@@ -0,0 +1,7 @@
+
+
+ 16dp
+ 16dp
+ 16dp
+ 8dp
+
diff --git a/Harshit/Whatsapp/app/src/main/res/values/strings.xml b/Harshit/Whatsapp/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..730f3ac
--- /dev/null
+++ b/Harshit/Whatsapp/app/src/main/res/values/strings.xml
@@ -0,0 +1,6 @@
+
+ Whatsapp
+ Main2Activity
+ Settings
+ Hello World from section: %1$d
+
diff --git a/Harshit/Whatsapp/app/src/main/res/values/styles.xml b/Harshit/Whatsapp/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..545b9c6
--- /dev/null
+++ b/Harshit/Whatsapp/app/src/main/res/values/styles.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Harshit/Whatsapp/app/src/test/java/com/codingblocks/whatsapp/ExampleUnitTest.java b/Harshit/Whatsapp/app/src/test/java/com/codingblocks/whatsapp/ExampleUnitTest.java
new file mode 100644
index 0000000..4e22acb
--- /dev/null
+++ b/Harshit/Whatsapp/app/src/test/java/com/codingblocks/whatsapp/ExampleUnitTest.java
@@ -0,0 +1,17 @@
+package com.codingblocks.whatsapp;
+
+import org.junit.Test;
+
+import static org.junit.Assert.*;
+
+/**
+ * Example local unit test, which will execute on the development machine (host).
+ *
+ * @see Testing documentation
+ */
+public class ExampleUnitTest {
+ @Test
+ public void addition_isCorrect() throws Exception {
+ assertEquals(4, 2 + 2);
+ }
+}
\ No newline at end of file
diff --git a/Harshit/Whatsapp/build.gradle b/Harshit/Whatsapp/build.gradle
new file mode 100644
index 0000000..c2eea8e
--- /dev/null
+++ b/Harshit/Whatsapp/build.gradle
@@ -0,0 +1,23 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+
+buildscript {
+ repositories {
+ jcenter()
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:2.3.3'
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ jcenter()
+ }
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
diff --git a/Harshit/Whatsapp/gradle.properties b/Harshit/Whatsapp/gradle.properties
new file mode 100644
index 0000000..aac7c9b
--- /dev/null
+++ b/Harshit/Whatsapp/gradle.properties
@@ -0,0 +1,17 @@
+# 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=-Xmx1536m
+
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
diff --git a/Harshit/Whatsapp/gradlew b/Harshit/Whatsapp/gradlew
new file mode 100755
index 0000000..9d82f78
--- /dev/null
+++ b/Harshit/Whatsapp/gradlew
@@ -0,0 +1,160 @@
+#!/usr/bin/env bash
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# 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
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+esac
+
+# 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
+
+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" ] ; 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, switch paths to Windows format before running java
+if $cygwin ; 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=$((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
+
+# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
+function splitJvmOpts() {
+ JVM_OPTS=("$@")
+}
+eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
+JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
+
+exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
diff --git a/Harshit/Whatsapp/gradlew.bat b/Harshit/Whatsapp/gradlew.bat
new file mode 100644
index 0000000..aec9973
--- /dev/null
+++ b/Harshit/Whatsapp/gradlew.bat
@@ -0,0 +1,90 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windowz variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+if "%@eval[2+2]" == "4" goto 4NT_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+goto execute
+
+:4NT_args
+@rem Get arguments from the 4NT Shell from JP Software
+set CMD_LINE_ARGS=%$
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/Harshit/Whatsapp/settings.gradle b/Harshit/Whatsapp/settings.gradle
new file mode 100644
index 0000000..e7b4def
--- /dev/null
+++ b/Harshit/Whatsapp/settings.gradle
@@ -0,0 +1 @@
+include ':app'