Pages

Tuesday 29 November 2016

Kriti Sanon Photoshoot in purple dress

Recently Kriti Sanon posted some photos on her Instagram account.
She is looking stunning and beautiful in purple dress.
Dilwale girl was looking Gorgeous in purple dress in grass and decorated background.

Tuesday 11 October 2016

Ishq Junoon trailer

Bollywood is now making very hot movie with the intimate scene in that.
Whether there is new star cast or old but always censor board cut some scene if they feel inappropriate for Society.

Recently new movie trailer Ishq Junoon has been launched on YouTube.

Movie is starring with Rajbir, Divya and Akshay.

Click on following link to see trailer on YouTube.

https://youtu.be/JUBhllqLn3o

Jacqueline and Salman Khan Photoshoot for Being human jewellery

Salman Khan and Jacqueline Fernandez has very good chemistry from the film Kick.

All their fans wants to see them in again on silver screen.

Recently Jacqueline and Salman had Photoshoot  for Being Human Jewellery.

They both are looking stunning and beautiful together.

Check out following pics posted by Jacqueline on her Instagram account.




Sunday 9 October 2016

OMG! What's written on Priyanka Chopra's t shirt. Is this offensive or people not get it ?

Priyanka Chopra, beautiful diva of Bollywood is performing well in Hollywood as well.
She has made her presence in Bollywood and Hollywood by her beauty and talent.

Recently on magazine's cover page she found with nice pose wearing T Shirt. The message on the T Shirt was "Refugee Immigrants Outsider Traveller".

People trying to offense it but actually it may have different meaning.

Check out the picture of Priyanka wearing that T Shirt, in which she looks hot and sexy.

Sunday 2 October 2016

Priyanka Chopra intimate scene in Quantico 2

Quantico season 1 was very successful American TV series starred by Priyanka Chopra .
It had some intimate scene of Priyanka Chopra with Jake McLaughlin.
Recently there is one another intimate scene of Priyanka Chopra with Jake McLaughlin in Quantico season 2 .
Watch directly on YouTube.

https://youtu.be/bVPHTy0cAPs

Wednesday 13 July 2016

Beautiful pics of Kriti Senon

Recently Dilwale girl  Kriti Senon has posted some beautiful pics on her Instagram.

Image source - Instagram

Thursday 7 July 2016

Do you know why there is a small loop on back of your shirt?

These little loop were originally used by East Coast sailors, who would hang their shirts on ship hooks when changing. This detail soon found itself off the ships and onto the streets. The trend started with the US made Oxford button down shirts in the 1960′s.
Later, it even became part of Ivy League dating culture. They were used to denote relationship status or to show interest. Young ladies would rip the locker loops on the shirts of boys they found cute, which would sometimes result in the shirt ripping off. Sometimes, the guy would remove his loop to show that he was already taken by his sweetheart. That way girls couldn't run by and yank their shirt to pieces.
The trend was picked up by various other brands and continues till today. But since the arrival of wardrobes, locker loops serve no other purpose other than as a decorative design..

Courtesy -  http://www.awesomequotes4u.com

Saturday 2 July 2016

Kareena Kapoor Khan and Saif Ali Khan are expecting their first child

From the time the hottest couple of B-town Kareena Kapoor Khan and Saif Ali Khan visited London, a lot of buzz was going on behind the actress' pregnancy. In fact it was even reported that Bebo had visited a pre-natal clinic there. But even then, neither the couple nor their family members confirmed the news. But Bebo's dad Randhir Kapoor did mention that he hopes to become a grandpa soon. Well we guess, the veteran actor's wish has come true. KAREENA KAPOOR IS PREGNANT!

For more details click on

http://www.india.com/showbiz/confirmed-kareena-kapoor-khan-and-saif-ali-khan-are-expecting-their-first-child-1304243/

Pictures and content courtesy- india.com

Monday 27 June 2016

Firebase Cloud Messaging Tutorial for Android


Hello everyone all we know Google Cloud Messaging which sends message from server to app,  Google has introduces Firebase that allows many features including Firebase Cloud Messaging which is much more easier than Google Cloud Messaging.

Create android project in Android Studio.

Get configuration file

Go to firebase console and create new project


Now Put app name and select country from drop down



Select Add firebase to android app as shown below


After this you will ask to enter package name, after that click on add app new file in .JSON format will be downloaded into your download location.


 

