Build Path Errors

by cdnyny » Mon, 14 Dec 2009 06:08:44 GMT


Sponsored Links
 When I try and run the canonical HelloWorld app, I get the following
error right after trying to create the project: "The project cannot be
built until build path errors are resolved". I tried Project/Clean and
the Window/Other Perspective/DDMS route, but to no avail. Closing and
restarting Eclipse did not solve the problem.

The SDK location is set as the folder that contains the "platforms"
sub-folder. I am running on XP, and have set the Target Name as
Android 2.0.1. I have tried deleting and redoing the entire procedure
a few times, but get this above error all the time. Any thoughts?

Thanks in advance.

--



Other Threads

1. regarding playing mpeg4 & h.264 video file in android player

hi,
i have h.264&mp4 video file i am using following code but its giving
ioexception if any one know what is problem pls help me out.also there
is no folder called /raw in /res directory but some one written that we
need to place our video file in raw directory.can v place it any where
in file system & give path.

package org.anddev.android.musicplayer;
import java.io.*;

import android.app.Activity;
import android.media.MediaPlayer;
import android.media.MediaPlayer.OnCompletionListener;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MusicPlayer extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        setContentView(R.layout.main);
       
        // Find the Button from the xml-file.
        Button cmd_play = (Button)this.findViewById(R.id.cmd_play);
        cmd_play.setOnClickListener(new OnClickListener(){

               //@Override
               public void onClick(View arg0) {
                                        
                 
            MediaPlayer mp = new MediaPlayer();
                                   
            mp.setDataSource("/home/bugsbunny1.m4v");                           
                           
                mp.prepare();                                   
                                                                          
mp.start();                           
                  
// i.e. react on the end of the music-file:

                    mp.setOnCompletionListener(new
OnCompletionListener(){

                         // @Override
                         public void onCompletion(MediaPlayer arg0) {
                              // File has ended !!! Wink
                         }
                    });
               }
        });
    }
}                                  
                    
                                        
                                                
                                        
                  
                  
                  


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


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

2. To clarify charging for apps

I think I can't do what I want to do, but just want to clarify.  The
app I have is free itself, but it allows you to order some things, and
the user would need to pay for them (obviously).  It looks like the
market only allows for a one time up front charge, and I would not be
allowed to collect money outside of that charge if the app was
distributed with the market.  Correct?

That means, essentially, I have to try to distribute my app manually
in some other fashion.

Thanks in advance
--~--~---------~--~----~------------~-------~--~----~

3. How can I specify the default style of my widget

4. Gesture detection in the list view

5. Please Help - Can't Upgrade Suspended App on Market

6. How to control the height on an individual entry in a ListView widget?

7. Using X.509 Certificate for a secure http webrequest