我目前正在使用Xamarinandroid 进行应用程序.我无法获得该设备vibrate.
Vibrator vibrator = (Vibrator)Activity.GetSystemService(Context.VibratorService);
vibrator.Vibrate(100);
Run Code Online (Sandbox Code Playgroud)
当我按下链接到代码的按钮时,它会构建但崩溃.
I have a string that I need to hash in order to access an API. The API-creator has provided a codesnippet in Python, which hashes the code like this:
hashed_string = hashlib.sha1(string_to_hash).hexdigest()
Run Code Online (Sandbox Code Playgroud)
When using this hashed string to access the API, everything is fine. I have tried to get the same hashed string result in C#, but without success. I have tried incredibly many ways but nothing has worked so far. I am aware about the hexdigest part aswell and …