sqlite, SQLiteOpenHelper, should my insert methods be based around my domain or the database? i.e. should I have an insert method for each table, or an insert method for a domain model that I split up into different tables within that method
for example, i'm passing in a base class, and depending on the type of child class, i'll need to save it differently, should that be done within SQLiteOpenHelper, or within another (repo)
@SteveG I think you can do it either way, it's up to you. One insert method that has, say, a switch statement is how you do it in a ContentProvider, so your own data source could work like that too.
if i do it separately, i can do it easier in a transaction and it'd make more sense, but i could still do a transaction within the SQLiteOpenHelper class
It's just a means of connecting to your database, really. It's only required if you want to share data across applications, but I use it because it provides you with the ability to use tools like CursorLoader, and because I think it keeps my code nice and organized.
I think I can find you a good tutorial on it one sec
It starts by explaining how you can write content classes to define your schema, then how to use SQLiteOpenHelper to create your database, third part discusses the ContentProvider and all required methods (this is the longest one), and the fourth post goes over how you can test your contentprovider
@WarrenFaith An explosion of resource files (a separate 6-line resource file for each minute little thing that requires a layout) doesn't sound like a great option either. Different sort mess.
in the whole of spain, it's around ~16%. helps measure growth, it doesn't mean they will exist in one year, but it's a good indication of a slightly better economy.
I want to develop android applications in c# instead of using Java.
So can anyone tell me , is that right and professional way to develop small and big apps in c# on visual studio ?
downvoting someone with 1 rep is not a big deal, but I agree, at least some kind of "welcome, please read the FAQ etc bla bla" as a comment too would have been nice
That's just very dick move and too nitpicky. The OP might not be a native English speaker or doesn't have enough education with regards to that language. I, myself, before wasn't that good enough to express my thoughts but at least I am trying, and I think that OP too is.
you know how hard it is to express your thoughts in a different language?
Reading through the documentation, is it enough to create the flavour in gradle and create the alternate src folders at the same level as "main" with the oem name as the folder name?
like, I've created the flavour "oem1" and directory named "oem1" which contains res/values/string.xml
Should oem1 run using main/res/values/string.xml overriden where possible from oem1/res/values/string.xml
correct. both xml files will be merged with the favor for the oem1 xml file. So what ever you want to have overwritten must be defined in the oem1 xml.
stereotypes also known as prejudice. Then acting on said prejudice aka discrimination. Posting that stuff doesn't make this a welcoming place for women to come and talk - which isn't cool
https://github.com/pilgr/Paper#exclude-fields this looks questionable, because if some 2 libraries will happen to use`transient` keyword, there will be no way to ignore a field for only one of them