title: How to get an App category from play store by its package name in Android?
body: <p>I want to fetch the app category from play store through its unique identifier i.e. <strong>package name</strong>, I am using the following code but does not return any data. I also tried to use this <code>AppsRequest.newBuilder().setAppId(query)</code> still no help.
  Thanks.</p>
  
  <pre><code>                String AndroidId = "dead000beef";
                  MarketSession session = new MarketSession();
                  session.login("email", "passwd");
                  session.getContext().setAndroidId(AndroidId);
  
                  String query = "package:com.king.candycrushsaga";
                  AppsRequest appsRequest = AppsRequest.newBuilder().setQuery(query).setStartIndex(0)
                          .setEntriesCount(10).setWithExtendedInfo(true).build();
  
                  session.append(appsRequest, new Callback&lt;AppsResponse&gt;() {
                      @Override
                      public void onResult(ResponseContext context, AppsResponse response) {
  
                          String response1 = response.toString();
                          Log.e("reponse", response1);
  
                      }
                  });
                  session.flush();
  </code></pre>