Random appwidget unresponsiveness

by Niall » Fri, 20 May 2011 06:18:28 GMT


Sponsored Links
 Hey,

I have an appwidget that works fine most of the time.  

Sometimes though, the buttons don't respond. When I press on them nothing 
happens. If I swipe to the left and back to the right it seems to sometimes 
fix it. Nothing gets put in logcat so I'm out of ideas about what might be 
happening. 

Can anyone help? Do you need more information? 

It sounds to me that the intents aren't set properly... but they are! I 
can't figure it out. 

-- 



Other Threads

1. Can you participate our survey?

Hello I'm a head of our project, Smart screen controller for IPTV. I
suggest contents app maker for several mobile project.
Please to participate in our survey and it is prototype. Thanks.

http://spreadsheets.google.com/viewform?formkey=dGRIclBURnNESFFLSmVQcllxMlZQc3c6MA

-- 

2. Sending and receiving.

Hello Devs,
I have the problem that even though the activities starts i cannot get
the data back from the filebrowser.java. 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:

Main.java
[
        //Code + imports above
       public static final int ACTION_PICK_FILE = 0;

       //Code above is outside the method body.

        button = (Button) findViewById(R.id.button);
        button.setOnClickListener(new View.OnClickListener() {
                public void onClick(View arg0) {
                Intent filebintent = new
Intent(arg0.getContext(),Filebrowser.class);
            startActivityForResult(filebintent, ACTION_PICK_FILE);
                }
*        protected void onActivityResult(int requestCode, int
resultCode, Intent filebintent)
        {
             switch(requestCode)
             {
                 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
output.
                System.out.println(path1); //Check if there is an
output.
                 }
                 break;
             }
            }
     });
        //Code
]

Filebrowser.java
[
                //Code + imports above
               OnClickListener okButtonListener = new OnClickListener()
{
                    // @Override
                    public void onClick(DialogInterface arg0, int
arg1) {
                           Bundle Data = new Bundle();
                           Data.putString("Selected1",
aDirectory.getAbsolutePath().toString());
                           Intent mainintent = new Intent();
                           mainintent.putExtras(Data);
                           setResult(RESULT_OK, mainintent);
                           finish();
                    }
               };
                //Code
]

Thanks in advance!
/Erik Hughes

-- 

3. build.properties being ignored?

4. eclipse closes on opening main.xml file

5. How to start application after pressing particular key?

6. Live report3

7. delete last dialled number from call log?