Android Open Source - OnTimeBirthdayPost Base Request Listener






From Project

Back to project page OnTimeBirthdayPost.

License

The source code is released under:

All source is licensed under GPLv3. See the GPLv3 file in this directory. All icons and images are licensed under the Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0) license. Find...

If you think the Android project OnTimeBirthdayPost listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/*
 * Copyright (C) 2011 Hemanth Meenakshisundaram
 * Based on the Base Request Listener in the Facebook Android sample code.
 * This file is part of OnTimeBirthdayPost.
 * Contact the developers at tsaucestudio@gmail.com
/*  w  w  w .j a v a 2  s.c  om*/
 * OnTimeBirthdayPost is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.

 * OnTimeBirthdayPost is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.

 * You should have received a copy of the GNU General Public License
 * along with OnTimeBirthdayPost.  If not, see <http://www.gnu.org/licenses/>.
 */

package com.TomatoSauceStudio.OnTimeBirthdayPost;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.net.MalformedURLException;

//import android.util.Log;

import com.facebook.android.FacebookError;
import com.facebook.android.AsyncFacebookRunner.RequestListener;

/**
 * Skeleton base class for RequestListeners, providing default error 
 * handling. Applications should handle these error conditions.
 */
public abstract class BaseRequestListener implements RequestListener {

    public void onFacebookError(FacebookError e, final Object state) {
        //Log.e("Facebook", e.getMessage());
        e.printStackTrace();
    }

    public void onFileNotFoundException(FileNotFoundException e,
                                        final Object state) {
        //Log.e("Facebook", e.getMessage());
        e.printStackTrace();
    }

    public void onIOException(IOException e, final Object state) {
        //Log.e("Facebook", e.getMessage());
        e.printStackTrace();
    }

    public void onMalformedURLException(MalformedURLException e,
                                        final Object state) {
        //Log.e("Facebook", e.getMessage());
        e.printStackTrace();
    }
    
}




Java Source Code List

com.TomatoSauceStudio.OnTimeBirthdayPost.BaseRequestListener.java
com.TomatoSauceStudio.OnTimeBirthdayPost.BirthdaysDbAdapter.java
com.TomatoSauceStudio.OnTimeBirthdayPost.OnTimeBirthdayPost.java
com.TomatoSauceStudio.OnTimeBirthdayPost.obpAbout.java
com.TomatoSauceStudio.OnTimeBirthdayPost.obpHelp.java