android data passing and database access
<p>I am experiencing a problem where when the android device wake up from sleep, the Activity would take forever to get redrawn(and have to terminate it most of the time).  I am not sure why, but when I comment out the code below where it retrieves an object from the database based on id stored in the bundle, the problem goes away.<br />
Not sure why the db transaction is causing an issue.  any idea?<br />
secondly, is it better to store the object in bundle instead of storing its id and retrieving it from db in onCreate?</p>

<pre>
 public void onCreate(Bundle bundle) {    
        super.onCreate(bundle);
        setContentView(R.layout.track_act);
     /*
        final Bundle extras=getIntent().getExtras();
        long actId=extras.getLong("activity_id");
        System.err.println("actId is "+actId);
        Data.Activity act=DBManager.getActivity(actId, this);
    */
}
</pre>      
