Android Development Tips For iOS Devs
stuartkhall.com
Android Development Tips For iOS Devs
1–10 of 78 posts
Re: Android Development Tips For iOS Devs
#2This is very well documented.
Re: Android Development Tips For iOS Devs
#3With its "native" emulator, yes, but there are better alternatives like Genymotion. Giving up on them is not good development advice.
Re: Android Development Tips For iOS Devs
#4Yes, but if it's something like a ListView, don't put offset in array there, because the views are recycled (when user scrols), so you're likely to end up with corrupted data. I got bitten by this in the beginning. You can go to great lengths to prevent this from happening, but it will be hard for a reason, because that's abusing the design principles.
I'd recommend reading up on the ViewHolder pattern in this context.
Long story short: cache all the references to all specific sub-views of the row view in the tag (so you don't have to retrieve them again and again) - that's good practice. Just don't store any position-specific data in it.
Watch http://youtu.be/wDBM6wVEO70?t=9m50s - very informative
Re: Android Development Tips For iOS Devs
#5[0] http://software.intel.com/en-us/android/articles/intel-hardw...
Re: Android Development Tips For iOS Devs
#6You can get a pretty responsive emulator if you use an x86 ABI and HAXM[0]. [0] http://software.intel.com/en-us/android/articles/intel-hardw...
Re: Android Development Tips For iOS Devs
#7Re: Android Development Tips For iOS Devs
#8You can get a pretty responsive emulator if you use an x86 ABI and HAXM[0]. [0] http://software.intel.com/en-us/android/articles/intel-hardw...
Re: Android Development Tips For iOS Devs
#9* Do not use getBaseContext() like he does when he created the new Activity. Use getApplicationContext for most things (unless an Activity is required) as this is guaranteed to be the same throughout the lifetime of your application.
* For log alternatives, checkout Timber by Jake Wharton (https://github.com/JakeWharton/timber)
* I would suggest using the Build.VERSION_CODES when making the check against which version of android the device is (http://developer.android.com/reference/android/os/Build.VERS...)
Re: Android Development Tips For iOS Devs
#10You can get a pretty responsive emulator if you use an x86 ABI and HAXM[0]. [0] http://software.intel.com/en-us/android/articles/intel-hardw...