# Problems handling MultiDensityImageSource in Integration

**URL:** <https://forums.fusetools.com/t/problems-handling-multidensityimagesource-in-integration/4177>\
**Category:** How-to Discussions\
**Created:** [August 28, 2017, 4:49am UTC](https://forums.fusetools.com/t/problems-handling-multidensityimagesource-in-integration/4177 "2017-08-28T04:49:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuyonghwan](https://avatars.discourse-cdn.com/v4/letter/y/5daacb/32.png) [@yuyonghwan](https://forums.fusetools.com/u/yuyonghwan)\
**Post date:** [August 28, 2017, 4:49am UTC](https://forums.fusetools.com/t/problems-handling-multidensityimagesource-in-integration/4177/1 "2017-08-28T04:49:19Z")

</div>

Android Integraion encountered an image processing issue.

If processed in this form, it will display normally.

```auto
<Image File = "../ Assets/home@4x.png" StretchMode = "UniformToFill" />

```

However, in this form, the image is not displayed.

```auto
<Image StretchMode = "PixelPrecise">
  <MultiDensityImageSource>
    <FileImageSource File = "Assets/home@1x.png" Density = "1" />
    <FileImageSource File = "Assets/home@2x.png" Density = "2" />
    <FileImageSource File = "Assets/home@4x.png" Density = "4" />
  </MultiDensityImageSource>
</Image>

```

Is MultiDensityImageSource unusable when integrating?

---

<div class="post-metadata">

**Author:** ![Uldis](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/uldis/32/657_2.png) [@Uldis](https://forums.fusetools.com/u/Uldis)\
**Post date:** [August 28, 2017, 9:39am UTC](https://forums.fusetools.com/t/problems-handling-multidensityimagesource-in-integration/4177/2 "2017-08-28T09:39:00Z")

</div>

We will need more information to move on.

The actual pictures you’re using, a complete reproduction that we can run, Fuse version, OS version, the target you’re experiencing the issues on (local, android, iOS) and all other relevant details, including an explanation on what “Android Integration” means.

---

<div class="post-metadata">

**Author:** ![yuyonghwan](https://avatars.discourse-cdn.com/v4/letter/y/5daacb/32.png) [@yuyonghwan](https://forums.fusetools.com/u/yuyonghwan)\
**Post date:** [August 28, 2017, 10:03am UTC](https://forums.fusetools.com/t/problems-handling-multidensityimagesource-in-integration/4177/3 "2017-08-28T10:03:30Z")

</div>

OS : Mac OS Sierra 10.12.6  
FuseVersion : 1.2.1

[https://www.fusetools.com/examples/running-app](https://www.fusetools.com/examples/running-app)

You have integrated the app in the link.

MainView.ux \>

```auto
<App>
	<ExportedViews>
		<AllView ux:Template="MyView" />
	</ExportedViews>

	<DockPanel ux:Class="AllView">
		<iOS.StatusBarConfig Style="Dark" />
		<Android.StatusBarConfig Color="#000" />

		<Router ux:Name="router" />

		<!-- <StatusBarBackground Dock="Top" /> -->
		<NavBar ux:Name="navBar" Dock="Top" />
		
		<Navigator DefaultPath="home">
			<HomePage ux:Name="home" router="router" navBar="navBar" />
			<ActivityPage ux:Name="activity" router="router" navBar="navBar" />
		</Navigator>

		<BottomBar Dock="Bottom" />
		<!-- <BottomBarBackground Dock="Bottom" /> -->
	</DockPanel>
</App>

```

Android Activity\>

```auto
public class MainActivity extends FuseViewsActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        ViewHandle myView = ExportedViews.instantiate("MyView");
        View view = myView.getView();

        RelativeLayout parent = (RelativeLayout) findViewById(R.id.main);
        parent.addView(view);

    }

    @Override
    public boolean onKeyDown(int keyCode, KeyEvent event) {
        if(keyCode == KeyEvent.KEYCODE_BACK){
            super.onBackPressed();
            MainActivity.this.onDestroy();
            return true;
        }
        return super.onKeyDown(keyCode, event);
    }
}

```

Android activity\_main.xml \>

```auto
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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"
    tools:context="developer.animir.integrationtestnaver.MainActivity">
    <RelativeLayout
        android:id="@+id/main"
        android:layout_width="match_parent"
        android:layout_height="match_parent">
    </RelativeLayout>
</LinearLayout>

```

And I removed the Android title bar.

Android style.xml\>

```auto
<resources>

    <!-- Base application theme. -->
    <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
        <!-- Customize your theme here. -->
        <item name="colorPrimary">@color/colorPrimary</item>
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <item name="colorAccent">@color/colorAccent</item>
        <item name="windowNoTitle">true</item>
    </style>

</resources>

```

I did this.

Run on Android does not show any images in StacticResources.ux at all.

Mobile is the Galaxy S7 Edge.

 ![file](https://s3.us-east-2.amazonaws.com/fuse-legacy-forum-assets/8VxQSTS4gEsB-image-1503914574615.jpeg)
