连接字符串天青与Android字符串、Android

2023-09-03 21:27:53 作者:阳光温热,岁月静好,你还不来,我怎敢老去。今日小编为您设计一

我见过此链接:https://azure.microsoft.com/en-us/documentation/articles/storage-java-how-to-use-table-storage/ 但我有问题,连接字符串与Android上运行的应用程序的时候。

I seen this link: https://azure.microsoft.com/en-us/documentation/articles/storage-java-how-to-use-table-storage/ but i have problem with connection string when run app with android.

这是我的连接:

    public static final String storageConnectionString = "DefaultEndpointsProtocol=http;"
        + "AccountName=demoeeg;"
        + "AccountKey=aDJtpWT2/UjBjrwt3BprpujNLNueTl5CjHkik6X6ELdLjGCU5jbnwXz8YCHnQs6wVO6YvY5sGUc7xWon/Iv3ug==";

和其他I类设置:

private static final String USE_DEVELOPMENT_STORAGE_NAME = "UseDevelopmentStorage";

在哪里是我的错误?

Where is my error?

推荐答案

不要设置开发项目的存储。这意味着使用存储模拟器 - 这不会与Android合作。我建议你​​检查出样品中的 Azure的存储机器人回购,这将给你如何配置你的应用程序的一些想法。然后,你可以把任何code片段,你想从如何做这也会给你更多的概念性信息。

Don't set use development storage. This means use the storage emulator -- and that's not going to work with Android. I'd recommend checking out the samples in the azure-storage-android repo which will give you some ideas on how to configure your application. Then, you can pull any code snippets you'd like from the how-to which will also give you more conceptual information.

 
精彩推荐
图片推荐