HELP!! int to byte array!

by Rodrigo Platero » Fri, 20 May 2011 09:30:36 GMT


Sponsored Links
 Hi!

I need help! I need convert an int to a byte array, and i don't get it!!

Thanks!!

PD: Sorry my english :S
Rodrigo Platero Montero

-- 



Re: HELP!! int to byte array!

by Miguel Morales » Fri, 20 May 2011 09:41:31 GMT


  http://stackoverflow.com/questions/1936857/convert-integer-into-byte-array-java 

On Thu, May 19, 2011 at 2:25 AM, Rodrigo Platero







-- 
~ Jeremiah:9:23-24
Android 2D MMORPG:  http://solrpg.com/ ,
 http://www.youtube.com/user/revoltingx 

-- 


Sponsored Links


Other Threads

1. How to run the program on the new SAMSUNG GALAXY under windows XP

Hi
i got this new mobilephone this week in Germany, wanted to debug my
program on the device. but it doesn't work, "c:\> adb devices" lists
no device attached, though i have tried to change the
"android_usb.inf" in order to install the usb driver from SDK.
i added these:
under
[Google.NTx86]

; HTC DREAM
...

; SAMSUNG GALAXY
%USB\VID_04E8&PID_6640.DeviceDescRelease%=androidusb.Dev, USB
\VID_04E8&PID_6640
%USB\VID_04E8&PID_6640&MI_01.DeviceDescRelease%=androidusb.Dev, USB
\VID_04E8&PID_6640&MI_01
%USB\VID_04E8&PID_6640.DeviceDescRelease%=androidusb.Dev, USB
\VID_04E8&PID_6640

and [Strings]:

USB\VID_04E8&PID_6640.DeviceDescRelease="SAMSUNG GALAXY"
USB\VID_04E8&PID_6640&MI_01.DeviceDescRelease="SAMSUNG GALAXY
Composite ADB Interface"
USB\VID_04E8&PID_6640.DeviceDescRelease="SAMSUNG GALAXY Bootloader"

i suppose i use the wrong PID. i got only one VID and one PID through
USBVIEW, though for HTC DREAM there are different PIDs used.
i never tried to use the device under linux, maybe it works, maybe
also problematic. can someone tell me. but it's better to find out how
to do under windows xp for me.
Can someone help?

thanks da







--~--~---------~--~----~------------~-------~--~----~

2. Playing video as a raw resource

I'm writing a program which requires that a video be packaged with
it.  The only way I know of doing this is by adding the video to res/
raw/, which coincidentally renders the video useless.  I've looked all
over the web and the consensus seems to be you can only play streaming
video, or video from a file.  In the emulator if I attempt to play the
video through the method used here ( 
http://developer.android.com/guide/topics/media/index.html
), all I get is audio and a black screen.

I've attempted to use VideoView as well, and the same thing occurs,
audio but with a black screen.  There must be a way to package video
with your application without needing an SD card, or having to stream
the file and have the video actually play.  In the words of Google, I
would like to create a "seamless" experience.  :)

Any help is greatly appreciated!

--~--~---------~--~----~------------~-------~--~----~

3. Android Service Problem

4. Custom Title Not Filling Whole Title Bar (help please)

5. JSONObject .getInt() method doesn't handle a null

6. Eclipse Plugin allows Spaces in String.xml, but generated invalid R.java

7. Gyroscope and Tricorder Sensors in Android