tag:blogger.com,1999:blog-32005942.post4479606742119960814..comments2024-01-24T14:40:41.201+00:00Comments on GeekYouUp's Mobile Blog: Supporting Honeycomb pt1: targetSdkVersion=11Anonymoushttp://www.blogger.com/profile/13384953816247059077noreply@blogger.comBlogger12125tag:blogger.com,1999:blog-32005942.post-78799549856040335462011-06-13T01:26:13.275+00:002011-06-13T01:26:13.275+00:00Hey - I am really happy to discover this. cool job...Hey - I am really happy to discover this. cool job!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-32005942.post-26785951904226492312011-06-10T16:53:05.844+00:002011-06-10T16:53:05.844+00:00Really good post!Really good post!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-32005942.post-53849896461133112732011-06-06T12:39:25.003+00:002011-06-06T12:39:25.003+00:00Hey - I am definitely delighted to find this. cool...Hey - I am definitely delighted to find this. cool job!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-32005942.post-67781606129090541952011-06-04T07:24:34.836+00:002011-06-04T07:24:34.836+00:00battery widget is open source at http://batterywid...battery widget is open source at http://batterywidget.googlecode.com just check it out and have a lookAnonymoushttps://www.blogger.com/profile/13384953816247059077noreply@blogger.comtag:blogger.com,1999:blog-32005942.post-10487287412279932972011-06-03T00:53:19.502+00:002011-06-03T00:53:19.502+00:00Hey man, sorry for comment on this post, but how d...Hey man, sorry for comment on this post, but how do you did the battery widget ? I want to do a music widget but i don't know nothing... It's to difficult ? Can I make in the App Inventor ? Thanks (:<br /><br />Sorry again for comment here, the post of the battery widget is very old.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-32005942.post-22327084730834463532011-05-31T11:26:17.332+00:002011-05-31T11:26:17.332+00:00good point, code updated as appropriate, thanks.good point, code updated as appropriate, thanks.Anonymoushttps://www.blogger.com/profile/13384953816247059077noreply@blogger.comtag:blogger.com,1999:blog-32005942.post-90770667967177678312011-05-30T17:12:57.919+00:002011-05-30T17:12:57.919+00:00Do not write this way:
if(android.os.Build.VERSIO...Do not write this way:<br /><br />if(android.os.Build.VERSION.SDK_INT>=11)<br /><br />this is unlean and bit cryptic (now you know what 11 is, but later?). Good programmers :) would write this way:<br /><br />if(android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB)<br /><br />which make this line perfectly self-explanatory. The only "disadventage" is that you need to set your project's target to at least Honeycomb to have HONEYCOMB constant defined.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-32005942.post-5755594028211171482011-05-26T23:31:03.087+00:002011-05-26T23:31:03.087+00:00Hi - I am certainly happy to find this. great job!...Hi - I am certainly happy to find this. great job!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-32005942.post-18359241440698749992011-05-24T18:12:25.267+00:002011-05-24T18:12:25.267+00:00Thanks Weeds, I'd seen that before as well, in...Thanks Weeds, I'd seen that before as well, infact I was a little surprised to see it didn't throw on 2.0+ and is the reason I chose reflection to start with. But as I'm using the WallpaperManager I'm only targeting 2.0+, so it seems like a reasonable case for version checking instead.Anonymoushttps://www.blogger.com/profile/13384953816247059077noreply@blogger.comtag:blogger.com,1999:blog-32005942.post-30740407653555996982011-05-24T18:05:51.322+00:002011-05-24T18:05:51.322+00:00You may still need to use reflection if you want t...You may still need to use reflection if you want to be compatible with Android 1.6 or 1.5.<br /><br />On these versions loading the class containing Honeycomb (or Froyo/Eclair) functions will throw a java.lang.VerifyError.<br /><br />You can verify this on the emulator, and I've seen this happening on the HTC TattooWeedshttps://www.blogger.com/profile/13543271082024050355noreply@blogger.comtag:blogger.com,1999:blog-32005942.post-65925316104111494452011-05-24T14:34:21.696+00:002011-05-24T14:34:21.696+00:00Thank you WarGoth, you are right and I've upda...Thank you WarGoth, you are right and I've updated the post accordingly.Anonymoushttps://www.blogger.com/profile/13384953816247059077noreply@blogger.comtag:blogger.com,1999:blog-32005942.post-35470399326818362992011-05-23T17:06:17.711+00:002011-05-23T17:06:17.711+00:00Thank you for the post. I learned about compatibil...Thank you for the post. I learned about compatibility mode :)<br /><br />Couple of notes.<br /><br />- View.STATUS_BAR_HIDDEN is a constant, which means it will be substituted in compile time and value will be available for any android version<br />- v.setSystemUiVisibility() can be hidden from incompatible SDKs using any version check condition.<br /><br />Thus you can avoid using reflections and improve readability of the code.<br /><br />Look forward part twoWarGothhttps://www.blogger.com/profile/10671825184284438092noreply@blogger.com