Android Studio Shortcuts (Boost Productivity)
Using shortcuts can speed up development significantly. Here are essential ones:
✅ Navigation & Editing
Ctrl + N
(Windows/Linux) /Cmd + O
(Mac) – Open ClassCtrl + Shift + N
/Cmd + Shift + O
– Open FileCtrl + Alt + L
/Cmd + Option + L
– Format CodeShift + Shift
– Search Everywhere
✅ Code Assistance & Debugging
Ctrl + P
/Cmd + P
– Parameter InfoCtrl + Q
/Cmd + J
– Quick DocumentationF8
– Step Over (Debugger)F7
– Step Into (Debugger)
✅ Build & Run
Shift + F10
– Run AppShift + F9
– Debug AppCtrl + F9
/Cmd + F9
– Build Project
Firebase for Backend (Key Features & Setup)
Firebase provides a powerful backend solution without needing full-stack infrastructure.
🚀 Key Features for Android Apps
Firestore Database – NoSQL cloud database for scalable apps.
Authentication – Easy setup for login via email, Google, or social accounts.
Cloud Functions – Run server-side logic without managing servers.
Push Notifications – Firebase Cloud Messaging (FCM) for real-time alerts.
✅ How to Set Up Firebase in Android Studio
Go to Firebase Console and create a project.
Add Android app (
com.example.myapp
) and downloadgoogle-services.json
.Add Firebase SDK dependencies to
build.gradle
.Initialize Firebase in your app’s code:
javaFirebaseApp.initializeApp(this);
ADB Debugging Tricks (Advanced Device Debugging)
ADB (Android Debug Bridge) lets you interact with Android devices directly.
✅ Essential ADB Commands
adb devices
– List connected devices.adb install myapp.apk
– Install an APK.adb uninstall com.example.app
– Remove an app.adb logcat -s "TAG"
– Filter logs for debugging.
✅ Advanced Debugging
Screen Recording:
bashadb shell screenrecord /sdcard/video.mp4
Capture Bug Report:
bashadb bugreport bugreport.zip
Reset App Data:
bashadb shell pm clear com.example.app