Monday 14 September 2015

Discussions - Marshmallow Android 6.0 with new Features

Marshmallow Android 6.0 with new Features

Google Finally announced that the next generation Android M is “Marshmallow”. This news was announced by Dave Burke. The Google will soon allow developers to upload apps base on Android 6.0 to be uploaded on the PlayStore.

Android 6.0 is mainly aimed at stability and performance improvements, and will bring new features such as – Fingerprint Scanner, Android Pay , MultiWindow , Tap on Now, New app Permissions Model, Support for the USB Type-C, Doze for Battery .

Here i describe few features that has been introduced in Marshmallow :

1) Support Fingerprint: API for Fingerprint support will be provided and if developer want they can incorporate the API into their app.

2) App Permission: How many time you want to restrict the permission that are given to apps. Now in Android M the new API allows users to decide what permission they want to give to any particular app.

3) Google Now: Now searching easy is Easy on Android M. It is a voice assisted search that allows you to search anything without leaving the app currently running. I think that one is best facility.

Main Feature
4) Doze for Battery : This battery saving feature of Marshmallow that will allow the phone battery to last as much as two and half time longer than Lollipop. It will detect if the phone is not touched or moved for a long period of time it will go to sleep, hence saving precious battery.

Lollipop Android 5.0 with new Features:

1.RecylcerView
2.CardView
3.Snack Bar
4.co-ordinating layout
5.TextInputLayout (EditText)
6. elevation
7.Ripple effect
8. FAB
9.SwipeRefresh Layout
10.alert Dialog
11.Vector Drawables
12.Activity Transitons
13. Themes
14.Navigation Drawer
15.Color Pallete 
16. Layout Manager(stagged, Grid)
17.AppBarLayout
18.CollapsingToolbarLayout
19.collabration layout 
20.Paralllax Model
21.reveal animations

Difference between asynctask and service in android

By default, a Service object runs on the main thread, also called the foreground thread. The only real difference between a Service and an Activity is that a Service doesn't have a UI. An *IntentService* runs on a separate thread, but its thread stops once it's processed every instruction in its main method, so by default it doesn't maintain its state. 

An AsyncTask is initiated by the main thread, but runs in a separate thread. However, if the Activity that started the AsyncTask is moved to the background, the AsyncTask stops, and its work may not be completed. 
Remember that the main thread runs your UI. Don't block it with long-running operations, or the user will see Application Not Responding (ANR). In addition, more recent versions of the platform don't allow you to run network operations on the main thread. 

For operations that you want to run in the background, but you're willing to restart if your Activity disappears, use an AsyncTask. For a discrete operation that you want to run to completion without communication, using a background thread, use IntentService. 

If you want a "presence" for your app that continues to chug along, perhaps doing nothing, even when your app isn't in the foreground, consider a bound Service.

1 comment:

  1. Consequently, starting in the amount of electronic marketing strategy, is whenever a company's existing website, which will be to review the present site and its purpose is to improve the potency of the future. There is no evidence that the development and implementation of a method to be significantly different way of electronic marketing. Strategic planning for enterprise development or strategic marketing to comply with the established framework should still be
    marshmallow strain

    ReplyDelete