I decided to write about some issues I faced when I started building Android apps 3 years ago, and some others I have seen some new Android developers go through. Feel free to drop yours in the comment section.
And you try to explain that you have to properly switch to fragments for things to be swipe-able.
Tip: I think one of the best things you can do is to always use fragments and just have your activities host them. The activities just handle Android ancient traditions. You get several benefits by doing this. Well, this is not a rule, just one to avoid this issue.
Tip: Depending on your workflow, it’s usually a good practice to try to create a release version frequently and not wait for months until the project is complete. This allows you to test your app in release mode and easily detect issues while the code base is still small.
Another good practice is to always look for library’s Proguard rules when you are adding them to your project. Add any required rules for a library and it should work fine with Proguard.
Tip: It will take a complete post to provide some help here. Usually, you just observe the old code and write some tests to ensure nothing breaks, before you start refactoring. Trust me, except its a priority or a personal project, you do not want to rebuild everything from scratch.
Tip: You can set up your project to automatically upload your Proguard mappings file to Firebase crash service. You can read more about it here.
Tip: First you need to build something people actually want, then you market it like there is no tomorrow. When I complete the current project in the Building Android Apps series, I will write about building products that people actually want.
The app won’t just market itself. You spent 500 hours building it and you can’t afford to spend a few dollars and about 100 hours just promoting it?
Tip: This is a good and a bad thing. The good thing is you have improved so much in the past 3 months that you now see your own mistakes. The bad part? Nothing really serious. You just grew in 3 months and will most likely not make the same mistake.
Tip: There is some official tutorial on speeding your project build time.
Tip: Easy solution, integrate a crash reporter like Crashlytics and you will be able to see the issue on your console/dashboard. There are some obvious places to look too, like checking Proguard or some release only code. It’s just easier to use a crash reporter to pinpoint the issue. BTW, you shouldn’t be releasing any app without a crash reporter tool.
Tip: You can request for the API data structure from the backend developers and then create a mock product flavor with some mock data that you can work with. Sometimes this doesn’t end up well and you still have to do lots of changes to use the real APIs.
Tip: Play your best song and dance. You have worked hard for this and it’s paying off.
Just make sure you don’t lose focus or start throwing expensive parties (Please invite me if you do).
Continue building awesome apps that people love, remember: