Android Kotlin – Navigation Add Host Fragment and Connect Destinations with Actions

Screenshot 20181208 124245

On the activity’s layout XML file that you want to add Host Fragment, add the following code. <fragment android:id=”@+id/navHostFragment” android:name=”androidx.navigation.fragment.NavHostFragment” android:layout_width=”match_parent” android:layout_height=”match_parent” app:navGraph=”@navigation/navigation” app:defaultNavHost=”true” /> android:name – class name app:navGraph – which navigation resource to use app:defaultNavHost=”true” – intercepts the system Back button Now, go navigation.xml, switch to Design and add a new Destination by clicking the + symbol at the top To set it the first destination of the navigation click Set Start Destination To create an action, add a second destination, and then click the circle on the first destination and…

Android Kotlin – Navigation Add Host Fragment and Connect Destinations with Actions Read More

Windows Server 2016 – Connect a remote system, enable Rules

2018 09 18 11 12 27 Windows Server 2016 Core Running Oracle VM VirtualBox

To connect to a remote system with MMC you must enable 4 rules in Windows Firewall, on the system to be managed. These 4 rules are:  COM+ Network Access, DCOM-In  set-netfirewallrule –name complusnetworkaccess-dcom-in –enabled true Remote Event Log Management (NP-IN) set-netfirewallrule –name remoteeventlogsvc-in-tcp –enabled true Remote Event Log Management (RPC) set-netfirewallrule –name remoteeventlogsvc-np-in-tcp –enabled true  Remote Event Management (RPC-EPMAP)  set-netfirewallrule –name remoteeventlogsvc-rpcss-in-tcp – enabled true Windows Server 2016 – Connect a remote system, enable Rules

Windows Server 2016 – Connect a remote system, enable Rules Read More