Monday, December 30, 2013

Fight for the top: Android 4.4 KitKat vs iOS 7

Technology is advancing at a rapid pace, and the
software powering our beloved gadgets isn't an
exception. With each new release, mobile
platforms are growing sleeker, faster, and more
versatile than ever before. That's mobile OS
evolution we're witnessing, and we're calling it
evolution not only because software is constantly
being improved, but also because the fittest are
the ones that survive, while those who can't
keep up eventually meet their demise. So, which
is the best survivor of them all? The ultimate
mobile operating system? Well, that's one of
those questions that seem simpler than they
actually are. Many would give Android 4.4 their
thumbs-up, while others are really into Apple's
iOS 7. In reality, these two platforms have
become quite similar on many levels and there's
a lot to like about them. However, there is a
number of things that make them different –
things that make one of them better than the
other in one way, or inferior in another. Allow us
to elaborate.

Lock and home screens Simplicity is the fundamental concept, around which iOS 7 has been designed. This becomes evident as soon as an iOS device is picked up and turned on – the first thing displayed is a seemingly basic lock screen, inviting you to “slide to unlock”. We said “seemingly” because the iOS lock screen is a tad more advanced than it appears to be. A swipe from the top displays the Notification Center and a swipe from the bottom brings forth the Control Center menu. There's a shortcut for the camera as well. And that's what makes the iOS lock screen so great – it is intuitive and uncluttered, but highly functional at the same time. The Android 4.4 lock screen is just as straightforward to interact with – pull the ring in any direction and you're good to start using your device. Yet functionality hasn't been sacrificed. The slide-down notification panel is accessible, and so is Google Now with a swipe up from the bottom. A camera shortcut hasn't been forgotten either. That's pretty much all that a typical smartphone user would require, but for those who are serious about personalization, Google has added a handful of useful lock screen widgets. With their help, the user has near-instant access to their notes, their email inbox, social network updates, and more. What's even better, new ones can be downloaded from the Play Store. A small downside to Android's lock screen widgets is that setting them up can be somewhat unintuitive, but other than that, we love the functionality that they add. Once past the iOS 7 lock screen, the user is introduced to a minimalist home screen menu with large, easy to hit icons and clearly legible labels. Again, Apple is keeping it all as simple as possible, meaning that even first-time users can get the hang of the system's UI in no time, while experienced owners have quick, hassle- free access to their apps. Android, on the other hand, puts the highlight on functionality and personalization with its option to populate home screens with widgets of all shapes and sizes. Downloaded and pre-installed apps are listed in a separate drawer, which leaves more room on the home screens for widgets, shortcuts, and folders. Speaking of folders, we tend to like their execution in iOS 7, where there's no limit to how many apps we can place inside one. Android 4.4 lets you place no more than 16 apps inside a folder, which is okay, yet somewhat limiting. Search is deeply integrated into the UIs of both platforms, which is great to know considering how people love to Google anything nowadays. In iOS 7, a swipe down on any home screen displays a search bar for looking up stuff online and for finding a specific app or contact – an elegant solution that doesn't occupy any screen real estate, but is always there when you need it. In Android 4.4, a search bar for apps, contacts, and Google queries is permanently affixed to the top of any home screen. Some might find this annoying as it eats up more space than it probably should, although we don't thing that its constant presence is too big of a deal. #Appearance and customization features Apple's iOS 7 was launched to mixed reviews, regarded by some as fresh and stylish, but dismissed by others as flat, too childish and cartoonish-looking. In our opinion, the appearance of the platform is more than acceptable. In fact, we're perfectly fine with the way it looks now that we've grown used to its interface and layout. Stacked against iOS 7, Android 4.4 looks pretty lifeless with its black and gray theme. But there's a number of neat things about its UI as well, including the translucent status bar and the redesigned icons. Customization is, without a doubt, one of Android's major advantages over iOS. And that's not only because of the widget functionality we mentioned above. Android users are free to use third-party lock screens, on-screen keyboards, live wallpapers, and launchers that alter the way the system's UI is organized. In other words, if you've grown tired of its plain old look, or if there's something about Android that you don't quite like, a replacement for it is likely available at the Play Store. We must mention that with Android 4.4, Google is making it even easier for users to switch back and forth between launchers with a new “Home” option in the settings menu. There isn't much about iOS 7 that a user is free to modify. Sorry, that's just Apple's way of doing things. Looking at it from the bright side, the company's tight control over the feel and appearance of iOS prevents customization apps of sub-par quality from affecting the user experience in a negative way. There are things one can change, of course, and make their phone or tablet more personal. iOS 7 brought a few new personalization features, including dynamic wallpapers – animated background that behave a lot like Android's live wallpapers. Sadly, no new ones can be downloaded from the App Store, at least not for now. Still wallpapers have been spiced up with a so-called parallax effect, which shifts the background image depending on the angle, at which the handset is being held. That creates an illusion of depth and the effect is really nice in our opinion – pretty, yet unobtrusive. # Quick controls and notifications Apple did the right thing by adding a menu with quick controls and toggles to iOS with the platform's seventh major release. Called Control Center, it is easily accessible by swiping up from the bottom of the screen – this gesture works from the lock screen, on any home screen, even while running a game or an app. But while this feature is a major and welcome advantage to iOS, it has been available in third-party Android UIs for quite a long time. Even the stock Android 4.4 interface has a menu with toggles and shortcuts accessible from the notification panel. However, we don't find it neither as pretty, nor as functional as iOS 7's Control Center. The overhauled Notification Center in iOS 7 now takes the user straight to their agenda. That's very convenient for people who actually use the Calendar app. Those who find it too crowded in there are free to pick what notifications are to be displayed – stocks information, unread email, Game Center alerts, reminders, and more. While the Notification Center is not too bad of a solution as a whole, it leaves room for improvement. For example, we see no benefit in having the weather forecast displayed there in plain text – text that we actually have to stop and take a few seconds to read – when a simple weather icon with a digit for the temperature would do just fine. Android's notification bar is a bit different for it doesn't display much if there aren't any pending notifications. If there are new ones, they can be easily dismissed with a swipe to the side, or tapped on, which takes the user to the app that displayed the notification. A neat improvement brought by Android 4.4 is the option to access the notification panel even when a full-screen app is running, meaning that you can read notifications without exiting that game you're playing. In iOS, the Notification and Control Centers work in a similar fashion.

Sunday, December 29, 2013

LG Nexus 5 tips on kitkat

Google Now with Voice Control
Similar to Moto X, Nexus 5 users can now say 'Ok Google' to access Google Now from the home screen using voice control. But first, setup the app by following this: "Google Now > Settings > Language & input > Voice search > Language > English (US).'
Add Widget Simplified Again
No need to open the app drawer to put widgets on the home screen but instead long press on the blank space of your home screen then select the widgets you like.
Quick Settings
Same with Android 4.2 and 4.3 Jelly Bean, swipe two fingers down from the top part of the screen to unhide the notifications area and toggle controls.
Lock Screen Widgets
Android 4.4 KitKat features lock screen widgets such as messaging, email, Google+ and more. Go to "Settings > Security > Enable widgets" then swipe left to right and tapped "+" to add widgets.
Wireless Printing
Printing can be made easy via Cloud Print service on the Nexus 5. Go to "Settings " Cloud Print > Enable > Search for printers."
Installing Non-Market Apps
You can still install apps not found from the Play Store but compatible with Android OS by following this line: "Settings > Security > Unknown sources." Now select the installer aka APK on your file manage to install the app.
Owner Information on the Screen
In case you're hopeful that your lost device bumps itself to Good Samaritan, put owner information so it may be returned to you. Go to "Settings > Security > Owner info > Type in info > Show owner info on lock screen." Facebook or Twitter handles are good start as owner information.
Backup Data and Settings
For certain moments when you need to factory reset the Nexus 5, enable the 'automatic restore' feature to reinstall apps automatically. Go to "Settings > Backup & restore > Backup my data > Automatic restore."
Immersive Mode
You can now read e-books and watch movie in full screen with Nexus 5 running Android 4.4. Once you open the apps, all other elements will be hidden and you can make them reappear by tapping on the screen.
Battery Drainers
Check the apps eating too much battery on your smartphone. Access the Quick Settings then tap the Battery tile to see full details of apps draining battery life on your device.
E-Book to Audio Book
Let Android 4.4 KitKat tell you the story by making e-books work like audio books. Go to "Settings > Accessibility > Enable Talk Back" then launch "Google Play Books > Settings > Automatically read aloud > High-quality voice" to hear good storytelling.
Music Library with Cloud-Based System
Google Music can store up to 20,000 of your own songs without any fee with accessibility from Web or any Android-powered device. Go to your computer > upload songs to Google Music Manager app and make sure to set streaming audio if you have limited data usability. This helps the storage problem Nexus 5 faces due to lack of microSD card support.
Face Unlocking
For cooler unlocking procedure, use the Face Unlock feature which debut back in Galaxy Nexus smartphone. Go to "Settings > Security > Screen lock > Face unlock."
Wallpapers
You can use live wallpapers on your Nexus 5 but only "Phase Beam" is available on the smartphone. You can download lots from Play Store if you desire including from various other Android phones. In addition, static wallpapers can now be previewed before setting it for your home screen.
Pure Hangouts
Since Hangouts support SMS/MMS integration, it may be unusual for some users expecting pure Hangouts messaging. Go to "Hangouts > Settings > Default SMS app > Select the SMS apps." Doing this will require for you to download a third-party SMS app from the Play Store.
Using Moods in Hangouts
As an added fun for Hangouts SMS/MMS service, you can set your mood to let your relatives and friends know what you feel or set emotions at specific given time. Go to "Hangouts > Settings > Set mood."
Snoozing Hangouts
You can snooze notifications on Hangouts for specific time according to your needs. Go to "Hangouts > Settings > Snooze notifications > Set time."
Archiving Messages
Hangouts app allows archiving of both SMS/MMS and online messages on your device. Simply swipe left or right on the thread to put them in the archive list. Select "Settings inside Hangouts > Archived Hangouts" to view them again.
Gesture inside Hangouts
No need to press much on the back key just to get back on the message list inside Hangouts app, simply swipe left to go back or swipe right to view the recent message or select contacts.
Multiple Hangouts Account
Hangouts app on your Nexus 5 can access multiple Gmail accounts you have added on your Gmail app. Inside the Hangouts app, you can see one Gmail account and when you tap it, another account becomes an option.
Data Usage Monitor
Go to "Settings > Data usage" to determine your overall data consumption and which apps are dragging high data. You can also enable 'restrict background apps' to save data consumption.
Home Screen Folders
Same with Android Jelly Bean, hold then drag an icon to another to create new folder with renaming option as well.
Screenshot and Recording
Press and hold 'Volume down + Power' buttons at the same time to screen capture but Android 4.4 offers screen recording as well. Go to the Play Store then download Screen Record to enable recording of screen activity.
Play Games Portal
In Android 4.4 KitKat, Play Games portal now allows tracking of your score and achievements in compatible games and compared your best attempts with your friends and Google+ contacts

