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
73392276
Commit
73392276
authored
May 19, 2019
by
charley.punshon
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
fb486379
6024117a
Changes
1
Show 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 @
73392276
...
@@ -149,6 +149,18 @@ public class databaseInterface {
...
@@ -149,6 +149,18 @@ public class databaseInterface {
return
attributes
;
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
* one string input - should still be in 123 format though
* gets a list of song ids from the database
* 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