This points to your local computer, when you deploy an APK you can't reference.
Document document = builder.parse(new FileInputStream("C:\\Users\\Ocean\\AndroidStudioProjects\\Deneme1Project\\Deneme1\\build\\res\\assets\\words.xml"));
Try instead:
getAssets().open("words.xml");
Where words.xml is in your assets directory. This will work from an Activity
, or if you have a Context
you can call getAssets() on the context, i.e. context.getAssets()
.