Android 4.4 KitKat and Updated Developer Tools

Posted by Dave Burke, Engineering Director, Android Platform Today we are announcing Android 4.4 KitKat, a new version of Android that brings great new features for users and developers.
The very first device to run Android 4.4 is the new Nexus 5, available today on Google Play, and coming soon to other retail outlets. We’ll also be rolling out the Android 4.4 update worldwide in the next few weeks to all Nexus 4, Nexus 7, and Nexus 10 devices, as well as the Samsung Galaxy S4 and HTC One Google Play Edition devices.
As part of this release, we kicked off Project Svelte, an effort to reduce the memory needs of Android so that it can run on a much broader range of devices, including entry-level devices that have as little as 512MB RAM. From the kernel to system, frameworks, and apps, we've reduced memory footprint and improved memory management so Android can run comfortably on only 512MB of RAM. We did this not only on Android but across Google apps, like Chrome and YouTube.
By supporting a broader range of devices, Android 4.4 will help move the Android ecosystem forward. Now all users will be able to enjoy the very best that Android has to offer, on the devices that best meet their needs.
Here’s a quick look at some of the new features for developers:
  • New ways to create beautiful apps — A new full-screen immersive mode lets your app or game use every pixel on the screen to showcase content and capture touch events. A new transitions framework makes it easier to animate the states in your UI. Web content can take advantage of a completely new implementation of WebView built on Chromium.
  • More useful than ever — A printing framework lets you add the convenience of printing to your apps. A storage access framework makes it easier for users find documents, photos, and other data across their local and cloud-based storage services. You can integrate your app or storage service with the framework to give users instant access to their data.
  • Low-power sensors — New hardware-integrated sensors let you add great new features to your apps without draining the battery. Included are a step detector and step counter that let you efficiently track of the number of walking steps, even when the screen is off.
  • New media capabilities — A new screen recorder lets you capture high-quality video of your app directly from your Android device. It's a great new way to create walkthroughs, tutorials, marketing videos, and more. Apps can use adaptive playback to offer a significantly better streaming video experience.
  • RenderScript in the NDK — A new C++ API in the Android Native Development Kit (NDK) lets you use RenderScript from your native code, with access to script intrinsics, custom kernels, and more.
  • Improved accessibility support — New system-wide captioning settings let your apps present closed captions in the style that's preferred by the user.
