Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there any android application framework like spring?

are there any android application framework like spring?

like image 279
L.J.W Avatar asked Apr 01 '11 14:04

L.J.W


People also ask

Can Spring be used for Android?

Don't. Spring is a heavy weight server-side framework that is not optimized for Android. The have some Android libraries, but those are for specific things like REST. If you need DI, use an Android framework such as RoboGuice.

What framework does Android use?

The Android platform provides Java framework APIs to expose the functionality of some of these native libraries to apps. For example, you can access OpenGL ES through the Android framework's Java OpenGL API to add support for drawing and manipulating 2D and 3D graphics in your app.

Does Android studio use a framework?

Android Studio uses Gradle as the foundation of the build system, with more Android-specific capabilities provided by the Android plugin for Gradle. This build system runs as an integrated tool from the Android Studio menu, and independently from the command line.

What is Spring Android studio?

Spring's RestTemplate is a robust, popular Java-based REST client. The Spring for Android RestTemplate Module provides a version of RestTemplate that works in an Android environment.


2 Answers

spring-android is a fresh spring portfolio project.

like image 174
Bozho Avatar answered Oct 10 '22 21:10

Bozho


Spring framework for Android - Spring for Android. Currently it has only a couple of features.

The most used dependency injection frameworks for Android:

  • Butter Knife
    refers to itself as "view injection".
  • Dagger 2
    new version of Dagger.
    maintained by Google.
  • AndroidAnnotations
    provides the functionality of Dagger + ButterKnife and a bit more in one framework.
  • Transfuse
    does not have as large of a community as other DI frameworks, though this does not mean that it is bad.
  • Dagger (DEPRECATED)
    deprecated in favor of Google's Dagger 2.
    very powerfull, but it's not intended for views injection.
    can be used together with ButterKnife.
  • RoboGuice (RETIRED)
    it used to be the #1 DI framework on Android.
    easy to plug and play.
    has performance impact.

Choosing the right framework largely depends on your needs.


  • Dagger + Butter Knife VS AndroidAnnotations
  • RoboGuice VS Butter Knife
  • Dagger VS ButterKnife
  • RoboGuice VS Dagger VS ButterKnife
  • Transfuse VS Dagger

ps. A tip from Managing Your App's Memory:

Avoid dependency injection frameworks.

Though this recommendation does not apply equally to all DI frameworks[why?].

like image 35
naXa Avatar answered Oct 10 '22 21:10

naXa