[android-developers] fragments as a cell of Recycler view

2016-10-05 Thread qasim . majeed
i want to add fragments as a cell of recycler view, i have chat in this fragment . if that is not the recommended way, kindly guide me which way is best to suite this situation -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To

[android-developers] Fragments: still use Activity for Smartphones?

2015-08-19 Thread Danny S.
Hi, we're migrating a project to Fragments support, because we support both, tablets and smartphones now. I'm familiar with Fragments already, but there is an unanswered question for which I already searched for an answer - for now without luck: Please have a look at the following code

[android-developers] Fragments are not visible on orientation change

2015-04-03 Thread Nitin Khanna
In the following code, the fragments are being dynamically inflated from a layout xml. The issue i am facing is that I dont see the fragments when i rotate the device. If I look at the fragmentManager, I do see fragments are there. They are added and attached, but no where on the screen.

Re: [android-developers] Fragments /Compatibility API Backstack Clearing Problem

2014-07-02 Thread m3n0R
Same here... Is there any good way to do that? El jueves, 3 de noviembre de 2011 08:10:21 UTC+1, Alexey Zakharov escribió: Even with POP_BACK_STACK_INCLUSIVE onResume of popped Fragment is called. You need to add alternative method that will allow remove element from back stack without

[android-developers] Fragments navigation and backstack issue

2013-08-04 Thread user123
Im trying to implement a fragment based navigation pattern, which can be reduced to this: https://lh4.googleusercontent.com/-Ws0I4LcPFNA/Uf4irMURI3I/A0s/D1wYtJBCwXc/s1600/screen2.png

[android-developers] Fragments slow to load when coming back

2012-11-27 Thread MathieuB
Hello! Here's the situation : I have a parent activity that have 3 fragments associated with it. Basically, there is the actionBar and three tabs. Each tab holds a fragment in which there is a listview. The data are the same for all the 3 listviews, just filtered in different way so, in the

[android-developers] Fragments inside a ListFragment

2012-09-21 Thread Raneez
I am using a *custom viewpager* which has Listfragment's loaded with * FragmentPagerAdapter*. Each ListFragment represents a *dual panel layout*, where each list item(Left) loads some other fragments to a *framelayout*(Right Panel). Is this a best practice? -- You received this message

Re: [android-developers] Fragments inside a ListFragment

2012-09-21 Thread Mark Murphy
Fragments inside of fragments is not supported: http://stackoverflow.com/questions/6847460/fragments-within-fragments/6847770#6847770 On Fri, Sep 21, 2012 at 6:51 AM, Raneez rane...@gmail.com wrote: I am using a custom viewpager which has Listfragment's loaded with FragmentPagerAdapter. Each

[android-developers] fragments transactions

2012-08-07 Thread vani reddy
Hi friends Can we use the setResult(Bundle b,int requestCode) and OnActivityResult() of activity , to pass result between two fragments. Or is there any methods of such kind in fragments. I checked the

[android-developers] Fragments : Advanced example or tutorials?

2012-08-06 Thread Simon Engler
Good Day, I am trying to create a user interface for driving a robotic platform around. I have a number of programs that work indpendantly displaying video, logs, or graphical representation of a compass etc. I follow tutorials given online, but when I try to implement my programs crash. The

Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-31 Thread gjs
Hi, I saw recently I could take out an insurance policy that had unlimited cover amount, I guess the premium has unlimited cost as well ;-) Regards On Tuesday, July 31, 2012 10:51:11 AM UTC+10, Dianne Hackborn wrote: Btw, I love how more and more I see people dragging out this quote every

Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-31 Thread Kostya Vasilyev
An insurance policy that covers out of memory exceptions? 2012/7/31 gjs garyjamessi...@gmail.com Hi, I saw recently I could take out an insurance policy that had unlimited cover amount, I guess the premium has unlimited cost as well ;-) Regards On Tuesday, July 31, 2012 10:51:11 AM

Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-31 Thread lbendlin
There's your problem Kostya - your paying for the wrong thing - you need insurance for/against out of memory errors, not exceptions. On Tuesday, July 31, 2012 5:34:19 AM UTC-4, Kostya Vasilyev wrote: An insurance policy that covers out of memory exceptions? 2012/7/31 gjs

Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-31 Thread Latimerius
On Tue, Jul 31, 2012 at 2:51 AM, Dianne Hackborn hack...@android.com wrote: Btw, I love how more and more I see people dragging out this quote every time they encounter some limit that they have to deal with, as if there should just not be limits on the resources they can use. There should not

Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-31 Thread RichardC
On Tuesday, July 31, 2012 5:28:19 PM UTC+1, Latimerius wrote: On Tue, Jul 31, 2012 at 2:51 AM, Dianne Hackborn hack...@android.com wrote: Btw, I love how more and more I see people dragging out this quote every time they encounter some limit that they have to deal with, as if there

Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-30 Thread Dianne Hackborn
On Sun, Jul 29, 2012 at 5:45 PM, bob b...@coolfone.comze.com wrote: Worried about memory? Try this: application android:largeHeap=true No. First of all, this only helps you on higher-end devices that have lots of memory to give you. So you still need to look at the memory available and

Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-30 Thread bob
*“640K ought to be enough for anyone”* On Monday, July 30, 2012 1:30:46 AM UTC-5, Dianne Hackborn wrote: On Sun, Jul 29, 2012 at 5:45 PM, bob b...@coolfone.comze.com wrote: Worried about memory? Try this: application android:largeHeap=true No. First of all, this only helps you on

Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-30 Thread Dianne Hackborn
On Mon, Jul 30, 2012 at 10:59 AM, bob b...@coolfone.comze.com wrote: *“640K ought to be enough for anyone”* Um, no. There is nothing similar to these two things. Our limit is: devices don't have an infinite amount of RAM, applications must be written to live within the available RAM on the

Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-30 Thread Dianne Hackborn
Btw, I love how more and more I see people dragging out this quote every time they encounter some limit that they have to deal with, as if there should just not be limits on the resources they can use. On Mon, Jul 30, 2012 at 5:50 PM, Dianne Hackborn hack...@android.comwrote: On Mon, Jul 30,

Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-29 Thread Dmitriy F
I've written a simple test where I have: FragmentManager fm = getSupportFragmentManager(); FragmentTransaction ft = fm.beginTransaction(); ft.hide(_sv); ft.commit(); When the fragment gets hidden - onPause doesn't get fired. However, system fires a chain of callbacks up to onDestroyView when I

Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-29 Thread bob
Worried about memory? Try this: application android:largeHeap=true On Sunday, July 29, 2012 4:11:55 AM UTC-5, Dmitriy F wrote: I've written a simple test where I have: FragmentManager fm = getSupportFragmentManager(); FragmentTransaction ft = fm.beginTransaction(); ft.hide(_sv);

[android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-28 Thread Dmitriy F
Hi, I'm developing an app which uses ViewPager(holds 4 fragments) and a layout that hosts single-page fragments. I haven't populated my fragments with bitmap data but I'm already anxious about memory management. Because of the bogus design I can't extract ViewPager to a separate activity

Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-28 Thread Romain Guy
1) Does ImageView.SetImageResource applied against the same id twice or thrice consumes memory for the same bitmap or uses a separate range for every imageview element ? I don't quite understand your question. When a Bitmap is loaded as a Drawable (which is what ImageView does), it gets

Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-28 Thread Dmitriy F
Thanks for the answers! Would you mind to suggest on the part about fragments and memory management ? I decided to implement the app with 3 activities and about 8 fragments. The activity number might slightly increase yet I think it's not the fragments but their bitmaps that gonna cause

Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-28 Thread Dmitriy F
Thanks for the answers! Would you mind to suggest on the part about fragments, bitmaps and memory management ? I decided to implement the app with 3 activities and about 8 fragments. The fragment number might slightly increase yet I think it's not the fragments but their bitmaps that gonna

Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-28 Thread Dianne Hackborn
If you have a fragment that holds on to a lot of memory in its view hierarchy and are concerned about this, then use FragmentTransaction.remove() to make it no longer visible -- that will remove it from its parent view and destroy its view hierarchy, so it doesn't hold on to any references. (If

[android-developers] Fragments, removing only 1 item from the backstack.

2012-07-15 Thread Niffy Shibby
I have a problem of managing fragments. (Using Support Package, revision 9 (June 2012)) I have an activity with 2 fragments on the screen. If I add fragment A, then add Fragment B, then destroy fragment A Fragment B is also destroyed. I'm managing fragments this way (there is the begin and

[android-developers] Fragments

2012-06-29 Thread Samuel
hey everyone, I have been working with fragments recently and I was wondering what the best practice was for landscape on a handset? There are really only two options here: keep the fragmented layout (as a tablet would) or split into activity (as would in portrait) any advice would be

[android-developers] fragments, buttons and activities

2012-04-26 Thread Fausteric
I am searching for a fragments example for my purpose. I have made a app which has 7 pages with icons and each icon represents a tool. Now i want to make a special layout for Tablets. I want to place all the icons on the left side of the screen and on the right side i want to show the tool.

Re: [android-developers] fragments, buttons and activities

2012-04-26 Thread Justin Anderson
http://lmgtfy.com/?q=android+fragment+example Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Apr 24, 2012 at 3:02 AM, Fausteric faustnijh...@gmail.com wrote: I am searching for a fragments example for my purpose. I have made a app which has 7

[android-developers] Fragments and rotation

2012-03-27 Thread Gyscos
Hello, I made a simple application with layouts, based on screen orientation. Each layout used a different custom Fragment class. When the phone is in a given orientation and I start the application, the correct layout is loaded. If I then rotate the phone (after the application started),

[android-developers] Fragments with custom list adapter causing crash on inflate view

2012-01-26 Thread Ste
I am attempting to convert one of my apps to use Fragments to improve how the app looks and works on ICS / Honeycomb but I've come across a problem which although I've spent many hours Googleing and reading answers on here I can't seem to find a fix for. I have a custom list adapter which is used

[android-developers] Fragments with respect to activity

2011-12-20 Thread Geet
Hi, I am starting a Listview fragment in an activity.Once the user clicks on list itel, i am showing another listview in the same fragment(with fragment replace).Now if i turn my device, I am shown with first listview as the activity is getting re-started. I want my secong listview to be shown.

Re: [android-developers] Fragments help

2011-12-18 Thread Mark Murphy
Presumably because you have your build target set below API Level 13. On Sun, Dec 18, 2011 at 5:55 PM, Mark Ayers markthe...@gmail.com wrote: Why is Eclipse saying this is undefined when it's right here??? -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Fragments help

2011-12-18 Thread Mark Ayers
Build target decides which jar is added as a resource, correct? If so, you can see that the jar for 3.0 is loaded. On Sun, Dec 18, 2011 at 3:02 PM, Mark Murphy mmur...@commonsware.comwrote: Presumably because you have your build target set below API Level 13. On Sun, Dec 18, 2011 at 5:55 PM,

Re: [android-developers] Fragments help

2011-12-18 Thread Mark Murphy
On Sun, Dec 18, 2011 at 6:06 PM, Mark Ayers markthe...@gmail.com wrote: Build target decides which jar is added as a resource, correct? If so, you can see that the jar for 3.0 is loaded. Which proves that your build target is set below API Level 13, since Android 3.0 is API Level 11. -- Mark

Re: [android-developers] Fragments sample?

2011-11-18 Thread TreKing
On Fri, Nov 18, 2011 at 1:52 AM, Navindian navind...@gmail.com wrote: Can I get a fragment sample eclipse project which could be tested on my emulator. http://developer.android.com/guide/topics/fundamentals/fragments.html

[android-developers] Fragments sample?

2011-11-17 Thread Navindian
Hi Can I get a fragment sample eclipse project which could be tested on my emulator. Thanks navindian -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe

Re: [android-developers] Fragments

2011-11-08 Thread Pawan Singh Rathore
Ok I understood, But can you please give me some direction from where can I start. We have our own hardware. So I can change work on platform level also. But don't know that from which part I should start. I have also posted this question on android-porting group, But no luck yet. Thanks BR,

[android-developers] Fragments

2011-11-07 Thread Pawan Singh Rathore
Hi All, I want to know that, how can we launch any app present in the device inside a fragment. For better idea about question you can check out this linkhttp://www.onskreen.com/cornerstone/ . Hope anyone can help me in figure out this situation, and can give me some directions. Thanks BR,

Re: [android-developers] Fragments

2011-11-07 Thread Dianne Hackborn
You can't. That is not what fragments are for. And please stop posting that link. That is someone's hack on Android to add features that are not in the current platform, so not a topic for discussion on this list. On Mon, Nov 7, 2011 at 9:41 PM, Pawan Singh Rathore pawan.s.rath...@gmail.com

Re: [android-developers] Fragments /Compatibility API Backstack Clearing Problem

2011-11-03 Thread Alexey Zakharov
Even with POP_BACK_STACK_INCLUSIVE onResume of popped Fragment is called. You need to add alternative method that will allow remove element from back stack without resuming it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

Re: [android-developers] Fragments with fragment tabs

2011-09-26 Thread Mark Murphy
On Sun, Sep 25, 2011 at 10:21 AM, Rimma Sukhovsky drim...@gmail.com wrote: Is it possible to use fragments inside fragments No. and if not what should be the best practice for implementing this? Put the tabs in the action bar (controlling the contents of a FrameLayout to the right of your

Re: [android-developers] Fragments with fragment tabs

2011-09-26 Thread Rimma Sukhovsky
Thanks for your reply Mark! I did consider that, but that will cause a problem with pre 3.0 devices. I thought of: 1. Place the TabHost in a separate Fragment (adding each Tab an empty view), and place the actual tab content in a second Fragment. 2. Put a OnTabChangeListener for the TabHost to

Re: [android-developers] Fragments with fragment tabs

2011-09-26 Thread Mark Murphy
On Mon, Sep 26, 2011 at 11:13 AM, Rimma Sukhovsky drim...@gmail.com wrote: I did consider that, but that will cause a problem with pre 3.0 devices. Try ActionBarSherlock, then. I thought of: 1. Place the TabHost in a separate Fragment (adding each Tab an empty view), and place the actual tab

Re: [android-developers] Fragments with fragment tabs

2011-09-26 Thread Rimma Sukhovsky
ActionBarSherlock - looks intersting i will look into it. re: That still sounds like you are putting fragments in fragments. This is the layout i'm trying to build: LinearLayout android:id=@+id/linearLayout1 android:layout_width=fill_parent android:layout_height=wrap_content fragment

Re: [android-developers] Fragments with fragment tabs

2011-09-26 Thread Rimma Sukhovsky
ActionBarSherlock - looks intersting i will look into it. re: That still sounds like you are putting fragments in fragments. This is the layout i'm trying to build: LinearLayout android:id=@+id/linearLayout1 android:layout_width=fill_parent android:layout_height=wrap_content fragment

[android-developers] Fragments with fragment tabs

2011-09-25 Thread Rimma Sukhovsky
I'm converting my app to work with fragments, and i have a layout similar to manage applications in honeycomb. That is, there is a list fragment on the left and a tab fragment on the right. Each tab should contain another inner ListFragment. The problem is that i'm getting the following exception:

Re: [android-developers] [Fragments/supportv4] How do I make ViewPager/TabHost attatch all tabs and not just the current and the one next to it?

2011-09-16 Thread Ralph Bergmann | the4thFloor.eu
Am 15.09.11 12:59, schrieb leson: How can I make the ViewPager/TabHost attach all tabs immediately? I think you can't. You have to choose another holder for your tabs views. I recommend the ViewAnimator. see also:

[android-developers] [Fragments/supportv4] How do I make ViewPager/TabHost attatch all tabs and not just the current and the one next to it?

2011-09-15 Thread leson
I'm building a tabbed UI in Android based on the supportv4 demo FragmentTabsPager.java. After adding my tabs (there are four of them) only the current tab and the one next to it is attached (and thus not instatiated yet I guess). The other two tabs are attached only when I swipe to or tap them.

Re: [android-developers] Fragments

2011-07-04 Thread Bryan Liles
The Google IO app has its source available. (http://code.google.com/p/iosched/source/checkout). They make a good use of fragments in there. On Fri, Jul 1, 2011 at 10:08 AM, Jayanthi jaia...@gmail.com wrote: Hi All,          I am doing application in Honeycomb but i am not clear with Fragments

[android-developers] Fragments

2011-07-01 Thread Jayanthi
Hi All, I am doing application in Honeycomb but i am not clear with Fragments 1.How Fragments is used 2. When the activity call fragments refered lots of article yet not clear all the article have same listview as example can you please few more example like button with onclickListener

[android-developers] Fragments duplicated on config change

2011-05-22 Thread Dave Johnston
I'm encountering a peculiar issue with the user of FragmentActivity. In my test app, my FragmentActivity's onCreate method calls setContentView, which inflates a simple layout consisting of a single Fragment. However, I'm finding that when the device is rotated, this process causes additional

Re: [android-developers] Fragments - crash on restoring spinner state

2011-05-13 Thread Dianne Hackborn
That kind of stack crawl looks like the view IDs of the fragment's view hierarchy being restored are not consistent with the hierarchy that was saved. That is, the previous view hierarchy saved the state for some view ID of a view that is not an AbsSpinner subclass as is the same ID here where it

[android-developers] Fragments API 11+ vs Compatibility package

2011-05-13 Thread Phil Bayfield
Hi, I've just started playing around with fragments to make some apps work better with tablets. I've got this working nicely with my SGS and Xoom using just the compatibility package (trying to mix both resulted in crashes as I'm using the same fragment classes for both), which means I had to

[android-developers] Fragments - crash on restoring spinner state

2011-05-12 Thread Karl Wagner
Hi, I have a fragment that contains a linearlayout with a bunch of controls to make an edit form (edittexts, spinners, buttons, etc). We have a review button that replaces that fragment with a view form (again a linearlayout, but with textviews only) and this transition gets added to the back

Re: [android-developers] Fragments Map Support in Honeycomb

2011-05-03 Thread Varun Tewari
@TreKing: Thanks for sharing this thread. I actually fixed my problem by moving my fragments to a Root MapActivity. While inflating mapView with other children of Fragment didn't cause any problem this way. Hope this will be helpful for others. Thanks Reg, Varun On Mon, May 2, 2011 at 11:29

[android-developers] Fragments Map Support in Honeycomb

2011-05-02 Thread Varun Tewari
Hey Guys, I saw many blogs and forums for this. Their are no updates after mid April on this. Have we reached any conclusion ? Are there any upgrades provided by Android Native itself ? My app's minSdkVersion is 11, having List Frag in Left Panel and Details Frag in Right Panel which contains

Re: [android-developers] Fragments Map Support in Honeycomb

2011-05-02 Thread TreKing
On Mon, May 2, 2011 at 12:54 PM, Varun Tewari varuntewari2...@gmail.comwrote: Is it possible to achieve with current Fragment Support ? http://groups.google.com/group/android-developers/browse_thread/thread/b705bbd72d28d000

Re: [android-developers] Fragments for Google Maps add on?

2011-04-25 Thread Streets Of Boston
The option from Valentin in stackoverflow doesn't work well with the *compatibility library*. This is what i did to make it MapActivity work with Fragments using the compatibility library (it is not the best solution, but it seems to work so far): 1. Use the source of the compatibililty

Re: [android-developers] Fragments for Google Maps add on?

2011-04-25 Thread lbendlin
This would not change the limitation that an application can only have one MapActivity, right? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this

Re: [android-developers] Fragments for Google Maps add on?

2011-04-25 Thread Streets Of Boston
You're right. That's still the same (btw, the docs say you can have multiple MapActivities per app, as long as they are in different processes ... *Only one MapActivity is supported per process* ...). The post above describes how you can have a MapView in a Fragment using the V4 compatibility

[android-developers] Fragments won't display in port orientation

2011-04-17 Thread Brill Pappin
I'm very confused on why my fragments refuse to draw in portrait mode and draw fine in landscape mode. I'm build a screen with two fragments. in landscape they are side-by-side and in portrait they are supposed to stack one above the other. however now matter what I seem to try, the portrait

Re: [android-developers] Fragments won't display in port orientation

2011-04-17 Thread Kostya Vasilyev
Your fragments in landscape mode have wrong width/height. Should be: width=match_parent, height=0, whereas you have them switched. 17.04.2011 12:42 пользователь Brill Pappin bpap...@sixgreen.com написал: I'm very confused on why my fragments refuse to draw in portrait mode and draw fine in

Re: [android-developers] Fragments won't display in port orientation

2011-04-17 Thread Kostya Vasilyev
Er, I meant wrong in portrait mode. Where the orientation is vertical. 17.04.2011 12:52 пользователь Kostya Vasilyev kmans...@gmail.com написал: Your fragments in landscape mode have wrong width/height. Should be: width=match_parent, height=0, whereas you have them switched. 17.04.2011 12:42

Re: [android-developers] Fragments won't display in port orientation

2011-04-17 Thread Samson Akisanya
Aren't you also supposed to specify the orientation of the fragment as well ...so the xml definition is fine but i think u should look at the fragment definition as well. On 17 Apr 2011 09:42, Brill Pappin bpap...@sixgreen.com wrote: I'm very confused on why my fragments refuse to draw in

Re: [android-developers] Fragments won't display in port orientation

2011-04-17 Thread Dianne Hackborn
Also whenever you have problems with the UI not showing correctly, hierarchyviewer is a very valuable tool to look at what is going on in the view hierarchy. Problems like these are very unlikely to be related to fragments, but in how the view hierarchy has been constructed. 2011/4/17 Kostya

Re: [android-developers] Fragments won't display in port orientation

2011-04-17 Thread Kostya Vasilyev
A quick and dirty trick that works very well for me, is to set the background of a Layout / View in the XML to something really distinct, like #FF008040, and then switch to the UI editor or run the application. Not as complete and detailed as the hierarchy viewer, but still very useful, fast,

Re: [android-developers] Fragments won't display in port orientation

2011-04-17 Thread Brill Pappin
I always develop on real devices so i'm not sure I can use the viewer, but I can give it a shot for this instance. - Brill -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Fragments won't display in port orientation

2011-04-17 Thread Brill Pappin
Ahh, that was the problem... such a simple mistake (but isn't it always). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

Re: [android-developers] Fragments won't display in port orientation

2011-04-17 Thread Brill Pappin
Do you mean in the code for the fragment? Wouldn't the fragment already know the orientation from the system? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To

[android-developers] Fragments /Compatibility API Backstack Clearing Problem

2011-03-28 Thread Josh L
All, I am rewriting an existing application to use the Fragments/Android Compatibility API so that we can more easily add custom Tablet layouts and I have come across a problem that I'm not sure how to solve. The application has a custom tab-like control across the bottom which represent

Re: [android-developers] Fragments /Compatibility API Backstack Clearing Problem

2011-03-28 Thread Dianne Hackborn
You can use do this a few ways: - Use a name for your initial back stack state and use FragmentManager.popBackStack(String name, FragmentManager.POP_BACK_STACK_INCLUSIVE). - Use FragmentManager.getBackStackEntryCount()/getBackStackEntryAt().getId() to retrieve the ID of the first entry on the

Re: [android-developers] Fragments for Google Maps add on?

2011-03-07 Thread Pete Doyle
Sweet, so it turns out you can make the Activity which manages your Fragments extend MapActivity. Then you can make a MapFragment with a MapView. Seems to work so far. Thanks to Valentin here: http://stackoverflow.com/questions/5109336/mapview-in-a-fragment-honeycomb On Fri, Mar 4, 2011 at

Re: [android-developers] Fragments for Google Maps add on?

2011-03-04 Thread Mark Murphy
On Fri, Mar 4, 2011 at 12:37 AM, Dianne Hackborn hack...@android.com wrote: Sorry, nothing scheduled.  There is nothing preventing you from writing a little code to put MapView in your own fragment, is there? The bigger issue is that MapView has to be in a MapActivity, and there may be some

[android-developers] Fragments for Google Maps add on?

2011-03-03 Thread Pete Doyle
Anyone know if / when the Google Maps add-on will support the new Fragments api? Also, any chance of a version that works with the static library released today? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

Re: [android-developers] Fragments for Google Maps add on?

2011-03-03 Thread Dianne Hackborn
Sorry, nothing scheduled. There is nothing preventing you from writing a little code to put MapView in your own fragment, is there? On Thu, Mar 3, 2011 at 7:48 PM, Pete Doyle petedo...@gmail.com wrote: Anyone know if / when the Google Maps add-on will support the new Fragments api? Also,