Blog
Cisco

Nonprofit Heroes are Re-Connecting Lives in Puerto Rico

We are proud to partner with NetHope and other nonprofits and NGOs that are helping Puerto Rico citizens and communities recover from Hurricane Maria.

Read More
Google Assistant

Learn more about the world around you with Google Lens and the Assistant

Looking at a landmark and not sure what it is? Interested in learning more about a movie as you stroll by the poster? With Google Lens and your Google Assistant, you now have a helpful sidekick to tell you more about what’s around you, right on your Pixel.

lens assistant

When we introduced the new Pixel 2 last month, we talked about how Google Lens builds on Google’s advancements in computer vision and machine learning. When you combine that with the Google Assistant, which is built on many of the same technologies, you can get quick help with what you see. That means that you can learn more about what’s in front of you—in real time—by selecting the Google Lens icon and tapping on what you’re interested in.

Here are the key ways your Assistant and Google Lens can help you today:

  • Text: Save information from business cards, follow URLs, call phone numbers and navigate to addresses.
  • Landmarks: Explore a new city like a pro with your Assistant to help you recognize landmarks and learn about their history.
  • Art, books and movies: Learn more about a movie, from the trailer to reviews, right from the poster. Look up a book to see the rating and a short synopsis. Become a museum guru by quickly looking up an artist’s info and more. You can even add events, like the movie release date or gallery opening, to your calendar right from Google Lens.
  • Barcodes: Quickly look up products by barcode, or scan QR codes, all with your Assistant.

Google Lens in the Assistant will be rolling out to all Pixel phones set to English in the U.S., U.K., Australia, Canada, India and Singapore over the coming weeks. Once you get the update, go to your Google Assistant on your phone and tap the Google Lens icon in the bottom right corner.

lens assistant image

We can’t wait to see how Google Lens helps you explore the world around you, with the help of your Google Assistant. And don’t forget, Google Lens is also available in Google Photos, so even after you take a picture, you can continue to explore and get more information about what’s in your photo. 

Read More
Samsung UK

21 Interesting Facts About Television Around The World

1 – A recent Samsung survey found that it isn’t reality TV or soaps that make us most likely to tune in….but documentaries1, with 41% claiming it is their

Read More
Google Play

Moving Past GoogleApiClient

Posted by Sam Stern, Developer Programs Engineer

The release of version 11.6.0 of the Google Play services SDK moves a number of popular APIs to a new paradigm for accessing Google APIs on Android. We have reworked the APIs to reduce boilerplate, improve UX, and simplify authentication and authorization.

The primary change in this release is the introduction of new Task
and GoogleApi
based APIs to replace the GoogleApiClient access pattern.

The following APIs are newly updated to eliminate the use of
GoogleApiClient:

  • Auth – updated the Google Sign In and Credentials APIs.
  • Drive – updated the Drive and Drive Resource APIs.
  • Fitness – updated the Ble, Config, Goals, History,
    Recording, Sensors, and Sessions APIs.
  • Games – updated the Achievements, Events, Games, Games
    Metadata, Invitations, Leaderboards, Notifications, Player Stats, Players,
    Realtime Multiplayer, Snapshots, Turn Based Multiplayer, and Videos APIs.
  • Nearby – updated the Connections and Messages
    APIs.

These APIs join others that made the switch in previous releases, such as the
Awareness, Cast, Places, Location, and Wallet APIs.

The Past: Using GoogleApiClient

Here is a simple Activity that demonstrates how one would access the Google
Drive API using GoogleApiClient using a previous version of the
Play services SDK:

