1, Nosuchmethod lower version will not be called inside the method
The first is:
This.setbackgrounddrawable ();
This is the expiration method, but it is recommended to use it, because after Android 2.3 if you try to use the new API This.setbackground ();
Followed by:
arrayadapter<string> arrayadapter = new arrayadapter<string> (null, 0);
Arrayadapter.addall (New arraylist<string> ());
Please do not use the Arrayadapter inside the AddAll method, if you send Android Environment 4.0, you will get a warning, generally we can do so
Add an annotation, @SuppressLint ("Newapi"), but it is recommended that you do not, or to use the old method of honesty, new time through the construction method to pass the list in, or you can judge the version is also available
It's a bit messy, essays ...
Project Development Subtotal < one > Android development pits, version compatible