Sending and receiving.

by Erik Hughes » Mon, 22 Feb 2010 15:07:15 GMT

Sponsored Links
 Hello Devs,
I have the problem that even though the activities starts i cannot get
the data back from the I am not getting any errors
except the line begining with the *. The error is code is never used
locally. I have also checked the filbrowser and it does give an output
with the code "aDirectory.getAbsolutePath().toString()" so the issue
is somewhere in the transfer. Code is below:
        //Code + imports above
       public static final int ACTION_PICK_FILE = 0;

       //Code above is outside the method body.

        button = (Button) findViewById(;
        button.setOnClickListener(new View.OnClickListener() {
                public void onClick(View arg0) {
                Intent filebintent = new
            startActivityForResult(filebintent, ACTION_PICK_FILE);
*        protected void onActivityResult(int requestCode, int
resultCode, Intent filebintent)
                 case ACTION_PICK_FILE:
                 if (resultCode == RESULT_OK)
                Bundle bundle = filebintent.getExtras();
                String select1 = bundle.getString("Selected1");
                String path1 = select1.getBytes().toString();
                System.out.println(select1); //Check if there is an
                System.out.println(path1); //Check if there is an
                //Code + imports above
               OnClickListener okButtonListener = new OnClickListener()
                    // @Override
                    public void onClick(DialogInterface arg0, int
arg1) {
                           Bundle Data = new Bundle();
                           Intent mainintent = new Intent();
                           setResult(RESULT_OK, mainintent);

Thanks in advance!
/Erik Hughes


Other Threads

1. BackupManagerService usage & explain in Framework

Is there any body can explain about
[] ?

What the role is?, where it is used mainly?


where I can find the class


2. Motorola Milestone not showing up in ddms / adb on Mac OS X Snow Leopard

I've connected my (new) Motorola Milestone running Android 2.0 to an
Intel iMac running the latest version of Snow Leopard.

USB Debugging is enabled on the device. However, ddms doesn't see the
device. Running adb devices returns an empty list.

Any ideas how to troubleshoot?


3. Problem with getLastKnowLocation from the GPS provider

4. Need to re-initialize or kill the acore process silently

5. Content Providers

6. ProgressBar/AnimatedRotateDrawable causing memory leak?

7. flurry android