Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
20_21-J03
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
20_21-J03
20_21-J03
Commits
6e5a63a6
Commit
6e5a63a6
authored
Jul 06, 2021
by
Gamage B.G.N.U
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Errors in recommandation system is fixed
parent
7f2e923d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
11 deletions
+8
-11
app/build.gradle
app/build.gradle
+1
-1
app/src/main/AndroidManifest.xml
app/src/main/AndroidManifest.xml
+1
-0
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/adaptiveLearning/VideoHandler.java
...icsanalyserandeducator/adaptiveLearning/VideoHandler.java
+6
-10
No files found.
app/build.gradle
View file @
6e5a63a6
...
...
@@ -17,7 +17,7 @@ android {
install
"opencv-contrib-python-headless"
install
"fuzzywuzzy"
install
"pandas"
install
"s
k
learn"
install
"s
cikit-
learn"
}
...
...
app/src/main/AndroidManifest.xml
View file @
6e5a63a6
...
...
@@ -24,6 +24,7 @@
android:requestLegacyExternalStorage=
"true"
android:roundIcon=
"@mipmap/app_logo"
android:supportsRtl=
"true"
android:usesCleartextTraffic=
"true"
android:theme=
"@style/Theme.ProbabilityAndStatisticsAnalyserAndEducator"
>
<activity
android:name=
".adaptiveLearning.VideoHandler"
></activity>
<activity
android:name=
".adaptiveLearning.VideoController"
/>
...
...
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/adaptiveLearning/VideoHandler.java
View file @
6e5a63a6
...
...
@@ -56,7 +56,7 @@ public class VideoHandler extends AppCompatActivity {
try
{
VideoId
=
"k3aKKasOmIw"
;
String
imag_URL
=
"http://img.youtube.com/vi/"
+
VideoId
+
"/0.jpg"
;
// this is link which will give u thumnail image of that video
String
imag_URL
=
"http
s
://img.youtube.com/vi/"
+
VideoId
+
"/0.jpg"
;
// this is link which will give u thumnail image of that video
Picasso
.
with
(
VideoHandler
.
this
).
load
(
imag_URL
).
placeholder
(
R
.
drawable
.
ic_location
).
into
(
imageView
);
...
...
@@ -90,22 +90,18 @@ public class VideoHandler extends AppCompatActivity {
ListChecker
=
obj
.
asList
();
recommendedList
=
supportRecommendations
.
FilterRecommendations
(
str
,
ListChecker
);
System
.
out
.
println
(
"Recommended List "
+
recommendedList
);
String
title
=
getTitleQuietly
(
"http://www.youtube.com/watch?v=k3aKKasOmIw"
);
System
.
out
.
println
(
"Video Title :"
+
title
);
String
titles
=
getTitleQuietly
(
"https://www.youtube.com/watch?v=k3aKKasOmIw"
);
title
.
setText
(
titles
);
}
public
static
String
getTitleQuietly
(
String
youtubeUrl
)
{
System
.
out
.
println
(
"test 0"
);
try
{
System
.
out
.
println
(
"test 1"
);
if
(
youtubeUrl
!=
null
)
{
System
.
out
.
println
(
"test 2"
);
URL
embededURL
=
new
URL
(
"http://www.youtube.com/oembed?url="
+
URL
embededURL
=
new
URL
(
"https://www.youtube.com/oembed?url="
+
youtubeUrl
+
"&format=json"
);
System
.
out
.
println
(
"test 3"
);
String
test
=
new
JSONObject
(
IOUtils
.
toString
(
embededURL
,
"UTF-8"
)).
getString
(
"title"
);
System
.
out
.
println
(
"testt"
+
test
);
return
new
JSONObject
(
IOUtils
.
toString
(
embededURL
,
"UTF-8"
)).
getString
(
"title"
);
}
...
...
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