Skip to content

Instantly share code, notes, and snippets.

@orhanobut
Created September 22, 2015 21:06
Show Gist options
  • Save orhanobut/693a7e2be47bb95fc48e to your computer and use it in GitHub Desktop.
Save orhanobut/693a7e2be47bb95fc48e to your computer and use it in GitHub Desktop.
public class ShareAndImageActivity extends Activity {
ImageHelper imageHelper;
ShareHelper shareHelper;
@Override public void onCreate(Bundle bundle){
...
imageHelper.onCreate(bundle);
shareHelper.onCreate(bundle);
}
@Override public void onDestroy() {
imageHelper.onDestroy();
shareHelper.onDestroy();
...
}
public void onGaleryClicked() {
imageHelper.showGalery();
}
public void onShareClicked() {
shareHelper.showGalery();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment