dmytrodanylyk / realm-browser

Android Realm Database Browser
MIT License
284 stars 38 forks source link

Not show data from another module (different packagename) #9

Closed alorma closed 9 years ago

alorma commented 9 years ago

Hi.

We have the wollowing structure in our project:

/

When we execute realm browser from app module, we can't see any register in the DB.

device-2015-05-11-124246

FYI: If we call RealmFilesActivity.start(this); we can't see any file

dmytrodanylyk commented 9 years ago

FYI: If we call RealmFilesActivity.start(this); we can't see any file

It means no file inside getApplicationInfo().dataDir link

Can you tell me path where your realm database is located?

alorma commented 9 years ago

Yes, there are file sinside dataDir, 2 files exactly:

default.realm default.realm.lock.

We debugged, and found that isValid(String extensions) returns false even if it's the .realm file. That's caused because it splits file name into ".realm", and not "realm". ANd so the method returns false (is not in ignore list), so code after isValid is never query

dmytrodanylyk commented 9 years ago

Thanks, I will fix it later today and push to Maven Central new version. Thanks for help!