Install your Flutter game on an Android phone
Flutter track. Build one APK file and install it straight onto their Android phone. No store listing, no account, and it plays without internet.
Levels: Novice, Moderate, Advanced. Last checked: not yet on a phone (due Oct 14–16).
Course buyers: this guide is also lesson 8.7 Install the Flutter app on their phone (Flutter only).
What you'll get: your game installed as an app on their Android phone, with its own name under the icon, that plays even without internet. The game isn't published anywhere: the app file goes to the phone by cable or Nearby Share. (Sending it through a cloud drive uploads the app, photos included, to that drive for a while; delete it there afterwards.) (Made a web game? Use Netlify Drop instead.)
Before you start: the Pixelora Flutter app runs on your own phone already (course lesson 7.4). Your AI assistant open in the Flutter app folder. Their Android phone, or a way to send them a file. About 10 minutes.
Noviceevery step, one path
1. Give the app its name
The app is called "pixelize_game" under its icon until you rename it. Replace [APP NAME] with a short name (it shows under the icon, so 12 characters or so), then paste:
In this Flutter app, set the Android app name shown under the icon to "[APP NAME]" (and the iOS display name too). Only change the app's name settings, nothing else.You should see: the assistant changes the label in the Android settings (and the iOS one) and tells you so.
2. Build the installable file
Replace [PROJECT FOLDER] with the path to your Pixelora project (for example ../biscuits-big-day),
then paste:
Copy my latest Pixelora game from [PROJECT FOLDER] into this Flutter app with "dart run tool/sync_project.dart [PROJECT FOLDER]", then build a release APK with "flutter build apk --release" and tell me the full path of the app-release.apk file. Don't change game.json or my photos.You should see: after a few minutes, a path ending in
build/app/outputs/flutter-apk/app-release.apk. That one file is the whole app.
3. Get the file onto their phone
Pick one:
- USB cable: plug the phone in, choose File transfer on the phone, copy the APK into Download.
- Nearby Share / Quick Share from your own Android phone, if you have one.
- A cloud drive you control (Google Drive, Dropbox): upload, open the link on their phone, download. Delete the upload afterwards.
You should see: app-release.apk in the phone's Files app (in Downloads).
4. Install it
- On their phone, open Files → Downloads → tap
app-release.apk. - Android says it can't install unknown apps from this source. Tap Settings, turn on Allow from this source, then go back and tap Install.
- If Play Protect warns about an unknown app, choose Install anyway: it's your app, not from the store.
- When it's installed, go back to Settings and turn Allow from this source off again.
You should see: your app's icon with its new name on the home screen. Tap it: the start screen appears, even in airplane mode.
If something looks wrong
- If you see "App not installed": an older version with the same id is on the phone. Uninstall it first, then install again.
- If the phone shows no install button: "Allow from this source" is off for the app you opened the file with (Files, Chrome, Drive). Turn it on for that app.
- If the app shows an old version of the game: the copy step was skipped. Paste the step 2 prompt again and reinstall.
Moderatemore control
A custom icon. Put a square PNG (1024 × 1024, made in the editor or by you; your assistant never draws it) in the Flutter folder, then ask: "Use [ICON FILE] as the app icon for Android and iOS with flutter_launcher_icons, and change nothing else."
Google Play internal testing. No side-loading for them. Two things first, because Google Play rejects the template as it is. Your own app id: the
template's applicationId (in android/app/build.gradle.kts) is shared by every Pixelora game, and a
Play package name can only ever belong to one app, so change it to one under a name you own (for
example com.yourname.giftgame); it can't be changed after the first upload. Release signing: the
template signs release builds with the debug key, which Play doesn't accept. Create an upload key and
a release signing config first (Android app signing,
or ask your assistant: "Set up release signing for Android with an upload keystore and
key.properties, keep the keystore and passwords out of version control, and change nothing else").
Keep the keystore and its passwords safe: every later update must be signed with the same key. Then: a Google Play developer account (one-time
fee), create the app, upload an app bundle (flutter build appbundle) to the Internal testing
track and add their Google account email as a tester. They install it from the Play Store link. The
app stays off the public store. Google Play keeps the uploaded app, photos included, on its servers and
checks it; only your testers can install it.
Advanceddo it yourself
Signing. flutter build apk --release uses the template's debug signing unless you add a release
keystore; for anything beyond side-loading to family, set up a proper key (key.properties).
iPhone instead? See Flutter on iPhone (TestFlight).
Using Codex, Gemini CLI or Antigravity?
- Codex / Gemini CLI / Antigravity: same prompts. The release build can take several minutes; if
the assistant stops it early, run
flutter build apk --releaseyourself in the Flutter folder.
How to take it down
On their phone, long-press the app icon → Uninstall (or App info → Uninstall). If you shared the APK through a cloud drive, delete it there too.
Before you share
Do these four checks before you send the link to anyone:
- Open the link in a private window (or incognito). The start screen appears and the game plays. If you set a password, it asks for it first. (Installed an app instead? Open it once with the phone in airplane mode.)
- Test it on a phone, and if you can, on the kind of phone the person you made it for has.
- Make sure the game page isn't listed in search (web links only; an installed app isn't
online). A few days after publishing, search the web for your game's address: the game page
shouldn't show up. It asks search engines not to list it (a
noindextag), but check anyway. This covers only the game page: on GitHub Pages, the public repository behind it can still be found on GitHub (see that guide's warning). - Know how to take it down. Read the "How to take it down" steps above and find the button before you need it.
Only share the link with people you trust, and only with photos of people who are happy to be in the game. Anyone who has the link (and the password, if there is one) can see the photos in it.