我正在尝试制作一款新的社交应用。我去了parse.com并制作了一个新的应用程序。下载了zip文件并在android studio中打开它。之后我初始化了我的密钥并编译了代码。它没有出错,并在模拟器上加载了应用程序。然后我添加了代码以将新用户添加到数据库并运行应用程序。一切顺利,日志猫没有给我任何错误但是当我按下测试按钮检查数据是否已添加到云中但是它说'#34;还没有数据"。是的我确实初始化了密钥,我的清单文件确实包含了互联网权限。谁能告诉我什么错了?我从解析
复制了所有这些代码public class ParseStarterProjectActivity extends Activity {
/** Called when the activity is first created. */
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
ParseUser user = new ParseUser();
user.setUsername("my name");
user.setPassword("my pass");
user.setEmail("email@example.com");
// other fields can be set just like with ParseObject
user.put("phone", "650-555-0000");
user.signUpInBackground(new SignUpCallback() {
public void done(ParseException e) {
if (e == null) {
// Hooray! Let them use the app now.
} else {
// Sign up didn't succeed. Look at the ParseException
// to figure out what went wrong
}
}
});
ParseAnalytics.trackAppOpenedInBackground(getIntent());
}
}