stackoverflow_id
int32
582k
45.8M
question
stringlengths
20
106
question_url
stringlengths
63
132
question_author
stringlengths
3
25
question_author_url
stringlengths
3
65
answer
stringlengths
39
547
answer_url
stringlengths
35
36
answer_author
stringlengths
3
29
answer_author_url
stringlengths
3
84
examples
sequence
examples_url
sequence
29,008,384
How to hide current location in google map?
https://stackoverflow.com/questions/29008384/how-to-hide-current-location-in-google-map
Jatin
https://stackoverflow.com/users/4007027/jatin
map.setMyLocationEnabled(false); map.getUiSettings().setMyLocationButtonEnabled(false);
https://stackoverflow.com/a/29008777
GuillaumeAgis
https://stackoverflow.com/users/3535789/guillaumeagis
[ 2852549, 3761543, 4493224 ]
[ "https://github.com/luizguilhermefr/OpenVRT/blob/3e88abc8ac43691f68f48fa511e426bf50c7c26d/app/src/main/java/unioeste/br/openvrt/MapsActivity.java#L117-L124", "https://github.com/poseneror/appartments/blob/cbcbd20b09d0dbfd5302d556ba4d16638204db66/App/app/src/main/java/com/poz/appartments/MapFragment.java#L195-L205", "https://github.com/Techmomentous/GTTrackerAndroid/blob/da9d4db8ce533f958c1408da88feb428b326481d/app/src/main/java/com/lt/gpstracker/fragments/MyLocationFragment.java#L332-L342" ]
19,904,166
Hide status bar android
https://stackoverflow.com/questions/19904166/hide-status-bar-android
Mohammad Alkhdour
https://stackoverflow.com/users/2519051/mohammad-alkhdour
requestWindowFeature(Window.FEATURE_NO_TITLE);// hide statusbar of Android getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
https://stackoverflow.com/a/19904308
Rajiv yadav
https://stackoverflow.com/users/918957/rajiv-yadav
[ 3780826, 3780817, 3780752 ]
[ "https://github.com/mindsortlabs/BiddingTicTacToe/blob/e3bf243764cc99d8c81973fd891d619ca6c215fe/app/src/main/java/com/mindsortlabs/biddingtictactoe/custom/TwoPlayerCustom.java#L327-L330", "https://github.com/mindsortlabs/BiddingTicTacToe/blob/e3bf243764cc99d8c81973fd891d619ca6c215fe/app/src/main/java/com/mindsortlabs/biddingtictactoe/custom/BoardChooser.java#L63-L66", "https://github.com/mindsortlabs/BiddingTicTacToe/blob/e3bf243764cc99d8c81973fd891d619ca6c215fe/app/src/main/java/com/mindsortlabs/biddingtictactoe/TutorialActivity.java#L359-L362" ]
15,223,623
Showing the soft keyboard for SearchView on ActionBar
https://stackoverflow.com/questions/15223623/showing-the-soft-keyboard-for-searchview-on-actionbar
Jonathan Caryl
https://stackoverflow.com/users/1789683/jonathan-caryl
((InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE)). toggleSoftInput(InputMethodManager.SHOW_FORCED, InputMethodManager.HIDE_IMPLICIT_ONLY);
https://stackoverflow.com/a/15225311
Jonathan Caryl
https://stackoverflow.com/users/1789683/jonathan-caryl
[ 878338, 878339, 3491740 ]
[ "https://github.com/Glucosio/glucosio-android/blob/42cb202ca5fbebf754160bee45d0bb704bcdd456/app/src/main/java/org/glucosio/android/activity/A1cCalculatorActivity.java#L109-L115", "https://github.com/Glucosio/glucosio-android/blob/42cb202ca5fbebf754160bee45d0bb704bcdd456/app/src/main/java/org/glucosio/android/activity/A1cCalculatorActivity.java#L118-L124", "https://github.com/francescogabbrielli/Stargazers/blob/706028e970b232666b3819ae7adadfa23180efb0/app/src/main/java/it/francescogabbrielli/apps/stargazers/MainActivity.java#L335-L380" ]
14,317,512
How can I post on Twitter with Intent Action_send?
https://stackoverflow.com/questions/14317512/how-can-i-post-on-twitter-with-intent-action-send
user1966361
https://stackoverflow.com/users/1966361/user1966361
String url = "http://www.twitter.com/intent/tweet?url=YOURURL&text=YOURTEXT"; Intent i = new Intent(Intent.ACTION_VIEW); i.setData(Uri.parse(url)); startActivity(i);
https://stackoverflow.com/a/14317557
Lukas Olsen
https://stackoverflow.com/users/1078427/lukas-olsen
[ 1936809, 3239352, 4284044 ]
[ "https://github.com/zeddysoft/MovieAppUsingRxJava/blob/c6f31c2dfb40d5aeded9d36145d85f3c016e6e9b/app/src/main/java/com/zeddysoft/movieappusingrxjava/fragments/TrailerFragment.java#L96-L101", "https://github.com/winnerawan/juzamma_apps/blob/3838f11a41ea3e3f500ecafa5079f57dff617c50/app/src/main/java/id/ac/unipma/juzamma/ui/main/about/AboutFragment.java#L93-L98", "https://github.com/vaibhavsingh97/Solucion/blob/44c1b2b020e36954dba68096228715c088784ea7/Android Basic Nanodegree/Project 4/MusicApp/app/src/main/java/com/example/vaibhav/musicapp/open_source.java#L27-L32" ]
10,123,159
How to Inflate view from XML in Android?
https://stackoverflow.com/questions/10123159/how-to-inflate-view-from-xml-in-android
Gnanam R
https://stackoverflow.com/users/730876/gnanam-r
LayoutInflater inflater = (LayoutInflater)getApplicationContext().getSystemService (Context.LAYOUT_INFLATER_SERVICE); View view = inflater.inflate(R.layout.new_layout,null); main.addView(view);
https://stackoverflow.com/a/19110502
ChallengeAccepted
https://stackoverflow.com/users/1371041/challengeaccepted
[ 2828461, 1228249, 3832981 ]
[ "https://github.com/AKS1996/TIApp/blob/209b7068219a0216fd7262dc676de21e503b9d9c/app/src/main/java/com/topcoder/timobile/storyContent/StoryContent.java#L20-L42", "https://github.com/antest1/kcanotify/blob/92a4e5d0be1b7d8a0fbd784627fe01f3e8b1d0f2/app/src/main/java/com/antest1/kcanotify/KcaCustomToastService.java#L78-L113", "https://github.com/cemdrman/TugvaMobil/blob/faadaa340d0b7375c281157a59dd2306bb4de555/app/src/main/java/org/tugva/basaksehir/tugvabasaksehir/Activitys/HomeActivity.java#L145-L164" ]
6,302,057
Is it possible that when click edittext it will show dialog message?
https://stackoverflow.com/questions/6302057/is-it-possible-that-when-click-edittext-it-will-show-dialog-message
user790156
https://stackoverflow.com/users/790156/user790156
mDateDisplay.setClickable(true); mDateDisplay.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { showDialog(DATE_DIALOG_ID); } });
https://stackoverflow.com/a/6302097
Ted Hopp
https://stackoverflow.com/users/535871/ted-hopp
[ 2591970, 2755672, 3859936 ]
[ "https://github.com/bffcorreia/fole/blob/e35128aadb13b7e14eb02fe4bd5ecc8301f5fb05/fole/src/main/java/io/github/bffcorreia/fole/Config.java#L72-L79", "https://github.com/ZeevoX/sound-recorder/blob/522aa2f3b0557f43a5b2a8696165b032c9481b9d/app/src/main/java/com/zeevox/recorder/InfoActivity.java#L37-L46", "https://github.com/rtomyj/Animus/blob/09577340c7162a3c3e4a4e9c54f953fb167612f8/Diary/src/com/Adapters/PicturesAdapter.java#L180-L191" ]
4,057,331
How can we turn automatic brightness off in android?
https://stackoverflow.com/questions/4057331/how-can-we-turn-automatic-brightness-off-in-android
shripal
https://stackoverflow.com/users/432559/shripal
Settings.System.putInt(getContentResolver(), Settings.System.SCREEN_BRIGHTNESS_MODE, Settings.System.SCREEN_BRIGHTNESS_MODE_MANUAL);
https://stackoverflow.com/a/4057350
Dusty
https://stackoverflow.com/users/220347/dusty
[ 1256718, 739172, 1941937 ]
[ "https://github.com/farmerbb/SecondScreen/blob/3b5cd856a4b95987c9dddab6ee622455fc43b1e4/app/src/main/java/com/farmerbb/secondscreen/service/ScreenOnService.java#L44-L70", "https://github.com/jeanboydev/Android-Architecture/blob/84ea21a3731ce2ed44fa78e83164b05332301566/base/src/main/java/com/jeanboy/base/utils/ScreenUtil.java#L195-L198", "https://github.com/chrissen0814/Cartoon/blob/a9adb54d074f371eb654967643daa126ebea7fdb/app/src/main/java/com/chrissen/cartoon/util/SystemUtil.java#L44-L47" ]
3,950,211
How to prevent OnItemClickListener work when long click performed?
https://stackoverflow.com/questions/3950211/how-to-prevent-onitemclicklistener-work-when-long-click-performed
Tony
https://stackoverflow.com/users/458678/tony
public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) { return true; }
https://stackoverflow.com/a/4518728
meizilp
https://stackoverflow.com/users/366104/meizilp
[ 4076242, 3286722, 4171830 ]
[ "https://github.com/mookrs/AndroidLaboratory/blob/46735c197fb5398207454c1198dc3e15559947d0/SimpleTodo/app/src/main/java/com/mookrs/simpletodo/MainActivity.java#L37-L47", "https://github.com/lukoerfer/nearcon/blob/dafd044dc071bb68d39b00ed0e8b8c27f29ddb2d/app/src/main/java/de/inces/nearcon/app/overview/OverviewActivity.java#L50-L62", "https://github.com/iTomCat/GridViewFromJSON/blob/f89f3ac49440f8bc56ec019fc1d319ef17d5a532/app/src/main/java/com/tomaszkot/dynamicallyaddedgridlayout/GridViewDisplay.java#L72-L84" ]
33,137,835
Prevent repeating alarm from occurring on weekend
https://stackoverflow.com/questions/33137835/prevent-repeating-alarm-from-occurring-on-weekend
joshgoldeneagle
https://stackoverflow.com/users/1602207/joshgoldeneagle
int today = calendar.get(Calendar.DAY_OF_WEEK); boolean isWeekend = (today == Calendar.SUNDAY) || (today == Calendar.SATURDAY); if(isWeekend && noWeekends == true) { //Alarm is not wanted on the weekend try { Thread.sleep(1); } catch (InterruptedException e) { e.printStackTrace(); } }
https://stackoverflow.com/a/33220081
bonnyz
https://stackoverflow.com/users/2760919/bonnyz
[ 3431342, 2230148, 3128957 ]
[ "https://github.com/michael19900101/WeekPickerDemo/blob/65df295fb64103914930c9fce137e3ed2ccb8c67/app/src/main/java/com/michael/weekpickerdemo/entity/DateUtil.java#L40-L51", "https://github.com/dhbw-timetable/dhbw-timetable-android/blob/24bed26e4e0afabe049177466d890bc40897dfe3/app/src/main/java/dhbw/timetable/navfragments/week/WeekFragment.java#L248-L274", "https://github.com/GoneUp/Htwg_LsfPlan/blob/b1e08003968163615fad1968c5cb4411c3937442/app/src/main/java/com/hstrobel/lsfplan/gui/eventlist/MainListFragment.java#L219-L235" ]
28,321,961
How do I know if my app is running with Robolectric?
https://stackoverflow.com/questions/28321961/how-do-i-know-if-my-app-is-running-with-robolectric
Zac Tolley
https://stackoverflow.com/users/834390/zac-tolley
public static boolean isRoboUnitTest() { return "robolectric".equals(Build.FINGERPRINT); }
https://stackoverflow.com/a/30713876
Wu-Man
https://stackoverflow.com/users/464696/wu-man
[ 3507141, 586748, 389074 ]
[ "https://github.com/rascalyen/MyAPIFilms/blob/517541b3e73a88dfe192e2130b80ee622101fe7f/app/src/debug/java/com/example/yen/imdb/configs/DebugConfiguration.java#L24-L26", "https://github.com/codinguser/gnucash-android/blob/879596c1ff4bde9e10c7f3626e2554b148cb5882/app/src/debug/java/org/gnucash/android/app/StethoUtils.java#L36-L38", "https://github.com/klinker24/talon-for-twitter-android/blob/52c641b05b51c84a49236f2f871fab3cbead7a3d/app/src/main/java/com/klinker/android/twitter_l/data/App.java#L81-L103" ]
28,162,815
I need to minimize the android application on back button click
https://stackoverflow.com/questions/28162815/i-need-to-minimize-the-android-application-on-back-button-click
user4497065
N/A
public void minimizeApp() { Intent startMain = new Intent(Intent.ACTION_MAIN); startMain.addCategory(Intent.CATEGORY_HOME); startMain.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(startMain); }
https://stackoverflow.com/a/28162995
Kingfisher Phuoc
https://stackoverflow.com/users/972671/kingfisher-phuoc
[ 4287899, 1326758, 3417612 ]
[ "https://github.com/zhangzhichaolove/BaseUtil/blob/82bfaeb94a222a5bb87cbe219e40b5e14ecf6aa8/baselib/src/main/java/com/chao/baselib/util/WindowUtils.java#L174-L179", "https://github.com/whsgzcy/DEMOS_TO_MySelf_Android/blob/d3e3d13efe8e55d4e69da2a006067fb1aa608fbd/app/src/main/java/com/example/super_yu/myexample/daemon/OnePxMain2Activity.java#L47-L52", "https://github.com/vmsoni/Lifes-Game/blob/46caee3bd2687436ef2b8c8e24af603a416ec89c/app/src/main/java/lifesgame/tapstudios/ca/lifesgame/activity/MainActivity.java#L93-L98" ]
27,592,176
Cannot use getSystemService("usagestats") Android Studio
https://stackoverflow.com/questions/27592176/cannot-use-getsystemserviceusagestats-android-studio
Abhishek
https://stackoverflow.com/users/3739837/abhishek
//noinspection ResourceType UsageStatsManager usageStatsManager=(UsageStatsManager)context.getSystemService("usagestats");
https://stackoverflow.com/a/30382852
myfknoll
https://stackoverflow.com/users/3844185/myfknoll
[ 2800194, 1298413, 3776721 ]
[ "https://github.com/mvescovo/triibe-user-app/blob/798f15805e2d7876849e3e9c2997b85056f51391/app/src/main/java/com/example/triibe/triibeuserapp/trackData/AppUsageStats.java#L20-L23", "https://github.com/luoyesiqiu/killprocess/blob/d4e172c23f7b38ba75abb1ee8a8b667c366160ce/app/src/main/java/com/example/zyw/kill/ClearService.java#L103-L106", "https://github.com/SeanCherngTW/CIN-NoBile/blob/81cbb3cdb00050438409fca041db87ab57f74a04/appGO2/app/src/main/java/com/cin/linyuehlii/nobile/StartActivity.java#L214-L224" ]
27,100,007
Set Title inToolBar from Fragment in Android
https://stackoverflow.com/questions/27100007/set-title-intoolbar-from-fragment-in-android
AndroidMech
https://stackoverflow.com/users/2806626/androidmech
TextView mTitle = view.findViewById(R.id.toolbar_title); mTitle.setText("set your title");
https://stackoverflow.com/a/34359806
Hemant Singh
https://stackoverflow.com/users/2480835/hemant-singh
[ 1000520, 2230071, 2230133 ]
[ "https://github.com/mauriciotogneri/shoppinglist/blob/1c79d0d0d2b4bc156190f971f78d78745f8bee45/mobile/src/main/java/com/mauriciotogneri/shoppinglist/base/BaseView.java#L74-L78", "https://github.com/dhbw-timetable/dhbw-timetable-android/blob/24bed26e4e0afabe049177466d890bc40897dfe3/app/src/main/java/dhbw/timetable/navfragments/notifications/NotificationsFragment.java#L34-L40", "https://github.com/dhbw-timetable/dhbw-timetable-android/blob/24bed26e4e0afabe049177466d890bc40897dfe3/app/src/main/java/dhbw/timetable/navfragments/today/TodayFragment.java#L58-L65" ]
26,652,741
MPAndroidChart: bottom x-axis and multiple y-axes
https://stackoverflow.com/questions/26652741/mpandroidchart-bottom-x-axis-and-multiple-y-axes
user1737538
https://stackoverflow.com/users/1737538/user1737538
XAxis xAxis = chart.getXAxis(); xAxis.setPosition(XAxis.XAxisPosition.BOTTOM);
https://stackoverflow.com/a/31287871
neaGaze
https://stackoverflow.com/users/1109043/neagaze
[ 4112245, 1090139, 3048382 ]
[ "https://github.com/ndgithub/StockHawk/blob/aeaf06f5696d493fd2777a9d113f96e3b07d1bbc/app/src/main/java/com/udacity/stockhawk/ui/DetailsActivity.java#L82-L90", "https://github.com/jasonwyatt/SQLite-Performance/blob/580845cd5856af7bf7ea811e50848642386a1b08/app/src/main/java/co/jasonwyatt/sqliteperf/TestSuiteFragment.java#L112-L122", "https://github.com/jimolonely/MyCost/blob/d51394e067b0fdf6901107b260ae153084a4d86d/android-app/app/src/main/java/com/jimo/mycost/func/body/BodyDataShowFragment.java#L119-L134" ]
23,197,027
How to disable marker click event?
https://stackoverflow.com/questions/23197027/how-to-disable-marker-click-event
Aparichith
https://stackoverflow.com/users/3554338/aparichith
map.setOnMarkerClickListener(new OnMarkerClickListener() { @Override public boolean onMarkerClick(Marker marker) { return true; } });
https://stackoverflow.com/a/23197307
Wishmaster
https://stackoverflow.com/users/3532023/wishmaster
[ 3355027, 3839897, 4306503 ]
[ "https://github.com/yeahsicy/AD340/blob/3cdd1c02c8dee2eeed4f36e65851bee07597df85/app/src/main/java/jerry/hw7/MapsActivity.java#L89-L106", "https://github.com/aryayudha/MlijoPenjual/blob/75e3f2bce7db2d6ed021f94ad62205c93583d6c6/app/src/main/java/com/example/aryaym/mlijopenjual/InformasiKonsumen/LokasiKonsumenActivity.java#L34-L51", "https://github.com/hgbao/Shop24h/blob/72d1b8ab3b6e5c2c292041083e2b4c1e54f0ab81/app/src/main/java/com/hgbao/shop24h/MainActivity.java#L91-L112" ]
22,627,184
Android Alert dialog from inside an intent service
https://stackoverflow.com/questions/22627184/android-alert-dialog-from-inside-an-intent-service
Sayed Jalil Hassan
https://stackoverflow.com/users/2409970/sayed-jalil-hassan
public class MyDialog extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); final AlertDialog alertDialog = new AlertDialog.Builder(this).create(); alertDialog.setTitle("your title"); alertDialog.setMessage("your message"); alertDialog.setIcon(R.drawable.icon); alertDialog.show(); } }
https://stackoverflow.com/a/22627480
Niranj Patel
https://stackoverflow.com/users/624069/niranj-patel
[ 3648936, 1260360, 3957305 ]
[ "https://github.com/dcvh/PhotoGridNotification/blob/e424e574b7a26db37ba649e8cdfc17cd845375a9/app/src/main/java/com/example/cpu10661/customnotification/PopupActivity.java#L14-L39", "https://github.com/k3b/k3b-geoHelper/blob/eb2e41cb712538a110aa37f0fe6ab3c87e2a63eb/demo-geoHelper/src/main/java/de/k3b/android/demo_geohelper/GeoViewerDemoActivity.java#L16-L54", "https://github.com/luki122/iunios/blob/890ae1c11dab2b859abd012abae0807a6b46fa80/Aurora_Settings51/code/src/com/android/settings/MonitoringCertInfoActivity.java#L41-L80" ]
21,898,723
dismiss the popup window by back button
https://stackoverflow.com/questions/21898723/dismiss-the-popup-window-by-back-button
akky777
https://stackoverflow.com/users/3226920/akky777
if(popup!=null){ //dismiss the popup popup.dismiss(); //make popup null again popup=null; }
https://stackoverflow.com/a/21898780
M D
https://stackoverflow.com/users/1114338/m-d
[ 505637, 190475, 337721 ]
[ "https://github.com/yeriomin/YalpStore/blob/8c4cb586b9991386cc236597a6d4bcb6045b4d7a/app/src/main/java/com/github/yeriomin/yalpstore/view/SystemRemountDialogBuilder.java#L46-L48", "https://github.com/yarolegovich/LovelyDialog/blob/eb2a593c2962a402f80c5c62bbd362c0f0839920/library/src/main/java/com/yarolegovich/lovelydialog/AbsLovelyDialog.java#L198-L200", "https://github.com/vipulasri/Udacity-Popular-Movies/blob/91c53b2feda3cfc99be3bde455525cd72c24ecdb/app/src/main/java/com/vipul/popularmovies/activity/movies/BaseMovieFragment.java#L24-L26" ]
21,867,293
Disable animation of drawer icon in double navigation drawer for right drawer
https://stackoverflow.com/questions/21867293/disable-animation-of-drawer-icon-in-double-navigation-drawer-for-right-drawer
clocksmith
https://stackoverflow.com/users/1359431/clocksmith
@Override public void onDrawerSlide(View drawerView, float slideOffset) { if(drawerView!=null && drawerView == rightDrawerListView){ super.onDrawerSlide(drawerView, 0); }else{ super.onDrawerSlide(drawerView, slideOffset); } }
https://stackoverflow.com/a/23779529
Jagadeesh
https://stackoverflow.com/users/1329704/jagadeesh
[ 539323, 4245787, 4245786 ]
[ "https://github.com/syncthing/syncthing-android/blob/7279ac7630220ff59b6937cc413c613d2f8371ca/app/src/main/java/com/nutomic/syncthingandroid/activities/MainActivity.java#L419-L421", "https://github.com/cstasos/Comalat-Mobile-App/blob/a9f68db1d0f89f33da5481eb12b281257ccc03fa/app/src/main/java/org/sakaiproject/helpers/user_navigation_drawer_helpers/NavigationDrawerHelper.java#L144-L146", "https://github.com/cstasos/Comalat-Mobile-App/blob/a9f68db1d0f89f33da5481eb12b281257ccc03fa/app/src/main/java/org/sakaiproject/helpers/user_navigation_drawer_helpers/NavigationDrawerHelper.java#L139-L141" ]
19,368,818
How can I check if GPS is enabled before I try to use it
https://stackoverflow.com/questions/19368818/how-can-i-check-if-gps-is-enabled-before-i-try-to-use-it
code511788465541441
https://stackoverflow.com/users/521180/code511788465541441
if (locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)){ //Do what you need if enabled... }else{ //Do what you need if not enabled... }
https://stackoverflow.com/a/19368898
Martin Cazares
https://stackoverflow.com/users/1965099/martin-cazares
[ 1190886, 855688, 2972515 ]
[ "https://github.com/TheAndroidMaster/Status/blob/e373540bc1e3c818740db23349b8d06b0e6e737e/app/src/main/java/com/james/status/data/icon/GpsIconData.java#L130-L137", "https://github.com/opendatakit/collect/blob/d44b2df95e463063a5305e624c63e3161529f084/collect_app/src/main/java/org/odk/collect/android/activities/GeoShapeOsmMapActivity.java#L299-L307", "https://github.com/Utshaw/Lost_AND_Survive/blob/56c925e2323c7d520ff58408f8c5e62ec04fc176/app/src/main/java/com/wordpress/farhantanvirutshaw/lostsurvive/MainActivity.java#L263-L271" ]
18,129,598
Don't display the overlay with the Android Navigation Drawer
https://stackoverflow.com/questions/18129598/dont-display-the-overlay-with-the-android-navigation-drawer
grena
https://stackoverflow.com/users/1230775/grena
mDrawerLayout.setScrimColor(Color.WHITE); // OR mDrawerLayout.setScrimColor(Color.TRANSPARENT);
https://stackoverflow.com/a/18129756
hardartcore
https://stackoverflow.com/users/1511776/hardartcore
[ 681038, 4289084, 422643 ]
[ "https://github.com/lidong1665/AndroidRapidLibrary/blob/fa43beab741cb6adfcf66b5b209794cef43cebdf/Android-Rapid-Development-Of-Library/app/src/main/java/com/lidong/demo/navigation_view/BottomNavigationBarDemoActivity.java#L40-L77", "https://github.com/Laaidback/A.scribe/blob/1f00b7cdf05f8484e645e5639f721b4ee8899475/app/src/main/java/com/laaidback/ascribe/note/pager/NoteFragment.java#L240-L244", "https://github.com/mapbox/mapbox-plugins-android/blob/efb76c235fcdda33f0d3484711b0c95a0b969c92/plugin-places/src/main/java/com/mapbox/mapboxsdk/plugins/places/autocomplete/model/PlaceOptions.java#L180-L185" ]
13,885,179
Restore default actionbar layout
https://stackoverflow.com/questions/13885179/restore-default-actionbar-layout
Leandros
https://stackoverflow.com/users/1070117/leandros
getActivity().getActionBar().setDisplayOptions( ActionBar.DISPLAY_SHOW_HOME | ActionBar.DISPLAY_SHOW_TITLE);
https://stackoverflow.com/a/13885635
Tomik
https://stackoverflow.com/users/244647/tomik
[ 4714446, 3891259, 3942750 ]
[ "https://github.com/ridem/fr.lemet/blob/674d0eb044f89d817f4714d3ea34bee2ef25e215/TransportsCommun/src/fr/lemet/transportscommun/activity/commun/ActivityHelperHoneycomb.java#L42-L57", "https://github.com/luki122/iunios/blob/890ae1c11dab2b859abd012abae0807a6b46fa80/Aurora_Contacts/code/src/com/android/contacts/CallDetailActivity.java#L1583-L1595", "https://github.com/luki122/iunios/blob/890ae1c11dab2b859abd012abae0807a6b46fa80/Aurora_Mms/code/src/com/gionee/mms/importexport/MultiImportSmsActivity.java#L96-L136" ]
13,699,740
Custom android AccelerateDecelerateInterpolator
https://stackoverflow.com/questions/13699740/custom-android-acceleratedecelerateinterpolator
roiberg
https://stackoverflow.com/users/1310478/roiberg
public class MVAccelerateDecelerateInterpolator implements Interpolator { // easeInOutQuint public float getInterpolation(float t) { float x = t*2.0f; if (t<0.5f) return 0.5f*x*x*x*x*x; x = (t-0.5f)*2-1; return 0.5f*x*x*x*x*x+1; } }
https://stackoverflow.com/a/23015656
ʞᴉɯ
https://stackoverflow.com/users/182331/%ca%9e%e1%b4%89%c9%af
[ 495093, 2391784, 2871936 ]
[ "https://github.com/GeekGhost/Ghost/blob/e7881429d80448387762d8e9ece391afd6baf7b0/app/src/main/java/com/zcy/ghost/vivideo/widget/RollPagerView.java#L245-L285", "https://github.com/ZoranLi/wechat_reversing/blob/36b10ef49d2c75d69e3c8fdd5b1ea3baa2bba49a/com/tencent/mm/plugin/luckymoney/particles/e.java#L17-L26", "https://github.com/tplloi/basemaster/blob/7eaf44d0a37e603296995566f6ec6a3b8569f1e4/core/src/main/java/vn/loitp/views/animation/confetti/Utils.java#L37-L47" ]
13,309,226
How to open number dialer pad programmatically in android?
https://stackoverflow.com/questions/13309226/how-to-open-number-dialer-pad-programmatically-in-android
Addon_Android
https://stackoverflow.com/users/1651378/addon-android
Intent intent = new Intent(Intent.ACTION_DIAL); startActivity(intent);
https://stackoverflow.com/a/13309283
MrYanDao
https://stackoverflow.com/users/1275347/mryandao
[ 4507694, 3688640, 3515356 ]
[ "https://github.com/CodeKul/171846FEBANDWE/blob/47116ad19906c8615410274523675deffb3545e5/intentsandintentfilters/src/main/java/com/codekul/intentsandintentfilters/MainActivity.java#L30-L33", "https://github.com/techiespace/LocalStore/blob/ba650fe75a293f00b01096163a7d1a2ebc8bc119/app/src/main/java/com/techiespace/projects/localstore/MainActivity.java#L108-L112", "https://github.com/stefanolsenn/mFriends/blob/00c11d27a8da6bb9d85d9d87368c198e18838181/app/src/main/java/com/example/stefanolsen/locationtracker/gui/controller/FriendDetailsActivity.java#L371-L375" ]
11,848,224
Android, how to choose save file location?
https://stackoverflow.com/questions/11848224/android-how-to-choose-save-file-location
David
https://stackoverflow.com/users/1549219/david
String extStorage = Environment.getExternalStorageState(); path = extStorage+"/Android/data/com.mydomain.myapp/";
https://stackoverflow.com/a/11848313
Maxim
https://stackoverflow.com/users/323128/maxim
[ 3180316, 1232927, 1292741 ]
[ "https://github.com/zwieback/FamilyFinance/blob/95b3fabacea3edb488b11717c9f3d079c1a28261/app/src/main/java/io/github/zwieback/familyfinance/core/storage/helper/ExternalStorageHelper.java#L17-L20", "https://github.com/zugaldia/android-robocar/blob/48d55fe66d4f855be1aae91710750669822474dc/robocar/libsoftware/src/main/java/com/zugaldia/robocar/software/camera/ImageSaver.java#L60-L63", "https://github.com/zhengzhong1/Android6.0PermissionsDemo/blob/80a0ab1982f50c7efbc7d29876c020a9266fd82f/app/src/main/java/choicemmed/com/android60permissionsdemo/MainActivity.java#L193-L196" ]
11,749,972
Higher API calls when lower SDK targeted
https://stackoverflow.com/questions/11749972/higher-api-calls-when-lower-sdk-targeted
Maxim
https://stackoverflow.com/users/323128/maxim
if(android.os.Build.VERSION.SDK_INT >= 14) { // Do something fancy } else { // Do something regular }
https://stackoverflow.com/a/11750030
Sam
https://stackoverflow.com/users/1267661/sam
[ 3833176, 1753417, 737342 ]
[ "https://github.com/prabowomurti/tazkiyah-pos-android/blob/dc5f72a7643e73f1b85801088b9821907c5bfa41/src/main/java/net/google/zxing/client/android/InactivityTimer.java#L49-L53", "https://github.com/tiagohs/PopMovies/blob/ff831d9bd5b97210254aa48639207f506e116319/app/src/main/java/br/com/tiagohs/popmovies/util/LocaleUtils.java#L15-L20", "https://github.com/kontalk/androidclient/blob/125459da487f7aa332c2bae146b825ecb9c51565/app/src/main/java/org/kontalk/service/msgcenter/SQLiteRosterStore.java#L324-L329" ]
11,625,973
Restarting Android application after process is killed
https://stackoverflow.com/questions/11625973/restarting-android-application-after-process-is-killed
Erik Sapir
https://stackoverflow.com/users/243967/erik-sapir
Intent reLaunchMain=new Intent(this,MainActivity.class); reLaunchMain.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(reLaunchMain);
https://stackoverflow.com/a/11626032
Ovidiu Latcu
https://stackoverflow.com/users/542091/ovidiu-latcu
[ 4496876, 4496870, 4530461 ]
[ "https://github.com/kayatomic/android_back_and_forth/blob/cdd7e43108144223db04e4006e1ea660e0023906/app/src/main/java/com/dealfaro/luca/backandforthstudio/ThirdActivity.java#L76-L80", "https://github.com/kayatomic/android_back_and_forth/blob/cdd7e43108144223db04e4006e1ea660e0023906/app/src/main/java/com/dealfaro/luca/backandforthstudio/SecondActivity.java#L79-L83", "https://github.com/adhirajsinghchauhan/BlindAssist/blob/32318db53f6aecb15238b9d91bbe51ac558da8ba/app/src/main/java/app/demons/blindassist/activities/SettingsActivity.java#L121-L125" ]
11,393,986
How to make a callback after the view is completely rendered?
https://stackoverflow.com/questions/11393986/how-to-make-a-callback-after-the-view-is-completely-rendered
jeet.chanchawat
https://stackoverflow.com/users/884674/jeet-chanchawat
@Override public void onWindowFocusChanged(boolean hasFocus) { super.onWindowFocusChanged(hasFocus); doWhateverAfterScreenViewIsRendered(); }
https://stackoverflow.com/a/11395050
Gaurav Chawla
https://stackoverflow.com/users/992819/gaurav-chawla
[ 1758090, 3049295, 3049263 ]
[ "https://github.com/xiaoshanlin000/SLTableView/blob/79598b523a5646a0b836e891f9a9c22474bdaf44/library/src/main/java/com/github/nuptboyzhb/lib/SuperSwipeRefreshLayout.java#L1-L1", "https://github.com/zwping/PSeries/blob/13bb864528a1e926ca28776993ba0887e5d14f03/plib/src/main/java/win/zwping/plib/basis/BasisView.java#L107-L109", "https://github.com/zwping/PSeries/blob/13bb864528a1e926ca28776993ba0887e5d14f03/plib/src/main/java/win/zwping/plib/basis/BasisLifeCycleActivity.java#L65-L67" ]
10,807,561
Actionbar Sherlock: Setting and hiding title bar
https://stackoverflow.com/questions/10807561/actionbar-sherlock-setting-and-hiding-title-bar
gcl1
https://stackoverflow.com/users/1322527/gcl1
setTitle("Title"); getSupportActionBar().hide();
https://stackoverflow.com/a/10807775
Matthias Robbers
https://stackoverflow.com/users/1018177/matthias-robbers
[ 1130339, 1715065, 4307273 ]
[ "https://github.com/zom/Zom-Android/blob/3dde2c3c7b24448419c45fb5aec65786a9230d87/app/src/main/java/org/awesomeapp/messenger/ui/onboarding/OnboardingActivity.java#L454-L460", "https://github.com/doljko/ToDay/blob/66fefeeeaaa5c685a159f6b301a58317441bfa58/app/src/main/java/mn/today/SandBoxActivity.java#L420-L426", "https://github.com/NikitaZhevnitskiy/pj_android/blob/fa4c2013962d95366a4075392c8d0d388103dcd8/app/src/main/java/woact/android/zhenik/pj/LoginActivity.java#L97-L103" ]
8,833,825
Error getting window size on android: "The method getWindowManager is undefined"
https://stackoverflow.com/questions/8833825/error-getting-window-size-on-android-the-method-getwindowmanager-is-undefined
Harsan Valentin
https://stackoverflow.com/users/1145301/harsan-valentin
((WindowManager) getContext().getSystemService(Context.WINDOW_SERVICE)) .getDefaultDisplay().getMetrics(metrics);
https://stackoverflow.com/a/8833881
oriolpons
https://stackoverflow.com/users/840439/oriolpons
[ 2991240, 2756198, 2300729 ]
[ "https://github.com/alexxxdev/platform_frameworks_base/blob/8b50bca054d847e66f621524b6c7fb70f0d35b23/packages/SystemUI/src/com/android/systemui/screenshot/CropImageView.java#L1079-L1084", "https://github.com/fglfgl/JDSelector/blob/2e673428d830aac4a76cfd94d907bd1c247a2c56/app/src/main/java/com/fdz/jdselector/SelectorDialog.java#L44-L61", "https://github.com/triline3/timecat/blob/fdb54695c417366ca2c5e0978bae4ef856f74b74/app/src/main/java/com/time/cat/util/onestep/widget/DragView.java#L119-L146" ]
7,025,647
Easiest way to launch webpage in android with an icon
https://stackoverflow.com/questions/7025647/easiest-way-to-launch-webpage-in-android-with-an-icon
David O'Sullivan
https://stackoverflow.com/users/889872/david-osullivan
String url = "http://www.YOUR-URL.com"; Intent i = new Intent(Intent.ACTION_VIEW); i.setData(Uri.parse(url)); startActivity(i);
https://stackoverflow.com/a/7025917
Fernando Gallego
https://stackoverflow.com/users/366253/fernando-gallego
[ 3475111, 3477529, 2453521 ]
[ "https://github.com/zhouzejin/MvvmBilibili/blob/f0a3bca6823d0a826ca10fcb9162f134f48521d4/app/src/main/java/com/sunny/mvvmbilibili/ui/browser/BrowserActivity.java#L225-L229", "https://github.com/yairigal/MazakApp/blob/a8988b2daf715bd8ce5fbce942a7537266337b4c/app/src/main/java/project/android/com/mazak/Controller/Login/LoginActivity.java#L229-L233", "https://github.com/wqqgt/chromiumforandroid/blob/81fdcd15c4cbb384c3a00f81d9c2359dc82aa07f/chrome/android/java/src/org/chromium/chrome/browser/tab/TabContextMenuItemDelegate.java#L111-L115" ]
6,364,577
How to get the current sqlite database size or package size in Android?
https://stackoverflow.com/questions/6364577/how-to-get-the-current-sqlite-database-size-or-package-size-in-android
Bedo
https://stackoverflow.com/users/755424/bedo
File f = context.getDatabasePath(dbName); long dbSize = f.length();
https://stackoverflow.com/a/6514474
DroidBot
https://stackoverflow.com/users/703182/droidbot
[ 4288443, 2919404, 3904751 ]
[ "https://github.com/longinusboy/master-thesis/blob/a2b7b3c077d008269c2845b1419ad48a1d802691/ClientAndroid/src/com/longinus/projcaritasand/model/database/DatabaseHelper.java#L92-L110", "https://github.com/snabble/Android-SDK/blob/8b1ae11926731e7cad7a8380b8baa113529270c0/core/src/main/java/io/snabble/sdk/ProductDatabase.java#L636-L643", "https://github.com/luki122/iunios/blob/890ae1c11dab2b859abd012abae0807a6b46fa80/Aurora_ContactsProvider/code/src/com/android/providers/contacts/LegacyContactImporter.java#L111-L151" ]
5,538,969
Click on notification starts activity twice
https://stackoverflow.com/questions/5538969/click-on-notification-starts-activity-twice
Karussell
https://stackoverflow.com/users/194609/karussell
notificationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP |Intent.FLAG_ACTIVITY_SINGLE_TOP);
https://stackoverflow.com/a/11722405
Rami Reddy
https://stackoverflow.com/users/1557543/rami-reddy
[ 950854, 4473210, 1740500 ]
[ "https://github.com/hrules6872/Rest/blob/adb60e0e98a542d3ce9a0035f4161db0e5e0924e/app/src/main/java/com/hrules/rest/services/TimeService.java#L202-L206", "https://github.com/XinyueZ/playground-notification/blob/f8ac24466448fd586b6ea1bfdf3ad545671a7c48/app/src/main/java/com/playground/notification/app/activities/SettingsActivity.java#L42-L46", "https://github.com/duyp/mvvm-template/blob/ff8c736c69242bf5cc1eb02eccf3e5b71e288292/app/src/main/java/com/duyp/architecture/mvvm/ui/modules/issue/detail/IssueDetailActivity.java#L253-L258" ]
5,026,207
Video recording format(.3gp or mp4) in android?
https://stackoverflow.com/questions/5026207/video-recording-format-3gp-or-mp4-in-android
Karthi
https://stackoverflow.com/users/555806/karthi
recorder = new MediaRecorder(); recorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
https://stackoverflow.com/a/22428669
Joshua Pinter
https://stackoverflow.com/users/293280/joshua-pinter
[ 1333969, 2614877, 1096346 ]
[ "https://github.com/PhoenixDevTeam/Phoenix-for-VK/blob/1e12ef95dcb1bfeaddd53403a731a06070c3b93a/app/src/main/java/biz/dealnote/messenger/media/record/Recorder.java#L32-L41", "https://github.com/miltonbd/MobiGuard/blob/db18f996e3e0f4981cbf19e6c0d0737898f4bd8d/app/src/main/java/com/spy/audiorecorder/AudioRecorderHelper.java#L12-L23", "https://github.com/qiscus/qiscus-sdk-android/blob/0545698c603c03e797fea23d07559ec5030afd19/chat/src/main/java/com/qiscus/sdk/util/QiscusAudioRecorder.java#L49-L61" ]
3,606,646
How to Retrieve Text from Textbox in Android widget?
https://stackoverflow.com/questions/3606646/how-to-retrieve-text-from-textbox-in-android-widget
Pow
https://stackoverflow.com/users/400859/pow
EditText editText = (EditText)findViewById(R.id.yourId); String editTextStr = editText.getText().toString();
https://stackoverflow.com/a/3606675
Michel
https://stackoverflow.com/users/193850/michel
[ 2252686, 2190682, 410383 ]
[ "https://github.com/J0Nreynolds/Articleate/blob/1e24abfd8beebe7dce02dee01332181773747ccb/app/src/main/java/website/jonreynolds/jreynolds/articleate/MainActivity.java#L172-L176", "https://github.com/optimistanoop/Android-Apps/blob/c269d9460d0e8780ef12b7150ae5c972fd62815b/cUtil/app/src/main/java/com/support/android/commons/MainActivity.java#L116-L121", "https://github.com/commonsguy/cw-omnibus/blob/f28ad7cc5774e08f0c4a62c76a03557987961bed/DesignSupport/FloatingLabelNative/app/src/main/java/com/commonsware/android/design/fln/LaunchDemo.java#L31-L36" ]
1,254,970
Changing text color in a WebView?
https://stackoverflow.com/questions/1254970/changing-text-color-in-a-webview
yanchenko
https://stackoverflow.com/users/15187/yanchenko
_webView.setWebViewClient(new WebViewClient() { public void onPageFinished(WebView view, String url) { _webView.loadUrl( "javascript:document.body.style.setProperty(\"color\", \"white\");" ); } });
https://stackoverflow.com/a/37645059
djunod
https://stackoverflow.com/users/828070/djunod
[ 671138, 3450714, 338832 ]
[ "https://github.com/rumboalla/apkupdater/blob/db5002bada147d51ab90bc865a123d10fcd827e3/app/src/main/java/com/apkupdater/fragment/AboutFragment.java#L45-L68", "https://github.com/TeMoMuKo/AutoStopRace-Android/blob/b57ab003d7104cc30a6aa0790cc2565df7f79041/app/src/main/java/pl/temomuko/autostoprace/ui/staticdata/about/LicensesActivity.java#L39-L46", "https://github.com/stfalcon-studio/SocialAuthHelper/blob/a9b38d8246c5b803010f64fb3349a3edd5bedb1a/socialauthhelper/src/main/java/com/stfalcon/socialauthhelper/vk/activities/VkAuthActivity.java#L38-L54" ]
38,190,253
Android Google Sign In: check if User is signed in
https://stackoverflow.com/questions/38190253/android-google-sign-in-check-if-user-is-signed-in
Maxence Duthoo
https://stackoverflow.com/users/3916197/maxence-duthoo
if (mGoogleApiClient != null && mGoogleApiClient.isConnected()) { // signed in. Show the "sign out" button and explanation. // ... } else { // not signed in. Show the "sign in" button and explanation. // ... }
https://stackoverflow.com/a/41411472
Dopaz
https://stackoverflow.com/users/7322301/dopaz
[ 1097097, 1849414, 1849400 ]
[ "https://github.com/yanzhenjie/Kalle/blob/185fab5e1326fbed20210f9fbd2dc4fca059fd3d/kalle/src/main/java/com/yanzhenjie/kalle/connect/NetworkChecker.java#L144-L146", "https://github.com/yangjiantao/AndroidSocketChat/blob/feb9736d8bb1269be7f955223c63b43e74393873/socketclient/src/main/java/com/medlinker/socketclient/core/TcpClient.java#L147-L149", "https://github.com/yangjiantao/AndroidSocketChat/blob/feb9736d8bb1269be7f955223c63b43e74393873/socketclient/src/main/java/com/medlinker/socketclient/core/ImService.java#L179-L181" ]
34,867,315
Navigation drawer menu icon is not displayed correctly
https://stackoverflow.com/questions/34867315/navigation-drawer-menu-icon-is-not-displayed-correctly
michelletbs
https://stackoverflow.com/users/5689794/michelletbs
NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view); navigationView.setItemIconTintList(null); navigationView.setNavigationItemSelectedListener(this);
https://stackoverflow.com/a/34867925
michelletbs
https://stackoverflow.com/users/5689794/michelletbs
[ 3859983, 2614635, 3438391 ]
[ "https://github.com/rtomyj/Animus/blob/09577340c7162a3c3e4a4e9c54f953fb167612f8/Diary/src/com/BaseClasses/MainActivity.java#L92-L104", "https://github.com/miltonbd/MobiGuard/blob/db18f996e3e0f4981cbf19e6c0d0737898f4bd8d/app/src/main/java/com/mobiguard/BaseMainActivity.java#L133-L145", "https://github.com/aloptrbl/Parking-Ticket-Payment-App/blob/92806e373ff6726b82d0dcf1508d0a1a0575dc64/app/src/main/java/com/glancelab/ptps/NavigationActivity.java#L19-L35" ]
34,281,211
How to handle touch event on google map (MapFragment)?
https://stackoverflow.com/questions/34281211/how-to-handle-touch-event-on-google-map-mapfragment
SachinS
https://stackoverflow.com/users/5561546/sachins
map.setOnMapClickListener(new GoogleMap.OnMapClickListener() { @Override public void onMapClick(LatLng latLng) { //Do what you want on obtained latLng } });
https://stackoverflow.com/a/34281395
Arth Tilva
https://stackoverflow.com/users/3726793/arth-tilva
[ 97568, 1121989, 3428435 ]
[ "https://github.com/airbnb/AirMapView/blob/25d62852606e12bcf096eed1bc0b0acbf2d5f026/library/src/main/java/com/airbnb/android/airmapview/NativeGoogleMapFragment.java#L256-L263", "https://github.com/car2go/AnyMaps/blob/71b52d1a966026d2107856bb9c8a9ad6225a70da/anymaps-google/src/main/java/com/car2go/maps/google/adapter/GoogleMapAdapter.java#L110-L119", "https://github.com/jimlyas/FATHYA/blob/0291cfc4f327ec10c02cd261966b78c9cbe75394/app/src/main/java/com/epizy/someone/fathya/Second.java#L69-L80" ]
34,099,208
Google Sign-In requestIdToken returns null
https://stackoverflow.com/questions/34099208/google-sign-in-requestidtoken-returns-null
JosephK
https://stackoverflow.com/users/5429141/josephk
GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) .requestIdToken(getString(R.string.default_web_client_id)) .requestEmail() .build();
https://stackoverflow.com/a/38025324
Praseed M
https://stackoverflow.com/users/6511514/praseed-m
[ 4485203, 3977368, 3482176 ]
[ "https://github.com/phoenixxt/VU_Pineapple/blob/b89dbf58f961174b97cf76933f21955b05eeb7f0/app/src/main/java/com/example/phoenixxt/vova_usachov_pineapple/LoginAndReg/FirebaseApi.java#L67-L72", "https://github.com/salihgueler/TriviaDuello/blob/97673bab2fd552b5bb4564158998140f39ae219f/app/src/main/java/com/iamsalih/triviaduello/onboarding/login/LoginPresenter.java#L95-L101", "https://github.com/raxden/android-core-omvp/blob/9570f5cf4d7495c9ae7a36124a72990d8bac1a5e/app/src/main/java/com/omvp/app/injector/module/GoogleModule.java#L20-L26" ]
32,506,759
How to push recylerView up when keyboard appear?
https://stackoverflow.com/questions/32506759/how-to-push-recylerview-up-when-keyboard-appear
david
https://stackoverflow.com/users/4270833/david
mRecyclerView.addOnLayoutChangeListener(new View.OnLayoutChangeListener() { @Override public void onLayoutChange(View v, int left, int top, int right,int bottom, int oldLeft, int oldTop,int oldRight, int oldBottom) { mRecyclerView.scrollToPosition(mMessages.size()-1); } });
https://stackoverflow.com/a/37456288
devdoot Ghosh
https://stackoverflow.com/users/6385250/devdoot-ghosh
[ 3850857, 4652383, 2571231 ]
[ "https://github.com/joncolon/ChatApp/blob/c2cf435eb5302202896d206533f6b8f4a32a6049/app/src/main/java/com/tronography/locationchat/chatroom/ChatActivity.java#L204-L213", "https://github.com/PalmZE/SimpleChatApp/blob/303d7b0ff3b7c5445b0eeffb11c4cd6d9c1678fe/app/src/main/java/com/eduardk/firebasetest/view/MainActivity.java#L44-L61", "https://github.com/ankitchouhan/FireChatBot/blob/83cea936942aede59a0e45ccc70c384cb3308600/app/src/main/java/com/firechatbot/activities/ChatActivity.java#L134-L160" ]
31,543,591
AWS DynamoDB Requested resource not found
https://stackoverflow.com/questions/31543591/aws-dynamodb-requested-resource-not-found
Cédric Portmann
https://stackoverflow.com/users/4685429/c%c3%a9dric-portmann
ddbClient.setRegion(Region.getRegion(Regions.EU_WEST_1)); // Add correct Region. In my case its EU_WEST_1
https://stackoverflow.com/a/31568755
Cédric Portmann
https://stackoverflow.com/users/4685429/c%c3%a9dric-portmann
[ 2685424, 3801385, 656709 ]
[ "https://github.com/nimran/Amazon-S3-Integration-in-Android/blob/4ea27eb74286c9397d014b29fb38d6fae30e70fd/app/src/main/java/study/amazons3integration/aws/AmazonUtil.java#L51-L57", "https://github.com/ayalgenzer/Security-Camera/blob/ed854ed3a4330b5a5b901cf82a680428209e36f3/Securty_cam_app/S3TransferUtility/src/com/amazonaws/demo/s3transferutility/Util.java#L69-L75", "https://github.com/awslabs/aws-sdk-android-samples/blob/3b23f8889b108690df233273acfd499f0c68d50d/S3TransferUtilitySample/src/com/amazonaws/demo/s3transferutility/Util.java#L68-L74" ]
28,770,408
how to create random UUID in Android when button click event happens?
https://stackoverflow.com/questions/28770408/how-to-create-random-uuid-in-android-when-button-click-event-happens
Raj De Inno
https://stackoverflow.com/users/3591830/raj-de-inno
if(uniqueId == null) { uniqueId = UUID.randomUUID().toString(); }
https://stackoverflow.com/a/28770603
Fahim
https://stackoverflow.com/users/4552938/fahim
[ 2293446, 1093149, 977057 ]
[ "https://github.com/yuyuyu123/ZCommon/blob/60cf14491f4d3a25060b1c3fd52415b115ea6aea/zcommon/src/main/java/com/cc/android/zcommon/utils/java/StringUtils.java#L549-L551", "https://github.com/yukuku/androidbible/blob/2b47783ce69b6b2984446f9e0258bb0604bb3e59/AlkitabModel/src/main/java/yuku/alkitab/model/util/Gid.java#L6-L8", "https://github.com/xm0625/VBrowser-Android/blob/b71c053d56b324ecb8e9e8edb080b22c4cc35beb/app/src/main/java/com/xm/vbrowser/app/util/UUIDUtil.java#L10-L12" ]
23,446,120
onNewIntent is not called
https://stackoverflow.com/questions/23446120/onnewintent-is-not-called
Kondra007
https://stackoverflow.com/users/3599378/kondra007
browserInt.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP| Intent.FLAG_ACTIVITY_SINGLE_TOP);
https://stackoverflow.com/a/23446196
Yaroslav Mytkalyk
https://stackoverflow.com/users/1366471/yaroslav-mytkalyk
[ 950854, 4473210, 1740500 ]
[ "https://github.com/hrules6872/Rest/blob/adb60e0e98a542d3ce9a0035f4161db0e5e0924e/app/src/main/java/com/hrules/rest/services/TimeService.java#L202-L206", "https://github.com/XinyueZ/playground-notification/blob/f8ac24466448fd586b6ea1bfdf3ad545671a7c48/app/src/main/java/com/playground/notification/app/activities/SettingsActivity.java#L42-L46", "https://github.com/duyp/mvvm-template/blob/ff8c736c69242bf5cc1eb02eccf3e5b71e288292/app/src/main/java/com/duyp/architecture/mvvm/ui/modules/issue/detail/IssueDetailActivity.java#L253-L258" ]
22,477,551
Finish activity in dialog class
https://stackoverflow.com/questions/22477551/finish-activity-in-dialog-class
L3n95
https://stackoverflow.com/users/2424980/l3n95
Intent intent = new Intent(context, YourSecondActivity.class); context.startActivity(intent); ((Activity) context).finish();
https://stackoverflow.com/a/22477649
Hamid Shatu
https://stackoverflow.com/users/3265095/hamid-shatu
[ 3500042, 542090, 3451125 ]
[ "https://github.com/wusir-china/WuWeather/blob/0475601fe4977176939b540ed4d9dd481d443e82/goldenlibrary/src/main/java/com/goldensoft/goldenlibrary/utils/GdActivityTool.java#L195-L199", "https://github.com/ccrama/Slide/blob/033e3906c65ea67a387fd7cf0a68142776c1cd68/app/src/main/java/me/ccrama/redditslide/UserSubscriptions.java#L223-L227", "https://github.com/DemoMath/Zhor/blob/898a3c8d1745e54af562eaedfa1e0c0d1df14229/core/base/core_base/src/main/java/com/abc/base/rxtools/RxActivityTool.java#L193-L197" ]
19,566,840
Get URI from drawable image
https://stackoverflow.com/questions/19566840/get-uri-from-drawable-image
Bhavna
https://stackoverflow.com/users/2530423/bhavna
Resources resources = context.getResources(); Uri.parse(ContentResolver.SCHEME_ANDROID_RESOURCE + "://" + resources.getResourcePackageName(resId) + '/' + resources.getResourceTypeName(resId) + '/' + resources.getResourceEntryName(resId) );
https://stackoverflow.com/a/19567921
trippedout
https://stackoverflow.com/users/1357395/trippedout
[ 602009, 649764, 1341701 ]
[ "https://github.com/cgeo/cgeo/blob/0d134229e423d53b583e9f4edbcaf9b104f501da/tests/src-android/cgeo/geocaching/test/AbstractResourceInstrumentationTestCase.java#L112-L115", "https://github.com/Cuieney/kotlin-life/blob/1ac28fed43e8938c94c86523ccc4dc9893fa753f/vrlib/src/main/java/com/asha/vrlib/common/MDUtil.java#L14-L17", "https://github.com/alexeykovalev/epg_magic_carousel/blob/767d5c66aa095a0ffb26ef8d7154428dec510248/app/src/main/java/com/magicepg/util/ImageUtils.java#L59-L65" ]
15,723,797
Android - prevent TalkBack from announcing TextView title aloud
https://stackoverflow.com/questions/15723797/android-prevent-talkback-from-announcing-textview-title-aloud
Alex
https://stackoverflow.com/users/1370038/alex
ViewCompat.setImportantForAccessibility( decorativeTextView, ViewCompat.IMPORTANT_FOR_ACCESSIBILITY_NO);
https://stackoverflow.com/a/24374304
Matt
https://stackoverflow.com/users/356708/matt
[ 2882464, 116476, 115883 ]
[ "https://github.com/skyleet/Android-Projects/blob/2cc574e85323ad00fe6ee0bd5475429c4ae12ea5/MaterialDrawer-develop/library/src/main/java/com/mikepenz/materialdrawer/model/DividerDrawerItem.java#L29-L47", "https://github.com/mikepenz/MaterialDrawer/blob/6d71e670a04fc66b7e3a207e0cdeb1fa244b944c/library/src/main/java/com/mikepenz/materialdrawer/model/DividerDrawerItem.java#L30-L50", "https://github.com/mikepenz/MaterialDrawer/blob/6d71e670a04fc66b7e3a207e0cdeb1fa244b944c/app/src/main/java/com/mikepenz/materialdrawer/app/drawerItems/AccountDividerDrawerItem.java#L36-L56" ]
13,745,779
Binding to a service from another app
https://stackoverflow.com/questions/13745779/binding-to-a-service-from-another-app
Sylvain Huard
https://stackoverflow.com/users/920844/sylvain-huard
intentForMcuService.setComponent(new ComponentName("com.admetric.modemwatcher", "com.admetric.modemwatcher.ModemWatcherService"));
https://stackoverflow.com/a/13748108
Devunwired
https://stackoverflow.com/users/246461/devunwired
[ 3758310, 3758309, 928679 ]
[ "https://github.com/wonderpush/wonderpush-android-demo/blob/d39138760225546e3bfadf91ee93c3ff060730bd/app/src/main/java/com/wonderpush/demo/TreeA2Activity.java#L21-L23", "https://github.com/wonderpush/wonderpush-android-demo/blob/d39138760225546e3bfadf91ee93c3ff060730bd/app/src/main/java/com/wonderpush/demo/TreeA2Activity.java#L17-L19", "https://github.com/braintree/braintree_android/blob/7d2c04e9be3be955d58962b4bb4be1ed2248f7d2/Braintree/src/main/java/com/braintreepayments/api/Venmo.java#L59-L61" ]
12,662,502
Using ProgressDialog in ActionBar (Android)
https://stackoverflow.com/questions/12662502/using-progressdialog-in-actionbar-android/15210107
KickingLettuce
https://stackoverflow.com/users/1078678/kickinglettuce
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); setProgressBarIndeterminateVisibility(true);
https://stackoverflow.com/a/15339780
Harshid
https://stackoverflow.com/users/1870262/harshid
[ 930208, 1947659, 1959129 ]
[ "https://github.com/braintree/braintree_android/blob/7d2c04e9be3be955d58962b4bb4be1ed2248f7d2/Demo/src/main/java/com/braintreepayments/demo/BaseActivity.java#L55-L65", "https://github.com/xfhy/Android-development-real-classic/blob/941545d2a72256388c13fbaf49b3e16e67412cbd/ProgressBarDemo1/src/com/xfhy/progressbardemo/MainActivity.java#L26-L40", "https://github.com/AndroidHardeningArchive/platform_frameworks_base/blob/a33c61cf9a7e88d9f8f1b5c290207ee5333484c7/core/java/android/app/LauncherActivity.java#L339-L365" ]
11,086,129
runOnUiThread inside a View
https://stackoverflow.com/questions/11086129/runonuithread-inside-a-view
Addev
https://stackoverflow.com/users/853836/addev
yourImageView.post(new Runnable() { @Override public void run() { // set the downloaded image here } });
https://stackoverflow.com/a/11086199
waqaslam
https://stackoverflow.com/users/966550/waqaslam
[ 4333208, 2863119, 2112969 ]
[ "https://github.com/VeeronTen/Actual-Notes/blob/51fc9820737a8581260d9933224cf22dbb00bd90/app/src/main/java/veeronten/actualnotes/activities/AudioRecordActivity.java#L130-L133", "https://github.com/tomasskare/MathBalls/blob/daaba74bcbca67403586e165235362915269a350/app/src/main/java/org/nocrew/tomas/mathballs/GameSurfaceView.java#L694-L699", "https://github.com/AndroidHardeningArchive/platform_packages_apps_QuickSearchBox/blob/79ab0ea93d9fc3ba6a6b8263c607db8fafcf3123/tests/src/com/android/quicksearchbox/PackageIconLoaderTest.java#L90-L95" ]
10,033,315
Destroy Pages on ViewPager and FragmentStatePagerAdapter
https://stackoverflow.com/questions/10033315/destroy-pages-on-viewpager-and-fragmentstatepageradapter
Jose Faria
https://stackoverflow.com/users/675732/jose-faria
@Override public int getItemPosition(Object object) { return POSITION_NONE; }
https://stackoverflow.com/a/10038052
207
https://stackoverflow.com/users/924149/207
[ 3059103, 2670377, 3181056 ]
[ "https://github.com/zhangchaoxu/photo-picky/blob/b944fd41defc123837eefb10616bb9a37159c936/PhotoPicker/src/main/java/me/iwf/photopicker/adapter/PhotoPagerAdapter.java#L94-L94", "https://github.com/aclululu/FrHere/blob/1bfbc4a1b8bc013ce49ace408617470dc9c0febb/PhotoPicker/src/main/java/me/iwf/photopicker/adapter/PhotoPagerAdapter.java#L89-L89", "https://github.com/Qiangest/IMURecorder/blob/d21a1298b4b1b658e7a4e48d23f63b91a023b627/pictureselector/PhotoPagerAdapter.java#L93-L93" ]
9,928,256
How to turn on the GPS on Android
https://stackoverflow.com/questions/9928256/how-to-turn-on-the-gps-on-android
Elvis Oliveira
https://stackoverflow.com/users/1281696/elvis-oliveira
Intent i = new Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS); startActivity(i);
https://stackoverflow.com/a/9928379
goodm
https://stackoverflow.com/users/1014234/goodm
[ 1919888, 1490679, 4582951 ]
[ "https://github.com/ojacquemart/vlilleChecker/blob/66a444c8a583c100c9f9d8645c47d00fc8288b7f/app/src/com/vlille/checker/ui/osm/location/LocationManagerWrapper.java#L135-L138", "https://github.com/BasicAirData/GPSLogger/blob/af086a095fe552c1a4af89dcca6ffc36aa36d763/app/src/main/java/eu/basicairdata/graziano/gpslogger/FragmentGPSFix.java#L141-L145", "https://github.com/niso217/OpenSSME/blob/edbeb282bfcb3d2c8a61b3c33b8bac230e499a82/app/src/main/java/com/open/ssme/Activity/MainActivity.java#L773-L780" ]
9,178,253
How to handle an intent which does not have data at first call of an activity?
https://stackoverflow.com/questions/9178253/how-to-handle-an-intent-which-does-not-have-data-at-first-call-of-an-activity
DroidGirl
https://stackoverflow.com/users/1167262/droidgirl
if( getIntent().getExtras() != null) { //do here }
https://stackoverflow.com/a/9178356
Orkun Ozen
https://stackoverflow.com/users/494659/orkun-ozen
[ 3482171, 3482107, 1353943 ]
[ "https://github.com/raxden/android-core-omvp/blob/9570f5cf4d7495c9ae7a36124a72990d8bac1a5e/app/src/main/java/com/omvp/app/helper/NavigationHelper.java#L93-L95", "https://github.com/raxden/android-core-omvp/blob/9570f5cf4d7495c9ae7a36124a72990d8bac1a5e/app/src/main/java/com/omvp/app/base/BaseActivityModule.java#L43-L45", "https://github.com/Euzee/permissionUtil/blob/179ddffd06e5de291d8145a3ca85322493004ca2/permissionUtil/src/main/java/com/github/euzee/permission/PermissionActivity.java#L213-L215" ]
6,186,511
How to reveal that screen is locked?
https://stackoverflow.com/questions/6186511/how-to-reveal-that-screen-is-locked
barmaley
https://stackoverflow.com/users/472270/barmaley
KeyguardManager myKM = (KeyguardManager) context.getSystemService(Context.KEYGUARD_SERVICE); if( myKM.inKeyguardRestrictedInputMode()) { //it is locked } else { //it is not locked }
https://stackoverflow.com/a/8668610
Shaul Rosenzweig
https://stackoverflow.com/users/940704/shaul-rosenzweig
[ 384892, 3505974, 3505864 ]
[ "https://github.com/wordpress-mobile/WordPress-Android/blob/20183f7d9bc36bfe8a79e87dd2c1414b5d266f82/libs/utils/WordPressUtils/src/main/java/org/wordpress/android/util/DeviceUtils.java#L95-L98", "https://github.com/wenjiangit/CoolPlayer/blob/744ec08954ea8c03a8e71b48a69f83f78e83805a/common-core/src/main/java/com/wenjian/core/utils/ScreenUtils.java#L158-L161", "https://github.com/wenjiangit/CoolPlayer/blob/744ec08954ea8c03a8e71b48a69f83f78e83805a/base/src/main/java/com/wenjian/base/utils/ScreenUtils.java#L157-L160" ]
5,530,473
how do I restart an activity in android?
https://stackoverflow.com/questions/5530473/how-do-i-restart-an-activity-in-android
Ephraim
https://stackoverflow.com/users/599402/ephraim
Intent intent = getIntent(); finish(); startActivity(intent);
https://stackoverflow.com/a/5530500
Ted Hopp
https://stackoverflow.com/users/535871/ted-hopp
[ 4642069, 3353864, 2267915 ]
[ "https://github.com/otaviotarelhodb/Tempus/blob/9a39b0f1e1fa292a83066e317c67c5bb107708ea/app/src/main/java/com/tempus/MainActivity.java#L74-L78", "https://github.com/onero/LoginBuster/blob/cd97cffd7d5d005dc5c80260c7fb1cbb8010aaaa/app/src/main/java/dk/adamino/loginbuster/MainActivity.java#L103-L107", "https://github.com/oiricaud/Inventory/blob/8f27c90d98ba62ef9a1ecdc19bfef6ca3cb4fa72/app/src/main/java/activity/MainActivity.java#L2183-L2187" ]
4,276,068
how to make edittext field for decimals
https://stackoverflow.com/questions/4276068/how-to-make-edittext-field-for-decimals
Aswan
https://stackoverflow.com/users/1746300/aswan
et.setInputType(InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_FLAG_DECIMAL);
https://stackoverflow.com/a/4276249
Vikas Patidar
https://stackoverflow.com/users/457982/vikas-patidar
[ 2271128, 2271124, 1648053 ]
[ "https://github.com/balch/MockTrade/blob/52e79954d2b2a3874848ea2733040e6d2090ec19/AppFramework/src/main/java/com/balch/android/app/framework/core/widget/NumberEditLayout.java#L49-L52", "https://github.com/balch/MockTrade/blob/52e79954d2b2a3874848ea2733040e6d2090ec19/AppFramework/src/main/java/com/balch/android/app/framework/core/widget/MoneyEditLayout.java#L50-L54", "https://github.com/dsolonenko/financisto/blob/a9dd486551dc0b6146f5c04d7cb3e1655c15e908/app/src/main/java/ru/orangesoftware/financisto/view/AttributeView.java#L96-L104" ]
4,020,881
android disable seek bar for audio controller
https://stackoverflow.com/questions/4020881/android-disable-seek-bar-for-audio-controller
Labeeb Panampullan
https://stackoverflow.com/users/477754/labeeb-panampullan
seekBar.setOnTouchListener(new OnTouchListener(){ @Override public boolean onTouch(View v, MotionEvent event) { return true; } });
https://stackoverflow.com/a/4615146
Muhammad Abdullah
https://stackoverflow.com/users/460176/muhammad-abdullah
[ 2873632, 4333158, 424138 ]
[ "https://github.com/tplloi/basemaster/blob/7eaf44d0a37e603296995566f6ec6a3b8569f1e4/core/src/main/java/vn/loitp/views/placeholderview/lib/placeholderview/SwipeViewBinder.java#L653-L660", "https://github.com/talAriel/tinderForYourPhotos/blob/72f371d5bad077de0dfa63a5ab8e28f444ea7398/App/Industrial_Project/placeholderview/src/main/java/com/mindorks/placeholderview/SwipeViewBinder.java#L637-L644", "https://github.com/janishar/PlaceHolderView/blob/7a4bb8b290ff9ab15c483e0fb1ec1eb7d0f0d508/placeholderview/src/main/java/com/mindorks/placeholderview/SwipeViewBinder.java#L471-L478" ]
3,142,670
How do I detect touch input on the Android
https://stackoverflow.com/questions/3142670/how-do-i-detect-touch-input-on-the-android
RyoxSinfar
https://stackoverflow.com/users/379220/ryoxsinfar
mView.setOnTouchListener(new OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { //show dialog here return false; } });
https://stackoverflow.com/a/3143190
Dariusz Bacinski
https://stackoverflow.com/users/361832/dariusz-bacinski
[ 2275053, 1892671, 2519723 ]
[ "https://github.com/janumedia/StockSales-Android-App/blob/c11f8e2d8f539335d579455ebd54f80bc104ed9f/app/src/main/java/com/janumedia/app/stocksales/CustomFragment.java#L170-L178", "https://github.com/ywwynm/EverythingDone/blob/9b017fb9dadfff32ddfdc908790a7c909eade285/app/src/main/java/com/ywwynm/everythingdone/fragments/DateTimeDialogFragment.java#L694-L703", "https://github.com/berict/Tapad/blob/0d7ee169b65f6a4b0bf459c4e31fe7395aebbcc8/app/src/main/java/com/bedrock/padder/helper/WindowHelper.java#L755-L764" ]
1,964,819
Start Android Market from App
https://stackoverflow.com/questions/1964819/start-android-market-from-app
Tom R
https://stackoverflow.com/users/209838/tom-r
Intent intent = new Intent(Intent.ACTION_VIEW); intent.setData(Uri.parse("market://search?q=pname:MyApp")); startActivity(intent);
https://stackoverflow.com/a/1964910
Tom R
https://stackoverflow.com/users/209838/tom-r
[ 3475111, 3477529, 945579 ]
[ "https://github.com/zhouzejin/MvvmBilibili/blob/f0a3bca6823d0a826ca10fcb9162f134f48521d4/app/src/main/java/com/sunny/mvvmbilibili/ui/browser/BrowserActivity.java#L225-L229", "https://github.com/yairigal/MazakApp/blob/a8988b2daf715bd8ce5fbce942a7537266337b4c/app/src/main/java/project/android/com/mazak/Controller/Login/LoginActivity.java#L229-L233", "https://github.com/thiagokimo/TMDb/blob/1888336c23f3243486747002e04bc40a96e09939/presentation/src/main/java/io/kimo/tmdb/presentation/ui/fragment/MovieDetailFragment.java#L204-L208" ]
45,760,691
Start new navigation without exiting from previous navigation in Google Map
https://stackoverflow.com/questions/45760691/start-new-navigation-without-exiting-from-previous-navigation-in-google-map
Bhuvanesh BS
https://stackoverflow.com/users/5558150/bhuvanesh-bs
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent);
https://stackoverflow.com/a/45880680
user6490462
N/A
[ 4110221, 2856309, 2856300 ]
[ "https://github.com/jung2929/devlooks_android/blob/fa67ad598ecf246f15543b21229fea6c17569f9d/app/src/main/java/gachon/mobile/programming/android/finalproject/activities/SettingActivity.java#L270-L273", "https://github.com/nishantkp/berry-interactions/blob/fafcaba7c531f16fa7a6e6cd3b49970b566ad79c/app/src/main/java/com/example/nishant/berry/ui/signup/SignUpActivity.java#L81-L85", "https://github.com/nishantkp/berry-interactions/blob/fafcaba7c531f16fa7a6e6cd3b49970b566ad79c/app/src/main/java/com/example/nishant/berry/ui/signin/SignInActivity.java#L80-L84" ]
39,148,387
Framework7 inside webview pages not loading
https://stackoverflow.com/questions/39148387/framework7-inside-webview-pages-not-loading
RogerHN
https://stackoverflow.com/users/5659402/rogerhn
webSettings.setAllowFileAccessFromFileURLs(true); webSettings.setAllowUniversalAccessFromFileURLs(true);
https://stackoverflow.com/a/39376417
David Antoon
https://stackoverflow.com/users/5545574/david-antoon
[ 1253972, 1755824, 976883 ]
[ "https://github.com/JakePrim/PrimWeb/blob/c648b8a033ac042e11b7cf94a9e5c4bc19d894f0/app/src/main/java/com/prim/web/setting/CustomX5Setting.java#L19-L35", "https://github.com/AltimitSystems/mv-android-client/blob/329ce949bc602d0ae186417f0f02391695baa614/app/src/zz_crosswalk/java/systems/altimit/rpgmakermv/XWalkPlayerView.java#L54-L72", "https://github.com/xm0625/VBrowser-Android/blob/b71c053d56b324ecb8e9e8edb080b22c4cc35beb/app/src/main/java/com/xm/vbrowser/app/activity/MainActivity.java#L339-L360" ]
35,057,188
How to add back button arrow functionality in navigation bar
https://stackoverflow.com/questions/35057188/how-to-add-back-button-arrow-functionality-in-navigation-bar
JonasSeputis
https://stackoverflow.com/users/5644871/jonasseputis
@Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { // Respond to the action bar's Up/Home button case android.R.id.home: NavUtils.navigateUpFromSameTask(this); return true; } return super.onOptionsItemSelected(item); }
https://stackoverflow.com/a/35057345
kevz
https://stackoverflow.com/users/1878151/kevz
[ 4480178, 4480143, 4480113 ]
[ "https://github.com/x13945/Messaging/blob/9625b4ae73e345fe0601d2847ee3e50a0462631e/app/src/main/java/com/android/messaging/ui/appsettings/PerSubscriptionSettingsActivity.java#L70-L77", "https://github.com/x13945/Messaging/blob/9625b4ae73e345fe0601d2847ee3e50a0462631e/app/src/main/java/com/android/messaging/ui/appsettings/ApnSettingsActivity.java#L74-L81", "https://github.com/x13945/Messaging/blob/9625b4ae73e345fe0601d2847ee3e50a0462631e/app/src/main/java/com/android/messaging/ui/appsettings/ApnEditorActivity.java#L67-L74" ]
34,692,116
Open telegram channel in android
https://stackoverflow.com/questions/34692116/open-telegram-channel-in-android
MBehtemam
https://stackoverflow.com/users/1262045/mbehtemam
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("tg://resolve?domain=partsilicon")); startActivity(intent);
https://stackoverflow.com/a/36281121
Sadegh Ghanbari
https://stackoverflow.com/users/2513309/sadegh-ghanbari
[ 2587942, 2807981, 1205208 ]
[ "https://github.com/zzyandzzy/captcha/blob/c8721e19ac28280df72af593cebe50cbd0c746ee/app/src/main/java/com/zzy/captcha/ui/activity/SettingActivity.java#L269-L272", "https://github.com/yaostyle/Single-Screen-App-IHOP/blob/ad45b0a69f0f553d216fb1baf6547daf3f334c40/app/src/main/java/com/android/chrishsu/ihop/MainActivity.java#L17-L20", "https://github.com/vojta-horanek/APKMirror/blob/3facdf93170b86b441869a93b97e103d4e62461a/app/src/main/java/cf/vojtechh/apkmirror/activities/MainActivity.java#L673-L676" ]
32,715,189
Location Manager remove updates permission
https://stackoverflow.com/questions/32715189/location-manager-remove-updates-permission
Madhukar Hebbar
https://stackoverflow.com/users/4596556/madhukar-hebbar
if (locationManager != null) { if (checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED || checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED) { locationManager.removeUpdates(GPSListener.this); } }
https://stackoverflow.com/a/32715349
Tim Castelijns
https://stackoverflow.com/users/1843331/tim-castelijns
[ 1618768, 270795, 3389925 ]
[ "https://github.com/arcao/Geocaching4Locus/blob/4c7182f931a59a98c838acbc0d7561bf5e36ef13/app/src/main/java/com/arcao/geocaching4locus/search_nearest/task/LocationUpdateTask.java#L108-L124", "https://github.com/siacs/Conversations/blob/46574d6e111a46790656d52476dc2a092c8b9109/src/main/java/eu/siacs/conversations/ui/LocationActivity.java#L262-L265", "https://github.com/MartinMarx/MyJourney/blob/5fa44aa8579dbf4b070c42f208fd7546c5cafcb2/app/src/main/java/fr/colourz/myjourney/MapsActivity.java#L342-L353" ]
29,367,093
How can I start the Accessibility Settings Page of my APP in Android?
https://stackoverflow.com/questions/29367093/how-can-i-start-the-accessibility-settings-page-of-my-app-in-android
Kalok Lo
https://stackoverflow.com/users/4733514/kalok-lo
Intent intent = new Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS); startActivity(intent);
https://stackoverflow.com/a/29739374
Tim Groeneveld
https://stackoverflow.com/users/2143004/tim-groeneveld
[ 1357956, 3660450, 1228916 ]
[ "https://github.com/stytooldex/styT/blob/aa35b6f2731b79bc883eba6c521358c77ed9925a/app/src/main/java/nico/styTool/buff_ext.java#L352-L355", "https://github.com/j1angvei/JumpingShow/blob/600cd012212d34229bdf5daa3fe22fb5ebf832d8/app/src/main/java/cn/j1angvei/jumpingshow/AppUtils.java#L26-L29", "https://github.com/antest1/kcanotify/blob/92a4e5d0be1b7d8a0fbd784627fe01f3e8b1d0f2/app/src/main/java/com/antest1/kcanotify/MainPreferenceFragment.java#L356-L359" ]
25,485,822
Android pop fragment from backstack with animation
https://stackoverflow.com/questions/25485822/android-pop-fragment-from-backstack-with-animation
Nouman Bhatti
https://stackoverflow.com/users/1849991/nouman-bhatti
setCustomAnimations(R.anim.enter_from_left, R.anim.enter_from_left, R.anim.exit_to_left, R.anim.exit_to_left);
https://stackoverflow.com/a/25485950
Simas
https://stackoverflow.com/users/3249477/simas
[ 3081162, 4188229, 1812834 ]
[ "https://github.com/xievxin/GitWorkspace/blob/73fed09827428a104865d980bea5b469dffa52ab/AndroidSource/app/src/main/java/android/app/BackStackRecord.java#L547-L549", "https://github.com/t0rr3sp3dr0/Confectionery-Android/blob/41a8caea22afe79061e6f28f14ee8ab22264e0f2/library/src/main/java/me/t0rr3sp3dr0/confectionery/abstracts/CandyFragment.java#L211-L213", "https://github.com/soeminnminn/SulfurKeyboard/blob/7627abf8931e0d7236d7de18335be343b25a2a56/src/android/support/v4/app/BackStackRecord.java#L497-L499" ]
21,955,593
android webview.loadUrl won't load another webpage
https://stackoverflow.com/questions/21955593/android-webview-loadurl-wont-load-another-webpage
yansun0
https://stackoverflow.com/users/3339756/yansun0
myWebView.post(new Runnable() { @Override public void run() { webviewLoadURL("file:///android_asset/test1.html"); } });
https://stackoverflow.com/a/21958954
ksasq
https://stackoverflow.com/users/846861/ksasq
[ 350255, 501124, 501127 ]
[ "https://github.com/pwittchen/android-looper-sample/blob/17a9840e551114d3b3756f6870b876d30454cf53/app/src/main/java/com/github/pwittchen/android/looper/sample/MainActivity.java#L72-L78", "https://github.com/apollographql/apollo-android/blob/798389298da57164cda1fc400458073484482eaa/apollo-android-support/src/main/java/com/apollographql/apollo/ApolloPrefetchCallback.java#L39-L45", "https://github.com/apollographql/apollo-android/blob/798389298da57164cda1fc400458073484482eaa/apollo-android-support/src/main/java/com/apollographql/apollo/ApolloPrefetchCallback.java#L63-L69" ]
18,237,825
Android "Roboto Light" pixelation
https://stackoverflow.com/questions/18237825/android-roboto-light-pixelation
mhouglum
https://stackoverflow.com/users/1405556/mhouglum
int flags = textView.getPaintFlags() | Paint.SUBPIXEL_TEXT_FLAG | Paint.ANTI_ALIAS_FLAG; textView.setPaintFlags(flags);
https://stackoverflow.com/a/18238030
Karakuri
https://stackoverflow.com/users/1207921/karakuri
[ 458522, 1514978, 4324601 ]
[ "https://github.com/johnkil/Android-RobotoTextView/blob/1341602f16c08057dddd193411e7dab96f963b77/robototextview/src/main/java/com/devspark/robototextview/RobotoTypefaces.java#L549-L552", "https://github.com/urbanairship/android-library/blob/a891ecd31dfa0ca6e30e6b3ad97aed1b79525680/urbanairship-core/src/main/java/com/urbanairship/util/ViewUtils.java#L31-L49", "https://github.com/mayankpatodia/TapToRap/blob/e0dc1f82ec1642d8b9a52ab3500e219366c90107/jamsMusicPlayer/src/main/java/com/jams/music/player/Dialogs/CustomizeScreensDialog.java#L188-L208" ]
17,444,448
Android: setResult not working
https://stackoverflow.com/questions/17444448/android-setresult-not-working
P Ravikant
https://stackoverflow.com/users/2500377/p-ravikant
getActivity().setResult(Activity.RESULT_OK, intent); getActivity().finish();
https://stackoverflow.com/a/17444796
Taldroid
https://stackoverflow.com/users/1616261/taldroid
[ 1229607, 3038253, 3960519 ]
[ "https://github.com/openmrs/openmrs-contrib-android-client/blob/1f393c4c3750b5d14e90491c82044944206cbc3d/openmrs-client/src/main/java/org/openmrs/mobile/activities/visitdashboard/VisitDashboardFragment.java#L76-L80", "https://github.com/patrickjkennedy/BakingBuddy/blob/4955dacb7b79cfc51d8c73104a9270b17cda25eb/app/src/main/java/com/example/android/bakingbuddy/ui/DetailFragment.java#L294-L299", "https://github.com/luki122/iunios/blob/890ae1c11dab2b859abd012abae0807a6b46fa80/Aurora_Settings51/code/src/com/android/settings/securitypasswd/AuroraConfirmLockPasswordFour.java#L702-L707" ]
14,082,854
Adding titles to ViewPager
https://stackoverflow.com/questions/14082854/adding-titles-to-viewpager
Dan
https://stackoverflow.com/users/1158663/dan
statePagerAdapter = new FragmentStatePagerAdapter(fragmentManager) { @Override public CharSequence getPageTitle(int position) { return "Title Here"; } };
https://stackoverflow.com/a/14083077
Dan
https://stackoverflow.com/users/1158663/dan
[ 1063989, 3284022, 3284028 ]
[ "https://github.com/AriesHoo/FastLib/blob/29e24668695a08ebe3fc4d177d34ae5117d2bb30/library/src/main/java/com/aries/library/fast/manager/TabLayoutManager.java#L269-L301", "https://github.com/zedtang/RydeBot/blob/a6efb31263151cefa370829ae7a40eb864a958c5/app/src/main/java/com/example/jiaheng/rydebot/fragment/ChatFragment.java#L30-L66", "https://github.com/zedtang/RydeBot/blob/a6efb31263151cefa370829ae7a40eb864a958c5/app/src/main/java/com/example/jiaheng/rydebot/fragment/ForumFragment.java#L33-L79" ]
13,647,869
Second AsyncTask not executing
https://stackoverflow.com/questions/13647869/second-asynctask-not-executing
Albert Pasaret
https://stackoverflow.com/users/1866698/albert-pasaret
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); } else { task.execute(); }
https://stackoverflow.com/a/13657249
coocood
https://stackoverflow.com/users/1516397/coocood
[ 3833176, 4074636, 3685119 ]
[ "https://github.com/prabowomurti/tazkiyah-pos-android/blob/dc5f72a7643e73f1b85801088b9821907c5bfa41/src/main/java/net/google/zxing/client/android/InactivityTimer.java#L49-L53", "https://github.com/Paradise02/AndroidOrderingSystem/blob/2ef259f99b8f07306bce6efad8cdab76bbcc2a06/src/main/java/com/example/orangeparadise/clientorderdemo/MainActivityVertical.java#L308-L313", "https://github.com/institutotim/zup-android-cidadao/blob/71d662f3d915d6b3527612d6f7f1778ac7c5372a/app/src/main/java/br/com/lfdb/zup/fragment/EstatisticasFragment.java#L78-L84" ]
12,987,934
How to access drawable resources (color) in java
https://stackoverflow.com/questions/12987934/how-to-access-drawable-resources-color-in-java
RN55
https://stackoverflow.com/users/1761391/rn55
myButton.setBackgroundColor(Color.parseColor("#RRGGBB"));
https://stackoverflow.com/a/12988134
flawyte
https://stackoverflow.com/users/1276306/flawyte
[ 2636394, 2636393, 2636366 ]
[ "https://github.com/xavipedrals/restaurant-orders/blob/9ed4cf2418c627a1a8575ebf872b6338f0059a4b/app/src/main/java/com/example/xavi/comandesidi/StocProductes/DishStockItemRecyclerViewAdapter.java#L159-L161", "https://github.com/xavipedrals/restaurant-orders/blob/9ed4cf2418c627a1a8575ebf872b6338f0059a4b/app/src/main/java/com/example/xavi/comandesidi/StocProductes/DishStockItemRecyclerViewAdapter.java#L155-L157", "https://github.com/xavipedrals/restaurant-orders/blob/9ed4cf2418c627a1a8575ebf872b6338f0059a4b/app/src/main/java/com/example/xavi/comandesidi/NewOrder/DishRecyclerViewAdapter.java#L252-L254" ]
12,650,921
Quick fix for NetworkOnMainThreadException
https://stackoverflow.com/questions/12650921/quick-fix-for-networkonmainthreadexception
Alex F
https://stackoverflow.com/users/279313/alex-f
StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build(); StrictMode.setThreadPolicy(policy);
https://stackoverflow.com/a/12650928
Raghav Sood
https://stackoverflow.com/users/1069068/raghav-sood
[ 4554136, 3366269, 866169 ]
[ "https://github.com/technawab/notify/blob/056883419bec49a53244b088a9a81d778206fd8c/app/src/main/java/com/technawabs/notify/network/Factory.java#L45-L48", "https://github.com/shre1000/Android-Camera-as-a-Surveillance-Camera/blob/05812850e84abb4b675fa091f9eadaaf34c960a4/mobileasacam/MainActivity.java#L71-L75", "https://github.com/ar-android/GDGYogyakartaCodelabs-03-02-2017/blob/6efba34d7788e1c8b62b97c74d41e016a975a14e/baseapp/src/main/java/com/ahmadrosid/lib/baseapp/BaseApp.java#L38-L42" ]
6,330,200
Close android application programmatically
https://stackoverflow.com/questions/6330200/how-to-quit-android-application-programmatically
Vignesh
https://stackoverflow.com/users/792219/vignesh
getActivity().finish(); System.exit(0);
https://stackoverflow.com/a/25642672
Devon
https://stackoverflow.com/users/879730/devon
[ 3039588, 3396362, 2876955 ]
[ "https://github.com/lordofprograms/AndroidTestTask/blob/90530e1ad1eff684eef567c34668fff74434ab11/applicationb/app/src/main/java/com/testtask/applicationb/ui/MainFragment.java#L147-L155", "https://github.com/etet100/android_pcb_assistant/blob/de33bdee17cdfa3e26b37bf3340fe2f2410e77aa/app/src/main/java/bts/pcbassistant/welcome/WelcomeFragment.java#L285-L293", "https://github.com/zeeshanhussain/TimeTable/blob/275cf734e0d16d837dbc7023ce90237bc12e17a5/app/src/main/java/com/zeeshanhussain/timetable/ui/fragments/MyPreferenceFragment.java#L202-L211" ]
10,573,930
How to get main Activity class or class name of my application?
https://stackoverflow.com/questions/10573930/how-to-get-main-activity-class-or-class-name-of-my-application
IgorOK
https://stackoverflow.com/users/1001120/igorok
String packageName = context.getPackageName(); Intent launchIntent = context.getPackageManager().getLaunchIntentForPackage(packageName); String className = launchIntent.getComponent().getClassName();
https://stackoverflow.com/a/16608111
sroes
https://stackoverflow.com/users/616859/sroes
[ 448230, 448173, 221012 ]
[ "https://github.com/evollu/react-native-fcm/blob/af8b7d6f7b5e59cd0a90ed9e553c66f8e5f4b57e/android/src/main/java/com/evollu/react/fcm/SendNotificationTask.java#L319-L323", "https://github.com/evollu/react-native-fcm/blob/af8b7d6f7b5e59cd0a90ed9e553c66f8e5f4b57e/android/src/main/java/com/evollu/react/fcm/FIRLocalMessagingHelper.java#L34-L39", "https://github.com/zo0r/react-native-push-notification/blob/51f55e771feaacc1a1efba5dd794b78754c452bf/android/src/main/java/com/dieam/reactnativepushnotification/modules/RNPushNotificationHelper.java#L53-L63" ]
9,742,758
How to start an Activity with an animation set entirely programmatically
https://stackoverflow.com/questions/9742758/how-to-start-an-activity-with-an-animation-set-entirely-programmatically
user438293456
https://stackoverflow.com/users/214216/user438293456
startActivity(intent); overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);
https://stackoverflow.com/a/9744371
Win Myo Htet
https://stackoverflow.com/users/319058/win-myo-htet
[ 1707717, 726746, 726338 ]
[ "https://github.com/vase4kin/TeamCityApp/blob/358ccd4a217d173e28c1da317e56562df551da8d/app/src/main/java/com/github/vase4kin/teamcityapp/account/manage/view/AccountsViewImpl.java#L340-L343", "https://github.com/tuskyapp/Tusky/blob/ce7270cdb27bcd451e0679b8b8c7bf4ab346315b/app/src/main/java/com/keylesspalace/tusky/fragment/SFragment.java#L87-L90", "https://github.com/tuskyapp/Tusky/blob/ce7270cdb27bcd451e0679b8b8c7bf4ab346315b/app/src/main/java/com/keylesspalace/tusky/BaseActivity.java#L105-L108" ]
9,097,597
Android VideoView repetition
https://stackoverflow.com/questions/9097597/android-videoview-repetition
FoamyGuy
https://stackoverflow.com/users/507810/foamyguy
myVideoView.setOnPreparedListener(new OnPreparedListener() { @Override public void onPrepared(MediaPlayer mp) { // TODO Auto-generated method stub mp.setLooping(true); } });
https://stackoverflow.com/a/21549116
Dario Defilippi
https://stackoverflow.com/users/2136546/dario-defilippi
[ 4246820, 1487866, 3182809 ]
[ "https://github.com/D-Cube/Emoji-Fy/blob/304b419ad6cb300a606e06bc8cde8e17acba9652/EMOJIFY/app/src/main/java/com/example/android/emojify/MainActivity.java#L64-L73", "https://github.com/beanu/smart-farmer-android/blob/7dc9a657ee70e840fe14a9e43e994657b8c6c343/l3_guide/src/main/java/com/beanu/l3_guide/video/GuideVideoActivity.java#L130-L140", "https://github.com/SequencingDOTcom/Weather-My-Way-RTP-app/blob/9bad3f1fd52f8752b24686f8177e582f98a0608f/Android/app/src/main/java/com/sequencing/weather/activity/WeatherPreferenceActivity.java#L207-L220" ]
5,900,276
How to return to home screen from Activity
https://stackoverflow.com/questions/5900276/how-to-return-to-home-screen-from-activity
user718146
https://stackoverflow.com/users/718146/user718146
Intent intent = new Intent(Intent.ACTION_MAIN); intent.addCategory(Intent.CATEGORY_HOME); startActivity(intent);
https://stackoverflow.com/a/5901270
Alec B. Plumb
https://stackoverflow.com/users/378445/alec-b-plumb
[ 3049409, 500039, 4324060 ]
[ "https://github.com/zwping/PSeries/blob/13bb864528a1e926ca28776993ba0887e5d14f03/plib/src/main/java/win/zwping/plib/natives/utils/ActivityUtil.java#L43-L47", "https://github.com/xingda920813/HelloDaemon/blob/605212c82611d6a5d2716e83e8c16ca2e65c5cc8/hellodaemon/src/main/java/com/xdandroid/hellodaemon/IntentWrapper.java#L406-L410", "https://github.com/vishnubhadri/E-caller/blob/3807e74ac8639d54ca8bd15ddc4443c3261db7b3/src/main/java/com/vishnu/ecaller/ECaller/Main.java#L382-L386" ]
5,208,377
Call fragment events from activity
https://stackoverflow.com/questions/5208377/call-fragment-events-from-activity
Shaun
https://stackoverflow.com/users/587009/shaun
FragmentB fragmentB = (FragmentB)getFragmentManager().findFragmentById(R.id.fragmentBId); fragmentB.performSomeTask();
https://stackoverflow.com/a/5268639
runor49
https://stackoverflow.com/users/457536/runor49
[ 270675, 1197202, 3544616 ]
[ "https://github.com/siacs/Conversations/blob/46574d6e111a46790656d52476dc2a092c8b9109/src/main/java/eu/siacs/conversations/ui/ConversationsActivity.java#L612-L617", "https://github.com/rsiebert/TVHClient/blob/07195de720348b6b563da42e381d8b20a595c922/app/src/main/java/org/tvheadend/tvhclient/features/settings/SettingsActivity.java#L151-L156", "https://github.com/mnilg/android-topeka/blob/6e4088ba407c9ad9ed1dd93beb0301680c6cd0dc/topeka-ui/src/main/java/com/google/samples/apps/topeka/ui/activity/CategorySelectionActivity.java#L110-L115" ]
3,803,484
Moving from One activity to next in Android
https://stackoverflow.com/questions/3803484/moving-from-one-activity-to-next-in-android
Niamathsa
https://stackoverflow.com/users/459435/niamathsa
Intent goToNextActivity = new Intent(getApplicationContext(), YourNewClass.class); startActivity(goToNextActivity);
https://stackoverflow.com/a/3803500
Janusz
https://stackoverflow.com/users/114066/janusz
[ 619915, 619919, 619918 ]
[ "https://github.com/yangchaojiang/DemoLoadView/blob/5b833413962da856fecda8ca3d97386149bb9d2f/app/src/main/java/com/example/com/myapplication/MainActivity.java#L22-L24", "https://github.com/yangchaojiang/DemoLoadView/blob/5b833413962da856fecda8ca3d97386149bb9d2f/app/src/main/java/com/example/com/myapplication/MainActivity.java#L36-L38", "https://github.com/yangchaojiang/DemoLoadView/blob/5b833413962da856fecda8ca3d97386149bb9d2f/app/src/main/java/com/example/com/myapplication/MainActivity.java#L33-L35" ]
582,185
How to lock phone orientation in Android to prevent landscape mode
https://stackoverflow.com/questions/582185/disable-landscape-mode-in-android
lostInTransit
https://stackoverflow.com/users/46297/lostintransit
// This forces a vertical screen. setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
https://stackoverflow.com/a/3960369
Rich
https://stackoverflow.com/users/453989/rich
[ 3050192, 2305545, 3500166 ]
[ "https://github.com/zwping/PSeries/blob/13bb864528a1e926ca28776993ba0887e5d14f03/plib/src/main/java/win/zwping/plib/natives/utils/ScreenUtil.java#L133-L135", "https://github.com/xiebinJava/mvp-retrofit-rxjava/blob/a127af356ab6a169410e914682da737057acec08/app/src/main/java/com/xie/brad/myretrofit/utils/ActivityUtil.java#L54-L56", "https://github.com/wusir-china/WuWeather/blob/0475601fe4977176939b540ed4d9dd481d443e82/goldenlibrary/src/main/java/com/goldensoft/goldenlibrary/utils/GdDeviceTool.java#L849-L851" ]
37,672,833
Android M Light and Dark status bar programmatically - how to make it dark again?
https://stackoverflow.com/questions/37672833/android-m-light-and-dark-status-bar-programmatically-how-to-make-it-dark-again
udenfox
https://stackoverflow.com/users/3809678/udenfox
public static void clearLightStatusBar(@NonNull View view) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { int flags = view.getSystemUiVisibility(); flags &= ~View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR; view.setSystemUiVisibility(flags); } }
https://stackoverflow.com/a/39596725
Carlos Hernández Gil
https://stackoverflow.com/users/5033923/carlos-hern%c3%a1ndez-gil
[ 2027768, 874567, 619486 ]
[ "https://github.com/AndroidHardeningArchive/platform_frameworks_base/blob/a33c61cf9a7e88d9f8f1b5c290207ee5333484c7/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowManager.java#L118-L128", "https://github.com/jahirfiquitiva/IconShowcase/blob/f3fb90b8ded588e619b1d63bc592bf6821e331cc/library/src/main/java/jahirfiquitiva/iconshowcase/utilities/color/ToolbarColorizer.java#L292-L296", "https://github.com/yongjhih/android-proguards/blob/8ccee43b40a5b5cbf6dcbcfb35030b86f281b014/app/src/main/java/io/plaidapp/util/ViewUtils.java#L119-L125" ]
35,297,442
Drag & Drop Espresso
https://stackoverflow.com/questions/35297442/drag-drop-espresso
F1sher
https://stackoverflow.com/users/2375474/f1sher
public static ViewAction swipeUp() { return new GeneralSwipeAction(Swipe.FAST, GeneralLocation.BOTTOM_CENTER, GeneralLocation.TOP_CENTER, Press.FINGER); }
https://stackoverflow.com/a/35331578
blade
https://stackoverflow.com/users/1270534/blade
[ 3190738, 4625346, 83543 ]
[ "https://github.com/IamTechknow/Terraview/blob/a1d922af705814a6861dc9e33561f7893ba247b4/app/src/androidTest/java/com/iamtechknow/terraview/WorldActivityTest.java#L113-L115", "https://github.com/wzwietering/IntroductieProject/blob/2133ab4b910247e3ca126044616b0b80fe8d71f8/app/src/androidTest/java/com/edulectronics/tinycircuit/CircuitAdapterTest.java#L83-L86", "https://github.com/google/agera/blob/04045ccbf41ac5fc6806724127b33cbe0dda372c/samples/BasicSample/app/src/androidTest/java/com/example/android/agera/basicsample/MainActivityTest.java#L150-L153" ]
35,233,161
IllegalArgumentException: Could not locate call adapter for rx.Observable RxJava, Retrofit2
https://stackoverflow.com/questions/35233161/illegalargumentexception-could-not-locate-call-adapter-for-rx-observable-rxjava
Hemendra Sethi
https://stackoverflow.com/users/5890040/hemendra-sethi
Retrofit retrofit = new Retrofit.Builder() .baseUrl(endpoint) .addConverterFactory(GsonConverterFactory.create()) .addCallAdapterFactory(RxJavaCallAdapterFactory.create()) .build();
https://stackoverflow.com/a/35238185
Logain
https://stackoverflow.com/users/4103854/logain
[ 1282369, 4280165, 3144806 ]
[ "https://github.com/Qiu800820/Eva/blob/dff86f0fa4c5a7006b61ec593f60571315d78657/app/src/beta/java/com/pocoin/digimage/InjectionRepository.java#L29-L33", "https://github.com/ukakhmedoff/Hieronymus/blob/e6b0b459b5489d33274347ed5f0f11401c40e160/app/src/main/java/ru/snatcher/hieronymus/model/api/ApiTranslateModule.java#L29-L34", "https://github.com/vincenzo-petronio/JSONPlaceholderClient/blob/83606df58a0f977903898dbadd0aa22bd59cbcce/app/src/main/java/it/localhost/app/mobile/jsonplaceholderclient/data/RetrofitService.java#L13-L19" ]
34,950,411
glide force load cached image, don't care what resolution
https://stackoverflow.com/questions/34950411/glide-force-load-cached-image-dont-care-what-resolution
Boy
https://stackoverflow.com/users/969016/boy
Glide.with(mContext) .load(url) .diskCacheStrategy(DiskCacheStrategy.SOURCE) .into(imageView);
https://stackoverflow.com/a/34952034
ap6491
https://stackoverflow.com/users/3906969/ap6491
[ 584331, 2531848, 494526 ]
[ "https://github.com/h4de5ing/Moneta/blob/72f71a5e9bc7217d6f5ddbadaff859e79bafaf47/monetaui/src/main/java/com/code19/monetaui/utils/ImageLoaderUtils.java#L63-L65", "https://github.com/ZionLin2016/Moxo-Tech/blob/d3094e278a38344e6393bb3698de6344ce26fb34/app/src/main/java/com/closedevice/fastapp/util/ImageLoaderUtil.java#L15-L17", "https://github.com/GeekGhost/Ghost/blob/e7881429d80448387762d8e9ece391afd6baf7b0/app/src/main/java/com/zcy/ghost/vivideo/component/ImageLoader.java#L17-L19" ]
34,685,928
Token null Sign-in Google Account
https://stackoverflow.com/questions/34685928/token-null-sign-in-google-account
FlipNovid
https://stackoverflow.com/users/2034240/flipnovid
GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) .requestIdToken(getString(R.string.default_web_client_id)) .requestEmail() .build();
https://stackoverflow.com/a/42751241
Faisal
https://stackoverflow.com/users/3832396/faisal
[ 4485203, 3977368, 3482176 ]
[ "https://github.com/phoenixxt/VU_Pineapple/blob/b89dbf58f961174b97cf76933f21955b05eeb7f0/app/src/main/java/com/example/phoenixxt/vova_usachov_pineapple/LoginAndReg/FirebaseApi.java#L67-L72", "https://github.com/salihgueler/TriviaDuello/blob/97673bab2fd552b5bb4564158998140f39ae219f/app/src/main/java/com/iamsalih/triviaduello/onboarding/login/LoginPresenter.java#L95-L101", "https://github.com/raxden/android-core-omvp/blob/9570f5cf4d7495c9ae7a36124a72990d8bac1a5e/app/src/main/java/com/omvp/app/injector/module/GoogleModule.java#L20-L26" ]
33,048,945
Denied starting an intent without a user gesture Webview Android
https://stackoverflow.com/questions/33048945/denied-starting-an-intent-without-a-user-gesture-webview-android
Abdullah
https://stackoverflow.com/users/3280343/abdullah
webView.setWebViewClient(new WebViewClient() { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { return false; } });
https://stackoverflow.com/a/33264935
Wilber Paredes
https://stackoverflow.com/users/5472548/wilber-paredes
[ 3197904, 4470075, 4470076 ]
[ "https://github.com/deboajagbe/PopularMovie2/blob/3a691ed9e4c988dd396e52bc8e8ac72719e16261/app/src/main/java/com/unicornheight/popularmovie2/modules/details/DetailActivity.java#L158-L170", "https://github.com/Usman2661/Bletchley-Park-/blob/d1a01f89131a4a671090ee2b72d597ccd9270138/app/src/main/java/com/example/usman/bletcheypark/newPage.java#L11-L24", "https://github.com/Usman2661/Bletchley-Park-/blob/d1a01f89131a4a671090ee2b72d597ccd9270138/app/src/main/java/com/example/usman/bletcheypark/newsBletchley.java#L11-L25" ]
32,747,471
Check if RecyclerView is scrollable
https://stackoverflow.com/questions/32747471/check-if-recyclerview-is-scrollable
Sourabh
https://stackoverflow.com/users/1812633/sourabh
public boolean isRecyclerScrollable(RecyclerView recyclerView) { return recyclerView.computeHorizontalScrollRange() > recyclerView.getWidth() || recyclerView.computeVerticalScrollRange() > recyclerView.getHeight(); }
https://stackoverflow.com/a/32747674
Simas
https://stackoverflow.com/users/3249477/simas
[ 538714, 1006217, 489234 ]
[ "https://github.com/jaychang0917/SimpleRecyclerView/blob/fa9bfae534358560d9c7ee363ca1362d35d991ca/library/src/main/java/com/jaychang/srv/Utils.java#L57-L60", "https://github.com/open-android/BaseRecyclerAndAdapter/blob/e44fdcc204de3f36f9829c38cc88149ac3c57aa6/BaseRecyclerAndAdapter/src/main/java/org/itheima/recycler/header/RecyclerViewHeader.java#L252-L256", "https://github.com/blipinsk/RecyclerViewHeader/blob/2a0679f7abcb8cb94e3985272cf19bde90c6cbe4/library/src/main/java/com/bartoszlipinski/recyclerviewheader2/RecyclerViewHeader.java#L267-L271" ]