3
Well, I’ve been trying to personalize a Listview in my project, and I finished it and it was all right. However, an API error appeared stating that the minimum API I used was very low. I used the eclipse correction option without knowing if employee, the error was gone and then tried to run the APK. Unfortunately it did not open and the system reported that the application stopped.
I figured the one responsible for this was that API error. I tried to create another project with a smaller API, but when copying the code several errors appeared. The Gets I used in one of the classes stopped working for no apparent reason. I have an error in Actionbaractivity in another class. When importing, it gets the yellow risk below and stops working, as well as the import of it. If I remove the import, it turns red. Also and I’m not sure what the reason is. Follow the screenshots of the classes with errors.
You are at risk because you are depreciated, see direct from documentation.
– user28595
ArrayList
is in yellow because it is not in use, the import was done, but the class was not used in the code.– user28595
As to the
itemPosicao
, this classItem
it was you who created it? If yes, add it to the question as well. Also add what message the IDE shows in the variable with red risk.– user28595
Well Diego, I understand that the yellow risk implies that I am not using, but why that risk in the middle of "Actionbaractivity"? This is the Gets error. http://prntscr.com/95dyqa And yes, I created the Item class. Follow the code. http://prntscr.com/95e07u
– Rodrigo P.
See my first comment, in it is the answer of why the class "Actionbaractivity" is at risk. I suggest you to post the item class code here too, and the error that is appearing in the red subliming.
– user28595
I posted above the screenshots hosted by lightshot. Unfortunately the comment removes the formatting of the code and gets confused. In any case, the get error message is: The method getx() is Undefined for the type Clipdata.Item
– Rodrigo P.
You can paste the code into the question, then select all the code and click on the option
{}
that it appears formatted.– user28595