1

i have quickaction on my listview . Is there any way to change the view when one of the action is pressed here is my try but i can't get it to work :

mQuickActionFolder.setOnActionItemClickListener(new QuickActionFolder.OnActionItemClickListener() {
   public void onItemClick(QuickActionFolder quickActionFolder,
     int position, int actionId,AdapterView<?> parent, View view) {
    // TODO Auto-generated method stub
    ActionItem actionItem = quickActionFolder.getActionItem(position);
    Log.v(TAG, "action id "+actionId);

    if (actionId == ID_OPEN) { // Add item selected
     Log.v(TAG, "you typed here");
     if (isOnline()) {
      mSelectedRow = position; // set the selected row
      if (!((listUrl[position].substring(listUrl[position]
        .length() - 1)).equals("/"))) {

       Log.d("new url", baseUrl);

       mFileUrl = baseUrl + listUrl[position];
       mQuickAction.show(view);
       }
       else if (((listUrl[position].substring(listUrl[position]
         .length() - 1)).equals("/"))) {
        Log.d("new url", baseUrl);

        mFileUrl = baseUrl + listUrl[position];
        mQuickActionFolder.show(view);


      } else {
       url = baseUrl
         + listUrl[position].substring(0,
           listUrl[position].length() - 1);

       Log.d("full Url", url);

       mListView.setEnabled(false);

       mProgress.setVisibility(View.VISIBLE);

       new ListAllFiles().execute();

      }
      if (url.equals(mainUrl)) {
       mListBack.setVisibility(View.GONE);
      } else {
       // mListBack.setVisibility(View.VISIBLE);
      }
     } else {
      WebNetworkAlert();
     }

    }

the problem in this code that it says in eclipse always that i mast implement the method could you help me figure out how to do the change view on quick action

Ibrahim MAATKI
  • 363
  • 4
  • 19

0 Answers0