Re: [android-developers] Best way to store data in database

2010-12-08 Thread nirav sabhaya
BroadcastExample.java -- package com.example.broadcast; import android.app.Activity; import android.content.Context; import android.os.Bundle; import android.telephony.*; import android.util.Log; import android.widget.TextView; public class BroadcastExaple extends

Re: [android-developers] Best way to store data in database

2010-12-07 Thread Kostya Vasilyev
Sure, a database would work, but, depending on how many colors you have, it might be overkill. Also note that you don't have to use Android color resources unless it is actually convenient for your application. I'd use a text file with simple "color: #abcdef" definitions, in res/raw to defin

Re: [android-developers] Best way to store data in database

2010-12-07 Thread Danny Schimke
The change of R was my guess too and the main reason why I asked here. Ahh, ok, I understand, you would save color names or the code like #RRGGBB. But what happens when I delete or change colors... Once a color is part of my app i can't remove it, cause users who used them saved the code or name in

Re: [android-developers] Best way to store data in database

2010-12-07 Thread Kostya Vasilyev
Danny, The values in R can change as you add and remove resources. I'd say store color names, or actual RGB values (and match them to names when need to present to the user). -- Kostya 07.12.2010 16:56, Danny Schimke пишет: Hi, I have 2 textual inputs that I saved to database, furthermore