DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Results 1 to 1 of 1

Thread: Speeding up Android Applications

  1. Senior Droid
    asforel's Avatar
    Member #
    64940
    Join Date
    May 2010
    Posts
    145
    Phone
    HTC Android
    #1

    Wink Speeding up Android Applications

    SDK Version: M3
    First of all, define what do we mean under "speed": in one hand its the time that the code needs to execute, on the other hand its the time the user needs to wait for the user interface. The two things can greatly differ, of course you must optimize the code performance, but the most important is what the user sees from it. Donít make the user wait, unless its necessary.
    Do not pull back the ui thread
    The very basic principle is to never run slow operations on the user interface thread! If you do this the interface will freeze until the operation is executed, which is not a nice user experience. If the execution takes too long the android system will detect it and offer the opportunity to the user to force close the frozen application:

    Even if the performance of code is very good if you do the work in the ui thread, the nice code goes to waste.
    Slow operations
    So, which are these slow operations, for example? The most unreliable in speed is network communication. The dispersion on the speed is big, so there is a chance to finish it fast, but it often can take very long time, so never execute network communication in the ui thread.
    Database access and sd card operations, especially writing are a bit slow too. In database never forget proper indexing, it can extremely affect database speed.
    Emulator and real device
    There are differences in speed between the emulator on pc and a real device. The emulator needs a lot of processor speed, if you donít have a powerful machine the application can seem slow, however it runs fast on a real device. The opposite can also happen, the real device uses sd card, the emulator uses the pcís hard drive, which means much faster file access.
    Notify the user
    When the user have to wait, notifying the user, that he have to wait and the application is working, it is not frozen, showing loading animations etc. makes a better user experience.
    Droid Blinking with Blink
  2.  
     
     
     

Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. Missing applications in Android Market
    By brooklyn2710 in forum Android Forum
    Replies: 12
    Last Post: 09-23-2010, 09:20 AM
  2. ANDROID MARKET for Applications
    By THE WITCH in forum HTC Droid Incredible
    Replies: 4
    Last Post: 05-01-2010, 11:26 AM
  3. Dearth of online banking applications for Android
    By mapexvenus in forum Android General Discussions
    Replies: 21
    Last Post: 01-13-2010, 10:58 AM
  4. Android Market Restricting Applications to Certain Countries??
    By Pyroid in forum Android Tech Support
    Replies: 3
    Last Post: 12-25-2009, 02:18 AM
  5. Music Speeding Up?
    By gsg900 in forum Android Audio and Video
    Replies: 2
    Last Post: 12-05-2009, 06:11 AM

Search tags for this page

how to speed up android ds emulator
,

how to speed up ds emulator android

,
how to speed up ds emulator for android
,
how to speed up ds emulator on android
,

how to speed up nds emulator android

,
how to speed up nds emulator for android
,
how to speed up nds emulator on android
,
how to speed up nds for android
,
how to speed up nds for droid
,
speed up ds emulator android
Click on a term to search our site for related topics.
Find us on Google+