How Facebook fixed its Gingerbread Dalvik problem

Facebook developers had faced many challenges when developing their app for older platforms like Android 2.2 Froyo and Android 2.3 Gingerbread. When Facebook completely revamped its app last year to provide a better user experience, they discovered that the app did not play well with older Android devices. They discovered that the problem had to do with a program called “dexopt” which determines a fixed-size buffer called “LinearAlloc” of apps installed on a specific device. While the buffer size is 8 or 16 MB in size for newer Android versions like Ice Cream Sandwich and Jelly Bean, its only 5 MB in the older versions.

Facebook details Dalvik patch for Android Gingerbread app

The group was able to come up with a solution by injecting secondary dex files directly into the Android class loader, but then another problem appeared. It turns out that the Facebook app would crash immediately after startup because it had surpassed the method limit set by Android’s virtual machine, Dalvik. The team was at a stand-still, unsure what they could do to fix the problem. They thought that they would have to cut out various features in their Facebook 2.0 app, or just restrict the revamped app to devices with newer versions of Android.

The developers thought “if we could only increase that buffer from 5 MB to 8 MB, we would be safe!”. They realized that they needed to find the LinearAllocHdr object, “lock it, and replace the buffer.” They then had an idea of using a JNI extension to replace the existing buffer with a bigger one. They found the proper value in the vmList using the JavaVM pointer in JNI, they scanned the DvmGlobals object to find the match, found the LinearAlloc header and replaced the buffer. They were able to build the JNI extension and implement it into the Facebook app.

They ran into a small issue with the Samsung Galaxy S II, which they dubbed as “the most popular Gingerbread phone of all time”. The buffer size was 4 bytes off, so they had to safely scan the process heap to search for the correct buffer. After they found the fix, they created a test app, and with the help of manual testing, DeviceAnywhere, and a Google test lab, they were able to test their new Facebook app on 70 different Android devices. To their relief, the app successfully worked on each device.

The team thanks Google and Android for being an open source platform. If the platform wasn’t open, they wouldn’t have been able to “ship our best version of the app”. Facebook also has its extensive training program to thank for that. The program, which was started last year, helped many Facebook staff members discover the reasoning behind the Gingerbread/Facebook debacle.

[via Facebook]


How Facebook fixed its Gingerbread Dalvik problem is written by Brian Sin & originally posted on SlashGear.
© 2005 – 2012, SlashGear. All right reserved.

Alcatel One Touch Shockwave reaches US Cellular, takes your bumps and scrapes for $50

Alcatel One Touch Shockwave reaches US Cellular, takes your bumps and scrapes for $50

Those of us picking budget smartphones in the US seldom have the choice of a toughened smartphone, and it’s even more of a challenge when we’re not signed on to one of the top four carriers. US Cellular is offering the cost-conscious a (hardened) olive branch by shipping the Alcatel One Touch Shockwave. Skip past the creaky Android 2.3, 800MHz processor, 3.2-megapixel camera and 3.5-inch, 480 x 320 display — a shock- and water-resistant shell as well as Dragontrail-based glass should keep the smartphone working through most forms of casual abuse. We also don’t mind having preloaded Amazon Appstore and media apps, although the frugal 2GB microSD card in the box won’t leave much room for any downloading. We’d at least keep the Shockwave on the short list when the $50 price and long-lasting design will leave ample funds for just about everything else.

Continue reading Alcatel One Touch Shockwave reaches US Cellular, takes your bumps and scrapes for $50

Filed under: ,

Alcatel One Touch Shockwave reaches US Cellular, takes your bumps and scrapes for $50 originally appeared on Engadget on Wed, 24 Oct 2012 15:41:00 EDT. Please see our terms for use of feeds.

Permalink   |  sourceUS Cellular  | Email this | Comments

ZTE Anthem 4G unveiled for MetroPCS, has us singing a dual-core, LTE tune for $219

ZTE Anthem 4G launches with MetroPCS, has us singing a dualcore, LTE tune for $219

