Back to project page cnp.
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.
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; } }