|
|
If you are defining the click-handler in the .xml file, the click-handler must be implemented in the activity not the fragment. If you are defining the click-handler in the .cs file, the click-handler can be implemented in the fragment.
You'll notice in that example that the btn_details_saveClick() method is contained within the activity PersonalDetailsView rather than the fragment PageFragment .
"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
|
|
|
|
|
Thank you David i fixed the issue
after making the PersonalDetailsView inherit from Fragment, all started to work.
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vimalsoft.com
vuyiswa[at]vimalsoft.com
|
|
|
|
|
Good evening
I need to insert notifications in my Android application. This is something similar to RSS service.
Therefore I have inserted NotificationCompat.Builder, and Pendig Intent to this purpose. When user selects corresponding item the application is restarted and updated.
But I have a problem, I don't have idea how to fire the notification. 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 this a best prtacice? Is there any better way to do?
I would appreciate any sugestions.
Thanks a lot.
|
|
|
|
|
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.
|
|
|
|