# How to access android version on config method

**URL:** <https://forum.ionicframework.com/t/how-to-access-android-version-on-config-method/62616>\
**Category:** cordova\
**Created:** [September 5, 2016, 5:44pm UTC](https://forum.ionicframework.com/t/how-to-access-android-version-on-config-method/62616 "2016-09-05T17:44:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![paredesivan](https://avatars.discourse-cdn.com/v4/letter/p/f07891/32.png) [@paredesivan](https://forum.ionicframework.com/u/paredesivan)\
**Post date:** [September 5, 2016, 5:44pm UTC](https://forum.ionicframework.com/t/how-to-access-android-version-on-config-method/62616/1 "2016-09-05T17:44:39Z")

</div>

something like that is possible?

app.config(function ($stateProvider, $urlRouterProvider, $ionicConfigProvider, $compileProvider){

var deviceInformation = ionic.Platform.device();  
var a = deviceInformation.version;  
var b = parseFloat(a);

}
