Re: [android-developers] Unexpected Cast To Button

2016-06-16 Thread Jason Flanagan
To reference your button in your MainActivity class as in your original post. In your activity_main.xml you should have something like this... it appears as though this id was under an ImageView tag rather than a button tag. -JF On Thursday, June 16, 2016 at 7:41:06 AM UTC-4, Rajdeep Roy

Re: [android-developers] Unexpected Cast To Button

2016-06-16 Thread Rajdeep Roy
Done ! but no R file and no errors are showing up as well !! On Thursday, June 16, 2016 at 5:03:40 PM UTC+5:30, sardar khan wrote: > > Rebuild the Project > > On Thu, Jun 16, 2016 at 4:15 PM, Rajdeep Roy > wrote: > >> Hi, >> I put off the code with Imageview and the

Re: [android-developers] Unexpected Cast To Button

2016-06-16 Thread sardar khan
Rebuild the Project On Thu, Jun 16, 2016 at 4:15 PM, Rajdeep Roy wrote: > Hi, > I put off the code with Imageview and the Button code is intact and it > does not error now BUT the R file is missing now from the java folder > What to do with that? > > On Thursday, June

Re: [android-developers] Unexpected Cast To Button

2016-06-16 Thread Rajdeep Roy
Hi, I put off the code with Imageview and the Button code is intact and it does not error now BUT the R file is missing now from the java folder What to do with that? On Thursday, June 16, 2016 at 4:31:34 PM UTC+5:30, Rajdeep Roy wrote: > > @Sardar - Do u mean check out the "MainActivity.xml"

Re: [android-developers] Unexpected Cast To Button

2016-06-16 Thread sardar khan
yes check it contain the id that refer to the imageview On Thu, Jun 16, 2016 at 4:01 PM, Rajdeep Roy wrote: > @Sardar - Do u mean check out the "MainActivity.xml" ?? > > On Thursday, June 16, 2016 at 4:28:58 PM UTC+5:30, sardar khan wrote: >> >> it shows that the in xml

Re: [android-developers] Unexpected Cast To Button

2016-06-16 Thread Rajdeep Roy
@Sardar - Do u mean check out the "MainActivity.xml" ?? On Thursday, June 16, 2016 at 4:28:58 PM UTC+5:30, sardar khan wrote: > > it shows that the in xml layout the id refer to ImageView kindly check the > layout > > On Thu, Jun 16, 2016 at 3:45 PM, Rajdeep Roy >

Re: [android-developers] Unexpected Cast To Button

2016-06-16 Thread sardar khan
it shows that the in xml layout the id refer to ImageView kindly check the layout On Thu, Jun 16, 2016 at 3:45 PM, Rajdeep Roy wrote: > Hello Everyone, > I am new to Android Programming and I am stuck at a point where it shows > up "Unexpected Cast to the Button" > I am