Ask a question, if there apk 4.0 API, installed on the 2.2 machine, so long as the API does not perform to 4.0 part of the code, should be safe, right?
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Security ....
Reply:
You can use try catch to handle, capture the corresponding error
For example ClassNotFoundError or NoSuchMethodError
Reply:
Build.VERSION.SDK_INT is the api level of the current system, you can use this to achieve different api level to go in a different process.
This is also a common way to adapt to a variety of android system version.
Reply:
Thank you, depending on the Build.VERSION.SDK_INT in, start a different class, or call a different function, good
No comments:
Post a Comment