The customer needs a simple client server application with no backend, but with the ability to dynamically update the content. (yes, it sounds funny, but it's a simple offline store). Need a service for storing content (image + text description). Roughly speaking, the application, when launched, goes to the cloud and downloads pictures with descriptions (for example, laid out separately in the "photo", "description" folders), and displayed in the ListView. The customer will upload another picture with a description - they will appear when the ListView is updated. The question is, does anyone know where this can be implemented (sort of like a dropbox by replacing the file "dropbox.com" with "dropboxusercontent.com" in the path to the file), but I did not succeed, does this method still work? And another important point, the Adapter from the AdapterView needs to know the number of elements, so you still need to be able to receive from the folder in the cloud the number of elements in it. Or store a separate file with the number of elements? Who can tell the right option, cloud service, or how would he act in solving this problem? Thank!
2 answers
Among the Firebase services is Realtime Database and Storage.
- Also for Firebase. We use in different projects, very convenient. Uploading a file to the server looks like this: Uri file = Uri.fromFile (new File ("path / test_image.jpg")); UploadTask uploadTask = storageRef.child ("images" + file.getLastPathSegment ()). PutFile (file); Learn more here firebase.google.com/docs/storage/android/upload-files - Andrew Grow
|
I assure you, you will not find a better Dropbox. A simple cloud file system with a clearly described Java API .
Poke examples for Android
- You may want to remotely manage URLs or file names. Firebase Remote Config may be suitable for this. firebase.google.com/docs/remote-config - tse
- @barmaley Thanks so much for the advice. Is it possible to implement all this without the need for authorization in the dropbox when launching the application? The application can be downloaded by anyone from Google Play, and it should only take files from one dropbox account. In the examples I did not find this, it needs authorization in the service. - Alexander Lomovskiy
- if the Dropbox folder is public, then you can download it at all without authorization and even without the Java API - Barmaley
|