background preloader

Tutoriels

Tutoriels
Récemment Google a annoncé la sortie du SDK Android Wear en preview. Android Wear est le prochain gadget Google dans le domaine des montres connectées. Dans cette première partie du tuto, je vais expliquer comment obtenir un accès à cette preview et créer un petit exemple sur Android Wear (création du projet, création de la notification et de boutons). 1 – Pré-requis Pour avoir accès à la preview du SDK, [...] Voici la suite du tutoriel sur le NavigationDrawer, vous trouvez la première partie ici : (Le projet utilisé sur ce tuto correspond à celui réalisé lors du tuto précédant) Cette partie abordera : La gestion du clic sur les différents éléments d’un NavigationDrawer La gestion de l’ouverture et la fermeture du NavigationDrawer lors du clic sur l’icône de l’application située sur l’ActionBar Le NavigationDrawer est un élément permettant de naviguer dans une application Android. Bonjour à tous!

HttpURLConnection An URLConnection for HTTP (RFC 2616) used to send and receive data over the web. Data may be of any type and length. This class may be used to send and receive streaming data whose length is not known in advance. Uses of this class follow a pattern: For example, to retrieve the webpage at URL url = new URL(" HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection(); try { InputStream in = new BufferedInputStream(urlConnection.getInputStream()); readStream(in); finally { urlConnection.disconnect(); } } Secure Communication with HTTPS Response Handling HttpURLConnection will follow up to five HTTP redirects. Posting Content For example, to perform an upload: HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection(); try { urlConnection.setDoOutput(true); urlConnection.setChunkedStreamingMode(0); OutputStream out = new BufferedOutputStream(urlConnection.getOutputStream()); writeStream(out); Performance HTTP Methods

Fragment - Aller plus loin dans le développement Android ListFragment Tout comme les activités, il existe un fragment « générique ». Il peut inclure des listes, des écrans de préférences et toutes les vues du framework Android pour constituer des portions d’interfaces. Par la suite, elles pourront être réutilisées plusieurs fois dans les écrans de l’application finale. Pour expliquer en profondeur tous ces concepts, une explication détaillée des fragments est donnée dans la suite de ce chapitre. Introduction aux fragments Qu’est ce qu’un fragment ? Les fragments ne sont pas simples à comprendre. En temps normal, une application est destinée à être exécutée aussi bien sur les smartphones que sur les tablettes, et peu à peu sur les télévisions connectées. Par exemple, le propriétaire d'un blog pourrait légitimement vouloir développer sa propre application pour offrir une alternative mobile à ses lecteurs. Ce genre de chose est possible grâce aux fragments ! Le cycle de vie des fragments Les activités sont régulées par un cycle de vie. Résultat final

Android Development Tutorial - 3/12 - New Think Tank How to Make Android Apps 10 In this few parts of my Android tutorial I’ll focus on a Android Fragment Tutorial. I’ll start off slow here by showing you how to switch fragments based on screen orientation, which is very commonly used. I’ll specifically cover the basics of fragments, layout... How to Make Android Apps 9 In this part of my Android tutorial I will focus on Android Styles and Themes. How to Make Android Apps 8 In this tutorial we take it to the next level. How to Make Android Apps 7 In this tutorial we’ll start making a useful Android unit conversion app. How to Make Android Apps 6 In this tutorial I’ll show you how to fix Android Studio errors that you guys are having trouble with. How to Make Android Apps 5 In this tutorial I’ll show you how to create multiple Android Activities and then how you’d go about passing data between Android Activities. How to Make Android Apps 4 In this video tutorial I will cover how to make menus and dialog popups. Make an App and Win a Phone

Android Web Apps Using Android WebView An Android web app is an application that uses the Android WebView component to render part of the Android app's GUI. The WebView component is a full-fledged browser implemented as a View subclass so you can embed it inside your Android app's GUI anywhere you like. It is common to let the WebView take up most of the screen space, but you can also just let the browser take half the screen or whatever partition that suits your app. Android Web App or Android Hybrid App? Calling an Android app that uses a WebView internally for an Android Web App may sound a bit misleading, since the app is actually a mix of a native Android app and a web app. Another common term for an Android web app is Android Hybrid App. WebView is Based on Chrome From Android version 4.4 (Kitkat) the WebView component is based on the same code as Chrome for Android. Before Android 4.4 the WebView was based on the internal Android browser, but Chrome is replacing the old Android browser as the default / built-in browser.

Getting Started: WebView-based Applications for Web Developers Getting started with the Android WebView is fairly simple, whether you want load a remote URL or display pages stored in your app. This tutorial walks you through creating a new Android Project, adding a WebView, loading a remote URL, and then loading a local HTML page. Note: This tutorial assumes you're a developer with limited or no experience with the Android development environment, but have some experience with Java. If you're already familiar with programming for Android, you may want to refer to to Building Web Apps in WebView on the Android developer site instead. When the installation completes, Android Studio launches and displays the welcome screen. To create a new project: Click New Project.On the next page, enter your application name, package name and target SDKs, and click Next. You now have a new Android project. Note: After you have your project created, make sure you have the KitKat SDK installed. A few of the more import folders are identified in the picture:

Android Facebook Connect Tutorial This tutorial is about integrating facebook into your android application. I am going to explain various steps like generating your application signature, registering facebook application, downloading facebook sdk and other steps. Here is an official documentation of facebook integration. Generating App Signature for Facebook Settings To create facebook android native app you need to provide your Android application signature in facebook app settings. Open your command prompt (CMD) and run the following command to generate your keyhash. check the following command how i generated hashkey on my pc. Registering your Facebook Application After generating your app signature successfully, register your facebook application by going to create new facebook application and fill out all the information needed. and note down your facebook App ID Creating Facebook Reference Project 1. 2. Creating Your Facebook Connect Project 1. 2. Now our project setup is done. 3. 4. 5. Login to Facebook Account

Related: