解析对象未出现在仪表板中

时间:2016-07-17 02:05:52

标签: android parse-platform parse-server

我已经按照多个教程进行操作并没有运气。当我运行应用程序时,解析服务器上不会显示任何对象。我不确定代码是否有问题,这里是:

package com.example.patri.index;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import com.parse.Parse;
import com.parse.ParseObject;


public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        Parse.initialize(new Parse.Configuration.Builder(getApplicationContext())
            .applicationId("MyAppId")
            .server("http://myserver/parse")
            .build()
        );

        ParseObject testObject = new ParseObject("TestObject");
        testObject.put("foo", "bar");
        testObject.saveInBackground();
    }
}

0 个答案:

没有答案