1. Download our Official Android App: Forums for Android!

Apps Is it possible to read translation info?

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

  1. OliverWho

    OliverWho Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Aug 30, 2010

    Aug 30, 2010
    1
    0
    5
    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?
     

    Advertisement

  2. IanGClifton

    IanGClifton Well-Known Member
    Rank:
    None
    Points:
    58
    Posts:
    111
    Joined:
    Feb 7, 2010

    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

Loading...