|
I have tried to move apps to ad card from an android phone. I keep getting a new to format code. Never used to happen. Any thoughts?
|
|
|
|
|
What does your code look like to do the moving? What has changed since the time it was working?
"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 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
|
|
|
|
|
So which piece of this are you having trouble with?
Have you seen this and this?
"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
modified 7-Aug-17 11:23am.
|
|
|
|
|
|
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.
|
|
|
|
|
Member 13341792 wrote: Any suggestions on how to code this would be greatly appreciated. Where are you stuck? Playing a music file, displaying an image, etc? What code do you have in place so far?
"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
|
|
|
|
|
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.
|
|
|
|
|
What do you want the UI to look like? Start by drawing it out on paper. Look at other music-type apps. What do you like and dislike about those?
For future considerations, you might want to look at this.
"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
modified 3-Aug-17 12:23pm.
|
|
|
|
|
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., Fragment s). 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
modified 4-Aug-17 8:49am.
|
|
|
|
|
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.
|
|
|
|
|
Fragments are usually changed with something similar to:
FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
fragmentTransaction.replace(R.id.frame, fragment, SOME_TAG);
fragmentTransaction.commit(); Is this something you've tried?
"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
|
|
|
|
|
I Have tried this already,but its not working correctly..
|
|
|
|
|
Member 13341792 wrote: but its not working correctly.. Which means what exactly?
"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
|
|
|
|
|
I mean I still can't change the layout when pressing the button.
|
|
|
|
|
What is it doing? Not doing? Are exceptions being thrown? Have you stepped through the code using the debugger?
"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
|
|
|
|
|
I have tried to use fragment transaction to try and replace the page layout with that of the new fragment ,However, when I click the button,the app crashes.
|
|
|
|
|
Member 13341792 wrote: ...the app crashes. Exception? Anything in the logcat window?
"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
|
|
|
|
|
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.
--Winston Churchill
|
|
|
|
|
i even just know that android now support C++
|
|
|
|
|
As a console application (to be run via ADB). AFAIK, you still can't write graphical applications in C++.
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.
--Winston Churchill
|
|
|
|
|
Hey has anyone done campaign attribution for Android here? Facing issues in all CPC campaigns attribution, it is endlessly reflecting as organic on Google analytics.
|
|
|
|
|
|
... of any sample apps in GO for Android (with UI)?
|
|
|
|