Skip to content

Tag: android

How to parse JsonObject without JsonArray?

I have an json like this: But I could not get string objects from “data” tag using volley because there is no any json array to foreach tag. I tired and I search so much examples. I could’nt find any solution from stacoverflow. Any one can help me? Answer I am not familiar with Volley, but a…

How to make context not null in onCreate()?

I’m trying to get the context in the onCreate() method, to use in my RoomDb repository, but it keeps giving me a NullPointerException. repository I’ve tried to look through other explanations, but I just can’t wrap my head around it. I’ve tried GetApplicationContext, and this. I’…