Commit 72cb1b37 authored by MUTTINENI NAVYA's avatar MUTTINENI NAVYA

created map for testing

parent 6f889f48
......@@ -17,8 +17,6 @@ import java.util.List;
import java.util.Map;
public class MyPosts extends AppCompatActivity {
String items[] = new String[] {"apple", "banana"};
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
......@@ -59,7 +57,6 @@ public class MyPosts extends AppCompatActivity {
listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
Toast.makeText(MyPosts.this, items[position], Toast.LENGTH_SHORT).show();
Intent intent = new Intent(MyPosts.this, ItemDetails.class);
intent.putExtra("category", "Electronics");
intent.putExtra("name", of.get(position).get("name"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment