Best scenario to use abstract factory pattern in android [closed]
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
What are the best scenario to use abstract factory pattern in android?
closed as off-topic by ADM, Jörg W Mittag, Dave Cousineau, EdChum, Owen Pauling Jan 4 at 9:10
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it." – ADM, Jörg W Mittag, EdChum
If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
What are the best scenario to use abstract factory pattern in android?
closed as off-topic by ADM, Jörg W Mittag, Dave Cousineau, EdChum, Owen Pauling Jan 4 at 9:10
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it." – ADM, Jörg W Mittag, EdChum
If this question can be reworded to fit the rules in the help center, please edit the question.
Someone down voted this question. May i know why??
– Absar Alam
Jan 4 at 7:50
add a comment |
What are the best scenario to use abstract factory pattern in android?
What are the best scenario to use abstract factory pattern in android?
edited Jan 21 at 18:36
Absar Alam
asked Jan 4 at 7:42
Absar AlamAbsar Alam
10719
10719
closed as off-topic by ADM, Jörg W Mittag, Dave Cousineau, EdChum, Owen Pauling Jan 4 at 9:10
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it." – ADM, Jörg W Mittag, EdChum
If this question can be reworded to fit the rules in the help center, please edit the question.
closed as off-topic by ADM, Jörg W Mittag, Dave Cousineau, EdChum, Owen Pauling Jan 4 at 9:10
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it." – ADM, Jörg W Mittag, EdChum
If this question can be reworded to fit the rules in the help center, please edit the question.
Someone down voted this question. May i know why??
– Absar Alam
Jan 4 at 7:50
add a comment |
Someone down voted this question. May i know why??
– Absar Alam
Jan 4 at 7:50
Someone down voted this question. May i know why??
– Absar Alam
Jan 4 at 7:50
Someone down voted this question. May i know why??
– Absar Alam
Jan 4 at 7:50
add a comment |
2 Answers
2
active
oldest
votes
I am in a project which have required Analytic both from Google and Firebase. So I decided to use Abstract factory for my case.
AnalyticFactory:Abstract class which have some method such as: trackActivity trackFragment trackEvent. And one static method called createFactory which input is FactoryType (Firebase or Google) and return my Analytic based on my choice
FireBaseFactory and GoogleFactory: Child class inherit from AnalyticFactory.
After I implemented both FireBase and Google Factory. I just used it by AnalyticFactory. Hope it help.
add a comment |
I usually read a document about design pattern from tutorialspoint.com. It is easier to understand. This one is Abstract Factory Pattern
i know what is abstract factory pattern, i just wanted to know the examples of it in terms of android.
– Absar Alam
Jan 4 at 7:50
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
I am in a project which have required Analytic both from Google and Firebase. So I decided to use Abstract factory for my case.
AnalyticFactory:Abstract class which have some method such as: trackActivity trackFragment trackEvent. And one static method called createFactory which input is FactoryType (Firebase or Google) and return my Analytic based on my choice
FireBaseFactory and GoogleFactory: Child class inherit from AnalyticFactory.
After I implemented both FireBase and Google Factory. I just used it by AnalyticFactory. Hope it help.
add a comment |
I am in a project which have required Analytic both from Google and Firebase. So I decided to use Abstract factory for my case.
AnalyticFactory:Abstract class which have some method such as: trackActivity trackFragment trackEvent. And one static method called createFactory which input is FactoryType (Firebase or Google) and return my Analytic based on my choice
FireBaseFactory and GoogleFactory: Child class inherit from AnalyticFactory.
After I implemented both FireBase and Google Factory. I just used it by AnalyticFactory. Hope it help.
add a comment |
I am in a project which have required Analytic both from Google and Firebase. So I decided to use Abstract factory for my case.
AnalyticFactory:Abstract class which have some method such as: trackActivity trackFragment trackEvent. And one static method called createFactory which input is FactoryType (Firebase or Google) and return my Analytic based on my choice
FireBaseFactory and GoogleFactory: Child class inherit from AnalyticFactory.
After I implemented both FireBase and Google Factory. I just used it by AnalyticFactory. Hope it help.
I am in a project which have required Analytic both from Google and Firebase. So I decided to use Abstract factory for my case.
AnalyticFactory:Abstract class which have some method such as: trackActivity trackFragment trackEvent. And one static method called createFactory which input is FactoryType (Firebase or Google) and return my Analytic based on my choice
FireBaseFactory and GoogleFactory: Child class inherit from AnalyticFactory.
After I implemented both FireBase and Google Factory. I just used it by AnalyticFactory. Hope it help.
answered Jan 4 at 7:55
ToraCodeToraCode
142113
142113
add a comment |
add a comment |
I usually read a document about design pattern from tutorialspoint.com. It is easier to understand. This one is Abstract Factory Pattern
i know what is abstract factory pattern, i just wanted to know the examples of it in terms of android.
– Absar Alam
Jan 4 at 7:50
add a comment |
I usually read a document about design pattern from tutorialspoint.com. It is easier to understand. This one is Abstract Factory Pattern
i know what is abstract factory pattern, i just wanted to know the examples of it in terms of android.
– Absar Alam
Jan 4 at 7:50
add a comment |
I usually read a document about design pattern from tutorialspoint.com. It is easier to understand. This one is Abstract Factory Pattern
I usually read a document about design pattern from tutorialspoint.com. It is easier to understand. This one is Abstract Factory Pattern
answered Jan 4 at 7:48
John LeJohn Le
38139
38139
i know what is abstract factory pattern, i just wanted to know the examples of it in terms of android.
– Absar Alam
Jan 4 at 7:50
add a comment |
i know what is abstract factory pattern, i just wanted to know the examples of it in terms of android.
– Absar Alam
Jan 4 at 7:50
i know what is abstract factory pattern, i just wanted to know the examples of it in terms of android.
– Absar Alam
Jan 4 at 7:50
i know what is abstract factory pattern, i just wanted to know the examples of it in terms of android.
– Absar Alam
Jan 4 at 7:50
add a comment |
Someone down voted this question. May i know why??
– Absar Alam
Jan 4 at 7:50