Back to project page EasyVote.
The source code is released under:
Apache License
If you think the Android project EasyVote 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.llanox.mobile.easyvote.data; //w w w. j a v a2 s. c o m import com.backendless.Backendless; import com.llanox.mobile.easyvote.AppCredentials; import android.content.Context; public class DataLayerManager { private static DataLayerManager instance; private Context mContext; private boolean started= false; private DataLayerManager(Context ctx) { mContext = ctx; } public static synchronized DataLayerManager getInstance(Context ctx){ if(instance==null){ return new DataLayerManager(ctx); } return instance; } public void startBackend(){ if(started){ return; } Backendless.initApp(mContext, AppCredentials.APPLICATION_KEY, AppCredentials.SECRET_KEY, AppCredentials.APP_VERSION ); } }