I have to develop an one android application.
Here i have using tabgroup activity.
i have using following code on my adapter file:
i am getting the following error :
The method getParent() is undefined for the type new View.OnClickListener(){}
How can i resolve these error .. please give me solution for these ???
I have using adapter class here.(For egublic class CategoriesAdapter extends BaseAdapter)how can i get the getparent() in Adapter class ??? please give me solution ???
I have using following code:
[HIGH] Intent intent = new Intent(activity,SubCategoryDetails.class);
intent.putExtra("SubCategoryDetails", beanSubCat);
intent.putExtra("title", categoriesList.getmCategoryName());
activity.startActivity(intent);[/HIGH]
Now am activity is going to next activity well.
But i have using tabgroupactivity means am getting above error ??? please give me any ideas ???
Here i have using tabgroup activity.
i have using following code on my adapter file:
HTML:
convertView.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
ArrayList<SubCategory> beanSubCat = categoriesList.getmSubCategories();
Intent intent = new Intent(getParent(),SubCategoryDetails.class);
TabGroupActivity parentActivity = (TabGroupActivity) getParent();
intent.putExtra("SubCategoryDetails", beanSubCat);
intent.putExtra("title", categoriesList.getmCategoryName());
parentActivity.startChildActivity("SubCategoryDetails",intent);
i am getting the following error :
The method getParent() is undefined for the type new View.OnClickListener(){}
How can i resolve these error .. please give me solution for these ???
I have using adapter class here.(For egublic class CategoriesAdapter extends BaseAdapter)how can i get the getparent() in Adapter class ??? please give me solution ???
I have using following code:
[HIGH] Intent intent = new Intent(activity,SubCategoryDetails.class);
intent.putExtra("SubCategoryDetails", beanSubCat);
intent.putExtra("title", categoriesList.getmCategoryName());
activity.startActivity(intent);[/HIGH]
Now am activity is going to next activity well.
But i have using tabgroupactivity means am getting above error ??? please give me any ideas ???