Although ZTE is no stranger to the US, it hasn’t been as quick to embrace LTE-based 4G as some of its rivals. The new Anthem 4G for MetroPCS puts the company back in sync, and then some. In addition to the faster speeds, the company’s first American LTE phone touts a comparatively speedy dual-core 1.2GHz Snapdragon processor, a 4.3-inch, 800 x 480 screen and perks like HDMI video output with Dolby Surround sound. Our only immediate reservation is the use of Android 2.3, which really shouldn’t be on any shipping devices almost two years after it first left Google’s doors. Any takers may forgive the old software when they see their bill, though — the Anthem 4G’s $219 contract-free price will put it at the more affordable end of MetroPCS’ spectrum when it arrives sometime within the next few weeks.

Continue reading ZTE Anthem 4G unveiled for MetroPCS, has us singing a dual-core, LTE tune for $219

Filed under:

ZTE Anthem 4G unveiled for MetroPCS, has us singing a dual-core, LTE tune for $219 originally appeared on Engadget on Thu, 20 Sep 2012 14:45:00 EDT. Please see our terms for use of feeds.

Permalink   |  sourceAndroid Police  | Email this | Comments

VMK preps Africa-designed Elikia smartphone with $170 price, fast track for apps

VMK preps Africadesigned Elikia smartphone with $170 price, fast track for apps

Congo-based VMK has been blazing a trail for mobile devices in Africa: its Way-C tablet proved that the continent could go its own way without leaning on Asia or Europe. The company promised several months ago to address the same gap with smartphones, and the result is here in the form of the Elikia (“Hope”). The hardware won’t shake the cellular world’s foundations with its 3.5-inch (and 480 x 320) display, 512MB of RAM, a 650MHz processor and both 5-megapixel rear as well as front VGA cameras, but that’s not the point — at $170 US off-contract, it’s much more within the reach of Congo residents, and it even uses the unofficial Holo Launcher to bring a taste of Android 4.0 to what’s really Android 2.3 underneath. There’s also a minor revolution in app purchasing. As Google Play won’t take Congo’s credit cards, VMK has its own app store and prepaid gift cards to give the country a similar experience. You’ll have to sign on to local carriers Airtel, MTN or Warid to use an Elikia in the near future, but we’re hoping the phone expands its reach and levels the playing field.

Gallery: VMK Elikia

Filed under: ,

VMK preps Africa-designed Elikia smartphone with $170 price, fast track for apps originally appeared on Engadget on Sun, 09 Sep 2012 12:45:00 EDT. Please see our terms for use of feeds.

Permalink   |  sourceVMK (translated)  | Email this | Comments

Cricket and RadioShack confirm No-Contract Wireless, ship two Huawei phones to celebrate

Cricket and RadioShack confirm NoContract Wireless, ship Huawei Mercury Ice and Pillar to celebrate

RadioShack might have had a difficult time keeping a lid on its partnership with Cricket, but that doesn’t mean we aren’t interested in the official news. Launching under the expected RadioShack No-Contract Wireless banner, the unfettered phone service includes lets shoppers pick either $25 or $35 plans for basic feature phones or, more importantly, some tempting $50 and $60 smartphone plans. On top of unlimited domestic voice and messaging, these last two rates offer a respective 1GB and 2.5GB of data before throttling kicks in, with hotspot support, international text messaging and visual voicemail reserved for the highest-end tier. You’ll find just two Huawei phones if you wander into a RadioShack store for the Wednesday launch: the $40 Pillar, a keyboard-touting basic phone, and a white-tinged, $150 Mercury Ice that iterates on the Android 2.3-toting Mercury only in the change of color. We’re promised two additional, unnamed phones before the end of the month, and smartphones on the No-Contract service will be the only Cricket devices shipping with 8GB microSDHC cards to feed that Muve Music habit. The nitty-gritty of the hardware and plans await after the break.

Continue reading Cricket and RadioShack confirm No-Contract Wireless, ship two Huawei phones to celebrate

Filed under: ,

Cricket and RadioShack confirm No-Contract Wireless, ship two Huawei phones to celebrate originally appeared on Engadget on Tue, 04 Sep 2012 19:07:00 EDT. Please see our terms for use of feeds.

Permalink   |   | Email this | Comments

Amazon Kindle Fire 2 leaks in model photo

