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
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
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
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
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
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
. 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
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
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
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
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:
>
>
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
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
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
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
15 matches
Mail list logo