NJ Court finds Owner-Operator to be Employee for Worker's Compensation Purposes

by Bob Kerns » Thu, 22 Apr 2010 07:34:47 GMT


Sponsored Links
 In case anyone was wondering, this is quite as irrelevant as it seems.
No need for others to click the link.



>



Other Threads

1. Retrieving List type from remote service

Hi,

I am having trouble passing a List type from a remote service to the
UI activity.
Here is a modified version of RemoteService example from the APIDemo.
(only included where its modified)

PROBLEM: The call back function (for List) is called successfully, but
the List returned is empty...

It works fine when the service does not run in a remote process.
(w/o android:process=":remote" in the manifest file)

Why is this happening...?

Also, when I tried Map type, it didn't even successfully generate a
IRemoteServiceCallback.java file....
it tries to do new Map().... and complains that its an abstract
class..
(FYI, List instantiates by new ArrayList())



1. in IRemoteServiceCallback.java

oneway interface IRemoteServiceCallback {
    /**
     * Called when the service has a new value for you.
     */
    void valueChanged(int value);
    void valueChangedList(out List values);
    void valueString(String value);
}

2. In RemoteServiceBinding.java
  /**
     * This implementation is used to receive callbacks from the
remote
     * service.
     */
    private IRemoteServiceCallback mCallback = new
IRemoteServiceCallback.Stub() {
        /**
         * This is called by the remote service regularly to tell us
about
         * new values.  Note that IPC calls are dispatched through a
thread
         * pool running in each process, so the code executing here
will
         * NOT be running in our main thread like most other things --
so,
         * to update the UI, we need to use a Handler to hop over
there.
         */
        public void valueChanged(int value) {
                Log.d("ee", "valuechanged=" + value);
                mHandler.sendMessage(mHandler.obtainMessage(BUMP_MSG, value,
0));
        }

                                public void valueChangedList(List values) 
throws RemoteException {
                                        // TODO Auto-generated method stub
                                        Log.d("ee", "valuechangedlist=" + 
values.toString());
                                        
mHandler.sendMessage(mHandler.obtainMessage(LIST_MSG, values));
                                }

                                public void valueString(String value) throws 
RemoteException {
                                        Log.d("ee", "valueString=" + value);
                                }
    };


3. In RemoteService.java

   private final Handler mHandler = new Handler() {
        @Override public void handleMessage(Message msg) {
            switch (msg.what) {

                // It is time to bump the value!
                case REPORT_MSG: {
                    // Up it goes.
                    int value = ++mValue;

                    // Broadcast to all clients the new value.
                    final int N = mCallbacks.beginBroadcast();
                    for (int i=0; i<N; i++) {
                        try {
                            mCallbacks.getBroadcastItem(i).valueChanged
(value);
                                        List<String> values = new 
ArrayList<String>
();
                                        values.add("Hello, Mars");
                                        mCallbacks.getBroadcastItem
(i).valueChangedList(values);
                                        
mCallbacks.getBroadcastItem(i).valueString
("HEEELLLLOOOO");
                        } catch (RemoteException e) {
                            // The RemoteCallbackList will take care
of removing
                            // the dead object for us.
                        }
                    }
                    mCallbacks.finishBroadcast();

                    // Repeat every 1 second.
                    sendMessageDelayed(obtainMessage(REPORT_MSG),
1*1000);
                } break;
                default:
                    super.handleMessage(msg);
            }
        }
    };

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

2. 'apriori' Build error

Building android to Migor platform am getting this error,

out/host/linux-x86/bin/apriori --prelinkmap build/core/prelink-linux-
sh.map --locals-only --quiet out/target/product/generic/obj/
SHARED_LIBRARIES/libstdc++_intermediates/LINKED/libstdc++.so --output
out/target/product/generic/symbols/system/lib/libstdc++.so
ASSERTION FAILURE build/tools/apriori/apriori.c:2184: [next_idx <=
idx]
make: *** [out/target/product/generic/symbols/system/lib/libstdc++.so]
Error 1
make: *** Deleting file `out/target/product/generic/symbols/system/lib/
libstdc++.so'

if comment out 'ASSERT(next_idx <= idx) in build/tools/apriori/
apriori.c:2184 i will end up with the following error,

out/host/linux-x86/bin/apriori --prelinkmap build/core/prelink-linux-
sh.map --locals-only --quiet out/target/product/generic/obj/
SHARED_LIBRARIES/libstdc++_intermediates/LINKED/libstdc++.so --output
out/target/product/generic/symbols/system/lib/libstdc++.so
make: *** [out/target/product/generic/symbols/system/lib/libstdc++.so]
Floating point exception
make: *** Deleting file `out/target/product/generic/symbols/system/lib/
libstdc++.so'

can anyone tell me why its happening and how to fix it ??



--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. Custom component rare exception: Parser is not a BridgeXmlBlockParser!

4. Arbitrary shape ImageView

5. Disabling title on the WebView:

6. Google Dev Phone unavavailable! will they extend ADC II deadline..who to ask?!

7. Removing ListItems