how to implement library in android studio project? #158
Replies: 4 comments
-
Hey, You could deactivate the restriction as described in this stackoverflow answer - but that would be, as formerly described, very bad practice and can lead to unexpected behavior. Clean solution would be to execute the network call in a background thread. Another pitfall that can happen is that you forget to add permission to use internet to your app. To do so you have to add I will try to provide a littel android app as documentation by example to the project within the next days. |
Beta Was this translation helpful? Give feedback.
-
I understand, I see that the error was mine, I will try to do the code again. if possible could you explain both for kotlin and java? |
Beta Was this translation helpful? Give feedback.
-
hey @DrefKai i added an working android example --> https://github.com/skrapeit/skrape.it/blob/master/examples/android/README.md hope it helps. if you have further questions regarding the library just let my know |
Beta Was this translation helpful? Give feedback.
-
Thank you so much! |
Beta Was this translation helpful? Give feedback.
-
I was reading your documentation and implemented version 1.1.1, but it didn't work, then I tried 1.0.0 because I thought it would be stable and it didn't work either.
I think that maybe I am implementing it wrong or I am missing a library to be able to use it.
in my build.gradle (app) I have this
It is a new project so I have absolutely nothing, it is blank, in the manifest I have permission to use the internet and as a code in my activity I was testing it with the same documentation page
as the documentation does not have an example for the applications in android studio I did it like this because if or if it asks me to skrape this like this:
skrape (<HttpFetcher|BrowserFetcher|AsyncFetcher>)
in the examples that I saw in the documentation they only put
when executing the code that I did in the onCreate I get this
Could you guide me a little more to know how to use the library and implement it for my application?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions