<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>crimsonwoods</author_name>
  <author_url>https://blog.hatena.ne.jp/crimsonwoods/</author_url>
  <blog_title>crimsonwoodsのブログ</blog_title>
  <blog_url>https://crimsonwoods.hatenablog.com/</blog_url>
  <categories>
    <anon>Android</anon>
  </categories>
  <description>「気をつけるべきこと」とか書きましたが、 ありていに言えば「自分がはまったのでくやしい！ぐぬぬ！」ってことですね。ということでAndroidのセンサーから値を取得する上で、気をつけなきゃいけないこと書いておきます。 SensorManager取得時に指定したセンサーのタイプを信用するな。 SensorのResolutionはよくわからない。 具体的にどういうことかコードを見ていきましょう。Androidでセンサーの値を取るときはこんな感じのコードを書きます。 @Override void onCreate(Bundle savedInstanceState) { ... final Senso…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcrimsonwoods.hatenablog.com%2Fentry%2F2012%2F05%2F23%2F010454&quot; title=&quot;Androidのセンサーで気をつけるべきこと - crimsonwoodsのブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-05-23 01:04:54</published>
  <title>Androidのセンサーで気をつけるべきこと</title>
  <type>rich</type>
  <url>https://crimsonwoods.hatenablog.com/entry/2012/05/23/010454</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
