Android devices which support Barometer sensor

Amazon Fire Phone
CUBOT T9
Casio G’zOne CA-201L
Conquest S8
DNS SD01
EVOLVEO StrongPhone Q4

HTC Butterfly 2
HTC One (M8 EYE)
HTC One M8
HTC One M8 Dual Sim
HTC One M8s

Huawei Nexus 6P
INew V1
INew V7
Jiayu S1
Kyocera Brigadier
LG G4 H815
LG G4 H818
Lenovo A356

Motorola Droid RAZR MAXX HD
Motorola Moto X
Motorola Nexus 6

OINOM LMV9
Rivotek RT-550

RugGear RG210 Swft II
RugGear RG220 Swift Plus
RugGear RG500
RugGear RG960 Apex
RugGear RG970 Partner

Runbo H1
Runbo Q5
Runbo X5
Runbo X6
Runbo X6 LTE

SENSEIT P4

Samsung Galaxy Nexus GT-I9250
Samsung Galaxy Note 3 Dual Sim SM-N9002
Samsung Galaxy Note 3 SM-N900
Samsung Galaxy Note 3 SM-N9005
Samsung Galaxy Note 3 SM-N9009
Samsung Galaxy Note 4 Dual Sim SM-N9100
Samsung Galaxy Note 4 SM-N910F
Samsung Galaxy Note 4 SM-N910G
Samsung Galaxy Note 4 SM-N910H
Samsung Galaxy Note 5
Samsung Galaxy Note 5 Duos
Samsung Galaxy Note 5 Winter Special Edition
Samsung Galaxy Note Edge SM-N915F
Samsung Galaxy S III GT-I9300
Samsung Galaxy S4 Active GT-I9295
Samsung Galaxy S4 GT-I9500
Samsung Galaxy S4 GT-I9505
Samsung Galaxy S4 LTE+ GT-I9506
Samsung Galaxy S4 VE LTE GT-I9515
Samsung Galaxy S5 Duos SM-G900FD
Samsung Galaxy S5 LTE-A SM-G901F
Samsung Galaxy S5 SM-G900F
Samsung Galaxy S5 SM-G900H
Samsung Galaxy S5 mini SM-G800F
Samsung Galaxy S5 mini SM-G800H
Samsung Galaxy S5 mini SM-G800H/DS
Samsung Galaxy S6 Duos
Samsung Galaxy S6 Edge
Samsung Galaxy S6 Edge+
Samsung Galaxy S6 SM-G920F
Samsung Galaxy S7
Samsung Galaxy S7 Edge

Seals TS3

Sony Xperia Z2 (D6502)
Sony Xperia Z2 (D6503)
Sony Xperia Z2a
Sony Xperia Z3 (D6603)
Sony Xperia Z3 Compact
Sony Xperia Z3 dual (D6633)
Sony Xperia Z3+ (E6553)
Sony Xperia Z3+ Dual
Sony Xperia Z4

Torex M5
Torex S18
Xiaomi MI3
Xiaomi Mi-Two
Xiaomi Mi2S
Xiaomi Mi5

Exploring Spark

Today, I was reading Android Weekly and I found new library called Spark. This library is used for drawing sparklines.

build.gradle

    compile 'com.robinhood.spark:spark:1.0.0'

activity_main.xml

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
   xmlns:tools="http://schemas.android.com/tools"
   android:layout_width="match_parent"
   android:layout_height="match_parent"
   xmlns:app="http://schemas.android.com/apk/res-auto"
   android:paddingBottom="@dimen/activity_vertical_margin"
   android:paddingLeft="@dimen/activity_horizontal_margin"
   android:paddingRight="@dimen/activity_horizontal_margin"
   android:paddingTop="@dimen/activity_vertical_margin"
   tools:context="com.gayratrakhimov.sparksandbox.MainActivity">

    <com.robinhood.spark.SparkView
       android:id="@+id/sparkview"
       android:layout_width="match_parent"
       android:layout_height="match_parent"
       app:spark_lineColor="#FF0000"/>

</RelativeLayout>

MainActivity.java

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        float[] data = {1,5,6,4,2,5,7,8,6,5,56,14,4,5,16,6,14,25,14,33,5,34,14,5,14,34,15};

        SparkView sparkView = (SparkView) findViewById(R.id.sparkview);
        sparkView.setAdapter(new MyAdapter(data));

    }
}

Result:
Screenshot_2016-04-17-23-10-10