Sample's Dont' Work

by [EMAIL PROTECTED] » Tue, 18 Nov 2008 23:19:49 GMT

Sponsored Links
 I'm using the following settings :
- Android 1.0 r1
- Eclipse Ganymede 3.4.1
- ADT-0.8.0

The error : Could not open the editor: Invalid Input: Must be

org.eclipse.ui.PartInitException: Invalid Input: Must be
        at Source)
        at org.eclipse.ui.internal.EditorManager.createSite

Any ideas what could be causing this?


Other Threads

1. options menu problems with SurfaceView and ListView

In my application, I have extended SurfaceView and ListView. I create
a LinearLayout as below

        mainForm = new LinearLayout(this);
        mainForm.setLayoutParams(new LinearLayout.LayoutParams(

I then add the SurfaceView and ListView to the mainForm and then


I also override onPrepareOptionsMenu and call menu.clear() and then
dynamically create menus each time the menu button is pressed by the

The application loads fine and the SurfaceView works fine as I
directly draw images to it in a sleep loop.

The ListView displays items and is desined to refreshed with new

The options menu also displays once as well.

However, once the SurfaceView is running and the ListView is loaded, a
second call to onPrepareOptionsMenu by pressing the menu key disrupts
the SurfaceView drawing, causing it to get stuck on the last image it
was drawing. But the list view does refresh the adapter to change
content once. After that, the application is hung and the SurfaceView
keeps playing the same images in a random order.

I am using runOnUiThread to update the views in the mainForm
(LinearLayout) and the Lunar Landing template for the SurfaceView as
shown below

In Activity

public void ViewsUpdate() {
        System.out.println("Before ViewsUpdate method");
        runOnUiThread(new updateDoer());

public class updateDoer implements Runnable {

        public updateDoer(){


        public void run() {

//viewForm is where the ListView and other views are added


In SurfaceView
private void drawSurfaceView(){
                Canvas c = null;
            try {
                c = mSurfaceHolder.lockCanvas(null);
                synchronized (mSurfaceHolder) {
                    if (mMode == STATE_RUNNING)
            } finally {
                // do this in a finally so that if an exception is
                // during the above, we don't leave the Surface in an
                // inconsistent state
                if (c != null) {


I am at a loss as to why everything gets clobbered after the options
menu is built and displayed the second time.



mudah2ahn bisa datangan bawa rantangan... yang mau request rom & apk bisa di
mulai dari sekarang japri yaa...

~from pc~

"Indonesian Android Community [id-android]" 

3. Oot mau tanya milis I'd bada..

4. Authenticating apps sending intents on the receiving en

5. AndroidGroup: Nested Actvities

6. Making Video files Android ready for playback over HTTP

7. OOT: Pak Gunaris Mengudara di Radio JJFM