Re: [android-developers] Switching Fragments to Full Screen

2012-07-15 Thread EpsilonOrion
Kostya,

I understand what you are discussing, however I am having a hard time 
figuring out how to implement it.  Specifically, I am trying to look at 
this when dealing with a MapFragment and a ListFragment.  Since there was 
no direct way to handle the MapFragment it is created through the TabHost 
method discussed at various websites online.  This means that the actual 
Fragment class implements a TabHost, while the Activity class holds the 
real MapActivity as well as the buttons.  This means that most examples I 
have found dealing with callbacks tend to be implemented within the 
fragment, however, the buttons and such are only within the MapActivity 
class.  I am not sure how to create a callback that can access the 
buttonclick from within the MapActivity, that reaches through the Fragment 
class back to the original calling activity to hide views and change 
layouts.  

Part of my problem with this is not being sure how to transmit data between 
different fragments in this special case in the first place.

All help is appreciated.

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] ADT Import Package Name Change

2012-07-13 Thread EpsilonOrion
When using Eclipse and the ADT to import an Android Project, the name of 
the project displayed in the project Navigator comes up 
package.projectname (i.e. com.android.example.hello).  If I import the 
Android Project using the import General option, the project name is just 
displayed as the name with no package.  Is there an easy way to get the 
import Android Project method to behave like this.  I know that if I create 
an Android Project, the name will just be the project name (not connected 
to package), so why does import not behave the same.

I know you can go to Windows - Preferences, then Java - Appearance and 
setup a Abbreviate Package Name rule, however, this is per package name 
and if I try different package names for different projects this will 
become annoying.

Thanks for the help.

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] ADT Import Package Name Change

2012-07-13 Thread EpsilonOrion
I can do that.  I wasn't sure if I should consider it a tools bug or just 
user error.

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Switching Fragments to Full Screen

2012-07-13 Thread EpsilonOrion
I am making an app that has multiple fragments (Map Fragment, Video 
Fragment, List/Detail Fragment) sharing the app screen at a given time.  
There may be situations where a user may want to maximize one of the 
fragment screens to full window size, and then minimize the screen.  I have 
read through the tutorials that allow for different setups between smaller 
and larger screens or landscape vs portrait, however I have not seen a 
direct method for what I have described.  In other words, are there 
specific commands to use to change the current screen and fragments to a 
single fragment maximized while allow the other fragments to go to 
background or sleep, then pull all fragments back to the main screen.  I 
will be doing this through a button press.

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Method for passing information between Fragments

2012-06-30 Thread EpsilonOrion
I currently have two fragments setup on the same landscape screen.  On the 
left is a Map Fragment, while on the right is a List Fragment.  There is a 
MainActivity that creates the Fragments.  Each Fragment has its own 
Fragment class and Activity Class.  I am looking at the best method to 
allow the ArrayList of GeoPoints created from my ItemizedOverlay to 
populate the ListFragment by passing the list to the ListFragment when 
points are created.  Then, when a person clicks one of the points in the 
ListFragment, it sends back a message to the MapFragment that pops up an 
information bubble for the waypoint in question.

Basically, I am looking for the best method to pass this waypoint list (and 
a return point chosen) message between MapFragment and ListFragment.  If it 
would be better to have a third fragment that sits in the background to 
hold this information, I would be fine with that since in the future these 
points will be sent off to another phone.

I am sorry if this question has already been asked, but I have not been 
able to find a simple answer.  If you have a reference, I would be happy to 
look at that.  Thanks for the help.

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Passing information between two Fragments (Map Fragment and List Fragment)

2012-06-30 Thread EpsilonOrion
I am looking for the best way to send information between a Map Fragment 
and a List Fragment.  Half the screen is dedicated to a Map Fragment using 
the TabHost method, while the other half is dedicated to a List Fragment.  
The main activity creates the separate fragments which each have their own 
Fragment and Activity classes.  My desire is to send an ArrayList of 
waypoints created in my ItemizedOverlay class that is within the Map 
Fragment to the List Fragment which will in turn display each waypoint.  
From the List Fragment side, I desire to send the selected List item 
(waypoint) back to the Map Fragment so I can then display a bubble giving 
information on that waypoint.  More will be done, but this is one part of 
my problem.

I am sorry if familiar questions to this have been asked, but I have not 
found one that details how to dig deep into a class such as ItemizedOverlay 
and pass the information back and forth.  Some methods I have seen are 
Intents and direct passing a pulling variables in each Fragment, but I am 
unsure of the best way to handle this information sharing.  I have even 
looked into the possibility of keeping a third fragment in the background 
as I will at one time be sending these waypoints outside of this app to 
another phone.

Any help would be appreciated and I would be happy to give more information 
if needed.

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en