Skip to content

Archive for

23
Jul

Scientists want to send wind-powered robots to Jupiter


An icy moon with hidden oceans would of course require an underwater probe, but what about gas giants with no solid surface to land on or water to swim in? A team of NASA JPL scientists believes the answer lies in robots that can float in the atmosphere for extended periods of time, without depending on wings, motors or hot air balloons. The scientists call them “windbots,” machines that can harness the power of the wind on Jupiter and the other gas giants, since it’s not ideal to send solar- or nuclear-powered robots to the outer planets.

The researchers want to design robots that can be powered by turbulence, in particular, which they describe as “wind that’s frequently changing direction and intensity.” Lead researcher Adrian Stoica says that’s similar similar to how some wristwatches can be wound by shaking them. Stoica and his team were recently awarded $100,000 by NASA’s Innovative Advanced Concepts (NIAC) program, and they plan to use that money to create a model for testing. If they manage to conjure up a model that works, windbots can also be used here on Earth in the future to monitor turbulent weather conditions like hurricanes.

Filed under: Robots, Science

Comments

Source: NASA

23
Jul

Hollywood’s making at least one emoji movie


Dear parents who can’t wait for their kids to be over the Minion craze: Hollywood’s already planning for the green critters’ replacement in your children’s lives. And, if you’re unlucky, these new characters might even be more obnoxious than Gru’s banana-loving henchmen*. Sony Pictures Animation has won an auction for a story pitch starring those yellow ideograms or smileys we all know as “emojis.” Yep, there’s going to be an emoji movie, according to Deadline, which also reported that two other studios competed against Sony at the auction for the right to turn the story into a full-fledged film.

Studios are probably keen on the idea of making an emoji movie, considering there are no royalties to pay, and they can be easily turned into toys and other money-making merchandise. Deadline unfortunately doesn’t have any deets about the film itself, other than it was pitched by Anthony Leondis who directed Lilo & Stitch 2 and will be co-written by TV producer Eric Siegel. The publication also said that another emoji story will soon be shopped around, so there might be more than one smiley movie in the works for the next couple of years. At least one of ’em is bound to be good, right?!

*Disclosure: This editor personally loves Minions, but she knows they drive some people crazy.

[Image credit: Michelle Lai Lai/Flickr]

Filed under: Misc, Sony

Comments

Source: Deadline

23
Jul

Shell’s UK petrol stations let you PayPal at the pump


Shell's Fill Up and Go

Although Apple Pay is currently enjoying the limelight, companies all over Britain are working to get their own mobile payment strategies in order. Once such company is Shell, which after months of testing has begun rolling out its new PayPal-powered “Fill Up & Go” service across hundreds of its UK petrol stations. The idea is simple: download the Shell Motorist app, connect it to your PayPal account and scan a giant QR code at the pump — no more queuing or worrying whether you’ve brought your wallet.

To set up the service, you’ll need either an iPhone or an Android device. Once the app is installed, you’ve set up your PIN and linked your PayPal account, head to your nearest Shell petrol station (the company says it will roll out on a pump-by-pump basis) and choose how much you think you’ll spend filling up your tank. Shell’s official guidance states that you can choose between £20 and £150 per transaction, although the app lets you to start as low as £5 and spend up to £100.

In order to reduce confusion, Shell pumps will only dispense fuel once you’ve told it how much you want to spend and then scanned the QR code. Only then can you lift the nozzle and begin refuelling. When I went to test the app at my local Shell garage, there were plenty of signs and pamphlets explaining how to use Fill Up & Go, but staff explained that it had not yet been enabled at that location.

Shell's Fill Up & Go

Shell advises that you stay in your car when scanning the QR code, but in reality most people won’t want to pull parallel with the code, scan it and then move forward another few feet to align their fuel cap with the relevant pump. However, once you’ve scanned the code, you can pocket your phone and fill up as you would normally. Once you reach your maximum limit, the pump will automatically stop serving your fuel and the Shell app should confirm the purchase. It’ll also send a receipt too.

Although I wasn’t able to successfully test the process from start to finish, setting up the Shell Motorist app and connecting my PayPal account was pretty simple. With its pamphlets, Shell has done a good job of explaining how it works and what people will need. However, whether drivers are comfortable downloading apps and pulling out their smartphone to pay for fuel is another question altogether.

