Shared storage on mobile devices - java

I am creating a music download app using codename one and java.i am trying to save the downloaded files in a location that can be accessed by other apps on the device. Basically, my questions are:
What is the best approach for this objective?
Where do I save the files so that the files can be accessed by other applications like the music player app?
Are there any tutorials or demos that can point me in the right direction?

In Android its called ContentProvider (Ex. Contacts App provides its contacts)
I think this will be helpful for iOS :
You can share data of your app using NSDefault :
Apple's documentation of that approach is (find "Sharing Data with Your Containing App")
https://developer.apple.com/library/content/documentation/General/Conceptual/ExtensibilityPG/ExtensionScenarios.html
or use this http://www.atomicbird.com/blog/sharing-with-app-extensions
http://www.enharmonichq.com/sharing-data-locally-between-ios-apps/

Related

Do I need a server to send PDFs created in my app to the same app (different account) on another device?

Beginner here.
I'm creating an app in Android Studio (Java) where the user can create and store PDFs on the app and send these to another account on the same app, on a different device.
The user will have a list of contacts stored in a database.
Do I need a server to do this? Are there any tutorials online showing one how to code this? (I've been searching for hours but can't find anything specific to my problem. Maybe I'm wording it wrong...)
I was looking into Firebase but I'm completely lost on where to start.
Thanks!
For simple use cases you don't need a server, you can use firebase instead. Currently, they have a storage feature that lets you store files on their servers and retrieve them later.
Here is the official documentation firebase cloud storage
One thing you could do is upload the file from android device and download from another one.

Java/Android - Saving an audio/voice file on the server from different apps

I'm trying to create an app similar to WhatsApp. Currently, working on voice messaging part of it. My app has to store the audio files on the server. FYI - I would like to support the same file formats as WhatsApp.
I am new to media implementation and have referred Java Sound APIs and other questions here on StackOverflow and cannot make a decision on how to get started on this. Can someone please push me in the right direction?
The questions I have now are -
Is it right to have an external web service to both Android & iPhone apps to store the media files to server or should I do it from the apps itself?
If external web service, are Java Sound APIs the right APIs to use? And, how do I make sure I support all file types (eg: m4a, aac, mp3, opus) because AudioFileFormat API supports only WAVE, AU, AIFF, AIFC, SND?
Thanks.

Live-stream video from one android phone to another via bluetooth

I am intended to make an app that stream live videos from one android phone to other one via Bluetooth,i need a simple player and there is no need to save the file,just play it.
My knowledge about stream in java is not enough and I really don't know where to start!
Please help me in finding any solution. Any help will be appreciated.
There is a sample android project to do streaming live video and allows you take photos and record videos from remote phone via bluetooth.
BluetoothCameraAndroid
Android allows you to get frames as byte array using camera, you can use that api to get frames and send it across. But the problem is throttling the sending rate. That also has been handled in that project.
In marshmallow and above devices, you have to give permissions
manually in settings. This project does not include runtime
permissions
Xuggler is a Java opensource library that works with streaming and modifying media on the fly. you can start from it at:
http://www.xuggle.com/xuggler/

Storing and retrieving user data in android apps?

I'm very new to development and would like to create an app for an android TBS game that I would also like to build on later by developing a desktop application. I'd like to know how to go about storing user data in a secure way that would allow the user to be able to sign in on a possible future desktop application. From what I've read on data storage, I think what I need is to store a sheet containing fields for the user's email, password, username, and a class containing player specific stats on a web based service. How can I also take advantage of google play services to help me with this? Thanks in advance
You could start by looking into Firebase, a platform that was acquired by Google and has seen some great overhauls lately. It gives you free storage and database space (up to a certain level of usage of course) and works cross-platform for Web, Android and iOS.
Check out https://firebase.google.com/ for the docs and some quick-start guides as well as presentations from the latest Google IO: https://www.youtube.com/user/Firebase/videos
Android Game Services allows you to Store user data, to set achievements, to share informations with social medias, to make a leaderboard and to make a multiplayer game.
https://developers.google.com/games/services/
You should use them for cross platform purpose.
You can check Android Doc in storage options:
Data-Storage
If you want share in future the data with desktop, you will need the data in some online storage. Check Firebase, from Google, or Parse.
Firebase
Parse

Advice on developing a android photo vault app - File locking in android

I am new to android programming, I have developed 2 very simple apps, one is a weather and other is a story app.
I am planning to develop a app similar to photo vault app.
Similar to this - https://play.google.com/store/apps/details?id=com.enchantedcloud.photovault&hl=en
How complex is this? I am not able to find much information online to develop the app. Is there any way to copy over the files in the photo camera library to a new location and then hide them?
The app should basically do this:
1) Ask for a password, when user opens app. --> Easy DONE
2) Ask user permission to access the camera photo library --> Stuck :(
3) Let user select the pics he wants to copy and hide in the app --> Stuck :(
4) Copy these pics in a secret location? or encrypt them? --> Stuck need help here.
5) Save them and when the user needs access to them, ask for a pass and show them.
I am not planning to support videos yet, just hiding jpegs is good enough.
Any help would be appreciated. Thanks guys.
I have small hack over here. Try to get apk file of the above application and use Java decompiler(Kind of reverese Engineering) Java Decomplier to check what all java files how he organised it and what structure he followed and I am not sure that will decompile resource files even(xml) files. Hope it helps you a bit.

Categories

Resources