~/talk

From Idea to IDE: Developing Plugins for Android Studio

Talkat DroidKaigi 2024 · 2024-09-11..09-13· [developer-experience, android]
name:Ahmed Ali
links:none on file
slides:none on file

A working Android Studio plugin is built that adds a context menu item Document this code, sends the selected Kotlin element to Gemini AI via a Ktor client, and writes back generated documentation and refactored names using the IDE refactoring APIs, proving the approach works in a live demo. It uses the new Plugin SDK 2.0, Project Structure Interface (PSI) to read elements, actions to register the UI, services with a service scope and coroutines to switch between background work and EDT while respecting read/write locks.

AI-written summary · about

  1. 0:00Android Studio plugin intro
  2. 1:03What to build a plugin
  3. 2:27Plugin types
  4. 3:54Plugin project setup
  5. 5:18Understanding plugin.xml and configuration
  6. 7:03Add interactive actions
  7. 8:30Action update logic
  8. 10:14Code analysis with PSI
  9. 11:45BSI files explained
  10. 13:32Add language support
  11. 13:53Services and dependency injection in plugins
  12. 15:37App and project services
  13. 16:41Threading in IDEs
  14. 18:09Coroutines dispatchers
  15. 20:20Background tasks with coroutines
  16. 21:01Plugin development recap
  17. 21:22Live plugin demo
  18. 23:30Plugin UI options
  19. 26:18Compose UI considerations
  20. 27:01Learning resources
  21. 28:07Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.