private ListView listView; private RequestQueue mQueue; private String company1; private List<String> peoplelist; private ArrayAdapter<String> adapter; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_unmarried); listView = findViewById(R.id.listpeople); Bundle bundle = getIntent().getExtras(); String company1 = bundle.getString("tag"); Toast.makeText(this, ""+company1, Toast.LENGTH_SHORT).show(); mQueue = Volley.newRequestQueue(this); peoplelist = new ArrayList<>(); jsonparsingUnmarried();
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter