Saturday, July 16, 2016

Android Studio Road Show- Chennai

Android Studio Road Show(ASRS) conducted at Raintree hotel, Chennai on 16th July 2016 which was interactive and shared a lot by Speakers.



Before attending, Google provided a Pre-work list.

Laptop with the following packages installed:
Newest version ofAndroid Studio (2.1+ )
Newest version of the Android SDK
Google Play Services, latest version available through SDK Manager
JAVA JDK (1.7).
Python 2.7 (not Python 3.x)
Finally, you should have an Android device connected to your computer via USB cable that can be used to run tests.
Android Marshmallow or greater is preferred because it will maximize the harness' functionality.
And provided sample codes to be downloaded.

Event started around 9 am and Mustafa Ali gave short intro and sessions what are all to be covered. It was split into two session where after post lunch session, it will be code lab session where coding will be practised. Let me cover some topics what are all discussed in ASRS.

Event first started by AMRIT SANJEEV.

Covered topics in latest Android Studio are as follows

1. Associate Android Developer Certification:

You can now prove your Android Development skills by earning an Associate Android Developer Certification. Earning this certification will be a definitive step on your path to a career as an Android Developer.

Google Certification

2.  LaunchPad:

LaunchPad  mission is to provide you with the technology, events, online resources, expertise and community necessary to launch and scale successful apps. The Launchpad program leverages Google’s infrastructure, together with UX reviews, mentorship, and events, to let startups anywhere focus on building, distributing, and monetizing your app, everywhere.

Launch Pad

3. GPU Profiler:

The GPU Debugging Tools are not installed by default; you’ll need to add it before you can use it.  You can find them in the SDK tools section of your SDK manager. It generally helpful for debugging or rendering for gamers.

4. Firebase plugin for Android Studio:

You can install firebase plugin in below steps:
Click Tools > Android > SDK Manager.
Click the SDK Tools tab.
Select Google Repository, then click OK.
Open the Assistant window by clicking Tools > Firebase.
Click to expand one of the listed features such as Analytics then click the Get Started tutorial to create a new Firebase project or connect to an existing one in a few clicks.

FireBase Plugin

5. APK Analyzer:

Drill  your APK to help you reduce your APK size, debug 64K method limit issues, view contents of Dex files and more.
You can find it in Build > Analyze APK to monitor which file takes maximum size-  made sure we didn’t ship unused resources, used vectors over PNGs in almost every case to reduce apk size.Method count analysis
Analyse area that need to be improved.



6. New Editor:

This new user interface designer lets you drag and drop widgets from the palette to the design surface or the component tree view of your app and offers a blueprint mode to inspect the spacing and arrangement of your layout, a Properties panel for quick widget edits, and an UI builder for editing menu and system preference files.

7.  Constraint Layout: 

Android Studio 2.2 Preview includes a new layout editor that's specially-built for a new layout called ConstraintLayout.
Once you drag-and-drop a view into ConstraintLayout, you can add constraints to define the view's position by dragging an anchor line to other elements in the layout.

8. Expresso Test Generator (For Testing): 

Espresso Test Recorder is a new feature released in Android Studio 2.2 Preview 3 that makes it easy to generate automated UI tests by recording your own interactions on a device so you don't have to actually write any test code
Go through the flow like a user. Add assertions while you are recording. Save the test and run on emulator or cloud test lab.

9. Cloud Test Lab Support.

10. Layout Inspector

The session ends with small recap in a three split

Design                          Develop
Layout Editor                Firebase    
Constraint Layout         Sample Search  
Layout inspector           Lint Analysis
     
Build                              Testing
Instant Run                  Firebase Test Lab
Project Structure         Expresso Test Recorder
Jack Compiler             Apk Analyser

Note: Jack compiler won't work in instant run!!!

The next session was handled with Android Monitor.
In some cases, Logcat goes too long and user can't track and simply need to scroll till end to see the logs. To avoid this, you can simply wrap the text to next line instead of scrolling horizontally till the end.
Below screenshot shows, before and after applying soft wrap.

Before Applying Soft wrap:



After Applying Soft wrap:




Mostly developers can reduce using Logs in code and can switch over to Hierarchy viewer and Evaluator Expression.

Monkey: 

Generates pseudo random stream of user events such as clicks, touches, or gestures, as well as a number of system-level events. Take care of your own device, if you test! :P As name implies, Testing is like a monkey behaviour :P :P

Vector Asset Studio: 

It supports from android 5.0 +
In Android Studio, open an Android app project.
In the Project window, select the Android view.
Right-click the res folder and select New > Vector Asset.
For more refer here: Vector Asset Studio
It was handled by Mustafao and the session ends.

Next Session was UI/UX handled by  Ghanashyam.S 

Material Design: 

Just an overview about Material Design. Why Material Design been introduced. Components of Material Design are.
1. Bottom Sheets
2. Cordinator Layout -> Specific interaction with one or more child views.
3. Floating Action Button
4. Navigation View.
5. Tabs
6. SnackBar

Advantages of Bottom Sheets:
Bottom Sheets can be used in two types.
1. Modal -> Temporary purpose. For eg: sharing by pop out from down sheet where user can close that window.
2. Persistant -> Comes from down to top and stay on screen.
    Bottom Sheet link:  Bottom Sheet

Session ends..

Next Session is about Testing in Android Studio.
It covers about
1. Hermetic Testing.
2. Flaky Testing.
3. In Build variants -> mock debug, production debug, Release debug.
4. Mockito
After lunch, it purely about code practice session especially in testing.

