**** BEGIN LOGGING AT Thu Feb 19 02:59:58 2015 Feb 19 03:00:05 screwsss yes , i remember you Feb 19 03:01:37 groxx: What's the best tree-parser for XML stuff? Feb 19 03:01:54 if I use alarmmanager to fire a pending intent repeatedly, and I start this alarm on boot, is it okay to also start the alarm when the user starts the app? From what I read on the docs, a duplicate PendingIntent will not override a previous alarm schedule because the intent is the same (this is what I'm hoping for). Feb 19 03:02:20 huh Feb 19 03:02:26 I noticed that since one is creating the PendingIntent from my Activity context, the other is from the BroadcastReceiver Context...so the PendingIntents would be different, and therefore the task would be double-scheduled, right? Feb 19 03:03:49 damn 2days lost for events , Feb 19 03:05:10 TacticalJoke: It is parsing the XML correctly, the val variables are coming back correct on application initialization. They need to populate the fields though. Feb 19 03:05:31 Did you copy-paste that parse() method to the CreateXml activity? Feb 19 03:06:10 I know it goes against what I said earlier, but it's easier to get things working and *then* tidy the code. Feb 19 03:06:13 TacticalJoke: of course Feb 19 03:06:51 damn 2days lost for touch event doesnt work on the fragments, Feb 19 03:06:57 TacticalJoke: Yeah I plan on cleaning everything up once this final issue is resolved. Feb 19 03:07:11 So it's not showing the values in the EditTexts? Feb 19 03:08:46 No, I can see their values when I am debugging, the set method isn't populating the EditText fields on initialization. Feb 19 03:09:05 are you sure years Feb 19 03:10:30 You need to change setLatitude and the like so that they say "lat.setText(text);" and so on. Feb 19 03:10:45 s/text/latitude/ Feb 19 03:11:42 http://pastebin.com/yM6SW9n0 , the touch event is detect on my tablette , how can i solve it? does any 1 have any idée? Feb 19 03:12:13 TacticalJoke: xml tree parser: dunno. everything tree-like I've touched with xml, in every language, has been so omg-horribly-slow (often due to my errors, to be clear) that I just avoid it by default. pull parsing is so much lighter weight that I just go there first. Feb 19 03:12:26 Ah, okay. Feb 19 03:12:35 Yeah, I guess it doesn't help that XML is kinda bloated, too. Feb 19 03:12:52 s/kinda/very/ Feb 19 03:13:29 I think the simplest solution in Mitten's case would be some kind of "Document" class that is returned from some kind of "parseStream" method. Feb 19 03:13:45 Thereby returning all those values which can later be shown in the UI. Feb 19 03:14:34 TacticalJoke & Mittendeep: could the current xml stuff be handled by SharedPreferences? or do you definitely need something more capable? Feb 19 03:14:39 Or just a constructor, of course. Feb 19 03:14:49 I think he or she has to use XML, for academic reasons. Feb 19 03:14:51 last I saw it was a small set of key/value, no loops / etc Feb 19 03:14:59 aah. well, that's a good reason too. Feb 19 03:15:06 I probably forgot :| Feb 19 03:15:30 Then again, SharedPreferences is XML. :D Feb 19 03:15:52 Mittens, is there a link to xml snippet ? Feb 19 03:16:08 keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore -list -v Feb 19 03:16:10 what is androiddebugkey? Feb 19 03:16:37 groxx: do u have idea how i solve my problem? the event is detected http://pastebin.com/yM6SW9n0 Feb 19 03:16:54 g00s & groxx: the xml file that is stored internally? no. groxx, here is what it looks like now http://pastebin.com/7iD46GDY Feb 19 03:17:25 Mittendeep the xml, not the code Feb 19 03:17:59 oh, so you are saving this data yourself also Feb 19 03:18:05 g00s: the xml file is created by the application on init if it doesn't exist already. Feb 19 03:18:14 Mittendeep can you just protobuf it ? Feb 19 03:18:32 store the protobug in sqlite or fs, whatever Feb 19 03:18:38 Mittendeep: Is the current code working? Feb 19 03:19:09 KingMe: androiddebugkey is an automatically-generated signing certificate for android apps, when you make debug builds. Feb 19 03:19:19 TacticalJoke: everything but the initial values showing up in the fields. It compiles and runs and the log files show that the xml is being read correctly and everything. Feb 19 03:19:59 groxx I get a error Alias does not exist Feb 19 03:20:15 Mittendeep also, you don't need to extract XML like that with XMLPull ... you can define each attr in attrs.xml and just have AttributeSet extract them from the parser Feb 19 03:20:15 how do I generate androiddebugkey? Feb 19 03:20:30 basically your xml reading code should be like 20 lines of code for that schema Feb 19 03:20:45 KingMe its generated automatically Feb 19 03:20:57 KingMe: does it not exist, or did you just not enter the right password? Feb 19 03:21:20 this is the command I use Feb 19 03:21:21 keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore -list -v Feb 19 03:21:29 groxx g00s TacticalJoke: this is what I should have done, huh? http://www.tutorialspoint.com/android/android_shared_preferences.htm Feb 19 03:21:50 Mittendeep: Assuming you're allowed to do that. Feb 19 03:22:12 KingMe: what's the output from that command? Feb 19 03:22:18 It's technically using XML (but only for implementation reasons). Feb 19 03:22:24 i wouldn't use sharedprefs for anything buts prefs, and maybe a cookie for state or something ... Feb 19 03:23:01 does < 10 small strings / ints / etc not fit in that category? Feb 19 03:23:18 keytool error: java.lang.Exception: Alias does not exist Feb 19 03:23:22 Since this is just the values of some EditTexts, it might qualify as preferences by usual definitions. Feb 19 03:23:29 is that all mittens has, 10 things ? Feb 19 03:23:38 g00s: 5 lol Feb 19 03:23:50 oh ha, yeah sure why not :| Feb 19 03:24:03 i thought this was like a kml file or something Feb 19 03:24:30 Mittendeep: But you said you have to use XML. Feb 19 03:24:31 I am aborting and going at this using sharedprefs. I got all these terrible ideas from stackexchange answers that I tried to implement. I feel like a total idiot. Feb 19 03:25:05 my guideline is usually "it makes sense to keep the file in memory at all times", because that's what it'll do. but for something that you'll always have in memory + need a reliable file store to back it between app runs, sharedprefs are pretty simple and as reliable as anything else. Feb 19 03:25:13 "When the user selects a button (“submit”), the 5 pieces of data must be written to an xml file in the applications /files directory. The format of the xml file is up to you." Feb 19 03:25:25 Why feel like an idiot? It's not like you did something dumb. It was actually pretty resourceful (subclassing to access that callback method). You just lack experience; no big deal. Feb 19 03:25:37 Mittendeep is this an assignment or something ? Feb 19 03:25:49 * g00s lost Feb 19 03:26:02 Mittendeep: well.... depending on the teacher, it might be considered too much of a shortcut. it's xml, but I'm guessing the goal is to get you to use "normal" xml apis? Feb 19 03:26:31 Yeah, it sounds like that, groxx. Feb 19 03:27:14 anybody else having problems with AS freezing on key input? (meaning it won't accept keystrokes anymore) I've had to restart it many times today... Feb 19 03:27:15 g00s and groxx: this assignment is really open ended. I think that was his goal, there were no hints at what xml apis to use though. Feb 19 03:27:32 Not here, MikeWallaceDev. Using 1.1. Feb 19 03:27:35 KingMe: dunno why it would be missing. tbh I'd probably just say delete / move the debug.keystore somewhere else, and hit 'run' in android studio. it'll probably regenerate it. Feb 19 03:28:05 1.1 rc1... Feb 19 03:28:11 MikeWallaceDev: none here. though sometimes it slows down. are you running low on heap space for studio? Feb 19 03:28:12 1.1 is out now. Feb 19 03:28:34 I didn't get an update notification yet... and I just restarted Feb 19 03:28:52 groxx, no, I don't think so Feb 19 03:28:56 so i just did a clean AS 1.1 install, and it crashes horribly. i swear, these guys do NOT do installation testing. Feb 19 03:29:14 I did change the heap but I hope that I didn't lose that setting with the upgrades Feb 19 03:29:57 new version: update and restarting again... Feb 19 03:30:08 you do lose that between upgrades Feb 19 03:30:12 sadly Feb 19 03:30:14 groxx I dont use android studio I am using command line. Do you know the command to run it? so I generate androiddebugkey Feb 19 03:30:19 I wish they'd provide a setting somewhere else to do that. Feb 19 03:30:41 I think they do now... seems I saw that somewhere Feb 19 03:31:36 I also noticed that they fixed on of my pet peeves: changing the 'run on' device from emulator to device when you plug a device in. Feb 19 03:32:07 KingMe: not sure off-hand, but there's an example 'generate' command here: http://developer.android.com/tools/publishing/app-signing.html#signing-manually Feb 19 03:32:14 KingMe: how are you building though? Feb 19 03:32:40 building with commands I downloaded the sdk only Feb 19 03:32:50 KingMe: which commands? ./gradlew? Feb 19 03:33:11 just keytool, jarsigner etc Feb 19 03:33:17 TacticalJoke: Is this even good advice? "The code to read the xml data file should reside in the onCreate() method." Feb 19 03:33:49 Mittendeep, it should be on a separate thread Feb 19 03:33:51 How can I create a PendingIntent and send it to AlarmManager in a BroadcastService, and then also *ensure* from my MainActivity that the alarm is created for that PendingIntent? Apparently creating an identical PendingIntent from a different Context constitutes making a unique PendingIntent, because it keeps starting new alarms Feb 19 03:34:10 KingMe: since you're doing it all by hand, then yeah - you probably just want to make "a" debug key somewhere, and use it when you sign your debug apks. every apk needs to be signed, the debug one is just a convenient one for local builds. Feb 19 03:34:41 KingMe: if you make sure the certificate is only good for ~ 1 year, the play store will reject the apk if you try to upload it, which could help guard against mistakes Feb 19 03:34:50 MikeWallaceDev: My professor seemed to want it there for a reason, but I don't know why. Feb 19 03:35:23 It can be there, but on a thread Feb 19 03:35:34 Mittendeep: it's a simple location, and for a small file it probably isn't noticeable. but in theory it should be on a background thread because it's doing file-system work, which can be slow. Feb 19 03:35:57 groxx I generated a myapp.keystore but I dont know what is or how to get "androiddebugkey"? Feb 19 03:36:44 KingMe: that's just the default key name generated by the more full-featured build tools. since you appear to not be using them, it doesn't exist. you can use any key. Feb 19 03:36:53 groxx, I have to disagree with you there. You should always do it on a background thread, you never know what could happen. If the reading hiccups your UI will suffer badly... Feb 19 03:37:01 Mittendeep: In terms of code design, it's bad advice. File-reading code shouldn't be in an activity class at all. The activity should ask some other object to read from the file. Feb 19 03:37:03 Mittendeep: Doing IO on the main thread (e.g. reading and parsing XML) is a very bad idea, your professor should not be suggesting this Feb 19 03:37:09 Though this can be *called* from onCreate. Feb 19 03:37:48 Once the parsing is done, you might want to pass the result to the main thread but that's not even always true, you might just stay on the background thread depending on what you need to do Feb 19 03:37:50 MikeWallaceDev: definitely. agreed it's a bad idea. but launching an activity _is_ a hiccup :) and for a class, it's good enough unless they say otherwise. Feb 19 03:37:55 Maybe their class isn't up to background processing yet. The professor might be keeping it simple. Feb 19 03:37:56 Maybe the professor is trying to illustrate why it's bad Feb 19 03:38:06 But, yeah, it's definitely background stuff in good code. Feb 19 03:38:07 "Do it the wrong way. Now do it the right way and see the difference." Feb 19 03:38:23 groxx, agreed. Feb 19 03:38:40 AS might even automatically set you on StrictMode and you'll get a big fat exception for doing that Feb 19 03:38:54 This is how ANR happen, wake up, people! Feb 19 03:39:21 I'd bet there are more bad threading related crashes than ANRs :) Feb 19 03:39:23 You have to opt in to StrictMode. Feb 19 03:39:24 Just say "no" to main thread hoggers Feb 19 03:39:35 What people? We are ALL saying to put it on a Thread :D Feb 19 03:39:43 "main" is a Thread! Feb 19 03:39:50 TacticalJoke: I used to think that until one day, I started receiving those without having explicitly turned it on. Never had the time to debug why Feb 19 03:40:12 deuteros__: I think recent OSes throw on network on the main thread, if that counts Feb 19 03:40:17 duh. Another Thread! :D Feb 19 03:40:33 What do we want? Tasks on a background thread? When do we want it? As soon as it finishes! Feb 19 03:40:36 deuteros__: dunno if they all do. I'd kinda hope so. Feb 19 03:41:01 MikeWallaceDev: it didnt work, i did what u told me but any way it changes nothing, Feb 19 03:41:05 deuteros__: You mean for networking? That's default now, yeah. Feb 19 03:41:08 What Tasks on a do we want background? thread? Feb 19 03:41:24 now im using activity instead of fragment, i have wasted a lot of time !!!!!! Feb 19 03:41:29 john67, the gesture ? Feb 19 03:41:30 fragments has kill me Feb 19 03:41:35 MikeWallaceDev: yeah Feb 19 03:41:59 don't know what to say mate... It works for me Feb 19 03:42:29 two of them, in two Fragments. :-/ Feb 19 03:42:33 anyone know how to use AlarmManager/PendingIntent? Feb 19 03:42:49 MikeWallaceDev: i have tried with setOnTouchListener, same thing Feb 19 03:42:50 hesperaux: you sacrifice a goat to Nyarlathotep, and hope for the best. Feb 19 03:42:55 hesperaux, maybe this will help? http://androiddevcorner.blogspot.ca/2014/01/creating-distinct-pendingintents.html Feb 19 03:42:55 thanks groxx I removed that part of the command and it worked :) Feb 19 03:43:13 Found the Chtulhu worshipper ^^ Feb 19 03:43:26 Mittendeep: The best design in your case is probably creating a Document class that has a constructor which taking File parameter. It also has public get-accessors (for the strings). It reads from the file and sets these strings. Later, the activity calls the get-accessors to get these strings. Feb 19 03:43:33 Nyarlathotep. "The creeping chaos". I figure they're the patron saint / god of programming. Feb 19 03:43:42 that, or the flying spaghetti monste Feb 19 03:43:45 Though everything they say about background threading is right. I'm just going on the assumption that your class isn't at the level of background processing yet. Feb 19 03:43:48 s/monste/monster/ Feb 19 03:43:50 Pastafaria foreva' Feb 19 03:43:50 http://www.andreas-schrade.de/2015/02/16/android-tutorial-how-to-create-a-kiosk-mode-in-android/ Feb 19 03:43:57 if you ever need one ;) Feb 19 03:43:58 s/taking/takes a/ Feb 19 03:44:14 hmmm, I wonder if the pending intents are in fact the same, but it's just reusing it and creating an additional schedule Feb 19 03:44:15 s/class/college class/ :D Feb 19 03:44:22 God, I wish I could type coherently today. Feb 19 03:44:30 hesperaux: https://developer.android.com/training/scheduling/alarms.html ? Feb 19 03:44:34 the setInexactRepeating() is creating N alarms for every time the PendingIntent is broadcast Feb 19 03:44:42 groxx, i've read that one Feb 19 03:45:00 john67 did you read this? http://developer.android.com/training/gestures/detector.html Feb 19 03:45:21 I'm trying to maintain a single alarm through either a BOOT_COMPLETED OR my MainActivity. Because the user shouldn't have to reboot their phone to activate a service Feb 19 03:46:03 since subsequently at every boot the Alarm is scheduled by the BOOT_COMPLETED receiver, scheduling it again in MainActivity is redundant, but it is necessary when the app is first installed Feb 19 03:46:15 hesperaux: ah. yeah, you may want to make the pendingintent, cancel any existing alarm, and then schedule it. pendingintents are shared resources, so as long as you make one that is Intent.filterEquals identical to a past one, it's "the same" pendingintent. Feb 19 03:46:33 hesperaux: also, iirc you can opt into persisting alarms between boots in Lollipop Feb 19 03:46:40 MikeWallaceDev: of course , i have also tried to implements GestureDetector.OnGestureListener, GestureDetector.OnDoubleTapListener with the class , same issue, Feb 19 03:46:46 yeah, I think I made the mistake of thinking the PI's were the same, but it's because i'm rescheduling alarms from the same PI over and over Feb 19 03:46:55 aaaaaaaaaaaaaaaand AS isn't taking my keys again. So much for 1.1... Feb 19 03:47:11 groxx, supporting 4.1.2+ here Feb 19 03:47:18 john67, pastebin your code.... Feb 19 03:47:27 MikeWallaceDev: oki Feb 19 03:48:29 hesperaux: also, if your app is force-stopped (I forget if background-app-killers do this), you won't receive boot-completed. so you'll still want to keep the activity-scheduling. Feb 19 03:48:30 If anyone can fix this sloppy mess I will donate 50$ to a charity or whatever, I can't justify spending more time on this tonight. I have been trying to hobble this together all day. http://pastebin.com/JnALPTki Feb 19 03:48:47 groxx, good point. I didn't realize that. Even better then ;) Feb 19 03:49:06 groxx, I bet it's because I never cancelled existing alarms using the PI in question... Feb 19 03:49:25 hesperaux: given "repeating" + not canceling + scheduling repeatedly, that's my guess. Feb 19 03:49:37 xD sounds stupid when you put it that way Feb 19 03:49:41 :) Feb 19 03:49:43 thanks for the help though Feb 19 03:49:44 hopefully it's that simple! Feb 19 03:50:16 >_> nope Feb 19 03:50:27 LOL the course average for the assignment is 30%. wtf? Feb 19 03:50:28 I just reinstalled the app, ran it, and now there is a fourth alarm (there were 3 before) Feb 19 03:51:24 hesperaux: are your pendingintents identical? Feb 19 03:51:36 I forget if there's a way to check if you're getting-or-creating Feb 19 03:51:39 how can I tell? Feb 19 03:51:56 I've been using `adb shell dumpsys alarm` to check for them Feb 19 03:52:26 it shows the PendingIntent reference I believe: each one has a different 8 hex digit value Feb 19 03:52:31 hesperaux: MikeWallaceDev linked to http://androiddevcorner.blogspot.ca/2014/01/creating-distinct-pendingintents.html which looks correct from a skim. Feb 19 03:53:02 of course it's correct. :P Feb 19 03:53:04 hesperaux: ah, flag no_create Feb 19 03:53:04 :D Feb 19 03:53:18 Mittendeep, I was always afraid of posting my code on the internet in school because of http://theory.stanford.edu/~aiken/moss/ potentially catching my own code and getting me kicked out Feb 19 03:53:44 MikeWallaceDev: lol, didn't notice that was yours xD there's just so much crappy pendingintent info out there, I doubt by default Feb 19 03:54:01 :) Feb 19 03:54:04 Mittendeep: Are the [ Log.i("", " text is " + val); ] things running? Feb 19 03:54:06 I read over it before, but it sounded like he was trying to do the opposite thing: i.e. make sure each pending intent was different, not the same Feb 19 03:54:11 And showing the correct values? Feb 19 03:54:19 TacticalJoke: Yes, that is what is so frustrating Feb 19 03:54:32 yiati, yeah isn't that the best? Feb 19 03:54:32 yeah, I had to be different, they are the same by default... Feb 19 03:54:51 hesperaux: _most_ problems I see are getting the same pendingintent when they expect them to be different. yours is likely the reverse, since you _want_ the same one (for canceling purposes). Feb 19 03:55:00 hesperaux: are you passing the same request code every time to getBroadcast? Feb 19 03:55:03 exactly Feb 19 03:55:09 yes, always 0 as of right now Feb 19 03:55:12 same action / etc / etc? Feb 19 03:55:21 i'll probably make that a weirdo constant just in case, but for now it's 0 Feb 19 03:55:32 any flags? pastebin? Feb 19 03:55:33 groxx, the only thing different is the context broadcasting it Feb 19 03:55:45 which shouldn't matter, yeah Feb 19 03:55:49 i'm calling a static function to broadcast the intent, both from a BOOT_COMPLETED receiver and the Activity Feb 19 03:55:50 Mittendeep: According to the code, the only one that shouldn't work is setTreasure (because "hiddenObject.setText(treasure);" is commented out). Feb 19 03:55:59 the static function takes a Context, and otherwise it's the same Feb 19 03:56:36 Mittendeep, yeah, I'm looking at the code too, it's not that bad... (it's not good, but it's not terrible) Feb 19 03:56:48 ok, it's terrible. But it should work :D Feb 19 03:56:57 why the static vars?? Feb 19 03:57:22 hesperaux: I'll vote for some pastebinned code, fwiw. it's probably something simple, there are a lot of small surprises that you could be hitting. Feb 19 03:57:34 k i'll fix up a paste, brb Feb 19 03:57:35 MikeWallaceDev: the ide suggested them and I didn't know any better Feb 19 03:57:53 don't trust it, it's out to get you. Feb 19 03:58:04 I am getting another null pointer exception where it just does not make sense. This is the error I get.. http://paste.ubuntu.com/10301502/ . This is my activity http://paste.ubuntu.com/10301484/ and this is the fragment its trying to pass the string to.. http://paste.ubuntu.com/10301493/ Feb 19 03:58:08 Can anyone help me out? Feb 19 03:58:13 Remove all those statics... Do you know what they do Mittendeep ? Feb 19 03:58:41 hesperaux: I'll have to afk for a bit, but I'll come back and read it eventually :| hopefully someone else is interested too Feb 19 03:59:03 http://pastebin.com/VG2WGRHT Feb 19 03:59:20 and you are initializing your strings to "", then assigning another value. That's creating objects for nothing... Initialize them to null. Feb 19 03:59:24 in MainActivity's onCreate(), I call BootReceiver.startRepeatingWeatherService(this); That's all Feb 19 03:59:26 MikeWallaceDev: restricts access to the variables. Feb 19 03:59:43 private does that Feb 19 03:59:48 Mittendeep, hell no, pretty much the opposite :) Feb 19 03:59:50 Mittendeep: Try calling setText with various values at various times. Feb 19 03:59:55 I can't see why calling setText isn't working. Feb 19 04:00:06 Maybe your EditTexts have invisible text? lol Feb 19 04:00:08 jken_: displayType = getArguments().getString("displayType"); Feb 19 04:00:20 is there a way to start AS for the first time and have it skip that stupid wizard ? Feb 19 04:00:29 jken_: lines 122-129 overwrite any bundle arguments you would be setting, so they're always null when the fragment starts up. Feb 19 04:00:40 g00s, talk about over optimizing your life xD Feb 19 04:00:40 e.g., after calling parse(), call setText on one of those EditTexts. Feb 19 04:00:43 See whether it ever works. Feb 19 04:00:44 Mittendeep, static means that there is only one instance of that variable, shared between every instance of that class. Feb 19 04:00:54 hesperaux it crashes Feb 19 04:00:56 who to the what? Feb 19 04:00:59 oh no D: Feb 19 04:01:18 google never tests this stuff. how can i do a fresh install and have this crash Feb 19 04:01:33 g00s, because reasons Feb 19 04:01:44 in this case, the wizard can not find mksdcard. but ... of course i have it (in path) Feb 19 04:01:44 was it installed previously? Feb 19 04:01:55 what OS? Feb 19 04:01:59 OS X Feb 19 04:02:00 jken_: if position is more than 1 you're not setting the bundle Feb 19 04:02:21 gordon_, position should be 0, checking now. Feb 19 04:02:24 groxx, for when you get back: http://pastebin.com/VG2WGRHT and in MainActivity's onCreate(), I call BootReceiver.startRepeatingWeatherService(this); That's all Feb 19 04:02:41 g00s: small possibility: iirc there's a plist somewhere that determines PATH for applications. you _may_ have to modify that, if other parts of your system are odd or soemthing. Feb 19 04:02:47 Mittendeep, just realized that your variables are 'public' so.. not restricted at all Feb 19 04:03:13 groxx the wizard asks you for the SDK. it select it, and it says "found SDK" Feb 19 04:03:17 then crashes :) Feb 19 04:03:29 nothing special about my install really Feb 19 04:03:40 g00s, hey maybe once it finds the sdk there's nothing left to do! ;] Feb 19 04:03:43 apps don't use your path Feb 19 04:04:42 MikeWallaceDev: http://pastebin.com/bjjEcchP Feb 19 04:04:44 your momma uses your path Feb 19 04:04:49 this is my code Feb 19 04:04:51 hesperaux: looks fine to me fwiw. which phone OS? and I'll give it a try on my app or something if I get time, I haven't done much with repeating alarms :| Feb 19 04:05:39 john67, looking at it... I have to restart AS, gimme a sec Feb 19 04:05:52 MikeWallaceDev: oki Feb 19 04:05:56 groxx, ehh....it's "LiquidSmooth 3.0" (4.4.4). It hurts me, but it's the only thing I can get to flash these days, except for 4.1 Feb 19 04:06:23 groxx, thanks for your help anyways Feb 19 04:07:20 john67, right off the bat, you're not implementing the correct listener : RecyclerView.OnItemTouchListener Feb 19 04:07:44 ron_frown whats up Feb 19 04:07:48 MikeWallaceDev: it didnt work so i change it, Feb 19 04:07:57 just being my dick self Feb 19 04:08:15 my ex employer that let me go (not on great terms at all) Feb 19 04:08:20 john67, and you're not InterceptTouchEvent... Feb 19 04:08:25 just tried to poach me from my new job Feb 19 04:08:26 lol Feb 19 04:08:41 MikeWallaceDev: i cant readapte your code , i did put it there but it changes nothing Feb 19 04:08:48 i can readpate Feb 19 04:08:52 adapte Feb 19 04:08:53 ron_frown, I will try really hard to ignore how amusing your nick is at this moment, and commiserate with you on this Feb 19 04:09:24 what readapt? Just put it in and modify the public boolean onSingleTapConfirmed(MotionEvent motionEvent) to whatever you need Feb 19 04:09:36 wut Feb 19 04:09:44 lol Feb 19 04:13:41 why would AS need to run mksdcard anyhow :| not like i asked to to create AVDs Feb 19 04:13:48 hehe Feb 19 04:15:19 JakeWharton how do you debug your rx stuff? do you have any special jake operators like onNextLog() onCompleteLog() etc Feb 19 04:15:44 we have static methods which are factories for Action1's that log Feb 19 04:15:49 ahh Feb 19 04:15:53 there's also built-in crap for logging all onNext/onComplete Feb 19 04:16:02 Mittendeep: Are you still doing this thing? I have to go soon, so if you want to exploit my eagerness you have to be quick. Feb 19 04:16:14 https://github.com/ReactiveX/RxJavaDebug Feb 19 04:16:20 TacticalJoke: Yes I am Feb 19 04:16:28 or the raw https://github.com/ReactiveX/RxJava/wiki/Plugins#rxjavaobservableexecutionhook Feb 19 04:16:31 JakeWharton ah thanks Feb 19 04:16:39 eagerness? TacticalJoke how do I cancel alarms with seemingly identical PendingIntents from different contexts! Feb 19 04:16:47 damn, too late Feb 19 04:16:59 Eagerness alone is insufficient. ;| I have no idea. Feb 19 04:17:05 xD Feb 19 04:17:38 aha ! i found a way around the crashing wizard :D Feb 19 04:18:19 I got some weird noises, Mittendeep. Not sure whatever you were doing worked. Feb 19 04:18:39 tried to send you a file Feb 19 04:19:12 DCC? woah, so oldschool Feb 19 04:19:53 dcc is the future bro Feb 19 04:20:28 where can I host a zip file for free without having to sign up? Feb 19 04:20:47 * hesperaux is not sure Feb 19 04:21:01 does yousendit.com still exist? Feb 19 04:21:28 nop. sign up thing now Feb 19 04:21:40 google docs Feb 19 04:21:50 google drive, share with the world Feb 19 04:21:54 yeah drive ftw Feb 19 04:21:55 ~next Feb 19 04:22:05 and dropbox/box Feb 19 04:23:10 JakeWharton, you're an expert guy...would you please tell me why calling this from a BOOT_COMPLETED receiver and then an Activity's onCreate() creates N alarms? http://pastebin.com/VG2WGRHT Feb 19 04:23:15 i really dont think its been years Feb 19 04:23:40 never used AlarmManager in my life Feb 19 04:23:57 me neither, think i'd have more grey hair if i did Feb 19 04:24:08 gah...sad day Feb 19 04:25:18 hesperaux glad you are an optimist Feb 19 04:25:35 yeah man, works great for me Feb 19 04:26:18 MikeWallaceDev: it changes nothing http://pastebin.com/ntZGQ9sW Feb 19 04:26:58 Mittendeep: Will you donate $1,000 to my favourite charity if I figure out the problem? Feb 19 04:27:07 lol Feb 19 04:27:12 I got 50$, im broke man Feb 19 04:27:18 CodeBucket Challenge? Feb 19 04:27:25 and you'll need 25 for play store fees Feb 19 04:27:29 dump this icy code on my head Feb 19 04:27:35 so mittens has $25 Feb 19 04:28:11 tacticaljoke: send me your email address so i can share this with you on google drive Feb 19 04:28:53 I'm running your app right now. :D Feb 19 04:29:31 TacticalJoke: I feel sorry for your IDE. Feb 19 04:29:41 MikeWallaceDev: i have done like u said but same results Feb 19 04:29:48 I'm looking Feb 19 04:31:44 john67, I don't see : m_rclrvw.addOnItemTouchListener(this); Feb 19 04:33:11 TacticalJoke: When you said you were running the app, was that a tacticaljoke or not? Feb 19 04:33:59 Oh. Feb 19 04:34:04 The problem is obvious. Can't believe I missed it. Feb 19 04:34:12 You're setting 'text' to "" on every loop iteration. Feb 19 04:34:51 This is ineffective: text = parser.getText(); Feb 19 04:36:23 tinder will crash on startup. seems to be no remedy Feb 19 04:36:23 That has to be one of those pattern-blindness things. Feb 19 04:37:13 TacticalJoke: What should I do with this money? Feb 19 04:37:52 I am never trusting QuickFix again, sooo much time wasted. =( Feb 19 04:38:32 What is QuickFix? Feb 19 04:38:52 Oh, Alt+Enter. Feb 19 04:39:34 Mittendeep: You should come back tomorrow for a proper code review. :D Feb 19 04:39:40 There is so much wrong with that code. Feb 19 04:39:56 * hesperaux now wants to see it Feb 19 04:39:59 I will be here all day tomorrow, this is last weeks assignment. This is like the only class I care about too. =( Feb 19 04:40:00 I don't mean that horribly. Just... I can't even. Feb 19 04:40:06 I must gaze upon that which is awful Feb 19 04:40:25 It's this: http://pastebin.com/JnALPTki Feb 19 04:40:28 It's not the worst code ever. Feb 19 04:42:00 just a bunch of auto generated garbage and code from all over mashed together. Feb 19 04:42:03 Mittendeep: Can I do a code review thing tomorrow? Feb 19 04:42:09 Because you could seriously make this neat. Feb 19 04:42:20 pre-initializing all the strings Feb 19 04:42:22 It is fine, everything works. I would really appreciate that though! Feb 19 04:42:32 makes me feel unclean Feb 19 04:42:33 I already have cleaned it up a bit. Feb 19 04:42:38 otherwise, looks like my code I guess Feb 19 04:42:45 I wouldn't put so much stuff in a try{} Feb 19 04:43:45 the code feels long, like a cat Feb 19 04:44:24 Mittendeep: Is this a Comp Sci? Just curious. Feb 19 04:44:26 -a Feb 19 04:44:34 Mobile Application Development Feb 19 04:44:50 ut? Feb 19 04:44:57 val = text; in every case is redundant. Also, use else if to avoid over-use of if Feb 19 04:45:15 Okay. The main thing that would help the readability and changeability of that code is to extract some kind of "Document" class from it. Feb 19 04:45:23 tagname can only be one string Feb 19 04:46:45 basically, putting the same thing in many ifs is not necessary Feb 19 04:46:55 I will upload a cleaned up version in a few minutes Feb 19 04:47:48 The new default Android-app icon is really neat. Feb 19 04:48:00 I already changed them to else ifs, this was someone else's xml parser example that they said was working. I just wanted working code before I went in and cleaned it up. Feb 19 04:48:10 ok Feb 19 04:48:18 TacticalJoke, it's not the green android? Feb 19 04:48:30 It's green but it's just a face now. Feb 19 04:48:32 And it's higher-res. Feb 19 04:48:37 Or higher-quality. Feb 19 04:49:40 like the android studio icon? Feb 19 04:49:49 Nah. It's still that robot guy. Feb 19 04:49:59 TacticalJoke g00s groxx hesperaux et. all: Thank you guys so much for your patience and help! Feb 19 04:50:10 * hesperaux didn't do a thing, but sure Feb 19 04:50:15 haha Feb 19 04:50:38 No worries. Feb 19 04:50:41 hesperaux: you said the code didn't look "that bad" or something encouraging. Feb 19 04:50:54 lol Feb 19 04:52:08 I don't know what to do about my app's icon. So hard to make something simple and awesome. Feb 19 04:52:16 Especially since I suck at art. Feb 19 04:52:32 john67, I'm going to bed... Ping me tomorrow if you still have problems Feb 19 04:52:35 good night all! Feb 19 04:52:38 The annoying thing about icons is that you can't use much detail because of their size. Feb 19 04:52:39 Good night. Feb 19 04:52:40 MikeWallace: Thank you! Feb 19 04:52:47 MikeWallaceDev: oki thnks Feb 19 04:52:54 no prob Mittendeep Feb 19 04:53:30 my problem with icons is trying to come up with a metaphor that clearly represents the app - sometimes it's not as easy Feb 19 04:53:35 Yeah. Feb 19 04:53:52 i am decent with graphics editing but it's the idea that I have problems with Feb 19 04:54:13 I have some Photoshop experience, so I can make something that looks fairly good, but it takes a huge amount of effort from me. :/ Feb 19 04:55:19 Inkscape seems nice, though. Feb 19 04:56:24 it is, but I find it slower to generate a finished product with it than PS Feb 19 04:57:12 From http://pastebin.com/7iD46GDY to http://pastebin.com/6AsYMWd6 Feb 19 04:57:29 hesperaux there is a tool for PS -> app did you see it ? Feb 19 04:57:44 no I didn't Feb 19 04:58:30 Mittendeep: Note that those fields ('treasure' and so on) can be local variables. Feb 19 04:59:01 The 'myFile' field also isn't used. Feb 19 05:00:02 And 'val' isn't needed: you can access 'text' directly. Feb 19 05:00:39 Fixed Feb 19 05:00:55 also same as before: you can put Log.i("", " text is " + val); at the end of your ifs, and combine the if into if, else if, else if... Feb 19 05:01:05 otherwise you are executing every if statement unnecessarily Feb 19 05:01:29 I just removed them, the ifs are all if else and in the right order too. Feb 19 05:01:42 ok Feb 19 05:01:52 It's a lot better. :) Feb 19 05:02:03 the only other thing i'd change is probably to put only things that throw exceptions into your try{} blocks Feb 19 05:02:09 not really necessary, just clearer Feb 19 05:02:16 If you eventually extract a Document class the code will largely be pure simplicity. Feb 19 05:02:36 I can't compile this on Eclipse without the try blocks, they give me a compile time warning Feb 19 05:02:45 not saying to remove them Feb 19 05:02:45 *error Feb 19 05:02:56 but you can take the getText() stuff out of there - those won't throw an exception Feb 19 05:03:06 well, unless it's NullPointerException Feb 19 05:03:39 * hesperaux doesn't know if Eclipse is that lame Feb 19 05:04:30 hesperaux: NPE isn't a checked exception. Feb 19 05:04:42 I didnt think so but I haven't used eclipse in a long tme Feb 19 05:05:42 It is 11pm, I'm going to go play a video game and forget all about treasure hunting. Goodnight friends! Feb 19 05:05:50 night Feb 19 05:05:55 11 here too Feb 19 05:05:58 game sounds good Feb 19 05:06:01 stupid AlarmManager Feb 19 05:06:08 Which game? Feb 19 05:06:17 Plot twist: a game about treasure hunting. Feb 19 05:06:22 lol, minecraft Feb 19 05:06:36 Diablo 2 ftw Feb 19 05:06:44 * hesperaux is thinking about battlefield Feb 19 05:07:02 Mittendeep: \o gnight Feb 19 05:07:02 i haven't gotten squat done today though. gotta keep working a while Feb 19 05:07:14 * deuteros__ was playing Minecraft when it was still alpha Feb 19 05:07:21 heh, me too Feb 19 05:08:00 nah i think it was newer than that. don't remember though Feb 19 05:08:05 fitting, since minecraft is written in java Feb 19 05:08:17 it's like a gateway drug to android Feb 19 05:08:27 haha Feb 19 05:08:43 * hesperaux doesn't consider android a drug Feb 19 05:08:57 Not all drugs are bad Feb 19 05:09:02 Did you all see about MS and asm.js? Feb 19 05:09:08 wat. no Feb 19 05:09:12 https://blog.mozilla.org/luke/2015/02/18/microsoft-announces-asm-js-optimizations/ Feb 19 05:09:15 (that was @TacticalJoke btw) Feb 19 05:09:48 reddit comments: http://www.reddit.com/r/programming/comments/2wcfvd/microsoft_announces_asmjs_optimizations/ Feb 19 05:10:46 asm.js++ w00t Feb 19 05:10:56 gonna go play might and magic 7, just beat MM8, 10 sucks Feb 19 05:11:39 deuteros__ which ones do you recommend :D Feb 19 05:11:45 * hesperaux replaces might and magic, and MM with the word Windows Feb 19 05:11:55 g00s: So many to choose from Feb 19 05:12:17 where is windows 9 btw, did i miss something? Feb 19 05:12:22 * groxx is still thinking about Doors http://bigworld.neocities.org/ Feb 19 05:12:37 I think they're trying to distance themselves from Windows 8. Feb 19 05:12:42 Plus, 10 is cool to humans. :D Feb 19 05:12:48 there are 3 of them though Feb 19 05:12:55 they should call it MS OS X Feb 19 05:13:03 g00s: haha Feb 19 05:13:04 afaik the claim is that 9 breaks code that tries to work on 95/98 by checking "beginsWith('9')" Feb 19 05:13:07 Mittendeep: Three of what? Feb 19 05:13:13 windows 8 Feb 19 05:13:24 but personally I think they're just trying to skip the odd-numbers-are-cursed problem they've always had Feb 19 05:13:36 s/numbers/releases Feb 19 05:13:40 There is a very good reason why they are skipping Windows 9 Feb 19 05:13:49 deuteros__: they can't count? Feb 19 05:13:51 I think Windows 8's bad reputation has to be a big factor. Feb 19 05:14:01 I would definitely skip 9 if I were Microsoft. Feb 19 05:14:23 There are thousands of apps out there that detect Windows 95 with "if (version.StartsWith("9")) ... to Feb 19 05:14:24 9 is kinda ugly anyway. it's a top-heavy 6. srsly, wtf English? Feb 19 05:15:40 is there an archive for the ndk for linux? All I can find is a .bin (which is an elf executable...), I'd really rather have complete control over extraction and placement Feb 19 05:15:47 I hope Microsoft does well with Windows 10. It would be cool to see some real competition between them and Google. Feb 19 05:15:54 Also, C# is kinda nice. Feb 19 05:16:02 Ademan: the .bin is a self-extracting .zip, just rename and gunzip Feb 19 05:16:06 TacticalJoke: What kind of competition are you talking about? Feb 19 05:16:19 On phones, mainly. Feb 19 05:16:28 getting away from duopoly Feb 19 05:16:36 Windows 10 doesn't have much to do with phones Feb 19 05:16:57 But yeah I wouldn't mind if Apple dropped from 15% market share down to 5% :) Feb 19 05:17:26 Not sure why you think that, deuteros__. Feb 19 05:17:31 windows 10 still won't be posix compliant. /me is uninterested Feb 19 05:17:55 groxx: wow you're right, thanks. It has an ELF executable header, I didn't expect that to work. Feb 19 05:17:59 POSIX, yeah, can't believe an OS in 2015 won't be compliant with a 20 year old spec that nobody honors anyway Feb 19 05:18:23 (and I'm being kind with "20") Feb 19 05:18:25 Ademan: :) I wish they'd make that detail clear. not sure why they made it executable :\ Feb 19 05:20:47 I wonder what the future of the desktop holds. Feb 19 05:21:18 I use my tablet almost never. All it does is test my app. Feb 19 05:21:23 2015 is the year of Linux, no doubt Feb 19 05:23:09 i wonder if its possible to use hololens as a "monitor" Feb 19 05:26:16 the future of the desktop is probably mobile + getting away from 'slabs of glass' Feb 19 05:26:38 linux will get there in 20 years :) Feb 19 05:27:21 Some Linux advocates claim victory now because of Android. Feb 19 05:27:23 g00s: I sure hope so, but I imagine the resolution will be awfully meh, for the same reason as Oculus's resolution is meh for that. Feb 19 05:28:49 TacticalJoke: also servers Feb 19 05:32:48 i had another a-ha moment with rx today. I think the hardest thing for me to get my head around is mixing hot/cold observables and managing subscription side-effects Feb 19 05:33:04 g00s: http://pastebin.com/LAAP0iwY Feb 19 05:33:33 g00s: Describe your aha? Feb 19 05:33:34 subscribe(aBehaviorSubject) ... this didn't work. needed subscribe(AsyncSubject) ... because the cold obervable complete finishes the behaviorsubject Feb 19 05:34:09 then subscribing to that behaviorsubject resulted in instant onComplete of the newly plugged in pipeline Feb 19 05:36:08 g00s: ! Feb 19 05:36:15 hey thepoosh :D Feb 19 05:36:28 it's supposed to be snowing today Feb 19 05:36:32 working from home Feb 19 05:37:33 thepoosh sprint in the snow ! Feb 19 05:38:38 thepoosh did you see this? https://code.facebook.com/posts/393927910787513/ Feb 19 05:39:18 g00s: that is interesting! Feb 19 05:39:51 i think he build this around LocalServerSocket Feb 19 05:40:18 which had a stupid bug of not being able to close it but whatever Feb 19 05:40:55 yes it uses a unix socket Feb 19 05:41:09 hey guys I have a gridview with images and text... I load the images with Picasso and it works great but that first initial scroll is quite slow because it is loading the images... after that it's ok but how can I avoid that first inital slow load? Feb 19 05:42:18 Getting faster internet Feb 19 05:42:31 110 mbps, sorry any other answers? Feb 19 05:42:42 disturbing: http://thenextweb.com/insider/2015/02/19/lenovo-caught-installing-adware-new-computers/ Feb 19 05:42:57 (as is linking to TNW, but yeah) Feb 19 05:43:11 i'm using different layout types and all but it's just that first time it loads while the gridview rows are null its a tad laggy. Feb 19 05:43:32 MartialLaw: "quite slow" how? Feb 19 05:44:00 it takes maybe a half a second to load it, but you can see it and it looks junky Feb 19 05:44:41 MartialLaw: can you be more specific? does it freeze for a half second, or does it just show nothing until 1/2 second later when it fades in, or something else? Feb 19 05:44:46 as i said before i believe my logic is fine in the getView() of my adapter but it's that inital load Feb 19 05:45:30 no not freezing, it's just loading the image... i suppose there is nothing i can do about that but is there a way to load all of the images up and then display the gridview rows Feb 19 05:46:20 prefetch if you want Feb 19 05:46:41 MartialLaw: there's a .fetch() method that'll start the request without having a view handy. you can pre-fetch in advance of what's being displayed Feb 19 05:47:40 will that will in the getView()? Feb 19 05:48:27 It's something you would call before you display the GridView Feb 19 05:48:45 ok i understand. thanks Feb 19 05:48:49 MartialLaw: possibly. depends on how you build it. personally I'd add a scroll listener to the view, find the top item displayed, and fetch the next "page" or so ahead of display Feb 19 05:49:05 s/top/"next-most"/ Feb 19 05:51:17 i dont get the use of this onInterceptTouchEvent with the TouchEvent .im trying to use the parentLayout with TouchEvent .But it isnt detected .this is the code http://pastebin.com/xqtP7LB5 .Can any one give me some help please Feb 19 05:51:20 groxx "They install a web proxy which MITMs all web connections, including HTTPS by means of a pre-installed trusted root certificate." Feb 19 05:52:22 holy crap, that is awful! https://news.ycombinator.com/item?id=9072481 Feb 19 05:55:51 g00s: yeah, that's about my interpretation of it too. they're pushing for the "worst shit I've heard this year" award. Feb 19 05:57:14 just _once_ I'd like to see crap like this result in a large business going out of existence. Feb 19 05:57:31 [13:36] screwsss you can get banned Feb 19 05:57:35 you can get Feb 19 05:57:38 um Feb 19 05:58:26 well, once sony did that rootkit thing .. oh wait, what happened to the vaio Feb 19 05:58:49 yeah, the rootkit was pretty amazing. yet sony exists. Feb 19 05:59:02 this is one of my complaints against the universe. Feb 19 05:59:06 barely. they've been doing cameras and thousand dollar android walkmans Feb 19 05:59:48 i think cameras is one of the few bright sony business lines Feb 19 06:00:32 batteries too. and TVs. and blu-ray. Feb 19 06:00:41 god, I hope bluray dies soon Feb 19 06:00:44 oh yeah they got panasonic Feb 19 06:01:11 no, i was wrong Feb 19 06:03:01 don't they have a little playstation thing going on too? :p Feb 19 06:04:04 JesusFreke: I think that's samsung Feb 19 06:07:34 anyone know if in the facebook sdk you can get a user's friend list? the entire thing rather then just friends who have the app? Feb 19 06:08:47 Anyone ever have Android Studio do a global refactor on them? Copy + Pasted an adapter class I made into a new class and refactored the name only to see the refactor in that class affect the other adapter class as well. Mildly irritating. Feb 19 06:14:23 anyone here use alarmmanager with inexactRepeating? Feb 19 06:28:07 actually i think i figured this out Feb 19 06:29:04 groxx, a viable solution for me seems to be: use FLAG_NO_CREATE, check if the PendingIntent created is still null. If so, create it and schedule. Otherwise, do nothing because the PendingIntent was already used and therefore scheduled. It appears to work, even if I kill the app manually and start it back up. Feb 19 06:29:37 After force stop, starting the app up again schedules the service anew, and when I check adb for duplicates, I only see one schedule Feb 19 06:30:09 hesperaux: does cancel still not work then? sounds like a decent patch in any case Feb 19 06:30:09 \o/ Feb 19 06:30:28 I didn't even bother doing cancel. It doesnt' appear to ever do anything... Feb 19 06:30:33 weird Feb 19 06:30:37 I guess it's because before I was cancelling a non-existing schedule? Feb 19 06:30:44 I'm not really sure... Feb 19 06:30:48 I'll paste bin this real quick for you to see Feb 19 06:30:55 ¯\_(ツ)_/¯ Feb 19 06:31:16 http://pastebin.com/4tc0JZiA Feb 19 06:31:20 I'll still try it tomorrow. I would expect cancel to work as expected, and the code looked fine to me Feb 19 06:31:44 if there's something weird with inexact repeating, I kinda wanna know what it is Feb 19 06:31:54 You might be right. I tried that by just recompiling/running without a reboot or anything Feb 19 06:32:06 I think it's more an issue with the PI's Feb 19 06:32:33 or maybe the cancel() method of alarmmanager doesn't work right with the PI Feb 19 06:32:46 ping me if i'm on tomorrow and I'll try to figure it out with you Feb 19 06:34:27 yeah. I still suspect it's something stupid we're both missing, but who knows Feb 19 06:34:38 what time do you usually get online? Feb 19 06:34:55 <_genuser_> ugh, doesn't seem fun to write this imagecachemanager... Feb 19 06:34:59 <_genuser_> so boring. Feb 19 06:35:17 groxx, tomorrow I'll probably be around all day, starting around 1/2PM Central time Feb 19 06:35:32 👍 Feb 19 06:35:48 * hesperaux wonders what happened to his UTF-8 Feb 19 06:36:02 that's not UTF8 :O Feb 19 06:36:08 _genuser_: try making an image cache manager factory. that usually spices up my Java code. Feb 19 06:36:10 or x-chat sucks Feb 19 06:36:25 it's emoji, it breaks a lot of utf stuff. Feb 19 06:36:33 :) Feb 19 06:36:57 d= then :) Feb 19 06:37:14 <_genuser_> groxx: a factory? taht control instances of the image cache manager? Feb 19 06:37:19 Hm. surely there's a better thumbs-up ASCII thing Feb 19 06:37:33 I like geese: =/\ Feb 19 06:37:43 _genuser_: ya. also dependency injection. use more of it. Feb 19 06:38:29 use it, or lose it Feb 19 06:38:51 <_genuser_> groxx: but that only adds more work to the actual image cache manager, :P Feb 19 06:39:37 <_genuser_> I'm actually working on pre-fetching stuff from db, actually. not like a disk cache. for that bit, I'll re-use existing libs. Feb 19 06:43:29 Do you guys remove Log.* from your app before release? Feb 19 06:43:42 Or does Android limit what Log messages make it to logcat? Feb 19 06:43:56 When I watch logcat unfiltered, it's amazing the phone still works Feb 19 06:44:58 hesperaux yeah, its like everything is crashing Feb 19 06:45:01 constantly Feb 19 06:45:45 I don't understand it Feb 19 06:46:10 Surely it can't be efficient to let thousands of messages per minute (sometimes per second) into the log? Feb 19 06:46:26 I don't know what shows up without debugging enabled; I'm hoping it only shows that stuff with debug on Feb 19 06:46:35 it always shows up Feb 19 06:46:38 do not log in release builds Feb 19 06:46:49 I might consider wrapping it then Feb 19 06:47:02 check out https://github.com/JakeWharton/Timber Feb 19 06:47:07 and only letting e and wtf make it through Feb 19 06:47:21 huh.. Feb 19 06:47:23 * hesperaux checks license Feb 19 06:47:25 i like wtf because AS makes those red XD Feb 19 06:47:29 :D Feb 19 06:47:40 JakeWharton, you're such a nice guy :) Feb 19 06:48:28 g00s, i think e does too, but wtf makes me lol because of Google's supposed meaning of WTF Feb 19 06:48:34 "What a Terrible Failure" makes me laugh Feb 19 06:49:56 wtf will crash the app Feb 19 06:50:28 oh yeah? I didn't know that. I pretty much never use it except for conditions which _should_ _not_ happen Feb 19 06:50:37 it doesn't crash mine O.o Feb 19 06:52:06 huh http://stackoverflow.com/questions/6752642/under-what-circumstances-will-androids-log-wtf-terminate-my-app Feb 19 06:52:43 has anyone here ever played with color distance? Feb 19 06:52:56 "There are no Tree implementations installed by default because every time you log in production, a puppy dies." <---lol Feb 19 06:53:17 I want to use Palette to find a dominant color from an image, and then find the "closest" MD color to that color. Feb 19 06:53:37 I found a library that supposedly lets you do that: https://github.com/MatthewYork/Colours Feb 19 06:54:22 but for some reason, I'm unable to use its Col our.distanceBetweenColors() method Feb 19 06:54:52 JakeWharton, question about Timber: how does it work when calling from BroadcastReceivers or Services not bound to an Activity? I would need to plant a Tree in their respective onCreates? Feb 19 06:56:25 <_genuser_> wait JakeWharton is on Tinder now? Feb 19 06:56:28 <_genuser_> oh wait.... Feb 19 06:56:43 hesperaux: as long as they are in-process it will be fine Feb 19 06:57:17 JakeWharton, what if the app's main activity is never created? Or am I making no sense? Feb 19 07:00:13 AFAIK, Palette doesn't have that functionality Feb 19 07:03:52 hesperaux: put it in Application.onCreate Feb 19 07:04:37 do I have to sublclass Application for that? Feb 19 07:05:10 yes Feb 19 07:05:50 never done that before. I'll have to look into that Feb 19 07:06:22 <_genuser_> google subclass application android, pick the first example, read code, you're done. Feb 19 07:06:28 k Feb 19 07:07:31 oh. that's pretty simple Feb 19 07:07:33 \o/ Feb 19 07:07:53 <_genuser_> sometimes the word subclassing can get a little threatening. Feb 19 07:08:11 in this case, I was more worried about google's dev docs saying it's very rarely needed Feb 19 07:08:19 (subclassing Application specifically) Feb 19 07:08:30 so naturally I assumed it was hard? Feb 19 07:09:41 <_genuser_> I know what you mean. there's lot of things that are presented as "complicated" and I have thought they'd be hard to implement. Feb 19 07:09:57 <_genuser_> then when finally buckle down and read thru the docs, it's something simple. Feb 19 07:12:02 Hello? Feb 19 07:12:27 This is my first time on IRC and I have a question I wanted to ask. Is this the forum to do so? Feb 19 07:12:54 <_genuser_> if it's related to android development, ask your questions. whoever is able to help, will do so. Feb 19 07:13:06 Ok! Thank you Feb 19 07:13:52 I was just wondering if there were any good tutorials on serial communication between an android device and a bluetooth device. I have searched high and low and many of the tutorials seem to lack a good explanation of code Feb 19 07:14:09 There seem to be a lot of parts involved, and a clear explanation would really help! Feb 19 07:14:36 procoding i guess i'd start with the bluetoothchat demo in legacy/ Feb 19 07:14:50 legacy? Feb 19 07:15:12 bluetoothchat is a good place to start Feb 19 07:15:34 that's how I began when I did that one time Feb 19 07:15:42 What is legay and where would I find the dmo? Feb 19 07:15:44 demo... sorry Feb 19 07:15:57 I think he is referring to the android sdk demo directory installed with the SDK Feb 19 07:16:16 but you can download BluetoothChat from google too, I think, as a ZIP Feb 19 07:16:32 you probably already have it in appdata or wherever the sdk is. I never look there so I don't know for sure Feb 19 07:16:39 Ok, lemme take a look Feb 19 07:17:45 it will be in your samples under the sdk Feb 19 07:17:58 find . -name "*BluetoothChat*" Feb 19 07:18:16 Still searching the maze known as a file system! Feb 19 07:18:49 .....\AppData\Local\Android\sdk\samples\android-20\legacy Feb 19 07:18:57 and then BluetoothChat folder Feb 19 07:19:00 if you're on Windows at least Feb 19 07:19:22 hesperaux your directory is different than mine :) do you have api 21 samples installed ? Feb 19 07:19:24 you can use %APPDATA% in the address bar to get to AppData\Roaming\, then up one directory and browse to Local Feb 19 07:19:49 g00s, I don't think so, but it's worth mentioning that android-* could be any version Feb 19 07:20:05 in 21 its no longer in legacy i guess Feb 19 07:20:14 huh Feb 19 07:20:18 Ah found it. %appdata% took me straight past "local" and into "roaming" Feb 19 07:20:31 yes Feb 19 07:20:38 I am much better with the Linux filesystem then Windows! Feb 19 07:20:55 I agree with that Feb 19 07:21:00 windows file system isn't that bad but i dislike it hiding stuff in appdata Feb 19 07:21:02 mlocate is awesome Feb 19 07:21:10 mlocate? Feb 19 07:21:14 first time users have a harder time getting to the places Feb 19 07:21:19 linux file search indexer that works incredibly well Feb 19 07:21:45 you just type locate 'anything' and boom it prints out all things like it in /* Feb 19 07:22:23 Searching the SDK folder. Where would the examples be? Feb 19 07:22:48 you can use locate on windows too in cygwin Feb 19 07:22:56 lemonxah, heh. cygwin Feb 19 07:23:12 yeah i have to have cygwin if i am on windows Feb 19 07:23:23 Oh gosh. My first ever OS fight on the internet Feb 19 07:23:29 where i am wokring now they only use windows :/ but luckily in 3 weeks i leave Feb 19 07:23:31 I get my fix by always having a putty session open to my server, where all my files are Feb 19 07:24:24 its not about getting a fix for me .. i find windows very limiting for work Feb 19 07:24:33 although at home i do have a gaming pc and that is windows :/ :( Feb 19 07:24:36 meh Feb 19 07:24:48 I have reached the point where I use just about everything except OS X Feb 19 07:24:53 i think you can install mosh in chrome Feb 19 07:24:59 yeah https://mosh.mit.edu/ Feb 19 07:25:16 i dont mind OS X its better than windows :) Feb 19 07:25:37 Sorry to interrupt, but I am having trouble finding the examples folder in the SDK folder Feb 19 07:25:39 its freebsd based Feb 19 07:25:41 I think OS X annoys me the most Feb 19 07:25:50 procoding, are you on windows? Feb 19 07:25:50 procoding, we are all off topic anyway Feb 19 07:26:03 That's fine! Its interesting! Feb 19 07:26:08 lemonxah but ... ntfs > hfs+ ... thats how bad hfs+ is Feb 19 07:26:13 Yes, windows (Have linux installed as well but use android studio) Feb 19 07:26:22 yeah i know :( Feb 19 07:26:22 Prefer Linux though Feb 19 07:26:31 Any way to do android dev on lniux? Feb 19 07:26:38 in vim Feb 19 07:26:38 android studio works on linux Feb 19 07:26:39 yes Feb 19 07:26:44 it does? Feb 19 07:26:45 no in android studio Feb 19 07:26:45 Hmmm Feb 19 07:26:47 yes Feb 19 07:26:50 Oh ok Feb 19 07:26:52 that is good to know! Feb 19 07:26:55 it is intelliJ it runs on the jvm Feb 19 07:26:57 anyway Feb 19 07:27:00 ok Feb 19 07:27:00 lets get the samples Feb 19 07:27:18 Where can I find the BlueToothChat example? Feb 19 07:27:23 I am in the SDK Folder on windows Feb 19 07:30:35 i dont have that installed either Feb 19 07:30:54 Don't have what installed? Feb 19 07:30:57 The examples? Feb 19 07:30:57 i am just installing it Feb 19 07:30:59 yeah Feb 19 07:31:03 i dont have the samples installed Feb 19 07:31:07 Oh, where are you isntalling it from? Feb 19 07:31:07 just installing them now Feb 19 07:31:13 from the SDK Manager Feb 19 07:31:16 go to API 21 Feb 19 07:31:23 In the SDK Folder? Feb 19 07:31:33 and then make sure you have Samples for SDK installed Feb 19 07:31:55 in android studio there is a Android SDK Manager button Feb 19 07:31:57 How would I make sure and where would I get them? Feb 19 07:31:59 SDK Manager? Feb 19 07:32:05 Oh I know that program Feb 19 07:32:07 One sec Feb 19 07:33:01 Well then, it seems I did not install them... Feb 19 07:33:07 Doing so now Feb 19 07:34:01 K Feb 19 07:34:03 Done Feb 19 07:34:28 i have slow internet Feb 19 07:34:34 still installing Feb 19 07:34:40 Foudn the BluetoothChat Example! Feb 19 07:34:52 Ok Feb 19 07:35:02 So that is where to start? Feb 19 07:35:36 Nevermind that Feb 19 07:35:38 Well Feb 19 07:35:54 Thank you so much for all of your help everyone! I definitely will come back to IRC! Feb 19 07:36:13 Hmmm. How do I log out? Feb 19 07:36:18 heh Feb 19 07:36:22 I know Feb 19 07:36:28 Very new to this Feb 19 07:36:32 lol Feb 19 07:36:33 :) Feb 19 07:36:38 glad i could help i think Feb 19 07:36:39 procoding were you doing rfcomm or ble ? Feb 19 07:36:41 awe g00s Feb 19 07:36:45 So... um... awkward... anyone know how? Feb 19 07:36:55 yes did you join this via a website? Feb 19 07:37:00 rfcomm is just bluetooth but now LE? Feb 19 07:37:00 is it in a browser? Feb 19 07:37:05 yes. in a browser Feb 19 07:37:10 just close the tab Feb 19 07:37:14 that will log you out Feb 19 07:37:16 oh. ok Feb 19 07:37:19 thanks! Feb 19 07:37:21 k Feb 19 07:37:46 i'm still having lots of problems with my BLE code, but the nordic semi app is having the same problems Feb 19 07:37:47 that is a bit weird not knowning how to opperate a browser Feb 19 07:38:21 maybe for ble i should do minsdk=21 Feb 19 07:38:23 i would expect people that start android dev to at least be able to opperate a browser lol Feb 19 07:38:27 maybe Feb 19 07:38:52 i want all companies to use nfc for access not just rfid Feb 19 07:38:58 so that i can open the doors with my phone Feb 19 07:39:07 cause i keep forgetting my tags Feb 19 07:39:12 lemonxah did you see google Nerby ? Feb 19 07:39:14 lol Feb 19 07:39:16 Nearby Feb 19 07:39:59 yeah Feb 19 07:40:06 well i have heard of it Feb 19 07:40:17 like when you are with someone else you get a reminder? Feb 19 07:40:38 like the police going .. "remind me to arrest this guy when i see him" Feb 19 07:40:40 LOL Feb 19 07:40:44 lol Feb 19 07:41:03 if you have traffic violations or something Feb 19 07:41:10 cops dont have to get out of the car Feb 19 07:41:17 just sit there and wait for you to drive past Feb 19 07:41:21 and bam .. they gotcha Feb 19 07:41:42 so i cant say that i like that idea :) Feb 19 07:41:52 not that i have traffic violations .. (much anyway) Feb 19 07:46:05 lemonxah only thing police are going to arrest you for, is using scala on android Feb 19 07:46:20 * lemonxah is tooo fast Feb 19 07:46:34 no, you'll be in jail before proguard is done Feb 19 07:46:43 :/ Feb 19 07:47:00 actually the build time isn't that bad with it Feb 19 07:47:07 but then again it depends on the project Feb 19 07:47:47 that computer is very tired Feb 19 07:56:22 lemonxah have you played around with any of the binary packing libs like protobuf cap'n'proto, etc Feb 19 07:58:59 JakeWharton do you like square wire ? Feb 19 07:59:11 yes Feb 19 07:59:47 g00s: for a certain projevct of mine I'm very tempted to go with ASN.1 Feb 19 07:59:56 i knew it p_l Feb 19 08:00:03 you always had a soft spot for that Feb 19 08:00:17 xD Feb 19 08:00:20 g00s, only protobuf for a short time till my team lead at the time decided that json was better :| Feb 19 08:01:03 well, I'm looking into implementing a network protocol, ASN.1 PEF looks pretty nice when you want minimal packet size xD Feb 19 08:07:53 so AS is out of beta Feb 19 08:08:19 for many months Feb 19 08:09:21 not many months Feb 19 08:09:32 cause the updates i was getting the last few months was Feb 19 08:09:41 1.1 beta 3 Feb 19 08:09:47 oh yeah, 1.1.0 is stable i think Feb 19 08:09:53 i just updated to 1.1.0 without the "beta" Feb 19 08:10:04 that would be 1.1 Feb 19 08:10:06 yeah Feb 19 08:10:10 and yes that version is out of beta Feb 19 08:10:16 the IDE has been out of beta for 3 months Feb 19 08:10:31 i was on a very long holiday from android Feb 19 08:10:34 since november Feb 19 08:10:37 :) Feb 19 08:10:43 well thar you go! Feb 19 08:11:50 yeah small things amuses this small mind Feb 19 08:14:20 JakeWharton, reading that doc you put together about kotlin being viable Feb 19 08:14:42 would you choose it over scala as a langauge if it wasn't for android? Feb 19 08:15:15 yes. scala is my last choice Feb 19 08:15:51 any specific reason for that? not to go into too much detail. or is it a preference Feb 19 08:17:08 i think the scala stuff is in the doc lemonxah Feb 19 08:17:17 maybe at the end, been a few since i looked at it Feb 19 08:17:19 the only time i didn't hate myself for writing scala was writing an sbt plugin (because it felt so at home). the language is gargantuan and done in a style that does not appeal to me on many levels. it encourages terseness for the sake of writing code efficiently at the expense of clarity and readability–especially so with needlessly cryptic syntax. Feb 19 08:17:33 yeah but that has to do with android specific issues, the stuff in the doc :) Feb 19 08:17:46 i understand why people like it. i just don't. Feb 19 08:18:38 since i tend to be paranoid anyhow, what would make me nervous is 2.12 requiring java 8. sure stay on 2.11 for a while but ... seems like a dead end Feb 19 08:18:44 thank you for the explanation Feb 19 08:19:05 i mean, java 7 is EOL in two months so the next version should require java 8 Feb 19 08:19:41 *JDK Feb 19 08:19:46 which is what i assume you meanm Feb 19 08:19:51 yeah Feb 19 08:20:19 my app keeps crashing Feb 19 08:20:23 anyone wanna read the logcat Feb 19 08:20:29 pastebin Feb 19 08:20:32 you do Feb 19 08:20:37 screwsss tinder is not your app Feb 19 08:21:23 i want to get a decent look and real world app runnin in kotlin but i keep wanting to do things a bit different cause i am so used to scala Feb 19 08:21:43 lemonxah: pastebin.com/LAAP0iwY were gonna have to take the rest of it to pm cuz hes right it isnt my app (yet) Feb 19 08:22:09 and the way that i write the dsl in it that i keep wanting to fall back to scala for the eaze of it .. not that scala is inherently easier or anything i am just more familiar with it Feb 19 08:22:46 language aesthetics aside, if typesafe said they were going to dedicat some effort to android that would be something Feb 19 08:23:39 but i dont mind having to use scala 2.11 over 2.12 its not like there is something in the langauge that urks me so bad that i need to use 2.12 Feb 19 08:23:45 even the ceylon guys said they would work on android Feb 19 08:24:15 just using 2.12 to use 2.12 is kind of a "i want the new toys" syndrome that all programmers suffer from :) Feb 19 08:24:21 what if i just reformat my phone Feb 19 08:25:40 screwsss i am not going to read that whole logcat i thought you had a specific issue you needed help with Feb 19 08:25:54 didn't think you wanted help to find out what help you need Feb 19 08:26:13 lemonxah: press ctrl - f then type tinder Feb 19 08:26:18 i want to know why its crashing Feb 19 08:26:26 yes i have seen that Feb 19 08:26:35 but the error log says exactly what is wrong with it Feb 19 08:26:50 not in plain english Feb 19 08:27:18 if you are a developer trying to fix the code it does Feb 19 08:27:28 ah. Feb 19 08:27:49 im trying to learn code Feb 19 08:27:51 actually Feb 19 08:28:14 screwsss show us some code ! Feb 19 08:28:52 so if i understand this correctly you wanted us to help you get your tinder app working again on your phone? Feb 19 08:28:59 cd c:\windows dir Feb 19 08:29:04 no Feb 19 08:29:12 i wanted to understand why this problem appeared out of nowhere Feb 19 08:29:22 so i can learn a bit more about the lesser seen side of android Feb 19 08:29:24 there is no way to determine that Feb 19 08:29:39 show the code only way Feb 19 08:30:02 logcat doesn't mean anything if you dont have to code to back it up Feb 19 08:30:38 JakeWharton, sry to bug you again :) just wondering if you are using any kotlin at sqaure Feb 19 08:30:50 only in debug code and internal apps at present Feb 19 08:30:58 we're pretty much blocked on the lack of annotation processing support for anything real Feb 19 08:31:10 oh ok Feb 19 08:32:53 lemonxah: you know what the solution is to my problem? Feb 19 08:33:10 btw i tried disabling selinux, didnt get very far, same result really Feb 19 08:34:14 what is the problem? Feb 19 08:34:23 what are you trying to achieve/ Feb 19 08:34:56 i want tinder to start without it crashing Feb 19 08:35:08 it will take me as far as the log in screen then i hit log in, loading swirl, boom crash Feb 19 08:35:17 then i suggest you contact tinder Feb 19 08:35:34 someone in another channel thought it might have something to do with IAP's in tinder and selinux Feb 19 08:35:46 do any major app dev's come in here? Feb 19 08:35:59 define major Feb 19 08:36:20 also this channel isn't for customer support btw Feb 19 08:36:20 like.. apps that have >1 million downloads Feb 19 08:36:35 this isnt really a channel for much is it Feb 19 08:36:47 by that definition yes a lot of people here have that kind of downloads on their apps Feb 19 08:37:02 okay cool Feb 19 08:37:06 this channel will help you if you have a coding problem Feb 19 08:37:08 but nobody from tinder Feb 19 08:37:26 this isnt an issue where i can just email the devs Feb 19 08:37:34 this isnt like "how do i swipe right" Feb 19 08:37:36 dont know ... we dont all say where we work we change excahnge problems we have encountered Feb 19 08:38:01 this is exactly the issue you email the devs about .. give them the logcat and say its crashing fix it Feb 19 08:38:20 anyway this conversation isn't adding anything benificial to the channel Feb 19 08:38:40 Android application development != Android application support Feb 19 08:39:05 i might have to come back to get the proper logcat command again later Feb 19 08:39:08 not sure Feb 19 08:39:13 is it a big deal Feb 19 08:39:15 lemonxah he doesn't get it Feb 19 08:39:22 yeah i noticed Feb 19 08:39:33 i know you guys know the solution to my problems.. Feb 19 08:39:33 SimonVT you around ? Feb 19 08:39:38 or at least where i can start investigating it Feb 19 08:39:39 its kinda amusing Feb 19 08:40:12 screwsss, we dont know the solution and there is no place to start other than emailing your logcat to tinder Feb 19 08:40:49 screwsss i'd move to iOS if i were you Feb 19 08:41:00 ios apparently has the same issues with tinder Feb 19 08:41:02 um Feb 19 08:41:06 you know what Feb 19 08:41:09 i think im just gonna reformat Feb 19 08:41:16 backup all my shit then go through aaallll the motions again Feb 19 08:41:22 cuz it was buggy before this crashing business started happening Feb 19 08:41:27 i think i mightve got viriied Feb 19 08:41:59 unless selinux updates itself Feb 19 08:42:30 anyhow how do i get in touch with the devs, they may aswell see this log Feb 19 08:42:53 * lemonxah doesn't know if this is for real or if he is being toyed with Feb 19 08:43:16 just wow Feb 19 08:43:33 have you tried googling tinder? Feb 19 08:43:48 yeh but "tinder crashes" is too generic Feb 19 08:44:00 ive read so many different things unrelated to my problem Feb 19 08:44:17 screwsss, http://bit.ly/1vjuDDk try that link Feb 19 08:44:26 screwsss: try #android, this channel is for app devs. Not customer support for random apps Feb 19 08:44:51 also, xposed in the stacktrace.... giant red flag Feb 19 08:46:46 this is going to be fun Feb 19 08:46:59 i uninstalled xposed, and even su, nothing Feb 19 08:47:02 exact same result Feb 19 08:47:05 heh good catch i was like tldr; Feb 19 08:47:07 i uninstalled the framework, everythnig Feb 19 08:47:16 screwsss, just go to #android please Feb 19 08:47:26 i will Feb 19 08:47:27 JakeWharton: exposing yourself, tinder... sounds like an old-school flasher in the modern era! Feb 19 08:47:31 i just couldve leave JakeWharton hanging Feb 19 08:49:31 lemonxah: are u sure u didnt mean this link https://www.youtube.com/watch?v=dQw4w9WgXcQ Feb 19 08:49:35 hi,can i add an invisible field to someone in my contact list programatically ? Feb 19 08:49:44 cant click on links at work Feb 19 08:49:49 doesn't work Feb 19 08:50:53 i wonder if i should factory reset just to rule out xposed Feb 19 08:51:00 i wanna rule out what caused the issue Feb 19 08:51:08 someone in cyano thought it was selinux Feb 19 08:51:16 selinux can cause apps to crash so i read Feb 19 08:51:33 thnx SimonVT Feb 19 08:51:38 well thnx in advance Feb 19 08:51:51 did i just get kicked Feb 19 08:51:58 Yes Feb 19 08:51:58 yes. Feb 19 08:52:08 * lemonxah facepalms Feb 19 08:52:09 you cant fix a problem by sweeping it under the rug Feb 19 08:52:21 Its not our problem Feb 19 08:52:23 screwsss: and none of us are relevant to your problem. Feb 19 08:52:45 it was funny at first but its gotten out of hand now i think Feb 19 08:52:46 Anyway, it was just a kick. Unless you keep going :) Feb 19 08:53:00 * lewellyn finds the energizers... ;) Feb 19 08:53:04 telling me to go to #android is like telling me to go to starbucks to learn to make coffe Feb 19 08:53:19 screwsss: and you're not making anything afiact. Feb 19 08:53:38 whats affiact Feb 19 08:53:41 <_genuser_> lol mission impossible. he's searching for "job" and it says nothing found. Feb 19 08:53:47 as far as i can tell Feb 19 08:53:54 it's more like "you walked into the coffee roastery trying to find out why the coffee you bought from someone else tasted funny." Feb 19 08:53:55 <_genuser_> then he just types in scroll usenet groups and it gives him a list of all newgroups, lol. Feb 19 08:54:41 Anyway, let's just leave it :) screwsss will find somewhere else to get customer support, and we'll go back to doing whatever we were doing Feb 19 08:54:58 i dunno, he's been at it for a while now Feb 19 08:54:59 guys thanks anyway Feb 19 08:55:23 i tried to polite at least :P i think i need a coffee now Feb 19 08:55:39 if my problem was irrelivant you couldve just told me Feb 19 08:55:47 screwsss i did Feb 19 08:55:52 like yesterday Feb 19 08:55:52 where Feb 19 08:55:56 * screwsss thinks Feb 19 08:55:59 <_genuser_> I see SimonVT's oped up. Is someone getting kicked? Feb 19 08:56:02 i also warned you about being banned Feb 19 08:56:10 Leave it, please :) Feb 19 08:56:47 SimonVT what are you working on these days ? more schematic ? Feb 19 08:56:49 * lemonxah cowers away Feb 19 08:57:02 g00s, you said ceylon was talking about supporting android? Feb 19 08:57:07 or i am misunderstanding? Feb 19 08:57:24 lemonxah gavin king said yes they want android support Feb 19 08:57:34 theres what 200 people in here? Feb 19 08:57:53 most know android very well (better than i at least) Feb 19 08:57:54 I haven't worked on schematic in a long time.. I should, getting rid if more sql Feb 19 08:58:25 thnx Feb 19 08:58:26 woo. Feb 19 08:58:30 relief finally :) Feb 19 08:58:48 gahhh now he's pming me Feb 19 08:58:53 Back to work I go :) Feb 19 08:58:57 heh Feb 19 08:58:58 <_genuser_> I have this entire thing mapped out in mind. but writing code is just so conmplicated for it. finding it hard to begin. :) Feb 19 08:59:07 g00s: set an autoreply script to say "PFFFTTTTTTTTTTTT!" each time. Feb 19 08:59:11 <_genuser_> sort of typical of any big project I start. Feb 19 08:59:20 i am hiding from work :) Feb 19 08:59:24 just /ignore Feb 19 08:59:26 lewellyn :D Feb 19 08:59:56 _genuser_: write a proper flowchart. like 1960s ibm-style. it'll help you do things for maximum effect withminimum effort to motivate yourself. Feb 19 09:00:24 _genuser_ you can use yEd for your flowchart ! Feb 19 09:00:27 a proper flowchart makes it really easy to say "i'm writing this function today" Feb 19 09:00:36 sigh. yEd. :( Feb 19 09:00:42 wut Feb 19 09:00:53 <_genuser_> lewellyn: but learning the 1960s style flowchating will take the same amount of time, lol. Feb 19 09:00:58 * lewellyn wishes there was a proper answer besides "use a template and scan the paper you charted on" Feb 19 09:01:23 i think _genuser_ needs an ed yourdon book Feb 19 09:01:27 <_genuser_> I tend to write it out best when I just think about it and map it out in mind. and then just watch a movie. Feb 19 09:01:50 <_genuser_> my mind keeps thinking about it. few movies and couple of days later, I'll have sort out the legos blocks in my mind. Feb 19 09:01:59 <_genuser_> I'll start writing objects and piecing them together. Feb 19 09:02:08 <_genuser_> very "un-documented" approach. Feb 19 09:02:32 anyone have a good tool for creating diagrams of data flow? bonus points if they can be animated. Feb 19 09:02:43 _genuser_: um. no. the ibm guide's like 50 pages and probably 1/3 of that is examples. Feb 19 09:02:57 JakeWharton: gliffy Feb 19 09:02:58 <_genuser_> g00s: ed yourdon, I'll google the fella. Feb 19 09:03:21 i know i haven't read anything about it but i wonder if google will make a compiler for ART maybe they have i am just ignorant of it but that could also then include jdk8 Feb 19 09:03:24 JakeWharton: http://upload.wikimedia.org/wikipedia/en/4/4d/Flowchart-template.jpg "{ Feb 19 09:03:24 <_genuser_> lewellyn: last time I did flowchats was in school. I was sure I wasn't going to do that again. it was like torture. Feb 19 09:03:25 * lemonxah full of hopes Feb 19 09:03:27 :P Feb 19 09:03:37 gliffy looks like an online yEd Feb 19 09:03:38 lewellyn: ha, nice Feb 19 09:03:40 _genuser_: then you didn't do it the ibm way. ;) Feb 19 09:04:11 _genuser_: seriously, a good flowchart makes your development much easier and less error-prone. Feb 19 09:04:14 i had one of those templates ! Feb 19 09:04:23 i think RIT bookstore had them Feb 19 09:04:24 <_genuser_> lewellyn: ugh, teachers who did bachelors, master, PhD, and then start teaching. never worked in actual life. obviously, they'll teach ... theoretical mumbo jumbo. Feb 19 09:04:27 it also makes it easier to figure out what to excise to make sure you can deliver on time. Feb 19 09:05:33 <_genuser_> I do agree, a properly drawn out flow chat will help you in development. but making one vs. just starting to code... I have the "jungle approach", lol. Feb 19 09:05:54 _genuser_: here's the lots-of-pictures one. http://media.ibm1130.org/E0016-ocr.pdf Feb 19 09:06:31 here's the slightly more useful one. http://www.eah-jena.de/~kleine/history/software/IBM-FlowchartingTechniques-GC20-8152-1.pdf Feb 19 09:06:47 thepoosh: this'll do, thanks Feb 19 09:06:53 if nothing else, it'll help you procrastinate :D Feb 19 09:06:59 thepoosh: i used this like 3 years ago. it's a lot nicer now Feb 19 09:07:28 JakeWharton: yes, it's much better now Feb 19 09:07:38 i don't think that animation is possible Feb 19 09:07:56 <_genuser_> lewellyn: thanks. it's a pdf, so I can just read it on my phone during some downtime. Feb 19 09:08:36 _genuser_: yup. and there are plenty of copies of the templates around the web, if you want to print one on card stock and cut the shapes out so you can do them on actual paper. Feb 19 09:09:01 i find the ibm changes from ecma make for a much better experience. but all the current tools use the expired ecma meanings. :( Feb 19 09:09:17 <_genuser_> lewellyn: oh, geez. no real paper stuff. I don't even have a desk to use for writing. just a computer desk. :) Feb 19 09:09:24 )the second pdf details the differences) Feb 19 09:09:27 <_genuser_> lewellyn: heck, I moved even my drawing to digital on a tablet. Feb 19 09:10:22 {offtopic} Is cyril's website wordpress based? http://cyrilmottier.com/ Feb 19 09:20:12 oh neat. gliffy uses the ibm symbols/names now. it's suddenly interesting to me. Feb 19 09:21:57 _genuser_: so yeah. use gliffy. ;) Feb 19 09:22:29 <_genuser_> nice, let me google gliffy now. :) Feb 19 09:22:37 is it correct that you cannot run an avd with an image of higher ram than your computer has? Feb 19 09:23:05 just don't end up with this. http://homes.soic.indiana.edu/nensmeng/images/ibm-flowchart.jpg :D Feb 19 09:24:04 <_genuser_> lolz Feb 19 09:29:38 Hello! I should use Roboto Regular and Roboto Medium fonts for all textviews in project. If my project min sdk is 19 - roboto will be by default? Feb 19 09:30:03 Has anyone used Retrofit & GSON for an api that requires data sent as Form Data? Feb 19 09:30:14 I'm not sure how to turn my GSON models into Form Data Feb 19 09:30:15 don't use Gson, use @FormUrlEncoded Feb 19 09:31:57 does that go in the model? Feb 19 09:33:49 as a tag on the interface? Feb 19 09:33:58 * Ankhwatcher just pasted @FormUrlEncoded Feb 19 09:34:19 onto anything he could think of until something didn't highlight as an error Feb 19 09:34:32 Hi everyone, why can't I use an activity that extends ActionBarActivity as a Fragment ? (since ActionBarActivity itself extends FragmentActvitiy) ? Feb 19 09:35:36 cristen: err you mean you want to inflate an activity using a fragment manager? Feb 19 09:36:01 ABA and FA are activities that can host support fragments Feb 19 09:37:30 I wrapped all my activities around a class that extends ActionBarActivity, so when I call setContentView on my classes the actionbar is automatically created (hence these classes extend my custom one which extends custom bar activity) Feb 19 09:37:56 in that parent class I set up a drawer and when I click on an item I want it to replace the FrameLayout with a Fragment Feb 19 09:38:53 okay, sounds plausable Feb 19 09:39:03 so I tried something like replace(…, new TermsActivity) but it states incompatible types Feb 19 09:39:07 but fragment != activity Feb 19 09:39:21 my TermsActivity extends ActionBarActivity Feb 19 09:39:30 it doesn't matter Feb 19 09:39:47 oh well there is certainly something I did miss then :( Feb 19 09:39:59 if it was TermsFragment extending Fragment it would work Feb 19 09:40:04 I have no idea what I am doing then lol Feb 19 09:40:13 yeah, lets find you a doc Feb 19 09:40:38 ok so If I want this page to be an activity I should duplicate the code to have an activity alone and a fragment ? Feb 19 09:40:46 cristen: how about this one: http://developer.android.com/guide/components/fragments.html Feb 19 09:41:25 I know this link well unfortunately haha ! I'm just confused about all that stuff :p Feb 19 09:41:32 cristen: One activity can host multiple fragments Feb 19 09:42:24 each fragment is an independant view which does it's own layout, animation etc Feb 19 09:42:32 the activity handles it's lifecycle Feb 19 09:42:51 yes I understand the philosophy Feb 19 09:43:02 I just made everything wrong or so I guess Feb 19 09:43:59 cristen: http://developer.android.com/training/implementing-navigation/nav-drawer.html Feb 19 09:44:07 I used that one too lmao Feb 19 09:44:12 turn your activities into fragments and try again Feb 19 09:44:24 you only need one activity at this point Feb 19 09:45:40 Actually I think I need 2 activities, because the terms alone are just full screen without an actionbar, and then I want to reuse it as a fragment that is called by the drawer in another activity Feb 19 09:45:49 this sounds so freaking complicated ugh Feb 19 09:47:22 cristen: maybe you need to play with a default generated master details flow app Feb 19 09:47:56 doesn't AS generate a menu drawer app for you also? Feb 19 09:54:10 * Ankhwatcher is stuck waiting for a test device to charge so it he can use it for mocking location Feb 19 10:12:32 has anyone seen macroid? Feb 19 10:12:41 macroid.github.io Feb 19 10:12:53 http://macroid.github.io/ ** Feb 19 10:14:40 lemonxah, the first sentence on their page, lol Feb 19 10:15:39 yes Feb 19 10:15:53 meh. scala. Dont they know that kotlin is the new hype train to jump on? Feb 19 10:15:54 well the second sentence Feb 19 10:16:06 folks, what is the most correct way to wake up device from adb console? Feb 19 10:16:19 and "unblock" Feb 19 10:16:25 its not just about hype though i like scala i want to like kotlin but how nice does the dsl look Feb 19 10:16:48 quasist, I dont think you can unlock a device from adb because this would be a security issue Feb 19 10:16:58 ty for info Feb 19 10:17:15 shell input keyevent 82 Feb 19 10:17:20 works for 1 of my devices... Feb 19 10:17:23 http://android.stackexchange.com/questions/40916/unlock-screen-with-adb-android-4-2 Feb 19 10:17:34 quasist, yeah but that only wakes up, doesnt it? Feb 19 10:17:38 it does not unlock Feb 19 10:17:50 it does unlock the screen at first boot Feb 19 10:17:52 ill try to remove screen block on my 2nd device and will try Feb 19 10:18:01 and no, it does not lite up screen on 2nd Feb 19 10:18:11 but if it wasn't first boot it just wakes the screen Feb 19 10:19:10 fucking samsung be crazy Feb 19 10:19:29 ok, i got it sorted out... it lights screen if only i set security slider to none ^_^ Feb 19 10:19:33 ty for support Feb 19 10:19:42 I thought my hw was too china Feb 19 10:19:57 I've plugged the phone I was trying to charg into a battery instead of a usb hub and now it is actually charging Feb 19 10:20:16 it was just screwing with me for the hour I had it pugged into the hub Feb 19 10:20:23 dat 19+ sensors of samsung... Feb 19 10:38:33 Is there a way to initialize Lists in Retrofit, to avoid null pointer fields? Feb 19 10:39:58 well it's GSON really Feb 19 10:52:25 how to detect the event of user pushing the "go fullscreen button" on statusbar? Feb 19 10:52:32 (in NDK way) Feb 19 10:56:02 there is no such button. Feb 19 10:56:53 should i use Time or calendar objects for simple debug toasts for my beta group? Feb 19 10:57:06 Mavrik, on my Ydplis G19 it is... Feb 19 10:57:42 and if I push it i even get no APP_CMD_RESIZE T_T Feb 19 10:58:19 or maybe i mix action and status bar... Feb 19 10:58:44 https://code.facebook.com/posts/393927910787513/ Stetho: A new debugging platform for Android Feb 19 10:59:29 >Part of moving fast at Facebook means investing in good trolling. Feb 19 11:11:08 haha Feb 19 11:14:23 How to change the color of the text on navigation drawer ? Feb 19 11:16:30 Nightwalkerkg check your navigation drawer layout file Feb 19 11:17:40 napster: I have fragment_main with a RelativeLayout and a TextView, and if i set the text color for the textView nothing changes and i have fragment_navigation_drawer with a listView. Feb 19 11:17:59 i've been searching for 2 hours, it doesnt have to be that hard. How can i make gridview multiple selection guy s? Feb 19 11:18:54 Nightwalkerkg If you are using a listview as the drawer, try passing a custom layout cell into the adapter, or customize the adapter to change the text color from getView() Feb 19 11:24:01 can somebody help me , please ? Feb 19 11:26:02 i want to create a multiple choice gridview,i can do single selection with top color.I tried a lot of things on google,but it seems too much stuff(a few classes,xml etc) Feb 19 11:27:44 https://github.com/facebook/rebound Rebound: New spring dynamics library from Facebook Feb 19 11:28:50 sounds like a more configurable version of what you can do with Bounce interpolater Feb 19 11:31:30 Should I really extend PreferenceActivity if I want to check for changes in preferences? Feb 19 11:40:27 As preferences are persistent data, it would be more convenient keep a separate class for it and static getter and setters for each preference. Keep open the extension option for other possibilities (may be for FragmentActivity) Feb 19 11:49:41 has anyone used stetho yet? Feb 19 11:49:53 Im trying to out how to hookup logging Feb 19 11:50:06 if only facebook wrote their libraries like square Feb 19 11:50:13 where shit is easy to find and use Feb 19 11:50:14 -_- Feb 19 11:51:19 JakeWharton, whats your opinion on Stetho? Feb 19 11:53:00 Kevel: not yet Feb 19 11:53:02 maybe tomorrow ; Feb 19 11:53:05 ;) Feb 19 11:53:06 or tonight Feb 19 11:53:23 tonight, tonigh, tonight ! Feb 19 11:55:32 i dont really know why they implemented it in chrome Feb 19 11:55:34 but ok Feb 19 11:55:52 I know there is already a bridge for chrome on android but... Feb 19 11:57:59 lol well, why not Feb 19 11:58:11 fuck they really could of just created like a Feb 19 11:58:16 "setLogger" or something Feb 19 11:58:27 you would think that would be the way to hook up logging Feb 19 11:58:28 but no. Feb 19 12:00:16 well.. console app + plugin for android studio would be nice... Feb 19 12:00:20 or just a plugin Feb 19 12:00:25 but console app would be nicer Feb 19 12:40:26 anyone know how to make gson map objects with nested arrays? Feb 19 12:44:14 is it possible to run an avd with a system image of RAM higher than the Ram of the computer trying to run the AVD? Feb 19 12:47:17 because i ran a 4gb ram avd, and it seemed to use about 3.9 ram on my pc... so it seems not identical Feb 19 13:08:53 Ankhwatcher, can u give an example? Feb 19 13:17:58 danijoo: I need to send a params map to an api it can only take String, String Feb 19 13:18:24 which would be fine if my model was flat, but it's not it contains an array Feb 19 13:18:51 Ankhwatcher, whats the problem? Feb 19 13:18:59 you want to flatten it? Feb 19 13:19:41 apparently I need to flatten my array to: arrayName[2][parameter],value Feb 19 13:19:55 so how can I get GSON to do that for me Feb 19 13:21:07 write a custom serializer Feb 19 13:32:04 I have a weird issue Feb 19 13:32:30 when starting an activity from a pendingIntent sometime, only on a S3, i get a black screen Feb 19 13:32:37 any thoughts? Feb 19 13:42:57 thepoosh: what activity flags are you using? Feb 19 13:43:09 thepoosh: is the pending intent for an activity from your app? Feb 19 13:43:23 Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK Feb 19 13:43:31 yes, using the applicationContet Feb 19 13:43:39 applicationContext Feb 19 13:43:49 it doesn't happen all the time Feb 19 13:44:06 only if i repeatedly open the activity with the intent Feb 19 13:44:14 (it's an ongoing notification) Feb 19 13:48:24 Napalm: that's it? nothing? Feb 19 13:48:40 good morning Feb 19 13:49:13 thepoosh, I'm wondering if _maybe_ your activity is already started and your onResume isn't handling it well? Feb 19 13:49:38 hmmmm, wouldn't these flags force kill it? Feb 19 13:50:07 Not sure.... Feb 19 13:50:24 well pretty sure Feb 19 13:50:38 hey, Im grasping here! Feb 19 13:50:40 :) Feb 19 13:51:08 Is it possible to create an app that is essentially an extension to another app (i.e extension to fb messenger or whatsapp)? Feb 19 13:51:34 jutsi, using intent, yes Feb 19 13:52:09 MikeWallaceDev is it, for example, possible to add another button somewhere that does what you want it to do? Feb 19 13:52:20 That's basically what my app Focus is... an extension Feb 19 13:52:39 possible, yes. But not really. Feb 19 13:53:04 What about as an option to your text editor? Feb 19 13:53:06 That framework allows it, the name escapes me Feb 19 13:53:19 exposed framework Feb 19 13:53:28 could you perhaps point me towards some llitterature regarding the matter? Feb 19 13:53:51 jutsi, in normal conditions, what you want to do can not be done Feb 19 13:56:06 MikeWallaceDev so i'd have to make my own keyboard and make users set it as default for my idea to work? Feb 19 13:56:14 thepoosh, what other information do you have besides "black screen"? Feb 19 13:56:36 I have no clue, I don't know what your idea is :D Feb 19 13:56:39 nothing, if i set the background color of the activity to be pink Feb 19 13:56:43 there is still black Feb 19 13:56:55 no logcat? Feb 19 13:57:00 You have to set the color of the view Feb 19 13:57:14 if you're using relativeLayout as your main view, set pink as background color to that Feb 19 13:57:50 do you see a log of the Activity being started? Feb 19 13:59:34 logcat looks like everything is running smooth Feb 19 13:59:44 need to add some more logs to the lifecycle events Feb 19 13:59:49 but it seems just fine Feb 19 14:00:33 Do you have black electric tape all over your screen? Feb 19 14:01:39 Honestly, I have seen this before. Though I'm not sure it was intermittent Feb 19 14:02:33 has anyone pinned a cert for a webview before/ Feb 19 14:02:35 ? Feb 19 14:04:45 not me Feb 19 14:05:27 ah ha Feb 19 14:05:34 WebViewClient has shouldInterceptRequest Feb 19 14:05:52 I can make the connection using my own SSLSocketFactory and pass back the datqa Feb 19 14:06:00 kinda annoying, but should work Feb 19 14:14:26 hi? Feb 19 14:14:53 I have a usb barcode scanner on my tablet...problem is the virtual keyboard ain't working Feb 19 14:15:01 is there a way to have both? Feb 19 14:15:54 so I saw somewhere, and I'm pretty sure it was in the v21 library, that you could set the android:alpha property on Feb 19 14:16:19 or maybe it was on a shape Feb 19 14:16:20 gmg85, AFAIK barcode scanner emulate a keyboard. I don't think that you could have two keyboards at the same time Feb 19 14:16:48 or a solid.... Feb 19 14:17:02 MikeWallaceDev: sorry for the delay, at home with kids Feb 19 14:17:13 i do not have black tape on the screen... Feb 19 14:17:21 no problem, at home with.... #foreveralone Feb 19 14:17:21 it happens only on SGH-T999 Feb 19 14:17:28 MikeWallaceDev: that ain't right Feb 19 14:17:29 which is the T-Mobile S3 Feb 19 14:17:56 cant scan and type?That sucks Feb 19 14:18:49 gmg85, you can on a pc, I'm just not sure Android was designed for it. I'm not saying no, but I'm giving you leads. Feb 19 14:19:24 MikeWallaceDev: Cool Feb 19 14:19:29 thepoosh, http://imgur.com/jacoj :D Feb 19 14:22:21 http://paste2.org/_IIGN4j1C -- line 24, what is this doing? Feb 19 14:23:37 Hello! I have following issue. I want home (up) navigation. With little arrow and icon. But if i set setDisplayShowHomeEnabled setHomeButtonEnabled setDisplayHomeAsUpEnabled i see BIG arrow (material style) + App Icon. So is it possible to achieve old holo Up button style? Feb 19 14:24:04 rascal999, it's just comparing the string with RSA, I think you have to learn a bit of Java :) Feb 19 14:25:37 MikeWallaceDev: I understand this but if the client cert isn't RSA what else could it be? DSA? Feb 19 14:25:57 s/client cert/cert/g Feb 19 14:30:50 MikeWallaceDev: is there a way to programatically disable a keyboard? Feb 19 14:31:22 gmg85, search for IME that's the keyboard stuff Feb 19 14:39:28 MikeWallaceDev: :D Feb 19 14:44:10 anyone know what the lowest price is you can set in the Play store? Feb 19 14:44:41 free Feb 19 14:45:25 the lowest non-free price, duh Feb 19 14:45:54 there have been those 10 cent sales sponsored by Google in the past, but as I recall, at that time, you weren't able to set $0.10 yourself Feb 19 14:47:46 be more specific then Feb 19 14:47:47 $1 Feb 19 14:47:59 Chainfire: https://support.google.com/googleplay/android-developer/table/3541286 Feb 19 14:48:06 links displays exactly what you're looking for Feb 19 14:48:20 $.99 for US Feb 19 14:48:28 $200 maximum Feb 19 14:48:51 might as well write his app for him too Feb 19 14:49:01 lol Feb 19 14:49:18 truthfully, i didn't know until he asked. i googled around a bit and found that link. good info to know though Feb 19 14:49:24 Can I find the emoji icons in @android:drawable or something? Feb 19 14:49:54 I did a few searches but only landed at the same question Feb 19 14:50:16 it's obviously on the google dev site, duh Feb 19 14:50:23 thanks for the find, m3chanical Feb 19 14:50:47 np :) Feb 19 14:51:24 Amun-Ra gfy :) Feb 19 14:51:35 AS 1.1 hype! Feb 19 14:52:25 Chainfire, too busy making apps. i can google for myself Feb 19 14:54:39 and here it seemed to me you were wasting your time in an IRC channel going out of your way to be a dick Feb 19 14:56:01 Chainfire, it's ok. it's called a mirror. you'll figure it out Feb 19 14:56:29 I am using a MultiAutoCompleteTextFIeld, if my adapter is backed by a statically declared String[], autocomplete works. But if I dynamically allocate an array and populate it with a for loop, the auto completion fails to work. Feb 19 14:56:37 Any idea why this might be the case? Feb 19 14:58:13 I have verified that at the time of setAdapter being called on the auto complete field, that the adapter is populated. Feb 19 14:59:47 :') Feb 19 14:59:53 How can I use R.drawable.emo_im_happy in an xml ? Feb 19 15:06:02 I tried this @android:drawable/emo_im_smile, but it didn't work Feb 19 15:09:15 i have a 2 different layouts i'm using independently - how do i adress them when i have another layout which is used as an extension to BaseAdapter and combines the two? Feb 19 15:10:37 like rowlayout1 and rowlayout2 and a third one which just uses 2 placeholder FrameLayouts where they should combine into a single listview element Feb 19 15:15:06 i can't findViewById(placeholder1).findViewById(textFieldInTheFirstPlaceHolder) apparently Feb 19 15:16:28 I don't understand what you are trying to do.. but... if it could find placeholder1 then it could find textField... Feb 19 15:16:36 no need for the two chained calls Feb 19 15:19:03 the activity (or inflated layout) has access to all ids in xml Feb 19 15:19:49 yeah i gathered that much but .. i think i have to inflate them individually before i can write to them Feb 19 15:19:57 do i? Feb 19 15:20:06 does the debug attribute need to be set in order for apps to be able to write to log files? Feb 19 15:20:18 i.e. to be picked up by logcat? Feb 19 15:20:37 rascal999, no, unless you are using minifyEnabled Feb 19 15:20:50 (proGuard) Feb 19 15:21:14 heh, Feb 19 15:21:35 i ended up just putting the cert in /system/etc/security/cacerts with the correct hash Feb 19 15:21:36 works fine Feb 19 15:21:42 I hate webview Feb 19 15:21:56 misread that to "I hate hebrew" Feb 19 15:22:05 my eyes popped out Feb 19 15:22:09 they're back in now Feb 19 15:22:40 I can't code from right to left. Feb 19 15:23:35 MikeWallaceDev: thanks Feb 19 15:23:52 no problemo :) Feb 19 15:32:34 Any idea why my (quite small) app is taking up a whole 8MB? Feb 19 15:32:43 8MB on a real device and 14 on an emu Feb 19 15:33:45 the entire app(source) dir is just 500KB -- including the resources Feb 19 15:33:54 Whoa. I need a coffee. I'm looking at a screenshot and wondering why the values don't change.... O_o Feb 19 15:34:16 Moter8, libraries? Feb 19 15:35:14 butterknife, crashlytics, okhttp. material-dialogs and appcompat Feb 19 15:35:21 these take up so much storage? Feb 19 15:36:08 I only have appcompat and I'm at 6 Feb 19 15:37:59 anyone know how to get Charles Proxy to drop packets? I've got it throttling nicely but I want to simulate sporadic network failure Feb 19 15:38:32 i cant seem to test my app on the android wear avd. doe my app need to use a special library or something Feb 19 15:41:38 oh wait it is working now... sort of Feb 19 15:52:32 nested fragments are probably a bad idea, right? Feb 19 15:55:21 Levite, platform provides for them. But I highly doubt that you have a reusable Fragment that contains reusable Fragments... Feb 19 15:56:28 right. not reusable, so there's no point Feb 19 16:00:06 I'm posting a bug report for AS. It has a tendency to stop accepting keystrokes. Mouse still works. I don't have much info, do you guys have any idea what I could add so that this gets resolved? Feb 19 16:00:14 AS has a strong tendency to stop responding to the keyboard. It still works, it will accept the mouse and I can go through a debugging session. But can not interact with the keyboard. This happens also when just editing code. Feb 19 16:00:25 ^^^ The report text Feb 19 16:00:51 note: the report also contains the default system information that is automatically added. Feb 19 16:03:30 that is really weird. AVD api19 mdpi 480x854 fwvga: display metrics is reporting 480x856(2px out) and no nav bar Feb 19 16:05:32 i guess i should add a few pixel buffer around my game display just in case this happens on real devices Feb 19 16:08:27 has anyone else noticed any innaccuracies on displaymetrics widthPixels and heightPixels? Feb 19 16:13:50 njcomsec, nope I haven't Feb 19 16:16:10 its worrying because im basing every graphics calculation around it. though if it is only a couple of pixels out max it is no problem Feb 19 16:17:14 anyone ever seen this device in their crash logs? "c101v92_gq3017hd_elephone_g6 " Feb 19 16:17:30 It must be a googlebot, right? Feb 19 16:20:38 Levite: looks like it's a motherboard, http://browser.primatelabs.com/battery3/24584 Feb 19 16:21:46 weird Feb 19 16:21:59 Uh, help? http://i.imgur.com/ylH0nEd.png Suddenly my app won't compile Feb 19 16:22:16 It worked 5 minutes ago, just 1 line of code changed which has nothing to do with butterknife Feb 19 16:22:41 or rather, it failed too. woops Feb 19 16:22:49 1.1 RC to 1.1 broke it then Feb 19 16:31:34 Is there no way to access AppPreferences outside onCreate? Feb 19 16:31:45 Or do I have to create another instance of it? Feb 19 16:33:38 I'd have to code everything twice if that were the case Feb 19 16:34:08 Moter, AppPreferences? Feb 19 16:34:17 s/Moter/Moter8/ Feb 19 16:34:40 SharedPreferences* Feb 19 16:34:59 You can access from any file ever as long as you provide Context Feb 19 16:35:09 any method in any file Feb 19 16:36:04 You can also just call http://developer.android.com/reference/android/app/Activity.html#getPreferences(int) from any method in an Activity Feb 19 16:36:12 I want to save stuff from a OnResponse function inside MainActivity Feb 19 16:36:53 Okay, pass application context to the whatever class that has the onResponse Feb 19 16:39:10 I don't think I can do that inside an anonymous class eg `runOnUiThread(new Runnable()` right? Feb 19 16:40:27 anybody know of a tutorial/text for using UIL through the source code with AS? It doesn't come with build.gradle :-/ Feb 19 16:40:36 And I have to modify the code to try something Feb 19 16:43:25 Moter8: You can pass whatever functions you want to any class, just don't make an anonymous one Feb 19 16:43:37 Also I believe you can just call getApplicationContext in there anyway Feb 19 16:49:26 Good morning friends! Feb 19 16:49:46 good morning Mittendeep, here for your code review from TacticalJoke ? Feb 19 16:51:03 I cleaned up that last project and submitted it (3 days late O_o), I've got to start a new one today and could definitely use some design tips. Let me make a big sloppy mess of code again first =) Feb 19 16:55:04 I want to create a custom Spinner dropdown. So far I can only get this to work by overriding getView and getDropDownView as in http://stackoverflow.com/questions/12599703/custom-spinner-adapter. How can I get this to work by using setDropDownResource instead? Feb 19 16:57:59 i am getting Json data by api and saving it to DB after than i am calling a method that will display the saved data after downloading from web but its now showing .. but when i kill app and restart again than it is displayed how can i display that downloaded data right after its been downloaded ? Feb 19 16:58:53 s9iper1, are you using a Content Provider? Feb 19 16:59:21 for displaying the saved DB data ? Feb 19 16:59:24 then do runOnUiThread(new Runnable() {...} ) after the response was successful Feb 19 16:59:37 (eh im not sure what im saying) Feb 19 16:59:41 your can watch the Content Provider for changes Feb 19 16:59:46 (but that works for me when updating labels) Feb 19 16:59:48 else, you can try a message bus Feb 19 17:01:43 ok thanks both :) Feb 19 17:02:01 I don't seem to be able to extend the Overlay class in my project Feb 19 17:02:34 but I am able to launch the app and see a map, so I am using the correct version of GPS and I've set up a key and everything Feb 19 17:03:15 there doesn't even seem to be an Overlay class in Android, yet all the tutorials for "Draw path on map" seem to be extending it to do work Feb 19 17:04:52 I think Maps v2 is a completely different ballgame from what I remember about maps Feb 19 17:05:38 MikeWallaceDev yiati: 100% on my treasure hunt application, totally worth it. =) Feb 19 17:05:56 congrats :) Feb 19 17:08:21 Mittendep, (thumbsup) Feb 19 17:13:10 dudes Feb 19 17:14:36 I am measuring the actual framerate of my camera preview. I find that on two devices I cant control the actual framerate with setPreviewFpsRange Feb 19 17:15:00 It has no effect eve when valid min max values are used. Feb 19 17:15:21 Is that it ? Android devices will not allow the actual fps rate of the preview to be set ? Feb 19 17:15:24 * Unknown0BC frowns... Feb 19 17:27:54 Unknown0BC, This is the target frame rate. The actual frame rate depends on the driver. Feb 19 17:28:13 it's device specific Feb 19 17:28:15 I am trying to slow it down yiati Feb 19 17:28:43 I have set: Feb 19 17:28:58 But no matter what settings I use the frame rate stays the same. Feb 19 17:29:04 but .... Environment.getExternalStorageDirectory() leads to: Feb 19 17:29:34 02-19 18:29:18.623: E/opencv(5823): /storage/emulated/0/bachelorarbeit_testdaten/0.jpg Feb 19 17:29:54 how can I get a path of a real image file? Feb 19 17:30:09 bachelorarbeit_testdaten/0.jpg is what I appended Feb 19 17:31:28 Unknown0BC, yep, it's device specific, http://stackoverflow.com/a/16138365/1229735 Feb 19 17:31:57 hi. someone here know how to show normal tab navigation inside webview? Feb 19 17:34:24 tokam: What's a real image file? Feb 19 17:34:38 One that I can save. I have a jpg file and I like to access it in my app. Feb 19 17:34:46 I need a file path as a string Feb 19 17:38:09 I like to save a jpg file on my phone and load it Feb 19 18:04:01 "No resource found that matches the given name attr: etcetc" I'm building an app, included in an AOSP-based build. the app needs api 21 for the "attr ColorPrimary" in the theme.xml, and I've verified that the sdk has installed api 21 (among others). what am I missing? Feb 19 18:04:07 o/ Feb 19 18:04:32 oh, the app isn't included by default, I'm building the app by including it's repo in a local manifest. Feb 19 18:05:14 does anyone have a nice implementation of a scroll view with a parallax header and the toolbar attaching to the top? the best example I can find is in the iMDb app Feb 19 18:06:15 and I found https://github.com/ksoichiro/Android-ObservableScrollView, but I don't really understand how to implement it, and I don't want to depend on NineOldAndroids Feb 19 18:08:08 Hi everyone - Is it possible to change speed or do rewind and forward in text to speech engine? Feb 19 18:09:43 if you can get access to bytes you can dump it into audiotrack and do whatever you want with it Feb 19 18:10:04 I lied- I can't find the version 21 target in `android list targets` Feb 19 18:12:02 basically, I want the implementation from https://github.com/ksoichiro/Android-ObservableScrollView/blob/master/observablescrollview-samples/src/main/java/com/github/ksoichiro/android/observablescrollview/samples/FillGap2ScrollViewActivity.java Feb 19 18:15:05 Anyone can comment on capabilities of Text To Speech engine? Is it possible to do forward or rewind and speed change on the go? Feb 19 18:16:04 is it possible to use a custom listview item somewhere else? as in: i have a layout file with how one of those items should look - how would i use that in another layout? Feb 19 18:16:33 i've had a similar problem earlier and it turned out what i wanted to do wasn't possible apparently Feb 19 18:16:54 just create a custom view based on your layout file Feb 19 18:17:00 then you can use the custom view wherever you want Feb 19 18:17:52 monsterco, your question already got answered Feb 19 18:19:08 I'd rather not work with the audio file as that is time / resource consuming Feb 19 18:19:17 and then i put a FrameLayout or something as a placeholder on which i put the view? Feb 19 18:19:25 in the layout file i mean Feb 19 18:19:46 drinfernoo - so the text to speech engine api doesn't allow for either of rewind or speed change on the go? Feb 19 18:20:03 you can have your custom view extend the layout you want everything in, and then use merge tags in your xml so that you don't have an extra viewgroup layer Feb 19 18:20:04 I thought tempo change would be possible Feb 19 18:21:05 monsterco, http://developer.android.com/reference/android/speech/tts/TextToSpeech.html#setSpeechRate(float) Feb 19 18:28:08 how is this achieved? Adding to a ListView dynamically: http://youtu.be/D_Ev4vvX6kw Feb 19 18:29:28 Hey fellas, I kjust tried using appcompat r21 and.. now my actionbar is grey and my styles have been hijacked.. can’t thingk of where to look to fix it Feb 19 18:29:31 drinfernoo: Depends on what you mean by 'this'. Feb 19 18:29:38 the normal places don’t really work.. as in styles.xml Feb 19 18:30:36 Actionbar is just Grey Feb 19 18:31:17 * tricknology sighs.. I guess it’s time to use Toolbar now Feb 19 18:31:56 tricknology: You were using AppCompat already (but <21)? Feb 19 18:32:06 TacticalJoke, adding the entries into that list, just by typing into an empty view Feb 19 18:32:08 yes Feb 19 18:32:12 Tactival Feb 19 18:32:19 at least, I think that's how it works Feb 19 18:32:34 I since updated the appcompat.. I’m kind of picking up this project from someone else Feb 19 18:32:59 I think version 21 has to use a Material style. I think you'd have to use a version lower than 21 if you didn't want that. Feb 19 18:33:22 That’s okay wiht me Feb 19 18:33:43 I mean as long as we’re updating stuff might as well go all the way Feb 19 18:34:24 btu minsdk is lower thatn 21 so "android:Theme.Material" will not work Feb 19 18:34:37 That's why AppCompat is used for a Material look. Feb 19 18:35:11 Theme.AppCompat, yes that is what I am using Feb 19 18:35:16 with a custom ActionBarStyle. but now with the new appcompat it seems to be ignoring my cystom style Feb 19 18:35:25 custom* Feb 19 18:36:16 What is your custom style like? Feb 19 18:37:19 just has custom background color and text style Feb 19 18:37:35 it will have an icon Feb 19 18:38:02 material toolbar backgroundcolor is defined via colorPrimary, not the usual attribute Feb 19 18:38:07 I honestly should just go Toolbar if I can’t “hot-swap” a component like I thought I was going to Feb 19 18:38:09 aah Feb 19 18:38:10 And icons don't show by default now. Feb 19 18:38:14 On ActionBars. Feb 19 18:38:24 is that under the actionbar style? Feb 19 18:38:32 tricknology, no. main style Feb 19 18:38:46 as an item of the style having parent Widget.Appcompat.ActionBar? Feb 19 18:38:48 aah Feb 19 18:38:52 yeah it’s there Feb 19 18:39:06 but also acitonbarStyle is there, with its custom background color Feb 19 18:39:07 Anyone know how long it would take to download a 400x400 bitmap ? just ballpark Feb 19 18:39:22 lasserix, a long time with 54k Feb 19 18:39:42 whats the color depth? Feb 19 18:39:55 the answer is somewhere between 0 and 1000 seconds to be honest Feb 19 18:39:55 16 maybe 8 not that much Feb 19 18:39:59 its all about network speed Feb 19 18:40:20 400x400 would take awhile in a place with crappy reception Feb 19 18:40:25 yep Feb 19 18:40:29 fast at home Feb 19 18:41:03 I wish we had better diff technology. So much text movement is displayed as "add N lines here; remove N lines there". Feb 19 18:41:43 TacticalJoke, what do you mean Feb 19 18:42:11 this is a bit of the styles.xml Feb 19 18:42:13 http://pastebin.com/D2xZnC66 Feb 19 18:42:15 TacticalJoke, have you any idea of how to pull off that list thing? Feb 19 18:42:26 TacticalJoke: yes, sometimes the diff will techinically be correct, but it won't display intuitive to the work that was actually done Feb 19 18:42:48 well it's always correct, but often not described the same way a human would Feb 19 18:43:05 danijoo: It's too easy to create changes to a text file that cause any diff viewer to display the difference as "remove lines up here; add lines down there" as opposed to "move lines from here to there". Feb 19 18:43:07 tricknology, you action bar should be blue_med then Feb 19 18:43:15 okay well, sdk build tools=21.1.2, sdk platform=21 are both installed. hmm Feb 19 18:43:29 it’s grey :( Feb 19 18:43:30 drinfernoo: Pull off what? The video you linked to showed many things. Feb 19 18:43:51 tricknology, maybe because of actionBarStyle Feb 19 18:44:00 have you tried setting colorPrimary there too? Feb 19 18:44:08 I want to be able to add entries to a list by typing them into a view at the bottom like google keep does Feb 19 18:44:15 comment cleaning Feb 19 18:45:21 hmm yeah i commented it out and still the actionbar is grey Feb 19 18:45:49 dumb question I know but.. did you actually set the theme? Feb 19 18:46:14 and are u using actionbaractivity Feb 19 18:47:19 hueh.. baseactivity.. Feb 19 18:47:37 and yeah, it was all working before Feb 19 18:47:46 all I did was update appcompat so I could get access to material methods Feb 19 18:47:53 then it broke Feb 19 18:48:15 Maybe a noob question but where should I put my loaderManager.initLoader() and loaderManager.destroyLoader() calls? I add them to onResume() and onPause() but some devices call them twice so I get IllegalStateExceptions... Feb 19 18:51:05 tricknology, you need to use ActionBarActivity Feb 19 18:51:14 I am. now everythign is deprecated.. Feb 19 18:51:20 ^^ Feb 19 18:51:27 yes. its a pain Feb 19 18:51:57 nav drawer no longer works. action bar still grey… Are you sure this is the way? lol Feb 19 18:52:02 Hello all Feb 19 18:52:14 any ideas? Feb 19 18:52:19 tricknology, it always gets worse before it gets better :p Feb 19 18:52:26 please assist me quick :( HTTPRequestHelper is popping up with errors in android studio :( Feb 19 18:52:38 google it Feb 19 18:52:41 why quick? Feb 19 18:52:47 quickly assisted Feb 19 18:52:55 someone's life depending on it? Feb 19 18:52:57 x10sion what errors? Feb 19 18:53:04 i have and it doesnt bring in much info re it Feb 19 18:53:10 the popups take over his machine! Feb 19 18:53:25 cannot resolve symbol HTTPRequestHelper Feb 19 18:53:37 import it. Feb 19 18:53:44 if its not working, library not set correctly Feb 19 18:54:59 g00s: redditors can't read. :D Feb 19 18:55:46 http://www.reddit.com/r/AskReddit/comments/2wfqdy/what_do_you_do_in_private_that_would_be_weird_in/ what did he actually expect? :D Feb 19 18:56:11 lol Feb 19 18:56:17 nsfw tho Feb 19 18:56:40 danijoo thanks Feb 19 18:56:49 I hope there is light at the end of this tunnel.. I’m going in.. Feb 19 18:56:54 oh ye. sry ^^ Feb 19 18:57:00 Thanks to you too Tactical Feb 19 18:57:00 its not that bad though Feb 19 18:57:16 i have the android support library library installed according to google thats what i needed Feb 19 18:57:33 take a guess who is the noob Feb 19 18:58:41 ha ok drawer works.. but bar is still grey, the 3 lines disappearerd. it sems tapping the actionbar does nothing, but the title does change when I slide the drawer out Feb 19 18:58:49 TacticalJoke ah you saw that? are they fucking retarded ? Feb 19 18:59:20 TacticalJoke well i filed the bug, lets see what happens Feb 19 18:59:56 I think what happens is that a couple of people misunderstand and downvote, and then everyone else assumes the downvotes are correct. Feb 19 19:00:19 The hivemind drives me crazy sometimes. Feb 19 19:00:49 yeah Feb 19 19:01:13 TacticalJoke: I find that too. Then some poor n00b has 10 downvotes for no reason Feb 19 19:01:35 What's funny is that a -70 comment could have a +20 that simply agrees with it. Feb 19 19:02:01 I actually had that myself recently. Some poor guy was getting downvoted like crazy. I replied "You're absolutely correct; can't believe you're being downvoted" and I ended up with a high score. haha Feb 19 19:02:40 TacticalJoke i got so downvoted it became invisible, i thought the op deleted the thread XD Feb 19 19:02:56 i was omg, even the op downvoted me Feb 19 19:05:33 I remember seeing someone on reddit answering questions about some software he made getting downvoted to like -100 for being wrong. Feb 19 19:05:38 The people didn't realise he was the creator. :D Feb 19 19:06:02 TacticalYoke Feb 19 19:06:24 Anyone know a reason that readMMSPart() would return "0" for message data? Feb 19 19:06:26 was that some niche software? Feb 19 19:06:57 Kinda, yeah. But it was fairly popular. Feb 19 19:07:03 <_eddy> am getting Failed to load resource: net::ERR_NAME_NOT_RESOLVED when trying to run a get requests on my locahost? genymotion Feb 19 19:07:29 this is interesting http://www.forbes.com/sites/gordonkelly/2015/02/18/microsoft-google-swap/? Feb 19 19:12:12 TacticalJoke, maybe people realized he was a creator and thought he was using reddit to advertise Feb 19 19:13:29 Oh, they just incorrectly thought he was wrong, not knowing that he was probably the foremost expert on the topic. :D Feb 19 19:15:13 hey, I was wondering, can you download a .java class and, after restarting the app, call its methods? Feb 19 19:16:13 CaioTorre: not a java class, but a dex file, yes. read up on DexClassLoader :) Feb 19 19:16:19 (no need to restart the app) Feb 19 19:16:31 e.g. http://android-developers.blogspot.com/2011/07/custom-class-loading-in-dalvik.html Feb 19 19:16:51 TacticalJoke, ping Feb 19 19:17:12 JesusFreke: thanks mate Feb 19 19:18:12 Ohai. Feb 19 19:19:44 i am getting data from api in Json formate and saving it to db after this i want to show my data exactly after it downloaded but i am not be able to display data live any help ? TacticalJoke this is the code i am running after Async task gets data from web but its not working http://paste.ubuntu.com/10312410/ Feb 19 19:20:26 JesusFreke i think that post comes before Play's updated TOS Feb 19 19:20:37 why using async task in 2015? why Feb 19 19:20:50 CaioTorre ^^ Feb 19 19:21:43 s9iper1: Debug with Log.d or the debugger. See where the issue is. Feb 19 19:22:10 ok Feb 19 19:22:15 s9iper1, why are you reading from a file? Feb 19 19:22:42 i am reading from file to display it, right after Asynctask completes Feb 19 19:23:13 gdrc, Feb 19 19:24:57 I want to start a service when the app is installed so I have receiver with android.intent.action.BOOT_COMPLETED action, the receiver never gets the broadcast for some reason (I've added the boot_complete permission).. any idea why? I'm trying to make this example work: http://www.vogella.com/tutorials/AndroidServices/article.html#tutorial_intentservice Feb 19 19:30:14 Not rooted devices suck :| Feb 19 19:31:12 How do I draw some vector onto a bitmap (with what library?). The app is 4.0+. Feb 19 19:32:14 you can do it in a heartbeat, pixel by pixel Feb 19 19:32:26 bresenham is easy to implement Feb 19 19:32:47 bresenham Feb 19 19:33:00 http://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm Feb 19 19:33:41 Sculptor: That sounds doable but I'm not keen on parsing some shitty format. Feb 19 19:33:55 of course Feb 19 19:35:14 So just reveal the secret. Feb 19 19:35:57 Doesn't sound like it would work for curves anyway. Feb 19 19:37:51 "Someone is sending false 3-day warnings to developers using this email: Google Play Developer Support noreply-developer-googleplay@gooogle.com.de" Feb 19 19:38:34 g00s: source? Feb 19 19:38:57 JesusFreke http://www.reddit.com/r/androiddev/comments/2wggur/someone_is_spamming_developers_impersonating/ Feb 19 19:39:27 g00s: ah Feb 19 19:40:02 TacticalJoke, nothing in logs one thing i forget to mention first time it only happen when asynctask runs after that if i kill the app and run again it finds the db and display the data.. any clue ? Feb 19 19:41:45 I meant "use Log.d to figure out what's going on, printing the values of variables and stuff". :) Feb 19 19:42:27 ok Feb 19 19:44:03 TacticalJoke, any ideas what I would search for to try and figure out that list thing? Feb 19 19:45:27 Is it possible to have a ViewPager be a part of a Preference Screen? Feb 19 19:45:46 I have a custom preference that has a layout that includes a view pager, however it is not showing up Feb 19 19:45:56 I have items in the adapter that are being instantiated Feb 19 19:45:59 haha I figured out the reason for my grey acitonbar Feb 19 19:46:01 drinfernoo: Not sure. Are you asking about adding a new EditText to a ListView when the user presses Enter? Feb 19 19:46:14 i had another values-v11 folder that had another styles.xml in it Feb 19 19:48:54 tricknology :D Feb 19 19:49:02 * tricknology headdesk Feb 19 19:49:03 those things are the hardest to find Feb 19 19:50:49 I cant believe how hard it is to get a ViewPager to show up Feb 19 19:51:12 heh, now the onCreateOptionsMenu is being called but not inflating.. Feb 19 19:51:29 TacticalJoke, yeah basically Feb 19 19:51:53 anyone here have experience with java/3d'ness/libgdx ish ? Feb 19 19:52:24 Pyuruku it isn't....I think android Views are quite easy Feb 19 19:52:40 Apparently it is Feb 19 19:52:42 setContent(new ViewPager(this)) Feb 19 19:52:46 Mine refuses to show up Feb 19 19:52:48 there, viewpager :) Feb 19 19:52:53 Pyuruku preferencescreens have ... preferences :| Feb 19 19:53:04 you can put the preferencefragment in a pager layout Feb 19 19:53:08 Yes, I'm creating a preference that is based off a ViewPager g00s Feb 19 19:53:17 drinfernoo: Have you tried it? It might work; not sure. Feb 19 19:53:21 as in, you'll swipe through options to choose something Feb 19 19:53:24 Pyuruku hmmmmmmm Feb 19 19:53:38 Just add a new item to the list, call notifyDataSetChanged, request focus for the new EditText. Feb 19 19:53:38 if its in a preferencedialog, should be doable Feb 19 19:53:47 It has a custom layout, and I placed the custom preference in my preference screen Feb 19 19:53:53 everything BUT the view pager shows up Feb 19 19:54:08 if I add textviews or image views to my custom preference layout, they all show just find Feb 19 19:54:09 fine* Feb 19 19:54:30 the fucking ViewPager refuses to show up, even after setting the weight to 1 or forcing the height to match the parent, etc Feb 19 19:54:49 the adapter for the pager does have content, and I'm logging the instantiation of items for the adapter. They're being instantiated Feb 19 19:54:53 im slowing going insane Feb 19 19:55:00 g00s, news about your bluetooth app? Feb 19 19:55:28 gdrc no news - getting my ass kicked :) Feb 19 19:55:38 is there supposed to be news ? :) Feb 19 19:55:49 finally ;P Feb 19 19:56:00 had to figure out the right column name, sucks w/o root access on either of my phones Feb 19 19:56:20 who kicks your ass? :p Feb 19 19:56:24 stupid verizon s5 and just so happens i get another phone that fails to root :| Feb 19 19:56:36 gdrc the BLE apis and OEMs shitty protocols Feb 19 19:56:53 StephanDev, you could use an emulator Feb 19 19:57:16 hmm, well i cant receive mms on the emulator Feb 19 19:57:28 thats the only problem i was having, but thats true, the db might still be available on it Feb 19 19:57:34 gdrc lots of design flaws around this ble model i'm working with - instead of using descriptors, they packed everything into a characteristic Feb 19 19:57:45 you can mock arround mms for testing Feb 19 19:57:56 or are u sending real mms all the time for testing? Oo Feb 19 19:58:07 sending real mms's all the time lol Feb 19 19:58:15 uhm. ok.. ^^' Feb 19 19:58:25 gdrc also they designed this with iOS in mind, which has a different limit on the # of concurrent notifications you can have - so i have to polll instead using less favorable design Feb 19 19:58:46 i couldnt find out how to send fake mms's on emulator only sms. do you just write to the db? Feb 19 19:59:01 what goes in yourApp? Feb 19 19:59:02 hey does anyone know how to put a keep class proguard flag in the new gradle? everything online seems out of date Feb 19 19:59:02 xmlns:yourapp="http://schemas.android.com/apk/res-auto" Feb 19 19:59:04 no but you can test the code arround it Feb 19 19:59:11 oh Feb 19 19:59:22 with unit tests and stuff like that ;) Feb 19 19:59:24 yeah my mms's receive and send fine, i was just getting a "0" for message body on mms's Feb 19 19:59:29 all the examples i found were the same code Feb 19 19:59:46 StephanDev what do you want to know ? Feb 19 19:59:56 ill give it a shot Tactical Feb 19 19:59:58 once i dropped in getting string from columnIndex("body") i got the text. Feb 19 20:01:21 j41manning: I'd assume you just add it to your local proguard-rules.pro file. Feb 19 20:01:37 j41manning: are you trying to add -keep flags from within gradle? Feb 19 20:02:07 StingRay_: How to emulate MMS receiving... I didn't think it was possible because of it requiring connecting to the middle man server Feb 19 20:02:24 well, yes and no Feb 19 20:02:31 g00s, I see. Feb 19 20:03:16 The first reply to this issue report always makes me laugh: https://code.google.com/p/android/issues/detail?id=78377 Feb 19 20:03:16 What's the best way to write an object (with an object) to disk? Feb 19 20:03:28 I actually prefer debugging on my phone as it doesn't eat up my memory on computer, and I hate applications being open and switching back and forth between windows, I am on a laptop right now, but it's good to learn Feb 19 20:03:36 @groxx that's what I assumed too, but for some reason, there isn't a proguard-rules file Feb 19 20:04:06 Does anyone know whether that issue applies to people *not* using setSupportActionBar()? Feb 19 20:04:16 I'm using AppCompat and Toolbar without calling setSupportActionBar. Feb 19 20:04:22 StephanDev MMS is not fun at all Feb 19 20:04:59 Android development seems like some of the most tedious coding I have ever done Feb 19 20:05:04 j41manning: eh, just make one, and add it to your buildTypes { { proguardFiles "a file", "another", "etc" } } list. Feb 19 20:05:32 StephanDev: it really is pretty grueling Feb 19 20:06:38 I don't understand why people are using setSupportActionBar(Toolbar) now, anyway. The Toolbar API is much nicer. Feb 19 20:06:54 TacticalJoke i thought you have to O.o Feb 19 20:07:02 i mean, if the activity owns the toolbar Feb 19 20:07:13 @groxx okay, I'll do that. I haven't done as much with proguard and didn;t want to break everything Feb 19 20:07:15 I've not yet seen anything that setSupportActionBar gives you that Toolbar doesn't provide an API for. Feb 19 20:07:41 TacticalJoke if you see getSupportActionBar() you'll notice there are still things that can be set, not possible on toolbar Feb 19 20:07:42 are you fucking kidding me... after forcefully setting the ViewPager's size programmatically, I'm getting an ANR... Feb 19 20:07:48 this is repulsive Feb 19 20:08:43 g00s: Hmm, I looked and didn't really see anything (e.g., you can set the navigation icon directly on the toolbar and inflate a menu with Toolbar.inflateMenu). Feb 19 20:09:12 And Toolbar has methods for setting the title, etc. Feb 19 20:09:29 what about setDisplayHomeAsUpEnabled(); Feb 19 20:10:25 i think it also depends on how you want the animations to work Feb 19 20:10:26 I use 'custom:navigationIcon="?attr/homeAsUpIndicator" and Toolbar.setNavigationOnClickListener. Feb 19 20:10:34 s/"/"'/ Feb 19 20:10:50 AppCompat has the homeAsUpIndicator thing (and Android draws over it with the correct colour at runtime). Feb 19 20:11:01 hmm Feb 19 20:11:50 The documentation isn't great, though: I had to jump through hoops to figure out that you can set the Up arrow like that. Feb 19 20:11:59 Almost nobody on SO seems to realise this. Feb 19 20:13:27 Hey droids, can someone send me an example of proper android material toolbar usage? I'm building an app that could use a toolbar at the bottom, which will hold some icons (not unlike the Instagram app I suppose), and I'm struggling to find a good tutorial for this Feb 19 20:13:50 MarkyC: I guess there's mainly Chris Banes's blog post and the reference documentation. Feb 19 20:13:55 What were you unsure about? Feb 19 20:14:06 When I use , I get a warning saying ImageViews can't be placed there Feb 19 20:15:42 use menu buttons wich icons? Feb 19 20:16:04 I don't get a warning when I try defining a child ImageView. Feb 19 20:16:12 What is the exact text of the warning? Just curious. Feb 19 20:16:34 Can't wait for my new system next week :D Feb 19 20:16:45 im excited to upgrade to 3 27"s lol Feb 19 20:16:53 wat Feb 19 20:17:02 TacticalJoke: It could be due to using android.support.v7.widget.Toolbar, but I need my BC! Feb 19 20:17:26 I'm using that too. Feb 19 20:19:49 gdrc: You might be onto something. I can use drawables as the menu icons, and set them to be equidistant Feb 19 20:19:55 TacticalJoke: I'll get you a screengrab Feb 19 20:20:30 Toolbar.inflateMenu can be used. Feb 19 20:20:41 With custom:showAsAction="always" or whatever. Feb 19 20:21:33 what interface i need in OpenSL to control panning of channel? Feb 19 20:21:40 TacticalJoke: Screen shot: http://i.imgur.com/1Z4XiKl.png Feb 19 20:22:07 TacticalJoke: I think using a menu is a cleaner solution. It matches my intent a little bit better (it is a context-sensitive menu) Feb 19 20:22:46 Anyone have an idea how Google maps runs in the background? Does it use a service or is a like a persistent system app? Feb 19 20:22:47 TacticalJoke: gdrc: So I guess I no longer care about that warning, thanks for steering me in the right direction :) Feb 19 20:22:52 I'm not sure whether that's an intended warning. I would try cleaning and rebuilding. Feb 19 20:23:16 nvm... same volume int Feb 19 20:23:18 *f Feb 19 20:24:33 MarkyC, glad helped you Feb 19 20:26:55 whats the best way to configure screenname reporting with Analytics if I have a viewpager and 3 fragments? Feb 19 20:28:58 Hmm, the default background colour of an activity in AppCompat (#303030) doesn't appear on this page: http://www.google.co.uk/design/spec/style/color.html#color-color-palette Feb 19 20:29:19 Shouldn't it be there? Feb 19 20:33:04 I feel like someone in here had a way to stop the "run" tab from popping up automatically in android studio. anyone remember what that was? Feb 19 20:33:19 gdrc: TacticalJoke: So my next qualm is making my 5 Toolbar menu icons take up the entire width of the screen, with equal distance between them Feb 19 20:33:46 groxx: There's a way to stop the LogCat tool window showing, but I'm not sure it's possible to stop the Run one. Feb 19 20:34:04 TacticalJoke: yeah, i just found the logcat one. :'( hopefully Feb 19 20:37:12 hm that sinking feeling before a huge refactoring. Feb 19 20:39:05 g00s: it's better under the sea. Feb 19 20:39:19 hehe, is that little mermaid ? Feb 19 20:39:38 well, that's "it's better down where it's wetter", but it's hard to type that without it sounding dirty Feb 19 20:39:58 :D Feb 19 20:39:59 "Are you sure you want to send those items to the Recycled Bin?" Do I look like I'm not holding Shift?! Feb 19 20:40:38 I hate IntelliJ tool windows in general. Feb 19 20:40:44 Such a pain regarding focus, close-button location, etc. Feb 19 20:41:02 yeah they seem kinda fiddly Feb 19 20:41:04 cmd-shift-f12 is my new favorite. Feb 19 20:41:07 starting my app it will trigger onstart of both fragment1 and fragment2, so I cant use tracker.setScreenName() to report what screen is in focus Feb 19 20:41:18 to close the gradle console and logcat at the same time i have to press alt Feb 19 20:41:20 though that may not get rid of dialogs. side-panes! Feb 19 20:41:57 groxx: Didn't know about that one. Nice. Feb 19 20:42:16 Though terrible keyboard shortcut. :D Feb 19 20:42:30 Then again, I guess it's close to where our hands are. Feb 19 20:42:42 the first thing i have to do with kb shortcuts in AS is remap cmd-D (delete line) Feb 19 20:43:03 I feel like, given the _massive_ complexity of IDEs, it should embrace either vim or emacs entirely and go either totally modal or totally emacs-claw-inducing. Feb 19 20:43:34 The default for Delete Line on IntelliJ on Windows is, I think, Ctrl+Y. But that's a pretty standard Undo shortcut. Feb 19 20:43:42 I guess it's a vim "yank" thing. Feb 19 20:44:01 and using GoogleAnalytics.getInstance(this).reportActivityStop(this); will report the MainActivity instead of the fragment if I close the app and open it again Feb 19 20:44:10 should be ctrl+d Feb 19 20:44:25 Yeah, I set it to Ctrl+D. Feb 19 20:44:33 Quacked, thaty’s because you are using this Feb 19 20:44:41 “this” refers to activity context Feb 19 20:44:50 pass an instance of your fragment Feb 19 20:44:52 yeah, I only have it the MainActivity Feb 19 20:45:10 tricknology, so I should have that in all the fragments instead of the activity? Feb 19 20:45:26 if you want to report what happens in the fragment I would think os Feb 19 20:45:32 I ahven’t relaly messed around with GA much though Feb 19 20:45:41 but it seems like it would make sense Feb 19 20:46:24 but say if I put it in onStart there, two fragments will be triggered I assume Feb 19 20:46:33 but reportactivitystop() Feb 19 20:46:54 what do you mean two fragments will be triggered? Feb 19 20:47:24 are you referring to the lifecucle? Feb 19 20:47:25 when I start the app, it starts both fragment1 and fragment2 Feb 19 20:47:30 ooohj Feb 19 20:47:31 yeah, I guess Feb 19 20:47:48 well.. you are reporting an activity stop Feb 19 20:48:02 reportActivityStop(), no? so souldnt it go in onStop()? Feb 19 20:48:04 I meant start Feb 19 20:48:05 hehe Feb 19 20:48:10 wrong copy paste Feb 19 20:48:11 oh ok Feb 19 20:48:20 well but still, reportACTIVITYstart() Feb 19 20:48:32 leads me to believe that is should go in your mainactivity liek you had before Feb 19 20:48:37 yeah Feb 19 20:49:03 check this Feb 19 20:49:04 http://stackoverflow.com/questions/22821139/how-should-i-track-fragments-in-google-analytics-v4 Feb 19 20:49:26 first link Feb 19 20:49:47 the magic is here: this.tracker.set(Fields.SCREEN_NAME, getClass().getSimpleName()); Feb 19 20:50:01 the class from getClass() will be your fragment.class Feb 19 20:50:14 might need a this.getClass() Feb 19 20:52:35 hmm Feb 19 20:53:46 TacticalJoke my bug was triaged high priority :) Feb 19 20:54:44 tricknology, but I cant call that in onstart since app launch starts two fragments Feb 19 20:54:50 Nice! Feb 19 20:55:25 why not? Feb 19 20:55:43 it will report both fragments as screen shown Feb 19 20:55:48 sorry I haven’t tried this before so I’m only suggestiosn at this point Feb 19 20:55:53 yeah, I appreciate it Feb 19 20:56:04 do you prefer one over the other? I’m kind of confused Feb 19 20:56:19 do you have 2 containers that are displayed at the same time? Feb 19 20:56:31 I have a viewpager with 3 fragments, and when I launch the app, onstart is triggered on the first two fragments Feb 19 20:56:41 ooh Feb 19 20:56:58 when you replace the fragment call it Feb 19 20:57:16 maybe in getItem Feb 19 20:57:44 then it is only called when the fragment is displayed Feb 19 20:58:06 I use onPageSelected when choosing between the fragments Feb 19 20:58:15 sure do it there Feb 19 20:58:15 TacticalJoke using mac ? Feb 19 20:58:25 is onPageSelected() called when the first fragment is displayed? Feb 19 20:58:30 g00s, I am Feb 19 20:58:42 tricknology == TacticalJoke ? :D Feb 19 20:58:50 tricknology, nah. its withing setOnPageChangeListener Feb 19 20:59:18 TacticalJoke.toLowerCase().startswith(t) Feb 19 20:59:19 OmniFocus looks so nice Feb 19 20:59:41 errr do you have a snippet of that code you can post? Feb 19 20:59:48 http://stackoverflow.com/questions/7723964/replace-fragment-inside-a-viewpager Feb 19 20:59:55 I'm using Windows. Feb 19 21:00:09 I’m talkign about their getItem() method Feb 19 21:00:17 in your fragmentpageradapter if you ahve one Feb 19 21:01:23 apparently mSectionsPagerAdapter = new SectionsPagerAdapter(getSupportFragmentManager()); Feb 19 21:03:27 errr yeah Feb 19 21:03:39 you might need a custom one Feb 19 21:04:23 huh recyclerView has no .setEmptyView ? Feb 19 21:04:32 thankfully it’s pretty easy.. http://pastebin.com/EUKSQ2Rt Feb 19 21:04:37 it has .setVisibility(View.GONE) Feb 19 21:04:53 thanks, I'll have a look Feb 19 21:05:05 gtg. wife getting crazy here Feb 19 21:05:16 lol gl, hf Feb 19 21:05:19 :) Feb 19 21:06:23 Has anyone tried accessing the Content Provider for Sleep As Android app? Finding incomplete data on their website. Feb 19 21:07:13 sites.google.com/sites/sleepasandroid/ <- kinda frightening "official" website... Feb 19 21:07:14 Guys, I need some opinion on something Feb 19 21:07:25 I have a library that fetches some data from the internet on initialize Feb 19 21:08:10 StriderZ: tbh if they have a public API, but it's poorly documented, I might recommend you just decompile the app. Feb 19 21:08:24 one of the things that it fetches is a list that is used in the app that uses the library Feb 19 21:08:44 What are my options to fetch that list asynchronously? Feb 19 21:08:48 That's 404ing here, groxx. Feb 19 21:08:54 TacticalJoke: yeah, me too :\ Feb 19 21:09:19 I use retrofit to download the list internally but should the library have a callback to let the app know it has the list now or something? Feb 19 21:09:24 Ah. Feb 19 21:09:26 that's the part i'm not sure about Feb 19 21:09:35 as usual, archive.org saves the day: https://web.archive.org/web/20140703215415/https://sites.google.com/site/sleepasandroid/ Feb 19 21:11:39 Hmm. As far as I can tell, the official material colour schemes all assume a light (not a dark) theme. Feb 19 21:11:52 Afzal: yeah you just use the callback in retrofit as a parameter Feb 19 21:12:00 then it'll do it async Feb 19 21:12:05 They all look weird in a dark theme. Feb 19 21:12:45 StriderZ: it seems like they're just exposing their database via a content provider? ¯\_(ツ)_/¯ write some sql, see what it gives you. I'd try "*" for projection, loop over all rows and all columns and print the contents so you can easily see what it gives you. Feb 19 21:13:19 Do you keep that person in your clipboard, groxx? Feb 19 21:13:35 ? Feb 19 21:13:42 macroed to a function key Feb 19 21:13:49 That guy with the arms. :D Feb 19 21:13:54 lasserix, yeah that's not the problem. The problem is how to let the app know that list has been downloaded and it can continue its operation Feb 19 21:14:08 THey have left out key pieces in the API description (or I don't know what I'm doing). For instance, no permission name is defined so that I can add to my manifest and they don't specify what time format tehy use. I'll look into decompiling. THanks! Feb 19 21:14:14 TacticalJoke: or maybe I should have asked: 【・ヘ・?】 Feb 19 21:14:47 StriderZ: you may not need a permission, and just take a look at what the time column gives you - it's probably consistent Feb 19 21:15:08 I thought of that as well, groxx, but wasn't sure how to go about it. I guess I should just poke around a bit. Feb 19 21:15:56 StriderZ: use a content resolver (there's plenty of documentation here), and check out the Cursor api. you should be able to get all the rows and dump it all out with a handful of lines of code. Feb 19 21:16:29 Afzal, well yes, you'll have to notify the app somehow Feb 19 21:16:30 Awesome. I don't know why I didn't think to use "*" for the projection. Feb 19 21:16:46 Afzal, make the user pass a listener or something as an initialization parameter Feb 19 21:17:25 StriderZ: yeah, if you know sql, most content providers are a 1:1 mapping to a database. you can often even do sql injection. Feb 19 21:20:49 huh, AbsoluteLayout is still there Feb 19 21:20:54 Mavrik, hmm okay Feb 19 21:21:02 does google actually deprecate stuff and remove it, or just let the crap keep rotting ? Feb 19 21:21:15 g00s, the latter Feb 19 21:21:16 g00s: afaik they just let it rot, because they'd rather do that than break old apps. Feb 19 21:22:08 it would be kinda nice if they could @hide it if your minsdk is past the deprecation version, but that's probably too much to hope for (and would inevitably break someone's app) Feb 19 21:22:32 They actually do hide stuff. Feb 19 21:22:42 I've seen APIs disappear that were deprecated for some time. Feb 19 21:22:49 But luckly they're not breaking linking yet. Feb 19 21:24:27 Mavrik interesting Feb 19 21:24:37 Question: what if I want to use a custom drawable (styled button) in the actionbar? instead of an icon in the actionbar item? Feb 19 21:24:43 Is that possible? Feb 19 21:25:00 tricknology, you can always add your own view/layout. Feb 19 21:25:17 to the actionbar? or replace the actionbar? Feb 19 21:25:34 I’m adding it.. and it’s clickable.. but the button is invisible Feb 19 21:25:41 and the visibility is set to visible Feb 19 21:33:00 tricknology: the button is, or your drawable isn't working? try a solid color? Feb 19 21:33:27 I think it has to do with the fact that I’m using a custom drawable in the item Feb 19 21:33:30 of the menu Feb 19 21:33:53 the drawable is a shape Feb 19 21:34:00 if I use a regular png it works Feb 19 21:34:23 android:icon="@drawable/custom_button" Feb 19 21:35:03 could it be getting padded out of existence? Feb 19 21:35:15 it could. there is padding.. Feb 19 21:35:28 it’s there and clickable, just a no-show Feb 19 21:39:39 nope Feb 19 21:42:26 android:icon should be android:background.. that was it.. Feb 19 21:42:54 one of the things i did different this time around was make leaf-node views activities that were either standalone on phone or floating on tablet (model overlay) and i think this worked out pretty well Feb 19 21:43:03 leaf-node screens Feb 19 21:46:52 can someone suggest a verbose tutorial on DatePickerDialog? Of the examples and documentation I found, I can't make heads or tails of yet. Feb 19 21:51:34 well now I believe my issue is that the ROM build doesn't even see my sdk install next to it Feb 19 21:52:01 and it's building with the pre-built sdk tools from the repo which may not be version 21... Feb 19 21:54:39 looks like it added all the prebuilt tools directories to my path /before/ the sdk tools and platform tools I had in there Feb 19 21:58:46 hey guys, I've created shared library to use with JNI and have compiled it using ndk-build.. no problems there. But I'm unable to load it using System.loadLibrary(). I've checked the .apk file and it's packaged in there in lib/armeabi/libMyLib.so Feb 19 21:59:13 what are you running it on? Feb 19 21:59:14 I'm testing with the emulator, nexus 5.. any ideas on what to look into? Feb 19 21:59:19 does your .apk contain any other native libs? Feb 19 21:59:24 jacres: are you using the right name for it? I think in that case you would need to specify "MyLib" as the library to load Feb 19 21:59:35 what's logcat say? Feb 19 21:59:46 what's your /data/data/$PACKAGE_NAME/lib/ directory contain? Feb 19 22:00:19 JesusFreke: yeah, I'm omitting "lib" and ".so" Feb 19 22:00:49 jonp: here's my jar -xvf output: http://pastebin.com/uWv812Az Feb 19 22:01:03 I'm not sure how to check logcat - more of a c++ developer, but getting into android Feb 19 22:01:16 jacres: and libvideo360renderer won't load? :-) Feb 19 22:01:20 that's the one Feb 19 22:01:22 ;) Feb 19 22:01:27 something obvious? Feb 19 22:01:30 i know exactly the problem Feb 19 22:01:33 yay ;) Feb 19 22:01:40 Can I take a bytestream from an input stream and write it directly to disk without making a bitmap out of it first? Feb 19 22:01:50 thought i'd come here after running in circles for the past 2 hours Feb 19 22:02:29 jacres: http://developer.xamarin.com/guides/android/advanced_topics/MultiCore_devices_XamarinAndroid/#Android_Native_Library_Installation Feb 19 22:02:30 jonp: in the future - how can I inspect /data/data/.../lib? Feb 19 22:02:40 jacres: adb shell run-as $PACKAGE_NAME ls lib/ Feb 19 22:02:54 jonp: I had tried using System.load() with the full path to see if it would work Feb 19 22:02:55 jacres: the issue is that -- depending on what your Android version is (lol) Feb 19 22:03:13 jacres: if your have both lib/armeabi and lib/armeabi-v7a, only native libs from ONE will be extracted, not both. Feb 19 22:03:30 jonp: had thought maybe that was it - I had read that v7a could use armeabi Feb 19 22:03:31 and -- depending on the ABI version -- the one that's installed is the "first" one found by enumerating the .apk contents. Feb 19 22:03:32 ohhh Feb 19 22:03:39 it's a clusterfuck. Feb 19 22:03:40 so it's pulling the contents of tha tfolder only Feb 19 22:03:45 'causing no end of OMGWTFBBQ Feb 19 22:03:46 getting Application.so Feb 19 22:04:02 for sanity, you need to ship a copy for every ABI you claim to support Feb 19 22:04:13 you can't try to save space and have the package installer "merge" ABIs Feb 19 22:04:14 JesusFreke so AS 1.2 (idea 14) will have a built in java decompiler (according to this anyhow) -- are you involved in that at all ? Feb 19 22:04:16 not a solution, but deleting the v7a folder in this case would default to the armeabi version? Feb 19 22:04:17 even though that seems logical Feb 19 22:04:21 yes Feb 19 22:04:23 ok Feb 19 22:04:23 g00s: nope Feb 19 22:04:26 that makes sense Feb 19 22:04:27 or delete the armeabi version Feb 19 22:04:30 thanks for explaining that Feb 19 22:04:32 and stick with v78 Feb 19 22:04:34 v7 Feb 19 22:04:36 yeah Feb 19 22:04:40 g00s: but I'm looking forward to trying it :) Feb 19 22:04:40 armv5 should die. please. Feb 19 22:04:41 ;-) Feb 19 22:04:41 i'll need to compile a v7 version of the lib Feb 19 22:04:52 ah so armeabi is v5 Feb 19 22:04:55 yup Feb 19 22:05:08 awesome Feb 19 22:05:10 which means it doesn't work well on multi-core devices, if you need to do any locking/etc. Feb 19 22:05:14 some quality irc help right here ;) Feb 19 22:05:19 AVOID in a multi-threaded, thread-aware, environment. Feb 19 22:05:24 ok Feb 19 22:05:58 The "Clear logcat" button (which should be "Clear LogCat") is so obnoxious. It doesn't re-enable itself until I move the mouse, and even then it pauses first. Feb 19 22:06:32 Actually, on the capitalisation point, they seem to be calling it "logcat" in AS. Hmm. Feb 19 22:07:25 jonp: thanks again Feb 19 22:07:29 I pushed a version of pidcat to Jake that can detect keyboard commands : C is clear Feb 19 22:08:47 actually: c, C and spacebar (I REALLY wanted to clear it :D ) Feb 19 22:09:54 MikeWallaceDev: I usually just hit cmd-K Feb 19 22:09:57 You could just hold the return key for a couple minutes Feb 19 22:10:08 That feature is already built in Feb 19 22:10:26 groxx, yiati, not with pidcat... Feb 19 22:11:01 cmd-K won't, but return will, I was not being serious though :P Feb 19 22:11:49 I can't test it anymore yiati :) I'll take your word for it Feb 19 22:11:57 well, I could... yeah... Feb 19 22:12:52 i've written a logcat app, one feature wanna add in is streaming logcat from computer to a tablet for viewing. Right now got it so can stream from device to device Feb 19 22:12:57 Hmm cmd-K actually seems to work, but not in tmux with panes Feb 19 22:13:06 MikeWallaceDev: within OSX's terminal app, cmd-K clears screen & scrollback buffer, which is usually what I want anyway Feb 19 22:13:24 ctrl-L on Linux... Feb 19 22:13:51 well yeah, once you're handing things over to curses, all default behaviors could fly out the window :) Feb 19 22:13:56 i wrapped my logcat around mqtt for diagnostics, maybe someday open source the libraru Feb 19 22:14:17 I thought about adding curses, but then it wouldn't work on Windows... Feb 19 22:14:33 but I'm not even sure pidcat DOES work on Windows! :D Feb 19 22:14:50 wait, do people use windows to do non-windows development? Feb 19 22:14:55 * groxx 's mind boggles Feb 19 22:15:23 dunno why you'd subject yourself to that, even with cygwin Feb 19 22:15:31 Well, I use Linux to do non Linux dev :P Feb 19 22:15:42 pfn uses windows for android development. but he also uses scala Feb 19 22:15:44 so he Feb 19 22:15:52 MikeWallaceDev: sure, because that makes sense. linux can do lots of things. Feb 19 22:16:03 * PRESONIC slaps quasist around a bit with a large trout Feb 19 22:16:06 oops Feb 19 22:16:22 I love Linux, can't stand windows anymore. I put my whole family on Linux... Feb 19 22:16:29 once i figure out version 2.0 of my logcat app, that's all you'll need :) Feb 19 22:16:43 * groxx slowly closes the door that PRESONIC opened into his life. now to bleach my eyes... Feb 19 22:16:55 what does your app do whatitis ? Feb 19 22:17:52 http://play.google.com/store/apps/details?id=com.whatitisapps.rrlogcat this one is strictly logcat Feb 19 22:18:02 just finished 1.0 of it Feb 19 22:18:38 oh, runs on device. Feb 19 22:19:01 yeah, can stream for devices so can view on tablet or whatever while testing on other device Feb 19 22:19:18 Whats up TacticalJoke Feb 19 22:19:18 gonna get it so can stream from pc to device so can skip root permission Feb 19 22:19:50 What's the advantage over a terminal window? Feb 19 22:20:00 the details Feb 19 22:20:05 Hey, drose379. Feb 19 22:20:13 How you doing? Feb 19 22:20:14 i have tons of stuff to add to it Feb 19 22:20:46 does it do live Logging? or only files? Feb 19 22:20:48 Pretty well. How's the app coming along? Feb 19 22:21:13 does live, and files, and can stream live Feb 19 22:21:26 cool Feb 19 22:21:51 TacticalJoke pretty good thanks, ive been working on database setup and some server side stuff for a few days Feb 19 22:21:53 you? Feb 19 22:21:57 thanks, worked a bunch of this thing, still have bunch todo Feb 19 22:22:33 Is the Nokia MMSSender class screwed up or what? Feb 19 22:22:34 Nice. Mainly trying to figure out which colours to use, which themes to offer, and so on, while also fixing little issues. Feb 19 22:22:39 I send an MMS manually and it shows up instantly Feb 19 22:22:53 I send it with MMSSender class defaults and it takes 3-60 minutes if it ever shows up. Feb 19 22:23:08 Cool, have you done the default theme yet? Feb 19 22:23:10 mms server says ok. Feb 19 22:23:48 Not yet. I might have a dark theme as the default one. Feb 19 22:23:58 But I'll also offer a light theme. Feb 19 22:24:29 Sweet, cant wait to see Feb 19 22:30:45 The UI is minimalistic. The idea is that it doesn't get in the way of reddit at all, and reddit takes centre stage. (This is mainly because reddit is so complex.) Feb 19 22:31:05 And also because of things such as image thumbnails (which are kind of decoration on their own). Feb 19 22:31:38 StephanDev: hard to say. the nokia one might just shove it in the DB immediately, while the stock one might be putting it in an out-box until it's confirmed that it has been accepted / uploaded / whatevered. Feb 19 22:31:50 Sounds good to me TacticalJoke Feb 19 22:32:34 groxx: the nokia is sending some encoding off via http, and it grabs the default apn settings, i see the 200 result from the http server, takes a while to receive the mms though Feb 19 22:33:08 Yeah. Just warning you that it might look boring. :D Feb 19 22:33:16 It's just boring by design. Feb 19 22:33:21 StephanDev: dunno then. mms is pretty slow in my experience. Feb 19 22:33:41 If the functionality is there then thats all that matters Feb 19 22:33:55 groxx: appreciate it either way. stupid! :) Feb 19 22:34:00 groxx: not you -- mms that is. lol Feb 19 22:34:12 StephanDev: 100% agreed :) mms is a pain. Feb 19 22:34:24 also, wtf bcc fields. Feb 19 22:34:47 hey people Feb 19 22:34:56 is it possible to forward an intent to another activity? Feb 19 22:35:07 Yeah, UI minimalism together with functional power seems to be the key thing here. Feb 19 22:35:28 I tried with Intent intent = new Intent(getIntent()); intent.setClass(SplashActivity.this, MainActivity.class); startActivity(intent); Feb 19 22:35:31 but it doesn't work Feb 19 22:36:00 Sounds great TacticalJoke. Im out for now Feb 19 22:36:01 actually it kind of work, the activity is started Feb 19 22:36:01 Talk to you later Feb 19 22:36:17 but when I minimize the app and try to open it again it closes immediately Feb 19 22:36:36 1404067613897<-- that look like it could be timeinmillis() to you guys? :) Feb 19 22:36:46 I just set getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS) on my MainActivity, and now I notice my toolbar at the top of the activity layout is overlapping with my status bar... How do you adjust that? Shifting down the toolbar? Feb 19 22:37:06 StriderZ: Yes. Looks like unix epoch time, which is in milliseconds Feb 19 22:37:24 Thanks, thought so. Getting somewhere, then. Feb 19 22:37:33 I'm seeing 1424385438827 right now. Feb 19 22:37:39 For System.currentTimeMillis(). Feb 19 22:42:34 what better mode for android native game development Feb 19 22:42:45 developer mode Feb 19 22:44:01 ok but some suggestion Feb 19 22:44:28 for what? what modes are there to be better than another Feb 19 22:44:28 I'm using a SwipeRefreshLayout in my MainActivity and I cannot find a way to manually refresh it. All the fixes I"ve found simply try to .setRefreshing(true) and result in an infinite refresh. Any ideas? Feb 19 22:47:25 I hope there's a good reason v13-support doesn't include ViewPager Feb 19 22:47:37 between libgdx and andengine chosed libgdx but it use box2d so maybe its better use box2d alone Feb 19 22:48:13 dont need 3d support Feb 19 22:49:00 make 2d games its enoght for me Feb 19 22:54:54 If I set my Toolbar to transparent, how can I allow something that is hierarchically below the toolbar to appear underneath it? Feb 19 22:55:26 by using a FrameLayout Feb 19 22:55:43 t0astt, ?? How can something appear beneath something transparent?? Feb 19 22:56:01 cause.. you know... it's transparent.. Feb 19 22:56:18 MikeWallaceDev: I suppose I worded that badly. I'm trying to achieve this effect, on the left image: http://www.underconsideration.com/brandnew/archives/google_material_design_type_samples.png Feb 19 22:56:30 Where the ImageView appears underneath the toolbar Feb 19 22:56:54 that's not a toolbar, it the status bar. Feb 19 22:57:23 Are you sure? I'm talking about below the status bar, where the back arrow, edit, and menu button are Feb 19 22:57:27 A transparent object could exist on top of something. "Transparent" isn't the same as "nonexistent". :) Feb 19 22:57:33 not the very bottom action bar Feb 19 22:57:45 finally getting some messages fast Feb 19 22:57:50 shit, my bad, I didn't see it! :D Feb 19 22:57:55 4 hours of playing with the damn paramaters Feb 19 22:58:00 i think i found some working settings Feb 19 22:58:02 (cause.. you know.. it's transparent! :D Feb 19 22:58:05 well not that long, but feels like it :P Feb 19 22:58:08 :) all good MikeWallaceDev haha Feb 19 22:58:10 hahaha Feb 19 22:58:48 https://developer.android.com/training/basics/actionbar/overlaying.html Feb 19 23:05:08 groxx, sure, because osx sucks Feb 19 23:05:14 I hate using osx Feb 19 23:05:20 and I have a mbpr sitting right next to me right now Feb 19 23:05:21 MikeWallaceDev: That's exactly what I want. Can that value be changed in code? Or just XML? Do you know? Feb 19 23:05:33 I only use osx when work forces it on me Feb 19 23:05:44 I like apple hardware otherwise, though Feb 19 23:05:45 which value? Feb 19 23:06:08 actually, I don't. I'll just look it up, so you do it :P Feb 19 23:06:56 Haha I'm looking it up right now. Just wanted to know if you knew it off the top of your head. Setting to overlay programmticaly Feb 19 23:07:29 I have no memory, I can't remember my name off the top of my head :-/ Feb 19 23:08:32 (No, seriously, I've been dev'ing Android for 5 years. I was recently asked the 6 lifecycle methods in an interview. I could only remember 4! Forgot Start and Stop...) Feb 19 23:10:58 And I've made presentations at conferences concerning the lifecycle! Feb 19 23:11:53 Okay, I've found one case where setSupportActionBar(Toolbar) gives you something: the parentActivityName thing. Feb 19 23:12:01 pfn: what's your day-to-day OS, out of curiosity? Feb 19 23:12:23 there's plenty that sucks about osx, I have no debate there :) Feb 19 23:12:32 groxx, Windows Feb 19 23:13:35 woot im happy those mms's are going fast now Feb 19 23:13:37 and finally being received :D Feb 19 23:14:19 pfn: maybe it has improved since I last primarily used windows, but in general it seemed that open source anything was noticeably much better supported on unix-like OSes. building, running, tools, everything. cygwin is an impressive effort, but also a PITA. Feb 19 23:14:52 git and java are about everything I need Feb 19 23:14:57 Cygwin is a sin. Feb 19 23:15:05 Cygsin Feb 19 23:15:08 I use msys Feb 19 23:15:19 Everyone someone tried to be smart with it it fucked up so many things that it wasn't funny. Feb 19 23:15:26 groxx: Which distro are you running? Feb 19 23:15:27 So now I just get a twitch when I hear for it. Feb 19 23:15:55 msys and mingw Feb 19 23:15:57 Msys is okish. Feb 19 23:16:15 Still has issues in 21st century with non-ASCII filesystem paths Feb 19 23:16:39 good thing I'm in murica Feb 19 23:16:53 I could probably switch to Linux now that I'm not doing Windows development anymore. But I don't know whether I'd get much out of it. Feb 19 23:17:02 And don't give a s*** about non ASCII Feb 19 23:17:23 How do I change the language filter Feb 19 23:17:51 TacticalJoke: osx. I'd love to have a decent linux, but they've all committed unforgiveable UX sins within hours of a fresh install (e.g. requiring me to fix things by hand in the CLI). I would survive just fine, but I do prefer to not fight with my OS when possible. Feb 19 23:17:55 there we go Feb 19 23:17:57 Ah, yeah. Forgot. Feb 19 23:18:19 Right. The UX is getting better but it's not long before it lets you down. Feb 19 23:18:44 *shrug* Feb 19 23:18:57 elementaryOS, Xubuntu and Mint have worked more than well for me Feb 19 23:19:05 I don't notice OS X being much better Feb 19 23:19:10 xfce is getting a major update soon Feb 19 23:19:23 Some pieces of 3rd party software is prettier but when it comes to getting actual shit done Feb 19 23:19:26 you use same software Feb 19 23:19:40 the only big pain point left though is handling of 3200x1600 displays Feb 19 23:19:47 at least in terms of Java apps Feb 19 23:20:00 but then again, on OS X I'm stuck with broken shitty Apple Java for that to work too Feb 19 23:20:40 so everything is broken :P Feb 19 23:21:23 What's simple date format for MonthName 19, 2015 hh:mm:ss ? Feb 19 23:21:28 how do I do the MonthName part? Feb 19 23:21:54 lasserix, MMMM Feb 19 23:21:58 or MMMMM Feb 19 23:23:24 Mavrik: yeah, apple java has issues :) the resolution independence is way better though, especially the # of apps which support it (ie, almost 100%) Feb 19 23:23:44 groxx, mhm, but they're going the other way now Feb 19 23:23:53 orly? Feb 19 23:23:56 on Yosemite bunch of text is badly readable on external screen Feb 19 23:24:17 I have no problems with an external screen - not sure what's going on there Feb 19 23:24:25 since they use that Helvetica Neue font which doesn't look good on non-retina screens Feb 19 23:24:39 they did patch alot of that since 10.10.0 tho Feb 19 23:25:08 my main problem with yosemite is that I get GPU-related crashes pretty frequently. and I think the semi-transparent stuff looks terrible. Feb 19 23:25:35 mhm, I downgraded since I was badly affected by the windowserver mem leak Feb 19 23:25:44 my laptop was unusable on battery after hour or so Feb 19 23:25:52 but I'm in a terminal / android studio / a browser for like 99% of my time on my computer, font rendering there all seems fine Feb 19 23:26:51 \o Feb 19 23:29:56 kinda shocked to see Apple get rid of Aperture :O now its just Lightroom and maybe CaptureOne Feb 19 23:31:30 question: I'm passing a Parcelable object through to an activity using an intent, but I need to then modify the original object. how can I do that? Feb 19 23:34:27 If i have some date format like Feburary 19th, 2015 14:23:22 without a timezone how should I handle that? Feb 19 23:35:45 Where are you getting that, lasserix? Feb 19 23:36:01 this api i am using Feb 19 23:39:00 drinfernoo, you can't Feb 19 23:39:40 pfn, would I have problems if I passed it via a normal method instead of via an intent? Feb 19 23:39:58 drinfernoo, No Feb 19 23:40:24 I'll try that Feb 19 23:40:45 wait, no Feb 19 23:40:51 better off doing start activity for result Feb 19 23:41:06 what does that mean? Feb 19 23:41:13 google Feb 19 23:44:49 Whoa, this is neat: http://www.reddit.com/r/Cinemagraphs Feb 19 23:45:06 Images edited so that there is some movement. (I think.) Feb 19 23:45:12 Minor movement. Feb 19 23:47:20 TacticalJoke, totally cool Feb 19 23:47:43 pfn, so basically its just sending an intent back to the calling activity? Feb 19 23:50:05 https://github.com/magicgoose Feb 19 23:50:09 when I see this guy, I think g00s Feb 19 23:50:11 * pfn shrugs Feb 19 23:50:12 but it isn't Feb 19 23:52:25 what am I missing TacticalJoke ? They are animated gifs.. no? Feb 19 23:53:34 holy fuck. Ok, this one is freaky. http://i.imgur.com/vn224cH.gif Feb 19 23:54:07 lasserix: generally no timezone means UTC, but I wish it were that simple. hopefully they document it. Feb 19 23:57:25 heh: http://i.imgur.com/jsJcgdP.gif Feb 19 23:57:42 I've got to find a place to use that. Feb 20 00:00:16 nice Feb 20 00:10:11 is there a guide somewhere to publish an android library on bintray using their gradle plugin? Feb 20 00:10:30 I have the aar up there but I can't fetch it from another app, says not found Feb 20 00:11:32 so View.setElevation is not adjusted for screen density, correct? Feb 20 00:17:00 ah nvm, you have to request to be included in the jcenter Feb 20 00:18:13 yeah Feb 20 00:18:18 that is the case groxx Feb 20 00:37:51 groxx: That's awesome. Feb 20 00:37:59 MikeWallaceDev: Was there movement in that one? Don't see any. Feb 20 00:38:14 Ooh. Her eyes. Feb 20 00:58:48 http://developer.sonymobile.com/products/smarteyeglass/ <-- lol wtf Feb 20 01:03:29 Ugly, but the "augmented reality" thing looks really interesting. Feb 20 01:05:01 Not only ugly but by the sincerity of that smile uncomfortable too boot Feb 20 01:09:46 interesting, square might be working on their own android tablet Feb 20 01:10:11 JW's Square? Feb 20 01:10:17 ya Feb 20 01:10:17 i'm the owner Feb 20 01:10:26 Any links I can see? Feb 20 01:10:46 http://theverge.com/jake-wharton-takes-over-ceo-of-square Feb 20 01:11:13 dang, an official url even Feb 20 01:11:48 renaming it to JW's Rectangle next week Feb 20 01:11:56 Equilateral Rectangle Feb 20 01:12:26 It might be a cultural thing, but over here the possessive can be used to mean "relating to" (and not just "owned by"). Feb 20 01:12:34 Though it's mainly slangy. Feb 20 01:14:13 JakeWharton: funny thing. as I read your comment, I'd just been linked to one of your projects and was like wait….. Feb 20 01:15:08 g00s: Where are you reading this? Hard to google it. Feb 20 01:15:48 JakeWharton, 404? Feb 20 01:15:53 drinfernoo: lol Feb 20 01:15:59 drinfernoo: much be a CDN issue Feb 20 01:16:01 try again later Feb 20 01:17:30 TacticalJoke http://www.theverge.com/2015/2/11/8019413/square-apple-ipad-mobile-payments-terminal-android-report Feb 20 01:18:06 Should I be setting windowBackground in Material? Or should I be leaving it the hell alone. Feb 20 01:19:41 g00s: Interesting. The article sounds so uncertain, though. Feb 20 01:20:06 'the information' article is behind paywall, thats the best i could find Feb 20 01:20:16 rampant speculation? baseless conjecture? sounds nothing like the modern tech media Feb 20 01:25:27 Is there a way to set the background of all dropdowns (spinners, overflow menus, etc.)? For some reason, setting android:popupBackground globally has no effect. Feb 20 01:26:35 Okay, it's a Spinner-specific attribute. That's why it doesn't work globally. Feb 20 01:27:27 so then change spinnerStyle Feb 20 01:33:20 can a fragment get an activity result? Feb 20 01:34:27 yes Feb 20 01:34:53 Okay, thanks. That works for all Spinners. How about Toolbar overflow menus? If I use popupTheme and set android:background, it works but click-highlighting breaks (it goes blocky). Feb 20 01:35:34 my onActivityResult isn't being called in my fragment :/ Feb 20 01:37:22 drinfernoo: nested support fragments won't get it, but top-level ones will Feb 20 01:37:50 OK, so this is a fragment in a ViewPager Feb 20 01:38:18 that one won't? Feb 20 01:39:13 groxx is that documented anywhere ? Feb 20 01:41:07 g00s: via the standard hackbod documentation, yeah: https://code.google.com/p/android/issues/detail?id=40537#c13 Feb 20 01:41:42 oh crap, and its different between support lib and platform Feb 20 01:41:48 yup Feb 20 01:42:19 TacticalJoke: popupMenuStyle? popupWindowStyle? Feb 20 01:42:20 thats one of those things i'd probably lose hours trying to figure out wtf i was doing wrong Feb 20 01:42:29 yep! Feb 20 01:42:32 sure wish they'd document it :| Feb 20 01:45:25 Hmm, those don't seem to hit the overflow menu. Feb 20 01:45:35 groxx i wonder what would happen to android if DH moved on Feb 20 01:45:57 it could be like anyone else moving on, but she seems to be an architect Feb 20 01:46:11 * g00s rembers mythical man-month : maintainaing architectural vision Feb 20 01:46:19 "Over time, moving to the platform implementation of fragments is the solution to this." <-- That sounds odd to me. Feb 20 01:46:59 i bet they pay her a lot to stay :D Feb 20 01:47:17 she does seem to seriously know her stuff, at least Feb 20 01:48:45 I just wish she'd write it down more often. and in more visible locations. can we, as android devs, sponsor someone to just follower her around and write down everything? Feb 20 01:51:27 groxx like those officials that follow around kim jong un Feb 20 01:51:37 they all have pads, writing down whatever he says Feb 20 01:51:53 Mittendeep: How's your project coming along? Feb 20 01:52:00 groxx, so what should I do? lol Feb 20 01:52:47 drinfernoo: heh. personally, a) don't nest fragments, and/or b) use unique codes in your application, and check for the code in the activity's onActivityResult. if it's for one of your sub-fragments, find it and forward the call. Feb 20 01:53:15 there may be something nicer, but it's quick. Feb 20 01:54:43 so have my main activity check for the request code, and call a method to deal with it? Feb 20 01:56:57 yeah Feb 20 01:57:09 I'm not too fond of it as a fix, but it's direct at least. Feb 20 01:58:05 If I have a spinner and an overflow menu in my Toolbar, should I be trying to change their background colour? Feb 20 01:58:13 Or should I just use the default dark/light colour? Feb 20 01:58:23 (In terms of UI consistency, etc.) Feb 20 02:08:27 Hey, super nooby question. I'm working through the developer.android tutorial and it recommends the google design icon pack. I downloaded it, but I can't figure out a good way to get the icons in drawable. I assume there's an easier way than copying each one? Feb 20 02:09:32 Or am I able to search subdirectories? So if I just throw the whole thing in drawable, can I do @drawable/Action Bar Icons/holo_dark/etc... Feb 20 02:11:19 TacticalJoke that code as crime scene book is almost here Feb 20 02:15:26 I really should filter out the user requests more... http://materialdesignicons.com/icon/clippy :-/ Feb 20 02:15:36 That book looks interesting. Feb 20 02:15:40 YAY CLIPPY Feb 20 02:15:43 mpthrapp: I think that's the only way. Feb 20 02:16:02 TacticalJoke: Alright, thanks. Feb 20 02:16:04 I have just tried like 20 SO "solutions" for this popup-menu thing. Not a single one works. lol Feb 20 02:16:13 Some were accepted; some were high rated. Feb 20 02:16:22 TacticalJoke: that sounds like my typical SO experience. Feb 20 02:16:40 when it works it's great, but omg the bitrot. it feels worse than blogs. Feb 20 02:16:57 That is a great Clippy. Feb 20 02:17:24 Yeah, and SO-answer bitrot seems common on Android at times. Feb 20 02:17:26 yeah, I'd use that clippy for e.g. sharing stuff to MS apps Feb 20 02:18:28 I think the worst part of it all is that iirc SO was largely built to _prevent_ bitrot? it seems to have failed. Feb 20 02:19:00 Templarian: What is the licensing situation with those icons? Feb 20 02:19:39 largely cultural, probably, but it feels like some of it is the massive de-prioritization of when answers / changes happened. you can't skim and say "anything older than a year isn't relevant". Feb 20 02:20:12 TacticalJoke: License files is in the git repo. Same license as Font Awesome. Feb 20 02:20:31 On that note I got woff2 to build for all 900+ icons yesterday. Feb 20 02:21:00 29kb :D Feb 20 02:22:27 If I declare style="@style/Foo" on a Toolbar, should Foo inherit from Widget.AppCompat.Toolbar? I didn't think it needed to, but this Chris Banes answer does it: http://stackoverflow.com/a/26508436 Feb 20 02:22:48 And suddenly I realised I've never thought about this concept before. Feb 20 02:23:58 TacticalJoke: if you're using appcompat, I would think yes. otherwise: does it matter, if you're (intentionally) planning on using system styling? seems like it should only override the things it defines... Feb 20 02:24:14 maybe one day I'll grok styles :| Feb 20 02:24:46 What would everyone recommend for android dev tutorials? I have experience in Python and Delphi, just no mobile experience. Feb 20 02:24:53 developer.android.com Feb 20 02:25:02 groxx: Wouldn't the Toolbar pick up the style anyway because of this? @style/Widget.AppCompat.Toolbar Feb 20 02:25:13 Or maybe I do not understand how that crazy stuff works. Feb 20 02:25:24 "This" is in the AppCompat styles thingy. Feb 20 02:25:29 groxx: I'm going through that now. I guess I'll stick with that then, thanks. Feb 20 02:25:31 TacticalJoke: probably....? :S Feb 20 02:25:36 lol Feb 20 02:25:53 mpthrapp: I'm a former Delphi developer. *does secret Delphi handshake* Feb 20 02:26:04 mpthrapp: most tutorials I see make pretty big over-simplifications, or don't teach the basics, or x, y, or z. tbh I think the official site is very likely the best source. Feb 20 02:26:17 TacticalJoke: I wish I was a former developer. :P I still get to use Delphi 7 every day. Feb 20 02:26:25 handshake := THandshake.create Feb 20 02:26:26 TacticalJoke: And on lucky days I get to drop into 5. Feb 20 02:26:26 Or something. Feb 20 02:26:26 the vast majority of misunderstandings would be solved if people used the official docs / tutorials a little more often. Feb 20 02:26:28 It's been so long. Feb 20 02:26:33 Damn, 5. Feb 20 02:26:53 TacticalJoke: Yup. Our codebase is 15+ years old in parts. Feb 20 02:27:09 I remember those TeamB people. Are they still around? Feb 20 02:27:53 Who? Feb 20 02:28:04 Oh, from the old Borland newsgroups (NNTP). Feb 20 02:28:24 God, I used to spend hours on there every day. What was I thinking. Feb 20 02:28:28 Ah, gotcha, I just started working in Delphi about a year ago. Feb 20 02:28:41 It's kinda painful. Feb 20 02:28:49 s/kinda/really Feb 20 02:28:50 The drama in those newsgroups was good, though. It was very "us (developers) versus them (Borland)". Feb 20 02:29:01 groxx yeah, but look at recyclerview. google did the least amount possible documenting that, the apidemo is as plain as can be. it took bill phillips weeks to figure it all out Feb 20 02:29:16 Yeah, Delphi isn't the most modern language. I used to like it, but back then it was a choice between that, C++, and VB. Feb 20 02:29:27 google is responsible for docuementing their platform. but as you see, dianne's attitude about docs is pervasive Feb 20 02:29:46 TacticalJoke: If it had support for anything to do with arrays, and a way to do key:value, it wouldn't be that bad. Feb 20 02:30:00 g00s / mpthrapp: yeah, there are some large omissions in google's docs. there are larger elsewhere though. and the basics are covered way better on the official site. better to start there, and look elsewhere for details when needed. Feb 20 02:30:12 I hated the begin..end thing. Ugh. Verbose. Feb 20 02:30:20 the website still has holo stuff and outdated crap , even though material has been out long Feb 20 02:30:27 It felt so VBish, too. Feb 20 02:30:42 TacticalJoke: Meh, that I don't mind as much. Feb 20 02:30:44 g00s: Yeah, that's just sloppy. Feb 20 02:31:07 the actionbar still talks about navigation modes and split action bars Feb 20 02:31:13 TacticalJoke: I just hate having to do endless .create() Feb 20 02:31:15 sloppy, yeah. but worrying about consistent and modern styling should come after knowing what an Activity is and how to build one. Feb 20 02:31:17 mpthrapp: What kinda Android stuff are you looking to do? Just curious. Feb 20 02:31:39 delphi interpreter maybe? Feb 20 02:31:42 TacticalJoke: Honestly, I'm not really sure. I'm mostly just looking to expand my wheelhouse. Feb 20 02:31:44 :D Feb 20 02:31:51 groxx: Oh dear god. Feb 20 02:31:57 I feel like one already exists... Feb 20 02:31:59 Delphi is quite powerful, though. And fast. Feb 20 02:32:11 And you can drop back to assembler, I think. (Or am I misremembering?) Feb 20 02:32:16 TacticalJoke: Our company also does some mobile stuff for our newer products, so I figure I should pick it up. Feb 20 02:32:24 The VCL is also really good. Feb 20 02:32:27 s/is/was/ Feb 20 02:32:30 TacticalJoke: Yeah, you can. I don't actually know any assembler, but you can. Feb 20 02:32:47 TacticalJoke: Honestly, it's still pretty good, other than looking out of date in XP. :P Feb 20 02:32:55 haha Feb 20 02:33:03 It was a million times better than MFC at the time. Feb 20 02:33:39 mfc = Most Fucked up Classes Feb 20 02:33:53 Hahaha. Feb 20 02:34:18 I hated how MFC (and, I guess, VC++) emphasised the whole Document/View Architecture thing. Feb 20 02:34:24 It basically tried to force that on you. Feb 20 02:34:46 yeah i remember mdi, sdi Feb 20 02:34:49 Making a to-do list? Here, try our Document/View Architecture. A Notepad clone? Try our Document/View Architecture! Feb 20 02:35:06 it kinda worked for lots of desktop apps though Feb 20 02:35:27 Remember the boiletplate? Urgh. Feb 20 02:35:30 The message-macro things. Feb 20 02:35:35 i guess they figured everything should look like MS Office :D Feb 20 02:35:42 Just FYI, there is a huge phishing scam going on right now and almost got caught. Feb 20 02:35:47 Email subject is "3-Day Notification of Google Play Developer Term Violation" Feb 20 02:35:56 Yeah, someone said about that on /r/androiddev. Feb 20 02:36:34 Wasn't sure if it was posted here -- almost got caught, figured this was the best place to give a heads up. Feb 20 02:36:39 :) Feb 20 02:36:45 Scared the crap out of me. Feb 20 02:40:33 does google email you those things, or do they come through as announcements in your developer console ? Feb 20 02:40:51 greetings, pls I need some help, trying to debug my app, it gets stuck at a blank black screen at startup and subsequently shows an ANR dialog, it doesnt print any logcat logs and writes out a bunch of traces to /data/anr/traces.txt . Any help will be fantastic! Feb 20 02:41:45 donaldepig: /data/anr/traces.txt should say something relevant. have you `adb pull /data/anr/traces.txt` yet and read it? Feb 20 02:42:27 yeah i did that, but I dont quite understand it. Feb 20 02:43:31 stick the top trace up on pastebin or something, it's probably the most useful piece of info. otherwise: when you say there's no logcat output, do you have a filter on for your app? try turning it off, maybe you're getting errors from the system trying to start your app, which won't appear with that filter. Feb 20 02:44:40 Anyone used this library before? It looks pretty nice and flexible. https://github.com/afollestad/material-dialogs Feb 20 02:45:24 i dont understand why people are so focused on bringing material to a version of android that is not material Feb 20 02:45:37 just show a holo dialog, who cares :) Feb 20 02:46:03 Isn't that the point of AppCompat, though? Feb 20 02:46:17 how much material does appcompat actually bring ? Feb 20 02:46:59 But don't we use it because we want a Material look? :D Feb 20 02:47:02 stupid thing doesn't even have a FAB, holo dialogs, sliding botton sheets, snackbar, etc Feb 20 02:47:09 Yeah, it's way lacking. Feb 20 02:47:14 i just use it for toolbar :) Feb 20 02:47:20 i will send a link in a sec. i use android debug monitor and I do have a filter on my app package, I even tried using strict mode and fixed all violations. Feb 20 02:47:24 I wish appcompat didn't suck so much. :P Feb 20 02:48:05 God, the material guidelines for icons sound so pretentious. Feb 20 02:48:25 In other news though, I have my app segregated into different packages for organization purposes. I'm creating a new MaterialDialog, and get the message packagename.method has protected access in packagename.method... Any idea how to get around that? Do i need to extend the class? Feb 20 02:48:40 i mean, if appcompat lets me write one set of code that works fine thats good enough for me. if it looks holo in android 4.x thats fine with me Feb 20 02:49:03 g00s I just really want that material design look :) Feb 20 02:49:39 then you're going to have to work for it :D Feb 20 02:50:01 I AM DAMMIT Feb 20 02:50:02 haha Feb 20 02:50:09 harder ! Feb 20 02:50:23 you gonna start crackin' the whip on me? Feb 20 02:50:35 yeah, and its got bits of bone attached to the end Feb 20 02:50:39 ouch Feb 20 02:51:35 but any ideas how I can get around that problem I posted above? Feb 20 02:52:10 t0astt: What does your "has protected access" code look like? Feb 20 02:52:25 If you're subclassing you should still be able to access it. If not, it'll have to be public. Feb 20 02:53:06 here is a paste of the traces - http://pastebin.com/4SmiQAfe Feb 20 02:53:35 TacticalJoke: Hold on, I'll find his code in his github. Here's his repo if you're curious Feb 20 02:53:36 https://github.com/afollestad/material-dialogs Feb 20 02:53:50 I believe this is it: https://github.com/afollestad/material-dialogs/blob/master/library/src/main/java/com/afollestad/materialdialogs/MaterialDialog.java Feb 20 02:53:53 t0astt, did you forget to put "public" in front of your class? Feb 20 02:53:57 t0astt: I mean your problem. Feb 20 02:54:20 public class MyShiftsPageFragment extends Fragment Feb 20 02:54:41 method I'm trying to use where I get that error is public void createShift(View v) Feb 20 02:54:54 this class is in it's own package Feb 20 02:54:56 donaldepig seems like at com.imm.ceflix.ui.BaseActivity.startInitViewTracker(BaseActivity.java:192) Feb 20 02:55:02 is the start of your troubles Feb 20 02:55:20 t0astt: What method are you trying to use? And from where? Feb 20 02:55:29 donaldepig: if you look at the bottom, there's a stack trace. seems like it's waiting for Google Analytics for something. probably you need to initialize it on a background thread? Feb 20 02:55:30 and then google analytics blows up maybe Feb 20 02:55:52 If you're talking about in his source, TacticalJoke, it is line 96 of https://github.com/afollestad/material-dialogs/blob/master/library/src/main/java/com/afollestad/materialdialogs/MaterialDialog.java Feb 20 02:55:58 protected MaterialDialog(Builder builder) Feb 20 02:56:09 GA can be initialized on the main thread afaik Feb 20 02:56:10 no idea why he made the constructor protected... Feb 20 02:56:25 t0astt: I'm asking about your problem. :D Feb 20 02:56:30 donaldepig here is a blog from today http://codeversed.com/google-analytics-android-integration/ Feb 20 02:56:53 Oh, okay. You're using that. Feb 20 02:56:54 TactialJoke: Ah ok, I'll pastebin you my class Feb 20 02:57:06 TacticalJoke* Feb 20 02:58:08 TacticalJoke: http://pastebin.com/1spK7sCj Feb 20 02:58:22 line 139 Feb 20 02:59:16 reading through the blog. Has the implementation for GA change? Cos this code didnt have issues until yesterday. Thanks Feb 20 02:59:39 hm. I feel like I've read something about this lately... Feb 20 02:59:49 are you sure it's not dialog = MaterialDialog.Builder(this) ? **** ENDING LOGGING AT Fri Feb 20 02:59:59 2015