**** BEGIN LOGGING AT Wed Nov 19 02:59:59 2014 Nov 19 03:00:14 oh, and i don't have the developer cable.... #facepalm Nov 19 03:00:17 slobatch, ctrl alt f2 Nov 19 03:00:30 Oh boy 0_0 Nov 19 03:00:47 Nerotic: i have ubuntu running via crouton, hopefully i have enough memory to do what i need to do Nov 19 03:00:53 https://sites.google.com/site/chromeoswikisite/home/what-s-new-in-dev-and-beta/developer-mode Nov 19 03:01:04 slobatch, try that link Nov 19 03:01:06 but thanks :D Nov 19 03:01:06 Might help. Nov 19 03:01:10 first of all, chromebook.. not the best dev device :) but better that it's running legit Linux and not Google's Nov 19 03:01:24 You're trying to get root on Ubuntu? Nov 19 03:01:39 laspahr_mint17: i've got both running side-by-side Nov 19 03:01:42 (this isn't speaking from experience, but from what I've heard :) ) Nov 19 03:01:49 Chrome OS does run a Linux Nov 19 03:01:57 Linux Kernal that is Nov 19 03:02:12 right, but Google's version, like android is linux, but it's not true linux :) Nov 19 03:02:21 I'm running Chromium OS right now (my own build, fuck hexxeh builds) Nov 19 03:02:34 Nerotic: on what sort of device? Nov 19 03:02:35 Chromium OS is just like Chrome OS but a lot better for devs Nov 19 03:02:41 slobatch, my PC Nov 19 03:03:03 I tried it out when my laptop still worked but it wasn't amazing, I liked my LM17 better :) Nov 19 03:03:33 I get out of work soon, thank god. Nov 19 03:04:45 so i just realized that this may not work... i don't think i can flash the boot.img via adb over tcp/ip Nov 19 03:05:06 i think i might just need to grab the developer cable from work tomorrow... :( Nov 19 03:05:13 slobatch; TCP/IP is vague. You mean FTP? Nov 19 03:05:35 TCP/IP is just a bunch of different protocols including telnet, FTP, HTTP, etc. Nov 19 03:05:46 why wouldn't you? doesn't adb work wirelessly the same as wired? Nov 19 03:05:48 VoIP being my favorite :) Nov 19 03:06:17 Nerotic: yeah. more specifically, adb can connect to the ADT-1 via WLAN. Nov 19 03:06:31 but once i boot into fastboot, i don't think that i'll be able to stay connected Nov 19 03:06:49 i think it probably disconnects from the network, and thus I can't communicate with it Nov 19 03:06:58 Connect to it via FTP. Nov 19 03:07:19 true :/ Nov 19 03:07:28 Nerotic: will the device maintain it's IP once it's in the bootloader? Nov 19 03:07:38 doubtful... Nov 19 03:07:41 slobatch; Check this out http://www.protocols.com/pbook/tcpip1.htm Nov 19 03:07:50 Of course. Nov 19 03:07:53 bootloader doesn't have network... Nov 19 03:08:16 pfn: that's what i thought. Nov 19 03:08:29 I assumed you knew that o.O Nov 19 03:09:20 Nerotic: i do. i'm just thinkin' aloud -- sorry Nov 19 03:09:21 :p Nov 19 03:09:26 But the IP should not change when you boot the bootloader. Nov 19 03:09:44 I get it. No need to be sorry. Nov 19 03:09:50 there's no IP to change Nov 19 03:10:22 pfn; There is ALWAYS an IP. It just will not change. Nov 19 03:10:30 no Nov 19 03:10:41 there's no IP if you don't register arp Nov 19 03:10:56 Yes, if you do not register it. Nov 19 03:10:58 ugh why does the SDK have to be so slow .-. Nov 19 03:11:27 no network = no ip Nov 19 03:11:35 how's that hard to understand Nov 19 03:11:39 lol Nov 19 03:12:44 You think I do not understand that? lmao Nov 19 03:14:17 sounds like it Nov 19 03:14:24 lol no Nov 19 03:14:57 Probably just a misunderstanding or miscommunication. Nov 19 03:15:04 *misscommunication Nov 19 03:17:28 Nerotic: in theory i could run fastboot by connecting to the device via ethernet -- perhaps, but my chromebook doesn't have an ethernet port Nov 19 03:17:30 :O Nov 19 03:17:31 :( Nov 19 03:18:03 How would connecting it via ethernet make it run fastboot? Nov 19 03:18:28 i guess i'll just try it tomorrow once I have the developer cable Nov 19 03:18:35 OH you are talking about a Chromebook. Jesus I got confused. Nov 19 03:18:36 and i'll be sure to bring my mac home tomorrow Nov 19 03:18:36 :P Nov 19 03:18:42 lol good :) Nov 19 03:19:06 Nerotic: i'm talking about both. hahah :D Nov 19 03:19:27 i was trying to gain root on ADT-1 using my Chromebook Nov 19 03:19:31 but i just gave up Nov 19 03:19:57 Sorry I was no help :( Nov 19 03:20:35 Nerotic: haha Nov 19 03:20:43 not at all your fault bud Nov 19 03:20:54 i just am totally ill-equipped Nov 19 03:21:09 :) That is okay. Questions are good. Nov 19 03:21:50 i'll come back online tomorrow and update y'all on my attempts Nov 19 03:22:03 in the meantime good night! Nerotic laspahr_mint17 Nov 19 03:22:09 Alright, I'll be here if not at work Nov 19 03:22:12 Have a good night. Nov 19 03:25:15 oh no :( my hard Drive is full.... Nov 19 03:25:30 then again it's only like 40GB Nov 19 03:25:34 A full hard drive in 2014? Nov 19 03:25:40 Damn. Nov 19 03:25:42 I don't even know what those words mean. Nov 19 03:25:52 I bet it's IDE. Nov 19 03:26:06 yeah, it's old and IDE Nov 19 03:26:13 I knew it. Nov 19 03:28:09 I'm going to go home and head to bed. Bye. Nov 19 03:36:27 ugh finally got some more space on my computer... deleted some backups and flashable zips for whatever I may have needed them for Nov 19 03:36:37 now to download even more stuff for SDK .-. Nov 19 03:36:58 Can you buy a new computer? Nov 19 03:37:08 Or delete 50% of that porn. (Sorry, I'm messing.) Nov 19 03:37:33 nope :/ hopefully getting my laptop fixed next tuesday tho, it got drowned in a bathtub hehe ;) Nov 19 03:37:34 :) Nov 19 03:37:40 don't mean to be creepy Nov 19 03:37:45 keep the porn ;p Nov 19 03:38:11 why delete that when I can delete important system files ;P Nov 19 03:38:19 How did it get into the bathtub? Nov 19 03:39:21 long story short, camping trip, water pump left on, floor fan tips over, turns on faucet, and overflows the tank and the tub, hence drowning my computer with everything in my bag Nov 19 03:55:45 "Bill to Restrict N.S.A. Data Collection Blocked in Vote by Senate Republicans". yey Nov 19 03:56:01 always doing the right thing, those guys Nov 19 03:56:25 what about us ? Nov 19 03:57:56 this is quite adorable https://www.kickstarter.com/projects/hevans/pantelligent-intelligent-pan-cook-everything-perfe Nov 19 03:58:27 "whats that black smoke coming from the pan?" ... oh, don't worry, the app didn't tell me to flip it yet ! Nov 19 03:58:33 bankai_au :) Nov 19 03:59:05 like those people who get horribly lost from GPS directions Nov 19 03:59:23 g00s: now I'm hungry :( Nov 19 04:09:22 hello Nov 19 04:09:49 i have an activity hosting a flagrant as well as some buttons of its own Nov 19 04:09:57 how to i grab the buttons Nov 19 04:10:08 i don't have a create view for the activity Nov 19 04:10:13 "cannot compute" Nov 19 04:10:14 so i get a null pointer on it Nov 19 04:14:27 gobl: findViewById. Nov 19 04:15:00 gradle-plugin 0.14.3 Nov 19 04:15:53 "Almost 1.0: removed deprecated properties/methods" Nov 19 04:15:55 \o/ Nov 19 04:20:53 Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference Nov 19 04:21:11 does this mean the button or the listener doesn't exist Nov 19 04:21:35 button; you can set a null listener to remove it, afaik Nov 19 04:21:55 so that shouldn't be generating ane rror Nov 19 04:22:16 gobl: Give the button an ID and use findViewById. Nov 19 04:23:37 thanks, can i host a fragment over 2/3s the layout and most the activity over the rest? Nov 19 04:23:58 because the layout for my fragment is inflated Nov 19 04:24:11 but these buttons are on the aactivity layout itself Nov 19 04:25:08 that's fine Nov 19 04:25:10 A fragment taking up 66% of an activity's space? I've never tried it, but I believe it's possible. Nov 19 04:25:55 Well heres what I actually want to do- i want 2 layers of tabs Nov 19 04:26:19 so, i want to host a view pager on 3 fragments Nov 19 04:26:38 and use controls on the activity to choose between themn Nov 19 04:27:22 so, each view pager would be responsible for a couple tabs, Nov 19 04:27:36 I'm not sure about that; never tried. Just wondering -- why do you want two layers of tabs? That sounds kinda odd. Nov 19 04:27:57 well, i have 3 main settings Nov 19 04:28:01 and submenus Nov 19 04:28:10 for each tab Nov 19 04:28:30 Hmm. I wonder whether a navigation drawer would make more sense? Nov 19 04:29:16 I tried it out, I just don't like it as much because the relations are not immediately obvious you know? Nov 19 04:30:25 Okay. Nov 19 04:30:48 Yeah, I have mixed feelings about navigation drawers. Nov 19 04:32:02 yeah, i initially thought they were neat Nov 19 04:32:38 also, i want to develop for iPhone, so id like to mimic the structure on both Nov 19 04:32:49 and i don't think iPhone has that paradigm Nov 19 04:34:24 Eye sea. Nov 19 04:43:37 gobl: don't try to make your app look the same one both systems. it looks crap and pisses users off Nov 19 04:47:26 hello Nov 19 04:48:14 Hey Thorbear if you're still on, thanks a bunch, I finally figured out the root of my problems, as soon as a call started the emulator would turn off the data connection (to simulate the actual behavior I guess) and therefore my app obviouslly couldn't make any http requests Nov 19 04:48:25 Thanks again and take care! Nov 19 04:49:45 Can I set number of lines in GridView? Nov 19 04:51:00 I like to have only two rows Nov 19 04:52:43 has anyone had issues with SSLEngine since lollypop? Just installed it on my dev handset and it gets stuck in NEED_UNWRAP forever no matter how many times I try to unwrap Nov 19 04:52:59 can't get a secure websocket connection going Nov 19 05:14:16 There's no issue with two apps with the same display name appearing on a homescreen, right? Nov 19 05:14:27 Like, if there are two apps named "Tweeter" or something. Nov 19 05:14:42 other than user confusion, no Nov 19 05:14:46 K. lol Nov 19 05:14:59 I've thought of a solution to the Reddit-name issue. Nov 19 05:15:13 Reddit wants us to name apps "X for Reddit" (rather than "Reddit X"), but this looks and sounds bad. Nov 19 05:15:30 The solution is to name the app "X for Reddit" on the Play store only. On the device, simply call it X. Nov 19 05:15:31 wants, or requires? Nov 19 05:15:36 Wants, I think. Nov 19 05:15:45 I spoke with them in #reddit-dev; they told me to use "X for Reddit". Nov 19 05:15:51 *And* get permission for that use. Nov 19 05:16:07 So I've e-mailed them. Nov 19 05:16:25 Basically saying "I really wanna use Reddit X, but it's your call". Nov 19 05:16:31 No doubt they'll say "Use 'X for Reddit'". Nov 19 05:17:23 They're also called 'reddit', not 'Reddit', which is kinda weird. Nov 19 05:17:58 at least they don't use some weird unicode symbol or something Nov 19 05:18:23 ®eddit. Nov 19 05:18:44 sounds like something a web company would do :) Nov 19 05:18:52 Anyway, with any luck, soon I should be able to say "Android has a decent Reddit client at last". Nov 19 05:18:58 Where "soon" is "in a few months or so". Nov 19 05:19:14 and it really knows how to parse that json! Nov 19 05:19:17 :D Nov 19 05:19:34 No exceptions when Reddit gives bad JSON... no exception. Nov 19 05:19:40 Well, apart from internally handled ones. Nov 19 05:26:40 Is it possible to get two columns and two rows per screen with grid view? http://i.stack.imgur.com/Wtq4E.png Nov 19 05:30:31 call it 'No Soup for Reddit!' Nov 19 05:30:58 haha Nov 19 05:39:16 pfn looking at https://github.com/pfn/qicr/blob/master/common/src/com/hanhuy/android/irc/LifecycleService.scala Nov 19 05:39:20 who starts this ? Nov 19 05:40:21 also, line 30 , startForeground in a loop ... Nov 19 05:40:46 when you do this, say 3 times, do 3 notifications get put up ? Nov 19 05:49:13 lol shmooz Nov 19 05:49:16 i've got `public void onItemClick(AdapterView parent, View v, int pos, long id) {...` working fine for my listvew, however, I want to know if i'm clicking over an ImageView or not. How can I do this? Nov 19 05:49:31 an ImageView in the row of my listview Nov 19 05:51:39 g00s, it's started by the irc manager when the main activity goes into the background Nov 19 05:51:43 I have a listview row composed of a few LinearLayouts, and one of them contains an ImageView and I want to be able to tell if my ListView click was over teh imageview or not Nov 19 05:51:59 g00s, and start foreground always updates given a start id Nov 19 05:53:20 g00s, oh, it's started on app ctx create Nov 19 05:54:37 i see. so its basically always running, just start/stopforeground is toggled based on whether activities are showing Nov 19 05:54:45 yep. Nov 19 05:57:31 and foreach isn't a loop, though it looks like one Nov 19 06:01:32 foreach is a side effecting map operation Nov 19 06:11:00 why would I get an array out of bounds error when trying to parse some XML via SAXParser ? Nov 19 06:11:12 it seems to randomly cut some strings in half for whatever reason... Nov 19 06:36:11 I'm trying to think of a transportation related app to make Nov 19 06:36:27 how about something to log the number of miles driven for work Nov 19 06:36:34 for tax writoffs Nov 19 06:38:01 RustyShackleford: do you want something that's never been done before ? Or just something to try out ? Nov 19 06:39:26 SirLagz: something that's never been done before (or do it better than someone else) Nov 19 06:39:50 i'm trying to save my efforts on programming for something useful. I've programmed alot of dumb stuff Nov 19 06:39:56 RustyShackleford i was wondering, for people driving on long trips (over days, etc) whether it could overlay weather over the route Nov 19 06:40:08 maybe i missed that Nov 19 06:40:16 from gmaps or something Nov 19 06:40:42 RustyShackleford: a lot of GPS apps already track mileage. Nov 19 06:40:50 RustyShackleford: something for Speed Cameras in your local area perhaps ? Nov 19 06:40:59 as long as you don't live in Perth, Australia. :P Nov 19 06:42:12 yeah we do have those Nov 19 06:42:23 I worked on that a little actually Nov 19 06:42:35 that's what I'm working on this very moment haha Nov 19 06:42:49 for some reason, my app won't retrieve XML/RSS feed properly anymore Nov 19 06:42:49 the problem is getting the data. Its available, but often out of date Nov 19 06:43:22 and chicago is pretty dense. I think false alarms would be unavoidable Nov 19 06:43:35 false alarms better than getting done for speeding ! Nov 19 06:43:49 hah those bastards haven't gotten me yet! Nov 19 06:43:54 haha Nov 19 06:44:15 one thing I wondered. Can you mock location data? Nov 19 06:44:26 RustyShackleford: on the Emulator ? yes Nov 19 06:44:29 I tried to simulate a car driving down Main St for example Nov 19 06:44:47 I drove down a street, recorded it, then played it back to do the mock location data Nov 19 06:44:53 recorded it to a gpx file Nov 19 06:44:55 anyone had problems with multidex + sqlcipher? Nov 19 06:45:19 SirLagz: but you need the emulator? Nov 19 06:45:28 can you mock locations on your phone? Nov 19 06:45:40 don't think you can do it on the phone no... Nov 19 06:45:41 with adb, that is Nov 19 06:45:51 well there's one thing I was doing wrong Nov 19 06:46:44 http://developer.android.com/training/location/location-testing.html Nov 19 06:47:03 it does not mention that the device must be a virtual one Nov 19 06:47:41 oh, emulator has been mentioned, dunno if its limited to that Nov 19 06:49:23 SirLagz: in chicago, the city has made less than half of what it projected so far, after probably 4 years already Nov 19 06:50:41 hi. can a race condition occur if the task is cancelled between line 291 and 292 here? this is a part of the android shelves source code: http://pastebin.com/fLpsz4Lz Nov 19 06:54:13 grr...why are you not geting th whole line =/ Nov 19 06:54:31 RustyShackleford: they probably don't need anyone disrupting their revenue raiser any more then lol Nov 19 06:56:24 egonsen: Where is SearchTask? Nov 19 06:56:43 Oh, it's there. Never mind. Nov 19 06:57:23 :) Nov 19 06:58:41 On a side note, I think it's bad form in that code to refer to "UserTask.Status.RUNNING" (rather than AsyncTask.Status.RUNNING). Nov 19 06:59:31 egonsen: Are you asking about cancel() being called twice or about 'mAddTask' being null in line 292? Nov 19 06:59:39 mSearchTask* Nov 19 07:00:07 TacticalJoke: cancel being called twice Nov 19 07:02:17 Hmm, is there a problem with AsyncTask.cancel being called twice? I've never used AsyncTask, but I'd be surprised if that didn't work. Nov 19 07:03:09 In any case, is onCancelSearch called from more than just the main thread? I can't see how it'd be called from another thread in that code. Nov 19 07:11:34 ugh, this crappy logitech mouse is dying again. they used to make good ones ... now all cheap shit. i've had this for 4 mos and the wheel stopped working. last one, left click button stopped working after a year Nov 19 07:11:45 g00s: so, now the day is over. Nov 19 07:11:47 if logitch can't make a mouse, who can :| Nov 19 07:11:54 have you found new shit in the new compat library? Nov 19 07:12:10 thepoosh no, havent looked Nov 19 07:15:14 g00s: there is also an update to the system image of 4.4 Nov 19 07:15:49 however the delta is very small Nov 19 07:15:57 it took about 20 sec to download Nov 19 07:16:30 the uploaded api 21 samples, but they are worthless Nov 19 07:16:40 at least for recyclerview Nov 19 07:17:15 thepoosh: it takes about 8 seconds to download the whole ADT bundle here... Nov 19 07:17:25 i hate you now Nov 19 07:17:30 i live in the middle east Nov 19 07:18:13 there's your problem, not east enough Nov 19 07:18:42 we have a 40 Mbps connection Nov 19 07:18:43 tops Nov 19 07:19:03 TacticalJoke: right, cancel isn't called from any other thread than the main one. but i wonder if the state is set somewhere else. multithreading is just so confusing to me because i don't think i understand how all that synchronization stuff has to be done Nov 19 07:20:07 yeah, but the hummus is better there... you win some, you lose some Nov 19 07:29:29 bankai_au rxjava 1.0 \o/ Nov 19 07:34:24 nooooo, really ? Nov 19 07:38:04 in this example, is the whole blue area the toolbar widget? or must it be toolbar + other things underneath ? Nov 19 07:38:06 http://4.bp.blogspot.com/-5_R8pdvZ6fs/VEqAeTMuIhI/AAAAAAAAA6s/HJQt6IYaY4o/s1600/color_attribs.png Nov 19 07:39:21 ugh, i just searched api 21 samples for toolbar ... Nov 19 07:40:08 there was not a single effing hit Nov 19 07:40:30 ... Nov 19 07:44:28 does openjdk work well? Nov 19 07:44:40 or do I want oracle java? Nov 19 07:44:53 use oracle Nov 19 07:45:44 there was a ppa I always used. I can't find it now Nov 19 07:57:20 who's using multidexing ? Nov 19 07:58:10 I use open on my linux jsut fine but less fuss gauranteed on oracle Nov 19 07:58:59 g00s, in your previous link , how would someone corectly symlink elements in the toolbar to the lower webview ? Nov 19 07:59:34 g00s: no Nov 19 07:59:46 gordon_ ? Nov 19 07:59:58 toolbar is not something big Nov 19 08:00:12 it's the same sice as action bar Nov 19 08:00:14 afaik Nov 19 08:00:16 so they just put some other views under it Nov 19 08:00:46 http://android-developers.blogspot.jp/2014/10/appcompat-v21-material-design-for-pre.html Nov 19 08:01:06 I might be wrong... Nov 19 08:01:19 gordon_ i think so too ;) Nov 19 08:01:37 http://android-developers.blogspot.jp/2014/10/implementing-material-design-in-your.html Nov 19 08:01:47 http://stackoverflow.com/questions/26491689/how-do-i-declare-an-extended-height-toolbar-action-bar-on-android-lollipop Nov 19 08:02:14 gordon_ not sure what you are linking to these for Nov 19 08:02:22 of course i've read them ;) Nov 19 08:03:25 toolbar a new material construct? Nov 19 08:04:09 I'm using openJDK without any known issues Nov 19 08:04:36 so in the extended height toolbar, can other things be in it .. titie goes to bottom, actions stick to the top Nov 19 08:05:03 but this looks more complicated http://4.bp.blogspot.com/-5_R8pdvZ6fs/VEqAeTMuIhI/AAAAAAAAA6s/HJQt6IYaY4o/s1600/color_attribs.png Nov 19 08:05:04 g00s: I think it's just view under toolbar Nov 19 08:05:21 and set colorAccent as background Nov 19 08:05:36 colorPrimary, sorry Nov 19 08:06:35 anyone know of a repository of material screenshots? Nov 19 08:07:31 lasserix, https://www.google.co.za/search?q=material+design&espv=2&biw=1920&bih=947&source=lnms&tbm=isch&sa=X&ei=qU9sVIjfJcT1at-sgKAF&ved=0CAYQ_AUoAQ#tbm=isch&q=material+design+android Nov 19 08:11:06 gordon_ seems its all toolbar Nov 19 08:11:08 https://plus.google.com/u/0/+ChrisBanes/posts/MVugxgjzkDx Nov 19 08:11:18 see Eric Kok Nov 19 08:12:06 still not sure even after chris' explanation Nov 19 08:12:19 oh well, time to try Nov 19 08:12:45 bring on the bugs ! Nov 19 08:13:56 not sure the best way to implement a login screen. right now i have an activity with a listview that is my launcher activity. should i keep my launcher activity the same and just add some logic in oncreate/onresume where if username/password are null in shared prefs, auto launch the login activity? Nov 19 08:15:37 i'm using the facebook sdk with a project and when i go to push it to git i keep getting duplicate R files in the debug, test and release generated directory Nov 19 08:15:58 aaearon: yeah if you do that with a nice animation transitiion it'll make the app look responsive too Nov 19 08:16:11 like it wants to load if you'd only log in! Nov 19 08:17:00 gordon_, I was attempting to use multidexing Nov 19 08:19:31 how do i resolve duplicate R classes being generated, should i just delete them and do a gradle build? Nov 19 08:20:03 multidexing doesn't run for debug builds? Nov 19 08:20:51 this is strangley android http://androidcommunity.com/android-l-and-material-design-tactile-bold-dynamic-20140627/#jp-carousel-187787 Nov 19 08:30:35 sorry for sounding cranky and crazy, but has anyone here made cross platform "apps" using stuff like cocos2d Nov 19 08:33:42 I have a fragment which fill all the screen. After I add new fragment I would like that each fragment fill half a screen. How can I do this? Nov 19 08:35:10 use weights i guess Nov 19 08:38:32 Anyone tips how to create a system that searches for other people that wants to do the same thing? Nov 19 08:38:58 Click66: you need a server for that Nov 19 08:39:05 twitter does that Nov 19 08:39:33 anyone wanna #build an #android project with me? #teamwork #opensauce Nov 19 08:39:33 danijoo: I know, but I'm looking for things like parse or something that offers me that functionality. Someone knows such service? Nov 19 08:40:30 Click66, just use twitter api's and generate some metrics from it? Nov 19 08:41:04 kevel1: Can I just use the twitter api for creating a game that searches for a player that wants to play the same mode? Nov 19 08:41:54 Click66: googles game api let you do that Nov 19 08:42:04 kevel1: what kind of open sauce app ? Nov 19 08:42:18 oh nvm. i just woke up :D Nov 19 08:42:21 danijoo: thx Nov 19 08:43:55 danijoo, haha, thats the spirit though Nov 19 08:44:07 ^^ Nov 19 08:46:13 hi guys, i am having some problems with startActivityForResult, i create an intent with Intent intent = new Intent(this,OtherActivity.class); and then do startActivityForResult(intent,100); but if i check getCallingPackage() in OtherActivity it is null, and onActivityResult is never called in the calling activity on finish. What am i missing? Nov 19 08:46:31 Error: Class android.content.res.AssetManager could not be found. Nov 19 08:46:37 i get that when trying to run javah Nov 19 08:47:06 asperon: dd you setResult(bundle) ? Nov 19 08:47:12 did* Nov 19 08:48:05 danijoo, sure did, looks like this: setResult(Activity.RESULT_OK, intent); where Intent intent = new Intent(); Nov 19 08:48:35 i still think that the problem is that the activity doesn't know what activity started it, since getCallingPackage is null Nov 19 08:49:47 should i use setClassName on the intent? Nov 19 08:51:54 anyone can help me out how to set SE permissions for busybox during a init kernel boot seq? Nov 19 08:53:18 Yo guys. Nov 19 08:53:27 good day to all Nov 19 08:53:46 I wonder is there any decent tool for developing android with CLI+vim? Nov 19 08:55:37 yeah, CLI + vim Nov 19 08:56:12 better off CLI + emacs though :D Nov 19 08:56:26 yeah? Nov 19 08:56:39 don't tell Leeds Nov 19 08:57:35 good ol emacs vs vim Nov 19 08:57:36 never gets old Nov 19 08:58:08 emacs is at least putting out releases with new stuff ... Nov 19 08:58:30 vim . seems like bram is getting tired or something Nov 19 08:58:30 might be interesting anyway ! Nov 19 08:58:50 if not writing in java or course :) Nov 19 08:58:53 not like anyone else can understand vim's source code :D Nov 19 08:59:04 writing java in vim must be troublesome Nov 19 08:59:10 it sucks Nov 19 08:59:50 auto imports is worth the ide alone Nov 19 09:00:31 well, I find manually importing classes makes you remember things Nov 19 09:01:26 time for a vimscript plugin with dual-n back import quiz game Nov 19 09:02:01 well we do have a headless eclipse approach, but I kinda hate it Nov 19 09:02:44 android studio - is one of the only tools google makes for androi devs that actually works, please use it Nov 19 09:03:21 would you recommend android studio over intellij idea community edition? Nov 19 09:04:05 i am actually using the ultimate editon on trial, accidentally downloaded that instead of the community Nov 19 09:04:07 hm, i haven't used CE. i think AS has some features not in CE Nov 19 09:04:30 neither supports ndk yet. Nov 19 09:05:00 they are like 2 snakes winding around each other. each gets what the other has eventuakky Nov 19 09:05:11 yup Nov 19 09:05:23 i think both teams are working cooperativly Nov 19 09:05:23 depends on what is more important to you i guess, gradle support (AS) or features in the iDE (CE) Nov 19 09:05:50 i think ce has gradle doesnt it? Nov 19 09:05:54 AS also won't get some things ultimate edition has, like sqlite editor Nov 19 09:06:11 yeah it does, but its a little behind AS from what i gather Nov 19 09:06:19 ill be uninsalling ultimate and replacing with the ce Nov 19 09:06:23 android-gradle support Nov 19 09:06:46 mu android update manager just crashed1 Nov 19 09:06:48 ! Nov 19 09:06:54 Android Studio is kinda alpha version of stuff that ultimately goes into "normal" IntelliJ android plugin Nov 19 09:07:13 p_l alpha is being generous Nov 19 09:07:17 :) Nov 19 09:07:28 somewhere between alpha and beta? :) Nov 19 09:07:50 and then they say *I* like pain and suffering because I prefer eclipse and older androids Nov 19 09:07:52 I440r: somewhere between -CURRENT and "we slapped some alpha-themed release tag" Nov 19 09:07:59 i dunno what happened, lately my layout previewer is working for anything at all Nov 19 09:08:13 is or isn't? Nov 19 09:08:25 isn't :D Nov 19 09:08:54 lol Nov 19 09:08:56 ravilov i just fired up my froyo device, holy hell its so awful Nov 19 09:09:08 i wonder how android ever got off the ground Nov 19 09:09:09 Error: Class android.content.res.AssetManager could not be found. Nov 19 09:09:17 anyone know how to fix that when running javah? Nov 19 09:09:34 g00s, I don't see why, I actually like that look&feel and UX, but then that's me :p Nov 19 09:09:59 ravilov you chatting from an old amiga 2000 Nov 19 09:10:15 ? Nov 19 09:10:18 also that would be funny: "I don't know what happened but now my AS is actually working! this is so wrong!" Nov 19 09:10:24 g00s, yes, how did you know? Nov 19 09:10:42 how did i know ... Nov 19 09:11:36 upgraded to AS canary Nov 19 09:11:41 I shouldn't do that :D Nov 19 09:11:50 honestly, I really don't understand why is the fact I prefer older androids so laughable and mockable, it's my own personal preference and you should be able to respect it Nov 19 09:11:55 all I wanted was multidexing... Nov 19 09:12:23 also, the fact I like older androids doesn't mean I like everything old Nov 19 09:12:33 ravilov i can' take you seriously unless you're die hard android 1.0. anything newer is hipster Nov 19 09:12:36 ravilov: if you still want to run older androids, please dont use my apps Nov 19 09:13:01 gordon_, you can make sure of that, just ask for minSdk=100 or something Nov 19 09:13:07 :D Nov 19 09:13:12 g00s, yeah keep on mocking Nov 19 09:13:25 hope you're at least enjoying yourself Nov 19 09:13:30 with mockito ? Nov 19 09:13:51 i mean, all those android 1.0 fans are looking at ravioli wondering why he doesn't stay with 1.0 Nov 19 09:14:07 even the donut people Nov 19 09:14:26 :D Nov 19 09:14:56 donut people are like, you ravilov , come back to the good ol days Nov 19 09:15:17 i know i had about 10k users that were sad when i moved to sdk 7, but it was needed since the app had to evolve Nov 19 09:15:53 you get around those problems by having no users, then there are no worries Nov 19 09:16:21 hi ppl :D Nov 19 09:22:08 if set height to 0px I don't see anything when I add fragment http://paste.ubuntu.com/9091552/ . Why? Nov 19 09:23:04 Does anyone know why this guy is getting downvoted? http://www.reddit.com/r/androiddev/comments/2momj3/the_donate_version_of_my_app_was_just_suspended/ Nov 19 09:24:33 im having jni issues, i am starting to think its because of a bug in java7 with jni Nov 19 09:24:43 are there any known java7 jni bugs? Nov 19 09:24:56 java.lang.UnsatisfiedLinkError: NAFCopy Nov 19 09:25:18 yet that is the ONLY native function that is not linking at run time and it is declared correctly Nov 19 09:25:25 i verified this with javah Nov 19 09:25:45 Hi all Nov 19 09:26:25 Hi. Nov 19 09:26:49 question: I have a class which uses a layout xml (uses packagename .R.layout...) is it possible to make this work without package import? like without import package.R ? Nov 19 09:27:41 If you're in a subpackage of your app package, I think you have to either fully qualify (package.R.whatever) or use import package.R. Nov 19 09:28:31 "Package" sounds so weird when you say (or think) it over and over. Nov 19 09:28:48 Anyone knows how to bypass the 3G Disconnection upon wifi connection? I'm making a custom system with MPTCP enabled, I would need both connections working :/ - I dont find what disconnects 3G when Wifi is on Nov 19 09:30:27 sorry, so now I'm using this: import com.example.hello.R to inflate a layout. Can I make it work without doing that import? Nov 19 09:31:23 because i need to make this work. class must be copied into project where I don't know the package name but the layout will be in the res/layout Nov 19 09:32:03 As far as I know, R is located at {app_package_name}.R. Nov 19 09:32:16 Not sure what you can do if you can't ascertain app_package_name. Nov 19 09:35:55 FrancescoV: I'm just curious -- why won't you know the package name? Nov 19 09:37:09 TacticalJoke, I'm developing a Phonegap plugin. Nov 19 09:37:32 but found out how I can make this work, need to copy my R file to the new project too Nov 19 09:38:20 hi n stuff Nov 19 09:39:21 Sigh. The Reddit people want client makers to use OAuth2. Nov 19 09:39:22 why cant I use buildConfigField? Im getting "Gradle DSL method not found: 'buildConfigField()'" Nov 19 09:39:32 And yet the official app doesn't even use that (as far as I can tell). Nov 19 09:39:39 Forget that. Nov 19 09:39:41 so the people in #java do not think my jni issue is a java bug. they think its an android bug Nov 19 09:39:49 Just makes for an inferior user experience and causes headaches for app developers. Nov 19 09:40:58 I440r: You could try posting to , but I'm not sure how many people can answer. Nov 19 09:41:30 TacticalJoke, not a fan of reddit :), also not sure if anyone there can help Nov 19 09:41:40 tho im not desparaging their expertise.. . . Nov 19 09:41:56 i dobut they could help without viewing the sources and thats not happening Nov 19 09:43:07 The sources for what? Nov 19 09:43:18 srsly confused as to why ALL but one of my native functions are linking right Nov 19 09:43:33 Have you tried using the JVM to try to reproduce? Nov 19 09:43:36 its a native forth library written in assembler and c with a java wrapper Nov 19 09:43:48 its an android run time error Nov 19 09:43:54 java.lang.UnsatisfiedLinkError: NAFCopy Nov 19 09:44:03 run time link error Nov 19 09:44:33 every other native function in the same source file as NAFCopy links just fine. i can call every single one of them and they do their job Nov 19 09:44:55 this happens both on the android emu and on a physical Nov 19 09:45:09 is there any easy way to create add() method into BaseAdaper? Nov 19 09:45:10 I guess you could file a bug. Not sure how active their bug tracker is, though. Nov 19 09:45:18 whose Nov 19 09:45:19 googles? Nov 19 09:45:22 Yeah. Nov 19 09:45:47 kamol: What's the issue? Nov 19 09:45:53 google ignores pretty much everything Nov 19 09:46:03 Yeah, I've seen evidence of that. Nov 19 09:46:06 google is going to do what google does Nov 19 09:46:56 TacticalJoke: I am want to implement pagination, however, I don’t know how to add additional data into BaseAdapter Nov 19 09:47:16 im backing out android versions im building for to see if the problem goes away Nov 19 09:47:44 kamol: Can't you just add to the list? Nov 19 09:48:27 TacticalJoke: let me see, thank you for your hint Nov 19 09:53:27 How can I add media control icons in a reasonable fashion to my notifications? just with plain .addAction? Nov 19 09:53:32 seems a bit out of place without label Nov 19 09:58:58 does google play have a cagegory for marketing 3rd party libs? Nov 19 09:59:34 say you have a snazzy native opengl lib (contrived example) Nov 19 10:01:33 no Nov 19 10:01:42 gplay is not a place for devs Nov 19 10:02:16 they could have a dev category Nov 19 10:02:19 pity they dont Nov 19 10:02:53 also how exactly would you do a seamless install of a random 3rd party lib? Nov 19 10:03:06 people don't even use the same IDE everywhere Nov 19 10:03:39 good series on animations http://cogitolearning.co.uk/?p=1290 Nov 19 10:03:39 gplay is exclusively user-oriented, devs are supposed to look elsewhere Nov 19 10:03:43 not sure why that would be a problem Nov 19 10:04:05 probably because you've never tried Nov 19 10:04:11 ravilov: build tool ? Nov 19 10:04:22 hm? Nov 19 10:04:40 ndk anyone? Nov 19 10:05:00 anyone here? Nov 19 10:05:25 dionis, you start off by asking unnecessary meta-questions and you will most likely be ignored, why don't you just ask a normal question instead? Nov 19 10:05:37 oh ravilov hi Nov 19 10:05:52 ravilov, exhausted been developing all night Nov 19 10:06:21 ravilov, just wondering about permssions still care to help? Nov 19 10:07:09 permissions* Nov 19 10:07:16 is there any reason for getCallingPackage to be null when i start the activity with startActivityForResult? Nov 19 10:07:24 ... oh lord, ndk permissions again Nov 19 10:07:51 dionis, what I said long time ago still stands - I have never used NDK for making native apps and I know nothing about that Nov 19 10:07:53 ravilov, yes, do you use eclipse sdk or the other? Nov 19 10:08:26 ravilov, just a question, when you install a debug app, are you prompted for allowing permissions Nov 19 10:08:50 per declaration in your app's manifest? Nov 19 10:09:10 for example, when you download an app, you are promted on the device about permissions Nov 19 10:09:28 I have no idea what you mean by "debug app", as soon as an app declares it needs some perms, android asks you if you grant them Nov 19 10:09:48 when I install a debug app via eclipse, I am not getting a prompt Nov 19 10:09:57 unless you do it via pm Nov 19 10:10:03 okay thank you Nov 19 10:10:23 I mean via eclipse, using the adb Nov 19 10:10:31 auto using the adb Nov 19 10:10:40 what does ContentResolver.setSyncAutomatically() mean exactly? it appears that requestSync() doesn't work without it. does it enable any auto-sync without requestSync() and similar methods? Nov 19 10:10:48 ravilov, pm? Nov 19 10:11:19 I still see no point in forcing a certain language/development environment just "because you are more used to it" though; there is a tool for every job, would you try to tighten a bolt using a hammer just because you're more used to handling hammers? Nov 19 10:11:23 dionis, yes, pm Nov 19 10:11:54 ravilov, are you elaboting to me? Nov 19 10:12:04 I speelt that right Nov 19 10:12:14 er Nov 19 10:12:16 that's not a word Nov 19 10:12:38 anyway, when installing apps through pm/adb you get no permission requests Nov 19 10:13:00 ravilov, corrent Nov 19 10:13:00 it would be quite tedious if you had to confirm all kinds of installation steps for every single test run you want to make, don't you think? Nov 19 10:13:06 correct Nov 19 10:13:16 so what's your issue? Nov 19 10:13:20 yes, yet it is necessary Nov 19 10:13:31 in order to modify audio settings within the application Nov 19 10:13:45 nope, perms are not your issue Nov 19 10:14:03 if your app got installed, it means it was already granted all the perms it asked for Nov 19 10:14:11 ravilov, I had been developing a music app, and would like to allow the user to change their volume in the application Nov 19 10:14:48 ravilov, alright, I will look into OpenSL ES Nov 19 10:14:50 Hello, I just installed androd L preview on my nexus 4, it seemed to go fine. Now on first startup it's stuck on loading for about 5 min, is this normal ? Nov 19 10:15:00 #android-root Nov 19 10:15:11 (also, get the official factory image instead...) Nov 19 10:15:12 ravilov, btw are you a turing machine? Nov 19 10:15:26 i think we all are :) Nov 19 10:15:28 p_l thanks Nov 19 10:15:38 I440r, really? Nov 19 10:15:43 lol Nov 19 10:15:49 dionis, why do you keep highlighting me? Nov 19 10:15:59 I440r, in theory or actually Nov 19 10:16:14 answer the question ravilov Nov 19 10:16:18 now Nov 19 10:16:21 now ravilov Nov 19 10:16:24 /ignore Nov 19 10:16:30 ha Nov 19 10:17:48 weirdo Nov 19 10:18:05 Yes? Nov 19 10:18:28 vegetablesalad19: preview ?! Nov 19 10:18:52 why did you install preview? you have full factory image for nexus 4 Nov 19 10:19:34 VnM, go over there and keep being weird Nov 19 10:19:36 that is all Nov 19 10:20:47 "Sent from my ASUS MeMO Pad" Nov 19 10:20:48 What is that? Nov 19 10:21:14 Someone sent me an e-mail from Hotmail . Nov 19 10:21:17 And that gets added to the bototm. Nov 19 10:21:19 bottom* Nov 19 10:21:29 Do the users see that text and still send? Nov 19 10:21:43 I've seen that on web forums too. Weird. Nov 19 10:22:41 people don't care? Nov 19 10:23:07 I can't figure out how it works. Nov 19 10:23:22 For example, when posting to a web forum, how does the software know to add a signature? Nov 19 10:23:34 Does it add it to any multi-line text box? Nov 19 10:25:13 forums have tapatalk Nov 19 10:28:40 is it safe to update build tools from 19.x to 21.1.1 ? Nov 19 10:28:51 Base 36 is a pretty cool numeral system. Nov 19 10:29:03 Uses all of 0..9 and a..z. Nov 19 10:29:17 Z = 35 in base 36. Nov 19 10:29:22 http://www.tensionnot.com/jokes/operating_systems_and_airlines Nov 19 10:30:09 TacticalJoke, ain't that cool, there are alphabets out there that have more than 26 letters Nov 19 10:30:59 it's only cool if you have the mindset of the ASCII designers back in the day - english is love, english is life, all world is english Nov 19 10:30:59 It's still cool. It uses many numerals. :) Nov 19 10:31:10 That's not what I'm saying. Nov 19 10:31:17 oh ok Nov 19 10:31:27 The point is that it's not restricted to 10 numerals as decimal is. Nov 19 10:32:38 yeah Nov 19 10:32:44 Base 20 is called "vigesimal". Nov 19 10:32:46 neither is hex, which is much more common :p Nov 19 10:35:24 What's with people using two-space indents nowadays? Nov 19 10:35:33 Totally changing subject. Nov 19 10:35:38 But I see it all the time now. Nov 19 10:36:54 that's not a problem, a simple search-and-replace can make that into tabs like it's supposed to be; what's with people using *random* indentation though? Nov 19 10:37:40 Search-and-replace will cause horror for the revision-control system. Nov 19 10:37:51 I guess I don't see random indentation much. Nov 19 10:38:39 I see it in here a little, when people post example code. Nov 19 10:38:49 And it's a little painful Nov 19 10:38:49 . Nov 19 10:39:07 "random indentation" is what people who don't care about indentation do Nov 19 10:40:34 also, while any decent revision control system can be configured to ignore leading/trailing whitespace, it is also your own fault if you haven't been using tabs like you were supposed to to begin with Nov 19 10:41:52 Tabs? Nov 19 10:41:59 Using tabulators is a bad idea, IMO. Nov 19 10:42:36 ... why? Nov 19 10:42:36 is there a site with the purpose of showing examples of others layouts? for example i have a list of events that are scheduled for different channels at different times on different days and just looking for inspiration on how to present the info Nov 19 10:42:40 Your visual indent size is then at the mercy of the viewer. Nov 19 10:42:50 Many viewers will show eight-width tabulators. Nov 19 10:43:16 most viewers can be told what to do, if yours can't I suggest you use a different one Nov 19 10:43:36 that's the whole point of using tabs - you get to determine your own preferred level Nov 19 10:43:55 with spaces, you are forced to forever look at it the way the author decided it should be Nov 19 10:44:41 But that's good. Nov 19 10:44:42 oh man Nov 19 10:44:46 The author should be able to determine how it looks. Nov 19 10:44:54 ... no it's not Nov 19 10:44:54 fucking google + does that blocking back actionfuck Nov 19 10:44:57 I've had so many issues with tabulator characters in the past. Nov 19 10:45:10 that is due to your system then, has nothing to do with tabs themselves Nov 19 10:45:12 I think I've had issues with even Firefox displaying eight-space-width tab chars. Nov 19 10:45:22 By using tabulators, you're forcing people to use specific software. Nov 19 10:45:28 I always use tabs everywhere and have had no issues whatsoever, and neither have the people using my code Nov 19 10:45:46 why would you use a web browser to look at code? Nov 19 10:45:51 I think cmd.exe will show 8-char tabulators. Nov 19 10:46:09 ravilov: To review changesets or browse code on Github/Bitbucket/whatever. Nov 19 10:46:22 I look at code on my tablet before I fall asleep almost every night. lo Nov 19 10:46:24 lol* Nov 19 10:46:36 GitHub* Nov 19 10:46:40 so your major complaint on tabs is that they don't look/work well in web browsers Nov 19 10:46:43 er, lol Nov 19 10:46:50 For my android plugin, i copy my R.java file into the /gen folder but when I do 'cordova build android', my R.java is deleted but the id's are copied in the projects R.java file. How can I keep my copied file? Nov 19 10:47:00 It's one of my complaints. Nov 19 10:47:11 Many people view code in web browsers. This is 2014. Nov 19 10:47:15 GitHub is huge. Nov 19 10:48:02 Anyone know what this means? WARNING: In API 19 and below, this method may be destructive to dirty. Nov 19 10:48:13 invalidateDirty(Rect dirty) for a view Nov 19 10:48:33 It sounds like a rap song. Nov 19 10:48:35 yeah and then you actually like a piece of code and download it and want to use it ... and then realize you're stuck with 1-2 spaces as indentation because that's what the author decided Nov 19 10:48:50 and there's no easy way to change it Nov 19 10:48:51 One space is madness. Nov 19 10:48:58 yet people still use it Nov 19 10:48:59 Probably something like "don't use rect dirty again" Nov 19 10:49:05 and if they used tabs, this would not be a problem Nov 19 10:49:17 a good edtior should be able to flawlessly and easily switch all that Nov 19 10:49:23 lasserix: I think it means it may destroy (or mutate in some harmful way) the parameter. Nov 19 10:49:36 and all because what? because dumb inferior webbish systems "have issues with tabs" Nov 19 10:49:51 Almost everyone uses spaces. Just sayin'. Nov 19 10:49:54 TacticalJoke: yeah seems weird, guess just invalidate(l r t b) Nov 19 10:50:00 i like tabs ; Nov 19 10:50:02 I think most have concluded that spaces are superior. :D Nov 19 10:50:03 ;p Nov 19 10:50:10 im using android studio emulator but my physical keyboard will not work with it Nov 19 10:50:14 Space master-race! Nov 19 10:50:19 Tabs are better for the key Nov 19 10:50:20 i set it in the hardware configurations when i made the AVD Nov 19 10:50:32 haha Nov 19 10:50:38 Tabs don't get much attention. Nov 19 10:50:40 Just a touch now and then. Nov 19 10:51:30 TacticalJoke, android source code uses spaces (for whatever insane reason) so most android devs stick to that by inertia; that doesn't mean it's right, and it certainly doesn't mean everyone everywhere uses spaces, this is confined to android world only Nov 19 10:51:47 It's a common convention in java Nov 19 10:51:53 ok, java then Nov 19 10:52:00 my whole entire company uses tabs Nov 19 10:52:06 about 50+ people Nov 19 10:52:10 ravilov: It's certainly not limited to Android. Nov 19 10:52:20 I prefer spaces because they aren't different on platforms Nov 19 10:52:33 no, but you said "almost everyone uses spaces", which is just not true no matter what you do Nov 19 10:52:34 I'd guess that using spaces is *way* more popular. Nov 19 10:52:37 Everywhere in programming. Nov 19 10:52:42 and you'd be wrong Nov 19 10:52:47 In fact, there are programming languages that require spaces, I think. Nov 19 10:52:52 nope Nov 19 10:53:01 python only requires *white*space Nov 19 10:53:01 Actually I'd guess that spaces are more common too Nov 19 10:53:03 I'd be wrong? lol Nov 19 10:53:07 I'm not talking about Python. Nov 19 10:53:08 F#. Nov 19 10:53:17 makefiles require tabs Nov 19 10:53:32 ravilov: Just wondering -- how long have you been programming for? Nov 19 10:54:09 funny I got 59999 method counts and it sill doesnt work on galaxy one Nov 19 10:54:17 android 2.3 has lower limit ? Nov 19 10:54:54 TacticalJoke, 15 years, why? Nov 19 10:55:25 Because you were suggesting that using spaces was an Android thing. Made me wonder whether Android was your first programming thing. :p Nov 19 10:55:28 even more if you count random work in college Nov 19 10:55:59 Ok so i decompiled instagram and trying to find out how they do their video view Nov 19 10:56:05 yeah I have more experience with code than you would imagine, so don't assume I don't know what I'm talking about :p Nov 19 10:56:11 Same here. Nov 19 10:56:17 when using a normal videoview it takes years to buffer Nov 19 10:56:21 (wtf android) Nov 19 10:56:27 but theirs take a bit quicker Nov 19 10:56:35 :? Nov 19 11:04:30 ravilov: http://www.emacswiki.org/emacs-en/TabsvsSpaces Nov 19 11:04:41 finally fixed my damn app Nov 19 11:05:11 so apparently, saxparser's character method can get called multiple times per xml item arbitrarily. I did not realise that. Nov 19 11:05:16 nor was it an issue for months on end Nov 19 11:24:04 That 'Do They Know It's Christmas?' song makes me sad. :[ Nov 19 11:24:24 no they dont know its christmas Nov 19 11:24:29 is this the christmas ebola song? Nov 19 11:24:53 It's the "BTW, people are starving to death and you should feel bad" reminder. Nov 19 11:25:14 lol Nov 19 11:25:42 these people dont have to worry about bugs and shit Nov 19 11:25:48 they got it e-z Nov 19 11:25:57 they do, they give them malaria and such Nov 19 11:26:11 bio-bugs Nov 19 11:26:12 The thing is, what can the other countries do to help them? Nov 19 11:26:22 we can write them some apps Nov 19 11:26:27 All the money raised so far -- what has that achieved? Nov 19 11:26:32 i liked a few pages on fb, why arent these people cured yet? Nov 19 11:27:20 It seems that they need to build some sustainable system. From what I hear, dictators take all the resources. Nov 19 11:27:27 It seems like a never-ending problem. Nov 19 11:27:46 i come from SA Nov 19 11:27:55 Maybe Bono can give them iPhones or something. Nov 19 11:27:58 all our tax goes to presidential estates Nov 19 11:28:08 (That was mocking Bono, not starving people, BTW.) Nov 19 11:28:10 business class private jet travels for polititions Nov 19 11:28:11 etc Nov 19 11:28:16 I see. Nov 19 11:29:19 <_flip> hey guys Nov 19 11:29:42 Hay. Nov 19 11:39:35 <_flip> i was going to as something, but for once i figured it out *before* i asked... Nov 19 11:40:00 You'll still have to pay the exit fee. Nov 19 11:49:01 Hi there. Nov 19 11:50:18 my app uses parses a json string and inserts data into a sqlite tables via an asynctask. i need a listview to update when the table data changes. is using a content provider + loader the best solution for this? Nov 19 11:51:37 im unfamiliar with content providers and as the data will never leave the app, a CP seems overkill but a loader (that i believe needs a CP to function) seems to be exactly what i want Nov 19 11:51:55 So I wan't to add notifications via NotificationManagerCompat to support older devices. sdk < 11 So I Created NotificationCompat.Builder object and then tried to create notificationmanagerCompat.notify() But reading docs: https://developer.android.com/reference/android/support/v4/app/NotificationManagerCompat.html notify() takes Notification https://developer.android.com/reference/android/app/Notification.html and not NotificationCompat as I need N Nov 19 12:07:03 Ok, I don't have much information (yet), but my app is using asynctask to download image from internet and put it inside imageview. It's working fine for android <= 4.4, but nothin happens on android 5. No exception, no crash. (I don't have any logcat, it was executed on a friend's device). Any idea where to look ? Nov 19 12:09:45 Can someone please take a look at these 3 lines of code? https://gist.github.com/anonymous/c3cc17aaa818c4e60d70 I don't know why it says for a line 11: android.app.notification in notificationmanager cannot be applied to android.support.v4 Nov 19 12:13:29 blusky: Have you tried it on the 5.0 emulator? Nov 19 12:14:11 I will tonoght :) Nov 19 12:14:16 but now, i can't Nov 19 12:14:23 and it's messing with my head ^^ Nov 19 12:14:31 *tonight Nov 19 12:15:18 i'm guesstin "InputStream in = new java.net.URL(urldisplay).openStream();mIcon11 = BitmapFactory.decodeStream(in);" is sending an exception Nov 19 12:15:25 (that's the only try / catch i have) Nov 19 12:15:30 hey blusky Nov 19 12:15:34 just dont use that Nov 19 12:15:40 oh ? Nov 19 12:15:44 why ? Nov 19 12:15:45 Are you swallowing the exception? Nov 19 12:15:48 long stories Nov 19 12:15:49 I don't understand why it cries about cannot be applied to android.support.v4 as I have created NotificationmangerCompat <- v4 also NotificationCompat <- v4. Any help appreciated. Nov 19 12:15:52 You'd be better off just using Picasso Nov 19 12:15:56 what should I use ? Nov 19 12:16:04 what ? :D Nov 19 12:16:12 blusky: http://square.github.io/picasso/ Nov 19 12:16:33 Picasso.with(context).load("http://i.imgur.com/DvpvklR.png").into(imageView); Nov 19 12:16:35 simple eh Nov 19 12:16:38 holly shit, I could kill you right now :D Nov 19 12:16:43 it would have savec me so much time Nov 19 12:16:43 please dont Nov 19 12:16:45 :D Nov 19 12:16:46 I want to live Nov 19 12:16:49 *saved Nov 19 12:17:49 Napalm: does picasso implement an "onFinished" ? Nov 19 12:17:58 yes if you want Nov 19 12:18:05 you implement a Target Nov 19 12:18:16 and do .into(mMyTargetInstance); Nov 19 12:18:36 thanks JakeWharton he's around most of the time.. its all thanks to him Nov 19 12:18:47 *thank Nov 19 12:19:11 ok, so i guess i'll have a lot of refactoring tonight :D Nov 19 12:19:22 but no ideau why it's not working on android 5 ? Nov 19 12:19:40 probably write storage permission Nov 19 12:19:47 its required now Nov 19 12:19:51 and i think read Nov 19 12:21:26 already asked Nov 19 12:21:47 i seems to be similar to Nov 19 12:21:50 http://stackoverflow.com/questions/26528445/android-l-lollipop-java-lang-securityexception-incorrect-signature Nov 19 12:21:55 http://stackoverflow.com/questions/27002529/lollipop-throwing-incorrect-signature-for-supportmapfragment Nov 19 12:22:16 blusky: your trying to download from a https url? Nov 19 12:23:07 yes an no. My Rest API is on HTTPS, my images (used here) are on HTTP. I'm wondering if the app wants to force HTTPS Nov 19 12:23:16 (and my HTTP certificate is valid) Nov 19 12:23:20 *SSL Nov 19 12:23:30 (same hostname for API and static content) Nov 19 12:25:08 blusky: patch, patch ! Nov 19 12:25:13 ? Nov 19 12:25:35 ah, it's different link Nov 19 12:26:03 was thinking about it Nov 19 12:26:04 http://seclists.org/fulldisclosure/2014/Nov/51 Nov 19 12:26:36 api is on https://foo/bar?id=3, but my exception is for http://foo/bar.jpg Nov 19 12:26:57 wondering if once you https on foo, it's forcing https anytime he sees "foo" Nov 19 12:27:11 i'll get more detail tonight Nov 19 12:31:25 Hi, is it possible in the dev console to see all the times my app crashed for a certain exception? I only see the last time. Nov 19 12:33:41 gordon_: holy shit Nov 19 12:34:41 hm? Nov 19 12:35:19 byt89: hm? when app crashes it shows the reason which is the one excpetion occurred Nov 19 12:37:13 that link Nov 19 12:37:16 seems big Nov 19 12:37:22 That guy whose app got removed said "The way I do it now is that I have a donate link in my app. The links leads to a webpage of mine saying that you can donate through PayPal if you want to, and then a button to PayPal. So there's no direct connection between my app and PayPal. That should be okay, right?". Nov 19 12:37:28 That's against the rules, isn't it? Nov 19 12:37:34 Anyone use eclipse with android in here? Nov 19 12:37:44 Yes. Nov 19 12:38:25 cool,Any one get build error whne they setup a project with android? Nov 19 12:38:47 Not I. Nov 19 12:39:24 TacticalJoke, i get this error Nov 19 12:39:31 Errors running builder 'Android Resource Manager' on project 'HappyGoShopper'. Nov 19 12:39:31 java.lang.NullPointerException Nov 19 12:39:48 only i have that prob on the mac but not linux. Nov 19 12:39:53 odd Nov 19 12:40:37 Did you google it? Nov 19 12:40:39 Seeing lots of results. Nov 19 12:40:53 yes i have and still have probs. Nov 19 12:41:17 seems like you need to use linux then Nov 19 12:41:27 I'd try reinstalling and stuff, I think. Nov 19 12:41:37 and restart computer Nov 19 12:41:39 3 times Nov 19 12:41:45 That what i did. Nov 19 12:41:53 :) Nov 19 12:41:56 i reinstall Nov 19 12:42:11 but same prob could be something with java and mac. Nov 19 12:43:00 i did a sample code and that work on tuesday. Nov 19 12:43:13 and i try that again to luck. Nov 19 12:43:27 know pain of using mac too... Nov 19 12:43:57 ok, I stop trolling Nov 19 12:44:04 and look at gradle compiling... Nov 19 12:44:07 i like my mac that the prob. Nov 19 12:44:56 i was hope someone was going to help me. Nov 19 12:45:53 perlsyntax you need to learn to help yourself :) Nov 19 12:46:01 Thank goodness -- the new Google Keep doesn't have that permanent notification about sync being off. Nov 19 12:46:07 Now I'm crying like a baby.. https://gist.github.com/anonymous/c3cc17aaa818c4e60d70 line 11 gives me android.app.notification in notificationmanager cannot be applied to android.support.v4 which doesn't make any sense to me since I provided support for v4. Any ideas *pretty please* Nov 19 12:46:46 frojnd: I have no idea, but you should probably state whether that's a compile error or a runtime thing. Nov 19 12:46:54 Sorry for asking StringRay Nov 19 12:47:29 TacticalJoke: runtime thing. Android studio to be precise. Nov 19 12:47:55 perlsyntax use android studio Nov 19 12:48:11 i maybe have to that the only that works. Nov 19 12:48:22 thats a good answer :) on a mac pro here and all is totally fine Nov 19 12:48:42 i got a mac pro to Nov 19 12:49:05 trashbin / Nov 19 12:49:10 So android studio is stable i take it. Nov 19 12:49:14 god no, 2010 mac pro Nov 19 12:49:23 I wouldn't call it stable. Nov 19 12:49:24 trashbin is lower performance Nov 19 12:49:32 StingRay,I just got my in feb this year. Nov 19 12:49:35 dont know Nov 19 12:49:37 Though Android Studio seems to have a cult around it. Nov 19 12:49:40 not interested in macs, really Nov 19 12:49:42 And adherents would never criticise it. Nov 19 12:49:52 frojnd: have you tried using NotificationManager instead of NotificationManagerCompat? Nov 19 12:50:06 defuex: yes, also runtime error. Nov 19 12:50:16 perlsyntax so you have a black bin one ? thats bad Nov 19 12:51:03 defuex: the same Nov 19 12:51:12 defuex: the same rt error Nov 19 12:57:37 anyone using multidexing feature? Nov 19 12:57:52 do I need gradle plugin 0.14.+ for that ? Nov 19 13:02:01 frojnd: did you check if you get the correct context? Nov 19 13:29:26 there isn't anything an app can do to not receive mock location updates, right? they do get to know if it's mocked or not but they'll still receive them if they register for location updates.... right? -.- Nov 19 13:29:50 (because for some reason that I can't figure out, this app isn't getting them but google maps is following it just fine) Nov 19 13:32:24 i have a baseadapter and i'm trying to set the adapter of a listview to it but android studio keeps giving me a cannot resolve method setAdapter(myBaseADapter) Nov 19 13:34:06 not a listView then ? Nov 19 13:34:08 :) Nov 19 13:43:28 StingRay_: yes it is a listview Nov 19 13:43:46 then it has that method :) Nov 19 14:24:49 best practice to prevent users from spamming a button? Nov 19 14:25:14 What does that mean? Nov 19 14:25:17 each click donates one direction Nov 19 14:25:55 whats the use case? Nov 19 14:26:09 TacticalJoke spamming is what you do with the channel when you are thinking Nov 19 14:26:12 currently clicking a button launches the inapp purchase process Nov 19 14:26:16 now convert that to button use lol Nov 19 14:26:35 Har har. Nov 19 14:26:41 when you try to launch it twice, the purchase process throws and exception because the first process isn't finished yet Nov 19 14:27:08 obviously I'll catch it, but I should also prevent it from happening in the first place Nov 19 14:27:20 e.g. disabling the button Nov 19 14:27:25 well, just set a boolean during execution Nov 19 14:27:31 Syzygy__ or use an IF statement :) Nov 19 14:28:26 well, that's what I plan to do, I was just wondering if there's something better Nov 19 14:28:38 Disabling the button probably won't work. Nov 19 14:28:42 better than if(someBoolean) ? Nov 19 14:29:39 You can fix this with activities by making their launch modes "singleTop". You can fix DialogFragments by checking whether one exists before launching. Nov 19 14:29:45 I guess, in this case, a boolean is your only choice. Nov 19 14:30:01 It's horrible to have to do this. Nov 19 14:30:06 has anyone experienced the problem that the home button in the ActionBar stops working on Lollipop? Nov 19 14:30:14 native theme not compat Nov 19 14:30:17 But I guess it's an async call that can happen multiple times before anything is actually shown. Nov 19 14:30:32 XD Nov 19 14:38:02 Candy Crush Saga, I'll tell *you* when I've had enough. Nov 19 14:38:12 * TacticalJoke stumbles out. Nov 19 14:42:46 yo defuex get on skype Nov 19 14:44:49 im on skype, on my working skype Nov 19 14:48:29 omg Nov 19 14:48:31 fuckers Nov 19 14:48:54 they did it on purpose, they disabled the setHomeButtonEnabled() Nov 19 14:48:57 and its not documented Nov 19 14:48:59 fffffff Nov 19 14:49:37 lol Nov 19 14:49:59 adding work around for L Nov 19 14:50:09 Napalm: Do you have info? Nov 19 14:50:10 * Napalm grumbles Nov 19 14:50:14 A link or something. Just curious. Nov 19 14:50:23 yea, will post about it in just a moment Nov 19 14:50:59 My app's home button works fine on the 5.0 emulator. It uses XML to set that value, though. Nov 19 14:52:42 anyone used android-svg? Nov 19 14:53:01 maybe its a troll Nov 19 14:55:08 TacticalJoke: XML to set what button? Nov 19 14:55:20 TacticalJoke: you just mean a button in general Nov 19 14:55:57 To enable the "home button" in the action bar. Nov 19 14:56:15 'homeAsUp' or whatever it is. Nov 19 14:56:23 Wait. Nov 19 14:58:43 I was thinking of setDisplayHomeAsUpEnabled. Nov 19 14:59:37 Is a clickable home button really broken in 5.0? Nov 19 14:59:56 yes Nov 19 15:00:00 and I've just fixed it Nov 19 15:00:05 its sooo retared Nov 19 15:00:19 wow Nov 19 15:01:09 Is this mentioned somewhere? Nov 19 15:01:23 5.0 is visually broken with material design fluff nonsense too, today on a 10 inch tablet I find I can now only see 1 countdown alarm rather than the 3 I used to (cause there is enough screen)... now with material you get to see just one, and lots of spaec Nov 19 15:01:26 not in the offical docs, only in source code Nov 19 15:01:27 space* Nov 19 15:02:13 * StingRay_ wants to kick the android design team, for focusing on fluff Nov 19 15:02:47 my pizza cooking is now forever broken with the default clock app :) Nov 19 15:03:28 anyone else having data issues for cdma on 5.0? Nov 19 15:04:40 * inyourface09 wants someone to look at is radio log who knows what they are doing Nov 19 15:21:33 StringRay_,I got it to work it was the 64-bit make the probs.:) Nov 19 15:26:35 hello Nov 19 15:26:57 I installed android-sdk-manager on my linux, now how do i configure the emulator that i want the android apps to run in ? Nov 19 15:33:32 ufk with avd/android ... read the docs it's all there Nov 19 15:37:04 oh yea ./android avd starts the avd Nov 19 15:39:25 http://pastebin.com/zmQxVRig radio log anyone? (: Nov 19 15:46:59 inyourface09 what has that exactly got to do with this channel ? as in do you have app dev related question ? Nov 19 15:51:54 app dev no. Nov 19 15:57:33 so how does amazon have its app store in google play? Nov 19 15:57:41 did google change their dev policy? Nov 19 16:01:17 Anyone know how to get my nexus 7 (with freshly lollipop installed) to be recognised by adb? Nov 19 16:04:05 skunx, enable usb debugging Nov 19 16:04:07 done Nov 19 16:05:31 helicopter88: well I tried turning it off and on again.. but doesn't work Nov 19 16:05:45 helicopter88: I cannot deploy my debug app anymore Nov 19 16:05:50 skunx, install drivers Nov 19 16:07:02 helicopter88: ok, fixed it, I had to update Google usb drivers from the sdk manager Nov 19 16:40:21 that's a win only thing? Nov 19 16:44:17 http://stackoverflow.com/questions/26926127/home-button-in-action-bar-not-working-in-lollipop/27022207 Nov 19 16:44:24 capella-s3, no, that's a lose only thing :p Nov 19 16:44:25 if anyone has the same problems Nov 19 16:45:19 Hi guys. I have a few programmaticaly created Views (ImageView and one custom descendant of basic View class with some drawings in them). When I create them I assign them new dynamically created IDs. My problem is that after Activity is recreated my views arent recreated and I have only the UI defined in XML and not that was customly added last time. Nov 19 16:45:56 how many of you use xamarin? Nov 19 16:45:58 ravilov: scratched my head re: your comment briefly :) tired, almost missed the joke Nov 19 16:46:09 lol Nov 19 16:46:15 Should I somehow handle view saving process in onSaveInstance\onRestoreInstance Nov 19 16:46:16 ? Nov 19 16:47:07 that would depend on where exactly you're creating the views Nov 19 16:48:22 I create them with my special factory methods and then just append them to RelativeLayout I have in my activity Nov 19 16:49:01 And everything's ok with them, they just not recreated on activity restore process Nov 19 16:50:56 I said where, not how Nov 19 16:52:49 Error:java: invalid flag: Files\Java\jdk1.7.0_51\jre\lib Nov 19 16:52:51 ugh, intellij... Nov 19 16:53:43 spaces in file/folder names, what's not to love Nov 19 16:54:08 intellij should quote crap properly... Nov 19 16:54:58 intellij should do a lot of stuff, so? :p Nov 19 16:54:59 Hi! Nov 19 16:55:04 I was wondering if there was anyone here that either knows how to make an android app and be open to taking a commission, or point me in the right direction? Nov 19 16:56:48 anyone noticed the new contacts app in android lollipop? specifically how it integrated with google hangouts… Nov 19 16:57:00 ravilov, I create them in same activity... sorry, shat exactly you mean by "where"? Nov 19 16:57:16 there seems to be a floating activity/fragment with it’s own actionbar Nov 19 16:57:24 hey Nov 19 16:57:35 there are so many points within an activity where you could deal with UI, AlexBerdnikov... Nov 19 16:58:01 Anybody who knows which method that is called when i switch between tabs in my app? Nov 19 16:58:19 When a fragment becomes visible again... Nov 19 16:59:25 That would depend entirely on your implementation Nov 19 16:59:26 i've got a json file with a bunch of static data Nov 19 16:59:42 I'm trying to figure out how i'd keep it in memory, and share it with my application Nov 19 17:00:27 hey SimonVT Nov 19 17:00:28 RustyShackleford: you mean you want to store it on a singleton? Nov 19 17:00:38 SimonVT: some info for ya.. http://stackoverflow.com/questions/26926127/home-button-in-action-bar-not-working-in-lollipop Nov 19 17:00:41 ravilov, ok, to be more precise: I have onActivityResult handler where I create an ImageView object, assign a bitmap backgound for it and then append to some RelativeLayout Nov 19 17:00:48 the data is a list of locations where the city has installed speed cameras. I'd like my app to notify the user when they are approaching one, even if the screen is locked or if another app is focused Nov 19 17:00:57 is this a good candidate for a Service? Nov 19 17:01:05 RustyShackleford: yes Nov 19 17:01:25 or you might be able to use location services to wake you Nov 19 17:01:39 depends on the accuracy you want Nov 19 17:02:57 AlexBerdnikov, onActivityResult? is that necessary? seems like quite an awkward place for it Nov 19 17:03:31 samskiter: so location services would be less accurate? Nov 19 17:03:33 I'm wanting to create an app that runs on top of another app and creates a button that tricks the app below it into thinking you're tapping the screen very fast. Nov 19 17:03:46 RustyShackleford: go read here: https://developer.android.com/guide/topics/location/strategies.html Nov 19 17:04:10 RustyShackleford: if you were being a passive listener and the user was using maps or something then you’d benefit from the increased accuracy Nov 19 17:04:22 i believe you request a min accuracy Nov 19 17:04:29 but you can get over that as a bonus Nov 19 17:04:50 ravilov, I open a file picker with image/* filter, then user picks an image there, returns to the app, image is processed (scaling and sizing) and the view is created and appened. Seems to be quite simple and straightforward stuff Nov 19 17:06:13 RustyShackleford: the android dev site actually has a lot of good information on their APIs and different use cases Nov 19 17:07:53 further informtaion: https://developer.android.com/google/play-services/location.html Nov 19 17:08:25 AlexBerdnikov, maybe so, until it comes to restarting your activity, at which point it becomes anything but simple; so yeah you probably want to save the state somewhere and somehow Nov 19 17:08:53 RustyShackleford: you might be able to use geofencing Nov 19 17:09:08 unless you want to depend on the user picking out the image every so often, for example after they rotate the device Nov 19 17:09:10 Napalm: That looks horrible, they should just use the action bar as intended on L and be done Nov 19 17:09:35 yup Nov 19 17:10:29 samskiter: these cameras are relatively close to each other Nov 19 17:10:45 i'm not sure how accurate each of these strategies are Nov 19 17:10:57 read the last link i sent Nov 19 17:11:04 the google play services stuff is decent Nov 19 17:11:10 i have it open, thanks for the link Nov 19 17:11:15 allows you to be more conversational about what you wnt Nov 19 17:11:46 ravilov, no, I don't. I just want programmatically created ImageView appear in the same place it was placed last time before Activity was destroyed Nov 19 17:12:14 one more thing: can I detect things like the user driving? Nov 19 17:12:18 RustyShackleford: geofences have a position and radius, so you might be able to set a suitable radius Nov 19 17:12:31 its a little silly to warn people about traffic cameras if they are walking Nov 19 17:12:36 RustyShackleford: “Activity recognition” that would be that Nov 19 17:12:44 AlexBerdnikov, well there you go then Nov 19 17:13:21 RustyShackleford: so you can get a notification when the user is driving. Nov 19 17:14:19 ravilov, you mean, like save bitmap separately somewhere on the disk and then just call the method I create such ImageView objectwith in onResume()? Nov 19 17:14:39 like, just handle recreating manually, right? Nov 19 17:15:00 you might want to avoid having a service running 24/7 if you can though Nov 19 17:15:47 is there a good example of a mock retrofit service that introduces delay and also has a callback? Nov 19 17:16:16 you should use MockRestAdapter for introducing delay Nov 19 17:16:24 one more question: Picture this scenario. There is a speed camera on Main St, and the user is driving down a parallel side street Nov 19 17:16:26 A common use case is that an application wants to monitor activities in the background and perform an action when a specific activity is detected. To do this without needing a service that is always on in the background consuming resources, detected activities are delivered via an intent. The application specifies a PendingIntent callback (typically an IntentService) which will be called when activities are detected. See the Nov 19 17:16:27 documentation of PendingIntent for more details. Nov 19 17:16:40 ideally, that would not trigger a warning Nov 19 17:16:50 RustyShackleford: gps is accurate enough to detect that right? Nov 19 17:17:08 well i assume so. I guess it's a matter of interpreting the data Nov 19 17:17:21 naa, just rely on the location services Nov 19 17:17:30 can it tell me reliably that your user is traveling eastbound on First St? Nov 19 17:18:00 JakeWharton yeah, I am using that for delay. but what about for the callback with fake data? Nov 19 17:18:01 you basically want to ramp up your usage at appropriate moments Nov 19 17:18:02 to most of the time you are closed, then wehn you get information that the user is diriving, you switch on your geofencing. then when you egt close you switch up to GPS Nov 19 17:18:09 or something like that Nov 19 17:18:17 mattblang: just invoke the callback directly Nov 19 17:18:21 it'll add delay Nov 19 17:18:35 anyone can help me with this post?? https://stackoverflow.com/questions/26986092/how-to-share-a-location-to-a-whatsapp-contact Nov 19 17:18:57 ermm im not sure about direction. i think it gives you bearing…… not sure if this is actually the thing you want though (i.e. im not sure if it’s “the way the phone is pointing” or “the way the phone is travelling" Nov 19 17:19:13 samskiter: i'm not sure that geofencing is the best way to go either, but I'll read up on it Nov 19 17:19:24 but yea, you might need to resolve the street ur on or something Nov 19 17:19:27 proximity to the camera isn't the only thing to account for Nov 19 17:19:32 right Nov 19 17:19:43 yea, but its a good point to start GPS Nov 19 17:19:58 like if im within 2KM of the gps or something Nov 19 17:20:00 ohh I see what you're saying Nov 19 17:20:12 I want to send a location to a Whatsapp contact from my app, but I don't know what is the mimeType I must use in the Intent.ACTION_SEND. Any idea??? Nov 19 17:20:31 anel: Know of any app that does this? Nov 19 17:20:40 now I remember why I gave up on this app before haha Nov 19 17:20:47 Locations can get kind of complicated Nov 19 17:21:27 ugh, intellij 14 still hasn't integrated ddms yet, suck ass Nov 19 17:21:35 In the Whatsapp manifest there are only these: audio/*, image/*, text-plain and text/x-vcard, nothing like location Nov 19 17:22:13 flan3002, nop, I don't know an app that does this Nov 19 17:22:36 anel: What makes you believe it's possible? :P Nov 19 17:22:59 JakeWharton don't I need to set fake response data though? Nov 19 17:23:16 I guess it has integrated traceview though, that's kinda nice Nov 19 17:24:01 RustyShackleford: it’s doable. the hard bit is getting from a lat-lon to a location on a road Nov 19 17:25:00 flan3002: because the way Whatsapp does this, I think it sends the location data using Intent.ACTION_SEND, but I can't find the KEY of the extras that it uses Nov 19 17:25:34 RustyShackleford: grab the bearing and the location. if you are heading toward the speed camera, you could ping the user… Nov 19 17:25:40 anel: Uh... why would WhatsApp use Intents for that internally? Nov 19 17:26:03 RustyShackleford: if you knew the speed limit u could check the speed too Nov 19 17:26:19 flan3002 anel or even if it did, it would most likely be a localBroadcast and not open Nov 19 17:27:28 samskiter: yeah i'd like to do that, but I can't find a data set that includes speed limits Nov 19 17:27:56 mattblang: only if you use it in the callback Nov 19 17:27:58 i could drive across town and collect it myself I suppose Nov 19 17:28:12 flan3002: I do not know, it's just a guess Nov 19 17:28:44 anyway, I think i'll write this app so that it uses only proximity first Nov 19 17:28:47 JakeWharton right, yeah I do (firing an Otto event when it gets done) Nov 19 17:28:51 RustyShackleford: well no bother. Geocoder can get you an address for your location too. it’s not very reliable is the main problem Nov 19 17:29:01 Well, I doubt it, anel. If they didn't intend to let you that, it shouldn't be possible. And if they didn't document it, chances are they didn't intend to let you do that. Nov 19 17:29:08 RustyShackleford: proximity and bearing should be pretty reliable Nov 19 17:29:10 and then add direction, geofencing, all this fancy stuff later Nov 19 17:29:28 i need to figure out how to mock location data too Nov 19 17:29:42 so I don't need to get in the car after each recompile of my app Nov 19 17:29:53 pfn: What do I do when I get a method not found error because it (from what I understand) isn't in the Proguard Cache? Clean and run works but is really slow. Nov 19 17:30:28 RustyShackleford: that’s right there in the links i sent Nov 19 17:30:55 yeah i'm jumping between several different webpages Nov 19 17:31:12 i guess its time to sit down and read the docs. fun Nov 19 17:31:39 flan3002: Currently, I can share from my app an audio and a picture using Intent.ACTION_SEND and mimeType 'audio / * "or" image / * "depending on the case, as plain text, using" text / plain ". But I could not find a way to share my location. Nov 19 17:32:10 marrrk, the error isn't all that common, so the answer is basically to just clean Nov 19 17:32:12 try having someone drive you through the different cameras and having your phone logging data, but also hold down a button when you want the app to alert you. then record location data and whether your are pressing the button, then you can create a full tests case and tweak your app until you get the best results Nov 19 17:32:26 pfn: Okay Nov 19 17:32:47 marrrk, if someone had time to investigate and fix it... I haven't had time to figure out why it is Nov 19 17:33:00 I get it a lot when I use a function that I hadn't used before. Maybe I have to add scalaz or argonaut or something to the cache. Nov 19 17:33:17 Would anyone be interested in taking on my app commission? Nov 19 17:33:34 Oh, whoops... I had the screen scrolled up. Nov 19 17:33:39 marrrk, yeah, if it's in a library, the best way to work around it is to add to proguard cache Nov 19 17:33:51 do the files in .idea/ go in your git repo? Nov 19 17:33:54 Okay, that sounds like it would help quite a bit. Nov 19 17:34:20 RustyShackleford: gitignore.io Nov 19 17:34:33 (but there is some debate on certain files) Nov 19 17:34:36 anel: Is there any record in the msgstore.db for images? Maybe you can look how locations are represented? Just a wild guess... Nov 19 17:35:27 flan3002: In the case of audio or image, you must use the extra Intent.EXTRA_STREAM, but in the case of plain text, you must use Intent.EXTRA_TEXT. I could not find the EXTRA KEY to store the location data Nov 19 17:35:38 samskiter: yeah I have the gitignore. Some of these files (not ignored) look like they belong to the IDE Nov 19 17:35:42 Well, I don't either, anel. Nov 19 17:35:52 anyway, I guess it's not the end of the world if they're in my repo Nov 19 17:36:45 RustyShackleford: yea, put “intellij” in Nov 19 17:36:46 https://www.gitignore.io/api/intellij,android Nov 19 17:37:35 There are several games I've come across that require mashing a button furiously. I would like to have an app developed that runs on top of these games and creates a button that fools the game into thinking you're mashing it repeatedly when in reality, you're just holding it down. Nov 19 17:38:30 android apps have a dedicated folder on the sd cards right? Nov 19 17:38:52 im trying to figure out how to utilize it without having to copy files manually to it Nov 19 17:38:57 samskiter: you are extremely helpful. thanks Nov 19 17:39:14 RustyShackleford: all stuff i’ve had to go through myself. no worries. Nov 19 17:39:17 <_Auron_> day-: internal sd card yes Nov 19 17:39:22 Fuzzywessy: Do a /topic. Otherwise, that doesn't sound too hard... Nov 19 17:39:47 _Auron_: does one of the project folders expands to this internal folder if i simulate the app? Nov 19 17:39:55 RustyShackleford: btw, to reset and make sure you repo is up to date with your gitignore do git rm -rf —cached . Nov 19 17:39:57 Fuzzywessy: You can do that with an Accessibility Service Nov 19 17:39:59 then do git add . Nov 19 17:40:04 <_Auron_> found under /sdcard/Android/data/com.app.name/files/ Nov 19 17:40:42 flan3002: I'm not sure what you mean by /topic I'm new to all of this Nov 19 17:40:44 <_Auron_> day-: you mean under /res/ in your project? Nov 19 17:41:13 marrrk: Explain, please? Nov 19 17:41:14 _Auron_: yes something like that. Basically where i can copy a dummy file too that will be copied into the correct folder if i simulate the app Nov 19 17:41:20 flan3002: In the msgstore.db there are these records: key_remote_jid(integer), key_from_me(integer), data(text), latitude(double), longitude(double), media_mime_type (null for ever messages that I've sent),media_wa_type(integer, 0 for a plain text, 5 for a location, 4 for an image). Any idea? Nov 19 17:41:32 Fuzzywessy: You can simulate clicks in any app with that. Nov 19 17:41:33 Fuzzywessy: Well the topic for this channel says: No bots, and no advertising please, jobs or otherwise. I guess Would anyone be interested in taking on my app commission? falls under this. Nov 19 17:41:41 <_Auron_> day-: what do you mean by simulate the app? Nov 19 17:41:42 Oh sorry, I didn't realise this. Nov 19 17:42:06 Fuzzywessy: I don't have a personal problem with that, just be aware of it... Nov 19 17:42:10 _Auron_: for example, i have a picture that i want to show. (simulate as in: run program on device, from the android sdk/eclipse) Nov 19 17:42:27 flan3002: Oh, I see. Terribly sorry. Any idea where I can go and request my idea? Nov 19 17:43:33 <_Auron_> day-: okay, that's doing a compile and run to the device. and then? Nov 19 17:44:10 Fuzzywessy: you go to d.android.com and start reading Nov 19 17:44:31 marrrk: Is an accessibility service something in the app store, or something on the phone itself? Also, will it work if the phone is not rooted? Also, will it work for only a portion of the screen? For example a game I play uses pistols, and grenades. I wouldn't want to waste all my grenades by throwing them super fast, but unloading my pistol fast would be ideal. Nov 19 17:44:55 flan3002: I need to have lunch now, I go back in few minutes, please help me with that Nov 19 17:45:12 _Auron_: what I'm trying to do: Show a picture on the display from the app specific folder. WHat i dont want to do, copy the image file into the correct folder manually. I was hoping there is a folder within the project (eclipse project) THat expands during the run on device to the app specific folder Nov 19 17:45:22 anel: No, I'm afraid, I won't. Nov 19 17:46:35 <_Auron_> day-: Anything you have in your /res folders can be accessed from the auto-generated R java object, like R.drawable.icon Nov 19 17:46:49 <_Auron_> Read up on http://developer.android.com/guide/topics/resources/drawable-resource.html if you want more context on drawables Nov 19 17:46:58 ty Nov 19 17:47:01 <_Auron_> np Nov 19 17:47:45 Fuzzywessy: Yes, it should. You'd just have to activate the Accessibility service. And the logic is up to the developer... Nov 19 17:47:57 day-, the only thing that "expands automatically" as you call it is the libs/ folder, anything else either stays within the APK or you copy it out manually Nov 19 17:48:45 aww. i see :( Nov 19 17:48:56 flan3002: I've never programmed anything before. Your words are foreign to me :) Nov 19 17:49:18 ... what are you doing in this channel then? Nov 19 17:49:36 Fuzzywessy: it's never too late to start Nov 19 17:49:56 pfn: When I try to put the cache even cleaning doesn't give me the method anymore. I added it like this: ProguardCache("argonaut") % "argonaut" %% "io.argonaut" Nov 19 17:50:57 ravilov: Seeking someone who knows how to program to commission an app from, though I was just informed that may be a breech of the /topic. My appologies if so. Now I'm just seeking direction on where I can go to request my app without making anyone mad at me. :) Nov 19 17:51:20 pfn: Sorry, no my fault Nov 19 17:51:58 marrrk, yeah, wrong argument order Nov 19 17:52:08 Oh, good so there was a mistake in there Nov 19 17:52:10 Leeds: True, and I've poked at the SDK, but I end up staring blankly at all the controls and not knowing where to start I panic and go watch CSI Nov 19 17:52:24 Zoom! Enhance! Rotate! Nov 19 17:52:44 marrrk, of course, you put artifactid in place of organization and vice versa Nov 19 17:53:28 Yeah, I got confused by the play example. It doesn't make any sense otherwise, thanks. Nov 19 17:54:01 look at the ref, not the example Nov 19 17:54:10 it says what the arguments are, package, organization and artifact Nov 19 17:54:39 Fuzzywessy, try forums and such. yes, asking that in here is a breach of rules and is very much frowned upon Nov 19 17:55:22 ravilov: Understood. My apologies once again. Nov 19 17:57:49 Thanks for the help, guys :) Nov 19 17:58:58 I have a question about Eclipse Nov 19 17:59:11 Install Android Studio... Nov 19 17:59:21 How can I get it to run the project I'm actually working on without having to manually specify the configuration Nov 19 17:59:24 ? Nov 19 17:59:59 flan3002: I can't convert the project right now, it's already in source control with a lot of other people working on it Nov 19 18:00:55 hmm http://stackoverflow.com/questions/2078733/how-to-create-default-debug-and-run-configuration-in-eclipse Nov 19 18:02:02 matt_j: It being in source control shouldn't affect which editor/IDE you're using. Nov 19 18:02:28 Android studio re-structures the project Nov 19 18:02:31 when I import Nov 19 18:02:36 so it would cause issues Nov 19 18:03:29 maybe I need to Export... Nov 19 18:05:26 is there a way to ignore Logging in a release build? Nov 19 18:05:36 sometimes I go a little overboard on logging Nov 19 18:06:08 RustyShackleford: Make your own Logging function. Nov 19 18:06:32 that is not a bad idea Nov 19 18:06:47 keep a DEBUB_MODE variable somewhere Nov 19 18:07:02 if thats false, do nothing. If true, log stuff Nov 19 18:09:49 You could make a class called BuildConfig, with a DEBUG variable that's false on release builds Nov 19 18:15:09 ./adb: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory Nov 19 18:15:18 whats wrong with my setup? Nov 19 18:15:25 hello, i'm new to android and i have a problem that i can't figure out how to solve.. Nov 19 18:15:32 i have build-essential and g++ install Nov 19 18:15:36 *installed Nov 19 18:15:52 i'm trying to implement a radio group and, when the checked radio is changed it should: pick the Id, print on a textView Nov 19 18:16:40 RustyShackleford: My adb doesn't link against that, I think. Does ldd show it? Nov 19 18:17:07 but i can print on a textView, but seems that i cannot pick the id.. (i'm using radiogroup rg = (radiogroup) viewbyfileid ... rg.getCheckedRadioButtonId() ) Nov 19 18:17:19 what sould i do:? Nov 19 18:17:49 oh! I remember having to install ia32-libs in the past Nov 19 18:17:57 its not in the repos anymore? Nov 19 18:18:29 RustyShackleford: What're you on? Nov 19 18:19:33 flan3002: ubuntu 14.04 Nov 19 18:19:54 Oh, out of knowledge then... Didn't use Ubuntu for long... Nov 19 18:20:46 i had forgotten that you needed some extra stuff when running a 64 bit OS Nov 19 18:20:56 RustyShackleford: I guess http://askubuntu.com/a/501116 and http://stackoverflow.com/a/2710529/1768238 might help.... Nov 19 18:23:43 flan3002: the first link solved it Nov 19 18:23:46 many thanks Nov 19 18:24:08 now let's bookmark this so I can do this next time Nov 19 18:27:01 Anyone here that had a programming related job straight out of college/university? Nov 19 18:29:13 O.o Nov 19 18:29:19 that's a funny question :) Nov 19 18:29:34 GEEGEEGEE: Yes. Nov 19 18:30:15 I worked at a startup game studio through college, went full time after college, then quit that job for a better paying, less shitty job Nov 19 18:30:23 Anyone know how to access Contacts data? I'm not finding anything in documentation about it. Nov 19 18:31:52 skinux, ugh... it's right under training on developer site? Nov 19 18:32:09 Huh? Nov 19 18:36:32 I found it. Nov 19 18:36:47 hey there, can anyone point me on making a custom toggle button preferably without needing images? Nov 19 18:37:16 How do I get the list of algorithms that a TrustManagerFactory has TrustManagers for? Nov 19 18:38:07 ryanmr you can just extend drawable Nov 19 18:38:28 or a custom view Nov 19 18:38:54 i'll look into that, thanks Nov 19 18:40:27 If you use Xamarin to dev your apps please join us on our new channel #Xamarin :) Nov 19 18:40:34 freeone3000, same way as in java Nov 19 18:40:56 pfn: How do you do it in Java? Nov 19 18:43:11 I found this tutorial, though it uses an image, I would just like a large/wide colorPrimary rectangle Nov 19 18:43:11 http://www.coderzheaven.com/2012/05/20/create-custom-toggle-button-android/ Nov 19 18:44:15 ryanmr just use xml shapes defined in your drawable source Nov 19 18:44:21 There certainly is a difference between developing desktop applications and android applications in Java. Nov 19 18:44:29 if i want to change the text of the standard TextView object (in a fresh project), I just type TextView.setText("foo"); right? Nov 19 18:44:47 because it doesnt recognize the TextView (it's red underlined) Nov 19 18:44:51 somaweb, wokay Nov 19 18:45:24 freeone3000, by looking at its apis? there's a gettrustmanagers and getalgorithm... Nov 19 18:45:40 pfn: Only once you have a TrustManagerFactory implementation - those methods aren't static. Nov 19 18:47:44 day then you need a reference to the TextView Nov 19 18:48:09 there is no static method on TextView class that will magically set some random textview in your activity Nov 19 18:49:58 strange, i would have sworn that it worked once :/ Nov 19 18:50:20 i've got a python script associated with this project. It grabs some data from the web and processes it for me, then creates a file that I bundle with the apk Nov 19 18:50:31 where in the project tree would you save it? Nov 19 18:50:45 assets? Nov 19 18:51:50 In stuffnotinapk/ Nov 19 18:52:55 tools/ Nov 19 18:53:00 could it be a problem that i installed open JDK java 8 instead of 7? Nov 19 18:53:59 No, jdk8 works fine Nov 19 18:54:18 Jar mismatch! Fix your dependencies Nov 19 18:54:27 thats what my console gives me Nov 19 18:55:26 There should be lots of hits when you google that error Nov 19 18:55:42 day: does openjdk work well? Nov 19 18:55:59 i installed oracle java because I wasn't sure Nov 19 18:56:19 RustyShackleford: I'm just starting with java, i wouldnt know :/ Nov 19 18:56:58 i did an assignment for school once. The project used AWT, and openjdk was working incorrectly Nov 19 18:57:27 since then I just use oracle java Nov 19 18:57:27 I think atm i am working incorrectly :) Nov 19 18:59:06 any clues on why a class wouldn't get an $$InjectAdapter generated for it? It's listed in the module injects, and has @Inject annotated fields... i'm a bit stumped here Nov 19 18:59:16 and all my other classes are getting their inject adapters generated fine Nov 19 19:01:40 best java book recommendation for beginners? Nov 19 19:02:44 Eclipse -> http://www.diplomacy.edu/sites/default/files/styles/large/public/hussaini1.jpg Nov 19 19:03:07 matt_j: the right or the left one? :D Nov 19 19:04:30 hahahaha Nov 19 19:08:19 the left is what Eclipse looks like when it's installed. The right is what happens once you try to use it. Nov 19 19:09:52 someone should photoshop some hanging devs to it :D Nov 19 19:11:12 oh god, deadlines :/ Nov 19 19:11:49 :D Nov 19 19:18:32 wow nvidia K1 supports cuda with java? :o Nov 19 19:18:34 I have a 45MB apk. dex takes two to three minutes to run. How do you make this not take forever? Nov 19 19:18:47 How do we get ALL Contacts with ALL details, instead of querying for specific contact data? Nov 19 19:31:40 I have a custom background for a listview item, and I'm attempting to add an android lollipop ripple. However it appears the ripple covers the whole item, not just the inner section of the background. The custom listview item and it's accompanying background is at https://gist.github.com/rymate1234/303986c969afd5c86fcb - any way of fixing it? Nov 19 19:47:26 After upgrading to API Level 21, I'm getting SSLHandshakeExceptions. Server and client should be negotiating to TLSv1.2. How can I get more info about this? Can I set javax.net.debug=ssl somehow? Nov 19 19:47:51 anyone know how I might log something while running robolectric tests? Nov 19 19:49:22 I try Log.wtf, Log.i, Log.d, they don't print while running tests... Nov 19 19:49:45 Or does anyone have more info about https://code.google.com/p/android-developer-preview/issues/detail?id=328 ? Nov 19 19:54:05 Am I the only one having problem with logcat from Intellij 14? Nov 19 19:56:22 its fine for me in ultimate Nov 19 19:56:40 what behaviour are you seeing? Nov 19 19:59:30 To answer my own question: System.out.println will do it Nov 19 20:00:30 yeah, System.out.println everything Nov 19 20:00:36 I am seeing a Logcat that does not work. Nov 19 20:00:40 Standalone ddms works. Nov 19 20:01:13 is the window just empty? Nov 19 20:01:21 I see the device Nov 19 20:01:27 and there is nothing in logcat Nov 19 20:01:35 you got a filter on? ;) Nov 19 20:01:39 No Nov 19 20:01:44 It says "No debuggable applications" Nov 19 20:02:03 This looks suspicious: ddmlib: Broken pipe Nov 19 20:02:03 java.io.IOException: Broken pipe Nov 19 20:09:29 hi everybody Nov 19 20:09:41 is it possible to set multiple tags for an element in the xml ? Nov 19 20:10:50 wathek: you seem to be misusing terms, that doesn't make any sense. what is it you're trying to accomplish? Nov 19 20:11:49 Groxx, I'm using android:tag for my elements in my layout Nov 19 20:12:05 Groxx, and I wanted to know if it's possible to have multiples tags set for one element Nov 19 20:12:11 marrrk: I've had issues come and go with logcat / ddms in general, and multiple "observing" programs. e.g. eclipse and android studio at the same time. I just shut one down. Nov 19 20:12:46 I can try, but I only really opened ddms because IntelliJ wasn't working Nov 19 20:14:57 wathek: ah. not that I'm aware of, with that approach. if you get the view in Java code, you can setTag(Object), which can be any object. there's also setTag(int, Object), but I'm not sure if that's what you want. Nov 19 20:14:58 Groxx, you see what I mean ? Nov 19 20:15:15 I see Nov 19 20:15:23 thank you Groxx Nov 19 20:15:57 are you just storing extra data, or do you need to findViewWithTag()? Nov 19 20:16:36 Groxx, I'm storing extra data Nov 19 20:18:23 wathek: I'd probably recommend you make a 'plain' data object in java with all the fields you need, and setTag in code. Nov 19 20:20:10 Groxx, hmm Nov 19 20:30:47 hi all, with a grid view is it possible to specify an item size and tell it to fit as many columns as possible? Nov 19 20:31:07 thats pretty much how it works dcope Nov 19 20:31:25 android:numColumns="auto_fit" Nov 19 20:31:57 MistaMagoo: i tried this and on a nexus 4 only 1 column shows, but on a nexus 5 it looks fine with 2 columsn Nov 19 20:32:11 different resolution between those phones Nov 19 20:33:03 MistaMagoo: is it possible to set a minium column count? to ensure at least 2 are shown? Nov 19 20:33:06 does it make sense not to use the xml layout file but a java layout instead? Nov 19 20:33:51 day: Well the point of XML is that it's easy to qualify those resources over different locales Nov 19 20:33:55 I dont believe thats possible you will need to ensure your images/items Nov 19 20:34:02 locales/configurations Nov 19 20:34:11 can fit two on whatever screen resolution you are targetting Nov 19 20:34:23 MistaMagoo: i see... Nov 19 20:34:39 hwrdprkns: im just wondering because im watching a android beginner series and the first thing he tells you is, kick the xml layout Nov 19 20:34:41 the problem is that when i specify "2" columns, they look good on everything. but when you rotate to landscape it looks terrible because they're so big Nov 19 20:34:55 perhaps i should have auto_fit on landscape, and 2 on portrait Nov 19 20:35:16 day :O What beginner series is that?! XML layouts are, like, foundational android concept. Nov 19 20:36:08 hwrdprkns: http://www.youtube.com/watch?v=1o2nyvf4x2Q Nov 19 20:37:02 wow, why would you actively try not to use XML? Nov 19 20:37:41 That should be the point where you find another tutorial Nov 19 20:37:57 well, it is called "android pure java programming". kicking XML would be necessary in that case. Nov 19 20:37:57 When I saw eclipse I was like... ruh roh Nov 19 20:38:18 day try these https://www.youtube.com/watch?v=boj0f_O3i88&list=PLGLfVvz_LVvQUjiCc8lUT9aO0GsWA4uNe Nov 19 20:38:27 Description does say: "This video is the first in a series of videos that teaches you Android programming using strictly Java**" Nov 19 20:38:29 but yeah, I'd recommend xml too - Android XML is pretty sophisticated. unless your religion bans the use of XML, you're generally better-off starting with it. Nov 19 20:42:22 And generally, a tutorial a bit newer :) Nov 19 20:43:01 hm he explains pretty good and has tons of videos out :/ Nov 19 20:43:15 anyone tried http://www.saikoa.com/blog/the_upcoming_jack_and_jill_compilers_in_android already? Nov 19 20:44:25 day but without XML you can't use a lot of features like easy translations, reusable layouts and all sorts of goodies and not using these actually makes everything harder Nov 19 20:44:51 :( i guess i look for another one then Nov 19 20:45:33 If a user seems to have a completely custom font that's replaced Roboto everywhere in my app, do I have any options other than bundling it myself? Nov 19 20:45:53 day try the ones of derek banas, they are quite good and should get you started Nov 19 20:46:24 Estel: maybe you can eplicitly set roboto for every textview Nov 19 20:46:36 should work unless the user has replaced the font file in the rom Nov 19 20:47:09 Yeah, I'm not sure what they've done. It's a test device, so I can check, but... D:. If someone wants to completely replace all their fonts, it's not my fault if the app breaks xD Nov 19 20:48:56 MistaMagoo: i have integers defined now so that numColumns is 2 for portrait, and 4 for landscape. any idea why the gridview wont redraw after rotation? Nov 19 20:50:58 in xml? Nov 19 20:52:26 Is there a way to make the dex limit bigger? Nov 19 20:52:35 freeone3000: no, you can workaround it though Nov 19 20:52:51 Estel: Any way that doesn't involve me building a separate binary blob, downloading it to the APK, and running a classloader? Nov 19 20:53:20 freeone3000: there are some nice utility things introduced in the latest support library? Nov 19 20:53:29 I suspect they do that behind the scenes Nov 19 20:53:34 freeone3000, use the multidex compat Nov 19 20:56:35 freeone3000: but first hook up proguard, if you haven't. it might be able to eliminate enough methods to make multidex unnecessary. Nov 19 20:57:51 Groxx: Can't run proguard because Windows has a command-line limit of 4k characters per command. Nov 19 20:58:01 I am seeing a lot of libart.so crashes from my app's crash logging service -- but when I run my app on my Nex 5 w/ Lollipop everything runs fine...I've run CheckJNI and all seems ok. I'm quite at a loss to diagnose this. Any ideas/help? Nov 19 20:58:09 freeone3000: wait, what? o_O Nov 19 20:58:23 Estel: My proguard command ends up larger than 4kb due to the libraries used. Nov 19 20:59:06 freeone3000: ugh. might it work inside powershell? you can run it by hand if necessary. Nov 19 20:59:14 Groxx: It's an OS limit. Nov 19 20:59:27 Doesn't work in powershell, doesn't work via CreateProcess. Nov 19 21:01:06 As for multidex: https://developer.android.com/tools/support-library/features.html#multidex says to use com.android.support:multidex:1.0.+, but this artifact doesn't seem to be in maven central. What repo needs to be referenced? Nov 19 21:05:45 freeone3000: sorry, wish I could help. I suspect proguard has some setup that would work (maybe making a master-proguard-file by hand, since you can run `proguard file.cfg`? maybe that has the same problem), but haven't done any multi-dex personally. Nov 19 21:06:06 hey all, i am having trouble with a RelativeLayout. http://pastie.org/9730893 my last inner view should be lined up with the right edge, but instead is overlapping my first view Nov 19 21:07:46 interesting; jack & jill http://www.saikoa.com/blog/the_upcoming_jack_and_jill_compilers_in_android Nov 19 21:08:31 skrite: probably because the two listviews are both fill_parent. the alignment doesn't make much of a difference if they're both filling the whole area. Nov 19 21:09:28 ah... thanks so i should go with wrap_content in that first one? Nov 19 21:09:42 i can't help but think this is good, but google could create a whole new mess of incompatibilities Nov 19 21:09:59 skrite: you might be able to fix it with `android:layout_toLeftOf="@+id/summary_site_main_stats"`, and maybe toRightOf for the other listview, but I haven't tried to do this specifically. Nov 19 21:10:39 ah, sorry, switch toLeftOf and toRightOf. Nov 19 21:10:48 ah.. thanks, Groxx Nov 19 21:12:22 looking great now, thanks Nov 19 21:14:41 Android 5 doesn't even ship with Dalvik right? Nov 19 21:15:05 g00s: Looks interesting. Seems the tools state is in such rapid/agile/nonstable development tho Nov 19 21:16:07 ok i got android sdk, java, and eclipse Nov 19 21:16:08 am i set? Nov 19 21:16:12 i felt better after reading "Since the toolchain still supports both java source code and java bytecode, existing libraries can be used without problems." Nov 19 21:16:42 Bitgod: probs need gradle/maven Nov 19 21:16:50 uhm wtf is tha and why? Nov 19 21:17:19 would suggest android studio instead of eclipse Nov 19 21:17:39 wow, gradle-plugin 0.14.3 is DOA Nov 19 21:17:48 with AS 0.9.3 anyhow :) Nov 19 21:18:03 is there an alternative to using Intent to pass data between activities? Nov 19 21:18:13 https://code.google.com/p/android/issues/detail?id=80003 Nov 19 21:19:48 ChrisUK: http://developer.android.com/guide/faq/framework.html#3 Nov 19 21:20:34 which bit? Nov 19 21:20:56 oh ok thanks Nov 19 21:21:15 I had thought about static fields? Nov 19 21:21:23 would you say that is bad style? Nov 19 21:21:50 ChrisUK: inevitably you have _some_ global state in an application. using it too much is bad style, but it's not inherently bad. Nov 19 21:22:18 you can only have one instance of an activity opened at once? Nov 19 21:22:33 main surprise with static fields is that your process may die and restart, so it might not be initialized when you expect it to be. Nov 19 21:23:10 are you serious? Nov 19 21:24:11 largely. a common one: say activity A launches activity B. B expects A to set a static field somewhere. if the user leaves the app for too long, and resumes from the "recent" apps list, the process may have died. Android will create activity B from scratch, but there won't be an A yet. Nov 19 21:25:14 how often does than happen? Nov 19 21:25:55 processes tend to die after ~30 minutes of the user doing something else, or running low on memory, or on L after a device reboot (since the recent apps list is saved between boots) Nov 19 21:26:00 there aren't any hard rules though Nov 19 21:26:01 yeah, don't use static fields to pass data between activities :) Nov 19 21:26:11 hi all. i have a problems with DNS resolution since updating to 5.0 Nov 19 21:26:21 the android docs push you heavily towards putting all data in intents and/or savedInstanceState for this exact reason. Nov 19 21:26:32 ok ill try android studio Nov 19 21:26:34 nslookup of hostname works, ping to IP works, but ping to hostname does not: http://pastebin.com/raw.php?i=GSbpbBDd Nov 19 21:26:42 i dont like the 'emulators' android have on pc Nov 19 21:26:47 too slow even on a i7 Nov 19 21:26:53 so ill use bluestacks Nov 19 21:26:54 ok ill stick with intents Nov 19 21:27:08 Bitgod Nov 19 21:27:11 Bitgod: have you installed intel's HAXM and used the x86 emulators? Nov 19 21:27:12 wtf you doing here man Nov 19 21:27:14 the phone (Nexus 5) is basically unusable, as any app is usable to connect anywhere Nov 19 21:27:19 you up on android dev now? :) Nov 19 21:27:36 is there anything else you should definitely not do in an app Nov 19 21:27:59 while (True) Log.d("BLAH", "BLAH!"); Nov 19 21:28:02 Groxx, no but bluestacks works fine too Nov 19 21:28:11 ^ not recommended ;) Nov 19 21:28:13 i even can share a foldeer on my hd to dump a apk in Nov 19 21:28:19 jfreak: wtf that is my first app Nov 19 21:28:30 I was going to sell it on play store Nov 19 21:29:12 <_Auron_> JF: lol Nov 19 21:29:38 ChrisUK: I think I installed that one… Nov 19 21:29:51 5 stars, works as advertised Nov 19 21:30:53 ChrisUK: tbh the process-restart behavior is probably the most surprising / intrinsic thing that I see people get tripped up by. there are plenty of other surprises, like all platforms, of course. Nov 19 21:31:19 ChrisUK: oh, and be sure to rotate your phone while developing. it's an easy test to make sure you're saving instance state properly. Nov 19 21:31:59 most other surprises tend to be pretty visible while developing the app. Nov 19 21:32:34 Hey, are there many examples of OSS small sample Material apps and backported material design controls? The only one I can see is iosched and even that isn't a very full material design that's encouraged in the docs Nov 19 21:32:59 is there a way to decode data sent from ios that used archivedDataWithRootObject in java? Nov 19 21:33:06 This is the lamest, does anyone know much about the androidTest build target? I'm trying to separate out my junit4 tests and the android instrumentation tests into different targets/run scripts Nov 19 21:33:44 I use robolectric for the junit4 tests, and want to run those more frequently than my ActivityInstrumenationTest2<*> tests Nov 19 21:35:03 ok thanks alot Groxx Nov 19 21:35:30 how does rotate phone make sure instances are working? Nov 19 21:35:55 ChrisUK: Because when rotating your phone, your view is destroyed and recreated. Nov 19 21:36:13 oh ok thanks Nov 19 21:36:34 ChrisUK time to rezd the docs Nov 19 21:37:42 hwrdprkns do you have a reference project where you have unit testing working with espresso? I've consistently failed to achieve this Nov 19 21:38:50 MistaMagoo: No I've only gotten this far: All my tests live in the androidTest directory and I can exclude my instrumentation tests by directory and successfully run `gradle testDebug`... Nov 19 21:39:08 How complex of an app would it be to play the usb sound from my laptop on my android phone so that I could plug headphones into my phone? Almost like using my phone as a usb soundcard Nov 19 21:39:33 But when I try and run `gradle connectedAndroidTest` it tries to proguard the androidTest project and fails bc it tries to proguard robolectric and junit (and I can't seem to write enough rules to get around it — there must bea simpler way) Nov 19 21:40:20 I may just have to wait until "Best test support' comes out post-1.0: http://tools.android.com/tech-docs/new-build-system/roadmap Nov 19 21:47:09 if i pass a value to an async running function, how do i use that value within the function. Im staring at an example and ive no idea hot its done. THey just seem to use the same variable name that the parentfunction uses without any passing/ re assigning. Nov 19 21:47:37 function().execute("this is a string"); how do i use that? Nov 19 21:47:55 / reassign to a new variable within the function Nov 19 21:49:22 day: It's a parameter to the execute method, in your example. Nov 19 21:52:03 hm. In C i would write the variable name within the function paranthesis, but no idea how i could do it in this specific case http://dpaste.com/2GSZK03 Nov 19 21:53:01 day: params[0] will contain your string. you can also use `.execute("one string", "another", "etc")` and have params[1], etc. Nov 19 21:53:29 day: if the class is inline, you can also make testvar final: `final String testVar = "whatev"` Nov 19 21:54:28 guyd Nov 19 21:54:35 Groxx: oh. That does work? Because i have the TextView text; line within onCreate and it doesnt work in the AsyncTask Nov 19 21:54:41 guys i have android studio installed and my first project created Nov 19 21:54:52 im using a nexus 7 AVD but when i go to press run Nov 19 21:54:55 i get no emulator? Nov 19 21:55:04 in 7days your app will be finished Nov 19 21:55:17 Bitgod: Launch the emulator first through the AVD manager. Nov 19 21:55:33 free: where is the AVD manager uin studio? Nov 19 21:55:39 Bitgod: It's a separate program. Nov 19 21:55:43 day: the class would have to be in the same scope. hard to say without seeing more, and I suspect the main problem would be "you need to learn more about Java" :) stick with params[0] for now, the "…" in "String…" is just the varargs of Java. Nov 19 21:56:15 free: its in Tools => Android Nov 19 21:56:19 i got it open Nov 19 21:56:23 it lists the AVD Nov 19 21:56:25 Groxx: yes i suspected a scope issue, thats why i was amazed about your sentence that it would work Nov 19 21:56:27 if i have an app that needs a lot of data can i associate this app with a google drive account so that the app can download the data instead of having it shipped inside the apk? Nov 19 21:56:29 i hit the green play button Nov 19 21:56:31 and i got nothin Nov 19 21:56:35 if so, can i give the app read only access? Nov 19 21:56:54 I440r: read about OBB files :) Nov 19 21:56:58 Bitgod: Okay. So you've launched the AVD. Start the emulator through AVD Manager. Nov 19 21:57:06 OBB files.... rtfm time :) Nov 19 21:57:10 how did i launch the AVD? Nov 19 21:57:12 I440r: http://developer.android.com/google/play/expansion-files.html Nov 19 21:57:14 i dont even SEEE it running Nov 19 21:57:16 the AVD Nov 19 21:57:29 Groxx: thanks a lot :3 it works Nov 19 21:57:30 Bitgod: You probably didn't. Click the "Start" button on the right-hand side after you've set up your emulator image. Nov 19 21:57:31 day: lots of people make asynctasks via inline anonymous classes, where the 'final' route would work. that's the `new AsyncTask() { doInBackground() etc }.execute()` code that you're likely to see. Nov 19 21:57:39 i did free Nov 19 21:57:49 a box comes and goes FAST Nov 19 21:57:53 literally i cant see it Nov 19 21:58:38 Bitgod: Okay. You're having a problem launching qemu. Try running `emulator` as described on http://developer.android.com/tools/devices/managing-avds-cmdline.html Nov 19 21:58:46 I have a custom background for a listview item, and I'm attempting to add an android lollipop ripple. However it appears the ripple covers the whole item, not just the inner section of the background. The custom listview item and it's accompanying background is at https://gist.github.com/rymate1234/303986c969afd5c86fcb - any way of fixing it? Nov 19 21:58:55 Bitgod: You should get a more descriptive error. Nov 19 21:59:03 ok Nov 19 21:59:09 Groxx: btw. how much does 'pc java' differ from 'android java'? Should i just learn from standard java books, or would that be inefficient? Nov 19 21:59:29 do i open my windows command prompt? Nov 19 21:59:45 does this allow me to charge for the data? i mean. lets say (not a contrived example) i have a game but im releasing part 1 as free Nov 19 21:59:49 day: for nearly anything you're likely to do: it doesn't. at all. it's just an older version of Java (basically 6). Nov 19 22:00:06 i want you to pay for parts 2, 3 and 4 but the APK is the same, only the data is different. Nov 19 22:00:07 C:\Users\Bitgod\AndroidStudioProjects\Tests.ScreenColor\app>android list targets Nov 19 22:00:07 'android' is not recognized as an internal or external command, operable program or batch file. Nov 19 22:00:42 Bitgod: It's in the tools/ folder where you installed your SDK. Nov 19 22:00:49 day: technically it's a different bytecode format, so runtime code generation with "pc java" libraries won't work. and some of Sun/Oracle's fancier optimizations don't exist (weaker optimizations iirc, no memory compacting (so memory fragments), etc). Nov 19 22:00:58 o Nov 19 22:01:45 day: there are other details, but they're really low level details in nearly all cases, and you just won't notice them. a far bigger problem is just keeping memory use lower since it's on a mobile phone. Nov 19 22:01:45 Groxx: yeah. the different api and librarys are what i had in mind. The general syntax is obviously the same. But i wasnt sure how bad those differences are Nov 19 22:02:34 day: you write "real" java code, part of the apk-building chain involves converting .class into .dex. nearly anything that works on .java or .class should still work Nov 19 22:04:29 day: as an example, I use retrolambda to get `() -> blah;` lambda syntax while writing for Android, and I love it. project lombok also works (fancy .class rewriting). as does proguard, which isn't android-specific. Nov 19 22:04:56 i also installed Intel® HAXM Nov 19 22:05:08 freeone3000, studio is using emulator.exe Nov 19 22:05:17 can i change this to emulator-x86 somehow? Nov 19 22:05:18 Bitgod: Yep, that's the emulator program. Nov 19 22:05:23 Bitgod: Why? Is your AVD intel-based? Nov 19 22:05:36 no but its not working via command line either Nov 19 22:05:41 so i give up on nexus 7 Nov 19 22:05:48 i use *(array+i) to hop through my tables :P Nov 19 22:05:54 Bitgod: What error does it give on command-line? Nov 19 22:06:23 and screw those pesky -> *(ptr).varible Nov 19 22:06:40 So I'm depending on jetty 9 for websocket clients. I need both jetty-util and jetty-websocket-client. They both include an about.xml. However, if I pass in true into maven-android-plugin, I end up without java.lang.management.ManagementFactory. How can I include ManagementFactory but not have dex error on duplicate html files? Nov 19 22:06:41 haha Nov 19 22:06:46 I just wish java had a better type system Nov 19 22:06:51 fun aside. I need to learn the oop stuff Nov 19 22:06:59 I:\Repositories\Big Apps\sdk\tools>emulator-x86.exe -avd Default_Nexus_7 Nov 19 22:06:59 NAND: could not write file C:\Users\Bitgod\.android\avd\Default_Nexus_7.avd/user Nov 19 22:06:59 data-qemu.img, No space left on device Nov 19 22:07:03 WHY is it using my C: drive?! Nov 19 22:07:07 ive no idea about it. I dont even get why it exists Nov 19 22:07:12 my C is 64GB SSD and its already 99% full Nov 19 22:07:16 i want to use I: Nov 19 22:07:23 Bitgod: Then you shouldn't have installed windows. Nov 19 22:07:27 truth Nov 19 22:07:31 Bitgod: Move your home directory to your I:\ drive. Nov 19 22:07:42 the .android folder? Nov 19 22:07:51 if you're using emulator by hand, you can probably supply a full path to -avd or something. or maybe there's a config file somewhere. Nov 19 22:07:54 how do i move my home folder? Nov 19 22:07:55 oO_ Nov 19 22:08:05 Bitgod: No, the "C:\Users\Bitgod" bit. Windows has a Control Panel utility to reassign addresses of known folders. Nov 19 22:08:41 Bitgod: Also, please note that emulator-x86 will only work for Intel AVDs, so if you plan on using emulator-x86 and Intel HAXM, you need to create and use an Intel-based AVD. Nov 19 22:08:42 sounds fun Nov 19 22:08:48 it better not fuck over my windows 8 Nov 19 22:08:55 cuz i have skype ,etc on it too Nov 19 22:08:58 i need for work Nov 19 22:09:02 also photoshop heh Nov 19 22:09:07 Bitgod: Oh god, you don't know how to use your own computer. Nov 19 22:09:16 "need for work" = "I have backups", obviously. right? Nov 19 22:09:31 groxx, wrong Nov 19 22:09:35 It's a CSIDL folder reassign. Scarier stuff happens when you enable roaming profiles with activedirectory. Nov 19 22:09:36 i dont have $ for ext hd;s right now Nov 19 22:09:42 i have a kid to take care of cuz his mom is an ass Nov 19 22:09:55 ill attempt it Nov 19 22:09:56 brb Nov 19 22:10:01 (Well, really scary stuff *does* happen, but... that's beside the point.) Nov 19 22:10:49 irc never fails to entertain Nov 19 22:10:55 :D Nov 19 22:11:39 http://www.zdnet.com/dont-move-your-windows-user-profiles-folder-to-another-drive-7000022142/ Nov 19 22:11:43 well im fucked Nov 19 22:12:00 Bitgod, backup somewhere? Nov 19 22:12:10 hwrdprkns lol ikr Nov 19 22:12:24 #android-dev > all Nov 19 22:12:27 can you request you program is shut down totally when the phone powers off? Nov 19 22:12:28 guess im not using emulators Nov 19 22:12:28 :/ Nov 19 22:13:21 AVD or geany motion ? Nov 19 22:13:32 hwrdprkns, indeed Nov 19 22:13:36 Bitgod: that truly sucks. seems useful for any ssd/hdd blended system :( Nov 19 22:13:47 yeah, try genymotion Nov 19 22:13:53 if you really need a fast emulator Nov 19 22:14:32 who would want a slow emulator? Nov 19 22:14:39 thats like playing SNES Games at 1fps Nov 19 22:14:39 qemu is more accurate. Nov 19 22:14:47 groxx: so basically you should never assume another activity is there? Nov 19 22:14:52 Really, you'd test on an actual device if that matters, though, so yeah. Nov 19 22:14:57 google needs to dump their emultor Nov 19 22:14:59 and use qemu Nov 19 22:15:07 not everyone has a tablet/phone Nov 19 22:15:08 Bitgod: They *do* use qemu. Nov 19 22:15:08 i dont Nov 19 22:15:30 oh Nov 19 22:16:09 Bitgod: You need an android device to test certain things the emulator does not support or does not easily support, such as GPS. Android phones can be gotten for as little as $50. Nov 19 22:17:20 ChrisUK: as a good general rule to make stable apps: yes. it may not happen often, but it does happen, and it's rare while developing so it tends to go unnoticed. Nov 19 22:18:05 ChrisUK: if it's important, save it to disk, or put it in the intent/savedInstanceState/fragment arguments. Nov 19 22:19:09 I guess when android recreates the activities it doesnt know which were created first Nov 19 22:19:20 can you assume private static members are ok? Nov 19 22:19:36 ChrisUK: it's also a good thing to keep in mind while reading about the weird setup of some parts of android. like how you don't just add arguments to fragment constructors, you instead create a Bundle and put the arguments in there. you do that so the system can re-construct your app after the process dies. Nov 19 22:19:48 I got an exception, really strange. I got a download, performed with "new java.net.URL(urldisplay).openStream();". It's working fine with Android <= 4.4, but on Android 5, it's only working on Wifi. While using 3g or LTE, I got this exception : http://pastebin.com/z1dwJrgR Nov 19 22:20:02 any idea ? Nov 19 22:20:47 ChrisUK: depends on what you mean by "OK" :) Java is a "safe" language in most ways, so it might be null, but it won't be e.g. a pointer to a random location. Nov 19 22:21:04 will it be the same value as it was before shut down?> Nov 19 22:21:12 ChrisUK: nope. it'll go back to its default value. Nov 19 22:21:13 or will it get wiped? Nov 19 22:21:33 so what is saved? Nov 19 22:22:25 why doesnt it just restart the app all together Nov 19 22:22:36 or does it just recreate the acitivity stack? Nov 19 22:22:56 so it says A,B,C were open when I shut down so puts ABC back on? Nov 19 22:23:01 ChrisUK, Groxx the moment I realized that Android was using Bundle data and Argument data when reconstructing was one of those clouds parting laaa moments Nov 19 22:23:08 blusky: the exception is pretty simple; the reason you're getting it however is unclear to me. As it is to you, I'm sure. Nov 19 22:23:15 ChrisUK: tl;dr: the activity stack still exists, the activities just aren't created yet. they'll be created if you e.g. hit "back" to go back down to B. Nov 19 22:23:25 dragorn: kinda yes :) Nov 19 22:23:38 blusky: It's to a publicly-accessible network resource? (ie, not on the local network)? W/ a public DNS name or whtnot? Nov 19 22:23:54 yup Nov 19 22:23:58 it's on the internet Nov 19 22:24:14 so what can you assume Nov 19 22:24:17 same hostname than the rest API (but different port) Nov 19 22:24:24 that the normal members will be kept after shut down? Nov 19 22:24:25 (used by my app) Nov 19 22:24:28 ChrisUK: android 101 that I wish they would write down somewhere painfully obvious: when the user leaves the app, you get a short window to save data (onSaveInstanceState, basically), and then your process just sits idle. When memory is tight, Android essentially calls `kill -9 your_app_process`. it's gone, you have no warning. Nov 19 22:24:32 blusky: huh. Try dumping some random debug stuff and see if there's a weird DNS resolution problem happening? Nov 19 22:24:51 don't think so, on the HTTPS port, it's working fine Nov 19 22:24:53 ChrisUK here is a talk about state restoration: https://www.youtube.com/watch?v=ekN2zvFytZk Nov 19 22:25:07 blusky: any chance your mobile provider is being hinky w/ your ports and filtering you? Nov 19 22:25:08 ChrisUK: so whenever you make a component like an Activity, Service, Fragment, or a few others, you do so with an Intent that can be saved by the OS. The OS then starts your activity/service/whatev for you. that way it can restart it if needed. Nov 19 22:25:21 it's working with android 4.4 and same provider Nov 19 22:25:25 blusky: huh. Nov 19 22:25:34 ok thanks alot Nov 19 22:25:39 blusky: that narrows down most of my ideas unfortunately. Nov 19 22:25:45 I need to know this Nov 19 22:25:46 :/ Nov 19 22:25:53 I am just assuming this works like normal java Nov 19 22:26:02 normal java + semi-hostile environment :) Nov 19 22:26:05 any idea how to change the timeout ? Nov 19 22:26:31 ChrisUK: the Java code is java. the lifecycle is fairly unique, for good and bad. confusing to start, definitely. Nov 19 22:26:34 ChrisUK: developer.android.com, "app lifecycle" section Nov 19 22:26:49 they lay out pretty clearly when you can expect to run and when you can expect to keep data Nov 19 22:27:18 blusky: depends on the io library; I've been using okhttp for a while now so i dont' remember the specifics Nov 19 22:27:31 blusky: I forget if you set it on the http object or on the socket Nov 19 22:28:26 blusky: HttpConnectionParams.setConnectionTimeout(httpClient.getParams(), EMAIL_SOCKET_TIMEOUT_MS); Nov 19 22:28:32 ok I shouldnt have skipped this bit lol Nov 19 22:28:38 blusky: you make a http conenction params; or at least, I always did Nov 19 22:29:27 ChrisUK: haha, nope :) somewhat understandable, but it's pretty crucial. Nov 19 22:29:58 ok, gonna try it, thx :) Nov 19 22:33:03 what percentage of phones would you esimate have Google Maps... Nov 19 22:33:04 ChrisUK: oh, thought of one more surprise to be aware of: don't save Context objects anywhere. they're basically runtime config data, and it can change at runtime (e.g. if they switch the system's language. if you stored it, you are probably using the old value). that's why they're passed into so many methods - so you always have up-to-date info. Nov 19 22:34:41 Context objects are also kinda core to Android, and another of those things that are often confusing, poorly understood, and a source of subtle bugs if misused (basically: storing somewhere) Nov 19 22:35:19 mattblang: maybe 50%? there's a lot of China out there. Nov 19 22:35:40 Groxx what about if I say just a Maps app in general Nov 19 22:36:14 pretty much everything if your're speaking about the playstore devices I'd imagine Nov 19 22:36:24 every device* Nov 19 22:36:28 mattblang: almost all, I would think. they probably don't all accept the same Intents though. (hopefully the simple ones are widespread though) Nov 19 22:36:43 play store devices exclude china, for the most part. Nov 19 22:36:47 oh man Nov 19 22:36:52 activity Foo and activity Bar Nov 19 22:36:57 lol Nov 19 22:37:07 have a parent activity called ParentToFooAndBar Nov 19 22:37:12 (foo and bar replacing the actual names of course) Nov 19 22:37:24 aww Nov 19 22:37:31 also Nov 19 22:37:41 I don't like it when activity classes don't have Activity in the name Nov 19 22:37:49 so Settings is the Settings activity... Nov 19 22:37:58 is that common in the android world? Nov 19 22:38:01 or generally frowned upon? Nov 19 22:38:09 I usually see xActivity, fwiw Nov 19 22:38:13 Yeah Nov 19 22:39:09 Groxx, Memorion My app is localized to US for the most part, so shouldn't have much China traffic (zero at the moment). I'm sick of maintaining this embedded Google Map, so I was thinking of just launching ACTION_VIEW intent with geo:lat,lon Nov 19 22:40:00 mattblang: US / europe is probably like 95+%, yeah. tbh I usually prefer using the external maps app anyway. Nov 19 22:40:17 I'm a programmer though - that definitely biases my desires. Nov 19 22:40:32 mattblang where do you sell/uploaded it? if only in the playstore I think you can assume maps is preinstalled everywhere Nov 19 22:40:35 Groxx yeah, I felt the same way tbh. Honestly felt that way Nov 19 22:41:06 Memorion Play and Kindle, but I'm not too concerned with Kindle Nov 19 22:41:56 Groxx One thing I love about Android is the ability to pass flow to other apps very easily and concisely, so hell, why not tap into it. like you mentioned, I woudl be biased though too haha Nov 19 22:42:33 mattblang the kindle probably has a way to receive a similar intent as gmaps, if not exactly the same Nov 19 22:43:33 Memorion yeah, probably. I'll just launch browser if mapIntent.resolveActivity(getActivity().getPackageManager()) comes back null anyway. so not too worried about it Nov 19 22:43:51 Memorion, Groxx was mainly just thinking about what to put in my else, probably just a browser intent Nov 19 22:44:05 mattblang: sounds great to me, resolveActivity is something it seems too many apps don't do :) Nov 19 22:44:28 mattblang: too many just .startActivity(yoloIntent); //crash Nov 19 22:50:22 Groxx yeah, sweet. thanks for your input! Nov 19 22:51:10 biased input! but happy to provide :) Nov 19 22:56:54 pfn https://www.naytev.com/jobs/fullstack Nov 19 22:57:09 any RIL folks around Nov 19 22:57:16 g00s, applying for it? Nov 19 22:57:42 pfn no, they were looking for a scala guy Nov 19 22:57:53 Anyone know / have insigh into how an Observable's scheudler is set before observeOn is called? Nov 19 22:58:09 g00s, indeed, thanks for the link, I'll look into them in a couple months Nov 19 22:58:23 ugh, proguard 5 is fucking up my gson stuff :( Nov 19 22:59:16 Pieces - are we talking App Observables? Nov 19 23:00:04 it's funny how they call it a "netflix" vacation policy Nov 19 23:00:22 everyone offers "unlimited" vacation these days; of course, most people are never capable of taking vacation, so it just lowers a company's PTO burden Nov 19 23:00:44 i mostly have found that they get put to the back of the priority list Nov 19 23:01:26 I have had some medium priority services with higher priority threads watching them and have them be a bit slow Nov 19 23:01:40 what do you guys think about xamarin Nov 19 23:02:11 if trying to do an application that isnt super critical on this timing, it can be very useful Nov 19 23:02:32 wow this Required Skill: "Social creature, both in personality and understanding of social networks" Nov 19 23:02:38 heheh Nov 19 23:03:06 retrofit.RetrofitError: LocationApi.nearbySearch: Only one HTTP method is allowed. Found: GET and GET. Nov 19 23:03:10 I am so confused halp Nov 19 23:03:57 post code, you are using 2 Nov 19 23:04:43 or you're swallowing another error leaving Retrofit in a bad state Nov 19 23:05:06 http://pastebin.com/YLbM7pYu. Literally just calling it with empty callback. Nov 19 23:05:09 V/Promise ( 6262): java.lang.ClassCastException: com.google.gson.internal.LinkedTreeMap cannot be cast to com. Nov 19 23:05:11 I hate that exception Nov 19 23:05:19 and it only occurs when I'm using proguard 5... Nov 19 23:05:20 awesome... Nov 19 23:06:00 ThymeCypher: and it is calling the error callback when you invoke it? Nov 19 23:06:17 Hey anyone really familiar with RIL Nov 19 23:06:24 like more than just passing Nov 19 23:06:33 http://pastebin.com/V6MiXAR6 More deets. Nov 19 23:06:34 Yep. Nov 19 23:06:48 * pfn tries gson 2.3 Nov 19 23:07:12 I am able to do a network initiated bearer and have it be nice as well as be able to pull the EPS_BEARER_ID Nov 19 23:07:15 from the device Nov 19 23:07:28 What's odd is when it hits line RestMethodInfo:131, suddenly requestMethod is set and I'm like wat. Most likely me missing something. Nov 19 23:07:36 hmm, nope, 2.3 doesn't fix it :( Nov 19 23:08:03 Since this is a new GTP tunnel - how do i map the Data through that GTP tunnel only Nov 19 23:08:08 I have the full QMI_RIL lib set as Qcomm provides Nov 19 23:08:13 although prebuilt... like much of what they provide Nov 19 23:08:20 Is there a way to get dex into a "just pick one of them" mode? I keep getting duplicate file errors - I don't care which is included, just that one of them is, and the build proceeds. Nov 19 23:08:47 pfn did you see that article about jack & jill ? Nov 19 23:08:51 g00s, probably not Nov 19 23:08:58 ThymeCypher: the problem is that you are using @Path and you don't have any path replacements in your URL Nov 19 23:09:02 pfn https://www.saikoa.com/blog/the_upcoming_jack_and_jill_compilers_in_android Nov 19 23:09:26 when running over strictly the Default mobile iunterface its fine with one most of the time, but when wanting to do multiple and generation on different APN interfaces... its not so happy Nov 19 23:09:40 JakeWharton, doh. Is this a new path? I don't recall getting this exception last time I made that stupid mistake. Nov 19 23:10:12 The first exception passed to failure would have said this Nov 19 23:10:29 and it would have had getKind() == Kind.UNEXPECTED and you should crash your app Nov 19 23:10:36 you should crash your app on all unexpected errors Nov 19 23:10:57 This device was made by Foxconn, it does plenty of crashing for me... Nov 19 23:11:22 Device literally just restarted because I stopped debugging, hah. Nov 19 23:12:46 g00s, yeah, nothing terribly interesting to me... pretty unfortunate if they make it the defacto/only toolchain, though Nov 19 23:12:55 ok, so as you all advised me to use picasso for downloading my pitures, I tried it Nov 19 23:13:02 and I have a random behaviour Nov 19 23:13:18 some pictures are downloaded, some aren't, and if i reload the app Nov 19 23:13:26 not downloaded picture became available Nov 19 23:13:29 but yeah, damnit proguard5, wtf, how does it break gson... I don't get it... Nov 19 23:13:36 but then again, my object graph is really complex... Nov 19 23:15:01 I have a BaseContainer; with field "T content", then each of my models M have class M { static class Container extends BaseContainer } Nov 19 23:15:20 in proguard 5, gson assigns a LinkedTreeMap to the content field, proguard 4, it assigns M as expected Nov 19 23:15:25 How do you fix an issue like https://gist.github.com/freeone3000/eae4482b160729950007 ? They're completely separate libraries, there's no actual duplication, but they weren't intended for android. I'm using maven to build, and there doesn't seem to be anything to fix this issue? Nov 19 23:15:49 use a task to coalesce all your jars into a singlejar Nov 19 23:16:01 oh, that's apk Nov 19 23:16:12 maven has a pickfirst/excludes config option, use it Nov 19 23:17:07 pfn: They're not the same artifact. It's the same filename in two different artifacts. Nov 19 23:17:14 I know Nov 19 23:17:17 use the maven option Nov 19 23:17:22 in the android plugin Nov 19 23:18:47 pfn: https://code.google.com/p/maven-android-plugin/wiki/Documentation keeps giving me 404s when I try to access the maven "usage" page. Nov 19 23:18:55 yeah, shitty plugin Nov 19 23:18:59 :p Nov 19 23:20:41 actually, looks like ghpages is broke Nov 19 23:21:41 freeone3000, extractDuplicates true Nov 19 23:22:07 or excludeJarResources Nov 19 23:22:19 https://raw.githubusercontent.com/simpligility/android-maven-plugin/gh-pages/apk-mojo.html Nov 19 23:22:25 dunno why the ghpages are broke Nov 19 23:23:09 pfn: Running with true causes android-maven-plugin to not include java.lang.management.ManagementFactory, required for ACRA. Trying with excludeJarResources. Nov 19 23:23:45 extractDuplicates shouldn't remove classes... Nov 19 23:23:49 and acra requires that? eh? Nov 19 23:24:27 Does anyone know how to get all of the information about what is being sent and received on my Android device? Nov 19 23:24:40 Like monitor the internet activity. Nov 19 23:24:55 Ok so no one who is here is FOR-RIL Nov 19 23:25:43 pfn: It crashes when ACRA attempts to load the ManagementFactory with a NoClassDefFoundError, yes. Nov 19 23:28:59 acra doesn't use that.... Nov 19 23:30:08 guys, am can i use the thing? Nov 19 23:30:13 using onClick? Nov 19 23:33:27 Muchoz: depends on what you need. running a proxy (especially something like mitmproxy to read SSL traffic) will tell you a lot. other things typically need root, unless it's just your app you want to observe. Nov 19 23:34:11 Groxx, it's my app but I'm using a library for something and I want to move it serverside but there isn't any documentation on the requests it does and it should be fairly simple. Nov 19 23:36:01 I guess I'll just root my phone and do it Nov 19 23:39:11 Muchoz: not sure, unfortunately. I might recommend mitmproxy.org before rooting (unless you want to root), since it'll probably capture everything you need. if it's not http traffic though, you're basically stuck rooting. Nov 19 23:39:16 as far as I know, anyway Nov 19 23:39:51 guys Nov 19 23:39:59 Question Nov 19 23:40:05 findViewById() is returning float Nov 19 23:40:05 Answer Nov 19 23:40:06 o.o Nov 19 23:40:15 is using a layer list in a selector to dim an image on state_pressed a common practise? Nov 19 23:40:45 I just tried that and it worked fine Nov 19 23:40:53 Groxx, that looks cool. Do I set the proxy to my computer's IP then? Nov 19 23:41:07 And install the certificate Nov 19 23:42:08 Muchoz: yep. It's not too hard, does a lot, and is free. I watch the traffic of a lot of apps :) Nov 19 23:42:30 Groxx, thanks. I'll use that then. I'll just install it globally. Nov 19 23:42:43 Spared me from rooting my device ;D Nov 19 23:42:45 Muchoz: when you start the proxy up, you _probably_ want to press "o" then "u" - that replaces ssl certificates so most apps won't notice. (Twitter is one that does) Nov 19 23:43:13 Groxx, hehe. I'm using it for Twitter's Fabric Nov 19 23:43:53 it'll probably work, though I haven't tried that specifically :) Twitter-the-app uses certificate pinning though, so you can't read its traffic. Nov 19 23:44:27 Groxx, we'll see what happens. Nov 19 23:44:35 I want to put it server side. Nov 19 23:44:45 The security is horrible when implementing Fabric. Nov 19 23:45:38 out of curiosity: what in particular? I haven't looked closely yet Nov 19 23:45:44 pfn: Awesome, excluding resources worked! Nov 19 23:48:17 Muchoz: whups, forgot to name-tag the previous message. what's the security problem? I haven't checked out Fabric stuff yet, would definitely be curious about flaws. Nov 19 23:49:11 If you use the SDK and publish it, every app will have the same consumer key and secret just out there. Then if you want to check it serverside, you use those keys. Nov 19 23:49:14 Groxx, Nov 19 23:49:31 + I want to know their phone number Nov 19 23:49:49 It'll also not make me have to do some other stuff Nov 19 23:50:01 Muchoz: ah. yeah, oauth has that problem in general. Nov 19 23:50:32 Groxx, horrible. I kept sending mails about it and they just send me to a forum post about complaints. Nov 19 23:50:35 They're fucking retarded. Nov 19 23:51:20 Muchoz: there's really no way around it, aside from either proxying the requests (like you're doing), or signing requests server-side for the app to submit by itself (like some of Amazon's things do, like signed file uploads) Nov 19 23:53:52 gradle plugin 0.14.4 Nov 19 23:55:37 Groxx, let's see if I can... Nov 19 23:56:26 ok so i just created an android gradle project in intellij idea 14. it does not seem to have creted a AndroidManifest.xml Nov 19 23:56:36 has that file been deprecated in gradle projects? Nov 19 23:57:15 I440r: it's not in the top level directory Nov 19 23:57:21 it should be in... src? Nov 19 23:57:24 I don't recall Nov 19 23:57:42 AndroidManifest has definitely not been deprecated in gradle Nov 19 23:57:47 there is also no src, it created a "java" directory for the soruces. Nov 19 23:57:51 ill poke around Nov 19 23:57:51 ctrl+shift n -> AndroidManifest.xml :) Nov 19 23:58:05 find . -name "AndroidManifest.xml" Nov 19 23:58:16 Groxx, it says that I should check my WiFi now when I try to use it. It's not even trying a connection. Nov 19 23:58:34 But when I go to Google or whatever, it shows it just fine in the proxy. Nov 19 23:58:44 totally screwed up project tree. Nov 19 23:58:50 the old tree made sense lol Nov 19 23:58:53 ty found it Nov 19 23:58:58 Muchoz: press 'e', see if you have any error messages Nov 19 23:59:15 Groxx, SSL handshake error: The client may not trust the proxy's certificate. Nov 19 23:59:17 whats the best way to instantiate multiple versions of the same fragment in one activity and edit the layout of hte fragment? Nov 19 23:59:48 Muchoz: did you hit "o" then "u" ? it should say "no-upstream-cert" in the blue line. Nov 19 23:59:54 Groxx, yes Nov 20 00:00:08 Groxx, https://www.dropbox.com/s/ift8opeebjl5zfe/Schermafdruk%202014-11-20%2001.00.06.png?dl=0 Nov 20 00:00:29 Muchoz: :\ they might be pinning certificates. can't tell if I hope they do or not. Nov 20 00:01:33 unfortunately, if they are, I'm not sure what you can do to view the traffic. technically: override their network calls to copy the unencrypted calls, or replace their certificate with your mitmproxy one, or maybe something with root can bypass. Nov 20 00:01:49 Muchoz: are other https requests appearing in mitmproxy? Nov 20 00:01:53 Groxx, yes. Nov 20 00:02:00 Can't I use a transparent proxy? Nov 20 00:02:30 Muchoz: it is, basically. anymore transparent and you wouldn't see https request contents at all. Nov 20 00:02:51 Muchoz: I'll probably look at it more closely myself later, but unfortunately too busy at the moment to dive in deep :( Nov 20 00:03:00 Ugh Nov 20 00:03:07 How hard can it be to intercept something? Nov 20 00:04:19 Muchoz: If they're pinning their certificate (basically: ignoring the one mitmproxy tries to deliver, and using a hard-coded one), the easy options are basically gone. Next up is probably to decompile the fabric jar, and modify the code so you can dump the requests before they're encrypted. Nov 20 00:04:40 Muchoz: that is still an "if" btw. I'm not certain. It just seems likely because Twitter's main app does it. Nov 20 00:04:58 If I decompile the sdk, I can just do what I want Nov 20 00:05:02 I need those urls Nov 20 00:05:09 The strings will tell me enough Nov 20 00:05:17 yup. jd-gui might be enough for that Nov 20 00:05:32 well the ant build stressed this poor laptop almost to exhaustion. the gradle build is killing it Nov 20 00:06:46 Groxx, the thing is that I have no idea where the library is stored since it makes me download a plugin which does it all. Nov 20 00:07:09 Muchoz: ah, right. let me check my project. Which part of it are you using? I'm just using Crashlytics. Nov 20 00:07:53 Groxx, Digits Nov 20 00:08:22 android studio or eclipse? Nov 20 00:08:32 Groxx, found it: https://twittersdk.artifactoryonline.com/twittersdk/repo/com/digits/sdk/android/digits/1.0.1/ Nov 20 00:08:44 looks promising :) Nov 20 00:08:57 Is it the jar or aar? Nov 20 00:09:25 aar has resources, iirc. Nov 20 00:09:37 I'll use aar then Nov 20 00:10:14 yeah. you might need to unzip it or something to get at the internal .jar / .class files, but whenever you find them you can just open it in jd-gui and start poking around: http://jd.benow.ca/ Nov 20 00:10:36 I haven't tried modifying compiled code yet unfortunately, you're basically on your own there :) Nov 20 00:12:00 Groxx, I only get this: https://www.dropbox.com/s/avsfj6jet2gmfcw/Schermafdruk%202014-11-20%2001.11.50.png?dl=0 Nov 20 00:12:08 #smali ;) Nov 20 00:12:20 oh, it's probably a .class, not a .dex Nov 20 00:12:29 (This is the .jar, I couldn't select the .aar) Nov 20 00:13:10 Groxx, I'm a retard: it's a javadoc :p Nov 20 00:13:13 Hahahaha Nov 20 00:13:20 Muchoz: d'oh, that would explain it :) Nov 20 00:13:31 Muchoz: if you rename the .aar to .zip, you can just unzip it. in there is a classes.jar Nov 20 00:13:50 Groxx, ya found it by now thanks :p Nov 20 00:13:51 Wow Nov 20 00:14:33 wow, nice of them to not obfuscate their code Nov 20 00:14:47 Groxx, beautiful! https://www.dropbox.com/s/5ytrczs11974odg/Schermafdruk%202014-11-20%2001.14.39.png?dl=0 Nov 20 00:14:50 YES, I KNOW Nov 20 00:14:54 God thank you! Nov 20 00:14:59 Awesome Nov 20 00:15:28 why does intellij idea NOT recognize AVD's ive created in the avd mananger? Nov 20 00:15:45 i just creaed one and tried to debug my code and its not in the list of available AVD's for my project Nov 20 00:16:01 Muchoz: usually I see this: http://cl.ly/image/2e2q3l3C2X0x :) Nov 20 00:16:04 might be related to your api level Nov 20 00:17:15 Where's that? Nov 20 00:17:28 Muchoz: that's an A/B testing framework Nov 20 00:18:24 Muchoz: I should duck out and get work done. I'll be curious if/how you end up changing the code and using it, but I should stop trying to figure it out myself :) Nov 20 00:19:01 Groxx, I don't get what you're trying to tell me with that image. Nov 20 00:19:46 Muchoz: nothing much :) most libraries I look at are obfuscated - that's what you get when Proguard has been used. Nov 20 00:20:09 Groxx, oh. Alright. Thanks. I didn't decompile a lot of java. Nov 20 00:20:17 But I came across that a couple of times. Nov 20 00:21:46 Groxx, do you think they allow people to do this? Probably not, right? Nov 20 00:22:10 Once they figure it out, I'll just use HQSMS Nov 20 00:22:16 Cheaper than Twilio btw ^ Nov 20 00:22:23 For my country at least Nov 20 00:22:32 to do it and release it in an app: probably violates the terms of use, yeah. possibly they allow it, since they're basically "just" an API, but unlikely. Nov 20 00:22:52 I'll probably fork Tweepy (Python library) Nov 20 00:23:07 And use it in my project by adding Digits :D Nov 20 00:23:16 Or just use another OAuth API Nov 20 00:23:17 I'll see Nov 20 00:23:23 Library* Nov 20 00:25:14 Groxx, there's no consistent { placement in their code Nov 20 00:25:15 Ugh Nov 20 00:26:44 Gotcha! https://www.dropbox.com/s/c2dkoan8ctip8y4/Schermafdruk%202014-11-20%2001.26.38.png?dl=0 Nov 20 00:28:31 Hey. what are some problems with the 4.4 blutooth stack? Nov 20 00:28:46 I have a device that is returning some weird data over BT Nov 20 00:29:09 incomplete, additional bytes, 08 wher eit should be 02… Nov 20 00:32:58 tricknology did you really expect it to work :P Nov 20 00:33:07 yes haha Nov 20 00:33:27 what I’m tryign to do “works” 3/10 times on an S5 running 4.4.2 Nov 20 00:33:29 what kind of peripheral / bt module ? Nov 20 00:33:40 10/10 times on a Note 2 running 4.3 Nov 20 00:33:41 is there something intrinsic to bluetooth that makes it suck so often? superficially it seems like a nearly-ideal tech. Nov 20 00:34:00 I can’t say what kind :( Nov 20 00:34:42 it uses an SDK provided to me by the mfr. I just use the methods and hope it works Nov 20 00:35:33 Groxx hm, good question. well, for BLE the iOS stack is pretty bulletproof. android is very flaky, so i'd say thats android's fault. for BR/EDR i'm not sure what the story is Nov 20 00:35:45 Groxx, at least with Android they’re always mucking with the Bluetooth stack trying to improve it. Nov 20 00:36:03 tricknology s/improve/fix Nov 20 00:36:09 didn’t BLE just come out in 5.0? Nov 20 00:36:23 no, 4.3 Nov 20 00:36:36 I've just had problems with bluetooth on every device ever. Cars, laptops, phones, mice, keyboards, headsets, it doesn't matter what's connecting where. audio always flakes though it's within 2 feet, connectivity always drops, etc. Nov 20 00:36:39 meh, none of our devices are BLE so I’m a bit behind Nov 20 00:36:42 5.0 allows phones to have peripheral role though Nov 20 00:36:45 hoping to get one though Nov 20 00:37:03 so I can type with my Android keyboard on my computer? Nov 20 00:37:20 Groxx yeah ... they use the ISM bands which is pretty noisy with wifi, etc Nov 20 00:37:21 hi Nov 20 00:37:30 hello Nov 20 00:37:44 quick question - I have a simple listview while multiple choices allowed. how can I retain these selections in the list view? Nov 20 00:37:45 anyone ready about the guy who can hear wifi? Nov 20 00:37:52 the stack itself, i don't know if its the complexity, testing, etc Nov 20 00:37:57 the listview appears in a dialog, triggered by someone pressing a button Nov 20 00:37:59 http://www.ryot.org/what-wi-fi-sounds-like-frank-swain-hearing-aids/869897 Nov 20 00:38:07 everytime the button is pressed, the selections reset Nov 20 00:38:07 tricknology, a deaf guy made that software Nov 20 00:38:10 And you just linked it Nov 20 00:38:18 :) Nov 20 00:38:31 And to think a deaf person made that Nov 20 00:38:40 He started going deaf and still made it Nov 20 00:38:54 He can't even use it himself now Nov 20 00:40:22 any ideas about the listview question? Nov 20 00:40:53 A ListView with choices? Nov 20 00:41:14 You need to be a bit more specific ir7466 Nov 20 00:41:28 ir7466: are you using an AlertDialog? Nov 20 00:42:14 sorry, yes I am using alertdialog Nov 20 00:42:43 ir7466: you probably want to use this method: http://developer.android.com/reference/android/app/AlertDialog.Builder.html#setMultiChoiceItems%28java.lang.CharSequence%5B%5D,%20boolean%5B%5D,%20android.content.DialogInterface.OnMultiChoiceClickListener%29 Nov 20 00:42:44 this is the code i am using: http://stackoverflow.com/questions/27007488/checking-multiple-items-in-a-android-listview Nov 20 00:43:34 ir7466: oof. unless you need a custom listview, you're probably better off letting the AlertDialog.Builder make it for you. then it'll stay styled, and you just handle the callbacks. Nov 20 00:43:37 Groxx: is there any benefit to using that over onItemClick ? Nov 20 00:43:51 Groxx, you're too nice putting IRC people above work. Nov 20 00:43:55 :) Nov 20 00:44:05 problems interest me! >.< Nov 20 00:44:27 Groxx: what do you mean? I am using AlertDialog.builder Nov 20 00:44:51 ir7466: there's a multiple-choice dialog guide here: http://developer.android.com/guide/topics/ui/dialogs.html I'd probably start there, unless you need something more customized Nov 20 00:45:10 Groxx: I actually have it working as it currently is Nov 20 00:45:18 the only problem is that it doesn't remember the selections Nov 20 00:45:39 k. then you probably need to modify your listview's adapter Nov 20 00:45:40 so I press button -> do selections -> go back -> press button again -> it doesn't remember what i selected last time Nov 20 00:47:16 ir7466: nothing will be "remembered" for you, unless you're using a PreferenceFragment and toggling settings defined in XML (then it's saved in SharedPreferences for you). so you'll have to keep track of things they've clicked, and probably set the proper checked state in the adapter's getView Nov 20 00:48:22 Groxx: it doesn't need to remember it forever, just while that particular activity screen is open - so just doing it in local memory should be fine (rather than sharedpreferences) Nov 20 00:48:44 You mentioned set the checked state in the adapters get view - how do you mean? Nov 20 00:48:55 is it possible to programatically set which options are pre-selected? Nov 20 00:50:18 With the stack overflow sample, you'll have to modify the ArrayAdapter. the setMultiChoiceItems accepts a boolean array of things that are checked, if you're not using a custom listview Nov 20 00:51:15 what do you mean by a custom listview? Nov 20 00:51:40 the listview i'm using is just the same as the one in the stackoverflow link Nov 20 00:53:28 Can *anything* happen before Application.onCreate()? I need to create a system property to avoid a specific class from being loaded, and it must happen before other class's constructors are run. Nov 20 00:54:26 freeone3000: static initializers can (and will), otherwise as far as I've seen, that's reliably the first thing ever. Nov 20 00:54:42 Groxx: Oh. Right, thanks. Nov 20 00:55:02 freeone3000: Yeah, if you really neeed to be super early you can override attachBaseContext iirc Nov 20 00:55:19 hwrdprkns: cool, didn't know about that one Nov 20 00:55:39 tread carefully, ContextWrapper stuff is crazy Nov 20 00:55:57 definitely. I'm happy with onCreate. Nov 20 00:58:24 ir7466: since you're using a ListView directly, you need to look up how to use them - that's independent of it being in an AlertDialog. there's really no other choice if you're going that route. Nov 20 00:58:57 listviews unfortunately aren't all that simple. which is why AlertDialog.Builder has a helper method to create a multi-selectable one for you. Nov 20 01:02:25 Groxx: If I understand correctly, you're saying it's possible I don't even need an XML file? Nov 20 01:02:36 like this for example: http://myandroidtipsandtricks.blogspot.com.au/2011/10/using-multiselect-list-with-dialog.html Nov 20 01:04:54 Groxx, this is what I find in the code *facepalm*: "x-twitter-new-account-oauth-access-token".equals(header.getName()) Nov 20 01:05:01 \o/ gradle-plugin : This should be considered 1.0-RC Nov 20 01:05:42 Muchoz: That's used because header.getName() could be null. Nov 20 01:06:00 ir7466: "is it possible to programatically set which options are pre-selected?" Yes, see http://developer.android.com/reference/android/app/AlertDialog.Builder.html#setMultiChoiceItems(java.lang.CharSequence[], boolean[], android.content.DialogInterface.OnMultiChoiceClickListener) Nov 20 01:06:03 freeone3000, wow. I feel like an idiot. Nov 20 01:06:10 freeone3000, that's a smart way of doing it then. Nov 20 01:06:18 Never really thought of doing it that way. Nov 20 01:06:48 * http://developer.android.com/reference/android/app/AlertDialog.Builder.html#setMultiChoiceItems(int, boolean[], android.content.DialogInterface.OnMultiChoiceClickListener) Nov 20 01:06:59 freeone3000, but then again. Further on they don't check whether those values are null. Nov 20 01:07:07 oops, oh well Nov 20 01:07:13 Muchoz: If they equal, they're not null. Nov 20 01:07:59 freeone3000, they're setting another value of that. If it's not null during the loop, it'll be null the value they set and will return an error later on somehow. Nov 20 01:08:34 Muchoz: Will it? Check to see that null isn't a valid value for that variable. Nov 20 01:09:09 freeone3000, you'd have to see the code. But you're statement is right. Nov 20 01:12:02 ir7466: sorry for the delay. yeah, that's exactly it. Nov 20 01:12:30 When I had the list view, I could use "lv.getCheckedItemPositions()" Nov 20 01:12:41 is there some equivalent to that now i'm not using the list view? Nov 20 01:14:45 ir7466: I don't think there's anything that'll do it in one call like that. http://developer.android.com/guide/topics/ui/dialogs.html#AddingAList has an example for keeping track of selected ones though. Nov 20 01:26:57 Groxx: can I grey out the OK button until an option is selected? Nov 20 01:28:18 I'd been playing around with dialog.getButton(Dialog.BUTTON_POSITIVE).setEnabled(false);, but that was after calling dialog = alertDialog.create() - would I still need to do that? or is there another way Nov 20 01:29:13 hey everyone! Nov 20 01:29:48 does anyone have a link to a CWM or TWRP custom recovery for the ADT-1 (molly)? Nov 20 01:29:59 el goog is not being too helpful in this respect Nov 20 01:33:43 ir7466: it looks like the onClick callback gives you the dialog - just do that same thing in onClick. probably `.setEnabled(!selected.isEmpty())` Nov 20 01:34:20 ir7466: or maybe I'm reading that wrong. lemme try. Nov 20 01:39:06 Groxx, how do you mean? Nov 20 01:41:32 do you guys think i can just flash any recovery for the adt-1? surely the answer is now Nov 20 01:41:33 no* Nov 20 01:43:24 Groxx: the issue with using AlertDialog dialog = builder.create(), is it'd need to be a "final" for me to use it in the listener Nov 20 01:43:38 but I need to set the OK button to empty by default Nov 20 01:44:56 ir7466: yeah :\ I'm not sure why they don't pass an AlertDialog to the onClick callback. Nov 20 01:45:29 i guess I could add a check to the onclick call back of the button Nov 20 01:45:32 but it's so hacky Nov 20 01:45:49 they shouldnt be allowed to press the button at all if no option is selected Nov 20 01:46:40 ir7466: locally, it appears the DialogInterface is an AlertDialog. you could cast it to AlertDialog, and use .getButton(BUTTON_POSITIVE) right there Nov 20 01:47:12 that's probably stable in all versions of android, but feels bleh. Nov 20 01:51:22 Groxx: that works Nov 20 01:51:25 thanks for your help Nov 20 01:51:29 very much appreciated Nov 20 01:51:56 sorry it wasn't simpler :) and that DialogInterface is weird, because it is a pain if you need the dialog :( Nov 20 01:52:42 nah it's ok Nov 20 01:52:45 in the end it wasn't too bad Nov 20 01:52:53 the AlertDialog casting doesn't worry me too much Nov 20 01:52:59 other than that it's very clean Nov 20 01:53:14 good to hear :) and good luck on whatever app this is for Nov 20 01:53:42 http://sdtimes.com/code-watch-two-great-paradigms-taste-great-together/ Nov 20 01:54:14 Did you all hear about the Jack and Jill thing? Nov 20 01:54:30 The future of Android might involve compiling straight to dexcode (avoiding Java bytecode). Nov 20 02:00:06 if it means the end of retrolambda: I prefer the dex step :( Nov 20 02:00:28 * g00s scared of retrolambda Nov 20 02:00:55 I hope it doesn't mean the end of JVM unit testing. :/ Nov 20 02:01:15 retrolambda is fantabulous :) usually I'd be scared for production code, but it has been rock-solid. Nov 20 02:01:29 lombok is scary. in an awesome, god-like way, but still scary. Nov 20 02:07:56 Reddit is gonna give me permission to use the Reddit alien in my app. :D Nov 20 02:09:37 cool Nov 20 02:28:27 Groxx: The developer hangs out in ##java. He ocassionally gets into condescending rants and explains the details of lombok. Nov 20 02:28:43 Groxx: It makes perfect sense, it just won't work with anything other than javac. Nov 20 02:28:48 the retrolambda dev? Nov 20 02:29:29 sorry, not following completely :| Nov 20 02:30:00 Groxx: lombok. Nov 20 02:31:43 then you mean: lombok won't work with anything but javac? Nov 20 02:32:34 freeone3000: (genuinely curious, hopefully I sound that way :) ) Nov 20 02:33:08 Groxx: Lombok won't even work with compilers not based on OpenJDK. Nov 20 02:33:39 Considering there are precisely zero of those in current use... Nov 20 02:33:55 aah. but jack/jill/whatever might not fall in that category? Nov 20 02:34:08 Probably not. Nov 20 02:34:24 that's sorta my fear. Java's code generation capabilities are awful. Nov 20 02:34:33 having a way to sidestep that is rreat. Nov 20 02:34:35 great* Nov 20 02:35:20 or maybe: they're very Enterprise™. very safe, but hamstrung so completely, you can't do anything very interesting with them. Nov 20 02:37:25 Is anyone able to help me figure out a (thread safety?) issue? I'm using jAudioTagger to read id3 tags, but I'm making multiple asynchronous calls to read the tags, and it's failing with an java.nio.channels.ClosedByInterruptException, presumably because the tagging methods aren't thread safe Nov 20 02:37:41 Hey, are there many examples of OSS small sample Material apps and backported material design controls? The only one I can see is iosched and even that isn't a very full material design that's encouraged in the docs Nov 20 02:41:51 hey does anyone know if there's a good way for me to edit a file on my device via the shell? Nov 20 02:41:56 vi seems not to be installed Nov 20 02:42:17 freeone3000 people get condescending in #java ?!?! :P :P :P Nov 20 02:42:34 i think they are just cranky from /using/ java :D Nov 20 02:45:32 g00s LOL Nov 20 02:47:50 slobatch is nano or pico there ? Nov 20 02:48:08 g00s: nope! Nov 20 02:48:12 i gave up Nov 20 02:48:18 i just did adb pull Nov 20 02:48:24 cause i just want this over with Nov 20 02:48:35 ed ? :D Nov 20 02:50:36 g00s: ed? Nov 20 02:50:57 whats the best way to instantiate multiple versions of the same fragment in one activity and edit the layout of hte fragment? Nov 20 02:53:58 timusus: Might as well ask. Nov 20 02:58:09 TacticalJoke sorry, what Nov 20 02:58:09 ? **** ENDING LOGGING AT Thu Nov 20 02:59:58 2014