the image size is 4 Mb, it's a jpg. I haven't any problem if i try to change the background with another sample image (with a smaller size , for example the ic_launcher sample).
Should be a problem with a size? 2667 × 4733 it's the image dimension.
I use a samsung s4 mini for debug, it may be useful.
this is the code:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:columnCount="1"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:background="@drawable/mioartista"
tools:context="com.example.settingavatar.MyAvatar" >
<!-- other things -->
</RelativeLayout>
this is the error log
10-15 10:08:43.461: E/AndroidRuntime(3438): FATAL EXCEPTION: main
10-15 10:08:43.461: E/AndroidRuntime(3438): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.settingavatar/com.example.settingavatar.MyAvatar}: android.view.InflateException: Binary XML file line #2: Error inflating class android.widget.RelativeLayout
10-15 10:08:43.461: E/AndroidRuntime(3438): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2249)
10-15 10:08:43.461: E/AndroidRuntime(3438): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2299)
10-15 10:08:43.461: E/AndroidRuntime(3438): at android.app.ActivityThread.access$700(ActivityThread.java:154)
10-15 10:08:43.461: E/AndroidRuntime(3438): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1284)
10-15 10:08:43.461: E/AndroidRuntime(3438): at android.os.Handler.dispatchMessage(Handler.java:99)
EDIT : the solution that i adopted:
I changed the dimension. i make 5 set of image ( for the drawable folders) for every screen density. " is not useful use a 4mb's image if the device use at least the 50% of the size".