Post has attachment
Create a Lock Screen Device App with Android Studio

Learn how to create a Lock Screen Device Application for Android with Android Studio. In that tutorial, you are going to learn how to lock your screen's device programmatically on Android. You will learn also how to get Device Administration permissions by using a dedicated XML policy file.

Let us know your thoughts and feedback on this Lock Device Application for Android tutorial in comments.

#LockScreen #LockDevice #Lock #Android #AndroidStudio #AndroidDev #Tutorial #XML

Post has attachment

Post has attachment
I shared some tips we used to reduce the size of our app by about 72%. Please check it out. Share it or clap for it if you find them useful. https://medium.com/dot-learn/how-we-reduced-our-app-size-by-72-c2471ba75954

Hello developer,

Is there any alternative to certificate pinning to prevent man in middle attack?

Post has attachment
Learn to create a Tic-Tac-Toe Game with Android Studio

Learn to create a Tic-Tac-Toe Game for Android with Android Studio with that tutorial. Tic-Tac-Toe is a paper and pencil game for two players, X and O, who take turns making the spaces in a 3x3 grid. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row wins the game.

In ou Tic-Tac-Toe Game, the computer will have a simple Artificial Intelligence. In a next tutorial, we will improve it by implementing the Min Max Algorithm.

Let us know your thoughts on this Tic-Tac-Toe Game tutorial for Android in comments.

#Tic-Tac-Toe #TicTacToe #Morpion #Android #AndroidDev #AndroidStudio #Tutorial #AndroidGames #IndieGames #GamesTutorial

Post has attachment

Post has attachment
Peter is building a mobile app which downloads a lot images from the web and displays them. The server provides different resolutions for each image, which comes in the following format:
{480, "url_for_w480"}
{768, "url_for_w768"}
{1280, "url_for_w1280"}
{1920, "url_for_w1920"}
The integer before the comma represents the width of the image (number of pixels), and the string after the comma is the URL to download this image.
Peter needs to find the image whose width is larger than the screen width of the mobile device. In case the device screen width is larger than all of the images’, the image of the highest resolution should be downloaded.
Click the link to read full article and code snippets.

Post has attachment
Memory Leak problem?

Here's a useful article that might help

Post has attachment

Easy way to save objects state on orientation change. Use Loaders.

Loaders, RecyclerView and Glide. Quick and easy! Get instant displays on changing orientation. No need to wait for downloading images and data again. No need to save lists, etc when the activity dies. It's all taken care of for you.

Check out these great articles on using Loaders.

https://medium.com/google-developers/making-loading-data-on-android-lifecycle-aware-897e12760832

http://www.androiddesignpatterns.com/2012/07/loaders-and-loadermanager-background.html

https://www.101apps.co.za/index.php/articles/loading-data-using-android-s-loaders.html

Happy coding!
Wait while more posts are being loaded