There's a lot more, so be sure to check out the Android 4.4 platform highlights for a complete overview of those and other new capabilities for developers. For details on the APIs and how to use them, take a look at the API Overview or watch one of the new DevBytes videos on KitKat.
Along with the new Android 4.4 platform we're releasing a new version of the Android NDK (r9b). The new NDK gives you native access to RenderScript and other stable APIs in Android 4.4, so if you've been waiting to use RenderScript from your native code, give it a try.
Last, we've updated the Support Package (r19) with a new helper library for printing images through the new printing framework, as well as other updates.
You can get started developing and testing on Android 4.4 right away, in Android Studio or in ADT/Ant. You can download the Android 4.4 Platform (API level 19), as well as the SDK Tools, Platform Tools, and Support Package from the Android SDK Manager.

Changes to the SecretKeyFactory API in Android 4.4

Changes to the SecretKeyFactory API in Android 4.4

random_droid
In order to encrypt data, you need two things: some data to encrypt and an encryption key. The encryption key is typically a 128- or 256-bit integer. However, most people would rather use a short passphrase instead of a remembering a 78-digit number, so Android provides a way to generate an encryption key from ASCII text inside of javax.crypto.SecretKeyFactory.
Beginning with Android 4.4 KitKat, we’ve made a subtle change to the behavior of SecretKeyFactory. This change may break some applications that use symmetric encryption and meet all of the following conditions:
  1. Use SecretKeyFactory to generate symmetric keys, and
  2. Use PBKDF2WithHmacSHA1 as their key generation algorithm for SecretKeyFactory, and
  3. Allow Unicode input for passphrases
Specifically, PBKDF2WithHmacSHA1 only looks at the lower 8 bits of Java characters in passphrases on devices running Android 4.3 or below. Beginning with Android 4.4, we have changed this implementation to use all available bits in Unicode characters, in compliance with recommendations in PCKS #5.
Users using only ASCII characters in passphrases will see no difference. However, passphrases using higher-order Unicode characters will result in a different key being generated on devices running Android 4.4 and later.
For backward compatibility, we have added a new key generation algorithm which preserves the old behavior: PBKDF2WithHmacSHA1And8bit. Applications that need to preserve compatibility with older platform versions (pre API 19) and meet the conditions above can make use of this code:
import android.os.Build;
 SecretKeyFactory factory;
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
   // Use compatibility key factory -- only uses lower 8-bits of passphrase chars
   factory = SecretKeyFactory.getInstance("PBKDF2WithHmacSHA1And8bit");
} else {
   // Traditional key factory. Will use lower 8-bits of passphrase chars on
   // older Android versions (API level 18 and lower) and all available bits
   // on KitKat and newer (API level 19 and higher).
   factory = SecretKeyFactory.getInstance("PBKDF2WithHmacSHA1");
}