Instantly share code, notes, and snippets.

View PermissionsHelper.java
package com.nextstagesearch;
import android.Manifest;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.ContextWrapper;
import android.content.DialogInterface;
import android.content.pm.PackageManager;
View GSoCFinalReport.md

GSoC 2016 Work Product, Manan Wason - FOSSASIA

This summers, I worked on FOSSASIA's Open Event Android apk Generator as well as enhanced the Open Event Android app

The apk generator can be used for generating a customized android app for any event just by adding your email and api endpoint/json for the data. The android app was made generic and customisable this year. It is cloned by the apk-generator on each run. We customise the app according to the user's preference and then generate the apk which is then sent to the user via email or downloaded on the same webpage
The app-generator server is hosted on a VPS server and runs on ubuntu

User can either upload an API endpoint or a zip containing json files on the generator where the data to be displayed in the app will be fetched from

We have a live version of the apk generator

View .travis.yml
language: android
android:
components:
# Uncomment the lines below if you want to
# use the latest revision of Android SDK Tools
- platform-tools
- tools
# The BuildTools version used by your project
- build-tools-22.0.0
View README.md

Android REST Controller with Cache-Control

Android REST Controller with Simple Cache Control Headers using Retrofit 1.9.0 + OkHttp 2.2.0

View README.md

Simple RecyclerView Divider

Simple Horizontal Divider Item Decoration for RecyclerView

    mRecyclerView.addItemDecoration(new SimpleDividerItemDecoration(
            getApplicationContext()
    	));

NOTE: Add item decoration prior to setting the adapter

View sample
{"markers": [
        {
            "point":new GLatLng(40.266044,-74.718479),
            "homeTeam":"Lawrence Library",
            "awayTeam":"LUGip",
            "markerImage":"images/red.png",
            "information": "Linux users group meets second Wednesday of each month.",
            "fixture":"Wednesday 7pm",
            "capacity":"",
            "previousScore":""