It would appear that the next generation Amazon tablet has been “leaked”, so to speak, via a photo of its smaller iteration’s front side. This photo was sent to The Verge by an anonymous donor who has not been specific about the details. There’s apparently two different models in the pipeline, one 7-inch model and one 10-inch model, and a new streamlined user interface in the mix as well.

It does not appear to make a whole lot of sense that this tablet would have a more streamlined user interface over Android while it mysteriously grows a collection of buttons on its side. What you’re seeing here is a keyboard inside the software aside a bar of buttons also inside the screen. It seems as if this tablet too will have no physical buttons (other than a power button and maybe a volume rocket) and will continue the Google trend of on-screen controls with a wide mix.

This bar has a home key, back button, gray arrow button that more than likely reveals an expanded set of controls, full-screen button, menu button, search, and favorite star. The star will likely interact with online sales of digital content as well as with your Amazon shopping experience. The keyboard as well is nothing like the standard Android experience – unless you’re using Android 2.3 Gingerbread, that is.

The top bar above the search bar we’re seeing here has a battery symbol and wi-fi connectivity icon that appear to be part of Android, so we can probably use these and the rest of the clues to assume that Google will have built at least the software that this tablet will be based on. This is the same as the first Kindle Fire tablet, while Amazon will probably once again be heavily modifying the software to the point where Google will not certify it for Google Play. Amazon will be OK with this, of course, as the aim is to make the Amazon app store mainstream – or continue to do so – here in the next generation.

Join us on the 6th of September to see the full real deal via the Amazon event scheduled for that day – and expect something slightly advanced!


Amazon Kindle Fire 2 leaks in model photo is written by Chris Burns & originally posted on SlashGear.
© 2005 – 2012, SlashGear. All right reserved.


MetroPCS continues 4G LTE assault with Coolpad Quattro

A brand new smartphone has been revealed by the folks at MetroPCS complete with mid-range specifications for those looking to keep their pocketbooks full while they access 4G LTE data speed. This device is the Coolpad Quattro 4G, and it’s one of two 4G LTE-capable smartphones on the carrier this summer. This device works with a 4-inch display, single-core 1GHz processor, and Android 2.3 Gingerbread.

With MetroPCS ramping up efforts to bring 4G LTE to the USA on a network that’s not quite expansive enough to compete with the big guns, a set of two smartphones may be just what they need to stay steady. There’s also a device called LG Motion 4G on the market now for as low as $99 – it’s also a mid-range Android smartphone working on their burgeoning 4G LTE network. Details on the LG Motion 4G can be found in our post last week on the birth of the network’s new connectivity announcement.

Meanwhile you’ll be paying $150 USD for this smartphone working with such features as a microSD card slot, wi-fi connectivity, Bluetooth, GPS navigation, and a 1,600 mAh battery – more than likely much more than enough to keep you powered up for a full day at a time. This device can be purchased and paired with the carrier’s $55 USD a month rate plan with 4G LTE, and is also part of a buy-two-get-rebate plan.

If you purchase two of these devices – or one of these and an LG Motion 4G smartphone – you’ll qualify for a $50 mail-in rebate. Sounds like a deal! Have a peek at your local MetroPCS retailer immediately if not soon to grab em both!


MetroPCS continues 4G LTE assault with Coolpad Quattro is written by Chris Burns & originally posted on SlashGear.
© 2005 – 2012, SlashGear. All right reserved.


T-Mobile Concord hits 4G network for cheap

This week the folks at T-Mobile have announced a new smartphone for their 4G network with a low price and manufacturing done by none other than up-and-comer ZTE. This smartphone works with Android 2.3 Gingerbread, has a lovely 3.5-inch touchscreen display, and has a 2-megapixel camera on the back. The highlight of this little beast is the fact that it’ll be available on a variety of contracts through T-Mobile and various retail partners.

With this device you’ll be grabbing a T-Mobile single-line, Monthly4G no annual contract plan. This plan has unlimted talk, text, and data (without a cap) and access to T-Mobile’s 4G data network. You’re able to pair this device with Walmart’s Family Mobile service as well for monthly payments. This Walmart Family Mobile plan will bring on no-annual-contract phone service with data for individuals as well as families – again, all powered by T-Mobile’s network across the USA.

You’ll be able to pick up the T-Mobile Concord smartphone at Target as well at Walmart starting on August 26th. This device will be available for $99.99 with a qualifying Monthly4G plan at Target and for $99.98 paired with a Walmart Family Mobile no annual contract plan at – you guessed it – Walmart.

This device is the next in a line of ZTE products being brought to the United States by the manufacturer in their effort to enter this lively mobile market. ZTE is responsible for a collection of fabulous and strangely enticing devices internationally, most of them running Android, and we’re more than ready to welcome them to the USA with open arms. More manufacturers means more competition and better devices in the end – lets go!

Check the timeline below for more ZTE action and prepare yourself for more products created by them but branded with the carrier their on here in the USA.


T-Mobile Concord hits 4G network for cheap is written by Chris Burns & originally posted on SlashGear.
© 2005 – 2012, SlashGear. All right reserved.


ZTE-made Concord arrives at T-Mobile and Walmart, caters to the starter crowd at $100 contract-free

ZTEmade Concord arrives at TMobile and Walmart, caters to the starter crowd at $100 contractfree

T-Mobile wants to offer as much of a lure to smartphone newcomers as to power users who might spring for its truly unlimited data, and the ZTE Concord might just be the right kind of bait. The truly 2010-vintage Android 2.3, 3.5-inch screen and 2-megapixel camera won’t get anyone’s pulse racing, but a $100 contract-free price is hard to ignore — even for the sort who’d otherwise be looking for a just-does-calls flip phone. Accordingly, the carrier plans to put the Concord in front of audiences that would rarely care to set foot in a dedicated cellphone store. Walmart is selling the phone today for those comfortable with a Walmart Family Mobile plan. If you’d rather show fealty to T-Mobile itself, you’ll have to swing through a Target store on or after August 26th.

Continue reading ZTE-made Concord arrives at T-Mobile and Walmart, caters to the starter crowd at $100 contract-free

Filed under:

ZTE-made Concord arrives at T-Mobile and Walmart, caters to the starter crowd at $100 contract-free originally appeared on Engadget on Thu, 23 Aug 2012 13:06:00 EDT. Please see our terms for use of feeds.

Permalink   |  sourceWalmart  | Email this | Comments

Nikon COOLPIX S800c Android camera gets video demo

If you’re not quite sure what the Nikon COOLPIX S800c Android-powered camera is all about, you’re not alone – that’s why Nikon has created a simple-to-swallow demo video for your convenience. This video has the same nerd on both sides of a black line, busting out a COOLPIX S800c in one instance to take a photo of a stray parrot perched on a porch, and a nondescript smartphone in the other. The point here is to show how it’s simpler to take photos with a camera running Android than it is to use a smartphone running the same OS.

They also make it clear that the smartphone, in this case, will not have the same – or any, for that matter – optical zoom that the COOLPIX does. Many smartphones do have digital zoom, but this method doesn’t use lens adjustments and therefor makes the photo you take get just a bit more grainy the closer you get – every time. The S800c is able to zoom in on your subject with 10x optical zoom – the good kind.

The S800c also has the ability to take 16 megapixel photos which, unless you’re using an amazing device such as the Nokia 808 PureView (see our full review here), you’re just not going to get from a smartphone. This camera is shown doing essentially the same set of tasks as the smartphone in the video, but with less steps in some cases – and of course with the one drawback in place, that being a lack of mobile data connectivity.

Instead you’ll need to be working with Wi-fi connected to data – which you might want to get being connected to your smartphone. But at that point you might just want to send the camera back and pick up your phone – but who are we to judge? The COOLPIX is also shown battling against what appears to be an iPhone, gaining a lot more “Great!” points on an off-brand social network than the smartphone.

Of course there are a few oddities in the video such as the iPhone appearing on both sides of the black line at once at 0:32 – but no worries, the message is clear! Have a peek at the timeline below to see more Android camera action from Nikon from all angles!


Nikon COOLPIX S800c Android camera gets video demo is written by Chris Burns & originally posted on SlashGear.
© 2005 – 2012, SlashGear. All right reserved.