Unable to use Fragmentation API with android compatibility package

by Premier » Fri, 04 Mar 2011 23:25:52 GMT


Sponsored Links
 In
 http://android-developers.blogspot.com/2011/03/fragments-for-all.html 

Xavier Ducrohet, Android SDK Tech Lead says Google releases an Android
Compatibility Package by SDK Manager.

I've installed it, but, how i can use it now?
how can i integrate Android Compatibility Package in my project?

Thank you.

-- 



Re: Unable to use Fragmentation API with android compatibility package

by Streets Of Boston » Sat, 05 Mar 2011 00:56:00 GMT


 Have you tried copying the JAR that was download with that package into your 
Android project (and adding it to your Java library path)?

-- 


Sponsored Links


Re: Unable to use Fragmentation API with android compatibility package

by Harry » Tue, 08 Mar 2011 20:56:04 GMT


 I have this same problem. I have imported the library and have edited
my Java files to use that instead of the Honeycomb APIs. My only
problem is the XML files; The <fragment> tag doesnt work.

I have set the API Level to 4 to make sure that it is not using
anything from the Honeycomb SDK so it will work on lower version
devices.


Any help would be great. Thankyou.

-- 



Re: Re: Unable to use Fragmentation API with android compatibility package

by Dianne Hackborn » Wed, 09 Mar 2011 01:44:55 GMT


 Please read the comment on FragmentActivity, which points out the
limitations of the <fragment> tag for this implementation.  Look at the
sample code in API demos for uses of the <fragment> tag.

On Tue, Mar 8, 2011 at 4:55 AM, Harry






-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 



Other Threads

1. VideoView with cookie.

Hi.
Can VideoView access to web server with cookie ?

Our video server protect video data with cookie authentication.
Video player app must authenticate and store session key to cookie
strage before access to video server.

First, My android video player app access to authentication server
using HttpClient class in android library.
Next, app access to video server with HttpClient's cookie data .
But I think HttpClient can't pass cookie data to VideoView.

Do you have any idea?

-- 

2. (EDITED by author) My app gets killed ... but I think I know why now

I think I have discovered the reason for my troubles. I also think
that the relationship to the media process was incidental.

What I really think is going on is related to the OS reclaiming
memory.

When I leave my app in the foreground (i.e. visible) it works (and "It
Won't Die, Jim") -- if I use the BACK BUTTON to push it into the
background, it *may* die, and I am convinced it is at the hands of the
OS in its memory reclamation processI assert this as my experiments
have shown that on a device with LOTS O' memory the app works
flawlesslyon a device with less memory it will almost certainly die
---- and I can guarantee to kill it if I start using the devices other
apps.

The rub here is that I NEED my app to reside in the background (or at
least my SMS BROADCAST RECEIVER class) .. I want the user to be able
to "use" his phone for other things while my app awaits a signaling
SMS. At that point I use a "notification" to get the user's attention.

I am hoping someone may respond and say "Well, all-you-gotta-do is
Blah_Blahquot;  Is there a way to make the OS "not" clean me out of
memory? Is the answer to make the b-receiver a "service"? And is that
allowable in Android?




-- 

3. limited distribution

4. Min SDK Bug ???

5. LocationManager requestLocationUpdates and pending intents

6. Android di Metro

7. java issues in mac and window