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. How to release resources when application ends?


I created an application which is displaying camera preview. When the
application terminates I noticed that some processes are still running. Also
if I try to run the original camera application it displays an error
(obviously due to the active process which belongs to the custom

Does anyone know how to release all resources when application ends?





2. import org.apache.commons.httpclient.HttpClient library error

Hi to all...

           I got one blog which interacts with servlets... Link as

3. Failing to send attachments via email

4. How do i compile platform/packages/apps applications ?

5. language translation?

6. A question regarding Activities and Tasks.

7. ScrollView changs the behavior of the layout even when it's not active.