Is there any way to get an array from an object?

public class X {
byte[] a = new byte[] {0x10,0x20};
//Native method
public native short testnative(X b);
//C++
JNIEXPORT jshort JNICALL Java_Native_testnative1 (JNIEnv *env , jobject obj, jobject testobj)
Is there any way to get byte[] a from jobject testobj ?
Pprimitive types and objects can be get by JNI functions(like GetIntField, GetObjectField etc.), but I didn't find fucntions like GetXXXArrayField(), then how can I do that?

Hint: an array is an object.
-slj-

Similar Messages

  • Is there any way to get my photos FROM my iPod Touch back onto a new hard drive?

    My Mac crashed last Friday. First timeIs there any way to get my photos FROM my iPod Touch back into my new hard drive. The iTunes sync only goes one way from the computer to the iPod.
    It syncs the photos taken with the iPod (really an old iPhone 3G without phone service) but not the folders which I synced from the old hard drive to the iPod over the past year.

    thank you for the tip.
    Yes, my computer was backed up. for reasons way too complicated to go into here, these particular folders were not part of the backup.
    Thanks again for the help.
    jglaiche

  • Is there any way to get the files from other computer ?

    Hai all,
    I have 2 computers connected. I know the IP address of other computer. Is there any way to get the files from other computer. (for e.g. I want to get the files from specific folder. In Java netwroking is it possible? (Any programs)
    regards,
    Namanc

    Bro Take it easy.
    Think you need to send a Image file named ("abc.gif")
    now develop a server using ServerSocket and connect it in local IP and any PORT
    For example i think ur server is connected in "localhost" and 9000 port.
    Now make ur server educated using some commands.
    For example:
    FileName: <File Name String>
    [Means new file is sending by connected client]
    FileSize: <File size long or int value>
    [ So that ur server can determind about the total length of sender file]
    DataModeOpen
    [Now your client will send its image data, this command means your client software is sending data]
    fjadlkfjaofaijojfwoeiurfodkjflsajlfksa
    l23j4lj23lkjlasjfoq23j4rokjelfkjasldkf
    2o3j4lk2j3ljslakdjf2l3j4 l23kjlk23k4j
    DataModeClose
    [Means file sending finished]
    Close
    [Means your client connection is closed]
    Now develop a client supporting this command.
    For example(Server):
    String getFileName=null;
    long getFileSize=0;
    public handleCommand(String getCmd) {
        if(getCmd.startsWith("FileName")) {
                String[] splitData=getCmd.split(":");
                this.getFileName=   splitData[1];
                outPutStream.writeBytes("+OK");
        } else if(getCmd.startsWith("FileSize")) {
                String[] splitData=getCmd.split(":");
                this.getFileSize=Long.parseLong(splitData[1]);
                outPutStream.writeBytes("+OK");
        } else if(getCmd.startsWith("DataModeOpen")) {
               //data mode open so receive data
              receiveData();
              outPutStream.writeBytes("+OK");
        } else if(getCmd.startsWith("DataModeClose")) {
              //close client socket
             getClientSocket.close();
    }For client:
    DataInputStream dataIn=null;
    BufferedOutputStream bout=null;
    public sendFile(bytes[] getBytes) {
            //if ok found then do other or show error message
        if(sendCmd("FileName:"+getFileName)) {
            if(sendCmd("FileSize:"+getFileSize)) {
                if(sendCmd("DataModeOpen")) {
                   bout.write(getBytes);
                } else {
                   showError(3);
            } else {
                   showError(2);
       } else {
            showError(1);
    }i think it will help u

  • Is there any way to get my pics from my iPhone to my new MacBookAir?

    Is there any way to get my pics from my iPhone to my new MacBookAir? Sync only works from the MBA to the iphone.

    PhotoStream - http://support.apple.com/kb/HT4486
    LN

  • Is there any way to get my reminders (from the new iPhone app) to sync with something on my laptop (Mail, iCal, some other desktop app)?

    Is there any way to get my reminders (from the new iPhone app) to sync with something on my laptop (Mail, iCal, some other desktop app)?

    Yes, if you have iCloud set up on your phone and computer, then reminders will be synced through iCal.

  • I have an iPod whose contents I want to transfer to a newer Ipod.  At some stage I lost the music files from my library.  Is there any way to get them back from the older iPod and put them onto the newer one again?  I stupidly synced the wrong one.

    I have an iPod whose contents I want to transfer to a newer Ipod.  At some stage when I thought I was syncing correctly I wasn't so I lost the music files from my library.  Is there any way to get them back from the older iPod and put them onto the newer one again? 

    Have you not got a backup of your content on, for example, external drives ? If not then you could have a look to see if any of the utilities mentioned in this old post still exist and work : https://discussions.apple.com/message/11014893?messageID=11014893#11014893

  • I upgraded to Ios5 and have lost my contacts and other app profiles - is there any way to get them back from the backup taken before the IOS5 process started?

    I upgraded to IOS5 and have lost my contacts and other app profiles - is there any way to get them back from the backup taken before the IOS5 process started?

    Thanks but have tried that - When I try to restore I get a -50 error and into a loop of taking another back up.  I took a copy of the back up before the IOS upgrade and have it stored on my desk top but I cannot get Itunes to restore to that back up
    Any ideas how I can do this?

  • HT201272 IS THERE ANY WAY TO GET PROGRESS BACK FROM A DELETED GAME THAT HAS BEEN BACKED UP ON MY COMPUTER? I HAVE TRIED TO SYNC THE IPOD AND THE PROGRESS DOESNT RETURN, ITS MINECRAFT.

    is there any way to get progress back from a deleted game off ipod/ it was backed up to the computer but when i synced the ipod the progress didnt return.  its minecraft game

    - Just transfer the apps and iBooks to the computer by:
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer
    In iTunes 11 use Control+B to show the Menu bar then go to iTunes>File>Devices>Transfer Purchases
    - Preferences and photos taken by the iPad are included in the backup that iTunes makes
    nursebones wrote:
    No music. All my music is on my computer and my iPOD. Just need to backup apps, preferences, iBooks, and photos taken on the iPAD.

  • I have an 06' macbook and I just bought an 07' macbook.. The 06' has os x 10.6 but the 07' has 10.5.. I no longer have the disk for snow leopard. Is there ANY way to get snow leopard from the old computer to the other without having to buy it again?

    I have an 06' macbook and I just bought an 07' macbook.. The 06' has os x 10.6 but the 07' has 10.5.. I no longer have the disk for snow leopard. Is there ANY way to get snow leopard from the old computer to the other without having to buy it again?

    Technical issues aside, there's still a legal issue.
    Neither 2006 nor 2007 MacBooks shipped with Snow Leopard 'factory' installed. OS X 10.6 Snow Leopard became available in September 2009. So you purchased and installed a Snow Leopard upgrade disc on the 2007 system at some point.
    If your Snow Leopard upgrade was a single-user copy, then legally, you need to purchase another one for the second computer. If your Snow Leopard upgrade was a Family Pack 5-user license, then you're good to go.
    http://store.apple.com/us/question/answers/product/MC574Z/A?pqid=QTUXD7AF4YU9FJD YUTDPCKYKUDDDXKHTK
    If you have an active MobileMe account, Apple was giving away a single-user upgrade copy of Snow Leopard for a limited time, and you should have received an email with a link, or been offered the opportunity when you signed in to your MobileMe account on the web:
    http://www.macrumors.com/2012/04/24/free-snow-leopard-discs-for-mobileme-users-n ow-arriving/
    Worst case, single-user Snow Leopard upgrade discs are $29 retail, direct from Apple. I'd hate to have two computers and no OS installation CD's for whatever version I'm currently using.

  • HT204266 I purchased a navigational app yesterday and it is not what I was wanting.  Is there any way to get a refund from a purchase if its been less that 24 hours.  This app was $50.00!!!

    I purchased a naviational app yesterday and it is not what I was wanting.  Is there a way to get
    a refund if it's less that 24 hours ago?  The app was $50.00

    Purchases are considered final, but you can try the 'report a problem' page to contact iTunes Support and see if they will credit or refund you : http://reportaproblem.apple.com
    If the 'report a problem' link doesn't work then you can try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • Is there any way to get the phone from taking over...

    Whenever I start my Avalon, the phone says that it is "Starting Driving Mode for You", and then starts playing music.  It changes whatever channel I have on, and will even start up Audio if I have it shut off.
    This is really a pain.  Is there any way, short of killing the bluetooth pairing, to tell the phone to leave my radio alone?
    Thanks.

    Hi Jay___S,
    Welcome to the forum! 
    For which specific phone model is this? If this is for a Lumia WP8, are you using the built-in 'driving mode' app under Settings, or a downloaded car mode app from the Store? Has the phone been paired with other Bluetooth devices aside from your Avalon carkit, like car speakers or stereos? Is your phone's software updated when checked under Settings > Phone update? 
    We'll wait for your response. 

  • Is there any way to get delete everything from my ipod at once?

    I need help, I forgot my restrictions passcode and I need to delete everything from my ipod...is there anything I can do to solve this besides going in one by one and erasing everything manually? Is here any way I can retrieve my passcode?

    If the passcode wasn't on the iPod when you last synced/backed it up on your computer's iTunes then you should be able to restore to that backup - if it was on the iPad at that time then restoring will restore/keep that passcode lock.
    Otherwise to restore the iPod back to factory defaults : Settings > General > Reset > Erase All Content And Settings - that will remove everything from the iPod

  • Is there any way to get itunes music from my ipad to my ipod without a computer and only 4g?

    Lets say you have an ipad (a new one) and an ipod.  Thats all you have.  The ipad has 4g.  You can have access to other small hardware devices like cables and stuff but no other computer like device and no wifi internet.
    Is it possible to get itunes music from the ipad and onto the ipod with just this?

    Would those work if I am using the 4g wifi hotspot on the ipad to get the music onto an ipod touch?  I am willing to give up third party music if this would work. Just not sure if it would work since the 4g wifi has that 50mb restriction

  • HT1296 i had to have my computers hard drive reformated so of course lost all the music in itunes. Is there any way to get the music from my ipod back on my computer and add new music to ipod?

    After reformating my computer isit possible to get the music from my ipod back on the computer and to add new music that I have downloaded?

    Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities

  • Is there any way to get photos back from a 'corrupt' backup?

    Basically a couple of weeks ago I bought a new iPhone 5S, and the night before I got this phone I made sure to backup my old iPhone 5. When I tried to restore backup my new 5S I waited half an hour thinking it was working but I was shown the message ‘iTunes could not restore the iPhone "*phone name*" because the backup was corrupt or is not compatible with the iPhone that is being restored". I am not particularly interested in backing my phone up to an earlier date my main concern is really all the photos I had on my latest backup.

    Did you also have an iCloud backup? Did you enable Photo Stream? Had you ever synced your photos to your computer's photo management app? These would be the easiest ways to recover your photos. Beyond thatyou can try to find them in the backup with a backup extractor app for your computer. You can try googling for "iphone backup extractor". Skip any expensive ones; there are some excellent ones that are free or inexpensive.

Maybe you are looking for