I found that: http://stackoverflow.com/questions/5465212/android-increment-db-field-via-contentvalues Apparently can not be done by sending the name of the fields
Thanks for your help. On 20 ene, 10:55, Lester Quintero <lesterqu...@gmail.com> wrote: > Hi, > > Ok I believe that i make wrong question, i think that content provider > take that and transform To > > UPDATE ORDERLINE > SET TOTAL = Quantity * Price > > There is way to do that, and yes i need known more of java. > > Thanks > > On 20 ene, 10:16, Yahel <kaye...@gmail.com> wrote: > > > > > > > > > > but my surprise was find in column total this > > > content: "Price * Quantity" > > > Hi, > > > Why is it a surprise ? That is exactly what you are asking Android to > > do : Put the STRING : OrderLineContract.Columns.PRICE + " * " + > > OrderLineContract.Columns.QUANTITY in the column total. > > > Your question shows a real gap between what you want to achieve and > > what you know about programming. Kind of like : I want to play in the > > NBA but what is this orange round-shaped thingy for ? > > > OrderLineContract.Columns.PRICE does not contain the value of the > > field, it contains the name of the field > > Using aVariable1 + "*" + aVariable2 does not multiply, it concatenates > > the string. > > > You should really start here > > :http://docs.oracle.com/javase/tutorial/java/nutsandbolts/index.html > > > Good luck. > > > Yahel -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en