Android Open Source - ArrecebaAndroid Frm Logado Base






From Project

Back to project page ArrecebaAndroid.

License

The source code is released under:

GNU General Public License

If you think the Android project ArrecebaAndroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package br.com.projetointegrador.Frm;
//www.j  a  v  a2  s .  c om
import android.view.Menu;
import android.view.MenuItem;
import br.com.projetointegrador.ArrecebaAndroidActivity;

public class FrmLogadoBase extends ArrecebaAndroidActivity {
  private static final int INTERESSES = 0;
  private static final int LOGOUT = 1;

  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    try {
      MenuItem menuInteresses = menu.add(INTERESSES, INTERESSES, 0, "Interesses");
      menuInteresses.setShortcut('0', 'I');
      menuInteresses.setIcon(android.R.drawable.ic_menu_edit);

      MenuItem menuLogout = menu.add(LOGOUT, LOGOUT, 0, "Logout");
      menuLogout.setShortcut('0', 'L');
      menuLogout.setIcon(android.R.drawable.ic_lock_power_off);
    } catch (Exception e) {
      makeDialog("Erro", "Erro : " + e.getMessage());
    }
    return super.onCreateOptionsMenu(menu);
  }

  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
    switch (item.getItemId()) {
    case INTERESSES:
      redirect(FrmInteresse.class);
      break;
    case LOGOUT:
      logout();
      break;
    }
    return true;
  }

}




Java Source Code List

br.com.projetointegrador.ArrecebaAndroidActivity.java
br.com.projetointegrador.SplashActivity.java
br.com.projetointegrador.DAO.CrudDAO.java
br.com.projetointegrador.DAO.InteresseDAO.java
br.com.projetointegrador.DAO.ProdutoDAO.java
br.com.projetointegrador.DAO.SQLite.java
br.com.projetointegrador.DAO.SystemDAO.java
br.com.projetointegrador.DAO.UserDAO.java
br.com.projetointegrador.DAO.WebService.java
br.com.projetointegrador.Frm.FrmCrudList.java
br.com.projetointegrador.Frm.FrmInteresse.java
br.com.projetointegrador.Frm.FrmLogadoBase.java
br.com.projetointegrador.Frm.FrmLogin.java
br.com.projetointegrador.Frm.FrmProdutos.java
br.com.projetointegrador.Frm.FrmRegistrarse.java
br.com.projetointegrador.TO.Categoria.java
br.com.projetointegrador.TO.Crud.java
br.com.projetointegrador.TO.Interesse.java
br.com.projetointegrador.TO.Produto.java
br.com.projetointegrador.TO.User.java
br.com.projetointegrador.View.InteresseViewHolder.java
br.com.projetointegrador.View.ProdutoViewHolder.java
br.com.projetointegrador.table.TbUser.java