Discover and read the best of Twitter Threads about #AndroidDev

Most recents (24)

I thought of doing open source but android studio had other plans 🥹 Image
Shit!! looks like opensource would remain a dream for me. 🥲 Image
It's been hours.🫤
#androidstudio #androiddev Image
Read 15 tweets
❌ Since Nov 1 2022 (a week before), the jCenter has officially been down. That means all the Android and Java libraries available on jCenter are not accessible. This is going to affect your Android projects compilations. Here's what you need to do 👇🏼

#AndroidDev
First look for that particular library on Github and check if any newer version has been made available on Maven Central or Jitpack. If yes, upgrade the version and use that in your apps and you are good to go.
But, if library is too old and it's not been updated or maintained in years by creator, then Jitpack is the saviour here. Jitpack.io has created a cached version of jcenter artifacts. You only need to change the coordinates in your projects.
Read 5 tweets
As a programmer, I work out five times each week to boost my coding skills.

Here’s why you should too.
Most people think of coding as a sedentary activity, but the truth is it requires a lot of mental and physical stamina.

After all, coders need to be able to concentrate for long periods while sitting in front of a computer screen.
They also need to have the dexterity to type quickly and accurately.

As a result, many coders are turning to strength training as a way to improve their coding abilities.
Read 7 tweets
Thanks so much to those that joined the #AndroidDev space today. If you missed it, the recording is available right now!

Here’s a list of tools and content I talked about that you can look into to make your apps more secure 🧵
1. John Hammond

While not necessarily mobile security focussed, John's content on YouTube highlights security techniques and vulnerabilities in such an engaging way, that it made me want to dive into the mobile security space

youtube.com/c/JohnHammond0…
2. LiveOverflow

Again, despite not being mobile-focused, LiveOverflow's content makes for really compelling viewing. His recent deep dives into 'Hacking Minecraft' are particularly interesting

youtube.com/c/LiveOverflow
Read 13 tweets
How does the Kotlin Multiplatform work?

A thread 🧵

Please do retweet for max reach 🙏

#AndroidDev #Kotlin #iosdev
First, we write the shared code in Kotlin. For Android, it gets converted to the Java bytecode that can be executed in the JVM. So, Android already has a Virtual Machine(VM) that is easily capable of running it.
But what about iOS, how can it run Kotlin? Can we do it without the Virtual Machine(VM)? Have you ever wondered how it works?

For iOS, Kotlin code must be converted to the source code(native code executable on iOS) that goes inside the framework. That source code works on iOS.
Read 12 tweets
In my previous job, I had the chance to rebuild and relaunch an app 100% Compose + Kotlin Multiplatform.

Here are the top insights, for good or bad, from top of my head.

Follow the thread. 🧵

#AndroidDev #Compose #Kotlin
1. After years of XML, Compose is refreshing for the Android ecosystem. It allowed us to build beautiful UI and amazing animations. If you aren't sure about using Compose: yes, Compose is production ready.
2. Compose is not as mature as the View System. You will need to use experimental APIs, and a few times go out of your way to find a solution. That includes wrapping a View inside a Composable.
Read 18 tweets
I've held #AndroidDev interviews for the past two years now and I've seen all sorts of candidates, from good, to not so good. 👨‍💻

Here are the top 7 mistakes candidates did and that I think you should avoid 🧵
🚩Not being able to describe the need or justification for using a technology or library.

Had countless of applicants with solid codings skill that used LiveData or ViewModel but had no idea what these tools do for you.

Some thought that LiveData isn't lifecycle aware. Big 🚩
🚩 Overcomplicating implementations

We had candidates coming up with overly abstracted solutions that were so tough to understand. Generics and base classes over base classes, a maze

Remember, you're writing code to solve a problem - you're not writing a cipher. Keep it simple!
Read 9 tweets
How does the Voice And Video Call Work?

This tweet is all about how the voice and video call works on a high level.

Continued in this thread 🧵 [Follow the thread below] 👇

#AndroidDev #Kotlin #Android #Developer
Both voice and video calls depend on how we stream media between the two clients who are connected to each other. So, there must be something that can do the work of media streaming from one client to another client.

