Comments (4)
I've implemented Fragment and FragmentManager not to depend on FragmentActivity.
I split methods to FragmentActivityFeature interface.
Now you can use Fragments in your own Activity with FragmentActivityFeature.
For detail, please see the diff.
from android-support-v4-googlemaps.
I gave it a shot, but I can't build it against Google API Level 7 since android.view.View.AccessibilityDelegate didn't exist until Android API level 14. I tried to build it against Google API level 14 and I got an error:
trouble processing "javax/xml/transform/dom/DOMLocator.class":
Ill-advised or mistaken usage of a core class (java.* or javax.*)
I'm not really sure how to incorporate your revisions in to my project or build a jar file from your source. I'm currently using the pre-compiled release android-support-v4-r4-googlemaps.jar in my project.
from android-support-v4-googlemaps.
I'm using this project with Google API Level 4.
・First, build the project with API level 14 and make the jar.
・Then, use the jar in your project.
you can make the jar with ant or eclipse.
$ git clone git://github.com/9re/android-support-v4-googlemaps.git
$ cd android-support-v4-googlemaps
$ git checkout experimental-fragment-activity-feature-impl
$ ant
if you fail to build, then you must be using older versions of jdk6.
you should see compiler errors discribed here:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=98379
in this case, you can choose three ways:
・use jdk 7 and target to java 6
・use eclipse to build the jar
・use patch for jdk 6
$ patch -p1 < for-jdk-6.patch
$ ant
using this patch, you'll always have to cast to ActivityFragmentFeature to use support package apis:
Activity activity = getActivity();
ActivityFragmentFeature feature = (ActivityFragmentFeature) activity;
FragmentManager manager = feature.getSupportFragmentManager();
i'm preparing a blog entry to describe my implementation in detail and will publish it in a few days!
from android-support-v4-googlemaps.
I was able to build your new implementation and I'm using it in my project. It's working great so far! It took me a second to figure out you implemented a FragmentMapActivity and a FragmentActivity but I think I've got everything sorted now. Great job on this project, it's much appreciated!
from android-support-v4-googlemaps.
Related Issues (11)
- Publish to a maven repo HOT 5
- Create separate FragmentMapActivity class HOT 1
- Upgrade to revision 11 HOT 3
- Android SDK Version 17 HOT 1
- Please undeprecate your library HOT 4
- Getting java.lang.IllegalStateException: You are only allowed to have a single MapView in a MapActivity Exception when using MapView for fragments HOT 1
- Upgrade to revision 7 HOT 4
- creating jar with source attached HOT 1
- Upgrade to revision 9 HOT 5
- Upgrade to revision 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-support-v4-googlemaps.