GOOGLE IS CHECKING YOUR APP FOR 15 MINUTES ONLY, HOWEVER IN MY EXPERIENCE, THEY ARE SENDING MANUAL MODERATOR IN NEXT 3 DAYS
Manual operator is not checking your source code but he is running app to check malicious behavior, like displaying ads outside application or forcing ratings by alert dialog:

Image

*In not legal version, when user cancel dialog, application is closing. Results are perfect but we can’t show it to moderator! With json control, we have 100% control on all user devices!

We need cheap hosting, where we can place simple json file:

{
“dialog”: “0”,
“outsideapps”: “0”}

By changing values to 1 or 0 we are activating or deactivating our features on user devices without changing our apps.
For example, dialog 1 – application will show dialog, dialog 0 – application will not show dialog.

Now we need to add it to our application:

First, we need to add GSON library to our gradle file in dependencies, paste:

implementation ‘com.google.code.gson:gson:2.8.1’    (IN OLD ANDROID VERSION WAS COMPILE!)

Image

Next, we need to create class and method to check state for our variables in MainActivity.java

 

class Page {
String dialog,outsideapp;}
public void checkState() throws Exception {
String json = readUrl(“http://dragonsuper.stream/iterator.json“); //change to your URL
GsonBuilder gsonBuilder = new GsonBuilder();
Gson gson = gsonBuilder.create();

Page page = gson.fromJson(json, Page.class);

dialog=page.dialog;
outsideAds = page.outsideads;

if(dialog.equals(“1”))
{
//show 5 stars AlertDialog (you can see in other article how)
}

}

 

To use it, in your onCreate method, trigger:

checkState();

Here you have another JSON tutorial

https://www.androidhive.info/2014/09/an … ng-volley/