Example usage for android.content Intent getIntegerArrayListExtra

List of usage examples for android.content Intent getIntegerArrayListExtra

Introduction

In this page you can find the example usage for android.content Intent getIntegerArrayListExtra.

Prototype

public ArrayList<Integer> getIntegerArrayListExtra(String name) 

Source Link

Document

Retrieve extended data from the intent.

Usage

From source file:Main.java

public static ArrayList<Integer> getIntegerArrayListExtra(Intent intent, String name) {
    if (!hasIntent(intent) || !hasExtra(intent, name))
        return null;
    return intent.getIntegerArrayListExtra(name);
}

From source file:com.initiativaromania.hartabanilorpublici.IRUserInterface.activities.ContractActivity.java

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_contract);

    /* Get the contract only with the id from the intent */
    Intent intent = getIntent();
    initialPosition = intent.getIntExtra(INITIAL_POSITION, 1);
    contractsAroundIds = (List<Integer>) intent.getIntegerArrayListExtra(CONTRACTS_AROUND_IDS);

    Log.i(TAG, "Got initial contract " + initialPosition);

    setNavigateToMainActivityButtonListener();

    setContractInformationButtonListener();

    pager = (ViewPager) findViewById(R.id.contract_pager);

    pager.setAdapter(new ContractPageAdapter(getFragmentManager()));
    pager.setCurrentItem(initialPosition);
}

From source file:com.odoo.addons.crm.CRMLeads.java

@Override
public void onOdooActivityResult(int requestCode, int resultCode, Intent data) {
    if (requestCode == REQUEST_CONVERT_TO_OPPORTUNITY_WIZARD && resultCode == Activity.RESULT_OK) {
        CRMLead crmLead = (CRMLead) db();
        List<Integer> ids = data.getIntegerArrayListExtra(ConvertToOpportunityWizard.KEY_LEADS_IDS);
        crmLead.convertToOpportunity(convertRequestRecord, ids, convertDoneListener);
    }/*  w w w.ja va  2s .  co  m*/

}