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;
}







-1















What are the best scenario to use abstract factory pattern in android?










share|improve this 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




















-1















What are the best scenario to use abstract factory pattern in android?










share|improve this 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
















-1












-1








-1








What are the best scenario to use abstract factory pattern in android?










share|improve this question
















What are the best scenario to use abstract factory pattern in android?







android






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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





















  • 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














2 Answers
2






active

oldest

votes


















2














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.






share|improve this answer































    0














    I usually read a document about design pattern from tutorialspoint.com. It is easier to understand. This one is Abstract Factory Pattern






    share|improve this answer
























    • 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


















    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    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.






    share|improve this answer




























      2














      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.






      share|improve this answer


























        2












        2








        2







        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.






        share|improve this answer













        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.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 4 at 7:55









        ToraCodeToraCode

        142113




        142113

























            0














            I usually read a document about design pattern from tutorialspoint.com. It is easier to understand. This one is Abstract Factory Pattern






            share|improve this answer
























            • 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
















            0














            I usually read a document about design pattern from tutorialspoint.com. It is easier to understand. This one is Abstract Factory Pattern






            share|improve this answer
























            • 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














            0












            0








            0







            I usually read a document about design pattern from tutorialspoint.com. It is easier to understand. This one is Abstract Factory Pattern






            share|improve this answer













            I usually read a document about design pattern from tutorialspoint.com. It is easier to understand. This one is Abstract Factory Pattern







            share|improve this answer












            share|improve this answer



            share|improve this answer










            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



















            • 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



            Popular posts from this blog

            Mossoró

            Error while reading .h5 file using the rhdf5 package in R

            Pushsharp Apns notification error: 'InvalidToken'