当前位置: 首页>>代码示例>>Java>>正文


Java Parse.setLogLevel方法代码示例

本文整理汇总了Java中com.parse.Parse.setLogLevel方法的典型用法代码示例。如果您正苦于以下问题:Java Parse.setLogLevel方法的具体用法?Java Parse.setLogLevel怎么用?Java Parse.setLogLevel使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.parse.Parse的用法示例。


在下文中一共展示了Parse.setLogLevel方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setupParse

import com.parse.Parse; //导入方法依赖的package包/类
private void setupParse() {
    Parse.initialize(this);

    Parse.setLogLevel(
            BuildConfig.DEBUG ?
                    Parse.LOG_LEVEL_VERBOSE :
                    Parse.LOG_LEVEL_NONE);

    ParseInstallation parseInstallation = ParseInstallation.getCurrentInstallation();
    parseInstallation.increment("uses");
    parseInstallation.saveInBackground();

    ParsePush.subscribeInBackground("");
    ParsePush.subscribeInBackground("general");
    ParsePush.subscribeInBackground("warning");
    ParsePush.subscribeInBackground("news");

    ParseLocation.registerSubclass(ParseLocation.class);
    Schedule.registerSubclass(Schedule.class);
    Price.registerSubclass(Price.class);
    New.registerSubclass(New.class);
}
 
开发者ID:Gnzlt,项目名称:UCOmove,代码行数:23,代码来源:UCOmoveApplication.java

示例2: parseBootstrap

import com.parse.Parse; //导入方法依赖的package包/类
private void parseBootstrap() {
    try {
        Thread.sleep(3000);
    } catch(InterruptedException ex) {
        Thread.currentThread().interrupt();
    }
    ParseAnalytics.trackAppOpenedInBackground(getIntent());

    Parse.setLogLevel(Parse.LOG_LEVEL_DEBUG);

    for (int i = 0; i < 1; i++) {
        System.out.print("XXX wrinting" + i);
        ParseObject testObject = new ParseObject("TestObject");
        testObject.put("foo", "bar");
        testObject.saveInBackground();
    }

    Map<String, String> dimensions = new HashMap<String, String>();
    // What type of news is this?
    dimensions.put("category", "politics");
    // Is it a weekday or the weekend?
    dimensions.put("dayType", "weekday");
    // Send the dimensions to Parse along with the 'read' event

    ParseAnalytics.trackEventInBackground("read", dimensions);
}
 
开发者ID:wkoszek,项目名称:sensorama,代码行数:27,代码来源:MainActivity.java

示例3: prepareParse

import com.parse.Parse; //导入方法依赖的package包/类
private void prepareParse(Context context) {
    ParseObject.registerSubclass(LobbyEventCard.class);
    ParseObject.registerSubclass(ScheduleCard.class);
    ParseObject.registerSubclass(ScheduleGroupCard.class);
    ParseObject.registerSubclass(PlanCard.class);
    ParseObject.registerSubclass(PlanStandCard.class);

    Parse.setLogLevel(Parse.LOG_LEVEL_DEBUG);
    Parse.initialize(context, Constans.PARSE_APP_ID, Constans.PARSE_CLIENT_KEY);
}
 
开发者ID:bvblogic,项目名称:Mediator_Android,代码行数:11,代码来源:DataController.java

示例4: onCreate

import com.parse.Parse; //导入方法依赖的package包/类
@Override
public void onCreate() {
    super.onCreate();
    initLogging();
    initParse();
    initCalligraphy();

    if (!BuildConfig.DEBUG) Parse.setLogLevel(Parse.LOG_LEVEL_NONE);
}
 
开发者ID:xebia,项目名称:event-schedule-android,代码行数:10,代码来源:BaseEventScheduleApp.java

示例5: onCreate

import com.parse.Parse; //导入方法依赖的package包/类
@Override
public void onCreate() {
    super.onCreate();
    Parse.initialize(this,
            getString(R.string.parse_app_id), getString(R.string.parse_client_id));
    Parse.setLogLevel(Parse.LOG_LEVEL_VERBOSE);
}
 
