This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| * Display SHA1 for keystore -Typically used in Google Maps | |
| # keytool -list -v -keystore ~/.android/debug.keystore -alias your_alias | |
| *Genereate hash from keystore -Typically used in Facebook | |
| # keytool -exportcert -alias your_alias -keystore debug.keystore | openssl sha1 -binary | openssl base64 | |
| adb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://toastdroid.com/2015/06/19/material-range-slider/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. System.out.println("13775.183km".replaceAll("[^0-9?!\\.]","")); | |
| //input.replaceAll("[^0-9?!\\.]","") This will ignore the decimal points. | |
| //eg: if you have an input as 13775.183km the output will be13775.183. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public abstract class CountDownTimerWithPause { | |
| /** | |
| * Millis since boot when alarm should stop. | |
| */ | |
| private long mStopTimeInFuture; | |
| /** | |
| * Real time remaining until timer completes | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static boolean setListViewHeightBasedOnItems(ListView listView) { | |
| ListAdapter listAdapter = listView.getAdapter(); | |
| if (listAdapter != null) { | |
| int numberOfItems = listAdapter.getCount(); | |
| // Get total height of all items. | |
| int totalItemsHeight = 0; | |
| for (int itemPos = 0; itemPos < numberOfItems, itemPos++) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void scrollBottom() { | |
| // scroll bottom requires posting a runnable to the listView | |
| // in the case of items loading by themselves dynamically | |
| // there may be sync issues and scrolling won't be proper | |
| m_bNeedScrollToBottom = false; | |
| if (m_listView.getLastVisiblePosition()-m_listView.getFirstVisiblePosition() <= m_listView.getCount()) | |
| m_listView.setStackFromBottom(false); | |
| else | |
| m_listView.setStackFromBottom(true); | |
| BBUILoop.getInstance().delayPost(new Runnable() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.psrivastava.deviceframegenerator.widget; | |
| import android.content.Context; | |
| import android.view.LayoutInflater; | |
| import android.view.View; | |
| import android.widget.CheckBox; | |
| import android.widget.CompoundButton; | |
| import android.widget.CompoundButton.OnCheckedChangeListener; | |
| import android.widget.TextView; | |
| import android.widget.Toast; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tomahawk-android/src/org/tomahawk/tomahawk_android/mediaplayers/VLCMediaPlayer.java |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <activity android:name=".SearchableActivity"> | |
| <intent-filter> | |
| <action android:name="android.intent.action.MAIN" /> | |
| <action android:name="android.intent.action.SEARCH" /> | |
| </intent-filter> | |
| <!-- note: this is needed to show a keyboard with proposals --> | |
| <meta-data | |
| android:name="android.app.searchable" | |
| android:resource="@xml/searchable" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <resources> | |
| <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> | |
| <item name="android:windowBackground">@color/background</item> | |
| <item name="android:actionBarStyle">@style/ActionBar</item> | |
| <item name="android:actionBarWidgetTheme">@style/ActionBarWidget</item> | |
| </style> | |
| <!-- Actionbar Theme --> |