http://www.engadget.com/embed-5min/?sid=577&playList=518962008&responsive=false&pgType=console&pgTypeId=editVideo-overviewTab-grabCodeBtn

Filed under: Cellphones, Transportation, Internet, Software, Mobile

Comments

Source: Shell

23
Jul

Samsung may have pulled 128GB Galaxy S6 / Edge in India


Samsung-128-Galaxy-S6-S6-Edge-pulled-India

Samsung has reportedly pulled the 128GB Galaxy S6 and Galaxy S6 Edge models from sale in India, leaving customers with 32GB or 64GB as the available storage options. This is similar to the storage options available in Japan – where the 128GB model was not offered – and at launch in Korea, where Samsung didn’t offer the larger options.

According to the company’s Indian website, both the Galaxy S6 and Galaxy S6 Edge are no longer being offered with the biggest storage option but at present, the company’s other online stores – in the UK, Canada and Singapore – all still list the larger storage option. It’s unknown whether these markets will also see the 128GB models pulled from sale but with the 32GB options less widely available in the UK at least, it seems unlikely that the UK will follow suit (although others may yet do so).

The decision to pull the larger storage options from India is certainly interesting as the key feature that neither handset offers is expandable storage, meaning users are limited to the internal storage. One possible reason that Samsung pulled the storage options from sale may be poor sales as the handsets were higher priced than all the competition: the 128GB Galaxy S6 cost Rs. 61,900 (approx $970) while the curved variant was even higher priced at Rs. 70,900 ($1110).

Another possible reason for pulling the handsets could be that Samsung needs the larger storage for its upcoming Galaxy Note 5 and Galaxy S6 Edge Plus handsets that are expected to launch on August 13 next month. Samsung uses the much-faster UFS internal storage standard in its handsets and if the Korean manufacturer does pull the storage option from sale in more markets, it may be because the company wants the components for the upcoming handsets.

Galaxy S6 / Edge in Video

.rvs_wrapper
width: 350px;

.rvs_wrapper.align_left
float: left;

.rvs_wrapper.align_right
float: right;

.rvs_wrapper.align_center,
.rvs_wrapper.align_none
width: 100%;

.rvs_wrapper.align_center
text-align: center;

.rvs_wrapper.align_center.cbc-latest-videos ul li
float: none;
display: inline-block;
vertical-align: top;

.rvs_wrapper.cbc-latest-videos:not(.align_none) ul li:nth-child(2n+1)
clear: both;

.rvs_title
font-weight: 600 !important;
margin: 0 !important;
font-size: 24px !important;

.rvs_wrapper.align_right .rvs_title
padding-left: 20px;

.rvs_title a
font-family: ‘Roboto Condensed’;
color: #3a3a3a;

.rvs_wrapper.cbc-latest-videos ul
padding-top: 10px;

.rvs_wrapper.align_left.cbc-latest-videos ul li,
.rvs_wrapper.align_none.cbc-latest-videos ul li
padding: 0 15px 0 0;

.rvs_wrapper.align_right.cbc-latest-videos ul li
padding: 0 0 0 15px;
float: right;

.rvs_wrapper.align_center.cbc-latest-videos ul li
padding: 0 7px;

.rvs_wrapper.cbc-latest-videos ul li > a
font-weight: 400;

.rvs_wrapper.cbc-latest-videos ul li > a .yt-thumbnail
margin-bottom: 0;

@media only screen and (min-width : 480px)
body #page .rvs_wrapper.cbc-latest-videos ul
width: 100% !important;

@media only screen and (max-width : 480px)
body #page .rvs_wrapper.cbc-latest-videos
width: 100%;
float: none !important;
overflow-x: auto;
overflow-y: hidden;

body #page .rvs_wrapper.cbc-latest-videos ul
overflow: auto;
max-height: none;

body .rvs_wrapper.cbc-latest-videos ul li
float: left !important;
clear: none !important;

All of this is a bit of speculation as to why Samsung decided to pull the storage options from sale but at present, it looks like it may be limited to just India (although the handsets are highly priced in other countries also). Have you noticed the options are no longer available in your country as well? Let us know in the comments below!

23
Jul

Report: Moto X (2015) will come in a gold color option


