**** BEGIN LOGGING AT Mon Jan 05 02:59:58 2015 Jan 05 03:01:17 You can use Eclipse but Android Studio is recommended now. Jan 05 03:01:21 Why did you want to use Eclipse? Jan 05 03:01:44 he wants to be like you :) Jan 05 03:04:39 Cause he likes using windows 95 Jan 05 03:05:31 Why on earth did they make Resources.getStringArray return an actual array? Arrays are so freaking annoying. Jan 05 03:05:33 Give me a List! Jan 05 03:06:25 I can understand the decision, but I hate using arrays. Jan 05 03:06:32 fuck i hate usb wires Jan 05 03:06:48 how fast would I be able to get good coding on android if im decent at java(swing, awt) Jan 05 03:07:48 2 years, I've seen your code :p Jan 05 03:07:57 (heh - kidding) Jan 05 03:08:02 ;p Jan 05 03:10:08 f------------------------k ysv Jan 05 03:10:33 kuyo: With Android programming, you just have to dive in. Jan 05 03:10:37 No amount of preparation will work. Jan 05 03:14:48 kuyo: i am in the same boat. I have tried a few things but the system i am using right now is working the best. I got a book that goes through several examples. Instead of just following the examples, i have a second projuct that i miror Jan 05 03:15:14 meaning that if a projuct goes over adding a second activity i will add a second activity on my own to this other project Jan 05 03:15:23 *project Jan 05 03:15:25 yes Jan 05 03:15:52 if you fairly know oop and your classes you can program in android right away Jan 05 03:16:50 ..................kkkkkkkkkk usb wires Jan 05 03:16:50 linuxuz3r: is that what you did? IMO the android sdk adds so much that you need to atleast go over the docs Jan 05 03:17:20 lasserix_: What's wrong? Jan 05 03:17:28 device is offline Jan 05 03:17:32 because fucking wires Jan 05 03:17:38 well for general purpose stuff DadFoundMy looking at books will help Jan 05 03:17:41 f--------k these fu---------ing usb wires Jan 05 03:18:07 kuyo: knowing AWT and Swing doesn't help much as they are replaced in android like I said before Jan 05 03:18:16 there is nothing as irratating as hearing the damn connect disconnect sound 10 times in a row Jan 05 03:18:27 kuyo: but most of the other stuff is the same Jan 05 03:18:42 thank you , is there a specific tool android replaces them with? Jan 05 03:18:52 xml Jan 05 03:18:55 Is it the wires or the USB port? Jan 05 03:19:00 Also, can't you use wireless adb? Jan 05 03:19:02 the wires Jan 05 03:19:03 a form of xml atleast Jan 05 03:19:17 not if i cant even f$$$ing connect the &&&&&&&& Jan 05 03:20:12 finally Jan 05 03:20:27 kuyo: no, they are called Views like TextView and ImageView and so on .. and ViewGroups Jan 05 03:20:43 pos android studio Jan 05 03:20:50 restarting adb Jan 05 03:20:52 damnit Jan 05 03:21:43 ty shmooz Jan 05 03:23:05 kuyo: the layouts are pretty much the same as they always were Jan 05 03:24:12 in java that is, are there new layouts in android even ? Jan 05 03:24:29 I guess there are, I haven't noticed them yet Jan 05 03:24:36 shmooz: can you use views from android in java? Jan 05 03:24:49 im going to start programming in android Jan 05 03:25:05 linuxuz3r: yes Jan 05 03:25:15 shmooz: how Jan 05 03:25:53 linuxuz3r: not sure, but I'm sure you can Jan 05 03:26:29 plus I'm not even sure what you are asking exactly, but since anything is possible, your answer is yes Jan 05 03:26:40 ok Jan 05 03:27:55 linuxuz3r: you want to run android views in a java runtime ? Jan 05 03:28:06 that is meant for your desktop OS ? Jan 05 03:28:30 or you just want to start programming android and use views with java ? Jan 05 03:28:55 the first one Jan 05 03:29:10 use jfx, it's much nicer Jan 05 03:29:11 good luck Jan 05 03:29:54 Messy code makes me wanna gouge my eyes out. Jan 05 03:30:04 Okay, that's extreme. Jan 05 03:30:11 TacticalJoke you chose android ! Jan 05 03:30:17 :D Jan 05 03:30:22 i f-king hate adb Jan 05 03:30:24 and wires Jan 05 03:30:27 f-king wires Jan 05 03:31:09 come on wires, choke him! Jan 05 03:31:10 TacticalJoke: glance over at some obj-c code, then look back and it'll look neat :) Jan 05 03:31:39 then go look at some c# and get depressed again Jan 05 03:38:43 guess my development days are over Jan 05 03:38:47 can no longer connect any devices Jan 05 03:38:56 lasserix_: do it the wireless way Jan 05 03:39:55 i cannot fucking connect the device to begin with Jan 05 03:39:57 stupid wires Jan 05 03:40:04 lasserix_: How many wires do you have? Jan 05 03:40:20 lasserix_: did you try different cable and different USB ports ? Jan 05 03:40:44 yes Jan 05 03:40:44 4 Jan 05 03:40:58 And all four have suddenly broken down? Jan 05 03:41:00 maybe reinstall the USB driver for it ? Jan 05 03:41:04 no Jan 05 03:41:07 i am going to take a break Jan 05 03:41:11 before i break my phone Jan 05 03:41:20 lasserix_: are you on linux or windows ? Jan 05 03:41:32 I'm guessing that three were broken and now the final one has broken. Jan 05 03:41:38 Which does not mean you'll never program again. Jan 05 03:42:35 well you gotta isolate the problem and find the culprit Jan 05 03:43:11 lasserix_ you cant use geny / emu for now ? Jan 05 03:43:21 how in the heck do u add an item to a listview.. i dont understand this adapter thing Jan 05 03:43:25 no i need to verify some external writing Jan 05 03:44:47 lasserix_: what caused it to start happening ? Jan 05 03:44:58 bynarie: You add an item to a list that the adapter has access to. Jan 05 03:45:06 If you're using ArrayAdapter, you could simply call ArrayAdapter.add. Jan 05 03:45:23 always been a problem Jan 05 03:45:28 think i broke the one wire finally tho Jan 05 03:45:43 also think the connector on the phone is getting bad Jan 05 03:45:56 u got a link that could help me understand how it works Jan 05 03:46:38 www.google.co Jan 05 03:46:41 *.com Jan 05 03:47:32 not to be a dick but google is kind of obvious... i cant find a tutorial that is comprehensive Jan 05 03:48:29 I can't really find much. The bottom of this page is a good summary, I guess: http://windrealm.org/tutorials/android/android-listview.php Jan 05 03:48:31 how to use arrayadapter listview android Jan 05 03:49:01 bynarie: TacticalJoke already said, just call add on the arrayadapter Jan 05 03:49:09 Actually, it doesn't seem great because he or she pointlessly creates an array (before just showving it in a list). Jan 05 03:49:59 thx.. ill play around with it a bit and im sure i can figure it out Jan 05 04:12:57 I hate when a project gets huge. Jan 05 04:13:04 It's like a cute person becoming obese. Jan 05 04:13:37 define "huge" ... LOC count? Jan 05 04:13:46 APK size? Jan 05 04:13:48 over 400 lbs? Jan 05 04:13:53 class counts? Jan 05 04:14:07 usualy its middle-lower Jan 05 04:14:23 350 pounds going once ... Jan 05 04:14:42 I guess I mean class count. Jan 05 04:14:54 To be fair, my project isn't ginormous. Jan 05 04:15:05 But I kinda hate when stuff gets so complex you can't hold it in your head anymore. Jan 05 04:15:22 hello Jan 05 04:15:23 its when you can't see your waist any more Jan 05 04:15:33 on this link http://developer.android.com/guide/components/bound-services.html#Messenger it says Jan 05 04:15:37 You can see an example of how to provide two-way messaging in the MessengerService.java (service) and MessengerServiceActivities.java (client) samples. Jan 05 04:15:38 A Waist is a terrible thing to mind Jan 05 04:15:45 :) Jan 05 04:15:51 but when i click those links, I seehttp://developer.android.com/samples/index.html Jan 05 04:16:08 Oh, those sample links don't work anymore. Jan 05 04:16:11 They never work. Jan 05 04:16:30 hm, i really want to know how to do a server-client comunication using Messenger, what do I do now? Jan 05 04:17:29 shmoon you are confusing two concepts Jan 05 04:17:37 messenger / server-client Jan 05 04:17:45 you mean messenger service/client? Jan 05 04:17:48 Are those samples in the SDK samples that get downloaded with the SDK Manager? I don't know. Jan 05 04:18:00 yeah Jan 05 04:18:21 yah service -> client, its just that sometimes it seems like they refer to the service as a server Jan 05 04:18:25 service binding = dr evil, messenger = mini me Jan 05 04:18:34 mini me ? Jan 05 04:18:58 messenger works if both the client and service is in the same process? Jan 05 04:19:04 shmoon are you doing IPC? Jan 05 04:19:05 just wondering Jan 05 04:19:07 ye Jan 05 04:19:12 ya i am trying to learn it Jan 05 04:19:17 but should only be used if they are NOT in the same process Jan 05 04:19:23 otherwise use other mechanisms Jan 05 04:19:27 shmoon_ yes, but out of process you can't put custom parcelables in the Message bundle Jan 05 04:19:30 note you can also use broadcast reciever Jan 05 04:19:39 g00s you can Jan 05 04:19:45 as long as you define them via AIDL Jan 05 04:19:59 (i think) Jan 05 04:20:04 hm, i thought that was mentioned in the docs Jan 05 04:20:09 so how to send messages from the Service to Client ? Jan 05 04:20:10 maybe they changed it Jan 05 04:20:33 shmoon_: same way you normally do handler/messages stuff Jan 05 04:20:39 g00s no you're probably right Jan 05 04:21:21 messenger is a wrapper for a handler, Jan 05 04:21:28 so you can pass it ipc Jan 05 04:21:43 then shmoon the rest is the same as normally handler stuff Jan 05 04:22:21 hm trying to understand Jan 05 04:23:04 so you're saying have a Messenger in the Client too, but then how will I get access to that in the Service Jan 05 04:23:21 in te reverse case I got the IBinder in the ServiConnection in client which I could pass to new Messenger Jan 05 04:23:27 to get hold of the Messenger from Service Jan 05 04:23:57 yeah Jan 05 04:24:05 you just pass it via the messenger you get from the service Jan 05 04:24:11 to the service, then you have duplex channel Jan 05 04:24:23 should vbox be up and running before i start a virtual device in genymotion Jan 05 04:24:56 mices should do it automatically for you Jan 05 04:25:03 does for me anyways Jan 05 04:25:10 are you on windows Jan 05 04:25:59 Gawd. I've done so much work on my project lately that I can barely think about it anymore. Jan 05 04:26:08 lasserix_: how do I pass a client Messenger to the Service via the Sevice messenger in client's ServiceConnection? Jan 05 04:26:20 I've seriously over-worked. Jan 05 04:26:32 anyway it doesn't make a difference, my machine has no display in genymotion Jan 05 04:26:42 shmoon from serviceconnection you get handler to service, then you pass a message containing the messenger to the service Jan 05 04:26:44 if i press power nothing happens Jan 05 04:26:54 *containing the client messenger Jan 05 04:27:00 should i try to start the vd in vbox to troubleshoot Jan 05 04:28:22 lasserix_: oh I get you now, but I'm not sure how you can send a Messenger object via Message? Jan 05 04:28:22 try turning down the ram Jan 05 04:28:26 cause i get errors when i try to start it in vbox Jan 05 04:28:39 shmoon it is automatic / parceable just google it Jan 05 04:28:42 i dunno if its cause i'm not supposed to be running it in vbox Jan 05 04:28:47 mices turn down ram in your emu Jan 05 04:29:05 k Jan 05 04:29:06 ty Jan 05 04:30:05 lasserix_: ok, Message has a replyTo field that can be used hmm Jan 05 04:30:36 I solved my code problem by giving my Spinner adapter a "headers" property. Jan 05 04:30:53 Those headers are treated specially (and now there's no more tight coupling between that and my activity). Jan 05 04:31:27 My activity decides that there are two headers, and my adapter just does what it's told. Jan 05 04:33:19 BTW, I noticed something tonight: in simple cases when using ListView, one can avoid worrying about ViewHolder (or anything like that) simply by calling ViewGroup.getChildAt. Jan 05 04:33:19 but is there any way to get the source to this link I got form docs http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/MessengerService.html ? Jan 05 04:33:30 I realise that this isn't always great for maintenance, but in simple cases it's brilliant. Jan 05 04:36:11 Look how simple this is: http://pastebin.com/gN8TzLU7 (it's kinda a work-in-progress; the reason 'headers' exists is that headers will have a different colour, etc.) Jan 05 04:36:44 And I have to use a ViewGroup to maximize the width of the spinner (can't just use a TextView). Jan 05 04:36:47 shmoon grep source MessengerService Jan 05 04:36:53 *google that Jan 05 04:37:09 found it lasserix_ thanks Jan 05 04:37:14 you're right, just have to use rpelyTo Jan 05 04:37:22 yeah Jan 05 04:39:26 lasserix_: Did you solve your issue in any way? Jan 05 04:39:37 yeah Jan 05 04:39:47 switched my nexus Jan 05 04:39:54 think the usb port is less fucked Jan 05 04:40:05 it worked and my file writer is working perfectly :) Jan 05 04:40:21 Cool. Jan 05 04:40:30 Do you think this is amazingly simple? http://pastebin.com/gN8TzLU7 Jan 05 04:40:38 I thought it'd end up being way more complex. Jan 05 04:40:55 btw Jan 05 04:40:56 That allows for making headers a different colour and so on. Jan 05 04:41:11 It also allows for the TextView to exist in a ViewGroup (which is strangely needed for maximizing width). Jan 05 04:41:25 have you guys faced any issues like phone crashing as soon as charge is below some 60-70% and then once you start charging it starts up with 15% or so and then hits 90-100 in no time ? Jan 05 04:41:29 nexus 4 I have Jan 05 04:41:39 I wonder if its a hardware issue or happening after android 5 update Jan 05 04:41:46 I've never seen that, shmoon_. Jan 05 04:41:51 TacticalJoke: yeah like how you bypass findViewById on the textview Jan 05 04:41:55 hm Jan 05 04:42:12 TacticalJoke: don't name your adapters with the widget that it's being used for Jan 05 04:42:14 shmoon sounds like a warrantly replace problem Jan 05 04:42:38 means? Jan 05 04:42:54 my pc goes whacky when i start my virtual device in genymotion Jan 05 04:42:59 Yeah, that makes sense. This name is not fully decided upon yet. Jan 05 04:43:06 firefox stops responding Jan 05 04:43:16 are there issues w/firefox-genymotion Jan 05 04:43:21 shmoon_: if oyu still got warranty get it replaced Jan 05 04:43:36 oh its more than 1.5yrs now Jan 05 04:43:37 sounds like something is physically shorted Jan 05 04:43:46 like a bad capacitor Jan 05 04:43:50 i see Jan 05 04:44:13 is there any way to use adb + wifi without root and no usb cable for first time setup ? Jan 05 04:44:55 lasserix_: why does a real cell phone have ram in kb and vd minimal ram is 4mb Jan 05 04:45:07 o nevermind Jan 05 04:45:09 512mb Jan 05 04:45:11 ha ha Jan 05 04:46:05 i set ram to 512mb and when i started the device my pc went whacky the device window started appearing/disappearing/reappearing, firefox stop responding Jan 05 04:47:51 stupid firefox ;) Jan 05 04:48:58 I'm thinking of using ViewGroup.getChildAt in place of View.findViewById in performance-critical stuff. Jan 05 04:49:02 Though it might not make a huge difference. Jan 05 04:49:21 Then again, most of my performance-critical stuff doesn't use a ViewGroup at all. Jan 05 04:49:56 shut everything down and killed all the vbox processes lets see what happens when i restart Jan 05 04:51:48 without firefox running everything is nice and quiet but pressing the power button nothing happens Jan 05 04:52:28 I can't believe using ViewGroup.getChildAt in place of View.findViewById gets you anything in practical terms unless you're abusing it in the first place Jan 05 04:52:42 Like doing 10,000 lookups Jan 05 04:53:42 One thing I would say, though, is that when I'm returning multiple View types for a ListView I sometimes get a few (convertView == null) situations when scrolling down the list. Jan 05 04:53:57 Sometimes as many as 10 extra. Jan 05 04:54:32 Though it might still not make a perceivable difference. Jan 05 05:08:28 g00s: if you have root Jan 05 05:10:33 Ok, I want to make my Play Store app available on Amazon App Store, which means I need to change over all the play store services stuff to the amazon apis. Whats the easiest way to maintain two store builds without having to maintain two entirely different code bases? Jan 05 05:12:41 hello Jan 05 05:13:29 due to my extreme retardness I have wiped everything from recovery Jan 05 05:13:35 while trying to install rom Jan 05 05:13:47 now I can't see my phone from my pc Jan 05 05:13:57 so I cannot upload any ips Jan 05 05:13:58 zips Jan 05 05:14:12 Im afraid that If I reboot the phone I will have no recovery anymore Jan 05 05:14:14 am I right? Jan 05 05:14:20 #android-root might care Jan 05 05:14:41 to help Jan 05 05:14:43 okay Jan 05 05:14:44 thanks Jan 05 05:14:51 and sorry for wrong channel Jan 05 05:14:55 gn8 Jan 05 05:21:34 Anyone else have Android Studio physically bleed while importing libraries? Jan 05 05:22:42 every time i build or do gradle sync it, or the daemon, leak memory Jan 05 05:23:07 gradle syncs seem to be the worst, i have to kill it every once in a while Jan 05 05:23:31 i use the command line to refresh-dependencies for AS i use offline mode Jan 05 05:23:35 its super fast Jan 05 05:24:07 when i do cli stuff i get 2 daemons Jan 05 05:24:13 the as one, and the cli one Jan 05 05:24:15 I find this hilarious (NSFW language, I guess): http://youtu.be/oAgg5zri4Ds?list=PLp-A_R4zSGt4ngAlLaMJUTEJ0VgLQi4qU Jan 05 05:24:17 yep Jan 05 05:24:22 that will happen Jan 05 05:24:30 Animals attacking people and stuff. Jan 05 05:24:34 it must happen because different jvm args Jan 05 05:24:55 God, I wish Gradle were fast. It's freaking 2015. Jan 05 05:25:16 oh my, it is 2015 indeed Jan 05 05:25:16 And economical with resources. Jan 05 05:25:19 * g00s looks around Jan 05 05:26:04 * SirLagz runs screaming in terror because it's 2015 Jan 05 05:26:20 People born in 2000 are 14/15 now. Crazy. Jan 05 05:26:30 I know right. Jan 05 05:26:35 my dog is 14 :( Jan 05 05:26:57 but he's so awesome anyhow :) Jan 05 05:27:46 g00s: I think you can make AS use the system gradle daemon Jan 05 05:27:53 I was thinking of getting a dog. Jan 05 05:27:58 Only ever had a cat. Jan 05 05:28:11 get a lab... labs all the way Jan 05 05:28:16 TacticalJoke if you die while coding your app, at least the dog won't eay you Jan 05 05:28:20 *eat Jan 05 05:28:35 MohitKanwal i have to figure out how Jan 05 05:28:35 I sometimes feel like I might die while making this thing. Jan 05 05:28:45 seems warranted Jan 05 05:29:32 I used to read about old chess Grandmasters going insane. I wonder whether programming can make someone lose their mind. Jan 05 05:29:48 g00s: seems this should help Jan 05 05:29:48 https://www.timroes.de/2013/09/12/speed-up-gradle/ Jan 05 05:29:48 this room certainly can Jan 05 05:29:49 if i try to start my virtual device in vbox i get sys.powerctl errors does anyone know about this with genymotion Jan 05 05:29:53 lol Jan 05 05:30:06 MohitKanwal oh from timroes :) Jan 05 05:30:30 MohitKanwal: I read that this isn't needed anymore, since Android Studio already does the equivalent. Jan 05 05:30:49 Well, if running from Android Studio, anyway. Jan 05 05:30:55 MohitKanwal oh i already have that, i get 2 daemons Jan 05 05:31:20 i'd like AS & CLI to share the same one Jan 05 05:31:32 some methods that take a CharSequence as a parameter also have an alternate form with int as a parameter to allow for using R.string.foo_string (presumably calling getText() on the int and passing back to the main method). What is the logic to which methods do this and which don't? Jan 05 05:31:35 I hope they one day rewrite Gralde in something like C. Jan 05 05:31:46 Gradle* Jan 05 05:31:56 I have to views. One view is a custom view where I will draw a path with finger and second view is a relativelayout where I have a buttons. Both views match parent (fill all the screen). Should I put both view on same fragment and birng view on the front when I need them or put each view on separate fragment (if this is possible with fragment). Both views must be visible but I need interact only with one at the time. Jan 05 05:32:04 duncannz presumably you will use localized resources Jan 05 05:32:25 should i be running a virtual device under vbox to troubleshoot Jan 05 05:32:29 some weird places don't take it, like Notification.Builder methods Jan 05 05:32:38 g00s: Intent.createChooser for example Jan 05 05:32:39 why Jan 05 05:32:54 g00s: damn lemme see if there is a way to do that (sharing daemons ...) Jan 05 05:33:55 TacticalJoke: that's impossible Jan 05 05:34:00 also stupid Jan 05 05:34:08 the lack of speed has nothing to do with using the JVM Jan 05 05:54:57 Whats the way to convert color int to hex string? Jan 05 06:00:39 String.format("%8x", color).replace(' ', '0') Jan 05 06:00:53 or something Jan 05 06:01:31 groovy:000> String.format("%8x", 0xDEADBEEF).replace(' ', '0') Jan 05 06:01:32 ===> deadbeef Jan 05 06:01:46 Integer.toHexString(int) Jan 05 06:02:14 that doesn't deal with leading zeroes Jan 05 06:02:20 groovy:000> String.format("%8x", 0xBEEF).replace(' ', '0') Jan 05 06:02:21 ===> 0000beef Jan 05 06:02:23 blergh Jan 05 06:07:31 oh finally Jan 05 06:07:37 got atleast something working Jan 05 06:07:38 :) Jan 05 06:07:40 ty guys Jan 05 06:08:26 pagination works Jan 05 06:09:41 http://www.reddit.com/r/androiddev/comments/2rbk2e/hey_google_absurd_developer_policies_are_hurting/ Jan 05 06:10:19 Seems that Phandroid had their app taken down. Jan 05 06:14:42 sorry JakeWharton String.format("%8x", color).replace(' ','0') ? Jan 05 06:15:02 sorry what? Jan 05 06:15:07 which is it? Jan 05 06:15:21 I was using Integer.toHexString but it throws errors when alpha is near zero Jan 05 06:15:22 i have only posted one thing Jan 05 06:15:30 "throws errors"? Jan 05 06:15:45 Color.parseColor throws iaexception Jan 05 06:15:46 How's it going? Jan 05 06:15:58 ok Jan 05 06:15:58 JakeWharton: which line is for turning color int to hex color code? Jan 05 06:16:04 i only pasted one line Jan 05 06:17:46 Oh i see several Jan 05 06:17:54 Could you resend the line that converts? Jan 05 06:18:15 and the leading zero is the cause Jan 05 06:18:45 i pasted the same line several times Jan 05 06:18:51 did you even try it? Jan 05 06:19:40 String.format("#%08X", (0xFFFFFFFF & intColor)) Jan 05 06:20:02 that will have leading spaces Jan 05 06:20:22 and the bitwise AND is unnecessary if intColor is an int Jan 05 06:20:25 which... it better be Jan 05 06:21:13 thanks Jan 05 06:37:13 Could anyone help me with an issue I'm having with android bluetooth streaming? Jan 05 06:37:37 pwatman just ask Jan 05 06:39:33 I'm trying to send an mp3 file over bluetooth streams but I am receiving this error when the inputstream is read from: java.io.IOException: Software caused connection abort Jan 05 06:40:16 that will be a slow xfer using BT. maybe wait until BT HS is supported :) Jan 05 06:40:34 that error doesn't give us much to go by Jan 05 06:41:05 here's the whole thing: Jan 05 06:41:08 E/BluetoothSocket﹕ java.io.IOException: Software caused connection abort at android.bluetooth.BluetoothSocket.readNative(Native Method) at android.bluetooth.BluetoothSocket.read(BluetoothSocket.java:359) at android.bluetooth.BluetoothInputStream.read(BluetoothInputStream.java:96) at java.io.BufferedInputStream.read(BufferedInputStream.java:319) at java.io.FilterInputS Jan 05 06:42:23 hmm. no idea Jan 05 06:46:06 I've tried a workaround I found which checks to see if the stream is available, but that causes an error in the media player, as well as many other methods I've tried to get around this issue. I'm assuming this is because it leaves the file incomplete or something. An mp3 sent over a stream should work once all the data is re-written to a file on the other device, right? Jan 05 06:50:21 how to make second fragment overlap first fragment? Jan 05 06:52:52 for container id I can use (android.R.id.content) but this use all screen Jan 05 06:55:50 Is it possible to get the effect of using layout_weight="1" and minLines="5" together on a TextView? So it starts with 5 lines but the biggest it gets is as if it had layout_weight="1" set? Jan 05 06:57:12 using just layout_weight="1", it feels too big at first. using just minLines="5", it makes the buttons below unusable when too many lines are typed. Jan 05 07:37:17 anyone familiar with "dnsmasq" and why its not in android 5.0+? Jan 05 07:37:37 was it in Android 4.4? Jan 05 07:37:57 i believe so Jan 05 07:38:05 then look at the changelog Jan 05 07:38:30 good place to start i suppose. Jan 05 07:39:11 https://code.google.com/p/android-change-log/ Jan 05 07:41:03 i thought dnsmasq was added by third-parties Jan 05 07:41:29 also possible, but i only had busybox installed on the 4.4 device Jan 05 07:41:48 erm, bb was all i can think of that might include that application. but it WAS a relatively fresh install Jan 05 07:42:30 and yes, i reinstalled bb on 5.0 as well Jan 05 07:57:53 hello Jan 05 07:58:15 Could someone please help me with this: http://stackoverflow.com/questions/27774414/add-bigger-margin-to-edittext-in-android-alertdialog?noredirect=1#comment43959609_27774414 Jan 05 08:06:12 does anyone know how to programatically add the margins to the edittext? Jan 05 08:06:35 ir7466: It could easily be done with XML. Jan 05 08:06:57 it's in a tricky part of the program, where it would be better to do it dynamically Jan 05 08:07:07 I have tried this: Jan 05 08:07:07 TableLayout.LayoutParams params = new TableLayout.LayoutParams(); Jan 05 08:07:11 params.setMargins(50, 0, 50, 0); Jan 05 08:07:22 input.setLayoutParams(params); .......................... but that didn't work Jan 05 08:08:14 ir7466: What about this. Done slightly differently to what you said. http://stackoverflow.com/a/11062238 Jan 05 08:10:17 ir 7466 you have to deal with the content view of the dialog Jan 05 08:10:51 oh you want to use parent params Jan 05 08:11:13 hmm Jan 05 08:11:29 i just want to move that blue line in a bit Jan 05 08:11:36 input.getLayoutParams Jan 05 08:11:38 when i used the padding, i could get the cursor in Jan 05 08:11:51 input.getLayoutParams? Jan 05 08:11:59 input.getLayoutParams Jan 05 08:12:32 i don't follow Jan 05 08:12:36 don't I want to set them? Jan 05 08:13:04 i dont know what they are Jan 05 08:13:08 probably viewgroup Jan 05 08:13:11 but doesn't matter Jan 05 08:13:16 try it or not Jan 05 08:13:50 I still don't understand. do you want me to add that code? Jan 05 08:14:04 add which code? Jan 05 08:14:11 input.getLayoutParams Jan 05 08:14:12 whos on first? Jan 05 08:14:25 try it or not Jan 05 08:14:32 what does that mean lol Jan 05 08:14:51 how do I try it? won't it just return the same params I put into it in setLayoutParams? Jan 05 08:15:33 the world will never know Jan 05 08:16:26 is english your first language? Jan 05 08:16:35 ir Jan 05 08:16:37 try it already Jan 05 08:16:41 and stop being foolish Jan 05 08:16:41 hrm the make utility isnt installed either Jan 05 08:16:45 I don't know what you are asking Jan 05 08:16:53 how do I try it? what am I looking for? Jan 05 08:17:05 i have said what to do Jan 05 08:17:45 I assume you are saying, after the line: input.setLayoutParams(params); add LayoutParams test = input.getLayoutParams(); and add a breakpoint on that to debug? Jan 05 08:17:48 What is a View Holder?? Jan 05 08:18:10 DragonPunch: viewholder is a way of caching findViewById references Jan 05 08:18:28 by using the getTag / setTag functionality of a view, you can store the references of the findViewById lookups in the tag of a view Jan 05 08:18:33 so they don't have to be re-looked up Jan 05 08:18:57 ir somewhere, guess you will have to figure it out, you should do input.getLayoutPrams.leftmargin = 50; Jan 05 08:18:57 llaserix_: i see it being used in a listview here. Jan 05 08:22:58 ir7466: I have worked it out. Jan 05 08:23:27 https://gist.github.com/anonymous/4301681a02b31877bc8b Jan 05 08:23:56 you can just do getLayoutParams Jan 05 08:24:09 thanks Radther, trying it now Jan 05 08:24:10 In the first line change RelativeLayout to LinearLayout if it's using a LinearLayout. Jan 05 08:24:20 lasserix_: I tried that and it didn't work. Jan 05 08:24:46 margin doesn't appear to show. You can change width and height and a few others but not the margins. Jan 05 08:25:41 lasserix_: on a scale of 1-10 in android difficulty where would creating custom adapter be?? Jan 05 08:26:05 Radther, it doesn't appear to be working. How do I know whether a RelativeLayout or LinearLayout would be being used? Jan 05 08:26:11 given that it's just in an alertdialog Jan 05 08:26:20 DragonPunch: if you are just starting out idk maybe 4-10 if you have some expirence maybe 4 otherwise 2 Jan 05 08:26:34 ir7466: you'd look up the source Jan 05 08:26:42 that's why i was saying just add it and then use getLayoutParams Jan 05 08:26:45 else wrap it ina relative Jan 05 08:26:49 or whatever Jan 05 08:26:51 and add that Jan 05 08:28:33 how do I wrap it in a relative? it's an alertdialog Jan 05 08:28:46 oh Jan 05 08:28:50 are you saying this line: Jan 05 08:28:50 alert.setView(input); Jan 05 08:28:57 my input should be a relativelayout? Jan 05 08:29:13 which contains the edittext? Jan 05 08:30:28 sure if radther's sol didn't work Jan 05 08:31:10 Yeah, try what lasserix_ is saying. Jan 05 08:33:38 is there anything about this which looks wrong: http://pastebin.com/kVSGA7HH Jan 05 08:34:07 linearlayout is overkill Jan 05 08:35:08 lasserix_: how would i implement real time video calling. is it hard?? Jan 05 08:35:22 um Jan 05 08:35:38 I just changed it to relativelayout Jan 05 08:35:51 there's still no margin on it, it's totally left aligned Jan 05 08:36:02 if only I could get it 50px further to the right it would be fine Jan 05 08:37:18 ir7466: http://pastebin.com/snHi57LF Jan 05 08:37:41 DragonPunch: it is as hard as you want to make it Jan 05 08:38:04 lasserix_: well im debating should i use a webview w/ webRTC or is the android version of doing it alot simpler Jan 05 08:38:31 well like i mean you can do native coding via c and get something that is really nice Jan 05 08:38:43 which is what i would do but that is probably fairly complicated Jan 05 08:38:46 doing via a webview Jan 05 08:39:05 you will get something that will probably feel cheap Jan 05 08:39:15 but it will be fairly simple to do? Jan 05 08:39:17 convertDpToPx? Jan 05 08:39:39 same as from http://stackoverflow.com/a/9563438/2884981 ? Jan 05 08:39:51 ir you can just do 100 Jan 05 08:39:59 but you should use a dp value converted to px Jan 05 08:40:04 so it's the same on all resolution types Jan 05 08:40:11 yeah Jan 05 08:40:12 same Jan 05 08:40:33 if you simple use "100" it'll be different sizes depending on device's screen resolution Jan 05 08:41:31 ah!! that worked Jan 05 08:41:36 thanks lasserix_ Jan 05 08:41:49 Does anyone know if the bufferSize for Debug.startMethodTracing(String name, int bufferSize) accepts bufferSize as bytes or MBs Jan 05 08:42:23 ah its in bytes Jan 05 08:42:24 http://stackoverflow.com/questions/10642922/does-startmethodtracing-return-an-error-if-the-buffer-fills Jan 05 08:42:48 lasserix_ if you have a SO account and post that as an answer i'll tick it as accepted if you like Jan 05 08:47:41 f----king android Integer.compare requires api 19 wtf Jan 05 08:48:01 ir ok Jan 05 08:50:06 ohh oops Jan 05 08:50:12 wait Jan 05 08:50:16 there is a technically way to do it Jan 05 08:51:05 \( ^_^ )/ DRAGON PAWWNCH Jan 05 08:51:57 lasserix: So, I'm making a custom adapter what's the diff between these two lines Jan 05 08:51:57 public Object getItem(int position) {             return position;         }               public long getItemId(int position) {             return position;         } Jan 05 08:54:58 hey ira Jan 05 08:55:03 ir7466: http://pastebin.com/sgTZPQxP Jan 05 08:55:05 can you try that? Jan 05 08:55:25 DragonPunch: use pastebin Jan 05 08:55:47 http://paste.md-5.net/muxaxolitu.hs Jan 05 08:55:51 and obviousily one returns a long and the other an object Jan 05 08:56:09 lasserix_: line 43-50 Jan 05 08:56:15 i dont understand Jan 05 08:56:18 lasserix_ sure one moment Jan 05 08:56:20 they both say return position Jan 05 08:56:47 one would pass an int through the method and get a int back saying the position right/ Jan 05 08:56:59 use pastebin Jan 05 08:57:02 i cannot read that Jan 05 08:57:05 it hurts my eyes Jan 05 08:58:39 getItem implementation is broken Jan 05 08:59:29 you kinda have an elitist coding style Jan 05 08:59:50 you should write code that is easy to read Jan 05 08:59:56 but anyways Jan 05 09:00:04 getItem should return the item Jan 05 09:00:10 the adapter is backed by at that position Jan 05 09:00:25 --not the position, unless the adapter is backed by an ArrayList of Integers, i guess Jan 05 09:00:43 ir7466: forget it, don't think it works, alert dialogs kind of a pain in the ass Jan 05 09:03:03 i'm building the solution now Jan 05 09:04:22 crashed my app Jan 05 09:04:28 i'll stick to the first one :) Jan 05 09:05:22 i need to leave in a minute, but if you post your original pastebin solution on SO I can still mark it as correct Jan 05 09:05:42 wait Jan 05 09:05:45 i will Jan 05 09:08:21 ill edit it later Jan 05 09:08:28 if something else works Jan 05 09:08:50 okay, i've marked it as correct Jan 05 09:08:52 thanks for your help Jan 05 09:08:55 i appreciate it Jan 05 09:09:18 np Jan 05 09:09:21 cya later Jan 05 09:09:26 good luck Jan 05 09:09:38 DragonPunch: what? Jan 05 09:09:47 getItem should return the item the adapter is using Jan 05 09:10:29 an adapter bridges the data to the listview, Jan 05 09:10:37 usually you have a list of some data structure Jan 05 09:10:45 in simplest case, it'd be like a String Jan 05 09:11:05 and the adapter would have the responsibility of binding the string literal to the textview in the listview per row Jan 05 09:11:18 which would include inflating the row, finding the textview, setting its text, etc Jan 05 09:11:31 so getItem should return the item at that position Jan 05 09:11:49 getItemId should return a valid id of that item, if applicable Jan 05 09:12:00 usually it is unnecessary so you can just return the position Jan 05 09:21:42 DragonPunch: also if you always return 1 in getSize you're going to force a getView to always be called even if you have nothing to display Jan 05 09:22:50 sorry i didn't mean to say you have elistist coding style just having eye problems and the code looked like it was trying to be cool Jan 05 09:23:02 to the point of being unreadable Jan 05 09:36:25 Hello Jan 05 09:36:34 quick, silly question Jan 05 09:36:44 volley vs retrofit for basic json api interfacing? Jan 05 09:37:09 Retrofit! Jan 05 09:38:11 I'm try to dynamically change the visibility of an imageview in all items in my recyclerview. i click a button and change a boolean value in for all objects in a list attached to the adapter. i then notify the adapter of the change but only the last item in the list actually changes it's visibility. Jan 05 09:39:12 ironhalik: it depends Jan 05 09:39:17 don't listen to Jake Jan 05 09:39:46 JakeWharton: you're bias! Jan 05 09:40:09 :P Jan 05 09:40:55 ironhalik: what type of usage are you expecting? Jan 05 09:41:55 for now, reallt simple GET calls Jan 05 09:42:03 returning json data Jan 05 09:42:22 Yeah but I'm biased towards the right one. Jan 05 09:43:56 Retrofit has a tiny bit more upfront cost in setting up (tiny, tiny bit) but then on the long term adding and changing API endpoints is super easy and fast Jan 05 09:45:07 Yeah, for APIs Retrofit is significantly more elegant to use in comparison to Volley Jan 05 09:45:13 Also, actually has documentation. Jan 05 09:45:27 yeah, I kinda noticed that Jan 05 09:45:42 hmmmm Jan 05 09:45:50 I cannot say anything Jan 05 09:45:58 never really used retrofit Jan 05 09:46:03 O_O Jan 05 09:46:19 but generally - all that I need is something that will get me json Jan 05 09:46:40 and managebly parse it into data Jan 05 09:46:57 do it bare without using any libs Jan 05 09:47:14 both are just fine, they say retrofit is better, I cannot argue with them Jan 05 09:47:27 shmooz: HttpUrlConnection FTW! Jan 05 09:47:33 * Mavrik slaps shmooz Jan 05 09:47:36 What is this, 1985 Jan 05 09:47:47 let him appreciate slowly the evolution Jan 05 09:48:00 I guess it'll and with traditional async tasks :P Jan 05 09:48:19 and then if it's too slow you can use retrofit Jan 05 09:48:45 LOL Jan 05 09:48:46 Yes, first waste bunch of time writing 300 lines of boilerplate and dealing with shitty AsyncTask APIs so you won't have time to make your app work well :P Jan 05 09:48:55 sorry, more like 3000 lines of boilerplace Jan 05 09:48:57 *plate Jan 05 09:49:09 hmmmm Jan 05 09:49:15 thats just the thing I want to avoid Jan 05 09:49:21 * thepoosh is sensing anger Jan 05 09:49:40 ironhalik: if you don't get under hood you'll never know how it works Jan 05 09:49:46 but considering how trivial the requests are, getting the hang of a new library seems a bit of an overkill Jan 05 09:50:10 ah, I guess Ill just look around some code Jan 05 09:50:14 both for volley and retrofit Jan 05 09:50:27 *sigh* Jan 05 09:50:42 We shall call this "library fear" Jan 05 09:50:50 Good way of being unemployable :P Jan 05 09:51:02 nah Jan 05 09:51:04 library shmibrary Jan 05 09:51:10 I _love_ decent OSS libraries Jan 05 09:51:22 they just might not be cost effective in this situation Jan 05 09:51:24 :P Jan 05 09:52:20 hand code that stuff like a real man Jan 05 09:53:04 NDK ALL THE THINGS! Jan 05 09:53:10 lol Jan 05 09:53:20 ASM it to heck! Jan 05 09:59:20 sometimes you have to Jan 05 09:59:28 can't use Integer.compare till api 19 Jan 05 09:59:33 ... Jan 05 10:00:20 lasserix_, what's wrong with lhs - rhs? Jan 05 10:02:06 ? Jan 05 10:02:12 oh i just have a lot of Jan 05 10:02:16 things to compare Jan 05 10:02:39 but mostly i was being ironic Jan 05 10:02:51 think i should take a break, adios Jan 05 10:03:09 miss you already Jan 05 10:04:12 hehe Jan 05 10:04:19 it is a huge ternary operation Jan 05 10:04:30 maybe the greatest i'll ever come across Jan 05 11:27:06 does google play only read gradle versionCode when updating? or does versionName value matter? Jan 05 11:28:58 both matter Jan 05 11:29:33 ok so I should increase both before releasing? and does it count "1.0.1" as a valid increment to "1.0" for versionName? Jan 05 11:30:09 the only complain you will hear from it is when you try to upload a new APK while your versionCode is still the same as the last APK you uploaded Jan 05 11:30:25 it doesn't care whether you name it 1.0.1 or 8.0.2.4.5 Jan 05 11:30:31 the versionName is just a name Jan 05 11:30:32 ok so versionName is only for users to see Jan 05 11:30:35 alright Jan 05 11:30:57 and I don't think it cares if your first APK had a versinCode of 1 and then a versionCode of 5 Jan 05 11:31:02 just that it must be higher than 1 Jan 05 11:31:26 ok thanks that makes it easier Jan 05 11:31:26 but I'll just increment versionCode and use semver for versionName Jan 05 11:31:26 higher than the previous, that is Jan 05 11:31:37 yep Jan 05 11:31:53 your version code has to be higher than previous version to upgrade and it must not be duplicated by any apk Jan 05 11:32:11 so just incrementing it each update is safest Jan 05 11:32:46 not safest Jan 05 11:32:48 its the only way Jan 05 11:33:40 well it's not the *only* way because I could increase it by two each update. but it's the only non weird way :) Jan 05 11:34:29 ... yea man Jan 05 11:34:43 haha Jan 05 11:34:51 thanks for your help Jan 05 11:38:03 anytime Jan 05 11:38:03 (when things are working) Jan 05 11:38:05 what's your kickass app? Jan 05 11:38:12 let's see it Jan 05 11:49:49 hi all, in this example: http://stackoverflow.com/a/4316252 - I don't understand what MyPendingIntentService.class is, and what it should contain. Can someone please explain it to me? Jan 05 12:00:48 meital, it's the class that contains the Service, so in this example it will contain code for an alarm Service Jan 05 12:03:01 VnM_: So it should be: AlarmManager.class? Jan 05 12:04:18 Hi] Jan 05 12:04:19 it doesn't work (doesn't cancel the alarm) Jan 05 12:04:40 has anyone here ever had a problem with not being able to authorize their android device? Jan 05 12:04:53 under win 8.1 Jan 05 12:08:13 meital, no, AlarmManager isn't a service Jan 05 12:09:07 VnM_: Why do I need a service? I just want to schedule an alarm clock in my app, and then cancel it. What is the service used for? Jan 05 12:12:54 To ensure your alarm will still go off after you close your app Jan 05 12:13:39 and what if I don't care what happens after my app is killed? Jan 05 12:15:24 Then maybe you're better off with a CountDownTimer instead of AlarmManager Jan 05 12:15:47 ok, thanks! Jan 05 12:28:42 arrrrrghhhhhhhhhhhhhhhhhhhhh Jan 05 12:28:48 THIS IS DRIVING ME GODDAMN NUTS Jan 05 12:30:45 hey guys xD Jan 05 12:30:55 what's up Jan 05 12:32:36 how can asus have a usb driver for every tablet they make except this one Jan 05 12:32:38 makes no sense Jan 05 12:33:39 the same way macs dont read NTFS by default even know all the Stick drivers are on NTFS or FAT Jan 05 12:35:37 hm? Jan 05 12:36:40 im talking about getting usb drivers from their site. all asus tablets, even previous and newer models of the one i have have drivers on their site except for this one. There are no driver files whatsoever Jan 05 12:37:08 the google usb driver doesnt work, ive force installed that Jan 05 12:37:22 Okay Jan 05 12:37:37 How do I draw a blurred circle in the onDraw of a drawable with hardware acceleration? Jan 05 12:37:59 I have a TabStrip with like 3 tabs, how do I get the tabs to cover the width of screen? Jan 05 12:38:35 DragonPunch: match_parent on xml? Jan 05 12:38:44 abara: yes, how can i do that Jan 05 12:38:55 so do Jan 05 12:39:54 i have 3 text view each is a tab, and they are wrap content i think... Jan 05 12:40:32 the parent is a tab strip with match_parent on width Jan 05 12:40:42 http://paste.md-5.net/dulonecici.java Line 171 Jan 05 12:40:54 That's where it's creating the tab views Jan 05 12:43:46 abara: u see it? Jan 05 12:46:12 I don't believe it. Jan 05 12:47:15 Romain Guy. Jan 05 12:49:15 Fuck you Android, if you can't provide the functionality to draw a stupid shadow then I'll just not follow your guidelines. Jan 05 12:52:12 How do I remove the 'Action Bar' from a project... Jan 05 12:52:18 Completely remove it. Jan 05 12:53:49 DragonPunch, in your AppTheme Jan 05 12:54:16 android:windowActionBar -> false and android:windowNoTitle -> true Jan 05 13:09:14 Hi guys, here is my question. hope someone will shed some light. I have a listview component which I set the choice mode to CHOICE_MODE_MULTIPLE_MODAL in order to display the CAB. I don't have any checkboxes on the row layout and I'm checking/unchecking items myself using image views. The issue is that once the user selects an item (by clicking on my image veiws), the listview enteres "selection mode" and now when the whole row is Jan 05 13:09:24 the onListingItemClick, the system just checks/unchecks the row Jan 05 13:09:58 What I'm trying to do is to exit the selection mode when a user clicks on a row and trigger the normail onListingItemClick event Jan 05 13:11:39 anyone faced something similar? Jan 05 13:17:59 just like the gmail app Jan 05 13:56:49 Does anyone have good tutorials for CustomAdapter? Jan 05 14:01:02 What does it mean for setTag(holder) ... What's the point of setTag.. Jan 05 14:03:17 so you wouldnt need to inflate layout everytime getView is called Jan 05 14:03:27 just get the views from getTag() Jan 05 14:05:33 Ashiren: Yeah, makes sense hehe ^_^ Jan 05 14:06:28 anyone here working with custom annotation? Jan 05 14:12:39 Is there a way to do .... um .. ADD ALL import in AStudio Jan 05 14:12:45 like for all the missing classes Jan 05 14:13:19 maybe https://stackoverflow.com/questions/16615038/what-is-the-shortcut-to-auto-import-all-in-android-studio Jan 05 14:15:42 how do you position text in the actionbar? i have a custom layout and i tried the 20 answers on stackoverflow but it keeps getting pushed to the left..... (i have no action buttons) Jan 05 14:15:57 god this is annoying. why android why? Jan 05 14:17:43 Let the TextView fill the bar and align the text to the right? Jan 05 14:24:16 doesn't work. of course i tried that Jan 05 14:26:36 god i hate android Jan 05 14:28:23 what does res=getResources(); do Jan 05 14:30:03 it gets resources :p Jan 05 14:43:58 danijoo yes, but i dont have any resources in my res folder hehehe Jan 05 14:44:49 whats that question for then? Jan 05 14:47:37 holder.image.setImageResource( Jan 05 14:47:38 res.getIdentifier( Jan 05 14:47:38 "com.androidexample.customlistview:drawable/ic_launcher.png" Jan 05 14:47:38 ,null,null)); Jan 05 14:47:43 so essentially.. Jan 05 14:47:48 what im trying to do here is... Jan 05 14:48:05 use my drawable/ic_launcher.png Jan 05 14:48:07 but it wont see the image Jan 05 14:48:10 set* Jan 05 14:48:13 on my custom adapter. Jan 05 14:49:26 do holder.image.setImageDrawable( getResources().getDrawable(R.drawable.ic_launcher) ) Jan 05 14:49:39 you dont need to get the identifier by hand if you know the image name already Jan 05 14:49:51 sweeep Jan 05 14:49:57 miip Jan 05 14:49:57 lemme try \ ^_^ / Jan 05 14:51:30 danijoo: getResources this method is red Jan 05 14:51:40 'Cannot Resolve Method' Jan 05 14:51:43 x_x Jan 05 14:51:46 maybe res Jan 05 14:52:01 woop okey Jan 05 14:52:01 lemme rn the app Jan 05 14:52:01 ^_^ Jan 05 14:52:29 awmg. .... i got little androids on each of my listview rows Jan 05 14:52:31 NEHEEE ^_^ Jan 05 14:52:59 wat Jan 05 14:53:07 i made Jan 05 14:53:14 a custom adapter ;D Jan 05 14:54:09 yay for you! Jan 05 14:54:17 custom adapters are an important build block Jan 05 14:54:29 they were hard to overcome. Jan 05 14:54:51 now i finally feel worthy enough to put my android poster back on my wall Jan 05 14:55:02 * DragonPunch glees. Jan 05 14:57:39 now im going to make a custom adapter w/ volley to parse JSON and make pretty stuff Jan 05 14:57:52 huehuehue Jan 05 15:01:16 Right, I've been at this for 2 days now.....really need some suggestions:( Jan 05 15:01:25 wat Jan 05 15:01:46 yes Jan 05 15:01:47 trying to get my android device authorized for usb debugging Jan 05 15:02:05 huh Jan 05 15:02:32 whats the problem Jan 05 15:03:09 I never get the popup on the device to authorize it Jan 05 15:03:21 have you usb debugging activated Jan 05 15:03:26 yep Jan 05 15:04:16 'adb devices' shows anything? Jan 05 15:04:40 yes, the serial number or whatever and unauthorized next to it Jan 05 15:04:58 adb shell Jan 05 15:05:41 have you tried turning off and on "usb debugging" Jan 05 15:06:03 Hello guys Jan 05 15:06:03 I'm not 100% certain if i even have the correwct drivers though. There's no drivers available for this tablet on the asus site. I've tried the Asus composite adb drivers, google usb drivers Jan 05 15:06:05 yuo Jan 05 15:06:20 yup* Jan 05 15:07:56 I have a question just to be sure. I used the famous Picasso library and I want to know whether Picasso uses the url as a key to load chatted images? Jan 05 15:08:04 ive tried all the usual suggestions like turning off and on usb debugging, tried MTP, PTP, neither, revoking usb authorizations all in just about every combination Jan 05 15:08:09 Fraz: have you tried adb wireless and debugging via wifi Jan 05 15:08:11 chatted = chached Jan 05 15:08:13 Hey what exactly is Volley used for? Is it something like AndroidAsyncHttp? Jan 05 15:08:42 Ashiren, i havn't, no Jan 05 15:08:43 how would i do that? Jan 05 15:08:57 Number5, yes. what else would be possible? Jan 05 15:09:09 is your device rooted? Jan 05 15:09:16 nope Jan 05 15:09:27 danijoo, good question, but that's why I just want to be sure :) Jan 05 15:09:45 Fraz: try https://play.google.com/store/search?q=adb%20wireless%20no%20root&c=apps Jan 05 15:09:45 Have you unlocked developer settings? Jan 05 15:09:45 yep Jan 05 15:10:25 then you could connect via adb 192.168.x.x:5555 Jan 05 15:10:25 Fraz, whats yout usb connection mode? Jan 05 15:10:43 it sometimes not work if connection mode is media-thing Jan 05 15:10:43 KaylieG, what I've read is Volley is like Picasso but not necessarily for images. Jan 05 15:11:00 I'm using Android Studio btw, will i be able to do this with that, Ashiren? Jan 05 15:11:00 hi Jan 05 15:11:08 danijoo, ive tried in MTP, PTP and with both disabled Jan 05 15:11:13 rest in pieces Jan 05 15:11:26 Fraz: first get this thing to work Jan 05 15:11:44 Fraz: doesnt matter, android studio uses adb as well Jan 05 15:12:00 Oh I love Picasso, and I've been using android-async-http for networking, but now I'm reading about Volley and OkHttp and I was wondering if anyone had experience with them and had any recommendations Jan 05 15:12:50 Fraz, should use camera mdoe Jan 05 15:12:51 PTP is camera mode isnt it? Jan 05 15:13:01 think so Jan 05 15:13:02 KaylieG, that's a good question. Jan 05 15:13:27 also try another usb cable. Jan 05 15:13:48 i have one here that does not work for adb, and all other do Jan 05 15:14:01 tried 2 usb cables Jan 05 15:14:02 2 pcs Jan 05 15:14:18 every usb port Jan 05 15:14:33 usb 2,0 ports? 3.0 dont work too Jan 05 15:15:07 3.0 think Jan 05 15:15:21 have you tried the wireless Jan 05 15:15:33 try 2.0s Jan 05 15:15:50 and yeah. try wireless Jan 05 15:16:15 but you need to be rooted for wireless on some devices i think Jan 05 15:17:46 uable to connect on :5555 Jan 05 15:18:37 unable to connect to 192.168.1.70:5555 Jan 05 15:20:40 hello im a newbie in android, im trying to use android with sqlite and got this error after consulting the doc, i dont get why i got this error http://pastebin.com/nb9p3PPu Jan 05 15:20:49 thnks for your help Jan 05 15:22:23 danijoo, should i just disable the usb 3.0 controller in the bios? Jan 05 15:24:38 Fraz, no. you need a usb 2.0 port Jan 05 15:24:51 If I was making an app to control/monitor my computer so that if someone else was using it, I'd know what they were up to, what all features would be good to have? Jan 05 15:25:08 So far all I've got is screenshots Jan 05 15:25:14 john67: well, it says "no such column" Jan 05 15:26:24 danijoo, the specs of the board says support USB 1.0/2.0/3.0 Jan 05 15:27:11 there are different usb ports on the board Jan 05 15:27:16 some are 2.0, others are 3.0 Jan 05 15:27:32 oh well, ive tried them all Jan 05 15:27:32 you can differ them by color. usb 3.0 ports are blue Jan 05 15:27:34 mh ok Jan 05 15:33:16 danijoo, theres blue and black ports Jan 05 15:33:17 no yellow Jan 05 15:34:07 guessing the black ports are 2.0 then. The tablet has been hooked upto a black port all of today Jan 05 15:35:23 Ashiren: after rechecking again i dont get why i got that error, http://pastebin.com/MyP7YqHU my table has the column from the table, this is the code http://pastebin.com/MyP7YqHU Jan 05 15:36:32 by the way, when i hook up the device, it shows 2 devices. One under portable devices(K017, showing a camera icon) and one under other devices(MTP) with the driver uninstalled atm Jan 05 15:36:51 MTP is what i should be installing the driver for, right? Jan 05 15:38:24 you should disconnect for installing the proper drivers Jan 05 15:39:27 ? Jan 05 15:39:47 1) install drivers Jan 05 15:39:51 2) connect device Jan 05 15:40:27 or install linux :V Jan 05 15:40:31 how can i install the drivers when i cant see the device in device manager? Jan 05 15:40:33 meh:S Jan 05 15:41:09 I would guess a significant - not large, but significant - proportion of all issues on this channel have to relate to windows drivers Jan 05 15:41:21 john67: a typo Jan 05 15:41:25 john67: TASK_COMPLETE +"TEXT "+ Jan 05 15:41:30 should be TASK_COMPLETE +" TEXT "+ Jan 05 15:41:33 Leeds, true.. Jan 05 15:41:50 Fraz, by downloading them... Jan 05 15:42:14 the drivers coming with the device are most often only for user related stuff like moving photos arround. They wont work with adb Jan 05 15:42:17 so you have to remove them and install proper one Jan 05 15:42:23 there are no drivers whatsoever for this device Jan 05 15:42:31 which you hopefully get from the manufacture Jan 05 15:42:38 checked on the asus sight Jan 05 15:42:55 if you dont.. well... you're fucked ^^; Jan 05 15:42:56 site* Jan 05 15:43:19 theres multiple models of this tablet, every model before and aftert this one has usb drivers on the asus site Jan 05 15:43:23 this one doesnt Jan 05 15:43:49 https://www.youtube.com/watch?v=gvsCDMfbu7s Jan 05 15:44:46 windows before would install Asus composite adb drivers when i hooked the device up, but it didnt work with those either Jan 05 15:44:49 no it just doesnt install anything Jan 05 15:45:22 now* Jan 05 15:45:35 :c Jan 05 15:45:46 i have to either force the google usb drivers or the asus composite device adb drivers Jan 05 15:46:06 the device is then detected in adb, but i cant authorize it Jan 05 15:46:21 so the driver works Jan 05 15:46:25 what do you mean by "detected in adb"? Jan 05 15:46:31 as it can see device Jan 05 15:46:42 it shows under adb devices as unathorized Jan 05 15:46:59 yeah, if you mean that adb on your computer can see the device, it's not a driver issue Jan 05 15:47:00 well, probably not... Jan 05 15:47:16 Hello.. Its possible to know which codecs (audio and video) use hardware (dsp)? Jan 05 15:47:36 maybe the manufacture somehow locked adb? Jan 05 15:47:37 dunno Jan 05 15:48:11 Ashiren: thnks , for the help Jan 05 15:48:24 you *have* enabled adb on the device, right? Jan 05 15:48:58 hmm Jan 05 15:49:13 can you run adb (or cmd) as administrator? Jan 05 15:49:18 Fraz: do you get a debug notification on the device when you plug it in? Jan 05 15:49:42 yes Jan 05 15:49:57 Leeds, enabled adb? you mean usb debugging? Jan 05 15:50:04 yes Jan 05 15:50:14 enabled debugging, and then usb debugging Jan 05 15:50:17 you hopefully pressed yes on that notification ^^ Jan 05 15:50:24 yes thats enabled, but i NEVER get the authorization popup Jan 05 15:50:33 no i never that that notification Jan 05 15:50:37 thats the problem Jan 05 15:50:47 and why i cant authorize Jan 05 15:50:50 never that that notification? hmm Jan 05 15:50:55 wait... Jan 05 15:50:57 in developer settings clear/reset the authorization Jan 05 15:51:02 done it Jan 05 15:51:13 you get a *notification* saying you're connected for debugging, right? that's not the same as the authorisation dialog Jan 05 15:51:16 many many times in combination with many many different things Jan 05 15:51:27 i havnt once had that notification Jan 05 15:51:45 yeh i get the debugging is connected message Jan 05 15:51:50 but not the authorization dialog Jan 05 15:52:19 ok, do you actually know what a notification is? Jan 05 15:52:27 yes lol Jan 05 15:52:34 so do you get a debug notification or not? Jan 05 15:53:02 he says he gets the usb debugging notification, but never the autorization popup Jan 05 15:53:16 "usb debugging connected" shows in the top bar when i connect the device up Jan 05 15:53:18 Ashiren: he seems to be confused between notifications and dialogs Jan 05 15:53:25 but i never get the authorization pop up Jan 05 15:53:39 no ,he doesnt Jan 05 15:53:44 no im not Jan 05 15:53:44 a dialog is a pop up Jan 05 15:53:47 eeyup Jan 05 15:54:41 https://stackoverflow.com/questions/23081263/adb-android-device-unauthorized Jan 05 15:54:58 gone through that Jan 05 15:55:03 and many others Jan 05 15:55:24 well then theres nothing much we can do Jan 05 15:55:33 :( Jan 05 15:55:37 it doesnt make sense Jan 05 15:56:01 you coul try linux but thats overkill for just developing for android Jan 05 15:56:01 linux adb is plug 'n' play ^^' Jan 05 15:56:11 yeh Jan 05 15:56:41 i used to dual boot when i was learning c++ Jan 05 15:57:32 ok, so when installing the usb driver.... Jan 05 15:57:41 should i use the google usb driver? Jan 05 15:57:52 hmm, I thought there was a way to get adb on the PC to regenerate its key, but maybe not... might be worth hunting it down and deleting it, force it to generate a new one Jan 05 15:57:55 whatever i use i have to force install it Jan 05 15:58:10 yeah i looked into that Leeds Jan 05 15:58:26 you just delete the adbkey file in username/android Jan 05 15:58:33 didnt fix the problem Jan 05 15:58:42 THIS YEAR IS MY YEAR AND IM GOING TO TAKE OVER THE WORLD OF COMPUTING MOTHER FUCKERS Jan 05 15:58:45 DRAGON PAWNCH Jan 05 15:59:11 this somehow sounds like your device just says no to every incoming connection by default Jan 05 15:59:36 so srry guys, i got too excited again Jan 05 16:00:20 yes, customadapters can be really intoxicating Jan 05 16:00:29 for the driver, you said to install it with the device unplugged Jan 05 16:01:18 so right click the setup information file and install that way? Jan 05 16:01:18 then hook up the device Jan 05 16:01:24 do you have some firewall or "cleaning system" app in your device? Jan 05 16:01:42 fraz, its probably the usb cable you are using Jan 05 16:01:45 not installed by me Jan 05 16:01:56 fraz, some usb cables don't have data cable Jan 05 16:02:03 unless asus put something like that on, then no Jan 05 16:02:17 fraz, i used a usb that charges my headphones and tried running my android device on it and it didnt work Jan 05 16:02:18 dragonpunch i have tried 2 cables Jan 05 16:02:34 the official one that came with the device and the one for my desire hd which ive used for this stuff before Jan 05 16:02:43 fraz, when i switched to using a normal usb it worked Jan 05 16:02:49 fraz, is your computer detecting the device Jan 05 16:02:58 yeh Jan 05 16:03:10 When using ndk-gdb I get "warning: while parsing target library list: not well-formed (invalid token)" and it doesn't load any debugging symbols. What can I do to fix this? Jan 05 16:03:26 fraz, not sure. keep messing wiht it and you will get it to work. Jan 05 16:05:25 http://s24.postimg.org/ee70xde4h/derp.png this is what i see now, after manually uninstalling the drivers Jan 05 16:05:35 this is in MTP mode with usb debugging enabled Jan 05 16:05:36 gotta do something pretty bad to get a ban here :P Jan 05 16:08:16 it shows the same in PTP mode too Jan 05 16:08:48 with MTP AND PTP disabled it just shows as "android" under other devices with an exlamation mark Jan 05 16:09:42 what should i be installing the usb driver on? MTP in MTP or PTP mode or have them both disabled and install the drivers for the android device? Jan 05 16:09:55 or for the k017 under portable devices Jan 05 16:10:14 anybody could help me ? http://stackoverflow.com/questions/27781222/adding-admob-in-my-project Jan 05 16:18:05 i cant believe i could hook up a shitty generic Jan 05 16:18:17 30 bucks chinese tablet Jan 05 16:18:25 with no problems Jan 05 16:18:45 and ive been trying for 2 days to get an asus device to work Jan 05 16:23:38 danijoo, well i cant find any info online about that. in fact i cant find any info at all about people trying to use it for development Jan 05 16:23:57 oh oops, was scrolled up to something you said ages ago Jan 05 16:34:31 Anyone heard rumors about gen 1 moto x getting lollipop? Jan 05 16:36:16 yiati: you mean like... Motorola having made a public announcement about which of their devices are currently planned to get updated? Jan 05 16:36:48 Nah, I know they said which devices will 'eventually' get it, and that the gen 1 moto x is one of them Jan 05 16:37:03 I'm still waiting :P can't take the anticipation! Jan 05 16:43:43 argh, really shouldn't be doing my head in trying to understand git documentation at 00:43 Jan 05 16:54:35 yiati,I hear there are but not sure. Jan 05 16:55:31 when they are get it. Jan 05 16:56:30 so im trying to get a unique device ID for my device through Secure.getString(etc.)... but I look at this post and it says it sometimes can be null. is there any other way of getting a device ID. It can never be null for what i need it for Jan 05 16:56:31 http://stackoverflow.com/questions/2785485/is-there-a-unique-android-device-id Jan 05 17:12:50 Is it possible to port the Magazine UX from the Pro Tablets onto a Note 4? I wanna give it a try, looks better than the stock note 4 launcher Jan 05 17:29:12 is it important to assign a version to your app Jan 05 17:29:40 yes it is Jan 05 17:29:42 what does it acutally do? Jan 05 17:29:45 only if you plan on ever releasing an update Jan 05 17:29:50 thats how play store works Jan 05 17:29:58 it lets the system know if there’s an update available Jan 05 17:30:08 ok thanks that is what I thought Jan 05 17:30:08 theres two version numbers Jan 05 17:30:19 one is a sort of display number (could be free text) Jan 05 17:30:29 and other is a sequantial number thats used to internal tracking Jan 05 17:30:44 like to actually check if there is a newer version Jan 05 17:30:54 how can I restore the scroll position in a GridView that is in a ViewPager? when one of my grid items is clicked, it inflates a new fragment, but when I go back, my lists position isn't restored Jan 05 17:31:25 so the playstore will know that it needs to update a new version based on the Bundle Version tag? Jan 05 17:55:32 hello guys, can I recognize that my main activity is paused because other child activity is starting by intent? I'm mean is there mechanism for it or I have to implement by myself? Jan 05 18:10:22 Hi all, I'm implementing IAP and following the google play wiki. It seems to be out of date. The IabHelper has a parameter not explained in the documentation or used in the sample called Appstore. I'm not sure what to pass in here Jan 05 18:10:38 mHelper = new IabHelper(_launcher.getContext(), base64EncodedPublicKey, null); Jan 05 18:10:51 trying to figure out what I should put in place of null Jan 05 18:12:27 Hello everyone, a few days late but Happy New Year :) Jan 05 18:13:07 jeffol: anything. Anything at all Jan 05 18:13:38 s73v3r: Oh? It seems rather silly.. Why would I have an object that is the app store? And why would I pass a required parameter, passing anything? ;o Jan 05 18:14:06 one word: NullPointerException Jan 05 18:14:28 Okay. It kind of seems like its expecting Appstore.GooglePlay or something. Jan 05 18:17:03 what are you going off of? Jan 05 18:17:03 http://developer.android.com/training/in-app-billing/preparing-iab-app.html Jan 05 18:17:05 The IabHelper constructor has two parameters here. However, it won't compile. It requires three parameters. The last being "Appstore" Jan 05 18:19:34 I can't for the life of me find any documentation on this change either. Jan 05 18:20:23 If you look through the source file of IabHelper, does it show any implementations for that 3rd parameter? Jan 05 18:20:51 MikeWallaceDev: happy new year o/ Jan 05 18:23:06 s73v3r: I'm not sure where to find the source file for such :/ Jan 05 18:23:50 Seems like a very recent change due to going to Open In App Billing Jan 05 18:23:54 to target multiple app stores Jan 05 18:24:08 what happens if you right click and go “View Definition” on the class? Jan 05 18:25:06 Source not found, The JAR of this class file belongs to container 'Android Private Libraries' which does not allow modications..etc Jan 05 18:25:08 I’m guessing so too. It might have something to do with chrome’s app store and android app store Jan 05 18:25:51 is it possible to roll back to an earlier version of the Google Play Services lib? Jan 05 18:27:22 not sure. :/ Jan 05 18:28:26 I had to get on Google's ass about other documentation being out of date a few months ago as well :P Jan 05 18:31:42 hi there Jan 05 18:31:56 is it possible to distinct menus on two different toolbars (android 5 support library) in the same application? Jan 05 18:32:27 bcos everytime that I open a fragment that shows the 2nd toolbar, the menu on the 1st toolbar disappear Jan 05 18:37:23 s73v3r: I think I got it. Jan 05 18:37:39 h4k1m: new org.onepf.oms.appstore.GooglePlay(androidLauncher, base64EncodedPublicKey) Jan 05 18:37:51 abara \o Jan 05 18:38:23 you had to create a new instance of Google Play? Jan 05 18:38:32 Heh, Yeah. Jan 05 18:39:00 brilliant Jan 05 18:39:14 I can't confirm this works but it compiles. I will report back Jan 05 18:39:49 jeffol: was the link intended for me? Jan 05 18:40:07 h4k1m: no it wasn't, sorry Jan 05 18:40:18 h4k1m: i moused over the wrong name Jan 05 18:40:23 no problem Jan 05 18:43:03 h4k1m: yes, it is, pastebin/gist your fragment code Jan 05 18:43:12 sounds like you have a bug Jan 05 18:44:17 So I'm making a reddit app, and I'm thinking of using a simple caching strategy where reddit-like things (e.g., comment listings and post listings) are cached for N minutes. An an example, if you go to /r/androiddev and then to /r/android and then straight back to /r/androidev, the second visit will not download anything. Jan 05 18:44:27 My question is this: I'm thinking of using this same mechanism in onSaveInstanceState/onCreate (in other words, I'm thinking of using disk caching in place of the Bundle thing). Does that sound like a sensible idea? Jan 05 18:44:44 yes, sounds like what i'd expect Jan 05 18:45:12 i'd combine it with possibly doing a poll of the page to see if it's updated (is there a simple last-change you can get from http that reflects change w/out downloading content?) Jan 05 18:45:17 and a "pull to refresh" notification Jan 05 18:45:58 Okay, thanks. Hmm, that's an idea I hadn't thought of. I *think* HTTP can do that, but it's been years since I've thought about it. Lemme google. Jan 05 18:48:17 Okay, there's an If-Modified-Since header that can be sent in the request. Jan 05 18:48:28 304 Not Modified may be returned. Jan 05 18:48:33 when you make the request, does the response include caching headers? Jan 05 18:48:41 if so, just go with what those say Jan 05 18:49:00 there are multiple ways to do that with http, both if-modified-since and if-none-match Jan 05 18:51:42 I just did a query and got "cache-control: no-cache", so I guess it's not doing anything fancy cache-wise. Jan 05 18:54:32 What I might do is refuse to try to download again until N minutes have passed (and maybe the user has some control over N). If N minutes *have* passed, I'll download if and only if a request with If-Modified-Since gives me the response I want. Jan 05 18:54:50 (But of course the user can force a fresh download at any time with a Refresh button or a pull-to-refresh action.) Jan 05 18:56:02 The reason being that, even if there is new content, it might be trivial (e.g., a single new comment in a comment listing of 1,000 comments). Jan 05 18:56:45 Or just a new upvote in a subreddit post listing. Jan 05 18:57:19 Napalm: yes I think so, it's not bcos of having two toolbars I think I'll investigate on my side Jan 05 18:59:33 TacticalJoke: LET ME BETA YOUR APP ALREADY!!! Jan 05 19:00:02 s73v3r: I found my problem. I was previously using the OpenIAB library, and it was importing those libraries. Google's sample has its own /utils/ folder with the IabHelper.java. I was referencing the wrong library :P Jan 05 19:00:03 thepoosh: I'd love that. :D I'll just add a few features first (it's so lame right now). Jan 05 19:00:24 I feel like a Vogon with all this therapeutic shouting Jan 05 19:00:47 thepoosh: I'll let you know as soon as it's good enough to be tested. Thanks. :) Jan 05 19:01:03 good! Jan 05 19:01:39 Shouting does feel cathartic sometimes. Jan 05 19:01:43 s73v3r: Thanks for your help! Jan 05 19:01:44 which vogons? the ones from the hitchhiker's guide, or the ones from that old star-trek-like syfy show? ;) Jan 05 19:04:21 Okay, as far as I can tell, reddit doesn't send Last-Modified at all. Jan 05 19:04:32 Which I guess makes sense. Jan 05 19:04:36 So I'll just have to use the N-minute thing. Jan 05 19:05:22 I guess reddit's servers don't want to take the performance hit of trying to figure out when something was "last modified". Jan 05 19:05:24 TacticalJoke, I would start a background download, and cancel it if the user leaves the page... Jan 05 19:05:42 Yeah, I'm doing cancelling. Jan 05 19:05:53 cool. Jan 05 19:05:54 The cache mechanism will (I think) kick in only if they fully downloaded the page. Jan 05 19:06:28 Part of the reason I picked OkHttp was that it has a good API for cancelling requests. :) Jan 05 19:06:28 But mainly because it just looks better than anything else in general. Jan 05 19:06:34 Right... I wasn't clear... I would show the cache + download in the bg. Then append what ever is new Jan 05 19:06:50 Oh, I see. Jan 05 19:07:07 so, no wait time AND they get all the data Jan 05 19:07:36 It should be doable if the comments are in order, or dated Jan 05 19:08:16 I guess one issue is that comments can jump all over the place (because they're ordered by time, score, etc.). Jan 05 19:08:38 And posts, too. Jan 05 19:08:56 ddd: are the "Vogons" from star-trek therapeutic shouters? Jan 05 19:08:56 they are displayed by score, I wonder in which order you actually receive them? Jan 05 19:09:11 Yeah, I receive them in exactly that order. Jan 05 19:09:21 I think a reddit client never has to do manual ordering. Jan 05 19:09:21 score? Jan 05 19:09:54 They are received in terms of "hotness" (I think). And it's something like score (higher is better) combined with age (younger is better). Jan 05 19:09:59 right right Jan 05 19:10:34 I think my suggestion still makes sense... Jan 05 19:10:42 without the appending part Jan 05 19:10:50 hmmm... Jan 05 19:10:56 no.. you are wrong Jan 05 19:11:00 TacticalJoke: I just read your last comment (without any context) Jan 05 19:11:05 and thought you were talking about a dating site :p Jan 05 19:11:05 although I hate when things move around on screen Jan 05 19:11:07 JesusFreke: lol Jan 05 19:11:16 JesusFreke, hehe Jan 05 19:11:37 "Younger is better" sounds pretty creepy in that context. :D Jan 05 19:12:03 thepoosh: no, thus the suprise at the reference. took me a minute to remember the ones from the THGTTU Jan 05 19:12:08 bynarie: Who is wrong? Jan 05 19:12:16 ok ok, so i'm a space nerd ;) Jan 05 19:12:27 TacticalJoke, how about cache + d/l and then an icon that shows there is new data Jan 05 19:12:30 TacticalJoke, sorry wrong channel didnt mean it to go here Jan 05 19:12:56 hey ddd whats up buddy Jan 05 19:12:56 hey hey Jan 05 19:12:56 That's a pretty nice idea. Jan 05 19:13:00 it's cool bynarie , somebody was probably wrong somewhere :D Jan 05 19:13:03 Though I'm inclined to think that caching for N minutes (perhaps 5 minutes) might not be too annoying. Jan 05 19:13:18 Especially if the user can pick N. Jan 05 19:13:20 working on finding the right vm settings for RubyMine. indexing speed (and mem usage) are pissiing me off Jan 05 19:13:30 MikeWallaceDev, yea... prolly me lol Jan 05 19:13:37 haha Jan 05 19:13:40 ddd, ah still working the ruby ey? Jan 05 19:13:47 =] Jan 05 19:13:59 *always* will. Love my ruby. Just want to learn more stuff :) Jan 05 19:14:12 And just making them manual-refresh if they want new stuff now. Though I'm not sure. Jan 05 19:14:32 The reddit app I currently use tries to cache *everything* for like 12 hours by default. Jan 05 19:14:36 It's obnoxious. Jan 05 19:14:36 brb, investigating a google entry to see if it will help Jan 05 19:15:07 absolutely.. i remember me and you both said how we start learning stuff and never dive in too deep..we have a great deal of generic knowledge on a ton of things Jan 05 19:15:15 I feel like the programmer put so much effort into the caching code that he decided to use it as much as possible. Jan 05 19:15:29 bynarie: yes indeed Jan 05 19:15:42 When it comes to reddit, who wants stale data? I don't go to reddit for old stuff. Jan 05 19:15:49 2015 is the year I change that. Jan 05 19:16:02 TacticalJoke, exactly... Jan 05 19:16:07 For example, does anyone want to read a reddit post from two years ago? I almost never would. Jan 05 19:16:07 ddd, i wish i could say the same, and actually mean it LoL Jan 05 19:16:26 i figure spending the first week of the year getting the new machine (bought New Year's Eve) the way I want it is not a wasted time expenditure. Jan 05 19:16:31 After that, its full on Let's Get It On! time :) Jan 05 19:16:33 Even from 24 hours ago. Jan 05 19:16:38 haha Jan 05 19:16:48 sorry, MMA nut too hehe Jan 05 19:17:10 watching the vids (or even getting to go to a match) are my 'down time' Jan 05 19:17:33 u watch ufc? Jan 05 19:18:05 about 10 years ago i used to do mma style fighting. Nowhere, not even close, to being UFC level but i loved it just the same Jan 05 19:18:05 yeah Jan 05 19:18:05 love UFC Jan 05 19:18:05 nice Jan 05 19:18:12 i got a neighbor who does MMA fighting Jan 05 19:18:28 i cant fight for crap tho myself Jan 05 19:18:29 When you think about it, reddit seems so wasteful. All those posts, all those comments... and nobody cares about them after a few hours. Jan 05 19:18:35 With a handful of exceptions. Jan 05 19:18:37 i was good enough to hold my own when I needed to. The guys in the UFC now.. holy shit they're good! Jan 05 19:18:40 I used to do competitive kickboxing but then I realized I needed my brain to be a software engineer Jan 05 19:18:59 Is UFC fun to watch now? I could never get into it. I used to love the old boxing bouts. Jan 05 19:19:07 Mike Tyson in his prime, for example. Jan 05 19:19:11 jeffol: hahaha Jan 05 19:19:11 niiiice Jan 05 19:19:11 jeffol, LOL Jan 05 19:19:24 TacticalJoke: if you're into that style of fighting, especially if you've ever done it, its awesome. Jan 05 19:19:25 I did kick-boxing too. :) Though not much sparring. Jan 05 19:19:36 WTF? My Lollipop tablet isn't being recognized by my Linux box anymore?? (everything was fine yeterday) Jan 05 19:19:40 but a lot of people get turned off because there's so much 'sizing up' time in the ring Jan 05 19:19:51 they just want DING! Jan 05 19:20:00 Yeah, I used to be into martial arts and stuff. I can appreciate the technique. Jan 05 19:20:01 yea i was in to the standard boxing a while ago but not anymore Jan 05 19:20:08 they don't realize just how much strategy and setup goes into a match Jan 05 19:20:25 TacticalJoke: then you should like the current generation of fighters Jan 05 19:20:32 I don't find grappling so fun to watch, though. Jan 05 19:20:36 ddd realizing it, and fingind it boring are too different things... Jan 05 19:20:40 MikeWallaceDev, ive noticed a lot of problems with lollipop/linux.. i have to tick the box for usb debug/mtp to get it too work sometimes Jan 05 19:21:02 Since Tank Abbot got his ass handed to him, its been a slow morph from I'm A Bad Ass to I'm A Skilled Fighter, and So Are You. Let's Do This Jan 05 19:21:07 bynarie, I've had no problems up until now... Let me check that out Jan 05 19:21:30 Talking of fighting sports, I wanna see Pacquiao destroy Mayweather. Jan 05 19:21:30 The latter's ego is huge. Jan 05 19:21:34 ok.. with my nexus 7 and n9 ive seen it happen quite a few times.. what distro are you on>? Jan 05 19:21:34 bynarie, wait, which box?? Jan 05 19:21:35 And Pacquiao is amazingly good. Jan 05 19:21:59 bynarie, Fedora 20 Jan 05 19:22:25 for usb debugging.. and the MTP connection under settings->computer connection Jan 05 19:22:29 In boxing now, it feels like Pacquiao is the only good fighter left. Jan 05 19:22:42 actually... I don't think Linux is the problem. The device is charging, but is not connecting to USB Jan 05 19:22:53 MikeWallaceDev, ok never had fedora but im on buntu 14.10.. it never messed up with 4.4, only with 5.0 Jan 05 19:23:18 mik ddddddd Jan 05 19:23:18 grrr Jan 05 19:23:43 MikeWallaceDev: plug it in and out a few times and look at dmesg Jan 05 19:23:49 im assuming you've tried a diff usb cable/made sure its not bad? that has happened to me before too Jan 05 19:24:14 MikeWallaceDev: that'll tell you what linux thinks is going on with the usb port; pastebin if it's not something obvious. Should be in the last 20 or so lines. Jan 05 19:24:35 maybe dmesg | grep "usb" Jan 05 19:24:45 dragorn, the box is seeing it fine... Jan 05 19:24:55 i'd just look at the last 20 lines, sometimes it's non-obviously tagged with 'usb'. Jan 05 19:25:02 (checked with dmesg, as suggested) Jan 05 19:25:02 oh ok Jan 05 19:25:26 I'll try another cable... worked yesterday, but I'll see Jan 05 19:25:40 MikeWallaceDev: Well, if it's being seen, it's not the cable Jan 05 19:25:53 MikeWallaceDev: so it's been enumerated, there's a visible vid/pid in dmesg or in lsusb, etc? Jan 05 19:26:24 Another "My app was removed and I don't know why" post: http://www.reddit.com/r/androiddev/comments/2re186/just_had_my_app_which_i_have_been_working_on_for/ Jan 05 19:26:35 well, my "dumb thing to say today" moment just passed... :D Jan 05 19:26:56 MikeWallaceDev: If it's enumerated on the bus, it probably comes down to permissions; either something wiped out you dbus config, maybe, or it changed the vid/pid pair with the update, or something Jan 05 19:27:10 The petition has 1,500 signatures now: https://www.change.org/p/google-inc-provide-android-developers-with-one-on-one-communication-to-help-identify-and-resolve-policy-violations-prior-to-automated-and-irreversible-suspensions Jan 05 19:27:15 Anyone using Android Studio on OSX? I Installed subversion 1.8 using brew, did a PATH export, but Android Studio still doesn’t detect it. —version in Terminal does, but not Android Studio. Jan 05 19:27:31 actually, I think lsusb isn't seeing it... Jan 05 19:27:33 MikeWallaceDev: i'd be a little surprised tho. usually if it's going to be a weirdo usb thing, it would be not actually enumerating correctly. Jan 05 19:27:57 MikeWallaceDev: ok; then change cables :) or usb ports. also, try rebooting the android dev (or better yet, powering it off and powering it on) Jan 05 19:28:13 I powered off/on a few times Jan 05 19:28:15 MikeWallaceDev: I've definitely seen usb chipset f-ups that stay broken through reboots, but a full power off clears them Jan 05 19:28:30 Now it just died... so I will have to wait a few minutes... Thanks :) Jan 05 19:29:13 MikeWallaceDev: you should see something in dmesg like new device detected, new usb device found (vid/pid pair), New usb device strings (...) in dmesg Jan 05 19:29:29 New USB device strings: Mfr=2, Product=3, SerialNumber=4 Jan 05 19:30:18 so it's enumerating something Jan 05 19:30:30 i'd expect manuf and serial number lines to follow that? Jan 05 19:30:39 theblang go to AS preferences / Version Control and make sure the path is right Jan 05 19:30:50 make sure the Subversion plugin is installed :) Jan 05 19:31:50 Subversion?! Is this 2001? :D Jan 05 19:33:26 box, dbus, and cable are fine. I just plugged my phone in, immediately detected. Jan 05 19:33:26 TacticalJoke :P, Enterprise, not my decision Jan 05 19:35:42 theblang at least as an enterprise app dev you don't have to worry about getting your app banned Jan 05 19:35:52 i'd suffer with subversion ;) Jan 05 19:36:26 Do you folks think this petition will help? https://www.change.org/p/google-inc-provide-android-developers-with-one-on-one-communication-to-help-identify-and-resolve-policy-violations-prior-to-automated-and-irreversible-suspensions Jan 05 19:36:33 g00s man, I’ve been hearing about the ban wave. Very disheartening. Jan 05 19:36:42 TacticalJoke, I signed it. Jan 05 19:36:48 Can't hurt Jan 05 19:36:48 Cool. Jan 05 19:37:00 I haven't signed yet but I think I will. Jan 05 19:38:45 TacticalJoke android is just another one of google/s big A/B experiments. we're all just along for the ride as digital labor Jan 05 19:39:28 Android is pretty much their core product these days right along side search Jan 05 19:39:36 I hope that's not true, but it wouldn't surprise me. :/ Jan 05 19:40:51 i signed it.. seems like a crap policy to just ban an account without real reason Jan 05 19:47:18 I agree the approach is wrong, but there is likely a seemingly real reason for the automated system to think what it does Jan 05 19:47:38 true Jan 05 19:47:53 The automated system is going to take over google Jan 05 19:47:58 I, Robot style Jan 05 19:48:32 Larry and Sergey are safe though, http://www.google.com/killer-robots.txt Jan 05 19:50:45 lol Jan 05 19:50:47 nice Jan 05 19:50:57 wtf is that? lol Jan 05 19:51:00 never seen it b4 Jan 05 19:51:48 haha, one of their easter eggs. can’t remember how I found out about it. Jan 05 19:53:46 ahh.. do you remember a long time ago they had one.. it was the broadband inet service that runs thru the sewer system.. Jan 05 19:53:47 ? Jan 05 19:54:20 you flush the line down the toilet to run it to the sewer system Jan 05 19:54:22 It's a pun on the robot exclusion policy http://en.wikipedia.org/wiki/Robots_exclusion_standard Jan 05 19:54:51 http://www.google.com/tisp/ Jan 05 19:55:29 basically any website is allowed to have a robots.txt text file at their root that tells other web crawlers what paths they are allowed to crawl and who is allowed to Jan 05 19:55:48 Their legit one is http://www.google.com/robots.txt Jan 05 19:56:16 Many website have them http://www.amazon.com/robots.txt Jan 05 19:56:16 ec Jan 05 19:56:16 etc. Jan 05 19:56:47 gotcha Jan 05 19:59:14 Can anyone help with this? http://stackoverflow.com/questions/21043432/android-create-shortcut-from-adb Jan 05 19:59:29 I can start the app I want, using adb shell am start ...... Jan 05 19:59:56 But how to create a shortcut on my homescreen for that command? Jan 05 20:02:45 Anyone got an idea why both TabbedLayout & DrawerLayout are slow to load when you include a map fragment into them ? Takes my app like 3-5s on first boot. Is there any way to load the UI first and then load the map or load the UI and do the map in the background ? Jan 05 20:03:26 can you use an async task to do it? Jan 05 20:03:35 so its on a seperate thread Jan 05 20:05:42 I have been looking for a guide/docs how to do that but so far all I found is that anything map related must be done on UI thread. I tried moving adding markers to the map to separate thread Jan 05 20:06:53 is there an equivalent to java.nio.file.Files.move (with option ATOMIC_MOVE) in android? Jan 05 20:13:07 Are proguard rules merged by order in build.gradle or overridden by order in build.gradle? Jan 05 20:13:08 Anyone have a clue? Jan 05 20:17:08 oi, the asus zenfone 2 has as much ram as my laptop Jan 05 20:19:15 sonOfRa: Not sure, but would File.renameTo work if all else fails? Jan 05 20:19:26 I think it's atomic (but the documentation doesn't say so). Jan 05 20:20:26 The worst-case scenario, I guess, would involve rolling your own (using FileInputStream/FileOutputStream). Jan 05 20:20:48 I think you could guarantee atomicity that way. Jan 05 20:20:51 it says it MIGHT be atomic, while Files.move with ATOMIC_MOVE seems to guarantee atomicity Jan 05 20:20:58 Suppose I'll have to handroll Jan 05 20:21:13 You might have to use fsync() to 100% guarantee atomicity, but I'm not sure. Jan 05 20:21:59 Actually, I take that back. Android's filesystem now has changes where atomicity is guaranteed without fsync(). (But durability is not guaranteed, of course.) Jan 05 20:22:05 But this isn't really well documented. :/ Jan 05 20:23:26 sonOfRa also see ./android/support/v4/util/AtomicFile.java Jan 05 20:25:24 why does Bitmap.compress not allow APLHA_8 bitmaps :| Jan 05 20:26:18 sonOfRa: Why are you wanting to move a file, anyway? Just curious. Jan 05 20:28:11 TacticalJoke: save files that are saved at an interval. renaming to make sure that if something goes wrong while moving the new one over the old one, nothing goes wrong Jan 05 20:29:03 Okay. What g00s suggested works for that, but I have concluded after researching all this that File.renameTo is sufficient (even without fsync()). Jan 05 20:29:59 The main drawback is that File.renameTo's atomic behaviour isn't well documented. Jan 05 20:37:06 g00s so, I had to change in the options where it said “svn” to the explicit path “/usr/local/bin/svn”. I am guessing that while .bash_profile was setting the PATH correctly for my user, Android Studio maybe was not running as me and not picking it up. Jan 05 20:40:57 Agamemnus some of bergersen's stuff is pretty epic :) i'm enjoying it https://www.youtube.com/watch?v=BAzCf0ascW8 Jan 05 20:41:23 that led me to this marcus werner guy https://www.youtube.com/watch?v=88lPiDXJ-yI Jan 05 20:42:20 thats 100+ tracks in logic pro :O Jan 05 20:49:07 wow Jan 05 20:49:15 I was watching fox news and didn't even know... Jan 05 20:49:15 anyway Jan 05 20:49:19 good music, I like it. Jan 05 20:50:39 How do I add VolleyLibrary to my Android Studio (it's using Gradle)? Jan 05 20:51:02 Agamemnus i guess two steps from hell is bergersen and some other guy Jan 05 20:51:16 i see Jan 05 20:51:21 arcanine69: http://developer.android.com/training/volley/index.html Jan 05 20:52:09 thepoosh: can i use gradle Jan 05 20:52:18 i don't think they have a maven repo Jan 05 20:52:21 arcanine69: there are unofficial maven central links to volley, but no official google one Jan 05 20:52:30 ah okay Jan 05 20:52:34 ill do it the right way than Jan 05 20:52:49 arcanine69: Also if you have a choice Retrofit is awesome, http://square.github.io/retrofit/ Jan 05 20:53:05 Volley is almost as awesome, I like it Jan 05 20:53:14 ;) Jan 05 20:54:40 Retrofit is awesome Jan 05 20:55:00 JakeWharton: it never ends with you does it? Jan 05 20:55:03 +1 retrofit Jan 05 20:55:27 thepoosh: gotta evangelize Jan 05 20:55:35 i get that Jan 05 20:55:42 VOLLEY SUX!!! Jan 05 20:55:43 Retrofit 2.0 will leave everything else in the dust Jan 05 20:55:47 Also gotta tell the tritht Jan 05 20:55:50 2.0? Jan 05 20:55:54 whats the ETA on 2.0? Jan 05 20:56:12 Releases same day as Half life 3 Jan 05 20:56:15 lol Jan 05 20:56:42 I hate adding more and more code to a project. Sometimes I just want to remove code. Jan 05 20:56:51 arcanine69 definitey chose Retrofit for our shop Jan 05 20:57:06 TacticalJoke: rm -rf * helps Jan 05 20:57:34 tnzr: april Jan 05 20:57:53 cool jake Jan 05 20:58:04 +1 Jan 05 20:58:31 That Android petition is getting more signatures all the time. Jan 05 20:58:48 TacticalJoke link it to me again, had to restart Jan 05 20:58:59 https://www.change.org/p/google-inc-provide-android-developers-with-one-on-one-communication-to-help-identify-and-resolve-policy-violations-prior-to-automated-and-irreversible-suspensions Jan 05 20:59:07 yes but im just a beginner still and finally learned how to make custom adapters. i need to start interacting with my node servers and make my app more usable. there seems to be alot of docs/tuts out there for volley. i will learn more and spend time with either. when i feel more comfortable i will jump onto this Retrofit train. Jan 05 21:04:32 A lot of changes today: https://android-review.googlesource.com/#/q/branch:studio-1.1-dev Jan 05 21:05:40 Hope they're gonna release 1.1 soon (I'm assuming that 1.1 will finally let me do JVM testing). Jan 05 21:05:43 hi y`all. i have a default widget-picker-dialog and a custom activity-picker-dialog (both listviews). i`ve used a few devices in emulator to match the size of my custom activity-picker with the default widget-picker Jan 05 21:05:47 (height/width/padding of a row and so on). If i use one of my real devices the elements of the custom activity-picker look smaller/different than the elements in the widge-picker. How can that be? Jan 05 21:05:53 shit Jan 05 21:05:55 TacticalJoke: it's almost like people are back from holiday or something :) Jan 05 21:05:58 I broke Google. Jan 05 21:06:21 stopping breaking google, plzkthx Jan 05 21:06:32 I went to https://security.google.com/settings/security/permissions to revoke my authorization for my game Jan 05 21:06:37 and it wasn't listed. Jan 05 21:06:45 I don't understand that at all Jan 05 21:14:11 It's listed now, after updating the consent screen in the api developers console. Jan 05 21:18:20 Hi all I'm totally new to building things, please yell at me if I'm mistaken... I'd like to build or run a .java file (could I do this from inside Android Studio?), but "javac " spits lots of errors (javac output on http://pastebin.com/0qe2AZPr). This is the file I'd like to build: https://github.com/yukuku/androidbible/blob/develop/AlkitabConverterProcesses/src/yuku/alkitabconverter/en_kjv_yet/ProcessToInternal.java Jan 05 21:19:10 !!! Jan 05 21:19:44 i dont use android studio, but you dont use ever javac for android Jan 05 21:20:27 you need to create entire project, even for empty activity Jan 05 21:20:37 theres no static void main for android Jan 05 21:21:04 hmm ok Jan 05 21:21:16 Can someone explain this code to me? http://paste.md-5.net/tuyupocunu.java Jan 05 21:21:23 Its just some BitMap Cache stuf... Jan 05 21:21:35 I don't understand what this code means here... Jan 05 21:23:02 Do you not understand what the imports do? Jan 05 21:23:18 Imports allow you to use code from elsewhere in the project Jan 05 21:23:23 or another project Jan 05 21:23:36 http://docs.oracle.com/javase/tutorial/java/package/usepkgs.html Jan 05 21:23:39 Yes I understand the import parts. Jan 05 21:23:50 hmm lrucache is new to me :V Jan 05 21:23:53 It's from public class where I'm passing out on. Jan 05 21:24:45 So in the code, LruBitmapCache extends from LruCache implements ImageCache....okay Jan 05 21:25:01 so, cool it takes in a bitmap but what is String there for HMMM? Jan 05 21:25:28 looks like String is key Jan 05 21:25:31 and bitmap is value Jan 05 21:26:08 so you do cache.getBitmap("smile") and get smile.png Jan 05 21:26:26 the bitmap of it* Jan 05 21:26:26 ok Jan 05 21:26:32 i see Jan 05 21:26:40 so it just starts getting images from cache then Jan 05 21:27:14 reddit is down a lot tonight. Jan 05 21:27:15 arcanine69: http://docs.oracle.com/javase/tutorial/java/generics/genTypeInference.html Jan 05 21:27:21 i think getDefaultLruCacheSize ... this method gets the amount of available memory... / 1024 and than divs by 8 again Jan 05 21:27:32 All of generics is a good read http://docs.oracle.com/javase/tutorial/java/generics/index.html Jan 05 21:28:08 yiati, yes I agree I should read through these docs. I have 0 java xp. ive been just picking up java from android as i go. Jan 05 21:29:15 see but what the heck is the point of this Jan 05 21:29:16 http://paste.md-5.net/cubenuhife.coffee Jan 05 21:29:37 why would even need to super Jan 05 21:29:51 Okay so Jan 05 21:30:03 I messaged about 5 people so far using Google Plus Jan 05 21:30:11 Since I have users' Google IDs Jan 05 21:30:24 I am attempting to setup Android Studio on Mac OSX Yosemite, and I keep running into "Android Studio was unable to find a a valid JVM" Jan 05 21:30:25 People who seem to have had issues with my game (bugs) Jan 05 21:30:30 and none of them responded back Jan 05 21:30:39 It's like a world of mutes.... Jan 05 21:30:43 I have both jdk 1.7 and 1.8 installed Jan 05 21:30:55 configure your path var Jan 05 21:31:01 so that it is properly detecting it Jan 05 21:31:16 i have also created a .plist file for "SUDIO_JDK" , updated JAVA_HOME in .bash_rc and PATH Jan 05 21:31:27 STUDIO_JDK** Jan 05 21:31:29 restart your computer and cross your fingers Jan 05 21:31:37 arcanine69: I have multiple times :( Jan 05 21:31:52 heater89,I had the same prob What i did was install java 1.7.71 and then add java 1.7.72 and it work for me. Jan 05 21:32:08 I have even attempted to to create .plist file for JAVA_HOME Jan 05 21:32:18 perlsyntax: ok let me see exactly which version I have Jan 05 21:32:24 ok Jan 05 21:32:36 perlsyntax: I have installed 1.7.0_75 Jan 05 21:33:02 is that a new one. Jan 05 21:33:06 i point my JAVA_HOME variable to "/usr/libexec/java_home Jan 05 21:33:20 heater89: Can't use java 8 for Android Jan 05 21:33:29 you can use JDK 8 Jan 05 21:33:33 i thought you could use java 8 Jan 05 21:33:33 perlsyntax: yes it was the most recent from oracle Jan 05 21:33:47 yiati: I have both installed but JAVA_HOME pointing to 7 Jan 05 21:33:55 Hmm okay I thought you could not Jan 05 21:34:02 My understanding is java 8 is ONLY for lollipop and up? Jan 05 21:34:06 no Jan 05 21:34:12 you can use JDK 8 to compile all versions Jan 05 21:34:18 you cannot use Java 8 language features on any version Jan 05 21:34:29 what i did was download sdk with android studio and let android studio pick it up. Jan 05 21:34:32 all JDKs cross-compile to older versions of the byte code Jan 05 21:34:37 JakeWharton: alright, awesome, i'll attempt to change java_home to jdk 8 and see if it helps or not Jan 05 21:34:37 you should always be using the latest JDK Jan 05 21:34:44 JakeWharton: I cannot even launch Android Studio Jan 05 21:34:51 odd Jan 05 21:35:00 I get a dialog with my initial message Jan 05 21:35:09 and then it's gg Jan 05 21:35:13 d Jan 05 21:35:20 Good thing you don't work for NASA. Jan 05 21:35:31 i use java 1.7.72 Jan 05 21:35:40 perlsyntax: on Yosemite? Jan 05 21:35:44 yes Jan 05 21:36:02 perlsyntax: did you need any special .plist files? Jan 05 21:36:05 atleast one person a day comes in with that same question, just check SO Jan 05 21:36:07 nope Jan 05 21:36:24 whatitis-: thanks, i have already done this and have tried multiple things Jan 05 21:36:32 Good afternoon everyone. Hopefully someone can help with this. I'm working with a dev that refuses to upgrade Facebook SDK 3.0.0 (2012) and is claiming that he is making calls to API 2.0. Is it possible to make calls to API 2.0 from an SDK version that was released before API 2.0 existed? Jan 05 21:36:36 whatitis-: which I have outlined here Jan 05 21:37:14 how do you square 137 requests and 4 impressions? Jan 05 21:37:26 What is going on with my admob statistics? Jan 05 21:37:31 we don't care Jan 05 21:37:42 I see Jan 05 21:38:28 heater89,Did you read that there going to stop with the java 7 updates if this true. Jan 05 21:40:29 perlsyntax: I have not seen that, i'll attempt to point java_home to jdk 8 and see if I can launch Jan 05 21:40:38 if not i'll try to use 1.7.72 Jan 05 21:41:11 heater89, I Would try java 7u80 that work for me in the pass. Jan 05 21:41:20 :) Jan 05 21:41:49 perlsyntax, what OS are you on Jan 05 21:42:05 mac os x 10.10 Jan 05 21:42:14 bynarie: same here Jan 05 21:42:15 hm ok.. nevermind Jan 05 21:42:23 Question about navigation drawer activities: do you create them through Android Studio using the preset for the activity, or do you do it manually using these instructions (https://developer.android.com/training/implementing-navigation/nav-drawer.html) Jan 05 21:42:37 Because the preset in Android Studio is different than these steps Jan 05 21:42:45 I hope that helps. Jan 05 21:42:54 woops wrong person.. i meant that question to go to heater89 , not perlsyntax Jan 05 21:42:55 lol Jan 05 21:43:04 that no prob Jan 05 21:43:08 np :) Jan 05 21:43:12 :) Jan 05 21:43:17 i have no mac exper Jan 05 21:43:24 if it was linux i might could help Jan 05 21:43:37 i feel like this is much harder than it should be for mac. Jan 05 21:43:46 are you using oracle java or sometihn else heater89 ? Jan 05 21:43:54 bynarie: oracle java Jan 05 21:43:55 try out java 7u80 Jan 05 21:43:58 ok thats good Jan 05 21:44:04 kk looking for 7u80 Jan 05 21:44:18 i should help. Jan 05 21:44:40 google java 7u80 and take you there. Jan 05 21:44:40 7u80 is ea? Jan 05 21:44:53 that the right one. Jan 05 21:45:19 7u80 Build b03 Jan 05 21:45:29 kk that's the one i am getting.. Jan 05 21:45:44 let me know if it works. Jan 05 21:45:46 :) Jan 05 21:46:39 perlsyntax: will do, thanks for your help :) i'll do a reboot after and attempt Jan 05 21:46:58 np Jan 05 21:47:32 question: are macs locked down like ios is? Jan 05 21:48:11 i not sure Jan 05 21:48:14 no Jan 05 21:48:23 i know mac is base on freebsd. Jan 05 21:48:37 k Jan 05 21:48:41 It’s a fully UNIX compliant system Jan 05 21:48:50 that why i like it. Jan 05 21:49:40 Reddit's AMA thing is so boring. Jan 05 21:49:47 "I once ate a cabbage. AMA." Jan 05 21:49:56 TacticalJoke: you like reddit ah? Jan 05 21:50:14 I like some parts. Jan 05 21:50:37 perlsyntax: 7u80 gets stuck @ 42.6 mb... Jan 05 21:50:45 wow Jan 05 21:50:47 LOL Jan 05 21:50:53 perlsyntax: if it isn't one thing, its another Jan 05 21:50:55 then i wonder why ios is locked down so tight... we all know that android is based off of linux, which is based off of unix... so why isnt ios? Jan 05 21:51:08 heater89, i know how you feel. Jan 05 21:51:25 heater89,What mac osx you running. Jan 05 21:51:30 perlsyntax: kk trying jdk 8 first, reboot, and attempt to dl again Jan 05 21:51:36 perlsyntax: 10.10.1 Jan 05 21:51:42 i same as me. Jan 05 21:51:59 perlsyntax: brb going to reboot pointing at jdk 8 Jan 05 21:52:10 ok Jan 05 21:53:09 anyone used the StringDef or IntDef annotations before? Jan 05 21:55:31 s73v3r: I have... they aren't really worth it imo Jan 05 21:55:41 is it possible to have one element of a LinearLayout have the padding not apply to it, i.e. take up the full screen width? said element is a and it needs the full screen width or it doesn't show up at all (and gives errors in debug console) Jan 05 21:55:42 perlsyntax: welp, didn't even need to reboot, pointing at jdk 8 let me launch Jan 05 21:55:42 Not helpful except in really corner corner cases Jan 05 21:55:47 Hmm. Strangely, if I put my TextView inside a RelativeLayout, and I use this layout XML file for my ActionBar spinner, it makes the spinner as wide as possible. Jan 05 21:56:05 heater89,So it worked. Jan 05 21:56:08 just source'd my .bash_profile and updated the .plist for java_home (though don't know if this was necessary) Jan 05 21:56:24 hwrdprkns: They’re not? Jan 05 21:56:33 perlsyntax: yup :) Jan 05 21:56:53 that good to hear i had a feeling jdk 8 would work. Jan 05 21:56:57 perlsyntax: finally got the splash screen Jan 05 21:57:15 perlsyntax: that was WAY harder than it should have been to launch the damn ide... Jan 05 21:57:35 heater89,I really like android studio going to take me abit to learn. Jan 05 21:57:37 did u get it rollin? Jan 05 21:58:33 bynarie: yea, i pointed java_home to jdk 8 Jan 05 21:58:46 good Jan 05 21:58:52 i use jdk 8 too Jan 05 22:00:07 bynarie: alright good to know Jan 05 22:00:13 bynarie: thanks for your help as well Jan 05 22:00:30 :) Jan 05 22:02:30 rollin, rollin, rollin. trollin, trollin, trollin. Jan 05 22:03:21 sure. i dont feel as if i was any help but sure Jan 05 22:03:40 TacticalJoke: I think I know wich parts: gonew... Jan 05 22:05:07 basically my ad works if I set the padding to zero, but I do want padding on the layout. is the only way to nest another layout with padding? Jan 05 22:05:27 duncannz: Would you be able to post the layout XML file? Jan 05 22:05:34 TacticalJoke: ok Jan 05 22:05:37 gdrc: I only visit SFW subreddits. :D Jan 05 22:06:13 Apart from those whose jokes are so edgy they qualify as NSFW. Jan 05 22:06:17 http://dpaste.com/3DRVCQK Jan 05 22:06:42 without android:padding="16dp" on the LinearLayout, the ad works fine. but I want the padding. Jan 05 22:07:17 Good afternoon everyone. Hopefully someone can help with this. I'm working with a dev that refuses to upgrade Facebook SDK 3.0.0 (2012) and is claiming that he is making calls to API 2.0. Is it possible to make calls to API 2.0 from an SDK version that was released before API 2.0 existed? Jan 05 22:07:58 duncannz: you know the difference between padding and margin ? Jan 05 22:08:13 duncannz: Hmm, not sure what's best (I'm no layout expert). But how about setting left/right padding for the children in each case apart from the ad? Jan 05 22:08:14 shmooz: uh for CSS I do Jan 05 22:08:21 probably the same Jan 05 22:08:24 And setting only top/bottom padding for the parent (or something). Jan 05 22:08:28 I just started with android yesterday :) Jan 05 22:08:49 padding goes inside the border , margin will extend outside the border Jan 05 22:08:50 Or perhaps just top padding for the parent. Jan 05 22:09:29 shmooz: so should I change the padding to margin? that doesn't sound right Jan 05 22:09:37 Note that you can put values such as 16dp in dimens.xml. Jan 05 22:09:57 duncannz: not sure what you are trying to do, but knowing the difference helps Jan 05 22:10:30 shmooz: I am trying to get the element (at the bottom) to fill up the full width of the screen, ie. not have padding Jan 05 22:10:39 but I still want all the other elements to have padding so they look ok Jan 05 22:10:52 this is because the ad dosen't show if it isn't the full 320dp Jan 05 22:11:10 duncannz: Did you pay any attention to anything I typed? :p Jan 05 22:11:26 TacticalJoke: yeah well it seems too messy to put padding on each individual element Jan 05 22:11:33 sorry should have responded Jan 05 22:11:58 Are you disinclined to use a nested LinearLayout/whatever? Jan 05 22:12:29 well it feels messy but if that's how to get it working then yeah I guess so Jan 05 22:13:09 I could do a RelativeLayout with LinearLayout nested and Ad pushed to bottom, that way there won't be that ugly pusher Jan 05 22:13:46 That seems a lot cleaner. Jan 05 22:14:12 alright thanks Jan 05 22:15:25 As far as I know, there's not much else you can do. I don't think negative padding is possible, for example. Jan 05 22:16:16 I did actually try negative padding and it worked, but the ad was just cut off on the left and right rather than just on the right :p Jan 05 22:16:19 duncannz: You should use 'sp', not 'dp', for text sizes, BTW. Jan 05 22:16:35 but the relative -> linear+ad thing is working great Jan 05 22:16:48 oh yeah thanks good catch Jan 05 22:16:53 'sp' units take into account system-wide settings related to text size, I think. Jan 05 22:17:01 Also, it's generally a good practice to put such values into dimens.xml. Jan 05 22:17:23 yep there was an IDE message saying why, I just missed it Jan 05 22:17:36 and I will get to the dimens.xml thing soon... Jan 05 22:19:03 I suspect that there won't be a big performance difference between a single ViewGroup and a ViewGroup nested within a ViewGroup if this is only the layout for an Activity or something. Jan 05 22:19:12 I'd worry about that only if this were an item in a ListView or something. Jan 05 22:21:28 why does Google called inflating "inflating"? Jan 05 22:22:39 I guess it's hard to find a good word to describe producing a UI widget from XML. Jan 05 22:22:53 I found "render" as a better word for it on Stack Overflow Jan 05 22:23:01 and it makes so much more sense as a noob Jan 05 22:23:15 render has a different meaning Jan 05 22:24:38 Maybe it could be called ViewDeserializer or something. (Though 'deserialize' is kinda vague.) Jan 05 22:25:19 If I am using a navigation drawer activity as well as fragments, do I want a separate fragment for each item in the navigation drawer? Or do I somehow reuse the same fragment declaration in my activity? Jan 05 22:26:15 need more context Jan 05 22:27:38 Do you folks prefer putting string-array resources into arrays.xml, or do you just put them in strings.xml? Jan 05 22:28:02 maybe they should call it yank instead of inflate Jan 05 22:28:10 or blow Jan 05 22:28:13 Ok, so I created a new activity in Android Studio, specifically a Navigation Drawer Activity. This is to be my "main" activity where the user can actually "use" the app. I'm going to have 5 different "screens". From my understanding, when a user selects an item from the navigation drawer that corresponds to a "screen", a fragment is being loaded into the activity. Do I need 5 different fragments? in my Activity java file? Or do I use one fragment bu Jan 05 22:28:27 I can annotate a paste bin if it'd make more sense Jan 05 22:28:41 Render is when the stuff is drawn. Inflate is when the classes that actually make up the widgets are instantiated Jan 05 22:28:43 How about ViewInstantiator. Jan 05 22:29:01 ViewExploder Jan 05 22:30:03 t0astt: that's not what i meant by context. You should be grouping like fragments in an activity. Sometimes it's ok, depending on your use-case, to re-use one fragment for two tasks, so it really depends on what you want to achive. Best option is to have a play and see for yourself Jan 05 22:30:06 ViewExploder.from(context).explode(R.layout.foo); Jan 05 22:30:09 I like both of those Jan 05 22:30:10 Sounds dangerous. Jan 05 22:30:28 ViewExploder.blowUp Jan 05 22:30:29 ViewExtractor ? Jan 05 22:30:59 explode makes me think of php :/ Jan 05 22:31:18 yeah I loved it when I discovered it in php Jan 05 22:31:35 bankai_au: oh, my bad. So it IS okay to have, for example, a "public static class ProfileFragment extends Fragment" and a "public static class SearchFragment extends Fragment" in the activity that will be using them. Jan 05 22:31:39 exploding arrays Jan 05 22:32:19 t0astt: well ... clean it up a little and stick them in their own files Jan 05 22:32:45 ViewStork.from(context).deliver(R.id.babyView); Jan 05 22:34:15 bankai_au: I was not aware I could have the fragments in their own files, from reading the documentation :P Jan 05 22:34:48 Fragment subclasses are just Java classes. Jan 05 22:36:50 t0astt: i can see why you think that, but that's definitely not the case :) Jan 05 22:48:05 Watching a documentary about people getting face tattoos. Crazy stuff. Jan 05 22:52:38 g00s: misc FF/Mobile fyi stuff - http://www.ncalexander.net/blog/2015/01/05/we-should-build-firefox-for-android-with-an-external-build-system/ Jan 05 22:57:33 capella-s3, sbt :p Jan 05 22:57:34 do it Jan 05 22:57:45 hi Jan 05 22:59:06 this navigation drawer stuff is giving me the hardest time. I just can't wrap my head around it :P Jan 05 22:59:12 i think i have the wrong idea of what a fragment is. can someone give a quick explanation? Jan 05 23:00:27 a lifecycle container for re-using groups of views independently of activities Jan 05 23:00:50 The easiest way to think of a Fragment is like an Activity that only takes up part of the screen. It has a life cycle. Jan 05 23:00:54 A Fragment represents a behavior or a portion of user interface in an Activity. You can combine multiple fragments in a single activity to build a multi-pane UI and reuse a fragment in multiple activities. You can think of a fragment as a modular section of an activity, which has its own lifecycle, receives its own input events, and which you can add or remove while the activity is running (sort of like a "sub activity" that you can re Jan 05 23:01:25 ok so i had correct idea all along, thanks Jan 05 23:01:51 so it allows you to basicly use basicly more than one ui element in one screen? Jan 05 23:02:13 no Jan 05 23:02:15 One subtlety of a Fragment is that it does not HAVE to have a UI, and it can also remain in memory when the Activity dies Jan 05 23:02:29 fragments are for managing groups of views as a single business unit Jan 05 23:03:03 you can do it with just plain viewgroups, but google thought it was a good idea to confuse everyone with fragments Jan 05 23:03:22 A Fragment is essentially a way to introduce hundreds of subtle lifecycle bugs into your app Jan 05 23:03:32 Google invented Fragments?? I thought the Devil did... Jan 05 23:03:38 but I'm not bitter, I love fragments Jan 05 23:03:48 <-- Bitter Jan 05 23:03:57 regreddit: But the alternative is to do back-stack stuff manually, right? Jan 05 23:03:57 * regreddit is very bitter Jan 05 23:04:01 I use fragments, but mostly because I'm too lazy to implement my own abstraction or use something like mortar Jan 05 23:04:03 Or to use someone's library for the back-stack. Jan 05 23:04:13 mortar is not a fragment replacement Jan 05 23:04:13 TacticalJoke, which i also have to do :( Jan 05 23:05:49 JakeWharton, that's what I've always seemed to hear it described as, or in the same context Jan 05 23:06:03 ah, you're probably thinking of flow Jan 05 23:06:09 probably Jan 05 23:06:11 mortar just manages Dagger child scopes Jan 05 23:06:24 My understanding is that Fragments were created primarily to facilitate showing more than one thing at once on tablets (while showing only one thing at a time on phones). Jan 05 23:06:50 basically Jan 05 23:06:56 but they've just become a clusterfuck since then Jan 05 23:07:07 they were created to cart around business logic with those views Jan 05 23:07:09 particularly the parallel support and framework library Jan 05 23:07:14 you could already do split pane stuff easily Jan 05 23:07:38 it should never have been integrated into framework... Jan 05 23:07:43 agree Jan 05 23:07:57 agree Jan 05 23:08:06 But what if someone wants back-stack stuff as well as split-pane stuff? Isn't that a really common thing? Jan 05 23:08:12 except for very rare circumstances, just about everyone uses support fragments even when on high minsdk Jan 05 23:08:25 TacticalJoke, not that hard to write your own stack... Jan 05 23:08:43 especially if it's purpose built to your use case Jan 05 23:09:12 TacticalJoke, IMHO changing the meaning of the backstack (from removes last Activity to whatever the fuck the dev want to do) was the biggest mistake in Android UX Jan 05 23:09:53 The back button always meant the same thing. Now, a user has no clue what the back button will do Jan 05 23:10:28 pfn: Is it hard to intergrate that with the saved-instance-state thing? Jan 05 23:10:43 I've never tried, so I'm curious. Jan 05 23:11:10 I mean that Activities persist their FragmentManagers (which can be very handy). Jan 05 23:12:11 no, it's easy Jan 05 23:12:35 it's just state like any other state Jan 05 23:12:35 K. Jan 05 23:12:41 shove it in a bundle, pull it back out on the other side Jan 05 23:13:20 I guess the Views will persist their state automatically where possible. Jan 05 23:13:27 Just as in Fragments. Jan 05 23:13:48 (e.g., the selection of an EditText.) Jan 05 23:14:45 I was just thinking -- I can probably avoid Fragments entirely in my app. If I show a dual-pane UI, I don't think the panes will need their own back-stacks. Jan 05 23:16:17 Though I don't know whether to use a navigation drawer. Hmm. Jan 05 23:18:09 if you want to Activities to persist things you can use Activity's onRetainNonConfigurationInstance() with getLastNonConfigurationInstance() or FragmentActivity's onRetainCustomNonConfigurationInstance() with getLastCustomNonConfigurationInstance() this is how FragmentManagers are persisted Jan 05 23:18:13 TacticalJoke: ^ Jan 05 23:19:11 just remember not to retain anything that references a context Jan 05 23:20:52 Napalm: I had this idea the other day, of using ViewGroup.getChildAt instead of View.findViewById for optimal performance in some cases (e.g., ListViews). Jan 05 23:21:02 I wonder whether there's a big difference (obviously only when convertView is null). Jan 05 23:23:08 View.findViewById just seems like a potentially slow convenience thing. Jan 05 23:23:56 you are optimizing the wrong things Jan 05 23:24:11 exactly what I was thinking Jan 05 23:25:23 The thing is, I'm not sure that it's always possible to change from a ViewGroup to a custom View. And in those cases there might be a real performance benefit in using ViewGroup.getChildAt. Jan 05 23:25:41 there isn't Jan 05 23:25:46 TacticalJoke: you have no real performance gain between the two. findViewById is only slower when the ID you look for is further down in the view hierarchy as a sub-view or the ID you look for does not exist (because it has to traverse all views to determine that) Jan 05 23:26:05 and slower isn't even that important Jan 05 23:26:13 layout and measurement is 100x slower Jan 05 23:26:21 easily Jan 05 23:26:31 agreed Jan 05 23:26:43 Hmm, but it all adds up. Jan 05 23:26:50 no, it doesn't Jan 05 23:26:51 1ms here and there adds up to 10ms in no time. Jan 05 23:26:59 it's more like 1ns Jan 05 23:28:14 i agree that things add up and that you should optimize small, logical things. this is not one of those things Jan 05 23:28:41 TacticalJoke: read this http://www.joshbarczak.com/blog/?p=580 Jan 05 23:29:24 TacticalJoke: and then this https://plus.google.com/105051985738280261832/posts/YDykw2hstUu Jan 05 23:32:41 Hmm, she mentions iterating over an ArrayList with a basic 'for' loop rather than a 'foreach' one. Would you folks do that? Jan 05 23:33:04 no Jan 05 23:33:15 hello Jan 05 23:33:41 I was surprised when I first heard about that. Would expect the compiler to optimize any simple 'foreach' loop. Jan 05 23:33:56 optimize what Jan 05 23:34:04 the rules of the foreach loop are simple Jan 05 23:34:11 there's no special optimization Jan 05 23:34:34 and for that matter, there's no real performance savings to be had from "optimizing" the foreach loop Jan 05 23:34:39 except the additional object allocation Jan 05 23:36:14 According to , 'for' can take 1/3 of the time of 'foreach' when it comes to ArrayLists. Not sure why that is, to be honest. Jan 05 23:36:24 Doesn't seem like much is going on with 'foreach'. Jan 05 23:36:33 TacticalJoke: no, only in library code Jan 05 23:36:53 the why is because it allocates and uses an iterator Jan 05 23:37:30 also remember "can" from that Jan 05 23:37:44 pfn: IIRC, the C# compiler optimizes a lot of 'foreach' stuff into 'for' stuff (at least for really basic cases). Jan 05 23:37:51 Even if iterators are used, I think. Jan 05 23:38:26 i doubt that Jan 05 23:38:37 you cannot guarantee iterator iteration order is the same as random access linearlly Jan 05 23:40:12 javac emits index-based random access loops for arrays, iterables require the use of an iterator Jan 05 23:41:51 where is a conventional place to store a bunch of urls, or maybe the base url for an api? strings.xml? Jan 05 23:44:01 you can put it in the build config Jan 05 23:44:08 or just a static constant somewhere Jan 05 23:44:39 unless you are going to be using resource qualifiers for changing the value based on something there's no value to putting it in string.xml or the like Jan 05 23:54:13 ?win 5 Jan 05 23:54:25 damn i just goof'd Jan 05 23:55:56 JakeWharton: awesome thanks... I haven't done much with the build config Jan 06 00:01:10 who switches windows using the /win command? Jan 06 00:01:11 that's dumb :p Jan 06 00:03:14 is there a mirror for download ADT?? I mean the import to android studio say I need to export it first from ADT... but I don't have ADT... so? Jan 06 00:11:32 ? Jan 06 00:15:37 Good afternoon everyone. Hopefully someone can help with this. I'm working with a dev that refuses to upgrade Facebook SDK 3.0.0 (2012) and is claiming that he is making calls to API 2.0. Is it possible to make calls to API 2.0 from an SDK version that was released before API 2.0 existed? Jan 06 00:25:17 hi all, i'm having some trouble getting an application to compile because of what appears to be missing dependencies. anyone available to assist? Jan 06 00:29:04 Not sure, but you could always tell him to do the upgrade or you’ll fire him and find someone else who will Jan 06 00:30:43 anyone using ARChon Runtime as a 'simulator' for development vs emulator? Jan 06 00:31:02 I have been for a few weeks and it is hella fast Jan 06 00:31:05 love it Jan 06 00:37:22 damn it!! I have support-v4-18.0.0-sources.jar file, but for some reason "PopupMenuCompat" isn't in it!! Jan 06 00:37:29 http://developer.android.com/reference/android/support/v4/widget/PopupMenuCompat.html Jan 06 00:37:46 the program is saying "cannot find symbol class". anyone know what the deal is? Jan 06 00:37:58 PopupMenuCompat was added in 19e Jan 06 00:38:00 -e Jan 06 00:38:21 so i need to include support v19? Jan 06 00:38:28 no Jan 06 00:38:32 you need version 21.0.3 which is the latest Jan 06 00:38:48 i have External Libraries: Android API 21 Platform Jan 06 00:38:59 i need support 21.0.3? Jan 06 00:39:10 yes Jan 06 00:39:14 guys I'm lost I was told during some HCI study, to look up the list of around 100 standard usability criteria when it comes to Human Computer Interaction in designing af program(app) ... do anyone know where I might find this cause I have looked everywhere, and the closest thing I found was this -> http://www.usabilitynet.org/tools/r_international.htm Jan 06 00:39:16 yikes. okay give me a moment Jan 06 00:40:09 JakeWharton https://developer.android.com/tools/support-library/features.html#v13 ? Jan 06 00:40:14 i'm only seeing up to v13 Jan 06 00:40:37 you need version 21.0.3 of the support-v4 library Jan 06 00:40:44 OH. Jan 06 00:40:47 ignore google's absolutely insane naming scheme Jan 06 00:40:59 dependencies { Jan 06 00:40:59 compile "com.android.support:support-v4:18.0.+" Jan 06 00:40:59 compile "com.android.support:support-v13:21.0.+" Jan 06 00:41:11 oops Jan 06 00:41:12 sec Jan 06 00:41:20 dependencies { Jan 06 00:41:20 compile "com.android.support:support-v4:21.0.+" Jan 06 00:41:20 compile "com.android.support:support-v13:18.0.+" Jan 06 00:41:22 like so? Jan 06 00:41:29 set them both to 21.0.+ Jan 06 00:41:43 also if you have support-v13 you don't need support-v4 (it will come transitively) Jan 06 00:41:51 that is not intuitive at all...so far the hardest thing i've come across Jan 06 00:42:04 yeah didn't think sp Jan 06 00:43:30 welcome to the world of Google Android Jan 06 00:43:42 is it really that bad...i was hoping for something nice Jan 06 00:44:27 yikes. hahaha Jan 06 00:44:36 so i tried compiling and running the 'deskclock' from google. Jan 06 00:44:46 run my emulator -> DEVICE SHELL COMMAND: pm uninstall com.android.deskclock Jan 06 00:44:46 DELETE_FAILED_INTERNAL_ERROR Jan 06 00:45:30 you’re in for a night of pain and suffering Jan 06 00:45:32 is it as simple as changing the name of the project, or am i in a heap of issues? Jan 06 00:45:53 i'm trying to get a good example of an "alarm clock" application implementation, for an idea of a project i have Jan 06 00:46:06 so there was the first place i checked Jan 06 00:46:21 If it’s the error I would run into, then the issue is that it can’t actually build the project, or it doesn’t finish dexing the project Jan 06 00:46:48 it warns that the device already has an application with the same package but a different signature Jan 06 00:46:58 prompts me to uninstall it, click OK, errors out Jan 06 00:47:21 how do i root an emulator ;.; Jan 06 00:47:27 go into the build folder and make absolutely sure an APK was generated Jan 06 00:47:37 Hello. Is the source of the "File Transfer For Android" app open source? Jan 06 00:48:01 when I would get this error, what happened is that the build did not actually complete, even though it said it did Jan 06 00:48:19 s73v3r that is correct, no APK files in /build/ Jan 06 00:48:24 there was an image or two that caused aapt to choke Jan 06 00:48:47 but the build tools wouldn’t generate an actual error message, and so I was trying to install an app that didn’t exist Jan 06 00:49:00 am i SOL? Jan 06 00:49:14 you need to change the package name Jan 06 00:49:16 maybe not. Try building on the command line Jan 06 00:50:45 the command line build will likely fail too, but hopefully it will give you a real error message to point you at what’s happening Jan 06 00:52:35 Anyone know where I can find the documentation for Okhttp? Jan 06 00:52:44 on its website Jan 06 00:53:02 there's a tiny javadoc link on the right Jan 06 00:53:17 it probably shouldn't be as gray as it is... Jan 06 00:53:26 haha, lemme look Jan 06 00:53:42 I'm trying to add Admob to an app. I'm getting numerous errors. [adView cannot be resolved] and [adView cannot be resolved to a variable] what would generally cause this? Jan 06 00:56:37 no idea Jan 06 00:56:39 but Jan 06 00:56:52 Maybe you can use something else instead Jan 06 00:59:00 Is anyone here farmilliar with OkHttp? Jan 06 00:59:03 I am Jan 06 00:59:32 Ok, I see that .url and .build are all methods of the Request.Builder class Jan 06 00:59:46 In the OkHttp "recepie" example, they are doing this: Jan 06 00:59:50 (one sec) Jan 06 01:00:19 Ok so theyre doing this in the example: http://pastie.org/9815327 Jan 06 01:00:33 Which works fine, but my question is, could I do this: instead? : Jan 06 01:01:21 http://pastie.org/9815331 Jan 06 01:01:45 kind of Jan 06 01:01:53 your variable needs to be a Request.Builder not a Request Jan 06 01:02:03 only when you call .build() do you get a Request Jan 06 01:02:24 How come in the example they show the variable is just a request Jan 06 01:02:37 because it ends with .build() Jan 06 01:02:48 Oh, so it __is__ a request Jan 06 01:02:57 after calling .build() Jan 06 01:03:01 .url() returns a Request.Builder Jan 06 01:03:32 so the second bit of code I showed wont work then Jan 06 01:03:41 correct Jan 06 01:03:48 Is tehre a mirror for the outdated ADT? Jan 06 01:04:00 I need to export a project to gradle... Jan 06 01:04:13 argh,,.. I have an edittext that I’m trying to move the cursor to the end of.. I set an OnTouchListener() with a Log event to fire when the editText is touched. So far nothing happens :9 Jan 06 01:04:17 drose379: this would: http://pastie.org/9815336 Jan 06 01:04:42 ah, got it. Thanks JakeWharton Jan 06 01:05:09 Also, im trying to find the enqueue method but I cant seem to find it Jan 06 01:05:41 http://square.github.io/okhttp/javadoc/com/squareup/okhttp/Call.html#enqueue-com.squareup.okhttp.Callback- Jan 06 01:06:32 so that means that newCall() method must return a Call object? Jan 06 01:06:51 indeed Jan 06 01:07:32 hm, ok cool Jan 06 01:08:18 Sorry JakeWharton my browser crashed Jan 06 01:08:26 i survived Jan 06 01:08:34 :) Jan 06 01:09:16 So enqueue gets the request ready to be called? Jan 06 01:09:33 it schedules it for later execution (which may be immediate) Jan 06 01:10:04 Where is that defined? As soon as the method that the enqueue is in is called, does the call get made? Jan 06 01:11:30 Basically, how does the code know when to execute something inside the enqueue? Jan 06 01:11:46 the Dispatcher class has a policy it implements Jan 06 01:11:56 only a certain number of requests per-host will execute at once Jan 06 01:12:06 others will wait until there's a free slot Jan 06 01:12:12 Hm ok Jan 06 01:12:25 Anyone know of a reason why onToch wont work for an EditText inside of a Fragment? Jan 06 01:12:34 fragment is not a UI component Jan 06 01:12:38 it has nothing to do with onTouch Jan 06 01:12:42 so without enqueue the request will never run Jan 06 01:12:55 you can either enqueue() or execute() Jan 06 01:13:00 the latter runs it synchronously and immediately Jan 06 01:13:15 Execute is immediatley? Jan 06 01:13:22 ok.. well.. either way, onTouch is not firing. Jan 06 01:13:42 can anyone tell me if picasso allows me to lay one bitmap on a view or target sized by dp instead of px? I want it to take up the same amount of physical screen size on any phone, regardless or resolution or pixel density. Perhaps dp isn’t the right term here. but is this possible with picasso? Jan 06 01:13:59 in_deep_thought: resizeDimen takes a dimen which you can specify in dp Jan 06 01:14:05 drose379: Note that if you use Call.execute then you'll have to take care of creating a worker thread yourself (you can't do this stuff in the main thread). Jan 06 01:14:15 It's probably best to simply use Call.enqueue. Jan 06 01:14:16 it takes two dimens, actually Jan 06 01:14:25 Just realized that TacticalJoke Jan 06 01:14:26 yes, use enqueue because it's awesome Jan 06 01:14:41 Do you think its a good idea to learn threads anyways though? Jan 06 01:15:12 later. don't waste your time now Jan 06 01:15:32 You think its a waste? Jan 06 01:15:41 JakeWharton: wow that looks perfect. Is this possible/easy not using picasso? Jan 06 01:15:44 http://pastebin.com/ZEJyynPg Jan 06 01:15:55 in_deep_thought: just resize the px with the screen density yourself Jan 06 01:15:55 le on touch not working :( Jan 06 01:16:06 log not firing Jan 06 01:16:28 JakeWharton: so I would measure the screen density of the phone somewhere and call on it to adjust the bitmap size accordingly? Jan 06 01:17:13 yes. DisplayMetric.density Jan 06 01:17:37 drose379: Note that, with Call.enqueue, the callback will run on a worker thread anyway, so even if using Call.enqueue you're probably gonna be learning about threading. Jan 06 01:17:47 Although OkHttp takes care of the nitty gritty in that case. Jan 06 01:18:09 Yeah, thats something I have to learn Jan 06 01:18:58 JakeWharton: I know this is kind of unrelated, but if I am loading only 1 small image from a url, is it worth using picasso vs just like httpurlconnect. My understanding is that picasso comes in handy when trying to deal with many images on a screen at the same time and avoiding memory errors. Jan 06 01:19:16 in_deep_thought: Picasso is a one-liner Jan 06 01:19:23 HttpURLConnection will be about 40 lines Jan 06 01:19:38 plus you have to deal with threading, Android lifecycle, etc. Jan 06 01:20:15 gotcha. thanks Jan 06 01:21:37 I don't think I'd ever use HttpURLConnection, personally. Even if Picasso were not a choice, OkHttp just seems to be a better library. Jan 06 01:22:18 (I know that HttpURLConnection uses OkHttp under the hood from 4.4. But even that seems to be a less-good API.) Jan 06 01:22:45 vastly less good Jan 06 01:23:52 As far as I remember, HttpURLConnection doesn't even provide a thread-safe method for cancelling a download. Jan 06 01:25:47 correct. calling .disconnect() is not thread-safe Jan 06 01:35:12 I'd like to implement something like this in my app (SFW): http://reddpics.com/r/earthporn/ Jan 06 01:35:17 Could be good for tablets. Jan 06 01:35:59 An option to go to "gallery mode" or something. Jan 06 01:36:13 there are a couple of iPad apps that do that for reddit Jan 06 01:39:58 Does anyone know the attribute to have SwitchCompat on by default? Jan 06 01:40:57 checked="true" Jan 06 01:41:13 Thanks JakeWharton Jan 06 01:41:35 that was a total guess Jan 06 01:41:50 I have a feeling it will make sense Jan 06 01:41:56 About to give it a go Jan 06 01:42:39 Worked Jan 06 01:43:07 :) Jan 06 01:43:16 yeah, just checked the source Jan 06 01:43:37 Jake the Snake coming in with the rattle Jan 06 01:43:39 I wish Firefox would take care of shipping and updating Flash for me (as Chrome, I think, does). Jan 06 01:44:20 On Windows, I mean. Jan 06 01:57:18 Why does Android Studio fail silently if it can’t generate the R.java class? Jan 06 02:03:39 clean>rebuild? ;S Jan 06 02:04:33 done several times. each time studio tells me the build was successful. each time I curse the developer who decided it was acceptable to teach the IDE to spew these lies Jan 06 02:05:02 Lol. Jan 06 02:05:23 is it suppressing anything through config? Jan 06 02:06:05 shouldn’t be. it’s just that it was deemed acceptable to not have failure to generate R.java treated as an actual error Jan 06 02:13:32 If I need something from java.awt.geom.Line2D and its not available in Android what should I do? Jan 06 02:13:44 Just copy the source and add it to my project or something? Jan 06 02:14:18 nvm Jan 06 02:14:20 http://stackoverflow.com/questions/21075543/how-can-i-add-java-awt-geom-class-in-android Jan 06 02:14:21 thanks Jan 06 02:14:35 * YJLTG high-fives AndreYonadam Jan 06 02:14:43 lol thanks Jan 06 02:34:18 Guys, in OkHttp, for the Request.Builder class Jan 06 02:34:31 The url() method doesnt give much explanation of what it does Jan 06 02:34:53 Does it just add the URL or request to be executed to the object? Jan 06 02:34:58 Then build returns the callable Jan 06 02:35:29 drose379: it sets the URL Jan 06 02:35:39 Sets the URL Jan 06 02:35:53 It doesnt give much detail for build() either Jan 06 02:36:02 But you said that returns a request object earlier Jan 06 02:36:31 so in the method detail section in Request.Builder Jan 06 02:36:48 It lists the build method and just says "public request build" Jan 06 02:36:59 That would tell me that build() returns a request object, yes? Jan 06 02:37:05 Yes Jan 06 02:37:20 Then .newCall accepts a request Jan 06 02:37:27 Yes Jan 06 02:37:44 Now I dont see the callback class listed anywhere Jan 06 02:37:54 But it has to be an inner class inside of enqueue Jan 06 02:38:15 I don't know what "listed anywhere" means Jan 06 02:38:25 And no, it's not an inner class of enqueue Jan 06 02:38:53 .enqueue(new Callback() { Jan 06 02:38:57 } Jan 06 02:39:10 Oh, callback is an interface Jan 06 02:52:01 Thanks JakeWharton **** ENDING LOGGING AT Tue Jan 06 02:59:59 2015