Make a Music Player App | Part-1 | Android Project

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ธ.ค. 2024

ความคิดเห็น • 547

  • @CodingWithEvan
    @CodingWithEvan  3 ปีที่แล้ว +20

    audio: th-cam.com/video/ge00ac8xFg4/w-d-xo.html
    Due to copyright reasons I had to remove the music from the Video. Which also removed the audio. But here I am giving a link of the audio. Really sorry for the inconvenience.

    • @NaveenSingh-js6ts
      @NaveenSingh-js6ts 3 ปีที่แล้ว

      Can you please suggest what to do?? at 3:57 it is giving error while syncing
      Please remove usages of `jcenter()` Maven repository from your build scripts and migrate your build to other Maven repositories.

    • @NaveenSingh-js6ts
      @NaveenSingh-js6ts 3 ปีที่แล้ว

      Currently detected usages in: root project 'Neo Music Player', project ':app'
      Affected Modules: app

    • @aaronfernandes4688
      @aaronfernandes4688 3 ปีที่แล้ว

      Does forward and backward buttons work?

    • @NaveenSingh-js6ts
      @NaveenSingh-js6ts 3 ปีที่แล้ว

      @@aaronfernandes4688 yeah it does

    • @ankitchand2595
      @ankitchand2595 3 ปีที่แล้ว +1

      @@NaveenSingh-js6ts ignore it, otherwise you can update suggestion

  • @sumitsuryawanshi9060
    @sumitsuryawanshi9060 3 ปีที่แล้ว +7

    Seriously , this UI is litt . keeep building projects and creating tutorials

  • @BayYolal
    @BayYolal 2 ปีที่แล้ว +3

    15:40 If you click on "Allow" and if the app has been crashed, do this code change:
    old code: items[i] = mySongs.get(i).getName().toString().replace(".mp3", null).replace(".wav", null);
    new code: items[i] = mySongs.get(i).getName().toString().replace(".mp3", ".mp3").replace(".wav", ".wav");
    Because Java thinks it should change the extention from .mp3 to null (I don't know), then it errors like "java.lang.NullPointerException: replacement == null "
    So, I thought and saw that the problem is the beause of " replacement==null" statement
    Use new code, then pass the error with success. You will see your songs have listed.
    Note: Use your music.mp3 and music.wav files into both SD card > Musics folder and Internal Memory > Musics folder. (No need, your app will find them all)
    I can now see the musics in the list.

    • @KgFamily123
      @KgFamily123 2 ปีที่แล้ว

      Still crashing!
      Can you help me, please?

    • @BayYolal
      @BayYolal 2 ปีที่แล้ว +1

      @@KgFamily123 Use Try-Catch-Exception and look for build errors, save and restart your app, clean, build project e.t.c. try again. Or, ask to the video owner.

  • @santanusingha9202
    @santanusingha9202 4 ปีที่แล้ว +14

    Thats good to see that you are making a music player. I also trying to make a music player app. Your video will help me a lot this time.
    I saw your videos before and it is so much helpful for all.

  • @aviroxi
    @aviroxi 3 ปีที่แล้ว +10

    you are really on point and video is superb, just small explanation of what adapter is and similar words would be great

  • @abubakkarsiddiquekhan1969
    @abubakkarsiddiquekhan1969 3 ปีที่แล้ว +8

    @15:45
    When I open the app its automatically closed and even I can't see the songs are visible or not..

    • @parthshah1600
      @parthshah1600 3 ปีที่แล้ว

      have you found a solution to this?

    • @rickey7303
      @rickey7303 3 ปีที่แล้ว

      @@parthshah1600 have you found a solution to this?

    • @sashaem2831
      @sashaem2831 3 ปีที่แล้ว +1

      @@parthshah1600 i have the same problem, how can i check this?

    • @gayatribidwai8557
      @gayatribidwai8557 3 ปีที่แล้ว

      I also have same problem, so now what should I do? Anyone tell me about that....

    • @uditrajmr3
      @uditrajmr3 3 ปีที่แล้ว +4

      Use try catch block like below:
      public ArrayList findSong(File file) {
      ArrayList arraylist = new ArrayList();
      File f = file;
      if (file.length() > 0) {
      tvresult2.setText(" not null");
      tvresult3.setText(file.toString());
      } else {
      tvresult2.setText(" null");
      }
      File[] files = f.listFiles();
      try {
      files = f.listFiles();
      for (int i = 0; i < files.length; i++) {
      File singleFile = files[i];
      if (singleFile.isDirectory() && !singleFile.isHidden()) {
      arraylist.addAll(findSong(singleFile));
      } else {
      if (singleFile.getName().endsWith(".mp3") || singleFile.getName().endsWith(".wav")) {
      arraylist.add(singleFile);
      }
      }
      }
      } catch (NullPointerException e) {
      toastMsg("Error : " + e + " " + e.getStackTrace()[0].getLineNumber());
      }
      return arraylist;
      }

  • @tehjeebafatma5696
    @tehjeebafatma5696 3 ปีที่แล้ว +1

    Songs are not shows in my app like in This video at 15:44, in my app shows only app name and blank page how to fix this problem ?

  • @RakeshPadvi-jw4en
    @RakeshPadvi-jw4en 10 หลายเดือนก่อน +1

    sir How to add search view in music app

  • @MarkoFire123
    @MarkoFire123 3 ปีที่แล้ว +17

    If your app crashes after allowing permissions then do this (it worked for me)
    change your findSong() method to this
    public ArrayList findSong(File file) {
    ArrayList arrayList = new ArrayList();
    File [] files = file.listFiles();
    if(files != null) {
    for (File singlefile : files) {
    if (singlefile.isDirectory() && !singlefile.isHidden()) {
    arrayList.addAll(findSong(singlefile));
    } else {
    if (singlefile.getName().endsWith(".wav")) {
    arrayList.add(singlefile);
    } else if (singlefile.getName().endsWith(".mp3")) {
    arrayList.add(singlefile);
    }
    }
    }
    }
    return arrayList;
    }
    This was fixed by Wasif izar in the comments I'm just pasting his code so people can see it better.

    • @jkx6074
      @jkx6074 3 ปีที่แล้ว +1

      thanks man

    • @brianwine5982
      @brianwine5982 3 ปีที่แล้ว +1

      Thanks for the post, and it works for me. Remember to put some mp3 files on cell and re-build the apk and run again on cellphone.

    • @omerfarukozturk9720
      @omerfarukozturk9720 3 ปีที่แล้ว +1

      thanks bro. It's working

    • @naziamughal6182
      @naziamughal6182 2 ปีที่แล้ว +1

      @@omerfarukozturk9720 can you plz guide where you put your mp3 files in smartphone?

    • @kemoek
      @kemoek 2 ปีที่แล้ว +1

      thank you so much.

  • @fredericktech2001
    @fredericktech2001 3 ปีที่แล้ว +7

    This tutorial was really helpful.
    Please sir, can you make a video on how to display song in the notification bar while the media player is playing.

  • @prasenjitroy9172
    @prasenjitroy9172 2 ปีที่แล้ว +3

    Everything is fine but still the application won't start and keeps crashing

  • @abderrahmanguerguer611
    @abderrahmanguerguer611 3 ปีที่แล้ว +7

    Hi, good tutorial, I have a problem and I cannot fix it when I build the project as an apk file and install it on my phone and run it, it asks me to access the files and I accept and then it closes the application and nothing happens and I don’t know why, is the problem from the code or from the phone
    Please put the project files in order to match my work with yours to see where the problem is

    • @subhamkumar-mn9hl
      @subhamkumar-mn9hl 3 ปีที่แล้ว

      Have you got the solution then pls share

    • @АлександрГулидов-г7у
      @АлександрГулидов-г7у 3 ปีที่แล้ว +1

      Привет если нашел ответ скажи пожалуйста , у меня такая же ошибка.
      Hi, if you found the answer, please tell me, I have the same error.

    • @abderrahmanguerguer611
      @abderrahmanguerguer611 3 ปีที่แล้ว

      ​@@АлександрГулидов-г7у Unfortunately no, I have not been able to solve the error

    • @abderrahmanguerguer611
      @abderrahmanguerguer611 3 ปีที่แล้ว

      @Ankita Tankariya Unfortunately no, I have not been able to solve the error

    • @abderrahmanguerguer611
      @abderrahmanguerguer611 3 ปีที่แล้ว

      @@subhamkumar-mn9hl Unfortunately no, I have not been able to solve the error

  • @debanjali23
    @debanjali23 4 หลายเดือนก่อน

    i am using the latest koala version and here i cant add the dependency from dexter library...its not matching the version...what shall i do?

  • @Lameless
    @Lameless 5 หลายเดือนก่อน

    I want to eventually do this type of stuff without needing a tutorial. Hope i can do that soon

  • @ДесиславаНиколова-е3щ
    @ДесиславаНиколова-е3щ 2 ปีที่แล้ว +1

    I have error message when I'm trying to start app. -> MusicPlayer keeps stopping. Could you please to help me?

  • @Vinay-dh4yi
    @Vinay-dh4yi 3 ปีที่แล้ว +4

    Music player giving me a runtime error
    It says attempt to get the length of null array

    • @shadows.unveiled_
      @shadows.unveiled_ 3 ปีที่แล้ว

      mera bi bhai agar apko solution mile to btana

    • @hassaanasim8624
      @hassaanasim8624 2 ปีที่แล้ว

      ​@@shadows.unveiled_ Bhai 9 maheeny ho gay, solution milla k nhi ???

  • @debug-f5i
    @debug-f5i 2 ปีที่แล้ว +1

    i have learned many things from this tutorial thank you👍👍👍

  • @Harshavardhanherole
    @Harshavardhanherole 9 หลายเดือนก่อน

    In which folder you paste the songs files

  • @gokurobbs435
    @gokurobbs435 3 ปีที่แล้ว +22

    brother actually the app is not able to fetch the songs in my internal storage.....so it opens, asks for permission and then crashed

    • @uta-std-vitoriaanthony376
      @uta-std-vitoriaanthony376 2 ปีที่แล้ว +4

      same with me

    • @rubayethossain3792
      @rubayethossain3792 2 ปีที่แล้ว +4

      Same with me also.

    • @rkp_here
      @rkp_here 2 ปีที่แล้ว +1

      same here
      .......does it have any solutions??

    • @manishpatil3051
      @manishpatil3051 2 ปีที่แล้ว +1

      Same i am also facing this problem pls evan bro give us solution 🥺😬

    • @Strawberry-oz1qu
      @Strawberry-oz1qu 2 ปีที่แล้ว +1

      Does anyone have any solution for it?

  • @janhavihude5440
    @janhavihude5440 5 หลายเดือนก่อน

    Which version you are using because in jellyfish READ_EXTERNAL_STORAGE is not supported

  • @someshkant720
    @someshkant720 3 ปีที่แล้ว +3

    At 15 :49 when i installed the app on my smartphone.. And i gave the permission it automatically closed and a pop up appears on my notifications bar that the app has crashed
    Now please help me in this what would i do now ??

    • @MusicManiaYT
      @MusicManiaYT 3 ปีที่แล้ว +3

      I have found a solution Add in manifest android: request LegacyExternalStorage="true"

    • @SparFF
      @SparFF 2 ปีที่แล้ว

      ​@@MusicManiaYT thanks bro, its working

  • @m.nazran2087
    @m.nazran2087 3 ปีที่แล้ว +1

    bro I got issues at 15:40
    I'm using my device{Redmi9) n successfully installed but when I press allow button the app close immediately
    but if press deny I can open the app but song list won't come out

    • @CodingWithEvan
      @CodingWithEvan  3 ปีที่แล้ว

      Show me the errors from the errorlog here.

  • @alixaprodev
    @alixaprodev 4 ปีที่แล้ว +8

    Brother make videos like this one. It really helps me

  • @vaskveider1
    @vaskveider1 3 ปีที่แล้ว +1

    can you pley the music in 432hz?

  • @siddharthadubey1103
    @siddharthadubey1103 3 ปีที่แล้ว +5

    idk but why my app keeps crashing, and in the error it is showing that attempt to get null lenght of array. everything is working properly but it is not displaying the song i guess. brother can you please help? i am doing it for my college project.

    • @rahulKaushal39
      @rahulKaushal39 3 ปีที่แล้ว

      Hello , had you got the solution of apps crashing ??

    • @siddharthadubey1103
      @siddharthadubey1103 3 ปีที่แล้ว

      @@rahulKaushal39 no !! please can you guide?

    • @rahulKaushal39
      @rahulKaushal39 3 ปีที่แล้ว

      @@siddharthadubey1103 I tried 3-4 music player coding, all fails : so you must try to make BMI CALCULATOR.. for your project..
      Or you follow ForMyScholar TH-cam , she made simple Music Player.. I think that's work for you

    • @siddharthadubey1103
      @siddharthadubey1103 3 ปีที่แล้ว

      @@rahulKaushal39 thank you brother, but i have started doing it by my own learning...

    • @prashannathapamagar5389
      @prashannathapamagar5389 3 ปีที่แล้ว

      Same what's up with the app crashing when its launched every thing is same as in the video

  • @kalpitvisavadiya6363
    @kalpitvisavadiya6363 3 ปีที่แล้ว +5

    Hello sir I install app and give it the permission after app automatic close And nothing to show any error please give a solution.

    • @rushilpatel3549
      @rushilpatel3549 3 ปีที่แล้ว

      Same problem bro! @Coding With Evan please help us!!!

  • @krutikmalani3859
    @krutikmalani3859 3 ปีที่แล้ว +8

    When I open the app its automatically closed
    Error : java.lang.NullPointerException: Attempt to get length of null array

    • @CodingWithEvan
      @CodingWithEvan  3 ปีที่แล้ว

      Show me your onCreate methods code here.

    • @krutikmalani3859
      @krutikmalani3859 3 ปีที่แล้ว +6

      protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      listView = findViewById(R.id.listViewSong);
      runTimePermission();
      }

    • @groupv8397
      @groupv8397 3 ปีที่แล้ว +4

      same problem with mine.

    • @krutikmalani3859
      @krutikmalani3859 3 ปีที่แล้ว +14

      I have found a solution
      Add in manifest
      android: request LegacyExternalStorage="true"

    • @sapanaashelar7721
      @sapanaashelar7721 3 ปีที่แล้ว +2

      @@krutikmalani3859 Thanks :D

  • @hasirnisar6060
    @hasirnisar6060 2 ปีที่แล้ว

    Is there any alternative of dexter

  • @tanvi8283
    @tanvi8283 3 ปีที่แล้ว +1

    Sir @10:49 getExternalStorageDirectory, how it didnt get deprecated for you sir?? I cant use the method , since its deprecated .

    • @subrahmanyamdommeti7529
      @subrahmanyamdommeti7529 3 ปีที่แล้ว

      pls give me the solution ..how you you clear you error.

    • @tusharchoudhary9861
      @tusharchoudhary9861 3 ปีที่แล้ว +1

      . getExternalStorageDirectory is deprecated. My list view not showing files please help me to solve it

  • @AkshayGupta-dd4ht
    @AkshayGupta-dd4ht 2 ปีที่แล้ว +4

    In any case, your application is not opening use This:-
    if (singleFile.isDirectory() && !singleFile.isHidden()) {
    if (!singleFile.getName().equals("Android")) {
    arrayList.addAll(findSongs(singleFile));
    }
    }
    because in my opinion, "Android" file is very huge to scan

    • @pankajmehta3242
      @pankajmehta3242 ปีที่แล้ว +1

      Thanks bro your solution is working 🤠

  • @robbetoichoa320
    @robbetoichoa320 2 ปีที่แล้ว +2

    Hi, how can I show the duration of each song in the listView?

  • @aditprabhu9601
    @aditprabhu9601 3 ปีที่แล้ว +1

    How to upload music and call it in main activity java file

  • @sauravsingh5672
    @sauravsingh5672 3 ปีที่แล้ว

    The time on the end of the seek bar is not updating as we change the song using the next button or previous button so how to change the song time as we click the button to change the song

  • @rvcreation0110
    @rvcreation0110 3 ปีที่แล้ว +1

    I am try to creating app but after installing crash app

  • @totopops98
    @totopops98 2 ปีที่แล้ว

    how can we add an audio source in the media app coming from a music app like deezer, Spotify. etc...

  • @lubatech
    @lubatech ปีที่แล้ว

    My app doesnt show songs after i grant the permission,how can i solve this?

  • @T7N8F3
    @T7N8F3 3 ปีที่แล้ว +2

    Bro the app getting closed right away after allowing permissions.....
    What to do now ?
    Can you please help me ?

    • @vk-5431
      @vk-5431 3 ปีที่แล้ว

      I also facing the same issue ,Anybody can help me to resolve this issus

    • @arashparsa3193
      @arashparsa3193 3 ปีที่แล้ว

      @@vk-5431 review comments you should use try catch

    • @SohailKhan-se5ku
      @SohailKhan-se5ku 3 ปีที่แล้ว

      @@vk-5431 i also

    • @kemoek
      @kemoek 2 ปีที่แล้ว

      Look at MarkoFire's comment.

  • @mumtahinaislammahi2162
    @mumtahinaislammahi2162 2 ปีที่แล้ว

    getting error using tostring().,
    and app is not opening it is showing ....keeps stoping

  • @ThePersianYT
    @ThePersianYT 3 ปีที่แล้ว

    hello, I am a absolute beginner to developing apps, and for some reason, in 15:06 I typed exactly what you did, _listView = findViewById(R.id.ListViewSong)_, but android studio in my case says "Cannot resolve symbol 'ListViewSong'", why?

    • @CodingWithEvan
      @CodingWithEvan  3 ปีที่แล้ว

      In your mainactivity.xml file check what is the id of listview. Then put it instead of "ListViewSong"

    • @ThePersianYT
      @ThePersianYT 3 ปีที่แล้ว

      @@CodingWithEvan thanks!

    • @ThePersianYT
      @ThePersianYT 3 ปีที่แล้ว

      @@CodingWithEvan i don't really understand what you said, i just started 😅

    • @ThePersianYT
      @ThePersianYT 3 ปีที่แล้ว

      ok, now i opened it after i closed it and i shut down my laptop, now everything is showing errors, WHAT THE HELL IS GOING ON?

    • @kishoreN2572
      @kishoreN2572 3 ปีที่แล้ว

      th-cam.com/users/CodeclubMaster

  • @RANATHEBOY
    @RANATHEBOY ปีที่แล้ว +3

    My app why crashed 🙏

  • @bhaveshgavali531
    @bhaveshgavali531 3 ปีที่แล้ว

    Is this for complete beginners?

  • @crisngstyle
    @crisngstyle 3 ปีที่แล้ว +2

    I got error when i tried to open it with Redmi Note 8 Pro & Galaxy Tab A [Android-Version 10](Error: App keeps stopping). but it worked with Samsung Galaxy A3 android-Version 6.0.1 .
    Please i need Help

    • @CodingWithEvan
      @CodingWithEvan  3 ปีที่แล้ว

      You can change the target sdk to android 10

    • @wasifizar
      @wasifizar 3 ปีที่แล้ว +4

      For those all whose AVD is crashing change your findsong method with this
      public ArrayList findSong(File file) {
      ArrayList arrayList = new ArrayList();
      File [] files = file.listFiles();
      if(files != null) {
      for (File singlefile : files) {
      if (singlefile.isDirectory() && !singlefile.isHidden()) {
      arrayList.addAll(findSong(singlefile));
      } else {
      if (singlefile.getName().endsWith(".wav")) {
      arrayList.add(singlefile);
      } else if (singlefile.getName().endsWith(".mp3")) {
      arrayList.add(singlefile);
      }
      }
      }
      }
      return arrayList;
      }

    • @shadows.unveiled_
      @shadows.unveiled_ 3 ปีที่แล้ว

      @@wasifizar Hello bro YOU are the Legend But getExternalStorageDirectory is Decrepted plz how to replace it

    • @davemartinez5348
      @davemartinez5348 3 ปีที่แล้ว

      @@wasifizar Solucionado gracias

    • @pavitrapillai4602
      @pavitrapillai4602 3 ปีที่แล้ว

      @@wasifizar Thankyou! This actually worked!

  • @KgFamily123
    @KgFamily123 2 ปีที่แล้ว

    Still crashing at 15:30 on Android 12
    Any solutions?

  • @rajatsharma8915
    @rajatsharma8915 3 ปีที่แล้ว

    I am not able to see songs list in 15:44 please help me

  • @Swastik-ru9mi
    @Swastik-ru9mi 3 ปีที่แล้ว

    can you plz tell me for music player listView is better or Recycler View

    • @CodingWithEvan
      @CodingWithEvan  3 ปีที่แล้ว

      For a large number of items recyclerview is better.

    • @Swastik-ru9mi
      @Swastik-ru9mi 3 ปีที่แล้ว

      @@CodingWithEvan in this case ??

  • @RobertCastilloC
    @RobertCastilloC 3 ปีที่แล้ว +4

    Does it play local music files do we can add as we download new songs?

  • @piyushptdr9801
    @piyushptdr9801 ปีที่แล้ว

    sir when i allow the permission my app will be crash at that time please help me to solve this error

  • @techeasy602
    @techeasy602 3 ปีที่แล้ว +1

    I am getting following error and the app doesn't show anything
    access denied finding property ro.vendor.df.effect.conflict
    Please help me 🙏🙏

  • @intensive.code13
    @intensive.code13 3 ปีที่แล้ว +1

    in my case ....when I opening this app in emulator it works perfect ...but when I am debugging it shows error
    TELL ME SOLUTION BRO PLZ

  •  3 ปีที่แล้ว

    The app is not running. It is crashing soon after I open it. Plz help me.

  • @rohanshinde196
    @rohanshinde196 3 ปีที่แล้ว +1

    sir i have created the app as per your instruction. but when i install the app on my phone and give permission of storage it autmotically closes and when i denied the permission it runs, but does not show any thing it was total black screen.what should i do now?

    • @MohammadImran-fk9vw
      @MohammadImran-fk9vw 3 ปีที่แล้ว

      Same problem brother 🥺

    • @rohanshinde196
      @rohanshinde196 3 ปีที่แล้ว

      @@MohammadImran-fk9vw solution mila to bata dena bhai

    • @zia-ur-rehmanansari5994
      @zia-ur-rehmanansari5994 3 ปีที่แล้ว

      Solution mila to btana bhai

    • @booba6672
      @booba6672 3 ปีที่แล้ว

      @@rohanshinde196 put try/catches for NullPointer and Negative Array size

    • @rohanshinde196
      @rohanshinde196 3 ปีที่แล้ว

      @@booba6672 can you explain more

  • @signerai03
    @signerai03 3 ปีที่แล้ว +9

    Before starting u need to show requirements and prequiste
    Pls take this as advice🥰

    • @SidsAnalysis
      @SidsAnalysis 2 ปีที่แล้ว +1

      Hey bro in Android 11 its not working songs list are not fetch and app crash and close
      any solution?

    • @pratikpatil9577
      @pratikpatil9577 2 ปีที่แล้ว

      @@SidsAnalysis same stuff is happening with me

  • @itz_jacobb2189
    @itz_jacobb2189 3 ปีที่แล้ว

    i want help with creating new project, i am new with app and i don't know which android version select, which activity and more

  • @Dhruv_Kikani_0101
    @Dhruv_Kikani_0101 3 ปีที่แล้ว

    hello sir,
    my project work with attach your code but code not work out in my project . you are help for my problem solution & provide information way.

  • @Arnav264
    @Arnav264 3 ปีที่แล้ว +13

    For those all whose App is crashing after granting permissions, replace your findsong() method with the following:
    public ArrayList findSong(File file) {
    ArrayList arrayList = new ArrayList();
    File [] files = file.listFiles();
    if(files != null) {
    for (File singlefile : files) {
    if (singlefile.isDirectory() && !singlefile.isHidden()) {
    arrayList.addAll(findSong(singlefile));
    } else {
    if (singlefile.getName().endsWith(".wav")) {
    arrayList.add(singlefile);
    } else if (singlefile.getName().endsWith(".mp3")) {
    arrayList.add(singlefile);
    }
    }
    }
    }
    return arrayList;
    }

    • @crazzzyork8359
      @crazzzyork8359 3 ปีที่แล้ว

      does this work? becuase im using this vid for my project

    • @andresstevenmunizfajardo8199
      @andresstevenmunizfajardo8199 2 ปีที่แล้ว

      Gracias Hernano gracias a esta lógica ya pudo correr bien todo listo para la parte 2

  • @joeparsa8848
    @joeparsa8848 2 ปีที่แล้ว

    How did you get the music onto the app. It wont let me attach .mp3 in a raw folder. Please Help

  • @peterthuku
    @peterthuku 2 ปีที่แล้ว

    i have a problem.
    after granting pemission the app crashes

  • @pagodacircle1907
    @pagodacircle1907 ปีที่แล้ว

    are the dexter libraries open source / free to use?

  • @bhavinkhatri7724
    @bhavinkhatri7724 3 ปีที่แล้ว +1

    list view is not showing a single song even though all my songs are in internal storage , logcat showing no error . what i suppose to do now ? anyone ??

    • @CodingWithEvan
      @CodingWithEvan  3 ปีที่แล้ว

      Did you granted the storage permission? If yes, then show me your displaysong() and findsong() method here.

    • @KingSteeGaming
      @KingSteeGaming 3 ปีที่แล้ว

      Bro same pblm how to resolve

    • @tusharchoudhary9861
      @tusharchoudhary9861 3 ปีที่แล้ว

      Because of . getExternalStorageDirectory is deprecated list view not showing files

    • @KingSteeGaming
      @KingSteeGaming 3 ปีที่แล้ว +1

      @@tusharchoudhary9861 what changes to do me plz tell bro

    • @tusharchoudhary9861
      @tusharchoudhary9861 3 ปีที่แล้ว

      @@KingSteeGaming bro replace the directory

  • @anuragpatel6492
    @anuragpatel6492 3 ปีที่แล้ว

    My findsong function is returning empty array list... What is problem please tell

  • @sanketgame5672
    @sanketgame5672 ปีที่แล้ว

    Which software is used for these coding,can you help me

  • @vishaldhavale1044
    @vishaldhavale1044 2 ปีที่แล้ว

    What we to do when we have to give the permission above android 10 bcoz above android 10 the app crashesh after giving permission

  • @Nirajjha1
    @Nirajjha1 ปีที่แล้ว

    E/libc: Access denied finding property "ro.vendor.pref_scale_resolution" it will give an error. anyone have solution then please help me.

  • @diogofarinha295
    @diogofarinha295 2 ปีที่แล้ว

    how can I put songs on my external storage in an emulator?

  • @fortuneking6687
    @fortuneking6687 3 ปีที่แล้ว +1

    my app works in AVD but when i export and install it in my phone it crash. what to do?

    • @uditrajmr3
      @uditrajmr3 3 ปีที่แล้ว

      Use try catch block to stop it from crashing, though you will still get error

  • @ananda4639
    @ananda4639 5 หลายเดือนก่อน

    Which version to use sdk

    • @ananda4639
      @ananda4639 5 หลายเดือนก่อน

      Plz answer quickly

  • @alaamohammed8769
    @alaamohammed8769 2 ปีที่แล้ว

    what are the features of this app

  • @shahariareven
    @shahariareven 2 ปีที่แล้ว +1

    What software is used make this app

  • @mdshakilhossen2848
    @mdshakilhossen2848 3 ปีที่แล้ว

    Sir, please help me. If I change the package name of the app, the app will run but it will not work properly. How can I solve this?

  • @ProfitableGaming
    @ProfitableGaming 3 ปีที่แล้ว

    may i ask why does the word stop moving when you scroll down and went back up again? and how do you fix that?

  • @Mansi_Javascript
    @Mansi_Javascript 3 ปีที่แล้ว

    I made a app. Where first song repeat every time when any list view is clicked .... Please help

  • @_SubhadeepMaji
    @_SubhadeepMaji 3 ปีที่แล้ว

    my songs are not displaying in the list although there are many in the internal storage. pls help

  • @watani-4107
    @watani-4107 2 ปีที่แล้ว

    do u have the sources on githup ?

  • @mahmmoudalmashwit7532
    @mahmmoudalmashwit7532 3 ปีที่แล้ว

    Good evening, you have the application of this video but Unfortunately not show me the result is a final also appeared you have, what is the solution and thank you

  • @forexmarket624
    @forexmarket624 3 ปีที่แล้ว +1

    excellent presanatation. please make a video to upload audio to the server and play it in audioplayer

  • @abdellahboughrom2926
    @abdellahboughrom2926 2 ปีที่แล้ว

    hey can build the mp3 app with saved mp3 files inside it. thank you.

  • @subhransu078
    @subhransu078 3 ปีที่แล้ว +1

    My app crashes after getting the permissions what should I do?

  • @SidsAnalysis
    @SidsAnalysis 2 ปีที่แล้ว

    In Android 11 its not working songs list are not fetch and app crash and close

  • @TP-rn2gm
    @TP-rn2gm 3 ปีที่แล้ว +2

    Hey man, can you upload the image background and the icon of the UI

  • @DaisukiIvankun
    @DaisukiIvankun 2 หลายเดือนก่อน

    Do this app have data base?

  • @vijanvijan1936
    @vijanvijan1936 3 ปีที่แล้ว

    Android Q version didn't open...pls give solution.

  • @redqueengaming6
    @redqueengaming6 3 ปีที่แล้ว +1

    Hello im just wondering if anyone can help me please? i am trying to do a music app, i have found that the getStorageDirectory is depreciated, am i correct in thinking i need to use the getExternalStorageState? When i try get all the audio files and scan the directory my app shuts down. can anyone please help in regards to how can i finish implementing this please so my audio files on my cellphone can be accessed and used in my mp3 player im making

  • @avtem
    @avtem 2 ปีที่แล้ว

    Is this music player a proper one? Will it survive if user "minimizes" it clicking "Home" button?

  • @sahilpatel3582
    @sahilpatel3582 3 ปีที่แล้ว +2

    Meri app ban to gai magar is me songs nahii dikha rahe ?? What should I do ?? Please help me 🙏🏻
    Song show nahi karr rahe

    • @CodingWithEvan
      @CodingWithEvan  3 ปีที่แล้ว

      Check if you have songs on internal storage. Not on sd card.

    • @sahilpatel3582
      @sahilpatel3582 3 ปีที่แล้ว +1

      @@CodingWithEvan songs k folder ka name kyaa rakh na henn ?
      Btw songs internal storage me hii hen so please help me out 🙏🏻

    • @sahilpatel3582
      @sahilpatel3582 3 ปีที่แล้ว +1

      @@CodingWithEvan and music player app don't have permission for storage !
      So you have a solution for that ??

    • @CodingWithEvan
      @CodingWithEvan  3 ปีที่แล้ว

      Grant storage permission from settings.

  • @MusicWorldak
    @MusicWorldak 3 ปีที่แล้ว +1

    Bro i created the app, the app works fine in android studio emulator but In my phone I am not even able to install it ,is it due to Sdk version?

    • @CodingWithEvan
      @CodingWithEvan  3 ปีที่แล้ว +1

      It Will work on android devices with android version 10 or lower.

    • @MusicWorldak
      @MusicWorldak 3 ปีที่แล้ว +1

      @@CodingWithEvan ok I'll try to run it on my another device.

    • @MusicWorldak
      @MusicWorldak 3 ปีที่แล้ว +2

      @@CodingWithEvan how can we make it compatible for android 11?

  • @AshishKumar-zt5pt
    @AshishKumar-zt5pt 2 ปีที่แล้ว

    Is there any free non copyrighted music api that I can use for commercial purpose

  • @thailai1699
    @thailai1699 2 ปีที่แล้ว

    where is your data song ? how I can input the song into this app ?

  • @sadiyaserin5712
    @sadiyaserin5712 3 ปีที่แล้ว

    Hey can you help me ...that I can't display the music list by this code

  • @VigneswaraaMS
    @VigneswaraaMS 3 ปีที่แล้ว

    Which software is using you sir!!plzz tell mee!!

  • @BruceWayne-xq7bb
    @BruceWayne-xq7bb 2 ปีที่แล้ว

    Caused by: com.android.builder.errors.EvalIssueException: Configuration `debugRuntimeClasspath` contains AndroidX dependencies, but the `android.useAndroidX` property is not enabled, which may cause runtime issues.
    when i run the code after coding till 5:35 I'm getting this error

  • @souradeepkar
    @souradeepkar 2 ปีที่แล้ว

    Might be a dumb question, but does this app not read and scan the internal storage of the phone? or does it only scan and search for songs in the external storage sd card?

  • @nouhidraza2237
    @nouhidraza2237 4 ปีที่แล้ว

    Bro i am follow your Toturial iread pdf file from storage but I want to use open pdf fil in pdfviewer how do this

  • @devildevil873
    @devildevil873 3 ปีที่แล้ว

    Sir I wrote the code as excat what u wrote but I didn't get any music in app after doing code upto 16:00 plz..help

    • @CodingWithEvan
      @CodingWithEvan  3 ปีที่แล้ว +1

      Make sure you have mp3 files in your internal storage.

    • @devildevil873
      @devildevil873 3 ปีที่แล้ว +1

      @@CodingWithEvan now it's working sir 🙏 sir how can I contact u 🙏

    • @devildevil873
      @devildevil873 3 ปีที่แล้ว +1

      Plz..tell I have some doubts

    • @kishoreN2572
      @kishoreN2572 3 ปีที่แล้ว

      th-cam.com/users/CodeclubMaster

    • @sayebnahin7683
      @sayebnahin7683 3 ปีที่แล้ว

      @@devildevil873 Did you change any part of your code?

  • @qcodec2984
    @qcodec2984 3 ปีที่แล้ว

    Morning sir, I face a problem here it say "cannot resolve symbol 'File':49"
    After . Check ();
    The following code of public ArrayList. Help

  • @ashminemanik3790
    @ashminemanik3790 3 ปีที่แล้ว

    sir i have a error while running this app in real device it don't show any permission and cannot show any song of memory
    plzz help me with this

  • @sparksteryt1639
    @sparksteryt1639 3 ปีที่แล้ว +4

    Sir, I really need part-2 of it.

    • @CodingWithEvan
      @CodingWithEvan  3 ปีที่แล้ว +3

      Part 2 is already in my channel.

    • @sparksteryt1639
      @sparksteryt1639 3 ปีที่แล้ว +1

      Thank you I'll definitely check that out.

    • @neerajahlawat7393
      @neerajahlawat7393 3 ปีที่แล้ว

      @@CodingWithEvan please provide link here

  • @devildevil873
    @devildevil873 3 ปีที่แล้ว

    Sir plz..help me 🙏 sir I did the code up to 16:04 then I run it , it was working properly and showing the play list too but with play list of songs it was showing other files too plz..help 🙏🙏

    • @CodingWithEvan
      @CodingWithEvan  3 ปีที่แล้ว

      Check the findsongs() method. Maybe you made a mistake there.

    • @devildevil873
      @devildevil873 3 ปีที่แล้ว

      @@CodingWithEvan I checked code many times but no error I don't know where is the problem 🙏

    • @devildevil873
      @devildevil873 3 ปีที่แล้ว

      Sir help me I will send u my code just check how can I send u 🙏🙏

    • @devildevil873
      @devildevil873 3 ปีที่แล้ว

      @@CodingWithEvan sir plz...help me 😭🙏

    • @kishoreN2572
      @kishoreN2572 3 ปีที่แล้ว

      th-cam.com/users/CodeclubMaster

  • @charlie.0409
    @charlie.0409 2 ปีที่แล้ว

    can you help me fix something. it's wrong.

  • @official___shashi
    @official___shashi 2 ปีที่แล้ว +1

    items[i] = mySongs.get(i).getName().toString().replace(target:".mp3" , replacement:"").replace(target:".wav",replacement:""); line 85 is not solve this error show erroe vairiable not declare

  • @janvinaik5072
    @janvinaik5072 3 ปีที่แล้ว

    Sir i have almost making this app seeing ur tutorial , now , i want to add , shuffle and repeat button work , can i get code for that pleasee