So like everyone else, I moved to Android Studio and encountered issues. My current issue - Android Studio won't let me run an application without a launch-able activity in the Manifest, for example, my application Pro key which isn't suppose to be launch-able and runs great with Eclipse. Obviously it's not suppose to run but is there any way to install it directly from Studio? Solved In Run/Debug Configurations (just next to the launch button in the toolbar) you can manage your application configurations. There you should be able to specify whether you want to launch an Activity or not. In Run/Debug Configurations in General -> Launch Options -> Launch select Nothing like this For the case you mention, editing the 'Defaults' run configuration may not result in a runnable/installable app (at Android Studio 0.2.3, at least). Instead, it is possible to run/install by defining a new run configuration: Run -...
I have a Texture in the Assets folder with (Texture Type = Advanced, Read/Write Enabled = true, Max Size = 512, Format = RGB 24 bit). Now I want to read this texture and then copy the pixels into another texture2d and save that. private Texture2D sourceImg; ... Texture2D tex = new Texture2D(512, 512, TextureFormat.RGB24, false); tex.SetPixels(sourceImg.GetPixels(0,0,512,512)); tex.Apply(); byte[] png = tex.EncodeToPNG(); File.WriteAllBytes(Application.persistentDataPath + "/Screenshot.png", png); I don't know, why this simple code is not working? When I add the new tex to a quad with: quad.renderer.material.mainTexture = tex; It works. Solved OK, I solved it. Just do this: Go to Edit -> Project Settings -> Player -> Other Settings and change Write Access to External. Thanks! Works for me. Suggest change this: File.WriteAllBytes(Application.persistentDataPath + "/Screenshot.png", png); by a custom output folder, li...