0

i have tried with these instructions available on this devoloper link

I need to load res/layout-w1024dp-h768dp/activity_main.xml on a device of resolution 1024x768 or else a default xml file, so i configured my AVD and my project explorer looks as follows enter image description here

i have tried with all, but its not working on AVD of that spec.. can anybody please help me out...

here is manifest file

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.fm_player"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
    android:minSdkVersion="14"
    android:targetSdkVersion="15" />

<supports-screens android:requiresSmallestWidthDp="768" />

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

<application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
    <activity
        android:name=".MainActivity"
        android:label="@string/title_activity_main" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

</manifest>
Charan Pai
  • 2,288
  • 5
  • 32
  • 44

1 Answers1

1

Can Android deal with two different resolutions in the folder name?

Have you tried using:

res/layout-sw768dp

which will take the shortest length of 768, from both the width and height?

biddulph.r
  • 5,226
  • 3
  • 32
  • 47
  • next, obvious, question is: are you definitely using a device that is the correct size? And are you compiling against a version of Android SDK > 3.0? – biddulph.r Sep 25 '12 at 13:31