Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Context Crashes the App on library call #16

Open
JackIrongate opened this issue May 25, 2020 · 0 comments
Open

Context Crashes the App on library call #16

JackIrongate opened this issue May 25, 2020 · 0 comments

Comments

@JackIrongate
Copy link

I am trying the sample on my android app
I try using this

        AppChecker appChecker = new AppChecker();
        String packageName = appChecker.getForegroundApp(ctx);

I tried making a context ctx
Not sure which way I am suppose to call it for it to work with your library.

so far I tried
Context ctx = getApplicationContext();
and
Context ctx = getBaseContext();

Both of them crash the app when it runs the sample code.

I downloaded the library from the download link on github project
I added the .aar library to my project
fgchecker-1.0.1.aar
I added the dependency to my project
and I import
import com.rvalerio.fgchecker.AppChecker;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant