Comments (8)
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.
Original comment by [email protected]
on 20 Mar 2010 at 8:34
- Changed state: Accepted
from android-market-api.
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.
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.
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.
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.
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.
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)
- Version 2 - creation time of comment in invalid format HOT 1
- Always missing one search result ? HOT 2
- RuntimeException with "Bad request 400" for certain start index HOT 9
- Request API for listing all applications HOT 1
- Remove Eclipse project from svn
- RuntimeException with "Bad request 400" for certain start index HOT 2
- app's .apk download HOT 3
- Add support for 'purchased' field HOT 5
- Response code 503 HOT 2
- Can not find my app HOT 1
- SocketException and then NullPointerExceptions
- Retrieve release date? HOT 2
- RuntimeException in MarketSession
- downloadCount from extendedInfo is alway zero HOT 2
- getDownloadCount() function returns 0 (zero) HOT 1
- How should we get the ANDROID_ID?? HOT 4
- RuntimeException with "Bad request 400" again HOT 5
- Patch for /trunk/AndroidMarketApi/proto/market.proto
- Wrong number of rates
- Not getting category of app after polling so many entries
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-market-api.