Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

image not displayed

$
0
0

hello,
I try to display an image in a Xamarin page, the code I use is:

Image img = new Image()
            {
                Source = "retourImg.jpg"
            };

and:
this.Content = new StackLayout()
{
Orientation = StackOrientation.Vertical,
Children = {
TakePhoto, img
}
};


I haven't error, but at the execution, log lines displaied are :

09-02 18:08:19.925 D/Mono    ( 1538): Assembly Ref addref Xamarin.Forms.Labs[0xb861c2b8] -> System.Linq.Expressions[0xb86b56e8]: 4
09-02 18:08:19.925 D/Mono    ( 1538): Assembly Ref addref Xamarin.Forms.Labs[0xb861c2b8] -> System.Reflection[0xb86d7508]: 3
09-02 18:08:19.965 W/ResourceType( 1538): No package identifier when getting value for resource number 0x00000000
09-02 18:08:19.981 W/ResourceType( 1538): No package identifier when getting value for resource number 0x00000000
09-02 18:08:19.981 W/ResourceType( 1538): No package identifier when getting value for resource number 0x00000000
09-02 18:08:19.989 D/skia    ( 1538): --- SkImageDecoder::Factory returned null
09-02 18:08:19.993 W/ResourceType( 1538): No package identifier when getting value for resource number 0x00000000
09-02 18:08:20.005 D/skia    ( 1538): --- SkImageDecoder::Factory returned null
09-02 18:08:20.021 D/dalvikvm( 1538): GC_FOR_ALLOC freed 73K, 6% free 9344K/9927K, paused 10ms, total 12ms
09-02 18:08:20.033 I/dalvikvm-heap( 1538): Grow heap (frag case) to 10.329MB for 1228812-byte allocation
09-02 18:08:20.053 D/dalvikvm( 1538): GC_FOR_ALLOC freed 4K, 6% free 10540K/11143K, paused 19ms, total 19ms
09-02 18:08:20.085 D/dalvikvm( 1538): GC_CONCURRENT freed <1K, 6% free 10545K/11143K, paused 13ms+1ms, total 31ms
09-02 18:08:20.233 D/OpenGLRenderer( 1538): TextureCache::get: create texture(0xb9956150): name, size, mSize = 353, 138240, 1981980
09-02 18:08:20.249 D/OpenGLRenderer( 1538): TextureCache::get: create texture(0xb997c958): name, size, mSize = 354, 138240, 2120220
09-02 18:08:20.545 D/OpenGLRenderer( 1538): TextureCache::get: create texture(0xb9b28618): name, size, mSize = 363, 1228800, 3349020

I think the important line of log is:

SkImageDecoder::Factory returned null

But the answers that I found myself, not permitted to solve.
I display the images in the android part.
I put BuildAction at AndroidRessource.
I put the images in the folder Resources.Drawable.

http://forums.xamarin.com/utility/thumbnail/4560/~cf/FileUpload/6c/dbd0f0e42e2d67cae36b3513e12143.png


Viewing all articles
Browse latest Browse all 58056

Trending Articles