Комментарии:
instead intellij ide , can we use andriod studio or not ??????
Ответитьma'am I'm getting java lang.null pointer exception whenever i'm starting new project by choosing empty activity anybody can help'
ОтветитьI started watching this video...in this video very easy to understand...
Ответитьwhy to use init block in primary constructor block ma'am?
ОтветитьDone hello world.
ОтветитьI don't know any other programming language. I am completely new
Ответитьmam in music app development 1st part is not runs what can i do
ОтветитьNice, easy to understand.
ОтветитьYes, new this madam
ОтветитьExcellent video. Thank you.
ОтветитьThis course is a gold of dusk love from nepal kathmandu love you mam keep going and keep success : Mahadev bless you
Ответитьhi
ОтветитьI wanted to learn kotlin, do I need to learn Java?
Ответитьyes im seeing it for the first time
Ответитьhey...please upload android app development with java full course
ОтветитьMam can you provide the ppt of this... So that we can easily read and understand the basic concepts...
ОтветитьIt is my two days of attending your class, I am watching your video 1 hour per day. wow I like your free school maam thank you so much
Ответитьwhy not this way ? to change the image
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
val imageArray = arrayOf( R.drawable.imgone,
R.drawable.imgtwo,
R.drawable.imgthree,
R.drawable.imgfour)
val placenames = arrayOf("Taj Mahal", "India Gate", "Gate way of india","Lotus Temple")
var currentindex = 0
var currentindexofplace = 0
val textview = findViewById<TextView>(R.id.nameOfThePlace)
textview.text = placenames[currentindexofplace]
val imageButtonBackward = findViewById<ImageButton>(R.id.imageButtonBackward)
imageButtonBackward.setOnClickListener{
if (currentindex < imageArray.size - 1){
currentindex++
currentindexofplace++
val imagesettter = findViewById<ImageView>(R.id.imgcontainer)
imagesettter.setImageResource(imageArray[currentindex])
textview.text = placenames[currentindexofplace]
}
}
val imageButtonPrevious = findViewById<ImageButton>(R.id.imageButtonPrevious)
imageButtonPrevious.setOnClickListener{
if ( currentindex > 0){
currentindex--
currentindexofplace--
val imagesettter = findViewById<ImageView>(R.id.imgcontainer)
imagesettter.setImageResource(imageArray[currentindex])
textview.text = placenames[currentindexofplace]
}
}
}
}
For the image in same size format use this line of code in each ImageView.....
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
Hello mam my android studio facing the AVD problem HAXM file download but AVD not start ....so any solution how to solve this problem
Ответитьthese are very high level reading, let me point some improvements
1. during getter setter , please explain that the get() & set() function right below the value acts as getter setter for that value, or else its confugsing
2. lateinit , was just verbally explain in literal terms, please give real world examples like how helpful it is in dependency injection etc
ComponentActivity() and AppCompatActivity() , by default in android studio it is showing ComponentActivity() function but as both are nearly same , can i start with this function?
ОтветитьI can program VHDL :)
ОтветитьBelow the header parameter, the required parameter is not showing. What should I do ? I just simply wrote the q that you've written in your main Activity as well
ОтветитьTHANKYOU 😀❤
Ответить2x speed 👌
Ответитьyes
ОтветитьI am working on a plant identification application and I want the users to upload the image of any plant from around the world and in return they will get the information about that plant like, plant name, common names , its uses and characteristics etc. Now anyone please, tell me that which API should I integrate in my FYP ? so that users can get the accurate information. Please tell me as I have a very short time.
ОтветитьDone done mam thank you
ОтветитьNice ❤
Ответитьvar txtNameofPhoto=findViewById<TextView>(R.id.txtNameofthePlace)
val result = when (currentImage){
0->"Taj Mahal"
1->"Red Fort"
2->"Gateway of India"
3->"Golden Temple"
4->"Lord Ganesha Temple"
else->"Invalid Content"
}
txtNameofPhoto.text=result
In Places app development , The example places i have took in my app.
Thanks
Ответитьgreat thank you
Ответитьkotlin is free or paid?
ОтветитьThanks for that hard work and a extremely good quality
ОтветитьTheivame 🙏
~Nandrigal pala✨💖
clear!!
Ответить1. Variables and Data Types:
kotlin
Copy code
// Variables
var age: Int = 25
val name: String = "John"
// Data Types
val height: Double = 5.9
val isStudent: Boolean = true
2. Object-Oriented Programming (Classes, Objects, Constructors):
kotlin
Copy code
// Class definition
class Person(var name: String, var age: Int) {
// Constructor
// Member function
fun speak() {
println("Hello, my name is $name and I am $age years old.")
}
}
// Creating an object
val person1 = Person("Alice", 30)
// Accessing properties and calling methods
println(person1.name) // Output: Alice
person1.speak()
3. Control Flow - Decision Making (if-else):
kotlin
Copy code
val number = 15
if (number > 10) {
println("Number is greater than 10.")
} else {
println("Number is not greater than 10.")
}
4. Control Flow - Loops (for, while):
kotlin
Copy code
// For loop
for (i in 1..5) {
println("Count: $i")
}
// While loop
var x = 0
while (x < 5) {
println("Value of x: $x")
x++
}
5. Functions:
kotlin
Copy code
// Function definition
fun greet(name: String): String {
return "Hello, $name!"
}
// Function with default parameter
fun greetWithDefault(name: String = "Guest"): String {
return "Hello, $name!"
}
// Calling functions
val greeting = greet("Alice")
println(greeting) // Output: Hello, Alice!
val defaultGreeting = greetWithDefault()
println(defaultGreeting) // Output: Hello, Guest!
6. Arrays:
kotlin
Copy code
// Array declaration and initialization
val numbers: IntArray = intArrayOf(1, 2, 3, 4, 5)
// Accessing array elements
println("First element: ${numbers[0]}")
println("Array size: ${numbers.size}")
// Iterating through an array
for (number in numbers) {
println("Number: $number")
}
Thanks, now I can put Kotlin in my resume.
ОтветитьXML is old pattern use jetpack compose with features
ОтветитьMam humare java ka option hi nhi h only for kotlin language hi aa rhi h and hume java use krni h kya koi solution h😢
ОтветитьI think the latest version uses the JetPack Compose to build the UI. I cannot see the XML file the design and no drag and drop menus.
ОтветитьWould be neat if you could mention that you don't start using Android Studio until halfway through the video
Ответитьhi maam i reached the hello world part but in the emulator, the header is not showing
Ответитьseeing android studio for the first time
Ответитьplz continue uploading these gems videos you and your teaching style is awesome
Ответить