sensors HAL

by Ken Schultz » Thu, 05 Mar 2009 18:22:18 GMT


Sponsored Links
 Is there a recommended way to pass information between a
sensors_control_context_t struct and a sensors_data_context_t struct?
(i.e. active_sensors)  For devices without a hardware eCompass there
needs to be a way in the polling function to determine if the sensor
is activated, so it can inject data.  The polling function is part of
the sensors_data_context_t and the activate function is part of
sensors_control_context_t.

Thanks,
Ken
--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---



Other Threads

1. Application is shutdown unexpectedly

Hello!

New to Android programming, I want to create the following layout:
1. Background e.g. cyan;
2. Two buttons, each of it be half of screen width wide,
   quarter of screen height high, with some example text;
3. The buttons should be centered, with a filler between them
   with the same height as the buttons.

Some of these requirements I'll have to do in my Activity's code, which 
currently only loads the view:


    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }

As this isn't too much, I must have done sth. wrong in my layout code:

<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:background="#18EDF5"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
    <TableLayout>
        <TableRow android:id="@+id/main$p$top">
            <Button android:id="@+id/main$p$button1"
                android:background="@drawable/gradient_box"
                android:text="T E S T 1"
                android:textSize="32dip"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:layout_marginTop="10dp"
                android:layout_marginRight="40dp"
                android:layout_marginBottom="10dp"
                android:layout_marginLeft="40dp"
            />
        </TableRow>
        <View android:id="@+id/main$p$filler"
            android:layout_height="2dip"
            android:background="#FF909090"
        />
        <TableRow>
            <Button android:id="@+id/main$p$button2"
                android:background="@drawable/gradient_box"
                android:text="T E S T 2"
                android:textSize="32dip"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:layout_marginTop="10dp"
                android:layout_marginRight="40dp"
                android:layout_marginBottom="10dp"
                android:layout_marginLeft="40dp"
            />
        </TableRow>
    </TableLayout>
</LinearLayout>

It'd be great, if somebody could tell me, what I've forgotten here - 
guessing it's about some wrong/illegal/missing id, because the shutdown

might be caused by a NPE (however, just an assumption).

Kind regards

Peter

--

2. Galaxy 5 goes to.....

Galaxy 5 udah di suport resmi sama samsung ke froyo....{*filter*}tara baru ada
firmware buat us....ayo upgrade buat galaxy5er's

 http://www.***.com/ 

-- 
===============
"

3. Dungeon Hunter HD.. FREE!!

4. How i can migrate my app from 1.5 to 1.6 api fast and safe???

5. How to push the code changes to review.source.android.com

6. On disale logging status of Looper.getMainLooper().setMessageLogging(new Printer()) remains enable or becomes disable.

7. cara bikin aplikasi