**** BEGIN LOGGING AT Wed Jun 04 02:59:58 2014 Jun 04 03:00:36 Is it supposed to be greyed out when it's connected to the computer? Jun 04 03:01:12 Also am I supposed to select a debug app first? Jun 04 03:02:55 Da_Rhyno: sounds like you don't have the (correct) drivers installed and adb connect over wireless is only for rooted devices Jun 04 03:03:51 bankai_au - Ah, dang. When it first connected as an install device, I opened up the install program it gave me for this phone. Jun 04 03:04:17 After already running into this problem a few times before. Jun 04 03:04:25 probably need to reboot then Jun 04 03:04:45 And it still does the same thing... what's even worse is the program that checks for compatible phones doesn't pick up on it. Jun 04 03:05:15 What needs to reboot? The phone? Jun 04 03:05:21 your computer Jun 04 03:05:33 Ah... Okay... Let me try restarting it again. Jun 04 03:05:51 brb Jun 04 03:11:01 Just restarted my computer, plugged my phone in Jun 04 03:11:15 Did the same thing as before Jun 04 03:11:22 Let me see if it picks up a connection in eclipse though Jun 04 03:11:32 what's the problem Jun 04 03:11:55 and what's your OS Jun 04 03:12:09 adb doesn't pick up my phone. My OS is Windows 7, my phone is an LG Enact. Jun 04 03:13:06 ah, if it was linux then ev rules but for windows.. Jun 04 03:13:10 never done it Jun 04 03:13:14 maybe drivers ? Jun 04 03:14:22 gordon_ - That's what I'm guessing. I tried uninstalling and reinstalling them once, but for some reason it still didn't work right. Jun 04 03:17:35 hi all Jun 04 03:25:05 Can someone take a look at https://github.com/oscarvarto/TestKillActivity ? The README.md explains my question. The project uses Robotium solo for testing (It’s late now for me and I am going to sleep, but will let my computer on, if someone wants to write messages) Jun 04 03:25:47 how about you come back and ask the question when you can be interactive ? Jun 04 03:26:23 Goody, my app is currently at #13 on the hacker news front page. Jun 04 03:26:38 bankai_au: Well, sometimes I ask and nobody answers for a while… Jun 04 03:38:55 This is weird, I see something flickering in my devices once in a while. Jun 04 03:38:59 It's there and then gone. Jun 04 03:39:22 Da_Rhyno: i've seen graphics drivers glitches that splat noise sometimes Jun 04 03:40:42 Da_Rhyno: https://www.youtube.com/watch?v=YC5qGEzbt2U last 5-10 seconds, for exampe Jun 04 03:40:47 dragorn - I'm *hoping* this is my phone that it's not picking up. Jun 04 03:41:08 I've occasionally noticed small bits of display artifacting, mostly when the UI tries to redraw something and internally something explodes or fails to draw, but that's about it. Jun 04 03:42:01 Oh, shoot... I apologize. I wasn't clear... I don't mean on the device screen... I mean in my list of devices in Eclipse Jun 04 03:42:21 ahh Jun 04 03:42:28 Da_Rhyno: I don't know what to tell you in windows Jun 04 03:42:32 in linux you could look at dmesg Jun 04 03:42:36 and see if it's thrashing the USB bus Jun 04 03:43:09 Hmmm... it's acting as if it's trying to connect but then errors out. Jun 04 03:43:12 this isn't useful to you if you're not a linux person tho Jun 04 03:44:00 could check the event-manager in windows Jun 04 03:44:01 Well, I'm halfway tempted to load Ubuntu on a flash drive and load my android dev stuff on that. Jun 04 03:44:15 Fenny - Good idea. I completely forgot about that. Jun 04 03:44:19 You could just wubi, Da_Rhyno. Jun 04 03:44:25 wubi? Jun 04 03:44:31 Fenny: good idea. I don't know jack about windows anymore. Jun 04 03:44:51 installs a 'buntu system in an image on your existing ntfs partition. Jun 04 03:45:05 no need to partition to dual boot anymore. :D Jun 04 03:45:52 Well, either way... how much more difficult is it to load the Android SDK & NDK in Linux than in Windows? Jun 04 03:46:03 wubi? why not just use a virtual machine? Jun 04 03:46:14 Da_Rhyno: not really any more difficult. And for your purposes you just need adb. or even just dmesg. Jun 04 03:46:23 pragma-: because if he's thrashing USB he wants to see it directly Jun 04 03:46:40 if you don't know how to use linux then there's no point in installing it for dev Jun 04 03:46:56 pragma-: not have to wonder if the attach/detach is thrashing things at the vm layer too Jun 04 03:47:12 yeah. look at the event log first and see if it's jumping on and off usb Jun 04 03:47:48 Nilium, you did a live wallpaper? Jun 04 03:48:11 Yes. Jun 04 03:49:39 Nilium, that's cool. I installed it. I like the Orion one. When it first installs and I type open in the Google Play app, there is a crash. Also it installs an icon which says "app isn't installed" when I click it. Jun 04 03:50:03 But I like the wallpaper. Jun 04 03:50:15 I find it weird that it's getting upvoted on Hacker News and downvoted on reddit Jun 04 03:50:19 Odd, but I have no idea what's up with Google Play there Jun 04 03:50:50 Might be a small lag time between installing the app and actually being able to run it? Jun 04 03:51:13 Hmmm.... Jun 04 03:51:24 Since I can't think of anything odd about the manifest.. Jun 04 03:51:37 Wow... I don't see anything for the times when this object comes up in the Windows Event Viewer Jun 04 03:51:55 Dunno, hopefully the crash report shows up on the dev console. Jun 04 03:51:58 Da_Rhyno: how positive are you that your USB cable is OK Jun 04 03:52:18 dragorn - So positive that I just went out and bought this one literally four hours ago. Jun 04 03:52:21 Which log are you looking at Da_Rhyno? Jun 04 03:52:32 Da_Rhyno: sure it's not a charge-only cable? Jun 04 03:52:40 ^^ Jun 04 03:52:42 dragorn - positive. It's a data cable. Jun 04 03:52:52 Da_Rhyno: fair. i'm running out of ideas. Jun 04 03:52:58 I already made that mistake once, I wasn't going to make it again, lol. Jun 04 03:53:03 sure your PC USB ports aren't being stupid? Jun 04 03:53:32 That's always a possibility. Let me try putting in a flash drive. Jun 04 03:53:42 Fenny - Event Viewer -> Windows Logs -> System Jun 04 03:53:47 That's where I was looking at. Jun 04 03:55:12 anyone want to see a shell script? Jun 04 03:55:19 It's pretty scary. :D Jun 04 03:56:17 BTW - Flash drive loads up fine. Jun 04 03:56:40 Da_Rhyno: look at device manager by connection? Jun 04 03:57:00 expand it out til you find your root hubs. Jun 04 03:57:20 http://www.cheatersedge.org/android/convert_script.sh <- scary. :D Jun 04 03:58:01 Nilium, yes I see a crash log in my debug console Jun 04 03:59:08 usage: convert_script.sh META-INF/com/google/android/updater-script path/to/your/unpatched/ROM/ Jun 04 03:59:29 Fenny - I can't find this flash drive, but I see a few unknown devices. Jun 04 04:00:02 Da_Rhyno: hmm, what are their ven_XX dev_xx values? Jun 04 04:00:16 or it's usb, so whatever is in the hardware id Jun 04 04:00:20 When I tried to look for drivers for them, however, they would come up as infrared and mass storage. Jun 04 04:00:21 Lol Jun 04 04:00:28 Let me check. Jun 04 04:01:30 PCI\VEN_1217&DEV_7130 Jun 04 04:01:36 for the Mass Storage Controller Jun 04 04:01:42 okay, you don't care about that one. Jun 04 04:02:16 That is, unless it is secretly your usb controllers. :P Jun 04 04:02:31 Lol Jun 04 04:02:51 http://en.community.dell.com/support-forums/software-os/f/3524/t/19133695.aspx Jun 04 04:02:54 The other Unknown device doesn't have VEN & DEV IDs Jun 04 04:03:00 That's your SD card reader. Jun 04 04:03:07 What does it have Da_Rhyno? Jun 04 04:03:15 is it USB\ ? Jun 04 04:03:33 It has: Jun 04 04:03:37 ACPI\ENE0100 Jun 04 04:03:41 and below that Jun 04 04:03:43 *ENE0100 Jun 04 04:03:53 AHH, that's your ACPI driver. Jun 04 04:04:01 ACPI? Jun 04 04:04:09 power interface. Jun 04 04:04:23 Ah Jun 04 04:04:27 Of course! Jun 04 04:04:37 http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ob-75516-1&cc=us&dlc=en&lc=en&os=4063&product=3979532&sw_lang Jun 04 04:04:46 that's the driver for that. :D Jun 04 04:04:53 Lol, thanks xD Jun 04 04:04:54 Well.. Jun 04 04:05:01 Those are the only two unknown drivers on this system. Jun 04 04:05:17 hmm, are you viewing by connection? Jun 04 04:05:38 Yeah Jun 04 04:06:10 Expand your PCI bus, and look for USB controllers Jun 04 04:06:27 do you see anything under the controllers that might be the device? Jun 04 04:06:37 tried changing the connection mode? Jun 04 04:07:37 Hmmm... I see a slew of USB controllers, all linking to USB Root Hubs Jun 04 04:07:41 I know I had a hell of a time getting certain devices to expose ADB when I was in "Media" vs "camera" mode. Jun 04 04:07:50 expand them, what is connected? Jun 04 04:08:01 anything that might be your device? Jun 04 04:08:30 No... but I do see something odd: Jun 04 04:08:42 unplug/replug and look for anything that changes. :D Jun 04 04:08:49 Under a "UMBus Root Bus Enumerator" there are two "UMBus Enumerators" Jun 04 04:09:09 under one I have my Flash Drive, named "UUI" Jun 04 04:09:15 Under the other one, nothing. Jun 04 04:10:13 However, when I unplugged my phone, I didn't see a change under the UMBus Root Bus Enumerator Jun 04 04:10:48 sounds like it is not being seen at all Jun 04 04:10:54 Try another cable? Jun 04 04:11:02 Perhaps this one was dead OOB. Jun 04 04:12:16 This is actually the second cable I've tried. Jun 04 04:12:21 So I thought it was the cable. Jun 04 04:13:03 Second data cable I should add. Jun 04 04:13:19 There was one which was only power. Jun 04 04:13:27 So three cables in total. Jun 04 04:16:04 Wow, my live wallpaper is #6 on Hacker News. Jun 04 04:16:11 I wasn't really expecting that. Jun 04 04:16:26 Fenny - How about VID_0781&PID_5530 Jun 04 04:17:16 That sounds right!!! Jun 04 04:17:18 After I disconnected and reconnected my flashdrive, I saw I had a USB Mass Storage Device connected to my USB Hub Jun 04 04:17:21 lemme look. Jun 04 04:17:43 Nope Jun 04 04:17:47 That's your sandisk. Jun 04 04:18:00 I started porting OpenGL live wallpapers to Android Jun 04 04:18:12 Nilium: Which one? Jun 04 04:18:30 Yep... But I just plugged in my phone and picked it up. Jun 04 04:18:39 It's picking it up as a media device though Jun 04 04:18:46 https://news.ycombinator.com/item?id=7843664 ⇐ That Jun 04 04:18:49 ahh Jun 04 04:18:50 Not as a disk. Jun 04 04:18:52 But they are a little bit of a pain because they expect to start and stop, while Android's notion of stopping and starting is very different Jun 04 04:19:09 How may datas will it steal? :D Jun 04 04:19:19 Fenny - VID_1004&PID_623E Jun 04 04:19:21 Meanwhile, reddit hates my app and people are downvoting it. Jun 04 04:19:50 It's sort of interesting to see the difference in reception. Jun 04 04:19:54 A free live wallpaper? PAH! Terrible. Jun 04 04:20:01 LG right, Da_Rhyno? Jun 04 04:20:10 Yep Jun 04 04:20:46 Try switching from MTP to the other mode. Jun 04 04:20:57 perhaps it is not exposing the interface. Jun 04 04:22:22 Okay Jun 04 04:23:53 Fenny - nope. Jun 04 04:24:30 Hmm, are you sure adb is... on? :P Jun 04 04:24:33 Trying each of the different modes. Jun 04 04:24:35 Yep. Jun 04 04:24:49 I do adb devices every now and again. =P Jun 04 04:25:09 I had one device that would only work in "charge only" mode. Jun 04 04:25:25 I think it was an older HTC... Jun 04 04:26:02 Wow Jun 04 04:26:03 Okay Jun 04 04:26:06 I think I got it. Jun 04 04:26:12 What was the trick? Jun 04 04:26:20 But at the same time, this makes me nervous as f***. =/ Jun 04 04:26:33 ??? Jun 04 04:27:09 I have it selected as "Internet connection" between "Ethernet" and "Modem" I chose "Modem" Jun 04 04:27:24 Does this mean I'm tethering with my device? Jun 04 04:27:39 I don't think so... Jun 04 04:27:41 And will this induce more charges on my phonebill? Jun 04 04:27:47 I think ethernet is reverse tethering. Jun 04 04:27:50 You see my concern? lol x_x Jun 04 04:28:14 I.E. ethernet means it is using your computer's connection. Jun 04 04:28:31 what does netstat -r say? Jun 04 04:29:31 as long as your default route is the IP of your router, you are okay, and not tethering. :D Jun 04 04:29:42 *your only default route Jun 04 04:31:26 So, I need to access mongolab and pull data from there over the network. I want to shove this into a listview. I can manage the network connection fine when it's a button press (i can insert into the db), but when i go to guery from mongolab i run into either 1) running on the main ui or 2) running on a thread that can't access the ui widgets(listview) Jun 04 04:31:33 what are myoptions here? Jun 04 04:31:34 Well, there's one way to test. Jun 04 04:31:36 Lol Jun 04 04:31:44 I may or may go away for a sec. Jun 04 04:31:50 like, how can i load this stuff before the view is created? Jun 04 04:32:21 i've een doing it in `onCreate` Jun 04 04:32:33 is there some othe rplace to hook into? Jun 04 04:32:55 oh! i just had an epiphany, I think Jun 04 04:33:04 Hello All! Jun 04 04:33:05 joneshf-laptop: have you considered making an adapter that talks with code running on separate thread? Jun 04 04:33:10 joneshf-laptop in the constructor of the form, joneshf-laptop. Jun 04 04:33:31 *view Jun 04 04:33:41 Hey Jun 04 04:33:42 I'm back Jun 04 04:33:45 * Fenny feels bad for communicating in windows forms. :P Jun 04 04:33:52 Da_Rhyno oh? Jun 04 04:33:57 yeah... Jun 04 04:34:06 No internet connection when I disconnected my wifi connection Jun 04 04:34:11 So I'm not tethering. Jun 04 04:34:17 I think it's reverse tethering. Jun 04 04:34:21 Lol, that works too. xD Jun 04 04:34:26 Lol, yeah Jun 04 04:34:30 Netstat was a wee bit confusing Jun 04 04:34:42 would anyone mind playing question and answer with an aspiring android dev? I'm building an App and have some noob questions. Jun 04 04:34:54 I saw a list of numbers in front of my phone device, nothing of which looked like any kind of IP address I've seen before. xD Jun 04 04:35:01 smoke > noob. Jun 04 04:35:19 Fenny, that might work aswell, though I'm using scala and I'm not sure you can override the constructor Jun 04 04:35:27 though... tbh it's all about scorpion. Jun 04 04:35:27 but you probably can Jun 04 04:35:57 joneshf-laptop: Ahhh, I haven't done scala. Jun 04 04:36:06 I keep hearing it though. :P Jun 04 04:37:32 Hmm, I sort of like java better, looks like scala does too much for you for my taste. Jun 04 04:37:54 you could probably implement it in def this() { } Jun 04 04:42:08 Fenny, I'm pretty up in the air about it myself. but I'd kill myself if I had to write this in plain java Jun 04 04:42:16 ;D Jun 04 04:42:34 Thanks for all of the help Fenny! Jun 04 04:42:42 And everyone else here. :) Jun 04 04:42:54 It's working and now I know my app compiles but is bugged to hell. xD Jun 04 04:42:54 it's not the verbosity that gets me, I could care less about that, it's that the compiler isn't as smart as it could be. Jun 04 04:43:43 plus it's fairly antiquated as far as languae features go. Jun 04 04:43:51 mind you scala is full of warts aswell Jun 04 04:44:08 but it's easier to glance over some of them Jun 04 04:44:17 lesser of two evils i guess Jun 04 04:47:05 I'll pick Java for readability even if it's not as optimal for everything Jun 04 04:47:05 Sorry, Scala Jun 04 04:47:06 Java can go die. Jun 04 04:47:41 Nilium, of sublimetext theme fame? Jun 04 04:47:48 I have fame? Jun 04 04:48:08 But yes, my theme's sort of popular Jun 04 04:49:40 it's very nice Jun 04 04:49:42 thanks Jun 04 04:49:51 Thanks. Jun 04 04:53:02 I was playing around in unity, just trying things out. Anyway now suddenly I got a complete game and was wondering that is it possible to use ads / sell apps on the google play without making a company? Jun 04 04:54:16 Yes. Jun 04 04:56:20 In the US, the rules are mostly weird around business names. If you use your own name, you're a sole proprietorship and that's fine. Otherwise, you'll likely have to register a business name, at which point you might also consider registering a business. Either way, it's down to whether you're willing to do the taxes and jump through the legal hoops for whatever you want to specifically do. Jun 04 04:56:50 Just bear in mind that the idea of registering an LLC to protect you is sort of a myth. Jun 04 04:59:36 Also, I'm not a lawyer, so consult a lawyer. Jun 04 05:05:18 Nilium, why is it a myth? Jun 04 05:06:02 If the court finds you're undercapitalizing, they'll ignore the corporate entity and say you're liable. Jun 04 05:09:10 Also if the LLC shares are owned 100% by one person Jun 04 05:09:36 Pretty much. Jun 04 05:09:52 Piercing the corporate veil and all that. Jun 04 05:10:58 It's not that it's bad to register an LLC or a business name, it's just that you can't expect to be personally immune to lawsuits by playing a one-person shell game. Jun 04 05:11:32 Basically, if you don't write an app that somehow kills a person, you're probably not at risk of anything. Jun 04 05:11:37 Nilium: thanks.. just thought about it as a hobby so would rather not make a company Jun 04 07:12:49 heho Jun 04 07:13:24 is there a way to tell ant proguard debug that i also want my ant.properties key.store / key.alias honored, and my debug apk signed with my key? Jun 04 07:20:02 http://pastebin.com/4SV5bJzJ I am having trouble setting a calender object to one of two other calnder onjects Jun 04 07:46:15 gmzamz you have to tell us what line you think the error is on Jun 04 07:47:51 intally it was line 86, but now it is 101 Jun 04 07:47:58 nullpointer exception Jun 04 07:48:54 you never init activeDate Jun 04 07:49:15 trying to use active display to as a switch to point to either cAssigned or cDue Jun 04 07:49:40 so the datepicker will set the correct calender Jun 04 07:49:56 use proper field names so it is understandable what you do Jun 04 07:49:58 ignore 54-55 and 39-40 Jun 04 07:50:06 xDate isn't a good variable name Jun 04 07:50:10 what do you mean? Jun 04 07:50:14 call it what it is Jun 04 07:50:20 mkay Jun 04 07:50:31 for example today if it is supposed to be today Jun 04 07:50:42 then at least your code will be readable and i can udnerstand what you are trying to do Jun 04 07:51:54 also don't make selfobvious comments like /* add a click listener to the button */ Jun 04 07:52:03 it doens't say anything that setOnClickListener doens't say Jun 04 07:52:14 it was from a stachoverflow example Jun 04 07:52:17 if it is complicated put it in a method that is registerButtonListnerer or whatever Jun 04 07:52:20 well it sucks to read =) Jun 04 07:52:24 trying to get it to work before I customize it Jun 04 07:53:05 http://stackoverflow.com/questions/20854589/multiple-datepickers-dynamically-in-same-activity-android Jun 04 07:53:12 was the original code Jun 04 07:53:16 your problem is that the dateSetListener resets the date probably Jun 04 07:54:01 http://pastebin.com/7FpxnKH4 is an updated paste Jun 04 07:54:12 complains on line 100 Jun 04 07:54:31 ugh Jun 04 07:54:37 your code is nothing like the example Jun 04 07:55:04 really i don't understand what the problem is here, just new up a datepicker with the calendar you want Jun 04 07:55:19 I need two Jun 04 07:55:23 you have three Jun 04 07:55:24 why? Jun 04 07:55:28 three? Jun 04 07:55:30 you have private Calendar assignedDate; Jun 04 07:55:30 private Calendar dueDate; Jun 04 07:55:37 and then you have activeDate Jun 04 07:55:38 aswell Jun 04 07:56:08 activeDate is used to transfer info from datepicker to first two Jun 04 07:56:18 dpending on button clicked Jun 04 07:56:21 activeDate shouldn't exist, you should have a method showDatePicker(Calendar c) Jun 04 07:56:29 thats doing it retardedly complicated Jun 04 07:56:38 Oh god I wish I knew that existed Jun 04 07:56:50 it doesn't you make it Jun 04 07:57:21 ie public void showDatePicker(Calendar c) { //show a date picker with a OnDateSetListener that updates c Jun 04 07:59:14 hmmm Jun 04 07:59:19 I am confused Jun 04 08:01:22 http://pastie.org/9256755 something like that, but i wrote that without the IDE so it might not Compile Jun 04 08:01:27 but should give you an idea Jun 04 08:02:59 then in your button onClickListener you just do showDateDialog(dueDate) for example, it might also have to update the button text etc but i am sure you can figure that part out Jun 04 08:03:16 showDatePicker(dueDate) ofc Jun 04 08:08:56 someone needs to implement swift on android now Jun 04 08:11:05 asfdd: getting something about how I can refer to c from within the inner class definied in a different method Jun 04 08:11:19 make c final Jun 04 08:11:29 final Calendar c in the method signature Jun 04 08:14:09 thanks for the help btw Jun 04 08:14:24 not sure if it works yet, but you definitely helped Jun 04 08:14:49 thank you Jun 04 08:14:53 it does work Jun 04 08:15:11 that is so much simpler Jun 04 08:17:30 np, just solve one problem at the time and things usually go easy =) Jun 04 08:23:04 Hello guys Jun 04 08:23:29 some of u are working on samsung galaxy tab 10.1 ? Jun 04 08:23:54 i got problems my comp cant see the device Jun 04 08:24:34 and not any solution on internet works Jun 04 08:24:34 Hi all, somebody experience with expansion files? Jun 04 08:33:34 My webview spam my logcat with "eglCodecCommon﹕ **** ERROR unknown type 0x0 (glSizeof,73)" and the page is full white. any reason why? Jun 04 08:35:29 nobody ever used an expansion file? Jun 04 08:35:38 no, sorry Jun 04 08:36:04 FranescoV: are you doing a survey on the use of and experience with expansion files of active users in this channel? Jun 04 08:37:31 Leeds: I just need to know how to create a valid obb file which is readable with the apk expansion zip library Jun 04 08:38:49 anyone used xjc to create classes from an XML schema? It is saying that I cant have colons in the name of an element. If i change it in the schema, then the classes it generates wont be correct, right? Jun 04 08:40:18 FranescoV: and the jobb tool doesn't work? Jun 04 08:42:59 My webview spam my logcat with "eglCodecCommon﹕ **** ERROR unknown type 0x0 (glSizeof,73)" and the page is full white. any reason why? Jun 04 08:43:03 Android 4.4 Jun 04 08:43:51 FranescoV: > Jun 04 08:43:52 ? Jun 04 08:46:16 FranescoV: did you die? Jun 04 08:46:27 Leeds: I tried it, can create an obb file but with zip library, something is wrong with the header (don't know what it is) Jun 04 08:50:38 FranescoV: sense made being isn't Jun 04 08:51:01 Leeds: It triggers "Not a Zip archive" in ZipResourceFile class Jun 04 08:51:16 header != kLFHSignature Jun 04 08:51:16 well, is it a zip archive? Jun 04 08:51:52 you did set the pn and pv options, right? Jun 04 08:52:05 FFS Jun 04 08:52:05 with the jobb tool, i just select the directory, like /mydir , or must it be /mydir.zip at the end? Jun 04 08:52:20 yes Jun 04 08:52:25 http://developer.android.com/tools/help/jobb.html Jun 04 08:52:27 rtfm Jun 04 08:54:31 Leeds, then what's wrong with this: jobb -d /Documents/main-expansion/ -o main-obb-file.obb -k mykey -pn mypackagename -pv 1 Jun 04 08:54:41 Test running startedTest running failed: Unable to find instrumentation info for: ComponentInfo{com.myapp/android.test.InstrumentationTestRunner} Jun 04 08:54:58 anyone got this problem with robotium ? Jun 04 08:55:06 using normal project setup Jun 04 08:55:10 in intellij Jun 04 08:55:21 FranescoV: nothing that I can see... what happens when you try to open the resulting file as a zip? Jun 04 08:56:05 just using a standard unzip tool Jun 04 09:05:43 is it normal for AVD to take up to 5 minutes to start? Jun 04 09:06:45 yes Jun 04 09:07:22 this has got to be the worst emulation of anything ever Jun 04 09:07:30 it takes faster when loading from pre-saved snapshot Jun 04 09:07:40 Leeds, which zip tool should I use on mac? Jun 04 09:07:45 for make this possible Jun 04 09:07:47 LighterFluid: I suggest going back to the iOS simulator Jun 04 09:07:48 it saves automatically when closed Jun 04 09:07:49 FranescoV: "unzip" Jun 04 09:08:12 going back? Jun 04 09:09:08 logcat is throwing all kinds of errors while the emulator is running, is that normal? Jun 04 09:10:22 i might be doing this the wrong way Jun 04 09:10:26 but lets say i have a dialog Jun 04 09:10:34 and i want it to communicate with another unrelated object Jun 04 09:10:40 how do i implement an interface Jun 04 09:10:48 So, I guess I can now claim that I got a live wallpaper on the front page of Hacker News for at least 6 hours. Jun 04 09:10:57 if i dont have an object of the dialog to set the callback on the object i want to communicate with Jun 04 09:13:33 FranescoV: having trouble? Jun 04 09:14:11 Nilium: Ascension ? Jun 04 09:14:16 Yeah. Jun 04 09:14:21 nice. Jun 04 09:14:21 oh well Jun 04 09:14:38 Currently at #14 on the HN front page. Jun 04 09:14:38 I managed to boost my points up to 144. Jun 04 09:14:43 ad its scala- double nice Jun 04 09:15:08 Yeah, I think the Scala part is the only reason it survived the front page Jun 04 09:15:15 :D Jun 04 09:15:38 If it's java, oh well, that's boring, but I think folks find the idea of using something other than Java for Android stuff interesting. Jun 04 09:16:00 i currently try to get into scala too Jun 04 09:16:44 Kotlin's also interesting to me, since it's got some of what Scala does but it seems quite a bit lighter-weight Jun 04 09:16:47 still having some problems with sbt doing weired stuff but the language itself is so much more powerful then java Jun 04 09:17:18 Clojure's interesting, but I've heard iffy things about how it performs and whatnot Jun 04 09:17:47 Doesn't really seem like Clojure handles resource-constrained environments well, since it doesn't have room to go nuts with concurrency/parallelism/what have you. Jun 04 09:18:22 If you do decide to stick with Scala, I'd just recommend trying to avoid non-Java-like Scala in adapters and other areas where you can't afford to waste cycles Jun 04 09:19:21 Leeds: Found it, couldn't expand the obb file but found something else to create obb file on mac an now it works Jun 04 09:19:23 Well, areas where you can't afford to waste cycles because you angered the GC Jun 04 09:19:23 Which Scala's pretty good at. Jun 04 09:19:40 what you mean with non-java-like scala? Jun 04 09:19:52 Sequence.collect and stuff like that? Jun 04 09:20:58 I mean avoid: closures/function blocks, comprehensions (and other things like foreach, map, filter, etc.), etc. Jun 04 09:21:28 so basically everything that cant be mapped to java code directly, eh? Jun 04 09:21:36 All these things tend to require allocations and such for boxing and unboxing things Jun 04 09:21:43 Sort of. Jun 04 09:22:16 The optimizer might be better now than I remember it, but I don't think they ever got around to agreeing on how to optimize for loops over ranges and such. Jun 04 09:23:03 "Programming in scala" told me that for(n <- array; if n < 5) yield is rewritten to array.filter(x => x <5) by the compiler anyway Jun 04 09:23:27 so i thing map and stuff is fine as long as you dont overuse it Jun 04 09:23:42 So, if you run the allocation tracker and see a lot of boxed objects getting allocated, you can probably trace it back to something like a for (x <- y) … or a forEach/filter/map call Jun 04 09:23:43 think* Jun 04 09:23:43 I'm not sure it matters too much that the map call does allocations though since that's what you want anyway Jun 04 09:23:46 Leeds: thanks for helping me, but it's strange that jobb tool wasn't working for mee, I readed the page about jobb tool but without succes on my pc. I'll try it maybe tomorrow on another pc Jun 04 09:24:17 It varies. someSeq.filter(x => x < 5) still has to allocate a Function1 for the call. Jun 04 09:24:47 Not sure if x gets boxed/unboxed in that case. Jun 04 09:25:22 Just profile your stuff and pare down anything that's obviously a problem, really. Same as Java. Jun 04 09:25:29 I somewhere red an article about it (or was it a stackoverflow post?), that its so easy to allocate megs of space with these higher order calls without noticing Jun 04 09:25:36 Obviously not something I really need to tell you since I think you've already got your shit together there Jun 04 09:25:49 but my scala looks like java anyway for now :) Jun 04 09:26:28 maybe because of my java background Jun 04 09:26:28 It's easy but it's easy to do something similar in Java too. Scala just makes it less obvious when you are because it's easy to forget that for (x <- y) is syntactic sugar for passing a function to a method. Jun 04 09:26:58 Also, in a moment of blinding stupidity/ignorance today, I actually only just learned Scala has a do-while loop. Jun 04 09:27:27 Wrote and released two apps using it, fairly comfortable in Scala, but somehow I was entirely unaware it had a do-while loop. Jun 04 09:27:40 I have no idea how. Jun 04 09:28:51 thats my least used control structure. Jun 04 09:29:03 i use do-while almost.. never Jun 04 09:32:36 Are you using some library like scaloid? It looks pretty powerful but I think it might be better to stick to code without it until i get more confortable to the language Jun 04 09:46:39 danijoo: I use one of my own, Spastic, but that's about it. Jun 04 09:47:15 And it looks like I might have hit the end of the HN front page. It's not getting votes or comments anymore. Jun 04 09:48:19 On the upside, other posts are randomly getting pushed off faster than mine, so it keeps jumping up and down in place. Jun 04 10:15:17 I am back to this channel as I am workingon a new android app. Jun 04 10:16:19 Leeds, hello :> Jun 04 10:28:45 My webview can't render some webpages (it show white screen). Here is the source of the webview - http://pastebin.com/tW4gF1wP Do you have any idea why? Jun 04 10:41:39 hi having an issue with gradle, can anyone figure out what the issue is? https://gist.github.com/rymate1234/90d16fc3425b45ce5dec Jun 04 10:57:29 rymate1234: try putting signingconfigs before buildtyped Jun 04 10:57:32 buildtypes Jun 04 11:16:29 My webview can't render some webpages (it show white screen). Here is the source of the webview - http://pastebin.com/tW4gF1wP Do you have any idea why? nativeOnDraw failed; clearing to background color Jun 04 11:48:04 hey Jun 04 11:49:26 In the google play app its possible to see the users rated your app, but not the international votes. How can I see those without changing the locale on my device? Jun 04 11:49:48 I can't find an option for it in developer console either Jun 04 11:50:18 Developer console only shows the ratings where the users have written something Jun 04 12:18:06 I have a long running task, when it starts, I show a dialog. When the task is done, dialog dismiss. But when user put the app in background. I god an error (can not perform after onsavedinstancestate), because I can't dismiss the dialog when app isn't open. I agree with that, but I don't know what's the best solution to fix this Jun 04 12:18:43 1. dimiss when app goes to background. 2. stop the task and restart the task when coming back to the app (task takes about 10 sec.) any suggestion is welcome Jun 04 12:43:17 Is there any trick to getting a spinner next to a radiobutton horizontally within a TableLayout? I can get two spinners or two textviews next to each other using weight = 1, but with spinner and radiobutton they lie on top of each other. Jun 04 12:49:10 can I rotate individual layers of a layerdrawable? Jun 04 13:06:35 How can I split a row in a tablelayout 50:50, left for spinner, right for radiobutton? Jun 04 13:13:13 barq, use layout_weight Jun 04 13:37:19 is it possible to lay something like "filters" over an image via programatically/xml to create custom shadows/fading Jun 04 13:40:39 im looking for a way to create shadows similar to this: http://postimg.org/image/50badwsrf/ Jun 04 13:47:01 danijoo: Not sure what exactly your looking for by looking at that image Jun 04 13:47:19 yeah hard to explain with my bad english :D Jun 04 13:48:01 i want to add a shadow to a view that is more than a simple color gradient Jun 04 13:48:29 i want the shadow to have a brushed texture Jun 04 13:58:50 http://postimg.org/image/b76tmwgwv/ this might be a better example. Assume the black part to be a navigation drawer while the white part is the activity Jun 04 13:59:36 I want to attach a shadow that has a texture, not only a single gradient. Jun 04 14:00:08 I know this could be done with a 9.png, but i hope there is a way where I not have to draw a 9.png for every layout I want to make that Jun 04 14:00:58 How would i close a connection via a socket when it's contained in a thread? Jun 04 14:04:49 danijoo: You could just take whatever image you want for the filter and overlay the image with it, and set an alpha on the overlay Jun 04 14:10:20 hi! i'm trying to upload an .apk (update) to play store using the same keystore file but a different pc Jun 04 14:10:34 play store says the cert fingerprint is different Jun 04 14:10:46 even though i'm using the same key Jun 04 14:10:48 then you signed it wrong Jun 04 14:10:55 somehow.. Jun 04 14:10:58 does the environment matter? Jun 04 14:11:01 no Jun 04 14:11:02 no Jun 04 14:11:12 you sure you arent building the apk as debug ? Jun 04 14:11:35 what do you mean? Jun 04 14:12:05 you can build the apk with a cert or as "debug version" Jun 04 14:12:14 what IDE do you use Jun 04 14:12:28 eclipse Jun 04 14:12:31 i built it using the cert Jun 04 14:15:25 im grabbing some json from a web service using retrofit and have ormlite configured to persist. I want to back a ListView with the data and provide the ability to refresh the results. should I use an AsyncTaskLoader for this, or maybe look into something like Otto, or maybe something else? Jun 04 14:15:34 the idea does not matter, so if you are using the correct key settings, it should work Jun 04 14:16:20 that is odd Jun 04 14:17:06 you're sure the environment doesn't matter? Jun 04 14:17:14 yuizy, install your previous version on a phone and try to update it with the apk you're installing... it will probably complain -> you signed it wrong Jun 04 14:17:51 yeah i know the fingerprint is different Jun 04 14:21:47 mattblang: If the api you are querying has etags then Retrofit already handles caching for you Jun 04 14:22:52 yuizy, are you sure you didn't accidentally generate new keys Jun 04 14:24:08 mattblang: If it does have etags save yourself a lot of trouble and let Retrofit do it's magic. If it doesn't then you could use a CursorAdapter http://developer.android.com/reference/android/widget/CursorAdapter.html Jun 04 14:25:31 yiati yeah, I am using a CursorAdapter. I'm mainly curious about the refresh part, I was previously using AsyncTask but I am wanting to move away from it now that I am supporting tablets, and thus configuration changes. Jun 04 14:26:44 yiati the caching looks neat! the only problem is that I have to persist the results in case the user closes app and comes back Jun 04 14:26:48 I have a Radiogroup with two RadioButtons within a TableLayout and get This RadioGroup layout or its TableRow parent is possibly useless. I don't understand why as I need the RadioGroup to allow for mutual exlusivity. Jun 04 14:27:40 mattblang: Right that would be the ideal situation to take advantage of the caching of etags Jun 04 14:29:07 If they come back without a network connection or something though then yes you will want them cached manually Jun 04 14:30:17 What's wrong with the CursorAdapter on configuration change. Does it calling getView not work for you? Jun 04 14:33:11 yiati nothing is wrong with the cursoradapter. it is mainly the asynchronous web service query / persistance / listview update that I am thinking about. like before I used an asynctask to do all of that, then update the listview in onPostExecute. but I have been reading about AsyncTaskLoaders being able to persist through config changes, and was wondering if that would be a good wa to go Jun 04 14:34:18 yiati I definitely want to move away from the AsyncTask Jun 04 14:34:25 so i have a turn-based game i made using a client-server model with a custom server i built in Node.js. it offers up an HTTP API with things like /game/start, /game/move, etc. so my game works fine.. the problem is, since there is no socket between the two, the client (android) has to constantly ping the server and check things (new game? new move? game over? etc.). these requests happen every 5s. this leads to a somewhat slow UX (ie. user challenges anothe Jun 04 14:34:46 so the question is, should i simply increase the ping frequency? or use some sort of socket? Jun 04 14:35:10 (or clientside trickery to give the illusion of fluidity) Jun 04 14:35:33 zpr Koush wrote a web socket android library https://github.com/koush/android-websockets Jun 04 14:36:48 zpr I fiddled with it a little using the sample cloud9 node.js project and it worked. have always hoped I would have an exist to mess with it more :P Jun 04 14:37:01 *excuse Jun 04 14:38:30 mattblang: looks interesting, definitely will check it out. but are sockets the right solution for a turn-based game? Jun 04 14:40:13 How can I get real requestCode and resultCode in fragment? It always seems to bee some code + x number? How does this work ? Jun 04 14:43:53 zpr if you are currently polling but woudl rather the server talk to your clients when ready, I believe that is the type of use case web sockets were built for. haven't messed with them a lot though, only dabbled Jun 04 15:21:26 How should i decide whenever i need activity or fragment any recomendations ^^? Jun 04 15:24:30 ArcaneWater, if you plan to use that view in more then one place at the same time then fragment Jun 04 15:25:31 generally if it's seperate "big" part then go with Activity Jun 04 15:25:50 and don't do fragments more then two levels down Jun 04 15:26:40 that's as good of advice i can give you Jun 04 15:26:41 guys i need a hand here Jun 04 15:26:54 i'm setting my calendar yet when i format it sets the year to 0003 Jun 04 15:27:11 i'm setting the year to be the same as the datepickerdialog Jun 04 15:28:06 so I've forgotten, whats the state of an app reading logical with the newer api versions? Jun 04 15:44:47 I am having problems with a list adapter. The first problem is the view is a relative layout that stacks two images, the base has no alpha, the top has a opacity of 50%. When I make the top visible, the two are not combined. Jun 04 15:45:26 I just get the top composted with the background color. Jun 04 15:45:46 The other is once the top is on, I can't ever get rid of it. Jun 04 15:46:17 what do you mean the two are not combined? Jun 04 15:46:28 and what do you mean you can't get rid of the top? Jun 04 15:48:29 I have already added abs to the build path Jun 04 15:48:36 I'm getting this error in xml file Jun 04 15:48:41 "error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Sherlock.Light.DarkActionBar'." Jun 04 15:48:49 abs= actionbarsherlock Jun 04 15:48:55 What is wrong here? Jun 04 15:49:36 pastebin it Jun 04 15:49:46 pastebin the xml? Jun 04 15:50:36 ye Jun 04 15:50:42 http://pastebin.com/uZYdcwKm Jun 04 15:50:43 line 24 Jun 04 15:50:50 there are more errors in the same xml Jun 04 15:54:28 how did you add the abs to your project? Jun 04 15:54:39 the problem is there Jun 04 15:54:47 http://stackoverflow.com/questions/10874303/my-android-xml-files-cant-find-actionbarsherlock-themes Jun 04 15:54:50 added to build path Jun 04 15:57:33 if it possible to find textview by id with robotium ? Jun 04 15:57:57 *is Jun 04 15:59:17 That seems to have worked Jun 04 15:59:34 btw how to add a library into list of libraries??? Jun 04 16:01:43 ok I got it Jun 04 16:04:38 I'm trying to make a custom view. I have it set up, but I can't get the xml width and height attributes. What method do I use to grab the xml height and width? Jun 04 16:05:35 anyone familiar with robotium ? Jun 04 16:08:27 jvrodrigues: well the overlay is yellow, 50% opacity. when I set it to visible, it turns green (because the application background is blue) Jun 04 16:08:34 wow Jun 04 16:08:43 these guys did not include external libraries Jun 04 16:08:47 just wow Jun 04 16:08:48 it should overlay yellow over the item image Jun 04 16:09:35 honestly i never worked with overlaying transparent images Jun 04 16:09:57 it makes sense that it works as a filter though Jun 04 16:11:33 Znoosey: well I got a plugin anyhow, but ty much. Soty if it was off-topic Jun 04 16:12:11 why when importing a project into android studio does it change my project structure and put everything under Project/app ? Jun 04 16:12:31 now version control wants to re-add all of the project files again because they are new Jun 04 16:13:12 heater if you imported a project built in eclipse prepare for a world of trouble Jun 04 16:13:18 can I rotate individual layers of a layerdrawable? Jun 04 16:13:36 jvrodrigues: yes it is built in eclipse, but it is a maven project Jun 04 16:13:46 i have removed the project.properties Jun 04 16:15:08 I'm trying to make a custom view. I have it set up, but I can't get the xml width and height attributes. What method do I use to grab the xml height and width? Jun 04 16:15:51 you have to set an id for your parent layout Jun 04 16:15:57 then you have to find that layout by id Jun 04 16:16:02 then use getHeight or getWidth Jun 04 16:16:11 Right now I'm using a hardcoded 150 pixels in onDraw and and onMeasure. Jun 04 16:19:50 jvrodrigues: Bah, i figured it out. android isn't smart enough Jun 04 16:20:14 I've gotta composite it myself. Jun 04 16:20:25 Scorp1us, that makes sense, yea Jun 04 16:21:36 ok i managed to get it working myself Jun 04 16:22:37 What would be the difference if in my XML I add a viewstub to get a layoutA or if I use tag to get a layoutA Jun 04 16:22:42 It would be cool if they just added opacity ability to realtive layouts Jun 04 16:25:27 The only difference I know is that Viewstub is added on-demand while include would just include the big chunk of the layout into my main layout Jun 04 16:25:42 Scorp1us: can set opacity with either using a #AARRGGBB color, or setAlpha on it Jun 04 16:26:17 the image, a png already has opacity in it. Jun 04 16:26:43 and? Jun 04 16:26:51 WantToCode, that is the diference, to my knowledge Jun 04 16:27:13 So I was telling a realtive layout to put a image with FF opacity under an image with 80 opacity, and it wasn't working. Jun 04 16:27:13 I'm a bit confused about intentService. Say I have a service MyService.class and I start it by constructing an intent like (this, MyService.class) and then calling startService(intent) - does this create an *instance* of MyService.class? Jun 04 16:28:22 Scorp1us: Doubt it was the Layouts fault. Jun 04 16:28:25 WantToCode, also when you have a ViewStub it doesn't inflate with the rest of the layout Jun 04 16:29:03 I guess I'm confused because when I call an instance in code I'm used to, I uniquely identify it in some way, but here I'm not sure what's identifying the instance I'm creating Jun 04 16:29:20 well I assumed it would work andi t didn't and I'm not setting opacity anywhere. It might work if I used solid yellow and then set the opacity, but for in-image opacity it does not appear to work. Jun 04 16:29:55 d0de: I beleive so, I'm about to work on intentServices now. from what I read, android will create a single instance at a time, and handle the work serially, queueing instances. Jun 04 16:30:13 that's why you pass the .class, so it can create it when it is ready Jun 04 16:30:52 d0de, i'm no expert but to my knowledge there's only one instance of each service Jun 04 16:31:07 Scorp1us, the part I'm confused by is how to interact with the instance once it's created. The app I'm working on should create one intentService on onCreate() and destory it on onDestroy() so I don't think it should be as complex as I'm finding it Jun 04 16:31:43 you don't android handles the work queue. Jun 04 16:32:02 as in, I'm not sure how to call the instance methods in the class I created for the service Jun 04 16:32:58 I'm not understanding your concern. Jun 04 16:33:21 yes, you create an intentservice, but why would you want to destroy it? Jun 04 16:33:31 the whole idea behind a service is it keeps running Jun 04 16:33:40 I destroy it when the main app is exited Jun 04 16:33:48 then don't use a service. Jun 04 16:34:08 services are for keeping things running when your gui isn't there. Jun 04 16:34:18 but I need to use a service so that the app still runs when the app is open but not in focus Jun 04 16:34:28 Can someone help me with drawig my custom view? http://pastebin.com/iqsHYfSb Jun 04 16:35:03 It's for an audio app. The audio should continue to play if the user navigates to a different app without closing my app, but it should stop if the user explicitly exits my app Jun 04 16:35:25 http://developer.android.com/guide/components/services.html Jun 04 16:35:28 oh, for when it is brwteen onpaused() and onResume() Jun 04 16:36:20 oh, the android docs are pretty terrible. Jun 04 16:36:53 I guess so. I understand how to create and destroy the service, and I understand how to get the service to start what I want it to start when it's created Jun 04 16:37:22 d0de: That's a little weird. How are you figuring out if the user explicitly "exits" your app? Jun 04 16:37:46 that woudl eb the onDestroy of the activity Jun 04 16:37:55 eghdk, I thought that onDestroy() of MainActivity was called when the app exited? Jun 04 16:38:17 but I don't understand how to call instance methods within the class when it's running as a service. So, for example, the service plays audio in the background. When the user changes the volume in the GUI, I need to call an instance method in the service class to change the volume in the media player Jun 04 16:38:20 eghdk: there is the implied exit, onDestroy() which could be use or OS, or some apps are implementing an "Ok to exit?" dialog Jun 04 16:38:55 d0de: I would think that would be handled by the audio subsystem Jun 04 16:38:58 d0de, i'm no expert but i think you have to set those listeners inside the service itself Jun 04 16:39:04 Yeah, but does d0de realize that if the back button is hit, onDestroy is called? Jun 04 16:39:21 eghdk, yeah, that's what I mean Jun 04 16:39:27 eghdk: it demends on whose ondestroy Jun 04 16:39:32 So the "only" way to exit your app without service stopping is by hitting the home button? Jun 04 16:39:57 I mean, that's how the current music player works on my phone. If you hit the home button, it carries on playing music. If you hit the back button, it stops. That's the expected behavior in audio apps I've used Jun 04 16:39:59 he could override the onbackpressed method Jun 04 16:40:18 Yeah. I mean it sounds like you know what you want to accomplish. Jun 04 16:40:41 unless I'm just using a weird music player :P Jun 04 16:41:13 d0de, pft @ back button stop Jun 04 16:41:14 jvrodrigues, that makes sense, thanks :D Jun 04 16:41:20 I will never implement that in my player ;) Jun 04 16:41:37 in anycase the point of a service is to do stuff in the background and callback to the application. i don't think you should be accessing methods on it Jun 04 16:41:41 well if that's not standard I might not do it :P Jun 04 16:42:19 d0de: It sounds like you know what you want to do. The more acceptable thing to do is that if you start the service, you simply put up a notification with a play/pause and exit button. Sort of like spotify? Jun 04 16:42:19 but as i said, i only worked with services once Jun 04 16:42:20 i could see overiding back for keeping he tunes going Jun 04 16:42:30 I have stop and pause buttons in my thingie thoguh Jun 04 16:42:54 jvrodrigues, ok, so I should just put all the listeners in the service? That makes sense, I don't know what I didn't think of that Jun 04 16:43:05 d0de, that's how i'd do it Jun 04 16:43:27 Scorp1us: He doesn't have to override back. Jun 04 16:43:32 The service will keep going. Jun 04 16:44:02 yeah, I just had it in my head that I should destroy the service when the back button was hit, I don't really know why :P Jun 04 16:45:30 d0de, or just write an xmms2 client! forget about the service that way ;) Jun 04 16:45:39 I like how spotify handles it. The music plays in the app, with no notification. If I press back or home, the notification shows. Gives me the option to play/pause, or stop playing(exit). If I enter the app, the notification goes away and the controls show in the app to control the music. Jun 04 16:45:49 (a little self-advertising never hurt anyone... right? ;) Jun 04 16:46:21 How does the GUI get information about what's currently playing in the service when the GUI starts? Jun 04 16:47:13 onResume I'm guessing it looks to see what the service is currenly playing and updates the gui to match it. Jun 04 16:48:07 eghdk, can you give me a pointer about what it would take to do that? Sorry if that's a dumb question. I understand onResume, but how does it look to see what the service is doing? Jun 04 16:48:27 you connect to it and ask it Jun 04 16:48:59 ^^ I've never had to do it myself. But you can check if the service is running. and then grab information from it. Jun 04 16:49:42 You can have something like AudioService extends Service and give it some member variables like isPlaying or something. That's how I'd do it. Jun 04 16:49:45 d0de, what do you really want to accomplish in the end? Jun 04 16:49:59 you could probably implement an interface to notify the main activity when something changed. Jun 04 16:49:59 JakeWharton, I cant pass parameters when Im using the response return type? @GET("/") Response rsponse(@Path("page") Integer page); java.lang.IllegalArgumentException: myInterface.rsponse: Only one HTTP method is allowed. Found: GET and GET. Jun 04 16:50:00 Zharf, how do you do that? The docs at https://developer.android.com/guide/components/services.html seem to only cover basic lifecycle stuff Jun 04 16:50:15 implement an interface int eh main activity linked with the intentservice Jun 04 16:50:22 that would work quite well me thinks Jun 04 16:50:31 rodigan: that error is masking another error Jun 04 16:50:42 you have no "{path}" in your URL inside @GET Jun 04 16:50:48 er, {page} Jun 04 16:50:54 Zharf, I want a background service that plays a couple of audio streams whether or not the app is running, and an app with a GUI that allows the user to change the volume of each stream and start and stop playback Jun 04 16:51:32 Can someone help me with drawig my custom view? http://pastebin.com/iqsHYfSb Jun 04 16:52:16 d0de, http://developer.android.com/guide/components/bound-services.html Jun 04 16:52:31 eghdk, you have to set your dimensinos in the value xml file Jun 04 16:52:40 eghdk, then you have to convert those dimensions to dp Jun 04 16:52:53 lemme get the correct syntax for you Jun 04 16:52:58 ah! Jun 04 16:53:35 jvrodrigues: I am setting my dimensions in the xml. Jun 04 16:53:47 then you ahve to get them from the xml Jun 04 16:54:06 Zharf, thanks! Are bound services protected from being killed when they're doing stuff in the same way as other types of services? Jun 04 16:54:09 (int) context.getResources().getDimension(R.dimen.YOURDIMENSIONHERE) Jun 04 16:54:23 that line for each dimension Jun 04 16:55:57 jvrodrigues: I don't think we're talking about the same thing. Jun 04 16:55:59 d0de, by default it's lifetime is the time it's bound to something, but you can "extend" that by combining "regular" service stuff into it, you'll also want to use http://developer.android.com/reference/android/app/Service.html#startForeground(int,%20android.app.Notification) when you're playing stuff Jun 04 16:57:32 I have a custom view called circleView. Jun 04 16:57:53 Zharf, thanks so much! Is there a special name for the technique of extending bound services so I can find it in the docs? Jun 04 16:58:07 In my xml, I do How Do I get those width and height in my CircleView.java? Jun 04 16:58:54 d0de, I came up with my own solution for it, not sure how others do it... but you're free to browse my codebase Jun 04 16:59:40 Zharf, https://github.com/zharf/AndroidBillingLibrary ? Jun 04 16:59:44 no :) Jun 04 16:59:45 eghdk, where do you inflate that view? Jun 04 16:59:57 I forgot that exists... Jun 04 17:00:08 I don't really use github for anything Jun 04 17:00:39 jvrodrigues: I'm not trying to get the height and width in my MainActivity. I'm trying to get the height and width in CIrcleView.java so that onDraw I can draw a circle width the correct dimensions. Jun 04 17:01:00 Zharf, where can I find your codebase please? :) Jun 04 17:01:11 d0de, look at your private messages Jun 04 17:01:15 I gave you a link Jun 04 17:02:11 Zharf, Thank you so much! extremely helpful. I am very grateful for your assistance :D Jun 04 17:03:07 could someone please point me at a good tutorial for rotatedrawable? Jun 04 17:46:32 what's a good way to detect a navigation drawer changed in a fragment so I can reset the actionbar for the fragment I'm on? Jun 04 17:46:47 on* lifecycle method maybe? Jun 04 17:48:18 hi , I have imported Jazzylistview library in eclipse to use it in my android project but its showing errors...why? Jun 04 17:51:56 could someone please point me at a good tutorial for rotatedrawable? Jun 04 18:35:10 if I make a non static inner async task but ensure that it is cancelled onPause of the activity will I still be at risk of memory leakage? Jun 04 18:52:36 I just set up Android project in Eclipse. Is there a way to launch it in an already running emulator, or does a new emulator have to be launched each time? Jun 04 18:54:26 usually if you start the AVD and debug without closing, it should start on the same AVD Jun 04 19:00:44 How do I set the color of a Spinner item? Jun 04 19:04:07 So I have a view pager with a listener. I'm somehow able to get this view into a state where onPageScrolled and onPageSelected are called but onPageScrollStateChanged is not called. Is there a valid reason this could happen or is this a bug somewhere? Also, onPageScrollStateChanged will work at first, and then it stops working, not quite sure why but I think it has to do with the parent frag being paused/resumed. Only able to repro on a 4.2 Galaxy S4 Jun 04 19:21:33 hi, my sony text message app has a small indicator on its icon of how many unread messages I have. However another apps delete messages but the indicator keeps there. I want to understand the mechanisms behind this so I know what can I do for fixing this Jun 04 19:21:58 e.g. would I need to write an app or tasker can be used, or would it need root, etc Jun 04 19:31:59 I want a fragment with a variable amount of edittexts (depends on the nbr of players). Jun 04 19:36:41 I want a fragment with a variable amount of edittexts (depends on the nbr of players). that cant be done in xml right so i have to create X EditTexts in my code. Jun 04 19:36:43 ? Jun 04 19:42:42 can I use @string resources in code? Jun 04 19:43:47 branagan: via getString, yes Jun 04 19:43:59 branagan: (or via getResources() and then other stuff) Jun 04 19:46:10 I need to use an indetermiante dialog without doing work in a background thread. How can I do that? Jun 04 19:47:06 "only the thread that created hiearchy can touch its views" Jun 04 20:02:59 is the heap always almost 100 percent used on just app startup when viewing under the debug monitor? Jun 04 20:04:59 heap grows as needed. Jun 04 20:11:14 What's the difference between intelliJ apk build that gets put in out/production/appname compared to root app folder apk Jun 04 20:15:38 I want a fragment with a variable amount of edittexts (depends on the nbr of players). that cant be done in xml right so i have to create X EditTexts in my code. but how can i set margin in code? they are just displayed over each other. Jun 04 20:16:50 were I you I'd probably use a listview Jun 04 20:34:27 I am having an issue when testing on android 2.3.3, everything works fine on 4.x. When I call progressBar.setVisibility(View.INVISIBLE) from AsyncTask.onPostExecute(), it has no effect. Anyone have any suggestions? Jun 04 20:35:29 Code is here and here: http://bit.ly/1uj2EPJ http://bit.ly/1p7mOtG Jun 04 20:45:04 Okay so I have a gridview that I am populating with images downloaded off the internet using an asynctask Jun 04 20:45:13 something must be wonky in my getview Jun 04 20:45:37 because if i scroll down, the newly visible blocks are already filled Jun 04 20:45:49 with pictures that were loaded first Jun 04 20:46:16 so until the new pictures are loaded, the pictures are in effect repeated Jun 04 20:46:33 any clue guys? Jun 04 20:46:52 GridView reuses views Jun 04 20:47:03 If you previous set an image on a view that is reused, that image is still there Jun 04 20:47:34 So set a placeholder in getView if you need to fire up an asynctask to fetch the image Jun 04 20:47:41 Ah I kept seeing that while I googled for a solution, but I don't think I entirely understand Jun 04 20:47:46 I have a placeholder image in place Jun 04 20:48:07 what i don't understand is, what part gets reused? Jun 04 20:48:26 as in, my grid right now is 3 columns, and I get to see about 4-5 rows Jun 04 20:48:31 The View object your getView returns Jun 04 20:49:08 now when i scroll down, the 6th and 7th rows for instance that were just recently invisible, are now populated with images from the 1st and 2nd rows Jun 04 20:49:46 When an item goes offscreen the view for that item is placed into a pool Jun 04 20:50:16 When a new item is to be displayed, the gridview will query the pool for a View object before calling getView Jun 04 20:50:26 If one exists in the pool, it's passed as convertView Jun 04 20:50:56 Ah okay, so this pool may return incorrect views too? Jun 04 20:50:57 Since it's the exact same instance, any properties you set on it are still there Jun 04 20:51:32 Incorrect views? Jun 04 20:51:46 If it's the same view type it doesn't care what position it was previously used in Jun 04 20:51:58 oh Jun 04 20:52:10 is there any way to fix each view to a particular grid position? Jun 04 20:52:23 You don't want to do that Jun 04 20:52:33 too much memory overhead? Jun 04 20:52:49 Yeah Jun 04 20:52:59 Really, you don't want to do this yourself Jun 04 20:53:07 Use a library for image loading, like Picasso Jun 04 20:53:43 http://lpaste.net/105089 <- my edittexts are just laid out on top of each other, how do i get them after each other like normally in a Linearlayout, what am I doing wrong? Jun 04 20:54:39 While this is a student practice project for me, I'd like to in the future use it in my portfolio as projects done myself. Would using libraries be considered cheating or is it accepted? Jun 04 20:55:47 Because I just googled Picasso, and it looks really good and I'm very tempted to use it, but I'd really like to say that I made the app myself. Jun 04 20:57:13 branagan: I could be wrong, but why are you doing 'findViewById( android.R.id.content )'? Jun 04 20:57:19 By that logic I would say you didn't write the app unless you're writing in assembly Jun 04 20:57:25 true Jun 04 20:57:34 So it's okay then right? Using libraries? Jun 04 20:57:56 KaylieG: I can't speak too much since I've only been not a student for like 3 weeks, but for my projects that I had done a lot of stuff by hand, looking back, I wish I had used a library Jun 04 20:58:11 It might be a good exercise for you to write your own implementation first, so you understand how it works Jun 04 20:58:23 Then scrap it and use a library that's proven to work Jun 04 20:59:12 Yeah this Picasso example I'm reading has an explanation of what a rudimentary self built version would look like so I'll try it out a bit myself for the practice, and then use the library to get the smoothness Jun 04 20:59:19 Other than simply setting a placeholder when a view is reused, you'll also have to cancel any running asynctasks for that particular View instance before setting the new image Jun 04 20:59:53 thanks guys Jun 04 20:59:58 what are you guys working on these days? Jun 04 21:00:34 If you don't, you'll end up with multiple asynctasks all loading images into the same view.. Might lead to some weird effects Jun 04 21:00:59 (different images that is) Jun 04 21:01:04 oh somehow mine seems to work for the most part, but I'm not sure why Jun 04 21:01:17 Fast internet :) Jun 04 21:01:31 a bit of lazy coding too I guess Jun 04 21:02:23 Don't frown at me, but I used an array to temporarily store the bitmaps according to index. It works perfectly, but I suspect only because I'm only holding about 20 pictures at any given time Jun 04 21:02:26 When a circular ProgressBar is hidden, is it still drawing? Jun 04 21:02:45 It was completely temporary though, I never intended it to be part of the permanent code Jun 04 21:03:03 You should limit your memory cache to a certain amount of ram as well Jun 04 21:03:12 Should I use setVisibility or create new objects if I want to switch it on and off? Jun 04 21:03:28 Otherwise you'll run out Jun 04 21:03:40 oh i guess i should really read up on that Jun 04 21:04:08 It's discussed on the dev page: https://developer.android.com/training/displaying-bitmaps/load-bitmap.html Jun 04 21:04:15 frankdrey: visibility. no it doesn't draw when "gone" Jun 04 21:04:40 yeah recreating something seems like it would be a waste of time Jun 04 21:04:44 Oh thanks. I've gone though a few very basic resources on learning android development, but never came across stuff like that. Got any recommended places to learn serious android development from? Jun 04 21:05:07 Understand everything under "Displaying Bitmaps Efficiently", then don't waste time creating your own implementation Jun 04 21:06:04 KaylieG: didn't fully follow your whole convo, but I'll say that a basic understanding is definitely worthwhile. One of my interview questions relates to loading/caching images and covers both libraries and doing it yourself Jun 04 21:06:17 Which is effectively what SimonVT is saying, I think Jun 04 21:06:32 understand the principles, but don't do what someone else has already done well Jun 04 21:06:52 I see, I'll definitely do it. Jun 04 21:08:03 DallasG, any more tips on what I should focus on from an interviewer's point of view? I'll be looking for a job in little more than a year and I'd like to be prepared beyond making hobby projects Jun 04 21:09:44 This guide came out recently and suggests some things for interviewers, and so inherently reads well for candidates as well Jun 04 21:09:45 www.toptal.com/android#hiring-guide Jun 04 21:09:59 How old are you Kaylie? Jun 04 21:10:21 the most important thing though is having actual experience and opinions on these things, not just having read documentation Jun 04 21:10:24 Serious question Jun 04 21:10:27 21 Jun 04 21:10:42 So you're looking to pre when you grad college on handling interviews? Jun 04 21:10:49 Sorry just jumping into the convo Jun 04 21:11:05 notbryant: ty, I thought that woudl give me the view i set above...? Jun 04 21:11:22 yeah i'm not sure if i'll work right away or go for grad school directly Jun 04 21:11:32 but better to be prepared Jun 04 21:11:33 and I'm jumping back out — totally got my attention w/ the load-bitmap.html reference link Jun 04 21:11:45 What's your major? Jun 04 21:12:35 branagan: I don't believe so. the view isn't attached to the activity until the end of that function. Besides, no sense doing "findViewById" repeatedly when you already have the view in a variable. Try swapping those out for just 'view'. Jun 04 21:13:06 Computer Engineering, but no focus on Mobile or Web, so I decided to learn those as a hobby in my free time. Jun 04 21:14:08 K first thing to understand is your starting at the bottom Jun 04 21:14:14 If a layout works on a big phone using dp, sp and linearlayout, should it work on a small phone as well? Jun 04 21:14:27 don't "computer engineers" generally work on hardware? Jun 04 21:14:30 What recruiters are looking for is 1.) Experience, 2.) Your ability to communicate and 3.) If you have any projects on Git Hub Jun 04 21:15:00 petecouture: you should clarify: _Professional_ Experience Jun 04 21:15:02 So unless you have experience now I would concentrate on learning as much as you can and creating libraries to share on github Jun 04 21:15:13 notbryant: Not any experience Jun 04 21:15:16 No rather Jun 04 21:15:45 from the recruiters that I've talked to recently, that's the first thing they ask, for professional experience Jun 04 21:15:47 notbryant: If you were a nerd like me who started doing web design for businesses around my house at 14 it's a big plus Jun 04 21:16:08 Right experience as in you've worked in the industry before Jun 04 21:16:17 right.....professional experience Jun 04 21:16:29 Professional experience is different though Jun 04 21:16:44 My course has focus on the mathematics and the theory of computer science, a tiny bit of assembly, but mostly C and C++ stuff. Not much low level stuff. Jun 04 21:16:47 it means you've been employeed professionally at a carreer or firm Jun 04 21:17:13 Being a craiglist developer for hire for local businesses doesn't really count as professional in their book but it does count Jun 04 21:17:32 KaylieG: Then you need to really get a good portfiolio together Jun 04 21:18:11 Connections are useful too Jun 04 21:18:20 Is creating proper libraries something that's viable for most people? Jun 04 21:18:28 I don't think that definition is correct, but it's just semantics Jun 04 21:18:49 basically they want you to be working to be paid and not just have side projects Jun 04 21:19:08 And what else can i do do pad up my portfolio? Jun 04 21:19:43 Does anyone have a good pattern or example for Dagger injecting RxJava Observables, so I don’t need an EventBus anymore? Jun 04 21:21:09 KaylieG, make stuff :p Jun 04 21:21:30 I wouldn't look at it as padding up Jun 04 21:21:46 yeah, make stuff. But as frankdrey said, connections are good. Try an Android dev Meetup in your area if you can Jun 04 21:22:02 connections > portfolio > skill Jun 04 21:22:12 I don't believe a portfolio should be a thing you actively make, but a side effect of your work Jun 04 21:22:29 Well I guess I'm truly starting from the bottom then. Jun 04 21:22:36 I do have a year though. Jun 04 21:23:11 Mavrik: I wouldn’t say skill is unimportant. I’d say instead that you simply have to find some way to prove that you can build things of value and that you have discipline. Jun 04 21:23:22 Because if you treat it as the former definition....you're one of those kids that was class president and gave speeches about "success" and other obnoxious things :p Jun 04 21:23:23 colintheshots, it's hard to show skill on job interviews Jun 04 21:23:52 colintheshots, I didn't mean it's unimportant, it's just hard to show in that silly short time you have to impress the guy trying to give you a job Jun 04 21:24:09 Mavrik: Sure it is. Point to your GitHub portfolio and have a lot of useful, starred contributions. Jun 04 21:24:18 KaylieG, I usually ask people straight from college about their course work and their thesis work Jun 04 21:24:19 Just put crap on github, people will email you from all over the world :p Jun 04 21:24:41 Bitbucket?;_; Jun 04 21:24:59 most CS colleges worth a damn give plenty of opportunities for students to make cool stuff as homework / projet Jun 04 21:25:00 *project Jun 04 21:25:07 My own git server?:p Jun 04 21:25:31 frankdrey: naw dawg. cvs ftw. Jun 04 21:25:36 I had also used topcoder performance to help get one of my previous jobs, back when I had very little experience to put on a resume Jun 04 21:25:37 I know for a fact that most of my classmates got their grades by plagiarizing their projects Jun 04 21:25:39 I once actually linked to my personal gitweb when asked for a portfolio :3 Jun 04 21:25:39 Heh Jun 04 21:25:39 frankdrey, it's usually "show me something you made" Jun 04 21:25:54 Try going to a hackathon and build something of real consequence. You won’t finish at the event, but you’ll get a good start on something to prove skill and discipline. Jun 04 21:26:01 KaylieG, that's easy to find out Jun 04 21:26:22 KaylieG, "Why did you make it like that?" "Uhhm, urrgh" "NEEXT!" Jun 04 21:26:50 My teachers don't bother too. And as much as I'd like to shoot to the top immediately, I don't want to snitch either. Jun 04 21:26:56 Most Android employers want to see what you have on Google Play. Jun 04 21:27:04 They'll easily be found out during interviews though Jun 04 21:27:13 I got real lucky with this project I'm working on. I had little experience. It was a combo of a good connection & nice people Jun 04 21:27:34 yep, having an actual app on Google Play makes the whole interview way easier Jun 04 21:27:52 "oooh, you made that. Neat. Do you have source? Looks good. When can you start?" Jun 04 21:28:03 What's the fee for having a developer account? 25$? Jun 04 21:28:09 yup Jun 04 21:28:13 It’s a one-time fee too. Jun 04 21:28:15 Yup, one time too Jun 04 21:28:24 Unlike *cough* Apple *cough* Jun 04 21:28:36 How much is Apple's? Jun 04 21:28:41 99 a year Jun 04 21:28:42 $100/year Jun 04 21:28:45 Damn Jun 04 21:28:56 I literally could not afford that. Jun 04 21:29:05 how cute, bankai_au is try to make it sound cheaper. Jun 04 21:29:06 but they give you free access to their useless dev portal Jun 04 21:29:09 And you need a Mac :p Jun 04 21:29:36 *shrug* Jun 04 21:29:54 it's not that much money :) Jun 04 21:29:55 I understand when regular people who just want to browse the internet go gaga over Apple products, but I really don't understand developers who do. Jun 04 21:30:16 that's because developing Apple apps is a privilege that Apple graciously bestows on you.... Jun 04 21:30:21 but yeah, annoying if you're just starting out. Jun 04 21:30:42 KaylieG, notbryant "Would using libraries be considered cheating...?" heck no. I'll be involved in the interview process for our next mobile developer. I'd be impressed if he/she successfully sought out and integrated an existing solution into his/her project. Jun 04 21:30:43 I had a guy who once posted on facebook that anyone who used Android instead of iOS should just kill themselves Jun 04 21:30:49 It's not $1!! It's only a low price of .99! Jun 04 21:30:51 and he wasn't making an off color joke Jun 04 21:31:08 He was just really into Apple that he couldn't see why anyone would want to buy Android Jun 04 21:31:27 you lost me after you said 'facebook' Jun 04 21:31:34 KaylieG: I've had a friend of mine say that everyone who owns an Android phone really just wishes that they had an iPhone Jun 04 21:31:52 people be crazy Jun 04 21:32:15 I'd demote them to "acquaintance" Jun 04 21:32:21 Might have been true pre-Froyo. Jun 04 21:32:24 *shrug* Jun 04 21:32:25 Every (android|iphone) fanboys is crazy Jun 04 21:32:32 any fanboyism is awful Jun 04 21:32:43 word Jun 04 21:32:56 so you're fanboying being an anti-fanboy. Jun 04 21:32:58 fanboyism makes the thing they support unlikable Jun 04 21:33:08 I bought an iPad the other day. I pulled out my Android to look up some reviews / info. It made for a pretty funny picture. Jun 04 21:33:17 hahah Jun 04 21:33:17 (was in the Apple store) Jun 04 21:33:44 * p_l was once seen in apple store trying to connect linux running on AMD laptop to Cinema Display :) Jun 04 21:33:55 haha Jun 04 21:33:55 ahahahahaha! awesome! Jun 04 21:34:03 I was watching Arrow on an iPhone and texting on a Nexus today Jun 04 21:34:40 p_l, well at least you had a slight chance of that working :P Jun 04 21:34:44 TB monitors won't even poweron Jun 04 21:34:58 Netflix on Nexus S with 4.4 is kinda buggy ;_; Jun 04 21:35:05 KaylieG: to answer your question, I think Macs tend to be better for some development than Windows (e.g. Rails) and it's Unix Jun 04 21:35:21 Probably cause its still using 4.1 GPU drivers Jun 04 21:35:29 Mavrik: TB should work ok with DP... should Jun 04 21:35:38 p_l, doesn't :) Jun 04 21:35:49 works only with new Macs with TB Jun 04 21:35:56 notbryant i'd freakin love to have a macbook, but can't afford one Jun 04 21:35:58 even older macs with DP won't work with it Jun 04 21:36:10 tea-bagging should work with double-penetration? Jun 04 21:36:13 (we have full office of those, incredible how bad quality control is) Jun 04 21:36:14 Mavrik: ah. So pretty much TB displays are crap Jun 04 21:36:20 Apple fanboys always seem to go gaga how I present Android talks from a MacBook. But how else am I supposed to mess around with iOS development from time to time? On a Linux box? Jun 04 21:36:22 mattblang, that's exactly how I've been feeling the past few weeks :3 Jun 04 21:36:23 (keep failing) Jun 04 21:36:32 colintheshots: OSX in VMware Jun 04 21:36:40 ^ Jun 04 21:36:45 what I did Jun 04 21:36:49 colintheshots: though I'll admit graphics accel doesn't work Jun 04 21:36:57 My laptop is from 2007 and has 2gb ram... Jun 04 21:37:12 mattblang: you just bought an iPad! :P I bought one on a scheduled payment plan on Amazon Jun 04 21:37:19 IntelliJ somehow runs just fine :p Jun 04 21:37:25 OTOH, I suspect that VMware is somewhat specially doing stuff to make it easier to make "vmware hackintosh" Jun 04 21:37:35 colintheshots, p_l I gave my VM 4 gb of ram, and half my i7 cores, and the simulator seems to run great Jun 04 21:37:41 IMO, Apple makes really decent laptops. I've been severaly unimpressed by almost all Windows laptops I've seen Jun 04 21:37:44 The MacBook was free from work. Frankly, it’s good hardware, but I have a lot of pet peeves… costs of adapters and no reliable home/end for two. Jun 04 21:37:45 mattblang: the problem is drawing Jun 04 21:37:49 p_l, they have same VM engine on OS X as everywhere else Jun 04 21:37:57 p_l, and they support virtualizing OS X on Macs Jun 04 21:38:05 so, of course, OS X works rather well :) Jun 04 21:38:30 Mavrik: the thing is, they compile it separately to make the products (and Fusion *is* slightly different, iirc). Yet patching VMX/VMkernel to enable OSX support takes surprisingly little ;> Jun 04 21:38:32 frankdrey, ugh... Jun 04 21:38:41 2GB of ram? duude :) Jun 04 21:38:45 Mavrik: whereas it would take on #define to block it :> Jun 04 21:38:52 :)) Jun 04 21:38:58 well, they're not trying TOO hard Jun 04 21:39:15 notbryant yeah man, all my family / friends are messing with me because of my past apple hating. lol. finally gave in. my girlfriend is ios, so she wanted one. and board games / video game ports always seem to go to ipad first Jun 04 21:39:19 after all, you need to buy workstation license to run OS X VM on Windows against EULA ;) Jun 04 21:39:28 Mavrik: i think the stuff they do actually requires *more* work than removing the ability Jun 04 21:39:32 notbryant like, seriously, there are sooooo many good, official board game ports for ios Jun 04 21:39:37 Yeah. I usually solve a Rubik's cube several time while waiting for compile Jun 04 21:39:48 Mavrik: ESXi iirc also supports OSX Jun 04 21:40:02 never tested that Jun 04 21:40:11 been awhile since I administered ESXi Jun 04 21:40:19 not sure if Fusion doesn't have GPU accel for OSX Jun 04 21:40:32 but OSX gpu pipeline is weird as hell Jun 04 21:40:55 I want to try hackintosh my laptop with like, leopard or something Jun 04 21:41:03 good thing about Apple fanboys is... I had no trouble convincing people at the company that Android dev sucks so much I need 16G of RAM in my company laptop :P Jun 04 21:41:09 lol Jun 04 21:41:15 :D Jun 04 21:41:25 so here we go rMBP 16G/512G Jun 04 21:41:26 have someone idea/link on how to use LightService to manage backlight display value ? Jun 04 21:41:34 I'd love to put 32G, but intel doesn't support 8Gbit DRAM modules Jun 04 21:41:43 Mavrik freakin lucky, im on a company virtualized system. can't even run genymotion Jun 04 21:42:06 I don't even dream of genymotion Jun 04 21:42:19 hmm yeah, Genymotion is rather neat Jun 04 21:42:35 frankdrey, Mavrik genymotion, intel haxm, regular emulator, whatever, have to test on physical devices Jun 04 21:42:39 frankdrey, Mavrik irritating Jun 04 21:43:04 it's way easier to iterate and test UI/UX in Genymotion than on physical device Jun 04 21:43:15 physical devices are needed for final touchups and bug fixing Jun 04 21:43:26 I'm lucky that my family has a decent amount of android devices Jun 04 21:43:36 how much ? :) Jun 04 21:44:10 Me Nexus S, Dad Nexus 4, Brother Moto G, Mom Sam Gtab2, Brother Asus TF101 Jun 04 21:44:33 And I also have a G1...:3 Jun 04 21:44:38 frankdrey we bought a Samsung Galaxy Ace.. didnt know there were Android resolutions that small Jun 04 21:44:44 Lol Jun 04 21:44:52 meh, Ace has what, old mdpi? Jun 04 21:45:04 now, that one old Xperia... Jun 04 21:45:30 Me Nexus 4, Nexus 7 2012/2013, A rockchip 3168 powered, Cubieboard1/2, wife Samsung Advance S, daughter (9y0) Miia Tablet, son (11yo) Samsung 7 and Xperia x8 phone :) Jun 04 21:45:32 Ace was 480x320 Jun 04 21:45:36 I'd definitely go with Genymotion over actual devices for most iteration Jun 04 21:45:40 HA I remember those resolutions. Jun 04 21:45:45 Mavrik: that's standard mdpi, eh Jun 04 21:45:46 HTC Tattoo was awesome to develop for, 320x240 :D Jun 04 21:45:59 Damn shineworld :p Jun 04 21:46:00 is there somewhere a comprehensive list of the attributes of drawable? Jun 04 21:46:07 Random question here, but are you guys happy in your lives as coders? Jun 04 21:46:28 KaylieG that depends on the day Jun 04 21:46:30 KaylieG: I would have to check the documentation :P Jun 04 21:46:37 KaylieG, very, but it's only beginning :p Jun 04 21:46:40 Did anyone develop for the HTC ChaCha, like, ever? Jun 04 21:46:43 in intent-filter, how to allow the text if it contains a certain value? Jun 04 21:46:50 notbryant: ftw Jun 04 21:47:06 and I've missed a fancy big (unusable) 13.3" tablet powered Allwinner A31: https://www.dropbox.com/s/964gua4v7rad65a/IMG_20140514_164013.jpg Jun 04 21:47:06 Haha great I just didn't want to be one of those people who regretted taking up their respective careers. Jun 04 21:47:26 I very much enjoy being a coder, but I haven't had a real job coding. Worrying about work is the only thing I dislike so far. Jun 04 21:47:26 Estel, I've just seen like few of those Jun 04 21:47:32 they had landscape screens by default right? Jun 04 21:47:37 Yes Jun 04 21:47:44 Do you guys get enough free time to watch TV shows and movies and stuff? Jun 04 21:47:45 anybody? where can I see a list of drawable attributes? Jun 04 21:48:17 X10 mini... 240x320 2.55" heh Jun 04 21:48:47 KaylieG As frustrating as some days can be, I am usually really happy about my career choice, especially since I'm getting to do Android almost full time now Jun 04 21:48:50 jamesson: in the documentation.? Jun 04 21:49:07 jamesson: why do you want to know attributes? like....functions aren't enough? Jun 04 21:49:16 My new toy: 800x600 in 12" https://www.dropbox.com/s/7oaomt29g4niy15/IMG_20140604_110943%3Anopm%3A.jpg Jun 04 21:49:30 not so "wearable" :) Jun 04 21:49:33 Estel: sorry, can't see it Jun 04 21:49:42 notbryant: I want to do property animations Jun 04 21:49:47 Mavrik, Estel so can I quote yall on a report I am writing to convince upper management to give me a physical computer, lol Jun 04 21:50:00 mattblang, huh what Jun 04 21:50:04 notbryant: I see all methods but not xml properties Jun 04 21:50:11 mattblang, they don't give you a computer to work on? Jun 04 21:50:18 Presumably a thin client? Jun 04 21:50:22 Mavrik, Estel no, that is what I meant earlier, I am on a thin client Jun 04 21:50:48 yeah, look for a new job :P Jun 04 21:50:51 that's just insulting. Jun 04 21:50:54 Mavrik lol Jun 04 21:51:07 jamesson: oh, so you mean XML attributes? Jun 04 21:51:16 KaylieG, I don't have a full job but I'm working a project, college, 2 bands, and I have fun :p Jun 04 21:51:22 Mavrik yeah, we are all pretty irrtated about it. it was at least okay when I was doing web dev, but man I need one now that I am on mobile dev Jun 04 21:51:30 notbryant: yes Jun 04 21:51:38 jamesson: http://idunnolol.com/android/drawables.html Jun 04 21:51:41 I have no idea how you can do anything decent on a thin client O.o Jun 04 21:51:54 Nice Jun 04 21:52:00 and like... fully beefed up sick developer desktop costs like less than 1000EUR Jun 04 21:52:19 Enterprise can be enterprise Jun 04 21:52:25 Mavrik, Estel I know... I know... The data center cost a pretty penny too... Jun 04 21:52:44 KaylieG: fun is temporary, glory is eternal! Jun 04 21:52:50 "No unprovisioned ultra-locked down machines within five miles of this building plz" Jun 04 21:53:47 notbryant: so, there is no x position, y position, or rotation attribute? Jun 04 21:54:21 notbryant: simpler question, wht is the correct way to move a preexisting drawable? Jun 04 21:54:32 jamesson: wrap it in another drawable Jun 04 21:54:52 jamesson: I think you're looking more for attributes for animations.....an x position for a drawable XML file wouldn't make any sense (I think?) Jun 04 21:54:52 Make a rotate drawable that references the preexisting one, for example Jun 04 21:55:01 Estel: huh? Jun 04 21:55:06 Estel: yo dawg, I heard you like drawables Jun 04 21:55:15 It's drawables all the way down Jun 04 21:55:29 Estel: yes, I see how that works for rotation, but how to move? Jun 04 21:55:53 Move the view? Jun 04 21:56:02 Draw it on a canvas? Jun 04 21:56:18 It's out of the scope of what a drawable is supposed to be, I think. Jun 04 21:56:40 Estel: so if it's inside a LayerDrawable it cannot be moved? Jun 04 21:57:19 no Jun 04 21:57:32 sorry Jun 04 21:57:41 mistake Jun 04 21:57:42 You could perhaps use an insetdrawable? Jun 04 21:57:51 I've never gone near that Jun 04 21:58:09 But it seems like you might be taking the wrong approach to solving your problem. Jun 04 21:58:46 Estel: I need to do a compass. It has to have a bubble (moves in 2 dimensions) and a rotating rose (rotates by degrees). Jun 04 21:59:08 is it possible to use path, pathPerfix or pathPattern with a plain text? NOT url Jun 04 22:00:50 jamesson: it might make sense to do a rotatedrawable, but to move the whole thing it might be better to look at canvas, or just position a view, or whatever Jun 04 22:01:13 Estel: I am really unclear about the general animation strategy, I want to have multiple semitransparent object stacked on top of each other. Should I have one view with multiple canvases, or multiple views, or what? Jun 04 22:01:18 how can I get the view I inflate in onCreateView? is it always safe? Jun 04 22:01:38 branagan: get the view from where? and what do you mean by 'safe'? Jun 04 22:02:02 Estel: not the whole thing, just the bubble. The rose needs to rotate, but that's it. Jun 04 22:02:19 notbryant: in my onClick method. Jun 04 22:03:13 branagan: I closed the tab with your code, but I suspect you can just call 'getView()' on the Fragment... Jun 04 22:03:33 jamesson: have you read http://developer.android.com/guide/topics/graphics/2d-graphics.html ? Jun 04 22:05:01 There's a nice section on view animation too (personally I think I'd go for multiple views; your overdraw shouldn't be too bad) Jun 04 22:05:12 Estel: not closely enough apparently. Another question, how do you erase from a canvas? is it possible? Jun 04 22:05:22 DUnno, sorry Jun 04 22:07:38 notbryant: ty. Jun 04 22:11:28 notbryant: http://lpaste.net/105092 <- Still it feels like I am doing something backwards when I do it like that. Jun 04 22:11:31 this is potentially a stupid question, but does anyone have any good resources for learning gradle? Jun 04 22:12:21 branagan: np :) Jun 04 22:12:42 branagan: what part, specifically? (lines) Jun 04 22:13:04 is there someone can help me with intent-filter? Jun 04 22:13:47 MalekAlrwily: sorry, I'm not sure I can help. but then I'm really useless when I'm hungry Jun 04 22:14:19 lol Jun 04 22:14:50 i want to filter a text with some pattern Jun 04 22:15:10 like "* text *" Jun 04 22:15:41 is it possible? Jun 04 22:15:47 notbryant: line 98, that I had to add the getInstance method. Jun 04 22:18:26 branagan: why are you having to call getInstance? Jun 04 22:19:26 like I don't even see that function for the Fragment class Jun 04 22:19:52 oh wait, I see it. Jun 04 22:20:16 branagan: you should be able to replace the getInstance call with 'Fragment.this' Jun 04 22:24:49 ty Jun 04 22:25:21 hey guys Jun 04 22:25:39 I cloned a project into /user/projects Jun 04 22:25:58 and I've told eclipse ADT to use that path as the workspace Jun 04 22:26:05 however I can't find anything in package explorer Jun 04 22:26:15 within eclipse Jun 04 22:26:19 shouldn't it automatically find my project? Jun 04 22:26:34 hey Coco :) Jun 04 22:26:43 the project is an Eclipse project? Jun 04 22:26:50 frankdrey-laptop: hey!! Jun 04 22:26:56 I think you need to "import" it into your workspace Jun 04 22:26:59 frankdrey-laptop: I assume so as I've pushed from an eclipse project Jun 04 22:27:05 frankdrey-laptop: Oh I see Jun 04 22:27:15 or switch to IntelliJ ;) Jun 04 22:27:25 frankdrey-laptop: I use IntelliJ at work Jun 04 22:27:41 which is why I've forgotten how Eclipse works Jun 04 22:27:45 heh Jun 04 22:27:46 I assumed it find them automatically Jun 04 22:28:49 try importing it into a fresh workspace Jun 04 22:29:04 what do you guys think of Effective Java, 2nd Edition? Jun 04 22:29:14 considering picking it up for $42 on amazon Jun 04 22:29:48 frankdrey-laptop: sounds.....effective Jun 04 22:29:57 :D Jun 04 22:31:20 Hey Jun 04 22:37:31 Right guys, so I've imported a cloned project from my other laptop into eclipse. I'm getting an error in my android manifest, no resource found that matches the given name @integer/google_play_services_version Jun 04 22:39:08 wait it's not finding anything Jun 04 22:39:11 any of my libraries Jun 04 22:40:29 you'll need to add them Jun 04 22:41:07 why did git not track them Jun 04 22:44:40 frankdrey-laptop: I can recommend it Jun 04 22:45:23 CocoStorm, don't ask me xD Jun 04 22:45:30 kakazza, alright thanks Jun 04 22:46:46 https://groups.google.com/forum/#!topic/adt-dev/YbpA15MmxzI Jun 04 22:46:56 thoughts, feelings? Jun 04 23:12:19 location service returning 0 for speed and bearing Jun 04 23:34:56 how can i move focus back to the editor when the focus is on the project explorer in android studio? Jun 04 23:40:51 click? Jun 04 23:59:53 whomp, esc, sir Jun 05 00:06:15 bitkiller, touche :) Jun 05 00:06:16 thx Jun 05 00:27:01 say i type something and i get a bunch of matches in auto-complete, what keystroke fills in everything up until the point where the auto-complete guesses differ? e.g. if i type "fi" and get "find()" and "findById()" as matches and press this key stroke, it would fill in "nd" to make "find" Jun 05 00:27:44 what do android devs use to split their strings up? i need the three numbers in this string "http://mysite/333/444-11" Jun 05 00:28:11 Hello, I am running a webserver via an executable in my assests folder. I get it working fine, but I am just curious what is the state of this process that I spawn with RunTime? Jun 05 00:29:43 rodigan: regular expressions. Jun 05 00:30:12 [0-9][0-9][0-9]/[0-9][0-9][0-9]-[0-9][0-9] Jun 05 00:30:41 That could be condensed a bit, but that will match your numbers. Jun 05 00:33:56 then you can use String.split() Jun 05 00:35:24 hello i have a webview and it does some jsinterface stuff and starts a html5 geolocation watchposition but under certain circumstances if i am really fast with the buttons i will go back to before the webiew is created back to the activty that launched it and the HTML5 geolocation will still be active (anndroid icon for gps lock) im not sure how to stop this undesired behavior and when i try to click the button that will Jun 05 00:35:25 do webview.loadurl again … the page wont load… Jun 05 00:35:30 any ideas? Jun 05 00:39:29 jaspertheghost_: Check to see if the webview object you are trying to access is valid, and make a new one if not? Jun 05 00:43:33 idk even know how to do that Jun 05 01:32:25 hi there, does anyone know if it is possible to have a fileobserver inside of a start_sticky service? I want to be notified if a photo has been taken even if the app has been killed but has a service running Jun 05 01:38:43 hey fenny u still there think i got a fix Jun 05 01:38:45 wanted to run it by you Jun 05 01:38:55 Shoot. Jun 05 01:39:40 basically i made the acitivty that holds the webview the launcher activity since the whole thing “guts of the app” will be accessed via the webview Jun 05 01:40:08 then i was still having an issue if i messed with it enough closing and clicking back while the camera loaded via jsinterface that it would still get stuck and webview wouldnt load Jun 05 01:40:19 so i created an ondestroy override for urlactivity Jun 05 01:40:24 the unloads the webview Jun 05 01:40:41 will google delete my app if it is help using the Aptoide app? Jun 05 01:40:52 so it seems to reload the webview and the page everytime which is the desired functionality Jun 05 01:42:12 and my javascript still runs when the application is minimized and the app will close if you hit back enough times Jun 05 01:42:23 only weird thing is sometimes my window.onload function wont run Jun 05 01:42:51 itll run if i run manually whichmakes me thing somethjing wasnt “ready" Jun 05 01:42:56 i dont know how to fix that Jun 05 01:44:04 err actually this one time even when i click load button it doesnt load the data into the listview (which is created dynamically) Jun 05 01:44:30 anyway i can debug webview javascript? Jun 05 01:44:43 codes not working at all now .. Jun 05 01:47:19 and now it is again .. maybe its the server not responding with json quick enough Jun 05 01:47:57 https://www.destroyallsoftware.com/talks/wat Jun 05 01:51:55 fucking ruby Jun 05 01:51:57 lol Jun 05 01:52:43 Hi all, suppose someone could help me with this stackoverflow question? I'm trying to work on a instrumentation test for the navigation bar Jun 05 01:52:46 https://stackoverflow.com/questions/24047292/testing-action-bar-icons-that-hide-when-a-navigation-drawer-is-open Jun 05 01:58:40 Fenny that is hilarious Jun 05 01:59:11 Those javascript examples seemed relevant. :P Jun 05 01:59:45 I.E. Javascript must be well designed when object + array = 0. lol Jun 05 02:09:49 Fenny: I liked the video! Jun 05 02:17:07 if i have upload some illegal app, will it just unpublish? Jun 05 02:19:46 If it's child porn MalekAlrwily, you'll also get v&. Jun 05 02:32:05 hrm whats the best way to include a spinner into an alert dialog?\ Jun 05 02:32:50 hello how can i debug javascript of a webview Jun 05 02:37:52 heya, does anybody know bloom filters? Jun 05 02:38:05 Hi guys, I am using alarm service in my app for setting reminders at some interval. I am using setrepeating, RTC_Wakeup opion. I see that when the screen is locked the reminder(notification) comes up though the time set for reminder is not the time when screen is locked. I am not able to understand what is going wrong. Can someone help me with this Jun 05 02:43:37 Anyone know a good page describing what happens when you run an arm executable from your files directory? Who owns this process: if i exit the app that launched the executable (and its process) can the app regain control of this process when recreated? Jun 05 02:55:13 lasserix: I believe you might want to read up on general process operations and IPC in *nix, because those rules are pretty much followed Jun 05 02:58:10 yeah i was thinking something like that Jun 05 02:58:13 thanks Jun 05 02:58:51 mostly i was curious if i can reclaim the process from the app if i destory and recreate the activity that spawns the executable process but ill look into that which you mentioned Jun 05 02:59:27 "reclaim" --> ahh specifically i meant if from java i can set the background/foreground priority of the spawned executable process Jun 05 02:59:42 since even if i destroy the activity that spawns the exe process, it stays in the foreground Jun 05 02:59:45 lasserix: the spawned process doesn't have such a property Jun 05 02:59:56 if i look at adb shell ps **** ENDING LOGGING AT Thu Jun 05 02:59:58 2014