**** BEGIN LOGGING AT Wed Nov 13 02:59:58 2013 Nov 13 03:00:18 you don't have the lib as a dep, only the module Nov 13 03:00:38 there's a jar lib you need as well Nov 13 03:00:50 the .jar you mean? but it has the export checkbox checked Nov 13 03:01:37 also i don't think the .jar is where the resources are Nov 13 03:01:52 they're under the module in res/ Nov 13 03:29:50 out of interest, whats a good ratio for installs/downloads ? Nov 13 03:30:06 or rather current installs / total downloads Nov 13 03:31:34 1.0 is good. Nov 13 03:31:38 :p Nov 13 03:32:36 no…that would be astonishing Nov 13 03:33:02 and highly probable from the 1st install :) Nov 13 03:43:47 it's tricky, my one app has 6500 'active' installs but analytics tells me only a few 100 run it any given day Nov 13 03:44:06 man fuck i give up Nov 13 03:45:20 osxorgate: which app ? Nov 13 03:46:15 shmooz: only the best puzzle game in the world https://play.google.com/store/apps/details?id=com.codestare.wordsearch Nov 13 03:46:56 does it make much off ads then ? Nov 13 03:47:01 for that 100 uses per day ? Nov 13 03:47:15 cause I bet those uses are quite long no ? Nov 13 03:47:30 i get about 4k ad impressions per day Nov 13 03:47:42 they refresh every 60 sec Nov 13 03:47:50 i dont know what that means…well what that relates to in $$ Nov 13 03:47:51 and it's about $2.50 a day Nov 13 03:47:54 oh Nov 13 03:47:56 eww Nov 13 03:48:12 but you have an ad free version for .99c ? Nov 13 03:48:17 nope Nov 13 03:48:36 Hey guys Nov 13 03:48:49 osxorgate: not thought about it ? Nov 13 03:49:16 my buddy makes https://play.google.com/store/apps/details?id=com.neenbedankt.rainydays and he does have inapp purchase to remove ads, from what i hear it's not worth the effort Nov 13 03:49:23 Got a question...I have an app that is works in either portrait or landscape. Most phones tend to be portrait for most of the activities. However, one of my activies is for watching a video Nov 13 03:49:31 people want that part to be full screen Nov 13 03:49:49 I let people just rotate their phones and it goes full screen. But people want it to work even if they have rotation lock enabled Nov 13 03:50:07 so I found I can do this: myActivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); Nov 13 03:50:10 so far, so good Nov 13 03:50:34 except...the youtube app...it does that when you press a button. But if I tilt the phone to be landscape and then tilt back to portrait, it goes back Nov 13 03:50:38 StingRay_: i did get 2x the downloads when i updated the app icon Nov 13 03:50:46 how can I do that? Nov 13 03:52:06 how can I access an activity property from a fragment? Nov 13 03:52:23 danieleB: getActivity() Nov 13 03:52:32 but it might return null Nov 13 03:53:17 actually I would like to access a property of a class extending the activity Nov 13 03:53:33 if I do getActivity() I am only getting the activity properties Nov 13 03:53:47 and not the properties of the class extending the activity Nov 13 03:54:22 * and not ALL the properties of the class extending the activity Nov 13 03:54:45 then you cast Nov 13 03:55:09 ((MyActivity) getActivity()).myProperty Nov 13 03:55:25 ah ok, I didn't know I could do that Nov 13 03:55:38 you just gotta make sure the cast is allowed Nov 13 03:55:52 or you get a ClassCastException :0 Nov 13 03:55:58 I mean I didn't know that by doing that I would be able to access the properties of the class extending the activity Nov 13 03:56:33 why would I get a ClassCastException? Nov 13 03:57:14 if I specify the class properly I mean Nov 13 03:59:30 well ok, if you do things properly then no error Nov 13 04:02:09 what would be the easiest way to write to a text file my current gps location.. should i be looking into a broadcast receiver? Nov 13 04:06:04 laphlaw: LocationManager Nov 13 04:06:39 There is no way to debug an async operation is there. Nov 13 04:07:09 w9jds_: log.d? Nov 13 04:07:18 yea not helpful Nov 13 04:07:40 just tells me null exception but It could be from all over Nov 13 04:07:52 well that's why you put a lot of log statements in Nov 13 04:07:53 sure you can debug Nov 13 04:08:01 it dont give you line of error? Nov 13 04:08:14 say line 2811 in whatever.java Nov 13 04:08:17 also, yeah - npe should tell you where it faulted Nov 13 04:08:25 just debug it like any other part of your code Nov 13 04:08:56 Can't set through async as far as I can tell. Only can on the new visual studio Nov 13 04:09:04 huh Nov 13 04:09:12 step* Nov 13 04:09:23 you don't write android code in visual studio Nov 13 04:09:32 I do for work :P Nov 13 04:09:32 of course you can step Nov 13 04:10:02 that's a problem of your dev environment, not debugging async stuff Nov 13 04:10:36 * pfn ponders why his flatMap function doesn't work Nov 13 04:13:23 Poop. I'm having such a hard time getting an imageview to scale and look right with my textviews on different screen sizes Nov 13 04:14:28 so I can make a button that forces landscape / portrait, it seems Nov 13 04:14:42 but once I set it, it seems to force that mode Nov 13 04:14:46 I can't just rotate the device out Nov 13 04:14:59 osxorgate: would LocationManager be what I want to do? I want log my current GPS location to a text file every time it changes Nov 13 04:15:22 laphlaw: yes you register to receive gps updates and then you do with them what you want Nov 13 04:16:21 osxorgate: would i be able to run this in the background? what if the user closes the app? Nov 13 04:16:40 i reckon you could use a service Nov 13 04:16:57 theres a ton of info on the web Nov 13 04:17:18 yeah.. Nov 13 04:17:46 Oh gawd, its so bad :( http://gyazo.com/6af6c3bc5331141203fdd538f67534da Nov 13 04:17:48 is it possible to only request for location updates on a time interval, rather than on a location change? Nov 13 04:17:59 say, every 30 min? Nov 13 04:22:40 ProgramMax: you do it in onConfigurationChanged() { ... Nov 13 04:25:44 I have an onConfigurationChanged() inside the activity Nov 13 04:27:39 so you can check if its landscape or portrait and make it react accordingly Nov 13 04:28:06 I'll set a breakpoint and make sure it is being called. My code there doesn't seem to be acting the way it normally does Nov 13 04:28:25 like...if I don't call myActivity.setRequestedOrientation() then it responds fine Nov 13 04:28:32 it will reorient just fine Nov 13 04:28:39 but as soon as I call that, it stopped reorienting Nov 13 04:30:26 yeah...it isn't hitting the breakpoint Nov 13 04:30:39 after calling myActivity.setRequestedOrientation(), onConfigurationChanged stops being called Nov 13 04:31:44 not sure but do you have android:configChanges="orientation" in your Manifest xml ? Nov 13 04:32:58 of course Nov 13 04:33:02 otherwise it wouldn't have worked Nov 13 04:34:00 why do you need setRequestedOrientation, for the fullscreen button ? Nov 13 04:34:06 yeah Nov 13 04:34:13 so when someone has their rotation locked Nov 13 04:34:19 they can still go fullscreen Nov 13 04:35:07 so the video would turn sideways even if they are holding it in portrait mode Nov 13 04:35:13 correct Nov 13 04:35:18 this is what youtube does, btw Nov 13 04:35:25 I'm trying to mimic youtube Nov 13 04:35:52 why not just let them rotate the device to fullscreen it Nov 13 04:35:57 previously, I only had a landscape layout and so even if they were holding in portrait, it would go landscape when playing Nov 13 04:36:02 I do let them rotate Nov 13 04:36:09 but people who have rotation locked are complaining Nov 13 04:36:16 they want to be able to have a landscape view Nov 13 04:36:26 again, this is what youtube does Nov 13 04:39:20 you can't expect them to exit fullscreen by rotating back to portrait if they have rotation locked, you'd need to create a button in mediaController perhaps Nov 13 04:39:56 only youtube is allowed to do such things ! Nov 13 04:40:02 so...for people who have rotation locked, I have a fullscreen and non-full screen button Nov 13 04:40:05 just like youtube Nov 13 04:40:13 but for those who do not have it locked, there is still a button Nov 13 04:40:20 but it should also allow the rotation Nov 13 04:40:28 I see Nov 13 04:42:57 ProgramMax: maybe this ... http://stackoverflow.com/questions/13411391/android-device-onconfigurationchanged-event-does-not-handling-orientation Nov 13 04:43:41 or this .. http://stackoverflow.com/questions/13073500/onconfigurationchanged-not-called-once-setrequestedconfiguration-has-been-used Nov 13 04:43:57 reading. Thank you :D Nov 13 04:47:10 hi guys, i'm back Nov 13 04:47:28 switching to windows and install android studio :) Nov 13 04:48:37 guys, i have windows 7 x64, do i need JRE 64 bits as well? Nov 13 04:49:55 no you dont neccessarily need it Nov 13 04:49:58 but its nice Nov 13 04:50:21 this is what i have: C:\Program Files\Java\jdk1.7.0_45 Nov 13 04:50:42 ok Nov 13 04:51:14 does android studio came with adb? Nov 13 04:51:27 yes.. Nov 13 04:54:23 when i go to cmd prompt, i type adb it can't see it Nov 13 04:54:38 its not in your path Nov 13 04:54:52 you can either add it, or cd into the dir that has adb and use it from there Nov 13 04:55:02 i'll add it, but where is the path ? Nov 13 04:55:09 where is the adb locate ? Nov 13 04:55:18 i have no idea how your system set up Nov 13 04:55:25 what OS are you using Nov 13 04:55:38 this is what i added to: D:\Android\android-studio Nov 13 04:55:44 windows 7 x64 Nov 13 04:55:48 does Android 4.x+ camera app include Image Stabilization in software or something? Nov 13 04:55:49 oh windows.. Nov 13 04:55:51 i have no idea, sorry Nov 13 04:55:59 in ubuntu i got it working but not windows Nov 13 04:56:00 but its probably inside there Nov 13 04:56:04 phong_, you're close Nov 13 04:56:09 i went from 2.x to 4.x, and i could swear that the camera app in 4.x has IS Nov 13 04:57:00 phong_, adb is located in "D:\Android\android-studio\sdk\platform-tools\" Nov 13 04:57:12 aha Nov 13 04:57:17 thanks buddy, u're superb Nov 13 04:57:25 bloody hell Nov 13 04:57:31 i cant do android ui in xml for shit Nov 13 04:57:39 haha you and me both Nov 13 04:57:47 phong_: you add it from ... Control Panel > System and Security > System > Advanced system settings > Environment Variables Nov 13 04:57:49 phong_, but after you set the variable it won't take into affect until you reboot Nov 13 04:57:56 because windows is really fucking stupid Nov 13 04:57:59 otiose: This is the culmination of hours of work: http://gyazo.com/475f9ead9d2be25b947dff35ff3a4d85 Nov 13 04:58:15 DemonWav: env var edits work for me right away Nov 13 04:58:29 desmin88, oh really? I've never had that luxery Nov 13 04:58:35 yup Nov 13 04:58:42 just restart the app that uses it Nov 13 04:58:51 shmooz: Alternatively: Win button + Pause > Advanced system settings > env vars Nov 13 04:59:08 ok Nov 13 04:59:39 only reason i know is because i had to dick around with env vars so much to get as to install in the earlier versions Nov 13 04:59:43 adb devices = nothing Nov 13 04:59:50 i have mytouch 4g slide. Nov 13 04:59:56 with android 4.3.1 Nov 13 05:00:04 install drivers, usb debugging, etc Nov 13 05:00:14 I have the older mytouch 4g Nov 13 05:00:57 phong_: you have to install the HTC usb drivers Nov 13 05:01:02 oh Nov 13 05:01:43 i still can't find 'usb debugging' Nov 13 05:01:48 dev options Nov 13 05:01:55 :/ Nov 13 05:02:05 double shot rom Nov 13 05:02:08 dont have it lol Nov 13 05:02:11 dev optins Nov 13 05:02:20 ugh, i didnt have dev options on my phone when i got it Nov 13 05:02:21 dev options generally doesnt change rom to rom. Nov 13 05:02:25 galaxy note 3 Nov 13 05:02:40 just tap 6 times on build number or whatever Nov 13 05:02:41 I had to go to Phone Status and tap 'Build Version' or something 7 tives Nov 13 05:02:44 yeah wtf? Nov 13 05:02:46 lol. Nov 13 05:03:07 security by obscurity? Nov 13 05:03:25 eh Nov 13 05:03:27 probably Nov 13 05:03:29 helps prevent ppl from messing around in there Nov 13 05:04:50 yeah but its weird Nov 13 05:06:41 phong_: find it? Nov 13 05:07:17 i got the driver install Nov 13 05:07:22 but useless, there is no dev option Nov 13 05:07:47 ... Nov 13 05:07:49 read above Nov 13 05:07:49 please. Nov 13 05:07:58 otiose: well sounds like its just way to avoid igrant users Nov 13 05:08:19 someone have to know something about dev to research and find way to "unlock" dev options Nov 13 05:08:31 no i understand Nov 13 05:10:42 about->buildnumber->cm_doubleshot-userdebug 4.3.1 JLS36Iab91473ea3 tesst-keys Nov 13 05:10:54 now click Nov 13 05:10:55 phong_: goto Settings > Applications > Development in gingerbread Nov 13 05:11:00 multiple times Nov 13 05:14:49 i dont have gingerbread...it is 4.3.1 Nov 13 05:15:12 phong_ have you tried clicking the build multiple times,. Nov 13 05:16:42 dam you Nov 13 05:16:45 u're freaking smart Nov 13 05:16:51 seriously just read the irc chat Nov 13 05:16:52 you scared me now lol..yeah Nov 13 05:16:55 weve said this like 3 times Nov 13 05:17:02 oh..man thanks :) Nov 13 05:17:13 why do they do that? Nov 13 05:17:20 who would know to do that ? lol Nov 13 05:18:52 is said this: List of devices attached Nov 13 05:18:53 HT179TB04176 unauthorized Nov 13 05:18:56 is that okay? Nov 13 05:19:02 unaauthorized ? Nov 13 05:20:26 last question, previously i create simple project from eclipse, can it be import to android studio? Nov 13 05:21:19 phong_: it's our secret, don't tell anyone Nov 13 05:21:31 shmooz, yeah man, i know :) Nov 13 05:27:36 phong_: yes you just import it from AS Nov 13 05:28:03 plug it in again and accept the security prompt Nov 13 05:31:36 hrmmm so Nov 13 05:31:44 I read through that page Nov 13 05:31:55 I get the idea of manually presenting the portrait or the landscape view Nov 13 05:32:06 however, that will still make the video face up, right? Nov 13 05:32:20 I need it essentially facing whever "up" would be if it was rotated Nov 13 05:32:50 shmooz, not sure what you're saying Nov 13 05:32:57 i see the import project Nov 13 05:33:14 but when i click to find the folder of the eclipse project it dont import give me something with error Nov 13 05:38:03 shmooz, i got it import Nov 13 05:38:18 shmooz, now question, how to let it run on my phone instead of emulator Nov 13 05:38:24 it always point to emulator Nov 13 05:42:44 phong_: you can adjust that from the button with your project name on it, click it and then from the menu choose Edit Configurations Nov 13 05:43:14 and you'll see it will be under the 'Target Device' section Nov 13 05:44:13 i miss default targeting "all" devices :( come back to us eclipse….come back Nov 13 05:44:21 there you can choose to have it ask you which, or USB only, or Emulator only options Nov 13 05:45:13 ok Nov 13 05:54:05 "Hack of MacRumors forums exposes password data for 860,000 users" Nov 13 05:54:16 doh! Nov 13 05:54:24 860,000 people registered on that shithole website !?!?! Nov 13 05:54:32 there is no hope Nov 13 05:55:04 that's what happens when you can't resist the temptation to stay away from the apple Nov 13 05:58:38 is there a tool similar to Instruments for iOS, where i can see what objects are currently alive and not GC'd? Nov 13 05:58:49 I'm using the Allocation Tracker right now, but it seems next to useless Nov 13 05:59:06 none of my custom objects are ever allocated, it seems ? Nov 13 05:59:11 dumsys Nov 13 05:59:16 dumpsys maybe? Nov 13 05:59:32 or hook up debugger Nov 13 05:59:45 i am hooked up to the debugger (through eclipse) Nov 13 06:00:01 so add a breakpoint where you want to check then go digging Nov 13 06:00:20 :/ well that doesnt really help Nov 13 06:02:56 it seems like one of my activities (or rather, one of its instance variables...) seems to stick around, even though the activity should be gone Nov 13 06:03:20 and i'd liek to see what is actually still around, and why Nov 13 06:26:11 do 9 patch images stretch out in places where they're not supposed to on smaller screens? Nov 13 06:34:31 ron_frown get 4.4 running on your 3rd gen hw ? Nov 13 06:34:58 yeah, god damn imagination tech powervr chipset doesnt really support all of gles2 standard or at least the driver we have Nov 13 06:34:59 so Nov 13 06:35:01 its moot Nov 13 06:35:08 hardware accel is shit Nov 13 06:35:25 hm Nov 13 06:42:36 hm, iphones 5's sold like hot cakes in India despite being $275 more expensive than in the US Nov 13 06:42:56 oh, they only had 6k units Nov 13 06:49:00 g00s - currently working on porting 4.4 to my g2 =) Nov 13 06:50:02 better luck with the gpu hopefully :) Nov 13 06:50:33 well sounds like powervr has all but written off that old chip and drivers Nov 13 06:50:45 this new device should be better Nov 13 06:50:47 SHOULD Nov 13 07:05:17 Hey Guys I would like to use buttonBarButtonStyle in my code Nov 13 07:05:42 but would want normal buttons for backward compatibility Nov 13 07:05:43 I would like a million bucks too Nov 13 07:05:56 doesnt mean I'm going to get it Nov 13 07:08:05 hrmm Nov 13 07:08:12 I'm not sure this method will work for two reasons Nov 13 07:08:36 first, even though we are using a different layout, it still thinks up is pointing that way ^ and so the video player will still be oriented that way, right? Nov 13 07:08:48 second reason is it sets the new content view...meaning it creates a new player? Nov 13 07:08:56 so it won't just smoothly rotate the existing player Nov 13 07:09:01 it'll stop that player and start a new one Nov 13 07:09:06 I don't think this method will work Nov 13 07:09:44 any way I can see what the youtube app is doing? Any sort of reverse engineering or anything? Nov 13 07:11:12 brickhead buttonbarstyle is public style i think :| whats stopping you ? Nov 13 07:11:47 It is not supported in API 8 Nov 13 07:11:55 you could always just copy it Nov 13 07:11:57 its a hack Nov 13 07:12:00 but doable Nov 13 07:12:04 does FrameLayout have an implicit layout_margin? Nov 13 07:12:30 I have a FrameLayout that is a container for a Fragment Nov 13 07:12:32 na, what I want I want is my layout to refer to style="@attr/buttonBarStyle" Nov 13 07:12:45 and the fragment UI is pushed from the bottom Nov 13 07:12:49 i thought i used it in froyo :| Nov 13 07:12:51 but how do I define it differently for different platform Nov 13 07:14:08 oh nm...it says to save the reference to the video view off to the side Nov 13 07:15:09 maybe I can just getWindow().setFlags() it? Nov 13 07:15:23 g00s Nov 13 07:15:25 get her done? Nov 13 07:15:35 mmm no, that is for fullscreen or not Nov 13 07:15:43 ron_frown no 'm slow Nov 13 07:16:02 just ordered a TI sensortag to start doing BLE with my nexus 7 Nov 13 07:16:09 cant really talk Nov 13 07:16:28 I build craploads of projects that could prbably make money then move on to the next without even trying to get it out there Nov 13 07:17:46 oh well github is being a horse banging skank Nov 13 07:17:50 this sync is gonna take forever Nov 13 07:17:52 guess I'm out Nov 13 07:17:59 i want a zonkey http://www.mymodernmet.com/profiles/blogs/ippo-the-zonkey Nov 13 07:18:10 ok, who here will write the zonkey finding app Nov 13 07:18:28 gnight ron_frown Nov 13 07:18:28 I've heard em called zedonks too Nov 13 07:18:57 wonder how that goes … zebras are totally un-domesticatable Nov 13 07:20:05 ron_frown if you were installing vpn on your android device, would you use built in l2tp or install openvpn ? Nov 13 07:20:30 probably try built in shit first Nov 13 07:20:37 honestly dont have much a use for vpns Nov 13 07:20:55 oh god funny story Nov 13 07:21:01 well, the network at the library is totally unsecure :) Nov 13 07:21:21 ron_frown this looks fun http://www.gizmag.com/ziesel-snowmobile-chair/29754/ Nov 13 07:21:23 a massive company bought a bunch of our hardware and was bitching about wifi being inoperative and having issues Nov 13 07:21:31 "it keeps disconnecting" Nov 13 07:21:54 we did have problems, but it ends up they were in wifi configuration smacking the wps configuration button like 100 times Nov 13 07:22:06 I did nothing more than rip that shit out of hte UI and release an update to them Nov 13 07:22:06 haha Nov 13 07:22:09 problem solved Nov 13 07:23:04 :) Nov 13 07:23:10 g00s I should get one of those and use it to travel between our buildings =) Nov 13 07:24:11 hahaha nice Nov 13 07:25:09 VERSION Nov 13 07:26:01 having fun nyt Nov 13 07:27:14 ? Nov 13 07:28:31 Hello Android-dev! Nov 13 07:28:50 hi Nov 13 07:29:24 I'm gonna ask probably a silly question but here goes Nov 13 07:29:45 at least it will be cathartic Nov 13 07:29:54 Is there a place/community I can put up a post asking people if they would like to collab on a beginners project? Nov 13 07:30:13 not that I am aware of Nov 13 07:30:19 Catharsis well, we're looking for devs to do the zonkey finder Nov 13 07:30:20 but you gotta be careful about sharing ideas on the net Nov 13 07:30:25 unles syou just dont care Nov 13 07:30:35 I'm a seasoned developer but never really dealt with Java but would like to learn android Nov 13 07:30:36 ssh, zonkey finder is top secret Nov 13 07:30:45 Catharsis just build something Nov 13 07:30:55 this one I don't care about, it's not exactly original Nov 13 07:31:05 hey g00s i'm back! Nov 13 07:31:10 oh god Nov 13 07:31:12 I have something semi-built but need to get to the next bit so to speak Nov 13 07:31:12 hahaha Nov 13 07:31:21 I dont even know who that is or what he is to you Nov 13 07:31:25 and I thought the exact same thing Nov 13 07:31:27 Catharsis i think there is a reddit channel to show / ask for help Nov 13 07:31:59 g00s: I saw an old reddit channel but it's dead /r/RedditAndroidDev I think Nov 13 07:32:53 Hmm maybe not, activity in there two days ago but not much before that Nov 13 07:33:13 I'll chuck a post in there anyway Nov 13 07:33:22 i thought it was a channel for getting feedback on android projects Nov 13 07:33:29 not sure the exact name tho Nov 13 07:33:49 i just go to reddit frontpage ;) just learned about http://www.reddit.com/r/Android Nov 13 07:34:43 Hmm might be worth a try, I thought that was more for Android chat rather than programming Nov 13 07:34:51 Thanks g00s Nov 13 07:35:32 hm, guess n7 gets 4.4 today Nov 13 07:35:41 https://twitter.com/Android/status/400441100436918272 Nov 13 07:36:16 Yeah exciting stuff for the n7 Nov 13 07:36:35 Hope 4.4 comes to my tablet Nov 13 07:36:36 today I am shooting to get 4.4 on the g2 Nov 13 07:37:10 btw Nov 13 07:37:16 the g2 is a fucking beast of a phone Nov 13 07:37:18 get a nexus 5 ;) Nov 13 07:37:20 its awesome Nov 13 07:37:21 and cheap Nov 13 07:37:28 this is interesting http://www.informationweek.com/hardware/handheld/android-wins-81-of-smartphone-market/240163816 Nov 13 07:37:33 Samsung always seem quite slow to take on the updates though Nov 13 07:37:33 it really alleviates a lot of my bithcing about android Nov 13 07:38:09 WP is growing, i'm watching that Nov 13 07:38:25 theres just nothing there that is at all interesting to me at all Nov 13 07:38:26 g00s: Whilst I have been in Asia I have seen so many people with Android, they have a real market share here, especially in South Korea where I am at the moment Nov 13 07:38:40 well, South Korea, Samsung Nov 13 07:38:42 what abou tin north korea Nov 13 07:38:49 Samsung isn't so popular in Japan :D Nov 13 07:40:01 g00s: no sadly iPhone has a much bigger presence there Nov 13 07:40:03 good lord Nov 13 07:40:07 cm11 FINALLY synced down Nov 13 07:40:18 I was there 2 weeks ago :) going back for Decemebr Nov 13 07:40:26 Catharsis its about culture Nov 13 07:41:08 and nationalism Nov 13 07:41:13 (Sony, etc) Nov 13 07:41:19 True Nov 13 07:48:56 emulator is slow start :( Nov 13 07:49:28 you can change that by slowing your heard rate Nov 13 07:51:26 crap Nov 13 07:51:31 big meeting at work in the morn Nov 13 07:51:33 7am Nov 13 07:51:34 =( Nov 13 07:52:42 hm is dumpsys documented anywhere Nov 13 07:53:17 probably in dumpsys code :) Nov 13 07:53:28 figures Nov 13 07:53:42 which is better than having to read through commit logs :) Nov 13 07:54:10 now I can crash Nov 13 07:54:13 just want to investigate the history stack of my app at a certain point Nov 13 07:54:14 now that fucking android is building Nov 13 07:54:57 peace Nov 13 07:55:45 gnight Nov 13 07:55:45 least i have the native tree handy Nov 13 07:57:30 think dumpsys just interacts with alarmmanager Nov 13 07:57:44 s/slarm/activity Nov 13 07:57:46 tired Nov 13 08:17:42 I am in DefaultHttpClient cookie authentication hell :( Nov 13 08:17:46 can anyone help me pretty please? Nov 13 08:17:50 Thread A (UI) will be setting flags, thread B (some worker thread) will be pick them up and process them (loading of textures, video files, etc.). Now, I was wondering what is a good way to let the helper tread wait for new flags to be set? Just let it sleep();? Or just spawn new threads when needed? Nov 13 08:19:31 hey guys Nov 13 08:19:39 how is everyone doing this fine day Nov 13 08:21:05 Miklas: no, use a blocking queue Nov 13 08:21:12 or an intent receiver and send intents Nov 13 08:21:18 queue is more lightweight i think Nov 13 08:21:57 ArrayBlockingQueue Nov 13 08:22:13 nyt: Thanks! Nov 13 08:22:19 That was exactly what I was looking for. Nov 13 08:22:32 np Nov 13 08:23:01 xp_prg, that stuffs a nightmare Nov 13 08:23:08 if you're interacting with a webview Nov 13 08:23:14 think i finally have android irc stuff all sorted out and working around the fg service kill bug Nov 13 08:23:16 and other fixes Nov 13 08:23:16 yay Nov 13 08:23:59 http://rznt.com/irc-test.apk if anyone feels like testing out android irc ( https://play.google.com/store/apps/details?id=com.countercultured.irc ) Nov 13 08:24:19 does anyone have experience in fragment transitions? Nov 13 08:24:38 i want to know if there is a way to transition on the Z axis Nov 13 08:25:37 you can use custom animations i believe Nov 13 08:26:16 Hey, I want to place horizontaly a button, TextView and a button. i want the buttons to wrap_content and the text view to take all the rest of the available horizontal space. How can i set this layout? Nov 13 08:26:28 setCustomAnimations Nov 13 08:27:48 Gifgroen ;-) Nov 13 08:39:09 yes nyt i have custom animations Nov 13 08:40:44 but i want to make one that moves on the z axis Nov 13 08:46:26 Eltjo: :D Nov 13 08:46:51 Can I help you with something? Nov 13 08:48:49 ugh Nov 13 08:48:53 i wish i could set quiet hours in gmail Nov 13 08:55:33 ok so .. i have added the transaction on the backstack Nov 13 08:55:43 but when i press back it doesn't reverse the animation Nov 13 08:55:58 any pointers? Nov 13 08:56:39 Hi all, question about layout. If i load my xml layout the background of a linearlayout is red. If i touch a button it is white after linearlayout goes invisible after 3 seconds. Is it possible to make the linearlayout back visible like when app starts (red bg). (this is an example which contains the same functionality like my app right now) Nov 13 08:57:13 FrancescoV, I can't really make sense of your question Nov 13 08:57:24 nyt: Can I have two worker threads waiting on the same blockingQueue? Nov 13 08:57:30 Miklas, yes Nov 13 08:57:39 Thanks ;) Nov 13 08:57:40 that is the intended usage Nov 13 08:57:42 :-) Nov 13 08:58:59 Is it possible to get a linealayout back visible with the startup attributes, if I change the background of a ll, when it must be back visible, it must be the same bg color like in xml and not the color from the change Nov 13 09:08:35 i don't parse back visible, sorry :-) Nov 13 09:08:48 do you want it to be transparent? Nov 13 09:09:01 do you want to change the color of the button when pressed? Nov 13 09:09:36 * Zharf sighs Nov 13 09:09:38 samsung fails again Nov 13 09:10:22 PING 1384333820 96132 Nov 13 09:11:22 I have this mono AAC I extract from a TS stream and pass on to mediacodec to get pcm which I then pass on to audiotrack configured based on the ADTS headers in the AAC... it works fine on all but samsung devices on which it plays really slowly... if I force the audiotrack configuration to stereo on the samsung devices, it plays fine on them but breaks on all other devices -.- Nov 13 09:31:32 Does Android serialize threads when reading a file from SD storage? It's a pretty big file and I have multiple threads accessing it. However, creating a second thread did not get me any decent speed changes, so I'm guessing it does. Nov 13 09:31:56 Miklas: no, but you have pretty shitty I/O in devices Nov 13 09:34:19 multiple threads reading from file are *not* a speedup. It just happens that on many systems the different requests can lead to better use of available wide I/O path (better ordering on spinning rust, multiple disks, use of big fat memory cache, individual chip limits in SSD that mean the max speed happens only when you access different areas simultaneously etc.) Nov 13 09:36:14 when I startup android studio it opens all the projects that were opened the last time... how to disable that? Nov 13 09:39:25 close the projects before you quit? ;) Nov 13 09:39:47 ohcibi, if they didn't change it from intellij, settings -> general Nov 13 09:40:05 nyt: >8-) Nov 13 09:40:29 Zharf: thanks, I overlooked it Nov 13 09:44:22 ok sleep time night all Nov 13 10:11:21 Heya folks, quick question - when my app is loading, android shows that default "blank activity" loading preview... is there a way for me to get around that? Nov 13 10:11:27 Show a black screen for example? Nov 13 10:11:31 I know the FB app does it somehow Nov 13 10:13:03 anyone here ever experienced intellij locking itself for any writes? Nov 13 10:13:21 nope Nov 13 10:13:22 everything seems to be working just fine apart from the fact that I cant type anything in there Nov 13 10:13:41 lite_: are you running IntelliJ under a tiling wm? Nov 13 10:13:46 Nope Nov 13 10:16:30 Hi there, i have an weird issue. https://gist.github.com/b1nary/7446703 The layout works when the button (in the second tab body) comes first. If i move it under the ListView i get that weired totally unexpected error. Why and who would try to cast the Button with an totally different id as the ListView?` Nov 13 10:18:12 it seems that it somehow switches the ID from button and listview, i cant explain what else would couse that error Nov 13 10:38:28 hey,i have started to learn android.But i am skeptical about whether there is demand for android developers..can anyone please shed me more light on this? Nov 13 10:38:59 IsThisRL, i have no idea, really Nov 13 10:39:11 bt…. there definitively is demand for android developers Nov 13 10:41:27 I work at an agency and we're currently looking for additional android devs, so there definitely is a demand Nov 13 10:42:39 brrt: i have heard that backend developers or systems developer look down upon on frontend or mobile developers as its quite easy compared to backend development..is this true? Nov 13 10:43:56 i dont see that to be 100% true, frontend devs maybe, but creating apps can be as same hard/harder than backend apps Nov 13 10:44:56 bt i think that really depends Nov 13 10:45:05 it totally depends on the app, kinda same for frontend which can be a lot more complex than the REST api the backenders create Nov 13 10:45:35 it is true that 'mobile' can be considered 'front-end', however, it can get really complex as a mobile phone (app) has many moving parts Nov 13 10:46:04 i would not consider it frontend, except you create an simple webapp or something like that Nov 13 10:46:10 consider apps that use locations, or sms-messages, or something like that Nov 13 10:46:11 front-end means anything presentable to the end user Nov 13 10:46:16 i'd say Nov 13 10:46:40 hi Nov 13 10:47:03 basically, the 'traditional' frontend / backend divisions are not really useful for mobile Nov 13 10:47:22 because the assumption is that frontend just displays and presents and the backend handles all computation and storage Nov 13 10:47:33 and that just isn't true for mobile, and thinking so creates /many/ problem Nov 13 10:47:40 working in mobile is challenging, i'd say :-) Nov 13 10:47:47 is it possible to detect when the saving of a file finished? or when I call out.flush and out.close this will guarantee that the file finished saving? Nov 13 10:48:01 hi everybody. I have migrated a project from using ActionBarSherlock to AppCompat for which I imported the android-support-v7-appcompat project and added it as dependency in Properties->Android... And I removed the v4-supportlibrary from the Java Build Path... Now I get the error that the type android.support.v4.app.Fragment cannot be resolved... But when I add the v4 library in my Build Path again, it gives me a lot of errors that ActionBarActivity cann Nov 13 10:48:06 Zgargy, flush and close are usually synchronous, so yes Nov 13 10:48:11 thx Nov 13 10:48:15 Zgary: close will close the stream so that's a safe place to tell if the file was written Nov 13 10:48:24 cool Nov 13 10:48:26 you can always do a File.exists() check afterwards to doubly make sure Nov 13 10:48:39 CallumTaylor, i'd advise against such thinking Nov 13 10:48:57 doing the exists check? Nov 13 10:49:01 you know, somebody could have unlinked the file afterwards, but supposing you check for that, what then? Nov 13 10:49:15 there doesn't seem to be a generic way to handle it Nov 13 10:49:37 yeah I wouldn't do the extra check, but you can Nov 13 10:49:46 i doubt the file would get deleted right after the stream close Nov 13 10:52:40 a concurrent process could Nov 13 10:52:58 but again, what would you suppose the correct behaviour would be? Nov 13 10:53:17 assume everything went fine and go to the pub? Nov 13 10:53:19 so many bugs come from developers (and managers) trying to 'fix' normal system invariants Nov 13 10:53:24 well, yes Nov 13 10:53:35 yeah i ts tricky Nov 13 10:53:43 if somebody deleted (unlinked) your file while you were writing it, I suppose they meant it Nov 13 10:53:49 you could synchronise the calls to lock it in Nov 13 10:53:57 i didn't think that was poissible Nov 13 10:54:16 in unix / linux - ish systems, that is possible Nov 13 10:54:18 in windows it isn't Nov 13 10:56:10 anyway, bt, these issues already show that mobile development is a lot more complex than just showing a form ;-) Nov 13 10:56:33 possibly useful: http://developer.android.com/reference/android/support/v4/util/AtomicFile.html Nov 13 10:58:35 brrt: yeah,i agree with you,apps like evernote and pocket are complex apps and most of their buisness depends on how good their apps are... Nov 13 10:59:16 I'm not massively savvy on synchronisation Nov 13 11:00:39 ooh, nice Nov 13 11:00:41 but different Nov 13 11:00:50 http://developer.android.com/reference/java/nio/channels/FileLock.html Nov 13 11:00:57 guys I have problem, because I have android app and iOS app both receive multicast UDP iOS works fine, but Android recive first packet with delay 2-5 secends, buffer is not so much big 8192 bit Nov 13 11:01:53 after first delay MulticastSocket receive packets correct Nov 13 11:08:15 Hi guys Nov 13 11:17:17 need help to setup android-support-v7-appcompat Nov 13 11:17:27 Is it possible to create new thread for managing tasks on background, and inside of this thread, do something on MAIN thread? (something like this: http://pastebin.com/CBeeKPzJ ). I know AsynkTask but it's for a library and I need to do this by my own Nov 13 11:17:59 i done import and follow all instruction in google site but i cant use resource of that project Nov 13 11:18:11 in my main project Nov 13 11:18:37 in properties, andorid, i see green check in that import Nov 13 11:18:44 need help plz Nov 13 11:20:41 this is my project.properties Nov 13 11:20:43 android.library.reference.1=../android-support-v7-appcompat Nov 13 11:20:45 android.library.reference.2=../google-play-services_lib Nov 13 11:21:02 all 3 project are in the same folder Nov 13 11:21:12 and google play service works fine Nov 13 11:21:18 help plz Nov 13 11:25:42 For development using a lib in platform/external (in my case libvpx), can I load the library directly, or would I need to compile it myself using the NDK and bundle it with my application? Nov 13 11:26:22 That is a library that is in the official android tree, mentioned under platform/external Nov 13 11:34:43 Can andybody tell me what I can do if ADB doesn't recognize my devices anymore? Nov 13 11:37:25 panic! Nov 13 11:37:29 Restarting ADB server didnt work^^ Nov 13 11:37:54 well panicing is not my desired option though... Nov 13 11:39:05 Hey, I want to place horizontaly a button, TextView and a button. i want the buttons to wrap_content and the text view to take all the rest of the available horizontal space. How can i set this layout? Nov 13 11:39:53 how do i make the textView expend as much as possible without running over the rest of the views Nov 13 11:40:19 I already tried restarting adb, used differnt USB cable, different USB port, ... device and system restarts, nothing worked... Nov 13 11:40:26 viran: have you tried weights? Nov 13 11:44:14 yes evident , I've considered weights, but I dont want to set weights on the buttons. I want them to wrap_content. so i'm not sure how weights apply here.... Nov 13 11:44:26 evident last time I restart system and works Nov 13 11:51:35 Dudi: well I already tried that, didn't work... Nov 13 11:52:04 evident hmm... maybe start panic isn't the worst idea Nov 13 11:52:21 I am trying do download the drivers again, but the download page of the Nexus4 toolkit in Version 2.3 is offline right now.. Nov 13 11:52:27 yikes Nov 13 11:53:59 Case? I don't think Nov 13 11:54:27 evident: you used word driver, so I am assuming you are using an inferios OS (Windoze) Nov 13 11:54:37 so, try using with Admin rights Nov 13 11:54:52 *inferior OS Nov 13 12:00:59 Looney: yes I am... ;) I will try Nov 13 12:16:24 is there some way instead of just fading something out with animations also change the fade? like i want it to get darker while fading out? Nov 13 12:25:36 Can I delete the adb keys on the device somehow? So that when adb connects, it prompts the authorization dialog again? Nov 13 12:41:52 so looks like with the new storage access framework the "_data" projection doesn't work anymore for getting the name of the file form content:// urls Nov 13 12:42:53 nimrod Nov 13 12:48:26 Hi guys, can anyone please help me why i am getting null pointer exception in my code below? Nov 13 12:48:28 http://pastebin.com/qDVU5dRm Nov 13 12:49:44 gotta love samsung, http://bf063cea783b1aa0.paste.se/ Nov 13 12:49:45 cr0, show me the menu Nov 13 12:50:02 R.menu.options Nov 13 12:51:18 lemonxah: one minute please... Nov 13 12:52:25 lemonxah: http://pastebin.com/RbisNEp6 Nov 13 12:53:02 cr0, you dont have an action view in the menu Nov 13 12:53:51 lemonxah: sorry,newbie here..how to add action view in menu? Nov 13 12:53:57 http://pastebin.com/index/RbisNEp6 Nov 13 12:54:12 soz wrong post hold on Nov 13 12:54:46 cr0, http://pastebin.com/HKBFYW4y Nov 13 12:55:25 lemonxah: so,that was the issue? Nov 13 12:55:51 you still have to go make the layout of the search bar Nov 13 12:56:26 i'm not going to code your app for you just pointing out you are getting the action view from that menuitem but no actionlayout was specified Nov 13 12:56:34 that is why there is a NPE Nov 13 12:56:43 lemonxah:okay,thanks for helping. Nov 13 13:00:07 no worries Nov 13 13:01:19 so when did you start with android dev? Nov 13 13:01:29 its a lot of fun i enjoy it cause i like the platform Nov 13 13:02:16 lemonxah: 2 months back..u have any advice for beginners like me?like books to read,resources..etc? Nov 13 13:03:32 cr0: http://developer.android.com/index.html Nov 13 13:03:56 cr0, http://developer.android.com/reference/packages.html Nov 13 13:15:19 lemonxah: i have altered my code like this..but still i am getting NPE.. Nov 13 13:15:21 http://pastebin.com/M7qUrb8z Nov 13 13:22:42 cr0, i have not used actionViewClass Nov 13 13:23:08 lemonxah:okay. Nov 13 13:26:47 hey folks, what is the most common reason for an empty view not showing? Nov 13 13:26:50 (in a listview) Nov 13 13:30:20 that the developer did something wrong brrt Nov 13 13:30:42 or has invalid expectations Nov 13 13:31:02 totally agree :-D Nov 13 13:31:03 but Nov 13 13:31:08 did /what/ wrong exactly Nov 13 13:31:13 or if it's empty, maybe you have height/width set to wrap content Nov 13 13:31:22 …. answer Nov 13 13:31:41 the view has to be part of the view hierarchy that already contains the listview Nov 13 13:31:48 otherwise it doesn't work Nov 13 13:31:56 Hey Guys! Nov 13 13:31:59 hey fabianh Nov 13 13:33:01 I want to do a overlay, with a slightly darker background and there should be drag and drop receivers Nov 13 13:33:08 anyone knows how to do that? Nov 13 13:33:28 FabianH: yes. Nov 13 13:33:39 I want to select an item, then the overlay appears, and only the overlay and the selected item stay above the overlay Nov 13 13:33:40 but it's way too broad of a question Nov 13 13:34:01 it's easy to do a overlay i think Nov 13 13:34:24 but i don't know how to do that on a drag and drop thingy.. Nov 13 13:34:34 Hi i want a API or library which could help me compare two Mp3,Wav files Nov 13 13:34:45 anyone has any idea about this Nov 13 13:35:07 any help or links for that? :) Nov 13 13:36:18 FabianH: quite literally the first result on google http://developer.android.com/guide/topics/ui/drag-drop.html Nov 13 13:36:31 not the second result or on not the first page Nov 13 13:36:39 or behind some weird query. Nov 13 13:36:57 the first result for "android drag and drop" Nov 13 13:36:58 How can i compare two sound files ? Nov 13 13:36:59 i know drag and drop, but i want that after drag and drop, a overlay appears.. Nov 13 13:37:09 is there a prebuild library or API Nov 13 13:37:15 FabianH: http://developer.android.com/guide/topics/ui/drag-drop.html#AboutDragListeners Nov 13 13:37:19 oh, look at that Nov 13 13:37:32 the first thing on the first google result for the most obvious phrase to google Nov 13 13:38:27 but then the overlay is on top of my element.. Nov 13 13:38:31 chinu…… what kind of comparison are you looking for? Nov 13 13:38:35 that's the problem Nov 13 13:38:38 bit-by-bit comparison? Nov 13 13:38:45 FabianH: over the dragged view? Nov 13 13:38:53 yes Nov 13 13:39:24 i want to select a item from a listview, only the draged item stays on top Nov 13 13:39:30 and the other items gett overlayed.. Nov 13 13:40:12 FabianH: draw what you want Nov 13 13:40:26 i'll try Nov 13 13:46:22 guys i am getting NPE at this line Nov 13 13:46:34 SearchableInfo searchableInfo = searchManager.getSearchableInfo(getComponentName()); Nov 13 13:46:50 any idea why? Nov 13 13:47:30 well, maybe searchManager is null :-) Nov 13 13:47:42 getComponentName… not sure Nov 13 13:55:07 @funkbox Nov 13 13:55:17 funkBox: http://i.imagebanana.com/img/q0pfkljo/nooverlay.png Nov 13 13:55:22 thats the normal list Nov 13 13:56:00 and that's when a element of the list is draged Nov 13 13:56:07 http://i.imagebanana.com/img/trqj7bn1/overlay.png Nov 13 13:56:44 But i don't know how to do that in android Nov 13 13:56:54 before you call startDrag darken everything and then do a drag shadow builder to make your new drag shadow Nov 13 13:57:22 and then how to not darken the selected item ? Nov 13 13:58:39 store which item you're dragging and darken everything but it? Nov 13 13:58:50 that works on a listview to? Nov 13 13:58:55 thanks for your help!! :) Nov 13 13:59:08 i'll give you credit if the app is on the play store :) Nov 13 14:05:51 hello Nov 13 14:07:01 i try to connect with adb to my nexus 5, but i get an empty list of devices :( i edit the *.conf in /etc/udev/rules.d - any ideas? Nov 13 14:07:35 since latest sdk update, some stack traces are appearing with "Unknown Source" Nov 13 14:07:59 i'm looking into testing for my android project - what's the difference between instrumentation testing and integration testing? Nov 13 14:20:11 heh, I totally missed http://www.engadget.com/2013/11/06/google-profile-photos-android-calls/ last week Nov 13 14:22:22 I wanted to create an app with a form where it is saved everytime how can i create a new variable to be stored inside the SharedPreferences everytime? Nov 13 14:22:44 ? Nov 13 14:22:54 Here let me explain --> Nov 13 14:22:56 datandroiddude. What do you mean? Nov 13 14:22:59 1. User fills out form Nov 13 14:23:17 Store the data in a class and serialize it Nov 13 14:23:29 2. It saves the variables inside a SharedPreferences but my app saves it into the same one Nov 13 14:23:45 that makes no sense. Really not Nov 13 14:24:21 Okay how do i display the information from a filled form in my app? Nov 13 14:24:32 The user fill data into the form. As soon as the user click a button (clicklistener or whatever) the data are stored in the preferences file with example: vars: firstname, lastname, ... Nov 13 14:24:49 And the Form itself have "Dummy-DAta" which need to be shown as soon as the form load? Nov 13 14:25:13 Or do you need to get the data which has been "last" used? Nov 13 14:26:05 ya i use the SharedPreferences to store the strings rite? Nov 13 14:26:18 it's not required Nov 13 14:26:28 Depends what you want to do. Is it a registration-formw ith temporary data? Nov 13 14:27:01 Why do you want the form to use a different var anyway? and why dont you just load the data which are there and if not exist default values? And store them as soon as the user press enter? You dont need to store it twice Nov 13 14:27:34 yes Nov 13 14:28:01 Yes to what? Nov 13 14:28:03 Listen, i already know how to store how to store them but everytime the user fills the form a second or third time it overwrites the previously stored string Nov 13 14:28:20 sure. This is what it should do Nov 13 14:28:42 Why shouldnt it overwrite the data? You want new and fresh data when the user update them, dont you? Nov 13 14:29:20 no i want it to save a new string inside the SharedPreferences everytime the form is filled Nov 13 14:29:39 So it's not a registration form. It's a Form to store new stuff when the user press "add" for example Nov 13 14:29:47 and the form need to grab the old data and append the new, correct? Nov 13 14:31:10 YESSS Nov 13 14:33:24 Okay. There are several possibilities. First: you grab and append and store back Nov 13 14:34:07 Second: You are thinking about a proper concept. You think about if you want to store them temporary/Permanently (temporary use classes which are valid in runtime). You need to think how you want to parse them (Serialize ArrayList, Json, XML, whatever). Nov 13 14:34:54 Think aboout if you want to use a Database instead Sqlite, .. etc. Finally you should start reading how to serialize, how to use helperclasses and how to append to a string (Google: StringBuilder) Nov 13 14:35:17 hi guys Nov 13 14:35:26 hi phong_ Nov 13 14:35:56 i love xchat better then mirc Nov 13 14:38:16 [A3G1S]: sup? Nov 13 14:38:37 so, weird stuff: I just downgraded all my projects to build for API 18 and suddenly my project doesn't recognize ActionBarActivity anymore Nov 13 14:39:02 Supportlibrarys used? Nov 13 14:39:11 it tells me something about inconsistency Nov 13 14:39:26 and this: The type android.support.v4.app.TaskStackBuilder$SupportParentable cannot be resolved. It is indirectly referenced from required .class files Nov 13 14:39:37 suggesting to cofigure the build path Nov 13 14:40:00 misterli: I'm using appcompat Nov 13 14:40:19 So and now? Nov 13 14:40:54 thepoosh. First, after you changed the manifest, try to sync gradle. After that, try to clean the project when it still does not work Nov 13 14:41:07 I'm using Eclipse Nov 13 14:41:16 waiting for Android Studio v1.0 Nov 13 14:41:31 and I cleaned many times Nov 13 14:42:02 thepoosh: SO look on a cross ref site and find out what API level ActionBarActivity was added on. Probably 19, so that's your new min sdk setting, or you have to test for the API level and not call that if it's too low. Nov 13 14:42:49 switchgott: SOmewhere under your NDK directory there has to be a toolchain for your INtel Atom processor. In there, there is a set of file for the C library. THat has to have all the include files with it. Nov 13 14:43:27 DrChandra: my minSDK is 9 Nov 13 14:44:17 thepoosh: Switch to ANdroid Studio. The IntelliJ behind it is mature, and the part that makes it Android Studio is stable enough, and is not central to development. I use IntelliJ with Android extensions added. Nov 13 14:44:31 Inside toolchain i have only x86-4.* Nov 13 14:44:35 This is for intel Nov 13 14:44:44 DrChandra: I gave it a try Nov 13 14:44:46 thepoosh: YOur min sdk has to be 19 now that you want to use ActionBarActivity Nov 13 14:44:50 and didn't enjoy it at all Nov 13 14:45:08 DrChandra: I'm using it via support library v7 Nov 13 14:45:14 thepoosh: THat's too bad, since anyone on Eclipse is probably going to be left behind. Nov 13 14:45:36 no worries, in time we (our company) will do the switch Nov 13 14:45:46 once there is an official version Nov 13 14:46:09 switchgott: It should be next to one of the directories on the path you showed me for your compiler. THat's how I learned you are using the NDK. Nov 13 14:46:33 switchgott: Try "find . -name limits.h" in your NDK directory/ Nov 13 14:47:35 toolchains/x86-4.8/prebuilt/linux-x86_64/lib/gcc/i686-linux-android/4.8/include-fixed/limits.h Nov 13 14:47:49 platforms/android-19/arch-x86/usr/include/sys/limits.h ./platforms/android-19/arch-x86/usr/include/limits.h ./platforms/android-19/arch-x86/usr/include/linux/limits.h ./platforms/android-19/arch-x86/usr/include/machine/limits.h Nov 13 14:47:59 sources/cxx-stl/gnu-libstdc++/4.8/include/tr1/limits.h Nov 13 14:49:30 switchgott: OK, so your Standard Template Library for C++ has it, and your arch-x86 has it. So those should be on your INCLUDE path. I'm surprised the NDK didn't put them on there for you. Nov 13 14:50:26 you meen inside makefile Nov 13 14:50:39 CPPFLAGS = -I/home/android-ndk-r9/platforms/android-19/arch-x86 -I$(srcdir)/include -I$(srcdir)/util_lib/include \ -Iinclude/ $($(ARCH)_CPPFLAGS) CFLAGS = --sysroot=/home/android-ndk-r9/platforms/android-19/arch-x86/ -fno-strict-aliasing -Wall -Wstrict-prototypes PURGATORY_EXTRA_CFLAGS = -fno-zero-initialized-in-bss ASFLAGS = $($(ARCH)_ASFLAGS) LDFLAGS = --sysroot=/home/ Nov 13 14:50:44 If i have a togglebutton -> id/HRM_ToggleButton how can i then check if its true or false in my .java files? Nov 13 14:51:19 DrChandra: so apparently there was still an issue with the manifest Nov 13 14:51:50 changed the targetSDK in the build path but it didn't change in the manifest Nov 13 14:54:20 switchgott: What is $srcdirt set to? Nov 13 14:54:33 Sound comparison library Nov 13 14:54:36 thepoosh: I don't know what to tell you. Nov 13 14:54:47 I need a Sound comaprison API or library , is there any ? Nov 13 14:54:49 neither do I Nov 13 14:54:52 in android Java) Nov 13 14:54:55 srcdir = . Nov 13 14:55:11 Oha Nov 13 14:58:02 Now?What i have to insert there? Nov 13 15:01:59 switchgott: It might be OK. I wonder why "-I/home/android-ndk-r9/platforms/android-19/arch-x86" isn't finding it, because -I/home/android-ndk-r9/platforms/android-19/arch-x86/usr/include/limits.h should be found there. Nov 13 15:02:33 hey, im trying to read the content of a web page this is my code http://pastebin.com/HNMxEG9a ; InputStream in = con.getInputStream(); is crashing the app, not shure which exception eclipse is acting funny... any idea why? Nov 13 15:02:56 viran: Maybe con isn't set Nov 13 15:03:12 DrChandra: its not null... Nov 13 15:03:46 maybe you dont have the Internet Permissions. Maybe there is no InputStream available. Nov 13 15:04:02 Maybe the Server does not respond. Maybt eh Target is not available Nov 13 15:04:27 Maybe you need a tic-tac Nov 13 15:04:50 I have internet permissions Nov 13 15:04:52 Anyway. You should always try {}finally do that in the inputstream. It can always throw an exception and you must disconnect it. Nov 13 15:05:16 is there a better way to read a web page content? Nov 13 15:05:23 Several, yes Nov 13 15:05:29 Mh no idea! Nov 13 15:05:33 Ubuntu problem? Nov 13 15:05:46 misterli: can you suggest one? Nov 13 15:05:54 without I ? Nov 13 15:06:05 For example using a proper HttpClient (Look at AndroidHttpClient) which can handle gzip headers and such Nov 13 15:06:19 and is available for API 8>. If below use BasichttpClient. Nov 13 15:06:48 thanks misterli Nov 13 15:06:50 switchgott: GO back through the NDK setup directions, and see if you skipped any steps. It seems like your NDK is not setting up the INCLUDE (-I) path correctly. It is not finding its own include files for the arch-x86 toolchain Nov 13 15:07:13 This could be!How can i do this on ubuntu? Nov 13 15:07:22 I only extract ndk files Nov 13 15:07:25 setup? Nov 13 15:07:57 And an viran. Use Timeouts when using AndroidHttpClient. And check for the ConsumeEntity bug Nov 13 15:10:24 switchgott: http://developer.android.com/tools/sdk/ndk/index.html#Contents Nov 13 15:10:34 docs/CPU-X86.html Nov 13 15:10:59 You can find the documentation in the /docs/ directory. Nov 13 15:11:50 anybody can please tell me where to get the API or library for the Sound comparison Nov 13 15:12:31 hi Nov 13 15:12:37 please anybody help me Nov 13 15:14:04 sound comparison in android using java Nov 13 15:14:05 any help Nov 13 15:14:09 try it now Nov 13 15:15:20 chinu: I don't think there is one Nov 13 15:16:42 chinu: THis might work: https://code.google.com/p/musicg/ Nov 13 15:17:01 DA**! Nov 13 15:17:03 huh, I'm confused, do instrumentation tests not run on the UI thread? Nov 13 15:17:15 I i make a NDK standalone compiler! Nov 13 15:17:40 usr/include/limits.h:27:22: fatal error: features.h: No such file or directory Nov 13 15:17:44 Not working too .-( Nov 13 15:17:47 hmm, I guess not, unless you @UIThreadTest Nov 13 15:26:37 so on my program i have a logout button, that takes the user back to a login screen, how can i prevent them from pressing the back button? so it doesnt take them back to where they were logged in? Nov 13 15:31:36 Is there a way to force adb to reauthenticate to the device? Nov 13 15:31:42 replug the device Nov 13 15:33:27 well the problem is that it doesn't recognize any of my devices anymore... I tried restarting hte devices, the system, adb kill/start, different USB cable, different USB socket, nothing works... Nov 13 15:33:36 So I am starting to think it might be something with the authtentication... Nov 13 15:34:07 also deleting the .android directory on my PC didn't work... (where the key is stored) Nov 13 15:42:06 how can i check if a ToggleButton is true or false? Nov 13 15:42:26 if i use if i just get cant convert ToggleButton to boolean Nov 13 15:47:52 I hate stupid makes I make Nov 13 15:48:36 particularly when I do: successfulValue == null ? new Success(successfulValue) : new Failure(failureValue) Nov 13 15:48:50 DrChandra : thanks a lot i think this will help Nov 13 15:49:42 SuperMiguel: https://developer.android.com/reference/android/widget/ToggleButton.html Nov 13 15:49:46 There's even a guide Nov 13 15:53:36 DrChandra : can i compare a Song and a user recording Nov 13 15:54:12 hi, Nov 13 15:54:25 Need some help with camera.. Nov 13 15:54:31 is there a reason that a signed apk will behave differently than a project I run from the IDE? Nov 13 15:54:58 heres my camera activity and camera preview class respectively: http://pastebin.com/Fspi4fYu http://pastebin.com/v9fGyU22 Nov 13 15:55:25 when I background my app and then click the launcher icon it behaves differently if the app is signed Nov 13 15:55:30 The problem is once I come back and from the activity and start it again, its throwing a method called after release exception at takePicture() Nov 13 15:56:07 even though I am initializing the camera onCreate of activity Nov 13 15:56:13 What am I missing here? Nov 13 15:57:33 The activity lifecycle: https://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle Nov 13 15:58:29 why would a signed apk not know that it's already live and call the launcher again? Nov 13 15:59:00 it makes no difference Nov 13 16:00:37 SimonVT, I am aware of that. I have handled the activity's lifecycle methods. The problem is with the camera. It's giving me an error somewhere in the middle after creation of activity.. Nov 13 16:01:49 pkp: So you're aware that onCreate isn't called after onPause Nov 13 16:02:07 (as the picture shows) Nov 13 16:02:35 You release it in onPause.. What would happen if the activity is then resumed, without being destroyed, and you try to take a picture? Nov 13 16:06:25 for some reason before signing my app, if I background and click the launcher icon, it returns to the exact same place. but if I sign the app, going to home and clicking the icon starts the launcher intent and goes to a different place in the app Nov 13 16:06:26 why? Nov 13 16:06:35 SimonVT, that's why I am initializing if it is null using cameraInit() method later.. Nov 13 16:07:24 SimonVT, Also, I am using an intent to start the activity again, so that should call onCreate right? Nov 13 16:08:16 But you never set it to null Nov 13 16:08:35 If an existing activity instance is started then onCreate is not called, no Nov 13 16:10:21 meh, I hate having to always have a static UI thread handler somewhere Nov 13 16:10:29 I guess I'll throw one in the application context Nov 13 16:11:24 The main looper is static.. You can just create a handler wherever Nov 13 16:11:44 I know Nov 13 16:11:57 I just hate having multiple handlers point to the same looper when I don't need to Nov 13 16:13:17 SimonVT, Hmm. okay. So mCamera.release() doesn't set it to null? Also, according to logcat, in my case it is calling the onCreate activity everytime. Nov 13 16:13:42 onCreate method, i mean Nov 13 16:14:23 No, it doesn't set it to null.. mCamera = null; sets it to null Nov 13 16:14:48 simonVT: hi, how do i become good android developer like you? Nov 13 16:15:00 * LuisLeite good afternnon Nov 13 16:15:06 The documentation says "Important: Call release() to release the camera for use by other applications. Applications should release the camera immediately in onPause() (and re-open() it in onResume())." Nov 13 16:15:18 cr0: Read the documentation Nov 13 16:17:56 step 1: read the documentation Nov 13 16:18:03 step 2: don't not read the documentation Nov 13 16:20:48 step 3: profit Nov 13 16:22:08 so guys. from class A I set a variable in class B. when I try to get the value of that variable in class C I get 0. anyone can say why? Nov 13 16:22:22 DrChandra: step 4 is profit! step 3 is ?????? Nov 13 16:23:17 Denel: seems to work here... can you pastebin stripped down code that behaves this way? Nov 13 16:23:36 It's not the same instance of class B Nov 13 16:23:45 Or you're getting it in C before setting it in A Nov 13 16:23:54 step 3: Remember step 1 Nov 13 16:25:32 Denel: The classes are doing their updating and accessing in two different threads, and the access is happening before the update? Nov 13 16:25:54 https://gist.github.com/pfn/7451900 Nov 13 16:25:57 hmm, I wonder how usable this is Nov 13 16:26:00 * pfn ponders Nov 13 16:26:45 http://pastebin.com/uDbnd3rc Nov 13 16:27:42 Denel spellcheck "length" Nov 13 16:28:00 it's not english... Nov 13 16:28:08 How is B getting from A to C? Nov 13 16:28:13 I just rewrote those variables to make sense, in reality theyre different Nov 13 16:28:14 and ok Nov 13 16:28:15 and the paste is generally useless Nov 13 16:28:35 you set it to ilgis, whatever the hell that is Nov 13 16:28:49 ok w/e Nov 13 16:28:50 repaste Nov 13 16:29:28 Denel: HOw are you setting an int primitive to the value "ilgis" ? Nov 13 16:30:07 pfn: Yes, but the compiler cares about spelling Nov 13 16:30:17 only if it is inconsistently mispelled Nov 13 16:30:25 ... which it isn't Nov 13 16:30:34 I think I'll run with this futures/promise thing I've written and see how it goes Nov 13 16:31:05 would be nice to have progress callbacks Nov 13 16:31:07 * pfn shrugs Nov 13 16:31:59 I just tried to translate that to make more sense to you, but w/e http://pastebin.com/zYQ4dFsm Nov 13 16:32:09 does anyone know some NoSQL database that can be used as an alternative to SQLite in android? Nov 13 16:32:20 pfn: YOu mean being able to sign up for web page update notices via email or SMS? Nov 13 16:32:31 ? Nov 13 16:32:36 nm Nov 13 16:32:50 Hah, I guessed right Nov 13 16:32:56 I thought you were trying to watch the progress on a project that is making promises Nov 13 16:33:04 Denel, you never set it Nov 13 16:33:06 ... like a pro Nov 13 16:33:14 Denel, why would it be non-zero Nov 13 16:33:31 it is a new Nustawhatever Nov 13 16:33:38 it's not an old Nustawhat Nov 13 16:34:01 Denel: Interesting way to avoid Namespace problems :) Nov 13 16:34:04 I set it, I just didnt copy that line here. in the console it prints me the right value Nov 13 16:34:10 you never set it Nov 13 16:34:25 [A3G1S]: I have a question Nov 13 16:34:29 an interesting one Nov 13 16:34:38 how do i save a interger to a file? like i just want to save a 1 to a file: http://pastebin.com/rkqSVGZV but doesnt work Nov 13 16:35:16 use a PrintWriter Nov 13 16:35:34 SuperMiguel: http://docs.oracle.com/javase/7/docs/api/java/lang/Integer.html#Integer(java.lang.String) Nov 13 16:35:52 pfn: PrintWriter? Nov 13 16:36:45 Denel: Class A is creating a Nustatymai and setting atsakymoIlgis to whatever ilgis was passed in as. Class C is creating ANOTHER Nustatymai, and then you read it to see what it has atsakymoIlgis set to. YOu never set the second one. Nov 13 16:37:14 ah really. damn. so how should I access it then? Nov 13 16:37:16 There are two different Nustatymai instances Nov 13 16:38:21 Denel: Create an accessor method so Class C can do a "get" on Class A's Nustatymai, instead of creating a new one. Nov 13 16:39:53 DrChandra: can I ask you another interesting question? Nov 13 16:40:41 hello, i've created a custom view which works fine, I decided to add a little animation to it's content, tried to set the elements for every frame of the animation and then call invalidate() but the result it that the only last invalidate() calls onDraw().... is there a prefered way to animate custom views? Nov 13 16:42:10 pfn: http://pastebin.com/2i3DiwvM like this? Nov 13 16:42:16 [A3G1S]: what's happening to you? Nov 13 16:42:46 thepoosh: OK Nov 13 16:42:57 SuperMiguel, basically, read the api and see what it says Nov 13 16:43:52 so if I wanted to access a value in one class from multiple classes, I would have to create accessor to every class? maybe I should use some kind of database to be able to access app-wide variables from several classes? Nov 13 16:44:15 Denel: look at application singleton Nov 13 16:44:48 Denel: http://blog.callumtaylor.net/applicationsingletonsjava-android Nov 13 16:45:03 thank you Nov 13 16:45:14 Denel: No, you create the accessor in the class that has the value that all the other classes want to read. THen they all have to use that to get the value. Nov 13 16:45:50 Yeah, singleton will have examples of everything. Nov 13 16:47:33 DrChandra: for some reason before signing my app, if I background and click the launcher icon, it returns to the exact same place. but if I sign the app, going to home and clicking the icon starts the launcher intent and goes to a different place in the app Nov 13 16:47:53 signing has nothing to do with it Nov 13 16:47:59 so what does? Nov 13 16:48:44 pfn: why is that happening only after signing the app? Nov 13 16:48:53 you have other things going on, I wouldn't know Nov 13 16:48:59 like maybe you check BuildConfig.DEBUG Nov 13 16:49:02 or you're running proguard Nov 13 16:49:12 All apps you install are signed Nov 13 16:49:12 you are presenting an incomplete picture Nov 13 16:49:23 Signing could change the available permissions. The code could do something different if it can't get something. Nov 13 16:49:39 that's a possibility as well, but also pretty unlikely Nov 13 16:49:45 hmmm Nov 13 16:49:56 it happened also before I added proguard Nov 13 16:50:08 thepoosh: Look at logcat and see if you're getting any stack dumps Nov 13 16:50:12 the permissions are only a problem if there are other apps signed by the same cert, etc. Nov 13 16:50:31 pfn: there is only our app that is signed with this key Nov 13 16:50:35 pfn: Debug cert vs Author Cert? Nov 13 16:50:46 it's made specifically for our app Nov 13 16:50:54 and another question. let's say I want to create some kind of statistics of my app. i.e times button was pressed, how long it was opened etc and I want user to be able to see it. as a matter of fact I need to store that information in a file. so how should I keep it? Nov 13 16:51:00 DrChandra, right, so irrelevant if it's a single application that isn't system-signature Nov 13 16:51:37 pfn: where can I check the differences between the debug one and the playstore one? Nov 13 16:51:44 how can I prevent this from happening? Nov 13 16:51:48 thepoosh, that doesn't matter Nov 13 16:51:57 so why would this happen?! Nov 13 16:51:59 repackage your apk with your debug classes.dex Nov 13 16:52:03 I gave you 2 examples already Nov 13 16:52:09 you're running proguard Nov 13 16:52:14 you're using BuildConfig.DEBUG Nov 13 16:52:26 the signature has fuck all to do with it Nov 13 16:52:30 im trying to implement this: http://pastebin.com/mzWjy5L6 but i keep getting errors IOExceptions Nov 13 16:53:09 why is running proguard relaunching the app? Nov 13 16:53:35 that's for you to figure out Nov 13 16:53:38 I didn't write your app Nov 13 16:53:44 hmmm Nov 13 16:53:45 :S Nov 13 16:54:35 proguard modifies code Nov 13 16:55:59 but this happened also before running proguard so I don't see the connection Nov 13 16:56:43 then keep diagnosing Nov 13 16:56:47 im trying to write a string to a file using this: http://pastebin.com/mzWjy5L6 but i keep getting IOException errors any idea? Nov 13 16:56:58 SuperMiguel, read the IO exception, and fix it... Nov 13 16:57:26 thepoosh, seeing as we do not know what you're app does or how it does it, then we will not resolve it for you Nov 13 16:57:32 s/you're/your Nov 13 16:58:05 pfn: it just says Unhandled exceptions type FileNotFoundException Nov 13 16:58:07 pfn: I understand what you are saying but it seems like you're not understanding what I'm saying Nov 13 16:58:25 SuperMiguel, then your file was not found Nov 13 16:58:29 make it found Nov 13 16:58:42 thepoosh, I am, you have some code that behaves differently in release vs. debug Nov 13 16:58:46 signature has nothing to do with it Nov 13 16:58:46 period Nov 13 16:58:53 ok Nov 13 16:58:57 I got that Nov 13 16:59:14 so I asked what might cause it and your response was basically fuck off Nov 13 16:59:18 I get it Nov 13 16:59:19 I gave you several Nov 13 16:59:21 pfn: well thats the point it has to create the file Nov 13 16:59:21 BuildConfig.DEBUG Nov 13 16:59:22 proguard Nov 13 16:59:26 SuperMiguel, bad path then Nov 13 16:59:41 SuperMiguel, lacking write to sd permissions Nov 13 16:59:43 well, proguard was not around when this happened Nov 13 16:59:47 thepoosh, then it's not proguard Nov 13 16:59:49 then buildconfig.debug Nov 13 16:59:51 thanks Nov 13 16:59:53 then it's whatever else Nov 13 17:00:00 sign your release apk with your debug key Nov 13 17:00:02 does it still occur? Nov 13 17:00:12 will check Nov 13 17:00:17 any other code that flags on release vs. debug Nov 13 17:01:03 not for me Nov 13 17:01:46 is there a place for me to read about BuildConfig.DEBUG? Nov 13 17:04:15 pfn: happened also on the debug.jeystore Nov 13 17:04:21 *debug.keystore Nov 13 17:20:36 anybody want to know a funny story?? Nov 13 17:23:15 sure why not Nov 13 17:26:40 Got fired from my job yesterday... I was the only IT person that supported 300 users today they get hit by the Cryto Locker virus and bring down a server now I guess I'm not so expendable! Lol Nov 13 17:26:48 LOL Nov 13 17:26:55 ah sucks for them Nov 13 17:27:00 although they might try and blame you Nov 13 17:27:26 i remember reading about that, nasty stuff Nov 13 17:27:29 Thats why I turned everything in when I left Nov 13 17:27:33 although they do honour if you pay them Nov 13 17:28:13 Yea its pretty bad one person got it before in the company it spreads quick Nov 13 17:28:43 this is why people need restricted roles & access in a large company system Nov 13 17:28:52 even if you're the boss, you don't need access to everything Nov 13 17:29:15 Yep the sweet part is IT came in through HR Nov 13 17:29:21 it Nov 13 17:29:26 typical Nov 13 17:29:38 although could have been worse, marketing Nov 13 17:30:14 Lol lets see if I get called back to come in Nov 13 17:30:23 Any audio gurus in the room? Nov 13 17:30:30 if you do, go in as a contractor Nov 13 17:30:35 and charge £100/hr Nov 13 17:31:26 Trying to figure out where in the Android source the audio output is switched to Bluetooth when a Bluetooth device (e.g. car stereo) connects. Nov 13 17:31:42 and walk in like Maxamus from Gladiator Nov 13 17:32:34 thepoosh, so yeah, look for anything you might switch off of the DEBUG flag Nov 13 17:33:02 pfn: in the manifest, I set debuggable=true Nov 13 17:33:11 do it should be the same Nov 13 17:34:05 if you set debuggable=true it'll be true in release builds Nov 13 17:34:07 so that's not it Nov 13 17:34:10 BuildConfig.DEBUG Nov 13 17:34:13 look at it Nov 13 17:34:16 any usages of it Nov 13 17:34:18 etc. Nov 13 17:35:15 Mr. Clay sounds like Bill Cosby... its funny Nov 13 17:47:12 any body else want to know something funny seeing alot more ppl online now Nov 13 17:48:40 ? Nov 13 17:49:03 Got fired from my job yesterday... I was the only IT person that supported 300 users today they get hit by the Cryto Locker virus and bring down a server now I guess I'm not so expendable! Lol Nov 13 17:55:41 hi everybody! I have an app using master-detail flow which I switches to AppCompat... In the onCreate of a new DetailFragment I would like to set the title of the ActionBar with ((ActionBarActivity)getActivity()).getSupportActionBar().setTitle(...); but I only get a NullPointerException. Does anybody have an idea why this doesn't work? How can I get the ActionBarActivity from within a Fragment? Nov 13 17:57:01 hello everyone i am new to android dev . I am making an application which paints a the surface view for which the height and width i am setting . The surface view is running in a runnable which pops up outta the main activity in my application.Also the main activity implements a onTouch event.Now the onTouch event gives the actual dimensions on the screen.Is there a way in which i can map it... Nov 13 17:57:02 ...according to the dimensions that i have set ?Thanks in advance. Nov 13 17:57:50 * dimensions of the surface view. Nov 13 17:57:58 hi all :) Nov 13 17:59:12 can I automatically adjust the size of a parent view to the size of its children while I scale one of them smaller via an animation? Nov 13 18:05:56 i never expected this, but interesting times http://blog.xamarin.com/microsoft-and-xamarin-partner-globally/ Nov 13 18:08:34 pfn this one is unlocked http://techcrunch.com/2013/11/13/motorola-makes-the-moto-g-official-a-premium-phone-at-a-price-more-can-afford/ :) Nov 13 18:09:26 anybody an idea? Nov 13 18:09:59 Can any one tell me y my listview is not populating between activities??? http://pastebin.com/usG2pHfT Nov 13 18:17:02 Is there anyway to cut down on the supportmapfragment load time? I'd rather have the activity load with the other stuff on it, and the map load dynamically. I am not sure how to do this since I am creating a supportmapfragment in the layout.xml. Nov 13 18:21:09 @MrMeTooo I can tell you that when I was using ArrayAdapter, notifyDataSetChanged was not working right (was not causing a refresh). After some reading, I read that it can be flaky, and that you should just pass a new adapter. Try adding the list items before you set the adapter and see what happens. Nov 13 18:21:46 <|Agent> My co-worker is unable to create new Google Play sandbox accounts as of last week. Anybody else experienced this problem? Nov 13 18:21:58 notifyDataSetChanged is not flaky Nov 13 18:22:11 If it is, you're doing it wrong Nov 13 18:22:29 cool, the Moto G is stock android Nov 13 18:23:06 "Active Display (persistent notifications without picking up your device), Touchless Control (hands-free Google Now voice commands), and the shake-to-camera features are nowhere to be found on the Moto G." who cares, thats all fluffy crap Nov 13 18:23:41 bah, not in the US until January Nov 13 18:24:04 @SimonVT maybe I was. I ended up switching to a CursorAdapter, and now I am trying to get Loaders working instead. Nov 13 18:24:15 meanwhile, the moto x only sold 500k units - maybe because it /does/ have that fluffy crap Nov 13 18:25:05 I never had a issue in other applications with "notifydatasetchanged" I think Im just not implementing the adapter and settext correctly Nov 13 18:25:52 Well, you're also setting the adapter before you create it Nov 13 18:26:25 @MrMeTooo I know that I was using ArrayAdapter and had a very similar problem, but I needed to switch to Cursor adapter anyway. What SimonVT said is probably the problem. Nov 13 18:27:10 g00s, not cdma Nov 13 18:27:14 I doubt Nov 13 18:27:57 no, moto x only sold 500k units because it's not cool Nov 13 18:28:02 it's not a brand like samsung has going for it Nov 13 18:28:13 and really, I barely hear about it, in terms of marketing Nov 13 18:28:30 maybe 1/3 the marketing impression that samsung and apple have, at least going by my own experience Nov 13 18:29:33 what do you mean can you send a link to pastebin on what you mean? Nov 13 18:30:19 <|Agent> MrMeTooo, get to know Mr. Period. :) Nov 13 18:30:45 And you're not adding any items to the adapter Nov 13 18:31:19 There are plenty resources on how ArrayAdapter works.. I'm not going to guide you through it Nov 13 18:38:21 amazon Workspaces looks pretty cool Nov 13 18:38:53 their uses cases even mention developers Nov 13 18:43:12 hey p_l , did you see this ? http://www.osnews.com/story/27416/The_second_operating_system_hiding_in_every_mobile_phone Nov 13 18:43:22 g00s: ... and how is that new? Nov 13 18:43:27 "Lastly, the baseband processor is usually the master processor, whereas the application processor (which runs the mobile operating system) is the slave. " Nov 13 18:43:44 does that mean the baseband processor has access to the slave processor's memory space ? Nov 13 18:43:48 g00s: that line depends on from whom you have the chip Nov 13 18:44:34 p_l because yesterday, i read this http://www.theverge.com/2013/11/12/5094784/nokia-samsung-cant-track-powered-down-phones-despite-nsa-claims Nov 13 18:44:49 there was one line in that ... Nov 13 18:45:07 because a fully powered down phone is indeed untrackable Nov 13 18:45:10 ""When a mobile device running the Android Operating System is powered off, there is no part of the Operating System that remains on or emits a signal," Nov 13 18:45:26 when the device is powered off, yes Nov 13 18:45:45 they never said the baseband processor is powered off Nov 13 18:45:59 g00s: ... when you power off the phone, it switches power off to both Nov 13 18:46:05 some oems have specifically stated that yes, they power down their radios like nokia Nov 13 18:46:13 others have not Nov 13 18:46:28 in fact, in many devices you can power down the radio without powering down application processor, because the radio is slave device Nov 13 18:46:52 g00s: you power down by signaling the power control chip which cuts power to all cpus Nov 13 18:49:34 if its designed that way i guess Nov 13 18:50:05 g00s: older Qualcomm devices, especially HTC ones, did indeed have radio as "master" processor, iirc Nov 13 18:50:26 they also had fully common memory space Nov 13 18:51:14 the more powerful snapdragon devices have separate radio chips, and iirc usually have iommu keeping track of who has access to what Nov 13 18:51:49 although actually on N4 I suspect the radio has it's own memory completely Nov 13 19:07:35 Hi all, somebody experience with location via bluetooth? Nov 13 19:12:32 other question, is it possible to get the current location without network/gps hardware but with bluetooth? Nov 13 19:16:53 FrancescoV: if you implement it yourself with some device providing the location by Bluetooth Nov 13 19:17:21 anyone here with macbook air? Nov 13 19:17:30 maybe g00s ? Nov 13 19:17:41 old mbp Nov 13 19:17:47 FrancescoV: there is already an app called bluegps4android or similar, that provides android apps with GPS data from a bluetooth gps receiver Nov 13 19:17:48 ok Nov 13 19:19:47 with ART you cannot debug your app. wtf? Nov 13 19:20:06 gdrc: there's a reason it's experimental, you know Nov 13 19:20:28 Hello. I have black empty panel inside 3 dots in my android app. What is it and How to clear it? Nov 13 19:20:36 gdrc: also, probably you can, but you need to start GDB for it Nov 13 19:21:06 p_l: i'm sorry, do you know how ART works? Nov 13 19:21:37 not yet, but I recall something about AoT compilation to native code Nov 13 19:22:54 p_l: please read this http://www.quora.com/Android-OS/Why-is-ART-better-than-Dalvik/answer/Robert-Love-1?srid=u76C&share=1 Nov 13 19:24:04 yeah, that fits what I recall Nov 13 19:24:31 fwiw, AoT fucks quite a lot with JWDP, so no wonder ART doesn't have it now Nov 13 19:24:49 that's why I suggested gdb (not sure if "normal" builds include gdbserver...) Nov 13 19:25:09 uh oh, the genymotion website has pricing now :) i guess this is when we start paying up Nov 13 19:26:02 hi all i have a jar dependency declared in my Android.mk as LOCAL_JAVA_LIBRARIES := myjar Nov 13 19:26:35 is there some way to ensure that my dependency is built before my module ? Nov 13 19:26:57 also genymotion 2.0 is out Nov 13 19:28:26 So this is when genymotion loses google apps? Nov 13 19:28:42 i dunno :| Nov 13 19:28:51 lemme see ;) Nov 13 19:29:42 gdrc: art definitely is nice Nov 13 19:32:28 Hello. I have black empty panel inside 3 dots in my android app. What is it and How to clear it? (UP) Nov 13 19:34:15 you mean a black triangle ? Nov 13 19:34:36 anybody ? :) Nov 13 19:35:15 pix plox Nov 13 19:36:38 can't really say much w/o pix Nov 13 19:38:36 has anyone here tried moving their java code to ceylon? how was the experience? Nov 13 19:38:53 don't hear much about ceylon Nov 13 19:40:18 xrq no idea, but i wouldn't find it totally surprising - given google's work with IDEA; that maybe someday we could use kotlin nicely on android Nov 13 19:40:56 g00s: I haven't heard anything about it either but I saw some slashdot news on it Nov 13 19:47:40 huh, i can't see api 14/15 VMs in genymotion any more Nov 13 19:48:45 wut, they support 2.3.7, 4.1, 4.2 and 4.3 ? why not 4.0 ? Nov 13 19:53:10 Hello Nov 13 19:54:26 one question please. I have a textview inside and scrollview. I would like to detect the click over the textview, and be able to scroll. I manage the scroll programtically because in fact, i have a diagonal scroll. If I override the touchevent of the textview i miss the events on the scroll Nov 13 19:54:58 Just set a click listener Nov 13 20:06:42 Hi to all.Small help please, try to compile kexec for android x86.But it didnt work. Nov 13 20:07:57 Use neweset android ndk with ubuntu. Nov 13 20:08:08 Any idea, why the include files are not used? Nov 13 20:13:02 Hey Guys :) Nov 13 20:14:12 Is there a way to get a item of a listview and put it on top of all other layouts? Nov 13 20:20:50 howdy folks Nov 13 20:29:49 Hello, I have two activities, the first is a ListActivity, the second shows a detailed view of the items in the list along with a delete button. What can I put in the onClickListener of the delete button to actually remove that item from the list of the ListActivity? Nov 13 20:30:49 or in other words, is it possible to pass a reference to the list adapter from one activity to another? Nov 13 20:33:34 Is it possible to add to an alertdialog, which I build with builder.setMutliChoiceItems(...), to add a line edit underneath it? To be able to create additional options? Nov 13 20:33:39 what would be the best way? Nov 13 20:36:26 whats the best way to get the height of a textvivew before it updates on screen, I would like to animate the height change. Nov 13 20:38:18 SimonVT a click listener doesn't allow me to scroll diagonally (i lose the event on scrolls) Nov 13 20:40:14 What is the best way to initialize a Google Map? I currently have a SupportMapFragment defined in my layout.xml, and I initialize it in onCreate. That seems to cause a lag on loading though. I would like to go ahead and load the activity, then initialize the map async. Nov 13 20:41:45 JakeWharton having an issue and all I can see as origin is that I updated ActionBarsherlock. SuperSU users on 2.x have unclickable tabs, but swiping the tabs works. Ring a bell by any chance ? Nov 13 20:41:47 hey Nov 13 20:41:56 so .. appcompat actionbar themes :/ Nov 13 20:42:15 decendants dont work? Nov 13 20:42:21 anyone else encountered this issue? Nov 13 20:45:42 Is there a way to Change the title of a NeutralButton on an AlertDialog when some change happens within the View of that Dialog, e.g. when a text is edited? Nov 13 20:51:41 How do the android XML Attributes in say layout files get mapped back to the appropiate controls? Nov 13 20:52:59 through your Activity or Fragment classes Nov 13 20:54:04 yes I get that. What I mean is what turns android:orientation="horizontal" into a call to setOrientation(0) ? Nov 13 20:54:22 the layoutinflater Nov 13 20:54:59 thanks lemonxah, thats what I was looking for Nov 13 21:05:10 Is there a way to programmatically from a java app (through the android.jar) to find out what layout xml properties a class support? or is there a file that has these listed somewhere? Nov 13 21:06:15 documentation from android Nov 13 21:06:18 Chainfire: Do you handle orientation changes? Think that'll break it Nov 13 21:06:32 lemonxah: nothing else? The documentation isn't very parsable Nov 13 21:06:49 ki9a: what? Nov 13 21:06:55 try get the xsd's Nov 13 21:07:15 but why do you want to parse it? building a view creator? Nov 13 21:07:31 something like that yes Nov 13 21:08:21 evanc: I want to know what properties are available for a given widget / layout class so I can emit the right xml for them Nov 13 21:08:32 I'm trying to add action bar to an API 8 app, I added the v7 support library and changed my MainActivity to extend ActionBarActivity, when I run the app an java.lang.classNotFoundExeption is thrown, any idea what screwed up? Nov 13 21:09:22 SimonVT it didn't use to ... but I'll test if that's it, thanks Nov 13 21:10:26 Chainfire: Other than having android:configChanges in your manifest, I can't think of anything that'd break it Nov 13 21:13:53 SimonVT that wasn't it ... :) Nov 13 21:14:23 :/ Nov 13 21:16:03 lemonxah: what are these xsds you mentioned? Nov 13 21:19:59 After I migrated a project from ActionBarSherlock to AppCompat, it doesn't render my Menu entries in a split ActionBar anymore. It shows the bottom bar, but only the overflow button... No icon at all is rendered in the bottom... Any idea why this happens suddenly? Nov 13 21:20:42 SimonVT heh interestingly it works in landscape (tabs in top bar), but not portrait (tabs below top bar) Nov 13 21:24:20 hi, is anyone from here on #java channel? Nov 13 21:24:36 Lo all. When using mWebView.loadUrl("http://example.com"); and on that page are links to pdf files, how can I reroute these without rewriting example.com? Nov 13 21:24:52 Hey all :) Nov 13 21:25:39 Chainfire: Strange. It's the same tab bar, just different container Nov 13 21:26:12 ok I found out it was because I was missing some namespace in the menu xml file... this is obivously only needed since I am using AppCompat ;) Nov 13 21:26:20 I am getting a NullPointerException on a editText.addTextChangedListener(new TextWatcher(){} and I have no clue why...any ideas ? Nov 13 21:26:55 I can find multiple references to people having the a similar problem, but the other way around: works in portrait but not landscape. Quite annoying. Not sure what I should do with this ... Nov 13 21:27:46 Hey, I have a question regarding closed captioning, I found a way to do it with HLS + webvtt, but I can't seem to find a different method to load closed captioning in the stock player. Nov 13 21:28:03 Chainfire ABS or AppCompat ? Nov 13 21:28:27 ABS Nov 13 21:28:43 maybe try the other Nov 13 21:28:49 Stated otherwise, If I load my webpage in a webview, how can I easily make it open linked pdf files? Nov 13 21:29:23 g00s heh I'd rather downgrade back to the old version. I know that worked. But even better would be if I could get it to work with the new version, as the old version doesn't like to be build in AOSP Nov 13 21:29:33 and moving to AppCompat will no doubt bring it's own issues Nov 13 21:30:20 i haven't tried it; i keep toying with whether i should cut my 2.3 users off with the existing version and only put minsdk = 15 out for everyone else Nov 13 21:31:10 or if i should give appcompat a try; but there are lots of things i wanted to use in api 15 :/ Nov 13 21:32:34 g00s I have a few dozen million users on this app. From the amount of feedback I've been getting on this update that has been out for less than 12 hours regarding ABS malfunctioning on 2.3, I think I will end up dead in a ditch somewhere if I dare drop 2.x support ;) Nov 13 21:32:50 I dared dropping ARMv5 support a month or two ago. That returned really quickly ;) Nov 13 21:32:56 i wish i had your problem :D Nov 13 21:33:16 me too :P Nov 13 21:33:28 what's the app? :S Nov 13 21:33:42 SupersU Nov 13 21:34:36 very clean, i like it Nov 13 21:36:31 Chainfire? :O Nov 13 21:36:52 It's an honor to be on the same IRC as you :O Nov 13 21:37:04 ehe Nov 13 21:37:09 I was thinking the same thing FabianH :) Nov 13 21:37:11 SimonVT: ping Nov 13 21:37:13 lot's of nice devs around Nov 13 21:37:14 from a quick Google'ing around, AppCompat seems to be missing features I'm using as well, though the post may be outdated Nov 13 21:37:42 oh well, I'll leave this for tomorrow. Unless JakeWharton sunddenly shows up to the party, of course ;) Nov 13 21:37:53 what app do you mean ? i can test it, i have a 2.3.3 device Nov 13 21:37:58 Chainfire: Unless you get NPEs in PopupWindow, then just revert to 4.3.. There are almost no changes in 4.4 Nov 13 21:38:09 And it's unlikely there'll be new versions :p Nov 13 21:38:49 StingRay_: pong Nov 13 21:39:02 last known version that worked was 4.0.0 (I missed the releases in between) but I need to undo quite a bit of changes to revert to that. That's why I say I'm leaving it for tomorrow. This will probably take a few hours, almost naptime now :) Nov 13 21:39:05 SimonVT: with menuDrawer is there a main container view reference I can get to set a background on the "in view" area so that both the content and the drawer do not alter the "image" in this case ? Nov 13 21:39:24 Have a good sleep master Chainfire Nov 13 21:39:31 Chainfire: Oh, yeah, that's a while back Nov 13 21:40:23 yeah never really had a problem with that except that it doesn't build in the AOSP tree Nov 13 21:40:32 so it had to go Nov 13 21:40:54 StingRay_: That made little sense to me :P Nov 13 21:41:29 SimonVT: most of what I say doesn't to me either…erm…. I want a background (image) to stay static "in place" when drawer opening Nov 13 21:41:57 so I would want to get a reference to the view that contains both the content and the drawer Nov 13 21:41:59 I think Nov 13 21:42:43 MenuDrawer holds both.. But I set some default backgrounds on the menu container and the content container Nov 13 21:43:13 If the content overlays the menu, there's also the issue that the menu would be visible behind the content if it doesn't have a background Nov 13 21:43:39 oh balls yeah Nov 13 21:43:55 fked that idea then :) Nov 13 21:44:06 So uh, this might not be that simple Nov 13 21:44:32 no, fk it, cause either way it would not be consistent … as you say Nov 13 21:44:33 If you REALLY want it, make a custom drawable and use that as the background for the content Nov 13 21:44:41 Have it draw a background and your image Nov 13 21:44:56 too much processing Nov 13 21:44:56 Set a listener on the drawer and get notified of the amount of pixels the content is offset Nov 13 21:45:08 Then offset your image by that the other way Nov 13 21:45:09 ^_^ Nov 13 21:45:10 for only slight visual user gain Nov 13 21:52:10 anyone have a good link that can explain to me how to read these runtime exceptions? I have no clue why I'm getting a NullPointerException for an addTextChangedListener :\ Nov 13 21:53:06 because youre referencing something from a null object Nov 13 21:53:16 paste the line of code that it's talking about Nov 13 21:53:38 you're basically calling Nov 13 21:53:46 something.addTextChangedListener Nov 13 21:53:48 but something is null Nov 13 21:54:03 public void beforeTextChanged(CharSequence s, int start, int count, int after) { Nov 13 21:54:08 I'm trying to debug an NDK application using Eclipse, but I'm getting some really weird values for variables. Breakpoints seem to work properly. Has anyone experienced this? Nov 13 21:54:24 wrong line Nov 13 21:54:33 pastebin the stack dmp Nov 13 21:56:12 nyt : http://pastebin.com/v2605Q05 Nov 13 21:56:19 oups... Nov 13 21:56:23 thats was the code Nov 13 21:57:12 nyt : http://pastebin.com/YSRegqbH stack trace Nov 13 21:57:57 It is most likely "newbie error" Nov 13 21:58:07 but I'm not sure why Nov 13 21:58:30 I tried two difference methods...one from a tutorial I watched on youtube Nov 13 21:58:36 neither seem to work Nov 13 21:58:46 damel: do you know what a nullPointer is ? Nov 13 21:58:51 and what an exception is ? Nov 13 21:59:08 and then do you know how to trace/find/debug said exception ? Nov 13 21:59:20 yes...I understand that much StringRay Nov 13 21:59:40 then is the textView null ? Nov 13 21:59:47 yes or no ? Nov 13 21:59:52 trace/fine/debug, not really Nov 13 22:00:03 I dont think so non Nov 13 22:00:06 oh then you should start there, reguardless of this error Nov 13 22:00:20 some1 telling you the answer is not much value Nov 13 22:00:33 other than creating a reliance between you and said channel or person Nov 13 22:00:34 :) Nov 13 22:00:36 I completely agree Nov 13 22:00:49 any good links for me to read up on ? Nov 13 22:01:16 google, there will be 1000's Nov 13 22:01:30 and 999 of them will be valid and useful Nov 13 22:01:41 "how to debug in [insert ide here]" Nov 13 22:01:44 Java in general or Android ? Nov 13 22:02:03 gotcha Nov 13 22:02:08 thanks Nov 13 22:08:06 Does anyone use loaders for iterative loads (lots of images from a directory, for instance)? Nov 13 22:32:42 If I want to modify an .apk file which has an .odex file next to it (both in /system/app) -- what do I need to do, which cache do I need to wipe, so the new apk would be accepted? Nov 13 22:38:37 Peaker: #android-root Nov 13 22:39:13 ok, thanks Nov 13 22:42:55 is there a guide like developer.android.com/training/ that uses Android Studio instead of Eclipse for the examples? Nov 13 22:43:07 I'm just starting out and would like to just focus on Android Studio Nov 13 22:44:12 sure when android studio gets a full release then they should be updated Nov 13 22:44:23 but until then, not sure you will find much Nov 13 22:44:58 ok. another question is regarding the Minimum SDK, how can you really decide this when creating a project? Nov 13 22:45:27 Anyone willing to implement push notifications in my free app for a very small fee? (push notifications in Android is a nightmare imho) Nov 13 22:45:50 boooourns: http://developer.android.com/about/dashboards/index.html Nov 13 22:46:05 push isn't that difficult, kiddo Nov 13 22:46:06 blizzkid: if you think those are a nightmare, you're in for a bad time Nov 13 22:47:50 evanc: I've never developed for iOS nor for Android. I've implemented push notifications in my iOS app in 5 minutes. I've been searching for a decent, *understandable* (step-by-step) tutorial for Android for hours, so yeah, I think it's a nightmare ;-) Nov 13 22:58:32 I have some UI controls in a fragment, which are defined in the OnCreate(). After the screen is rotated, these controls are null. Nov 13 22:58:45 even though the controls are still shown on the screen Nov 13 22:58:51 how can I manage this situation? Nov 13 22:59:51 sorry, they are defined in the onCreateView() Nov 13 22:59:52 anyone know where I can look for info about getting an app made that plays my shoutcast stream? Nov 13 23:00:14 Novus: freelancer.com ? Nov 13 23:00:17 i already made one with the MIT appinventor so I know it's possible, I want a better GUI tho Nov 13 23:00:41 yea,.. if I had the money Nov 13 23:00:55 oh so your asking where people work for free Nov 13 23:00:57 no idea then Nov 13 23:01:01 nonno Nov 13 23:01:02 and wrong place to ask Nov 13 23:01:03 :) Nov 13 23:01:15 I wanna build it myself,.. I just don't know where to look Nov 13 23:01:28 I am trying to look up things on phone gap with dreamweaver Nov 13 23:01:33 even eclipese Nov 13 23:01:43 but I don't seem to be having anyluck Nov 13 23:01:57 getting started guides on d.android.com Nov 13 23:03:37 what up StingRay_ Nov 13 23:03:50 parco: my roof Nov 13 23:03:53 oh and a spider Nov 13 23:03:59 probably different for you though Nov 13 23:04:00 just lookin out Nov 13 23:04:17 how about a page like this? Nov 13 23:04:17 http://apps.appypie.com/ Nov 13 23:04:35 you're the fellow with years of opengl experience right? Nov 13 23:05:17 I read that real world performance of maps String,String or Integer,Integer are insignificant, and even Map Vs SparseArray has little gain below 10k entires… is this true ? Nov 13 23:05:25 parco: as an artist yes Nov 13 23:05:29 as a coder no Nov 13 23:05:44 damn fuck gotta head out Nov 13 23:05:53 i did have a question tho Nov 13 23:05:59 * parco away Nov 13 23:57:56 hello Nov 14 00:03:10 anyone willing to help me understand how I should approach a basic project workflow from start to finish Nov 14 00:04:43 i've been stuck on this for a few days now Nov 14 00:04:44 with a pen Nov 14 00:04:49 and a composition notebook, boooourns Nov 14 00:04:52 here is my code. an activity and a fragment Nov 14 00:04:55 http://pastebin.com/fmuaSGP6 Nov 14 00:05:16 Rager: yeah but I am unfamiliar with IDEs in general Nov 14 00:05:27 bClick is my xml onClick. what do i have to have in there to identify which fragment was clicked? Nov 14 00:05:31 I can write out all the UML easily but actually working with Android Studio I've never done before Nov 14 00:06:07 I feel like I'm getting hung up on details that don't matter Nov 14 00:06:39 the best i've been able to do so far is get the int index / string position of the last one that was added Nov 14 00:08:08 chars6: what? Nov 14 00:10:06 i have a few fragments that are created in a loop. they have tags associated with them in the order they were created [0 - 3]. each fragment has a button that calls bClick when it's clicked. i need to identify from which fragment the button that was clicked belongs Nov 14 00:10:53 and i've been banging my head against this for maybe a week now Nov 14 00:15:19 Inside the Activity I am instantiating an object which is responsible to query and store the data needed by the fragments. I was about to use onRetainNonConfigurationInstance() in order to retain the object after configuration changes, but I just realized the method has been deprecated. Nov 14 00:15:47 why would all my exception stack traces have "Unknown Source" instead of the line number for my source code? Nov 14 00:16:27 I can see that the recommended way is to use Fragment's setRetainInstance, but it doesn't look like it's what I need, because my object doesn't deal with just 1 fragment. Nov 14 00:16:43 bitkiller: if you compiled without debug information, or the debug information was otherwise stripped at some point Nov 14 00:16:47 what would you suggest to use instead? Nov 14 00:21:20 JesusFreke, yes, you're right. I had checked the compiler conf, but overlooked the "include source file name". the strange thing is who's changed that? Nov 14 00:21:32 anyway, it's working now Nov 14 00:21:38 aliens, obviously :) Nov 14 00:21:51 JesusFreke, thanks for making me look at that again Nov 14 00:21:56 hehe. np Nov 14 00:25:40 i've read that i need to be using interfaces to solve the problem, but despite reading several tutorials i don't understand how that works Nov 14 00:29:40 pfn vz said they will carry the moto g q1 2014 Nov 14 00:30:53 too much heavy Nov 14 00:36:15 so I put a font file in assets/fonts/myfont.ttf but I can't find it there in my app Nov 14 00:36:25 (native c++ app) Nov 14 00:40:09 uhg I guess I'll just list the directories from within my app because I have no idea where my shit goes Nov 14 00:47:08 no one? Nov 14 00:47:51 chars6: no one what ? Nov 14 00:48:02 all I see is you stated a fact :) Nov 14 00:48:05 no question Nov 14 00:48:53 if your wanting suggestions why not tag the views with the fragment tag Nov 14 00:49:09 here is my code. an activity and a fragment. http://pastebin.com/fmuaSGP6 Nov 14 00:49:27 bClick is my xml onClick. what do i have to have in there to identify which fragment was clicked? Nov 14 00:49:53 yah, so what I just sai Nov 14 00:49:56 *d Nov 14 00:50:54 but tbh, it looks like your using fragments as a kind of listView Nov 14 00:51:02 i think i've tried that... i've tried lots of things, maybe i missed that. thanks for the suggestion Nov 14 00:51:05 when you actually need a fragment to be a fragment Nov 14 00:51:06 :) Nov 14 00:58:29 so in the fragment onCreate i added view.setTag and in bClick i added v.getTag and it crashes the program Nov 14 00:58:38 i might not be adding the tag to the right view Nov 14 00:58:57 i've been told though that the best way to do this is with interfaces Nov 14 00:59:58 somone on stackoverflow said it would be quite a hack (to do it without interfaces) and he wouldn't expect it to work well Nov 14 01:01:04 something that works like firebug would be nice to have right now Nov 14 01:01:52 well do it with interfaces then Nov 14 01:02:32 but a clickListener is …. an interface Nov 14 01:03:03 personally I think the design is a bit odd though, with what your doing Nov 14 01:03:11 seems like you should be using simple views Nov 14 01:03:25 cause using fragments as views, there is … erm … no point Nov 14 01:05:34 I'm not using views because I don't know how many I will need. you're right that i'm using it like a listView. i want to display however entries the user creates Nov 14 01:06:00 you are describing a listView Nov 14 01:06:01 i can do that without fragments? cuz seriously, fuck fragments Nov 14 01:06:25 ok. i'll read up on that. Nov 14 01:06:27 fragments are good, if you use them for something different to what you would use a simple view for Nov 14 01:08:08 fragments exist because you can't have more than one Activity in view Nov 14 01:08:26 StingRay_: Seen Flow and Mortar? Nov 14 01:09:39 It's what JakeWharton was talking about when he said apps at Square use 1 Activity, 0 Fragments and N Views. Nov 14 01:10:42 so they do all the stuff that Activities and Fragments were created to do with stuff they built themselves Nov 14 01:10:42 kakazza with all their libraries, i'm not convinced they touch android api at all :P Nov 14 01:10:47 is it possible to use listviews in a situation where the views are not all identical? Nov 14 01:10:49 g00s: heh Nov 14 01:11:00 chars6: yes. Nov 14 01:11:05 say, some of them need to display things that aren't in others? Nov 14 01:11:11 Rager: Only with less code and supposedly cleaner API. Nov 14 01:11:11 you can have N different types of items in your list views Nov 14 01:11:21 well, I don't blame them. They have Jake Wharton. Nov 14 01:11:27 where N is an integer Nov 14 01:11:30 of course Nov 14 01:11:36 ok. thanks for your help everybody. Nov 14 01:11:48 just set the getView or bindView stuff to do the magic you need Nov 14 01:13:29 I think I like the idea of 1 Activity, 1 retained Fragment, and N views. Nov 14 01:13:56 (Square probably doesn't handle media..) Nov 14 01:15:11 btw 4.4 http library is not square's httpok. consequently you can no longer close an http connection on the main thread because somehow that constitutes a network operation Nov 14 01:15:19 now* not not Nov 14 01:15:33 http://rznt.com/irc-test.apk android irc test build, want some testers before i push update to market since i changed a lot of internals =[ feedback welcome Nov 14 01:16:06 nyt: why not use the staged rollout feature of play store instead of asking people on IRC to install a random APK? Nov 14 01:16:23 hahaha Nov 14 01:16:35 evanc well this is what you had to do before that feature Nov 14 01:17:24 can people review alpha / betas ? (do those wind up on your listing) ? Nov 14 01:17:36 yes Nov 14 01:17:38 dcow: it is, actually Nov 14 01:17:44 well, thats one reason not to use it :) Nov 14 01:18:08 JakeWharton: it's blocking? Nov 14 01:18:12 that should be limited to feedback / bug reports Nov 14 01:18:33 Is what blocking? Nov 14 01:18:49 JakeWharton: misspoke. of course it's a network operation. but does it block (closing a connection) Nov 14 01:19:22 I'm not referring to that. I was referring to Android using OkHttp. It does. Nov 14 01:19:30 because i can get real time feedback from people Nov 14 01:19:34 JakeWharton: oh yeah I corrected myself Nov 14 01:19:41 meant to type now* not not Nov 14 01:19:54 JakeWharton: sry. Nov 14 01:19:58 Ah. I'm on mobile. Hard to follow. Nov 14 01:20:26 zomg linking a paid irc app free on irc rofl such poor form amirite Nov 14 01:20:36 its not like android doesn't tell you the permissions it uses anyway Nov 14 01:21:05 nyt: adb install doesn't show permissions :P Nov 14 01:21:51 hello android-dev, i've got a flummoxing issue with defining an android input-method is anyone around who knows about the Keyboard classes? Nov 14 01:22:25 i described the issue here, http://stackoverflow.com/questions/19963545/android-keyboard-output-unicode-string-and-label-with-unsupported-glyph no need to flood the room with a new description (right?) Nov 14 01:23:11 evanc: meh i just install from web, easymode anyway... *shrug* all legit anyway Nov 14 01:24:12 however, i don't mind describing my issue here if that's considered better form than the link to stackoverflow Nov 14 01:24:27 nyt: suuuuure. that's what all the scammers say :) Nov 14 01:26:35 Hi, has anyone seen this and know how to fix it? http://imgur.com/5x0KbDB It's an ActionBarCompat with a menu item replaced as a ProgressBar. Works fine on Galaxy Nexus on 4.3, but does that on both HTC Legend on 2.3 and the Galaxy S3 on 4.2. Nov 14 01:37:37 I really don't know how to find out more about my input method issue. I have this strong feeling that the problem is solved somewhere (it's hard to believe that it's not possible to create an input method that outputs complex unicode characters. Nov 14 01:37:40 g00s, indeed, saw that, I have no hope that it'd be an unlocked bootloader Nov 14 01:38:19 Oh, maybe I don't have write permission to this channel? Can anyone out there hear me? Nov 14 01:38:37 yes, we hear you Nov 14 01:38:38 does anyone hear something? Nov 14 01:38:43 I hear a faint breeze or something Nov 14 01:39:02 p_l: ok, thanks. i just wanted to make sure I wasn't just talking to myself here. Nov 14 01:39:33 do you think people here will look at my stackoverflow question, or should i describe the problem in detail in this channel? Nov 14 01:40:18 linking to the stackoverflow question seems like the way to go Nov 14 01:40:47 or rather, a quick summary plus the link (which you did) Nov 14 01:43:13 screw it, I open sourced qicr already Nov 14 01:43:14 https://github.com/pfn/qicr Nov 14 01:43:54 heh Nov 14 01:44:12 is that an act of throwing to the wind, because you're done with it? Nov 14 01:44:33 not really Nov 14 01:44:58 just some transparency for users that wonder wtf is going on (mostly nothing except when I can find time) Nov 14 01:45:04 * pfn wanders off & Nov 14 01:45:07 cool Nov 14 01:45:08 JesusFreke sourceforge.net would be putting it out to pasture Nov 14 01:45:09 scala and stuff? Nov 14 01:45:16 Rager, yes, it's all scala Nov 14 01:45:26 some of it is pretty crappy, which I've meant to go back and rewrite, but haven't yet Nov 14 01:45:36 in your experience in writing the app using scala Nov 14 01:45:40 g00s: haha Nov 14 01:46:01 what should I be aware of if I were to try to write up an app in Scala? Nov 14 01:46:06 like... what was awesome, what wasn't Nov 14 01:46:55 JesusFreke: ok thanks. I hope someone can give me a suggestion. Nov 14 01:47:14 Do you think I can cast a Key as a Button and then set the font on it? Nov 14 01:47:19 I haven't tried that. Nov 14 01:47:35 heya Nov 14 01:49:47 well at the very least if you guys look at my question on stack overflow and have an account, give me an upvote so i can get some attention from other people, yes? Nov 14 01:50:50 upvoted. It's a good question :) Nov 14 01:54:17 want to ask how would you make a menu system in android. like a list of (colors, animals, ...) then when you select color you get a new list of (green, blue, red, ...) if you choose a color it goic to the main activity, but if you press back, it gives you the categories again? Nov 14 01:55:18 TechEffigy: just sounds like a listView Nov 14 01:55:21 well many Nov 14 01:55:32 flowing from one to anther Nov 14 01:55:35 another* Nov 14 01:56:48 so should i have 1 listview change or multiple listfragments or listactivities? Nov 14 01:56:51 I cant undestand the balls on some people, just taking cyanogen source, compiling it, releasing on play store as their own, and then sneaky asking for donations … and users thinking that they did the app…. I should not care, but dam pisses me off Nov 14 01:57:09 im making a menu based text adventure Nov 14 01:57:11 TechEffigy: your choice, thats a design flow interaction Nov 14 01:57:18 up to you how you tackle it Nov 14 01:57:44 Thanks JesusFreke, I hope that helps it get some attention :) Nov 14 01:58:32 How bad is it for battery life to wake up to send a keepalive on an internal/virtualized network interface every 1 second or so? Nov 14 01:58:39 anyone know if you can write to a gl texture that is not visible? Nov 14 01:58:57 vertex boffer objext Nov 14 01:59:06 Rager, everytging is awesome Nov 14 01:59:07 hmm not sure it's an actual "wake up".. basically just a sleep-send-loop Nov 14 01:59:16 jcrowgey: my only comment is that you can try looking at the platform source to see what is actually going on, especially wrt. the NPE. or why using the "codes" field isn't working as expected. Nov 14 01:59:18 in the api demos app is a vbo being used as a texture Nov 14 02:00:48 JesusFreke, yes I want to find out why using keyOutputText and keyIcon cannot be used together. Nov 14 02:01:36 I did do some IME stuff a few years ago, but it was lower level - I wasn't using the provided Key classes or anything. So I can't help much with that :) Nov 14 02:01:52 Doing custom UI and generating the key codes myself Nov 14 02:01:54 I think that the codes field *is* working as expected though, the docs say that you can make a list of codes and the first is output on single tap, the second on double tap. Of course, it just happens that this isn't what i'm trying to do. Nov 14 02:02:13 ah, yeah Nov 14 02:02:30 anyone any good at natural language processing? Nov 14 02:03:27 TechEffigy, I can do parsing and statistical translation, but I'm not very good at it :) Nov 14 02:05:16 just want to know what to do after you have created the parse tree Nov 14 02:05:32 2. ??? Nov 14 02:05:35 3. Profit! Nov 14 02:09:43 i checked out link grammar but no tutorials on it, just the berkley open source parser Nov 14 02:12:19 JesusFreke was step # 2 ask #android-dev ? Nov 14 02:12:32 I wish I knew Nov 14 02:12:40 yeah, i didn't think so Nov 14 02:12:41 :D Nov 14 02:23:06 TechEffigy: it depends on what you are trying to accomplish. What's your goal? Nov 14 02:23:39 text adventure :) with a great english parser Nov 14 02:23:58 text adventure? you just want to have an adventure? I don't understand. Nov 14 02:24:23 text adventure is an rpg based on text input Nov 14 02:24:48 so you want to get some kinda semantic representation and then decide what that means in the context of some game, i guess. Nov 14 02:24:54 such as "pick up the matches, light a match and burn the world" Nov 14 02:25:21 ok, so next step for you is to compute a semantic representation from the syntax tree you've constructed. Nov 14 02:25:25 natural language parsing is a pretty tough problem, you have a hopefully small set of stuff to handle though.. Nov 14 02:25:31 just need to extract the verbs and apply it with prepositions to the noun phrases Nov 14 02:26:24 right, i mean what if the user says "the world, burn it after lighting it up with a match and of course don't forget to pick them up in order to light them" Nov 14 02:26:37 the point of text adventure is make it as open world as possible, and even if it doesnt understand the input a chatbot pattern matcher should generate an output Nov 14 02:26:56 ya, not that complex jc Nov 14 02:28:19 you need a constrained set of possible meanings then your best bet is to do a statistical match where for each of your possible meanings you rank the likelihood that the user's input is supposed to indicate that meaning. Nov 14 02:28:49 you can do the ranking with some sort of heuristic or by training some kind of machine learner. Nov 14 02:30:03 this doesn't really seem that relevant to android-dev though ... Nov 14 02:30:19 the corpuses are too complicated for a small task suxh as mine Nov 14 02:31:21 anyhow, anyone programming anything interesting? Nov 14 02:33:12 just irc client atm Nov 14 02:33:46 :/ so this should be really easy, but im having troubles Nov 14 02:34:11 i've imported android-support-v7-appcompat and android-support-v7-mediarouter into my project Nov 14 02:34:13 hey nyt, do u know what would bring irc back to a commercial level, is an irc xlient like the old mschat Nov 14 02:34:34 1998 mschat client was really cool Nov 14 02:34:41 and added the appcompat project as a depenency of the mediarouter project, but it still refuses to build Nov 14 02:34:48 think it was called ms comic chat Nov 14 02:35:03 and there was no command typing Nov 14 02:35:09 all menus Nov 14 02:35:21 pretty much this problem: http://stackoverflow.com/questions/18822499/android-2-0-support-actionbar-library-appcompat-v7-support-library-without-re?rq=1 except that none of the solutions i've tried work Nov 14 02:35:25 anyone got any hints? Nov 14 02:39:43 otiose, wish i could help. if i had more rep on stackoverflow, i'd upvote your question so it would get more attention (i'm just a newbie so i can't upvote yet) Nov 14 02:40:03 if anyone can upvote my question, it might help it get an answer: http://stackoverflow.com/questions/19963545/android-keyboard-output-unicode-string-and-label-with-unsupported-glyph Nov 14 02:40:10 heh, thats not my question, just the same problem Nov 14 02:40:24 otiose: oh i see. Nov 14 02:42:04 id like to see an opengl keyboard for android Nov 14 02:42:56 So my mobile app professor wants us to develop a simple security token app on android (like Google Authenticator) using AsyncTask and a CountDownTimer. However when I put the CountDownTimer in the AsyncTask it crashes! http://pastebin.com/0jAQwWD2 Nov 14 02:43:05 anyone with a nex7 2012 get the kitkat update yet ? Nov 14 02:43:23 and i would like to see vm being saved rather than the app having to persist data Nov 14 02:43:27 Nope. Nov 14 02:43:30 I figure it's going to be a slow update. Nov 14 02:44:13 clown, prob because the timer already runs a thread of it own Nov 14 02:44:40 TechEffigy: oic, well how can I use it in AsyncTask then? This is how he told me to implement it. Nov 14 02:44:49 Nilium: thought google announced rollout today ? Nov 14 02:45:06 read the error message, what does it say Nov 14 02:45:12 They did. I mean it's going to be a slow rollout. Nov 14 02:45:16 i.e., in chunks of users. Nov 14 02:45:38 TechEffigy: It says I have not used Looper.prepare(), but I am not using Looper? Nov 14 02:45:57 I looked up the android dev page and I don't think Looper is what I want. Nov 14 02:46:02 then the timer is using a looper Nov 14 02:46:13 ill google it dor u quixk ok Nov 14 02:46:50 TechEffigy: IMO I should use the CountDownTimer and call the AsyncTask from it in my MainActivity onStart(), but he says I should do it this way. Nov 14 02:47:08 The AsyncTask generates the security token. Nov 14 02:47:41 TechEffigy: Thanks Nov 14 02:48:38 try stackoverflow.com/questions/19181650/trying-to-make-countdowntimer-inside-doinbackgroung Nov 14 02:48:52 seems like some solutions Nov 14 02:48:52 TechEffigy: awesome thank you I will take a look Nov 14 02:49:16 TechEffigy: Is there anything wrong with using the CountDownTimer in my onStart() and calling the AsyncTask from it? Nov 14 02:49:25 makes more sense to me at least Nov 14 02:50:07 what are u making exactly? Nov 14 02:50:21 homework Nov 14 02:50:23 :) Nov 14 02:50:47 lol Nov 14 02:50:59 TechEffigy: Just a simple security token authenticator (like Google Authenticator) Nov 14 02:51:41 well id use a headless frqgment with asynctask first of all Nov 14 02:52:15 and id make my own countdowntimer using ticks, but homework is homework Nov 14 02:52:35 hm, we haven't covered fragments in depth yet Nov 14 02:52:58 where are u studying android programming? Nov 14 02:53:15 as far as i know there aint android courses Nov 14 02:53:41 It's a new course at Thompson Rivers University. Nov 14 02:53:54 I find it very confusing TBH Nov 14 02:54:07 how many apps has your teacher done ? Nov 14 02:54:16 and are they any good ? Nov 14 02:54:36 StingRay_: I don't think he's done any publicly available. Just internal apps for the company he worked at. Nov 14 02:54:45 but theres no such thing as being android certified, its prob a book walkthrough course Nov 14 02:54:54 ^ Nov 14 02:55:02 TechEffigy: There is no book for the course lol. Nov 14 02:55:17 Just his PPT slides. Nov 14 02:55:23 In PDF format... :/ Nov 14 02:55:32 its because if u had the book the teacher uses, u woudnt need the coarse Nov 14 02:55:39 lol Nov 14 02:56:31 At least he's not as bad as the teacher I have teaching us assembly. Nov 14 02:57:38 i learnt android from good books and source codes that google supplies, found these courses people offer are just introductory, ask ur teacher if ull be able to program a full json app for the web using intent services, a real world app, bet u, that u wont Nov 14 02:58:30 TechEffigy: What book would you recommend that I can.. acquire easily Nov 14 02:58:38 uni just want ur money, ive seen some weird courses being offered before, prob hqve horse back massage courses one day Nov 14 02:58:51 LOL I know Nov 14 02:58:51 ill check for u quick Nov 14 02:58:57 on my pc Nov 14 02:59:07 At least I'm not paying an arm and a leg, and I can take the introductory courses here then transfer to a better uni Nov 14 02:59:13 what's with all the netspeak? Welcome back 1998 Nov 14 02:59:30 bankai_: I guess you're not 1337 enough :P Nov 14 02:59:35 I've tried to teach some android devs stuff Nov 14 02:59:55 the vest way i've found is to take people who have a standard CS background **** ENDING LOGGING AT Thu Nov 14 02:59:59 2013