Пример #1
0
 public EventController(
     Activity activity, RelativeLayout titleLayout, LinearLayout commentLayout) {
   this.activity = activity;
   engine = NewBornApplication.getDbEngine();
   prefEditor = NewBornApplication.getPrefEditor();
   this.comment = (EditText) commentLayout.findViewById(R.id.comment_edit_text);
   this.title = (TextView) titleLayout.findViewById(R.id.title);
   titleImage = (ImageView) titleLayout.findViewById(R.id.dialog_icon);
 }
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   prefEditor = NewBornApplication.getPrefEditor();
 }
Пример #3
0
 public GraphDataProcessor(DbEngine engine) {
   this.engine = engine;
   prefEditor = NewBornApplication.getPrefEditor();
 }