processing / processing-android-archive

96 stars 50 forks source link

Ability to use newer API #35

Closed jeffThompson closed 11 years ago

jeffThompson commented 11 years ago

According to the Processing Wiki, currently the Android implementation requires the Android API version 10. The most current version is 17.

While trying to build some example sketches to fill in some of the gaps, it appears that functionality has changed considerably over the last 7 revisions - classes and methods have changed or been added, etc. This makes searching forums like Stack Overflow for suggestions about projects difficult, since many of the answers do not work in the older API.

I don't have any clue what's happening under the hood that requires API 10 (if someone can suggest where that would be interesting too), or what it might involve to change that, so apologies if this is an unreasonable or impossible request!

boubpopsyteam commented 11 years ago

Newer API don't work on older versions of android ... Each API level target a minimal Android version.

http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels

Level 10 is still the best choice for the best compatibility for now IMHO.

jeffThompson commented 11 years ago

Aha, that makes a lot of sense. I may add that detail to the Wiki, which right now mentions that you have to use API 10 but now exactly why.

Off the top of your head, would there be a reason one couldn't use the newest API? For example, when developing projects for a specific personal device?

benfry commented 11 years ago

As it says on the wiki, you can also use the newest API too, you just need 10 as a baseline because that's what's used by Processing. See that page for further discussion of why API 10.