I am having the same problem but I am only implementing the Activity
Class which is included in the package by default.
THis is the partial code.

public class ActiveOctave extends Activity implements OnErrorListener,
        OnBufferingUpdateListener, OnCompletionListener,
        OnPreparedListener, SurfaceHolder.Callback {

        private static final String TAG = "VideoPlayer";
    private MediaPlayer mp;
    private SurfaceView mPreview;
    private EditText mPath;
    private SurfaceHolder holder;
    private ImageButton mPlay;
    private ImageButton mPause;
    private ImageButton mReset;
    private ImageButton mStop;
    private String current;
    /**
     * Called when the activity is first created.
     */
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.main);
        // Set up the play/pause/reset/stop buttons
        mPreview = (SurfaceView) findViewById(R.id.surface);
        mPath = (EditText) findViewById(R.id.path);
        mPlay = (ImageButton) findViewById(R.id.play);
        mPause = (ImageButton) findViewById(R.id.pause);
        mReset = (ImageButton) findViewById(R.id.reset);
        mStop = (ImageButton) findViewById(R.id.stop);

This is my Debug Stack.
Thread [<3> main] (Suspended (exception RuntimeException))
        ActivityThread.performLaunchActivity(ActivityThread$ActivityRecord)
line: 2131
        ActivityThread.handleLaunchActivity(ActivityThread$ActivityRecord)
line: 2147
        ActivityThread.access$1800(ActivityThread, ActivityThread
$ActivityRecord) line: 112
        ActivityThread$H.handleMessage(Message) line: 1572
        ActivityThread$H(Handler).dispatchMessage(Message) line: 88
        Looper.loop() line: 123
        ActivityThread.main(String[]) line: 3708
        Method.invokeNative(Object, Object[], Class, Class[], Class, int,
boolean) line: not available [native method]
        Method.invoke(Object, Object...) line: 492
        ZygoteInit$MethodAndArgsCaller.run() line: 734
        ZygoteInit.main(String[]) line: 492
        NativeStart.main(String[]) line: not available [native method]

Please help what to Do.


On Nov 11, 12:15 am, Billsen <[EMAIL PROTECTED]> wrote:
> You need to generate a key for apikey for your emulator since Google
> has started to enforce the rule to put real key in xml file.
>
> On Nov 9, 10:44 pm, bw <[EMAIL PROTECTED]> wrote:
>
> > Also had to add
>
> > <uses-permission android:name="android.permission.INTERNET" />
>
> > above my application tag.
>
> > (Source:http://groups.google.com/group/android-developers/browse_thread/threa...)
>
> > Is there some place where this is all documented?
> > I think this info should be in the javadocs for the MapView class!
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to