android-app
android-app copied to clipboard
Support for creating and sharing public url from the app
#742
I guess I understated the complexity of this for a newcomer. Actually, even I spent an hour remembering how all this works and I'm still having trouble putting it all together :)
I'll probably have to implement it myself (because the codebase is more complex than it should have been), but here's some pointers so you can hack something usable for yourself.
The very minimum that needs to be done is a call like this:
Article article = wallabagService.modifyArticleBuilder(articleId)
.isPublic(true)
.execute();
That would request the server to "share" the article. The returned article would contain the publicUid field.
The problem is that Android would only allow you to do that in a non-UI thread (because it's a "long" network operation). I guess the simplest way would be to use AsyncTask.
I'll try to implement it properly in the near future, but can't promise anything.