Code Monkey home page Code Monkey logo

Comments (11)

SimonVT avatar SimonVT commented on September 14, 2024

So if you query the database yourself it doesn't work either?

from schematic.

tasomaniac avatar tasomaniac commented on September 14, 2024

It works in the classic way when I query the dB with contentresolver. But
InexactContentUri is cool to use.

On Tue, Oct 6, 2015, 7:09 PM Simon Vig Therkildsen [email protected]
wrote:

So if you query the database yourself it doesn't work either?


Reply to this email directly or view it on GitHub
#37 (comment).

from schematic.

tasomaniac avatar tasomaniac commented on September 14, 2024

I just wanted to see your opinion.

On Tue, Oct 6, 2015, 9:06 PM Said Tahsin Dane [email protected] wrote:

It works in the classic way when I query the dB with contentresolver. But
InexactContentUri is cool to use.

On Tue, Oct 6, 2015, 7:09 PM Simon Vig Therkildsen <
[email protected]> wrote:

So if you query the database yourself it doesn't work either?


Reply to this email directly or view it on GitHub
#37 (comment).

from schematic.

SimonVT avatar SimonVT commented on September 14, 2024

Well, for your example I wouldn't use @InexactContentUri, I'd just use @ContentUri and define the where parameter.

from schematic.

tasomaniac avatar tasomaniac commented on September 14, 2024

Oh I thought there can be only a single @ContentUri in a class. I couldn't
annotate a method with it. And your sample project as well has only one.

Can I just add another @ContentUri?

On Tue, Oct 6, 2015, 9:17 PM Simon Vig Therkildsen [email protected]
wrote:

Well, for your example I wouldn't use @InexactContentUri, I'd just use
@ContentUri and define the where parameter.


Reply to this email directly or view it on GitHub
#37 (comment).

from schematic.

SimonVT avatar SimonVT commented on September 14, 2024

Sure, you can have all the @ContentUri annotated fields you want :)

from schematic.

tasomaniac avatar tasomaniac commented on September 14, 2024

Do they have to be fields? Not methods?

On Tue, Oct 6, 2015, 10:45 PM Simon Vig Therkildsen <
[email protected]> wrote:

Sure, you can have all the @ContentUri annotated fields you want :)


Reply to this email directly or view it on GitHub
#37 (comment).

from schematic.

SimonVT avatar SimonVT commented on September 14, 2024

Yes, the @ContentUri Uri never changes, so that's just for static fields. @InexactContentUri is used when the Uri is created based on some value (e.g. an id).

from schematic.

tasomaniac avatar tasomaniac commented on September 14, 2024

It seems that I can do what I need using @ContentUri.
@IntexactContentUri with blobs do not work. If it is ok, we can close this issue.

from schematic.

SimonVT avatar SimonVT commented on September 14, 2024

@InexactContentUri works fine with blobs, your @InexactContentUri and @ContentUri just aren't querying the same thing. If you care you can attach a debugger and find out what is being passed to SQLiteDatabase#query in the two cases, to see what the difference it.

from schematic.

tasomaniac avatar tasomaniac commented on September 14, 2024

Yes it did. Thank you very much.

Little bit documentation on @InexactContentUri and @ContentUri would be really helpfull. I want to help. Sending a PR now. If you don't like it, you can add your own.

Thank you for the great lib.

from schematic.

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.