Mostly i am working on android 1.6. I mad开发者_如何学JAVAe an application on 1.5 platform but i could not access button through like R.id.button1 like platform 1.6. Is there any idea?
Are you sure .R file has been auto generated? If not, do a Project->Clean->Rebuild in Eclipse and see if it changes anything.
Have you imported the correct Resource file? Sometimes people import
android.R
and so cannot see their Ids.
Import
import com.your.package.R;
精彩评论