Android Open Source - cnp C N P Application






From Project

Back to project page cnp.

License

The source code is released under:

MIT License

If you think the Android project cnp 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

package com.urucas.copynpaste;
import com.urucas.copynpaste.controllers.ApiController;
import com.urucas.copynpaste.model.User;
import android.app.Application;
//from  w w  w . j  av a  2 s .c om
public class CNPApplication extends Application {

  private static CNPApplication _instance;
  private static ApiController _apicontroller;
  private static User _user;
  
  public CNPApplication() {
    super();
    _instance = this;
  }
  
  public static User getUser() {
    return _user;
  }
  
  public static void setUser(User user){
    _user = user;
  }
  
  public static CNPApplication getInstance() {
    return _instance;
  }
  
  public static ApiController getAPIController() {
    if(_apicontroller == null) {
      _apicontroller = new ApiController();
    }
    return _apicontroller;
  }
}




Java Source Code List

com.urucas.copynpaste.CNPApplication.java
com.urucas.copynpaste.activities.HomeActivity.java
com.urucas.copynpaste.activities.SplashActivity.java
com.urucas.copynpaste.adapters.PostsAdapter.java
com.urucas.copynpaste.callbacks.PostsCallback.java
com.urucas.copynpaste.callbacks.UserCallback.java
com.urucas.copynpaste.controllers.ApiController.java
com.urucas.copynpaste.model.Post.java
com.urucas.copynpaste.model.User.java
com.urucas.copynpaste.parser.PostParser.java
com.urucas.copynpaste.parser.PostsParser.java
com.urucas.copynpaste.parser.UserParser.java
com.urucas.services.JSONRequestTaskHandler.java
com.urucas.services.JSONRequestTask.java
com.urucas.services.JSONRequest.java
com.urucas.services.RequestTaskHandler.java
com.urucas.services.RequestTask.java
com.urucas.utils.Utils.java