[android-developers] media player error (1, -4)

2012-08-14 Thread exax
I'm trying to crate an app that will play a number of sound file saved within the app. I'm having trouble getting the media player to start however. Here is the code: public static final String LOG_TAG = "BCA"; public MediaPlayer mp; @Override public void onCreate(Bundle sa

[android-developers] Re: sound player

2012-02-17 Thread exax
Now i get a source not found error for the android.jar file. it asks me to attach source code. What does this mean??! On Feb 17, 5:52 pm, exax wrote: > so i got logCat working (good thing to know about) and i got the this > actually working (think it had to be inside a method?) Th

[android-developers] Re: sound player

2012-02-17 Thread exax
ll and i'm assuming that it shouldn't be. Any ideas? On Feb 17, 4:53 pm, Mark Murphy wrote: > Use adb logcat, DDMS, or the LogCat view in Eclipse to examine LogCat > and look at the stack trace associated with your error. > > > > > > > > > > On Fri, Feb

[android-developers] Re: sound player

2012-02-17 Thread exax
On Feb 17, 3:16 pm, Mark Murphy wrote: > On Fri, Feb 17, 2012 at 3:14 PM,exax wrote: > > So, I wanted to create a simple sound player that will just play a > > sound when I touch a button. I created it without errors but it > > crashes everytime i run it. I got rid of all the

[android-developers] sound player

2012-02-17 Thread exax
So, I wanted to create a simple sound player that will just play a sound when I touch a button. I created it without errors but it crashes everytime i run it. I got rid of all the extra code and found that the error is coming from the media player initialization public MediaPlayer music = MediaPla

[android-developers] Re: notepadv1 tutorial problems

2011-06-01 Thread exax
Solved it!! :) not sure why, but i had accidentally but a : instead of a / at @string/no_notes in the xml layout and this caused the project not to generate the R.java file. thanks for the help anyways On Jun 1, 2:41 pm, exax wrote: > I haven't imported R. anything. I put the minSdk in

[android-developers] Re: notepadv1 tutorial problems

2011-06-01 Thread exax
. The intellisense will offer some suggestions for > fixing; one of these will be importing the correct R file. > > This may fix your problem. > > On May 27, 6:04 am,exax wrote: > > > > > > > > > So I tried cleaning and rebuilding the project but still n

[android-developers] Re: notepadv1 tutorial problems

2011-05-26 Thread exax
So I tried cleaning and rebuilding the project but still nothing is happening. I restarted eclipse and redid the project but it still doesn't work. I really think I need to be able to fill in that greyed out box. Does anybody know for sure/a way to fix the tutorial? -- You received this message b

[android-developers] notepadv1 tutorial problems

2011-05-24 Thread exax
so i'm following the notepadv1 tutorial from the android dev site but the R.java file is not being generated. It seems this problem has stemmed from the fact that I didn't put in a min SDK version when setting up the project (as the tutorial asked) but the problem was eclipse wouldn't let me. it ju

[android-developers] Re: 回覆:Hello, Android troubles

2011-05-07 Thread exax
rong one here. > > The setting is saved for subsequent launches, and can be changed under > Project Properties | Run/Debug Settings. > > -- Kostya > > 07.05.2011 3:25, exax пишет: > > > K so i got it to work! im not sure why but i had to create my own > > laun

[android-developers] Re: 回覆:Hello, Android troubles

2011-05-06 Thread exax
K so i got it to work! im not sure why but i had to create my own launch configurations with it using an emulator that I created. Wasn't Eclipse supposed to do this automatically or something? oh well it works fine now, Thanks! On May 6, 5:20 pm, Streets Of Boston wrote: > Do these steps: > >    

[android-developers] Re: 回覆:Hello, Android troubles

2011-05-06 Thread exax
I forgot to mention, i also get a small window that pops up titled Applet Viewer: .class and in it it has a title Applet and at the bottom it says start: applet not initialized. i hope this helps... On May 6, 5:11 pm, exax wrote: > i still really can't figure out what's wrong. I d

[android-developers] Re: 回覆:Hello, Android troubles

2011-05-06 Thread exax
pression or you're trying to write that application as a normal > java app instead of starting an Android Project? > > 2011/5/6 exax > > > > > > > > > I am developing in eclipse. Do you mean the class path in the > > environment variables. I added where the

[android-developers] Re: 回覆:Hello, Android troubles

2011-05-05 Thread exax
I am developing in eclipse. Do you mean the class path in the environment variables. I added where the sdk was in the eclipse program itself and added the tools to the path variable. Is there another class path or should I try adding it to an environment variable? On May 5, 12:28 am, warenix wrot

[android-developers] Hello, Android troubles

2011-05-04 Thread exax
Hi, I just started developing for Android and followed the Hello, Android tutorials on the Resources tab from Android.com. I followed it step for step and have been going in circles trying to figure out what's wrong. Here's my code: package com.example.helloandroid; import android.app.Activity; i