**** BEGIN LOGGING AT Sat Jun 04 02:59:58 2016 Jun 04 03:34:41 Napalm: sorry was gone for a bit but I'm back Jun 04 04:27:24 i have AppBarLayout with 2 children. When i View.GONE one of them, CoordinatorLayout still scrolls things the distance as if it was visible. How would I tell CL to recompute the scrollable distance ? Jun 04 05:12:57 yo guys , using this resource to : https://developer.android.com/guide/topics/resources/menu-resource.html (to create menu items in nav drawer) how can I set a menu group or item to the footer of the nav drawer ? Jun 04 05:14:10 can I just put a linear layout or relative in that menu resource? Jun 04 05:31:10 I'm looking for a good example of how to implement drag and drop items in a recyclerview Jun 04 07:38:33 guys, is there a callback to fragment when its removed from FragmentManager? Jun 04 07:40:29 does accessing the keyboard's dictation mechanism require the microphone permission? Jun 04 07:40:44 from say, an EditText Jun 04 08:07:25 How easy it is port C++ code into Android? i.e. would it need a lot of modification depending on its size? Jun 04 08:12:53 Hi. Trying to link a library in NDK and I'm getting error: cannot find -laalib.so I have chekced and the aalib.so file is in the standard library location along with all the other libraries. In the syntax is the same for aalib as all the other libraries in Android.mk http://pastebin.com/VemvYGnc Jun 04 08:14:29 Hi purplex88, I'm not the most experienced andrdoid ndk developer but porting it to the Android.mk make system should not be too hard. Jun 04 08:20:33 cinmay: I am guessing I'd only need to re-write GUI code Jun 04 08:21:50 purplex88, I don't do to much GUI stuff, sorry. But yes. Jun 04 08:22:57 cinmay, what do you mean "the library is in the standard library location"? Jun 04 08:24:06 Mavrik, The aalib.so file is in the system/lib/ directory along with all the other libraries. Jun 04 08:24:35 Is it compiled for the right architectures and you have the proper library search path set? Jun 04 08:25:45 Mavrik, I do belive so. I have tried commenting out some of the other libraries to provoke a similar error. I just can't see whats the difference between the other libs and this one. Jun 04 08:26:05 Also, why did you include the .so extenstion? Jun 04 08:26:19 You don't add the lib prefix or so extension when specifying the library to link against. Jun 04 08:29:33 Mavrik, I thougt I didn't LOCAL_SHARED_LIBRARIES := \ Jun 04 08:29:33 aalib \ Jun 04 08:29:33 libgphoto2 \ Jun 04 08:31:36 The aalib is old roten code that hasn't been updated since 2001. It's only patched up in modern distributions and I only use it because of dependencies Jun 04 08:36:31 Well that's what you pasted in the error message :) Jun 04 08:36:43 Use V=1 ndk-build to see what's actually being executed. Jun 04 08:38:05 Ops. my bad: prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/x86_64-linux-android/bin/ld: error: cannot find -laalib.so Jun 04 08:51:53 Mavrik, I think Ill just skip the gphoto app. I was planin to use it just for testing. I only need libgphto2 and that compiles fine. Jun 04 09:54:10 hi there, anyone have s Jun 04 09:54:44 *have used account manager with not async loader but with rx and retrofit ? Jun 04 12:34:30 Hi all! Its been a long while, so Im playing catch up! Jun 04 12:35:07 Is there any examples out there for designing a card view? I know what I want - Ill try and find an example. Jun 04 12:36:34 I want one with a header bar. Jun 04 12:52:05 use CardView from support, and add header in your xml Jun 04 13:07:11 How can I change the apk name? it shows up as "app.debug.apk" I want to be same as project name like "HelloWorld.apk" Jun 04 13:07:26 purplex88, modify the build.gradle file Jun 04 13:08:14 Ah, I don't see anything relevant to apk name in that file Jun 04 13:09:10 you migh have to add the line, I've seen that if you add ext { archivesBaseName = 'apkname' } it works Jun 04 13:10:57 but where its confusing? Jun 04 13:13:29 anywhere except inside of another block, and except on the top of the page if there are apply lines Jun 04 13:14:54 using Android Studio 2.1.1 now, in eclipse it gets named automatically Jun 04 13:15:28 purplex88: i can tell you how Jun 04 13:15:59 purplex88: open your build.gradle for your app module. find the defaultConfig section. add this line. Jun 04 13:16:14 archivesBaseName = "myproject-${versionName}" Jun 04 13:16:19 for instance Jun 04 13:16:39 and that will name the file "myproject-1.0-debug.apk" Jun 04 13:22:37 Someone knows how can I get a viewpager to show fragments that change in kind, position and number while still saving state? Jun 04 13:23:01 Napalm: it worked but it doesn't give it current project's name Jun 04 13:23:09 I'm playing with the FragmentStatePagerAdapter to add the fragments but I don't get the behavior I want Jun 04 13:23:26 i think i need to type it manually, nvm Jun 04 13:24:33 Adyrhan: https://developer.android.com/reference/android/support/v4/view/PagerAdapter.html#getItemPosition(java.lang.Object) Jun 04 13:25:09 Napalm, already tried the POSITION_NONE value there, but no luck Jun 04 13:25:24 when I add another fragment, it gets the state of the one that I removed before Jun 04 13:25:41 so for the same position, it gets always the same state restored Jun 04 13:26:08 Adyrhan: create your own pager adapter Jun 04 13:26:51 if I do that, for what I've read I'll end up writing my own viewpager too Jun 04 13:27:01 I'd like to avoid that Jun 04 13:27:04 no you dont Jun 04 13:27:07 Adyrhan: https://github.com/android/platform_frameworks_support/blob/master/v4/java/android/support/v4/app/FragmentStatePagerAdapter.java Jun 04 13:27:43 Hey, I'm wanting to create a popup preview effect when the user long presses an image in a grid view. THe popup will last until the user lifts their finger. What's the best way to implement these temporary popups? Jun 04 13:28:34 SupaHam: https://developer.android.com/reference/android/widget/PopupWindow.html Jun 04 13:28:43 SupaHam: https://developer.android.com/reference/android/view/View.OnTouchListener.html Jun 04 13:29:13 Neat, thanks. Jun 04 13:30:50 Napalm, I already created a version of that pageradapter, I saw the mSavedStates field and tried to remove the state for the position that I removed the fragment with no luck. Jun 04 13:31:44 Adyrhan: well thats the way you do it and i've done it before. so your not trying hard enough Jun 04 13:32:29 Napalm, I guess you don't know either why it doesn't work xD I'm with the same problem since yesterday. I'll keep looking. Thx anyway Jun 04 13:33:24 It doesn't work because you're doing it wrong. Noone can help you with what you're doing wrong without knowing what you're doing Jun 04 13:33:41 hey VT Jun 04 13:33:44 how goes Jun 04 13:35:11 SimonVT, I'm sure I'm doing it wrong. But neither you nor Napalm knows why what I do is wrong. So it is not helpful. I'm sorry. Jun 04 13:35:38 That was the long way of saying paste some code already Jun 04 13:35:57 Adyrhan: also, how about you explain exactly what your trying to do. Jun 04 13:36:13 Adyrhan: also, use pastebin or somethign Jun 04 13:36:19 I did already and I can paste code happily. Jun 04 13:38:57 Adyrhan: how about you try again Jun 04 13:40:21 Isn't Android Studio slower than Eclipse? Jun 04 13:40:55 Ok, I've seen ViewPager and the FragmentStatePagerAdapter works well for fragments that are either static or that for the same position you have the same fragment. Now what I want. Jun 04 13:42:12 Is that no matter the position or the kind of fragment (type) I want that I can show an arbitrary number of fragments at runtime, and that the state is only restored when the activity needs to do its lifecycle thing. Jun 04 13:42:16 Another way of saying it Jun 04 13:42:24 when I remove one fragment at runtime Jun 04 13:42:29 lets say it was at position 2 Jun 04 13:42:54 if I add another and it takes its position I DONT want the state of the older one to load for the new one. Jun 04 13:43:23 and now the code, the things I've done for the pager adapter that don't work are marked with a comment as such Jun 04 13:43:35 http://pastebin.com/6GgDY0Zd Jun 04 13:43:51 http://pastebin.com/dL3Wxe5L Jun 04 13:45:20 It doesn't give me snapshot options for emulator like eclipse does so everytime it takes a while to start.. Jun 04 13:46:50 purplex88: Android Studio is normally faster. You probably have something miss-configured. Jun 04 13:46:55 You need to return the items actual position from getItemPosition.. And when you remove an item (As in, return POSITION_NONE), destroyItem is called. In that case you don't want to then save its state Jun 04 13:47:36 Napalm: I think its already using virtualization and HAXM Jun 04 13:48:29 purplex88: suggest you watch these https://www.youtube.com/watch?v=hHnTIMjd1Y8 https://www.youtube.com/watch?v=Y2GC6P5hPeA Jun 04 13:51:21 SimonVT, ohh I see I read wrong the doc for that method. I thought it said it either returns POSITION_UNCHANGED or POSITION_NONE. That changes things Jun 04 13:52:01 You can return the position, POSITION_UNCHANGED or POSITION_NONE Jun 04 13:52:28 Napalm: I will take a look. I am still learning the basics Jun 04 13:52:43 May or may not have moved, is in the right place, no longer exists Jun 04 13:52:52 You can see in ViewPager hos it handles each of them Jun 04 13:54:30 yeah that changes things, let me try implementing that method properly and I'll tell you what I get. Thanks a lot! Jun 04 14:02:06 SimonVT: ever played with limiting input on a EditText with custom InputFilters? Jun 04 14:04:18 Yeah, a bit Jun 04 14:05:15 Just simple things, like disallowing single chars Jun 04 14:05:57 yea, its annoying to do more complex things Jun 04 14:06:11 the filter method is a pain the butt.. trying to figure out how to limit text to 3 words and each word has a limited length Jun 04 14:07:03 want the user to have the freedom to paste text and use suggestions from the keyboard. also doesnt help that keyboards tend to do weird things. Jun 04 14:07:47 I just iterated through the entire string and removed stuff I didn't like Jun 04 14:08:14 yea, its just not that simple. Jun 04 14:08:23 i wish you could just put a mask on an edittext Jun 04 14:21:08 HI all - me again - Jun 04 14:21:31 playing audio and video files in Android ... any tips Jun 04 14:23:39 Guest7530: depends on what your trying to do Jun 04 14:24:42 Napalm: 2 scenarios - 1 -> i have some files that are ONLINE want to play them Jun 04 14:25:12 Napalm: 2 scenarios - 2 -> these same files get downloaded to the local device and want to play it off the local file Jun 04 14:27:45 SimonVT, it seems destroyItem also gets called by ViewPager when you move to a page that is 2 pages away from the current one Jun 04 14:27:56 fels: MediaPlayer class will work fine. just mind you wrap your calls to catch the IllegalStateException's it throws Jun 04 14:28:16 Napalm: will this workd for video as well ? Jun 04 14:28:27 fels: yes Jun 04 14:28:43 fels: you call setSurface or setDisplay Jun 04 14:29:05 fels: I suggest you use a TextureView instead of SurfaceView that all the guides show you. Jun 04 14:29:26 Say I have two Fragments of the same type within a layout. Do I need to do anything clever with the saving of states in a Bundle to ensure the two Fragment instances do not use the same keys? Jun 04 14:29:36 Napalm: thank you thats a bit over my head - but I'll be back to bug you about it Jun 04 14:29:37 fels: once you get the SurfaceTexture in the callback on TextureView call mediaPlayer.setSurface(new Surface(surfaceTexture)); Jun 04 14:30:03 fels: if you want a simple way use VideoView.. but its only basic and probably wont provide you with what you want. Jun 04 14:30:11 Adyrhan: thats the default behaviour. Jun 04 14:30:37 Adyrhan: https://developer.android.com/reference/android/support/v4/view/ViewPager.html#setOffscreenPageLimit(int) Jun 04 14:30:39 check that Jun 04 14:30:41 Napalm: actually I want the very basic right now - show video file and palay audio thats it Jun 04 14:30:55 fels: VideoView will do both Jun 04 14:31:20 fels: https://developer.android.com/reference/android/widget/VideoView.html and https://developer.android.com/reference/android/widget/MediaController.html for the controls Jun 04 14:31:50 Napalm: I havea scree with text and images on it wnat to play audio while use is still reading that text - and seeing those images Jun 04 14:32:01 fels: you call VideoView.setMediaController to link them together Jun 04 14:32:16 fels: sounds like you just want a MediaPlayer Jun 04 14:32:47 Napalm: I think I'll try that (media player first) - and come back with issues are you about for awhile ? Jun 04 14:32:55 fels: audio and video on Android is a complex topic Jun 04 14:33:01 fels: yea, im about Jun 04 14:33:08 Napalm: thank you Jun 04 14:33:33 Napalm: I'm looking for simplist in coding :) Jun 04 14:33:50 fels: there is no simple when it comes to AV Jun 04 14:33:59 Napalm: let me rephrase - I'm 'looking for basic :) so stuff the 8 year olds using :) Jun 04 14:35:13 Napalm, I'll do thanks Jun 04 14:40:01 Napalm: there's this > mp = MediaPlayer.create(this, resId); <-- from an example vs mp.setDataSource(path + File.separator + fileName); ...then caling start ? Jun 04 14:43:19 fels: read the docs Jun 04 14:43:32 fels: https://developer.android.com/reference/android/media/MediaPlayer.html Jun 04 14:43:40 theres more too it Jun 04 14:44:16 Napalm: Wow .. thanks for opening the Rabbit holw :) Jun 04 14:44:18 fels: you have to set set data source and a onprepared callback then call prepareAsync.. your callback can then call mp.start Jun 04 14:45:08 fels: https://developer.android.com/guide/topics/media/mediaplayer.html < maybe read the guide first Jun 04 14:55:26 Napalm: so I wrapped the Media player > http://pastebin.com/CuzH7KeK that should work Jun 04 14:58:01 its a start Jun 04 14:58:53 Napalm: I'll keep it simple for now - then grow it as needed - lets see if it plays audio first :) Jun 04 14:59:07 i see a few bugs in that Jun 04 14:59:40 Oh Napalm where ? Jun 04 15:01:01 well everything Jun 04 15:01:22 arrrgg.. crap Jun 04 15:01:46 ok first off.. this.appContext = appContext.getApplicationContext(); to ensure your actually using the app context Jun 04 15:02:14 arg.. well theres no point going through everything here Jun 04 15:02:25 hey, is there a way for me to debug an app via adb over wifi? my device isn't rooted, although i suppose i could (it's a nexus 5x) Jun 04 15:02:39 even though that would be passed in - Napalm Jun 04 15:02:45 i just don't have the usb-c to ordinary usb cable on hand Jun 04 15:02:55 diphtherial: https://play.google.com/store/apps/details?id=com.ttxapps.wifiadb Jun 04 15:03:19 Napalm: aha, thanks. i should probably have just searched for "wifi adb" in retrospect Jun 04 15:03:48 good morning Napalm Jun 04 15:03:58 i love the smell of napalm in the morning Jun 04 15:04:00 g00s: morning Jun 04 15:04:10 does anyone know of a good, custom OSS share dialog? i'm trying to do supply custom text for each network without having to roll my own dialog Jun 04 15:04:11 diphtherial: thats been run to death here Jun 04 15:04:15 but appreciated Jun 04 15:04:16 Napalm: my apologies Jun 04 15:04:20 lol Jun 04 15:10:29 Napalm question; I have a CoordinatorLayout with an AppBarLayout with 2 children. When I hide one of the children, its like the whole setup ignores that AppBarLayout size has changed and scrolls wrong Jun 04 15:10:38 do you know how to fix this? Jun 04 15:20:23 fels: http://pastebin.com/Ab3pQeLx < thar you go Jun 04 15:21:40 Napalm: Wow that looks vastly different from mine - thank you - Jun 04 15:22:20 fels: just call play() where you need to and then, release() when you want to stop and make sure you call release in your onStop or at least in onDestory of your activity Jun 04 15:22:28 *Destroy Jun 04 15:23:57 Napalm: thank you - will this support both URL and local ? Jun 04 15:24:10 look at the play methods.. open your eyes Jun 04 15:24:27 public void play(File localFile) public void play(String mediaPath) Jun 04 15:25:01 * Mavrik hugs Napalm. Jun 04 15:25:12 Napalm: thanks man Jun 04 15:25:31 * Napalm looks at Mavrik confused. what have I done to earn that? Jun 04 15:25:47 Dealing with such questions :) Jun 04 15:25:58 yea, well its your turn next :D Jun 04 15:26:29 I'm not a nice enough person :P Jun 04 15:26:35 lies Jun 04 15:27:44 I've been thinking about making a mediaPlayer system that wraps up all this stuff in a nice way. Jun 04 15:28:21 especially when it comes to linking up media player with UI and TextureView and also surviving a Activity configuration change. Jun 04 15:28:44 Napalm: that would be awesome Jun 04 15:28:45 litterally all the projects I've seen that do video playback do that wrong Jun 04 15:49:58 Does anyone know what good cloud service i can use for my backup my projects? Jun 04 15:50:49 I hope someone can help me:) Jun 04 15:51:26 have you tried github already? Jun 04 15:52:12 i don't think so. Jun 04 15:52:25 Can you use that private? Jun 04 15:53:05 cloud? private? uh, yeah - as far as it goes, anyway. Jun 04 15:53:34 they even have a website with more info - see https://github.com Jun 04 15:53:45 tm604,I worry people will see my project before it goes online:) Jun 04 15:53:49 perlsyntax: no you cant Jun 04 15:54:03 perlsyntax: get some space at gandi.net Jun 04 15:54:09 thanks all Jun 04 15:54:13 its like 5$ a month Jun 04 15:54:16 10gb Jun 04 15:54:22 and server Jun 04 15:54:25 great Jun 04 15:54:38 perlsyntax: its called simplehosting Jun 04 15:55:01 rocket__,Sorry i just new to this. Jun 04 15:55:10 its totally ok Jun 04 15:55:13 dont worry Jun 04 15:55:17 this is a good question Jun 04 15:55:22 perlsyntax: you can have private repos on github Jun 04 15:55:27 you can have there a git server perlsyntax Jun 04 15:55:34 and webserver Jun 04 15:55:37 and what you like Jun 04 15:55:39 i didn't know that. Jun 04 15:55:41 its quite good for the price Jun 04 15:55:50 perlsyntax: you have to pay for private gits Jun 04 15:56:00 It better then a usb drive. Jun 04 15:56:06 at github Jun 04 15:56:16 rocket__, i didn't know that. Jun 04 15:56:18 if you just want a backup use an external drive Jun 04 15:56:32 or setup a small linux server Jun 04 15:56:36 cheapest is external drive Jun 04 15:57:22 i wish i can get one my mother won't let me.So that why i was looking into cloud backups. Jun 04 15:58:21 rocket__,Long story Jun 04 15:58:36 lol Jun 04 15:58:39 why? Jun 04 15:58:49 now you made me curious Jun 04 15:58:54 use and usb stick Jun 04 15:59:00 how about you take this conversation private :P Jun 04 15:59:01 thats easy and you can carry it all with you Jun 04 15:59:09 i know Jun 04 15:59:11 Napalm: why? Jun 04 15:59:33 rocket,Github not a bad deal. Jun 04 15:59:46 sure its great Jun 04 15:59:55 rocket__I start to like github aht about bitbucket? Jun 04 16:00:06 sorry for the typeing. Jun 04 16:00:19 perlsyntax: see #github if you have further questions Jun 04 16:00:45 Sorry for the trouble. Jun 04 16:02:02 tm604.Sorry Jun 04 16:03:10 What everyone up to? Jun 04 16:07:51 Hey guys, I have a question. I am pondering idea of to do hide and seek type game with some friends, and we can track each other based on GPS, and I wa curious is there a way to have multiple gps dots on a google map view? Would I need to create separate thread for each GPS user? Jun 04 16:09:30 the maps API allows you to overlay markers, yes - see the documentation for details. No threads required. Jun 04 16:10:37 Demon_Jester: they are just Marker's Jun 04 16:11:21 Demon_Jester: you then give each marker an icon which can be a "dot" graphic Jun 04 16:11:27 ok markers, ok i will look into it. Jun 04 16:11:32 Thank you. Jun 04 16:11:39 google used to have an app like that Jun 04 16:11:52 can't remember what it was called, had your friends on a map Jun 04 16:12:18 probably your biggest challenge will be defeating battery optimizations Jun 04 16:13:03 hey g00s Jun 04 16:13:17 hi perlsyntax Jun 04 16:14:16 oh yeah, google lattitude Jun 04 16:14:52 :) Jun 04 16:51:52 I just use Glympse Jun 04 17:14:40 Android Studio seems to have forgotten about android.support.v4.app.Fragment, can't import it at all :S? Jun 04 17:15:11 you may have added it to exclude from suggestions Jun 04 17:15:17 or maybe its not on classpath Jun 04 17:18:19 have you added it to gradle? Jun 04 17:20:34 yeah Jun 04 17:21:03 compile "com.android.support:support-v4:${supportLibVersion}" Jun 04 17:21:28 can it see other class in support package ? Jun 04 17:21:36 g00s, it was working earlier :S Jun 04 17:21:50 g00s, nope Jun 04 17:22:09 oh well, try gradle refresh, invalidate caches, restart, etc Jun 04 17:23:05 g00s, where do i find the excluded suggestions :S? Jun 04 17:25:16 i think i may give up and git clean :-( Jun 04 17:26:38 https://xkcd.com/1597/ Jun 04 17:59:07 Napalm: that media class you did worked straight off for URL files - thanks man - trying the local files in a while - Thank you so much Jun 04 17:59:20 np Jun 04 18:07:39 who's familiar with Trello? Jun 04 18:07:56 I'm trying to create a list of lists, where you can drag items around Jun 04 18:08:10 so you can change its location within one list, or move it to a different list Jun 04 18:10:40 anyway, I was able to implement draggable items in one RecyclerView. now I just have to extend this to several RecyclerViews (maybe) Jun 04 18:45:17 is there still no working way to hide an view / notify listener when keyboard comes up?? Nothing works.. Jun 04 18:49:35 wtf is a "com.android.dex.DexIndexOverflowException" Jun 04 18:49:40 can someone explain in less than 200 sentences Jun 04 18:50:16 i get the exception after installing a cordova chartboost plugin Jun 04 18:51:56 Napalm: the f..kin... local file works too :) Thanks man.. will this work with video too :) Jun 04 18:52:23 pulse um, i think that means you need multidex, your app is too bloated Jun 04 18:52:45 it has 100 lines of code and 3 plugins ;_; Jun 04 18:52:57 fels: no reason why not.. just add a method to set/unset the surface for the MediaPlayer Jun 04 18:52:58 yeah but cordova :) Jun 04 18:53:03 yeah Jun 04 18:53:09 i think i hate phonegap Jun 04 18:53:14 anyhow this is native app dev, try #cordova Jun 04 18:53:27 chairs usually come with more docs than phonegap Jun 04 18:53:29 nobody uses / cares about those js things here :P Jun 04 18:53:32 g00s, tnx Jun 04 18:53:37 gdev: you can check the bottom window margin Jun 04 18:53:43 pulse: why - pulse use IOnic its far more comformatble to use Jun 04 18:53:50 gdev: i mean window inset Jun 04 18:54:02 fels, i might Jun 04 18:54:46 Napalm: Tried everything listed on Stackoverflow, be it SoftKeyboard, GlobalLayoutListener (margins(.. nothing works^^ Jun 04 18:55:24 gdev: then you didnt set your soft input window attributes correct on your activity Jun 04 18:55:57 gdev: https://developer.android.com/guide/topics/manifest/activity-element.html#wsoft Jun 04 18:56:36 I did Jun 04 18:56:41 pulse - i released a local flights app on it + a fastdfood ordering platform + local bus app + Jun 04 18:57:10 can it build a standalone release? Jun 04 18:57:16 pulse: if you know angular its really easy to get up and running Jun 04 18:57:23 i'm not familiar with angular Jun 04 18:57:25 pulse: what do you mean? Jun 04 18:57:32 fels, can i export an apk with it Jun 04 18:57:49 @Napalm Jun 04 18:57:50 crosswalk looks nice too Jun 04 18:57:52 and has sane docs Jun 04 18:59:57 pulse: the PM has links - those were on ionic - except 1 Jun 04 19:01:27 pulse: you build your target you want - ipa apk etc Jun 04 19:05:23 Napalm: exactly set the same options Jun 04 19:09:08 fels, tnx, i'll check it out Jun 04 19:11:56 can i stop windows in view from change while running debug? e.g. I want to view logcat window in "Android Monitor" but everytime I press F9 to resume the window switches to "Debug" Jun 04 19:18:39 why the f does google play services come with over 20k methods Jun 04 19:18:54 Nvm i made it floating window Jun 04 19:19:33 pulse just grab the sub-packages you need, not the top level Jun 04 19:20:02 i have no idea what the plugin uses :p Jun 04 19:20:07 i made it work now, somehow Jun 04 19:20:10 i enabled multidex Jun 04 19:20:20 lol Jun 04 19:20:23 :D Jun 04 19:20:49 i don't even care, as long as the client is happy i'm ok Jun 04 19:20:51 :p Jun 04 19:21:14 i wouldn't even use these stupid plugins Jun 04 19:29:16 Is using SharedPreferences to persist data between Fragments a bad idea? I was using Bundle previously to pass data around but SharedPreferences seems like a much easier option for my use case Jun 04 19:29:23 Are there any disadvantages? Jun 04 20:10:03 I'm trying to create a list of lists, where you can drag items around Jun 04 20:10:15 I was able to implement draggable items in one RecyclerView. now I just have to extend this to several RecyclerViews (maybe) Jun 04 20:10:24 uh, any tips? Jun 04 20:34:19 do debug apks have all permissions enabled by default? Jun 04 20:41:22 no Jun 04 20:41:37 engineering does i think Jun 04 20:42:29 i don't understand that but i figured it out Jun 04 20:42:45 ok Jun 04 20:42:54 phonegap debug build has an xml hidden somewhere deep in the maze-like folder structure it creates Jun 04 20:43:00 which clearly enables all features Jun 04 20:43:04 so that explains it Jun 04 20:50:20 anyone in here familiar with robolectric? having an issue with one of their shadow objects Jun 04 20:50:50 RustyShackleford: Have you looked into FastAdapter library? Jun 04 20:51:06 I use that for all my RecyclerViews now, it's fantastic (takes a while to get used to though) Jun 04 20:51:18 https://github.com/mikepenz/FastAdapter Jun 04 20:51:28 Check out the sample app, it's great Jun 04 20:51:59 hm i'll take a look Jun 04 20:52:52 I'm just trying to write a unit test that my Menu is inflating and showing the right values in my activity. I've tried both Robolectric.buildActivity and setupActivity. Both return a valid object, but when I then try to get that activities Menu using shadowOf(activity).getOptionsMenu(), it's coming back null every time Jun 04 20:53:49 liuwenhao, that does look pretty awesome. I'll have to try it Jun 04 20:56:12 Yeah, the guy who made it has some fantastic other libraries (MaterialDrawer for example) Jun 04 20:56:18 love his stuff Jun 04 21:04:50 does anyone know of a good, custom OSS share dialog? i'm trying to do supply custom text for each network without having to roll my own dialog Jun 04 21:26:12 #join libgdx Jun 04 21:26:38 Is it possible to have a fragment beneath an activity with a FloatingActionButton? I can't seem to make my fragment visible... Jun 04 21:26:49 Its been far too long... Jun 04 21:27:11 WHy do you have both dpi groups and size groups? shouldnt they be both at the same time? like large_screen__low_dpi and large_screen__high_dpi? Jun 04 21:39:16 Ignore me, I was being a retard as per usual and not instantiating my adapter... Jun 04 21:46:31 anthaas double-check your layout height/width's on the activity layout views. Most of the time when I run into similar problems it's because I accidentally used match parent somewhere I shouldnt've Jun 04 21:47:58 Nah, I got it - I was being a dumbass. Jun 04 21:48:36 called RecyclerView.setAdapter(MyAdapter adapter) without actually instantiating adapter... Jun 04 21:48:41 (i.e. calling new) Jun 04 21:50:15 Haha, I do that all the time on accident Jun 04 21:54:02 WHy do you have both dpi groups and size groups? shouldnt they be both at the same time? like large_screen__low_dpi and large_screen__high_dpi? Jun 04 21:58:47 no? Jun 04 22:00:11 Why would they be? Jun 04 22:07:44 Mavrik: well it depends on both right? Jun 04 22:08:22 What depends on both? :) Jun 04 22:08:39 dfd: a large screen is say 9 inches Jun 04 22:08:51 dfd: low DPI could be 1280x720 Jun 04 22:08:59 Also size classes are pretty much obsolete, since devices are now sized in several intermediate sizes that don't fully correspond to the classes. Jun 04 22:09:02 dfd: high DPI could be 2560x1440 Jun 04 22:09:15 Yes, there are 800x600 10" tablets that are mdpi Jun 04 22:09:27 And retina 10" tablets that are xhdpi :) Jun 04 22:09:34 And both are technically xlarge :) Jun 04 22:09:46 xxxhdpi 3 inch phone ;) Jun 04 22:09:49 yes but i could end up on a big screen, small denisty theorhetically Jun 04 22:09:53 Or is 800x600 ldpi? Jun 04 22:09:59 dfd: yes Jun 04 22:10:14 Mavrik: is ldpi greater than mdpi? Jun 04 22:10:24 nop, ldpi is 0.75 Jun 04 22:10:27 ah Jun 04 22:10:35 then I don't think it is ldpi Jun 04 22:10:39 I think it's mdpi Jun 04 22:11:07 dfd, you still haven't given the context for your question. Jun 04 22:11:09 idk tho Jun 04 22:11:26 You're asking "something" without giving us the context on what you're looking at / actually wanting to know. Jun 04 22:12:31 I have backgrounds, buttons etc and i want to publish on as many android phones as possible Jun 04 22:12:47 i also want different fonts for different screens Jun 04 22:12:54 and i am not sure how to solve it Jun 04 22:13:07 i get you have the swdp but that is just density Jun 04 22:13:15 no, that's size Jun 04 22:13:22 that's size Jun 04 22:13:22 not all densities want the same png Jun 04 22:13:27 yes. Jun 04 22:13:35 You provide bitmaps for DENSITIES not sizes. Jun 04 22:13:35 dp is density independent pixel Jun 04 22:13:37 ok so that s size but then you have desnity separately Jun 04 22:13:43 dpi is density Jun 04 22:13:48 dots per inch Jun 04 22:14:07 dfd, if you designed your app properly, you defined image sizes in "dp" units on screen. Jun 04 22:14:10 i registered/paid for a gogole/android developer account about a year or so ago... i havnt released any apps yet on it.... i would like to change the google account for my apps.... the best way for me is to simply close/cancel my current google account and then register and pay a new one? will i get refunded the fee from the old one Jun 04 22:14:27 dfd, so you provide bitmaps only for different densities (mdpi/hdpi/xhdpi/xxhdpi) Jun 04 22:15:15 Sizes (swNdp) are used for laying out different UIs on different devices and will usually use same pngs for different sizes. Jun 04 22:15:28 A 48dp icon is a 48dp icon no matter if you're on a phone or a tablet. Jun 04 22:56:03 hi there, how can I customize an android wear notification? Jun 04 22:56:22 from what I see from the docs I've to create the notification in my code Jun 04 22:56:43 but I should in some way "intercept" the notification, right? otherwise wear would still show the default one Jun 04 23:28:59 I wish I had an original idea for an android app Jun 04 23:29:08 all my projects have been things that were already done before :/ Jun 04 23:30:38 ideas are cheap, implementation is hard Jun 04 23:33:24 RustyShackleford may i recommend a perspective shift :) think of the problem first, then the tech. which may be android. or not. but if you think 'what original app can i make' - almost everything under the sun is done Jun 04 23:34:38 adq god damn it, my AS autocomplete in XML is totally fucking useless half the time Jun 04 23:34:49 welcome to 2015 Jun 04 23:35:11 i don't know what the hell i'm doing, but it seems most often (1) support lib things and / or (2) root level elements Jun 04 23:36:16 but when even android:layout_wi ... doesn't work, something is bad Jun 04 23:36:28 i type it out myself and the app runs, something with AS Jun 04 23:38:08 adq, I agree but an original idea is difficult to come by Jun 04 23:38:38 I'm thinking about a driving mode interface Jun 04 23:38:43 i will give you one, because i haven't seen it and because ideas are cheap, however the implementation will not be easy. Please ping me if you implement it Jun 04 23:38:44 good ideas tend to be wicked problems or at the intersection of several problem areas Jun 04 23:38:54 that makes your phone easier to use while keeping your eyes on the road Jun 04 23:40:11 RustyShackleford, make a prediction sms/call app based on stats against previous calls & sms received. The idea is, you know you will be called at 95% by your partner because it's 11:55 like every saturday for whatever reason your partner always call you in public transport this day near this hour Jun 04 23:40:12 etc Jun 04 23:40:44 next step is to auto-plan action without doing anything when the threshold is extremely high and of course, if it happens Jun 04 23:42:02 bonus you can plot chart & data with redondant patterns/actors, like your friend X is always calling you just before the weekend, etc Jun 04 23:42:15 neat idea but I don't see myself needing that Jun 04 23:42:51 projects are more fun when they are useful to you Jun 04 23:42:55 lol Jun 04 23:42:55 or they make a lot of money Jun 04 23:49:57 lol adq , plot friends on chart :D Jun 04 23:50:08 we have a true geek here Jun 04 23:50:09 before they plot you Jun 04 23:50:13 :D Jun 04 23:50:30 man, everyone has so many patterns Jun 04 23:50:51 except my dog's bowl movements ... Jun 04 23:50:56 pff Jun 04 23:51:00 ridiculous entropy i'm pretty sure Jun 04 23:51:02 which i am still trying to divine :D Jun 04 23:51:16 * g00s creating dataset Jun 04 23:51:39 don't make a PRNG from your dog's bowl Jun 04 23:51:50 ppl will predict the output! Jun 04 23:52:26 i think its perfect random :) Jun 04 23:57:01 Hey, is anyone able to provide me with some guides about how dialog and layout params work together? Jun 05 00:01:43 just ask something more specific or describe your problem SupaHam, if someone knows and is willing to assist you will get help Jun 05 00:03:16 https://gist.github.com/hk0i/d061e8dc207001a6c89f8555c229989c can anyone help? I tried to switch to a newer gradle plugin because the IDE popped up something and I'm having issues getting my project to sync Jun 05 00:03:34 it's showing "could not find com.blahblah.gradle:2.1.1" Jun 05 00:03:36 Sorry: I have a CardView inside a PopupWindow. The problem is that, by default, this CardView (for some reason) is at a very tall height. I tried setting it's layout param height to WRAP_CONTENT, but it's still very tall and the only ImageView content is very tiny (50dp) Jun 05 00:03:58 grekkos, there is not 2.1.1 Jun 05 00:04:07 grekkos, https://jcenter.bintray.com/com/android/tools/build/gradle/ < check all versions here Jun 05 00:04:08 ah PopupWindow is a pain in the ass Jun 05 00:04:32 :/ Is there better features available? Jun 05 00:04:34 oh thanks adq Jun 05 00:04:43 I probably read some outdated upgrade instructions Jun 05 00:05:43 What I'm achieving with this feature is the ability to long press an image and have it temporary expand that image up to the screen. If you've ever used instagram, you might know the feature from there. Jun 05 00:06:06 SupaHam, maybe you should better set the width and the height of your popupwindow and make your cardview inside it matching its parent (the popupwindow) via MATCH_PARENT Jun 05 00:07:01 g00s, never had any issue with popupwindow, except you cannot put a surfaceview inside it and a little trick if you change the animation Jun 05 00:07:03 I'll try that out. Jun 05 00:08:44 adq i couldn't get things like Spinners to work there either Jun 05 00:09:10 because it shows its own PopupWindow ... Jun 05 00:09:14 lol Jun 05 00:09:21 did not try that Jun 05 00:09:55 so things like ListPopupWindow etc won't work either Jun 05 00:10:02 yeah well thought out :P Jun 05 00:11:21 So it does work, however I'm not entirely happy with this approach. I currently have to figure out exact dimensions and account for all the inside components that will make up the CardView. Jun 05 00:11:56 I try to set the PopupWindow height to WRAP_CONTENT, but it just doesn't obey, it expands so much higher Jun 05 00:12:07 almost like a padding effect or something (which i have not specified at all) Jun 05 00:13:44 do you inflate your own xml layout inside it? Jun 05 00:14:39 It's all done programatically. So I don't actually use inflate, however i construct the PopupView instance with the Activity instance Jun 05 00:15:27 hum ok, well maybe try to inspect your popupwindow layout when it runs, you will figure it out Jun 05 00:15:29 It's written in Kotlin so you might not be too familiar with it: https://gist.github.com/SupaHam/184cd492481f17b0e6d173d79f81f4c5 Jun 05 00:18:47 is there a way to check which app launched an intent to start my app? Jun 05 00:26:43 That's interesting.... If I wrap everything in a relative layout, i seem to be able to control things more, i'll update you when i have it fixed to my liking Jun 05 00:37:50 if anyones used both pusher and pubnub, mind posting your thoughts on both? Jun 05 00:49:54 Hello all, if i'm in MainActivity and start Intent to (SecondMainActivity), to go back to MainActivity i use again Intent, or it's still opened in background? Jun 05 00:51:37 You can call finish Jun 05 00:51:42 or intent Jun 05 00:51:51 or do startActivityForResult depending on wha tu need Jun 05 00:51:54 what u* Jun 05 00:55:12 Ummh, I'm not returning any results. just opening activity and closing. Jun 05 00:55:25 Hi g00s! Jun 05 00:55:28 My question if i startActivity() does the old activity will be still alive? Jun 05 00:55:36 or it's gonna die once i've called startActivity() ? Jun 05 00:55:36 hi Anthaas Jun 05 00:55:42 Im back! For a bit longer this time! Haha - the missus has asked me to whack some app together for her business. Jun 05 00:55:52 Android went and got...different! Jun 05 00:55:55 whack it good ! Jun 05 00:56:33 Looking into using a SyncAdapter to synchronise data between a server and 2 devices - sound right? Jun 05 00:56:45 i think thats out of fashion Jun 05 00:56:54 >.< Im so far behind... Jun 05 00:56:59 Where should I be looking? Jun 05 00:57:03 me too lol Jun 05 00:57:45 uh, try JobScheduler first, then GcmNetworkManager Jun 05 00:59:06 but that was replaced by some firebase thing ... Jun 05 00:59:25 ummhh guys may i ask about phone if it's good or not? or what do u think about it? Jun 05 00:59:30 A3 2016. Jun 05 00:59:37 Never heard of it xdevnull Jun 05 00:59:44 good in what way xdevnull Jun 05 00:59:46 JobScheduler sounds interesting. Jun 05 00:59:59 http://www.phonearena.com/phones/Samsung-Galaxy-A3-2016_id9814 Jun 05 01:00:10 in general, performance mostly. Jun 05 01:00:11 xdevnull: no, it could be paused or stopped Jun 05 01:00:18 https://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle Jun 05 01:00:31 Not looking for something too fast, but good for daily usage.\ Jun 05 01:00:33 it could get destroyed quickly as well but depends on the system Jun 05 01:00:35 orbyt_, Thanks alot <3 Jun 05 01:00:38 mhm Jun 05 01:01:45 I like GcmNetworkManager more though. Jun 05 01:02:42 Ummh, what's if i start A activity from B activity again? is it considered as new activity of A? so i would've #A1 => #B => #A2? Jun 05 01:03:39 d/c >.< Jun 05 01:03:41 I like GcmNetworkManager more though. Jun 05 01:04:00 hi - I am trying to use bar progress dialog - posting the progress via Event BUS = this is publishing the correct increment - but the progress bar is going off faster than it should- what am i doing wrong ? Jun 05 01:04:24 lol Jun 05 01:04:32 you're going too fast ! Jun 05 01:04:35 slow down :) Jun 05 01:04:46 g00s: lol.. Jun 05 01:06:17 g00s Would you recommend I have one GcmNetworkManager service running for all synchronisation, or one per area? I feel the former would be more logical. Jun 05 01:06:18 Anthaas GcmNetworkManager is fallback for < 5.0 ... Jun 05 01:06:39 Anthaas and you have to read about doze, etc Jun 05 01:06:40 Ahhhh Jun 05 01:06:43 I just saw that... Jun 05 01:07:09 may as well just use iOS soon Jun 05 01:07:16 How come? Jun 05 01:07:40 one of the cool things about android was being able to do stuff in bg ... Jun 05 01:07:44 they keep locking that down Jun 05 01:07:56 To be fair, it did kind of get abused. Jun 05 01:08:16 When removing facebook from your phone can have up to 50% increase in battery life, its kind of taking the ...... Jun 05 01:08:41 i think they had a bg service all the time doing mqtt instead of gcm Jun 05 01:08:54 I've always said the openness of developing for Android is both the best part of it, and the worst. There needed to be SOMETHING to make sure people weren't just taking the biscuit. Jun 05 01:09:27 well, i think its better to start off with no biscuits and then gradually offer more biscuits ... Jun 05 01:09:31 not the other way around Jun 05 01:09:34 Yes! Jun 05 01:09:46 I completely agree. Jun 05 01:09:54 Its the way I look at interfaces. Jun 05 01:10:06 Everything is private, and then only what is necessary to be more open than that is. Jun 05 01:14:20 g00s: is progress stepping an issue ? Jun 05 01:14:23 Do Log.d calls automatically get removed from a build apk? Jun 05 01:16:40 g00s: actual count = 8 but the barProgress is showing 28 .. Jun 05 01:19:05 Whoever wrote the Android samples aren't fond of proper spellchecking or Javadoc styles are they? Jun 05 01:19:22 'See "setUiCalback()"' Jun 05 01:19:39 Instead of: 'See {@link #setUiCallback()}' Jun 05 01:32:33 Anthaas: I wasn't under the impression that they did, but you can try it Jun 05 01:32:58 I was wondering if you still had to go through the rigmoral of removing them from production yourself... Jun 05 01:34:14 Anthaas, no, Log.d isn't disabled by default. I write a wrapper class around it and wrap all the Log. calls in if(BuildConfig.Debug) checks Jun 05 01:34:32 Thanks b1ackcat Jun 05 01:34:58 there was an article awhile back where facebook accidentally left too many logging statements in place and ended up leaking some private key info for users via logcat. definitely important to be careful with logs :S Jun 05 01:35:01 I'm wondering if it's not better to use proguard to remove them Jun 05 01:35:50 probably. but every time I touch proguard I seem to muck something else up, i'm admittedly not well versed in it aside from what SO answers tell me to put in there to fix issues with obfuscation for 3rd party libraries Jun 05 01:36:01 yeah Jun 05 01:36:06 I haven't tried it yet either Jun 05 01:36:26 I don't have many android apps right now but we use a similar wrapper class at my day job Jun 05 01:36:27 what I would really love to know is why the hell robolectric cant find its own damn class while running my test Jun 05 01:36:46 what's the problem exactly? Jun 05 01:37:00 java.lang.NoClassDefFoundError: org/robolectric/shadows/ShadowContext when trying to create a shadow of my activity Jun 05 01:37:01 the test class or the test runner Jun 05 01:37:14 oh Jun 05 01:37:19 hmm Jun 05 01:37:23 ShadowContext Jun 05 01:37:45 i've definitely written tests that use a context object Jun 05 01:37:48 it was working earlier, but I was getting a null result from the shadows getOptionsMenu(). I've been poking it in different ways all day trying to getit working Jun 05 01:38:05 g00s: i found the issue on the prgress - I was using IncrementBy ( int ) whereas I should be be using setProgress(int) Jun 05 01:38:22 not to judge your methods either b1ackcat but do you mind if I ask why you're unit testing your activity? it's a unit test right? Jun 05 01:39:37 i mean, kind of? Honestly, I'm not looking to test much more than just "did the UI successfully render" for my screens. I want an automated check across the app that I'm not causing app crashes just from opening a screen when I make a change Jun 05 01:39:39 I'm not sure if it would help you out any but what I usually do is have a separate class if there's something I want to test, and then my activity just uses that Jun 05 01:39:54 ah Jun 05 01:40:05 yeah all I'm trying to do in this test is "open" the menu and verify the title of each menu item is correct. just as a sanity check Jun 05 01:40:05 Maybe Espresso tests are better for UI things Jun 05 01:40:12 ah okay Jun 05 01:40:16 that sounds more like espresso to me Jun 05 01:40:53 take a look at that, espresso is a 3rd party lib that is designed to test your app's flows. It will also test things like you suggested, ui text is appropriate, etc... Jun 05 01:40:56 yeah probably. i'll look into that again. I do have some methods currently on the activity (that honestly I know need to be moved) that i should test too, but those can wait til I can refactor Jun 05 01:41:20 there might also be some newer thing than espresso that can do the tests without writing any code Jun 05 01:41:30 but that's what I used a couple years back for it Jun 05 01:41:56 we had it coded to go through all of our scenarios like logging in, performing searches, making purchases, etc... Jun 05 01:42:21 i mean it didn't really make the purchase but it would press the button anyway and confirm it was there or not Jun 05 01:42:40 yeah, that's what I'm looking for. i'll take a look, thanks Jun 05 01:42:49 no problem Jun 05 01:43:33 that will actually run through the app, so you'd need a device connected or an emulator which isn't as fast as a robolectric test but it's closer to real user interaction and it can check ui elements have the right content and so on Jun 05 01:44:16 Hello. I'm trying to create a live wallpaper, but I'm getting a failed binder transaction error. I understand that has to do with passing too much data or something, which I believe arises from the images I'm using in the wallpaper. So I guess I should somehow store those images in the phones storage and load them from there. Can someone explain how to do that? Jun 05 01:45:31 Hypothetical here. Jun 05 01:46:03 A service needs the Activity to not change for it to be able to send the callback, right? So could/should I change the callback activity in onPause() of the original callback before it changes? Jun 05 01:48:20 anthaas, it's been awhile since I've used services, but iirc you should set the callback while binding then remove the callback when unbinding (unbinding in onpause/stop/destroy whatever works for your use case) Jun 05 01:48:38 Hmm, actually I'm not entirely sure what's causing this failed binder transaction. If I'm doing a live wallpaper, I'm never using any Intents or Bundles. I just refer to a GLEngine. How can I bypass this error? Jun 05 01:49:04 b1ackcat, Interesting, so I can't foretell the service where it should redirect to? Jun 05 01:49:26 I guess this would be the case if my activity hasn't been created yet, but the previous activity has paused, when the service finishes. Jun 05 01:51:25 Also another weird thing is that the combined size of the images I'm using is < 1mb Jun 05 01:55:17 I need some UI advice... I'm trying to dynamically generate some ui programmatically to create a set of like 2-3 views which a certain layout, then I need to combine all of these views and place them all next to each other and wrap lines and such Jun 05 01:55:22 anyone have any ideas? Jun 05 01:56:49 wait maybe some guy already wrote this since the last time I chcked Jun 05 01:57:33 let me try this first :D Jun 05 02:00:07 Also, I'm using the same renderer in an activity and a service (live wallpaper), and the activity works perfectly. I'm just getting the failed bind transaction on the live wallpaper Jun 05 02:20:47 That talk about crashing... Is there some tool in the ADK that detects who the last few screens or events were, right before an App becomes unresponsive or is forced to exit? Jun 05 02:21:05 Some kind of event log/spy? Jun 05 02:21:37 <-- Is coming from (old) Windows world. Jun 05 02:22:06 Idea being that you would know how you made it crash. Jun 05 02:22:07 :) Jun 05 02:30:26 Do you ever bang your head on the desk and scream inside yourself "wtf is null here?!?" Jun 05 02:32:44 My JobService is trying to run getSystemService on a null object? Jun 05 02:32:48 Itself is null? Jun 05 02:32:51 That cannot be. Jun 05 02:33:37 nope, I never do that Jun 05 02:33:44 I want to a lot. Jun 05 02:33:49 NPEs are simple Jun 05 02:33:59 Yeah, but this one is throwing me for some reason. Jun 05 02:34:13 getSystemService belongs to the Service class, right? Jun 05 02:34:42 context Jun 05 02:34:58 Ok, but Service extends Context, yes? Jun 05 02:35:04 yep Jun 05 02:35:27 Right, within this JobService subclass, I am calling getSystemService(...) Jun 05 02:35:37 But am apparently doing it on a null object reference. Jun 05 02:37:46 It would seem likely that my Context is null...:S Jun 05 02:38:48 Passing it the context... Jun 05 02:38:51 Seems to work. Jun 05 02:46:08 Quite literally this line that is failing: JobScheduler scheduler = Jun 05 02:46:08 (JobScheduler)getSystemService(Context.JOB_SCHEDULER_SERVICE); Jun 05 02:46:17 Sorry, was meant to remove the extra line. Jun 05 02:51:12 Ok, so I know what is happening, just not why. Jun 05 02:52:53 https://gist.github.com/anonymous/50b55356222746d72b0945f19820d36a Jun 05 02:52:56 Could someone help me? Jun 05 02:53:40 context is null in constructor Jun 05 02:54:00 if you were doing that in there Jun 05 02:54:34 It uses mContext fine. Jun 05 02:55:07 The problem now lies with mCallBack Jun 05 02:55:23 In my activity which launches this service, I call mService.setUiCallback(this) Jun 05 02:55:47 The activity implements DataServiceInterface (which has onReceiveStartJob() and onReceiveStopJob()) Jun 05 02:56:21 It is the callback of onReceiveStartJob() that is throwing NPE Jun 05 02:56:47 guys, weird issue. Does this look weird to anyone else?: http://prntscr.com/bchen6 Jun 05 02:57:55 Anthaas, timing issues, the job starts before you call the callback thing Jun 05 02:58:28 I am calling setUiCallback before even creating the intent which starts the service... Jun 05 02:58:40 http://prntscr.com/bchf3l Jun 05 02:58:50 what Jun 05 02:58:51 first log.d is executed Jun 05 02:58:53 second is not Jun 05 02:59:04 you seem to be very confused about how services work Jun 05 02:59:27 Im calling it on the Service object rather than the service itself. Jun 05 02:59:42 i.e. Im setting where my service should currently callback to before the service is launched. Jun 05 02:59:51 When I have a context change, I can change this. **** ENDING LOGGING AT Sun Jun 05 02:59:58 2016