开发者ID:fblandroidhackathon,项目名称:weardrone,代码行数:8,代码来源:MainApp.java

示例6: onCreate

import com.parse.Parse; //导入方法依赖的package包/类
@Override
public void onCreate() {
    super.onCreate();
    // TODO: support portrait and landscape.

    // Register default font
    CalligraphyConfig.initDefault("fonts/OpenSans-Regular.ttf", R.attr.fontPath);

    // Register the parse models
    ParseObject.registerSubclass(User.class);
    ParseObject.registerSubclass(Transaction.class);
    ParseObject.registerSubclass(Goal.class);
    ParseObject.registerSubclass(Category.class);
    ParseObject.registerSubclass(Post.class);
    ParseObject.registerSubclass(Comment.class);

    // Enable local datastore
    Parse.enableLocalDatastore(this);

    // Initializing Parse
    Parse.initialize(this, getString(R.string.parseApplicationId),
            getString(R.string.parseClientId));
    Parse.setLogLevel(Parse.LOG_LEVEL_VERBOSE);
    PushService.setDefaultPushCallback(this, MainActivity.class);
    ParseInstallation.getCurrentInstallation().saveInBackground();
    
    // Pin Categories locally
    new CategoryDao().pin();
}
 
开发者ID:CodePath-MAF,项目名称:AndroidClient,代码行数:30,代码来源:MAFApplication.java

示例7: initParse

import com.parse.Parse; //导入方法依赖的package包/类
private void initParse(){
    Parse.enableLocalDatastore(this);
    Parse.initialize(this);
    Parse.setLogLevel(BuildConfig.DEBUG ? Parse.LOG_LEVEL_VERBOSE : Parse.LOG_LEVEL_NONE);
    ParseUser.enableRevocableSessionInBackground();
}
 
开发者ID:adrielcafe,项目名称:NMSAlphabetAndroidApp,代码行数:7,代码来源:App.java

示例8: onCreate

import com.parse.Parse; //导入方法依赖的package包/类
@Override
   public void onCreate(Bundle savedInstanceState) {
       super.onCreate(savedInstanceState);
       setContentView(R.layout.activity_login);

       Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
       setSupportActionBar(toolbar);

       if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
           Window window = getWindow();
           window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
           window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
           window.setStatusBarColor(getResources().getColor(R.color.primary_dark));
       }

       mUsernameField = (EditText) findViewById(R.id.login_email);
       mPasswordField = (EditText) findViewById(R.id.login_password);
       mErrorField = (TextView) findViewById(R.id.error_messages);

       spinner = (ProgressBar)findViewById(R.id.progressBar1);
       spinner.setVisibility(View.GONE);

       Parse.initialize(this);

       Parse.setLogLevel(Parse.LOG_LEVEL_DEBUG);
/** Get twitter auth data - In parse create new table , in this template I have called it "tw" & add string type columns "keyid" & "secretid"
 *  The benefit of this method is that if you need to revoke twitter keys, you just need to modify them in the table only. No need to for new app update.
 *  If you want to avoid doing it this way, then simply remove whole of the below code with just this one line & pass your keys as parameters.
 *  ParseTwitterUtils.initialize(tw_consumer_key, tw_consumer_secret);
 *  But with this you will have to push an app update in case you revoke your twitter keys.
 */
       ParseQuery<ParseObject> qtw = ParseQuery.getQuery("tw");
       qtw.getFirstInBackground(new GetCallback<ParseObject>() {
           @Override
           public void done(ParseObject obj, ParseException e) {
               if(e==null){
                       String tw_consumer_key = obj.get("keyid").toString();
                       String tw_consumer_secret = obj.get("secretid").toString();
                       ParseTwitterUtils.initialize(tw_consumer_key, tw_consumer_secret);
               }
               else {
                   Log.d("Tw: Error", e.getMessage());
               }
           }

       });
   }
 
开发者ID:bhavyanshu,项目名称:TemplateAppParse-dot-com,代码行数:48,代码来源:LoginActivity.java


注:本文中的com.parse.Parse.setLogLevel方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。