Professional Documents
Culture Documents
Web Languages
Python
C++
Java
Ruby
MySQL
Hack
Affiliates
Home Java Mobile Top 10 Mistakes That Developers Make While Programming their Apps
Search
2016-03-26 No Comments
991
Harikrishna Mekala
Android and iOS are two rapidlydeveloping platforms and there is huge demand for the developers who does the
programming on this platforms in order for your to become one you need to avoid these mistakes.
Imagine.
Build.
Launch.
Android. Whats not to like about this platform? Its free, its customizable, its rapidly growing and its available not just on
your phone or tablet, but on your smartwatch, TV and car too.
With the latest Nupdate, Android programming continues to improve. The platform has matured quite a bit since the
initial AOSP release, and set the user expectations bar quite high. Look how good the newMaterial design pattern looks!
There are thousands of different devices, with different screen sizes, chip architectures, hardware configurations, and
software versions. Unfortunately, segmentation is the price to pay for openness, and there are thousands of ways your
app can fail on different devices, even as an advanced Android programmer.
Regardless of such huge segmentation, the majority of bugs are actually introduced because of logic errors. These bugs
are easily prevented, as long as we get the basics right!
TRY IT FREE
Heres an Android programming tutorial to address the 10 most common mistakes Android developers make.
Dont get me wrong, Im not an Android programming evangelist! I respect every platform that moves the mobile world a
step forward. But, its 2016 and users have been using Android for quite a while now, and theyve grown accustomed to
the platform. Pushing iOS design standards to them is a terrible strategy!
Unless there is a super good reason for breaking the guidelines, dont do it. (Google does this all the time, but never by
copy-pasting.)
Here are some of the most common examples of this Android mistake:
1.
2.
3.
4.
5.
You should not be making static tabs, and they dont belong on the bottom .
System notification icons should not have color.
App icons should not be placed inside a rounded rectangle (unless thats your actual logo ex. facebook).
Splash screens are redundant beyond the initial setup/introduction. Do not use them in other scenarios.
Lists should not have carets.
SUBSCRIBE
These are just a few of the many other small things that can ruin the user experience.
HackingNews&Tutori...
1,451,394likes
Liked
Youand17otherfriendslikethis
Write your own code for sending SMS using the SmsManager .
Explain to your users why your gallery app needs access to services that can cost money, and why they have to grant
this permission to use your app.
Option 2:
Start an SMS Intent and let an app designed for SMS do the work
<code>IntentsendIntent=newIntent(Intent.ACTION_VIEW);
sendIntent.setData(Uri.parse("sms:"+telephoneNumber));
sendIntent.putExtra("sms_body",x);
startActivity(sendIntent);
</code>
Share
Launching a separate activity for each app screen is terribly inefficient, since the system will try to keep them in memory
as long as it can. Killing one wont free the resources used by the others.
Unless you want to dig deep into the Android core and read this article, advocating against fragment usage, you should
use fragments whenever possible. It basically says that fragments and cursor loaders have good intended purpose, but
poor implementation.
This was so common in Android 2.x, that on newer versions the system wont let you make network calls in the main
thread.
To avoid blocking the main thread, always use worker/background threads for: 1. network calls 2. bitmap loading 3.
image processing 4. database querying 5. SD reading / writing
What do we get with this approach? A warning that nested weights are bad for performance.
There is a saying in the Android programming world, that I just made up: With little effort all hierarchy can be flattened.
In this case RelativeLayout or GridLayout will efficiently replace the nested LinearLayouts .
Wrap Up
Android is a powerful platform that evolves quickly. It may not be reasonable to expect users to keep up the pace, but its
crucial for the Android developers to do so.
Knowing that Android is not just on our phones or tablets is even more important. Its on our wrists, in our living rooms, in
our kitchens, and in our automobiles. Getting the basics right is of utmost importance before we start expanding.
Take your time to comment on this article.
Related
991
RELATED
Create your own chat box
2015-05-06 0
2016-03-15 0
2016-03-07 0
EMAIL AUTHOR
I do the work I do because I love it. I like the industry. I like the people I meet. I like to talk shop.
I embrace the nerd. I like to make the web a better place. Hopefully we cross paths in the real
world someday and we can make it a better place together.Author at CodingSec