Code example for AppWidgetHost

Methods: deleteHost

0
                    "intent TEXT," + 
                    "itemType INTEGER," + 
                    "iconType INTEGER," + 
                    "iconPackage TEXT," + 
                    "iconResource TEXT," + 
                    "icon BLOB" + 
                    ");"); 
 
            // Database was just created, so wipe any previous widgets 
            if (mAppWidgetHost != null) {
                mAppWidgetHost.deleteHost();
                sendAppWidgetResetNotify(); 
            } 
             
            if (!convertDatabase(db)) {
                // Populate favorites table with initial favorites 
                loadFavorites(db);
            } 
        } 
 
        private boolean convertDatabase(SQLiteDatabase db) {