Back to project page mobile2-android.
The source code is released under:
Apache License
If you think the Android project mobile2-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 com.ecollege.android.activities; /*from w w w.j a v a2 s. c om*/ import roboguice.activity.RoboActivity; import android.app.Dialog; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import com.ecollege.android.ECollegeApplication; import com.ecollege.android.tasks.ServiceCallTask; import com.ecollege.api.services.BaseService; public class ECollegeDefaultActivity extends RoboActivity implements ECollegeActivity { public ECollegeApplication getApp() { return (ECollegeApplication)getApplication(); } public <ServiceT extends BaseService> ServiceCallTask<ServiceT> buildService(ServiceT service) { return new ServiceCallTask<ServiceT>(this, service); } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ECollegeActivityHelper.onCreate(this,savedInstanceState); } @Override protected Dialog onCreateDialog(int id) { super.onCreateDialog(id); return ECollegeActivityHelper.createProgressDialog(this); } @Override public boolean onCreateOptionsMenu(Menu menu) { return ECollegeActivityHelper.onCreateOptionsMenu(this,menu); } @Override public boolean onOptionsItemSelected(MenuItem item) { return ECollegeActivityHelper.onOptionsItemSelected(this,item); } }