{"id":18633,"date":"2015-03-29T12:10:54","date_gmt":"2015-03-29T06:40:54","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=18633"},"modified":"2015-03-29T12:10:54","modified_gmt":"2015-03-29T06:40:54","slug":"activity-recognition-using-new-googleapiclient-activityrecognitionclient-is-deprecated-in-december-2014","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/activity-recognition-using-new-googleapiclient-activityrecognitionclient-is-deprecated-in-december-2014\/","title":{"rendered":"Activity Recognition using new GoogleApiClient [ActivityRecognitionClient is deprecated in december 2014]"},"content":{"rendered":"<p style=\"text-align: justify\"><a href=\"https:\/\/developer.android.com\/google\/play-services\/index.html\" target=\"_blank\">As per Google play services 6.5 Highlights :<\/a> The\u00a0<del>ActivityRecognitionClient<\/del>,\u00a0<del>LocationClient<\/del>, and\u00a0<del>PlusClientclasses<\/del> are deprecated. If you used those APIs in your app and want to call Google Play services 6.5 or higher APIs, you must switch to the new programming model that utilizes <strong>GoogleApiClient<\/strong>.<\/p>\n<p lang=\"zxx\" style=\"text-align: justify\" align=\"left\">As per docs, GoogleApiClient is able to\u00a0add the multiple APIs \u00a0into the single client.<br \/>\ni.e.\u00a0\u00a0&#8211; In one GoogleApiClient, You can add both \u00a0LocationServices.API and ActivityRecognition.API, or different API client.<\/p>\n<h6><span class=\"highlight\">What is mean by Google Activity Recognition?<\/span><\/h6>\n<p>For the Android world, It comes with a lot of new ideas for the application. Activity Recognition API recognize various activities like :<\/p>\n<ul>\n<li style=\"text-align: justify\">The device is in a vehicle, such as a car.<\/li>\n<li style=\"text-align: justify\">The device is on a bicycle.<\/li>\n<li style=\"text-align: justify\">The device is on a user who is walking or running.<\/li>\n<li style=\"text-align: justify\">The device is still (not moving).<\/li>\n<li style=\"text-align: justify\">The device angle relative to gravity changed significantly and so on.<\/li>\n<\/ul>\n<h6><span class=\"highlight\"><br \/>\nHow well does it work?<\/span><\/h6>\n<p>In my personal testing, I get following thing. When i am walking from step-down to vehicle, there is some delay (approximate 2-4 second).<\/p>\n<h6><span class=\"highlight\">Useful Methods<\/span><\/h6>\n<ol>\n<li>ActivityRecognitionClient\n<ul>\n<li>connect()<\/li>\n<li>disconnect()<\/li>\n<li>requestActivityUpdates()<\/li>\n<li>removeActivityUpdates()<\/li>\n<\/ul>\n<\/li>\n<li>ActivityRecognitionResult\n<ul>\n<li>hasResult()<\/li>\n<li>extractResult()<\/li>\n<li>getMostProbableActivity().getType()<\/li>\n<li>getMostProbableActivity().getConfidence()<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h6><span class=\"highlight\"><br \/>Step to Implement<\/span><\/h6>\n<p><strong>Step 1:<\/strong> Add Google Play Service(6.5 or higher) library \u00a0in your project.<\/p>\n<p><strong>Step 2:<\/strong>\u00a0Add required permission in the Manifest.<\/p>\n<p>[xml]<br \/>\n&lt;uses-permission android:name=&quot;com.google.android.gms.permission.ACTIVITY_RECOGNITION&quot; \/&gt;<br \/>\n[\/xml]<\/p>\n<p><strong>Step 3:<\/strong> Implement <em>GoogleApiClient.ConnectionCallbacks<\/em> and <em>GoogleApiClient.OnConnectionFailedListener<\/em> interface.<\/p>\n<p>[java]<br \/>\nGoogleApiClient.ConnectionCallbacks connectionCallbacks = new GoogleApiClient.ConnectionCallbacks() {<br \/>\n            @Override<br \/>\n            public void onConnected(Bundle bundle) {<br \/>\n            }<\/p>\n<p>            @Override<br \/>\n            public void onConnectionSuspended(int i) {<br \/>\n            }<br \/>\n        };<br \/>\n[\/java]<\/p>\n<p>[java]<br \/>\nGoogleApiClient.OnConnectionFailedListener onConnectionFailedListener = new GoogleApiClient.OnConnectionFailedListener() {<br \/>\n            @Override<br \/>\n            public void onConnectionFailed(ConnectionResult connectionResult) {<\/p>\n<p>            }<br \/>\n        };<br \/>\n[\/java]<\/p>\n<p><strong>Step 4:<\/strong> Connect the GoogleApiClient with ActivityRecognition.API.<\/p>\n<p>[java]<br \/>\nGoogleApiClient googleApiClient = new GoogleApiClient.Builder(this)<br \/>\n                .addApi(ActivityRecognition.API)<br \/>\n                .addConnectionCallbacks(this) \/\/this is refer to connectionCallbacks interface implementation.<br \/>\n                .addOnConnectionFailedListener(this) \/\/this is refer to onConnectionFailedListener interface implementation.<br \/>\n                .build();<\/p>\n<p>googleApiClient.connect();<\/p>\n<p>[\/java]<\/p>\n<p><strong>Step 5:<\/strong> Create IntentService and override onHandleIntent(Intent intent) method. Don&#8217;t forget to add this to your manifest file.<\/p>\n<p>[java]<br \/>\npublic class ActivityRecognizationIntentService extends IntentService {<\/p>\n<p>    public ActivityRecognizationIntentService() {<br \/>\n        super(&quot;ActivityRecognizationIntentService&quot;);<br \/>\n    }<\/p>\n<p>    @Override<br \/>\n    protected void onHandleIntent(Intent intent) {<br \/>\n        if(ActivityRecognitionResult.hasResult(intent)){<br \/>\n            ActivityRecognitionResult activityRecognitionResult = ActivityRecognitionResult.extractResult(intent);<br \/>\n            DetectedActivity detectedActivity = activityRecognitionResult.getMostProbableActivity();<\/p>\n<p>            int confidence = detectedActivity.getConfidence();<br \/>\n            String recognizeActivity = getActivityName(detectedActivity.getType());<\/p>\n<p>            Log.d(&quot;Himanshu&quot;,&quot;Confidence : &quot; + confidence);<br \/>\n            Log.d(&quot;Himanshu&quot;,&quot;RecognizeActivity : &quot; + recognizeActivity);<\/p>\n<p>        }<br \/>\n    }<\/p>\n<p>    private String getActivityName(int activityType){<br \/>\n        switch (activityType){<br \/>\n            case DetectedActivity.IN_VEHICLE:<br \/>\n                return &quot;IN_VEHICLE&quot;;<br \/>\n            case DetectedActivity.ON_BICYCLE:<br \/>\n                return &quot;ON_BICYCLE&quot;;<br \/>\n            case DetectedActivity.STILL:<br \/>\n                return &quot;STILL&quot;;<br \/>\n            case DetectedActivity.TILTING:<br \/>\n                return &quot;TILTING&quot;;<br \/>\n            case DetectedActivity.RUNNING:<br \/>\n                return &quot;RUNNING&quot;;<br \/>\n            case DetectedActivity.ON_FOOT:<br \/>\n                return &quot;ON_FOOT&quot;;<br \/>\n            case DetectedActivity.WALKING:<br \/>\n                return &quot;WALKING&quot;;<br \/>\n            case DetectedActivity.UNKNOWN:<br \/>\n                return &quot;UNKNOWN&quot;;<br \/>\n        }<br \/>\n        return &quot;&quot;;<br \/>\n    }<br \/>\n}<br \/>\n[\/java]<\/p>\n<p><strong>Step 6:<\/strong> Create a pending intent and pass it in ActivityRecognitionApi.requestActivityUpdates() as a arguments.<\/p>\n<p>[java]<br \/>\n \/\/Before request API request, GoogleApiClient must be in connected mode.<br \/>\nIntent intent = new Intent(this,ActivityRecognizationIntentService.class);<br \/>\nPendingIntent pendingIntent = PendingIntent.getService(this,1,intent,PendingIntent.FLAG_UPDATE_CURRENT);<\/p>\n<p>ActivityRecognition.ActivityRecognitionApi.requestActivityUpdates(googleApiClient,1,pendingIntent);<br \/>\n[\/java]<\/p>\n<p lang=\"zxx\" style=\"text-align: justify\" align=\"left\">Now, I feel really excited when I think about use-case of GoogleApiClient APIs in Android world. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>As per Google play services 6.5 Highlights : The\u00a0ActivityRecognitionClient,\u00a0LocationClient, and\u00a0PlusClientclasses are deprecated. If you used those APIs in your app and want to call Google Play services 6.5 or higher APIs, you must switch to the new programming model that utilizes GoogleApiClient. As per docs, GoogleApiClient is able to\u00a0add the multiple APIs \u00a0into the single [&hellip;]<\/p>\n","protected":false},"author":126,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":13,"footnotes":""},"categories":[518],"tags":[1726,1728,1727],"class_list":["post-18633","post","type-post","status-publish","format-standard","hentry","category-android","tag-activity-recognition","tag-activityrecognitionclient","tag-googleapiclient"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"As per Google play services 6.5 Highlights : The ActivityRecognitionClient, LocationClient, and PlusClientclasses are deprecated. If you used those APIs in your app and want to call Google Play services 6.5 or higher APIs, you must switch to the new programming model that utilizes GoogleApiClient. As per docs, GoogleApiClient is able to add the multiple APIs into the single\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Himanshu Kumar Singh\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.tothenew.com\/blog\/activity-recognition-using-new-googleapiclient-activityrecognitionclient-is-deprecated-in-december-2014\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"Activity Recognition using new GoogleApiClient [ActivityRecognitionClient is deprecated in december 2014] | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"As per Google play services 6.5 Highlights : The ActivityRecognitionClient, LocationClient, and PlusClientclasses are deprecated. If you used those APIs in your app and want to call Google Play services 6.5 or higher APIs, you must switch to the new programming model that utilizes GoogleApiClient. As per docs, GoogleApiClient is able to add the multiple APIs into the single\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.tothenew.com\/blog\/activity-recognition-using-new-googleapiclient-activityrecognitionclient-is-deprecated-in-december-2014\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Activity Recognition using new GoogleApiClient [ActivityRecognitionClient is deprecated in december 2014] | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"As per Google play services 6.5 Highlights : The ActivityRecognitionClient, LocationClient, and PlusClientclasses are deprecated. If you used those APIs in your app and want to call Google Play services 6.5 or higher APIs, you must switch to the new programming model that utilizes GoogleApiClient. As per docs, GoogleApiClient is able to add the multiple APIs into the single\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/activity-recognition-using-new-googleapiclient-activityrecognitionclient-is-deprecated-in-december-2014\\\/#article\",\"name\":\"Activity Recognition using new GoogleApiClient [ActivityRecognitionClient is deprecated in december 2014] | TO THE NEW Blog\",\"headline\":\"Activity Recognition using new GoogleApiClient [ActivityRecognitionClient is deprecated in december 2014]\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/himanshu-singh\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2015-03-29T12:10:54+05:30\",\"dateModified\":\"2015-03-29T12:10:54+05:30\",\"inLanguage\":\"en-US\",\"commentCount\":2,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/activity-recognition-using-new-googleapiclient-activityrecognitionclient-is-deprecated-in-december-2014\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/activity-recognition-using-new-googleapiclient-activityrecognitionclient-is-deprecated-in-december-2014\\\/#webpage\"},\"articleSection\":\"Android, Activity Recognition, ActivityRecognitionClient, GoogleApiClient\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/activity-recognition-using-new-googleapiclient-activityrecognitionclient-is-deprecated-in-december-2014\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/android\\\/#listItem\",\"name\":\"Android\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/android\\\/#listItem\",\"position\":2,\"name\":\"Android\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/android\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/activity-recognition-using-new-googleapiclient-activityrecognitionclient-is-deprecated-in-december-2014\\\/#listItem\",\"name\":\"Activity Recognition using new GoogleApiClient [ActivityRecognitionClient is deprecated in december 2014]\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/activity-recognition-using-new-googleapiclient-activityrecognitionclient-is-deprecated-in-december-2014\\\/#listItem\",\"position\":3,\"name\":\"Activity Recognition using new GoogleApiClient [ActivityRecognitionClient is deprecated in december 2014]\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/android\\\/#listItem\",\"name\":\"Android\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/himanshu-singh\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/himanshu-singh\\\/\",\"name\":\"Himanshu Kumar Singh\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/activity-recognition-using-new-googleapiclient-activityrecognitionclient-is-deprecated-in-december-2014\\\/#authorImage\",\"url\":\"https:\\\/\\\/newersworld-sf-static.tothenew.net\\\/prod\\\/profilePicFolder\\\/e0265397-05f6-47f9-985d-2d7945f06247_himanshu.singh@tothenew.com.jpg\",\"width\":96,\"height\":96,\"caption\":\"Himanshu Kumar Singh\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/activity-recognition-using-new-googleapiclient-activityrecognitionclient-is-deprecated-in-december-2014\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/activity-recognition-using-new-googleapiclient-activityrecognitionclient-is-deprecated-in-december-2014\\\/\",\"name\":\"Activity Recognition using new GoogleApiClient [ActivityRecognitionClient is deprecated in december 2014] | TO THE NEW Blog\",\"description\":\"As per Google play services 6.5 Highlights : The ActivityRecognitionClient, LocationClient, and PlusClientclasses are deprecated. If you used those APIs in your app and want to call Google Play services 6.5 or higher APIs, you must switch to the new programming model that utilizes GoogleApiClient. As per docs, GoogleApiClient is able to add the multiple APIs into the single\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/activity-recognition-using-new-googleapiclient-activityrecognitionclient-is-deprecated-in-december-2014\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/himanshu-singh\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/himanshu-singh\\\/#author\"},\"datePublished\":\"2015-03-29T12:10:54+05:30\",\"dateModified\":\"2015-03-29T12:10:54+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Activity Recognition using new GoogleApiClient [ActivityRecognitionClient is deprecated in december 2014] | TO THE NEW Blog","description":"As per Google play services 6.5 Highlights : The ActivityRecognitionClient, LocationClient, and PlusClientclasses are deprecated. If you used those APIs in your app and want to call Google Play services 6.5 or higher APIs, you must switch to the new programming model that utilizes GoogleApiClient. As per docs, GoogleApiClient is able to add the multiple APIs into the single","canonical_url":"https:\/\/www.tothenew.com\/blog\/activity-recognition-using-new-googleapiclient-activityrecognitionclient-is-deprecated-in-december-2014\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.tothenew.com\/blog\/activity-recognition-using-new-googleapiclient-activityrecognitionclient-is-deprecated-in-december-2014\/#article","name":"Activity Recognition using new GoogleApiClient [ActivityRecognitionClient is deprecated in december 2014] | TO THE NEW Blog","headline":"Activity Recognition using new GoogleApiClient [ActivityRecognitionClient is deprecated in december 2014]","author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/himanshu-singh\/#author"},"publisher":{"@id":"https:\/\/www.tothenew.com\/blog\/#organization"},"datePublished":"2015-03-29T12:10:54+05:30","dateModified":"2015-03-29T12:10:54+05:30","inLanguage":"en-US","commentCount":2,"mainEntityOfPage":{"@id":"https:\/\/www.tothenew.com\/blog\/activity-recognition-using-new-googleapiclient-activityrecognitionclient-is-deprecated-in-december-2014\/#webpage"},"isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/activity-recognition-using-new-googleapiclient-activityrecognitionclient-is-deprecated-in-december-2014\/#webpage"},"articleSection":"Android, Activity Recognition, ActivityRecognitionClient, GoogleApiClient"},{"@type":"BreadcrumbList","@id":"https:\/\/www.tothenew.com\/blog\/activity-recognition-using-new-googleapiclient-activityrecognitionclient-is-deprecated-in-december-2014\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.tothenew.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/android\/#listItem","name":"Android"}},{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/android\/#listItem","position":2,"name":"Android","item":"https:\/\/www.tothenew.com\/blog\/category\/android\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/activity-recognition-using-new-googleapiclient-activityrecognitionclient-is-deprecated-in-december-2014\/#listItem","name":"Activity Recognition using new GoogleApiClient [ActivityRecognitionClient is deprecated in december 2014]"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/activity-recognition-using-new-googleapiclient-activityrecognitionclient-is-deprecated-in-december-2014\/#listItem","position":3,"name":"Activity Recognition using new GoogleApiClient [ActivityRecognitionClient is deprecated in december 2014]","previousItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/android\/#listItem","name":"Android"}}]},{"@type":"Organization","@id":"https:\/\/www.tothenew.com\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/www.tothenew.com\/blog\/"},{"@type":"Person","@id":"https:\/\/www.tothenew.com\/blog\/author\/himanshu-singh\/#author","url":"https:\/\/www.tothenew.com\/blog\/author\/himanshu-singh\/","name":"Himanshu Kumar Singh","image":{"@type":"ImageObject","@id":"https:\/\/www.tothenew.com\/blog\/activity-recognition-using-new-googleapiclient-activityrecognitionclient-is-deprecated-in-december-2014\/#authorImage","url":"https:\/\/newersworld-sf-static.tothenew.net\/prod\/profilePicFolder\/e0265397-05f6-47f9-985d-2d7945f06247_himanshu.singh@tothenew.com.jpg","width":96,"height":96,"caption":"Himanshu Kumar Singh"}},{"@type":"WebPage","@id":"https:\/\/www.tothenew.com\/blog\/activity-recognition-using-new-googleapiclient-activityrecognitionclient-is-deprecated-in-december-2014\/#webpage","url":"https:\/\/www.tothenew.com\/blog\/activity-recognition-using-new-googleapiclient-activityrecognitionclient-is-deprecated-in-december-2014\/","name":"Activity Recognition using new GoogleApiClient [ActivityRecognitionClient is deprecated in december 2014] | TO THE NEW Blog","description":"As per Google play services 6.5 Highlights : The ActivityRecognitionClient, LocationClient, and PlusClientclasses are deprecated. If you used those APIs in your app and want to call Google Play services 6.5 or higher APIs, you must switch to the new programming model that utilizes GoogleApiClient. As per docs, GoogleApiClient is able to add the multiple APIs into the single","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.tothenew.com\/blog\/activity-recognition-using-new-googleapiclient-activityrecognitionclient-is-deprecated-in-december-2014\/#breadcrumblist"},"author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/himanshu-singh\/#author"},"creator":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/himanshu-singh\/#author"},"datePublished":"2015-03-29T12:10:54+05:30","dateModified":"2015-03-29T12:10:54+05:30"},{"@type":"WebSite","@id":"https:\/\/www.tothenew.com\/blog\/#website","url":"https:\/\/www.tothenew.com\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.tothenew.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Activity Recognition using new GoogleApiClient [ActivityRecognitionClient is deprecated in december 2014] | TO THE NEW Blog","og:description":"As per Google play services 6.5 Highlights : The ActivityRecognitionClient, LocationClient, and PlusClientclasses are deprecated. If you used those APIs in your app and want to call Google Play services 6.5 or higher APIs, you must switch to the new programming model that utilizes GoogleApiClient. As per docs, GoogleApiClient is able to add the multiple APIs into the single","og:url":"https:\/\/www.tothenew.com\/blog\/activity-recognition-using-new-googleapiclient-activityrecognitionclient-is-deprecated-in-december-2014\/","og:image":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Activity Recognition using new GoogleApiClient [ActivityRecognitionClient is deprecated in december 2014] | TO THE NEW Blog","twitter:description":"As per Google play services 6.5 Highlights : The ActivityRecognitionClient, LocationClient, and PlusClientclasses are deprecated. If you used those APIs in your app and want to call Google Play services 6.5 or higher APIs, you must switch to the new programming model that utilizes GoogleApiClient. As per docs, GoogleApiClient is able to add the multiple APIs into the single","twitter:image":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"18633","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-29 12:21:29","updated":"2024-02-29 08:32:31","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.tothenew.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.tothenew.com\/blog\/category\/android\/\" title=\"Android\">Android<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tActivity Recognition using new GoogleApiClient [ActivityRecognitionClient is deprecated in december 2014]\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.tothenew.com\/blog"},{"label":"Android","link":"https:\/\/www.tothenew.com\/blog\/category\/android\/"},{"label":"Activity Recognition using new GoogleApiClient [ActivityRecognitionClient is deprecated in december 2014]","link":"https:\/\/www.tothenew.com\/blog\/activity-recognition-using-new-googleapiclient-activityrecognitionclient-is-deprecated-in-december-2014\/"}],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/18633","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/126"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=18633"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/18633\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=18633"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=18633"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=18633"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}