**** BEGIN LOGGING AT Sat May 07 02:59:58 2016 May 07 03:13:45 see topic May 07 03:13:54 http://imgur.com/jacoj May 07 03:17:45 Hey So I posted the code here http://stackoverflow.com/questions/37084133/out-of-memory-issue-while-using-picasso-and-recycler-view May 07 03:18:01 If anyone has an idea why I get memory issues May 07 03:21:43 hi guys May 07 03:24:21 anyone used Infer from facebook? Thoughts? May 07 03:28:51 Lonesoldier728: try .resize(width, height).fit() and see if you still get the memory issue May 07 03:29:07 resize with Picasso? May 07 03:29:13 yes May 07 03:29:44 The size is bound to the view, I have no chosen a specific dimension May 07 03:29:46 my guess would be that you're using a really large image and there are issues. I think I remember something with images over 1800px May 07 03:30:03 the images are 640x480 May 07 03:30:06 Lonesoldier728: the question isn't if thats right, its to see if the issue disappears May 07 03:30:38 you can just use .fit() and it will work, but it usually ends up skewed weirdly in my experience May 07 03:33:55 yeah that is why I do not use fit May 07 03:35:56 The question isn't if it looks bad, its if it fixes your issue. It sends you in the direction of where the problem is directly is coming from. May 07 03:36:42 You might be trying to inflate too big of an image, hmm... 640 x 480... what does that translate into for space. May 07 03:37:13 It is being scaled to 1/5 its size about I think May 07 03:42:01 doesn't mean it isn't being inflated to full size. That's 1.3MB each. May 07 03:42:28 Is there a way to get rid of the image as the user scrolls down to free up the space? May 07 03:44:17 recyclerview should auto do that. You can use LRUCache, but I doubt that's your issue. May 07 03:44:54 does the issue disappear when you fit() and resize()? May 07 03:45:43 I am trying it now May 07 03:47:41 * Ping_2_Ur_Pong is hugging Infer very hard right now. shits nice May 07 03:49:12 So the image quality became pretty shit May 07 03:49:32 no crashing but for some reason more images are not loading now May 07 03:53:34 Well that works Ping May 07 03:53:42 How do I figure out the quality though May 07 03:54:24 Hello May 07 03:54:30 For some reason, images uploaded by Google Chrome Mobile on Android are 0 bytes. Here is my form: "
" May 07 03:54:36 Works perfectly fine on the computer, just not on my Android Lollipop Phone. May 07 03:54:40 How can I fix this problem? May 07 03:59:28 Ping_2_Ur_Pong The quality is bad though May 07 03:59:30 hello. some question about internal of Android Sqlite interface, why cursor window is used? instead of calling Sqlite's api directly? May 07 04:04:10 Lonesoldier728: if you know the width or height that your images will always be you can statically set that in .resize() and set the other value as 0, it will fix your issue. May 07 04:04:17 but one of the two values has to not be 0 May 07 04:04:33 well I am setting it as half and it seems to be fine for now 320x240 May 07 04:04:54 i'm trying to make a backup of device with adb backup -all -shared -apk May 07 04:05:02 Lonesoldier728: there is an issue I remember with images being too big with picasso. Can't remember exactly though May 07 04:05:03 but it only takes a moment and creates 7B file May 07 04:05:30 (i confirm it on the device May 07 04:06:55 please advise May 07 04:07:47 zerobytes: when you upload an image using chrome, to which site? Try another browser to see if ther eis an issue. May 07 04:07:49 i'd like to point out that it's possibly life and death situation May 07 04:08:04 You need to find out if its specifically chrome or not. Android, what? May 07 04:08:24 synthmeat: backing up a device is life or death? May 07 04:08:37 dafuq, your mom's going to kill you if you lose her cell phone? May 07 04:08:43 hm kk, I have another issue was wondering if it appropriate, how does instagram avoid duplicate images without doing a check in the list as I add items brought back from the server - or on the server side are the items somehow suppose to be positioned number wise to know to avoid duplicates? May 07 04:09:01 Ping_2_Ur_Pong stop feeding the troll May 07 04:09:03 Ping_2_Ur_Pong: please help, and i'll explain later, if you can. please. May 07 04:09:13 synthmeat go away May 07 04:09:26 i've just spent entire night trawling the city looking for a missing person May 07 04:09:38 well they arent here May 07 04:09:42 synthmeat: http://android.stackexchange.com/questions/83080/adb-backup-creates-0-byte-file-prompts-for-current-backup-password-even-though May 07 04:09:43 g00s: i'm to tired to explain May 07 04:09:50 synthmeat no, stfu and go away May 07 04:10:02 synthmeat: I don't see how ADB backup has to do with app development but I will say now that I have seen it not work many times May 07 04:10:13 Esspecially on old android May 07 04:10:18 yes, this is older android May 07 04:10:19 go to the police you idiot May 07 04:10:40 synthmeat: If you want a real backup, my only suggestion is TWRP; if this is a legal thing. Just go to the fucking cops May 07 04:10:58 Lonesoldier728: they probably use the hash code and check it. May 07 04:11:12 LunarEclipse120: we've been to the cops ~10 hours ago May 07 04:11:45 synthmeat: What is the issue anyway? May 07 04:11:57 we need to talk to cbuest about getting more mods May 07 04:12:12 this is getting crazy May 07 04:12:35 LunarEclipse120: i need safety to have backup before i start trying to get more info from the phone (so i don't inadvertently destroy the data) May 07 04:12:41 g00s: was he here earlier asking the same question? May 07 04:12:42 g00s: I have talked to kroot about it in #android . He said that they did something with non-Google employees being mods; people abused the power May 07 04:12:50 hours ago May 07 04:12:58 agh... May 07 04:13:00 synthmeat: What is the legal aspect of it? May 07 04:13:01 some bs about missing person, moms phone, haha May 07 04:13:03 * Ping_2_Ur_Pong wasn't around May 07 04:13:10 like what idiot would come here for that help May 07 04:13:13 g00s: you're an asshole May 07 04:13:17 troll May 07 04:13:20 i'm dead fucking serious May 07 04:13:25 synthmeat haha right May 07 04:13:28 me too May 07 04:13:32 lol May 07 04:13:37 god, i can't May 07 04:13:39 please May 07 04:13:44 please May 07 04:14:00 the police would have been able to get into the phone (unless its the newest iphone haha) May 07 04:14:08 g00s: this is fucking croatia May 07 04:14:13 synthmeat: there are tons of ways to accomplish everything, but if you're not technically inclined asking here is like asking a mathemetican the best way to count all the atoms in your body. You wouldn't understand the answer no matter what. May 07 04:14:17 THIS IS FUCKING SPARTA ! May 07 04:14:30 Ping_2_Ur_Pong: help me May 07 04:14:33 synthmeat: Just PM and say your story. If you are not a troll I can help if the police won't do anything May 07 04:14:38 Ping_2_Ur_Pong what do you mean by hashcode? May 07 04:14:42 I don't fully understand what you're trying to do May 07 04:14:49 !google hashcode May 07 04:14:55 Ping_2_Ur_Pong synthmeat maybe you guys can PM each other, take it away from here May 07 04:14:57 * Ping_2_Ur_Pong is so fucking writting abot for this channel this weekend. May 07 04:15:09 LunarEclipse120: pmd ya May 07 04:15:16 g00s: I could give a shit, but occasionally I am actually helpful May 07 04:15:33 it doesn't matter, this isn't #android-CSI May 07 04:15:37 I understand what a hashcode is but what do you mean they add a hashcode to each picture? May 07 04:15:41 s/hahscode/md5sum/ May 07 04:16:29 they have a unique id that identifies each image, so they can tell if the image you're uploading ihas been uploaded already May 07 04:17:18 g00s: actually it kind of CSI. 90% of the questions come with 10% of the information. We generally have to figure out wtf is going on. I agree its not dev specific, but he was talking about adb backup which is dev specific May 07 04:18:35 he's not using adb for development. so its not dev specific May 07 04:18:42 Well each object has a unique id, the issue is - that I am telling the server give me the most popular objects with an offset for the list size (now most of the objects have the same view count) therefore the order is not really sortable unless I make the db maybe sort by count then alphabetical i guess May 07 04:24:41 Ping_2_Ur_Pong: I'm just testing file upload on my own site May 07 04:25:05 Ping_2_Ur_Pong: I will seeifigcan get firefox mobile May 07 06:22:59 damn its quiet in here tonight May 07 06:23:19 * Ping_2_Ur_Pong goes wondering around freenode for conversation, stimulation and an occasional boobie to grab. May 07 06:23:28 wandering* May 07 06:29:20 Ping_2_Ur_Pong: hi May 07 06:29:34 Shalom May 07 06:29:40 * Ping_2_Ur_Pong waves, how the evening treating you vedu May 07 06:30:00 shabat shalom, and all good things to you... May 07 06:30:06 * Ping_2_Ur_Pong has no idea if that makes sense or not May 07 06:30:21 Ping_2_Ur_Pong: It does May 07 06:30:31 Ping_2_Ur_Pong: Yod Hashoa was on cinco de mayo May 07 06:30:38 I was pissing people off about it May 07 06:30:39 heh May 07 06:31:21 "I don't give a fuck about Mexico, 6 million jews are more important than some drug war" May 07 06:31:22 lol May 07 06:32:25 yea that would indeed piss people off May 07 06:32:38 * Ping_2_Ur_Pong ponders the number of deaths from the drug war in mexico May 07 06:32:49 El Chapo May 07 06:33:13 I know its tens of thousands every year that are direct from being murdered by the gangs but with the added affects... im curious what it add s up to. May 07 06:33:29 Well that isn't Cinco De Mayo May 07 06:33:56 But we watched that movie "Book Of Life" in Spanish class but that animated little girl was pretty fine May 07 06:34:13 * Ping_2_Ur_Pong wants to lulz May 07 06:34:26 Well, if you knew my age it would make more sense May 07 06:34:32 I assure you, i am not a creep May 07 06:37:37 * LunarEclipse120 is angry at the lack of rule34 May 07 06:46:02 I am coding an Android app that modifies a system file. I copy the file from /persist/ to my app's internal storage using a SU command 'cpy' and then I 'chmod' it and change its group/owner to match my app May 07 06:46:09 however, I cannot read that file no matter what. If I create a file in the same place, I can read it without problems. May 07 06:46:18 Any clues? May 07 06:53:33 did you get the su / root privileges first May 07 06:54:11 I used Chainfire's library of SuperSU to copy the file, chmod it and set the owner to my app May 07 06:54:35 I should be able to read the file as any normal file, but for some reason I can't May 07 06:55:12 I put it under /data/data/my_app/files/file.bin May 07 06:55:22 e.g. the internal storage of the app itself May 07 07:01:44 nyoro~n May 07 07:14:45 Hello May 07 07:14:48 every time I try to upload a picture I took from my ANDroid camera to my website it's zero bytes. How can fix this? May 07 07:15:21 Here is my form: "
" May 07 07:26:33 Hello i am new to android development and i have 2 questions thats bother me -> 1. in 'tinder' app - which element is each of the swipe-able cards? (fragment? bitmap? some layout?) how they got fixed position? 2. in waze menu, how they show more options with skew effect? (which item is that? bitmap?) http://s32.postimg.org/xpt0l2ekl/waze.png | Thanks! May 07 08:11:00 hey guys has anyone built android for their own device? was any modification to source needed to get all features of your device to work? May 07 08:11:43 i'm sure 99% here are bots May 07 08:11:46 thats a job for #android-root May 07 08:11:56 also its satruday morning May 07 08:12:10 everyday it's a dev day May 07 09:59:30 someone tried out https://github.com/google/flexbox-layout already? looks neat May 07 10:01:45 I was just looking at it yesterday, looks pretty cool May 07 10:26:22 Hello May 07 11:38:33 Hello i am new to android development and i have 2 questions thats bother me -> 1. in 'tinder' app - which element is each of the swipe-able cards? (fragment? bitmap? some layout?) how they got fixed position? 2. in waze menu, how they show more options with skew effect? (which item is that? bitmap?) http://s32.postimg.org/xpt0l2ekl/waze.png | Thanks! May 07 11:40:49 1) this can be implemented with or without fragments. You can look it up with android device monitor if you open tinder. 2) this is nothing built into android. Its a custom view. May 07 12:36:47 hello all! May 07 12:37:51 hoping i can get help with why updating my listView doesn't work until i press back (which happens to bring me back to my log in screen) and log in again? May 07 12:38:16 huh May 07 12:38:42 What do you do to update the listview? May 07 12:38:43 probably you dont call notifyDatasetChanged() in your adapter May 07 12:38:44 some background: i can log in and register fine, which uses php scripts to persist and pull data from mySQL May 07 12:39:05 also, listView is so last week, use recyclerView May 07 12:39:12 iu do call notifyDatasetChanged(), but i am not copmpletely sure if i am doing it correctly May 07 12:39:29 after you update the list, collection or whatever May 07 12:39:38 it tells the ListView to redraw list May 07 12:40:06 i use background task which goes and fetches my SQL response, then i (which i feel horrible doing) update a global list with the returned data from my background task May 07 12:40:39 in background? meh May 07 12:41:07 well after updating the list you should call the notifyDatasetChanged(), all in UI thread May 07 12:41:27 or why dont you pastebin the code snippset May 07 12:41:41 i will now! thanks May 07 12:44:42 http://pastebin.com/KP1bhEPd May 07 12:45:00 sorry about the wait, i was trying to find the android syntax highlighting in pastebin? May 07 12:45:49 why not java May 07 12:46:09 anyway the adapter.notifyDataSetChanged(); should go into task's onPostExecute() May 07 12:46:51 the ArrayList is updated, but you cant see it May 07 12:47:07 ////////////// Show Garden /////////////////////////////////////////////////////////////////////////////// May 07 12:47:14 http://pastebin.com/UCDciwkr May 07 12:47:30 show garden in my background task is what would be relevant there May 07 12:48:39 so i'll put adapter.notifyDataSetChanged(); in post exectute! thanks May 07 12:53:31 how can the onPostExecture() know which adaptor i am refering to? May 07 12:54:35 should ii pass it through when i am calling the background task from the UI thread? May 07 12:55:06 or can i pull it fromt he context/activty from the top of the background task? May 07 13:08:22 I have a RecyclerView with clickable items. For simple things like just start new Activity it seems ok to have onClick handler implemented in ViewHolder class under RecyclerView.Adapter implementation, however when you need something more complicated, like creating and showing some dialog depending on what exact item was clicked, it starts to be "smelly" code IMO. And I also think it breaks Single Responsibility principle. May 07 13:08:46 So, my question is where do you guys handle list item onClick events? May 07 14:17:21 anyone around? May 07 14:19:54 guys, got an error "Unable to create a virtual device: Unable to create Android virtual device" May 07 14:20:11 within android studio install (ubuntu) May 07 14:20:17 do i need to be a root? May 07 14:23:57 in general, root is not required May 07 14:24:09 i am not sure about on ubuntu though, sorr May 07 14:24:41 twistxz, got it. i think virtual device may ask hgh level of privileges... May 07 14:24:51 high* May 07 14:25:22 nice! May 07 14:26:14 does anyone know how to notifyDataSetChanges() from background task that is not in the ui thread class? May 07 14:31:59 hi May 07 14:39:43 -post-compile: -obfuscate: -dex: (blah) [dx] Exception in thread "main" java.lang.UnsupportedClassVersionError: com/android/dx/command/Main : Unsupported major.minor version 52.0 May 07 14:39:49 I'm running java version 1.7.0_101 OpenJDK IcedTea 2.6.6 trying to compile: https://github.com/guardianproject/lildebi May 07 14:49:34 Lope, 52.0 version is Java 8 May 07 14:49:47 So you'll need OpenJDK 8 to compile that May 07 14:49:57 Mavrik: thanks! May 07 14:51:08 okay I'll check that out. I just noticed this says that you can compile to a diff version of android and that should fix it... http://stackoverflow.com/questions/22489398/unsupported-major-minor-version-52-0 the one with 10 May 07 14:51:20 I set the target to 23. May 07 14:51:50 It was 21 May 07 14:52:55 Hmm, changing back to 21 didn't work. Ok will try a newer version of OpenJDK May 07 14:53:21 Yeah, of course changing target won't work. May 07 14:53:23 I don't see openjdk8 in the apt repos May 07 14:53:30 Since your Java runtime is telling you it doesn't recognise compiled .class file. May 07 14:53:46 hmm May 07 14:54:26 would the compiled .class file be compiled at the make step, or after that? https://github.com/guardianproject/lildebi May 07 14:54:39 Under "Building" May 07 14:58:10 hi, anyone using android studio 2.1 and knows how to turn antialiasing in the editor off? May 07 14:58:16 I had 1.5 installed so there were settings, that disable antialiasing for the UI and the editor. for some reason 2.1 grabbed settings for the UI/buttons etc. but in the editor pane, text is still antialiased. May 07 15:02:39 pavelz did you try restarting it? notice font changes don't always take place May 07 15:12:01 it is antialiasing I am talking about not the font choice and yes I've restarted many tiems. May 07 15:28:35 Guys, how can I pass an object to a classes constructor, if I'm using new Intent() May 07 15:29:22 I've tried doing like MyClass c = new MyClass(obj) and setting the intent to c.getClass(), but then I get a RuntimeException saying the activity has no zero argument constructor May 07 15:29:41 you want pass some object to activity? May 07 15:29:56 yes May 07 15:29:58 intent.putExtra() May 07 15:30:10 object needs to be primitive, Serializable or Parcelable May 07 15:30:11 Apprently that requires me to implement Serializable? May 07 15:30:27 I don't need to serialize anything, just pass it a custom Data structrure May 07 15:30:44 activities cannot have constructors that take arguments... May 07 15:30:58 dafuq May 07 15:30:59 you dont instantiate activities by yourself May 07 15:31:46 and parcelable (eventually serializable but its slower) is the only clean way to pass custom object to activity May 07 15:32:25 is there a way to check if a Device supports GCM? May 07 15:33:06 if it has play services, it has gcm May 07 15:33:56 old/deprecated way was GCMRegistrar.checkDevice, maybe theres alternative May 07 15:34:07 pfn, how do i check for that? May 07 15:35:16 argh first link in google ~ https://stackoverflow.com/questions/13191875/google-play-services-how-to-handle-devices-that-do-not-have-google-play May 07 15:48:30 Ashiren: I have a problem, the data im trying to pass to said activity, contains a JSONArray, which by nature isn't serializable May 07 15:52:00 Well then make is serializable. May 07 15:52:31 thatd be tricky wouldnt it May 07 15:53:43 RubenADSR: convert it to string May 07 15:53:48 Well, not making it serializable means you won't properly live through configuration changes. May 07 15:53:52 then reconvert back to JSONArray May 07 15:53:55 https://stackoverflow.com/questions/2035283/org-json-jsonarray-implements-serializable-whats-the-best-option-to-achieve May 07 15:54:25 other than that you could make it parcelable. its more confusing at first May 07 15:54:53 And about 10-100x faster. May 07 16:12:22 Thanks for the help May 07 16:12:29 night night May 07 16:30:01 any of you guys use Firebase? May 07 16:30:39 there are methods that take ValueEventListeners as parameters and you can either add or remove this listeners May 07 16:30:53 but there are only methods to add CompletionListeners May 07 16:31:13 Can I assume that a CompletionListener will only be fired once? May 07 17:48:04 Guys, how do i turn a JSONObject into a JSONArray? (the class i'm passing it to requires a JSONArray, but in this special case I just need to feed it one object) May 07 17:48:21 Question - Trying to determin a build path for a prototype and need some feedback if this is feasibly possible in Android 6.0 - Goal - App 1 watches App 2 and converts QR codes into links which open functions in App 1. May 07 17:51:33 Similar to how Skype converts phone number into links in your browser. May 07 17:52:38 cloakendagger: you mean deeplinking? May 07 17:53:16 you can "register" your app so when someone clicks "xxx://something" it will choose your app May 07 17:54:02 Not really - Example: App1 runs in the background and waits for a QR code to appear in a youtube or facebook video. If the QR appears on the screen then App 1 sees it and allows the user to click it which opens App 1 May 07 17:55:13 RubenADSR: JSONArray array = new JSONArray(); array.put(jsonobject); this will give you JSONArray with size 1 - your object May 07 17:55:46 cloakendagger: i find it very unlikely to be doable May 07 17:58:06 How about App 1 runs in background takes micro screenshots. Then analysis them for QR codes. If it sees one it pops up a notification like Facebook messanger chat heads that overlays on App 2? May 07 18:00:23 at first glance id say its impossible (non-root at least) May 07 18:00:52 taking screenshots from service would be quite 'security breach' May 07 18:03:21 Secuity breach if the users didnt authorize it correct? May 07 18:04:58 i meant this is impossible. service cant take screenshots of other apps, and i think even activity cant take screnshots of other apps May 07 18:06:05 Napalm there by any chance ? May 07 18:06:55 To clarify - cant take screenshots of specificly other apps or App 1 can not ever take screenshots of the entire screen. May 07 18:08:27 actually i dont know for sure. what i know for sure you are able to take screenshot of your own Activities and Views. May 07 18:17:37 there's https://developer.android.com/reference/android/media/projection/MediaProjectionManager.html - but performance cost of continuous QR detection across the entire screen is likely to be noticeable May 07 18:18:48 OMG this is perfect.. at least theres a path for a prototype May 07 18:18:49 just capturing the screen will be noticeable May 07 18:18:59 how didnt i know about that May 07 18:19:12 The user would be aware of it May 07 18:19:26 not a clandestin function. May 07 18:20:02 you want to spy? :v May 07 18:20:26 Ok so next question: At a very basic level does android allow App 1 to know App 2 is at least running? May 07 18:20:43 No spying May 07 18:21:31 ~150ms per frame for 1280x720, according to https://www.vs.inf.ethz.ch/publ/papers/soeroesg-icassp2014-gpulocalization.pdf May 07 18:21:33 I actualy have a job post on upworks because Im happy to pay for expert consulting May 07 18:24:38 ActivityManager.getRunningAppProcesses() May 07 18:49:15 hello May 07 18:49:37 i have the exact same problem as this guy: https://stackoverflow.com/questions/36917862/android-studio-2-1-emulator-single-click-not-working May 07 18:49:37 irth: Hello May 07 18:49:50 is there any fix? May 07 18:50:52 if i click in place A then in place B it reads it as swiping from A to B May 07 18:51:08 then if after that i click point C it thinks i swiped from B to C May 07 18:51:44 it's hard to do anything May 07 19:01:18 Android Studio crashed. Deleted my everything inside my files except the file itself. Anyway to get the code I had back? May 07 19:01:25 Hate when that happens May 07 19:01:42 And I din't have it under any vcs :/ May 07 19:02:19 Does android studio keep a seperate copy of the file somewhere else where I can check if I still have it? May 07 19:02:35 right click local history May 07 19:02:45 if it's available it will be there May 07 19:02:51 otherwise it's gone May 07 19:04:52 pfn, got it back \o/ THANK YOU May 07 19:10:45 guys how do you think - how much time does it take to learn java and android api for build simple applications? May 07 19:11:14 hhee Depends. May 07 19:12:19 cyource, i have a little php knowledge in background (and some IT experience) May 07 19:14:00 hhee How much time/day would you give yourself May 07 19:14:21 depends on what you mean by simplrle May 07 19:14:30 hello world takes 10 seconds May 07 19:15:03 hhee are you talking about becoming fluent in java and android development, or just simple apps? May 07 19:15:49 Depends on what you consider fluent cyource May 07 19:16:31 Well, we all keep learning May 07 19:16:41 Right May 07 19:16:49 Thats why this question is hard to answer May 07 19:17:00 true May 07 19:28:22 if you are used to SODD[1] learning android development basics is as simple as adjusting your google queries May 07 19:28:32 [1] SODD - Stackoverflow Driven Development May 07 19:29:00 trying to find a way to reload all rows in a listview when on the onResume May 07 19:29:47 im have implemented dark mode, so if the user changes it in the settings screen when I go back to the home screen I want to change all the row colors. but calling notifyDataSetChanged doesnt do it for me May 07 19:44:35 cyource simple apps at first May 07 19:46:59 basically i need to change the list view's row colors on the fly May 07 19:50:35 Something is messing with me and I can't quite put the pieces together in my head. When you use dagger, you need to put the classes that you want to inject() into in your component. I don't see why... Wouldn't the @Inject annotation and calling inject() from the class be enough. The problem I have is, I have an application controller that's used heavily throughout my application, and the thought of May 07 19:50:37 having to add to the component every time I add a new class that uses it seems counter-productive. May 07 19:50:45 thoughts, ideas, explanations of what I am fucking up. May 07 19:59:57 is there a channel that is better suited to talking about dagger? May 07 20:06:34 Does anyone know why the following would produce an "unhandled parse exception? -> java.text.DateFormat df = new java.text.SimpleDateFormat("hh:mm", Locale.ENGLISH); java.util.Date date1 = df.parse("18:06"); May 07 20:09:47 neochronomo: "hh" is for hours in the am/pm scheme (values 0-11), "HH" is for an 24-hour clock. May 07 20:10:59 fizzie: You're correct, but I just changed it and I still get the exception May 07 20:11:14 that's interesting java doesn't throw that exception for me, when I test it. May 07 20:11:43 hmmm May 07 20:12:08 are you catching the exception? May 07 20:12:15 "unhandled parse exception" May 07 20:12:20 means you should be catching it May 07 20:12:49 Ping_2_Ur_Pong: I just restarted Android Studio and now it's working fine. Siiiigh May 07 20:12:51 Thanks, both of you May 07 20:13:25 you should be catching that exception. Even if it shouldn't happen. May 07 20:13:57 Ping_2_Ur_Pong: Hmm.. actually it's not working, took time to do the exception thing again. May 07 20:14:17 Ping_2_Ur_Pong: I've never had to handle exceptions before... is that something I can just look up? And will that fix it? May 07 20:14:54 you've written java and not caught exceptions? what did you do have your method pass it up the call stack? May 07 20:15:19 Ping_2_Ur_Pong: I haven't had any exceptions,so I've never had to catch any before now May 07 20:15:34 try{}catch(ParseException e){Log.d("MyMethod", "fucking fuck, this shit is cray");} May 07 20:15:51 put the expression inside the try{} May 07 20:16:05 Ping_2_Ur_Pong: Is that the issue? It's not parsing because I'm not catching a possible exception? May 07 20:16:43 you have to handle all potential exceptions that are going to be thrown at you. When you use a method you sign a contract that you will either handle the exception or pass it up the call stack May 07 20:17:27 http://www.hastebin.com/iyapihegot.avrasm May 07 20:18:24 Ping_2_Ur_Pong: I put my expression in the try and I'm still getting the exception May 07 20:19:43 Ping_2_Ur_Pong: ohh, I chose the wrong exception thing to import May 07 20:22:57 neochronomo: you should read up on exceptions in java, they are really important. May 07 20:23:20 I will give you a cheat until you understand them though. try{}catch(Exception e){} May 07 20:23:41 you shouldn't use that, but until you get the concept you can use that to handle them... its very bad practice to do that though May 07 20:25:45 Ping_2_Ur_Pong: Alright. Yeah.. I've just never had to before so I've never bothered. Never had a course that went over them, never had anything I've not been able to handle in other ways, and never been in this current situation where it's actually necessary for the program to work May 07 20:26:23 Ping_2_Ur_Pong: But I do kind of get how important they are, so I will take your advice to heart May 07 20:26:49 neochronomo: a quick explanation. May 07 20:27:33 You want to connect to a website, and that is very important, but when you try to connect the website isn't there. How do you handle that? How do you keep functionality that you depend upon from freaking the fuck out, because the website isn't there? May 07 20:27:59 The point of exceptions is to allow you a chance to say, "shit this fucked up, but you know I can do something else when it does so that I don't blow up" May 07 20:29:45 So the point of it is to keep everything else running as smoothly as possible when one small piece of your code messes up May 07 20:32:25 advising to blindly swallow exceptions is poor advuxe May 07 20:35:03 well the code is very exceptional then May 07 21:31:37 whatup whatup May 07 21:44:32 So srs question, where would be a good place on the interwebs to get input on interior design? May 07 21:44:44 orbyt_: mdl-lite May 07 21:45:11 uh what May 07 21:45:19 Oh May 07 21:45:23 :/ May 07 21:45:25 Thought you said material May 07 21:46:06 orbyt_, https://www.google.com/design/spec/material-design/introduction.html May 07 21:46:17 oh lol.. May 07 21:46:24 seems I did the same mistake :'D May 07 21:51:00 whi/me doesn't understand what interior design is, you trying to redesign your house? all the fung sway shit? May 07 21:52:40 Ping_2_Ur_Pong: Do what? May 07 21:54:17 orbyt_: what is interior design? I was making a joke about "feng shui" May 07 21:55:17 U srs mate? http://lmgtfy.com/?q=interior+design May 07 21:55:59 Newbie to Android here. Using Retrofit, what’s the best way to handle json to pogo model when there’s some processing to take care of in between? Should I map the json directly a pogo response object, and then pass the response object to the model constructor? May 07 21:57:02 *pojo May 07 21:57:05 orbyt_: I was quite serious, I wasnt sure how designing your office space or home to be beautiful applied to android dev May 07 21:57:44 cv-ess: That screams Rx May 07 21:58:01 Ping_2_Ur_Pong: It doesnt May 07 21:58:57 hmm.. May 07 21:59:30 cv-ess: what kind of processing? May 07 21:59:49 orbyt_: how so? I’m planning to use Rx but haven’t played with it beyond the basics. Trying to wrap my iOS brain around android/java patterns May 07 22:00:07 are you saying that your json needs to be changed somehow so that it can be turned into an object, does it not conform to a schema? May 07 22:00:11 cv-ess: Ask me in pm and i'll walk you threw it May 07 22:00:13 Well, in many cases I need many different maps from the json response to construct the model May 07 22:00:48 yea, orbyt_ was right... that screams RxConverter May 07 22:01:20 awesome, will look that up May 07 22:01:44 you could always just map the json to the pojo and then write your own parsing method once you get the pojo object May 07 22:02:08 pull out what you need ignore what you don't and then build your model. May 07 22:02:52 gsonconverterfactory May 07 22:04:18 Ping_2_Ur_Pong: not even May 07 22:08:34 orbyt_: when I said feng shui that was apt to what you were asking about for interior design May 07 22:09:02 orbyt_: why couldn't you make a customfactory for your model creation? May 07 22:09:02 Ping_2_Ur_Pong: Moved into a new place so wanted to get opinions on layout stuff out May 07 22:09:40 Ping_2_Ur_Pong: because just mapping the data when needed is simpler and you dont even need to worry about it. May 07 22:10:11 touche May 07 22:15:26 thanks guys May 07 22:35:08 Hi there. I am writing an app in android studio (java) and I cannot seem to click my imagebutton in my actionbar. Any ideas? (i am a newbie android developer) May 07 22:38:06 Post code mate May 07 22:40:23 xrandr: use pastebin.com or something May 07 22:41:01 pastbin - http://pastebin.com/4CZhZa9S May 07 22:41:11 xrandr: This page is no longer available. It has either expired, been removed by its creator, or removed by one of the Pastebin staff. May 07 22:41:40 oops May 07 22:41:42 pastbin - http://pastebin.com/4CZhZs9S May 07 22:42:27 nevermind, it decided to start working... May 07 23:21:34 Does anyone use Toast anymore? Or is it all snackbar May 07 23:25:29 So basically Call.enques callback methods get posted back to the thread they were called from May 07 23:25:51 I thought they always go back to main, but if you call it from a bg thread, it comes back to the same bg thread May 07 23:25:55 Good to know May 08 00:28:34 You know what the biggest, most tedious and annoying pain in the ass part of releasing an app on Google Play is? May 08 00:29:12 The damn screenshots. I'm so sick of firing up 3 different emulators to take 1-3 screenshots each. There should seriously be a better solution. May 08 00:33:38 30000 different tools to make my already existing screenshots have a nexus border though. May 08 02:57:28 holy dead chat May 08 02:57:43 ? May 08 02:57:53 CedricBeust doesn't come here often I assume May 08 02:58:05 LunarEclipse120: what? May 08 02:58:26 Often enough May 08 02:58:32 orbyt_: You scream out "holy dead chat" when he joined May 08 02:58:53 wasnt correlated May 08 02:59:05 oh **** ENDING LOGGING AT Sun May 08 02:59:58 2016