Skip to content

Instantly share code, notes, and snippets.

View imjeevandeshmukh's full-sized avatar

Jeevan Deshmukh imjeevandeshmukh

View GitHub Profile
package com.bytelogs.listviewexample;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.Toast;
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="months">
<item>January</item>
<item>February</item>
<item>March</item>
<item>April</item>
<item>May</item>
<item>June</item>
<item>July</item>
@imjeevandeshmukh
imjeevandeshmukh / activity_main.xml
Created February 5, 2017 14:31
listViewExample
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.bytelogs.listviewexample.MainActivity">
<ListView
package arun.com.chromer;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.ResolveInfo;
import android.net.Uri;
import android.os.Bundle;
import android.preference.PreferenceManager;