1. Download our Official Android App: Forums for Android!

Apps Force Close on Activity Start-up

Discussion in 'Android Development' started by XxAP0STLExX, Nov 25, 2010.

  1. XxAP0STLExX

    XxAP0STLExX Newbie
    Thread Starter
    Rank:
    None
    Points:
    16
    Posts:
    13
    Joined:
    Oct 9, 2010

    Oct 9, 2010
    13
    1
    16
    Hi. I am developing an app and it used to work all fine and dandy when I started a certain activity. After making a small change it now freezes for a bit and force closes or sometimes starts working. Is it possible to have too many things happening on activity start-up that it does this? And if so, how do you suggest that I fix it? Thanks
     

    Advertisement

  2. XxAP0STLExX

    XxAP0STLExX Newbie
    Thread Starter
    Rank:
    None
    Points:
    16
    Posts:
    13
    Joined:
    Oct 9, 2010

    Oct 9, 2010
    13
    1
    16
    Hey guys. I just divided my methods up into two different threads, and now it works but the threads are out of sync. I think the problem may be that the threads are accessing the same variables at the same time. However, I made it so only one thread is running all the methods and it still acts very out of sync.... Could the reason just be that the two threads aren't synchronized? And if so, how can I sync them? Thanks.
     
  3. XxAP0STLExX

    XxAP0STLExX Newbie
    Thread Starter
    Rank:
    None
    Points:
    16
    Posts:
    13
    Joined:
    Oct 9, 2010

    Oct 9, 2010
    13
    1
    16
    I figured it out.
     

Share This Page

Loading...