Sunday, 1 February 2015

Android Push Notifications using Google Cloud Messaging (GCM), PHP and MySQL Part - 2

In this tutorial i give the instruction from the previous post Android Push Notifications using Google Cloud Messaging (GCM), PHP and MySQL Part - 1 if you are new to this please go through my previous post.
 Now lets start the coding from the PART - 1


5. Create another file named GCM.php This file used to send push notification requests to GCM server.
GCM.php
<?php
class GCM {
    //put your code here
    // constructor
    function __construct() {
         
    }
    /**
     * Sending Push Notification
     */
    public function send_notification($registatoin_ids, $message) {
        // include config
        include_once './config.php';
        // Set POST variables
        $url = 'https://android.googleapis.com/gcm/send';
        $fields = array(
            'registration_ids' => $registatoin_ids,
            'data' => $message,
        );
        $headers = array(
            'Authorization: key=' . GOOGLE_API_KEY,
            'Content-Type: application/json'
        );
        // Open connection
0

Sunday, 25 January 2015

Android Push Notifications using Google Cloud Messaging (GCM), PHP and MySQL Part - 1

"Google Cloud Messaging for Android (GCM) is a service that helps developers send data from servers to their Android applications on Android devices” By using this service you can sent data to your client application from your Remote database or server that you have. using this service you can sent new data whenever your application need that.Integrating GCM in your android application enhances user experience and saves lot of battery power.


Overview of Google Cloud Messaging:


0

Wednesday, 3 September 2014

Google New fastest Quantum Computer

The search giant announced partnership with research team of california santa barbara to develop quantum computing technology.



WHAT IS QUANTUM COMPUTING?

                            The quantum is not like the tradtional computers and which makes use of quantum bits, or qubits to process the information as opposed to used by the tradtional computing processors.

But the researchers told that it would behave like zero's and ones as in the traditional computer.The qubits exponentially makes the computer s faster than the digital computer that currently uses the binary system for data operation.

The google quantum AI team announced that it will start to design their own implementation of design and quantum  processors that are based on the superconducting electronics.
To build the their own AI(artificial intelligence) based processors google hired some researchers from UC santa barbara john martinis and his team to build the processors.

"With an integrated hardware group the Quantum AI team will now be able to implement and test new designs for quantum optimization and inference processors based on recent theoretical insights as well as our learnings from the D-Wave quantum annealing architecture," wrote Hartmut Neven, Google's director of engineering, in a Google+ post on Tuesday.







0

Saturday, 2 August 2014

Android event listener implementation

Lesson 10. Optimizing event listeners implementation:

 

In this lesson we will:
- learn how to use one listener for several View-elements- teach Activity to to act as a listener

android screen

Create a project:
Project name: P0101_Listener
Build Target: Android 2.3.3
Application name: Listener
Package name: ru.startandroid.develop.listener
Create Activity: MainActivity

0

Android programing Event listeners with Button tutorial

Lesson 9. Event listeners with Button example:

 

In this lesson we will:
- learn how to process button clicks and find out what a listener is.


Let's create a project:
Project name: P0091_OnClickButtons
Build Target: Android 2.3.3
Application name: OnClickButtons
Package name: ru.startandroid.develop.onclickbuttons
Create Activity: MainActivity


We have a TextView with text and two buttons: OK and Cancel. Now we will make the TextView content change when a button is clicked. When OK is clicked - we will display text "Button OK clicked", when Cancel - "Cancel button clicked".
0

Best top 10 Android phones 2014

1. Samsung Galaxy S5:

 

Samsung galaxy S3 

While many were expecting a major change for this year's flagship Galaxy S model, Samsung has instead played it safe, keeping a very similar design to the S4. The S5 does thankfully replace that slimy back with a new fabric like design. The display has been upped to 5.1 inches and it packs a 1080p, full HD resolution, while it's all powered by 2GB RAM and a 2.5GHz quad-core processor. Your photos will be taken care of thanks to a 16 meg snapper on the back, which now has a few more tricks up its sleeve - like UHD video recording and a Lytro like depth of field feature. A load of new health benefits are here too, a heart rate monitor on the back for instance. Similar to models that went before, Samsung has overlaid Android (this time Kit Kat 4.4) with its TouchWiz UI, so you'll have to make do with those overly colourful icons.

0

Best free Android apps to download 2014

1. DoubleTwist Player:

 

 

 

DoubleTwist is one of the most comprehensive Android music apps available, fitting in pretty much all you might ever need. It syncs with PC, Mac and even iTunes playlists, manages podcast subscriptions, looks up missing album artwork and more. Some of it is free, while other modules are unlocked via in-app purchases, but at least that means you get to give it a shot for nothing.

Free | Download

0