Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
soulfood
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
charley.punshon
soulfood
Commits
6024117a
Commit
6024117a
authored
May 19, 2019
by
jade.woodward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a method to get a song's title from database
parent
8a7d98a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
databaseInterface.java
...a/com/example/soulfood_assignment2/databaseInterface.java
+12
-0
No files found.
app/src/main/java/com/example/soulfood_assignment2/databaseInterface.java
View file @
6024117a
...
...
@@ -149,6 +149,18 @@ public class databaseInterface {
return
attributes
;
}
/*
* gets the title od a song from the database by the database song id
*/
public
String
getSongTitle
(
String
id
){
String
url
=
"https://cs2s.yorkdc.net/~jade.woodward/mobile-app-development/getsongtitlebyid.php"
;
HashMap
<
String
,
String
>
params
=
new
HashMap
<>();
params
.
put
(
"id"
,
id
);
return
getFromDatabase
(
url
,
params
);
}
/*
* one string input - should still be in 123 format though
* gets a list of song ids from the database
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment