Skip to content

Instantly share code, notes, and snippets.

@umesh0492
umesh0492 / Instructions.md
Last active August 29, 2015 14:11 — forked from bajtos/notice.md

Build a full-stack application with LoopBack and AngularJS

LoopBack logo AngularJS logo

In this workshop, you will learn how to build a full-stack Whiskey-voting application using LoopBack and AngularJS.

Build a full-stack application with LoopBack and AngularJS

LoopBack logo AngularJS logo

In this workshop, you will learn how to build a full-stack Whiskey-voting application using LoopBack and AngularJS.

Build a full-stack application with LoopBack and AngularJS

LoopBack logo AngularJS logo

In this workshop, you will learn how to build a full-stack Whiskey-voting application using LoopBack and AngularJS.

You can use this class to realize a simple sectioned RecyclerView.Adapter without changing your code.

The RecyclerView should use a LinearLayoutManager. You can use this code also with the TwoWayView with the ListLayoutManager (https://github.com/lucasr/twoway-view)

This is a porting of the class SimpleSectionedListAdapter provided by Google

Screen

Example:

public static void backUpCurrentDB(File db_file, String database_name) {
//call it on onUpgrade
try {
String rootPath = Environment.getExternalStorageDirectory()
.getAbsolutePath() + "/your_directory/";
File dir = new File(rootPath);
if (!dir.exists()) {
dir.mkdir();
}
@umesh0492
umesh0492 / Android - Get Device Info (How to use)
Last active January 16, 2016 16:49
Android - Get Device Info
1. Make Default Constractor
2. You have object with all the properties, you had provided in information class.
3. Want json convert it new
//Snippet
Information information = new Information();
String information_json = new Gson().toJson(information);
@umesh0492
umesh0492 / Activity (ViewPager With Indicator)
Last active January 16, 2016 17:08
ViewPager With Indicator
package com.redcarpetup.ui.activities;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.view.ViewPager;
import android.util.Log;
@umesh0492
umesh0492 / Android Studio .gitignore
Created January 16, 2016 19:10 — forked from iainconnor/Android Studio .gitignore
A .gitignore for use in Android Studio
# Built application files
/*/build/
# Crashlytics configuations
com_crashlytics_export_strings.xml
# Local configuration file (sdk path, etc)
local.properties
# Gradle generated files