Skip to main content

Posts

How to create Radio Buttons in Android studio - Java

MainActivity.java package com.example.youtuberadio; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.RadioButton; import android.widget.RadioGroup; import android.widget.TextView; import android.widget.Toast; public class MainActivity extends AppCompatActivity { RadioButton radioButton; RadioGroup radioGroup; TextView textView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); radioGroup=findViewById(R.id.rGroup); textView=findViewById(R.id.view_selected); //variable for the button Button buttonOk =findViewById(R.id.btn_ok); buttonOk.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { int radioId=radioGroup.getCheckedRadioButtonId(); radioButto

ACTIVATING MS OFFICE WITHOUT KEY

Step1 Open cmd as admin Step2 copy office directory Step3  Go to office directory, type cd on cmd then paste the office directory you copied e.g., for a 64-bit machine it will look like this. cd C:\Program Files (x86)\Microsoft Office\Office16 Step4 Type in the following commands into cmd then hit enter after every command: cscript ospp.vbs /inpkey:XQNVK-8JYDB-WJ9W3-YJ8YR-WFG99 cscript ospp.vbs /unpkey:BTDRB >nul cscript ospp.vbs /unpkey:KHGM9 >nul cscript ospp.vbs /unpkey:CPQVG >nul cscript ospp.vbs /sethst:kms8.msguides.com cscript ospp.vbs /setprt:1688 cscript ospp.vbs /act METHOD 2 Copy script https://gist.github.com/amitbd1508/fe64e926005c85d424e8e79a943b3b60 @echo off title Activate Microsoft Office 2019 (ALL versions) for FREE - MSGuides.com&cls&echo =====================================================================================&echo #Project: Activating Microsoft software products for FREE without additional software&echo =========================

HOW TO SOLVE WINDOWS 10 BLACK SCREEN WITH CURSOR PROBLEM

Perhaps you have done some updates or installed new software on your windows computer and then all you can see after logging in is a black screen with a white mouse cursor. Something more like this.. This could have happened due to some malware or some system update that is conflicting with your system settings. There are various methods you can solve this; - Manually correcting the user shell - Troubleshooting from advanced start-up option. Method 1: Manually correct the user shell 1. Open task manager while on the black screen. Press the keyboard combination Ctrl+Alt+Del or right-click at the bottom part of your black screen then move three times with your upper arrow key and press enter to open task manager. 2. A task manager window will show. Go to File >> Run new task >> type in regedit >> check the checkbox (create this task with administrator privileges) >> then click OK. 3. Double click / Expand the HKEY_LOCAL_MACHINE folder. 4. Double click / Expand

HOW TO ACTIVATE WINDOWS 10 USING CMD

  Don't have the original windows product key?  Follow the steps below. You must be connected to the internet to work. Don't forget to subscribe to my YouTube channel  here Video Tutorial Please note, DON NOT include the quotation marks, i.e "" have used them to show the beginning and end of the commands. Step 1: Open cmd as admin Step 2: Install KMS client key Use the command “slmgr /ipk your license key ” to install a license key (your license key is the activation key that corresponds to your Windows edition).  The following is the list of Windows 10 Volume license keys. Home: TX9XD-98N7V-6WMQ6-BX7FG-H8Q99 Home N: 3KHY7-WNT83-DGQKR-F7HPR-844BM Home Single Language: 7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH Home Country Specific: PVMJN-6DFY6-9CCP6-7BKTT-D3WVR Professional: W269N-WFGWX-YVC9B-4J6C9-T83GX Professional N: MH37W-N47XK-V7XM9-C7227-GCQG9 Education: NW6C2-QMPVW-D7KKK-3GKT6-VCFB2 Education N: 2WH4N-8QGBV-H22JP-CT43Q-MDWWJ Enterprise: NPPR9-FWDCX-D2C8J-H872K-2YT43 Enterp
