Choice of API Level

by Kevin » Fri, 13 Nov 2009 07:22:45 GMT


Sponsored Links
 The developer guide recommends choosing the lowest API level your
application can support.  However, the current SDK only includes
images down to level 2.  What about level 1?  Aren't there devices "in
the wild" that will use the 1.0 Platform?  If you want to target level
1, do you need to use an old SDK?

--



Other Threads

1. ADT plugin... error 404

since very recently https://dl-ssl.google.com/android/eclipse/ is on
error (404)
could someone at google can fix it ? ;)

--~--~---------~--~----~------------~-------~--~----~

2. nullifying imageview src

Hi all, i'm making a little card game in order to learn the more
interesting stuff of the UI and I have a question:
i want to show 5 cards on the table, for that i have made 5 imageviews
in the xml:
        <AbsoluteLayout
        android:id="@+id/cardsThrown"
        android:layout_height="wrap_content"
        android:layout_width="wrap_content"

        android:layout_toRightOf="@+id/deck">

                        <ImageView
                                android:layout_width="72px"
                                        android:layout_height="96px"

                                android:id="@+id/card5"
                                android:layout_x="0px"
                                android:layout_y="0px"
                        />
                        <ImageView
                                android:layout_width="72px"
                                        android:layout_height="96px"

                                android:id="@+id/card4"
                                android:layout_x="12px"
                                android:layout_y="0px"
                        />
                        <ImageView
                                android:layout_width="72px"
                                        android:layout_height="96px"
                                android:id="@+id/card3"
                                android:layout_x="24px"
                                android:layout_y="0px"
                        />
                        <ImageView
                                android:layout_width="72px"
                                        android:layout_height="96px"

                                android:id="@+id/card2"
                                android:layout_x="36px"
                                android:layout_y="0px"
                        />
                        <ImageView
                                android:layout_width="72px"
                                        android:layout_height="96px"

                                android:id="@+id/card1"
                                android:layout_x="48px"
                                android:layout_y="0px"
                        />


        </AbsoluteLayout>
        </RelativeLayout>

as you might notice here, i'm doing them with an overlap since the uer
should be able to pick up the last card and should therefore see it,
but the other 4 are just so he'll know what was thrown lastly.
my problem is:
in the begining the imageviews have no src, but once i give them an
image source (using code:
                        thrownCardsImgs[thrownCardIndex].
                                
setImageResource(cards[thrownCardIndex].getImageResourceId());
) i dont know how i can undo it - i can't set the imageResourceId to
null since it is an int type so is there something like -1 or some
constant value that means null?
P.s., i know about visibility, i'd rather not use it here unless i
really have to, since it'll require a bunch or refactoring that i
prefer to avoid...
Thanks,
Sh
--~--~---------~--~----~------------~-------~--~----~

3. Attempting to build wrapsim for x86

4. Updated to 1.5 and R.java is not regeneratated

5. Differentiating between Simulator v/s. Real device

6. How to detect whether the virtual keyboard is visible or not? SDK 1.5

7. How to Detect Soft Keyboard / Resize?