Go Back   Android Forums > Android Development > Application Development
Application Development Dev Lounge for the Coder Folks
Gamers - Check out our new sister sites!
Nintendo Wii U!    |    OUYA - $99 Android System!

test: Reply
 
LinkBack Thread Tools
Old March 3rd, 2012, 02:01 PM   #1 (permalink)
Junior Member
Thread Author (OP)
 
moviemastersdk's Avatar
 
Join Date: Feb 2012
Posts: 49
 
Device(s): HTC Hero, LG Optimus 2x
Carrier: Not Provided

Thanks: 5
Thanked 1 Time in 1 Post
Default Soundpool load problem

i am trying to define a sound here
dance_kick = sp.load(this, R.raw.dance_kick, 1);

but i am getting
"dance_kick could not be resolved to a variable"

thx in adv.

moviemastersdk is offline  
Reply With Quote
Sponsors
Old March 3rd, 2012, 06:54 PM   #2 (permalink)
Senior Member
 
jonbonazza's Avatar
 
Join Date: Jul 2010
Gender: Male
Posts: 1,936
 
Device(s): Nexus 4, Samsung Galaxy S II, HTC Evo 4G, Amazon Kindle Fire
Carrier: ATT

Thanks: 235
Thanked 466 Times in 289 Posts
Default

Did you declare the variable dance_kick?
jonbonazza is offline  
Reply With Quote
The Following User Says Thank You to jonbonazza For This Useful Post:
moviemastersdk (March 4th, 2012)
Old March 4th, 2012, 03:08 PM   #3 (permalink)
Junior Member
Thread Author (OP)
 
moviemastersdk's Avatar
 
Join Date: Feb 2012
Posts: 49
 
Device(s): HTC Hero, LG Optimus 2x
Carrier: Not Provided

Thanks: 5
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by jonbonazza View Post
Did you declare the variable dance_kick?
no..

moviemastersdk is offline  
Reply With Quote
Old March 4th, 2012, 08:04 PM   #4 (permalink)
Senior Member
 
jonbonazza's Avatar
 
Join Date: Jul 2010
Gender: Male
Posts: 1,936
 
Device(s): Nexus 4, Samsung Galaxy S II, HTC Evo 4G, Amazon Kindle Fire
Carrier: ATT

Thanks: 235
Thanked 466 Times in 289 Posts
Default

Well, you need to do that. Haha
Java is a structured, typed language, unlike Javascript.
jonbonazza is offline  
Reply With Quote
The Following User Says Thank You to jonbonazza For This Useful Post:
moviemastersdk (March 5th, 2012)
Reply


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 10:30 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.