Comments (11)
So if you query the database yourself it doesn't work either?
from schematic.
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.
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.
Well, for your example I wouldn't use @InexactContentUri
, I'd just use @ContentUri
and define the where parameter.
from schematic.
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.
Sure, you can have all the @ContentUri
annotated fields you want :)
from schematic.
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.
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.
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.
@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.
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)
- Add support for check, foreign key and primary key on table level. HOT 1
- Write the changelog in the GitHub releases
- Migrate from Apt to AnnotationProcessor HOT 4
- App crashes when trying to redeploy HOT 5
- Observation on placement of the database class
- NullPointerException on build when adding new Table HOT 1
- Create dropped tables again HOT 4
- Limit with Parameter HOT 1
- Join example
- Latest Version HOT 1
- java.lang.NullPointerException with no clue when using schematic 0.7.0 in SDK 26 and using annotationProcessor library. HOT 5
- When is onupgrade called in database HOT 2
- Unable to include repository with gradle
- Generated class not found on dexpathlist , Android Studio 3.0 HOT 1
- @InexactContentUri with String value HOT 4
- using where to add LIKE statement HOT 1
- Package net.simonvt.schematic.utils does not exist HOT 8
- How to use path value in WHERE clause?
- Unable to get provider error HOT 3
- How to validate content values before insertion or update?
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 schematic.