Skip to content

Instantly share code, notes, and snippets.

View Sparker0i's full-sized avatar
Mostly Unavailable

Aaditya Menon Sparker0i

Mostly Unavailable
View GitHub Profile
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/main_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:context="com.a5corp.weather.WeatherActivity">
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import org.json.JSONObject;
import android.app.Activity;
import android.content.Context;
import android.app.Activity;
import android.content.SharedPreferences;
public class CityPreference {
SharedPreferences prefs;
public CityPreference(Activity activity){
prefs = activity.getPreferences(Activity.MODE_PRIVATE);
import android.content.DialogInterface;
import android.content.SharedPreferences;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
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.app.AlertDialog;
import android.app.ProgressDialog;
import android.graphics.Color;
import android.graphics.Typeface;
import android.os.Bundle;
import android.os.Handler;
import android.support.v4.app.Fragment;
import android.text.SpannableString;
import android.text.style.ForegroundColorSpan;
import android.text.style.RelativeSizeSpan;
*-display
description: VGA compatible controller
product: Sky Lake Integrated Graphics [8086:1916]
vendor: Intel Corporation [8086]
physical id: 2
bus info: pci@0000:00:02.0
version: 07
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm vga_controller bus_master cap_list rom
import java.util.Scanner;
class Fraction {
/* private for numerator and denominator so that they cannot be directly accessed outside Fraction */
private int numerator;
private int denominator;
static int count = 0; //To get count of total Fractions in the programme, by default public (Even though not specified).
/* Default constructor that does not initialize this Fraction */
public Fraction() {
import android.app.AlertDialog;
import android.app.Service;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;
import android.provider.Settings;
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="MissingTranslation">
<string name="wi_day_sunny">&#xf00d;</string>
<string name="wi_day_cloudy">&#xf002;</string>
<string name="wi_day_cloudy_gusts">&#xf000;</string>
<string name="wi_day_cloudy_windy">&#xf001;</string>
<string name="wi_day_fog">&#xf003;</string>
<string name="wi_day_hail">&#xf004;</string>
<string name="wi_day_haze">&#xf0b6;</string>
<string name="wi_day_lightning">&#xf005;</string>