Kotlin provides keyword for singleton? Kinda weird because singleton is considered bad pattern
@niranjankhatri780022 күн бұрын
You are correct that Kotlin provides the object keyword, which is often used to create singletons. While singletons can be considered an anti-pattern in some cases, they do have valid use cases, and Kotlin's approach aims to make them safer and more concise.
@niranjankhatri780023 күн бұрын
Thanks for watching and coding. 👨🚀👨🚀👨🚀👨🚀👨🚀
@niranjankhatri780023 күн бұрын
Thanks for watching. Happy Coding 👨🏻💻👨🏻💻👨🏻💻👨🚀👨🚀
@niranjankhatri780023 күн бұрын
Thanks for watching. Happy Coding 🚀🚀👨🏻💻👨🏻💻
@UCgBe324 күн бұрын
Terrible example, why not set an object property, get a new Singleton instance and proof that the value is still set?
@niranjankhatri780023 күн бұрын
Ya thanks for the observation. Introducing an additional object property to hold the Singleton instance is redundant and doesn't provide any benefits. This was done just for demo purpose. I have provided the detail description another shorts. kzbin.infoBTJAmI3uGHY?feature=share
@MostafaMohamed-ie6trАй бұрын
can you share the code ?
@Moonbix_Official3 ай бұрын
How to access whatsapp status folder in sdk 34 . Please make video with java code
@mattheusmachado3 ай бұрын
thank you very much ✌
@BHARATGARANDE4 ай бұрын
please increase your voice.....
@Bhavin-Desai5 ай бұрын
You need to annotate the class with RoboelectricTestRunner for these tests to function with Roboelectric
@gudiyakumari36886 ай бұрын
Can you provide a roadmap to learn KMP that anyone can learn
What to do if I don’t have there any device available? How to setup them?
@ardian23656 ай бұрын
Nice work my friend
@niranjankhatri78006 ай бұрын
Thank you! Cheers!
@ShubhamSevak-f9e7 ай бұрын
hey , i have seen so many people are suggesting this way to solve conflict but it throws error as -> It appears as if you are trying to run this mock maker on Android which does not support the instrumentation API.
@niranjankhatri78007 ай бұрын
Please follow this entire tutorial where i have explained in detail about Mockito: kzbin.info/www/bejne/rHqVeJtqfL15kNk
@onealoneal70477 ай бұрын
Sounds great amazing song to code ... keep working !
@niranjankhatri78007 ай бұрын
Thanks ;)
@MoneyWin3458 ай бұрын
😂 English
@CodePursuit8 ай бұрын
is read external storage permission mandatory to be mentioned in android manifest file
@niranjankhatri78008 ай бұрын
NO, it's not mandaotry. However, if your app needs to access files on External Storage, like SD card, you must declare the permission in the manifest file. <manifest ...> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> ... </manifest>
@Subratsss8 ай бұрын
Please upload a video about before release the Android App what is the procedure need to be check in app.
@niranjankhatri78008 ай бұрын
I will do that in upcoming videos. Suggest me other more topics if you want me to make tutorials on. Thanks.
@Subratsss8 ай бұрын
@@niranjankhatri7800 sure
@Capy3509 ай бұрын
Thanks
@niranjankhatri78008 ай бұрын
Welcome
@PrajwalCanonShutter9 ай бұрын
Please add link to your repo in description
@niranjankhatri78008 ай бұрын
I have uploaded the repo link.
@ashubrandon966910 ай бұрын
Please my techno spark 7 supports DSU but when I want to restart after downloading, it does not restart with the dynamic system.please help
@trungtranthanh891211 ай бұрын
omg
@mirniyazulhaque3583 Жыл бұрын
How can i run on my Iphone
@c4custom4907 ай бұрын
no you can't run it on iphone because iphone dosn't support 3rd party
@sudesh6807 Жыл бұрын
How did u enable those green and red lines in left gutter?
@Subratsss Жыл бұрын
Explaining the concept is very good
@niranjankhatri7800 Жыл бұрын
Thanks for the motivation ;)
@jeeaspiration699 Жыл бұрын
please help me how to fix it i am getting problem each time i want to run my first app 3 issues were found when checking AAR metadata: 1. Dependency 'androidx.activity:activity:1.8.0' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs. :app is currently compiled against android-33. Recommended action: Update this project to use a newer compileSdk of at least 34, for example 34. Note that updating a library or application's compileSdk (which allows newer APIs to be used) can be done separately from updating targetSdk (which opts the app in to new runtime behavior) and minSdk (which determines which devices the app can be installed on). 2. Dependency 'androidx.activity:activity-ktx:1.8.0' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs. :app is currently compiled against android-33. Recommended action: Update this project to use a newer compileSdk of at least 34, for example 34. Note that updating a library or application's compileSdk (which allows newer APIs to be used) can be done separately from updating targetSdk (which opts the app in to new runtime behavior) and minSdk (which determines which devices the app can be installed on). 3. Dependency 'androidx.activity:activity-compose:1.8.0' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs. :app is currently compiled against android-33. Recommended action: Update this project to use a newer compileSdk of at least 34, for example 34. Note that updating a library or application's compileSdk (which allows newer APIs to be used) can be done separately from updating targetSdk (which opts the app in to new runtime behavior) and minSdk (which determines which devices the app can be installed on).
@sanaullahbhatti8273 Жыл бұрын
Sir, its request. when you start and finish the lecture, for we people please show your all files like, build.gradle, or other files, we are unaware about the dependencies and plugins to use, only a request , my apology for any dishurt you feel
@niranjankhatri7800 Жыл бұрын
I will try my best
@betterboyfilms Жыл бұрын
Why buildSrc is making my project not syncing? Gradle 8.0.0 is starting deamon twice and there is error then that journal-1.lock is locked
@niranjankhatri7800 Жыл бұрын
Update Gradle Wrapper: Sometimes, updating the Gradle wrapper to the latest version can help resolve synchronization issues. You can do this by running: ./gradlew wrapper --gradle-version X.Y.Z Replace X.Y.Z with the desired Gradle version. Finally :Clean and Rebuild: Try cleaning your project and rebuilding it: ./gradlew clean
@betterboyfilms Жыл бұрын
@@niranjankhatri7800 Sorry for problem. In my case it was Eset antyvirus which has firewall. Firewall was blocking localhost connection between different instances of gradle
@niranjankhatri7800 Жыл бұрын
Ok Chill out. Enjoy KMM.
@julielittle7247 Жыл бұрын
Promo`SM 🏃
@niranjankhatri7800 Жыл бұрын
ya sure.
@vemiramirkhanyan5357 Жыл бұрын
Thanks for video , but what about syntax highlighting has been temporarily turned off in file build.gradle because of an internal error ? And can you say how can I solve this issue ?
@niranjankhatri7800 Жыл бұрын
If you're encountering an error message that says "syntax highlighting has been temporarily turned off in file build.gradle because of an internal error," it's likely related to your code editor or integrated development environment (IDE) rather than the code itself. This message indicates that the IDE's syntax highlighting feature, which helps visually distinguish different parts of your code by applying different colors, has been disabled due to an internal error within the IDE. Here are some steps you can take to address this issue: 1. **Restart the IDE**: Sometimes, IDEs encounter temporary glitches that can be resolved by simply restarting the application. 2. **Check for IDE Updates**: Ensure that your IDE is up-to-date. Sometimes, IDE updates include bug fixes that could resolve issues like this. 3. **Review IDE Documentation**: Check the documentation or user guides for your specific IDE to see if there's any guidance related to this error message. IDE developers often document known issues and their solutions. 4. **Check for Plugin Conflicts**: If you're using any plugins or extensions in your IDE, they might be causing conflicts. Try disabling or uninstalling recently added plugins to see if the issue persists. 5. **File Integrity**: Ensure that the `build.gradle` file itself is not corrupted. If the file is damaged, it might be causing issues with the IDE's parsing and syntax highlighting features. 6. **Clear IDE Cache**: IDEs often cache various files and data to improve performance. Try clearing the IDE's cache and see if the issue goes away. 7. **IDE Settings**: Check your IDE's settings related to syntax highlighting. There might be an option to reset or configure these settings. 8. **Contact IDE Support**: If none of the above steps work, consider reaching out to the support channels for your IDE. They might be able to provide specific guidance or a solution for this issue. Remember that the exact steps you take might vary depending on the IDE you're using. If possible, provide more information about the IDE you're using, any recent changes or updates you've made, and any specific error messages you've encountered. This will help in providing more targeted assistance.
@niranPrachyaTravelDiaries Жыл бұрын
Kmm 🎉
@onedev02 Жыл бұрын
wow finally))
@niranjankhatri7800 Жыл бұрын
Thanks. ;)
@onedev02 Жыл бұрын
Hi bro, you have good lessons, but it would be even better if you do a series of lessons on creating applications from A to Z)
@niranjankhatri7800 Жыл бұрын
Great suggestion! I am working on it.
@rohitjakhar6672 Жыл бұрын
Informative
@niranjankhatri7800 Жыл бұрын
Thanks
@bilaliqbal3311 Жыл бұрын
❤
@niranjankhatri7800 Жыл бұрын
Thanks
@bilaliqbal3311 Жыл бұрын
Bhai hum kesy check kr sky Ky app har mobile ki screen pr sahi lagy gi ???
@niranjankhatri7800 Жыл бұрын
Bro you can try 2 solutions 1. Android Virtual Device (AVD) Manager: Android Studio provides an Android Virtual Device (AVD) manager that allows you to create and configure virtual devices with different screen sizes, resolutions, and densities. You can use these virtual devices to test your app on various screen sizes. Here's how: Open the AVD Manager by clicking on "Tools" > "AVD Manager" in Android Studio. Create one or more virtual devices with different screen sizes and resolutions. Make sure to choose a variety of devices, including phones and tablets, with different screen sizes and densities. Start each virtual device, and install your app on them for testing. Interact with your app on these virtual devices to ensure that the user interface adapts correctly to different screen sizes. 2. Layout Variants: Android Studio provides a feature called "Layout Variants" that allows you to preview your app's layout on various screen configurations within the layout editor. Here's how: Open one of your layout XML files in Android Studio. In the layout editor, you'll find the "Layout Variants" panel on the right side. You can select different screen sizes, orientations, and resolutions to see how your layout adapts. Inspect the layout in different variants to ensure that your UI elements scale and position correctly.
@bilaliqbal3311 Жыл бұрын
❤
@niranjankhatri7800 Жыл бұрын
Thanks
@programminglearning9715 Жыл бұрын
Question: For exercise 5, I did "if (i%5 == 0)" instead of "if ((i - start)%5 == 4)" and it was marked incorrect even though it produced the same result. Is there anything wrong with my answer? thanks!
@niranjankhatri7800 Жыл бұрын
To check if your solution is correct: please try to test with different inputs (start, end) in everyFifth(start, end) function. You can find the difference there. Thank you.
@tanveerabbas26 Жыл бұрын
bro what is concept ??
@niranjankhatri7800 Жыл бұрын
There was some examples for inner class.
@airbo793 Жыл бұрын
I'm following this book and I always refer to your videos when I get stuck with an exercise. Thanks!
@niranjankhatri7800 Жыл бұрын
Thanks 🤟
@faisaldeveloper6961 Жыл бұрын
you should learn and prepare first then record video
@niranjankhatri7800 Жыл бұрын
Ok soon i am coming with more KMM tutorials. Thanks.
@bilaliqbal3311 Жыл бұрын
Trace word kyun add kia hai?
@niranjankhatri7800 Жыл бұрын
Trace is just used to check if the answers are correct.
@bilaliqbal3311 Жыл бұрын
@@niranjankhatri7800 thanks❣️
@oxfaaaaa9687 Жыл бұрын
Okay, what do u mean by your videos? I just don't get it
@niranjankhatri7800 Жыл бұрын
It's about Learning Kotlin programming language.
@oxfaaaaa9687 Жыл бұрын
@@niranjankhatri7800 write a kotlin compiler in kotlin, it would be much more useful and entertaining for us
@niranjankhatri7800 Жыл бұрын
Thanks for the idea.
@oxfaaaaa9687 Жыл бұрын
@@niranjankhatri7800 have u got plan to implement the idea?
@onedev02 Жыл бұрын
Hello, do not tell me where this task is, how can I also connect this to my IDE?
@niranjankhatri7800 Жыл бұрын
You just need to install the plugins to do so. Thanks.
@concaeditz Жыл бұрын
💙
@bilaliqbal3311 Жыл бұрын
Very informative
@bilaliqbal3311 Жыл бұрын
New keywords is key idea huta hai?
@niranjankhatri7800 Жыл бұрын
ya bro.
@bilaliqbal3311 Жыл бұрын
Bhai sat Jo description aty hai ya just say open huty hai Android studio