Why this sample code not working? RRS feed

  • Question

  • User67189 posted

    I tried the sample "Take a picture and save using camera App" on android device (API16). The OnCreate which contains the code to display the image has never been called. The OnCreate has only been called once at the startup of the app. I guess to display the image, the OnCreate should be invoked again after I selected the image but only OnStart and OnResume after that.

    So I don't understand now. Has anyone tried that sample code? Or something is wrong in my setup. I did have some "not found" in the application output.

    [Mono] AOT module 'System.Xml.dll.so' not found: Cannot load library: load_library(linker.cpp:745): library "/data/data/CameraAppDemo.CameraAppDemo/lib/System.Xml.dll.so" not found

    Please help. Very much appreciated.


    Wednesday, April 15, 2015 11:34 AM

All replies

  • User67189 posted

    I think I have figured out why. The code is simply missing. A single line of code could just be added to the end of the OnActivityResult() for displaying the image. _imageView.SetImageBitmap (App.bitmap);

    Saturday, April 18, 2015 1:31 AM