Click here to Skip to main content
15,843,727 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Im not sure whether this is the part that cause the app to stop but i cant identify which part of it caused the error

What I have tried:

@Override
   public void onFileClicked(File file) {
       if (file.isDirectory()) {
           Bundle bundle = new Bundle();
           bundle.putString("path", file.getAbsolutePath());
           InternalFragment internalFragment = new InternalFragment();
           internalFragment.setArguments(bundle);
           getChildFragmentManager().beginTransaction().replace(R.id.fragment_container, internalFragment).addToBackStack(null).commit();
       }else{
           try {
               FileOpener.openFile(getContext(), file);
           } catch (IOException e) {
               e.printStackTrace();
           }
       }
   }
Posted
Updated 20-Dec-22 8:35am
v2
Comments
wseng 27-Dec-22 2:05am    
paste stacktrace here

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900