May
7
awarded Popular Question
Jul
4
awarded Scholar
Jul
4
accepted Create an image (bmp or so) from byte array containing 8bit(grayscale) or 1bit(binary) data in Java
Jul
4
comment Create an image (bmp or so) from byte array containing 8bit(grayscale) or 1bit(binary) data in Java
Thank you, it works! I used this: BufferedImage image = new BufferedImage(picWidth, picHeight, BufferedImage.TYPE_BYTE_GRAY); image.getRaster().setDataElements(0, 0, picWidth, picHeight, textureArray); textureArray being the byte array containing the gray values. I think you can use this too instead of the WritableRaster!
Jul
3
asked Create an image (bmp or so) from byte array containing 8bit(grayscale) or 1bit(binary) data in Java
May
5
asked Android OpenGL ES drawArray with pixel instead of range [-1,1]
Apr
19
awarded Supporter
Apr
19
comment Java/Android - Writing to Outputstream after reading from Inputstream
never tried with objectstream, never heard of it before. so i have to transform my bytearray to an object and call ObjectOutputStream.writeObject(object) ?
Apr
19
comment Java/Android - Writing to Outputstream after reading from Inputstream
Tried to close but doesnt worked either. Also i dont want to close it. Finally i made it with the known sequence like you suggested.
Apr
19
comment Java/Android - Writing to Outputstream after reading from Inputstream
also doesnt work
Apr
18
asked Java/Android - Writing to Outputstream after reading from Inputstream
Mar
26
awarded Teacher
Feb
20
awarded Tumbleweed
Feb
14
answered How to replicate android:editable="false" in code?
Feb
13
comment How to edit SharedPreferences so that OnSharedPreferenceChanged is called
Thanks for your answer. I will try it in the next days and report
Feb
13
awarded Student
Feb
13
comment How to edit SharedPreferences so that OnSharedPreferenceChanged is called
I dont understand what you want to show me here... I am registering and unregistering the onchangelistener and it works, I know it because it works with the CheckBox Preference. After picking the number in the dialog I want to save the number in the SharedPreferences and saving a number should automaticaly call the OnSharedPreferenceChanged method. I dont know if this is even possible...
Feb
13
asked How to edit SharedPreferences so that OnSharedPreferenceChanged is called