I have to write an Application for Android and I'm asking myself if there are better ways to design my app.
My problem: I have to create Groups which include Person. In my first Activity I want to show all the Groups the Person is part of. When I click on a Group I want to show all the Persons who are part of this group.
Question: So do I need a M:N relationship? Is this a bad design and are their better ideas to design the app?
public class Person {
private List<Group> allGroups
}
public Group {
private List<Person> allGroupMembers
}
I have already searched about 30 minutes but couldn't find an answer to my question.
I'm looking forward to your help.