Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

test: Reply
 
LinkBack Thread Tools
Old October 22nd, 2010, 01:30 PM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Oct 2010
Location: Buffalo,NY
Posts: 6
 
Device(s): OG Droid 2.2 thinking i need root
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via AIM to ThaKidd04 Send a message via Skype™ to ThaKidd04
Notsure r.android r unresolved.. i looked but I may be blind...

im just trying to write a basic app that will flash the screen or something stupid when i hit a button but im getting nowhere mainly because when i try:

Button okBtn = (Button) findViewById(R.android.okBtn);

i get some message telling me that r cannot be resolved... i dont know what to do im trying to go by online tutorials and the android documentation am i missing something?

Advertisements
ThaKidd04 is offline  
Reply With Quote
sponsored links
Old October 22nd, 2010, 01:53 PM   #2 (permalink)
Senior Member
 
Stinky Stinky's Avatar
 
Join Date: Aug 2010
Location: In a Dumpster! :D
Posts: 3,794
 
Device(s): Huawei Ascend Y300 :D
Carrier: Not Provided

Thanks: 5,122
Thanked 1,406 Times in 1,053 Posts
Default

Hey again Thakidd04 dude!

Don't worry! I had a shower and i am no longer stinky now! hahhaa lol

I am a first year IT student! So you can worry extra now cause i most probably will give you the wrong instructions! hahahaa

Have you done the hello world app yet by any chance buddy?

As long as you aren't a rapist U will fit in well here on the forums!
Stinky Stinky is offline  
Reply With Quote
Old October 22nd, 2010, 01:59 PM   #3 (permalink)
New Member
Thread Author (OP)
 
Join Date: Oct 2010
Location: Buffalo,NY
Posts: 6
 
Device(s): OG Droid 2.2 thinking i need root
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via AIM to ThaKidd04 Send a message via Skype™ to ThaKidd04
Default

im kinda doing my own version of hello world (since hello world is already written when u make new project) i wanted to do something like flash the screen or make the text change to hello android from hello world but i cant even get to using an event listener because instantiating the damn button wont work >:| lol im wondering if maybe my sdk didnt install correctly
ThaKidd04 is offline  
Reply With Quote
Old October 22nd, 2010, 02:01 PM   #4 (permalink)
New Member
Thread Author (OP)
 
Join Date: Oct 2010
Location: Buffalo,NY
Posts: 6
 
Device(s): OG Droid 2.2 thinking i need root
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via AIM to ThaKidd04 Send a message via Skype™ to ThaKidd04
Default

droidfail.jpg[2010-10-22 13:53:06 - main.xml] Unable to resolve id "@layout/@+okBtn" for attribute "id"
[2010-10-22 13:53:18 - main.xml] Unable to resolve id "@layout/@+okBtn" for attribute "id"
[2010-10-22 15:00:47 - helloButton] ERROR: Unable to open class file C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\Java\Android\Test\helloButton\gen\co m\helloBtn\R.java: No such file or directory

why would i get a message like this in the console when i open a new project?
ThaKidd04 is offline  
Last edited by ThaKidd04; October 22nd, 2010 at 02:26 PM.
Reply With Quote
Old October 22nd, 2010, 02:33 PM   #5 (permalink)
New Member
Thread Author (OP)
 
Join Date: Oct 2010
Location: Buffalo,NY
Posts: 6
 
Device(s): OG Droid 2.2 thinking i need root
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via AIM to ThaKidd04 Send a message via Skype™ to ThaKidd04
Default

HAHA FIXED! ok apparently eclipse was trying to use the wrong instance of r. after scrolling down a bit i fixed the issue thanx stinky for trying to help tho.
ThaKidd04 is offline  
Reply With Quote
Old October 22nd, 2010, 02:53 PM   #6 (permalink)
Senior Member
 
Stinky Stinky's Avatar
 
Join Date: Aug 2010
Location: In a Dumpster! :D
Posts: 3,794
 
Device(s): Huawei Ascend Y300 :D
Carrier: Not Provided

Thanks: 5,122
Thanked 1,406 Times in 1,053 Posts
Default

YES!!

Well done dude!

Glad you came out on top

Stinks
Stinky Stinky is offline  
Reply With Quote
Reply
Tags
button, first app, n00b, noob, r.android


Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 06:10 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.