On Wednesday, February 16, 2011 2:18:35 AM UTC+1, TreKing wrote:
On Mon, Feb 14, 2011 at 2:50 AM, Mattias Svala theb...@gmail.com wrote:
I'm looking for a way to select a contact from the phones list of contacts
in a PreferenceActivity. What is the best way to approach this?
Best
On Wednesday, February 16, 2011 10:04:09 AM UTC+1, Kostya Vasilyev wrote:
Storing the value is your preference's responsibility.
Typically, you have something like this in your preference:
public void setValue(int value) {
mValue = value;
persistInt(value);
}
Hello!
I'm looking for a way to select a contact from the phones list of contacts
in a PreferenceActivity. What is the best way to approach this? Do you know
of some project that has implemented a this in some way. Or do I need to
subclass Preference myself?
:.:: mattias
--
You received
As far as I can tell, if I have defined a configuration activity for my
widget then onUpdate should not be called when it is first created. It would
be the configuration activity's responsibility to perform the initial
configuration of the widget.
Why is it then that I still get calls to
returns.
The widget ID still being there even if you cancel the config activity is
also a bug on some versions of Android.
I documented my workaround for the second bug here:
http://kmansoft.wordpress.com/2010/06/22/per-widget-options-stale-widgets/
-- Kostya
11.02.2011 17:59, Mattias Svala
Hello!
I want to create an image programmatically that I will later use in an
ImageView. I was thinking that I can use BitmapDrawable to do this.
Something like this perhaps?
Bitmap bitmap = Bitmap.createBitmap(100, 100, Bitmap.Config.RGB_565);
BitmapDrawable drawable = new
On Thursday, February 10, 2011 5:21:17 PM UTC+1, Mark Murphy (a Commons Guy)
wrote:
On Thu, Feb 10, 2011 at 11:02 AM, Mattias Svala theb...@gmail.com wrote:
I want to create an image programmatically that I will later use in an
ImageView.
Why not just draw it on-screen? Why create
Hello!
I'm trying to figure out what style the text under the application shortcuts
in the launcher uses. Is it a different style for each phone model or is
there some style I cen reuse to get the same looking text in a widget?
:.:: mattias
--
You received this message because you are
On Tuesday, February 8, 2011 1:14:37 PM UTC+1, Kostya Vasilyev wrote:
You can find it in the source for Launcher2, and can get pretty close with
a TextView that has a round-rect shape drawable as the background (the
actual source uses a custom subclass of TextView, which you can't do with
Hello!
Am I correct in assuming that I can't use a custom view (a specialisation of
View) in an App Widget? This guide:
http://developer.android.com/guide/topics/appwidgets/index.html seems to
suggest that this is the case.
:.:: mattias
--
You received this message because you are
Hello!
I want to write a ListAdapter to serve data from a database that look like
this:
CREATE TABLE notes (_id integer primary key,
content text);
CREATE TABLE tags (_id integer primary key,
name text,
pos integer
On Thursday, January 13, 2011 11:54:26 AM UTC+1, Mattias Svala wrote:
I guess that this means that addView is not supported int the parent object
sent to getView(). I just want to double check that I'm not supposed to try
to attach my views to the parent ViewGroup in this case
Hello!
I would like to be able to write tests for my database code and have them
run without touching the database that my actual application uses. It would
be OK for the database tests to start with an empty or non existing database
each time the tests are run.
Is this possible?
I would
Ah, that's correct. The bin/ folder is a mistake in my example, I did not
check that in.
So it you check in every thing apart from bin/ and gen/, how do you get the
project to build cleanly right after it is imported into Eclipse?
:.:: mattias
--
You received this message because you are
list.
-- Kostya
2011/1/18 Mattias Svala theb...@gmail.com
Ah, that's correct. The bin/ folder is a mistake in my example, I did not
check that in.
So it you check in every thing apart from bin/ and gen/, how do you get
the project to build cleanly right after it is imported into Eclipse
On Tuesday, January 18, 2011 9:46:20 AM UTC+1, Webnet Android wrote:
On 18 January 2011 09:26, Mattias Svala theb...@gmail.com wrote:
If that is the best we can do, then I think the build system is a bit
broken. Anyone else have other tricks?
The only thing that is permanently broken
On Tuesday, January 18, 2011 2:33:53 PM UTC+1, TreKing wrote:
On Tue, Jan 18, 2011 at 3:37 AM, Mattias Svala theb...@gmail.com wrote:
I see what you are saying. Just trying to stir the nest to see if some
other interesting solution pops up. :-)
Honestly, how frequently are you importing
On Tuesday, January 18, 2011 3:16:42 PM UTC+1, TreKing wrote:
On Tue, Jan 18, 2011 at 7:47 AM, Mattias Svala theb...@gmail.com wrote:
The point is that I want it to be as easy as possible to download my
project and start hacking on it.
Oh, you're distributing your project for others
Hello!
I have a question about what parts of an Eclipse Android project to check
into source control. This is what i checked in, thinking that the gen/
folder would not be needed since the contents of it is generated as part of
the build process.
SimpleNotes/
|-- AndroidManifest.xml
|-- bin
Hello!
I have been trying to find some document database that can run on an android
phone. No luck so far.
I don't need any fancy replicating functionality, just the ability to store
json documents and query them. Something like a MongoDB Light, if there was
such a thing. Has anyone on this
Hello!
I'm trying to write my own custom ListAdapter. In getView() I want to
inflate the views from an XML file. To do this I have the following code:
public View getView(int position, View convertView, ViewGroup parent) {
LayoutInflater inflater = LayoutInflater.from(ctx);
I have just started out developing Android applications, so the only reason
for me using AndroidTestCase is me being clueless about the other test case
classes.
The test I'm writing in this case is for testing some sqlite code. I could
not find any test case class during my initial
Hello!
I'm writing some tests to test my database code. Can someone here explain if
there would be a difference writing those tests using the context I get from
AndroidTestCase.getContext() or using an IsolatedContext.
Speaking of IsolatedContext, what is the easiest way to create one if I
23 matches
Mail list logo