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. Google Maps Application


iam developing an application using google maps.

I can develop and test this application in Eclipse without a problem,
when i use
the proper AVD (the one with Google Maps API).

My question is, how do I run the application on an android phone? do I
have to include something
into my application, so that the phone knows the google maps api?

I already know all the signing process. My only question is: how to
include it for the phone?


2. just say hello.

just say hello.


3. install java for the browser and other apps, and use thinkorswim's mobile version

4. SensorEventListener in different thread

5. Youtube account problem on HTC Magic

6. Question about checkbox and gravity in layout

7. Execute a task periodically