Title: 10 Simplest Mistakes That Can Crash Your App!
1(No Transcript)
21. EXCLUDING INTENTS
Intents are one of the key components in app
development. It helps in passing data between
parts of an app and between different apps on the
system. Suppose you have a gallery app with the
ability to share a download link to images
through SMS. When you do not use intent, you
have to write your code for sending the SMS.
32. EXCLUDING FRAGMENTS
- Fragments are sort of like separate building
blocks. They have their complex life cycles
existing within an Activity. They come in handy
when you have to optimize apps for use on
different screen sizes. The parent activity of
fragments can easily manage them, reuse them,
and position them at will. They are needed to
keep all elements loaded, and they prevent
over-usage of memory.
43. BLOCKING THE MAIN THREAD
The main thread keeps the user interface
responsive. It is responsible for controlling the
speed of the app and making it work smoothly.
The science behind measuring the frame rate and
how our brains and eyes perceive it is complex
and is affected by many factors.
54. WRITING NEW CODE FOR EVERYTHING
Do not go overboard and start writing your code
for everything that comes your way. Do not write
your code to communicate with the server in the
background thread. The most common things that
you do in an app include but are not limited to
social login, JSON parsing, database access,
image loading, and network calls. These are the
most common functions in every app in the market.
65. POOR BITMAP USAGE
Users love content that looks nice and is
well-formatted. Images are one of the best
content in an app due to their ability to convey
more than a thousand words. The only drawback
images have is that they consume too much memory.
Before displaying images on the screen, the app
loads them in the memory.
76. POOR MEMORY MANAGEMENT
- Poor memory management is one of the most crucial
reasons for crashing an app. Memory management
includes the number of threads an app might be
using for a specific task. Using too many
threads means taking up a huge chunk of memory
resources. The problem can also arise if the
device has more than a couple of apps running in
the background
87. SOFTWARE LIFECYCLE
- App development is a repetitive process with a
consistent series of frequent releases. This
process allows apps to get to the market with a
minimum viable product (MVP) that can be
improved over time as its users increase. This
new process comes with its own set of issues
related to third-party Application Programming
Interface (APIs) and the operating system.
98. IMPROPER NETWORK MANAGEMENT
- Network management has become particularly
noteworthy because apps are increasingly
depending on network access for third-party
services or data. The most common reason for an
apps crash is responsiveness. When the app
starts hanging as the user submits something or
is trying to get some information, the apps
unresponsiveness frustrates the user.
109. EXCEPTION HANDLING AND ERROR CODE
Errors are inevitable due to the complexities of
mobile app development. Complications can come
from anywhere, like a memory issue that was not
detected previously, a sudden change in API, or
a network problem that disturbs the connectivity
delaying the transmission of videos and images.
1110. NOT ENOUGH TESTING
App developers know the importance of testing the
app before its launch. Testing the app can be
challenging due to the plethora of OS versions in
the market. Simulators can help in testing the
app on different versions of the OS, but they
might not give similar performance limitations.
12Thank You!
For Complete Blog https//www.techieapps.com/10
-most- common-mistakes-that-will-crash-your-
app/? utm_sourceSocialutm_mediumTrafficut
m_campaignSR