Пікірлер
@dev_sonu
@dev_sonu Күн бұрын
Informative
@imSagarMalhotra
@imSagarMalhotra Күн бұрын
@@dev_sonu Glad you liked
@RohitDubey_93
@RohitDubey_93 3 күн бұрын
I have few queries about learning android developement can we connect somewhere??? I'm seeing this video today
@imSagarMalhotra
@imSagarMalhotra 3 күн бұрын
@@RohitDubey_93 Twitter/linkedin in profile
@herCoding
@herCoding 4 күн бұрын
Short and Understandable.
@imSagarMalhotra
@imSagarMalhotra 4 күн бұрын
@@herCoding glad you liked
@Berozgar_Developer
@Berozgar_Developer 5 күн бұрын
Bhai please reply dena... Maine Ek Android project Banaya aur uski APK ko compile kara phir usko classes.dex aur classes.jar banaa liya aur Ab Main Chahta Hun Ki usko library upload karo lekin Bina source code ke kya yah possible hai agar han to Kaise main bahut Thak Chuka hun videos dekh dekh kar
@imSagarMalhotra
@imSagarMalhotra 5 күн бұрын
@@Berozgar_Developer as far as i know, NO
@LogicalShivam
@LogicalShivam 11 күн бұрын
class Solution { public ArrayList<Integer> findSubarray(int arr[]) { // code here int maxSum = 0; int maxStart = 0; int maxEnd = 0; int currSum = 0; int currStart = 0; for(int i=0; i<arr.length; i++) { if(arr[i] < 0) { currSum = 0; currStart = i+1;; } else { currSum+=arr[i]; } if(currSum > maxSum) { maxSum = currSum; maxStart = currStart; maxEnd = i+1; } else if(currSum==maxSum) { int currDis = i+1 - currStart; int maxDis = maxEnd - maxStart; if(currDis>maxDis) { maxStart=currStart; maxEnd = i+1; } } } ArrayList<Integer> al = new ArrayList<>(); for(int i=maxStart; i<maxEnd; i++) { al.add(arr[i]); } if(al.size() == 0) { al.add(-1); } return al; } }
@umardev500
@umardev500 13 күн бұрын
then how to use that base profile file
@umardev500
@umardev500 13 күн бұрын
how to use real device
@shubhamsahil6267
@shubhamsahil6267 15 күн бұрын
Great explanation
@imSagarMalhotra
@imSagarMalhotra 15 күн бұрын
@@shubhamsahil6267 glad it helped
@singh1.1
@singh1.1 15 күн бұрын
hello sir , i am having a problem in an app i am building . i am fetching location using a service and wanted to show the latitude and longitude data in compose UI using viewModel , i used hilt DI to do so but failed ( but was successful using object ). kindly guide me how can i achieve that using viewModel . Make a video on data sharing within the apps different components if possible , thanks .
@imSagarMalhotra
@imSagarMalhotra 15 күн бұрын
@@singh1.1 Can you elaborate your usecase wdym by you used HILT and failed but using Object worked?
@singh1.1
@singh1.1 15 күн бұрын
@imSagarMalhotra I tried to inject viewmodel in the LocationFetch service I made . But it was having an error . I made a seperate singleton object in which I stored the data in a var , then I accessed it in the UI. Basically I was unable to use the same viewmodel in the UI and LocationFetch service. And injecting viewmodel in the LocationFetch class was causing error .
@imSagarMalhotra
@imSagarMalhotra 14 күн бұрын
@@singh1.1 Instead of viewmode, use a helper/Manager class
@singh1.1
@singh1.1 14 күн бұрын
@@imSagarMalhotra ok sir , thanks . i was wondering if it is possible to do using viewModel
@imSagarMalhotra
@imSagarMalhotra 14 күн бұрын
@@singh1.1 no
@cliff_odume
@cliff_odume 17 күн бұрын
Please do another video which injects the database using koin
@imSagarMalhotra
@imSagarMalhotra 17 күн бұрын
@@cliff_odume kmp series otw
@cliff_odume
@cliff_odume 17 күн бұрын
Thanks for the video, Can you inject the database instance with Koin?
@s.sri511
@s.sri511 18 күн бұрын
GetParcelable is deprecated and causing crash in android 13 .how to fix it
@imSagarMalhotra
@imSagarMalhotra 18 күн бұрын
There is another overloaded function with just some extra parameter, check it
@s.sri511
@s.sri511 18 күн бұрын
Can you please share link. Because I am struggling since morning but haven't found any correct approch and till is happening only on Android 13 that too on release only not able to reproduce in emulator
@nishantdalvi9470
@nishantdalvi9470 20 күн бұрын
Just a suggestion i will like to give 1:30 Try to maintain gaps while switching from one topic to another, I wondered as if you were continuing the explanation for Single Top after 1:30
@imSagarMalhotra
@imSagarMalhotra 20 күн бұрын
@@nishantdalvi9470 Thanks, gotta improve on my speaking skills
@MSaikrishnaPattnaik
@MSaikrishnaPattnaik 29 күн бұрын
The explanation is great
@imSagarMalhotra
@imSagarMalhotra 29 күн бұрын
@@MSaikrishnaPattnaik Glad it helped!
@impatientgaming9868
@impatientgaming9868 Ай бұрын
nice
@akashpareek393
@akashpareek393 Ай бұрын
fantastic brother , great explanation
@arvindynr
@arvindynr Ай бұрын
here's generalized approach-> public class DivisorsCountOptimized { // Function to count how many numbers <= n have exactly k divisors public static int countNumbersWithKDivisors(int n, int k) { // Step 1: Precompute the divisor count for each number from 1 to n int[] divisorCount = new int[n + 1]; // divisorCount[i] will store the number of divisors of i // Use a modified sieve to count divisors for each number for (int i = 1; i <= n; i++) { for (int j = i; j <= n; j += i) { divisorCount[j]++; // i is a divisor of all multiples of i } } // Step 2: Count how many numbers have exactly k divisors int result = 0; for (int i = 1; i <= n; i++) { if (divisorCount[i] == k) { result++; } } return result; } public static void main(String[] args) { // Example usage int n = 10; // Upper bound int k = 4; // Exact number of divisors // Output the result System.out.println("Count of numbers <= " + n + " with exactly " + k + " divisors: " + countNumbersWithKDivisors(n, k)); } }
@virajbenade5572
@virajbenade5572 Ай бұрын
* What went wrong: Execution failed for task ':composeApp:compileKotlinWasmJs'. > A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction > Compilation error. See log for more details brother i face this issue how we solve this error
@nkc-e1c
@nkc-e1c Ай бұрын
in My case it always falls in addOnFailureListener method how could i resolve it ??
@syedabuthahir2421
@syedabuthahir2421 Ай бұрын
Locale changes working in androdi 13 and above devices , below devices is not working..
@DakshAgarwal-w6s
@DakshAgarwal-w6s 2 ай бұрын
I want to do the same thing in java. Can you help me in that
@satwinder_momi
@satwinder_momi 2 ай бұрын
6:30 😂 mene just f12 press Kiya, and inspect tool open ho gya 😀
@imSagarMalhotra
@imSagarMalhotra 2 ай бұрын
Yes, that is the way, btw I meant to say we can't have Options menu by right clicking.
@satwinder_momi
@satwinder_momi Ай бұрын
@imSagarMalhotra btw you're doing good, I have a query if you can help me bro, I want to choose between react and kmp, which should I prefer, and wanted to use Golang for back-end, for a real project, not for practice, actual work
@imSagarMalhotra
@imSagarMalhotra Ай бұрын
@@satwinder_momi if product contains too complex functionalities and not just local storage and APIs then go for RN else kmp
@satwinder_momi
@satwinder_momi Ай бұрын
@@imSagarMalhotra thanks bro
@satwinder_momi
@satwinder_momi 2 ай бұрын
6:15 mene direct chat gpt se puchh liya 😂 ek baar me ho gya solve 😂😂😂
@imSagarMalhotra
@imSagarMalhotra 2 ай бұрын
Yes, now chatGPT and other AIs can help with KMP a lot
@marlonlom
@marlonlom 2 ай бұрын
which libraries did you use for the tv module?
@abhidnyasonawane9608
@abhidnyasonawane9608 2 ай бұрын
if i want to use it with the viewmodel and i am not using the 2 screen approach once the user click send otp then the bottom sheet will appear there the otp will be pasted
@imSagarMalhotra
@imSagarMalhotra 2 ай бұрын
Add a VM event to your composable that triggers sheet
@aasthajain92
@aasthajain92 2 ай бұрын
Nice Explaination
@kushagrarajput6957
@kushagrarajput6957 2 ай бұрын
Bhai Bhadiya explanation di hai
@radheshyampatel5578
@radheshyampatel5578 2 ай бұрын
We want wear os also
@abhidnyasonawane9608
@abhidnyasonawane9608 2 ай бұрын
i have followed you on the medium i like your article so much thank for making the beautiful content it help me a lot keep creating content
@imSagarMalhotra
@imSagarMalhotra 2 ай бұрын
Thanks
@LearningCrypto22
@LearningCrypto22 2 ай бұрын
Can you make a video on taking input in different languages, translating it to English, and then sending it as an API request?
@saniakumari117
@saniakumari117 2 ай бұрын
In this approach, the Time Complexity should be O(N*K) not O(N), right?
@Machiuka
@Machiuka 2 ай бұрын
Very interesting tutorial. How to use m3u url's for playing IPTV? Could you make a separate video with that? Thank you for sharing !
@imSagarMalhotra
@imSagarMalhotra 2 ай бұрын
sure, I will research on it and try
@alex-oc1wo
@alex-oc1wo 2 ай бұрын
Hi
@doke6057
@doke6057 3 ай бұрын
Thanks
@imSagarMalhotra
@imSagarMalhotra 3 ай бұрын
Welcome
@saiuya
@saiuya 3 ай бұрын
thank you
@imSagarMalhotra
@imSagarMalhotra 3 ай бұрын
Welcome
@sagaragrawal5809
@sagaragrawal5809 3 ай бұрын
hi Sagar, I need some help android tv app. How can i connect with you
@imSagarMalhotra
@imSagarMalhotra 3 ай бұрын
Linkedin/Twitter from bio
@notsignificant7724
@notsignificant7724 3 ай бұрын
very informative. Good job Sagar
@imSagarMalhotra
@imSagarMalhotra 3 ай бұрын
thanks
@NAUSHADKHAN-ij9ce
@NAUSHADKHAN-ij9ce 3 ай бұрын
I recently saw your comments on a remote job interview and went through your channel, which I found inspiring. I'm a 2024 graduate but haven't secured a job yet due to some personal reasons and a few wrong decisions I made over the past 3-4 months. However, I'm now ready to restart everything. I’ve always wanted to do something independently, and I’m particularly interested in working remotely, especially in content creation and remote jobs, just like you. Currently, I’m learning Web3 and Fullstack development. What steps would you recommend for someone like me, starting fresh and aiming to break into remote work and content creation while continuing to learn Web3 and Fullstack development?
@imSagarMalhotra
@imSagarMalhotra 3 ай бұрын
@@NAUSHADKHAN-ij9ce before entering content creation I'll recommend to first create good projects and reach a decent level of expertise. Content creation surely eats a lot of time
@NAUSHADKHAN-ij9ce
@NAUSHADKHAN-ij9ce 3 ай бұрын
Noted tysm
@iniyanarul3571
@iniyanarul3571 3 ай бұрын
Nice
@imSagarMalhotra
@imSagarMalhotra 3 ай бұрын
Welcome
@amit470
@amit470 3 ай бұрын
Great video ❤❤❤
@imSagarMalhotra
@imSagarMalhotra 3 ай бұрын
thankyou
@Prakhar1701
@Prakhar1701 3 ай бұрын
I have learned android development to an intermediate level, but jobs nahi lag rahi as a freser, any suggestion how I can get job?
@imSagarMalhotra
@imSagarMalhotra 3 ай бұрын
@@Prakhar1701 projects
@Prakhar1701
@Prakhar1701 3 ай бұрын
@@imSagarMalhotraI have developed many projects using kotlin, jetpack compose, dagger hilt, paging 3, Firebase, Room, MVVM, Clean Architecture
@satyamjha3917
@satyamjha3917 3 ай бұрын
how to solve this error : java.lang.NoSuchMethodError: No static method AnimatedBox-4iv8ezw(JFILandroidx/compose/runtime/Composer;II)V in class Lcom/megamart/satyamcompose/SatyamcomposecodeKt; or its super classes (declaration of 'com.megamart.satyamcompose.SatyamcomposecodeKt' appears in /data/app/~~ghOdmen5Qk4PEAc3ySwKew==/com.theapplicationpad.mvvm-3pxLrkyexgwviWwsYFJgdw==/base.apk!classes7.dex)
@rks1924
@rks1924 3 ай бұрын
Android Development with Kotlin ka updated roadmap ke video bna dejy . kitny time my kr skty hain
@imSagarMalhotra
@imSagarMalhotra 3 ай бұрын
@@rks1924 My old roadmap video is still valid, checkout on homepage, 4-5 months are good enough.
@nitinlondhe4799
@nitinlondhe4799 3 ай бұрын
How can access xml views in testcases
@Saifuddin_Adenwala53
@Saifuddin_Adenwala53 3 ай бұрын
Bhaiya do we need a macbook if we want to make a career in KMP or is there any hack for running ios emulators on windows. Because recently i got a internship offer from a US based client who directly approached me through my linkedin. The offer was of a KMP project but got rejected due to not enough projects/experience on KMP as i dont have a macbook. I really needed a guidance on these. So bhaiya can you please help out ? Edit: Btw the offer was quite appealing through which I would have bought a MacBook Air with M3 chip in 6 months
@imSagarMalhotra
@imSagarMalhotra 3 ай бұрын
@@Saifuddin_Adenwala53 in 6 months? That's not appealing at all trust me! You can either use a virtual machine if your windows is powerful or you can also practice without creating ios apps, you'll get enough knowledge for a good job. Just get started
@prem_kumar
@prem_kumar 3 ай бұрын
sir can you please make a video on how to setup dagger hilt for android projects. 🙃 I am not able to complete many youtube projects just because of dagger setup failure.
@imSagarMalhotra
@imSagarMalhotra 3 ай бұрын
@@prem_kumar sure
@rahimovdev
@rahimovdev 3 ай бұрын
*thank you very much for help , in real you helped me a lot and god bless you!*
@imSagarMalhotra
@imSagarMalhotra 3 ай бұрын
@@rahimovdev Made my day🙏🏼
@amit470
@amit470 4 ай бұрын
Informative videos, Thanks man 👍🏻👍🏻
@imSagarMalhotra
@imSagarMalhotra 4 ай бұрын
@@amit470 🙏🏼
@dev_sonu
@dev_sonu 4 ай бұрын
Bro you need to change the title of video.
@imSagarMalhotra
@imSagarMalhotra 4 ай бұрын
@@dev_sonu damn! Thanks for letting me know 🤣
@kanpuriya_engineer
@kanpuriya_engineer 4 ай бұрын
Great Explanation man, to the point <3