public class MyActivity extends AppCompatActivity implements
        GoogleApiClient.OnConnectionFailedListener,
        GoogleApiClient.ConnectionCallbacks {

    private static final int RC_SIGN_IN = 9001;

    private GoogleApiClient mGoogleApiClient;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        GoogleSignInOptions options =
               new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
                        .requestScopes(Drive.SCOPE_FILE)
                        .build();

        mGoogleApiClient = new GoogleApiClient.Builder(this)
                .enableAutoManage(this, this)
                .addConnectionCallbacks(this)
                .addApi(Auth.GOOGLE_SIGN_IN_API, options)
                .addApi(Drive.API)
                .build();
    }

    // ...
    // Not shown: code to handle sign in flow
    // ...

    @Override
    public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {
        // GoogleApiClient connection failed, most API calls will not work...
    }

    @Override
    public void onConnected(@Nullable Bundle bundle) {
        // GoogleApiClient is connected, API calls should succeed...
    }

    @Override
    public void onConnectionSuspended(int i) {
        // ...
    }

    private void createDriveFile() {
        // If this method is called before "onConnected" then the app will crash,
        // so the developer has to manage multiple callbacks to make this simple
        // Drive API call.
        Drive.DriveApi.newDriveContents(mGoogleApiClient)
            .setResultCallback(new ResultCallback<DriveApi.DriveContentsResult>() {
                // ...
            });
    }
}

The code is dominated by the concept of a connection, despite using the
simplified “automanage” feature. A GoogleApiClient is only
connected when all APIs are available and the user has signed in (when APIs
require it).

This model has a number of pitfalls:

  • Any connection failure prevents use of any of the requested APIs, but using
    multiple GoogleApiClient objects is unwieldy.
  • The concept of a “connection” is inappropriately overloaded. Connection
    failures can be result from Google Play services being missing or from
    authentication issues.
  • The developer has to track the connection state, because making some calls
    before onConnected is called will result in a crash.
  • Making a simple API call can mean waiting for two callbacks. One to wait
    until the GoogleApiClient is connected and another for the API call
    itself.

The Future: Using GoogleApi

Over the years the need to replace GoogleApiClient became apparent,
so we set out to completely abstract the “connection” process and make it easier
to access individual Google APIs without boilerplate.

Rather than tacking multiple APIs onto a single API client, each API now has a
purpose-built client object class that extends GoogleApi. Unlike
with GoogleApiClient there is no performance cost to creating many
client objects. Each of these client objects abstracts the connection logic,
connections are automatically managed by the SDK in a way that maximizes both
speed and efficiency.

Authenticating with GoogleSignInClient

When using GoogleApiClient, authentication was part of the
“connection” flow. Now that you no longer need to manage connections, you
should use the new GoogleSignInClient class to initiate
authentication:

public class MyNewActivity extends AppCompatActivity {

    private static final int RC_SIGN_IN = 9001;

    private GoogleSignInClient mSignInClient;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        GoogleSignInOptions options =
               new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
                        .requestScopes(Drive.SCOPE_FILE)
                        .build();

        mSignInClient = GoogleSignIn.getClient(this, options);
    }

    private void signIn() {
        // Launches the sign in flow, the result is returned in onActivityResult
        Intent intent = mSignInClient.getSignInIntent();
        startActivityForResult(intent, RC_SIGN_IN);
    }

    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);

        if (requestCode == RC_SIGN_IN) {
            Task<GoogleSignInAccount> task = 
                    GoogleSignIn.getSignedInAccountFromIntent(data);
            if (task.isSuccessful()) {
                // Sign in succeeded, proceed with account
                GoogleSignInAccount acct = task.getResult();
            } else {
                // Sign in failed, handle failure and update UI
                // ...
            }
        }
    }
}

Making Authenticated API Calls

Making API calls to authenticated APIs is now much simpler and does not require
waiting for multiple callbacks.

    private void createDriveFile() {
        // Get currently signed in account (or null)
        GoogleSignInAccount account = GoogleSignIn.getLastSignedInAccount(this);

        // Synchronously check for necessary permissions
        if (!GoogleSignIn.hasPermissions(account, Drive.SCOPE_FILE)) {
            // Note: this launches a sign-in flow, however the code to detect
            // the result of the sign-in flow and retry the API call is not
            // shown here.
            GoogleSignIn.requestPermissions(this, RC_DRIVE_PERMS, 
                    account, Drive.SCOPE_FILE);
            return;
        }

        DriveResourceClient client = Drive.getDriveResourceClient(this, account);
        client.createContents()
                .addOnCompleteListener(new OnCompleteListener<DriveContents>() {
                    @Override
                    public void onComplete(@NonNull Task<DriveContents> task) {
                        // ...
                    }
                });
    }

