Articles

Tutoriel android : code source d'integration d'une barre de navigation (navigation drawer) dans une activité android

Image
  Ce tutoriel vous permet d'apprendre à ajouter un navigation drawer à travers un NavigationView dans un DrawerLayout dans votre activité Android. Cet article contient une vidéo qui vous explique comment integrer une barre de navigation au niveau d'un empty activity. La vidéo contient des détails qui vous permettent d'apprendre comment cette intégration s'effectue. Le code source xml et java se trouve en dessous de la vidéo. Tout d'abord nous devons mettre en place trois fichier xml dans le dossier layout de notre projet et nous devons aussi ajouter un dossier menu sous notre dossier Res. Nous devons aussi ajouter un fichier portant le nom de menu_main.xml sous le dossier menu. Le premier fichier c'est celui qui représente l'interface principale de notre activité et il porte le nom d'activity_mail.xml : <?xml version="1.0" encoding="utf-8"?> <androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://sche

Privacy policy : smart contacts manager application

  Houssem Lahiani built the  smart contacts manager  app as a Free app. This SERVICE is provided by Houssem Lahiani at no cost and is intended for use as is. This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service. If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy. The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at   smart contacts manager  unless otherwise defined in this Privacy Policy. Information Collection and Use For a better experience, while using our Service, I may require you to provide us with certain personally identifiable information. The information that I r

Privacy Policy : Tunisian Stroke Registry application

Houssem Lahiani built the Tunisian Stroke Registry    app as a Free app. This SERVICE is provided by Houssem Lahiani at no cost and is intended for use as is. This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service. If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy. The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at  Manage Clinic Smartly  unless otherwise defined in this Privacy Policy. Information Collection and Use For a better experience, while using our Service, I may require you to provide us with certain personally identifiable information. The information that I re

Helper Class Android SQLiteOpenHelper SQLiteDatabase

import android.database.sqlite.SQLiteOpenHelper import android.database.sqlite.SQLiteDatabase import android.content.ContentValues import android.content.Context import android.database.Cursor class Helper (context: Context?):SQLiteOpenHelper(context,DATABASE_NAME,null,1) { override fun onCreate(db: SQLiteDatabase) { db.execSQL( "CREATE TABLE " + TABLE_NAME + "(" + KEY_ID + " INTEGER PRIMARY KEY, " + KEY_NOM + " TEXT," + KEY_VILLE + " TEXT," + KEY_LAT + " TEXT, " + KEY_LONG + " TEXT )" ) } override fun onUpgrade( db: SQLiteDatabase, oldVersion: Int, newVersion: Int ) { } fun addCentre(centre: Centre) { val db = this.writableDatabase val cv = ContentValues() cv.put(KEY_NOM, centre.getNom()) cv.put(KEY_VILLE, centre.getVille()) cv.put(KEY_LAT, centre.getLatitude()) cv.put(KEY_LONG, centre.getLongitude())

قواعد الخصوصية لتطبيق إستبيانات لسكان طينة

    Houssem Lahiani built the  إستبيانات لسكان  طينة   app as a Free app. This SERVICE is provided by Houssem Lahiani at no cost and is intended for use as is. This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service. If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy. The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at  Manage Clinic Smartly  unless otherwise defined in this Privacy Policy. Information Collection and Use For a better experience, while using our Service, I may require you to provide us with certain personally identifiable information. The information that I r

Tutoriel Android RecyclerView & CardView : code source avec explication

Image
  Le RecyclerView est un ViewGroup qui restitue n'importe quelle vue basée sur un adaptateur de manière similaire. Il est censé être le successeur de ListView et GridView. L'une des raisons est que RecyclerView a un cadre plus extensible, d'autant plus qu'il offre la possibilité d'implémenter des dispositions horizontales et verticales. Utilisez le widget RecyclerView lorsque vous avez des collections de données dont les éléments changent au moment de l'exécution en fonction de l'action de l'utilisateur ou d'événements . Si vous souhaitez utiliser un RecyclerView, vous devrez travailler avec les éléments suivants : RecyclerView.Adapter - Pour gérer la collecte de données et la lier à la vue LayoutManager - Aide au positionnement des éléments ItemAnimator - Aide à animer les éléments pour les opérations courantes telles que l'ajout ou la suppression d'éléments La vidéo suivante contient une explication simple et détaillée qui vous permet d'

Android Mini project and tutorial : create and manage SQLite internal databases with Room persistence library with Kotlin

Image
  In this tutorial we will learn how to work with the Android Room library to create and manipulate internal SQLite databases in our android applications. Previously, we were able to create our database and our tables and manage our data thanks to SQLiteOpenHelper and SQLiteDatabase classes. This meant entering a large amount of standard code to create and manipulate even a very small database. In addition, no compile-time verification of  SQL queries was possible. And if the database schema is modified, we had to update the affected SQL queries. But now with Jetpack libraries we have become able to create and manipulate our internal databases in more flexible ways thanks to Room library. The Room library provides an abstraction layer on SQLite, which allows more robust access to the database while offering all the power of SQLite. Room is an ORM, Object Relational Mapping library. In other words, Room will map our database objects to Java objects and provide an abstraction layer on SQ