I am working on an Android project where I can share audio files to another phone with the same app. The audio file should be playing at the other end. I am using Firebase Storage to upload and play the file.
However, I would like to establish a p2p communication (I still can stick with Firebase but I would like to try this out to share files). I have tried to look up for some tutorials on it but no luck!
Simple advice:
Upload File to Firebase Storage
Write url of uploaded file to Firebase Realtime Database
Listen to Firebase Realtime Database with other device
Get file url and download file to device
Play audio file
Related
I am making a music streaming app and I am able to retrieve data from the database to play a song and display the metadata but when I try to upload a song from my emulator it says I do not have permission. My rules are defined as public and I have connected my app to firebase. I even generated a SHA-1 key for the app and synced it to firebase but am stuck with the same error. Do I need to include authentication to remotely upload? Any help is appreciated
here are the rules for my firebase storage
I have multiple apps that take photos and store them on external storage.
I want to upload the photos along with some metadata to a web application running on my companies server.
I am able to write data and file URI to a database using a ContentProvider.
I have written a SyncAdapter to upload the files via HTTP-POST, but I am stuck because in this SyncAdapter I cannot get permission to read the files.
My big question is: Can I use a FileProvider to overcome this issue?
I am NOT storing the files in the ContentProvider using an intent.
I have tried to set permissions on URL, it failed.
I Desperation I tried to export the FileProvider, which was not allowed.
I want to be able to open an input-stream of the file in another app than the one storing the file without having to start the transfer using an Intent.
I am stuck on how to share a file to all user who is using the app I m currently implementing for my FYP. I know I can share file to social media, email, etc. SO is it possible to share file to all user who use my app? I m using firebase as my Database and Android Studio for my implementation.
Upload file to server and give that link to the users..
firebase file upload Clickhere
I have an app that creates a file based on data entered by the user and writes it to a file, however I need that file to then be transferred to a computer via Bluetooth (the laptops I am using don't have Wi-Fi direct and internet connection cant be relied on) and I cannot figure out how to do it. I have followed the tutorials on the android developers site but I cannot seem to get it to work. Any ideas or code samples that I can try?
I have tried following the android developer tutorials for Bluetooth and sharing and neither of them addressed sending files to a non-android device, they only addressed sending data (in a non-file form) to android devices and sending data to other apps.
i have created a database in sq-lite in-memory for my android app ,i want to push the in-memory database to file system. please help me out .
Tried looking for multiple places but could not find any solution.