Android SDK version -


I am quite confused about how I can apply to launch on different Android versions.

I am compiling it using SDK level 4. Is this code compiled and when it is being played on the phone with SDK 10, then will the old SDK4 be used, or will it use SDK10?

A simple example is Service setForeground () -method, which was disliked. If I run such code on the phone with SDK 10, then what work will have no effect or will it use the SDK version 4?

The same goes for onStart () . Is it being ignored on SDK 10 and will try to call onStartCommand ()

I would be grateful if someone could explain to me what's going on here And why.

Your service is compiled only bytecode - references to your classes and other sections and methods. When it is positioned on the new Android version, it (Android, OS) does whatever it fits - you do not have any effect on it. As another Java based system, it will rely on proper class names / packages / interfaces and will attempt to resolve the methods with some signature (parameter and return value). If it behaves socially, it will first check whether the new interface (i.e. onstream commm) is the method, and if it is available, it will be called. Again this can be a fallback (or not) in the old method, but generally you can rely on the fact that reverse compatibility has been maintained for a very long time.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -