Android Question Question about more instance of activity

Discussion in 'Android Questions' started by cocale2001, Feb 9, 2015.

  1. cocale2001

    cocale2001 Member Licensed User

    Hi to all, i have a question.
    In eclipse i create more instance of activity in my client application
    (see below code)

    Intent intent = new Intent(activity_app , ActivityNaviga.class);
    Bundle b = new Bundle();
    b.putString("AZIENDA", azienda );
    b.putString("APPLICAZIONE", applicazione );
    b.putString("DW", dw_lib[0] );
    b.putString("LIB", dw_lib[1] );
    b.putString("PAR_VOLANTI", dw_lib[2] );
    b.putString("MODALITA", "NAVIGAZIONE");
    intent.putExtras(b);
    startActivity(intent);

    I B4A is possible ?
    My question stems from the fact that I do not know how much I will have activity in my program .
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    You can call StartActivity to bring an activity to front. It will not create a second instance of this activity.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice