I'm reading this forum all day and can't find solution for my problem. I have MyWorkActivity.java with public class MyWorkActivity. Inside is public void popuniListView (). There I want to populate string array with items from database.
It look like this:
public class MyWorkActivity extends Activity implements OnClickListener {
.
.
.
public void popuniListView ()
{
final String[] listaTipovaRada = new String[90];
I also have ListViewCustomAdapter.java that looks like this:
public class ListViewCustomAdapter extends BaseAdapter
{
.
.
.
public View getView(int position, View convertView, ViewGroup parent)
{
//Read values from array listaTipovaRada
There I need to read values from string array listaTipovaRada.
I have found some examples of sending array from one ACTIVITY to another ACTIVITY but none of them is about sending array from ACTIVITY to BASEADAPTER.
How can I pass string array from activity in one .java to baseadapter in second .java?
Thanx in advance.