problems with sensorsimulator

by rastro » Thu, 01 Oct 2009 06:04:37 GMT

Sponsored Links
 I'm trying to integrate the code from here: 

but my code dies with this:

  android.content.ActivityNotFoundException: No Activity found to
handle Intent { act=android.intent.action.VIEW dat=content://
org.openintents.hardware/preferences }

E/AndroidRuntime(  773):        at
E/AndroidRuntime(  773):        at
E/AndroidRuntime(  773):        at
E/AndroidRuntime(  773):        at
E/AndroidRuntime(  773):        at android.os.Handler.dispatchMessage
E/AndroidRuntime(  773):        at android.os.Looper.loop(
E/AndroidRuntime(  773):        at
E/AndroidRuntime(  773):        at
E/AndroidRuntime(  773):        at java.lang.reflect.Method.invoke
E/AndroidRuntime(  773):        at
E/AndroidRuntime(  773):        at
E/AndroidRuntime(  773):        at dalvik.system.NativeStart.main
(Native Method)

How do I get my (one) activity to handle this?

Is there a complete code sample somewhere that I've missed?



Other Threads

1. Capture image with Intent


going with my problem capturing picture via Intent.

Hopefully somebody will have some use from this info, and maybe we will
identify problem :)

I am running code example from here:

(in example I have changed path for file from




Running on following phones:

1) SonyEricsson X8 (E15i) OS: Android 2.1 update 1
2) SonyEricsson X10i OS: Android 2.1 update 1

Phone 1 works fine. Preview is visible and picture is created.

Phone 2 doesn't work at all, doesn't create picture, there is no preview.

*Funny part is that expensive one isn't working :)

If anyone could test it on their phone, please do it and send info.


God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer


2. Why doesn't Cursor expose useful and public features of SQLiteCursor?

Looking at the source of SQLiteCursor, there are some features that
seem very useful but aren't exposed via the Cursor interface. Namely,
being able to control the windowing and intialread behaviors seems
very useful but it isn't exposed? Why not? Relevant parts are below.

     *  mMaxRead is the max items that each cursor window reads
     *  default to a very high value
    private int mMaxRead = Integer.MAX_VALUE;
    private int mInitialRead = Integer.MAX_VALUE;
    private int mCursorState = 0;
    private ReentrantLock mLock = null;
    private boolean mPendingData = false;

     *  support for a cursor variant that doesn't always read all
     *  initialRead is the initial number of items that cursor window
     *  if query contains more than this number of items, a thread
will be
     *  created and handle the left over items so that caller can
     *  results as soon as possible
     * @param initialRead initial number of items that cursor read
     * @param maxRead leftover items read at maxRead items per time
     * @hide
    public void setLoadStyle(int initialRead, int maxRead) {
        mMaxRead = maxRead;
        mInitialRead = initialRead;
        mLock = new ReentrantLock(true);


3. [WTA]Google Calendar dan default notification

4. Tanya...

5. HttpURLConnection gives UnknownHostException

6. Couple of Honeycomb API errors

7. Why cant I install an apk from asset folder