Foam alternatives and similar packages
Based on the "Utility" category.
Alternatively, view Foam alternatives based on common mentions on social networks and blogs.
-
timber
A logger with a small, extensible API which provides utility on top of Android's normal Log class. -
ExpirableDiskLruCache
DISCONTINUED. Java implementation of a Disk-based LRU cache which specifically targets Android compatibility. -
Android-Templates-And-Utilities
Collection of source codes, utilities, templates and snippets for Android development. -
secure-preferences
DISCONTINUED. Android Shared preference wrapper than encrypts the values of Shared Preferences. It's not bullet proof security but rather a quick win for incrementally making your android app more secure. -
greenrobot-common
General purpose utilities and hash functions for Android and Java (aka java-common) -
Androl4b
A Virtual Machine For Assessing Android applications, Reverse Engineering and Malware Analysis -
vector-compat
A support library for VectorDrawable and AnimatedVectorDrawable classes introduced in Lollipop -
CastCompanionLibrary-android
DISCONTINUED. CastCompanionLibrary-android is a library project to enable developers integrate Cast capabilities into their applications faster and easier. -
motion
An Android library allowing images to exhibit a parallax effect that reacts to the device's tilt -
Colours
A beautiful set of predefined colors and a set of color methods to make your Android development life easier. -
Reservoir
DISCONTINUED. Android library to easily serialize and cache your objects to disk using key/value pairs.
InfluxDB - Purpose built for real-time analytics at any scale.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Foam or a related project?
README
You have a small team. Setting up crash reporting tools, event tracking tools, and log management services is not what you want to spend your hours doing. You know these are important to the health of your application, but you just want to code.
That's where Foam comes into play. Want to use Flurry and Papertrail in your app? No problem: @FoamApiKeys( flurry = "S6S7S8S9S0S1S2S3S4S5", // API Key papertrail = "logs2.papertrailapp.com:49999" // Server URL ) public class MyApplication extends FoamApplication { }
Want to use Google Analytics, PagerDuty, and Logentries? Sure...
@FoamApiKeys(
googleAnalytics = "UA-00000000-1", // Tracking ID
pagerDuty = "3a3b3c3d3e3f3g3h3i3j3k3l3m3n3o3p", // API Key
logentries = "data.logentries.com:12345" // Server URL
)
public class MyApplication extends FoamApplication {
}
You add your API Keys, we'll do the rest.
Supported Services
Crash Reporting | Event Tracking | Log Management |
---|---|---|
PagerDuty | Flurry | Papertrail |
Papertrail | Mixpanel | Logentries |
HockeyApp | Google Analytics | |
Flurry | Graphite |
Crash Reporting: Unhandled exceptions will be reported.
Event Tracking: Activity launches will be tracked.
Log management: Error logs from devices will be reported.
Setup All The Things
@FoamApiKeys(
pagerDuty = "3a3b3c3d3e3f3g3h3i3j3k3l3m3n3o3p",
papertrail = "logs2.papertrailapp.com:49999",
hockeyApp = "b2044c3055d4066e5077f6088g7099h8",
flurry = "S6S7S8S9S0S1S2S3S4S5"
mixpanel = "221b331c441d551e661f771g881h991i",
googleAnalytics = "UA-00000000-1",
logentries = "data.logentries.com:12345",
graphite = "[api-key@]graphite.myhost.com:2003"
)
public class MyApplication extends FoamApplication {
}
That's it. You've just enabled all of these services for your application. Well, almost. Make sure you also have the following set:
Internet permission in your
AndroidManifest.xml
:<uses-permission android:name="android.permission.INTERNET" />
SDK level 14 or higher in
build.gradle
:minSdkVersion 14
Define your custom Application class in your
AndroidManifest.xml
:<application android:name="com.your.app.MyApplication"
Add dependencies for Foam, Retrofit, and Gson in
build.gradle
:compile 'com.percolate:foam:0.9.4' compile 'com.squareup.retrofit:retrofit:1.9.0' compile 'com.google.code.gson:gson:2.3'
Where to find your API Keys:
HockeyApp: Click your name (top right) -> API Tokens -> Create an API token. (permissions can be set to "Read Only")
Mixpanel: Your project 'Token' can be found under "Update project settings" (gear icon on the bottom left).
PagerDuty: Configuration -> API Access -> Create API Key
Papertrail: Add a system. You'll see "Your systems will log to <url>". Use this URL.
Logentries: Add a new log -> Select Manual (Gear icon) -> Change "How are the logs sent?" to "Plain TCP, UDP - logs are sent via syslog." -> Click create. You will get back "Start sending logs to <url>". Use this URL.
Google Analytics: Create a new Property -> Select "Mobile App" -> Click "Get Tracking ID".
Flurry: Create an application in Flurry then add your application key. (FlurryAnalytics-x.x.x.jar must be added manually to your project {TODO document in wiki})
Graphite: Provided by the maintainer of your graphite host.
Notes:
- It takes time for some services to process incoming data. There may be a delay of few hours before anything shows up. Be patient.
- Like other crash reporting tools, crashes are sent when the user reopens the app after a crash. Keeping an app open to send data during a crash would lead to other problems, such as ANRs.
- Does you application currently extend MultiDexApplication? No problem, just use our
FoamMultiDexApplication
version instead. - Can't extend
FoamApplication
orFoamMultiDexApplication
for some reason? That's fine too. Make your application class implement ourFoamApp
interface, and create an instance ofFoamMain
inonCreate
. See FoamApplication.java for an example. - If your application may be sending lots of data, you may want to set
wifiOnly = true
on the@FoamApiKeys
annotation. - You can use
FoamEvent#track(Activity activity, String event)
to track custom events. - You can use
FoamDisabler#disable()
to disable Foam, andFoamDisabler#reenable()
to turn it back on. Useful to hook up to a "Do not track" user setting.
Why no Crashlytics?
We had it. Then we removed it.
Crashlytics requires some custom setup. There is no way around this.
After which, enabling crashlytics is a single line of code Crashlytics.start(this)
.
This tool would not lessen setup, configuration, or required coding coding as it does with the other services we support.
If Crashlytics were to ever support manual configuration or provide an API to submit crashes, we will add it.
In the meantime, if you wish to use Crashlytics in your application, instructions can be found here.
TODO
iOS version: Coming soon
Services to add: Loggly
If you would like to add a new service please create a pull request. A good example of what is required is contained in our Adding Graphite PR.
Feel free to open a new issue for platforms you would like to see added.
License
Open source. Distributed under the BSD 3 license. See LICENSE for details.
*Note that all licence references and agreements mentioned in the Foam README section above
are relevant to that project's source code only.