Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

RoboGuice problem #1368

@dmitrikudrenko

Description

@dmitrikudrenko

I created listener and indicated it in my Activity:

@EActivity(R.layout.activity_currency)
@RoboGuice(value = {FlurrySessionListener.class})

Listener:

public class FlurrySessionListener {
    @Inject
    Context context;

    public void onStartSession(@Observes OnStartEvent event) {
        FlurryAgent.onStartSession(context, getApiKey(context));
    }

    public void onStopSession(@Observes OnStopEvent event) {
        FlurryAgent.onEndSession(context);
    }

    protected String getApiKey(Context context) {
        return context.getResources().getString(R.string.flurry_api_key);
    }
}

But on build there is an error:
Error:(23, 58) error: expected
Error:(70, 29) error: '{' expected
Error:(290, 2) error: reached end of file while parsing

It is problem in import in Activity_:
import com.delphin.currency.flurry.FlurrySessionListener.class;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions