background preloader

Android

Facebook Twitter

To Allow Two Way Text Chat Over Bluetooth in Android. Retrofit, a Simple HTTP Client for Android and Java. Exchanging data between a mobile app and a backend server is an essential need for many development projects.

Retrofit, a Simple HTTP Client for Android and Java

Whilst the task became simpler with Google’s Volley library, it has a steep learning curve and Retrofit aims to make the task even simpler. Top 5 Android libraries every Android developer should know about — Infinum. Here is a selection of five of our favorite ones and a list of links where you can find others. 1.

Top 5 Android libraries every Android developer should know about — Infinum

Gson Gson is a Java library used for serializing and deserializing Java objects from and into JSON. A task you will frequently need to do if you communicate with APIs. We mostly use JSON because it’s lightweight and much simpler than XML. // Serialize String userJSON = new Gson().toJson(user); // Deserialize User user = new Gson().fromJson(userJSON, User.class); It also plays nice with the next library: How to Create Collapsing Toolbar Layout like Whatsapp in Android Application - Pulse7. Sign Up. MVP for Android: how to organize the presentation layer. MVP (Model View Presenter) pattern is a derivative from the well known MVC (Model View Controller), which for a while now is gaining importance in the development of Android applications.

MVP for Android: how to organize the presentation layer

There are more and more people talking about it, but yet very few reliable and structured information. Rooter Android - Passer root sur Android. Mise en garde.

Rooter Android - Passer root sur Android

Introduction aux tests Android avec Espresso. La pratique d'effectuer des tests, peu importe sa forme, n'est pas la plus répandue aussi bien pour les développeurs amateurs qu'expérimentés.

Introduction aux tests Android avec Espresso

Les raisons peuvent être diverses et variées. Pour les amateurs, ils préfèrent souvent apprendre le développement "standard" dirons-nous, alors que les professionnels n'auront souvent "pas le temps" dans le délai accordé par leur chef de projet. Android: Intent implicite. Displaying Bitmaps in Your UI. This lesson brings together everything from previous lessons, showing you how to load multiple bitmaps into ViewPager and GridView components using a background thread and bitmap cache, while dealing with concurrency and configuration changes.

Displaying Bitmaps in Your UI

Load Bitmaps into a ViewPager Implementation The swipe view pattern is an excellent way to navigate the detail view of an image gallery. You can implement this pattern using a ViewPager component backed by a PagerAdapter. However, a more suitable backing adapter is the subclass FragmentStatePagerAdapter which automatically destroys and saves state of the Fragments in the ViewPager as they disappear off-screen, keeping memory usage down. Note: If you have a smaller number of images and are confident they all fit within the application memory limit, then using a regular PagerAdapter or FragmentPagerAdapter might be more appropriate.

Maîtriser les Ressources de Type "string" et "plurals" Voici maintenant un petit moment que je rédige des articles en anglais.

Maîtriser les Ressources de Type "string" et "plurals"

Android Wear

Le Wi-Fi Direct, comment ça marche ?  Android MT. Bien que présent sur les téléphones Android depuis Gingerbread (2.3), le Wi-Fi Direct n’est pas encore entré dans les usages des andronautes.

le Wi-Fi Direct, comment ça marche ?  Android MT

18 Creative & Useful Ways To Use NFC Tags With Your Android Phone. Editor’s note: This post was originally published in October 2013 and has been completely updated and for accuracy and with more uses.

18 Creative & Useful Ways To Use NFC Tags With Your Android Phone

NFC (Near Field Communication) has been getting more attention by the media after becoming a technology for mobile payments and creative marketing. Most of the recent mobile devices support NFC, but most people don’t really know about or use it. The most practical, creative ways to use NFC with your Android device. NFC can be used for a lot more than just Google Wallet.

The most practical, creative ways to use NFC with your Android device

Grab your NFC tags and try these creative ways to use NFC. If you think NFC (Near Field Communication) is only good for Google Wallet or MasterCard PayPass, think again. With the growing number of NFC-equipped phones, NFC tags are becoming an increasingly popular way to take advantage of this sprouting technology. Thing is, Android users aren't quite sure what to do with them. Once you have a stack of NFC tags and have already learned how to program them , bookmark this page. For a quick refresher on NFC tags, watch the video below, then read on for some NFC tag inspiration. Android Police - Android News, Apps, Games, Phones, Tablets. Bluetooth. The Android platform includes support for the Bluetooth network stack, which allows a device to wirelessly exchange data with other Bluetooth devices.

The application framework provides access to the Bluetooth functionality through the Android Bluetooth APIs. These APIs let applications wirelessly connect to other Bluetooth devices, enabling point-to-point and multipoint wireless features. Hacked : un jeu de programmation sur mobile pour ceux qui aiment coder. Construire dynamiquement ses IHM Android. Étant donné qu'il n'y a pas de concept spécifique à assimiler pour construire dynamiquement des IHM à la volée. Le mieux est d'aller directement dans le code et d'expliquer celui-ci. Ce code provient du tutoriel « DynamicGui » disponible sur Android2ee.com à la rubrique « Exemples ».

L'application de cet exemple a pour objectif d'afficher la liste d'éléments dont la structure est la suivante : Où l'objet Message est le suivant : Les contraintes sont que la taille des listes est inconnue, seule la structure des données est connue par avance. Utilisation du web service SOAP sous Android. Un web service permet la communication et l'échange de données entre une application et un système.

Dans ce tutoriel, nous allons voir comment utiliser le web service SOAP sous Android. Getting Started with Android Studio. Before installing the Android SDK, you must agree to the following terms and conditions. Terms and Conditions This is the Android Software Development Kit License Agreement 1. Introduction 1.1 The Android Software Development Kit (referred to in this License Agreement as the "SDK" and specifically including the Android system files, packaged APIs, and Google APIs add-ons) is licensed to you subject to the terms of this License Agreement. Solutions & Astuces pour tablettes et smartphones AndroidAndroid MT.

How to create a Digital Clock on Android. Android analogclock and digitalclock example. In Android, the AnalogClock is a two-handed clock, one for hour indicator and the other for minute indicator. The DigitalClock is look like your normal digital watch on hand, which display hours, minutes and seconds in digital format. Both AnalogClock and DigitalClock are UNABLE to modify the time, if you want to change the time, use “TimePicker” instead. P.S This project is developed in Eclipse 3.7, and tested with Android 2.3.3. Java - Updating clock in Android. Prise en main de AirDroid 2, pour contrôler son Android à distance. Genymotion : un émulateur Android turbo pour PC.

Media Player

AVD. Providing GPS Coordinates Via the Eclipse Android Simulator. In most Android devices, your location-based or map applications can determine the current geolocation using either GPS (Global Positioning System), cell tower triangulation, or wifi networks. With regards to GPS, Eclipse provides a tool to simulate coordinates in a way that mimics real-life usage. It's called the GPS Emulator Control. The tool features a Dalvik Debug Monitor Server (DDMS) that can be utilized to send your device or emulator a mock location, which is useful for testing different aspects of your application's location specific features without physically moving.

In today's article, we're going to learn how to utilize the Emulator Control to provide GPS coordinates to your Android device or the built-in simulator using several different methods. Geo Positioning in Eclipse The android.location package contains the classes required to determine the current geo position. Eclipse's Emulator Control Panel contains location controls for each type. Resources.openRawResource() question Android.