Skip to Main Content
Build a Recipe Android App with Oracle Backend for Firebase

About This Workshop

Youtube Video

About This Workshop
In this hands-on workshop, learners build RecipeShare, an Android app powered by Oracle Backend for Firebase. Starting from a starter Android Studio project, participants connect the app to a local Oracle Backend for Firebase environment, configure the generated fusabase-config.json, run the app in the Android Emulator, and implement the core backend features modern mobile apps need: authentication, real-time database reads, authenticated writes, photo upload, and security rules. The workshop focuses on practical SDK integration in AuthRepository.java and RecipeRepository.java, while the app’s fragments, layouts, navigation, and models are pre-built.

Workshop Info

1 hour, 30 minutes
  • Introduction
  • Review the RecipeShare Android app architecture, learning objectives, prerequisites, estimated workshop time, and the end-to-end flow: create a Fusabase project, connect the Android app, add auth, read/write recipe data, upload photos, and secure the backend.
  •  
  • Lab 1: Create Your First Project
  • Use the Oracle Backend for Firebase console to create a project and publish starter database and storage rules.
  •  
  • Lab 2: Connect the Android App
  • Clone the starter project, open it in Android Studio, register an Android app, add fusabase-config.json, update ords_host to 10.0.2.2 for the emulator, sync Gradle, and run the app.
  •  
  • Lab 3: Authentication
  • Implement sign-up, sign-in, sign-out, and auth state listening in AuthRepository.java using FusabaseAuth.
  •  
  • Lab 4: Read Recipe Data
  • Use real-time snapshot listeners to stream recipes into a RecyclerView, filter by category, listen to recipe details and ratings, and clean up listeners with ListenerRegistration.remove().
  •  
  • Lab 5: Write Recipe Data
  • Create new recipe documents stamped with the authenticated user’s uid and email, then add ratings to each recipe’s ratings subcollection.
  •  
  • Lab 6: Photo Upload
  • Use the Android Photo Picker, upload recipe images to Fusabase Storage with putBytes, fetch the download URL, and save it back to the recipe document for display with Glide.
  •  
  • Lab 7: Security Rules
  • Implement recipe editing, observe why permissive rules are unsafe, then add owner-based database rules and authenticated storage upload rules.
  •   - Android Studio Ladybug 2024.2.1 or later
  •   - JDK 17; Android Studio includes a compatible JDK
  •   - Android Emulator system image, preferably API 34 or 35
  •   - Basic familiarity with Java, Android Studio, and Android app structure
  •   - Runs on macOS, Windows, or Linux, anywhere Android Studio runs

Other Workshops you might like

Other Workshops you might like Cards