Log in or register to post comments

sharing Intent

December 18, 2013 - 6:21am #1


I want to share image through share Intent after capturing the image thriugh unity

I am using following code to take the screen shot in an Android Phone

      IEnumerator ScreenshotEncode()
        yield return new WaitForEndOfFrame();
      Texture2D texture = new Texture2D(Screen.width, Screen.height, TextureFormat.RGB24, false);
       texture.ReadPixels(new Rect(0, 0, Screen.width, Screen.height), 0, 0);
        yield return 0;
        byte[] bytes = texture.EncodeToPNG();
         print ("done"+Application.persistentDataPath );
        File.WriteAllBytes( "/mnt/sdcard/" + "testscreen"+count+".png",bytes );
        DestroyObject( texture );

I have tried the following link of Vuforia


got error : Exception: java.lang.NoSuchMethodError: showMessage


Please Help



sharing Intent

December 19, 2013 - 3:33am #2

The error is self-explanatory; you are trying to call a specific method with wrong name or signature..

but this is about Unity and Android programming, not about Vuforia.


Log in or register to post comments