A question about Android Compass sensitivity

by ko5tik » Fri, 26 Feb 2010 15:42:14 GMT


Sponsored Links
 


Accuracy of sensors is not a property of android, but of used
hardware.
Sensors used in HTC Hero sell for about $3 wholesale -  I would not
await
much precision there.   And compass, being magnetic, is sensitive to
ambient magnetic
fields ( resulting from electric installations around you) - so
relative readings may be OK,
but not absolute

--



Other Threads

1. Dynamic ArrayAdapter and Spinner

Hi all

I need to create an  ArrayAdapter and a Spinner that are totally dynamic and
have nothing to do with the layout file.

So I am trying to do something like:

    Spinner spinnerListID;
    spinnerListID = new Spinner (this);
    String[] array_spinner = new String[5];
    array_spinner[0]="1";
    array_spinner[1]="2";
    array_spinner[2]="3";
    array_spinner[3]="4";
    array_spinner[4]="5";
    ArrayAdapter adapter = new ArrayAdapter(this, ?????, array_spinner);
    spinnerListID.setAdapter(adapter);
    ll.addView(editTextInputListID);


But I can not see how I can create an ArrayAdapter that does not need
a textViewResourceId?

As it is described
http://developer.android.com/reference/android/widget/ArrayAdapter.html: It
looks like it is a needed constructor parameter.
Or should I not use this way at all?

Thank you,
Sara

-- 

2. Creating a file inside my own directory

I am using following to code to create a directory

private static final String TRIAL_DIR_NME="trial";

File dir = getDir(TRIAL_DIR_NME, MODE_PRIVATE);

Now I want to create a custom file inside this directory. Basically I
want to write "trial start date" for app and then compare that date to
determine if trial period has expired.

Thanks
Imad

-- 

3. Android intent-filter for http scheme

4. Does TabWidget.setDividerDrawable() work?

5. should i be reusing the same location manager?

6. listactivity with default preferenceactivity style

7. developing blogger in android