Was unaware of Resources.getDrawable(int) deprecation after SDK 22 until updating and getting the dreaded cross-line. For projects targeting lower APIs, ContextCompact.getDrawable(Context, int) of the support library was most appropriate and for other uses, the alternatives found in the Google+ post. More info regarding this:
-- Resources -- ContextCompat -- Android getResources().getDrawable() deprecated API 22 When generating a signed APK for an app using ProGuard with Play Services, I encountered this Issue 3001 preventing the APK from being generated due to errors being thrown up. The two possible workarounds seem to be: A. Add statements to proguard-project.txt -keep class com.google.android.gms.** { *; } -dontwarn com.google.android.gms.** or B. Add missing library back in: android { useLibrary 'org.apache.http.legacy' } Chose option A to avoid enlarging the APK size. Seems to be an issue with SDK 23 and 24 apparently, as it was updated yesterday. Awaiting fix. Experimenting with the new support library for a future app update, I was able to convert a basic button layout to a more user-friendly navigation drawer. It will be a nice change as this app was created nearly three years ago and targeting older Android versions. The conversion from activities to fragments was also surprisingly easily. Converting the old button-based main layout to Lollipop's new Material design CardView allowed preservation of the old, more traditional navigation in conjunction with the new nav drawer. Would've liked more customization and will look into that, but suspect that it is intentionally this way to maintain the uniformity of Material design.
* Edit - Seems to be fixed now with version 24 update. Still awaiting the fix for the odd bug with PagerTabStrip's titles not showing on first load until after swiping in version 23. Apparently, reverting back to the previous version may fix the issue, but seems a little troublesome to do so. androidcentral - The 'Stagefright' exploit: What you need to know
techradar - Google has lost control of Android, Stagefright and HTC highlight a really big security problem PCWorld - Android devices will soon run Windows software thanks to CrossOver and Wine PCWorld - Android malware hammers phones with unwanted ads, Kemoge malware lifehacker - This Graphic Explains How Much Time and Money It Takes to Develop a Mobile App |
AuthorExploring Android and mobile web design, security, and development. Archives
March 2021
Categories |