Category: Android

android development

Don’t forget the lifecycle of the Android Activity!

I just wanted to jot down a basic memo about Android’s lifecycle. Because I easily forget and that it is one of the crucial concept that you should know as an Android developer. Activity lifecycle If you are an Android developer, you should definitely know that the Android Activity has a “life cycle”, the lifetime of Activity. It is the flow from birth (until… Read more →

android development

Make basic Android fragments

Flexible UI construction Today, I wanted to show you how to make a simple UI with fragments (in Java)! So when designing applications that support a widescreen area, it is useful to reuse fragments as different layouts that are configured in a form suitable for the user experience based on the available screen space. For example, on a palm-sized device,… Read more →

android development

Using Android FileProvider for sharing files

Recently, I was making an android app and needed to implement a function that allows the user to attach a text file to gmail. Everything seemed so simple. But I found myself unable to find the solution. It took nearly 24hours searching over the web and finally found the solution. What was the solution ? It is called the  FileProvider!… Read more →