Bug report: widget does not load if the orientation changes during the configuration

by Derek » Tue, 04 Aug 2009 04:37:13 GMT


Sponsored Links
 Are you sure forcing portrait mode for configuration activity could
solve the problem ?
I've tried to add: android:screenOrientation="portrait" to my activity
and the problem is still here.
The activity is displayed in portrait whatever the orientation but the
phantom widget bug is still here.




--~--~---------~--~----~------------~-------~--~----~



Bug report: widget does not load if the orientation changes during the configuration

by lilbyrdie » Wed, 02 Sep 2009 23:59:01 GMT


 I'm curious; what's in your widget? Is it a simple layout or a complex
layout? A couple of us are seeing parts of our widgets become phantom
on orientation changes (see here:


Sponsored Links


Other Threads

1. List of existing ACTIONS and Component names

Hi All!

New here, love the Android SDK, but not so happy with finding pure
references (lists) of things like possible existing  ACTIONS (Intents)
or component names.

My specific problem is that I am writing a little app that uses the
Android messaging (intent ACTION_SEND). Problem is that I dont want
that chooser to come up, but instead that its always(!) the messaging
(MMS) which is used.

I found that you can set a specific component for an intent, so I
downloaded the Android sourcecode and found an app
com.android.mms.MmsApp

But if I do that:

        Intent sendIntent = new Intent(Intent.ACTION_SEND);
        sendIntent.putExtra("sms_body", message);
        sendIntent.putExtra(Intent.EXTRA_STREAM,Uri.parse(APP_DIR
+TEMP_IMAGE));
        sendIntent.setType("image/jpg");
        sendIntent.setComponent( new ComponentName("com.android.mms",
"com.android.mms.MmsApp" ) );
        return sendIntent;


I  get an error that com.android.mms/com.android.mms.MMsApp is not
findable, and whether I declared it in my android manifest file (which
clearly I could not, because its a completely different package).

Does anyone know about sites that provides lists of possible Intents
and components (pre-existing on the android system)??

THANKS!!!!

-- 

2. Best use of MediaPlayer?

Hi! This is my first post to the list. I'm working on a kids' game
that plays some small wav files in a predictable order. I need to use
an OnCompletionListener to know when to start the next sound, but I
also need to avoid multiple MediaPlayers using all my memory. Could
someone suggest a smart way to do this? I have tested the following
code snippet, and while it functions well, it does crash eventually.
Why does mp = MediaPlayer.create() not overwrite the previous mp
object/free the memory used previously, and how can I fix that?
Eclipse won't let me use mp.recycle().

// That's right!
mp = MediaPlayer.create(mContext, R.raw.thats_right);
mp.setOnCompletionListener(new OnCompletionListener(){
        @Override
        public void onCompletion(MediaPlayer arg0) {
                // a horse
                mp = MediaPlayer.create(mContext, rightAnswer.getName());
                mp.setOnCompletionListener(new OnCompletionListener(){

                        @Override
                        public void onCompletion(MediaPlayer mp) {
                                // says
                                mp = MediaPlayer.create(mContext, R.raw.says);
                                mp.setOnCompletionListener(new 
OnCompletionListener(){

                                        @Override
                                        public void onCompletion(MediaPlayer 
mp) {
                                                // neeeeeiggggghhhhhhh
                                                mp = 
MediaPlayer.create(mContext, rightAnswer.getSound());
                                                mp.setOnCompletionListener(new 
OnCompletionListener(){

                                                        @Override
                                                        public void 
onCompletion(MediaPlayer mp) {
                                                                // start all 
over
                                                        }
                                                });
                                        mp.start();
                                        }
                                });
                                mp.start();
                        }
                });
                mp.start();
        }
});
mp.start();

-- 

3. Android app. crashes after exiting settings...

4. Controlling background on an ImageView

5. Not receiving MotionEvents when transitioning between activities

6. MediaStore.ACTION_IMAGE_CAPTURE + Intent.FLAG_GRANT_WRITE_URI_PERMISSION

7. Madu & Racun