Récupération de sources

Vous pouvez soit travailler en mode collaboratif sur des projets « open source », ou récupérer dans votre environnement les développements en les faisant évoluer sans contribution de la part de l’auteur.

Pour ce faire, il existe l’excellent site https://github.com. Une fois inscrit, vous pouvez réaliser un « fork » d’un environnement de développement, ou downloader un zip (il est nécessaire d’être loggé (de posséder un compte)).

Pour ajouter une librairie java à un projet :

  1. Download the library to your host development system.
  2. Create a new folder, libs, in your Eclipse/Android project.
  3. Right-click libs and choose Import -> General -> File System, then Next, Browse in the filesystem to find the library’s parent directory (i.e.: where you downloaded it to).
  4. Click OK, then click the directory name (not the checkbox) in the left pane, then check the relevant JAR in the right pane. This puts the library into your project (physically).
  5. Right-click on your project, choose Build Path -> Configure Build Path, then click the Libraries tab, then Add JARs…, navigate to your new JAR in the libs directory and add it. (This, incidentally, is the moment at which your new JAR is converted for use on Android.)

Note: Some JAR files require certain Android permissions to run properly. For example, if the library contacts the network, it would require network permission to run. See the specific SDK documentation for details about what the library requires in terms of configuration details.

Dans le buld path il peut être préférable de placer en 1er la nouvelle librairie

Si il n’y a pas de.JAR alors créer une class par .java

Laisser un commentaire

Ce site utilise Akismet pour réduire les indésirables. En savoir plus sur la façon dont les données de vos commentaires sont traitées.

Articles récents
Commentaires récents
fatima dans Bienvenue !
AdminDroid dans Bienvenue !
fatima dans Bienvenue !
Archives
Catégories