Results 1 to 4 of 4
Thread: Could somebody help me? please
- 03-30-2012, 12:21 AM #1
Member
- Join Date
- Mar 2012
- Posts
- 1
- Rep Power
- 0
Could somebody help me? please
This is my first android project an i was following a tutorial on youtube and i got this random error (which is probabily very simple).
package your.first.project;
import android.app.Activity;
import android.os.Bundle;
import android.widget.Button;
public class firstprojectActivity extends Activity {
/** Called when the activity is first created. */
Button buttonPlay;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
buttonPlay - (Button) findViewById (R.id.play);
}
}
The error that eclipse is giving me a syntex error for "-" (in the bold line). how do i fix this?
- 03-30-2012, 12:56 AM #2
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,545
- Rep Power
- 11
Re: Could somebody help me? please
What is that line supposed to do?
- 03-30-2012, 03:26 AM #3
Re: Could somebody help me? please
Moved from New to Java
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 03-30-2012, 09:28 AM #4
Senior Member
- Join Date
- Apr 2010
- Location
- Philippines
- Posts
- 580
- Rep Power
- 4


1Likes
LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks