0

私は monodroid を使用しており、intent.putextra またはバンドルを使用したくないパラメーターを持つ新しいアクティビティを開始したい

たとえば、これは私の活動です

namespace BoostITAndroid
{
[Activity(Label = "My Activity")]
public partial class UploadDealership : ListActivity
{

    private List<Dealership> listDealers;
    private Vehiclestoupload ul;
    private int selectedDealershipID = 0;
    private String[] Options;

    public UploadDealership(Vehiclestoupload uploadList, List<Dealership> listOfDealers)
    {
        this.ul = uploadList;
        this.listDealers = listOfDealers;
    }

したがって、このアクティビティには 2 つのパラメーターがあります。

以下では、アクティビティを開始しようとしています

Intent uld = new Intent(this, typeof(UploadDealership(this, listOfDealers)));
                StartActivity(uld);

ただし、すべてに赤の下線が引かれているため、これは機能しません。

パラメータを使用してアクティビティを開始するにはどうすればよいですか?

4

1 に答える 1