São Paulo is going Google for its 4 million students

Posted by Unknown Jumat, 21 Februari 2014 0 komentar


Brazil is one of the fastest-growing countries in the world, and the state of São Paulo is the economic powerhouse underneath it all. The future of this continued growth rests in the hands of its youth. The state of São Paulo has more than four million students, 5,000 schools and a community of almost 300,000 teachers and staff.

To equip future generations with the skills to succeed in tomorrow’s workforce, we are partnering with the Department of Education of the State of São Paulo to provide and deploy Google Apps for Education across the state, for free.

“We are so excited to be bringing Google Apps for Education to more than four million students of São Paulo,” said Geraldo Alckmin, Governor of São Paulo. “Finally, classes will go beyond the four walls of the school.” We are working to deploy Google Apps for Education to all 4 million students within the year.
Milton Burgese, Head of Education, Google Brazil, speaks about the partnership 
The municipality of São Caetano do Sul, a thought leader across the country and known for both quality of education and life, announced this week that they are excited to be going Google at an event hosted in São Caetano. We will be deploying Google Apps for Education in 67 schools there, reaching 19,000 students and 1,500 teachers.

“I'm sure that the learning process of our children and youths will be improved by the support of new technological tools that are being brought to our schools by Google” said Paulo Nunes Pinheiro, Mayor of São Caetano do Sul.

We’ve also partnered with the Escola de Formação de Profesores (EFAP), a professional development facility, to train all of São Paulo's 300,000 teachers on the use of Google Apps for Education. Helping them master the new technology will help them communicate, collaborate and partner even better with their schools and students. As Herman Jacobus Cornelius Voorwald, the São Paulo State Secretary of Education, told us, “If we want to change our country, we must use education… We need to dedicate time to helping teachers learn by showing them different ways to embrace technology.”

We believe in the power of the web to help people discover, connect, and learn. And we’re thrilled to see Sao Paolo and São Caetano do Sul join Malaysia, the City of Boston and a growing number of other forward-thinking districts around the world who are embracing the web and technology to drive a new, better future for our students.





Baca Selengkapnya ....

How To Install OS X Mavericks Hackintosh On PC

Posted by Unknown Kamis, 20 Februari 2014 0 komentar
Want to install Mac OS X Mavericks Hackintosh on your PC? Thanks to the latest UniBeast release which adds support for Mavericks, you can now have best of both worlds (Windows and Mac) on your Intel-based PC.
The following guide will help you install OS X Mavericks v10.9 on your PC.
Mac OS X Mavericks

Requirements:
  • Access to Mac for downloading OS X Mavericks from MAS and creating UniBeast drive.
  • 8GB+ USB flash drive.
  • An Intel based PC capable of running Mavericks.
Guide on how to install OS X Mavericks Hackintosh on your PC:
Step 1: On your Mac, download OS X Mavericks for free from the Mac App Store. Make sure the downloaded installation file is in /Applications folder.
Mac OS X Installation
Step 2: Download the latest version of UniBeast and MultiBeast from here.
Step 3: Format your USB flash drive using Disk Utility on Mac with the following settings:
  • Start Disk Utility on Mac. Select your USB drive from the left hand column.
Mac OS Installation
  • Select the Partition tab from the right side. Click on Current dropdown menu and choose1 Partition.
  • Now click on Options… button, select Master Boot Record.
UniStep5
  • Type ‘USB’ as the Name for the drive. Select Mac OS Extended (Journaled) as Formattype.
Apple Mac OS
  • Once done, click on Apply followed by Partition.
Step 4: Now start UniBeast that you downloaded in Step 2 above.
Step 5: Skip through the first few screens by clicking Continue or Agree, until you get toDestination Select screen.
Mavericks Hackintosh 3
Step 6: Select your USB drive and click Continue to proceed.
Step 7: On Installation Type screen, make sure Mac App Store Mavericks – 10.9 is selected in packages. Additionally, select Legacy USB Support if you are using an old system with Socket 1156. Select Laptop Support package if you are installing it on a notebook PC. Once done, clickContinue, enter admin password for your Mac if prompted, and let UniBeast make a bootable Mavericks hackintosh USB flash drive for your PC.
UniBeast Mac App Store
Once done, move MultiBeast file that you downloaded in Step 2 above to this bootable Mavericks hackintosh USB drive (you will need this later).
Step 8: Now insert this bootable Mavericks hackintosh drive in your PC. Make sure the BIOS is set to boot the system from USB devices. When you boot from the USB drive, you will see Chimera boot screen, select “USB” and hit Enter on keyboard to continue.
Step 9: Once you are into OS X installer, you need to format the HDD you want to install Mavericks to using Disk Utility with the following settings:
  • On the menu bar, click on Utilities, then start Disk Utility.
  • Select the HDD you want to install OS X to from left hand side.
  • From right side, click on Partition tab, then click on Current dropdown menu and choose 1 Partition.
  • Now click on Options… button, choose GUID Partition Method.
  • Type ‘Macintosh HD’ as the Name for HDD. Select Mac OS Extended (Journaled) asFormat type.
  • Click on Apply followed by Partition to partition the drive.
Step 10: Once done, close the Disk Utility program, go back to the installer. Select “Macintosh HD” as the drive you want to install OS X to.
Macintosh
Click on Install for the installation to begin.
OS X
You’re almost there! Once the OS X installation is complete, you need to make this HDD bootable. This can be done using MultiBeast utility. MultiBeast can not only make OS X HDD bootable, but can also install the required drivers for audio, WiFi, graphics, LAN and more.
Step 11: Reboot your system again using the bootable Mavericks hacktintosh flash drive. From the Chimera boot screen, select “Macintosh HD” this time.
Step 12: Start MultiBeast, from here, choose all the drivers required for your PC. Once done, click on Build followed by Install to complete the installation.
MultiBeast
Mac OS Configuration
That’s it! You now have fully working OS X Mavericks installed on your PC.
Mavericks Hackintosh Installed


Baca Selengkapnya ....

How To Jailbreak iOS 7 For iPhone 5s, 5c, 5, iPad, iPod touch

Posted by Unknown 0 komentar
Surprise surprise. This is just in. Team Evad3rs has just released untethered Evasi0n iOS 7 – 7.0.4 jailbreak for the latest iPhone, iPad and iPod touch devices.
Available for both Windows and Mac users, Evasi0n iOS 7 jailbreak works on all iPhone, iPad and iPod touch models running iOS 7.0, 7.0.1, 7.0.2, 7.0.3 and 7.0.4.

iOS 7 jailbreak iPhone
This includes:
  • iPhone 5s
  • iPhone 5c
  • iPhone 5
  • iPhone 4S
  • iPhone 4
  • iPad 2
  • iPad 3
  • iPad 4
  • iPad Air
  • iPad mini
  • iPad mini 2
  • iPod touch 5
We will be back with full how-to tutorials. Those of you who want to jailbreak right away can do so by downloading Evasi0n from official website at Evasi0n.com or through the links given below.
Apple products jailbreak
Evasion iOS 7 jailbreak

Download Evasi0n for Windows 
Download Evasi0n for Mac
Update x1: This release has also caught Saurik, the founder of Cydia, by surprise. He has clarified it on Twitter that the Cydia build included in version 1.0 of Evasi0n 7 isn’t official, and hence will be prone to bugs. Tweaks relying on Substrate will have issues with this early release of Evasi0n. This issue will be fixed in later versions of Evasi0n 7.
Update x2: Evasi0n 7 is also compatible to work with iOS 7.1 beta 2.
Update x3: Our full step by step video tutorial is up and embedded below! For full written instructions, check out: Jailbreak iOS 7 – 7.0.4 Untethered On iPhone 5s, 5c, 5, 4s And More With Evasi0n 7 [Video Tutorial]
Update x4: Make sure you check out: List of iOS 7 Compatible Jailbreak Tweaks And Apps In Cydia.
Update x5: Evasi0n has been updated to version 1.0.1, removing the TaiG App Store completely. The download links above have been updated.
Update x6: Evasi0n 7.x Untether 0.2 update now available on Cydia, bringing Evasi0n 1.0.1 features to Evasi0n 1.0 users.
Update x7: Download links for Evasi0n embedded above have been updated to the latest version 1.0.2. This version adds fix for iPad 2 stuck at boot loop issue.
Update x8: Apple released iOS 7.1 beta 3 recently. Fortunately, the exploits used in Evasi0n7 still work on the latest beta of iOS 7.1. An unofficial version of Evasi0n7 is now available that lets you jailbreak iOS 7.1 beta 3 untethered on all the devices.
Update x9: Evasi0n 1.0.4 is out with important security patches related to untether, as well as a fix for reboot loop issue on Retina iPad mini. The download links of Evasi0n above have been updated.
Update x10: New version 1.0.5 of Evasi0n is out. Adds support for the latest iOS 7.0.5 firmware which Apple released recently for iPhone 5s and iPhone 5c. Download links for Evasi0n jailbreak tool have been updated.
You can follow us on Twitter, add us to your circle on Google+ or like our Facebook page to keep yourself updated on all the latest from Microsoft, Google, Apple and the web.
Source: http://www.redmondpie.com/download-evasi0n-ios-7-7.0.4-jailbreak-for-iphone-5s-5c-5-ipad-ipod-touch-windows-mac/

Baca Selengkapnya ....

How To: Access Your Entire Computer From an iPad

Posted by Unknown Rabu, 19 Februari 2014 0 komentar
How To: Access Your Entire Computer From an iPadSEXPAND
I don't buy into the iPad as a laptop replacement—not quite. But it is fantastic at tapping into your computers to access video and audio, documents, and even your full desktop, remotely. Here's how.
The iPad is first a foremost a device for consuming media, and where is most of your media if not on your desktop or laptop? All your videos, both self-created and downloaded; your music collection, which is so much larger than your iPad's flash storage can dream of accomodating; your store of documents, which contain so much information about you, your work and your interests. On your iPad, this stuff is too often there, not here—but it doesn't have to be.
You can easily access all of these things from your iPad with a set of simple-to-use apps, and where those don't work, you can actually control your computer—mouse and all—from your iPad. Here's what you need:

Audio and Video

Audio and video streaming on the iPad is, for the time being, the domain of two apps: Air Video and StreamToMe. They're extremely similar, sharing their $3 price, iPhone compatibility, and an underlying video conversion library, but a few key differences will determine which one you need to download. So!
If you...
• Have a Windows PC
• Don't need to stream audio
• Tend to store your content in h.264/mp4 files
Go with Air Video. It's a wonderful app, which lets you stream video—even in formats not natively supported by the iPad—both locally and remotely (with simple port forwarding), and which has both Mac and PC server software. It's flexible as well, giving you precise control over streamed video quality, and options for either transcoding video live, or pre-converting it before streaming.
How To: Access Your Entire Computer From an iPadSEXPAND

h.264 playback, even in HD, seemed cleaner and bit smoother than in StreamToMe, so if you've ripped or downloaded most of your content in that format, Air Video is a slightly better choice. It transcodes your downloaded .avi file beautifully, too.
(Note there currently isn't a good DLNA streaming app, though once its bugs are worked out, PlugPlayer shows promise. For the time being, Air Video is the only way to stream and transcode your video library stored on a Windows PC)
If you...
• Have a Mac
• Want to stream audio files as well
Then you should download StreamToMe. It too can transcode video in real time, so you don't need to worry about converting your home video files or P2P downloads. Its main advantage over Air Video is that it can stream audio. It'd be nice if the app had an iTunes-style artist view, but if your iTunes music folder is organized by artist name and album title (if you haven't told it to do something else, iTunes will have taken care of this for you), navigating through and playing songs is pretty straightforward.
How To: Access Your Entire Computer From an iPadSEXPAND

The setup routines for both apps are nearly identical. Each requires a server app to be run on your computer, which needs to be pointed to your video library, and each will automatically recognize your computer over a local network. For remote streaming, each app provides guidance for which ports to forward on your router. (For instructions for your specific router, check here.) This means you can stream your home video from anywhere—work, a hotel room, whatever—over Wi-Fi.

Documents

Document sharing on the iPad isn't particularly easy, relying on the awkward iTunes file sharing system, which only lets you access documents in the app they've been flagged for. To browse apps in a more useful way, you'll need get an app called GoodReader. Its $1.
How To: Access Your Entire Computer From an iPadSEXPAND

GoodReader is an app that enables you to connect to all kinds of file servers, be they cloud-based (Google Docs, Dropbox, or MobileMe) or local (an FTP or WebDAV server). Once connected, GoodReader lists files that can be read on a given server, which are left up to the iPad's inbuilt viewers to display. This means that Word, Excel and PowerPoint documents, as well as a range of other text files, images, and even audio files, can be opened in the app.
How To: Access Your Entire Computer From an iPadSEXPAND

One of the most compelling features of GoodReader is that it can turn your iPad into a local file server, which you can mount and connect to from any Mac or PC. This feature lets you drag and drop your documents to the iPad, as if it were a NAS device. (GoodReader also shows up in the iTunes USB file transfer dialog, but Wi-Fi drag-and-drop transfer is much faster and easier, once it's set up.) Instructions for server setup are available here.
Additionally, using the app's "Manage Files" pane, you can sort, administer and email your documents as well. It's basically like having a disk for all kinds of media, on your iPad, along with a file browser. Ha!

Controlling Your Desktop

If you want full access to your computer, video, audio and document file servers won't be enough. What about your applications? Your iPad-incompatible files? Your entire desktop? To get that kind of control, you need to use VNC.
From our previous How To guide on the subject:
VNC (virtual network computing) is one of those tricks that never gets old, and having it set up can often save your ass-whether you left some info on your home computer that you need at work, want to check on your massive BitTorrent queue to schedule the evening's entertainments, or help your poor parents use clip art in Microsoft Word, having remote access can be handy dandy.
For full setup instructions for Windows and OS X, follow our guide here.
Once you've done that, you'll need an iPad VNC client. The iPad App Store already has a handful of VNC apps available for download. The ones I'd go with are Mocha VNC Lite (a free, limited-capability app), and if you find you like the VNC concept, the $12 Desktop Connect.
How To: Access Your Entire Computer From an iPadSEXPAND

It's strange, controlling a mouse-based computer from a touchscreen device, but there's one option I've found makes life a lot easier: In Desktop Connect, turn Touchscreen Mode off. This options has you control the mouse as if the whole touchscreen is a trackpad, rather than having to guide the mouse directly with your finger. After a few minutes, you'll be clicking around Windows or OS X without thinking about it.
Source:http://gizmodo.com/5519283/how-to-access-your-entire-computer-from-an-ipad

Baca Selengkapnya ....

HTC confirms the Desire 8

Posted by Unknown Selasa, 18 Februari 2014 0 komentar
HTC Desire 8
HTC confirms the Desire 8
HTC has confirmed that it will unveil the Desire 8 on February 24th in Beijing.


In a posting on its official Weibo page, the Taiwanese company said that it will show off its mid-range Desire 8 smartphone for the first time next week.
Details of the smartphone leaked last week.
It had been thought that the company would use Mobile World Congress to launch the smartphone – possibly alongside the HTC M8. However, the Weibo post suggests that the Desire 8 will instead make its debut in China.
The company refused to provide any details about the phone beyond confirming its name and that it will debut next week.

Previous rumours have suggested that the phone will feature a 5.5-inch screen with a 1.2GHz quad-core Qualcomm Snapdragon 400 processor, 1GB RAM, a 13 megapixel rear facing camera and a five megapixel front facing camera.
It is also said to be coming with 8GB of storage, front-facing speakers – like the HTC One – and be available in a range of colours. It is also expected to run Android KitKat.
The phone is said to be being launched in China, Europe, Africa, the US and Asia. There s no word on whether the phone will make it to the rest of the Americas and Australia.
Source: LlabTooFer

Baca Selengkapnya ....

The HTC M8 to be launched on 25.03.2014

Posted by Unknown 0 komentar



It seems that we finally know the date – 25.03.2014 looks like the day when HTC will launch their new flagship device and the HTC One (M7) successor – HTC One M8 which is rumoured to be called "HTC One+" or "HTC One 2" or just " HTC One (M8)".

About the device itself we know pretty much already. Recently we wrote about the design (The HTC One 2014 (M8) design exposed) and we've seen some popular mock-ups made by hamdir in HTC One 2014 (M8) target renders, a visual compilation of all the leaks. I must say this all looks promising and we still hope to see HTC M8 equipped with Qualcomm Snapdragon 805 instead of an already one year old Snapdragon 800 SoC.

Have any questions or comments? Feel free to share! Also, if you like this article, please use media sharing buttons (Twitter, G+, Facebook) below this post!

Baca Selengkapnya ....

How to: generate a kernel log after random reboot

Posted by Unknown Minggu, 16 Februari 2014 0 komentar
Once in a while, a software bug in the kernel will cause a random reboot, so in order to help kernel developers to fix and troubleshoot the reboots, a kernel log need to be submitted to the developer for further analysis and hopefully lead to a bug fix.

Most Android kernels have "RAM Consoles" to save the necessary kernel logs immediately after reboot in the RAM.  The users can then retrieve this RAM log on a subsequent reboot to submit to kernel developers. Here is a quick tour on how to do that.


[ Using ADB ]
  1. adb shell
  2. su
  3. cat /proc/last_kmsg > /sdcard/last_kmsg.txt
  4. exit
  5. exit
  6. adb pull /sdcard/last_kmsg.txt
File last_kmsg.txt will be located in the same location as adb.exe executable.


[ Using android terminal app ]
  1. su
  2. cat /proc/last_kmsg > /sdcard/last_kmsg.txt
  3. exit
  4. exit
  5. adb pull /sdcard/last_kmsg.txt
File last_kmsg.txt will be located on your SD-card.


[ Using Root Explorer / ES Explorer with Root ]
  1. go to /proc folder
  2. copy last_kmsg to /sdcard/
  3. rename last_kmsg to last_kmsg.txt
File last_kmsg.txt will be located on your SD-card.

The best method to share the last_kmsg.txt content is to upload it to pastebin.com and send a link to the developer.

Source: faux123 (Google +)

Have any questions or comments? Feel free to share! Also, if you like this article, please use media sharing buttons (Twitter, G+, Facebook) below this post!

Baca Selengkapnya ....

The HTC One 2014 (M8) design exposed

Posted by Unknown 0 komentar
One thing for sure, everyone seems to agree that HTC is defined by their design and build quality. The new HTC One is pretty much revealed in terms of design and construction, strikingly it looks similar to my mockups posted few days back.

Latest round of M8 leaks courtesy of @HTCFamily_RU and @NexusLeaks

What's clear from the latest photos is that there is an entirely new more rugged color combination: gun metal grey, as rumored it has a more intense metal texture like darker silver and the antenna strips are black instead of white, this should tolerate a little more abuse than the current silver and black HTC One, not surprisingly it also reminds us of the space grey iPhone 5s.
 
There also is one recent HTC phone with similar color, the more affordable plastic HTC One HTC Desire 700, I recently had my hands on this device and I have to say it looks fantastic particularly the speaker covers which are the only metal elements in that phone, of course it's also rumored that the M8 will be released with up to four color combinations from the get go.

Gun metal grey with black accents: reminds us of the HTC Desire 700

Other apparent elements in the construction are the four visible antenna strip edges in the front view, a thinner outer frame and the metal back plate extending to the sides, all of which we highlighted in our previous article, unlike the "composite" HTC One pseudo metal unibody with molded plastic sides, the M8 clearly carries a complete metal body fully leveraging HTC's antenna innovations as seen in the current HTC One, which means no ugly plastic patches and the antennas are simply streamlined in minimal injected strips. Like the old HTC Desire HD the entire internal hardware, screen and speaker covers will be housed within this unibody.

The current HTC One is universally praised for it's beauty and high build quality, however it's that very beauty which was often subject to aesthetic damage due to the exposed machined diamond cut edges and the sandwiched plastic frame, a design that suffered a small gap-gate on the first production runs and prompted HTC to do some corrections with the One Mini and Max by adding a protective plastic frame, but with the M8 it looks like HTC is one step closer to their "dream for an all-metal phone".

The HTC One (M7) had a unique composite unibody, previous HTC phones like the gorgeous One S and Desire HD had full metal bodies with big plastic patches for reception

Now let's compare it with our own previous renders and we can see how close it is to the leaked official render, right down to the location of the volume and power buttons, the dual cameras and the exposed antenna strips in the front, but we also notice something new on the top right, is that an exposed notification LED? it brings memories of another HTC metal phone, the One V.



The HTC One V had a unique LED notification light visible from many angles

With rumors of a unique camera, an Ultrapixel sensor for low light and 13 MP sensor for daylight (joining an already strong set of camera innovations like Burst, ZOE and Video Highlights), it's clear that HTC is attempting to refine the HTC One design by addressing most concerns and niggles ranging from the lack of pixel count in the daylight camera, passing by the lack of SD card storage expansion, the neat but hard to spot micro notification light and finally ending the fragile beauty of the HTC One high end construction. The HTC One was their "all-metal phone", their next HTC One seems to be the "full-metal phone".

Finally there is one more matter to point out, the leaked print seems to be for the official screen protector, simply titled "HTC ONE (M8)". Is HTC about to simply use codenames a way to separate between old and new models?

We will leave discussing the rumored hardware specs for another day. Of course this is all following the trail of leakers, which can still be misleading so let us know if you think some big surprises are still in store.

Have any questions or comments? Feel free to share! Also, if you like this article, please use media sharing buttons (Twitter, G+, Facebook) below this post!

Baca Selengkapnya ....

WeddingWire helps millions of engaged couples and event businesses using Google Apps

Posted by Unknown Jumat, 14 Februari 2014 0 komentar


Editor's note: In honor of Valentine’s Day, and in the spirit of Cupid’s arrow, today we hear from a business that’s in the business of weddings. Our guest blogger is Lee Wang, COO of WeddingWire, a wedding technology marketplace that connects couples planning nuptials with wedding professionals. See what other organizations that have gone Google have to say.


Our goal at WeddingWire is to make wedding planning fun and simple. We connect engaged couples to event merchants, provide them with consumer reviews, online planning tools, and help them stay organized as they plan their big day. We also help event merchants manage their workflow and their business more efficiently through our SaaS business management tools. Using our suite of productivity tools, event merchants can generate new prospects, book appointments, manage their social media, create engaging content, and send digital contracts. They can even collect payment, all without leaving WeddingWire.

We recognize the importance of making work simple, exciting, and enjoyable for our employees at WeddingWire to help power our success. Google Apps plays a big part in that. We’ve used Google Apps to help run our entire IT infrastructure since 2006, when it was a beta product. We were also in beta, with four co-founders working out of our CEO’s pink living room. Today, our organization has grown from four to more than 320 employees.

As we scale our organization, we are often in need of new ways to help keep our team connected and productive. We have WeddingWire team members working around the world, from Los Angeles to Raleigh to international locations such as Brasov, Romania. We rely on Google Hangouts to ensure that everyone from Los Angeles to Brasov can participate in company-wide meetings. Google Apps makes it easy to switch from a physical meeting to a virtual video meeting since Google Calendar and Google Hangouts are so seamlessly integrated. Whether for daily use or for difficult weather-related situations, our essential business functions can always carry on.
Lee Wang and the executive team
We believe that constant thought sharing and collaboration makes us a smarter company. Google Apps helps us realize that philosophy online. In the office, we have an open seating plan and lots of common areas, so employees are can have more and better conversations. The ability to instantly collaborate with Google Docs in real-time to solicit feedback or edits on an idea, project or article, makes us work better and smarter as a team. When we recently rebranded our flagship website (WeddingWire.com), we created a master Google Doc where key stakeholders across the entire organization could add their updates and comments. Everyone from website developers and marketers to sales reps and executives could jump in and know the latest status and sentiment at any time.

Google Apps gives our employees a way to work together better from office, at home, or across the world. It gives us the opportunity to be spontaneous and team-oriented, and frees us up to make work more fun, for us and for our customers. When your job is helping people in love plan the biggest – and most exciting – day of their lives and empowering the businesses of those who serve them, you want to do it right.



Baca Selengkapnya ....

New Client API Model in Google Play Services

Posted by Unknown Kamis, 13 Februari 2014 0 komentar
gps


By Magnus Hyttsten, Google Developer Relations



Google Play services 4.2 has now been rolled out to the world, and it’s packed with much-anticipated features such as the brand new Cast API and the updated Drive API.



In addition to these blockbuster announcements, we are also launching a slightly less visible but equally important new API — a new way to connect client APIs and manage API requests. As with the initial Drive API, these changes were available as a developer preview in earlier releases of Google Play services. We're now happy to graduate those APIs to fully supported and official.



In this post we'll take a look at the new Google Play services client APIs and what they mean for your apps — for details be sure to read Accessing Google Play services and the API reference documentation.



Connecting Client APIs


The client connection model has now been unified for all the APIs. As you may recall, you were previously required to use separate client classes for each API you wanted to use, for example: PlusClient, GamesClient, etc. Instead, you should now use GoogleApiClient, which allows you to connect to multiple APIs using a single call. This has great advantages such as:




  • Simplicity—The onConnected() method will be called once, and only when connectivity to all the client APIs you are using have been established. This means you do not have to intercept multiple callbacks, one for each API connected, which simplifies the code and state management.


  • Improved user experience—With this design, Google Play services knows about everything your app needs up front. All APIs, all scopes, the works. This means that we can take care of the user consents at once, creating a single consolidated user experience for all the APIs. No more sign-in mid-process terminations, partial state management, etc.



Below is an example of establishing a connection the Google+ and Drive APIs. To see the reference information for this new client connection model, you should check out the com.google.android.gms.common.api package.



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

// Builds single client object that connects to Drive and Google+
mClient = new GoogleApiClient.Builder(this)
.addApi(Drive.API)
.addScope(Drive.SCOPE_FILE)
.addApi(Plus.API, plusOptions)
.addScope(Plus.SCOPE_PLUS_LOGIN)
.addConnectionCallbacks(this)
.addOnConnectionFailedListener(this)
.build();
}

@Override
protected void onStart() {
super.onStart();

// Connect to Drive and Google+
mClient.connect();
}

@Override
protected void onConnected(Bundle connectionHint) {
// All clients are connected
startRockAndRoll();
}

@Override
protected void onConnectionFailed(ConnectionResult result) {
// At least one of the API client connect attempts failed
// No client is connected
...
}



Enqueuing API Calls


Another new feature is enqueuing of API calls, which allows you to call read methods before the API clients are connected. This means you can issue these calls up front, for example in onStart/onResume, rather than having to wait and issue them in different callback methods. This is something which will greatly simplify code if your app requires data to be read when it is started. Here is an example of where a call like this can be placed:



@Override
protected void onStart() {
super.onStart();
mClient.connect();
}

@Override
protected void onResume() {
super.onResume();

// Enqueue operation.
// This operation will be enqueued and issued once the API clients are connected.
// Only API retrieval operations are allowed.
// Asynchronous callback required to not lock the UI thread.
Plus.PeopleApi.load(mClient, “me”, “you”, “that”).setResultCallback(this);
}



Supporting both Asynchronous and Synchronous Execution


With this release of Google Play services, you now have the option to specify if an API call should execute asynchronously (you will receive a callback once it is finished), or synchronously (the thread will block until the operation has completed). This is achieved by using the classes PendingResult, Result, and Status in the com.google.android.gms.common.api package.



In practice, this means that API operations will return an instance of PendingResult, and you can choose if you want the method to execute asynchronously using setResultCallback or synchronously using await. The following example demonstrates how to synchronously retrieve the metadata for a file and then clear any starred flag setting:



// Must be run in a background task and not on UI thread
new AsyncTask <DriveFile, Void, Void> {
protected void doInBackground(DriveFile driveFile) {

// Get the metadata synchronously
MetaDataResult mdGetResult = driveFile.getMetadata(mClient).await();
if (!mdGetResult.isSuccess()) {
// Handle error
}

MetaData md = mdGetResult.getMetadata()
// Perform operations based on metadata

// Update the meta data, unconditionally clear the starred flag
MetaDataChangeSet mdCS = new MetadataChangeSet.Builder()
.setStarred(false)
.build();

MetaDataResult mdUpdateResult =driveFile.updateMetaData(mClient,mdCS).await();
if (!mdUpdateResult.isSuccess()) {
// Handle error
}

… // continue doing other things synchronously
}).execute(fileName);


It should be stressed though that the old best practice rule — do not block the UI thread — is still in effect. This means that the execution of this sequence of API calls described above must be performed from a background thread, potentially by using AsyncTask as in the example above.



Moving your apps to the new client API



We believe these changes will make it easier for you to build with Google Play services in your apps. For those of you using the older clients, we recommend refactoring your code as soon as possible to take advantage of these features. Apps deployed using the old client APIs will continue to work since these changes do not break binary compatibility, but the old APIs are now deprecated and we'll be removing them over time.



That’s it for this time. Google Play services allows Google to provide you with new APIs and features faster than ever, and with the capabilities described in this post, you now have a generic way of using multiple client APIs and executing API calls. Make sure to check out the video below for a closer look at the new client APIs.



To learn more about Google Play services and the APIs available to you through it, visit the Google Services area of the Android Developers site. Details on the APIs are available in the API reference.



For information about getting started with Google Play services APIs, see Set Up Google Play Services SDK









Baca Selengkapnya ....
Trik SEO Terbaru support Online Shop Baju Wanita - Original design by Bamz | Copyright of android qvga.