I Am coding a music app at the moment.For the app, I would require the app to query the device for all mp3 tracks and then display them,following which I would be able to click on the song title and it would lead me to the playscreen where I would be able to play the song. I have searched through youtube tutorials and websites but to no avail,Hope Someone Could Enlighten me on how to go about this code.Thanks and best regards
Hi, I am trying to build an app where I can play music.For the music play page, what I would like to do is to create a mainActivity that consists of all the codes necessary to play or pause the music track and the Fragment would contain the album art as well as the album details.Any suggestions on how to code this would be greatly appreciated.
Will be doing the coding either tmrw or over the weekend..Was trying to get some suggestions about how to do this code before starting the coding process to avoid having to redo when new changes surface.
Hi, David Thanks For Your Replies, I greatly appreciate the replies.I have shortlisted the Google Play Music interface layout as the layout I want to adopt.But I am unsure on how to implement such a system.Thanks
That app undoubtedly has a ton of layouts and fragments. The fifth image here, which allows you to switch between stations, artists, albums, songs, and genres, looks like it might be a PagerTabStrip with a ViewPager as a parent. The class you derive from ViewPager might then have a FragmentPagerAdapter for its adapter, with 5 views (i.e., Fragments). In each of the five fragments, create a layout of what you want to display. Start small, get that much going, and build up from there.
A lot of this can be created for you by the IDE. When creating a new project, opt for the Tabbed Activity. You'll need to manually add the PagerTabStrip.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
Hi, I am trying to code an android program and I ran into some problems with the Fragments.I am using a Navigation Drawer and the layout on my mainActivity is controlled by the fragments.So I have a problem whereby I am not sure how to trigger a change of a fragment by pressing a button inside the frist fragment and using that to trigger a layout change in my MainActivity.
Any advise on how to fix this problem would be greatly appreciated.
I am converting a console application that runs under Windows to run under the base Linux O/S of Android phones (version 5.x or later). With the exception of calls to the Windows API DeviceIoControl() (which I've isolated in a single module), the application is written in Standard C++, and converting it to C is a large effort.
I have discovered that Android 6.x and above support C++, but Android 5.x does not.
Is there any way to create a statically-linked application (no reliance on shared libraries) in Android? This would perhaps allow me to compile the code with the Android 6.x tools, but run it under Android 5.x.
Thanks for your help.
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack.