Android 未在Parse.com中创建新的ParseObject

Android 未在Parse.com中创建新的ParseObject,android,parse-platform,Android,Parse Platform,使用parse.com作为我的应用程序后端,我希望在parse中有一个新表和我自己的字段。我尝试创建解析对象,如下所示: ParseObject listedProperty = new ParseObject("Properties"); listedProperty.put("Intention", subIntention); listedProperty.put("Type", subType); listedProperty.put("City", subCity); listedP

使用parse.com作为我的应用程序后端,我希望在parse中有一个新表和我自己的字段。我尝试创建解析对象,如下所示:

ParseObject listedProperty = new ParseObject("Properties");
listedProperty.put("Intention", subIntention);
listedProperty.put("Type", subType);
listedProperty.put("City", subCity);
 listedProperty.put("Locality", subLocality);
 listedProperty.put("Address", subAdd);
   listedProperty.saveInBackground(new SaveCallback() {
                    @Override
                    public void done(ParseException e) {
                        if (e == null) {
                            Log.e("Yes","Success");
                        } else {
                            Log.e("No", "Unseccessfull");
                        }
                    }
                });
我已经在一个应用程序类中初始化了我的密钥,并且我的登录流可以很好地与parseuser一起工作。当点击按钮触发上述代码时,我看不到在解析时创建任何数据或tableclass。我怎样才能实现这个

堆栈跟踪:

03-05 14:57:54.193    1539-1564/com.iwillcode.realestate W/EGL_emulation﹕ eglSurfaceAttrib not implemented
03-05 14:57:54.193    1539-1564/com.iwillcode.realestate W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa29d43c0, error=EGL_SUCCESS
03-05 14:58:02.191    1539-1564/com.iwillcode.realestate W/EGL_emulation﹕ eglSurfaceAttrib not implemented
03-05 14:58:02.191    1539-1564/com.iwillcode.realestate W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa4372fa0, error=EGL_SUCCESS
03-05 14:58:03.557    1539-1564/com.iwillcode.realestate W/EGL_emulation﹕ eglSurfaceAttrib not implemented
03-05 14:58:03.557    1539-1564/com.iwillcode.realestate W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa2c42760, error=EGL_SUCCESS
03-05 14:58:05.624    1539-1564/com.iwillcode.realestate W/EGL_emulation﹕ eglSurfaceAttrib not implemented
03-05 14:58:05.624    1539-1564/com.iwillcode.realestate W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa2c05ce0, error=EGL_SUCCESS
03-05 14:58:07.495    1539-1564/com.iwillcode.realestate W/EGL_emulation﹕ eglSurfaceAttrib not implemented
03-05 14:58:07.495    1539-1564/com.iwillcode.realestate W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xacfc7120, error=EGL_SUCCESS
03-05 14:58:13.677    1539-1564/com.iwillcode.realestate W/EGL_emulation﹕ eglSurfaceAttrib not implemented
03-05 14:58:13.677    1539-1564/com.iwillcode.realestate W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa2c42340, error=EGL_SUCCESS
03-05 14:58:18.184    1539-1564/com.iwillcode.realestate W/EGL_emulation﹕ eglSurfaceAttrib not implemented
03-05 14:58:18.184    1539-1564/com.iwillcode.realestate W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa2c05e20, error=EGL_SUCCESS
03-05 14:58:19.784    1539-1564/com.iwillcode.realestate W/EGL_emulation﹕ eglSurfaceAttrib not implemented
03-05 14:58:19.784    1539-1564/com.iwillcode.realestate W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa2c42a20, error=EGL_SUCCESS
03-05 14:58:21.299    1539-1564/com.iwillcode.realestate W/EGL_emulation﹕ eglSurfaceAttrib not implemented
03-05 14:58:21.299    1539-1564/com.iwillcode.realestate W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa2c47e60, error=EGL_SUCCESS
03-05 14:58:30.897    1539-1539/com.iwillcode.realestate E/No﹕ Unseccessfull

很可能您实际上还没有从仪表板创建Properties类。如果有,那么问题很可能是由于在.put方法中传递的类型造成的

例如,如果您将city列作为字符串类型,并尝试

parseObject.putcity,1


它在储蓄方面不会成功。因此,请确保所有变量都是预期的类型。还要确保您尝试分配的值中没有一个为null,因为Parse不允许这样做。

您是否尝试实现回调,并检查异常是否为null?否,您可以向我展示该异常的代码吗。看看开始部分的示例代码,我实现了回调方法,但在日志中失败了。因此,如果我们要进一步帮助您,数据仍然没有被创建。您必须从异常e提供堆栈跟踪