Before making the API call we add an inline check to make sure that we have
signed in and that the sign in process granted the scopes we require.

The call to createContents() is simple, but it’s actually taking
care of a lot of complex behavior. If the connection to Play services has not
yet been established, the call is queued until there is a connection. This is in
contrast to the old behavior where calls would fail or crash if made before
connecting.

In general, the new GoogleApi-based APIs have the following
benefits:

  • No connection logic, calls that require a connection are queued until a
    connection is available. Connections are pooled when appropriate and torn down
    when not in use, saving battery and preventing memory leaks.
  • Sign in is completely separated from APIs that consume
    GoogleSignInAccount which makes it easier to use authenticated APIs
    throughout your app.
  • Asynchronous API calls use the new Task API rather than
    PendingResult, which allows for easier management and
    chaining.

These new APIs will improve your development process and enable you to make
better apps.

Next Steps

Ready to get started with the new Google Play services SDK?

Happy building!

Read More
Báo Lao Động Newspaper

Vietnam’s Báo Lao Động Newspaper Recognizes Samsung Vietnam’s Employee Well-being Efforts

Samsung Electronics Vietnam has more than 100,000 employees working across its manufacturing facilities. As female workers account for nearly 75% of the total

Read More
Product News

Making Visual Messaging Even Better – Introducing High Resolution Photos in Messenger

By Sean Kelly & Hagen Green, Product Managers, Messenger The way people message today is no longer limited by just text; visual messaging as our new universal language is much more emotional and expressive. Whether you’re catching up over moments big and small — like a recent vacation, an amazing meal at a new restaurant, […]

Read More
Blog Segment

Iterative Design Done Right: Insights and Tips from Wealthsimple’s Design Director

Tom Creighton is a hands-on kind of design director. As head of UX for Wealthsimple, an online investment management service, he believes in the power of iterative design to build and release features on his company’s apps, across multiple devices. We asked why he’s such an advocate of the iterative design approach and asked him to share some of his tips for UX designers who want to work more iteratively in their own careers.

Read More
Design

[Design Story] Messenger of the Product: Samsung Wearable Package Design Story

One of the factors that determine the success or failure of a package design is whether the package effectively acts as a messenger of the product and brand. A

Read More
Causes & Community

Two years of Google.org grants for racial justice

For many years, bold leaders across the U.S. have been using technology to foster a national dialogue on systemic inequity. Through painful moments like the Charleston church shooting, Googlers, like many others, asked what we could do to advance a more inclusive society. Two years ago, alongside our Black Googler Network and its allies, Google.org started a formal grant portfolio to advance racial and social justice in the United States.

In the spirit of understanding and getting closer to these complex issues, we began funding nonprofits fighting for racial justice in the California Bay Area—home to Google and many deep-rooted justice movements. In 2016, we doubled down on our commitment by supporting national organizations using data science and research to measure disparities in our system of mass incarceration. And today, we’re building on this commitment with another $7.5 million in grants to organizations advancing reform in our justice system, bringing our support to $32 million total.

Through these latest grants, we continue to support data and research demonstrating the impact of mass incarceration. Last month, we supported LatinoJustice with a $1 million grant to improve the quality of Latinx criminal justice data and shape the narrative and storytelling on the impact of mass incarceration in Latinx communities. And today we’re providing a $4 million grant to the Vera Institute of Justice to help them build an authoritative data set that will allow researchers to measure the true economic impact of incarceration rates in rural areas.

Vera Institute: In Our Backyards

Vera Institute: In Our Backyards

Many of our initial grantees are focused on data gathering, research and analysis. We’re now also investing in organizations working on systemic solutions. For example, we’re supporting the Leadership Conference Education Fund with a $2 million grant to bolster their effort to help more law enforcement jurisdictions work with community groups, who are a critical partner in policing. The Leadership Conference has a well-known track record in this area, and they will help establish best practices that lead to more constitutional policing, less crime, and more trust and accountability. Our $500,000 grant to the R Street Institute’s Justice for Work Coalition will support their efforts aimed to bring bipartisan support for criminal justice reform and to reduce barriers to employment following incarceration.

