Git Product home page Git Product logo

Comments (4)

9re avatar 9re commented on July 18, 2024

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.

https://github.com/9re/android-support-v4-googlemaps/tree/experimental-fragment-activity-feature-impl

from android-support-v4-googlemaps.

NightWatchman avatar NightWatchman commented on July 18, 2024

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.

9re avatar 9re commented on July 18, 2024

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.

NightWatchman avatar NightWatchman commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.