1. activity_main.xml Inside the activity_main.xml. <? xml version ="1.0" encoding ="utf-8" ?> <androidx.constraintlayout.widget.ConstraintLayout xmlns: android ="http://schemas.android.com/apk/res/android" xmlns: app ="http://schemas.android.com/apk/res-auto" xmlns: tools ="http://schemas.android.com/tools" android :layout_width ="match_parent" android :layout_height ="match_parent" tools :context =".MainActivity" android :background ="#182b5c" > <WebView android :layout_width ="match_parent" android :layout_height ="match_parent" android :id ="@+id/webView" android :layout_alignParentLeft ="true" android :layout_alignParentStart ="true" android :layout_alignParentTop ="true" android :layout_alignParentRight ="true" android
 HOW TO USE MESSAGE BOX TO DISPLAY OUTPUT FROM A SELECTION CASE IN VB Public Class Form1     Dim mark As Double     Private Sub txtTest_TextChanged(sender As Object, e As EventArgs) Handles txtTest.TextChanged     End Sub     Private Sub btnok_Click(sender As Object, e As EventArgs) Handles btnok.Click         mark = Double.Parse(txtTest.Text)         Select Case (mark)             Case 0 To 49                 MsgBox("Fail!", MsgBoxStyle.Information, "COMMENT")             Case 50 To 64                 MsgBox("Pass", MsgBoxStyle.Information, "COMMENT")             Case 65 To 74                 MsgBox("Credit", MsgBoxStyle.Information, "COMMENT")             Case 75 To 100                 MsgBox("Distinction", MsgBoxStyle.Information, "COMMENT")             Case < 0                 MsgBox("Invalid! Cannot be less than 0", MsgBoxStyle.Information, "COMMENT")             Case > 100  

INTRODUCTION TO PROGRAMMING

Click here to watch this video on youtube and more from our channel TO REGISTER FOR A FREE TRAINING ON OUR MOODLE PLATFORM,  KINDLY SUBMIT YOUR DETAILS HERE Hello guys,  welcome to my blog,  I'll be taking you through an introduction to programming using C language.  I'll be doing it on my phone,  its my assumption we all have access to a smartphone,  whether you are computer or phone don't freak out, the codes are just the same. Am using  cppdroid  android app to do the coding,  to download cppdroid click  here. Lesson 1: My first program (Hello world!) #include <stdio.h> main() {     printf("Hello world!");     return 0; } Every C program contains a function called main. This is the start point of the program.  #include<stdio.h> allows the program to interact with the screen, keyboard and file  system of your computer. You will find it at the beginning of almost every C program. main() declares the start of the function, while the two curly brac

Sam's year debugger in C++

Programming is fun if you have the passion and time for it.  I became bored,  quarantined in my place,  scripted some codes in C++.  Only if they would come to reality. If you are aware of Artificial Intelligence,  this may entice you.  Let's have some fun fellow geeks,  copy and run in your devices.  The good thing is that you can even run it on your Android device but of course with a special editor app called CppDroid .  Leave a comment or question in the comments section below. #include <iostream> #include <string.h> using namespace std; int main() { int year,future;     char reb,skip;     string user;     cout<<"Enter first name: ";     getline(cin,user);    cout<<endl<<endl<<"Welcome to Sam's year debugger"<<endl; cout<<"You are logged in as "<<user<<endl;     yenter:     cout<<endl<<"Enter current year: "; cin>>year;     if(year!=2020
The computer scientist responsible for copy,  cut and paste passes away.  The advent of the personal computer wasn’t just about making these powerful machines available to everyone, it was also about making them accessible and usable, even for those lacking a computer science degree. Larry Tesler, who passed away on Monday, might not be a household name like Steve Jobs or Bill Gates, but his contributions to making computers and mobile devices easier to use are the highlight of a long career influencing modern computing. Born in 1945 in New York, Tesler went on to study computer science at Stanford University, and after graduation he dabbled in artificial intelligence research (long before it became a deeply concerning tool) and became involved in the anti-war and anti-corporate monopoly movements, with companies like IBM as one of his deserving targets. In 1973 Tesler took a job at the Xerox Palo Alto Research Center (PARC) where he worked until 1980. Xerox PARC is famously known