For media streaming, we need to know about WebRTC.
WebRTC is a free, open project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Read 16 tweets
So I've been hearing some good things about @nextjs for some time, and seeing only enhanced it. Also I'm bored, and (arguably?) have some free time, so I'm going to try to remake my blog (with 1 whole post) in next.js just for fun. Let's #Frontend!
To give some context, my only exposure to frontend development is from developing a couple #AndroidDev apps 3 years ago, and I have no experience with JS and hardly any familiarity with HTML/CSS (except making my @firefox look sexier with custom CSS) #BackendDevFrontends
HMB while I spend the next 4 hours setting up and customizing the Ultimate Development Environment™️ for Next.js for 10X productivity™️ #Developer #productivity
Read 19 tweets
Why an Android App lags?

A thread 🧵

I will start with the following statement:

Garbage Collector: The TAX on Android App Performance

#AndroidDev
The main reason for the low-performance Android App is that it runs GC very frequently.

Simple in one line: The time for which GC is running the actual app is not running.
When the app runs, it allocates many objects on the basis of your code, and when the objects are no longer referred to, the system call GC when there is memory pressure to deallocate those objects, so if the object allocation and deallocation are occurring on regular basis.
Read 10 tweets
#AndroidDev Recipe: How to cook "complex" UI logic in a #JetpackCompose project? 🧑‍🍳

Solution: Type-safe reducer using Kotlin magic 🪄

🧵 Thread
Ingredients:

1️⃣ useCompose's react module which has useReducer hook
2️⃣ Create a data class to hold the state
Read 10 tweets
#100DaysOfCode #AndroidDev #JetpackCompose

📲 100 días de código para Android Devs: Día 8

🟢 Jetpack Compose en Android
🔸 Es un hecho que hacer UI al estilo Android era de las cosas más difíciles y retadoras para un Mobile Developer.

💙 Y es de reconocerse que esfuerzos como React Native o Flutter han apoyado este proceso de hacer que la construcción de UI sea cada vez más sencilla y eficiente.
El problema de UI de Android va más allá del hecho de solo usar xml, en realidad si vamos a fondo las cosas se tornan obscuras cuando analizas el árbol de jerarquías entre Views.
El simple hecho de tener Herencia implicada hacía que los componentes no pudieran escalar por sí solo
Read 8 tweets
#100DaysOfCode #AndroidDev

📲 100 días de código para Android Devs: Día 7

🟢 Android y las Bases de Datos
En una aplicación móvil existen vario "niveles" de perisistencia de datos.

🍃 Volátil que persistirá mientras la aplicación está abierta.
🔄Local que persistirá mientras la app esté instalada
☁ En la nube que trasciende aunque desinstales la aplicación.
Cada uno tiene un nombre más técnico que podría acercarse a esto:

🍃 Volátil podrían ser tus variables
🔄 Local podrían ser desde un archivo hasta una base de datos
☁ Nube por ejemplo una REST API
Read 7 tweets
At @squareeng we ran our Android benchmarks with the MacBook Pro M1 Max and it performed 65% faster than the MacBook Pro with Intel chip from last year! More details in the thread.

#AndroidDev #MacBookPro #Benchmarks
Many companies shared that they're equipping all their engineers with M1 laptops due to the better performance, but I barely could find any numbers how much better they are.
Last year we decided to buy iMacs for all mobile engineers within Square, because they were 30% faster than the MacBook Pros with Intel chip. You can read more about our benchmarks here: developer.squareup.com/blog/measure-m…
Read 12 tweets
Curios about Compose but haven’t had the chance to look into it? 🤔

Here’s a collection of 12 core Composable functions used to build UI!

🧵Thread 👇

#indiedev #JetpackCompose #Android #AndroidDev #DEVCommunity #coding
1. Text Composable

You can use the Text composable to display text. You can use the style argument to define things like TextDecoration or FontFamily.

It's similar to the TextView in the classic Android View system.
2. Image Composable

Image is used to display images. It’s similar to an ImageView in the classic Android View system.

You can use painterResource to load an image from the resources.
Read 13 tweets
15 essential topics you should know when starting out as an #AndroidDev:

🧵Thread 👇

#indiedev #JetpackCompose #Android #100DaysOfCode #DEVCommunity #coding Image
1. Learn Java first and then Kotlin.

Kotlin is the best choice as the code is compact and less verbose than Java.

But start with Java as it's essential for your professional portfolio. Java is your core dev language. Only when confident with Java, one should jump into Kotlin! Image
2. Start from the official resources

Don't directly jump into tutorials. Check out the official courses:
developer.android.com/courses

Or codelabs:
codelabs.developers.google.com/?cat=Android

Then you can search for third party courses for more advanced topics
Read 16 tweets
How does Voice And Video Call Works?

This tweet is all about how the voice and video call works on a high level.

Continued in this thread 👇 [Follow the thread below]

#AndroidDev #Kotlin #Android #Developer
Both voice and video calls depend on how we stream media between the two clients which are connected to each other. So, there must be something that can do the work of media streaming from one client to another client.

For media streaming, we need to know about WebRTC.
WebRTC is a free, open project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Read 16 tweets
Android App Release Checklist For The Production Launch

Continued in this thread 👇 [Follow the thread below]

#AndroidDev #Kotlin #Android #Developer
Add analytics to your Android application.
Turn off logging and debugging.
Read 21 tweets
15 Github repos that you must check out as an #AndroidDev:

🧵Thread 👇

#indiedev #JetpackCompose #Android #100DaysOfCode #DEVCommunity #coding
1. Android Guides
Updated guides and learning materials on core topics on Android.

github.com/codepath/andro…
2. Google Architecture components samples

Awesome resource for those who want to explore how Android architecture components should or could be used.

github.com/android/archit…
Read 16 tweets
I guess this will be one of the best topics to restart my blogging.
And, there is something more K-oming. So, keep following the thread.

#Kotlin #Backend #Ktor #AndroidDev

himanshoe.com/kotlin-for-bac…
I told you, something more is K-oming
The next blog in the series is about getting started with @JetBrainsKtor, Understanding Routing, and building your own APIs.

& again, more to come keep following

#Jetbrains #Ktor #Kotlin #KotlinBackend #AndroidDev

himanshoe.com/kotlin-backend…
As the next part of the series, we have to understand routing and different ways to implement it.

In this blog, I am helping you understand all you need to know about routing in @JetBrainsKtor .
himanshoe.com/routing-in-ktor
Thanks @theDroidLady @n8ebel for reviewing.
#Kotlin
Read 3 tweets
#Flotlin
I'm starting this thread to explain @kotlin Flow🌊. Let's deep dive into Kotlin #Flow together🧑‍💻. Stay tuned with this thread.😎
#KotlinFlow #AndroidDev
#Flotlin 1

What is Flow?🤔
👉 A cold asynchronous data stream that sequentially emits values and completes normally or with an exception.

See this example:
pl.kotl.in/IPQaFgRTC?them…

#Kotlin #KotlinFlow Image
#Flotlin 2 - `map`
- `map` operator can be used on the upstream flow.
- It returns a downstream flow for further operations.

Try it here ⌨️: (Kotlin Playground)
pl.kotl.in/-EaVmBx8L?them…

#Kotlin #KotlinFlow Image
Read 18 tweets
1/16 With the release of #AndroidStudio 4.0 beta 1, I think it's time for a quick recap on what's available in AS 4.0 in the Design Tools, in the spirit of the thread I wrote back in September, with the first canary of 3.6.

Spoiler alert: we added *many* more features…
2/16 First of all -- we continued to iterate on previously released features: dynamic module support in the navigation editor, support for ConstraintLayout Flow in the Layout Editor, improvements in the Resource Manager, DnD, etc.
3/16 I will highlight a small but meaningful change in the Split View UI introduced in 3.6 -- it should be easier to discover now :)
Read 16 tweets
1/11 We just released #AndroidStudio 3.6 canary 10 -- and we added some neat tweaks to the design tools in those latest canaries that you may want to check! (and also, we would *love* to get feedback on ^_^)

developer.android.com/studio/preview

#AndroidDev #Android #AndroidDesignTools
2/11 Note that while canary releases are great to see the latest -- it's bleeding edge :) and you may encounter issues. If so, please file them on issuetracker.google.com (under Android Studio > Design Tools), so that we can make sure to fix them!
3/11 Back to those new features -- First, we now allow you to very easily (and quickly!) switch the way you can edit your XML layouts. Simply toggle between the three buttons on the top-right of the panel :)

#AndroidDev #Android #AndroidDesignTools
Read 11 tweets
About to present Draw me a Rainbow: advanced VectorDrawable rendering. Watch live: 📹🔴 ✏️🌈
Tint vectors with theme colors to use a single asset on differently themed screens.
Fill or stroke individual paths with theme colors so that drawables adapt to the current theme.
Read 11 tweets

Related hashtags

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!