Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
package com.example.puyadaily
import android.net.Uri
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.*
class Wise : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_wise)
//play ai o problema
val videoView1 = findViewById<VideoView>(R.id.VideoView)//selectam viseoviewul
val path = "android.resource://" + packageName + "/" + R.raw.problema//setam path
videoView1.setVideoURI(Uri.parse(path))//cuplam viseo cu path
val isPlaying = videoView1.isPlaying
if (isPlaying) {
videoView1.pause()
} else {
videoView1.start()
}
//hainele costa
val btn_haine = findViewById<Button>(R.id.haine)//selectam buton
btn_haine.setOnClickListener({
val videoView1 = findViewById<VideoView>(R.id.VideoView)//selectam viseoviewul
val path = "android.resource://" + packageName + "/" + R.raw.haine//setam path
videoView1.setVideoURI(Uri.parse(path))//cuplam viseo cu path
val isPlaying = videoView1.isPlaying
if (isPlaying) {
videoView1.pause()
} else {
videoView1.start()
}
})
//sala
val btn_sala = findViewById<Button>(R.id.sala)//selectam buton
btn_sala.setOnClickListener({
val videoView1 = findViewById<VideoView>(R.id.VideoView)//selectam viseoviewul
val path = "android.resource://" + packageName + "/" + R.raw.barosan//setam path
videoView1.setVideoURI(Uri.parse(path))//cuplam viseo cu path
val isPlaying = videoView1.isPlaying
if (isPlaying) {
videoView1.pause()
} else {
videoView1.start()
}
})
//working motivation
val btn_munca = findViewById<Button>(R.id.munca)//selectam buton
btn_munca.setOnClickListener({
val videoView1 = findViewById<VideoView>(R.id.VideoView)//selectam viseoviewul
val path = "android.resource://" + packageName + "/" + R.raw.somer//setam path
videoView1.setVideoURI(Uri.parse(path))//cuplam viseo cu path
val isPlaying = videoView1.isPlaying
if (isPlaying) {
videoView1.pause()
} else {
videoView1.start()
}
})
//e urat
val btn_ex = findViewById<Button>(R.id.fost)//selectam buton
btn_ex.setOnClickListener({
val videoView1 = findViewById<VideoView>(R.id.VideoView)//selectam viseoviewul
val path = "android.resource://" + packageName + "/" + R.raw.urat//setam path
videoView1.setVideoURI(Uri.parse(path))//cuplam viseo cu path
val isPlaying = videoView1.isPlaying
if (isPlaying) {
videoView1.pause()
} else {
videoView1.start()
}
})
//e urat
val btn_gay = findViewById<Button>(R.id.gay)//selectam buton
btn_gay.setOnClickListener({
val videoView1 = findViewById<VideoView>(R.id.VideoView)//selectam viseoviewul
val path = "android.resource://" + packageName + "/" + R.raw.invers//setam path
videoView1.setVideoURI(Uri.parse(path))//cuplam viseo cu path
val isPlaying = videoView1.isPlaying
if (isPlaying) {
videoView1.pause()
} else {
videoView1.start()
}
})
//vis
val btn_vis = findViewById<Button>(R.id.vis)//selectam buton
btn_vis.setOnClickListener({
val videoView1 = findViewById<VideoView>(R.id.VideoView)//selectam viseoviewul
val path = "android.resource://" + packageName + "/" + R.raw.vis//setam path
videoView1.setVideoURI(Uri.parse(path))//cuplam viseo cu path
val isPlaying = videoView1.isPlaying
if (isPlaying) {
videoView1.pause()
} else {
videoView1.start()
}
})
//netflix
val btn_netflix= findViewById<Button>(R.id.netflix)//selectam buton
btn_netflix.setOnClickListener({
val videoView1 = findViewById<VideoView>(R.id.VideoView)//selectam viseoviewul
val path = "android.resource://" + packageName + "/" + R.raw.netflix//setam path
videoView1.setVideoURI(Uri.parse(path))//cuplam viseo cu path
val isPlaying = videoView1.isPlaying
if (isPlaying) {
videoView1.pause()
} else {
videoView1.start()
}
})
//aftercov
val btn_ac= findViewById<Button>(R.id.aftercov)//selectam buton
btn_ac.setOnClickListener({
val videoView1 = findViewById<VideoView>(R.id.VideoView)//selectam viseoviewul
val path = "android.resource://" + packageName + "/" + R.raw.aftaercovid//setam path
videoView1.setVideoURI(Uri.parse(path))//cuplam viseo cu path
val isPlaying = videoView1.isPlaying
if (isPlaying) {
videoView1.pause()
} else {
videoView1.start()
}
})
//cov
val btn_cov= findViewById<Button>(R.id.cov)//selectam buton
btn_cov.setOnClickListener({
val videoView1 = findViewById<VideoView>(R.id.VideoView)//selectam viseoviewul
val path = "android.resource://" + packageName + "/" + R.raw.covid//setam path
videoView1.setVideoURI(Uri.parse(path))//cuplam viseo cu path
val isPlaying = videoView1.isPlaying
if (isPlaying) {
videoView1.pause()
} else {
videoView1.start()
}
})
//curcubeu
val btn_gay2= findViewById<Button>(R.id.gay2)//selectam buton
btn_gay2.setOnClickListener({
val videoView1 = findViewById<VideoView>(R.id.VideoView)//selectam viseoviewul
val path = "android.resource://" + packageName + "/" + R.raw.curcubeu//setam path
videoView1.setVideoURI(Uri.parse(path))//cuplam viseo cu path
val isPlaying = videoView1.isPlaying
if (isPlaying) {
videoView1.pause()
} else {
videoView1.start()
}
})
//idee
val btn_idcov= findViewById<Button>(R.id.ideecov)//selectam buton
btn_idcov.setOnClickListener({
val videoView1 = findViewById<VideoView>(R.id.VideoView)//selectam viseoviewul
val path = "android.resource://" + packageName + "/" + R.raw.ideecovid//setam path
videoView1.setVideoURI(Uri.parse(path))//cuplam viseo cu path
val isPlaying = videoView1.isPlaying
if (isPlaying) {
videoView1.pause()
} else {
videoView1.start()
}
})
//masa
val btn_masa= findViewById<Button>(R.id.masa)//selectam buton
btn_masa.setOnClickListener({
val videoView1 = findViewById<VideoView>(R.id.VideoView)//selectam viseoviewul
val path = "android.resource://" + packageName + "/" + R.raw.masa//setam path
videoView1.setVideoURI(Uri.parse(path))//cuplam viseo cu path
val isPlaying = videoView1.isPlaying
if (isPlaying) {
videoView1.pause()
} else {
videoView1.start()
}
})
//minore
val btn_min= findViewById<Button>(R.id.minore)//selectam buton
btn_min.setOnClickListener({
val videoView1 = findViewById<VideoView>(R.id.VideoView)//selectam viseoviewul
val path = "android.resource://" + packageName + "/" + R.raw.minore//setam path
videoView1.setVideoURI(Uri.parse(path))//cuplam viseo cu path
val isPlaying = videoView1.isPlaying
if (isPlaying) {
videoView1.pause()
} else {
videoView1.start()
}
})
//engleza
val btn_eng= findViewById<Button>(R.id.mn)//selectam buton
btn_eng.setOnClickListener({
val videoView1 = findViewById<VideoView>(R.id.VideoView)//selectam viseoviewul
val path = "android.resource://" + packageName + "/" + R.raw.mn//setam path
videoView1.setVideoURI(Uri.parse(path))//cuplam viseo cu path
val isPlaying = videoView1.isPlaying
if (isPlaying) {
videoView1.pause()
} else {
videoView1.start()
}
})
//bj
val btn_bj= findViewById<Button>(R.id.bj)//selectam buton
btn_bj.setOnClickListener({
val videoView1 = findViewById<VideoView>(R.id.VideoView)//selectam viseoviewul
val path = "android.resource://" + packageName + "/" + R.raw.oral//setam path
videoView1.setVideoURI(Uri.parse(path))//cuplam viseo cu path
val isPlaying = videoView1.isPlaying
if (isPlaying) {
videoView1.pause()
} else {
videoView1.start()
}
})
//weed
val btn_weed= findViewById<Button>(R.id.beat)//selectam buton
btn_weed.setOnClickListener({
val videoView1 = findViewById<VideoView>(R.id.VideoView)//selectam viseoviewul
val path = "android.resource://" + packageName + "/" + R.raw.weed//setam path
videoView1.setVideoURI(Uri.parse(path))//cuplam viseo cu path
val isPlaying = videoView1.isPlaying
if (isPlaying) {
videoView1.pause()
} else {
videoView1.start()
}
})
}
}