Gold…once the standard on which the USD was based, the consummate color is now content to live out its silver years as a paint pallet for smartphones. Recent years have seen everyone from Samsung, LG, HTC and countless others embrace it. Now it seems, Lenovo’s Motorola is quite interested as a new leak out of China shows liberal use on the soon-to-be announced Moto X (2015):

23 - 1 hellomotoHK

As can be seen in the above picture, the (presumably) aluminum frame construction of the phone is gold colored, not unlike that which was found on a variant of last year’s Moto 360. The color also extends to the housing of the camera and infamous “Moto dimple” adding an extra touch of class that looks quite nice on this white-backed phone. With a gold option, Moto Maker will presumably bring the frame color range up to three, with a dark grey and light silver rounding out the trio, provided history repeats itself.

It will be interesting to see just how Motorola designates the Gold frame, if only for the fact that Moto Maker has yet to give shoppers an option to select their desires color. On the contrary, choosing a black front nets the dark frame, and a white front results in the lighter variant. Will Motorola finally give customers the ability to manually chose between the different options? Will it be limited to a choice for only the white bezel? It remains to be seen, though we suspect that – especially in China where gold color options do quite well – it will quickly sell out and incur a wait.

20150723_171836

My own personal Moto X (2014) looks particularly nice with the light bamboo rear and contrasting dark frame. What kind of interesting combos will result from this year’s collection?

Expected to be announced on July 28 at a press event, the Moto X is rumored to have a 5.2 inch QHD AMOLED display, Snapdragon 808 SoC, 4GB of RAM, 32 or 64GB of on-board storage, a 16-megapixel clear pixel rear camera and 5-megapixel front camera (with flash). It will purportedly ship with Android 5.1.1, contain a 3280 mAh battery, and once again have front-firing stereo speakers. Given that Samsung is the most likely supplier of the display, it will be of particular interest to see how it fares in comparison to the Galaxy S6 should both be QHD.

Interested in the gold color option? Planning to buy the Moto X (2015)? Leave a comment below and be sure to let us know!

23
Jul

OnePlus sold around 1.5 million One units in one year of availability


oneplus-one-unboxing-8-of-29

The OnePlus One was officially unveiled in April 2014, but the device only started shipping to customers in late June. Since then, OnePlus has sold 1.5 million One units, the company’s Carl Pei told the Wall Street Journal in an interview.

Carl Pei, who co-founded OnePlus together with Pete Lau in 2013, offered a brief overview of the startup’s growth over the last 12 months. OnePlus now has over 900 employees from more than a dozen countries, sells its phone in 35 markets, and has two satellite offices in Singapore and Bangalore, with plans to open up shop in Europe and the US.

Back in January, OnePlus revealed it sold “almost a million” OnePlus Ones in its first six months of availability, and it looks like the company managed to keep a steady pace in 2015 as well. That was helped by the fact that OnePlus phased out its infamous invite system – the OnePlus One has been freely available since April, operated a $50 price cut, and extended the number of countries the One is available in, including the massive Indian market.

http://video-api.wsj.com/api-video/player/iframe.html?guid=69663308-B0B9-44BB-9998-5DD040167FF4

In the interview, Pei talks about the motivations that animate him, personally, and well as OnePlus as a whole and the challenges the company has been facing, but also about his personal life and his Uber- and Airbnb-powered lifestyle.

As for the OnePlus 2, there is no new information in the interview, so we’ll have to wait for the official unveiling on July 27. There are some hints about the philosophy behind it though:

In the beginning you focus on your flagship phone and the early adopters. What do they want? They want everything. The OnePlus 2 has everything. We don’t want to compromise on anything.

Even if we don’t have the best specs, it doesn’t mean we aren’t delivering a good product to our users. Specs shouldn’t be the thing that users worry about. They just need to think about whether they like using this product.

OnePlus hopes it will sell 3-5 million smartphones in 2015, though that seems like a very ambitious target, considering it managed to move 500,000 units in the first half of the year. The pressure is on for the OnePlus 2 to be a success, especially now that OnePlus can no longer rely on Cyanogen for its software. On the flip side, an improved distribution network, a better grasp of the demand, and a third smartphone model, expected later this year, could help OnePlus meet its target.

The first images of the OnePlus 2 just leaked through China’s TENAA database, while known specs include a Snapdragon 810 processor, 4GB of RAM, USB Type-C, and a fingerprint scanner. For more on OnePlus 2, check out our rumor roundup!

23
Jul

Qualcomm announces major workforce restructure alongside FY 2015 results


qualcomm logo mwc 2015 2

Qualcomm has been on top in the mobile processor space for a number of years now, powering everything from budget smartphones to high-end flagships. But this year the company has seen its revenue and operating income drop by around $1 billion, as some expected. This has caused Qualcomm to announce a major restructuring of the company that will see workforce layoffs of up to 15 percent.

Qualcomm is looking to make savings of around $1.1 billion over the next two years from the labor aspects of its restructure. As part of the plan, the company will reduce its temporary workforce, make cuts to engineering, and cut its number of offices. The company is also reducing investment outside of its core chip business by $300 million per year. Overall, Qualcomm wants to save $1.4 billion annually.

“While we are sharply focused on managing costs, we are not sacrificing the future for the present,” – CEO Steve Mollenkopf

In an interview following the announcement, CEO Steve Mollenkopf also talked about the rumored company split. Qualcomm is to undertake a “fresh review” of its corporate structure, to be completed by the end of 2015. He refused to talk about the issue in any further detail until the analysis has been completed. The company may split its chip and licensing businesses into two companies, if a good enough reason to do so can be found.

In terms of financial figures, revenue fell 14 percent from $6.8 billion to $5.8 billion. Operating income fell by a huge 40 percent and net income was also down 47 percent year over year.

The reasons for Qualcomm’s poor year are tricky to pinpoint exactly, as the company has been taking hits at both the high and low ends of the market. The loss of Samsung as a major customer this year, when the company opted for its own Exynos chip in the Galaxy S6, has likely been costly. Samsung has continued to see profits from its semiconductor business grow, due to its own products and orders from Apple.

Qualcomm Income FY 2015

Overheating issues with its Snapdragon 810 SoC have also probably impacted chip demand. The move over to 64-bit seemed to catch Qualcomm out, leaving it to quickly design a chip based on ARM’s reference CPU designs rather than its own custom 64-bit core, codenamed Kyro.

In the cost effective end of the market, the increasing quality and feature sets included in lower cost MediaTek and RockChip products have also begun squeezing Qualcomm’s chip business, with their lower margin business models. These alternative manufacturers are seeing big success in growing markets such as India and China.

“We are not going to withdraw from tiers [of the market].” – CEO Steve Mollenkopf

Other companies are also now more widely making use of their own modems, which has been cutting into another one of Qualcomm’s traditional revenue streams.

Qualcomm does have a few reasons to be positive though. The company will be moving over to 16nm FinFET production next year and should be using its own 64-bit cores in next year’s Snapdragon 820 SoC. The company is also at the forefront of 5G modem technology, which will be important in the coming years, and is looking for additional revenue streams in the budding Internet of Things markets.

Despite the restructure, Qualcomm is looking to spend more than $4 billion on R&D in the coming years. The next twelve months are going to be a tough transitional period.

23
Jul

Latest leak may offer a look at Moto G (2015) customization options with Moto Maker


motorola moto G 3rd gen third generation 2015 2

Alleged press render of the upcoming 2015 Moto G.

For those who have used Moto Maker to purchase their prized product, the experience is perhaps unlike any that rival OEMs can provide. The ability to manually select key elements of a new smartphone and craft something that is truly unique even among those peers who also buy it was so profound, we at Android Authority mused as to if Motorola had the right design philosophy all along. For those unfamiliar with the website, Moto Maker allows the visitor to alter the look of their phone in terms of the front housing, the rear cover, design accents, and storage size. It also lets you engrave a personal motto or name on the back, add a line of text to the boot animation, and pre-set the default home screen background.

Of the three smartphone lines Motorola currently sells, the Moto X, Moto G, and the Moto E, only the first is currently compatible with Moto Maker. Recently, rumors have been floating around that this year will see the inclusion of the Moto G into the mix, and it here that the newest leak provides a peek:

Moto-G-2015-Moto-Maker

While the validity of this image is up for consideration (it looks real but could be the product of careful editing), assuming it is legitimate there are a few things about the Moto G (2015)’s design potential:

1. The rear cover will come in different colors, however all are standard variants, presumably of a matte or smooth plastic construction. This is a step down from the Moto X (2014) which has options for both leather and natural (wood/bamboo) options. Presumably the lower cost of the G is to blame for the removal, with those customers seeking out premium parts better served with the flagship instead.

2. The accents can be customized. While this typically means the front speaker grill elements, the back side of the Moto X and G (2015) look to have a modified enclosure for the camera and Moto “dimple” and thus the color choice will be far more visible on the phone. Unfortunately without additional information this is just speculation; it is possible the rear unit will be fixed as a standard color.

3. The phone will have both 8 and 16GB storage options and include 2GB of RAM.

4. Motorola will produce a Flip Shell cover for the device, available in 5 color options.

Missing from this screen is any mention of personalization, which we can assume is once again due to cost cutting for a mid-tier phone, however at least the initial set-up wallpaper selection option is included.

motorola moto G 3rd gen third generation 2015 1

Note the new camera and dimple enclosure frame that seems to be part of Motorola’s 2015 design language.

The Moto G (2015) is expected to be unveiled at an upcoming Motorola press event on July 28th, along side the Moto X (2015) and a rumored “Moto X Sport Edition”. It will allegedly feature a 5-inch FHD screen as opposed to the 720p seen on the 2014 edition. Other possible elements include LTE and a 1.7GHz Quad-core Snapdragon 610 CPU along with Android 5.1.1.

Does the potential to customize the Moto G with Moto Maker increase your interest in the phone? Assuming this leak is legitimate, has Motorola provided enough options to warrant Moto Maker support? Please leave your opinions in the comments section below.

23
Jul

New study finds that 70% of millenials are using early upgrades to get new devices






style=”display:block”
data-ad-client=”ca-pub-8150504804865896″
data-ad-slot=”8461248232″
data-ad-format=”auto”>
(adsbygoogle = window.adsbygoogle || []).push();

The arena of smartphones is invariably a young person’s game – while there’s no reason why you can’t teach an old dog new tricks, it’s this generation’s youth that are benefiting most from this mobile revolution. With that in mind, it should be no surprise to hear that 70% of millenials are using early upgrades to get new devices, which is the headline of a new study by SellCell who surveyed 1,000 millenials (people between the ages of 18-34) in the US. For those of you claiming bias between ecosystems, the survey included pretty much exactly half iOS and half Android users.

70% of millenials are using early upgrades to get new devicesOther key findings from the survey include:

  • 56% of millenials have owned at least 3 smartphones in the last 5 years.
  • 12% of millenials have owned at least 5 smartphones in the last 5 years.
  • 47% of millenials claim that wanting an early upgrade is so that they can be an early adopter.
  • and 88% of millenials are interested in trading their phone for money.


Those are some pretty heavy statistics, but it really gives an insight as to what young people are thinking these days and you really get the feeling that it is this generation that is driving the smartphone industry the way it is going. I can absolutely relate to all these points, except the one about owning 5 phones in 5 years – all I know is I want to be paid what those kids are getting paid.

What do you think about the statistics in this survey? Let us know your thoughts in the comments below.

Source: SellCell

The post New study finds that 70% of millenials are using early upgrades to get new devices appeared first on AndroidSPIN.

23
Jul

Top rookie Android developer mistakes


android developer development Alper Çuğun

Android is a fantastic platform to develop for. Its development tools are free, easy to come by, and available for Windows, MAC and Linux computers. Android has excellent developer documentation, it is the dominant mobile operating system, and it is available on phones, tablets, watches, TVs and cars. Developing and publishing an Android app is also incredibly easy and straight forward, considering that there are multiple Android app stores available, unlike the single app store for iOS and Windows.

The Android platform has matured quite a lot since September 2008, when version 1.0 was released. The first version of the SDK was released in November 2007, using Eclipse IDE and the ADT plugin. The tools available to developers has grown in leaps and bounds, as has the API, and today, the preferred (and officially sanctioned) method is using the Android Studio IDE. Android Studio is based on the IntelliJ IDE, and is designed to ease android app development. It achieves this in many ways, a few of which include

  • Tools to catch performance, compatibility and usability problems during design/development
  • Ability to preview layout designs for multiple devices during design/development
  • Support for Google Cloud Messaging and App Engine integration with an Android app
  • Templates to create and manage android projects
  • Templates to create and manage smartphone, tablet, watch, TV and Auto apps

