Back to project page Locast-Core-Android.
The source code is released under:
GNU General Public License
If you think the Android project Locast-Core-Android 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 edu.mit.mobile.android.locast.app; //from ww w.j a va 2 s . c om import android.accounts.Account; import android.content.Context; import edu.mit.mobile.android.locast.net.LocastApplicationCallbacks; import edu.mit.mobile.android.locast.net.NetworkClient; /** * A default implementation of {@link LocastApplicationCallbacks} * * @author <a href="mailto:spomeroy@mit.edu">Steve Pomeroy</a> * */ public class LocastApplication extends android.app.Application implements LocastApplicationCallbacks { @Override public NetworkClient getNetworkClientForAccount(Context context, Account account) { return NetworkClient.getInstance(context, account); } public static NetworkClient getNetworkClient(Context context, Account account) { return ((LocastApplicationCallbacks) context.getApplicationContext()).getNetworkClientForAccount( context, account); } }