Win a copy of Serverless Applications with Node.js this week in the NodeJS forum!

sakib shaikh

Greenhorn
+ Follow
since May 16, 2016
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by sakib shaikh

I have a Media Player UI in a Fragment in Main Activity which plays all songs from the emulator. Below this fragment I have List of Playlists. I can click on any of the playlists name and second activity opens with names of songs in that playlist. What I want is that after navigating to new Activity I should still be able to see the same fragment from Main Activity playing the song with Title and Artist name. Also I have to maintain the current state of player like seekbar progress irrespective doing back and forth between multiple activities. Can this be achieved without having to create a new Fragment (and thus have fragment to fragment data sharing) in second Activity and instead load the Fragment from Main Activity as it is? If new Fragment needs to be created in Second Activity how should I pass the song detail like Album art, Title, Artist etc. from first fragment to second fragment?
1 month ago

Paul Clapham wrote:And, welcome to the Ranch!



Hi Paul I have edited the code as you suggested and have altered the code a bit but the problem still exists. Can you check again where i am going wrong. Thanks

2 years ago
This is the UserController.java class.


This is the UserModelItem.java.class


This is the initialize method in UserController.java.class


This fillComboBox() function is assigned to ComboBox with fx:id combo via SceneBuilder along with the UserController class.


This is the function to convert ObservableList to String-


i have used 'combobox.setItems(options)' in initialize method in the controller class and i see no error anywhere in the code. but still the combobox is empty when i run the scene. I can mail the entire project if anyone wants to check where i am going wrong. Please help.
2 years ago