We’ll also continue to multiply the impact of our grants with skills-based volunteer support from Googlers. Just last month, 10 Google software engineers and data scientists volunteered with Google.org grantee the Center for Policing Equity (CPE) on a full-time basis for six weeks in New York. These 10 Googlers helped build and improve CPE’s National Justice Database, the nation’s first-ever database tracking national statistics on policing. They also built software, audited tools, and improved automation efforts to help CPE better process and analyze the reports they send to partner police departments.

A Googler working with the Center for Policing Equity rides along with an officer to understand community-informed policing
Googler Austin Swift, a lead on the CPE Impact Immersion, rides along with an officer to understand his efforts to implement community-informed policing.

This isn’t the only time we’ve teamed up Googler volunteers with grantees. Earlier this year, we helped the Equal Justice Initiative launch Lynching in America, an interactive site that explores this difficult time in U.S. history. More than 200 Googlers have volunteered in grantee Defy Ventures‘ prison and post-release programs for aspiring business owners, known as Entrepreneurs-in-Training. Working with Defy, Googlers have hosted small business training courses on digital marketing, digital skills and public speaking.

In the year ahead, Google will continue to stand in solidarity with the fight for racial justice. We believe in a justice system based on equity for all, informed by data and supported by community-based solutions. We’re proud to support organizations tackling this complex and worthy challenge.

Read More
Small Business

Turn customers into advocates with #SmallThanks

The holiday season is a time to be grateful for friends, family and community. For me, that gratitude includes the small businesses who are a part of my everyday life in California. From my friends at Zombie Runner whose post-run coffee is the best part of my workout, to the folks at Tin-Pot Creamery who make it impossible to give up ice cream; these small businesses make my day-to-day life better and add heart to our community, and for that, I am thankful. I firmly believe when we support the businesses we love, we make the places we live better.

I also spend much of my time at work thinking about how to help small businesses grow using the web. Our products play a pivotal role in helping people and small businesses connect with each other.  As this year’s holiday shopping season and Small Business Saturday approach us, we’re doing something extra to help small businesses stand out and succeed, both online and in their neighborhoods.

We’ve created the #SmallThanks Hub to help you get free, customized marketing materials to promote your business. Simply search for your business name on the site, and we’ll automatically create posters, social media posts, window clings, stickers and more—based on the reviews and local love from your customers on Google. And now, it is available nationally in U.S. to any verified Google listing with an address. (Don’t yet have a verified listing? Signing up is free and only takes a few minutes. Start here.)  

Reviews from your fans are like digital thank you notes, and they’re one of the first things people notice about your business in search results. A few positive small thanks can mean the difference between a potential customer choosing your business or going elsewhere. 71 percent of consumers say that positive reviews in search results make them more likely to use that the business, and listings with positive reviews see 360 percent higher clicks to their site.

Keyword BlogPost-Social+Storefront.png
Show why your customers love you with posters in your store, and posts on social media.

Here are a few tips on how to use the materials from the #SmallThanks Hub to gain new customers and turn existing ones into advocates.

  1. Personalize your assets: Choose the reviews you want to feature, and select from several layouts, colors and styles to match your business’s aesthetics. You can create as many versions as you want.
  2. Show why your customers love you: Print and hang your customized posters in a visible area in your store, and share the social media versions with #SmallThanks to join in the conversation and show what makes you unique. Post the flyers around your neighborhood where potential customers might see them. 
  3. Ask customers to support you with reviews: Some customers may not remember to leave you a review, or realize the impact that it can have, so why not give them a little nudge? Place stickers in your window, receipt booklets, point-of-sale machine or anywhere else it can be prominently displayed to remind them to support you with a review. 
  4. Remind people to search for you: Post the “Find us on Google” stickers in your store and on your social media channels with #SmallThanks hashtag to tell potential customers how to connect with you.
  5. Keep your Google listing up to date: The holiday season usually means different hours and special offerings. Let customers know when you’ll be open using the special hours feature, and promote holiday specials with Local Posts
Sticker+Tent for KW.png

Encourage customers to support you on Google by placing these in visible spots.

Happy holidays and best wishes from all of us at Google.

Read More
critical mass

Physics and an Innovation Mentality

Innovators behind Cisco’s Infinite Video Platform are creating momentum and achieving a “critical mass” of customers on the way to redefining the business of IP video.

Read More
ciscochat

#CiscoChat Podcast | Ask the IoT Whiz: The Digital Age of Retail

In this 3rd installment of Ask the IoT Whiz, we’re talking about retail in the digital age — a particularly pertinent topic as we roll into the holiday season and through mega shopping events like Black Friday and Cyber Monday.

Read More
Ads

A merry mobile holiday with Google Shopping

In those spare moments between basting the turkey, assembling gingerbread houses, and planning your ugly-sweater party, you might find yourself reaching for your phone to research holiday gifts you still need to buy. You’re not alone: With information readily available at the swipe of a finger, holiday shoppers are doing more research before buying than ever before. Indeed, Black Friday searches containing “best” have more than doubled over the past two years on mobile. People are also scrutinizing products from every angle, including the packaging—mobile watchtime of unboxing videos is equivalent to watching “Love Actually” over 20 million times!

Before you head “over the river and through the woods” to deliver your presents this season, we’re introducing improvements to mobile shopping experiences on Google that’ll help you browse, research, compare, and get the items crossed off your holiday gift list.

What’s hot on the list this year  

As always, there’s a new crop of gifts climbing the trends chart. Here’s a look at popular searches going into Black Friday:

Get the shopping scoop in a snap

To help you search for gifts on the go, we recently redesigned mobile shopping on Google, bringing more product information to the forefront. Click the “Quick View” button in the Google Shopping ad to preview details like a bigger image, product description, reviews and seller rating—and to see if you can score a good deal by checking if it’s on sale. If you see an item that’s almost perfect but not quite what you want, scroll down to view visually similar or related products underneath, or to discover more products from the same brands or retailers.

1.0 - 5th ave.gif

More quickly and easily research, compare and narrow down your gift options

We know you’ve got limited time and lots of gifts to buy. Knowing that researching items and comparing prices are two of the most common mobile shopping activities, we recently introduced enhancements to the knowledge panel on Google.com to help you quickly find product photos, videos, reviews, descriptions and more.

To help you further narrow down your options and give you deeper insight into potential purchases, we’re now showing buying guides on Google for broad categories (like sewing machines or coffee grinders).

2.0 - Research.png

Also, when you search for a specific product, Google.com now shows you other helpful information, like related items, and allows you to compare reviews, prices and other specs, side by side. And if you’re searching for tech gadgets, we’ll help ensure that you’re looking at the latest and greatest. You’ll now see a label alerting you there’s a “newer model available” if you’re browsing last year’s product.

3.0 - ALL.png

Shop by voice with the Google Assistant

As much as we try to plan ahead, procrastination happens. If you find yourself looking for something at the last minute, try using your Google Assistant to see where you can purchase needed items nearby by saying “Ok Google, where can I buy…”, or to get it sent right to your doorstep by saying “Ok Google, buy…”. Heading into the holidays, we see people with a Google Home device—which enables voice shopping with the Google Assistant—are using their voice to most frequently buy or add everyday essentials like paper towels or pet food to their shopping lists. We’re also seeing people using voice to find other types of products to prep for the holidays —including kitchen tools like basting brushes to perfectly glaze those Thanksgiving dishes, toys to slip under the tree, or fuzzy blankets to keep warm by the fireplace.

Whether you’re researching on your phone or shopping with your voice, we wish you happy deal-hunting this holiday season!

Read More
#LoveWhereYouWork

7 Reasons Why We’re Thankful to Be Cisconians

Cisconians have a lot to be thankful for! Here are 7 blogs from 2017 that showcase why our employees are thankful to work at Cisco.

Read More
5G

Endless Reasons to be 5G Ready

Learn how service providers are impacted and what are the endless reasons to be #5G ready

Read More
Scroll Up