"invalid data message"-error

by think4ward » Mon, 24 Nov 2008 02:35:22 GMT


Sponsored Links
 Hello everyone,

I'm trying to get the GLSurfaceViewActivity - example to work.

 http://code.google.com/android/samples/ApiDemos/src/com/example/android/apis/graphics/ 

And as soon as I ad the GLSurfaceViewActivity.java to my project I
get
this error on running the app in the emulator:

Failed to upload HelloAndroid.apk on 'emulator-5554': invalid data
message

after removing the class, HelloAndroid.apk installs just fine.

Does someone know what I do wrong?

Thx in advance.

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



"invalid data message"-error

by think4ward » Mon, 24 Nov 2008 11:44:40 GMT


 This happens with all examples I tried...
For this example I also localized the class, which causes the
problem.
As soon as I comment back in the GLThread class to the project I get
this error.




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


Sponsored Links


"invalid data message"-error

by think4ward » Mon, 24 Nov 2008 11:45:23 GMT


 LogCat doesnt show any error..
this is the DDMS output:

[2008-11-24 12:43:00 - ddms]transfer error: invalid data message
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. GPS Queueing in LocationListener

The application under development was to distinguish between the
current location of the android phone based upon GPS signal when it
was available.  When it is not available, alternate methods are being
used to distinguish the user's location.

  The application uses a private locationlistener class that
implements the LocationListener class.  The code within the
onLocationChanged( ) method to be overridden will draw the location on
the google map as a dot as they are received.

  I have noticed however that something is amiss.  If you start
outside the building, it will estimate your position with several dots
around your current location. When you walk through a building where
you don't get GPS, the dots are not drawn as expected, but as soon as
you step outside again on the other side of the building it rapidly
draws dots far away from (but leading up to) your location, until it
gets to your actual current location.  I don't understand how these
other values are retrieved and why they seem to poke their ugly heads
in, once the user steps back outside.

  It almost seems as though it queues up an estimated route travelled
based on the previous gps location and tries to connect them with
several updates.  I'm trying to understand the reasoning behind why it
would do this, rather than just provide me with actual GPS signals
received when they are available.

  Any have any thoughts or notice of these values building up like
this?

~ JFrog "Debugging something is twice as hard as coding it up the
first time.  Therefore, if we code something up as cleverly as
possible, we are by definition not smart enough to debug it"

-- 

2. GLSurfaceView and camera surface

Hi,
i tried to have a GLSurfaceView on top of camera surface, so that i
can draw gl objects with camera preview as background.
I tried but didn't works. the view i has is something like this:

////////////////////////////////////////////////////////////////////////////////////////////
AbsoluteLayout alParent = new AbsoluteLayout(this);
alParent.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,
LayoutParams.FILL_PARENT));

//CameraView extends SurfaceView implements SurfaceHolder.Callback
mCameraView = new CameraView(this);
mCameraView.setLayoutParams(new AbsoluteLayout.LayoutParams(
                                AbsoluteLayout.LayoutParams.FILL_PARENT,
                                AbsoluteLayout.LayoutParams.FILL_PARENT, 0, 0));
alParent.addView(mCameraView);

//GLView extends GLSurfaceView
view = new GLView(this);
view.setLayoutParams(new AbsoluteLayout.LayoutParams(
                                AbsoluteLayout.LayoutParams.FILL_PARENT,
                                AbsoluteLayout.LayoutParams.FILL_PARENT, 0, 0));
alParent.addView(view);
////////////////////////////////////////////////////////////////////////////////////////////

it resulting the camera preview only, the opengl is not drawn. ( i
made sure without camera, the opengl draws cube).
Anyone have experienced this kind of situation?
Thanks :)

-- 

3. Edit Text Password visible on focus in landscape

4. Problem in read() for Bluetooth

5. Device seeding question

6. Hi has anyone met problem about usb driver of XPERIA X10 (mini)?

7. Configuring Android source