Copy  that  google-services.json file  and put in your android app's main root folder.

Configuring Android application with firebase

Now go to your root level build.gradle file and add the following code.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.1.0'
        //Add this line
        classpath 'com.google.gms:google-services:3.0.0'
    }
}
allprojects {
    repositories {
        jcenter()
    }
}
task clean(type: Delete) {
    delete rootProject.buildDir
}

Inside app level build.gradle file copy following lines

apply plugin: 'com.android.application'
android {
    compileSdkVersion 23
    buildToolsVersion "23.0.3"
    defaultConfig {
        applicationId "com.fornfromgeeks.firebase"
        minSdkVersion 8
        targetSdkVersion 23
        versionCode 2
        versionName "1.1"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}
dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.4.0'
    //Add this line
    compile 'com.google.firebase:firebase-messaging:9.0.0'
}
//Add this line
apply plugin: 'com.google.gms.google-services'

Start syncing the project

Create MyFirebaseInstanceIDService.java file and copy paste following code in it.

import android.util.Log;
import com.google.firebase.iid.FirebaseInstanceId;
import com.google.firebase.iid.FirebaseInstanceIdService;
/**
* Created by Geek on 6/27/2016.
*/
//Class extending FirebaseInstanceIdService
public class MyFirebaseInstanceIDService extends FirebaseInstanceIdService {
    private static final String TAG = "MyFirebaseIIDService";
    @Override
    public void onTokenRefresh() {
        
        //Getting registration token
        String refreshedToken = FirebaseInstanceId.getInstance().getToken();
        
        //Displaying token on logcat
        Log.d(TAG, "Refreshed token: " + refreshedToken);
        
    }
    private void sendRegistrationToServer(String token) {
        //You can implement this method to store the token on your server
        //Not required for current project
    }
}

Create another  MyFirebaseMessagingService.java file and copy paste following code in it.


import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.media.RingtoneManager;
import android.net.Uri;
import android.support.v4.app.NotificationCompat;
import android.util.Log;
import com.google.firebase.messaging.FirebaseMessagingService;
import com.google.firebase.messaging.RemoteMessage;
/**
* Created by Geek on 6/27/2016.
*/
public class MyFirebaseMessagingService extends FirebaseMessagingService {
    private static final String TAG = "MyFirebaseMsgService";
    @Override
    public void onMessageReceived(RemoteMessage remoteMessage) {
        //Displaying data in log
        //It is optional
        Log.d(TAG, "From: " + remoteMessage.getFrom());
        Log.d(TAG, "Notification Message Body: " + remoteMessage.getNotification().getBody());
        
        //Calling method to generate notification
        sendNotification(remoteMessage.getNotification().getBody());
    }
    //This method is only generating push notification
    //It is same as we did in earlier posts
    private void sendNotification(String messageBody) {
        Intent intent = new Intent(this, MainActivity.class);
        intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
        PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent,
                PendingIntent.FLAG_ONE_SHOT);
        Uri defaultSoundUri= RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
        NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)
                .setSmallIcon(R.mipmap.ic_launcher)
                .setContentTitle("Firebase Push Notification from fornfromgeeks")
                .setContentText(messageBody)
                .setAutoCancel(true)
                .setSound(defaultSoundUri)
                .setContentIntent(pendingIntent);
        NotificationManager notificationManager =
                (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
        notificationManager.notify(0, notificationBuilder.build());
    }
}

We need to define and add services in our project's manifest file.

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.fornfromgeeks.firebase">
    <uses-permission android:name="android.permission.INTERNET"/>
    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme">
        <activity android:name=".MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <!--
            Defining and Adding Services
        -->
        <service
            android:name=".MyFirebaseMessagingService">
            <intent-filter>
                <action android:name="com.google.firebase.MESSAGING_EVENT"/>
            </intent-filter>
        </service>
        <service
            android:name=".MyFirebaseInstanceIDService">
            <intent-filter>
                <action android:name="com.google.firebase.INSTANCE_ID_EVENT"/>
            </intent-filter>
        </service>
    </application>
</manifest>

Its time to run the app, when you run the app you will see token in logcat, Copy that token which will use to send message form Firebase console.

Send FCM

Go to Firebase console and select your app
Select notification from left panel.
Click on new message
Enter message, select single device and paste the token you copied.

You will receive message.

Thank You !