I write this lines of code under button but it not working why
can you help me in this code
You could storage the parsed ArrayList, make a global variable for counting
the number of times that the button has been clicked.
ArrayList<FoursquareVenue> venuesList; Button btn; int clickCount; //
ArrayList<FoursquareVenue> allResults; List<String> shownResults = new
ArrayList<String>(); ArrayAdapter <String> myAdapter; @Override protected
void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); setContentView(R.layout.activity_main);
new fourquare().execute(); btn=(Button) findViewById(R.id.button);
btn.setonclickListener(new View.onclickListener() { @Override public void
onclick(View v) { String name = venuesList.get(clickCount).getName();
String cat = venuesList.get(clickCount).getCategory(); String city =
venuesList.get(clickCount).getCity(); shownResults.add(name + "," + "cat" +
"" + city); clickCount++; myAdapter.notifyDataSetChanged(); } }); }

On Wed, Jun 8, 2016 at 12:42 AM, TreKing <treking...@gmail.com> wrote:

>
> On Mon, Jun 6, 2016 at 9:07 AM, <abeer.sh...@gmail.com> wrote:
>
>> Can you help me customizing code
>>>
>> i do as following
>>
>
> I already gave you a break down of what you need to do. What part
> specifically are you having trouble with?
>
>
> -------------------------------------------------------------------------------------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Android Developers" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/android-developers/QbNLketf7S4/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/CANCScgj%3DpCAcsBO7moXe9G%3DDaS99pg7qOnn1W-TsYx_Nh7xS2Q%40mail.gmail.com
> <https://groups.google.com/d/msgid/android-developers/CANCScgj%3DpCAcsBO7moXe9G%3DDaS99pg7qOnn1W-TsYx_Nh7xS2Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAH%3Da90z%2Bq%2B34%2BY%3Doma8u4qUhYBt2iTvR06d2K-_RkVQCqWs5uQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to