background preloader

Package Index

Package Index
Related:  OOP

How To Set Up ADB/USB Drivers for Android Devices (Updated 12/13/11 So most people won’t have to use ADB (Android Debug Bridge) ever, but if you want to learn how or want to get a little more technical with your Android phone, here’s how to get it set up. What is ADB & Fastboot? ADB is generally used for development when trying to run applications on the phone from the computer so you can debug (hence the name) issues with your app you are creating. Let’s be real though, most of the time, it’s used for rooting Android devices. Since ADB allows you to communicate with an attached Android phone on a development level it’s extremely handy when we want to issue commands that allow us to, for example, push files to the device and then execute those files all in an effort to root the phone. Fastboot is similar to ADB in that it’s used for issuing commands to the attached device, but in fastboot mode it’s really more for flashing different parts of Android (i.e. updating the system with a newer version, erasing all the user data, etc.). I. 1. 2. 3. 4. 5. 6. 7. . .

Common Layout Objects A layout defines the visual structure for a user interface, such as the UI for an activity or app widget. You can declare a layout in two ways: Declare UI elements in XML. Android provides a straightforward XML vocabulary that corresponds to the View classes and subclasses, such as those for widgets and layouts.Instantiate layout elements at runtime. Your application can create View and ViewGroup objects (and manipulate their properties) programmatically. The Android framework gives you the flexibility to use either or both of these methods for declaring and managing your application's UI. The ADT Plugin for Eclipse offers a layout preview of your XML — with the XML file opened, select the Layout tab. The advantage to declaring your UI in XML is that it enables you to better separate the presentation of your application from the code that controls its behavior. Tip: Learn more about different layout types in Common Layout Objects. Write the XML Load the XML Resource Attributes Figure 1.

Introduction au SDK Android Afin de pouvoir compiler les projets du SDK Android, il est nécessaire d'avoir l'outil Ant (version 1.6.5 ou plus pour Linux et Mac, version 1.7 ou plus pour Windows) ou l'IDE Eclipse (version 3.2, 3.3 plus le plugin ADT) installé sur votre système. Pour commencer, il est nécessaire de créer un projet Android. Pour cela il suffit d'utiliser le script activityCreator ( pour Linux/Mac, activityCreator.bat pour Windows) fournit par le SDK auquel ont indique le nom du projet (via l'option --out) ainsi que sa classe principale. --out HelloWorld Un répertoire portant le nom du projet (ici HelloWorld) est alors créé. AndroidManifest.xml : Le fichier manifest de l'application. build.xml : Un fichier xml pour compiler avec Ant. res : Le répertoire des ressources. src : Le répertoire des sources. src/com/developpez/android/ : La classe HelloWorld. Voici le fichier généré : Sélectionnez

SDK Before installing Android Studio or the standalone SDK tools, you must agree to the following 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. 2. 2.1 In order to use the SDK, you must first agree to this License Agreement. 3. 3.1 Subject to the terms of this License Agreement, Google grants you a limited, worldwide, royalty-free, non-assignable, non-exclusive, and non-sublicensable license to use the SDK solely to develop applications for compatible implementations of Android. 3.2 You may not use this SDK to develop applications for other platforms (including non-compatible implementations of Android) or to develop another SDK. 4. 5. 6. 7. 8. 9. 12. 13. 14. • Index page Getting Started with Flash Develop and AS3 Introduction: <div style="padding:15px; background-color:#EEEEEE; border:1px solid #C3C3C3; padding-top:0px"> I wanted to make a really easy to follow tutorial on how to get started using the Flash Develop and Actionscript 3.0. FlashDevelop, is a .NET open source editor for Flash and web developers. I personally have recently switched to FD and am very impressed by the results, much faster workflow and project management. So this tutorial will to do things: quickly walk you through a typical FD installation and then how to compile your first application. Please note: Flash Develop is WINDOWS ONLY! Requirements: <div style="padding:15px; background-color:#EEEEEE; border:1px solid #C3C3C3; padding-top:0px"> Java 1.6+ (Download) Microsoft.NET 2.0 Runtime (Download) * Flash Player 9 Debugger (Download) * Flex SDK 3.0 (Download) <br><sub>* Included in Tutorial Files</sub> </div> Instructions: Explanation: Sample Project Notes: Directory Structure: Whats Next? Related Forum Posts

HowToUse - ksoap2-android - Find out how to use this library in your Android application - A lightweight and efficient SOAP library for the Android platform. My favorites ▼ | Sign in Project Home Downloads Wiki Issues Source Comment by, Apr 8, 2011 nice :) Comment by sow... great Comment by xianglon... I'd like it,thanks Comment by project member mosa... It is all in the m2-repo folders. Comment by sa... In Addition to the above comment after adding the reference the following error is given : "Conversion to Dalvik format failed with error 1" - Removing the library and cleaning the project does not fix this problem instead I have to delete the project and start again. Comment by sa... Problem fixed, for anyone else getting this make sure to read this line carefully : To download a file from there, right click on "View raw file" and select "Save Link as" (this label differs for different browsers) and you will get the full jar downloaded. Download th file any other way and you will get the "Conversion to Dalvik format failed with error 1" error. Comment by JRL... Thanks Samuel Comment by project member mosa... Comment by mone741...

Création d'une boussole Ce tutoriel a pour objectif de vous permettre de créer une boussole. Celle-ci réagira en fonction de l'orientation de votre téléphone, pourvu que votre mobile soit muni d'une boussole numérique. Outre le résultat final, l'intérêt majeur de ce tutoriel est d'aborder la création d'une vue et son animation. Nous allons ainsi aborder les principes de bases nécessaires à la création et l'animation d'une vue personnalisée, mais également les manipulations élémentaires d'un canevas sous Android. I-A. À la fin de ce tutoriel, vous obtiendrez la boussole ci-dessus. I-B. Ce tutoriel a été compilé avec la version 1.5 du SDK, et le code utilisé reste inchangé jusqu'à (au moins) la version 2.1 du SDK. Dans cette partie, nous allons présenter uniquement la création de la vue de la boussole. II-A. Notre classe CompassView devra être capable d'afficher une boussole pointant son aiguille vers le nord. II-B. Sélectionnez onMeasure; onDraw. II-B-1. II-B-2. <? II-B-2-a. II-B-2-a-i. IV-A. V-A.

Application Fundamentals Android apps are written in the Java programming language. The Android SDK tools compile your code—along with any data and resource files—into an APK: an Android package, which is an archive file with an .apk suffix. One APK file contains all the contents of an Android app and is the file that Android-powered devices use to install the app. Once installed on a device, each Android app lives in its own security sandbox: The Android operating system is a multi-user Linux system in which each app is a different user. By default, the system assigns each app a unique Linux user ID (the ID is used only by the system and is unknown to the app). In this way, the Android system implements the principle of least privilege. However, there are ways for an app to share data with other apps and for an app to access system services: It's possible to arrange for two apps to share the same Linux user ID, in which case they are able to access each other's files. App Components Activities Services <? Activities

Learn Android : Android Layout Tutorial An Android layout is a class that handles arranging the way its children appear on the screen. Anything that is a View (or inherits from View) can be a child of a layout. All of the layouts inherit from ViewGroup (which inherits from View) so you can nest layouts. The standard Layouts are: AbsoluteLayoutFrameLayoutLinearLayoutRelativeLayoutTableLayout In this article we will examine each of these layouts in detail. I have also created a demo project that uses the code samples from this tutorial and from the Lots of Lists: Part 1, Simple List Activity tutorial. Next: AbsoluteLayout Test your application - Make Me Droid, free online Android application builder. Test your application When your application is ready and generated, you have the following choices: Publish the application directly on the Android Market (Google Play), if you have signed it.Test the application on your Android phone, if you have one.Test the application on the simulator that we provide you. The following chapters focus on using the simulator in a few easy steps: Simulator download.Launching the simulator from your PC.Connect to Make me Droid mobile website.Download and install your application. Alternatively, you can also use your own mobile phone to test your app. In this case, you can skip the simulator topics and directly read the Connect to Make me Droid mobile website paragraph. Simulator download Download the Android simulator using the link below. Launching the simulator Uncompress the ZIP simulator file using your favourite unzipper. Connect to Make me Droid mobile website Use your login information to connect to your account. Download and install your application

Welcome to Android | Android Open Source

Related:  developmentAndroidandroidAndroid ResourcesANDROIDAndroidTechnologycompilingandroidandroid