1. Check out our companion app, Forums for Android! Download from Google Play

Is it possible to read translation info?

Discussion in 'Application Development' started by OliverWho, Aug 30, 2010.

  1. OliverWho

    OliverWho New Member
    Thread Starter

    Aug 30, 2010
    I am designing a small application which may require to get the translation information of Andriod device.
    Is it possible to read the moving information of the Andriod device? If yes, then we can treat it as moving sensor like the WII remote.
    So far, I found some description of Location Manager which can update the device location on the Earth. But it's not what I want, I dont need its global location but its translation vector.
    For example:
    Vector translation = GetTranslation();

    If there is no function like this, then it is also acceptable to calucation it from global positions. like: Vector translation = newLocation - prevLocation;
    But what's the accuracy will be? few meter or decimeter?

    Here are some imformation I have googled.
    The Andriod platform gets its location data from two sources. GPS and cell towers of the mobile network. The GPS will give you accuracy up to a few meters under good conditions. The cell towers of the mobile network is very coarse estimate with an accuracy that can be few handred meters.

    It looks like that I can only get a very coarse translation info by calucating it from the global location.

    So, is there any good solution to read the translation info of the Andriod device with high accuracy? few decimeter or centimeter?


  2. No, you're not going to be able to get it down to a few decimeters. In very good circumstances, you can be talking about a few meters. Take a look at the LocationListener class: LocationListener | Android Developers

Share This Page