I have few queries about learning android developement can we connect somewhere??? I'm seeing this video today
@imSagarMalhotra3 күн бұрын
@@RohitDubey_93 Twitter/linkedin in profile
@herCoding4 күн бұрын
Short and Understandable.
@imSagarMalhotra4 күн бұрын
@@herCoding glad you liked
@Berozgar_Developer5 күн бұрын
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
@imSagarMalhotra5 күн бұрын
@@Berozgar_Developer as far as i know, NO
@LogicalShivam11 күн бұрын
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; } }
@umardev50013 күн бұрын
then how to use that base profile file
@umardev50013 күн бұрын
how to use real device
@shubhamsahil626715 күн бұрын
Great explanation
@imSagarMalhotra15 күн бұрын
@@shubhamsahil6267 glad it helped
@singh1.115 күн бұрын
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 .
@imSagarMalhotra15 күн бұрын
@@singh1.1 Can you elaborate your usecase wdym by you used HILT and failed but using Object worked?
@singh1.115 күн бұрын
@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 .
@imSagarMalhotra14 күн бұрын
@@singh1.1 Instead of viewmode, use a helper/Manager class
@singh1.114 күн бұрын
@@imSagarMalhotra ok sir , thanks . i was wondering if it is possible to do using viewModel
@imSagarMalhotra14 күн бұрын
@@singh1.1 no
@cliff_odume17 күн бұрын
Please do another video which injects the database using koin
@imSagarMalhotra17 күн бұрын
@@cliff_odume kmp series otw
@cliff_odume17 күн бұрын
Thanks for the video, Can you inject the database instance with Koin?
@s.sri51118 күн бұрын
GetParcelable is deprecated and causing crash in android 13 .how to fix it
@imSagarMalhotra18 күн бұрын
There is another overloaded function with just some extra parameter, check it
@s.sri51118 күн бұрын
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
@nishantdalvi947020 күн бұрын
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
@imSagarMalhotra20 күн бұрын
@@nishantdalvi9470 Thanks, gotta improve on my speaking skills
@MSaikrishnaPattnaik29 күн бұрын
The explanation is great
@imSagarMalhotra29 күн бұрын
@@MSaikrishnaPattnaik Glad it helped!
@impatientgaming9868Ай бұрын
nice
@akashpareek393Ай бұрын
fantastic brother , great explanation
@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Ай бұрын
* 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Ай бұрын
in My case it always falls in addOnFailureListener method how could i resolve it ??
@syedabuthahir2421Ай бұрын
Locale changes working in androdi 13 and above devices , below devices is not working..
@DakshAgarwal-w6s2 ай бұрын
I want to do the same thing in java. Can you help me in that
@satwinder_momi2 ай бұрын
6:30 😂 mene just f12 press Kiya, and inspect tool open ho gya 😀
@imSagarMalhotra2 ай бұрын
Yes, that is the way, btw I meant to say we can't have Options menu by right clicking.
@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Ай бұрын
@@satwinder_momi if product contains too complex functionalities and not just local storage and APIs then go for RN else kmp
@satwinder_momiАй бұрын
@@imSagarMalhotra thanks bro
@satwinder_momi2 ай бұрын
6:15 mene direct chat gpt se puchh liya 😂 ek baar me ho gya solve 😂😂😂
@imSagarMalhotra2 ай бұрын
Yes, now chatGPT and other AIs can help with KMP a lot
@marlonlom2 ай бұрын
which libraries did you use for the tv module?
@abhidnyasonawane96082 ай бұрын
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
@imSagarMalhotra2 ай бұрын
Add a VM event to your composable that triggers sheet
@aasthajain922 ай бұрын
Nice Explaination
@kushagrarajput69572 ай бұрын
Bhai Bhadiya explanation di hai
@radheshyampatel55782 ай бұрын
We want wear os also
@abhidnyasonawane96082 ай бұрын
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
@imSagarMalhotra2 ай бұрын
Thanks
@LearningCrypto222 ай бұрын
Can you make a video on taking input in different languages, translating it to English, and then sending it as an API request?
@saniakumari1172 ай бұрын
In this approach, the Time Complexity should be O(N*K) not O(N), right?
@Machiuka2 ай бұрын
Very interesting tutorial. How to use m3u url's for playing IPTV? Could you make a separate video with that? Thank you for sharing !
@imSagarMalhotra2 ай бұрын
sure, I will research on it and try
@alex-oc1wo2 ай бұрын
Hi
@doke60573 ай бұрын
Thanks
@imSagarMalhotra3 ай бұрын
Welcome
@saiuya3 ай бұрын
thank you
@imSagarMalhotra3 ай бұрын
Welcome
@sagaragrawal58093 ай бұрын
hi Sagar, I need some help android tv app. How can i connect with you
@imSagarMalhotra3 ай бұрын
Linkedin/Twitter from bio
@notsignificant77243 ай бұрын
very informative. Good job Sagar
@imSagarMalhotra3 ай бұрын
thanks
@NAUSHADKHAN-ij9ce3 ай бұрын
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?
@imSagarMalhotra3 ай бұрын
@@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-ij9ce3 ай бұрын
Noted tysm
@iniyanarul35713 ай бұрын
Nice
@imSagarMalhotra3 ай бұрын
Welcome
@amit4703 ай бұрын
Great video ❤❤❤
@imSagarMalhotra3 ай бұрын
thankyou
@Prakhar17013 ай бұрын
I have learned android development to an intermediate level, but jobs nahi lag rahi as a freser, any suggestion how I can get job?
@imSagarMalhotra3 ай бұрын
@@Prakhar1701 projects
@Prakhar17013 ай бұрын
@@imSagarMalhotraI have developed many projects using kotlin, jetpack compose, dagger hilt, paging 3, Firebase, Room, MVVM, Clean Architecture
@satyamjha39173 ай бұрын
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)
@rks19243 ай бұрын
Android Development with Kotlin ka updated roadmap ke video bna dejy . kitny time my kr skty hain
@imSagarMalhotra3 ай бұрын
@@rks1924 My old roadmap video is still valid, checkout on homepage, 4-5 months are good enough.
@nitinlondhe47993 ай бұрын
How can access xml views in testcases
@Saifuddin_Adenwala533 ай бұрын
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
@imSagarMalhotra3 ай бұрын
@@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_kumar3 ай бұрын
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.
@imSagarMalhotra3 ай бұрын
@@prem_kumar sure
@rahimovdev3 ай бұрын
*thank you very much for help , in real you helped me a lot and god bless you!*