Provided links and sample code to run and test it.
CodeLabs Training
Code Labs Training 2

Architecture  follow-> MVP. Not to dump everything in Activity/Fragment. Separate code with Model, View and Presenter.

SysTrace:

Systrace is a tool that will help you analyze the performance of your application by capturing and displaying execution times of your applications processes and other Android system processes.
Need to enable in device.  Settings->Profile gpu rendering on..

And finally Q &A session...........and comes to an end at around 5.30 pm.
Hope covered session conducted by ASRS. Sorry if I might have missed topics too..


Wednesday, March 16, 2016

Google Asking Users What 'Android N' Should Be Called


Google has started asking people what Android N should be named via its Google Opinion Rewards app. The move is in line with what Google CEO Sundar Pichai confirmed in December during his India visit, saying the company may use an online poll.
Android Police reports that the Google Opinion Rewards Android app is now letting people answer few questions and win Play Store credits in return. For those unaware, the Google Opinion Rewards is an app created by Google Consumer Surveys and let's people answer quick surveys and earn Google Play credits. 
The first question the app asks people is about the food that comes to mind that starts with letter "N" and the second question lists some names of "tasty treats" starting with letter N. Some the treats listed include nachos, noodles, nougat, Neapolitan ice cream, and Nori.
It's worth noting that the questions are not available to all users and regions as the app is not available in India.
Considering Google had last year confused people with a video that claimed to have included possible names of Android M. We can expect to see more of such campaigns from Google I/O 2016 - which kicks off May 22.
In separate news, Google is reportedly internally referring to its next Android version as New York Cheesecake or NYC. Android Police spotted the codename first and adds that the "nyc" naming showed up in the AOSP repository a few times. To place this in context, Google had for past Android versions used "klp" name in repository for KitKat, "lmp" for Lollipop, and "mnc" for Marshmallow, using different dessert names like Key Lime Pie internally to ostensibly misdirect speculation.
Google last week released its latest Android N Developer Preview and also introduced the Android Beta Program offering enthusiasts the chance to stay up-to-date with the latest pre-release builds of Android. Apart from the release, Google also looked determined to "hand off" the final Android N release to device makers by summer.

Monday, March 14, 2016

Microsoft Hub Keyboard App Launched for Android; Next Lockscreen Updated


Microsoft has new apps for your Android smartphone. The Windows Phone maker on Tuesday announced the release of Hub Keyboard, a keyboard app that aims to make your sharing experience easier on Android. The Redmond, Washington-based company also released Sprightly and Kaizala apps that are aimed at small businesses and teams, apart from updating its Next Lockscreen offering.
After its recent purchase of SwiftKey, it's clear Microsoft is very interested in keyboard technology. The Hub Keyboard offers a range of features that enhance your typing and chatting experience on the phone. For instance, it lets you check the things you had saved in your clipboard earlier and quickly use them again.
Hub Keyboard also has a better integration with Microsoft products and services. If you have a PowerPoint slideshow named "report" saved in your OneDrive account, for instance, simply mentioning the word "report" when talking to your colleagues will give you the option to share the download link of that file. You can also search for your SharePoint documents from your work, school, or university Office 365 accounts.


But that's not all, Microsoft is also making it easier for you to access information about different people in your contacts. When you mention a friend's name when talking to some other person, Hub Keyboard prompts you with an option to share that friend's contact. You also get the option to translate one language to another without having to switch across any other app.
Microsoft has also released an update for its Next Lockscreen app for Android. The update brings support for PIN, pattern, and fingerprint sensor - provided your phone houses a fingerprint reader, of course. Another new feature now changes the wallpaper on your lockscreen based on your location. The new update dubbed 2.6.0 also has a new feature called Smart Contacts, which learns and displays contacts of people whom you've called or texted.
 The company also quietly launched two apps aimed at business and small groups. Sprightly allows uses to import their images, mould them into different templates to create catalogues, price lists, or e-cards that can be easily shared. Kaizala, on the other hand, is a workplace management and communication app. It offers group and private chats, location requests for team members, and the ability to share photos. In addition, it also offers the ability to assign different tasks to people in the group and others.


Download the Gadgets 360 app for Android and iOS to stay up to date with the latest tech news, product reviews, and exclusive deals on the popular mobiles.





Telenor Announces 'Project Sampark' Expansion in Uttar Pradesh


Telecommunications company Telenor India on Monday announced the expansion of "Project Sampark" the company's unique initiative to bridge the gender gap in mobile usage to new areas in Uttar Pradesh.
The project will now be extended to the rural areas of Bareilly, Dehradun and Moradabad districts in the UP (west) circle covering nearly 50-80 villages in each zone.
"The success of 'Project Sampark' in Aligarh has given us the confidence to expand it to new areas and take it beyond the pilot phase," Sharad Mehrotra, CEO, Telenor India, said in a statement.
"Giving a phone in hands of women is not just about connecting her to the information age but also about giving her a tool to take informed decision that can change the socio-economic condition of the entire family," he said.
The new areas will replicate the model piloted in the first phase launched in August 2014 across 87 villages in Aligarh district.
These 87 pilot villages have seen an improvement in tele-density among women and of the more than 52,000 "Project Sampark" subscribers 50 percent are women.
In the second phase, the villages will be covered by 30-40 trained women promoters who will be hired from the adjoining areas.
"Project Sampark" is a combination of retail and product innovations that has resulted in a unique model that addresses some of the key barriers of women's access to mobile telephony.
Download the Gadgets 360 app for Android and iOS to stay up to date with the latest tech news, product reviews, and exclusive deals on the popular mobiles.

Welcome