**** BEGIN LOGGING AT Wed Feb 18 03:00:00 2015 Feb 18 03:00:20 DadFoundMy: SQLiteOpenHelper holds a reference to the context you pass it Feb 18 03:00:44 good point :D Feb 18 03:00:45 DadFoundMy: just override the constructor and do mAppContext = context.getApplicationContext(); Feb 18 03:00:59 i have my db as a singleton, but it shouldnt be much different Feb 18 03:01:02 private Context mAppContext; // ofc Feb 18 03:01:23 DadFoundMy: as long as you pass in the application context to the SQLiteOpenHelper Feb 18 03:01:29 i do Feb 18 03:11:14 lasserix_ http://stablekernel.com/blog/replace-asynctask-asynctaskloader-rx-observable-rxjava-android-patterns/ Feb 18 03:11:38 send the whole night to make my phone work with gesture detector !!!! Feb 18 03:11:54 hi g00s Feb 18 03:12:03 hey hesperaux Feb 18 03:13:11 ugh this JSONArray is driving me crazy. shouldnt: new JSONArray(arrayList); create an JSONArray holding whatever was in the arrayList? Feb 18 03:13:22 or am i competely misnderstanding the constructor Feb 18 03:13:28 *misunderstanding Feb 18 03:14:12 I is there like a secret to getting a BOOT_COMPLETED BroadcastReceiver to schedule repeated executions of a BroadcastReceiver? Feb 18 03:14:51 I've looked at Google's dev pages, and followed a 3rd-party tutorial...I can use the service fine if I schedule it the same way within my app - but trying to have the BOOT_COMPLETED receiver schedule it doesn't appear to work Feb 18 03:16:27 ahh, TIL Observable.subscribe( ... a behaviorSubject ) Feb 18 03:17:12 I'm still a bit skeptical about Rx but slowly converting my code over to it Feb 18 03:17:20 :D Feb 18 03:17:57 Even if I don't buy in a lot of the Rx sales pitch, I have a lot of listener interfaces in my code, so adopting the Observable/Subscriber types makes it all more regular Feb 18 03:17:57 * hesperaux will consider it after he learns the official SDK Feb 18 03:18:26 deuteros__ yeah, and if you switch for blocking to nonblocking the api stays the same Feb 18 03:19:03 where it shines is composing async thinsg that can error Feb 18 03:20:11 g00s: I understand the theory, I'm still waiting for something to click and make me go "yeah!" Feb 18 03:20:14 deuteros__ i just use rx stright up though with one of the schedulers from rxandroid - the other stuff in rxandroid is pretty fluffy Feb 18 03:20:22 *straight Feb 18 03:20:24 right now, it's more of a way to be more consistent with my observer patterns Feb 18 03:20:35 g00s: Yes I use rxandroid too Feb 18 03:20:59 And I still have a strong attraction event buses, although I've been resisting it so far Feb 18 03:21:22 is there a way to bond the wifi and lte together in 5.0? Feb 18 03:22:44 hesperaux: are you trying to _broadcast_ multiple boot_completed events? Feb 18 03:22:49 event buses are great Feb 18 03:23:01 at least they solve problem with nested fragments Feb 18 03:24:11 oh man, i haven't used nested fragments - that sounds scary Feb 18 03:24:14 groxx, no, trying to respond to boot completed. after receiving the intent, I want to schedule an inexact repeated service Feb 18 03:24:38 I just tried to simulate the intent with adb and my phone rebooted.... Feb 18 03:24:47 lol Feb 18 03:25:23 if you want, I can pastebin the boot broadcast receiver Feb 18 03:25:36 well, fwiw I tend to pull _all_ logic out of my receivers, and have them just pull the bundled info -> call another class. then it's easy to add another receiver that does the same thing, or a button, or whatever, for testing purposes. Feb 18 03:25:59 partly because they're hard to test otherwise Feb 18 03:26:53 http://pastebin.com/QH8nkTBW <---this is the BOOT_COMPLETED receiver Feb 18 03:27:30 I also created a WeatherReceiver class which is another BroadcastReceiver (this is how a tutorial did it, but I don't understand why it's not just a service) Feb 18 03:28:13 nevertheless, if I create an intent for the WeatherReceiver from one of my Activities, it works fine... Feb 18 03:28:34 the only difference I can see is the context is different, or that it's simply not being called on boot Feb 18 03:28:41 hesperaux: you should really use TimeUnit.SECONDS.toMillis(120) Feb 18 03:29:04 Napalm, why? Feb 18 03:29:36 because its a period of duration not date-time Feb 18 03:30:17 Napalm, are you referring to cal.getTimeInMillis()? Feb 18 03:30:40 yes and your 1000^120L Feb 18 03:30:45 Until very recently, the type was RTC_WAKEUP. I changed it to ELAPSED and didn't even think about the cal Feb 18 03:31:23 if the targetTimeInMillis also becomes relative when using ELAPSED_*, then that's a big problem Feb 18 03:31:40 I don't see a reason to call an extra function for the 1000*120 though Feb 18 03:31:47 hesperaux: what does your WeatherReceiver look like Feb 18 03:32:10 hesperaux: call the TimeUnit.SECONDS.toMillis(120) and save to int and use it as param Feb 18 03:32:21 hesperaux: the reason is clarity Feb 18 03:32:37 fair enough Feb 18 03:32:42 * hesperaux is used to embedded C Feb 18 03:33:01 hesperaux: it looks like you are broadcasting to your WeatherReceiver does that just start a service? Feb 18 03:33:15 * groxx assumes you would macro that kind of stuff in C, so you'd have SECONDS(TO_MILLIS(120)) or something Feb 18 03:33:43 groxx, yeah I guess you would Feb 18 03:33:44 * groxx realizes belatedly that that would be reversed Feb 18 03:34:10 Napalm, it doesn't start a service. it runs an asynctask in onReceive Feb 18 03:34:15 * groxx adds "or something" to the end of that, mentally Feb 18 03:34:21 hesperaux: seriously? Feb 18 03:34:22 omh Feb 18 03:34:23 omg Feb 18 03:34:36 hesperaux: not a good idea :) though probably works most of the time Feb 18 03:34:48 hesperaux: when your WeatherReceiver finishes your process could be terminated Feb 18 03:35:31 makes sense - I hadn't really thought that far ahead. I just pasted my asynctask in there from my activity to try to get this working. Glad you pointed that out though Feb 18 03:35:43 I'll convert it to a proper service once I confirm it's reaching that point Feb 18 03:36:20 hesperaux: remember, boot completed has some funky bahaviour rules because of miss-use Feb 18 03:36:43 * hesperaux hasn't read about that as of yet Feb 18 03:36:45 hesperaux: http://commonsware.com/blog/2011/07/05/boot-completed-regression.html Feb 18 03:37:45 oh, that Feb 18 03:38:06 I am aware of that, and have made sure to launch the activity before booting, and also to enable the receiver explicitly in MainActivity Feb 18 03:38:29 re "boot completed regression": that's normal behavior for pretty much all receivers, though. you don't get squat until your app has been launched. Feb 18 03:38:42 makes sense Feb 18 03:38:51 luckily for me that's probably not a big deal for these Feb 18 03:38:59 I can see that upsetting some devs though :D Feb 18 03:39:19 yeah, having that _change_ would be annoying. I 100% approve of the behavior though. Feb 18 03:39:40 groxx: only since Android 3.0 Feb 18 03:39:42 it prevents apps from doing shady stuff until you've actually launched it Feb 18 03:39:54 yeah. but it seems everyone in here targets like 4.4.4+ :) Feb 18 03:40:02 xD Feb 18 03:40:03 rly? Feb 18 03:40:03 * Napalm hides Feb 18 03:40:11 ok, so most :) Feb 18 03:40:18 * Napalm is having to make apps Gingerbread+ atm Feb 18 03:40:28 minSdkVersion 16 Feb 18 03:40:30 same. though thankfully we've switched to APIv10+ instead of 8 Feb 18 03:40:31 >_> Feb 18 03:40:37 4.1.2 iirc Feb 18 03:41:01 it's 78% or 87% or something, so I said that's good for now. After the app is finished, I'll add compat Feb 18 03:41:03 i'd worry about rx on those kinds of devices, not sure how big their call stacks are Feb 18 03:41:41 tiny heaps that you can't make larger is a bigger problem. Feb 18 03:43:00 granted, usually you shouldn't be using large heaps. but for something where users consume a crap-ton of large bitmaps, it's a _necessity_ on tiny devices. you can't reuse bitmaps nicely so you continually fragment the memory until it just explodes on everything. Feb 18 03:44:23 is oracle-jdk better to use than open-jdk for android studio? Feb 18 03:44:30 AAAAH i need help :( My nexus 6 is not being recognized by windows Feb 18 03:44:37 I have been doing this crap for 2 hours now Feb 18 03:44:49 Tricknology, did u install the google drivers? Feb 18 03:44:51 bynarie: for... running android studio? you don't have a choice for what your apps use on the device. Feb 18 03:44:55 bynarie yes I did Feb 18 03:44:59 well.. it won't let me Feb 18 03:45:13 Tricknology: have you tried turning it off and on again? Feb 18 03:45:18 yes groxx Feb 18 03:45:19 groxx, yes for running android studio Feb 18 03:45:20 Tricknology: is the computer plugged in? Feb 18 03:45:38 yes groxx Feb 18 03:45:54 Tricknology: ¯\_(ツ)_/¯ hell if I know. install Linux. Feb 18 03:46:01 Tricknology i think you need to wipe your hard drive Feb 18 03:46:06 in device manager it shows under other devices >> ADB Interface Feb 18 03:46:09 man shred Feb 18 03:46:13 I just got a new one!! Feb 18 03:46:32 Tricknology, i concur with groxx, windows sucks install linux.. problem solved Feb 18 03:46:34 Tricknology: when you wipe the hard drive, be sure to use a lint-free cloth Feb 18 03:46:39 After I did, ADB no longer works Feb 18 03:46:40 lol Feb 18 03:47:00 and you need a new cloth for each wipe, minimum 8 Feb 18 03:47:13 should I use Windex? Feb 18 03:47:17 xD Feb 18 03:47:26 I think that's used when compiling android projects Feb 18 03:47:27 or do I drink that? Feb 18 03:47:29 you can use sandpaper for entropy Feb 18 03:47:35 at this point.. I might just Feb 18 03:47:38 Tricknology, no... use toilet water for wiping Feb 18 03:48:25 SHHH BOYS HE'S HERE Feb 18 03:48:30 bynarie: re open-jdk: I have absolutely no idea. if you find a difference, I'd probably be fascinated by the reason :) Feb 18 03:48:34 wrong channel. this irssi thing is hard Feb 18 03:48:48 * groxx doesn't even want to know Feb 18 03:49:16 http://axeetech.com/2014/12/01/download-and-install-google-nexus-6-usb-drivers-for-adb-fastboot/#.VOQLp_nF-30 Feb 18 03:49:31 Stuck on step 8 Feb 18 03:49:37 every other resource says.. wait for it to load Feb 18 03:49:40 I have an alert for everytime a certain reddit admin comes into the chan, and let everyone know when he's in :D Feb 18 03:50:00 my sht says "Windows could not find a driver..." Feb 18 03:50:16 Tricknology: which windoze version? Feb 18 03:51:17 9 Feb 18 03:51:19 Tricknology: http://www.reddit.com/r/nexus6/comments/2pboxt/nexus_6windows_81/ perhaps? Feb 18 03:51:36 totally been there Feb 18 03:51:55 Tricknology: I was going to suggest finding and deleting any existing drivers for whatever it IDs the device as, so that appeals to my "I was totes right" side Feb 18 03:51:55 Shows as nexus 6 in my file manager Feb 18 03:52:02 oh I did Feb 18 03:52:07 well Feb 18 03:52:14 I did it the lazy way through device manager Feb 18 03:52:18 right click uninstall Feb 18 03:52:24 F-Windows.. Feb 18 03:53:00 yeah install something else Feb 18 03:53:04 Tricknology: at times, with Windows, it matters if you install before you plug the device in. if you haven't, since i assume you've done the normal stuff, I'd probably suggest: uninstall any suspicious drivers, reboot, install new drivers, THEN plug in the phone. Feb 18 03:53:22 Tricknology: as a fallback, try Doors: http://bigworld.neocities.org/ Feb 18 03:53:34 dumb question... is usb debugging on the phone enabled? Feb 18 03:53:47 yes... Feb 18 03:54:04 I am never every buying a Windows anything ever again Feb 18 03:54:28 aside from visual studio, everything windows seems hostile to development. Feb 18 03:54:28 yeah, just download it from one of those totally legit file sharing websites Feb 18 03:54:35 truth Feb 18 03:54:42 VS can be done in VMFusion Feb 18 03:54:46 fuck it Feb 18 03:55:34 groxx i will uninstall and reboot and all that jaxx Feb 18 03:56:17 sweet, he's uninstalling Windows. probably the best option. Feb 18 03:56:22 lol Feb 18 03:57:09 i'm confused though. if his N6 is showing up on his file explorer, doesn't that mean the drivers are installed? Feb 18 03:57:23 the best way to check is to use command "adb devices" yeah? Feb 18 03:57:55 I'm going to guess they meant device manager, but there is always the possibility it's just something stupid and obvious, yeah Feb 18 03:58:18 ah Feb 18 03:58:43 I got started on computer stuff by fixing windows machines :| the crap I've seen... Feb 18 03:58:58 i know how it is to get caught up in a whirlwind like that. it's embarrassing how many ultra simple fixes i've been oblivious to Feb 18 03:59:24 i haven't had many problems with windows stuff since Vista Feb 18 03:59:33 m3chanical, showing up in My Computer just means the MTP/PTP drivers are activated. the debugging drivers could be non-operational Feb 18 03:59:45 ahh okay Feb 18 03:59:48 yeah, 7 is surprisingly decent. 8.1 seems pretty acceptable too, and 10 sounds like it's going to be an improvement Feb 18 04:00:37 I do still feel like this about 7 though: http://www.penny-arcade.com/comic/2009/10/30/ Feb 18 04:00:54 nope :( Feb 18 04:00:56 nice. my phone just rebooted by itself Feb 18 04:01:29 i've had a good time with 8.1. I'm much more familiar with Linux command line and developing ... anything other than MS Languages is 1000x easier Feb 18 04:01:39 Tricknology: you've rebooted the phone, and made sure e.g. `adb devices` actually says something beyond an error (like sigbus / the daemon is dead / omg you killed Kenny) Feb 18 04:02:07 hesperaux: my n6 does that every couple days Feb 18 04:02:17 lol @ that comic. that's especially true considering the vista launch :\ Feb 18 04:02:33 accurate comment is accurate Feb 18 04:02:43 http://i.imgur.com/Iesie73.jpg Feb 18 04:03:10 Tricknology: did you try selecting the ADB Composite Interface? Feb 18 04:03:36 Tricknology: while you were gone, I linked to this: http://www.penny-arcade.com/comic/2009/10/30/ Feb 18 04:03:40 Napalm, I don't see an ADB Composite Interface Feb 18 04:03:59 "fatty" and "skinny" lol Feb 18 04:04:00 I need Win7 in my life so hard right now Feb 18 04:04:09 partitions on a drive, don't judge Feb 18 04:04:13 WAT Feb 18 04:04:30 USB drive Feb 18 04:04:35 I partition everything, always. no judgement. I like to be able to implode windows and start fresh every 6 months or so. Feb 18 04:04:41 "portable" but needs its own power supply Feb 18 04:05:35 Tricknology: update driver > browse for driver > let me pick from list > have disk > SDK\extras\google\usb_driver > Android Composite ADB Interface Feb 18 04:06:00 untick "show compat hardware" Feb 18 04:07:41 Napalm saves the day Feb 18 04:07:52 I always do Feb 18 04:08:06 it was the part about "let me pick from list" Feb 18 04:08:16 I just pointed to the dir.. Feb 18 04:08:44 SDK\extras\google\usb_driver Feb 18 04:09:05 why, don't know, don't care. but thank you sooooo much, Napalm. Feb 18 04:09:18 yeah, /me listens intently :) happy to be out of the Windows support realm, but glad to absorb new info. Feb 18 04:10:05 can anyone remember what style has the blue underline for the title in the holo theme? Feb 18 04:10:10 most of my friends/family/extended family is Windows-bound, and I do tech support for too many of them, when they remember that I exist :| Feb 18 04:10:12 Linux, groxx? Feb 18 04:10:23 Tricknology: OSX. Linux, with a sane interface. Feb 18 04:10:49 I want to like Linux. truly. but every damn time, I have to resort to the command line within ONE HOUR to fix some permissions error. 100% unacceptable. Feb 18 04:11:14 OSX. Linux, except with an infuriating interface Feb 18 04:11:19 * hesperaux ducks before he is shot Feb 18 04:11:45 also, totally different kernel/service structure, package management, etc. Feb 18 04:11:55 * groxx can't stop thinking about that f*#$!&^ duckhunt dog now Feb 18 04:12:15 hesperaux: yeah. though homebrew is pretty nice Feb 18 04:12:27 never tried that Feb 18 04:12:28 but! I can grep. that's all that really matters. Feb 18 04:12:33 lol Feb 18 04:12:52 * hesperaux is the type of person who, on linux, does most things via cli Feb 18 04:13:00 homebrew is like a non-invasive, non-litera-fuckin-ly insane MacPorts Feb 18 04:13:25 Napalm, Widget.Holo.Light.TextView.ListSeparator? Feb 18 04:13:27 the little things annoy me, and OSX's interface is very slow to use for me (talking about the window manager) Feb 18 04:13:31 MacPorts works, don't get me wrong there. but it's impossible to use with anything else. Feb 18 04:13:59 hesperaux: or my personal favorite: unplug bigger monitor -> find windows _entirely offscreen_. I haven't found a window manager yet that doesn't do this. why is it so hard? Feb 18 04:14:08 lol Feb 18 04:14:27 Tricknology: not even close ;) Feb 18 04:14:28 window bounds changed -> ensure things are not entirely offscreen -> ??? -> profit Feb 18 04:14:37 lol Feb 18 04:15:58 but I think my personal favorite thing about OSX is that the keyboard shortcuts are global, and e.g. ctrl-A or cmd-left goes to the beginning of EVERY input, no exceptions (unless the app is crap, then you uninstall it immediately). consistency is so amazing when it's achieved. Feb 18 04:16:32 yes, I did like the terminal's allowance for ctrl+arrow to move between words Feb 18 04:16:41 although, bash does this on linux just fine if configured Feb 18 04:16:52 granted, a lot of that is because they've had a clean break from the 9- days, and windows has amazing backwards compatibility. but it's better here. Feb 18 04:17:17 backwards compat is something people take for granted Feb 18 04:17:31 this is fairly #off-topic though.. Feb 18 04:17:40 speaking of osx... is it spring or summer that the new macbook pro's are coming out? i'm trying to hold out and wait to get one Feb 18 04:17:50 m3chanical: yes. or later. Feb 18 04:17:59 m3chanical: but yeah, I'd wait too Feb 18 04:18:00 lol Feb 18 04:18:15 lol. okay. that's the plan anyway. Feb 18 04:18:29 m3chanical: the current MBPr is pretty good (don't touch the previous version), but it could be better. Feb 18 04:18:47 been poking on windows / linux machines for years, and i think a mbp would be extremely useful for me presently Feb 18 04:19:08 * hesperaux chooses not to go into it Feb 18 04:19:31 yeah i played around with one at the apple store. if newer ones aren't out by summer some time i'll be sad Feb 18 04:21:35 m3chanical: it handles its resolution pretty well. bogs down a bit / holy cow does it drain power when also plugged into an external display (e.g. a previous-gen charger will still let it _drain_ while plugged in), but it actually keeps up. and the retina display is amazeballs. Feb 18 04:21:42 readable text is wonderful Feb 18 04:22:55 that sounds great. ^^ this MBPr that I'll get will be my first apple product since the old iPods Feb 18 04:23:14 m3chanical, I would advise you to try to try one out first Feb 18 04:24:03 yeah, definitely try. I've got a high-end one because work paid for it, and the Apple Tax on RAM is a thing and it sucks. Feb 18 04:24:31 the next gen MBPr will probably be noticeably better, but for this one it's all about the dedicated video ard Feb 18 04:24:34 s/ard/card/ Feb 18 04:24:53 my girifriend has one for work and i've played around with them a bit recently when i decided that i want to get one. what do you suggest i tinker with before i transition/purchase? Feb 18 04:24:56 groxx is the ram soldered to the mobo ? Feb 18 04:24:57 Apple Tax? Feb 18 04:25:05 g00s: yes Feb 18 04:25:12 fuuu Feb 18 04:25:25 m3chanical: adding ram to a macbook is like 3x (or more) more expensive than anything you can buy retail Feb 18 04:25:32 oh wow Feb 18 04:25:33 m3chanical: and it's soldered on, so you don't have a choice Feb 18 04:25:33 I gave up on "thin & light" laptops... Got tired of them being weak in some way, and I got sick of apple hardware's crappy performance on other OSs. Personally, I can't stand using OS X, so this was a deal breaker for me. I used one for 5 years before I gave up. Not to mention every piece of hardware in the laptop had to be replaced, except the screen Feb 18 04:25:40 groxx are the battery / hd serviceable at an apple store, or do they have to send it out ? Feb 18 04:25:58 m3chanical: it's still totally worth it (16gb = Android Studio + virtualbox machines + emulator + still running happily), but it's expensive. Feb 18 04:25:58 lol jeez. i have plenty of experience soldering, but i think that might be too much for me Feb 18 04:26:10 m3chanical, my advice: try to write a complete program using it. Whether it's java or android or C or whatever...use an IDE, type a program out that does a thing, and decide from that Feb 18 04:26:29 ahh. okay. thanks hesperaux, i'll do that Feb 18 04:26:56 you'll get a feel for the layout of the keyboard, the way it behaves in OS X, and how fast it compiles/emulates/whatever else Feb 18 04:27:02 my mbp is old enough you can take it apart and have at it Feb 18 04:27:05 also, take note of how hot (or not hot) it gets Feb 18 04:27:18 g00s, mine too. No discount on the price for that though :) Feb 18 04:27:28 okay. thanks for the advice Feb 18 04:27:44 re hesperaux's hardware problems: I've had them too. personally I buy the AppleCare package, because it tends to come in profitable for me. but it varies. they're very nice pieces of hardware, and reasonably durable, but they do have their problems at times. Feb 18 04:28:04 I bought applecare too - it saved me hundreds of dollars...omg Feb 18 04:28:09 i'll definitely wait for the newer models. i'll be starting uni next year (after 8 years navy) so the summer will be a good time for me to pick one up Feb 18 04:28:16 basically, take the retail cost, and add ~25-30%, and that's the actual out-of-pocket price for a mac. Feb 18 04:28:24 lol Feb 18 04:28:29 not kidding btw Feb 18 04:28:33 four magsafe chargers, a battery, external case, dvd burner, hard drive, motherboard/gpu all were replaced on mine. I had to pay for mobo because nvidia's class action expired a month earlier Feb 18 04:28:34 m3chanical yes, should be broadwell refresh Feb 18 04:28:53 excellent. Feb 18 04:28:58 the first thing i notice anout a non-apple laptop is, man where is the magsafe :) Feb 18 04:29:04 I love it, but they're not particularly cheap. if you want cheap, try their refurbs - better price, still very good applecare support. Feb 18 04:29:21 g00s, well the surface pros have a similar connector now Feb 18 04:29:26 nice Feb 18 04:29:29 but DON'T get the previous MBPr. it can't keep up with the resolution Feb 18 04:29:35 i hope they do a surface pro 4 Feb 18 04:29:36 a strong, well designed coaxial plug is still good though. most of the time they make them crappy Feb 18 04:29:38 i'll keep that in mind Feb 18 04:29:56 g00s, i wanted to get one of those, but I got a gaming laptop instead because I tried to code on the SP3 and it didn't work well Feb 18 04:30:00 hesperaux: heh. my old 11" mbp's video card memory fried, out of warranty :'( Feb 18 04:30:06 $600 for a new mobo, I think Feb 18 04:30:26 hesperaux i want it for adobe lightroom ;) Feb 18 04:30:44 maybe some VST + keyboard Feb 18 04:30:51 groxx, same here, but they let me use the "ship it to texas for a low flat rate and everything gets fixed yay", so my mobo/gpu repair was only like 300 bucks or something Feb 18 04:31:22 they were cool about it - they replaced the bottom case too for free (it had a dent in the corner) Feb 18 04:31:42 yeah, I've had excellent service experiences. that is one thing they do very, very right. Feb 18 04:32:01 android question: for this app i'm making i want it to look for new tweet mentions every few minutes as a background service (kind of like gmail or facebook). is the "IntentService" the proper class to use? or is there something else? Feb 18 04:32:32 i've been looking through the developer docs but nothing jumps out except the intentservice Feb 18 04:32:43 m3chanical: while they're using the app, or at all times? and if at all times: you'll probably cause a lot of battery drain, can you think of a more restricted version? Feb 18 04:33:04 "a lot" = "visible", not like you'll single-handedly tank their battery. Feb 18 04:33:20 while they're using the app. Feb 18 04:33:39 IntentService is basically the Service version of AsyncTask Feb 18 04:33:46 basically, i just want it to check every once in a while, and if it finds a new mention, to post it to the activity Feb 18 04:34:53 m3chanical: is it important for the update to finish if they leave the app, or should it just work while the UI is visible? Feb 18 04:35:08 more the service version of Handler Feb 18 04:36:04 true. but most people I run across don't seem to know Handlers particularly well. AsyncTask is everywhere. Feb 18 04:36:15 https://gist.github.com/slightfoot/c7780e460adfbd2fccdc - Hide Holo Title Divider Feb 18 04:36:19 a snippet if anyone wants it Feb 18 04:36:25 Tricknology Feb 18 04:38:36 groxx: so my goal for the app is to have it mostly run in the background and play songs on google play. it will get the songs through tweet mentions and add them to a playlist Feb 18 04:39:05 m3chanical: the reason I'm asking is because Service is a "lifecycle object". If you have one, it implies you're doing something semi-important, and you think your process should be kept around if possible. if not, you could be killed in favor of other more-important things. be nice, claim the importance that's appropriate. Feb 18 04:39:25 interesting Feb 18 04:39:39 i've got most of it working except the service portion Feb 18 04:39:54 Napalm have you seen anything like cwac-merge but for recyclerView ? Feb 18 04:40:24 g00s: nope Feb 18 04:40:35 i have a test button that just generates an intent for google play (default music app) with a search query ... I want the service to pull down tweet mentions and generate its own intent Feb 18 04:42:12 m3chanical: sorta a twitter-driven DJ? while you're playing music, you probably want to have a foreground notification + a wakelock, so tbh whatever you choose doesn't really matter from an OS perspective. use whatever feels cleaner. Feb 18 04:42:35 oh yeah, certainly Feb 18 04:42:40 and yes. exactly that Feb 18 04:42:43 heh. I've thought it would be cool to do something like that, but for someone's last.fm scrobble feed Feb 18 04:42:54 e.g. "listen to what I'm listening to" Feb 18 04:43:17 m3chanical: it sounds like a decent choice for IntentService though, in my brain. though I find my self moving as far away from system-objects as possible, and just leaving hooks into the system where necessary. Feb 18 04:43:22 i want to get all the function down first, then i'll work on user experience a bit more. Feb 18 04:43:37 though i already played around with the Lollipop material theme. it was fun Feb 18 04:43:48 ahh Feb 18 04:43:56 m3chanical: are you able to actually add stuff to a google music playlist? or do you just start up a search with the song title or something? Feb 18 04:44:13 m3chanical: main thing to realize with IntentService is that a) it's a service, so it implies lifecycle, and b) it runs on a _single_ background thread. if that's good and the API is convenient, sure - I'd probably use that. Feb 18 04:44:21 so far it just plays a song or artist. i'm not sure about simply adding to a playlist. i was going to look into that Feb 18 04:45:07 Yeah, I would be a bit surprised if you control it at that level via intents. but I'm not sure Feb 18 04:45:08 but currently i have a test tweet of the band Thrice, and using my lame test intent button, it takes the tweet text "thrice" (the @... is stripped with regex) and queries google play, then plays it Feb 18 04:45:18 it is neat Feb 18 04:45:22 IntentService is for job-queue type workload Feb 18 04:45:32 it's basically the same as using Google Now's voice search Feb 18 04:45:42 ah Feb 18 04:46:01 okay. I'll read more about the IntentService then Feb 18 04:46:19 m3chanical: read the source, it's pretty small iirc Feb 18 04:46:34 what are you doing in the service. polling for tweets? Feb 18 04:46:36 I forget how good the docs are. probably decent. Feb 18 04:47:36 JesusFreke: I'll be polling for tweet mentions and generating an intent for google music Feb 18 04:48:09 groxx: will do. i was looking at the 'best practices' for intentservice earlier. i'll read more into it tomorrow Feb 18 04:48:09 Hmm. how often are you polling? Feb 18 04:48:29 i'm not sure yet. i was going to just start with 5min or so and see how that goes Feb 18 04:48:38 m3chanical: it's small enough that you can probably figure it out. it's really simple. main surprise is if you use redeliver-intent: only the _last_ one will be redelivered. Feb 18 04:49:08 m3chanical: so if you have multiple queued (not an issue in your case, I assume), the current + pending - the most-recent = will be dropped silently Feb 18 04:49:39 hmm, yeah. You could probably use an AlarmManager alarm with a pending intent that sends a start intent to your IntentService. Feb 18 04:50:27 ^ in principle, yeah. it's a bit heavyweight for an app whose process is basically guaranteed to be running, but it might make it a bit more battery friendly by combining events. Feb 18 04:50:41 not sure how that works when there's an active wakelock Feb 18 04:50:42 ah okay. thanks for the infos. i'll look at alarmmanager as well Feb 18 04:51:30 Is it guaranteed to be running though? If that's the only service, it won't be running most of the time - only during the short periods where's actually performing the network operation or whatever. Feb 18 04:52:05 if it's playing music, it'll want (and be appropriate to hold) a wakelock + a foreground service, so that's as good of a guarantee as is possible on Android Feb 18 04:52:34 Hmm. Now I need to find out if adding to a playlist via intent is possible. Feb 18 04:52:54 I don't think it's actually playing music itself Feb 18 04:56:41 JesusFreke: could be. m3chanical: ^ is your app playing the music, or handing it off to the play music app or something? (just noticed a few things combined suggest that could be the case) Feb 18 04:58:07 or maybe I've just flaked out and missed the hints :) Feb 18 04:59:18 the app is handing it off to the google music app Feb 18 04:59:40 sends the tweet text (minus the @...) as a search query Feb 18 05:00:15 m3chanical: gotcha. I'd say alarm manager then too. precise timing isn't really necessary. Feb 18 05:00:27 and your app could die in between update requests, and it doesn't matter. Feb 18 05:01:22 okay, i'll look into that Feb 18 05:04:19 hey Feb 18 05:04:26 alright well i'm off to bed. thanks for the help all Feb 18 05:04:29 hi, I am using Android Studio, I imported my project that I exported from eclipse (ADT, generated gradle files). When I attempt to build the project it fails because it can't find a class even though it is in the class path Feb 18 05:04:36 and the module depends on another module that has the file. The editor doesn't complain about the file but compiling it does (it has been added to compile scope) Feb 18 05:05:24 what's the correct way to get a Context within a called Service? Feb 18 05:05:32 getApplicationContext()? Feb 18 05:07:01 gang? Feb 18 05:07:34 hesperaux: this Feb 18 05:08:38 phix: What's your question Feb 18 05:08:59 lol. bankai_ I forgot that Service is a Context too Feb 18 05:09:00 thanks Feb 18 05:11:51 Service is sad :( Feb 18 05:13:02 my lumia has a MS internet speed test app, is there anything official from google for android ? Feb 18 05:13:15 yiati: you want me to repaste it? Feb 18 05:13:59 g00s: not that I'm aware of. usually I find a website that targets mobile browsers for testing. Feb 18 05:14:15 My issue is I have added a module as a dependency and the editor can resolve a class that belongs to the dependant module however when I do a gradlew build it fails and tells me it cant find the class Feb 18 05:14:19 even though it is there Feb 18 05:14:24 rumor has it that ookla gets money to fudge results. i doubt MS or google would do that Feb 18 05:14:50 g00s: given how big ookla is, I wouldn't be too surprised. even less surprised if ISPs prioritize its traffic. Feb 18 05:15:31 sometimes when one device is wonky slow, its nice to compare against another Feb 18 05:15:45 yiati: It has been added to compile scope, how do I get it to see it? is there anything special I need to do? Feb 18 05:17:04 phix: Are you building with gradle? Feb 18 05:17:09 yes Feb 18 05:17:27 is this dependency listed in your build.gradle and settings.gradle? Feb 18 05:18:14 include ':zxing-2.2:android' Feb 18 05:18:19 (settings) Feb 18 05:18:31 compile project(':zxing-2.2:android') Feb 18 05:18:46 (in dependencies for the module I am having the issues with) Feb 18 05:19:07 zxing-2.2:android also depends on zxing-2.2:core Feb 18 05:19:22 http://pastebin.com/rLHfL9Ri <--- Does anyone know why pictureCallback never gets called? Trying to take a picture without showing a preview onscreen, want to do some postprocessing on the picture before showing it to the user. Feb 18 05:19:27 g00s: maybe they've been SEO-bombing, since I haven't heard of them before, but http://speedof.me/ is a thing. it's also reporting 1/15th of my actual bandwidth (as seen by downloading actual files from pretty much anywhere else). Feb 18 05:19:51 there are alternatives though. I usually try a few. Feb 18 05:20:01 groxx nice, thanks Feb 18 05:20:27 g00s: I'm trying to find one I recognize, but no luck yet Feb 18 05:20:51 groxx no worries, the MS one worked well for me Feb 18 05:20:55 g00s: ah, testmy.net looks about right. Feb 18 05:21:02 yiati: Does that look about right? Feb 18 05:21:02 but i think google should have one Feb 18 05:21:11 * g00s tries Feb 18 05:22:57 phix: I dunno, maybe. Can you build from terminal with "./graldew clean build" Feb 18 05:23:11 "./gradlew clean build" Feb 18 05:23:19 always make that typo :P Feb 18 05:24:39 yiati: no Feb 18 05:24:45 same error Feb 18 05:24:52 phix: Never saw the error Feb 18 05:25:30 Error:(6, 39) error: cannot find symbol class Intents Feb 18 05:25:38 This is really cool: http://visualgo.net/ Feb 18 05:25:43 even though it is there and the editor can find it Feb 18 05:25:47 Visualising data structures and algorithms. Feb 18 05:26:51 zxing-2.2:android is an android library, do I need to specify which files can be accessed from modules that have it as its dependency? Feb 18 05:28:49 phix: That dependency format looks weird, where are you getting it from, and what central repository is it hosted on? Feb 18 05:29:05 hmmm it is on my local filesystem Feb 18 05:29:11 in a directory called zxing-2.2 Feb 18 05:29:37 that is what the import tool did Feb 18 05:30:07 jerkface03: not sure off-hand, but the camera is a bit "different". it might require a preview surface. Feb 18 05:31:30 phix: Is zxing-2.2 in the root folder of your project? Feb 18 05:34:24 with default folder structure compile project(':zxing-2.2:android') will look for a project in rootProjFolder/zxing-2.2/android/srchere Feb 18 05:34:28 anyways got to get Feb 18 05:34:32 read more log info Feb 18 05:34:42 there's got to be more descriptive error output trying to build Feb 18 06:13:21 'never trust a developer with a samsung phone' haha Feb 18 06:22:32 have tried container.getContext(); have tried getActivity().getApplicationContext, to get the context in the fragment, but i always have a null Feb 18 06:23:20 where you do that? Feb 18 06:23:33 make sure it is after onAttach Feb 18 06:23:37 inside the onCreateView Feb 18 06:24:08 hmm Feb 18 06:24:18 and getActivity() is null? Feb 18 06:24:39 do you override onAttach? Feb 18 06:24:55 maybe forgot about super.onAttach then :v Feb 18 06:25:41 i dont override Feb 18 06:26:07 then dunno Feb 18 06:26:41 oki Feb 18 06:28:35 do it after onActiviyCreated Feb 18 06:28:42 in or after Feb 18 06:28:51 getActivity() is fine for the context Feb 18 06:34:53 Anyone mind looking at this and explaining why I am an idiot? Saving user input to XML shouldn't take me this long. =( http://pastebin.com/WZTBydgN Feb 18 06:39:33 no idea, but that looks extremely painful Feb 18 06:40:48 I know. Feb 18 06:41:07 at least my layout looks nice Feb 18 06:44:38 g00s: oki,let me try Feb 18 07:00:30 hello everybody people and shit Feb 18 07:01:01 is anybody using o used to be using Google Cloud Messaging? Feb 18 07:01:16 I have a query Feb 18 07:01:17 ondroed: Probably most people on this channel :) Feb 18 07:01:33 cool Feb 18 07:01:34 so Feb 18 07:01:58 deuteros__ you were able to parse that O.o Feb 18 07:02:11 g00s: Decades of practice on irc :) Feb 18 07:02:15 My MainActivity is not get accepted in the manifest file Feb 18 07:02:49 i need one of these http://www.gizmag.com/cognitoy-dino-watson-ibm/36112/ Feb 18 07:04:35 Someone tell me abt gcm Feb 18 07:04:39 How to work Feb 18 07:04:59 we now have http-post channel from android app to php web server. Most of time it (posts) is empty. But one comrade think that GCM-channel is not very much thinner then http-post channel. So what you can say about this? Feb 18 07:06:15 ondroed if your comrade is correct, i guess google wasted lots of time inventing GCM Feb 18 07:06:23 so he's probably not correct Feb 18 07:06:28 Under GSM-channel i mean channel that android OS use to get messages from google cloud Feb 18 07:07:29 g00s: i think so too, but i have no arguments to prove it Feb 18 07:07:45 post is sending a message from the device to the server.. GCM sends a message from the server to the device. Feb 18 07:08:07 one isn't "thinner" than the other, they're used for different things. Feb 18 07:09:26 JesusFreke: no, i'm about channel that android OS using to be in touch with google Feb 18 07:10:43 I'm talking about GCM. You said GCM. Feb 18 07:10:54 i guess there is some kind of channel using for this, may be it binary packed crypted and shit, i don't know Feb 18 07:11:13 yes i'm about GSM Feb 18 07:11:48 GCM, as in google cloud messaging? Or GSM as in the cellular network? Feb 18 07:11:50 *ПСЬ Feb 18 07:11:55 *GCM Feb 18 07:12:03 google cloud messaging Feb 18 07:12:06 yeah. I described GCM. Feb 18 07:12:15 and then you're all like "no, that's not what I was talking about" Feb 18 07:12:37 but in any case, I'm off to read a bit before I go to bed :) Feb 18 07:12:46 JesusFreke reading anything good ? Feb 18 07:13:10 g00s: just started a new book. it's decent so far. Feb 18 07:13:16 more precisely i'm about how GCM is implemented in android OS, they must be using some kind of channel Feb 18 07:13:50 guys Feb 18 07:13:55 I have this problem Feb 18 07:14:02 ondroed: I don't know the specific details, but afaik, it relies on the device keeping a network connection open to the server, and then server sending a packet to the device when it has a message to send Feb 18 07:14:28 that's the typical way you would implement a "push" solution like that. Feb 18 07:14:57 g00s: "Promise of Blood", by Brian McClellan Feb 18 07:15:03 only a few chapters in though Feb 18 07:15:09 can some one give me some info for gesture GestureDetector? with fragments? i have tried but the onfling doesnt work Feb 18 07:15:38 http://pastebin.com/9vfG1T6r Feb 18 07:15:41 JesusFreke: so one of us here says that such implementation is not thinner than http-post channel Feb 18 07:15:43 JesusFreke i see (just amazon'd) Feb 18 07:15:54 could somebody explain me Feb 18 07:16:15 why is this happening on some phones and on some it works fine Feb 18 07:16:26 i tested it out on 7 android phones Feb 18 07:16:28 the gesturedetector doesnt dectect Feb 18 07:16:41 and on 2 out of 7 this doesn't work Feb 18 07:17:29 started it based on a recommendation by brandon sanderson (he was apparently one of his students, or something) (https://www.goodreads.com/author_blog_posts/7865417-brian-mcclellan-s-the-autumn-republic) Feb 18 07:18:09 0 fucks are given to me Feb 18 07:18:58 JesusFreke that does sound more exciting than 'Git in Practice' (what i'm reading) :) Feb 18 07:19:40 g00s: can you give some proofs that google channel is more cool and shit than http-post channel? Feb 18 07:19:45 "And then the dashing young commit spawned a child, after an all-night octopus merge" Feb 18 07:20:11 JesusFreke maybe you should write a git book :) Feb 18 07:20:31 but there was one commit without a parent ! Feb 18 07:20:41 e=mc^2, thus gcm is more cool and shit than http-post Feb 18 07:21:02 and with that non-sequitur, I'm out :) Feb 18 07:21:04 Hello. If I set too less height to TextView it gets cut. Is it possible to force it to show full text even when it doesn't fit? Like overflow:show in html Feb 18 07:21:21 ondroed gcm = google comrade messaging, so you should use it Feb 18 07:21:52 hey thebiffman Feb 18 07:21:54 oops Feb 18 07:22:03 g00s: ! Feb 18 07:22:09 heh :D Feb 18 07:22:12 i know you meant me :) Feb 18 07:22:31 of course :D Feb 18 07:22:42 no offense thebiffman Feb 18 07:22:46 g00s: we are now merging all the weeklong sprints into the working branch that had work done on it (detached) for the past month Feb 18 07:22:55 a giant pain in the ass Feb 18 07:23:13 yeah merging is hard ... do you think another branch model is needed ? Feb 18 07:23:22 we spent all day, 4 devs Feb 18 07:23:24 comrade said that GCM uses xmpp that uses xml that is no so cool and shit.. you know Feb 18 07:23:26 going over the changes Feb 18 07:23:33 cherry-pick specific changes Feb 18 07:23:43 now we need to make sure everything runs Feb 18 07:23:50 and then add the final touches Feb 18 07:24:02 i ... get this uneasy feeling with cherry picking Feb 18 07:24:29 thepoosh why wasn' each sprint merged as completed ? why all now ? Feb 18 07:24:32 we actually pulled master into the working branch Feb 18 07:24:34 instead Feb 18 07:24:44 because work has diverted so much between Feb 18 07:24:50 a complete material redesign Feb 18 07:24:58 with functional changes Feb 18 07:24:58 If I set too less height to TextView it gets cut. Is it possible to force it to show full text even when it doesn't fit? Like overflow:visible in html Feb 18 07:25:26 afl_ext: I remember reading about a auto text size TextView Feb 18 07:25:54 http://pastebin.com/9vfG1T6r I get this issue with 2 out of 7 phones tested ? Feb 18 07:26:00 thepoosh the problem is they wont fit because its alphabetic column on right, and it just overlaps each other Feb 18 07:26:02 afl_ext: http://stackoverflow.com/a/5535672/1056359 Feb 18 07:26:35 I know where is the problem and how it happens Feb 18 07:26:46 but don't know why it happens Feb 18 07:30:07 thepoosh now, its time to rewrite the app in kotlin Feb 18 07:30:25 I'm actually reading the doc JakeWharton wrote about it Feb 18 07:30:33 we are moving to AS soon Feb 18 07:30:38 thank god Feb 18 07:30:48 be careful what you wish for :) Feb 18 07:30:57 bliss Feb 18 07:31:21 JakeWharton i noticed your bug filed on undeprecating that method :D Feb 18 07:31:33 yes Feb 18 07:31:39 it was incorrectly marked deprecated Feb 18 07:31:54 which one? Feb 18 07:33:51 Can someone give me a headstart for creating custom ROM, other than downloading the source code? Feb 18 07:34:05 Infernus yes, head start over to #android-root Feb 18 07:34:27 posted the question there, no one active over there Feb 18 07:34:54 Infernus this is not the channel for cooking toms Feb 18 07:34:56 *roms Feb 18 07:36:17 I see. Will rather wait for people in #android-root to wake up! :) Feb 18 07:41:10 thepoosh don't you guys have some special sauce native c/c++ parts ? Feb 18 07:42:33 g00s: can you help me ? Feb 18 07:42:46 harisk92 no, i have no idea Feb 18 07:43:21 g00s: yes we do, I'm not part of that team Feb 18 07:43:21 g00s: do you know anyone who could help me with this issue Feb 18 07:43:35 we have a few guys who wrote the whole camera part in C++ Feb 18 07:43:55 thepoosh yeah i guess it comes down to how easy migrating those pieces to the new build system / AS goes Feb 18 07:43:56 Infernus: look at s.android.com Feb 18 07:44:14 they are going to continue developing the NDK parts in Eclipse Feb 18 07:44:17 probably Feb 18 07:44:31 it's integrated as an SDK Feb 18 07:44:36 so it shouldn't be an issue Feb 18 07:45:30 Infernus: also, you should take advantage of CWM while they're open sourced Feb 18 07:46:16 Infernus: I meant Cyanogenmod Feb 18 07:46:27 https://github.com/CyanogenMod Feb 18 07:52:50 I’ll check it out. I guess they modify the vanilla android a lot. Feb 18 08:21:56 I am trying to read the date/time of an event in the calendar and compare it to the current time. My problem is the calendar events are stored as strings and I find the correct format to use to convert the string into date/times. Please help. Feb 18 09:06:55 heyy ltns Feb 18 09:07:21 ltns? Feb 18 09:07:23 also hi Feb 18 09:18:17 yodaym and lemonxah Feb 18 09:18:18 derrrp, anyone know any a HTTP post would be interpreted as HTTP get? Feb 18 09:18:20 itns ! Feb 18 09:18:34 know why* Feb 18 09:19:30 itns .. what is itns? Feb 18 09:19:35 and hey g00s Feb 18 09:19:43 got the offer and resigning today :) Feb 18 09:19:59 the google offer? Feb 18 09:20:05 lemonxah resigning from mxit to go to the other company ? Feb 18 09:20:09 no .. i wish :) Feb 18 09:20:26 someone in here was saying something about google a ways back.. Feb 18 09:20:33 no i have left mxit last year and i was in a bit of a transit position to find the right noe :) Feb 18 09:20:35 congrats lemonxah Feb 18 09:20:37 thnx Feb 18 09:20:55 s/noe/one/ Feb 18 09:21:02 oh so this is 3rd company you are starting with ? Feb 18 09:21:29 mxit -> transit -> new positin ? Feb 18 09:22:06 yeah Feb 18 09:22:20 well not MY third company i am working for .. prob 10th Feb 18 09:22:27 well 8th?!? Feb 18 09:22:33 i have not counted over the years Feb 18 09:22:40 lemonxah: you work for mxit ? Feb 18 09:22:47 used to zylinx Feb 18 09:22:56 i was team lead / tech lead on the android project there Feb 18 09:23:13 cool, did you know chris miller ? Feb 18 09:23:17 but they are "closing down" that side of their business Feb 18 09:23:50 i have seen him around wouldn't say i know him Feb 18 09:23:55 yeah i heard Feb 18 09:23:57 lemonxah what will they focus on ? Feb 18 09:24:18 they are moving to some other small app that lives inside of mxit Feb 18 09:24:43 so they will keep the infrastructure going and the platform there just not develop the platform only on the platform if that makes sense Feb 18 09:24:51 like facebook apps are on the facebook platform Feb 18 09:25:21 and they might make a new android app called Reach Feb 18 09:25:31 which is what chris is working on Feb 18 09:25:55 lemonxah why wouldn't you be working on reach though? so the android part isn't going away ? Feb 18 09:27:04 lol... chris told me he hates android Feb 18 09:27:16 well coding for android Feb 18 09:27:19 haha Feb 18 09:27:29 Morning all Feb 18 09:27:48 reach is currently done in a dsl that renders on the mxit app Feb 18 09:27:57 they are going to make reach an android app possibly Feb 18 09:28:16 for myself, android is like JEE - not fun, but marketable skill ;) Feb 18 09:28:23 but that ship is sinking g00s and i really do like feeding my family more than just being loyal :) Feb 18 09:28:31 sure Feb 18 09:28:43 yes g00s unless you get to do what i am about to .. in a language like scala or kotlin Feb 18 09:28:47 then its fun Feb 18 09:29:28 lemonxah do you really think scala is a good fir for android? 2.12 requires java 8, TypeSafe doesn't seem to care about android at all Feb 18 09:29:55 s/fir/fit Feb 18 09:31:09 * Tricknology googles android httppost interpreted as httpget Feb 18 09:31:44 + apache Feb 18 09:32:10 Tricknology switch from apache httpclient to okhttp :| Feb 18 09:32:11 well you could stick with 2.11 Feb 18 09:32:16 or use kotlin Feb 18 09:32:24 i have not yet decided Feb 18 09:32:34 also i have seen people compile android on java 8 Feb 18 09:32:41 with some cool thingies Feb 18 09:32:56 not being able to move beyonf 2.11 now (ever?) doesn't seem like a bright future Feb 18 09:33:06 well just for this project Feb 18 09:33:13 not like i wont move on Feb 18 09:33:38 and i am sure the more popular java 8 becomes aapt would be able to do some java 8 compiles with some stuff Feb 18 09:33:41 only the future will tell Feb 18 09:34:53 fine g00s Feb 18 09:35:16 ok brb lunch Feb 18 09:35:26 see ya Feb 18 09:37:19 OKHttpClient inside of AsyncTask? Feb 18 09:38:11 or does OKHttpClient include all that fun stuff? Feb 18 09:38:40 to the docs.. Feb 18 09:45:15 Try using Retrofit Feb 18 09:45:31 along with RXjava Feb 18 09:45:46 s/RXjava/rxJava Feb 18 09:54:27 g00s Feb 18 09:54:38 okhttp still has the same issue Feb 18 09:56:12 hi Feb 18 09:56:24 is it normal that my listview is taking all the height space Feb 18 09:56:34 even if I set layout_height to wrap_content? Feb 18 09:58:12 if I test this with a normal httprequest fram java it works fine Feb 18 09:58:33 just from the device over my network it gets interpreted as a httpget, and serves up a webpage.. Feb 18 10:01:42 derp i got it.. Feb 18 10:01:47 okhttp for nothing Feb 18 10:02:17 the culprit: www.url.com:8080/backend Feb 18 10:02:30 vs www.url.com:8080/backend/ Feb 18 10:02:43 ^^ Feb 18 10:13:46 apply plugin: 'android-library' or apply plugin: 'com.android.library'? Feb 18 10:16:21 why project won't build still :\ Feb 18 10:19:23 Hi Feb 18 10:19:34 hihi Feb 18 10:19:38 This might seem a stupid question, but I am not used to GUI development Feb 18 10:20:16 I have a master-detail screen, and on wide handsets, both the master and the detail screens are shown Feb 18 10:20:32 if the detail screen is shown, how do you handle that? I don't know what to show there Feb 18 10:20:51 usually on the single-pane mode, I know what to show because something has been selected on the list Feb 18 10:21:24 but on the dual mode, there is no "ID" on the getArguments() (as expected) Feb 18 10:33:36 you have to set the "ID" to the bundle in the fragment that is being shown Feb 18 10:34:13 you can choose some kind of default screen if there is nothing selected Feb 18 10:41:35 oh great, Android Studio is trying to merge my manifest files :/ How can I tell it either not to or to use the manifest file in the project I am bulding to override others? Feb 18 10:41:58 In particular, the libraries I am adding as a dependency are adding their own launchers in, I don't want that Feb 18 10:47:02 pfn, what are you thoughts of scala 2.12 using java 8 and thus not compatible with android? and just keep using scala 2.11.X till such a time that 2.12 will compile for android? Feb 18 10:47:16 like compiling directly to dex or something like that Feb 18 10:48:00 cause i dont really see an issue with keeping with 2.11.X sure no new features but its still scala and not java :) Feb 18 10:53:24 lemonxah, just use the old version Feb 18 10:53:34 yeah i know that is what i said Feb 18 10:53:40 its not getting worse just because there is a new one :) Feb 18 10:53:52 but then some ppl keep saying that scala wont work on android casue 2.12 is java 8 Feb 18 10:54:10 but there is a version for androido 2.11.x? Feb 18 10:54:11 meh Feb 18 10:54:28 i dont know. id just use the old scala version Feb 18 10:54:42 yeah me too was just wondering what others thought about that Feb 18 10:54:51 its like using a tool that works who cares what the version is? Feb 18 10:55:08 i was going to learn kotlin but its too much work :) Feb 18 10:55:12 I think I read pfn said the same some time ago. Feb 18 10:55:19 im currently writing my first kotlin app Feb 18 10:55:29 me too while learning Feb 18 10:55:32 definitly easier to learn than scala :D Feb 18 10:55:35 but i prefer scala Feb 18 10:55:51 i have already learned scala though Feb 18 10:56:19 its kinda like sitting between the chairs for me Feb 18 10:56:32 what do you mean? Feb 18 10:56:56 kotlin being between java and scala (feature and difficulty) Feb 18 10:57:09 oh ok Feb 18 10:57:11 yeah Feb 18 10:59:14 evening Feb 18 10:59:19 evening Feb 18 11:00:28 here's the problem I'm trying to solve today, any suggestions are welcome: What's the best method to send a string from one Fragment of a ViewPager to another Feb 18 11:01:09 either use a bus, or send it to the activity and from the activity to the fragment Feb 18 11:01:11 I have some ideas but not sure what's best practise Feb 18 11:01:40 I found the EventBus class. Feb 18 11:01:45 teegee: evening?! it's 13:00 Feb 18 11:02:11 in any case, listen to danijoo Feb 18 11:03:38 you are all wrong. its 12:00 ! Feb 18 11:03:48 wat?! Feb 18 11:03:52 danijoo: where are you?! Feb 18 11:04:01 GMT+1 :/ Feb 18 11:04:20 hmmmm Feb 18 11:04:23 hmmmmmm Feb 18 11:04:32 I will accept! Feb 18 11:04:47 germany to be exact Feb 18 11:04:54 it's 20:04 Feb 18 11:05:10 gordon_: shut up! you're crazy!!! Feb 18 11:05:14 : D Feb 18 11:05:18 never said I'm not Feb 18 11:05:19 just a question is there an event bus introduced with lollipop? Feb 18 11:05:20 ;) Feb 18 11:05:28 GMT+10.. beat that Feb 18 11:05:37 lemonxah, no. but there are libraries Feb 18 11:05:37 lemonxah: to the best of my knowledge, it's an external lib Feb 18 11:05:38 lemonxah: havent heard of it. why ? Feb 18 11:05:42 and how does that compare to Otto from square Feb 18 11:05:54 there is also the GreenRobot one Feb 18 11:05:56 just wondering i thought i have heard it somewhere so i thought i would ask here Feb 18 11:06:08 we use GreenRobot's one Feb 18 11:06:29 https://github.com/greenrobot/EventBus Feb 18 11:06:44 we don't use one Feb 18 11:06:49 you should Feb 18 11:06:50 we use interfaces Feb 18 11:06:55 eventually we will Feb 18 11:07:04 when it will coast too much to stay this way Feb 18 11:07:21 thepoosh: the sooner the better I guess Feb 18 11:07:26 that's the reason we are moving to AS now Feb 18 11:07:33 we have too many methods for Eclipse Feb 18 11:07:38 heh Feb 18 11:07:40 we want IDE gradle builds Feb 18 11:07:44 that sucked Feb 18 11:07:57 we had that too Feb 18 11:08:01 and this is better than multidex which we probably will have to do as well Feb 18 11:08:05 but we migrated Feb 18 11:08:10 to AS? Feb 18 11:08:13 multidex... we tried, it failed Feb 18 11:08:15 yes to AS Feb 18 11:08:34 so, we had our custom build.gradle and it conflicted with AS's Feb 18 11:08:45 so we are migrating now, and it's a slow process Feb 18 11:08:52 but it's almost ready Feb 18 11:09:03 later it building will be slow process ;) Feb 18 11:09:16 heh Feb 18 11:09:19 we migrated when AS was version 0.3.something i think or 0.4.x Feb 18 11:09:24 even with incremenatl builds? Feb 18 11:09:29 *incremental Feb 18 11:09:40 so, there's not a native bus framework? Feb 18 11:09:42 lemonxah: that was a sucky version Feb 18 11:09:43 remember it wasn't the easiest but now its better cause i understand gradle and AS now Feb 18 11:09:46 teegee: no Feb 18 11:09:46 thepoosh: yeah, it's just slow Feb 18 11:09:52 yeah but we have grown with it Feb 18 11:09:59 maybe because of build flavours and proguard, no idea Feb 18 11:10:07 interesting Feb 18 11:10:25 well, in a week or two I'll understand this as well Feb 18 11:10:25 I guess that includes delegates then Feb 18 11:10:37 teegee: yes, just read the guids Feb 18 11:11:36 thepoosh, yeah its not that hard but converting from eclipse to as just mostly the files that you dont need from intellij and how it all fits Feb 18 11:11:42 takes some time to get around Feb 18 11:11:52 but over all the move was positive Feb 18 11:13:58 now AS does that automatically Feb 18 11:14:02 or at lease it tries Feb 18 11:15:25 the first thing i did in AS was to change the key mapping to eclipse Feb 18 11:15:34 hopefully it will help the transition Feb 18 11:17:06 thepoosh, i found a clean break with eclipse was better Feb 18 11:17:20 i printed the shortcuts on a piece of paper Feb 18 11:17:48 https://imgflip.com/i/hsgpw Feb 18 11:18:01 lol Feb 18 11:18:34 Ankhwatcher, : D Feb 18 11:19:07 well. I dont like it too Feb 18 11:19:29 i haven't used it yet Feb 18 11:19:36 i am going to write a sample app quick and try it Feb 18 11:19:56 it would require me to do huge rewrites because of the way it forces viewholders Feb 18 11:20:42 https://imgflip.com/i/hsgox Feb 18 11:22:02 https://imgflip.com/i/hsgwl Feb 18 11:27:55 * Ankhwatcher thinks we can all just communicate this way from now on Feb 18 11:29:33 http://arstechnica.com/tech-policy/2015/02/patent-troll-claims-to-own-bluetooth-scores-15-7m-verdict-against-samsung/ Feb 18 11:35:18 danijoo: so it's their fault that no two parts of bluetooth are the same or interoperate correctly? Feb 18 11:35:23 lets get 'em Feb 18 11:42:18 havent tried recycled view Feb 18 11:51:39 Hi, is there anything I need to do to get a BluetoothGatt readCharacteristic() to work? Currently when I readCharacteristic, it never calls onCharacteristicRead(). Write and notify (after enabling notifications) seem to work fine Feb 18 11:53:35 emorris, pastebin the code and someone with appropriete experience could comment Feb 18 11:54:00 its hard to solve a problem that you cant see Feb 18 11:55:42 It's a (not very heavily) modified of the BLE sample: http://pastebin.com/WumMBYpG Feb 18 12:00:37 thepoosh: I'm getting somewhere. Thanks Feb 18 12:02:56 lemonxah, yeah, I've never had a problem with sticking to 2.11 Feb 18 12:04:10 I'd like to consider writing a straight to dex compiler, but who knows if I'd ever get around to it Feb 18 12:05:20 we believe in you pfn Feb 18 12:05:21 :) Feb 18 12:06:01 there's still the possibility of bytecode manipulation for backward compatibility, like what retrolambda does Feb 18 12:06:33 that was one of my motivations for adding it to the plugin Feb 18 12:06:35 true but i dont mind sticking with 2.11 Feb 18 12:08:02 Ankhwatcher: that was harsh Feb 18 12:08:53 thepoosh: I dropped my phone the other day because I pulled it out of my pocked to cycle bluetooth on and off so it would connect Feb 18 12:09:14 that sucks Feb 18 12:09:20 dod you break the screen? Feb 18 12:09:31 nah, I was lucky it landed on it's back Feb 18 12:09:36 but ffs Feb 18 12:09:45 get it together, bluetooth Feb 18 12:10:05 I have to do this every time I pair my headset Feb 18 12:10:14 if you had a smart watch Feb 18 12:10:24 you could've done it from there Feb 18 12:10:29 without taking out the device Feb 18 12:10:32 thepoosh: good point Feb 18 12:10:50 except that I can't tell whether or not it worked except by checking the phone Feb 18 12:16:46 emorris: you want to watch this. https://www.youtube.com/watch?v=qx55Sa8UZAQ Feb 18 12:20:41 I have a JSONObject json Feb 18 12:20:42 I want to check if it is null: if (json != null) Feb 18 12:20:42 my json result is: {"matchdata":null} Feb 18 12:20:42 so my if (json != null) does not take effect Feb 18 12:20:48 how to fix it Feb 18 12:21:45 you could read that json with a JsonReader or with gson into an object class data { public whateverType matchdata; } Feb 18 12:21:53 and then check if matchdata in that is null Feb 18 12:22:07 dot8: have you tried json.isNull("name") Feb 18 12:22:08 ? Feb 18 12:22:10 of just read the first json entry with a JsonReader and check the result Feb 18 12:22:19 or that Feb 18 12:22:29 that's from org.json Feb 18 12:22:59 <_rm> hi everyone Feb 18 12:23:06 hi Feb 18 12:23:08 this means that if you're using a different json lib it's not going to work Feb 18 12:23:11 _rm: !! Feb 18 12:23:15 _rm -rf Feb 18 12:23:30 <_rm> has anyone noticed that scaling a view containing a webview causes weird glitches in the webview? Feb 18 12:23:39 webviews suck Feb 18 12:23:46 <_rm> thepoosh: oh i know that Feb 18 12:23:55 yes _rm then i finally convinced the company to not use a webview Feb 18 12:23:56 <_rm> still, this happens on android versions prior to 4.4 Feb 18 12:24:09 its cause prior to 4.4 it used a different webview Feb 18 12:24:22 i believe the webview in 4.4 is a chrome webview Feb 18 12:24:35 you'll probably need to render the html again after scaling Feb 18 12:24:47 <_rm> i've tried invalidating the view after scaling Feb 18 12:24:51 <_rm> sometimes it works, usually it doesn't Feb 18 12:25:20 <_rm> crosswalk would be an option, if it supported transparency Feb 18 12:25:42 just out of curiosity why are you using a webview Feb 18 12:25:46 ^ Feb 18 12:25:47 <_rm> anyway, i just wanted to confirm that it's because webview sucks, not because of some weird android view layout issue that i'm not understanding Feb 18 12:26:14 <_rm> lemonxah: in this case it's to overlay interactive elements on an image Feb 18 12:26:37 what kind of interactive elements? Feb 18 12:26:46 and why cant that be done with normal views? Feb 18 12:26:59 <_rm> it's crossplatform :) Feb 18 12:27:00 sorry just wondering what the usecause is Feb 18 12:27:11 arghh .. crossplatform :/ Feb 18 12:27:32 i dislike that Feb 18 12:27:44 +1- Feb 18 12:27:45 <_rm> well, that's the reality Feb 18 12:27:46 +10 Feb 18 12:27:52 life is not fait Feb 18 12:27:56 *fair Feb 18 12:27:57 its like either spend more time making everything native and nice or spend less time and make it look bad on all platforms Feb 18 12:28:12 <_rm> the thing is, this whole thing works fine on ios Feb 18 12:28:16 <_rm> (and newer android versions) Feb 18 12:29:05 <_rm> so anyway, the conclusion is that there's nothing i can do? Feb 18 12:29:21 stop developing cross plaform Feb 18 12:29:22 <_rm> except somehow convince our users to replace their damn ancient samsungs :) Feb 18 12:29:26 that might help Feb 18 12:29:44 <_rm> well, in this case, a native solution wouldn't be practical Feb 18 12:29:49 there is nothing you can do with default webviews no Feb 18 12:30:13 you could use crosswalk or something like that Feb 18 12:30:34 but that is still a runtime that needs to be installed and means heavier app footprint Feb 18 12:31:30 thepoosh: jepp, thats it. thx Feb 18 12:31:30 <_rm> oh yeah it's like 40 megs Feb 18 12:31:44 <_rm> but yeah crosswalk doesn't support transparency yet Feb 18 12:31:57 yes its huge for ppl in my country for example its very expensive data Feb 18 12:32:27 http://gizmodo.com/second-coming-the-first-http-update-in-16-years-http-1686479223 Feb 18 12:32:28 just make a native implementation for android if you want it to work fast Feb 18 12:50:29 is it possible to show the soft-keyboard and catch input events without using an input field? Feb 18 12:51:21 * lemonxah is very curious as to why Feb 18 12:51:31 do you want to do something secritive? Feb 18 12:51:41 how about doing some gesture rather than the keyboard? Feb 18 12:51:50 well we are creating a remote app and would like to catch on-screen keyboard events Feb 18 12:52:19 you could make an invisible textview Feb 18 12:52:25 i mean edittext Feb 18 12:52:38 and then keep clearing it Feb 18 12:52:55 then if you give that edittext focus it would bring up the keyboard for you? Feb 18 12:54:54 yeah i guess that's the route we will have to take Feb 18 12:55:05 thanks Feb 18 12:55:15 i didn't do anything ;) Feb 18 13:22:43 whats happening Feb 18 13:29:43 [21:24] C:\Program Files\Minimal ADB and Fastboot>adb pull /data/misc/audit/audit.log > C:\Program Files\Minimal ADB and Fastboot Access is denied. [21:24] any idea why is this happening? Feb 18 13:31:56 rooted? Feb 18 13:33:06 yeah Feb 18 13:33:21 need to get those logs to fix some selinux permission error Feb 18 13:33:47 C:\Program Files\Minimal ADB and Fastboot>adb pull /data/misc/audit/audit.log 1143 KB/s (36612 bytes in 0.031s) Feb 18 13:33:55 I cant find the file anywhere Feb 18 13:34:30 if you dont give a destination, it should be PWD Feb 18 13:34:39 PWD? Feb 18 13:34:56 workind directory Feb 18 13:35:13 cant find it anywhere Feb 18 13:36:22 mh. but since the command works without a destination directory, the issue seems to be that you dont have the rights to write to the folder you want to Feb 18 13:36:25 on your local machine Feb 18 13:36:55 uh so how do I fix it ? Feb 18 13:37:00 Im running windows btw Feb 18 13:37:01 fix your permissions Feb 18 13:37:07 i know Feb 18 13:37:12 If I create a custom message handler within an activity, will this automatically run on the UI trhread? Feb 18 13:37:16 what permission o.O? Feb 18 13:37:32 write permissions Feb 18 13:37:43 and how do I do that? Feb 18 13:37:44 windows has them too :p Feb 18 13:38:04 rightclick->properties->something i guess Feb 18 13:42:17 wow Im unable to remove the read only Feb 18 13:42:40 you arent admin then Feb 18 13:49:14 makani, Handler#handleMessage runs on the UI thread Feb 18 13:50:45 o.o im not a admin ? Feb 18 13:50:47 lol Feb 18 13:50:48 wtff Feb 18 13:52:26 ok so Zenn are you trying to pull the audit log into the C:\Program Files\... directory? Feb 18 13:52:33 yeah Feb 18 13:52:33 windows wont allow that Feb 18 13:52:47 so what should I do? Feb 18 13:52:48 make a folder on your pc called c:/somefolder Feb 18 13:52:53 lemonxah, i think it does if you open the shell as admin Feb 18 13:52:56 then pull the file to that folder Feb 18 13:53:03 yeah if you open the shell as admin Feb 18 13:53:06 so when designing communiaton between a service and an activity, is it advisable to use a message handler instead of a broadcast receiver? Feb 18 13:53:12 but if you dont have admin privileges on the machine Feb 18 13:53:19 makani, yes Feb 18 13:53:24 Im on admin on my machine Feb 18 13:53:29 this is pretty stupid Feb 18 13:53:35 Zenn, but the shell you are running adb in isnt Feb 18 13:53:44 its run with user privileges Feb 18 13:53:57 makani, you can use the binder when binding to a service if its a bound service to do the communitcation between what ever binded to the service Feb 18 13:53:59 why you did not tell me eariler? Feb 18 13:54:26 Zenn, then run the console in adminatrator mode Feb 18 13:54:32 i wasn't reading earlier? Feb 18 13:54:38 soz was reading some other channel Feb 18 13:54:49 lemonxah, yes, but when the service wants to inform the activity about new data to be displayed, how should I arrange this? Feb 18 13:54:50 so my cmd isnt in admin mode? Feb 18 13:55:06 Zenn, the default is not running in admin mode Feb 18 13:55:08 CUrrently I am using a local broadcast Feb 18 13:55:14 makani, BroadcastReceiver#onReceive runs on ui thread too Feb 18 13:55:31 no, it doesnt?! Feb 18 13:55:49 makani, you can use a listener Feb 18 13:56:17 C:\Program Files\Minimal ADB and Fastboot>adb pull /data/misc/audit/audit.log > C:\Lulz Access is denied. Feb 18 13:56:18 lemonxah, listener? Feb 18 13:56:21 wtf man Feb 18 13:56:59 my last resort is to reformat to ubuntu once again annoying shitty windowsz Feb 18 13:57:27 makani, i usually use the scheme lemonxah said Feb 18 13:57:30 how do I freaking adb pull on windows goddamnit Feb 18 13:58:04 pass the listener to the binder Feb 18 14:00:05 Sorry I don't get this Feb 18 14:01:36 Could you provide me some more details on this (links, keywords) Feb 18 14:43:39 I'm trying to use SwipeRefreshLayout on a Fragment with a ListView and the refresh works, only problem is I can't scroll up anymore. How do I check if the ListView in the Fragment is at the top before refreshing? Feb 18 14:54:05 Hi all. Is it possible to restore an (bit to bit) android image stocked into an external sdcard from Android System Recovery? Feb 18 15:01:00 What might cause an intent sent with sendBroadcast to be sent in some cases but not others? Feb 18 15:01:40 received** in some cases... Feb 18 15:11:00 wrong implementation Feb 18 15:14:41 danijoo, seeminly, if I change the action string to be the same as a different action it does call the receiver Feb 18 15:14:46 How can I add a line for Spinners such that it looks like an EditText, but opens a dropdown on click? Feb 18 15:15:12 emorris, ok Feb 18 15:15:39 barq, sounds like you want search suggestions Feb 18 15:16:03 barq, like this: http://www.grokkingandroid.com/wordpress/wp-content/uploads/2012/07/local_search.png ? Feb 18 15:16:04 danijoo: search suggestions? Feb 18 15:16:10 danijoo, never mind, I'm an idiot Feb 18 15:16:37 danijoo: No, the line before the dropdown is shown. Feb 18 15:17:03 barq, sorry i dont get it Feb 18 15:17:31 An EditText has a grey line by default where you write text. Feb 18 15:17:40 A spinner only has the little grey corner. Feb 18 15:17:57 ok. well... just change the background then. Feb 18 15:17:58 I want to modify my spinner so it has a grey corner AND a line such as the editText. Feb 18 15:18:03 thats just the background image Feb 18 15:20:19 hi all, i am pretty new to android dev, am wondering what's a good place to learn? beginner to advanced stuff. thanks! Feb 18 15:22:31 coderzm, d.android.com Feb 18 15:22:53 yup was looking @ it. thanks! Feb 18 15:23:46 i liked the Big Nerd Ranch Android book Feb 18 15:24:16 Ah yes, I came across that too. Is that a good reference book? Feb 18 15:24:40 i learned it via youtube Feb 18 15:25:12 but question #1 is: do you know java? Feb 18 15:25:29 getFilesDir().toString() + "/treasure.xml" concatenated should return /data/data/... as the first two directories, right? Feb 18 15:25:32 if the answer is no or "a bit": learn java first, and come back after that Feb 18 15:25:46 Mittendeep, sometimes :p Feb 18 15:25:49 nah it's more like a book you should work through completely or most of the way Feb 18 15:25:51 danijoo: started learning a while back. but more proficient with web languages Feb 18 15:26:02 coderzm, then learn java first Feb 18 15:26:47 Mittendeep, you cant rely on that because it depends on the phone. Some phone might put it into "/fuck/you/developers/this/is/fragmentation" Feb 18 15:27:11 danijoo: got it! Feb 18 15:27:58 I am trying to get my app to read an xml file I created and then read it back in. It looks like file creation is going along fine but I am having trouble parsing the xml and getting the info from the right tags Feb 18 15:32:09 heya folks. anyone have advice how to update from 4.0.4 to 4.2 or higher? i needs the device for testing :?. Feb 18 15:32:56 phix: did you ever figure out why your project wasn't building with xying-2.2 yesterday? Feb 18 15:33:22 pablq: On what kind of device? Feb 18 15:35:18 pablq: You can get a simulator or emulator going with 4.2, if it's an actual device that doesn't have an upgrade yet from the manufacturer then you will have to go the whole bootloader route Feb 18 15:37:08 yiati, did you see what I said about the HttpClient freezing? Feb 18 15:37:31 it was because of utf-8 encoding on my StringEntity :| Feb 18 15:47:01 yiati: thanks. it is an actual device. i checked via the devices settings menu but it couldn't find an available update Feb 18 15:48:46 weird, I think I dreamed that android-5.1.0_r1 was tagged in aosp Feb 18 15:49:38 pablq, then there is no available. Use a custom rom if you really need that device on 4.2.2 Feb 18 15:55:23 what do I need to do to get a ripple to start at the tap location with appCompat/v21? Feb 18 15:56:03 I have a selector for two color states (enabled, disabled), standard is , v21 is Feb 18 15:56:05 shekibobo, for api level 21 devices just add a ripple drawable or ripple xml Feb 18 15:56:10 you cannot get a ripple on appcompat if you're not on v21 Feb 18 15:56:13 but when I click it, the ripple starts in the center Feb 18 15:56:17 on v21, you get ripples automatically Feb 18 15:56:22 below 21 u cant get it without a lib Feb 18 15:56:42 set the right attributes for Feb 18 15:58:30 danijoo: thanks. i might try the emulator route Feb 18 16:02:50 should a wrap a or replace it in v21? Feb 18 16:03:22 if you want to go with design guidelines, i'd say it should replace it Feb 18 16:03:50 yeah, doesn't allow .... but it doesn't seem to work with state lists... Feb 18 16:21:36 shekibobo, look at anything that supports ripple in v21 and follow the same pattern Feb 18 16:21:42 i.e. look at listselector background, button background, etc. Feb 18 16:21:59 it's included with the sdk for a reason Feb 18 16:31:04 I have a custom simple_spinner_item and simpel_spinner_dropdown_item. I am setting these using the following code: http://pastie.org/private/npuxiatadxaft1due2fmq However, the custom style is not applied. How can I fix this? Feb 18 16:39:50 barq: you are using the android version of the drawable with android.R, if you are wanting to use yours just use R.layout.XXX Feb 18 16:40:26 if i put image1 in drawable-xlarge-land-xhdpi and image2 in drawable-xlarge-xhdpi and run a 1280x800 wxga-device it always uses image1 (in portrait, as well as in landscape) is it not possible to use different images for such devices in portrait/landscape? Feb 18 17:02:00 <_cypha> is this the right place to ask about a problem with the android ndk ? Feb 18 17:02:17 probably yeah Feb 18 17:03:04 under what circumstances can the methods of an imported class be called without creating a new instance of that class with a constructor? Feb 18 17:03:45 higgens: Google "java static method". Feb 18 17:03:53 BTW, it has nothing to do with the import statement. Feb 18 17:03:59 higgens, factory methods, static methods, some other imported class created it Feb 18 17:04:32 TacticalJoke, good to see you. Are you on android studio or intellij? Feb 18 17:04:45 Hai. Android Studio here. Feb 18 17:05:16 dammit Feb 18 17:05:28 Are you having an IntelliJ issue? Feb 18 17:05:47 i wanted to get the gradle 1.1 unit tests working, but it seems like I have to wait for an IDE update Feb 18 17:06:11 because the experimental features switch from AS is missing. Feb 18 17:06:22 And I remembered you fiddled arround with junit when it came out Feb 18 17:06:36 Ah, yeah. That "Build Variants" tool window needs AS 1.1 Beta N, AFAIK. Feb 18 17:06:58 so im waiting for the next EAP . Feb 18 17:07:08 You could get it working with command-line Gradle, but that's no fun. Feb 18 17:07:25 ill wait :D Feb 18 17:07:30 TacticalJoke, danijoo, thanks! Feb 18 17:09:41 damn, today has been crazyyyyyy Feb 18 17:10:21 What happen, Napalm? Feb 18 17:11:29 just preping for a release Feb 18 17:11:39 custom hardware, custom firmware, custom software Feb 18 17:11:57 CTS and security tests Feb 18 17:12:03 just lots of shit to deal with Feb 18 17:12:37 Cadillac CTS? Feb 18 17:13:01 yiati: https://source.android.com/compatibility/cts-intro.html Feb 18 17:13:36 whatitis: I am overriding the custom style using my own theme. Feb 18 17:14:13 Napalm, cool never heard of that Feb 18 17:25:51 Hmm, setting a Toolbar's layout_height to "wrap_content" seems wrong in normal cases. Then it doesn't show the correct "ActionBar" height in landscape mode. Feb 18 17:26:10 Then, for example, the overflow button might have extra space underneath it, which looks weird. Feb 18 17:27:37 TacticalJoke: you have content paddings on it Feb 18 17:28:07 How do you mean? Feb 18 17:29:05 http://developer.android.com/reference/android/widget/Toolbar.html#setContentInsetsAbsolute%28int,%20int%29 Feb 18 17:29:11 i thought it was that Feb 18 17:29:14 but it doesnt look like it Feb 18 17:29:27 you might have a drawable for your nav icon might be pushing it all down Feb 18 17:30:51 I just have a Spinner. I'm using minHeight="?attr/actionBarSize". If I use layout_height="wrap_content", it looks fine in portrait but looks bad in landscape (navigation icons and overflow buttons have too much space underneath). This is on my phone and on the 5.0 emulator. Feb 18 17:30:55 why did Google remove methods from existing Java classes on Android? >_< Feb 18 17:31:19 If I use minHeight="?attr/actionBarSize", everything looks fine in portrait and landscape. Feb 18 17:31:22 Afzal: Which methods? Feb 18 17:31:46 finally the mike has come back to #android-dev Feb 18 17:31:46 Oops, I mean "if I use 'layout_height=...'". Feb 18 17:33:33 setDefaultMaxForRoute in http://developer.android.com/reference/org/apache/http/impl/conn/tsccm/ThreadSafeClientConnManager.html Feb 18 17:33:43 TacticalJoke, one example. Feb 18 17:34:00 whereas the origin apache implementation: http://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/impl/conn/tsccm/ThreadSafeClientConnManager.html Feb 18 17:34:44 Afzal: your looking at different versions Feb 18 17:35:14 A partition contains the directories: app bin data etc fonts framework lib lost+found media priv-app res tts usr vendor xbin; What is it? Feb 18 17:35:25 Napalm, where does it say version number? Feb 18 17:37:52 ah, this is the same outdated http client thing right? Feb 18 17:38:17 For what it's worth, it's better to use something modern that gets updated such as OkHttp. Feb 18 17:38:52 TacticalJoke, I agree. It was just something that was nagging me because the twilio java sdk doesn't work with Android because of this Feb 18 17:39:04 Since api 1.. That means 6 years ago.. They don't remove methods, they just don't update Feb 18 17:42:13 SimonVT: remember when Android didnt even have full Java 1.5 compatibility? ah those were the days Feb 18 17:42:24 i dont miss pulling my hair out ;) Feb 18 17:42:58 I have a custom simple_spinner_item and simpel_spinner_dropdown_item. I am setting these using the following code: http://pastie.org/private/npuxiatadxaft1due2fmq However, the custom style is not applied. How can I fix this? I am overriding the android style with my own in my theme/style. Feb 18 17:43:30 However, it works if I create a new Adapter that extends ArrayAdapter and override getDropdownResource. Feb 18 17:47:49 barq: When you say "the custom style is not applied", what exactly do you mean? Feb 18 17:49:18 TacticalJoke: I have a style, where the spacing between items is larger than the default style. This is the one I want to apply to all Spinners. Feb 18 17:52:29 what's a good RxJava operator for emitting an element on subscription if there were none in source? Feb 18 17:52:43 firstOrDefault doesn't seem to do it... Feb 18 17:53:08 is the source completed? Feb 18 17:53:58 barq: Could you post the style code? Feb 18 17:54:57 TacticalJoke: http://pastie.org/private/akodhbqcb3ahm56jyugwtg Feb 18 17:56:03 knapper_tech I believe firstOrDefault operates the same way as isEmpty Feb 18 17:56:17 "RxJava also implements the isEmpty operator. The Observable returned from isEmpty will return false if the source Observable emits an item, and true if it **completes without emitting an item.**" Feb 18 17:56:21 emphasis mine Feb 18 17:58:12 ah RxJava Feb 18 17:58:21 TacticalJoke: Any ideas? Feb 18 17:58:23 I really need to look into it :) Feb 18 17:59:01 JacobTabak: what are you using for fetching network data ? Feb 18 17:59:03 retrofit ? Feb 18 18:01:38 yes Feb 18 18:02:19 barq: I don't really understand the problem description. For example, you say this doesn't happen when you override getDropdownResource, but that method doesn't appear to exist in Android. Feb 18 18:02:43 I guess you mean "getDropdownView". Feb 18 18:02:47 Down* Feb 18 18:03:02 JacobTabak: are you unit testing it ? Like parsing json or something ? Feb 18 18:03:15 do you have DAO classes or something ? Feb 18 18:03:39 I wanted to extract it into classes like ie TweetDao Feb 18 18:03:47 speaking of unit testing, I hope they release the new android gradle plugin soon Feb 18 18:03:58 duuuude, got it working Feb 18 18:04:08 trevor-e: FWIW, the RC seems very stable to me. Feb 18 18:04:10 and simply create event bus event back to activity Feb 18 18:04:14 RxJava is the most fun thing I've done in programming in a while Feb 18 18:04:24 TacticalJoke: which RC? 1, 2, 37? Feb 18 18:04:32 but maybe you have some better idea JacobTabak ? Feb 18 18:04:43 gordon_, And use RxJava to write your event bus for kicks Feb 18 18:04:50 I'm currently using rc2. Feb 18 18:04:51 yea the RC looks like it's fine, but I'm hesitant to switch a work project to an RC Feb 18 18:04:56 my personal project is using it though :) Feb 18 18:05:14 trevor-e: there is unit test support but need to mock android classes Feb 18 18:05:30 TacticalJoke: Yes, getView and getDropdownView Feb 18 18:05:36 so still need to use robolectric Feb 18 18:05:37 better than using robolectric Feb 18 18:05:46 not really Feb 18 18:05:57 google will probably make second robolectric out of it Feb 18 18:06:03 in my opinion Feb 18 18:06:22 which is not bad if they will make it official and good Feb 18 18:06:32 barq: I guess it's related to the Context used for layout inflation. Is there a difference between the context you're passing to the ArrayAdapter constructor and the Context you were using in getDropDownView? Feb 18 18:06:57 I'm not super knowledgable on robolectric, but since we can mock android classes now with mockito what use does it have? Feb 18 18:07:15 robolectric has real Android code Feb 18 18:07:43 why should I mock an Intent, Bundle, or Uri when it's just Java code? Feb 18 18:09:00 ^ this Feb 18 18:09:05 is there much point in testing on API 18? if i am testing on 16,17,19,21 Feb 18 18:09:42 oh I see Feb 18 18:09:43 TacticalJoke: No, it's the same context. Feb 18 18:09:55 njcomsec: what I find from robolectric is lack appcompat support Feb 18 18:10:18 but hey... make ActionBarBuilder class and inject mock of it for testing ;) Feb 18 18:10:28 the need for appcompat support indicates you are not unit testing, but trying to integration test Feb 18 18:10:31 and incorrectly so Feb 18 18:10:50 JakeWharton: I dont want to test it Feb 18 18:10:51 TacticalJoke: These are the overriden methods from the extended adapter: http://pastie.org/private/fmtzjtcwkq4zxpdc1rofoa Feb 18 18:11:06 I try to apply tests for code base we have Feb 18 18:11:12 which is... not very good Feb 18 18:11:48 JakeWharton: are you usually extract retrofit code into some kind of Dao classes ? Feb 18 18:11:55 s/are/do Feb 18 18:11:59 no Feb 18 18:12:39 so you simply leave it in activity ? Feb 18 18:12:49 why is api 18 different for the actionbar? Feb 18 18:13:08 barq: Hmm, you're using "layoutInflater.inflate(android.R.layout.simple_spinner_item, null);" and ArrayAdapter is using "mInflater.inflate(resource, parent, false);". Wonder whether that is the key difference. Feb 18 18:13:16 (The parent.) Feb 18 18:13:55 njcomsec: no api 18 but if you are using appcompat you will have problem if you are creating it in activity's onCreate() Feb 18 18:14:20 So you think I should override in both cases? Feb 18 18:14:47 TacticalJoke: Feb 18 18:15:05 oh right. im not using appcompat. im just making some basic games for api16 and above Feb 18 18:15:13 I would try using "parent, false" in your override and see whether you get the same behaviour as ArrayList itself produces. Feb 18 18:15:18 ArrayAdapter* Feb 18 18:15:25 njcomsec: good for you ;) Feb 18 18:15:50 so i should be ok only testing on apis 16,17,19,21 Feb 18 18:16:22 what give of testing? Feb 18 18:16:26 unit ? integration ? Feb 18 18:17:07 Is there a way to prevent EditText from repopulating when the EditText is shown on a restored fragment? Feb 18 18:17:25 testing the game runs without bugs and the graphics work ok.... i am not familiar with the definitions of different kinds of testing, bit i guess i want to test everything Feb 18 18:17:27 TacticalJoke: No, it's the same, unfortunately. Feb 18 18:17:49 Maybe the inflater is different? Feb 18 18:18:05 Here is the source of ArrayAdapter: https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/android/widget/ArrayAdapter.java Feb 18 18:18:16 mInflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); Feb 18 18:18:29 They (and you) could use LayoutInflater.from(Context), on a side note. Feb 18 18:19:30 TacticalJoke: You mean in the overridden methods? Feb 18 18:21:50 Anytime you need a LayoutInflater. Under the hood, LayoutInflater.from does the same as you're doing: https://android.googlesource.com/platform/frameworks/base.git/+/master/core/java/android/view/LayoutInflater.java#215 Feb 18 18:22:00 TacticalJoke: I need to go, unfortunately. Thank you very much for your help. I posted the question here as well, http://stackoverflow.com/questions/28588734/custom-spinner-dropdown-not-working Feb 18 18:22:09 OK, changed that. Feb 18 18:24:57 hello Feb 18 18:25:04 That SO question confuses me. You said "I have a custom simple_spinner_item and simpel_spinner_dropdown_item". I thought you were purposely using the Android ones? Feb 18 18:26:01 "I have a custom simple_spinner_item" almost always means "My project contains '/res/layout/simple_spinner_item.xml'". Feb 18 18:27:55 How do they make copy buttons like this? http://i.stack.imgur.com/KV0Sy.png Feb 18 18:31:29 Kake_Fisk: Are you asking about the contextual action mode? Feb 18 18:32:11 There's info here: http://developer.android.com/guide/topics/ui/menus.html#context-menu Feb 18 18:32:23 action mode Feb 18 18:33:34 I'm not talking about context menu, I think. Unless I misunderstand something Feb 18 18:33:47 http://i.stack.imgur.com/87bDm.png Feb 18 18:34:13 Ohh, they automatically come up when you enter an EditText Feb 18 18:35:12 what are you asking then Feb 18 18:40:36 i want to do next and previous with my fragments how can i do that? i have tried this http://pastebin.com/VBHRGmm3 and http://pastebin.com/0TDZUU7Y ,there is some thing wrong . is there is any help will be happy Feb 18 18:42:09 this blogpost is delicious: a lawyer says he's going to sue over his app being pulled Feb 18 18:42:23 his reasoning is it can't be keyword spam if it fits the character limit Feb 18 18:42:25 http://andrewpearson.org/?p=681 Feb 18 18:42:30 hello Feb 18 18:42:47 Somebody uses android emultor from SDK in linux? Feb 18 18:43:39 Why there is almost no games that would work with x86 version of android image? Feb 18 18:44:20 I even installed libhoudini and others, but everything is still dead Feb 18 18:46:29 because its an emulator Feb 18 18:48:41 and because it's x86. combined with the emulator / GPU, you have two rarely-supported pieces of weird "hardware". Feb 18 18:50:16 actually, with libhoudini, does the play store even recognize that you can run arm binaries? though I guess it might make .apk files work. Feb 18 18:53:59 groxx: there is no play store in official android images that are downloaded from sdk. or i had not found the way to activate it. anyway - if i'll use arm emulation, and if i'll try to pass to qemu parameter to use 4 cores - will it make emulator usable? Feb 18 18:56:13 xata: I suppose it's just the services that are in the google play images, not the actual play app? I haven't used them much :| Feb 18 18:57:13 re arm: dunno. is that a different emulator than the stock one? the stock one is awfully slow, I doubt even a 4x boost would be enough. Feb 18 19:01:44 groxx: well, and we will not have even 4x boost. android_arm qemu machine does not support smp Feb 18 19:01:47 baw... Feb 18 19:14:05 i have JsonArray inside it i have multiple objects with key "date_for" i wanted to get that object whose key matches with the current date how can i do that ? Feb 18 19:16:06 iterate over them Feb 18 19:16:11 Hah Feb 18 19:16:11 until you have the right one Feb 18 19:16:37 i just updated my Resume/CV and I just read through it from start-to-end.. main I even impressed myself :D Feb 18 19:16:44 than how can i have that specific object which have that key ? Feb 18 19:16:52 *man Feb 18 19:17:10 s9iper1, read the docs Feb 18 19:17:21 hey danijoo Feb 18 19:17:22 Napalm: It should help that you are Time Person of the year for 2006 Feb 18 19:17:23 suggest some Feb 18 19:17:46 yiati: I dont follow? Feb 18 19:17:57 You can put it on your resume Feb 18 19:18:07 http://en.wikipedia.org/wiki/You_%28Time_Person_of_the_Year%29 Feb 18 19:18:09 s9iper1: lets rephrase the question. you have a list of things, you want to find a specific item in the list. there's really only one way - check each one until you find the one you're looking for. Feb 18 19:18:28 yiati: ah, Time Magazine Feb 18 19:18:30 gotcha Feb 18 19:18:32 Napalm: woah, congrats. you're even on wikipedia Feb 18 19:18:47 let me show you the structure of my data groxx Feb 18 19:18:50 omg so are you groxx Feb 18 19:18:57 s9iper1: it's irrelevant, the answer is the same Feb 18 19:19:03 Napalm: WAT Feb 18 19:19:18 groxx: http://en.wikipedia.org/wiki/You_%28Time_Person_of_the_Year%29 Feb 18 19:19:21 Napalm: irrational! two people cannot both be Time's person of the year! Person is singular! Feb 18 19:19:27 lol Feb 18 19:19:40 everyone hates irrational numbers Feb 18 19:19:47 * Napalm sighs Feb 18 19:19:53 does kinda make you wonder what the square root of you is. Feb 18 19:20:24 groxx: http://en.wikipedia.org/wiki/Napalm_%28disambiguation%29 Feb 18 19:20:31 not on Wikipedia ... yet Feb 18 19:20:42 Napalm: you mean you're not in a rom com? Feb 18 19:20:45 does kinda make you wonder what the square root of you is. <- probably a power of a half of me Feb 18 19:21:05 rom com? Feb 18 19:21:14 Hello. I am trying to run a sample application that uses the svg-android library (https://code.google.com/p/svg-android), but I get these errors: W/EGL_emulation﹕ eglSurfaceAttrib not implemented W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa3b07300, error=EGL_SUCCESS. What do these errors mean? Feb 18 19:21:17 man, i must be tired, this is all going over my head today Feb 18 19:21:20 romantic comedy Feb 18 19:21:22 When I played Tribes, I sometimes used the username "You". Every time I died, because it said "You died", it would set off like 10 badly programmed scripts "Damn, I died!" scripts. Feb 18 19:21:39 groxx, it would be about 5.567764363, in base 36 Feb 18 19:21:40 AgentCarmichael: was this on Android 5.0 Lollipop? Feb 18 19:21:50 -scripts Feb 18 19:21:55 I'm having a weird issue with Parcelable. I pass my own Parcelable object from one activity to another through a Bundle. When I do so, the system_server process throws a "class not found while unmarshalling" error (my app works fine). Familiar to anyone? Any reason system_server is trying to unmarshall my object? Feb 18 19:22:00 mapalm, yes, using Genymotion with a Lollipop device configured. Feb 18 19:22:14 (as far as I can think of, it has no reason to, and I don't want to see the exception in the logs every time I open an activity) Feb 18 19:22:16 Sorry, Napalm. Feb 18 19:22:21 groxx, have a slight look i want to get that whole object whose date_for key got match with current date. http://paste.ubuntu.com/10295243/ Feb 18 19:22:34 Chainfire: is it a fresh Bundle? Feb 18 19:22:48 fresh? Feb 18 19:22:54 well, the 5.5677.. is in base 10. but u^.5 in base 36. Feb 18 19:23:18 AgentCarmichael: thar be your problem. Rendering is now done on different threads to the main thread. plus, GL and Emulators doesnt always work nicely. Feb 18 19:23:32 AgentCarmichael: sounds like a bug in their library. Feb 18 19:23:40 What is GL though? Feb 18 19:24:16 Chainfire: I mean its not a Bundle from a previous Intent or something.. their might be other data in the Bundle that is system provided. Feb 18 19:24:30 Chainfire: like the source-bounds and other transisiton related parameters Feb 18 19:24:47 s9iper1: Get the current date; compare it. Feb 18 19:24:54 no, its a new Intent(), with putExtra(name, parcelable) Feb 18 19:25:28 Chainfire: hmm strange indeed. I have actually seen it before myself. But I cant for the life of me remember what I did about it. Feb 18 19:25:41 gradle-plugin 1.1.0 final :) Feb 18 19:26:16 Chainfire: is your Parcelable anything special? does it inherit from another Parcelable or something? Feb 18 19:26:20 Chainfire: oh wait Feb 18 19:26:28 Chainfire: classloaders Feb 18 19:26:39 I'm surprised 1.1 of the Gradle plugin came out before AS 1.1. Feb 18 19:27:04 Chainfire: something just clicked, i think I had to provide the class-loader during the parcel serialization Feb 18 19:27:17 i'm suprised AS got 1 in 1.1, it should still be 0.* Feb 18 19:27:32 heh Feb 18 19:27:43 Chainfire: are the Activity's in different processes? Feb 18 19:28:08 TacticalJoke do you know how to ask AS what version of the plugin it uses? it refreshes its caches once in a while - i know how to refresh the cache from the cmd line but i think AS / cmdline use different caches Feb 18 19:28:30 Napalm yes, I know about classloaders. I've tried adding them. To clarify once more: my app runs fine. The activity passing the parcelable object works fine, and it arrives and is unmarshalled fine in the receiving activity Feb 18 19:28:58 for some reason, in the process of launching the new activity, system_server is trying to unmarshall my object, and failing, because it doesn't know my object (of course it doesn't, its custom) Feb 18 19:29:10 what I'm wondering is why the hell system_server is unmarshalling my object Feb 18 19:29:59 Hmm, not sure. I manually change the version number, personally. Feb 18 19:30:52 Is this code that is running on the main thread? http://pastebin.com/W8hECP7n Feb 18 19:31:15 Chainfire: sorry guess I wasnt paying attention. I agree, very strange. Feb 18 19:31:44 hmm, is there some sort of git cat command to just read a previous version of a file Feb 18 19:31:44 ah, git show rev:file Feb 18 19:31:51 Chainfire: I wonder if its anything to do with the new application verification or something security related. Feb 18 19:32:42 AgentCarmichael: every method there runs on ui thread Feb 18 19:33:32 I read the main thread is the ui thread as well: http://stackoverflow.com/questions/3261370/is-main-thread-the-same-as-ui-thread Feb 18 19:33:49 yeah Feb 18 19:33:57 but in Lollipop rendering is done on a different thread? I don't understand. Feb 18 19:34:03 napalm> the source location it crashes at shows nothing relation in AndroidXref... might be some of Samsung's custom spying code Feb 18 19:34:13 Chainfire: what is the stack trace in the system server? Feb 18 19:34:34 I added a checkbox to a layout using java code (not XML). The background of the checkbox is transparent. Does anyone know how to change the background to be a solid colour? Feb 18 19:35:18 AgentCarmichael: theres not much info. apparently lollipop introduces render thread for animations Feb 18 19:35:27 I see. Feb 18 19:35:33 Thanks Feb 18 19:35:36 jerkface03 just the box - probably a lot of work, you'll have to look at the statelist drawable and all the things its referencing Feb 18 19:36:00 JesusFreke> http://pastebin.com/GFr2n8x2 Feb 18 19:36:05 ugh Feb 18 19:37:30 Chainfire: huh, weird. You said it was (only?) on a samsung phone though? Feb 18 19:37:38 yeah Feb 18 19:37:43 * Chainfire just found this: http://stackoverflow.com/questions/28589509/android-e-parcel-class-not-found-when-unmarshalling-only-on-samsung-tab3 Feb 18 19:37:49 Chainfire is it an inner class ? Feb 18 19:38:08 now that I'm combining the search results with samsung I'm getting lots of hits Feb 18 19:38:10 tasty Feb 18 19:38:13 yeah, that sounds like a samsung bug then Feb 18 19:38:28 the activity manager shouldn't be trying to get string extras Feb 18 19:38:33 I am new to android dev and am having trouble debugging this error. http://pastebin.com/kGLTBzZ8 Stack overflow says I am trying to find the view before the context is ready, but I dont think I am. Here is my Activity. http://pastebin.com/4J9Pvd55 Feb 18 19:38:36 Can anyone help me out? Feb 18 19:38:37 or to get extras at all Feb 18 19:39:16 JesusFreke that's what I thought. Now I wonder why Samsung is doing this though Feb 18 19:39:19 to the decompiler! Feb 18 19:39:25 Chainfire: my thoughts exactly :D Feb 18 19:40:13 its always samsungs fault :( Feb 18 19:40:21 Chainfire: I would be curious to hear what you find Feb 18 19:42:38 jken_: does listview named todolist exist in xml? Feb 18 19:43:10 https://code.facebook.com/posts/393927910787513/ Feb 18 19:43:26 by jasta ! Feb 18 19:43:27 Ashiren, yep, http://pastebin.com/trgXcpUW Feb 18 19:44:16 jken_: look at your stack-trace >>> com.jarredkeny.todonow.MainActivity.(MainActivity.java:27) Feb 18 19:44:20 i remember jasta starting to work on this about 1-2 years ago. looks like the effort panned out Feb 18 19:44:49 jken_: did your line 27 previously read as: ListView mainListView = (ListView) findViewById(R.id.todolist); Feb 18 19:44:54 jken_: it appears that something is trying to find the views inside the activity's _constructor_. a) are you sure that code is all the code? and b) are you using any reflection-based automatic-view-finders? Feb 18 19:45:01 jken_: do a clean build. Feb 18 19:45:15 Napalm, yes.. doing a clean build now Feb 18 19:46:12 Napalm, still getting the same error. Feb 18 19:46:17 g00s: looks cool, will have to check that out Feb 18 19:46:36 g00s: that looks good Feb 18 19:46:40 jken_: what's the current code? nothing you have should be doing that. Feb 18 19:48:01 groxx, http://pastebin.com/4J9Pvd55 Feb 18 19:48:21 g00s: huh, neat Feb 18 19:48:23 (re: stetho) Feb 18 19:48:48 jken_: that's the same link as before, are you sure you haven't changed anything since that was pasted? Feb 18 19:49:17 groxx, yep, heres a fresh copy+paste http://pastebin.com/89dtTR3P Feb 18 19:49:19 jken_: what are you developing with? Android Studio? Feb 18 19:49:31 g00s: also re stetho: dang/yay? I've been poking at building something like that, fairly slowly. hopefully it does UI inspection :| Feb 18 19:49:51 Napalm, yep, Android Studio. Feb 18 19:50:29 jken_: resync your project. Feb 18 19:51:37 what woudl everyone suggest as a starting point to learning how to write programs for android... I learned Java Script, C++, VB, SQL, ASP, and HTML back in college years ago, I know these dont apply here as android uses Java but from where im at what would be my best starting point ... I would rather learn Java inside of the android environment if possible Feb 18 19:51:40 Napalm, im new to android studio and gradle, how do I do that? Feb 18 19:52:57 jken_: File > Sync Feb 18 19:53:20 JesusFreke unless I can reproduce the issue on Samsung's Lollipop firmware, I'm probably not going to bother (costing more time than its worth) Feb 18 19:53:31 heh Feb 18 19:53:51 i get most of my complaints from Note 3/4 users Feb 18 19:53:53 Napalm, still seeing the same error in my stacktrace after resyncing Feb 18 19:54:53 jken_: you said you coded like I suggested before in my example. So obviously you are still running old code. uninstall the app of your device and do a clean build. Feb 18 19:58:46 Chainfire: the link you posted to the SO post about this.. he's not using the new CREATOR based on Parcelable.ClassLoaderCreator Feb 18 19:59:39 g00s: kind of wonder if there's anyway to debug https traffic with Stetho Feb 18 20:00:07 Chainfire: if the system_service/samsung is trying to unparcel it will need to specify a classloader that links your packages dexclassloader so it makes sense if you dont implement this, it wont be able to unparcel it and cause this error Feb 18 20:00:19 Hmm, this is weird. Toolbar.onMeasure looks at only contentInsetStart and contentInsetEnd (and not contentInsetLeft and contentInsetRight). Is that really intended behaviour? It's no consistent with other start/end stuff. Feb 18 20:00:27 not* Feb 18 20:00:51 I mean "start/end/left/right stuff". My brain is giving up today. Feb 18 20:03:34 Napalm I'm finding it hard to find an example of that ... have one? Feb 18 20:03:50 Also, Chris Banes says on SO that the default value for contentInsetStart is 16dp, but I can't see where this is being set. Does anyone know where it picks up that value? Feb 18 20:04:04 Chainfire: yus Feb 18 20:06:21 TacticalJoke chis's code is madness :) Feb 18 20:06:32 haha Feb 18 20:08:22 Setting contentInsetLeft doesn't seem to do anything at all. Weird. Feb 18 20:08:59 Chainfire: https://gist.github.com/slightfoot/736796d79b9b75199a7a Feb 18 20:10:33 Napalm I don't understand Feb 18 20:11:01 in all the examples, including the one you give, the classloader is used to recreate some other complex type, rather than the type the CREATOR is defined for Feb 18 20:11:18 Napalm: oh man, please don't even say something like that :) (re: "system will need to specify a classloader that links your package") Feb 18 20:11:29 hello code injection into system process! Feb 18 20:11:51 JesusFreke: what? Feb 18 20:12:09 the system service cannot load application classes. at all Feb 18 20:12:20 you hope not Feb 18 20:12:21 :D Feb 18 20:12:22 Strangely, setting 'contentInsetRight' *does* make a change. Feb 18 20:12:38 JesusFreke: who knows what Samsung have done Feb 18 20:13:00 JesusFreke: lets hope its a seperate processing running as the uid of the app Feb 18 20:13:06 right, I mean "can not" in the "must not" sense. not the "it's not possible to" sense Feb 18 20:13:20 although it shouldn't be possible to :) Feb 18 20:13:29 well it's still an interested question if this can be used as an attack vector :) Feb 18 20:15:06 Chainfire: hang on a mo, something just clicked, Bundle is a parcelable and it doesnt use ClassLoaderCreator Feb 18 20:18:26 * mikedg spears Napalm Feb 18 20:19:04 Chainfire: what device is that on? Feb 18 20:19:12 Note4 @ 4.4 Feb 18 20:19:16 * Napalm keel's over and collapses Feb 18 20:19:18 thx Feb 18 20:19:32 mikedg: how goes? Feb 18 20:21:45 https://lh6.googleusercontent.com/-ZIHp6QuN6ck/VOTpWnF3JsI/AAAAAAAAAtg/6b777-8NFtk/w640-h476-no/Funny-meme-make-them-use-a-computer-with-slow-internet-640x476.jpg Feb 18 20:24:12 Imagine if kids today had to upload their selfies over 56K. Feb 18 20:25:07 TacticalJoke, would solve lots of problems :p Feb 18 20:25:11 :D Feb 18 20:25:25 haha, my first digital camera did video and was was a QQVGA 160x120 Feb 18 20:25:36 TacticalJoke: you just reminded me of that Feb 18 20:26:02 not exactly video at that resolution.. more like a much of pixels that somehow make a blurry image Feb 18 20:28:03 I remember my first mobile phone. It doubled as an offensive weapon. Feb 18 20:28:26 A BT Cellnet device from Argos. Feb 18 20:29:13 I had an Orange brick of a phone Feb 18 20:29:28 Motorola manufacturer branded Orange Feb 18 20:30:02 This was mine: http://www.retrofones.com/image/cache/data/Philips/Diga/1-500x500.JPG Feb 18 20:30:09 Single-line displays FTW. Feb 18 20:34:17 That's a modeern phone :P Feb 18 20:34:36 Kind of. It wasn't one of those phone boxes business people used to carry around. :D Feb 18 20:35:26 Though I think it was part of the first generation of "modern" mobile phones. Feb 18 20:35:40 hmm, I think its time to update my hardware. Feb 18 20:36:00 maybe i'll build a completely new rig.. anyone got any recommendations Feb 18 20:36:10 http://www.ebay.co.uk/sch/i.html?_from=R40&_trksid=m570.l1313&_nkw=UP2414Q&_sacat=0 Feb 18 20:36:13 A desktop or a laptop? Feb 18 20:36:27 I just finished my new desktop a couple weeks ago Feb 18 20:36:34 Think i found my perfect montiros Feb 18 20:36:36 monitors Feb 18 20:36:55 trevor-e: what size monitor(s) you go for? Feb 18 20:37:06 I have a 1440p and a 1080p Feb 18 20:37:11 im thinking 24 inch is plenty, 32 inch feels overkill Feb 18 20:37:14 I'm pretty much constrained to a laptop, as I do so many things at the same time as being on the computer. Feb 18 20:37:15 I remember my first mobile, back in, 95 Feb 18 20:37:24 my 2560x1440 is 27" I think Feb 18 20:37:27 http://accessories.us.dell.com/sna/productdetail.aspx?c=us&l=en&s=bsd&cs=19&sku=860-BBCD&baynote_bnrank=0&baynote_irrank=0&~ck=baynoteSearch Feb 18 20:37:27 and seems just right Feb 18 20:37:34 Had to have it in a belt holder, way to large to have in the pocket :P Feb 18 20:37:40 24inch @ 3840x2160 Feb 18 20:38:06 Nokias were great a few years later. Feb 18 20:38:08 that looks nice, if you don't mind paying for it :P Feb 18 20:38:13 I'm kinda sad they've largely died. Feb 18 20:38:16 its not that much Feb 18 20:38:30 trevor-e: the 32inch version http://accessories.us.dell.com/sna/productdetail.aspx?c=us&l=en&s=bsd&cs=19&sku=210-ACBL&baynote_bnrank=0&baynote_irrank=0&~ck=baynoteSearch Feb 18 20:38:36 trevor-e: thats 1,999 USD Feb 18 20:38:41 The original Snake was awesome. Feb 18 20:38:41 Napalm looks nice, wish it had a bigger foot Feb 18 20:38:45 Snake 2 and stuff were so lame. Feb 18 20:39:07 :O Feb 18 20:39:12 g00s: meh, I got a proper mound for 3 monitors Feb 18 20:39:16 mount Feb 18 20:40:08 Am I the only one who uses a laptop? Feb 18 20:40:19 TacticalJoke: I use a laptop also, but not at home Feb 18 20:41:01 This phone was awesome: http://upload.wikimedia.org/wikipedia/commons/b/be/Nokia_3310_blue_R7309170_wp.jpg Feb 18 20:41:37 TacticalJoke: I remember playing snake on that Feb 18 20:41:52 I use a laptop at work connected to a big monitor Feb 18 20:41:53 Yeah, that had the best Snake. Feb 18 20:42:01 but at home I use my desktop Feb 18 20:42:09 how about the Nokia 8810 http://www.itp.net/images/content/584396/xlarge/9822-nokia-82_xlarge.jpg Feb 18 20:42:13 bloody tiny Feb 18 20:42:35 That was the Ferrari of phones at the time. :D Feb 18 20:42:40 http://i45.tinypic.com/2hfmn2f.jpg Feb 18 20:42:46 Was around £300 up front even on contract, I think. Feb 18 20:43:02 I think i still got mine in a box around here someplace Feb 18 20:43:03 lol Feb 18 20:43:39 I still have mine. :D That exact colour. Feb 18 20:43:54 I remember being so underwhelmed the first time I turned it on. Feb 18 20:44:38 TacticalJoke: that was the same for all Nokia's even the new ones Feb 18 20:44:39 :D Feb 18 20:44:47 Probably still underwhelmed Feb 18 20:45:36 anyone know what the Ok in OkHttp stands for? Feb 18 20:46:00 Maybe it's HTTP 200 OK? :) Feb 18 20:46:05 it is Feb 18 20:46:12 ah, nice Feb 18 20:46:19 the Jake has spoken! Feb 18 20:46:20 :D Feb 18 20:46:20 one of my team asked me Feb 18 20:48:13 I didn't realise till recently that HTTP 2 is a binary protocol. ;o Feb 18 20:48:15 Though it makes sense. Feb 18 20:48:43 yea, based on SPDY if I remember correctly Feb 18 20:50:44 kind of Feb 18 20:50:54 inspired by, is a more accurate description Feb 18 20:55:25 To answer my question from earlier, the 16dp value for contentInsetStart is in values.xml and part of the "Base.Widget.AppCompat.Toolbar" style. Not sure how I missed that before. Feb 18 20:56:19 Hmm, they also set minHeight to ?attr/actionBarSize there. Seems we don't have to bother setting that. Feb 18 21:16:16 Is there an easy way to get 4 buttons (instead of what seems to be the max of 3) in a Dialog using DialogBuilder? Feb 18 21:20:09 no Feb 18 21:21:02 thanks Feb 18 21:24:58 Yoooo. Where should I start when looking at how to integrate oauth1 retrofit Feb 18 21:25:07 Google isn't turning up anything pre-baked Feb 18 21:27:14 why in all that is holy is there not a Widget.AppCompat.Button style Feb 18 21:28:37 shekibobo, Widget.AppCompat.ActionButton maybe? :p Feb 18 21:30:26 that maps to Widget.Material.ActionButton, not Widget.Material.Button Feb 18 21:30:47 there doesn't seem to be an analog for Button Feb 18 21:31:21 why is kotlin missing static class members :| Feb 18 21:31:48 g00s, because there are class objects Feb 18 21:31:50 you can still use static methods, but not in the traditional sense Feb 18 21:32:02 i just loaded up an article titled "Java doesn't suck - you're just using it wrong" ... reminds me of apple's "it's not a product defect, you're holding it wrong" Feb 18 21:32:05 yea, you put your static methods under the class object Feb 18 21:32:29 where to put static variables , same place ? seems cheesy Feb 18 21:32:40 bankai_, link? :) Feb 18 21:32:48 g00s, yes. seems cheesy. :( Feb 18 21:32:55 does dagger's ObjectModule not re-use modules already created when I do an ObjectGraph.plus(…)? Feb 18 21:33:01 I had the same feeling when starting my kotlin project a week ago Feb 18 21:33:03 danijoo: https://www.voxxed.com/blog/2015/02/java-doesnt-suck-youre-just-using-wrong/ Feb 18 21:33:05 herriojr: no Feb 18 21:33:21 the whole point is making a new graph Feb 18 21:33:48 i put them in class object but maybe its just us having to step away from doing things in the java way when writing kotlin ;) Feb 18 21:34:17 thats what i wonder, is this an elegant extension of the object model or a unintentional side effect Feb 18 21:34:24 bankai_, ty Feb 18 21:34:30 http://blog.jetbrains.com/kotlin/2013/06/static-constants-in-kotlin/ Feb 18 21:34:43 yeah i read that ... Feb 18 21:35:12 "A class (not inner and not local) or trait may declare at most one class object associated with it." wuuut Feb 18 21:35:34 g00s, think of a class object like a static singelton Feb 18 21:36:03 well at least a bunch of kotlin people just came out of the shadows :D Feb 18 21:36:10 :D Feb 18 21:36:32 I've started to like doing it this way since it forces you to group your "static" stuff Feb 18 21:36:40 JakeWharton: ok, crap — I thought I could just .plus(..) the ObjectGraph containing the ApplicationModule (which provides the application context, so it get's passed in the constructor) Feb 18 21:36:53 hello everyone, i put a app on the marked as a beta, how do i make it show up on the marked or how is it installed ? ot should i just make the app production ?? Feb 18 21:37:14 herriojr: what does "passed in the constructor" mean? Feb 18 21:37:17 trevor-e, yes but.. still looks weird to create class objects to hold static variables. kotlin does a lot of things right, but this is not one of it if you ask me Feb 18 21:37:34 for singeltons, its cool. but for statics.. mmh Feb 18 21:37:45 not really a fancy syntax Feb 18 21:37:47 JakeWharton: public ApplicationModule(Application application) { Feb 18 21:37:47 mApplication = application; Feb 18 21:37:47 } Feb 18 21:38:09 that doesn't really answer my question Feb 18 21:38:33 then ObjectGraph.create(new ApplicationModule(this)).plus(ActivityModule(this)) Feb 18 21:38:53 but we should continue this topic at #kotlin :p Feb 18 21:38:57 herriojr: that works fine Feb 18 21:39:00 its so silent in there :( Feb 18 21:39:05 lol Feb 18 21:39:07 although i'm not sure why you would do that Feb 18 21:39:30 JakeWharton: I'm just starting on this — is there a better way to handle these dependencies? Feb 18 21:39:40 I think Kotlin's way is better since it's taking advantage of an actual language enforced singleton Feb 18 21:40:03 trevor-e, maybe its just my java point of view :p Feb 18 21:40:10 until I get things sorted out :) Feb 18 21:40:18 herriojr: i see. no, that's how you introduce external dependencies in the graph Feb 18 21:40:33 herriojr: https://github.com/JakeWharton/u2020/blob/97b1bec260257799a34b04bf3be21998e9708263/src/release/java/com/jakewharton/u2020/Modules.java#L6 Feb 18 21:40:50 for whatever reason, when I do .plus(…) it recreates the ApplicationModule from an empty constructor instead of reusing it Feb 18 21:41:16 here, I'll pastebin some stuff Feb 18 21:45:19 anyone using a non-google location provider? Feb 18 21:47:35 Why don't you ask the actual question? Feb 18 21:50:00 JakeWharton: https://gist.github.com/herriojr/74b194d32292fd5d0e5b Feb 18 21:50:20 basically, I'm just scoping things Feb 18 21:50:32 this is a simple example and doesn't include everything Feb 18 21:51:58 use addsTo, not includes Feb 18 21:52:05 kk Feb 18 21:54:15 JakeWharton: I guess I had a misunderstanding about the meaning of that Feb 18 21:54:20 yes Feb 18 21:56:01 addsTo means "will be .plus'd" Feb 18 21:56:14 includes means "create this and treat it as part of me" Feb 18 21:57:48 JakeWharton: ah kk Feb 18 21:57:57 I had it flipped Feb 18 22:01:41 can you not have a button with states *and* ripple? Feb 18 22:01:49 tearing my hair out over this Feb 18 22:03:15 Does anyone mind going over my code and helping me figure out what I am doing wrong? I am trying to save some information to a local XML file that is to be read-in the next time the program starts up. I'll donate $50 to a charity of your choice if you'd like. I've just been at this for too long and need a fresh pair of eyes! Feb 18 22:04:01 Mittendeep: Just post it. Worst-case scenario is nobody can (or will, I guess) help. Feb 18 22:06:38 JakeWharton: ah, ty, worked like a charm Feb 18 22:06:56 TacticalJoke: I don't think my save button is storing the values from the EditText fields properly. http://pastebin.com/cRBGwEqJ Feb 18 22:07:12 JakeWharton: however, I'm now more interested in that you said that what I was doing sounded like I was doing something weird, care to elaborate? Feb 18 22:07:46 includes=ApplicationModule.class caused Dagger to create an instance using the default constructor when you added the ActiviyModule Feb 18 22:07:57 it didn't care that there already was an instance in the graph, it's just doing what you tell it Feb 18 22:08:42 *now* it works... Feb 18 22:09:17 JakeWharton: ah, nvm, I thought you meant that I was doing something weird in terms of the general structure, not Dagger specific, nvm Feb 18 22:09:27 no. fine structure Feb 18 22:09:34 Mittendeep: You're not opening the file if it already exists. Feb 18 22:11:08 Also, you're getting the values of the text boxes in onCreate (when they have their initial values) rather than in the button-click callback (when they have user values). Feb 18 22:12:21 The latest comment there is "looks like this can not be addressed very well in the present state of Kotlin, but you can try to pass an empty instance of AttributeSet by default...". Hmm. Feb 18 22:12:34 Oh, I misread. I thought it said "can be addressed". Never mind. Feb 18 22:12:39 And posted to the wrong channel. lol Feb 18 22:13:16 * TacticalJoke is doing 11 things at once. Feb 18 22:15:07 Mittendeep: "myFile" should be a local variable in that onClick anonymous method. Feb 18 22:20:37 Okay, I moved that, the variables aren't being stored though. Is xmlSerializer.text(string) the right method to call between the opening and closing of the tags? Feb 18 22:22:35 Mittendeep: is a file being made at all? Feb 18 22:23:59 I think so, this method should function correctly, right? http://pastebin.com/fjrnXLnH Feb 18 22:25:10 I'd expect so, though I do know that getting a "true" value is a "best effort" thing, not a guarantee. you can't really know until you try to read from it, it's just the nature of filesystems :| Feb 18 22:25:26 but, try `adb shell run-as com.your.package ls`, and see if you see the file. Feb 18 22:25:36 what's stacktrace? Feb 18 22:25:49 No exceptions are thrown Feb 18 22:26:00 Mittendeep: Note that saying "new File" does not create a file. The File class is basically the representation of a file-system path. Feb 18 22:26:19 sweet, it's like the tools team heard me Feb 18 22:26:25 new gradle plugin is out of RC Feb 18 22:26:26 "new FileOutputStream(File)", on the other hand, can create a new file. Feb 18 22:27:34 AS 1.1.0 final out too Feb 18 22:27:39 Mittendeep: That localFileExists method isn't needed. You already have [ File file = new File(getFilesDir(), "treasure.xml"); ]. Just say "if (file.exists()) { ... }". Feb 18 22:27:52 Actually, do you even need to figure out whether it exists? Feb 18 22:28:14 I need to read from it if it does, or else display a toast message if it doesnt Feb 18 22:28:59 i've been applying AS patches on top of patches for a long time, wonder if its a good idea to do a fresh install Feb 18 22:29:53 makes no difference Feb 18 22:29:59 the contents are checked for integrity Feb 18 22:30:15 you'll get exactly the same binary either way Feb 18 22:33:11 It isn't finding the file. Feb 18 22:33:19 how would one template a resource file on build, such as authenticator.xml? Feb 18 22:33:41 I want to template the accountType field, so that when I build different versions of the app, I get different authenticator IDs Feb 18 22:33:53 that way I can have completely isolated installs Feb 18 22:35:24 * lahwran pokes JakeWharton, because he'll probably know Feb 18 22:35:53 put it in src/debug/res/xml and src/release/res/xml Feb 18 22:37:01 ah, I suppose that would sort of work. is there not a way to template strings in the actual file, though, like there is for AndroidManifest.xml with manifestPlaceholders? Feb 18 22:37:21 not without writing your own Gradle plugin Feb 18 22:37:26 manifest is special Feb 18 22:37:33 okay. that's easy enough inline, though. Feb 18 22:37:36 thanks! Feb 18 22:38:36 when creating drawables, does the DPI matter? Feb 18 22:38:47 drawable images? yes Feb 18 22:38:58 lahwran: if you can use resources in the field(s) you need to change, there's a poorly-documented resValue() thing in gradle that'll generate R values. Feb 18 22:39:25 groxx: yeah, I did find that, but I don't think one can put resources in android:accountType, can you? Feb 18 22:39:34 lahwran: I am getting confused because I know about the dimension ratio change between then density buckets, but how does DPI effect that. Feb 18 22:39:39 lahwran: dunno, never tried Feb 18 22:39:42 * lahwran tries Feb 18 22:40:02 theblang: actually, I'm not sure I know what you mean by dpi then Feb 18 22:40:38 lahwran: dots per inch, often times is 72 but it can be changed Feb 18 22:41:38 well, okay, I know that much Feb 18 22:41:44 but what do you mean "often times is 72" Feb 18 22:41:54 my phone's screen is... what, 450 dpi or something Feb 18 22:41:57 it's ridiculous Feb 18 22:42:27 445 Feb 18 22:42:32 lahwran: yeah, that is referring to the density independent pixel measurement. I thinkt he confusion is that the DPI I am referring to is the one for printers and stuff, which I think I am reading don't really matter for digital images Feb 18 22:42:45 ?? Feb 18 22:42:50 digital images don't have a dpi Feb 18 22:42:58 display devices do Feb 18 22:43:17 so yes, printers have a dpi Feb 18 22:43:21 typically it's like 300 though Feb 18 22:43:59 theblang: the DPI matters because, if you size things by "dp"s (density-independent pixels) like you're generally supposed to do, Android will scale your view/image/whatever to the same relative physical dimensions on all devices. Feb 18 22:44:30 (...or pretty close. no promises) Feb 18 22:45:21 groxx so what DPI do you generally use if you are making something in photoshop or something Feb 18 22:45:53 groxx, lahwran what is confusing me is that in photoshop you can have a width and height, but then you can change DPI too (often times it defaults to 72) Feb 18 22:46:00 theblang: the image's DPI isn't read. use the number of pixels == the number of physical pixels you want it to display as. Feb 18 22:46:56 ^ Feb 18 22:46:58 so on xxhdpi screens, you need to do 2px per dp. Feb 18 22:47:18 theblang: right. the dpi field on an image is meaningless. ignore it. Feb 18 22:47:25 groxx, lahwran right, so I get that. I know the ratio table and everything. So I was right then, the DPI that I am talking about doesn't matter Feb 18 22:47:41 I'm still not sure what you mean by "DPI" exactly Feb 18 22:47:45 but ok Feb 18 22:48:06 if you do mean the dpi field on an image, then yes, ignore that. always. Feb 18 22:48:15 (not just for android stuff; basically nothing uses that field) Feb 18 22:48:21 theblang: if it's the image's intrinsic DPI, ie the metadata that photoshop / whatever can set: yes, it doesn't matter. Feb 18 22:48:51 almost nothing reads image DPI anyway, as far as I've seen. some print-related stuff, but that's about it. Feb 18 22:50:20 lahwran: yeah, the DPI on an image (https://answers.yahoo.com/question/index?qid=20090414193402AAVH7sH) Feb 18 22:50:34 yes. pretend that doesn't exist. Feb 18 22:51:15 lahwran, groxx thanks yall Feb 18 22:54:15 groxx: Okay, it is capturing the input now. "myFile.close();" should close the file and save it locally, right? Feb 18 22:58:02 hellon Feb 18 22:58:04 hello Feb 18 22:58:15 herriojr: hello Feb 18 22:58:16 Closing it is enough, yes. Feb 18 23:02:23 john67: hey Feb 18 23:02:51 john67: how's your android-ing going? Feb 18 23:03:16 i have been experiencing a terrible problem with gesture detector with fragments, i have tried to create a normal project with activity and it work but not with the fragment whats the problem? Feb 18 23:03:32 herriojr: not bad , still trying to finish it soon Feb 18 23:05:43 john67: you need to learn to provide more contextual information :P Feb 18 23:05:48 I'm going to polish off a whole quart of Rye once this gets finished. >:-( Feb 18 23:06:18 where can I find my leaderboard ID? Feb 18 23:06:46 herriojr: oki, Feb 18 23:07:49 Mittendeep: Your life would be significantly easier if you were to separate, into different classes, the GUI code from the file code. Feb 18 23:08:56 john67: basically, what I'm saying is provide #1 code and #2 any stack trace you may have received Feb 18 23:09:36 I've got an external XML parser that appears to be working, I was just using it at the wrong time. Feb 18 23:12:13 this is my code, the gesture detector doesnt work, i have no error http://pastebin.com/LjgDSjVB Feb 18 23:12:21 I'm going to start reading in the xml fields at line 49. I removed some of the superfluous code. http://pastebin.com/i2CbR6XT Feb 18 23:12:36 herriojr: this is my code, the gesture detector doesnt work, i have no error http://pastebin.com/LjgDSjVB Feb 18 23:13:19 john67: there is a typo on line 22 fyi Feb 18 23:14:55 Mittendeep: a typo? which typo? Feb 18 23:15:11 germain instead of german Feb 18 23:15:56 Mittendeep: yeah, i see Feb 18 23:17:39 Mittendeep: i have correct the typo, thnks Feb 18 23:19:40 Mittendeep: At the very least, you could extract that code into a separate method. Would make things way more readable. (But really it belongs in a separate class: the Activity should know nothing about how the file is read/written.) Feb 18 23:29:08 john67: 1) you make a `gesture` variable, and send touches to `mDetector`. which is correct? 2) you're in a fragment. it doesn't have onTouchEvent, so that line probably won't ever get called. Feb 18 23:31:02 groxx: if i understand you i have to use setOnTounchListener ? Feb 18 23:31:24 john67: on whichever view makes sense, yes Feb 18 23:31:30 fragments are not views Feb 18 23:46:19 Hello Feb 18 23:50:42 Hello Feb 18 23:51:01 ehhh. One thing I wish would be fixed in AOSP but probably won't would be loadable physical keyboard layouts :| Feb 18 23:58:07 Looking for a suggestion for a android dev forum...favorite ones? Feb 19 00:02:14 when using the appcompat-v7 library (and ActionBarActivity), is there a way to hide the shadow under the action bar as a styles.xml item? Feb 19 00:12:15 john67: so, you won't get an onTouch event in your fragment if a view captures it Feb 19 00:12:28 john67: that's why all onTouch events return a boolean Feb 19 00:12:37 to basically say whether it was handled or not Feb 19 00:13:31 Hey guys Feb 19 00:13:42 howdy Feb 19 00:13:44 herriojr: then what should i do then, if it doesnt work with a view Feb 19 00:13:47 UI Q here.. so anroidLTheme.Material requires minSDK of 21 Feb 19 00:14:17 what if I want to use appcompat? Feb 19 00:15:41 john67: and actually, looking at Fragment, it doesn't actually have a onTouchEvent to override Feb 19 00:16:21 john67: http://stackoverflow.com/questions/21882251/how-to-handle-touch-events-on-a-fragment Feb 19 00:17:04 tricknology: I thought they had some app compat themes, however, I haven't messed with it all Feb 19 00:17:18 yeah I’m looking into it now.. i’ve been lagging as well Feb 19 00:18:39 i think my app might finally be unabashedly holo by i/o 2015 :) then i can work on material in 2016, if my users care XD Feb 19 00:18:56 lol Feb 19 00:19:04 I just want the cool spinny navdrawer lines Feb 19 00:19:16 herriojr: so i have tried to do that on a view, like this , http://pastebin.com/wGvwYERe Feb 19 00:19:20 the 3 horizontal lines that move into an arrow Feb 19 00:19:34 herriojr: but it doesnt detect the fling Feb 19 00:23:05 Error: No resource found that matches the given name: attr 'colorPrimary'. Feb 19 00:23:06 blah Feb 19 00:23:59 tricknology using app:colorPrimary ? Feb 19 00:24:29 neg g00s Feb 19 00:26:06 tricknology some examples http://android-developers.blogspot.com/2014/10/appcompat-v21-material-design-for-pre.html Feb 19 00:27:02 ty g00s Feb 19 00:28:20 errr so toolbar now goes on the top of every layout? Feb 19 00:29:41 trying to install ecplise on a imac ... its saying I need java 6 ... will the latest java work or does it have to be vs 6 Feb 19 00:30:39 donavan01 yes Feb 19 00:30:46 you need java6 for mac Feb 19 00:30:57 you can have 1.7 or 1.8 but it wont work without 1.6 Feb 19 00:31:17 and unless you really like Eclipse I would suggest AS Feb 19 00:31:28 lots of documentation from here on out will be for AS/Gradle Feb 19 00:32:21 donavan01 here is java 6 for mac: http://support.apple.com/kb/DL1572?viewlocale=en_US&locale=en_US Feb 19 00:32:49 im looking for some tutorial video to help me learn and eclipse was suggested honestly never heard of the other on im just trying to get started with development and I know next to nothing about what im diong Feb 19 00:34:04 That’s a tough one... Feb 19 00:34:16 you are just just getting started then, huh? Feb 19 00:34:34 are you going to code anythign else or just Android/Java? Feb 19 00:35:01 yeah I tried to do some a while back in building a custom rom but that ended in a giant headache and someone beating me to the punch so I quit Feb 19 00:35:04 I’m giving up on material for today lol Feb 19 00:35:18 Do you have any coding experience? Feb 19 00:36:03 im just looking to build some program nothing crazy ... we have to thing that we do at work that I would like to automate and if I had an app I could push to peoples phones I could elimiate one the more irritating asspects of my job Feb 19 00:36:54 I have coded in VB mainly but done sql html c++ and a little java script years back Feb 19 00:37:48 it you were starting completely from scratch what would you start with Feb 19 00:38:46 donavan01: I am in your boat. Have you installed Eclipse and the ADT plugin from the Android Marketplace? Feb 19 00:39:09 tricknology: Do you use Eclipse as an IDE? Feb 19 00:39:47 I use Eclipse but the whole industry is shifting to Intellij/AS Feb 19 00:39:49 If you’re starting, use Android Studio instead of Eclipse, it’s the standard for Android now (despite the fact that I prefer Eclipse personally) Feb 19 00:39:59 so I’m finding documents that refer to gradle Feb 19 00:40:09 ^ Feb 19 00:40:15 what jaana said Feb 19 00:40:35 I’m finding that it’s kinda hard for me to migrate to AS/ IntelliJ Feb 19 00:40:41 I’m so used to Eclipse Feb 19 00:41:05 but from what I’ve heard AS/IntelliJ has advantages.. mainly in stability, not sure what the others are because.. I’m old school I guess Feb 19 00:41:11 tricknology: Is there any way I could send you this project and have you take a look at at? Everything is working as intended except for the initial read in of the XML file that I create in the program. Feb 19 00:41:24 you can pastebin the relevant parts here? Feb 19 00:41:27 pastebin.com Feb 19 00:41:40 my guess it’s your onCreate method Feb 19 00:41:43 setContentView Feb 19 00:42:51 Mittendeep: Also explain exactly what “doesn’t work" Feb 19 00:42:59 ^ Feb 19 00:43:08 get any errors in LogCat? Feb 19 00:44:55 jaana: I am creating a custom XML file when the submit button is clicked. Everything goes fine and when the program starts up it recognizes the file is there and reads it. I can see the values between the tags during debug but the EditText fields aren't being updated by the getter/setter methods in the CreateXml class. http://pastebin.com/mTjQtnzk and http://pastebin.com/Hqv8Y45L Feb 19 00:46:00 can you even update final edittexts? Feb 19 00:46:03 (never tried) Feb 19 00:47:02 maybe try removing the final modifiers from EditTexts Feb 19 00:47:24 final makes no difference here Feb 19 00:47:29 It only makes the reference not reassignable Feb 19 00:47:39 aah right Feb 19 00:48:05 oh dude Feb 19 00:48:09 you are only setting the valuye Feb 19 00:48:29 ifor example in setLatitude() Feb 19 00:48:40 are you updating the editTexts anywhere? Feb 19 00:48:54 I need to do setText on the EditText field, don't i? Feb 19 00:48:58 yes Feb 19 00:49:10 I think you might want to do that in setWhatever() Feb 19 00:49:32 but you need a global reference to your EditText Feb 19 00:49:49 so pull them out of onCreate and put them inside the class but outside any methods Feb 19 00:50:05 final EditText hiddenObject; Feb 19 00:50:06 will do Feb 19 00:50:21 then you will have to delete all the “final EditText” Feb 19 00:50:27 inside onCreate btu leave that stuff Feb 19 00:51:26 then inside your setter: “lat.setText(latitude); Feb 19 00:51:41 either before or after the this.latitude =... Feb 19 00:59:10 john67: do any of the views within the fragment handle touch events? Feb 19 01:00:05 herriojr: yeah, i have a RelativeLayout Feb 19 01:00:23 I get null pointers when I put the EditTexts after the class declaration and before the method. Feb 19 01:00:59 review with 5 stars: "This app sucks!" Feb 19 01:01:03 i dont get these guys.. Feb 19 01:01:18 well, it's better than the opposite Feb 19 01:01:22 john67: no, I mean, do you have scroll views or anything? Feb 19 01:01:23 best app ever! 1 star. Feb 19 01:01:56 I wonder if they think a 5 star review is more likely to show up in the review section or something Feb 19 01:02:17 herriojr: yeah, but why a scrollview, bcos i want to do a fling , some thing next and previous Feb 19 01:02:26 true. But there are also those 3-star-guys "works perfect and does what expected" Feb 19 01:02:51 john67: no, you don't understand, I'm trying to see where the event is being handled, if it is being handled in another view before you get a chance to handle it Feb 19 01:03:20 herriojr: ah oki,i get u Feb 19 01:05:25 Mittendeep: What are you trying? Feb 19 01:07:29 TacticalJoke: To get the getter and setter methods to update the EditText fields after reading in the XML. Unfortunately after moving their declarations outside of the method I am getting null pointers on initialization. http://pastebin.com/SYDgHfKm Feb 19 01:08:05 john67: you may have to override onInterceptTouchEvent Feb 19 01:08:12 john67: if something further down is handling it Feb 19 01:08:43 You can't call findViewById before setContentView. Feb 19 01:09:18 In that code, setContentView will *not* be called first. Feb 19 01:10:10 You could just extract a method to do all that view finding. Call the method after calling setContentView. Feb 19 01:18:23 herriojr: the touch event works because i did that in the past, Feb 19 01:19:18 john67: again, it depends on the internal views you are using Feb 19 01:19:38 john67: basically the way it works is it calls the view root to dispatch a touch event Feb 19 01:19:58 then it travels down to the view that you are touching — and if it doesn't handle it, it bubbles the touch event up a level Feb 19 01:20:01 and just keeps doing that Feb 19 01:20:12 so if something deeper in the view hierarchy handles it, that can mess you up Feb 19 01:20:58 oki Feb 19 01:33:40 I can never find just the right editor colour theme. I want everything highlighted without it looking like an ugly mess. Hmm. Feb 19 01:34:06 "gvim" isn't bad but it doesn't highlight enough stuff. Feb 19 01:36:28 Hello, I have been trying to debug this error for a couple of hours now and I I am in need of some help. http://pastebin.com/iWzJxk2k . Here is my main activity which is supposed to show a fragment based on the selection in the navigation drawer, http://pastebin.com/LDSyCKLQ and here is the fragment http://pastebin.com/V8tZnf7h Feb 19 01:36:32 Can anyone help me figure this out? Feb 19 01:36:55 Based loosely off of this http://developer.android.com/training/implementing-navigation/nav-drawer.html Feb 19 01:41:20 jken_ will take a look when come to work. seems like listview is null? Feb 19 01:41:43 drawerOptions seems to be Feb 19 01:41:46 gordon_, looks that way but i cant see why. I am staying as close to the example on the docs as possible. Feb 19 01:42:19 will take a look, hard to see on phone Feb 19 01:42:42 jken_: Do you have a R.array.navigationDrawerOptions? Feb 19 01:42:44 TacticalJoke: you can configure vim colors to whatever Feb 19 01:43:05 AndreYonadam, yes, they are being populated in my app Feb 19 01:43:08 Yeah, you can change the colour of basically anything. Feb 19 01:43:10 so they are definitly there Feb 19 01:43:15 Are you sure they are already there? Feb 19 01:43:30 AndreYonadam, what do you mean/ Feb 19 01:43:43 When are they populated? Feb 19 01:43:51 Don't they already come with the app Feb 19 01:43:56 The array of strings or whatever Feb 19 01:44:24 Tricknology: When I call setTreasure I am getting a null pointer. Stacktrace leads back to line 145. This is what you said I should do, right? http://pastebin.com/riT8HvZm Feb 19 01:45:47 AndreYonadam, Main Activity onCreate() Feb 19 01:45:51 line 45 and 46 Feb 19 01:45:54 jken_ check with debugger Feb 19 01:47:51 Okay Feb 19 01:47:53 Test if this works first Feb 19 01:47:56 Then you can diagnose Feb 19 01:48:00 Populate it before Feb 19 01:48:22 herriojr: it changes nothing Feb 19 01:48:47 Do String[] drawerOptions = new String [] {"test"} or something instead of getting it Feb 19 01:50:02 Trying that now Feb 19 01:50:05 Mittendeep: Are you sure R.id.editText1 is correct? Feb 19 01:50:06 it is there in the debugger Feb 19 01:51:57 TacticalJoke: Yeah, i have 5 edittext fields named correctly. All the resources are found and everything loads correctly until I try to do "hiddenObject.setText(treasure);" Feb 19 01:53:09 Is that really the right code? In that code, if 'hiddenObject' were null, the exception would be on line 75, not line 145. Feb 19 01:58:43 TacticalJoke: Everything is fine as long as that line is commented out. My setter methods must be messed up. Feb 19 01:59:02 TacticalJoke: http://pastebin.com/ZPV6yju5 Feb 19 02:01:00 Looking to get into android development and resources for beginners (Have some c++/php/java experience) Feb 19 02:01:22 I am trying to set the title of my action bar when I chose a new navigation options, I am doing this here http://pastebin.com/jK6SdaeK on line 105. Why is it causing java.lang.NullPointerException: Attempt to invoke virtual method 'void android.app.ActionBar.setTitle(java.lang.CharSequence)' on a null object reference Feb 19 02:02:00 jken_: did it work? Feb 19 02:02:21 AndreYonadam, yeah, i guess so, this error started showing up instead. Feb 19 02:03:47 there is no action bar set Feb 19 02:04:17 jken_: http://stackoverflow.com/questions/6867076/getactionbar-returns-null Feb 19 02:04:42 When you are trying to invoke on a null object that means the object isn't there Feb 19 02:05:43 jken_: Try using getWindow().requestFeature(Window.FEATURE_ACTION_BAR); before that line Feb 19 02:05:48 Or in the on create actually Feb 19 02:05:50 ok Feb 19 02:05:55 Before you run that method though Feb 19 02:06:59 same error, Feb 19 02:07:03 jken_: Did it work? Feb 19 02:07:04 but then the app dosnt even start. Feb 19 02:07:04 Wtf Feb 19 02:07:09 hmm Feb 19 02:07:23 I got that error, then unable to start activity. Feb 19 02:08:00 facepalm Feb 19 02:08:08 getSupportActionbar() Feb 19 02:08:11 instead of getActionbar Feb 19 02:08:43 trying now Feb 19 02:08:47 yeah Feb 19 02:08:48 sure Feb 19 02:08:50 its going to work for sure Feb 19 02:10:31 jken_: Works? Feb 19 02:10:48 AndreYonadam, still seeing the same errors, syncing and rebuilding.. Feb 19 02:12:29 AndreYonadam, Same errors. :( Feb 19 02:12:36 that same error, then unable to start activity. Feb 19 02:12:43 What's the error? Feb 19 02:13:16 stacktrace: http://pastebin.com/mhEX0yTY Feb 19 02:13:45 Mittendeep: Why is setTreasure public? Feb 19 02:14:45 jken_: Are you sure you changed the code? Feb 19 02:15:02 try ActionBar actionBar = getSupportActionBar(); Feb 19 02:15:06 AndreYonadam, sure I changed it.. yes. Sure what Android Studio isnt still using some old code.. no. Feb 19 02:15:09 TacticalJoke: Because I am trying to call the set method from another class that parses the XML using super.setBlah("string") Feb 19 02:15:10 and then actionBar and set the text Feb 19 02:15:16 ok Feb 19 02:15:21 jken_: Android studio does screw me oversomtimes by the way Feb 19 02:15:35 brb Feb 19 02:15:40 when im setting up a android version to use to code with what should i select for the best compatibility or do I need to select all of them to make it compatible with mulptile version Feb 19 02:16:30 and what the heck is a JVM and where do I get it Feb 19 02:16:53 lol Feb 19 02:16:53 donavan01: froyo has the highest compatability but api 19 is good for phones people use. Are you talking about the jdk? Feb 19 02:17:15 Mittendeep: I suspect the error is there. Feb 19 02:17:21 Mittendeep: wish that api 19 was the most used one ;) Feb 19 02:17:31 Mittendeep: The error isn't even in the code you posted. Feb 19 02:17:48 Or at least the error trigger isn't. Feb 19 02:17:53 so if I code for froyo it will work on jellybean in theory Feb 19 02:18:00 The NullPointerException stack trace will tell you what the trigger is. Feb 19 02:18:01 donavan01, just get 16 and up Feb 19 02:18:08 donavan01: it will work Feb 19 02:18:14 and a jdk, you get from java.com Feb 19 02:18:27 but I dont think you should start from api lower than 16 now Feb 19 02:18:34 no it said cant find JVM not JDK Feb 19 02:19:00 i was guessing java virtual machine or something Feb 19 02:19:04 A new Android Studio 1.1.0 is available in the beta channel. Feb 19 02:19:10 * gordon_ is dancing Feb 19 02:19:16 no jvm is basically no jdk Feb 19 02:19:24 TacticalJoke: here is the file that parses the xml and should set the editText fields on initialization. http://pastebin.com/6bp5sM8R Feb 19 02:19:48 donavan01: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html Feb 19 02:22:23 Mittendeep: And where is parse() being called from? Feb 19 02:22:51 Mittendeep: BTW, you are taking a really simple problem and create a maze of code that's full of hidden complexity. Feb 19 02:23:27 Well, a simple-ish problem. Feb 19 02:23:43 thanks everyone I figured java missing was the issue downloading it now ... so as far as the version I want to download 16,17,18 and so on Feb 19 02:24:22 donavan01: what ? Feb 19 02:24:30 what version are you talking abot ? Feb 19 02:24:33 *about Feb 19 02:26:06 honestly im not sure I was told to get 16 and up when I asked about which versions of android and I was told to get 16 and up Feb 19 02:28:25 I am just trying to understand if I wan to write a program for phones that run thes say froyo thru lollipop would I use just the froyo files or do I need to get everything from froyo thru lollipop.... im a complete noob to all of this Feb 19 02:28:58 wow lenovo installs Superfish on their laptops Feb 19 02:29:17 You only need the latest version of the Android SDK. It's backwards-compatible. Feb 19 02:29:23 (injects advertisements on Google search results and on websites. ) Feb 19 02:30:26 donavan01: Just get the latest JDK, install Android Studio, and you're good to go. Feb 19 02:30:52 (Disclaimer: Prediction not tested outside of Windows.) Feb 19 02:31:14 That's terrible, g00s. Feb 19 02:31:39 this is why people get apple stuff, no hassles Feb 19 02:31:44 is anyone here good at reading logs Feb 19 02:31:58 screwsss for your own app, or somebody elses ? Feb 19 02:32:15 um.. my own app Feb 19 02:32:18 getting those now ... maybe its a difference from ecpilse to AS I remember you had to do something like select the version you wanted to build on for some reason and it would go out to google and download a bumch of libraries Feb 19 02:32:19 TacticalJoke: I know this is a mess, can it be fixed though? This has taken me over 12 hours and it is embarrassing as hell. Feb 19 02:32:25 then you should know what you are logging screwsss Feb 19 02:32:36 should is a funny word Feb 19 02:32:44 Mittendeep: Maybe. You seem to be new to Java, though. Feb 19 02:32:50 we're not debugging your tinder + exposed thing Feb 19 02:32:58 Mittendeep: That code that subclasses your activity is just wrong. It should not subclass. Feb 19 02:33:15 All the code that deals with XML should be outside of your activity class (and certain not in a subclass of your activity class). Feb 19 02:33:20 certainly* Feb 19 02:33:21 well I can tell you I got an apple because it an its 2 twin brothers were free and faster than anything else I had Feb 19 02:33:21 its cool. i tried to fix it by removing xposed but symptoms were exactly the same Feb 19 02:34:22 screwsss off topic for this channel Feb 19 02:34:40 ill try cyanogenmod Feb 19 02:34:52 Mittendeep: It's hard for me to give a really concrete suggestion without seeing everything. Feb 19 02:35:09 ok installed the latest java and the latest AS and it still is looking for a JVM Feb 19 02:36:33 as a side question, will these freenode channels explode if people talk to long about a certain topic thats not on topic Feb 19 02:36:45 Mittendeep: If I were there I would literally start typing at your keyboard. lol Feb 19 02:36:46 screwsss you can get banned Feb 19 02:36:54 "No, do it like this!" Feb 19 02:36:59 TacticalJoke: If I zipped up my projects folder would you take a look at it? I could buy you a pizza or something. Feb 19 02:36:59 ooh. Feb 19 02:37:18 Is there a way you could do it without zipping or downloading? I just have a gazillion windows open right now. Feb 19 02:37:19 can i find someoen to talk to in pm Feb 19 02:37:23 And you don't have to buy anything. Feb 19 02:37:55 I only need to see the relevant Java files, really. Feb 19 02:39:27 setOnTouchListener doesnt detect an event Feb 19 02:39:50 Mittendeep: How new are you to Java? Just curious. Feb 19 02:40:17 how can i solve that problem, this is my code http://pastebin.com/yM6SW9n0 Feb 19 02:41:04 g00s: I used to like Lenovo, but this might put me off them for life. Feb 19 02:41:25 TacticalJoke: http://pastebin.com/wwyMe5tk and http://pastebin.com/77u5xUFh - This is my second quarter programming and one of my classes is using BlueJ to teach me fundamentals while another one is for mobile application development. Feb 19 02:42:12 Mittendeep: Who is calling XMLPullParserHandler.parse? I don't see a caller of that. Feb 19 02:42:22 Oh, never mind. I overlooked something. Feb 19 02:43:18 For a start, just remove "extends CreateXml" from XMLPullParserHandler. Feb 19 02:45:17 To get things to compile (and maybe work), you could just copy-paste that parse() method into CreateXml.java. Just temporarily. Feb 19 02:45:55 Once that compiles and works, it might be wise to create this XMLPullParserHandler properly (i.e., without arbitrarily subclassing an Activity). Feb 19 02:45:58 ok I have java 6 and java 8 installed on this system is it going to cause me issue Feb 19 02:47:11 TacticalJoke: I just wipe the system anyway after getting the machine, so it doesn't make sense Feb 19 02:47:19 s/sense/problem/ Feb 19 02:47:23 late day at work -_- Feb 19 02:47:24 yeah everybody should do that anyhow Feb 19 02:47:33 as long as they give you the iso :) Feb 19 02:47:35 Ya. I just dislike giving money to a company who'd do that. :/ Feb 19 02:47:53 dell shipped known defective machines for a while, they all suck Feb 19 02:48:45 HTC used to ship backdoors, iOS had backdoor so big it was more like hangar doors with landing lights and ILS, etc. etc. Feb 19 02:49:12 what was that software that used to come on some androi devices Feb 19 02:49:17 very intrusive Feb 19 02:50:09 Mittendeep: BTW, do you absolutely *have* to use XML here? Feb 19 02:50:27 TacticalJokes: Yes, I do. =( Feb 19 02:50:41 Do you have to use pull-parsing? Feb 19 02:51:48 ah, it was Carrier IQ Feb 19 02:51:57 http://www.tomsguide.com/us/Google-Android-Spyware-iOS-Carrier-IQ,news-13366.html Feb 19 02:52:28 wasn't it HTC's? Feb 19 02:52:43 don't remember, 2011 memory is fading Feb 19 02:52:53 No, I couldn't find an easier way to grab specific elements out of an xml file though. Feb 19 02:54:55 I think there are simpler ways, but I don't know much about them. Haven't done any XML parsing in a long time. Feb 19 02:55:03 In any case, it's not very hard to write simple code to do what you want. Feb 19 02:55:36 Grr still seeing java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.app.ActionBar.setTitle(java.lang.CharSequence)' on a null object reference Feb 19 02:57:11 TacticalJoke: Yeah, I figured as much. This code sucks and is messy, doesn't work correctly, etc. I am pretty frustrated with it to be honest. Feb 19 02:58:44 Mittendeep do you define the xml format ? Feb 19 02:59:14 Mittens :) Feb 19 02:59:18 serously this is the only droid related channel with active users Feb 19 02:59:29 goos: Yes, using XMLserializer. Feb 19 02:59:31 screwsss but your query is off topic Feb 19 02:59:49 screwsss and you have been told this over ugh a span of years - you keep doing this Feb 19 02:59:54 jken_: Why is your variable null? Feb 19 02:59:57 years? **** ENDING LOGGING AT Thu Feb 19 02:59:58 2015