Content Provider – Part 3 – insert, delete, update, getType

Content Provider – Part 3 – insert, delete, update, getType

Please read the Part 1 and Part 2 insert First, create the variables needed for an insert get the code from the Urimatcher and create a switch statement for every kind of URI. Then insert the new row Create the rowUri with the help of ContentUris class and its method withAppendId To execute it: delete The same as insert, but change the switch statement And you can execute it: update and execute it : getType It returns the mime type of the data in the Content Provider. And because maybe…

Content Provider – Part 3 – insert, delete, update, getType Read More

Android – SQLite update

Android – SQLite update

If you haven’t created yet SQLite helper class that extends SQLiteOpenHelper read this post. To update an existing record/row in SQLite table you need: table name column names that will be updates the new column values selection criteria I will first create a method that has 3 parameters, SQLiteDatabase, an id and an object that has all the values to be updated: Next, I will use ContentValues class to store a set of values so later used with update: Now create one string for the selection and one string array…

Android – SQLite update Read More

Windows Server 2016 – Configure Windows Server Update Service (WSUS)

Screenshot 20181206 090248

After WSUS installation you need to configure it. Open Server Manager, click tools, scroll down and click Windows Server Update Services If you haven’t specified the updates locations during the installation, then you will see the following popup. Choose the updates location and click Run. After a while, when it finishes, click close and the WSUS console will open. Click two times Next. Select the upstream server for the updates. The first option, it synchronizes the WSUS server from Microsoft. Select the second option if you want this WSUS to connect to another…

Windows Server 2016 – Configure Windows Server Update Service (WSUS) Read More

Windows Server 2016 – Install Windows Server Update Service (WSUS)

Screenshot 20181110 090541

Open Server Manager, click Manage and select Add Roles and Features. Click 2 times Next, select the server you want to install new role/feature and click Next. Scroll down and select Windows Server Update Services Click Add Features to install the features that WSUS needs. When the popup closes click Next. Click 3 times Next. Specify a location to store the updates and click 3 times Next. Then click Finish to install the WSUS role You can install WSUS role with PowerShell too: #this includes the connectivity role service. install-windowsfeature -name…

Windows Server 2016 – Install Windows Server Update Service (WSUS) Read More