💻 Code Companion AI for Android Studio, Shared Element Transitions & More - Android News 2024

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys and welcome back to a new video and a new episode of Philips Android news this is the format where I go over all the most important changes of the past month that affect us Android developers summarize them here in a digestible format for you so you only need to watch this once a month to know what changed what is important and what might make sense to focus on a little bit more in detail and this episode is for May 2024 in which I will summarize everything that happened back in April and I can already say there are some pretty cool changes in this episode and before we get started just a little reminder that until Sunday you can still get 25% discount on all my courses and bundles including the new one which teaches you all fundamentals about software and Android development Link in this video's description so as a first topic for this episode of Android news we have the first beta of Android 15 that is available so in the past Android news episodes I went over the first two developer preview versions of Android 15 and now the first beta version was released to the public or at least to us developers and this new beta version again brings some cool new changes first of all starting from Android 15 edge to edge is Now the default what is edge to edge well edge to edge means that your app content will be shown behind the system Bars by default normally we have our system bar at the top where you see all your notifications and normally the apps content is cropped so that it is not shown behind that system bar unless you explicitly configure it that way that was possible with the set de system Windows function but starting from Android 15 it will be the default what does that mean for you that means you need to deal with that of course because if you would for example just include a text on your layout by default without any further setup then it would be hidden behind the system bars and in order to properly deal with that you either need to use the appropriate material three composable which just calculate in that offset or you get into so-called window insets so those can be used to actually retrieve these offsets to apply them to your composes and therefore also have a UI that looks decent and does not uh get hidden behind the system bars then the next change that Android 15 brings is that apps can now be archived so that means if users have specific apps they don't use very frequently they can now archive these apps so the app and the caches of this app is deleted but the user data is kept so user data would for example be things you store in sh preferences or a local room database so that is kept that is relevant for the user when they might reinstall the app so they can just resume wherever they left and this will also be possible to do from within a specific app so if you maybe code some kind of cleanup app which allows users to just clean up resources on their device to delete apps to Archive apps to maybe uh clear the devices Ram or so then you can now also request the new permission request delete packages in order to Archive installed apps another very cool change that comes with Android 15 is that we now have an inapp profiling API and this I think is pretty cool when you want to get some additional analytics when it comes to debugging weird behavior on your app so maybe you know the profile which we have an Android Studio which lets us inspect the apps memory usage and then also inspect that at very specific time frames to to see maybe which objects consume how much memory in our app which memory allocations might cause big problems in our code at a very specific time and all that was possible but only from within Android Studio so you had to run your app you had to connect the profile and then gather that data while your apps process is running within Android Studio but that will start to be possible as an inapp feature so without needing Android Studio you can still collect things like Heap dumps from your app at a specific time and then save these into a local file on your device and maybe send these to your analy I servers or so and the last change regarding Android 15 that I consider Worth to be talked about is that there will be some more restrictions regarding starting activities from the background so that already started with Android version 10 I think where Google started to make it harder to launch activities from the background maybe if you're running a service in your app and tried to launch a specific activity from within that service and now they announced that there will be more such restrictions just in order to prevent malware from launching malicious activities but at this point Point Google is not very open regarding in how far it will be restricted more so that maybe the next Android news episode will show if you already want to try this new Android 15 beta then you can of course do that on the One Hand by installing the Android 15 emulator image which is the most straightforward way and the easiest way to get to this new version or you can also download it online and install it on any pixel device if you have one so that is also an option if you want to try it on a real device next up there are very cool new changes announced for Android Studio jellyfish jellyfish is currently not stable but it will be the next Android studio version after iguana which is currently the stable version and it seems like we will get a very close integration of AI of Gemini Pro into Android Studio so in an earlier video I already went over Android Studio's new studio bot which is pretty much a chbt integrated inside of Android Studio which at this point really sucked to be honest and from what I've heard still sucks but that is only one part that will be integrated in end Studio by default starting from jellyfish so that AI assistant just allows you to ask Android questions um to provide context to your codebase directly so really just like an embedded chat GPT you can think of running on the Gemini Pro AI from Google but what I'm actually more excited about is that we will get AI code completion or rather an AI code companion so something like GitHub co-pilot but from Google and directly integrated inside of Android studio and this AI code companion again similar to GitHub copilot will try to predict what type of code you're actually typing and then allows you to easily autocomplete that at this point I have no idea how good that will be I've heard from people using such AI code companions like co-pilot who really like them and really use them for their day-to-day work and I've been hearing people who only complain about these companions uh because they introducing more issues than they actually sld so that only the stable version will show but I'm very excited about that and what's maybe interesting to mention about this AI companion and especially this AI you can ask questions that might always be a little bit of a problem when you're maybe working in a company or as a contract ctor and you sign an NDA so you are not allowed to share specific code with external servers like the server running behind the Gemini Ai and Android Studio will not by default provide context to your coach to this AI companion but if you want so you can grant it and you can even add a new AI exclude file which is comparable to G ignore where you specify which files the AI should not actually take as a context reference and should not scan and therefore also not send to their servers all right that's it about the new thing about jellyfish but there is more to come as a next change I want to talk about something we compos lovers have all been waiting for for a very long time we finally have sheared element transitions in Jetpack compose in the official version no library is needed except for the normal composed animations one so with shared element transitions you can just animate the transition from one screen to another if they share some type of element like an image to make it transition into maybe a bigger image that is still the same on the second screen and if you want me to inspect this library for you and make a tutorial about it then let me know that in the comments and last but not least a change I would like to talk about and that is a coton multiplatform related change that from now on in coton multiplatform we now have a jetpack view model so everybody who tried coton multiplatform before knows the struggle when we try to share UI State mapping logic which we usually put in a view model on Android between IOS and Android that was possible there were some libraries but it always felt really hacky but now with this official new library from jet brains directly we can use jetpack view model so this will work on Android just out of the box and we can share the code in our cotton multiplatform shared section this is experimental for now it is in Alpha and the docs from jet PRS also say that this will work out of the box for Android and desktop but on iOS and web you will need to provide some factories in order to create these view model references but nevertheless I think KMP is actually going into a very promising Direction definitely is something I'm looking forward to much more than flut because we Android developers in the end will be able to build two apps that work out of the box only very minimal individual code for each platform and that individual code that we have can be written natively directly in our code base without any ugly plugins like on flutter so if you also want me to make a tutorial about that new jetpack view model 4km let me know that down below as well all right and this was it for this month's episode of Phillips Android news but soon there will actually be Google IO in May so that is a yearly event by Google where they announce a lot of new changes for Google products including Android of course so depending on what will be announced there I might make a special episode for that so thank you for watching again 25% discount down below first link this will expire on Sunday and then all my courses bundles and new Course prices will rise again and not be discounted anytime soon happy learning thanks for watching and I wish you an amazing rest of your week see you back in the next video bye-bye
Info
Channel: Philipp Lackner
Views: 15,059
Rating: undefined out of 5
Keywords:
Id: 3FWV5-A-otU
Channel Id: undefined
Length: 9min 13sec (553 seconds)
Published: Wed May 01 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.