box / box-android-preview-sdk

Box Android Preview SDK
Apache License 2.0
13 stars 10 forks source link

starting folder #2

Closed voltaire33010 closed 8 years ago

voltaire33010 commented 8 years ago

Hi. Thanks for this sample app very useful. I am trying to get the sample application to land me in an specific folder id. i tried to put the id like this replacing 0 with 1561060403 but it landed me in the root folder again. is there anyway I can start in one specific folder id? Thanks a lot in advance

private void launchPreview(BoxFile file) { mPathToRoot = file.getPathCollection(); BoxFolder parentFolder = file.getParent() == null ? BoxFolder.createFromId("1561060403") : file.getParent();

voltaire33010 commented 8 years ago

Oh Never Mini changed private static final String ROOT_FOLDER_ID = "1561060403"; amd worked like charm thanks a lot