android - 在 android 中使用 azure 移动服务

标签 android android-studio azure-mobile-services

我正在从事一个必须使用 Azure 后端的项目,我已将数据插入表中,但不知道如何获得它的响应以及我应该在哪里使用 Json 解析.. 下面是我的代码..请指导我

 mClient.getTable(TodoItem.class).insert(item, new TableOperationCallback<TodoItem>() {
                public void onCompleted(TodoItem entity, Exception exception, ServiceFilterResponse response) {
                    if (exception == null) {
                        // Insert succeeded


                        Toast.makeText(getApplicationContext(),"yes", Toast.LENGTH_LONG).show();

                    } else {
                        // Insert failed
                        String msg=exception.getCause().getMessage();
                        Toast.makeText(getApplicationContext(), "No", Toast.LENGTH_LONG).show();
                    }
                }
            });

最佳答案

有关使用适用于 Azure 移动应用的 Android 客户端 SDK 的信息,请参阅以下文章:

关于android - 在 android 中使用 azure 移动服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37808425/

相关文章:

android - 需要帮助来安装 android studio

javascript - Azure 移动服务 - 获取更多用户信息

security - Azure 移动服务服务间通信

android - 如何解决 Google Play 商店应用提交中的设备和网络滥用政策问题

android - React-native 应用程序在第一次运行项目时出现白屏

Android - 带有自定义 ExpandableListAdapter 的 ExpandableListView,子行内带有删除按钮

java - 隐藏图标但继续运行 Android Studio

javascript - 为什么无法识别mssql对象?

android - 如何更改用户点击的android GridView 中的图像?

java - 为什么不能从Android应用程序向MySQL插入数据