Author Archives: s.saurel - Page 24

How to programmatically take a screenshot in Android ?

Today, a snippet to present you how to programmatically take a screenshot in Android. You can take screenshot of a particular View and its children but in our case, we would like to take a screenshot of the entire window. So, we must to get the root view of the window thanks to following calls in an Activity : View v…
Continue Reading
Android

How to implement a Splash Screen in Android ?

Implementing a splash screen in Android is a redundant question among beginners. With that tutorial, we’re going to see that it’s very easy to implement a splash screen with just some lines of code. Before to continue, it’s important to understand that splash screen is not a recommended design pattern in Android. However, you can implement if you want and…
Continue Reading

How to use Shared Preferences in Android ?

Android provides several options for developers to save persistent application data. The solution you choose must depend on your specific needs. In this article, we are interested in Shared Preferences that let you to store private primitive data in key-value pairs. Entry Point of this solution is SharedPreferences class. It provides a general framework that allows you to save and…
Continue Reading
Articles

What are differences between px, dp and sp in Android ?

Today, a brief reminder about Android dimensions. When you create the UI layouts of your application, you're used to define dimensions with units like dp (density-independent pixels), dip or sp (scale-independent pixels). Other units supported are pt (points), px (pixels), mm (millimeters) and in (inches) where as this second kind of units is not recommended because not independent from devices…
Continue Reading
News

Q3 2014 Smartphones sales : Samsung and Nokia continue to fall, Huawei and Xiaomi continue to grow !

Gartner has just revealed Smartphones sales for Third Quarter of 2014. Globally, sales of Smartphones in Emerging Markets exhibited highest growth ever, while Western Europe continued to decline. Besides, Samsung lost market share while top three Chines manufacturers combined smartphone market share grew by 4 percentage points ! 1. Worldwide Smartphone sales to End Users by Vendor in Q3 2014…
Continue Reading
Android

Implement a Gesture Detector in Android

In modern applications, manage users’ gestures is an essential feature. It brings a better interactivity between your application and users. Implement a Gesture Detector to create a view flipper in Android is very simple and we’re going to make it quickly. Follow the guide. Android SDK provides a GestureDetector class available in package . GestureDetecture detects various gestures and events…
Continue Reading
Articles

How to monetize an Android application ?

For each developer, monetize an application is the big question that should be prepared during conception of an application. Indeed, it’s the best moment to take decision about business model for an application. Several models are possible : Paid model. Users pay one time for your application and after that it’s over. No more revenue. Subscription model. Users pay each…
Continue Reading
Java

Learn how to make a Swing painting and drawing application

In this video tutorial, you're going to learn how to create a Swing painting and drawing application. Main goal is to learn how to draw in 2D in Java Swing component. Tutorial has a Youtube live coding video and also some explanations here with source code. Don't hesitate to give me your feedbacks and comments.   Video is here :…
Continue Reading
Contact

About

All 4 Android is a blog about Android, Java and Technology news. Don't hesitate to send me an email : You can also follow my Youtube channel to get free tutorials about Android or Java development. I have also a Twitter channel that lets you know all informations about Android and Technology each day : @ssaurel To end with social networks, you can…
Continue Reading