ribot / android-guidelines

Architecture and code guidelines we use at ribot when developing for Android

Home Page:http://ribot.co.uk/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it possible to inject RetrofitServie into Application instance?

thomasdola opened this issue · comments

public class RymeApplication extends Application{
@Inject
RymeService mRymeService;
=>and use it onCreate()
possible?

I'm not sure I fully understand your question. If you are asking if you can inject fields from within the Application class, the answer is yes. It works as any other class.

I don't think this question is related to these guidelines and is not an issue relevant to this repository so I'm going to close it.