通过解析服务器heroku发送数据

时间:2017-12-11 06:57:56

标签: android android-studio heroku android-gradle parse-server

我已经更改了appid和master_key,但应用程序运行完美但是当我在heroku刷新我的dashbaord时,有数据提取它意味着我的应用程序还没有与heroku parse-server通信。网址我必须删除它运行时的反斜杠但是uptil尚未将数据发送到Heroku

StarterApplication.java内容

//启用本地数据存储。     Parse.enableLocalDatastore(本);

// Add your initialization code here
Parse.initialize(new Parse.Configuration.Builder(getApplicationContext())
        .applicationId("o2smf97ce053b2f599c1d4e30a9d95646294a16e59a89mf")
        .clientKey("au2594YB0a4f17f20807054355edc884e038937e019f5b876")
        .server("http://instagrammaja.herokuapp.com/parse")
.build()
);

  ParseObject gameScore = new ParseObject("GameScore");
  gameScore.put("score", 1337);
  gameScore.put("playerName", "Sean Plott");
  gameScore.put("cheatMode", false);
  gameScore.saveInBackground(new SaveCallback() {
      public void done(ParseException e) {
          if (e == null) {
              Log.i("Parse", "Save Succeeded");
          } else {
              Log.i("Parse", "Save Failed");
          }
      }
  });
  ParseUser.enableAutomaticUser();
  //ParseACL defaultACL = new ParseACL();

下面的log.i消息

12-11 07:59:24.526 1590-1599 /?我/艺术:背景粘性并发标记扫描GC释放18191(2MB)AllocSpace对象,1(68KB)LOS对象,7%免费,16MB / 17MB,暂停6.097ms总计34.598ms

12-11 08:00:44.506 1590-1599 /?我/艺术:背景粘性并发标记扫描GC释放16441(1855KB)AllocSpace对象,1(68KB)LOS对象,7%免费,16MB / 17MB,暂停5.581ms总计26.502ms

12-11 08:01:18.664 1590-1744 /? W / WifiMonitor:  handleEvent unknown:14 CTRL-EVENT-SCAN-STARTED

12-11 08:01:54.512 1590-1599 /?我/艺术:背景粘性并发标记扫描GC释放17586(1999KB)AllocSpace对象,1(68KB)LOS对象,3%免费,17MB / 17MB,暂停5.696ms总计43.270ms

12-11 08:02:04.610 1590-1599 /?我/艺术:背景部分并发标记扫描GC释放27086(3MB)AllocSpace对象,74(1720KB)LOS对象,22%免费,13MB / 17MB,暂停6.123ms总计90.352ms

0 个答案:

没有答案