public void loadENumber() { // ENumberService eNumberService = new ENumberService(myapp.getENumberServiceURL()); ENumberService eNumberService = myapp.getENumberService(); List<ENumber> eNumberList = eNumberService.loadENumber(); ENumberDAO eNumberDAO = myapp.getENumberDAO(); eNumberDAO.updateENumber(eNumberList); }
@Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); myapp = MyAndroidApp.getApp(this); // List<BPartner> bpartners = myapp.getAllBPartners(); // ArrayAdapter<BPartner> adapter = new ArrayAdapter<BPartner>(this, // android.R.layout.simple_list_item_1,bpartners); // setListAdapter(adapter); }
@Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.main); myapp = MyAndroidApp.getApp(getApplicationContext()); buttons = new ImageButton[2]; buttons[0] = new ImageButton(this); buttons[0].setImageResource(iconsImgs[0]); buttons[0].setOnClickListener( new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub evalForm(v); } }); buttons[1] = new ImageButton(this); buttons[1].setImageResource(iconsImgs[1]); buttons[1].setOnClickListener( new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub enumberSearch(v); } }); // myapp = MyAndroidApp.getApp(getApplicationContext()); GridView gridview = (GridView) findViewById(R.id.gridview); gridview.setAdapter(new MainMenuAdapter(this)); }