Hi guys:
I have the following situation. Attached is a snippet of code that
appears in the OnCreate of my Activity.
_____________________________________
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.dbloadschedules);
        mCtx = this;

        setProgressBarVisibility(true);


/*
 * Open/Create the database
 */
        mDbHelper = new myDBAdapter(mCtx);
        mDbHelper.open();

        Load_Table("agencies", "agency.txt",AgencyFlds, mAgencies);
        Load_Table("calendar","calendar.txt",CalendarFlds, mCalendar);
        Load_Table("trips", "trips.txt", TripFlds, mTrips);

    }
_____________________________________________________________________________

The issue is that my layout never gets displayed until the OnCreate
method has compoleted. Since my 3 functions takes about 10 secs to
complete, I have a blank screen being displayed for 10 secs. This
layout has a progress bar which meant to show the progress thru each
function.

Could someone please point out where I am going wrong? Thanks.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to