Skip to content

Instantly share code, notes, and snippets.

@imralpharvin
Created September 13, 2020 19:40
Show Gist options
  • Save imralpharvin/3049cca048890965d6e1a317e090aaa3 to your computer and use it in GitHub Desktop.
Save imralpharvin/3049cca048890965d6e1a317e090aaa3 to your computer and use it in GitHub Desktop.
Android Studio

Android Studio

Starting a project

Creates xml and java files

  • Java - code
  • Xml - visual component
  • Java folder - main code
  • Res folder - folders for visuals
  • Res/values - import
  • Manifests folder - for emulator

Constraint Layout

  • Drag and drop elements
  • Constraint to parts of screen

Main Java code

findViewById(R.id.xx) - gonna be used a lot

Event listeners

AlertDialog

Progress Dialog

DialogInterface

  • Do things with dialogs

Intent

  • abstract description of an operation to be performed.

Activity

AsyncTask

  • enables proper and easy use of the UI thread.

Bundle

  • used to pass data between activities.

Loader and loader manager

  • performs asynchronous loading of data.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment