IGXPro

Menu
  • Blog
  • Console
    • PC
    • Playstation 3
    • Playstation 4
    • Wii
    • Wii U
    • Xbox 360
    • Xbox One
  • Gaming
  • Handheld
    • DS/3DS
    • PSP / Vita
  • Reviews
    • Handheld
    • PC
    • Playstation 3
    • Wii
    • Xbox 360
  • Tech
    • Mobile Phones
    • PC/Laptop
    • Tablets
    • Tech Reviews
  • Video Gallery

Join Us Now For Free
Home
Tech
Mobile Phones
Facebook For Android Goes Native, Ditches HTML5 Code

Facebook For Android Goes Native, Ditches HTML5 Code

Chad Buenaflor 13 Dec

Facebook has just released an update to their mobile app for Android devices which you could download right now over at Google Play. Instead of the usual HTML5 version this new version uses native code which promises to be twice as fast when launching and opening your Timeline.

The release of Facebook for Android 2.0 comes just days after the company launched a campaign by placing posters in their work areas encouraging employees to dump their iPhones and instead switch to Android. This also comes 4 months after the August update for the IOS version also doubled its speed.

This new app has been in development over the year and several key issues were addressed to make improvements.

Reducing Garbage Collection

Inefficient handling of memory can often lead to lag or freezing of the app. The team was able to solve this by deferring performing allocation-heavy code until the user stopped scrolling. “Inefficient memory usage will result in many garbage collection events, which in turn can pause the application for multiple frames and cause visible stutter during scrolling.”

 Writing a Custom Event Bus

Event buses allow communication between different classes and the old one was pretty slow. This new custom event bus is lightweight and avoids all reflection and object iterators.

Moving Photos to the Native Heap

Loading photos can be one of the most memory intensive activities for a device. Previously this was loaded to the Java heap which often times resulted in out of memory errors. This time the team made photos load directly to the Native heap.

Writing a Custom ListView Recycler

The original ListView recycler was inefficient when it came to handling elements of varying row heights such as news feeds. The team had to create a custom view recycler to correct this.

If you have already updated your Facebook for Android app you won’t see any changes in the UI at all. What has been improved is all under the hood and will be immediately noticeable once you use the app.

Share
Tweet
Email
Prev Article
Next Article

Related Articles

Sony fans, especially those in the need of a new …

Sony Laptop Prices Slashed

A security exploit was just recently discovered that affects several …

Samsung Galaxy SIII Security Exploit Opens Device To Attack

About The Author

Chad Buenaflor

Search Website

Let’s Get Social

Latest Video

https://www.youtube.com/watch?v=fyHy9X1M9a4

Popular Posts

    Recent Comments

    • Vinny Parisi on Review: TMNT: Out of the Shadows
    • Narduckleson on Review: TMNT: Out of the Shadows
    • Candy on Tropico 5 set to finally make Communism fun again next year
    • Vinny Parisi on Insomniac Games Reportedly Working on Ratchet & Clank: Into the Nexus
    • Adam Magulick on Insomniac Games Reportedly Working on Ratchet & Clank: Into the Nexus

    Get more stuff

    Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

    Thank you for subscribing.

    Something went wrong.

    we respect your privacy and take protecting it seriously

    IGXPro

    Video Game News, Tech News, Geek Resource

    Useful Links

    • Contact
    • Privacy Policy
    • Staff
    • Terms of Use

    Popular Categories

    • Blog
    • Reviews
    • Console News
    • Tech
    • Video Gallery
    • Gaming News

    Work For Us!

    • Contact
    Copyright © 2023 IGXPro

    Ad Blocker Detected

    Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker.

    Refresh