and a whole lot more.

Android Studio has been designed to alert developers to issues with their code, and helps alert beginner coders to a lot of the most common errors they can make. But the IDE can only do so much to protect new (and sometimes even experienced) developers from themselves.

In this article, we discuss some of the most common mistakes made by a rookie Android developers, in no particular order. Even some experienced developers fall prey to some of these mistakes sometimes, so hopefully you will find this rundown useful. Let’s begin!

Using iOS design language

z-e1-camera-3

This is relatively (comparatively) rare, but many developers coming from an iOS background tend to design their apps like iOS apps, rather than like Android apps. Both platforms are incredibly similar, but awfully different. An Android app should fit in with the Android system of doing things, while an iOS app should fit in with the iOS way of doing things. If you intend to develop for the Android platform, you must read the Android design guidelines first. At the very least peruse the document, so that you have a general understanding of the Android ecosystem. You do not want to confuse users with a jarring interface, different from every other app they use daily. Differentiate your app with features and functionality, and personalize with colors and logos.

Not using Intents

Intents are a key part of the Android system. They are a means of requesting for data or an action from another app component (could be the same app, or another, completely different app). There are loads of actions your app might want to perform, and rather than re-implementing these actions, you simply ask the Android system to pick the best suited app for that task. For example, an app requires to pick a contact, with phone number, from the device. Rather than reading the contacts database, and implementing a List to show the user all contacts that have a phone number, and then implementing the logic to select a contact, an experienced developer would simply use the following code snippet

private void pickContact() 
    Intent pickContactIntent = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI);
    pickContactIntent.setType(ContactsContract.CommonDataKinds.Phone.CONTENT_TYPE);
    startActivityForResult(pickContactIntent, PICK_CONTACT_REQUEST);

There are a ton of actions that can be performed using Intents, including taking pictures/videos, sharing content, playing videos, setting reminders and alarms, and much more. Developers can even define their own filters for intents.

Not using fragments

During the dark days of Android development, before Honeycomb (Ice Cream Sandwich for phones), Android apps were built using only activities and services. After the great awakening, the concept of fragments was introduced to the API. A fragment is a mini activity, that can be embedded (and combined with other fragments) in an activity. This enables developers build UIs that able to easily adapt and switch between tablet and phone sized devices.

Developing for the current Android version

android version shares july 2015

Android has a well discussed fragmentation problem. The current version of Android, as of writing, is Lollipop version 5.1.1. Lollipop version 5.0 was released on November 12 2014, and over eight months later, Lollipop adoption stands at a measly 12%. Android M, the next version of Android is already available to developers and beta testers, and it is expected to be released around November 2015. Each version of Android introduces new APIs and a rookie Android developer would be tempted to immediately use the new APIs for apps. Doing this would greatly reduce the number of potential users for your app.

An experienced Android developer, on the other hand, would check for the availability of the new APIs in the Android Support Library, and use that instead. The Android Support Library package is a set of code libraries that provide backward-compatible versions of Android framework APIs as well as features that are only available through the library APIs.

At the other extreme, be wary of attempting to support really old devices. Supporting devices with Ice Cream Sandwich and above covers close to 95% of all current android devices.

Developing for a single (or two) screen

Google Nexus

There are literally thousands of different Android devices in the market today, with different screen sizes and resolutions, and app widgets scale and look different on devices. The Android design specs contains guidelines on best practices for designing layouts. When designing for Android, developers should use dp (density independent pixels) for specifying image and widget sizes, and sp (scaleable pixels) for fonts. Check out our previous articles on why you should test on a range of devices, and how to economically test your app on a range of devices.

Experienced Android developers will switch between preview devices in Android Studio during design/development. Rookie Android developers, on the other hand, are more likely to assume that since it works great on their Samsung Galaxy S6 and/or LG G4, it would look equally good on the Galaxy Ace 2 and Moto G (or vice versa).

Blocking the main (UI) thread

For every Android application, on launch, the system creates a thread of execution, called the main (or UI) thread. This thread is in charge of dispatching touch/tap events to the app widgets, drawing and updating widgets, and general interactions with the user. By default, all code executed by an app is executed on the main thread. This used to pose a problem – when long running operations are performed on this thread, the app appears to be frozen or hung. This was such a problem, especially with apps that attempted to fetch network resources, that on newer versions of Android, apps cannot make network calls on the main thread. Other possibly long running tasks that shouldn’t be performed on the main thread include

  • Loading bitmaps
  • Writing/Reading from database/file
  • Complex calculations

Below is a sample code for downloading an image from a separate thread and displaying it in an ImageView in response to a click event.

public void onClick(View v) 
    new Thread(new Runnable() 
        public void run() 
            final Bitmap bitmap =
                    loadImageFromNetwork("http://example.com/image.png");
            mImageView.post(new Runnable() 
                public void run() 
                    mImageView.setImageBitmap(bitmap);
                
            );
        
    ).start();

An experienced developer never wants his app to appear to be frozen. Also, the Android system alerts users with an Application Not Responding (ANR) if the main thread is blocked for a given period (5 seconds for activities). For possible long running tasks, consider using an AsyncTask. Also, consider using a ProgressBar while your app is performing a background task.

Not reading the docs

The Android Developer website is a comprehensive and extensive resource for Android app design, development and distribution. There are guides, tutorials, best practices, guidelines, specifications as well as API documentation. The website is regularly updated, and every aspiring Android developer must have this as a top bookmark. In addition, rookie Android developers will benefit immensely from StackOverflow. StackOverflow is an online community of developers, where users ask questions regarding any programming issues/challenges they face, and other professionals answer these questions. Virtually every problem a new developer can run into has been experienced, asked and answered on StackOverflow.

Deeply nested view hierarchy

Russian-Matroshka no bg

A common rookie mistake is assuming that using basic layout structures leads to efficient layouts. Actually, every widget and layout added to the app increases the time spent drawing the app layout. Particularly, using the layout_weight parameter can be quite expensive during rendering. It is better to use a single RelativeLayout, and align the widgets in relation to each other. A flat, shallow and wide layout performs better than a narrow and deep layout. The Lint tool, bundled with Android Studio, can help optimize app layout files by recommending actions such as

  • Use compound drawables: A LinearLayout with a single ImageView and TextView will be more efficient as a single compound drawable
  • Useless parent: A layout with children, but whose removal wouldn’t affect the final appearance
  • Useless leaf: A layout with no children and no background
  • Deep Layouts: The maximum nest depth is 10. Ideally, app layouts should be 2-3 levels deep

Misunderstanding bitmaps/images

Bitmaps and images can, and do, use significant memory resources. Most rookie Android developers run into the dreaded OutOfMemoryError when loading and/or displaying collections of images. Before an image is drawn on screen, it must first be loaded in memory. For example, loading a 2448×3264 ARGB_8888 image requires 4 * 2448 * 3264 bytes when loaded. That is about 32MB memory allocation needed for a single image. If the image ends up being displayed as on an ImageView that’s 200×200 pixels in size, the memory allocation needed is actually only 4 * 200 * 200 bytes (about 160KB). Loading the entire image, only to display it on a 200×200 widget just used almost 32MB memory space, rather that 160KB.

Experienced developers know to use Bitmap.createScaledBitmap() when loading Bitmaps. Also, a rookie Android developer would be tempted to load images in the main thread. Check out the Android developer page on displaying bitmaps efficiently.

Assuming mobile app equals small project

This is a mistake seen all too often from almost everyone except experienced Android developers, or those with an experience in software development. Many new and aspiring Android developers somehow think that the fact that they are building an app for mobile devices means that it is a small project that shouldn’t require much prior planning, or can be completed in a weekend of pizza and coffee fueled coding binge. This is horrendously far from reality. Android app development is no different from any other software development project, and requires specifications, schedules/timelines, bug tracking, and a release and maintenance plan.


Android Developer Newsletter

Do you want to know more? Subscribe to our Android Developer Newsletter. Just type in your email address below to get all the top developer news, tips & links once a week in your inbox:
Email:

PS. No spam, ever. Your email address will only ever be used for Android Dev Weekly.


Conclusion

Android development, much like software development, is a fun and rewarding pastime (or work, if you call it that). The above is a non exhaustive list of some common mistakes newbie Android developers tend to make. There is only one way to become an experienced Android developer, and that is to keep developing apps. Did we leave something out? What silly mistakes did you make when starting out? Holler in the comments, some of us might still be making those mistakes.