thejobe
thejobe
CC#
Created by thejobe on 4/9/2024 in #help
Installing an App to unlock USB debugging
Hello. I have a strange problem. I was given a task at work that requires me to display the screen of an android device to a TV. under normal conditions this would be easy. but this one is tricky. the Android device is a high security Credit Card Processing machine. it does run apps but will only run apps that are approved through their own app store. Dev mode is either locked out or removed. So I was going to create an app that would use the scrcpy function. but I would need a way to install the ADB debugging driver into the device (or unlock it) does anyone know of a way this can be done? the Device is recognized by USB and I can remote control the device from a PC. I just need to be able to Mirror the screen. once I have that then everything should be easy.
4 replies
CC#
Created by thejobe on 3/21/2023 in #help
✅ object reference not set to an instance of an object (beginner)
Hello. I am working on a Registration / login system for a bigger project. I am getting an exception thrown when it hits the login portion of the createuser class. I have a bunch of other issues to solve but this is the current problem I am working to solve. if anyone has any clues please feel free to tear this apart. Thanks in advance for the assistance.
namespace StartMenu
{
internal class Program
{
private static createuser newUser;

public static void mainMenu()
{


Console.WriteLine("Are you currently a Member?");
Console.WriteLine("if you are not a member please select Register below.");
Console.WriteLine("1: Register");
Console.WriteLine("2: Login");


int select = int.Parse(Console.ReadLine());

if (select == 1)
{
createuser newUser = new createuser();


}
else if (select == 2)
{
createuser.Login(newUser);

}

}

public static void userMenu()
{
var select = int.Parse (Console.ReadLine());
Console.WriteLine("You are now in the system. what would you like to do?");
Console.WriteLine("1: look at my information.");
Console.WriteLine("2: change my password");
Console.WriteLine("3: log out.");

switch (select)
{
case 1: createuser.userInfo(newUser);
break;
case 2: createuser.changePass(newUser);
break;
}
}



static void Main(string[] args)
{
Console.WriteLine("Hello! Welcome to the world Database system.");
Console.WriteLine("please select an option from the list below.");
while (true)
{
mainMenu();


}
}
}
}
namespace StartMenu
{
internal class Program
{
private static createuser newUser;

public static void mainMenu()
{


Console.WriteLine("Are you currently a Member?");
Console.WriteLine("if you are not a member please select Register below.");
Console.WriteLine("1: Register");
Console.WriteLine("2: Login");


int select = int.Parse(Console.ReadLine());

if (select == 1)
{
createuser newUser = new createuser();


}
else if (select == 2)
{
createuser.Login(newUser);

}

}

public static void userMenu()
{
var select = int.Parse (Console.ReadLine());
Console.WriteLine("You are now in the system. what would you like to do?");
Console.WriteLine("1: look at my information.");
Console.WriteLine("2: change my password");
Console.WriteLine("3: log out.");

switch (select)
{
case 1: createuser.userInfo(newUser);
break;
case 2: createuser.changePass(newUser);
break;
}
}



static void Main(string[] args)
{
Console.WriteLine("Hello! Welcome to the world Database system.");
Console.WriteLine("please select an option from the list below.");
while (true)
{
mainMenu();


}
}
}
}
20 replies