|
Andy_Bell wrote: I'm thinking to start something like a Timer, every 15-30 minutes connect to server and look for new event released. If there is one, I'll fire Notification through the corresponded object.
Is the goal for the server itself to notify the app, or for the app to notify itself through the server? If the latter, have you looked at Firebase Cloud Messaging[^]
"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
|
|
|
|
|
Thanks a lot.
No is the first one. Server should notify news incoming to the app when we have uploaded new articles in our database. So user should be advise.
|
|
|
|
|
Would an RSS solution work for you?
"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
|
|
|
|
|
|
Hello ,
My background service is not working .When device is sleep mode.
My background service is running but not update data in webservice..
Any option and any solution my quistion.plz help me any person .
Hi
Regard
Amit
|
|
|
|
|
If you want to send notification you can use --_FIREBASE_--
It is the best and easiest method which i know upto myknowledge
|
|
|
|
|
Hello friends,
i was looking for an idea to implement single android xml and java class file as templet ,to minimise the re-usability of same type of class or xml
Example : I have main.xml which will have 5 buttons on screen ,on first button click i have to load the 2nd screen data from configurator file and based on the configuration the view need to change like hiding 3 buttons or 2 buttons
is it possible to achieve ?
|
|
|
|
|
venky.nani91 wrote: is it possible to achieve ? Probably yes, but it depends on what features are available in the code generator you are using. Visual Studio allows you to create your own project templates; not sure about Android studio.
|
|
|
|
|
THANK YOU FOR REPLAY
|
|
|
|
|
venky.nani91 wrote:
Example : I have main.xml which will have 5 buttons on screen ,on first button click i have to load the 2nd screen data from configurator file and based on the configuration the view need to change like hiding 3 buttons or 2 buttons
is it possible to achieve ? Yes.
"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, Thanks for your help in helping me answer all my previous questions, really appreciate that.I have another question related to my android development.I am trying to loop my music player to play the same song infinitely on buttonClick. How Should I do that ?I have already written codes to stop the music player upon playback completion, but can't seem to paste a snap of it on the post.Let me know if I should include the snap.
Thanks
|
|
|
|
|
Member 13341792 wrote: ...play the same song infinitely on buttonClick. Can you put something at the end of the routine (that plays the music file) to check to see if a button has been clicked? If it has, call that routine again.
"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 12-Aug-17 20:28pm.
|
|
|
|
|
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
|
|
|
|