Build a Simple Android App with Java
Improving Our Code
Using the New Colors
I put the code same as in the video but the android shows an error: array required, but int found.
How can i fix this ?
Could you elaborate? What code did you put in?
Without reviewing your code we can't really help you, but from what the error says, you're probably trying to return an int where the codes expects an array. I took a look at the video and he is parsing a String array with hex colors to an int. Make sure you did that correctly.
Oh! It was basically I spelled my array name while parsing incorrectly. It works now. Thankyou :)
Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.
I forgot my password