**** BEGIN LOGGING AT Thu Sep 18 03:00:00 2014 Sep 18 03:50:33 gradle 2.1 has some cool new stuff (1) Gradle Plugin Portal (2) incremental Java compilation (thought it had that already) and (3) improvents to allow cancelling a build Sep 18 03:50:48 3 <3 Sep 18 03:51:15 Why doesn't the SDK get included in APK files, if we're linking against it? Sep 18 03:51:18 now i only want more caching for andorid dexing Sep 18 03:52:01 drewbug because its on the phone :| Sep 18 03:52:13 like android.jar ? Sep 18 03:52:15 g00s: Yeah, but, how does the compiler know that? Sep 18 03:52:16 Yeah. Sep 18 03:52:29 its a 'provided' dependency Sep 18 03:52:39 regardless of tool, there will be some notion of this Sep 18 03:53:35 g00s: Thank you so much! Sep 18 03:53:49 g00s: I've been trying to understand that for a while, but couldn't figure out the right search terms. Sep 18 03:54:56 yw Sep 18 04:05:45 it's the bootclasspath Sep 18 04:06:22 for the JVM it's normally rt.jar Sep 18 04:06:31 is it bad i take pleasure on /r/androiddev when you absolutely shut people down JakeWharton ? Sep 18 04:06:59 e.g the weakreference listener anonymous classes guy Sep 18 04:07:30 oh, yeah. i don't know wtf that was. Sep 18 04:07:50 honestly that subreddit is pretty trash. Sep 18 04:08:05 that was java Sep 18 04:08:15 oh Sep 18 04:08:23 yeah i multi reddit java and android and some others Sep 18 04:08:24 my bad Sep 18 04:08:38 how does that work? Sep 18 04:08:51 i only browse on mobile when i'm bored Sep 18 04:09:02 bored = on the can ? Sep 18 04:09:05 example: http://www.reddit.com/r/java+androiddev Sep 18 04:09:17 OH SNAP Sep 18 04:09:24 RIGHT? Sep 18 04:10:14 some mobile apps support multireddit stoo Sep 18 04:10:18 s t* Sep 18 04:13:02 hey guys. I have a DrawerLayout in which the left-side drawer contains a fragment containing a ListView. for some reason, none of the content in this fragment responds to any touch events - dragging does not scroll, tapping does not result in a click event. the only thing that happens is if i tap anywhere on the open drawer, it closes. any idea why that is? Sep 18 04:13:47 how does that even work Sep 18 04:13:53 a fragment inside the drawer? Sep 18 04:14:00 why not just a listview Sep 18 04:14:14 set it clickable Sep 18 04:14:35 thats true i wasnt considering all use cases Sep 18 04:14:58 pfn, set what clickable? the listview? Sep 18 04:17:03 sure Sep 18 04:17:11 no dice Sep 18 04:17:11 or the containing fragment Sep 18 04:17:45 where can i find the recyclerview sources? Sep 18 04:17:56 having a hard time finding them… i see some unofficial sites... Sep 18 04:17:59 i had this working a few hours ago, no clickable flags needed to be set then. i've made a lot of changes so i was kind of hoping for a "this is what you did wrong" type of answer Sep 18 04:18:27 JacobTabak: the m2 repo in the sdk Sep 18 04:18:40 thanks Sep 18 04:19:08 hm Sep 18 04:19:24 http://cl.ly/image/1C0Y371F1T0b Sep 18 04:20:46 oh, found Sep 18 04:21:14 was in android not google Sep 18 04:21:32 ahh its all so much clearer now Sep 18 04:23:22 sigmabeta, diff your changes Sep 18 04:24:17 pfn, yeah, that's gonna be a boondoggle. lots of files changed, too many places to look. Sep 18 04:24:34 though i guess i'm looking at a boondoggle either way Sep 18 04:27:36 ok, figured out what the problem is, i’m trying to use smoothScrollBy() in an ontouchlistener. it works from a button, but not a touch listener -.- Sep 18 04:28:23 now need to figure out how to work around that, any suggestions appreciated Sep 18 04:28:36 maybe a scrollstate listener would work better Sep 18 04:40:55 AHA! Sep 18 04:41:20 happy now :P Sep 18 04:55:18 update: took the background drawable off the listview (just a flat white color) and realized that for one reason or another, the drawer content is being rendered *behind* the main content view. so i need to figure out why this is. Sep 18 04:58:32 update: I hate that this is the right answer, but in a DrawerLayout definition in XML, the content view must be defined *above* the drawer layout. ugh. Sep 18 04:58:43 z ordering Sep 18 04:58:49 yikes Sep 18 04:58:56 was gonna suggest that Sep 18 04:58:57 pfn, i would've never ever caught that among all the other changes i made Sep 18 04:59:27 well i was just stuck in 10 minutes of rxjava nested brackets issues Sep 18 04:59:30 sooo its not much better Sep 18 05:00:11 yeah i've been trying to fix this for like an hour Sep 18 05:00:20 got ya beat on the frustrate-o-meter buddy :) Sep 18 05:00:27 +1 for never doign it again tho right? Sep 18 05:00:53 6mos from now, you'll reorder that somehow and find stuff borking out on ya again Sep 18 05:01:14 "wtf, i remember this weird stuff a while back ..." Sep 18 05:01:28 g00s, I have a git commit saying why I did this now Sep 18 05:01:39 :) Sep 18 05:01:53 g00s, which i will make sure to ignore in 6 mos Sep 18 05:03:24 JacobTabak, that is literally what I said to rationalize why I shouldn't commit japanese samurai ritual suicide just now Sep 18 05:05:14 i remember back when android 4.0 cam out, google ran some automated script on the public facing defect tracker that closed all bugs, essentuially saying "a lot has changed, and we're not sure this is an issue so we're closing it" Sep 18 05:05:23 i hope they don't pull that shit when android 5 comes out Sep 18 05:07:37 pft, as if android 5 is ever comimg out :) Sep 18 05:08:58 i'm sure android oems are looking at all the iphone 6 getting sold, and L is not finalized yet ... Sep 18 05:09:14 yeah thats awkward Sep 18 05:09:37 its like htey’ll have nothing for I/O next year Sep 18 05:10:24 meanwhile Apple put up an Android to Iphone migration guide Sep 18 05:10:32 if iOS was made available (thinking about long long ago when it was the case with apple/mac) for other vendors to make handsets, would android still be alive after that ? Sep 18 05:11:08 humm i dunno, ios coding is still pretty f'ing painful Sep 18 05:11:25 bankai_au are you robovm'ing it though ? Sep 18 05:11:29 sure am! Sep 18 05:11:35 well duh! Sep 18 05:11:39 dunno, but the iReligion as such would definitely die Sep 18 05:11:40 released my first app the other day Sep 18 05:11:51 which might not be a bad thing Sep 18 05:13:32 I wonder though, why linger with L for so long Sep 18 05:14:05 linger? Sep 18 05:14:16 hi! :) Sep 18 05:14:28 http://www.youtube.com/watch?v=G6Kspj3OO0s Sep 18 05:14:39 you think they're just playing in ball pits and sliding down slides and laughing at us all pining after L? Sep 18 05:15:09 no, I just wonder what's taking so long Sep 18 05:15:21 when using some components from a .jar library, will all the library be packed inside the .apk or just the components used? Sep 18 05:16:43 HunterD: all the library unless you do otherwise (e.g., use proguard) Sep 18 05:17:57 also, lol, pining, not a term I hear often, reminds me of Monty Python's "pining for the fjords" Sep 18 05:18:55 yeah, i'm not sure I understand that "taking so long" complaint. L is pretty much android's third do-over Sep 18 05:19:12 lollipop ! Sep 18 05:19:29 when it's gonna be out again ? Sep 18 05:19:50 fall Sep 18 05:19:57 & it was announced & previewed what, 3 months ago? smart money says probably released oct/nov-ish when they do their nexus refreshes Sep 18 05:20:06 how is that unreasonable Sep 18 05:20:15 a very likely possibility, and perfectly reasonable Sep 18 05:20:20 JakeWharton: october, november ? Sep 18 05:20:36 wanna get new nexus <3 Sep 18 05:20:48 and additionally it gives them 6 months until I/O, the normal time frame for minor releases over the past 4 years Sep 18 05:21:16 but who knows. and i don't care. just so long as it happens eventually. Sep 18 05:22:40 i'd rather they take their time Sep 18 05:22:55 I just would like to see the new nexus :) Sep 18 05:23:02 whoa, ok... I was just wondering, that's all. not like I'm actually waiting for it :) Sep 18 05:23:37 any news who's gonna make it ? Sep 18 05:24:00 hm HTC will make Flounder Sep 18 05:24:11 http://www.gsmarena.com/motorola_nexus_6-6604.php Sep 18 05:24:13 found this ? Sep 18 05:32:03 How can I get the SDK platform folder from build.gradle Sep 18 05:33:00 "Handles the all things SDK for the Gradle plugin. There is one instance per project, around a singleton" "com.android.builder.sdk.SdkLoader." Sep 18 05:33:12 Is there any way to access that? Sep 18 05:37:31 hmm, i can't remember Sep 18 05:37:46 the actual instance that the plugin is using? no Sep 18 05:37:51 from what i remember Sep 18 05:37:56 but you can also just create your own instance Sep 18 05:38:28 here's an example: https://gist.github.com/JakeWharton/e8a3685feb6a94b23393 Sep 18 05:38:54 JakeWharton: Hey, thanks! Sep 18 05:39:21 note: that's internal API that's subject to change and break at any time! Sep 18 05:40:16 Yay, my favorite! Sep 18 05:40:21 :) Sep 18 05:42:38 havent they say that api is gonna be stable from,,, beta ? Sep 18 05:43:11 they said the public API would be more stable Sep 18 05:43:19 and i am not using the public API Sep 18 05:43:33 a, sorry then Sep 18 05:52:58 Hi Guys I am using this library to convert an object to json - https://code.google.com/p/google-gson/ Sep 18 05:53:55 Arraylist object to json I mean Sep 18 05:54:18 the arraylist object has the email and name which are plenty say around 1000 - 5000 Sep 18 05:54:45 not when I convert gson.toJson(object) the data gets truncated Sep 18 05:55:07 how do you know it is truncated Sep 18 05:55:14 hi guys. i am looking to batch load 30 images and 30 comments into an arraylist that my user will then increment through. do i actually need to load the images into the arraylist or just the URLS? what is the best practice for doing so ? Sep 18 05:55:16 I am printing it in Log.d Sep 18 05:55:24 neo log.d is capped at 4000 characters Sep 18 05:55:25 and seeing Sep 18 05:55:36 ohhh :( Sep 18 05:55:43 write a custom log function that chunks it into 4000 char msgs Sep 18 05:55:53 okay trying that Sep 18 05:56:12 but does this function has a limit of characters to be converted to json Sep 18 05:56:19 only limited by memory Sep 18 05:56:22 I could not find any mention of this Sep 18 05:56:24 ohh Sep 18 05:56:25 okay Sep 18 05:56:30 trying this :) Sep 18 05:57:03 neo3: https://github.com/square/retrofit/blob/816e551ebcf76d4b31eca6b6439de02b2f9ccf32/retrofit/src/main/java/retrofit/android/AndroidLog.java Sep 18 05:57:54 Thanks JscobTabak :) Sep 18 06:02:28 anyone know of someting like https://github.com/OpenHFT/Java-Chronicle but compatible with android ? Sep 18 06:02:51 oh i guess its now https://github.com/OpenHFT/Chronicle-Queue Sep 18 06:03:21 they use some sun.misc.unsafe stuff which isn't available Sep 18 06:10:29 @jacobTabak : it is taking all emails, I checked by dividing the output to chunks Sep 18 06:10:42 (thumbsup) Sep 18 06:10:49 The data is above 150000 characters Sep 18 06:10:57 and I am sending it through httppost Sep 18 06:11:09 is HTTPpost having such limit Sep 18 06:11:27 you said it is taking all of them Sep 18 06:11:31 do you mean it is not? Sep 18 06:11:56 150,000 characters is not too much Sep 18 06:12:00 JakeWharton: Any idea how to get the *platform* folder, rather than the sdk folder? Sep 18 06:12:13 it is converting all the objects in arraylist to json by gson.tojson(obj) Sep 18 06:12:17 httppost.setEntity(new StringEntity(gson.toJson(mEmailsSelected))); Sep 18 06:12:22 sending it using this in http post Sep 18 06:12:35 so is httppost having a limit :P Sep 18 06:12:36 drewbug: you can get the runtime jar and look at the parent folder Sep 18 06:12:54 neo3: are you getting an exception? Sep 18 06:13:01 JakeWharton: How would I do that, if you don't mind? Sep 18 06:13:11 android.getBootClasspath() Sep 18 06:13:33 checking exception Sep 18 06:13:38 could new StringEntity could be a problem Sep 18 06:13:59 that's not a file but a classpath so you'd ahve to split on File.separator and then look at each element Sep 18 06:14:03 i think there should only be one though Sep 18 06:14:04 JakeWharton: That worked. You're super awesome. Sep 18 06:17:05 JacobTabak : No Exception Sep 18 06:17:19 so whats the problem? Sep 18 06:17:52 i saw your code. it was very... exceptional Sep 18 06:17:52 ie, why do you think something isnt working Sep 18 06:18:46 because there is no data recieved on server in request object Sep 18 06:19:01 however if I send only one email and name with same code Sep 18 06:19:06 it works cool and fine Sep 18 06:19:15 maybe your server has a limit on request size or timeout? Sep 18 06:19:56 checking Sep 18 06:30:51 What's the purpose of the "layoutlib.jar" file? Sep 18 06:31:01 I get that it's for the Eclipse plugin, but what does it actually do? Sep 18 06:36:06 layoutlib runs a subset of the android.view code on the JVM Sep 18 06:36:31 it's what allows rendering previews of your layouts in real-time on the JVM (e.g., inside Eclipse or IntelliJ) Sep 18 06:37:24 it knows how to parse the XML (like layout inflater) inflating your actual compiled code and render to whatever Java has as a Canvas substitute Sep 18 06:37:33 presumably something in Swing and/or AWT Sep 18 06:37:57 s/inflating/instantiating/ Sep 18 06:38:13 +commas Sep 18 06:38:13 Awesome. Thank you. Sep 18 06:39:16 JacobTabak : is it good to send long data like I am doing Sep 18 06:39:25 means am I sending it right way ? Sep 18 06:39:46 neo3: why are you sending so much data? Sep 18 06:40:00 I need to send Sep 18 06:40:17 you should gzip it probably Sep 18 06:40:53 http://developer.android.com/reference/java/util/zip/GZIPOutputStream.html Sep 18 06:42:26 why do you need to send so much tho/ where is it coming from Sep 18 07:08:38 does anybody know if samsung in-app purchases support autorenew (monthly/yearly/...)? Sep 18 07:08:54 the docs don't explicitly mention autorenew anywhere Sep 18 07:41:10 g00s: here? Sep 18 07:41:17 hey thepoosh Sep 18 07:41:28 going to bed in a moment Sep 18 07:42:09 is it possible that I get broadcasts from different locations because I used an IntentFilter of SMS_SENT and they have com.packagename.SMS_SENT? Sep 18 07:42:54 oh sorry, dunno Sep 18 07:43:15 i guess Intentfilter.match() ? Sep 18 07:43:19 hmmm Sep 18 07:43:22 will look into it Sep 18 07:43:32 I think we are getting fucked in production because of that Sep 18 07:45:58 thepoosh don't do that ! Sep 18 07:46:34 :) Sep 18 07:48:20 man I seem to have aproblem Sep 18 07:48:52 the aproblem is with animation a textview, I want it to move to the center of the screen and then increase in size by a factor of some proportion I have Sep 18 07:49:14 it's doing that, but only after it moves to a little BEFORE the center, and then seems to enlarge and finally sit at the center Sep 18 07:49:43 so it moves to 0 + 10, then back to zero, with full size enlarged Sep 18 08:01:06 Morning Friends.... i'm having a little problem, please help... i used holo.light theme but whenever i run my programme, it will generate error, i'm using 'com.android.support:appcompat-v7:19.+' please is there a way to change the support library Sep 18 08:10:17 because "reports an error" totally says it all Sep 18 08:28:12 i wish to use rxjava to monitor an edittext, when the text changes it should fire a networkrequest to fetch some data. Im not quite sure how to approach this, how do i let it 'wait' for new queries? Or rather, into what do i feed the string from onTextChanged() ? Sep 18 08:28:47 i think there should be some object on my activity that i feed these strings Sep 18 08:34:58 but how do i set up this Observable such that i can pass a string to it, at random moments? Sep 18 08:44:54 hi Sep 18 08:46:13 hey Sep 18 08:47:03 anyone using gradle on jenkins? I have a strange issue: from jenkins I setup a job with gradle script which fails due " Ambiguous method overloading for method java.io.File#" but if I run the gradlew from command line in the jenkins workspace project dir, it works ok Sep 18 08:49:18 i see from console output the same path of the gradlew with same arguments that I pass by command line, so it looks very strange to me. It should be this https://android-review.googlesource.com/#/c/106850 but from the shell side works Sep 18 09:15:32 hey guys! Sep 18 09:15:38 need some direction. Sep 18 09:15:43 I need to record h.264 video, but the source of this will be a stream of images, not the camera. Sep 18 09:15:48 I saw MediaRecorder, and confused as to what MediaSource.DEFAULT is as opposed to .CAMERA. Sep 18 09:15:54 any direction as to h264 encoding from a set of images would be hugely appreciated :) Sep 18 09:17:15 hey bro :) Sep 18 09:17:28 hey PSVilis Sep 18 09:17:31 :) Sep 18 09:17:34 oh hey :D Sep 18 09:17:47 PSvils, ok, so, the thing is, MediaRecorder is meant to just interface with camera hardware and other such hardware Sep 18 09:17:52 so you can't use it to do what you want Sep 18 09:17:58 you'll have to use MediaCodec APIs Sep 18 09:18:02 had to make sure I'm in the right chanel :) Sep 18 09:18:11 Hello. Can anyone tell me when I should use applicationId when defining specific flavors in the gradle? Sep 18 09:18:24 PSvils, sadly, it's not the most documented and elegant API out there Sep 18 09:18:27 but this should help alot: https://github.com/google/grafika Sep 18 09:18:31 alright :) Sep 18 09:18:35 And when i should use packageName instead. Sep 18 09:18:36 will start by checking that out Sep 18 09:19:21 Mavrik: from what you know, should it be relatively easy to squish a series of jpegs inside an avi/h264 container? :) Sep 18 09:19:46 well, "relativfely" Sep 18 09:19:51 :D Sep 18 09:20:09 you'll have to do jpeg -> colorspace conversion -> mediacodec (to encode to H.264) -> muxer (to mux into mp4 or whatnot) Sep 18 09:20:22 aha, ok! Sep 18 09:21:03 Hello friends.. please how can i blur image Sep 18 09:21:13 lastly...MediaCodec is able to encode to h264 then yea? :) Sep 18 09:21:21 I've been getting confused when googling this stuff. Sep 18 09:21:28 PSvils, yes, mediacodec is the interface to hardware encoder on device Sep 18 09:21:33 perfecto :) Sep 18 09:21:35 H.264 is something you have on the device Sep 18 09:21:52 PSvils, just note that it's only available since 4.1 and reliable since 4.2 or so :) Sep 18 09:22:02 well that changes things :D Sep 18 09:22:06 other option is using ffmpeg or something, but that will burn CPU instead of HW encoder Sep 18 09:22:10 but it's way more compatible :) Sep 18 09:22:26 okay, yeah, ffmpeg was the first option I looked into :) Sep 18 09:22:31 thanks for the heads up eh! Sep 18 09:25:35 hackable: have you tried google ? Sep 18 09:25:38 http://www.jhlabs.com/ip/blurring.html Sep 18 09:26:03 there's even a renderscript intrisic Sep 18 09:28:19 does anyone see a problem with this view animation? http://pastebin.com/Nr67n7aJ Sep 18 09:28:32 i have another one that’s almost identical, and it works fine… this one doesn’t animate, it just jumps into place Sep 18 09:31:27 Mavrik: what did you mean by unstable regarding MediaCodec on Jellybean? :) Can't find good sources on that. Sep 18 09:31:50 there's some issues with supported color spaces (when decoding) and some other things like that Sep 18 09:31:53 also no MP4 muxer IRIC Sep 18 09:31:55 *IIRC Sep 18 09:32:13 ah okay, but when it comes to encoding it should be okay? sorry to bug you so much :/ Sep 18 09:32:48 GrecKo: yes... i've try google but there's alot of stuff their... thinking on which one to use to blur the image Sep 18 09:33:05 have you read my link ? Sep 18 09:33:18 try them all and decide for yourself? Sep 18 09:33:46 Is tehre any difference using Application as static or with getApplication() Sep 18 09:34:14 that would depend highly on the specifics of your "static" usage Sep 18 09:34:38 Hello friends.. please how can i blur image Sep 18 09:35:08 thinking of renderscript... !! Sep 18 09:35:29 wow, did you just ask the exact same question after already been given answers? Sep 18 09:35:33 good grief Sep 18 09:36:27 he asked that same question yesterdey when I was leaving work Sep 18 09:37:34 obviously he thinks this channel is here to deal with his laziness Sep 18 09:37:41 not the first time he's doing this either Sep 18 09:38:53 now there's a thought: http://www.engadget.com/2014/09/14/sidewalk-lane-china/ Sep 18 09:39:10 PSvils, I haven't actually used it in production so I don't really know :/ Sep 18 09:42:34 Mavrik: hopefully I'll find out then :) Sep 18 09:57:42 Anyone here used Koush's AndroidAsync? Sep 18 10:01:00 any specific question or issue? Sep 18 10:02:51 I'm using AsyncHttpServer to serve up an audio file and an image to Chromecast Sep 18 10:02:57 Recent changes in ChromeCast Sep 18 10:03:53 Have caused an issue where it seems the url for the image is cached, and so when songs change and a new image needs to be hosted - it's not recognising the need to update the artwork, since the url remains the same Sep 18 10:04:56 have a random url? lol Sep 18 10:05:11 /image.jpg?whatever=364521376 Sep 18 10:05:31 so usually, I call HttpAsyncserver.get("/image", myserverCallback"), and it's sufficient, because "/image" is the path Sep 18 10:05:51 But now, I want to pass something like you've said above, "image/somerandomnumbers" Sep 18 10:06:15 Hi, I have a Service register a BroadcastReceiver, which starts an IntentService. When the Receiver kills the Service after starting the IntentService will the IntentService work independent cause it has its own Thread, or will it also be killed? Sep 18 10:06:19 But because my AsyncHttpServer callback is only 'listening' for "/image", the Callback isn't called Sep 18 10:06:41 can you register for /image/* ? Sep 18 10:06:48 I tried that Sep 18 10:06:58 So yeah, now we're caught up to the crux of the issue Sep 18 10:07:15 Even though it takes a regex, the callback isn't called if I pass in a wildcard Sep 18 10:07:27 so it does take a regex? Sep 18 10:07:33 in that case, /image/.* Sep 18 10:07:35 I'm out of my depth with this terminology, so sorry for the shitty explanation Sep 18 10:07:52 Yeah it does. So what does the period do there? Sep 18 10:08:09 google it? Sep 18 10:08:17 OK lol Sep 18 10:08:20 regex syntax has been fairly stable for many years now :p Sep 18 10:09:41 So, would you save me the trouble and just briefly tell me what the difference is between * and .* Sep 18 10:09:59 they are the same thing Sep 18 10:10:09 "*" is shell glob syntax, ".*" is regex syntax Sep 18 10:10:17 Oh, OK Sep 18 10:11:08 I'm extremely unfamiliar with regex etc. But I always assumed the ',' was related to the extension Sep 18 10:11:25 '.' * Sep 18 10:11:29 byt89, not sure I follow, but a thread cannot exist outside some context Sep 18 10:11:45 timusus, that's why the former is called "shell glob", which has nothing to do with regexes Sep 18 10:11:51 regexes have no concept of file names or extensions Sep 18 10:12:43 OK. Well, I really appreciate your help. I didn't know where else to go! Sep 18 10:12:52 but seriously, best way to get familiar is to just google and read, this channel is not inteded to be a substitute for your own reading ;) Sep 18 10:13:17 Weird thing about this channel is it's always assumed that that's what goes on Sep 18 10:13:20 for this specific case, .* should work; for any other regex issues, google is the way :p Sep 18 10:13:39 I've figuratively googles my ass off for the last couple of hours Sep 18 10:13:43 googled* Sep 18 10:13:56 So this channel is a last resort for me Sep 18 10:14:15 couldn't find any regex tutorials? :p Sep 18 10:14:18 But it always comes through! Thanks again - looks like it's working Sep 18 10:14:27 it is often the case though, so can't really blame the channel Sep 18 10:14:33 I wasn't looking for regex tutorials. I wasn't even sure regex was the way to go Sep 18 10:14:40 lol, ok Sep 18 10:14:44 please, how can i reload a website programmatically Sep 18 10:14:44 well anyway, glad it worked Sep 18 10:15:32 I was trying to figure out if it's bad to add a new HttpServerRequest each time I loaded a new image (and assumed it was), trying to figure out if wildcards were even allowed in the method, trying to understand what the hell regex even means Sep 18 10:15:53 I see Sep 18 10:16:01 you seem exceptionally fresh to all this Sep 18 10:16:03 no wonder Sep 18 10:16:26 So I actually did get into a bit of regex in my searches, but I mean, I wasn't going to spend 6 hours or so becoming a regex expert to discover that I just needed to put a period in front of my wildcard Sep 18 10:16:51 I don't know.. I've been doing Android dev for about 2 years. But always as a hobby, and I'm self taught with no prior programming knowledge. Sep 18 10:17:02 I know almost nothing outside of Android/Java unfortuunately. Sep 18 10:17:15 But I'm getting there.. And when I need to know more about regex, I'll be head down in some tutorials. Sep 18 10:17:53 android/java has very good regex support, so time to dig in, or else you can't say you know the platform well :p Sep 18 10:18:28 * ravilov is self-taught too, but has by now vast experience in various shell and unix related stuff, hence the intimate knowledge of regexes Sep 18 10:18:33 timusus: http://xkcd.com/1171/ Sep 18 10:18:41 hey there, has anybody experiences with icon fonts not getting loaded in a webview if a custom user agent is set? (talking pre 4.4 webviews, the chrome ohne works well) Sep 18 10:19:00 Yeah, fair enough. I'm not gonna argue with that, you sound like you've got plenty of experience on me. Sep 18 10:19:46 timusus, it's okay, sooner or later you'll inevitably have to dig into this stuff, it's a good thing you seem ready for it instead of trying to avoid it Sep 18 10:19:52 But.. you can only learn so much in one sitting! Now I know that regex is something I need to look into Sep 18 10:19:58 Yeah, exactly. Sep 18 10:20:36 I'm not someone who would usually go for the quick fix and forget about it. I just had no idea if I was even heading in the right direction. Sep 18 10:20:44 And holy shit did you answer my question quickly. Sep 18 10:21:09 as soon as you mentioned it supports regexes, for me the answer was right there in plain sight ;) Sep 18 10:21:19 Haha. Well, I do really appreciate it. Sep 18 10:24:37 so today I discovered that android textview has coloured glyphs and that it sucks with arbitrary background colours ;) Sep 18 10:24:55 http://eclipser.xmms2.org/asdf.png vs http://eclipser.xmms2.org/asdf2.png Sep 18 10:26:07 Hello, Could someone help me with the following please? =] I am trying to use AIDL between a Service and Client app, I can get the service to bind and am getting the ServiceConnected event (after a min delay though), but when I try and pass data from the Service to the Client via a Callback Interface I get a NullPointerException. Sep 18 10:26:21 Here is a breakdown on whats happening: http://pastebin.com/F8J4MVTz Sep 18 10:26:22 Zharf, I'm guessing that's why glyphs have contrasty borders, so they would work reasonably well with any background... but of course, within reason Sep 18 10:28:03 ravilov, yeah, the finger's a good example of that, but the office building just sucks :) Sep 18 10:28:27 SkAzZ, I just get the service object from the connection and then use that to call arbitrary functions in the service which can return any kind of data :) Sep 18 10:28:42 is the service yours or is it 3rd-party? Sep 18 10:29:02 The service is mine but the client is going to be third party eventually Sep 18 10:30:20 then dunno, I'd say do it the way I suggested if you have control over both ends Sep 18 10:30:23 seems the simplest Sep 18 10:37:55 ravilov: Thanks for the info =] I do however want to keep the Service AIDL separate from the Client Callback because the functions are Asynchronous, I just can't figure out why the Callback interface cannot read the data from the parcel... Sep 18 10:38:00 Do I have to do anything with Intent's or Intent Filters for the client callback? I am just implementing the Callback Stub and sending the instance to the Service. Sep 18 10:39:16 Anyone knows how I can make a specific build flavor not include a class? Or perhaps it won't be included into the APK if I don't use the class ? Sep 18 10:41:40 hi everyone Sep 18 10:42:18 is it possible to have (in an xml layout) a viewpager inside of a drawerlayout? Sep 18 10:42:49 sorry this is very fundamental, but when i do this: Point newOffset = gridOffset;, then change a value for newOffset, does gridOffset change? vice versa? Sep 18 10:43:08 yes it does Sep 18 10:43:17 also yes, this is very fundamental - look up references in java Sep 18 10:43:27 yeah will do, thanks Sep 18 10:43:47 it doesn’t seem to behave like that in obj-c Sep 18 10:43:48 SkAzZ, no idea, I've never done it this way, sorry Sep 18 10:44:13 ultra-, pretty sure it doesn't work that way in python or perl either, what's your point? :p Sep 18 10:44:42 i guess my point is that it’s hard to remember these differences between languages… this project also uses python :) Sep 18 10:45:08 keep a cheatsheet nearby :p Sep 18 10:45:28 i should get some of that chalkboard paint for the walls Sep 18 10:46:04 schematics on one wall, code stuff on another Sep 18 10:47:35 at least it'd be easy to tell which room is yours Sep 18 10:48:24 yeah if the playroom for my 10 year old had code all over the walls, i’d start planning an earlier retirement Sep 18 10:50:46 I can see that happening though (code in his room), evenyually you'll run out of wall room, and then what? Sep 18 10:50:54 so when i make an assignment like that and the variable i assigned it from goes out of scope, it just holds the value? Sep 18 10:51:08 well i guess i’ll just buy him a computer then, and retire Sep 18 10:51:36 java is reference-based language, so long as there's some variable in scope, the value is retained Sep 18 10:51:47 gotcha Sep 18 10:52:11 this is also exactly how GC works, when an object drops out of scope, it is marked as a GC candidate Sep 18 10:53:55 but the one that goes out of scope won’t overwrite later and change the value of one kept, right? Sep 18 10:54:10 i think C works that way… it’s been a while since i used C though Sep 18 10:54:28 i’m sure i’d have seen some junk values by now if it worked that way Sep 18 10:56:17 if you've used C before, just think pointers, it's pretty much equivalent for all (or most) intets and purposes Sep 18 10:57:11 ok Sep 18 10:57:33 used C plenty for microcontrollers, it’s been about two years but i kind of remember Sep 18 10:57:51 too much to learn, but i just took a new job and now i’ll have more time :) Sep 18 10:58:11 sounds kind of backwards Sep 18 10:58:48 not at all, i’ve been a cable technician for 13 years and that job will consume your life Sep 18 10:59:03 i’m not a professional programmer, unless you count selling a few ios/android apps Sep 18 10:59:53 now i’m finally using my electronics degrees and i’ll be testing machine control equipment with a good, regular schedule Sep 18 11:02:38 I see Sep 18 11:08:25 can I implement actionbar.TabListener inside of a fragment (instead of implementing it inside of a the main activity)? Sep 18 11:20:26 in other words, can I have actionbar inside of a fragment instead of it being inside of the main activity? Sep 18 11:22:48 does any one have a gallery, or a list of "app's first screen" for design inspiration ? Sep 18 11:24:21 h4k1m, at the very least I'm sure you can proxy the call from the activity to the fragment Sep 18 11:24:56 ravilov: I'm reading on stackoverflow: http://stackoverflow.com/questions/7700226/display-fragment-viewpager-within-a-fragment?lq=1 that I can achieve it with asyncTask Sep 18 11:33:25 please, how can i reload a website programmatically Sep 18 11:33:31 webview Sep 18 11:34:27 WebView.reload() ? Sep 18 11:35:38 VnM: something like that? Sep 18 11:35:43 VnM, just let him figure it out on his own for once, he has a nasty habit of only ever asking pretty dumb and very easily googlable questions Sep 18 11:36:12 and he's asking things over and over and over again Sep 18 11:36:51 VnM: thanks Sep 18 11:37:14 i'm trying to upload a file with https and it fails, throwing SSLException exception - anyone had this issue? Sep 18 11:37:57 is your certificate self-signed? that could easily be a problem Sep 18 11:38:01 weird thing is that it happens only after certain file size Sep 18 11:38:04 yea it is Sep 18 11:38:33 I bet that's the problem Sep 18 11:38:39 why would it be? Sep 18 11:39:57 multiline for EditText Sep 18 11:40:00 Please... Sep 18 11:40:33 sol__: if its self signed you have to trust it. Sep 18 11:41:02 also some servers reject file upload via https above a specific file size (see you apache / php whatever settings) Sep 18 11:43:23 a friend of mine had this exact same issue, not android related at all, there were no server limits (that we knew of), the upload worked fine over regular http... only culprit we could find is self-signed certs Sep 18 11:45:20 yeah you have to trust them. If you cant afford an ssl certificate best option is to add it to the apk and let your phone be the signing instance Sep 18 11:46:05 please dont follow all those stupid tutorials making the app trust everything. thats like adding ssl and shouting out a key to decrypt Sep 18 11:46:27 lol Sep 18 11:46:44 might as well not use ssl at all Sep 18 11:46:48 yep Sep 18 11:46:52 hackable: this channel is not your personal google. Please try to research your questions before asking Sep 18 11:47:04 unfortunately there are many tuts mentioning that as a valid way.. Sep 18 11:47:45 even on stack overflow. Sep 18 11:48:17 hello guys I have a situation on my app that I simulate a led, it has 3 stages, off, on and blinking. I did the blink with animation drawble. I want it stop on the "off stage" someone know how I do that Sep 18 11:48:31 http://paste.debian.net/121723/ Sep 18 11:48:41 that is the code Sep 18 11:49:04 well, SO is useful and has plenty of resources and solutions, but it's not always the be-all end-all ;) Sep 18 11:50:48 PsciCOdeliXHAt, just force it to off when you stop the animation? after all that's pretty much what hardware circuits do as well Sep 18 11:52:14 ravilov: I did... Sep 18 11:52:27 * ravilov can't look at any code right now Sep 18 11:52:32 not working, I don't why Sep 18 11:52:40 ravilov: Ok...thank you anyway Sep 18 12:02:17 is it possible to turn of SACK on android somehow? from api level? Sep 18 12:03:07 *off Sep 18 12:03:30 SACK as in? Sep 18 12:03:34 dianull: what's SACK? Sep 18 12:04:08 selective ACK (tcp) Sep 18 12:04:15 sorry Sep 18 12:05:53 probably not without rooting Sep 18 12:06:35 yeah probably Sep 18 12:06:41 and with rooting? Sep 18 12:06:56 just to test it turning it off would solve the problem Sep 18 12:07:00 *if Sep 18 12:07:06 dianull: sysctl net.ipv4.tcp_sack=0 Sep 18 12:07:28 Does someone now a good geofence example which uses the LocationServices and not LocationClient? Sep 18 12:12:22 p_l: thx Sep 18 12:14:19 ravilov: have you figured what the issue was with the self signed certs? or it just started working when you used other certs? Sep 18 12:16:21 sol__, it wasn't my project, I think the guy just gave up on ssl uploads Sep 18 12:24:26 Please help... confused! Sep 18 12:24:46 whenever i click on the navigation drawer icon, nothing happen... http://pastebin.com/qgerCmNZ Sep 18 12:24:51 please help me... http://pastebin.com/qgerCmNZ Sep 18 12:32:13 got it,.. thanks Sep 18 12:43:03 Another question for you guys.. I've got a custom Checkbox, I'm just extending the Checbox call, overriding onDraw and drawing my own drawable onto the canvas.. But, if I don't set any padding, the Checkbox is invisible. Question is, why does this occur, and how much padding do I need to set for each respective side of the drawable? Sep 18 12:43:42 extending Checkbox* Sep 18 12:50:05 Anyone know how to determine what the correct padding is to set on a CompoundButton when drawing it on a canvas? Sep 18 12:56:41 do you think there will be a nexus 6 soon? :D Sep 18 12:56:47 (or 5+ if that's the case) Sep 18 12:56:57 sure, why not Sep 18 12:58:00 timusus, View.getPadding{Left|Right|Top|Bottom}() Sep 18 12:58:18 there is also getPadding{Start|End}() but I'm not sure what's that for Sep 18 12:58:32 Sorry, what are you saying I should do with that? Sep 18 12:58:47 start and end padding is for RTL layouts Sep 18 12:59:40 Bascially I'm drawing a checkbox on a canvas. If I don't set a padding of ~50 on for paddingRight (programmatically), I don't see my checkbox (or it gets cutoff Sep 18 12:59:47 Is there any way to set view to "monochrome" mode ? Sep 18 12:59:50 timusus: RTL? Sep 18 12:59:55 Right to left Sep 18 12:59:58 Arabic and such Sep 18 13:00:02 ah, sure Sep 18 13:00:32 oh sorry, you're asking how to determine what padding to set, not how to get already set padding Sep 18 13:00:58 yeah no idea, I had a similar issue at one point, I just hardcoded what seemed reasonable for my situation :) Sep 18 13:01:09 Yeah Sep 18 13:01:32 Well, I did the same, but users are screenshotting their checkboxes being 'cut off' Sep 18 13:01:44 Doesn´t Android account for that if you set the direction to RTL for the checkbox? Sep 18 13:02:07 Account for what Sep 18 13:02:43 Hello guys, someone know how When I stop a animation drawble I change frame to initial state (position) Sep 18 13:03:11 The padding being needed for the element to be put in view properly Sep 18 13:04:35 Well, no. If I don't specify padding here, it doesn't display Sep 18 13:05:07 I'm not using RTL here, for the record Sep 18 13:05:53 It just seems like.. the CompoundButton class doesn't give itself any space to be drawn in Sep 18 13:08:56 wouldn't that depend on your specific layout and/or the containing viewgroup? Sep 18 13:11:02 hi guys, i have built my app and need to test it on 2.3.x android machines but can't find Android 2.3 (API 9) in my android sdk manager , how can i resolve this issue? Sep 18 13:12:08 here is the screenshot of my android sdk manager http://snag.gy/yYLWO.jpg Sep 18 13:12:50 anyone can help solve this Sep 18 13:14:46 can I test and use the material design with my apps and test it on a non-rooted nexus 4? Sep 18 13:14:59 Hi all. BroadcastReceivers of an app can receive signals evem when the app isn't running, right? AFAIK, you have to register them at the system. BUT, are they cleaned up anyway? Or can an app mess up the system with lots of registration? Sep 18 13:15:03 I suppose it does not work since material design is for APIs 20+, nexus 4 is max. API 19, right? Sep 18 13:15:34 what's that have to do with having root? Sep 18 13:16:06 you can always test it in the emulator Sep 18 13:16:32 jerng, receivers declared in the manifest yes, receivers created dynamically no Sep 18 13:17:17 so there is a way to "mess" up the system? Are those receivers un-registered after deinstallation of the app? Sep 18 13:20:29 of course Sep 18 13:20:55 the whole entire VM holding the process is destroyed when the app is uninstalled Sep 18 13:21:45 it's kind of like asking are the receivers unregistered when you reboot the device, lol Sep 18 13:27:08 can I update genymotion virtual machine with free verison? Sep 18 13:27:56 i got "genymotion version and virtual device version do not match" message and cannot click "update" button Sep 18 13:28:04 my verison is 2.2 Sep 18 13:29:21 this might be the first time I have downloaded an Android Studio update and not had it break anything Sep 18 13:31:09 trying to use rxjava to download a file in the background, but i notice the func to do this is still called on the main thread. what could i do wrong? https://gist.github.com/anonymous/faedf2b95175477dea58 Sep 18 13:33:10 Is there any way to change colored View to "monochrome" mode t.i. remove all colors ? Sep 18 13:35:57 osxorgate, not sure how rx works internally but nothing in your code suggests any secondary thread, why don't you simply create a thread yourself and do your stuff in there? Sep 18 13:36:06 vegetablesalad19, not in any easy way as far as I know Sep 18 13:36:15 ravilov: Schedulers.io() should do that Sep 18 13:39:14 kam_away: i have to ask, is your name a reference to Kill la Kill? Sep 18 13:47:06 @xximjason AS updates haven't broken anything of mine for about 6 months Sep 18 13:57:59 I'm make a imagebuttom blanking with animation drawble but I getting problems with that, because I don't know when it finish.. Sep 18 13:58:26 is anyone of you already using exclusively android studio? Sep 18 13:58:45 or like: everyone here except me is still sticking with eclipse+ADT? <___< Sep 18 13:58:51 eclipse :( Sep 18 13:58:56 eclipse Sep 18 13:59:03 i mean, i am using AS Sep 18 13:59:11 (and intellij) Sep 18 13:59:23 I have installed it but not using Sep 18 14:00:05 someone know another way to do a bliking imagebutton, not using animation drawble Sep 18 14:00:40 use Handler and update "manually"? Sep 18 14:01:01 i am not sure if gifs/pngs also work, i think they do though you might need a library Sep 18 14:01:07 animated * Sep 18 14:01:25 gifs should be very nice... Sep 18 14:01:32 I'll try Sep 18 14:04:23 people here don't want to use gifs in the app Sep 18 14:05:12 lol. android app complies in debug but in release does not because of error Sep 18 14:05:50 that doesn't happen... Sep 18 14:06:46 smart_ptr: I'm using AS, I pretty much use Intellij for all my projects regardless of language Sep 18 14:07:52 in debug it accepts inner DialogFragments to be not static, in release it does not Sep 18 14:11:36 is there a way to get the list of SMSs via adb? Sep 18 14:14:17 not really Sep 18 14:16:40 meital: This channel is for application development. Sep 18 14:17:09 gdrc, that doesn't matter release or debug Sep 18 14:17:26 gdrc, and for that matter, that will crash on config changr Sep 18 14:20:19 ravilov: thanks for your answer! Sep 18 14:29:38 * xximjasonxx is agitated Sep 18 14:30:24 do you know how to properly test an android library with unit tests with gradle? I haven't understood how to do it without roboletric, my gradle file is this http://pastebin.com/p2mKqt30 Sep 18 14:31:13 I have several tests as ServiceTestCase under androidTest dir Sep 18 14:39:51 are there possible instances that referencing a color wouldn't work and using hex would work instead? Sep 18 14:40:52 explain Sep 18 14:44:34 I'm trying to theme snapchat with the theme chooser and I can't change the background color for the life of me Sep 18 14:45:19 I've seen instances where hex has been used instead of referencing the color and wasn't sure of the reasoning Sep 18 14:46:35 and since nothing has worked as of yet, I started to wonder lol Sep 18 14:46:54 I've dealt with themes some, but I haven't yet seen a case where one works and the other one doesn't Sep 18 14:48:08 Cisco AnyConnect for Windows might be the worst piece of software I have ever had the misfortune of using Sep 18 14:48:14 and I ran Windows ME back in the day Sep 18 14:48:42 I see... Sep 18 14:48:57 * ravilov is waiting for some relation to android Sep 18 14:49:05 there will be none Sep 18 14:49:27 unless you count that i am using it so I can test the API the android app is talking to Sep 18 14:49:36 yeah same. just a thought lol Sep 18 14:49:42 back to the drawing board Sep 18 15:03:57 I wish the android dialer apps went through better usability studies Sep 18 15:04:05 stupid call option buttons are way too close to the hangup button Sep 18 15:04:16 pfn: Yeah Sep 18 15:04:33 pfn: I'm hoping L will fix stuff like that Sep 18 15:04:41 I've hung up important calls way too often when wanting to open up the numpad or mute options Sep 18 15:04:48 or output (speaker/handset/bluetooth) buttons Sep 18 15:04:58 Hello, anyone using here gradle to build a test project? I'm trying to compile the libs specific for the test project androidTestCompile fileTree(include: '*.jar', dir: 'src/androidTest/libs') but this doesn't seem to do it, but if I use compile files() then everything works. Any ideas? Sep 18 15:06:52 How to get a GCM sender ID. I cannot find any project number in the google developers console Sep 18 15:07:16 vedu, It's also in the browser's url Sep 18 15:08:01 compengi: actually its not anymore. but i just found it. thanks :) Sep 18 15:09:31 vedu, it is https://console.developers.google.com/project/{PROJECT_ID} Sep 18 15:09:39 hi Sep 18 15:09:45 is this screenshot from a sample? https://www.dropbox.com/s/9laoouzefjze0dg/Screenshot%202014-09-18%2017.09.10.png?dl=0 Sep 18 15:09:47 https://developer.android.com/preview/material/index.html Sep 18 15:11:07 so i'd like to base a new project on this layout :d Sep 18 15:12:15 Gradle question - is there a way to adjust an task's fields depending on build type? I.e. for an Exec task: commandLine 'echo ${buildType}' Sep 18 15:13:28 I want to be able to have debug and release tasks both depend on a new custom task, and have it alter some settings based on which mode it's in Sep 18 15:13:39 does that make sense, or do I need two tasks? Sep 18 15:13:51 Hi all, how can I go about giving actionbar tabs a dynamic width? Sep 18 15:14:26 Anyone know how to get padding to work on the progressspinner in the actionbar? Sep 18 15:14:35 android:paddingRight didn't work Sep 18 15:14:53 My company needs a bluetooth android compatible little printer. Do you know any? Sep 18 15:15:24 Mrdarknezz: can you check the resource in the theme? Sep 18 15:16:26 xximjasonxx: this is what I got now https://gist.github.com/anonymous/24e949882561c3825b35 Sep 18 15:16:49 xximjasonxx: the other properties work but not the padding one Sep 18 15:17:24 Mrdarknezz: right, i am just wondering if that is an image Sep 18 15:17:36 if you think about the actionbar, not allowing users to much with the padding makes sense Sep 18 15:17:59 xximjasonxx: Yeah but it looks like shit to not having any padding on it Sep 18 15:18:21 Should I put padding on the actual actionbar? Sep 18 15:19:36 Mrdarknezz: did you see this? http://stackoverflow.com/questions/15519818/indeterminateprogressbar-in-actionbar-styling-padding-issue Sep 18 15:20:42 xximjasonxx: Ohh sorry, missed that one Sep 18 15:21:12 np Sep 18 15:31:17 I want to display data in a table with row and column headers. The headers should be visible all the time and the content should be scrollable (not only horizontal and vertical). Do you know a library for this use case? (Example: Spreadsheets in office applications). Sep 18 15:31:57 I am not searching for workarounds like WebView or ListViews in ListViews with ListViews. What I tried, but also don't like: TwoDScrollView with TableLayout and ViewPager with multiple Fragments (but it didn't work and would also be a hack). Sep 18 15:36:24 hi again Sep 18 15:37:32 hello again Sep 18 15:37:57 is it possible to have a viewpager inside a fragment with each tab-button sending an argument (in a bundle)? Sep 18 15:38:13 to the same fragment the viewpager is inside Sep 18 15:39:40 Hi all, how can I go about giving actionbar tabs a dynamic width? Sep 18 15:40:10 i used to hate git and tolerate tfs Sep 18 15:40:15 not i cannot tolerate tfs and i love git Sep 18 15:40:34 android-dev571: elaborate Sep 18 15:41:12 android-dev571: have you managed to have the fragment containing the tab, calling this same fragment? Sep 18 15:42:02 Does anyone know where in the Android source an activity is destroyed when an unhandled onConfigurationChanged event occurs? Sep 18 15:43:25 xximjasonxx: All tabs are currently ~ 150dp wide at the moment - as a result really long labels are being clipped. I need the tabs to have a dynamic width so that whatever label I use will fit on a single line. I'd also like to align them to the left of the actionbar if possible but that isn't vital. Sep 18 15:43:36 The Activity source mentions destruction but doesn't seem to actually do the destroying (though I only did a quick scan to check so far) Sep 18 15:44:07 android-dev571: hrmm, custom action bar? Sep 18 15:45:16 xximjasonxx: Nope - code for the activity is here » https://gist.github.com/anonymous/d63b79e153d43a84098c Sep 18 15:47:56 Im trying to build a dead simple example. Can't figure out what is wrong. Quite new to eclipse as an editor and compiler. http://pastebin.com/RKakZJZg row 9 gives me the error: Syntax error, insert ";" to complete LocalVariableDeclarationStatement Sep 18 15:48:40 I'm looking for ways I can relyable simulate network limitations on my phone Sep 18 15:48:52 JakeWharton may i ask at Square register app button for keyboard are made of Buttons or just clickable views? Sep 18 15:48:56 In Visual Studio sometimes the error log shows old errors even if you recompile, but that doesn't seem to be the issue here Sep 18 15:49:07 ArcaneWater: those are the same thing Sep 18 15:49:37 I know you can simulate the network speed in the emulator, but I can't simulate some of the other conditions I need there Sep 18 15:49:55 JakeWharton Yeah i realized right before i sent so they are button with custom drawables Sep 18 15:50:02 which keyboard? Sep 18 15:50:09 the number pad? Sep 18 15:51:27 oh JakeWharton? howdy Sep 18 15:52:37 xximjasonxx: Any thoughts? Sep 18 15:53:09 negative Sep 18 15:53:17 my only thought would be to check the styling of the tab items Sep 18 15:55:08 Syzygy_: If you have an iPhone they have some neat network test cases if you tether it's connection to the android Sep 18 15:55:38 didn't think of that yet. good idea Sep 18 15:55:48 I was looking for something like their network conditioner Sep 18 15:56:27 please, how do i solve this porblem... having problem with Egit, how to push file to git from ecplise Sep 18 15:56:27 If i have two app (signed with the same key) that each defines identical AccountAuthentictors, will they play nice together? Sep 18 15:56:32 JakeWharton yea the numberpad Sep 18 15:57:24 yeah they're either Buttons or TextViews (which are really just the same exact thing) and our own drawable Sep 18 15:58:13 JakeWharton too bad there isnt any Library for this, i used KeyboardView but its realy not viable for things like thath :) Sep 18 16:03:34 ArcaneWater: It's just 12 buttons in a grid with a callback for numbers. Shouldn't be too hard to pull off Sep 18 16:29:15 Hey, does anyone know about samsung wearable SAP and is willing to help me out a bit? Sep 18 16:30:13 I'm really stuck here Sep 18 16:30:49 Picasso can do gifs right? Or is it only Ion? Sep 18 16:40:27 can anyone explain to me how to use ViewPager as a filter in a ListView? Sep 18 16:43:58 hey! problem: my app crashes, when i try to inspect a webview via google chrome dev-tools. any ideas? Sep 18 16:44:22 Hey! Listen! Sep 18 16:50:13 anyone with Samsung SAP experience? I'm trying to send a string message from a samsung phone to a samsung gear2 and it's failing and I have no idea what else to try Sep 18 16:50:52 whats the error AryKay Sep 18 16:50:54 m8 Sep 18 16:51:40 Well, the connection doesn't even get established Sep 18 16:52:01 I don't know how to push my string to the device Sep 18 16:52:58 Anyone know if onError called by retrofit with observables always execute on the thread they failed on (Executors.newCachedThreadPool), or is there a way to pass them back to the UI thread? I have observable.observeOn(AndroidHandler.mainThread()). Sep 18 16:53:25 it gets called on the observing thread Sep 18 16:53:34 so the main thread in your case Sep 18 16:54:31 intellij/AS question - say you have two models with a lot of similar fields (with the same visibility), is there a refactor to create a base class from the two models? Sep 18 16:54:36 I have a breakpoint in there and it show that it's being run on the thread spawned in Platform Sep 18 16:55:23 defaultHttpExecutor r.run() Sep 18 16:55:51 `i dont know AryKay Sep 18 16:56:15 JacobTabak: "extract superclass" gets you there for one of them, then you can just extend in the second one and delete the duplicates. I'm not sure if there's a way that takes into account both source classes. Sep 18 16:56:36 i have a lot of fields, dont want to manually find the ones that are similar :( Sep 18 16:56:59 but thanks Sep 18 16:57:28 that will save some time at least Sep 18 17:06:36 JakeWharton: Does it matter where in the chaining of observables where observeOn is placed? Sep 18 17:06:40 yes Sep 18 17:06:46 Always the last one? Sep 18 17:06:52 for safety, yes Sep 18 17:07:01 cool, thanks Sep 18 17:07:36 JakeWharton: random question. I noticed in some libraires when chaining you put // after the call. What's the reason for that? Sep 18 17:07:45 prevent IJ from unwrapping Sep 18 17:08:01 when you reformat Sep 18 17:08:21 Oh, ok. Thanks Sep 18 17:10:01 Hey, anyone here experienced with NFC and Google Wallet? Sep 18 17:10:19 I want to be able to invoke a google wallet payment with another phone Sep 18 17:10:42 phone A has the wallet, phone B accepts payment from google wallet over NFC Sep 18 17:11:07 I made an app that can read smartcard data but it doesn’t invoke the google wallet app Sep 18 17:11:18 there is some handshake that is not happening Sep 18 17:12:24 I pass my the MainActivity as a context in one of my functions, however I have crashlog where the context is null. can I prevent that with a simple if(!activity.isFinishing()) condition? Sep 18 17:13:23 eh not sure. why not run it in a thread and call if(!thread.isAlive()) Sep 18 17:14:18 isFinishing() is called after finish() but before onDestroy() Sep 18 17:14:26 it's a broadcast receiver. I would rather not involve this with threads Sep 18 17:14:52 yeah i see your point Sep 18 17:15:45 you can put a message handler in the broadcast receiver maybe? and send a message from the activity indicating that the context will be null Sep 18 17:16:02 or you can try{}catch{} the NPE on that part of code Sep 18 17:16:04 just check context for null? Sep 18 17:16:16 many different things you can do ^^ Sep 18 17:16:34 nto sure what exactly you’re doing… Sep 18 17:16:44 canvs2321, that's what I'm doing now, but if this is caused by the activity or the app finishing it might be better to check for isFinishing() Sep 18 17:19:02 What reasons could there be that imeOptions="actionSend" set on my EditText field do not show a send button? Sep 18 17:20:13 is the button inside the edittext? Sep 18 17:20:50 Syzygy_: depending on what you are doing in your method, if context==null, does it matter the how? or just that it's null so don't access it and continue? Sep 18 17:21:11 imeOptions=“actionSend” puts a send button on your soft keyboard Sep 18 17:21:16 tricknology: yeah Sep 18 17:21:20 no it Sep 18 17:21:31 it's not, you can nest buttons into EditText fields? Sep 18 17:21:39 I noticed WhatsApp & Co. also do not have a send button Sep 18 17:21:48 canvs2321, it helps understanding what's actually going on for anyone who looks at this in the future Sep 18 17:21:51 yes you can Sep 18 17:22:40 http://www.androidpolice.com/2014/09/18/google-will-now-require-all-app-publishers-with-paid-apps-or-in-app-purchases-to-have-an-address-on-file-in-google-play/ Sep 18 17:22:51 http://stackoverflow.com/questions/10829124/clickable-button-or-any-view-inside-edittext-in-android Sep 18 17:23:07 " After you've added an address, it will be available on your app's detail page to all users on Google Play." ... are you fucking kidding me google ? Sep 18 17:23:20 WTF Sep 18 17:23:32 123 Fake St. Sep 18 17:23:44 Reasonable for actual companies Sep 18 17:23:58 Not for someone making apps out of their bedroom Sep 18 17:24:07 problem is most android devs are hobbyists - according to the last survey anyhow Sep 18 17:24:30 "bench in park" Sep 18 17:25:51 Which is changing quickly Sep 18 17:25:59 there is huge demand for Android Devs in the States Sep 18 17:26:20 I get recruiters hitting up my LinkedIn abou twice weekly Sep 18 17:26:44 heh, nice Sep 18 17:26:58 tricknology me too, but the recruiters are morons Sep 18 17:27:05 tricknology: but that's not required, is it? Sep 18 17:27:08 had someone try to recruit me at an office party this week Sep 18 17:27:10 haha generally they don’t know jack Sep 18 17:27:14 where's my send button *cry* Sep 18 17:27:31 what not required? Sep 18 17:28:18 nesting the buttons into edit text fields? Sep 18 17:28:23 you don thave to.. you can Sep 18 17:28:31 but to get what you want you jsut need that parameter Sep 18 17:28:34 tricknology: so that the send button shows up, that I put a button inside the EditText tag Sep 18 17:28:49 then I don't get it why it's not displayed Sep 18 17:28:55 (if what you want is a send button on the soft keyboard) Sep 18 17:29:09 maybe you are invoking a different keyboard after the layout is inflated? Sep 18 17:29:15 platzhirsch: is your edittext single line or multi? that may affect the send button, if they have a multiline edittext that needs enter button Sep 18 17:29:52 canvas knows what’s up Sep 18 17:30:28 canvs2321: oh yes, it is Sep 18 17:32:02 canvs2321: thanks man Sep 18 17:32:40 yep Sep 18 17:33:24 So.. anyone with NFC experience? Sep 18 17:33:38 Google Wallet, etc Sep 18 17:39:16 Does anyone know if json handles the beep char? Sep 18 17:39:24 * g00s wonders - make app free to get around supplying home address Sep 18 17:39:45 I need a delimiter for some json data that can't be inputed by the user, just wondering if it'll break the json to use the beep char? Sep 18 17:40:08 which is beep char? Sep 18 17:40:10 it shouldnt Sep 18 17:40:25 think its like char beep = (char) 007; Sep 18 17:40:37 it will break on , “ {} [] Sep 18 17:41:27 cool Sep 18 17:41:49 Can someone tell me what I can do to check if a CloseableIterator in ormlite is already closed? Sep 18 17:41:50 another option (good for circumventing any injection) is to clean the user input Sep 18 17:41:58 so liek space is not %20 Sep 18 17:42:13 now* Sep 18 17:42:42 or you can change it to java source like colon becomes “\u003A" Sep 18 17:43:23 or UTF-32 Sep 18 17:43:34 then you can use any char you want Sep 18 17:43:35 hi Sep 18 17:43:48 i am having a problem with using OnClick in Fragments Sep 18 17:44:11 you might run into an iussue where that char doesnt show up on the other end or gets translated through whatever other protocl its being sent Sep 18 17:47:04 ather: http://catb.org/~esr/faqs/smart-questions.html#beprecise Sep 18 17:47:05 sorry Sep 18 17:47:17 http://pastebin.com/cNQYh9QK Sep 18 17:47:20 this is the code Sep 18 17:47:23 for MainActivity Sep 18 17:47:49 i've used imageview1.setOnClickListener(new Button.OnClickListener() { Sep 18 17:48:00 lasserix: just use csv. Most any csv encoder should support enclosing a field with quotes if it contains a comma Sep 18 17:48:13 (and escaping any quotes already contained in the field) Sep 18 17:48:43 or use a better input->json mapping, so you don't try to put multiple user fields into a single json field Sep 18 17:49:41 http://pastebin.com/T3G7gGaA Sep 18 17:49:45 this is the code im using Sep 18 17:49:55 JesusFreke: csv? Sep 18 17:49:59 its working in a normal UI, but not in fragment ;/ Sep 18 17:50:07 lasserix: comma seperated values.. Sep 18 17:50:18 Yea, uh problem is the data has commas Sep 18 17:50:26 ie if it is address data, or name with title Sep 18 17:50:39 yes. in which case, it surrounds the field with quotes Sep 18 17:50:53 and escapes any quotes in the field, if neede Sep 18 17:50:56 d Sep 18 17:51:03 does the decoder handle this too? Sep 18 17:51:07 change those commas to UTF-32 and parse them out on the other end Sep 18 17:51:09 yes, it would have to Sep 18 17:51:23 ather: http://catb.org/~esr/faqs/smart-questions.html Sep 18 17:51:26 or parse them to java source Sep 18 17:51:31 tricknology: can't json goes into a thing that oinly handles utf-8 Sep 18 17:51:47 ok then UTF-8 Sep 18 17:52:05 dafuq Sep 18 17:52:10 0x2C = comma Sep 18 17:52:13 or 2c Sep 18 17:52:14 what more should i describe? Sep 18 17:52:49 ather: where is your imageview, in your activity or fragment? Sep 18 17:53:06 ive tried in activity Sep 18 17:53:07 then your jsonobject is like {"JSON": "Hello0x2c World"}. Sep 18 17:53:07 and fragment Sep 18 17:53:11 but the app FC's Sep 18 17:53:13 on startup Sep 18 17:53:14 instead of {"JSON": "Hello, World"}. Sep 18 17:53:15 ather: wow..not even bother to say what trouble youhaving..EPIC FAIL Sep 18 17:53:27 comma wont break the jsonobject if its in “,” Sep 18 17:53:32 i.e. string Sep 18 17:53:42 Description Resource Path Location Type Sep 18 17:53:42 Syntax error on token "setOnClickListener", = expected after this token MainActivity.java /radio.desistan/src/ather/radio/desistan line 41 Java Problem Sep 18 17:53:54 public class MainActivity extends Activity Sep 18 17:53:55 implements NavigationDrawerFragment.NavigationDrawerCallbacks { Sep 18 17:53:55 final ImageView imageview1 = (ImageView) findViewById(R.id.imageView1); Sep 18 17:53:55 Sep 18 17:53:55 imageview1.setOnClickListener(new Button.OnClickListener() { Sep 18 17:53:55 public void onClick(View v) { Sep 18 17:53:55 Toast.makeText(getApplicationContext(), "Playing....", Toast.LENGTH_LONG).show(); Sep 18 17:53:56 } Sep 18 17:53:56 }); Sep 18 17:54:01 ather: don't paste in channel Sep 18 17:54:02 pastebin ather.. Sep 18 17:54:02 use pastebin Sep 18 17:54:05 sorry Sep 18 17:54:38 where is your onclick listener? Sep 18 17:54:43 looks like you forgot a = Sep 18 17:55:27 where would it go? Sep 18 17:55:29 Button.OnClick should be just View.OnClick, and you should be finding the imageview in onCreate after setting layout, not outside Sep 18 17:55:36 hmm Sep 18 17:55:45 ^ canvas saves the day Sep 18 17:58:53 i changed it to view.onclick Sep 18 17:58:58 ather - make a function called initUI() that initializes all your buttons and stuff, call it from onCreate() Sep 18 17:59:05 hmm Sep 18 17:59:25 if you have a lot of onClick listeners, make another method called initClickListeners() and put them in there Sep 18 17:59:26 and moved the code to setContentView(R.layout.activity_main); Sep 18 17:59:34 call it after initUI Sep 18 17:59:38 no its just 2 imageView Sep 18 17:59:41 it really helps clean up code Sep 18 17:59:48 Play/stop Sep 18 17:59:50 ok.. well for future reference Sep 18 18:00:10 can you write up some example? Sep 18 18:00:10 programmign best practices if you will. everyone has their own way though Sep 18 18:04:29 here Sep 18 18:04:30 http://pastebin.com/ShwDWzqU Sep 18 18:05:12 you can even make your own class that extends View.onClickListener Sep 18 18:05:36 so it becomes button1.setOnClickListener(mClickListener); Sep 18 18:06:20 but then you have to do things with the view tags or the view ID in a case statement to decipher which view was clicked because it will be calling the same listener every time Sep 18 18:07:23 hmm Sep 18 18:07:25 thanks Sep 18 18:07:34 np, hope you find it useful Sep 18 18:07:42 there is tons of stuff you can do like that in Android Sep 18 18:08:04 if you havent already.. look into passing a Messages to a Handler Sep 18 18:08:09 Message* Sep 18 18:08:27 When I discovered it I thought it was the most fantastic thing ever Sep 18 18:08:35 oh lemme Sep 18 18:08:48 instead of passing data between classes via intent and startactivity Sep 18 18:09:15 you can just pass a message with an int identifier and use a case in the handler to decipher what the message is supposed to do Sep 18 18:09:23 and you can pass data through it in bundles Sep 18 18:09:34 gets rid of doing something like Sep 18 18:10:07 Foo f = new Foo(Bar.this) Sep 18 18:10:33 err new Foo(Bar.class) Sep 18 18:10:40 cyclic references i think theyre called Sep 18 18:10:54 where you pass A to B from A and B modifies A Sep 18 18:11:48 going to lunch, happy coding Sep 18 18:37:36 hm. so i just logged into Play Developer Console and i'm not seeing that under 'current alerts' Sep 18 18:37:50 maybe google already knows i'm practically homeless .... Sep 18 18:39:20 you're not seeing what? Sep 18 18:39:28 unless they are just taking some information from the merchant account (already there) and posting it on the Play store listing Sep 18 18:39:41 JesusFreke http://www.androidpolice.com/2014/09/18/google-will-now-require-all-app-publishers-with-paid-apps-or-in-app-purchases-to-have-an-address-on-file-in-google-play/ Sep 18 18:40:06 i think this is the bit that pisses everyone off " After you've added an address, it will be available on your app's detail page to all users on Google Play." Sep 18 18:40:29 oh wait, there it is i see it now under the megaphone icon Sep 18 18:40:48 so you won't make bad apps, and have them come to your door and beat your head in Sep 18 18:47:35 has an android dev been swatted yet ? Sep 18 18:50:45 what are some good ways to update an Activity's UI elements from a Service? like a Binder will let me call methods of the Service from my Activity, but I'm looking more for something analogous to the publishProgress() method in AsyncTask Sep 18 18:51:06 sigmabeta if you google that, you'l pull up like 10 techniques Sep 18 18:51:38 so its a subject thats been beaten to death ;) Sep 18 18:51:53 sigmabeta, interface->callback, activity registers listener in service via binder Sep 18 18:52:02 if it's slow you could also use intents Sep 18 18:52:05 g00s, which is why I'm asking. 10 is a lot of different techniques to prototype Sep 18 18:52:29 darken, it is somewhat time sensitive, ergo avoiding intents / broadcast receivers would be a plus Sep 18 18:52:44 a listener could work Sep 18 18:53:02 Google should stop treating developers like it's endulging them, i hope a developer gets robbed because of this and sues Google Sep 18 18:53:11 sigmabeta, what privacy issue, make it explicit intents Sep 18 18:53:37 I don't think he said anything about privacy :) Sep 18 18:53:43 ...yeah, i didn't either Sep 18 18:53:46 ah Sep 18 18:53:49 time sensitive Sep 18 18:53:51 sorry :) Sep 18 18:53:51 * sigmabeta is pretty confused by that, actually Sep 18 18:54:04 read to fast, skipped the "time" Sep 18 18:54:06 oh i see where you'er going with that Sep 18 18:54:27 then do a listener, that's what i did Sep 18 18:54:31 works pretty well Sep 18 18:54:38 yeah it's looking like a good idea Sep 18 18:54:41 I would look into posting a message to a Handler that the activity creates Sep 18 18:54:50 if you're wanting to avoid broadcasts Sep 18 18:55:17 got multiple workers in a service, fragments register for different ones, + a bit a logic into which Handler the UI update gets posted Sep 18 18:55:23 Of course, the question then is how to get a reference to the Handler in the Service.. and make sure that you don't hold onto that reference after the activity is dead Sep 18 18:55:50 JesusFreke, you don't, the service just does the callback and the one that registers for it, should handle the UIThread issue Sep 18 18:56:33 maybe something like new ServiceProgressCallback(pass handler here) {...} Sep 18 18:57:15 so my mental problem was Sep 18 18:57:33 for some reason my brain was locked into this idea that a binder would provide the communication only one way Sep 18 18:57:48 hence why the idea of passing a listener didn't come up Sep 18 18:57:58 For an internal service, you really don't need/want to use a binder Sep 18 18:58:02 You can pass anything through a binder including your grandmother :), it's just a custom object Sep 18 18:58:17 JesusFreke, why is that? Sep 18 18:58:28 because it's an IPC mechanism Sep 18 18:58:39 no need to do IPC if everything is in-process Sep 18 18:58:47 How would you access the service then? Sep 18 18:58:52 JesusFreke, are you sure you're thinking of the right class? Sep 18 18:59:08 darken: return a custom Binder object from onBind, and add a method to get a reference to the service Sep 18 18:59:14 then just call methods on the service directly Sep 18 18:59:19 rather than actually going over binder Sep 18 18:59:21 from google's docs: If your service is used only by the local application and does not need to work across processes, then you can implement your own Binder class that provides your client direct access to public methods in the service Sep 18 18:59:23 which is what we are talking about? Sep 18 18:59:38 sigmabeta: yes, that's what I'm talking about :) Sep 18 18:59:52 yeah single-proc services are so much easier Sep 18 18:59:54 yeah i thought this was what darken was suggesting Sep 18 19:00:06 sigmabeta, i was Sep 18 19:00:18 Well, you're not actually using binder (the ipc mechanism) in that case Sep 18 19:00:23 MRW: https://www.youtube.com/watch?v=PDXrXBsTFSE Sep 18 19:00:52 right, you do binder.getservice() and then do all the stuff using the returned service object Sep 18 19:01:43 you can just define function in the extended binder class too, i think this is just a naming confusing Sep 18 19:02:28 I have not worked cross processes with services yet so I can say how one actually uses a binder then there Sep 18 19:02:40 so here's something that i've wondered Sep 18 19:02:48 im supposed to make an app to get my final grade in this course im taking Sep 18 19:02:53 so far i made a simple contacts app Sep 18 19:02:54 but extending the Binder class that gets passed the activity, is what i was talking about Sep 18 19:02:58 how is all this binding nonsense different/better than just having a singleton Service Sep 18 19:03:06 yeah, that's fine Sep 18 19:03:07 basic database manipulation, but the professor says its not enough Sep 18 19:03:17 does anyone have any suggestions what i can add to it to make it a bit more original? Sep 18 19:03:33 i cant think of anything good when im sober Sep 18 19:03:39 a service including it's binder has a lifecycle, using a singleton doesn't really deal with that Sep 18 19:04:12 LighterFluid, favoritable, contact groups, tags, searchable, Sep 18 19:04:39 Shake to call random contact Sep 18 19:04:41 thats pretty good actually Sep 18 19:04:41 :) Sep 18 19:04:48 LighterFluid, what is the course topic? Sep 18 19:04:50 i might exclude the last one lol Sep 18 19:04:59 just plain android development Sep 18 19:05:08 its kinda basic, we didnt do much Sep 18 19:05:16 but i gotta show that i know something Sep 18 19:05:21 apparently, a simple contacts app aint enough Sep 18 19:06:04 LighterFluid, he's not wrong, that's pretty boiler plate stuff, you can probably do better Sep 18 19:06:17 yeah, i thought the same thing Sep 18 19:06:22 darken's suggestions are good Sep 18 19:06:25 but i got a coders block lol Sep 18 19:06:32 yeah, im probably gonna do something like that Sep 18 19:06:39 i dont understand the tags part Sep 18 19:06:42 what does that mean? Sep 18 19:06:55 so you have jenny Sep 18 19:07:01 jenny is a cunt, you tag jenny as cunt Sep 18 19:07:08 if you search for cunt, jenny show sup Sep 18 19:07:09 LighterFluid, being able to mark 5-6 contacts as being "awesome friends" or "study group" Sep 18 19:07:21 oh, alright Sep 18 19:07:23 i can do that, too Sep 18 19:07:28 hah, i retract what I said about darken's suggestions being blanket-statement good Sep 18 19:07:33 thanks guys, you never fail me :) Sep 18 19:07:36 call statistics, contact notes, instant google maps lookup, profile autocompletion through web parsing, NFC contact sharing, blue tooth contact sharing, contacts <-> csv export/import, itunes style contact picture flip through, themable Sep 18 19:08:03 I'm using HorizontalVariableListView ( https://github.com/sephiroth74/HorizontalVariableListView ) and I wanna make it circular ( when it reaches the end to start from the beginning again ). Any ideas or another library ? Sep 18 19:08:24 profile picture instagram filters, automatic requests to have contacts send you a favorable picture Sep 18 19:08:44 all that stuff is way beyond my capabilities Sep 18 19:08:54 different display methods for phone numbers, country code auto insert Sep 18 19:08:56 and i got till monday to get it done Sep 18 19:09:12 LighterFluid, no it isn't. if you've got basic database manipulation down, you can make your contacts list searchable easily. Sep 18 19:09:17 country flag/language display depending on counter code Sep 18 19:09:26 *country Sep 18 19:09:41 that's information you already have and can modify the UI accordingly Sep 18 19:09:42 LighterFluid, if you can make the list searchable, "tag" would just be another database field to be able to search by, just one where the content is user-generated. Sep 18 19:10:04 maybe even auto detecting local vs mobile calls via numbers Sep 18 19:10:17 i aint trying to woo him :) Sep 18 19:10:20 just get a passing grade Sep 18 19:10:36 but you want 5 stars review, don't you :D? Sep 18 19:10:48 LighterFluid, I think searchability is your "passing grade", tags is your B-A Sep 18 19:10:52 hah, no man Sep 18 19:11:01 he should give you 5 stars, give you an A, and buy the pro version Sep 18 19:11:02 yeah, ill add those Sep 18 19:11:12 he's a stingy cunt Sep 18 19:11:29 then make sure he's auto tagged as that when he inputs his number Sep 18 19:11:30 casual misogyny will probably put you back down to a C :/ Sep 18 19:11:32 but i reckon if i get this done, i'll be in the clear Sep 18 19:12:03 autorequesting a favorable picture that gets automaticly parsed from email and set is actually neat Sep 18 19:12:07 has no one done that yet? Sep 18 19:13:20 usually making an app pretty put's it above most other apps, at least in the last course i took Sep 18 19:14:41 couldn't actually do anything else because they didn't check whether the API we had to work with worked Sep 18 19:14:46 it didn't :') Sep 18 19:17:20 sigmabeta, that wasn't about misogyny, next time I'll use Carl as example, Carl is a dick :) Sep 18 19:18:37 LighterFluid, automaticly display the local emergency numbers based on current GPS coordinates Sep 18 19:19:22 but thats probably something that sucks debugging till monday Sep 18 19:25:33 Anyone use trove library? Sep 18 19:42:30 would it be possible to assign a different ringtone for contacts with an app or service ? Sep 18 19:42:44 a different ringtone for each contact if you want Sep 18 19:42:51 Hey everyone. I was trying to remove my keystore passkey, and Android Studio let me enter blanks for the password. However, when I try to open the jks, it wants a password, and entering blank is not an option. Any idea if it's possible to resolve this, or did Android Studio completely F my key? Sep 18 19:44:39 hi everybody. Can anybody tell me if and how it's possible to sign a release APK in Windows using a keystore generated on a mac? Because there is no .keystore file, instead I only have a .jks file... Sep 18 19:44:54 yes Sep 18 19:45:01 evident i believe so Sep 18 19:45:18 not sure if you can edit the .keystore file though. mac does weird things with the permissions cross platform Sep 18 19:45:27 Does a service by default run in the application's main ui thread, similar to activities etc? Sep 18 19:45:30 good idea would be to put it on SVN if you can Sep 18 19:45:36 no Sep 18 19:46:06 they run in the main thread of their hosting process Sep 18 19:46:10 so yeah sorry Sep 18 19:46:20 it should spawn its own thread Sep 18 19:46:25 http://developer.android.com/reference/android/app/Service.html Sep 18 19:46:26 tricknology: would the other way around work easier? If I generate the keystore in windows, and use that on a mac? (Doesn't matter yet since no app version is in the Play Store yet) Sep 18 19:46:29 I know I should spawn. Sep 18 19:46:47 I'm trying to understand how android processes work. Sep 18 19:47:06 What about local broadcast receivers? Sep 18 19:47:29 evident, it might be. all i know is that i tried to import a project made in mac on a PC and it was read-only, i couldnt change it on the PC Sep 18 19:47:31 If I broadcast a local message to myself, will it end up being received on the same thread? Sep 18 19:47:44 if you register a broadcast receiver on that thread Sep 18 19:47:56 it will be received wherever you register a receiver for it Sep 18 19:48:01 ok thank you tricknology ... I'll try and see which way works better Sep 18 19:48:15 Anyone in here have experience with NFC? Sep 18 19:48:17 tricknology: I register it on my applicationContext. Sep 18 19:48:40 But since it's local.. Sep 18 19:48:55 have your receiver spawn a thread Sep 18 19:49:12 if its doing any heavy lifting Sep 18 19:49:12 why? Sep 18 19:49:16 Right. Sep 18 19:49:25 because it can hang the main thread Sep 18 19:49:26 Still, I'm just trying to understand what's going on. Sep 18 19:49:55 Threads' onPreExecute and onPostExecute are on the main thread too, right? Sep 18 19:49:59 you send a broadcast from a thread. Android is sitting there listening for broadcasts and passes is to whoever is registered to receive them Sep 18 19:50:05 new Aphex Twin is out Sep 18 19:50:12 just wanted to get that out there Sep 18 19:50:16 it passes the info to that receiver and your code executes Sep 18 19:50:34 got a link Sicp? Sep 18 19:50:40 no Sep 18 19:50:44 pm yea Sep 18 19:50:49 Zta u talking about async task? Sep 18 19:51:48 onpreexecute and post is on the UI Sep 18 19:52:01 I've just beginning to realize that I might have over-complicated something. Sep 18 19:52:02 doinbackground is only one on BG thread Sep 18 19:52:10 it happens :) Sep 18 19:52:11 UI == main? Sep 18 19:52:14 yeah Sep 18 19:52:40 only in android though Sep 18 19:52:44 What about those Notification thingies. What thread are they on? App main or something else? Sep 18 19:53:12 Ah, that question was too vague... Sep 18 19:53:13 aah i think it’s different Sep 18 19:53:22 ive never had to ask myself that lol Sep 18 19:54:28 Could anyone give me some advice? I have a sqlite db table that is used only for reading but now I need another table for writing. Should I be opening the whole db in read/write or is there any way to limit to which table I can write or something like that? Sep 18 19:54:44 Zta: it would be your MainActivity class for example Sep 18 19:54:52 I have an app with a service that does standard background stuff, let's say check for mail. Mail is received, and it creates a notification. The notification contains an intent with a broadcast intent, so that when the not. is clicked, the event is fired ... Sep 18 19:55:27 but i think notifications travel through the android OS Sep 18 19:56:17 I basically want that intent to open an activity. So I register a receiver within my app, actually in it's Application's onCreate() so that I'm sure it's done. Oh, and I have a BootUpReceiver that makes sure the service is always started. Anyway... Sep 18 19:56:32 Zta: any incoming broadcast will be on the main thread Sep 18 19:56:37 The Application receives the intent and starts the activity. Does that sound about right+ Sep 18 19:56:37 ? Sep 18 19:57:39 JesusFreke: good. So no complex threading is involves with start app -> register broadcast receiver -> start service -> create notification -> broadcast intent -> receive intent -> start activity ? Sep 18 19:57:46 actually, not totally true. You could dynamically register a broadcast receiver that handles them on a different thread, via http://developer.android.com/reference/android/content/Context.html#registerReceiver(android.content.BroadcastReceiver, android.content.IntentFilter, java.lang.String, android.os.Handler) Sep 18 19:57:57 All in same thread (except perhaps for displaying the notification, which is probably done my android) Sep 18 19:58:09 Yeah, looks like it should all be in the same thread Sep 18 19:58:21 thanks. Sep 18 19:59:45 Perhaps a little late I discovered this, but .. better late than never .. I guess. Sep 18 20:02:16 yes Zta, if you haven’t already, check out Handler and Message while you’re at it. It may help you in your implementation Sep 18 20:02:34 thanks. Sep 18 20:02:49 I'm off Zz.z.. Sep 18 20:02:53 I use that excessively Sep 18 20:02:57 is it..correct? Sep 18 20:03:12 like I have my handler and there's a switch handling about say 13 messages Sep 18 20:03:14 for UI stuff Sep 18 20:03:28 haha I do too. It’s the easiest way I’ve found, especially with fragments Sep 18 20:03:33 in my threads I send stuff .. Sep 18 20:03:36 lol Sep 18 20:03:47 jsut be careful modifying static stuff Sep 18 20:03:52 or don’t Sep 18 20:03:54 besides you get that error that only the view that created these elements can touch it Sep 18 20:04:03 you *have* to do it that way Sep 18 20:04:03 use Handler.callback() Sep 18 20:04:11 yeah Sep 18 20:04:35 StingRay_, what do you think?> ok to use Message and Handler excessively? Sep 18 20:05:18 tricknology question is flawed :) Sep 18 20:05:33 tricknology how many times exactly is too many massages in a day ? Sep 18 20:05:44 Log.e(TAG,excessively) Sep 18 20:05:54 7844 Sep 18 20:05:59 lel Sep 18 20:06:03 lol say you use it almost everywhere? Sep 18 20:06:10 any time a fragment is involved? Sep 18 20:06:17 manipulating the UI? Sep 18 20:06:26 everywhere where an UI-independent thread is running Sep 18 20:06:31 ^ Sep 18 20:06:35 and you need from it to manipulate UI Sep 18 20:06:38 you have to, no question Sep 18 20:06:56 or services.. Sep 18 20:07:03 tricknology still a flawed question with no solid context Sep 18 20:07:07 or broadcasts Sep 18 20:07:20 is there anything better? Sep 18 20:07:21 but broadcasts will bite you hard if you test with Don't Keep Activities Sep 18 20:07:27 they will simply fail Sep 18 20:08:12 Sicp what ? a broadcast will not fail … only thing you can do is have nothing listen to it Sep 18 20:08:26 the intention behind it will fail is what I mean Sep 18 20:08:35 what you hope to achieve will not be achieved, since the listener is dead Sep 18 20:08:43 well no, depends Sep 18 20:08:56 explain? Sep 18 20:09:08 cause lately I had to go through figuring out when Don't Keep Activities was turned on Sep 18 20:09:17 instead of restructuring....let's say a lot of code Sep 18 20:09:52 later I would implement proper hierarchy for navigation, but if it can be done without pain with broadcasts, I'd love to know Sep 18 20:10:13 hello, is it possible to receive long press events on background? Sep 18 20:10:48 I would think so? pakcjo Sep 18 20:11:46 pakcjo do you mean in a service ? Sep 18 20:11:52 if so then no Sep 18 20:12:23 StingRay_: yes Sep 18 20:12:31 pakcjo then no :) Sep 18 20:12:41 a simple google search would tell you that Sep 18 20:13:27 StingRay_: :( I can get a simple press that I use to wake up the app, but a long press lauches google's voice recognition Sep 18 20:14:37 well you can register listeners for …erm…dunno, brand/device defined buttons, but I think lots of the time this is down to the manuf. … like MEDIA_BUTTON etc Sep 18 20:14:46 but dont know enough about it personally, never done it Sep 18 20:14:50 or wanted to Sep 18 20:14:53 is possible to add a custom style from a different folder? i have a generated res folder but i dont like like using it as my main app resource folder Sep 18 20:15:21 thanks Sep 18 20:15:32 styles? Sep 18 20:15:56 in values Sep 18 20:16:15 I've added a jar to my gradle project, but i still have to get it to include the jar in the classpath, how can i do this with gradle? Sep 18 20:16:25 ljsdhfakl Sep 18 20:16:25 so i paste the res folder in styles? Sep 18 20:16:31 nono Sep 18 20:16:39 res/values/styles.xml Sep 18 20:17:00 put your styles in there Sep 18 20:17:03 it has all kind of images, so its a complete /res/ folder Sep 18 20:17:10 well, out for tonight Sep 18 20:17:13 and i dont want all in my default res Sep 18 20:17:29 eeeh never done that Sep 18 20:17:49 oh ok Sep 18 20:18:03 you can make a txt file of uris to the resources you want to load.. but that seems like a lof of effort, there has to be a better way Sep 18 20:18:27 maybe adding it to android default themes Sep 18 20:18:37 so itll handle it from there Sep 18 20:19:49 cliffreich: I'm not sure about doing it via gradle or whatever, but aapt itself allows this Sep 18 20:20:12 you can specify multiple resource directories with multiple -S options to the "aapt p" command Sep 18 20:22:12 ok ill google about that with gradle. maybe... Sep 18 20:25:02 maybe will work with gradle Sep 18 20:29:17 rookie question, does services have more limitations than apps or less? Or do they answer to the same permission protocol? Sep 18 20:29:54 and do they have the same rendering and access possibilites Sep 18 20:30:04 maybe not rendering but access Sep 18 20:38:43 hey, say that you want to get just one reading from a sensor; is it ok to unregister your sensor listener in the onsensorchanged event? Sep 18 20:44:55 ah crap.. guys.. anyone know how to get the logcat filters window back up? I lost mine somehow Sep 18 20:45:33 i see the logcat window.. but the filters window is gone Sep 18 20:50:57 oh jeez Sep 18 20:50:58 found it Sep 18 20:55:05 hey guys. newbie here. question: i have a main activity and a mapactivity that extends fragmentActivity (where i override onCreate and onResume). from the main activity i do a setContentView to the mapview. the mapactivity onCreate function doesn't seem to be executing like i would expect it to Sep 18 20:55:21 i'm guessing setContentView is not what i want? Sep 18 20:56:53 tsukasa_ that made no sense to me, but only just woke up, but sounds like you are setting content in an Activity to be an Activity ? crazy stuff Sep 18 20:56:55 :) Sep 18 20:58:03 StingRay_ i am probably doing it wrong. i have a login screen and after the login screen i want it to load a map. so i have a map fragment and a class where i copied the default template android map stuff into. the map loads when i do a setContentView but the onCreate stuff doesn't seem to be executing Sep 18 20:58:30 i am guessing instead of setContentView i have to fire an intent? i'm new to the android way of things Sep 18 20:58:31 still not making any sense Sep 18 20:58:38 how can i clarify Sep 18 20:58:48 couple of sweeping statements , fragmentActivity is not a fragment, setContentView is for a View Sep 18 20:59:48 ok, that makes sense. so instead of doing setContentView to the map view do i have to call my class which then changes the content view? Sep 18 21:00:11 a view will belong to an activity Sep 18 21:00:26 you guys are speaking 2 different languages Sep 18 21:00:34 tsukasa_: you should download a map sample Sep 18 21:00:37 and an activity is basically a screen? so i fire an intent to launch the other activity? Sep 18 21:00:46 tsukasa_ you start it yes Sep 18 21:00:53 or use fragments Sep 18 21:01:00 but yes, for you, start it Sep 18 21:01:09 ok that is probably what i'm doing wrong Sep 18 21:01:12 lol thanks Sep 18 21:01:12 or do what JacobTabak said, download the sample Sep 18 21:01:36 cause seems like you are very confused on a few basics, that will very likely trip you up constantly Sep 18 21:01:37 yeah i have downloaded a few. just didn't recognize that connection Sep 18 21:01:43 yep Sep 18 21:03:22 is there a way to refresh a view after using AddRule on a relativelayout layoutparam? Sep 18 21:03:46 doens’t seem to be updating properly, if i call removeview (view), addview (view), it’ll update the layout properly with the janky remove/add animation Sep 18 21:03:59 calling invalidate doesn’t seem to work Sep 18 21:04:57 anyone know of a string resource manager for android, similar to Zeta Resource Editor? Sep 18 21:05:10 Sixmsj getting and setting them again would cause layout Sep 18 21:05:31 OniSpawn: do you just want a pretty UI? what are you trying to do? the tools in android studio are pretty great Sep 18 21:05:32 what do you mean by that StingRay_ ? Sep 18 21:05:57 Sixmsj I mean pretty much what I said Sep 18 21:05:59 :) Sep 18 21:06:08 Sixmsj what part is not clear ? Sep 18 21:06:09 I just want it to auto merge any changes from my english strings.xml to all the other language strings.xml Sep 18 21:06:13 the getting and setting part Sep 18 21:06:19 like findviewbyid? Sep 18 21:06:23 getLayoutParams setLayoutParams Sep 18 21:06:29 OniSpawn: you want to duplicate your english strings in other strings files? Sep 18 21:06:33 what’s the point of that? Sep 18 21:06:38 ah lemme try that StingRay_, sounds right Sep 18 21:07:02 Sixmsj hang on, how are you adding a rule if you are not doing that ?? Sep 18 21:07:06 Im fine with that. Its just so I dont accidentally miss one Sep 18 21:07:14 stingray he’s prly modifying the existing layout params Sep 18 21:07:29 that’s what im doing JacobTabak Sep 18 21:07:31 OniSpawn: lint warns you if you don’t have strings in other language files Sep 18 21:07:52 Sixmsj pastebin cause maybe you are doing it a bit...odd Sep 18 21:08:06 it’s working StingRay_ :D Sep 18 21:08:23 hmm.. must be a setting Im missing cause mine doesn't Sep 18 21:08:36 are you using AS onispawn? Sep 18 21:08:38 Sixmsj yes but pastebin cause you should be able to do it a little better Sep 18 21:08:58 yea. intellij ultimate Sep 18 21:09:04 OniSpawn: gradle? Sep 18 21:09:10 yep Sep 18 21:09:14 ./gradlew lint Sep 18 21:09:41 will write an HTML report for you Sep 18 21:09:58 StingRay_: http://pastebin.com/bJCx5uBN , excuse the c# Sep 18 21:10:03 Ill look into that. thanks Sep 18 21:11:57 Sixmsj you probably dont yeah leave it like that, you could just ((RelaviteLayout)view.getLayoutParams()).addRule() but dont suppose it matters that much Sep 18 21:12:27 thanks StingRay_ :) Sep 18 21:12:35 i was scratching my head at that, so obvious all along Sep 18 21:12:53 well no, you should not need to set them again Sep 18 21:13:04 btw Sixmsj heres the source for setLayoutPArams http://pastebin.com/2MgBftSK Sep 18 21:13:09 modify would/should work while attached to the view Sep 18 21:13:13 it does a lot more than just modifying a property on existing layout params Sep 18 21:14:11 StingRay_: that’s what i thought at first, that you didnt need to set the layout again if it’s already attached to the view Sep 18 21:14:39 well yeah but depends on if layout happens after Sep 18 21:16:04 Hey everybody Sep 18 21:16:07 how's life? Sep 18 21:20:17 good ! Sep 18 21:34:30 the class passed to registerMediaButtonEventReceiver() must be declared in the manifest as well? Sep 18 21:35:37 hey anyone have any idea on how to connect to a device via LAN and send serial commands to it? Sep 18 21:35:46 this is way out of my scope Sep 18 21:36:54 Alright folks. I clicked something in Android Studio in an attempt to clear my keystore password. Android Studio did SOMETHING, but the thing is, I for the life of me cannot even find the dialog anymore where I did this. It was a screen that let me change the keystone password, or "reset" it (although I don't know what that even means). The screen has completely disappeared. All I know is that I definitely know what the keystone password w Sep 18 21:36:54 and Android Studio did something to it. Am I going crazy? Sep 18 21:37:54 Never touched Android Studio btu I do hope you have a backup of that Keystore.. Sep 18 21:38:18 I'm making an android unity plugin. I have a native modeless dialog overlaid on top of an unity view. This's works and allows me to to touch both the view and the game. However if i hit the home button and return to the app I get a unity view that is blank and the dialog still present. Dismissing the dialog fixes it however I was wondering if there was a way to prevent it from happening all together? Sep 18 21:38:43 nope, it's gone Sep 18 21:40:02 I just don't understand why I can't find a single reference to this screen online. It most definitely let me change the password. How else could I have mangled my keystone file?! And yet there is no sign of this dialog ever existing. Sep 18 21:41:46 if I pass an activity to registerMediaButtonEventReceiver() in which method would I get the event? (while in background?) Sep 18 21:47:08 * g00s wondering how developers can protest the Play store address details change Sep 18 21:47:22 i guess we could all just let the deadline pass and let google delist everything Sep 18 21:48:11 i could change my promo graphic / descriptin to mention the app is being delisted by google Sep 18 21:48:33 could just sell it on amazon market Sep 18 21:51:41 So is Robotium the best Android testing library out there? Sep 18 21:53:12 hey Sep 18 21:54:15 Any idea about this getView() of ListAdapter? http://ideone.com/GQf9vg Sep 18 21:54:37 The items are random, but they are not fixed. E.g. if i delete a list entry all others change too :O Sep 18 21:56:19 smart_ptr erm well getRandomThingyLine() needs to do what you want right Sep 18 21:56:24 nothing to do with getView Sep 18 21:56:37 it basically returns a random string Sep 18 21:56:42 change it to be, "less/not" random Sep 18 21:56:58 based on what? :/ Sep 18 21:57:23 erm whatever, I'm not designing the data structure here Sep 18 21:57:25 lol Sep 18 21:57:29 ok Sep 18 21:58:00 if you ask it for a random string and you want it to return a random string you cant complain when it returns a random string Sep 18 21:58:31 I'm making an android unity plugin. I have a native modeless dialog overlaid on top of an unity view. This's works and allows me to to touch both the view and the game. However if i hit the home button and return to the app I get a unity view that is blank and the dialog still present. Dismissing the dialog fixes it however I was wondering if there was a way to prevent it from happening all together? Sep 18 21:59:21 android-dev880 dismiss that dialog onPause ? Sep 18 22:01:19 hi all, i know how to check if a pendingIntent is registered as repeating alarm (for instance, when the app is closed and re-started). BUT is there also a way to get the parameters (intervall) of that registered intent? Sep 18 22:02:06 where can I ask about development with the NDK? Sep 18 22:02:33 tried that and it does stop the issue from hapening. But I would like the dialog to stay up in between the pause. I have tried dismissing and the restoring the dialog however that looks visually bad on my device because it makes the keyboard appear, disappear and then reappear. Sep 18 22:03:10 android-dev880 then control the keyboard Sep 18 22:03:21 holy shit, larry ellison is stepping down CEO of Oracle Sep 18 22:03:36 maybe he should be CEO of google, and reform the company Sep 18 22:03:42 Hello, I have a project. I am trying to use the trove collections library. it comes with a jar, which I've addas a dependency from lib folder in the builscript, but I can't figure out how to link the jar as the classpath, how can i do this? Sep 18 22:06:00 are there any viable mmWave technologies coming to mobile devices any time soon ? Sep 18 22:09:05 g00s: did you see he's getting replaced by two ceos Sep 18 22:09:14 goodbye oracle Sep 18 22:10:53 ankhwatcher maybe he needs more time to start his own country or something Sep 18 22:11:24 g00s: he needs to buy a bigger yacht then Koush Sep 18 22:11:30 *than Sep 18 22:21:14 lasserix: do you have your lib folder in the right place :P Sep 18 22:21:53 I'm trying to test some gps stuff using the `geo fix` command. Does it just not work most of the time, or is it just me? Sep 18 22:22:50 frem its just a preview of whats to come Sep 18 22:22:58 guys, i have a relative layout with text and icons, sometimes the text is too long and its filling the parent so the icons arent displayed. how do i make this thing push the content down if doesnt fit Sep 18 22:22:58 so its working fine Sep 18 22:23:08 relative layout? Sep 18 22:23:28 i mean Sep 18 22:23:35 linear layout? Sep 18 22:24:02 g00s: What do you mean? Sep 18 22:24:19 cliffreich: make the icons alignParentRight and tell the TextView to toLeftOf it Sep 18 22:24:35 g00s: I get timeouts when trying to get GPS location most of the time when I try to use it. Sep 18 22:25:32 ok will try thanks Sep 18 22:25:32 how can I get a service reference into a subclass of a BroadcastReceiver? (for Activity I'm using a Binder) Sep 18 22:26:13 What do random blocks surrounded in {}'s do? No if, while, for, etc. in front of it. Sep 18 22:26:26 Just a way to define a block? Sep 18 22:26:32 jessie: look cool? Sep 18 22:26:33 jessie: yes Sep 18 22:26:55 Then they shall be removed. *sigh* Derpy legacy app... Sep 18 22:27:09 jessie: defines a scope Sep 18 22:27:35 yiati: Ah, so variables defined inside wouldn't be visible outside that scope? Sep 18 22:27:35 jessie: Android design guidelines prefer to have them even for one liners Sep 18 22:27:43 jessie: yep Sep 18 22:28:06 Yeah, for one liners on ifs, elses, etc. I always use braces. But this was just in the middle of a function, doing literally nothing. Sep 18 22:29:27 Hmm yeah that's fun. Technically it would save space on the stack but the amount saved is so likely so infitesmally small that it's not worth it Sep 18 22:30:58 Yeah, that's what I figured. Good to know you can define scopes that way, though. Sep 18 22:31:21 Though it probably would be evil to have multiple variables in the same method with different scopes, so I'll stay away from actually using it. Sep 18 22:32:53 http://stackoverflow.com/questions/241088/java-what-do-curly-braces-mean-by-themselves Sep 18 22:34:11 Ah, also useful for folding. Sep 18 22:34:30 Most of these are likely not why there were initially used, though, so I'll just kill 'em dead. Sep 18 22:39:23 Oh, I see what had happened after looking at Git history. This block had the if statement on a previous line. At some point it was commented, then deleted, leaving a random orphan block. Sep 18 22:41:55 lol Sep 18 22:42:47 Hi i need some help.. I closed down eclipse recently and now when I came back to my project it wont generate my R files and this was compiling 100% ok before so i dont really understand how Eclipse can just break something and have that kind of inconsistent behavior but what ever.. how I can fix it .. Its not a resources issue or anything like that ... as i say it compiled just fine before.. Sep 18 22:42:47 I have made sure that android.R; is not being imported by the quick fixer thing too .. so what else could it be? Sep 18 22:44:06 hooligan132: Have you tried right clicking the project, going to the android menu and selecting "Fix project?" Sep 18 22:44:12 Have you tried cleaning the project? Sep 18 22:44:16 yeap Sep 18 22:45:25 Any compile errors? Sep 18 22:46:02 just the same ones .. R cannot be resolved to a variable ... Sep 18 22:46:13 And have you tried restarting eclipse again? Sep 18 22:46:51 have you tried using intellij/AS? :D Sep 18 22:46:52 hooligan132: have you tried deleting the whole generated folder by hand ? Sep 18 22:47:00 after much investigation it seems my application runs out of heap space at specific times(sometimes). Most of my application logic is in C using the NDK, and debugging with gdb-ndk gives me this impression. what can I do about this? Sep 18 22:47:03 Maybe try running `lint -w .` in the directory of your app? Sep 18 22:47:07 with all files eclipse generates for building Sep 18 22:47:34 ggVGc: dont use too much memory :) Sep 18 22:47:56 "IntentReceiver components are not allowed to bind to services" so how can I use the service from it? Sep 18 22:52:10 hooligan132 build on cmd line, then look for xml syntax error and fix :) Sep 18 22:59:55 ^ Sep 18 23:00:14 hi ! Sep 18 23:00:58 does anyone knows how to set the minimal length of chars. shorter than 2 in order to perform a search for a searchview ? Sep 18 23:02:58 this fails for me: eclipsec.exe -noSplash -data "D:\Source\MyProject\workspace" -application org.eclipse.jdt.apt.core.aptBuild Sep 18 23:03:56 is that the correct way to build from command line? Sep 18 23:04:46 java.lang.RuntimeException: Application "org.eclipse.jdt.apt.core.aptBuild" could not be found in the registry. and then quite a list of available ones Sep 18 23:05:47 hooligan132 if you come to this channel with an eclipse problem, note the standard advice then is to just use AS :) Sep 18 23:06:03 yeah ok no worries Sep 18 23:06:22 i'm just saying :D forewarned :) Sep 18 23:06:26 im gona change the ide cant stand the idea that it just junked my project like that for unknown reasons Sep 18 23:07:01 hello Sep 18 23:07:49 new to android development and using andriod studio's latest beta version on fedora 20. Sep 18 23:08:02 hah Sep 18 23:08:10 hooligan132 you would build from the command line using ant Sep 18 23:08:19 I finally got my floating display gridview working Sep 18 23:08:25 hooligan132 or gradle Sep 18 23:08:28 then I realised you can't make it go away Sep 18 23:08:45 it's bigger than fullscreen and pressing back and stuff does nothing Sep 18 23:08:48 lol Sep 18 23:09:48 I have a problem with gradle not being able to expand a ZIP file "appcompat-v7-20.0.0.aar I have the sdk directory set to 775 and files to 777 but still keep getting the error, any ideas? Sep 18 23:12:51 http://picpaste.com/SZcen2Ig.png Sep 18 23:13:08 better figure out how to make back work Sep 18 23:24:51 * hooligan300 downloads the intelijidea Sep 18 23:29:03 anyone know offhand whether or not Intent.putExtra accepts nulls for value? Sep 18 23:31:24 Is there any way to get a child's position inside a cursor tree adapter? Sep 18 23:31:26 sarbs: should be safe. The extras are stored in a bundle, and the docs for Bundle specifically mention being able to store a null Sep 18 23:31:32 Specifically inside the bindChildView function. Sep 18 23:32:23 JesusFreke cool, gracias. followed putExtra down thru the code into bundle but didn't notice that callout specifically Sep 18 23:42:16 can someone tell me what might be wrong if import android.support.v7.app.ActionBarActivity; in Android Studio is considered an unused import statement? Sep 18 23:43:03 wrong ? Sep 18 23:43:28 StingRay_: it is grayed out Sep 18 23:43:38 and that means wrong does it ? Sep 18 23:43:51 and all the R.* statements indicare that R cannot be resolved Sep 18 23:44:05 indicate* Sep 18 23:44:07 yeah thats wrong Sep 18 23:44:19 unused != wrong Sep 18 23:44:31 unused erm… it's not used Sep 18 23:44:37 :) Sep 18 23:44:47 got it Sep 18 23:45:07 so why are the R.* methods not recognised? Sep 18 23:45:39 methods ? Sep 18 23:46:15 R.layout.activity_hello for example Sep 18 23:46:21 it isn't reognised Sep 18 23:46:35 nor is the ActionBarActivity Sep 18 23:46:37 thats a resource Sep 18 23:46:43 let me post a screenshot of what I have Sep 18 23:46:43 not a method Sep 18 23:46:48 just a sec Sep 18 23:47:02 I think you need to go though some basic tutorials Sep 18 23:47:10 I am ... Sep 18 23:47:20 the building your first app tutorial Sep 18 23:47:28 this is what I did Sep 18 23:47:44 downloaded android studio, installed successfuly Sep 18 23:47:56 SamirOsman not asking for a history Sep 18 23:47:57 created a new project, added a blank activity Sep 18 23:48:04 and can't build Sep 18 23:48:10 but you seem unsure of what it is you are asking Sep 18 23:48:11 comes u with this error Sep 18 23:48:35 ok, le me post the actual error Sep 18 23:48:37 so whatever it is you are unsure of, make it a point to learn "what it is" and "what it does" Sep 18 23:48:48 Execution failed for task ':app:prepareComAndroidSupportAppcompatV72000Library'. Sep 18 23:48:56 then you can maybe track down the "why" or get to a point where you can ask specifics Sep 18 23:48:58 > Could not expand ZIP '/home/user/Apps/android-studio/sdk/extras/android/m2repository/com/android/support/appcompat-v7/20.0.0/appcompat-v7-20.0.0.aar'. Sep 18 23:50:15 have you used google ? Sep 18 23:50:24 yes i did Sep 18 23:50:45 so what have you tried ? Sep 18 23:50:56 i came here because I could not find a solution on stackexchange, or any of the forums Sep 18 23:51:20 I got a bunch of people having the same issue but none have resolved it successfully Sep 18 23:51:50 I tried their recommendaions such as changing the directory rights and some changes in the IDE settings but none worked Sep 18 23:52:23 so I thought I could come here to get some help Sep 18 23:53:20 and YES I am new to andoid development but not new to programming Sep 18 23:53:53 google is your best bet with this Sep 18 23:54:00 it's not common Sep 18 23:54:08 google came up with nothing Sep 18 23:54:15 eh? Sep 18 23:54:25 nothing useful at least Sep 18 23:54:27 what are you searching for ? Sep 18 23:54:47 I quoted the error and pasted it in the search box Sep 18 23:54:58 how is that going to work ? Sep 18 23:55:24 "Could not expand ZIP appcompat" Sep 18 23:55:36 StingRay_: I have been searching for the past 4 hours for a solution Sep 18 23:55:46 would you like a log of my search history? Sep 18 23:55:50 http://stackoverflow.com/questions/21497181/gradle-could-not-expand-zip-appcompat-v719-0-1 Sep 18 23:55:59 I found that one Sep 18 23:56:18 seems legit Sep 18 23:56:19 tried what was recommended Sep 18 23:56:21 but did not work Sep 18 23:56:24 there are 3 others Sep 18 23:56:30 two of which have no answers Sep 18 23:57:12 I rand a chmod 777 -R on the whole directory just to make sure it wasn't permission errors Sep 18 23:58:52 the only thing I didn't do is run the studio as root, which is not a good idea Sep 19 00:00:26 StingRay_: thanks for the help anyway appreciate it Sep 19 00:02:54 well try with sudo Sep 19 00:03:00 I would Sep 19 00:05:41 hm, AS 0.8.11 patch is huge, may as well reinstall Sep 19 00:15:17 Hey, I am trying to build an app that will update the text on pressing a button ,something like a quote app , any idea how can I store thousands of lines(xml ?) and update them using button. I know how to replace it a single time . Sep 19 00:16:04 killer database Sep 19 00:16:58 xml i suppose is an optoin Sep 19 00:17:05 as is just a plain txt file :) Sep 19 00:18:34 So for that kind of app , I should go with the database Sep 19 00:19:00 with whatever you decide you should go with for the reasons you decided :) Sep 19 00:19:13 I dont know cause I'm not doing the app :) Sep 19 00:19:23 killer you could also look at http://www.strangegizmo.com/products/sg-cdb/ Sep 19 00:19:26 and peoples opinions differ greatly Sep 19 00:21:09 but if you are displaying strings ideally they would be localized Sep 19 00:21:27 com.pb.app.app.MainActivity <-- refactoring gone weird :) Sep 19 00:21:44 eclipse ADT fucks up refactoring all the time Sep 19 00:21:58 always have shit in version control you can restore to :) Sep 19 00:22:23 use git, or be a git? :-0 Sep 19 00:22:30 haa Sep 19 00:22:48 inteliJ seems a bit nicer then Eclipse Sep 19 00:24:21 weirdly it had remnants all over Sep 19 00:24:44 my project had load of duplicate crap Sep 19 00:26:52 but yesh that is how i fixored... remove * import to .R; remove any duplicates, check all resources are not funky, and check that activity matches com.app.ACTIVITY correctly Sep 19 00:32:30 oh Jesus, giving users choices over visual aspects may make them more powerful, but dont make them artists https://lh4.googleusercontent.com/-MCzMrhH5dxE/VBtn4F7QzEI/AAAAAAAAFRs/j548SlxyTwU/w506-h900/14%2B-%2B1 Sep 19 00:33:50 yellow and green ? … I think I need to star doing back color scheme checks Sep 19 00:33:51 hey mon the phone is from jamaca Sep 19 00:41:28 wtf StingRay_ that linked crashed firefox Sep 19 00:41:55 so you blaming me ? google ? or firefox ? Sep 19 00:42:00 :) Sep 19 00:42:23 i'm going to be pissed if i lost my session state Sep 19 00:43:09 didnt crash my mobile ff Sep 19 00:43:42 well more accurately it hung it (desktop) Sep 19 00:43:48 application not responding Sep 19 00:44:08 *those * devs Sep 19 00:44:15 :p Sep 19 00:44:23 FF taking 100% ... oh yeah capella-s3 , when are they going to let me see which tabs are killing the cpu :) Sep 19 00:44:47 electrolysis project Sep 19 00:45:13 aka e10s Sep 19 00:45:25 capella-s3 does that include the rust stuff ? Sep 19 00:45:33 niir Sep 19 00:47:07 why does assert.fail() do nothing within an rx subscriber’s onError? Sep 19 00:49:53 maybe it uses the language assert , which i think isn't on by default in android Sep 19 00:50:00 you can use the Assert from Junit Sep 19 00:50:16 im using junit.framework.Assert; Sep 19 00:51:00 it gets caught by SafeSubscriber… hmm Sep 19 00:51:41 "Error occurred when trying to propagate error to Observer.onError" Sep 19 01:00:50 g00s: i workaround by using Action in my test rather than Observer Sep 19 01:15:44 Hey guys, Anyone mind giving me a hand? I have a stock / not rooted nexus 5 on ATT that did an OTA update and now just infinite loops the splash screen. I can adb sideload but none of the Factory Images work, they all abort on the phone, anyone know how I can use fastboot or if I can enable it in anyway since I can't boot into the phone's o/s? Sep 19 01:21:57 MechX2: despite the fact thats not rooted your question belongs in #android-root ( see the topic ) Sep 19 01:22:07 hence the lack of replies but you’ll probably see the same thing there -.- Sep 19 01:23:31 Thanks Sep 19 01:23:54 It's looking pretty dry for me, Just figured someone here might be able to help. Sep 19 01:26:18 https://support.google.com/googleplay/contact/c2c_hardware_ordering Sep 19 01:27:51 Thanks for the link Sep 19 01:28:57 np, google is known for their legendary hardware support Sep 19 01:30:39 I'll give them a shot. Sep 19 01:34:50 those devs.. ff have been merely breaking all the fun stuff for some time :0 Sep 19 01:35:11 chrome mobile seems like they want to get in on that fun as well Sep 19 01:35:38 I just realized interacting with a smartwatch takes up both your hands, compared to one hand with a phone Sep 19 01:35:46 lool Sep 19 01:36:16 you gotta always hold up the hand that the watch is on and use the other hand to fiddle with it Sep 19 01:36:30 guess it deals with talk and driving on the phone as you would actually have to take your hands of the steering wheel to even awnser Sep 19 01:37:26 I guess Sep 19 01:37:58 but if you're not driving, a smartphone is easier to use than a watch imo Sep 19 01:39:39 well if you had not hands free lol can you imagine.. reminds me of that scene in family guy where quagmire and peter are driving behind each other and flipping each other off and they ring each other up to tell each other .. but with the smart watch it would be like Yeah hi peter just calling to let you know I nearly had a wreck awnsering trying to awnser my smart watch and peters awnsering Sep 19 01:39:39 on his smart watch and nearly having a wreck as well Sep 19 01:41:24 I'd rather have it built into my steering wheel Sep 19 01:42:26 i wonder how well that stuff is selling Sep 19 01:42:51 people are loving the moto 360 Sep 19 01:43:03 shmooz define people ? Sep 19 01:43:07 LG G R Watch Sep 19 01:43:10 Leo Laporte Sep 19 01:43:15 from twit.tv Sep 19 01:43:17 Leooooooo lol Sep 19 01:44:34 they love the looks of it, but it needs better battery and not have a flat tire Sep 19 01:45:28 battery is not a problem Sep 19 01:45:56 i’m at 71%, had it on since about 10am (11 hours) Sep 19 01:46:04 including going for a walk, etc Sep 19 01:46:38 well if you put the screen from being off when idle to being dim time telling mode, the battery runs out fast Sep 19 01:47:01 ah, well i don’t Sep 19 01:47:25 JacobTabak: how are you liking it ? Sep 19 01:47:34 functinoally the LG G was better Sep 19 01:47:56 but the round face is really nice, and the dock is really nice as well Sep 19 01:48:06 doubles as a little desk clock when not wearing it Sep 19 01:48:20 yeah it turns into a night clock while charging, looks nice Sep 19 01:48:40 they say the CPU is old and weak too, I'll wait for the next gen Sep 19 01:49:09 ok i can’t figure out how to assert.fail() in onError of my rxjava subscriber, rxjava is eating the exception Sep 19 01:49:47 oh i just found it, I can throw onerrorNotImplementedException Sep 19 01:50:17 hmm Sep 19 01:51:06 how to know if my android supports changing exposure? Sep 19 01:52:14 it's always 0 however I set it Sep 19 01:56:01 hey people Sep 19 01:57:02 hi, are comments on the code included in the package size? i'm not sure whether code comments make the package size big. Sep 19 01:57:04 hey people, not sure if this needs to be in dev or root, but i'm trying to find out how i can access another app's memory / resources to extract a string value... Sep 19 01:58:06 ReScO: definitely root. short answer: /proc/pid/xxx/mem and good luck to you, it's unlikely to be simple Sep 19 02:01:18 dragorn, would Xposed be an option to hack into the app itself, or does it only access rom stuff? Sep 19 02:02:08 ReScO whats the purpose ? Sep 19 02:02:19 you say change a value, but to what end ? Sep 19 02:02:54 I'm building an app for ING Netherlands, they have a mobile banking app where you can retrieve your current balance before logging into the app itself with a 5 digit pin Sep 19 02:03:28 I'm developing on the Pebble platform Sep 19 02:03:52 currently i'm screenscraping the balance from the site itself (logging in with username / password) Sep 19 02:05:17 i have a meeting there on october 2nd Sep 19 02:05:43 but i'd like to be able to use the banking app's methods to retrieve the balance.. Sep 19 02:05:57 so it's basically resource hacking galore to achieve this, as far as i know Sep 19 02:06:44 good luck with all that Sep 19 02:07:02 banks are not known for their lapse easy to access info Sep 19 02:10:50 after that meeting, pebble integration will be coded into the app itself Sep 19 02:11:17 i just hoped i could show off that function being used Sep 19 02:22:13 how can I assert.fail() from within an rx onerror? rx eats the exception :( Sep 19 02:22:33 subscriber onerror that is Sep 19 02:25:35 Hey guys Sep 19 02:26:08 Is there an easy way to play a video as a background and then have it show the end frame when it finishes? Sep 19 02:27:00 The video wouldn't be controllable - it would just play. Sep 19 02:27:08 kind of like a splash screen Sep 19 02:29:34 those dev's whos idea of package management involves removing half of your base dist because you did apt-get remove libasound2 ;( Sep 19 02:30:02 and borking every thing to a nearly ireversable Nth damn degree Sep 19 02:56:39 Ologn you recommended 'lean startup' / reis right ? Sep 19 02:57:09 just reading this http://www.technologyreview.com/qa/530901/technology-stalled-in-1970/ Sep 19 02:57:25 Theil has a gripe with that stuff, always interesting to hear opposite sides Sep 19 02:57:53 g00s, yes Sep 19 02:58:51 Thiel is a billionaire, he can afford to say people should only work on longshot, risky projects Sep 19 02:59:31 yeah ... also, reading the other day lots of researchers with PhDs ween't getting grants and leaving science altogether Sep 19 02:59:50 like, starting up breweries and stuff like that :) Sep 19 02:59:57 i guess thats still chemistry :D **** ENDING LOGGING AT Fri Sep 19 03:00:00 2014