Music App and database accessing - android

I'm kinda stuck on the implmentation phase of my app. It's a music app that asks a user how he's feeling - sorrow, happiness, heartbreak, nervousness, etc., and it then inputs what it already knows of the user to a database of all songs. The app then chooses and shortlists and plays whatever it sees fit to the situation.
I've already created the music app and the GUI for it, but I'm really stuck at how to access a music database, whether it be online or offline. I've read about Musicbrainz, and I did download the databse although it is actively available online. I do not know how to ask my app to look into it and interact with it, or any other online database for that matter.
Please do provide me with any help if its possible.

You want to use an API. Udacity does a pretty good job of teaching this. You have to sign up for an account but it's all free. Lesson 2 here will teach you all about with example code. Then you'll just have to find an API for music.

A little too much information given, try to be more concise. There are a bunch of different ways about going about this. You can connect to a database directly through SQL or MySQL but you would need access to the DB creds. Best option is to use an API. There will be plenty of information on music APIs if you google it.
P.S. Only ask a question if you can't find an answer elsewhere and this type of question has been asked countless times.

Related

What is the best way to create a wallpaper app for android?

I am sure you are fine and happy. I want to create a wallpaper app for android. I am a newbie to be honest.
There used to be picasaweb and its api for storing albums and fetching images on an android application. This api is discontinued now. I searched for online tutorials. Almost all of the tutorials used this old api. Some of the tutorials were there, which were only using drawable folder images to set the wallpaper, which i do not want. I want to create an application where users can download wallpapers from my online storage. I found that there is now a google photos api. There is a good documentation of it. But i don't honestly know how to implement it in my app. I am a bit puzzled now.
My main question is, how should i proceed to create my app. It may sound a bit spoon feeding, but what is the best way to create this type of app. I know i will need to store images on a storage and will need to create an api to download and fetch image data on the storage. (Is there any good api available already, like volley?) Also, somewhere i found that i can use firebase storage, but i have read in both firebase and google photos api, there is a limit in the amount of access request users can make in a day. There is a partner program also. which increase these storage and request cap.
Also if the question is in a bad format, please forgive me this time, I'll be more specific next time. I'll be very thankful for any hints and help. Thank you very much.
For starting the android project, you can start by learning the Java programming language. Then you can following learning the basic android development. After basic, you can follow the Youtube tutorials to develop the wallpaper application. As for storage, you can follow this tutorial to store your wallpaper in Firebase which can be enough for the simple application.
The easiest way to do so without coding is to go appsgeyser.com and use one of their templates. You can create an wallpaper app for android there and use as many pics as you want.

Android Social Game implementation - Data storage and sharing

So, I'm reading this android game programming book, which is great, and I was wondering about how to implement the database of a social game.
Let me take a dummy example that fits the example purpose: there is a group of people playing a game, where everyday there is a question (generated by the app), and the first user to answer it wins.
So, basic questions: when someone answer the question, how the others players will know?
I imagine that when the winner answer the question, this would be stored in a database (the cloud?) and when the others users log into the game, the app would connect to the clound, synchronize all users update and display a message saying that there is a winner already for that question.
Is that in anyway correct? I have a fair/medium experience in developing in Android, but never worked much with storage/internet connection.
There is any specific API to deal with this task?
P.S. I'm aware of SharedPreferences, but I'm quite sure that's not I'm looking for. My main question is how to share data over the internet/users using and Android app.
Thanks
Android provide Game Services for this.
I this APIs https://developers.google.com/games/services/android/realtimeMultiplayer are what you are looking for
Otherwise you may think to develop your own server logic for instance via Google App Engine

How can I view a drop cam feed in my own app for iPhone and Android?

I have a client that wishes to show his drop cam feed in his own app, not the app that drop cam provides. However after calling Dropcam, it seems they offer no such solution and it was advised that I look online for a solution. I have, but it seems the threads are old and there is not a lot of helpful info out there.
I know Dropcam has a beta API but I don't know if I'd need that. They talk of accessing camera info, and other info, which I think I wouldn't really need. I just want to access the feed and isn't that up in the cloud anyways? I wonder if there's a 3rd party video viewer API that can handle this?
Any help would be much appreciated.
You seem to be a little confused so let me help you with that.
When accessing 3rd party content you need to access that information through their services or API. Once you have built a dummy application or understand what information you can access, you can further build an application based off of that info.
Now if your client or friend wants their feeds, you will have to go through the DropCam API and their AUTH system before accessing the feed and they will provide that to you with either a SOAP or REST service response in either XML or JSON.
You parse that information and use the data appropriately in your personal application.
This is a very vague questions so i hope i helped you out.

Social App message Tracking?

Social App data access using SDK or without SDK/API :
I have found many android Apps, those are tracking message and all detail from the social app like Whats App, BBm, Viber chat etc.
I search over googled as well as the developer site of all social apps. No one is provide any SDK or any API from you can track other user message . {like : stealing}
Than I found on the Rooted device , you can do this, I searched but didn't get anything. If many apps tracking the other user detail i.e. this thing will happen.
So, If those social App does not provide anything to do this than HOW IT CAN BE POSSIBLE ?
Can Someone correct me IF I wrote something worng ?
or
If this thing is possible, than please give some suggestion or way, How it can be possible?
Thanks
If this is possible, it is most likely only possible if you're coding with C and using the NDK, since it gives low level access, and kind of bypasses the basic Java coding restrictions. Like turning on settings without any user interaction. I hope this helps in any way.
You need to look at them individually. E.g there is a good research on whatsapp. .
You just need to get the access to their database, if they are using sqlite, you can directly get their database and run queries on them. Sqlite Browser or other GUI sqlite tools will be helpful in checking their db schema.

Logging-in and database connectivity in Android

I am completely new to Android development and have been reading many articles on the Android site and elsewhere. There are a lot of articles that give very specific examples, but I haven’t bumped into the articles explaining the following:
Logging-In:
I haven’t noticed market applications forcing me to create login credentials (per se), only verification of access to types of permissions. However, they surely must need some kind of login credential. This means Android is providing this access (somehow).
How?
What process?
Database Location:
Some articles I’ve read “imply” a copy of the applications database is located on the phone (itself), others imply a database located elsewhere (cloud etc.). Lastly, others imply they use both a local database for quick updates and a remote database for synching and error-analysis.
Is there a common database available for everyone to use?
I wouldn’t “think” so
Do you generate the local copy automatically every time?
Seems wasteful as you just have to re-create the whole thing and re-synch EVERY entity...but I’ve seen articles promote it.
Which databases are you using?
What best-practices do you use for synching?
Lastly:
If this forum isn't the right one I will be happy to move this question. I looked at the Android Enthusiast forum and it didn't look like the correct one either.
Logging in, I guess you want to take a look at AccountManager. However, since it's only available after API lvl 5 I am not sure how to do with previous versions since I haven't used it myself. http://developer.android.com/reference/android/accounts/AccountManager.html
Databases, for the applications that uses databases that I've done I have always used a local database on the device itself since the information has only been interested in one-way IE downloading and synching the device from web services.
For syncing both ways I would probably look at having variables which holds when the database were last updated so you know how much and what you need to update in order to have a fresh copy of the database. And then poll a web service to see if the user should update it's database or not.

Categories

Resources