package com.example.nigthkids.carmenmobile;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ListView;

import java.util.ArrayList;

public class ViajarActivity extends AppCompatActivity {

    ListView lvPaises;

    String[] items = {"Argentina", "Bolivia", "Paraguay", "Chile"};

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

        lvPaises = (ListView) findViewById(R.id.lvPaises);

        ArrayAdapter<String> adapter = new ArrayAdapter<String>(getBaseContext(), android.R.layout.simple_list_item_1, items);
        lvPaises.setAdapter(adapter);
    }
}

@@ -38,16 +38,47 @@
 obile;%0A%0A
+import android.content.Intent;%0A
 import a
@@ -144,16 +144,42 @@
 Bundle;%0A
+import android.view.View;%0A
 import a
@@ -206,16 +206,46 @@
 dapter;%0A
+import android.widget.Button;%0A
 import a
@@ -448,16 +448,54 @@
 ile%22%7D;%0A%0A
+    Button orden;%0A    Button pistas;%0A%0A
     @Ove
@@ -877,16 +877,606 @@
 apter);%0A
+        orden.setOnClickListener(new View.OnClickListener() %7B%0A            @Override%0A            public void onClick(View v) %7B%0A                Intent ordenView = new Intent(ViajarActivity.this, OrdenDeArrestoActivity.class);%0A                startActivity(ordenView);%0A            %7D%0A        %7D);%0A%0A        pistas.setOnClickListener(new View.OnClickListener() %7B%0A            @Override%0A            public void onClick(View v) %7B%0A                Intent lugaresView = new Intent(ViajarActivity.this, OrdenDeArrestoActivity.class);%0A                startActivity(lugaresView);%0A            %7D%0A        %7D);%0A
     %7D%0A%7D%0A

resolve a little conflict