小编Mar*_*son的帖子

在Xamarin Android上振动

我目前正在使用Xamarinandroid 进行应用程序.我无法获得该设备vibrate.

Vibrator vibrator = (Vibrator)Activity.GetSystemService(Context.VibratorService);
vibrator.Vibrate(100);
Run Code Online (Sandbox Code Playgroud)

当我按下链接到代码的按钮时,它会构建但崩溃.

c# android vibration xamarin

7
推荐指数
1
解决办法
6844
查看次数

在C#中无法获得与python中相同的哈希

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 …

c# python hash sha1

3
推荐指数
1
解决办法
667
查看次数

标签 统计

c# ×2

android ×1

hash ×1

python ×1

sha1 ×1

vibration ×1

xamarin ×1