drawing image in full screen on different device

by Honest » Thu, 03 Sep 2009 17:19:08 GMT

Sponsored Links

My application required to draw image on full screen.  now the phone
screen size will be different. So will i have to make different image
for each phone or i can use just one image and it can display on full
screen in any device.

drawing image in full screen on different device

by Nightwolf » Fri, 04 Sep 2009 00:02:25 GMT

 Image view with layout_width and layout_height set to fill_parent"
should help.


Sponsored Links

Other Threads

1. How to connect content provider in ProviderTestCase2 class?

I try to build a class which extends ProviderTestCase2 to test my
content provider.

But I don't know how to connect my content provider and also don't
find any document about this case.
In CalendarProviderTest, they create a Mock Provider and use
mResolver = getMockContentResolver();
to new a provider.

But I still don't know why they use this method.

My sample code as follows:

public class ABCProviderTest extends ProviderTestCase2<TaskProvider> {

    private SQLiteDatabase mDb;
    private Context mContext;
    private MockContentResolver mResolver;

    public ABCProviderTest () {
        super(ABCProvider.class, "com.android.abc.providers");

    protected void setUp() throws Exception {
        mContext = getMockContext();
        mResolver = getMockContentResolver();
        mDb = getProvider().getDatabase();

    protected void tearDown() throws Exception {

    public void testProviderColumns() {
        Cursor cursor;
        Uri url = ABCProvider.CONTENT_URI;
        cursor = mResolver.query(url, null, null, null, null);
        assertEquals(10, cursor.getColumnCount());

Is there any suggestion about how to connect content provider and test
it by ProviderTestCase2?

2. How to use remapCoordinateSystem of SensorManager

Dear all,

          I want to transform the coordinate in Camera style. But I
really can't understand how to use  remapCoordinateSystem. Is there
any example to help me understand how to use?

Best regards,
Augustin Lu.

3. pmem usage in opencore of Android1.5

4. Emulator not showing on screen from cmd.

5. Changing one TextView with onSensorChanged without Redrawing the Entire Layout

6. wifi/wpa_supplicant

7. Passing pmem FDs from OMX to MIO