problems with sensorsimulator

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


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

  http://code.google.com/p/openintents/wiki/SensorSimulator 

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
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2401)
E/AndroidRuntime(  773):        at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2417)
E/AndroidRuntime(  773):        at android.app.ActivityThread.access
$2100(ActivityThread.java:116)
E/AndroidRuntime(  773):        at android.app.ActivityThread
$H.handleMessage(ActivityThread.java:1794)
E/AndroidRuntime(  773):        at android.os.Handler.dispatchMessage
(Handler.java:99)
E/AndroidRuntime(  773):        at android.os.Looper.loop(Looper.java:
123)
E/AndroidRuntime(  773):        at android.app.ActivityThread.main
(ActivityThread.java:4203)
E/AndroidRuntime(  773):        at
java.lang.reflect.Method.invokeNative(NativeMethod)
E/AndroidRuntime(  773):        at java.lang.reflect.Method.invoke
(Method.java:521)
E/AndroidRuntime(  773):        at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:791)
E/AndroidRuntime(  773):        at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
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?

Thanks.

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



Other Threads

1. Capture image with Intent

Hi,

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:

http://labs.makemachine.net/2010/03/simple-android-photo-capture/

(in example I have changed path for file from

"/images/make_machine_example.jpg";

to

"/make_machine_example.jpg";



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.

Thanks.

-- 
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
results
     *  initialRead is the initial number of items that cursor window
reads
     *  if query contains more than this number of items, a thread
will be
     *  created and handle the left over items so that caller can
show
     *  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