Code Monkey home page Code Monkey logo

Comments (8)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 26, 2024
I was able to get this working by using a real Android device id in:
context.setAndroidId("0000000000000000"); 

Original comment by [email protected] on 19 Mar 2010 at 11:26

from android-market-api.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 26, 2024

Original comment by [email protected] on 20 Mar 2010 at 8:34

  • Changed state: Accepted

from android-market-api.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 26, 2024
Dear,

I tested the following code on an real device and had no application in 
response.
I tested with several packages names (protected or not) 
Exemple : pname:sagemilk.com.top1000.rock, pname:com.numerama.widget,
pname:com.tenromans.fastemail.
When I do a simple search, seems that with some key word (Numerama - not 
protected
app), I could find no apps (normal result 1 app).

Regards,

Olivier

MarketSession session = new MarketSession();


session.getContext().setAndroidId(((TelephonyManager)getSystemService(Context.TE
LEPHONY_SERVICE)).getDeviceId());
session.setOperatorSFR()
session.login(EMAIL, PASSWORD);


AppsRequest appsRequest = AppsRequest.newBuilder()
      .setQuery("pname:com.tenromans.fastemail")
      .setStartIndex(1).setEntriesCount(10)
      .setWithExtendedInfo(true)
      .build();

Original comment by [email protected] on 1 Apr 2010 at 1:36

from android-market-api.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 26, 2024
I just tryied to set Android Id with the following value  
Settings.System.getString(getContentResolver(),android.provider.Settings.Secure.
ANDROID_ID)
That changes nothing to my problem.

Regards,

Olivier

Original comment by [email protected] on 1 Apr 2010 at 2:01

from android-market-api.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 26, 2024
If you're working on an emulator then 
android.provider.Settings.Secure.ANDROID_ID
returns and empty string.

Original comment by [email protected] on 1 Apr 2010 at 3:19

from android-market-api.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 26, 2024
Thanks for answering,

I was working on a real device. 
After testing several search, it appears my problem is :  there is always one 
search
result missing.
If there is only one result, I am never able to display the result 
(I have got : entriesCount = 1, but the application list is empty)
I test with "pub:\"TextLogic Inc\n", I have got : entriesCount =4, and the
application list = 3. (correct result = 4)

Do you have the same result ?

Original comment by [email protected] on 6 Apr 2010 at 8:22

from android-market-api.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 26, 2024
My mistake,

I set .setStartIndex(1) while it must be set at .setStartIndex(0).

Thanks for that great api

Original comment by [email protected] on 6 Apr 2010 at 10:15

from android-market-api.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 26, 2024
Sorry, included sample was stupid

Original comment by [email protected] on 4 May 2010 at 4:28

  • Changed state: Invalid

from android-market-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.