When do you use FrameLayout? Why not AbsoluteLayout?

by Videoguy » Thu, 12 Mar 2009 22:30:51 GMT

Sponsored Links
When do you use FrameLayout?
The way I understand it, all the children are pegged relative to the
top left of FrameLayout. That means all the children's coordinates
(marginLeft/right etc) are relative to parent. AbsoluteLayout does the
same thing.

When would one use FrameLayout?


Other Threads

1. LocationManager and PendingIntent problem


I have more than one problem to use the addProximityAlert() method  
from the LocationManager class.

The first thing is that I want to create a PendingIntent for a  
broadcast receiver. Therefor I use this code:

        Intent intent = new Intent("app1.PROXIMITY_ALERT");
        PendingIntent pintent = PendingIntent.getBroadcast(Activity1.this, 1,  
intent, 0);

The problem is, that I get this error message:

"No activity found to handle intent { action=app1.PROXIMITY_ALERT }"

I'm confused because this should not call an Activity but a  
If I send this intent as a broadcast my self, the BroadcastReceiver  
receives this intent...

What is wrong with my code?

I tried to create an intent to call an Activity instead and registered  
it to be send when reaching a location:

        Intent intent = new Intent(Intent.ACTION_DEFAULT)

        PendingIntent pintent = PendingIntent.getBroadcast(Activity1.this, 1,  
intent, 0);

        LocationManager lm =  
        lm.addProximityAlert(latitude, longitude, radius, -1, pintent);

The problem is that the Activity is called immediately but NEVER if  
the registered location is reached.

I'm working on a emulator and setting the gps coordinates using the
geo fix

Can anyone help me with this problems


2. Enabling/Disabling activities at run time


I have an application that has multiple activities with the intent
action.MAIN (category LAUNCHER), so that multiple shortcuts appear in
the "Applications" list.

Is it possible to disable some of these activities at run-time (so
that the corresponding shortcuts disappear from the "Applications"

Thank you,

3. What will the Android Dev Phone 2 be?

4. Quick Dev Phone Question

5. ANDROID BUG: Large Gif Images can not be displayed

6. Customized radio button

7. SimpleAdapter onClick event catching. How to?