tags:

views:

51

answers:

2

Hi, mostly i am working on android 1.6 platform.I made 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? Thank you

A: 
  1. Are you sure .R file has been auto generated? If not, do a Project->Clean->Rebuild in Eclipse and see if it changes anything.

  2. Have you imported the correct Resource file? Sometimes people import android.R and so cannot see their Ids.

Samuh
A: 

Import

import com.your.package.R;
Pentium10
I imported all required package like in android 1.6 platform, but in 1.5 platform it shows error.
RBADS
You shouldn't have to do that. If you need to import your own package.R then you've broken something and this isn't the right way to fix it.
Steve H