Storing data on "cloud" [closed] - java

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I am creating an App that stores tasks. What would be a good way to store each task data on a cloud? I was thinking of using the free space google drive provides. Is that possible?
Anything besides hosting my own server will be best. Any ideas?

You could use the Google Cloud Storage free quota. I recently migrated some apps to the cloud and the results are awesome. If your app grows really big, the pricing is still low and you can always get to consume the free quota they provide. Besides that, the api is well documented and there are plenty of tutorials.
Hope it helps.

you should use Google Drive to store data at Google Clouds . please check and started with below link for cloud storage .
https://developers.google.com/drive/android/get-started

You can follow this link. This is about storing image to Google drive but you can store any type of file by using MIME type */*

Have a look into the Dropbox Sync API. The Sync API takes care of syncing all your data with Dropbox through a familiar, file system-like interface. It's like giving your app its own, private Dropbox client.
Reference :https://www.dropbox.com/developers/sync/start/android

Related

Best solution for retrieve and manage phone contacts on server side? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I want to create an android application which retrieve and save phone contacts on server side, then the server-side application have to manage them and find the contacts which have installed the same android application on their phones.
I need some advice for choosing technology stack? Do you know any similar solution?
Which kind of database you recommend? Are graph-based databases (like Neo4J) any good or I just use relational databases?Performance and scalability considerations are very important to me.
Any help would be appreciated.
Thank you.
I suggest you build a prototype. Begin with a server side application with a relational database. Use a DAO layer so you can change the db implemantation later if needed.
Initially, I suppose your requirements are just functionality. So go for it and build something that works. Later on, you can continue with performance and scalability considerations, but when you have reached that point you will have much more experience in what you are trying to built and alternatives you could follow.
Now the modile (Android) app is a different story. I suggest you build an app that sends and retrieves data(contacts) to and from the server to begin with.
Finally, you could download some similar apps and try to replicate their UI.

Storing Data on an online Server [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I have made an app and now I want to my app to save the name of the users when they enter it on an online server where it can be stored and can be viewed by me.
How can I achieve this?
First of all your question is kind of messy, but I will try to explain it to you as simple as possible.
1) You will need an web server with data base and service API to which you will post the users. Try reading more about this or add other tags as it's not so much in android hands.
2) In the app you will need to connect to the API service and POST the data to the server where you will receive it. For this case try reading more about retrofit as it will reduce your pains, big time.
And in the near future try asking more concrete questions.
You can use a Firebase Realtime Database. It's free of charge for basic projects and has a good documentation. Also it's main platform target is Android.
Install a database to the server to store the names.
Install something like tomcat to run a web service on it.
Create the web service to accept data entries and store them in the database.
Call your web service from your app with the given username as parameter.

I want to make a news app which take data from a wordpress blog [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I just started to make my own app for the first time.
I want to make a news app which take data from my wordpress blog. I designed the app similar to CNN, BBC app for example. I'd like to make it by my own, not using plugins like apppresser or worona. I use android studio to make the app and just make a listview & row item to list news, but don't know how to take data from wordpress blog.
Could anyone help me? It would be help to introduce me a site about the problem I had. Thanks.
Maybe what you could do is download the raw HTML page you want to get the information from and process it to get what you want to display. Then if you want to keep the app updated with the info, make it repeat the process with a lapse of time (like every 3 minutes for example).
This will work with any kind of page, not just wordpress.
Maybe it will take you a little more time to do this than find an API that does it for you, but since you are new it will be good for you to practice a bit, and, you'll be able to reuse this code incase you stop using wordpress and move to another "plataform".
I am working on same project and i use this json api plugin. I gives me json and then i handle it in my project.
You can use volley libaray to handle requests for server. Here is link for volley tutorial
Good Luck!

Downloading mp3 from youtube and other music-websites programatically Java [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I need to let my app's client paste youtube (or any other website but that later) URL and download just music (mp3) from the specified video.
I was looking for the solution on stackoverflow and google and found that it is in spite of their law. We just cant dowload anything from youtube. In case of doing it, youtube will block our service.
However, I know that there are still available sites, on which we can convert the video to mp3 easily, for example: http://2conv.com And these sites exist in web for really long time.
So how did they avoid youtube-law? How can I download videos from youtube using Java? (I dont ask for code, but just the way how to do this, what to type in google to find the answer)
Thanks for reading! I really need the answer, because downloading from youtube has to be the core-feature of my app
TO BE CLEAR AND NOT DOWN-VOTED:
I am not going to violate youtube terms of service, just asking if there is any way to reconcile my needs with youtube terms?
It's possible, just use Pafy script (Python), this API based on youtube-dl.
You can see more youtube-dl support sites at:
https://rg3.github.io/youtube-dl/supportedsites.html
Unfortunately not possible. Video files are integrated with their audio files. so if you want to extract audio from any video file you should download the whole thing and then extract its audio to mp3 yourself. Every service that does so first fetches the video and then does as mentioned. Make sure not to violate any terms of service.

How to pass data from server to android app: REST vs Sockets [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I'am writing an android app that needs some data from the server. I am also writing the server side in Java.
What is the best way to pass data from the server to the android device: with REST or Sockets (like Kryonet)?
In what format: XML/JSON (for REST) or plain Java objects?
Thanks in advance.
"Best" is very subjective, I think a very good way to communicate with a RESTful api is via Square's Retrofit library, which can be found here:
http://square.github.io/retrofit/
There is also Volley from Google,
http://developer.android.com/training/volley/index.html
Agree with nPn, "Best" depends on lot of app and user considerations. That said,
REST is preferred as it is most widely used and you have access to stable and optimized client libraries. Most of the these libraries support all kinds of use-cases and customizations. Web Sockets are well suited for real time or live content. If you have a different use-case , REST is strongly recommended.
With Android, JSON is well supported. There is a core JSON API included with Android that you can use without any client libraries. XML can be helpful if you plan to expose your APIs for public consumption (some platforms eg: JAVA, windows have strong XML legacy).
REST + JSON seems to be most commonly used combination in recent times, and lot of client libraries usually enable this use-case.

Categories