**** BEGIN LOGGING AT Sat May 09 02:59:59 2015 May 09 03:16:34 burntcookie90 yeah, just a small improvement maybe May 09 03:19:15 Gradle would be so much faster if they replaced whatever is still written in Groovy with Java May 09 03:48:25 If an EditText is declared final, can I .setError on it later? May 09 03:49:16 Yes. final is about the reference, not the object May 09 03:49:32 I wonder why my .setError is not working then May 09 03:50:01 not because of final May 09 03:50:19 I'll rule that out, thanks May 09 03:51:05 Another weird thing CedricBeust, (I got the setError to work) May 09 03:51:14 The text for the error box is appearing outside of the box May 09 03:51:21 Could it be cause the error message is too long? May 09 04:08:02 CedricBeust i wonder if they will do that sometime May 09 04:08:22 CedricBeust do you mean the google bits ? May 09 04:08:38 hello, in the res dir, i have a raw folder, inside it is the rules.html file. May 09 04:08:43 CedricBeust, I disagree, maven is slow too May 09 04:08:47 I try to load the file using: webView.loadUrl("file:///android_asset/raw/rules.html"); May 09 04:08:59 but it doesnt work any ideas? May 09 04:09:05 and so is sbt to an extent May 09 04:09:17 pfn: Yes Maven is pretty slow but I think Groovy is a low hanging fruit waiting to be picked about gradle May 09 04:10:05 I get "Webpage not available" May 09 04:11:14 pfn: And by the way, you're not disagreeing with what I said by saying maven is slow too May 09 04:13:31 but I am, maven is written purely in java May 09 04:14:11 I was saying gradle is slow because a lot of it is written in groovy, you're saying that maven is slow too May 09 04:14:23 that's not disagreement May 09 04:14:36 isn't buck is supposed to be pretty fast? May 09 04:15:41 CedricBeust, I'm saying I don't believe there would be much improvement removing the groovy bits May 09 04:15:59 Any time you're replacing groovy with java, you are improving things :) May 09 04:16:46 for me most of the time seems to be spent on :preDex May 09 04:17:14 Haven't looked at the breakdown, you might be right g00s, but groovy is just terribly slow overall May 09 04:17:31 I don't really see much upside in using it at all in 2015, to be honest May 09 04:29:30 the assets folder is the res folder, right? May 09 04:36:18 does android use okhttp internally? May 09 04:36:23 yes May 09 04:36:33 I just had a crash and the stack trace read java.io.FileNotFoundException: http://my.url at com.android.okhttp.internal.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:206) May 09 04:36:40 it caught me off guard May 09 04:36:46 how long has that been the case? May 09 04:36:51 4.4 and newer May 09 04:37:04 huh May 09 04:37:06 interesting May 09 04:39:40 JakeWharton interesing how the canary library is nop for release, did they do that to reduce method count? May 09 04:46:52 no May 09 04:47:00 it's so that it no-ops in your release builds May 09 04:48:01 your users don't know wtf a leak is or how to deal with a notification that something was leaked or interpret the activity that pops up with a graph of the leak May 09 04:50:13 sure - but why could Application.onCreate be { if (BuildConfig.Debug) { LeakCanary.install() } May 09 04:51:33 because then either your release build would fail to compile or you have to bundle a gigantic library into your release build for no reason May 09 04:59:57 JakeWharton so based on the examples, it seems like you reuse the same RefWatcher for everything - then keep adding stuff to it with refWatcher.watch(this) ? May 09 05:00:16 refWatcher.watch(that) , etc May 09 05:02:57 never used it May 09 05:03:18 from doing the API reviews though I'd agree with that statement May 09 05:03:51 thanks May 09 05:34:07 hm so Play allows pre-registration for select titles now May 09 05:35:34 Did anyone here get an email from Google about tax information changing? I saw someone on Reddit post about it. I just saw mine today. Not sure what it is because I haven't changed anything. May 09 05:37:20 surf2b1 i think i saw something, but didn't read it yet May 09 05:38:57 this is the email I got: http://pastebin.com/086b2dvt May 09 05:40:31 I also get an email every month about not being able to get paid because of incorrect information or something. I get paid every month despite that email. May 09 05:40:59 I miss the daily payments. May 09 05:42:59 surf2b1 lol, have you seen them onine :P May 09 05:43:29 haha, thats so cheesy May 09 05:44:11 g00s: huh?... so cheesy I don't get it. May 09 05:45:02 the note you posted in pastebin , did you read it May 09 05:47:17 g00s: I got it. "See you online". ha ha.. ha :) May 09 05:49:55 I found the reddit post. There were no comments when I first read it. http://www.reddit.com/r/androiddev/comments/359pmj/please_review_your_tax_information/ May 09 06:09:24 https://twitter.com/ftrain/status/490162232903602177 May 09 06:13:50 g00s: hahaha May 09 06:20:03 JesusFreke what does that blue laser look like when shot into water, pool, pond, etc? May 09 06:20:19 like a blue laser shot into water, pool, pond, etc. May 09 06:20:20 :D May 09 06:20:26 does the beam disperse ? May 09 06:20:59 does it vaporise the water? May 09 06:21:10 could you attach it to a shark? May 09 06:21:32 sharknado 4 Leeds May 09 06:34:28 JesusFreke aha, science ! http://omlc.org/classroom/scat_demo/ May 09 06:34:46 * JesusFreke eyes url warily :p May 09 06:35:44 In "Uri.parse("geo:0,0?").buildUpon()" Does this really mean (Uri.parse("geo:0,0?")).buildUpon()? Are those parenthesis not required? May 09 06:35:47 I'll see your science, and raise you a science! May 09 06:35:49 https://www.youtube.com/watch?v=0K8zs-KSitc May 09 06:39:02 nice May 09 06:39:16 "2) Laser Waterfall (Total Internal Reflection) -- this looks like a good experiment May 09 06:48:50 JesusFreke that reminds me of something i read a little while ago about using sound waved to put out forest fires May 09 06:49:25 oh, interesting May 09 07:30:48 Hey all, is this the right place for questions re the Android SDK and logcat? May 09 07:31:18 eeyup May 09 07:31:45 how may we help you May 09 07:33:04 Woo! I wish to filter the logcat messages based on the app I am testing - an example would be: http://pastie.org/10179228 May 09 07:33:41 Filtering on 'buildvr' for example. I know how to filter by message priotity, and source - for example ActivityManager. But not the actual content which mentions the app. May 09 07:39:22 I guess I could grep the message and push it to a file if it m atches. May 09 07:39:29 Was curious if there was anything built in. May 09 07:42:43 well dunno in AS, in eclipse you could filter by app easily May 09 07:46:45 OK thanks May 09 07:46:52 Was just wondering if there was an existing option. May 09 07:52:56 If anyone is curious, the solution I'm going with is: adb logcat | grep --line-buffered thing-to-match > logcat.txt May 09 07:53:00 Which works nicely. May 09 07:53:13 so you meant pure command May 09 07:57:02 you can filter based on tag May 09 07:58:00 ismithers: http://stackoverflow.com/questions/6854127/filter-logcat-to-get-only-the-messages-from-my-application-in-android <-- Google FTW :P May 09 07:58:32 how can I throw a checked exception from a Thread? spent ages on stackoverflow but can't find a good way May 09 07:58:41 Thanks surf2b1 :) I did find that, as I have been researching. Where it says my package name is that the entire com.foo.bar ? May 09 07:58:50 Yeah Ashiren, its ok tho. May 09 08:00:14 duncannz: what do you mean "from a thread"? May 09 08:00:28 ismithers: looks like the first answer is suggesting to make every logtag your package-name, which is dumb IMO. Are you doing this in an IDE or shell? May 09 08:00:47 duncannz: you would have to marshall a runnable on another thread and throw the exception in the runnable, or something like that May 09 08:00:56 Its in a shell surf2b1. Yeah I wouldn't want to do that. May 09 08:01:01 I really doubt you actually want an exception in that case May 09 08:01:02 or use rxjava. May 09 08:01:04 I have it sorted now though, so no drama. May 09 08:02:03 ismithers: this answer looks better to me. http://stackoverflow.com/a/9869609/1048340 filter by PID May 09 08:02:23 Yeah that one was good too actually. May 09 08:02:25 JesusFreke: I am accessing a socket from a method that "throws IOException" and of course the socket must be accessed from a thread to avoid a NetworkOnMainThreadException. So I have public void doSomething() throws IOException { new Thread(new Runnable(...)).run(); } May 09 08:03:02 but the "throws IOException" in the method signature doesn't apply to the contents of the Runnable's run() method which is the problem I am facing May 09 08:03:15 you need to catch and handle the exception somehow May 09 08:03:25 in the thread May 09 08:03:45 I assume you'll probably want to return some sort of status back to the main thread saying that it failed May 09 08:04:40 JesusFreke: yes, ultimately I want the exception to bubble up to whatever is calling doSomething(), hence the doSomething() throws IOException May 09 08:05:14 you have to pass the status back to the other thread by some other means May 09 08:05:21 You can't do that May 09 08:05:25 there's no way to surface the exception in another thread directly May 09 08:05:38 what other means would you suggest? is there a better way to go about what I'm doing? May 09 08:05:40 Also, call start() not run() May 09 08:05:58 ok thanks SimonVT May 09 08:06:17 Hey. I have ubuntu with adb and fasboot installed. Device shows up in fastboot devices. Does my phone need to be rooted for me to be able to clear dalvik cache? (whatever that is) May 09 08:07:08 Hippo: I clear dalvik cache from my recovery. I would suggest installing a custom recovery such as TWRP or ClockworkMod to do this. May 09 08:07:12 As JesusFreke said, catch the exception in the thread.. You can then create a method named onFailure or something that you call May 09 08:07:12 duncannz: what about putting whatever is in your runnable inside "doSomething" and then call the thread elsewhere new Thread() { public void run() { try { doSomething() } catch (IOException e) { // TODO } } May 09 08:07:22 Hippo: Try #android-root May 09 08:08:00 so that kinda means it needs to be rooted? ;) May 09 08:08:20 Hippo: no you don't have to root to install acustom recovery May 09 08:08:45 surf2b1: that's what I was thinking of doing but it gets messy really quickly when I have to show an AlertDialog in the catch block using runOnUiThread() May 09 08:08:47 custom recovery voids warranty ? May 09 08:08:56 Hippo, depending on phone, stock recoveries usually have option to clear cache as well May 09 08:09:04 Hippo, you're also in the wrong channel May 09 08:09:35 and yes, some manufacturers will refuse to give you warranty if you unlock bootloader (which is required for changing the recovery) May 09 08:09:35 Thanks May 09 08:10:54 Mavrik: cache != davlik-cache however May 09 08:11:14 yes. May 09 08:11:28 hence the use of word "some" May 09 08:11:37 Hippo: factory reset will clear dalvik cache and you don't need root. May 09 08:12:07 surf2b1, thanks, but factory reset doesn't work. Phone is stuck in a boot loop. May 09 08:12:45 then wiping dalvik-cache wouldn't fix whatever your issue is. Better to ask in #android-root though May 09 08:13:04 yep, dalvik-cache doesn't come into play at the point of actually booting. May 09 08:13:24 try doing a full factory reset from the recovery, maybe something broke when you did it from the OS May 09 08:14:11 Hi May 09 08:14:18 I did try from the recovery :/ I recently upgraded to lolipop - not sure if that had an effect. (HTC One) May 09 08:14:21 but will checkout out android-root May 09 08:15:15 danijoo, using the Gravity parameter in the PopupMenu constructor did nothing :( May 09 08:21:35 :9 May 09 08:27:20 It literally did nothing May 09 08:29:36 hi May 09 08:30:30 does the java7 eol change anything for android studio? May 09 08:33:29 it's a good thing android doesn't use java ;) May 09 09:06:51 Hi folks, anyone w/ Camera2 experience here? May 09 09:09:10 franzks, you are only allowed to ask one question. Is this the one you chose? May 09 09:10:49 lol May 09 09:13:34 I'm experimenting if it would be possible to use Camera2 with OpenCV right now even if there's no official support yet. So I used this as a reference: https://github.com/googlesamples/android-Camera2Basic/blob/master/Application/src/main/java/com/example/android/camera2basic/Camera2BasicFragment.java and tried to strip it down to this: http://pastie.org/10179311 My goal here is to point the preview frames to the ImageReader instead of the texture May 09 09:13:35 view, since I don't really need to show the images on screen (for now, since I'm planning to do some processing via OpenCV first). The interesting part is line #91 of my pastie, since that's where I can get android.media.Image objects. The problem I face is when I run the app, it seems I only receive 5-10 frames, and then it doesn't seem to be acquiring any more frames? I tried to run the base example btw and it's continously running fine, but whe May 09 09:13:35 n swapping the target to ImageReader, then I only get 5-10 frames. Does the maxImages argument have anything to do about it (line 69)? May 09 09:20:46 Hi can somebody tell me what I do get when retrieving NFC tag id from android app? Does the byte array contain numbers only, or is it mixed alphanumeric? May 09 09:22:32 its byte array May 09 09:23:01 one byte takes -128 to 127, you can print out it as hex to be more readible May 09 09:25:11 sup guys May 09 09:26:54 I said sup guys May 09 09:27:12 happy Caturday May 09 09:27:15 it is? May 09 09:27:22 who will confirm this May 09 09:28:00 man I'm waiting SO to get rep over a difficult question I answered yesterday May 09 09:28:07 if I become 125 I will be able to downvote finally May 09 09:29:48 Ashiren: ok, thanks! May 09 09:32:33 doesnt anyone wanna know how to zoom in on a map and keep center? May 09 09:32:39 lol May 09 09:32:42 this is sad May 09 09:36:07 What is sad May 09 09:37:37 looking for rep on So May 09 09:42:01 why can't IO be in the weekend, man we have jobs May 09 09:42:01 wtf May 09 09:43:11 lol May 09 09:43:41 its just 1 day from being in the weekend! May 09 09:43:49 comes on Thursday - Friday May 09 09:50:52 JakeWharton: if you are around, know of any resources on how to handle very complicated hierwarchieries (assuming they can't really be so simplified) May 09 09:51:36 what kind of hierarchies? May 09 09:53:52 just have lots of viewpager pages with a list of cardviews (each a different type) eg some of them are view pagers, others could be optimized by custom classing and measuring, but i was hoping a higher level approach May 09 09:54:30 like only using 3 pages, recyling the underyling hierarchies and just offseting at the bounds so it seems to cover the interval (or could be cycle) May 09 10:05:31 Also is wrapping some retrofit calls as intent services, which can be cached, an easy way to deal with activity lifetimes? May 09 10:09:01 pretty complamacated what you're asking May 09 10:09:12 yeah tell me about it May 09 10:09:55 shouldn't be May 09 10:10:16 if i had time to flatten the view pager pages May 09 10:10:34 amonst a better rest api to work with May 09 10:22:28 got to stop reading these physics articles! May 09 10:23:02 http://music.arts.uci.edu/content/hossein-omoumi-and-friends-may-8-and-9 May 09 10:23:11 oops: http://plato.stanford.edu/entries/symmetry-breaking/ May 09 10:23:23 very interesting read if you like math and abstract concepts May 09 10:24:15 math? NEVER May 09 10:24:26 well concept thereof May 09 10:25:26 anyone know successful games targeted at cats? May 09 10:25:54 :3 May 09 10:25:57 Petcube May 09 10:25:58 :P May 09 10:26:10 good startup from Shenzhen May 09 10:26:11 torch as laser :? May 09 10:26:21 yea those guys May 09 10:26:28 i want that but built into a ball i can roll around May 09 10:27:13 only 200 not bad kinda like that cat hammerstell wheel May 09 10:28:18 like for instance, what is the probability a cat will ride a robo? seriousily you see in in videos all the time! May 09 10:29:06 thanks though, cant image it wouldb't be hard to hack that and add some stuff May 09 10:29:29 it is hard May 09 10:29:31 :) May 09 10:29:48 they are hardware engineers man May 09 10:29:49 I know them May 09 10:29:59 yeah i know May 09 10:30:01 my bad is one twoo May 09 10:30:28 i keep throuhging ideas at him and he just looks at me like, oh yeah sure np we'll can get that done in a weekend! May 09 10:31:49 Odaym: here's a question, i got an activity, with a subset of views that in themselves are farily straight forward. (no fragments), better to use different activities or just vieswitch inside? May 09 10:32:27 what's a view switch May 09 10:32:36 implement a navigation drawer and do fragment switching May 09 10:32:38 so easy May 09 10:32:46 no nav drawer May 09 10:32:49 and no fragments May 09 10:32:49 why not? May 09 10:33:03 no nav drawer not my decision May 09 10:33:10 fragments because you can't recycle them May 09 10:33:13 you can still do no nav drawer and still have fragment switching May 09 10:33:37 I think the replace fragment function with the commit function at the end of it takes care of this, Im sure they do May 09 10:33:38 let me see May 09 10:33:40 wouldn't solve the complex layout problem, since i'd have to inflate each one just the same, but now i couldn't recycle them May 09 10:34:00 dont understand what you mean by recycle May 09 10:34:10 it sounds like it wants to be "something efficient" May 09 10:34:19 while it's blocking your progress for nothing May 09 10:34:31 i use a veiw pager that recycles its pages May 09 10:34:42 err a pageradapter with converview functionality May 09 10:34:48 ask SimonVT May 09 10:34:52 since the hiearchires are complicated May 09 10:35:00 Jake isn't all that he's cracked up to be May 09 10:35:24 hehe he's given some really good advice whether or not that is true May 09 10:35:33 :P May 09 10:40:53 I'm getting a cursor from MediaStore, containing 11 fields (and 1 row). Then, I want to *add* some columns from ExifInterface, "expanding" the cursor horizontally. Point is, I want to return a cursor containing 12 columns (still just 1 row). May 09 10:42:42 I thought I could use MergeCursor(MS_cursor, EXIF_cursor), where EXIF_cursor is just a simple MatrixCursor. But MergeCursor is a union (stacks vertically)... Do I really need to iterate over MS_cursor, adding each field manually to a single MatrixCursor, and then afterwards do the same for EXIF_cursor? May 09 10:43:39 If you can't create a single query that joins from both tables, then yep May 09 10:43:55 To put it another way: is it possible to initialize a MatrixCursor with the contents of a Cursor? If so, I could easily do, MatrixCursor rersultC = new MatrixCursor(MS_cursor); and then just resultC.add(EXIF_data); return resultC; May 09 10:44:28 kinda odd if it's *not* possible to "initialize" a MatrixCursor with an existing Cursor...? May 09 10:44:55 SimonVT: but, no, there's no join I could use, AFAIK, between MediaStore and ExifInterface May 09 11:01:24 I'm working on a content provider, which queries the MediaStore. So, my main activity shows all thumbnails in a gridview, then, when clicking on a thumb, the detail activity shows the image + all MediaColumns (desc, title, dates etc). But how do I go about adding a "prev" and "next" button to my detail view? Ie, go to next image (in MainActivity's cursor, in whatever ordering it has)? May 09 11:02:21 Do I need to do something like, SELECT PREV_IMAGE_ID, NEXT_IMAGE_ID, in mainactivity, and pass this along into detailactivity, so detailactivity can construct the proper URIs? May 09 11:02:30 or is there some "fancy" way to handle this? ;-) May 09 11:02:43 preferrably I should have swipe left/right :-) May 09 11:05:29 the detailactivity is started by a onClick(), which does startActivity() with an intent, where the actual URI is in Intent.setData(myURI). So, I mean, can the detailactivity/fragment somehow callback/ask the mainactivity/fragment of "hey, you know what image I am, can you take me to the next/prev one in your cursor"? May 09 11:06:49 I'm using a CursorLoader (on the cursor with the thumbnails, ordered by date), and this is "connected" to the UI with a CursorAdapter -> GridView. May 09 11:07:06 joakimk_: did you consider creating a view? May 09 11:07:12 joakimk_: as in sqlite view May 09 11:08:11 but, can I create a view? The tables here are "not mine"... I'm querying MediaStore.Images.Thumbnails.EXTERNAL_CONTENT_URI May 09 11:08:17 (if that makes sense) May 09 11:08:48 I was thinking I could only create a view etc on tables in "my" database... Tables created by my app May 09 11:08:53 joakimk_: you can. views are just saves queries. May 09 11:09:01 s//saved/ May 09 11:09:05 yeah :) May 09 11:09:35 reardless, getting prev/next ID really is no fun in SQL... ;) May 09 11:09:40 ... in a query May 09 11:09:58 I'd have to do some windowing May 09 11:10:17 you're saying this is better solved in SQL, than programmatically? May 09 11:10:42 hello, I'm having a strange issue when compiling anything with the NDK. I'm specifying --sysroot but includes like sys/cdefs.h aren't being found. Do I need to specify something else? May 09 11:12:01 I mean, my MainActivity/fragment has the entire cursor. I'm adding a onClick-listener with the position. Can't I use something like, int prev = position-1; int next = position +1; May 09 11:12:12 joakimk_: depends on the problem, but it's more clear then messing with MartixCursor to me May 09 11:12:13 joakimk_: not sure what your issue is but generally if you're using a DB you want have precise queries that get everything you need at once in the format you want it than doing multiple queries and programitically processing them. May 09 11:13:04 joakimk_: now with IDs, DetailsActivity could also load cursor with same query as master activity, when moving next or prev - it will just cursor.moveToPosition() May 09 11:14:10 icedp: it's just that detail does its own query, to MediaStore.Media.Images -- not thumbnails -- to get the full image + metadata. May 09 11:14:23 it just gets the IMAGE_ID from the mainactivity/thumbnails May 09 11:14:40 so I was thinking I'd just pass in PREV_ID, IMAGE_ID, NEXT_ID instead of just IMAGE_ID... May 09 11:14:45 in the URI May 09 11:15:38 then detailactivity's next and prev buttons could just load the corresponding URI: content://AUTHORITY/bla/bla/PREV_ID, and I'd go directly to the previous image -- in detail view' May 09 11:16:36 but where would get prev_id and next_id after that? May 09 11:17:17 oh, as in the *next* step again? May 09 11:17:22 yep May 09 11:17:30 right... May 09 11:17:52 either you use fragments or detailsactivity will make the same query as masteractivity - only projection would be just thumbnails ids since you don't need anything else May 09 11:20:15 what about this then: In detailfragment, I have the IMAGE_ID = 828. Clicking "next" gives URI = .../828/next. My content provider's query() method would then see, get next image from IMAGE_ID = 828. It could just query the MediaStore for SELECT MIN(IMAGE_ID) IMAGE_ID FROM thumbs WHERE IMAGE_ID > 828; May 09 11:20:22 too hacky? May 09 11:20:58 (btw, I'd have to get the ORDER BY to match that used in MainAcitivity, obviously) May 09 11:21:26 anybody use the NDK around? May 09 11:22:10 icedp: thanks for the interesting discussion! I think I need to put this off for a later version of my app ;-) May 09 11:25:27 joakimk_: if you use a fragment already just ask the activity about next ID May 09 11:26:56 detailactivity or mainactivity? May 09 11:27:08 any android developpers able to help with a question about what it would take to build an app with specific features? May 09 11:27:29 zap0: depends, what features? May 09 11:28:54 i want the light sensor data sent via UDP. that's it! the UI doesn't need to be any more than just a blank splash. the config for the IP data can sit in a text file. May 09 11:29:30 i've found this: http://developer.android.com/guide/topics/sensors/sensors_environment.html May 09 11:29:49 you're trying to stream the sensor data? May 09 11:30:03 yes. just that. May 09 11:30:14 pretty simple May 09 11:30:34 any reason specifically you're sending by UDP? May 09 11:30:55 because that actually could be the difficult part May 09 11:31:19 really?!?! TCP is so much easier? May 09 11:31:25 joakimk_: dou you need detailsactivity at all? May 09 11:31:30 icedp: quite new to android... So, MainActivity really only sets up the UI (fragment), and has a onItemSelected() callback method, which starts the DetailActivity May 09 11:32:15 zap0: UDP is super free form and it doesn't really guarantee anything in any order. TCP is stupid simple, just build a packet and send. May 09 11:32:38 hi May 09 11:32:42 suppose i want to get pixels in image from x1,y1 to x2,y2 May 09 11:32:47 the x1,y1 is the ACTION_DOWN event and the x2,y2 is the ACTION_UP event May 09 11:32:52 and i want the pixels between the two points in straight line May 09 11:33:02 how can i do that ? ;] May 09 11:33:16 zap0: you're not streaming super heavy data either so I doubt the constraints in TCP would apply to you May 09 11:33:33 Kagetsuki, i prefer not to have to worry about the tcp connection getting dropped for any reason. as for ordering, just stick a counter++ in the UDP packet. May 09 11:33:33 Candyman, y = ax + b May 09 11:33:58 find the coeff a and b which describes an affine line between x1,y1 and x2,y2 May 09 11:34:33 zap0: TCP is the packet format, the connection shouldn't matter May 09 11:35:23 this looks simple-ish http://stackoverflow.com/questions/24519855/how-to-send-udp-packets-between-an-android-tablet-and-raspberry-pi May 09 11:36:08 Candyman: draw a line with a Bresenhams line algorithm and count the pixels. That will give you the shortest possible accurate line in pixels May 09 11:37:02 icedp: I think you're right about the detailact. But anyway, how do you mean I could get the IDs from (main) activity? :) May 09 11:37:13 zap0: you can use whatever you want but if you want to do it as simply as possible maybe you should consider using an abstracted library on both ends May 09 11:38:40 jakimk_: main activity should manage the index and position in the index. That way fragments just ask main activity "what's next" and the main activity will respond. May 09 11:39:19 joakimk_: or if fragments know their own position they could ask main activity "what is after me, I'm #1234" or whatever May 09 11:40:14 joakimk_: a lot of different ways. if you cursor is in ThumbnailsGridFragment then you can call from you DetailsFragment ((MyActivity)getActivity()).getIdForPostition(n) which just passed that to thumbnails fragment May 09 11:40:24 joakimk_: or your cursor can be managed in activity May 09 11:47:13 sorry for the newb questions, but... how does detailfragment call a method in mainfragment? May 09 11:48:32 getActivity() in detailfragment would give me DetailActivity, right? As I think of it, I have MainActivity/fragment (MA/MF) on one side, and then DetailActivity/fragment (DA/DF) on the other side... May 09 11:51:06 When I do get the next_id, I'd want the detailfragment to construct a new URI, and call startActivity()? Or would I need to have MainActivity do all the start-ing and activity-creating? May 09 11:58:09 Android studio shows: http://i6.5cm.ru/i/jJeq.png , but my app is not available on recents menu, not shown on Apps -> Running and not on App -> Running -> Show cached processes May 09 11:59:18 joakimk_: you can have one activity with two fragments May 09 12:01:43 icedp: yeah, but I've got everything stacked up this way (following outline of an app from a Udacity course). If I need to call a method in another fragment, do I do something like getActivity().getFragmentManager().findFragmentByTag("MainFragment"); May 09 12:03:59 joakimk_: and that Udacity app doesn't allow next/prev btw. do what makes sense May 09 12:04:23 joakimk_: you can, but let your activity manage the fragments. most like it has not much code May 09 12:12:33 Add this to ANDROID --> http://i.imgur.com/REzov6U.jpg May 09 12:33:11 Hi, I need to start Google maps and show a marker that gets updated every ~15secods. I need to support API level 17, and have two people working with Android Studio & gradle and one with ant. What I found online is only supported in higher API levels, any ideas please? May 09 12:34:00 imv: use a 3rd party map toolkit that supports down to level 17 May 09 12:34:23 also consolidate your dev environment May 09 12:34:44 Kagetsuki, any ideas on where to look? All of us are new to android dev May 09 12:35:09 your app is pure android/java? May 09 12:35:27 Kagetsuki, We worked around the differences, I'm the one with ant, my laptop can't runt AS so I had to improvise May 09 12:35:30 Kagetsuki, yes May 09 12:35:45 you don't need to run AS to run gradle May 09 12:36:06 https://gradle.org/docs/current/userguide/gradle_command_line.html May 09 12:38:54 yes, I know, but ant was what I had out of the box, I used The busy coder's guide to android dev as the first (and currently only book), the free version was for level22 and only mentioned ant May 09 12:39:04 imv: there are some options on github, just search around. EG: https://github.com/cyrilmottier/Polaris May 09 12:39:23 but I'm ok with doing it if it solves the maps issue May 09 12:39:29 Kagetsuki, Ok, thanks! May 09 12:39:44 imv: not recommending that, just what I found May 09 12:40:03 but seriously, try and figure out how to consildate your dev enviornment now to save headaches in the future May 09 12:41:26 will do, thanks for the suggestion May 09 12:41:43 any time. good luck! May 09 12:41:51 Thanks! May 09 12:45:36 anybody with NDK experience here? I'm absolutely certain my problem is stupid simple to solve so some input would be great May 09 12:55:48 I have code I want to run at startup for one of my flavors. What's the best way? May 09 12:56:56 flavors? May 09 13:03:52 dcorbin, maybe different Application classes for different modules May 09 13:03:56 flavours * May 09 13:17:55 I have a Button->id=scanButton and ScrollView->id=outputConsole in a Linear(vertical) layout I know I can set ScrollView to be bellow button by setting bellowID tag but then how do I set the height of scrollView to span from bellow button down to the bottom of the screen ? May 09 13:18:09 Because fill or match parent will put scroll view above button. May 09 13:20:27 How can I know if there is a leak in my app so the ram usage is big 100-150mb, or it is because I got 1 gb free ram spaces so GC doesn't work? May 09 13:22:42 yoavst: press cause gc May 09 13:23:27 icedp: than it free 20-40mb May 09 13:23:31 then* May 09 13:24:01 yoavst: press again May 09 13:24:52 http://i6.5cm.ru/i/az1e.png May 09 13:25:06 each falling is a GC May 09 13:25:58 you know you have a memory leak when you create instances that can never get GC'd because they are still accessible May 09 13:26:05 total memory usage is a rather useless metric for this May 09 13:26:42 sonOfRa: so the GC is just lazy in my case? May 09 13:26:51 yoavst: read again May 09 13:26:59 you MIGHT have a memory leak, or you might not May 09 13:27:06 "total memory usage" is NOT a metric for memory leaks May 09 13:27:13 so what is a metric? May 09 13:27:29 That's rather tricky, because GC isn't deterministic May 09 13:27:52 you need to look at your code, and check whether you are creating objects that you don't need anymore, but that stay around because they are still referenced May 09 13:28:04 I've used it https://corner.squareup.com/2015/05/leak-canary.html for activity May 09 13:28:14 but didn't get any notification from it. May 09 13:28:58 and from mat analyzing the memory dump, it is a background image May 09 13:29:28 3One instance of "android.graphics.drawable.BitmapDrawable$BitmapState" loaded by "" occupies 28,686,856 (31.63%) bytes. The memory is accumulated in one instance of "byte[]" loaded by "". May 09 13:29:44 dark blue is Allocated memory. it is an okay metric for detecting huge memory leaks like activities or large bitmaps sonOfRa May 09 13:30:01 detecting its presence that is May 09 13:30:42 yoavst, your ram amount != your heap application amount May 09 13:31:06 and your heap is almost full, you're close to outofmemoryerror May 09 13:31:09 well, android give more ram to app, based on the ram amount May 09 13:31:19 on little device, it probably trigger outofmemory May 09 13:31:29 adq: it increase it every time. May 09 13:33:11 If I use android:launchMode="singleInstance" and different taskAffinity for each activity have an effect on ram usage? May 09 13:33:42 probably, but this is not how you should solve your issue May 09 13:34:40 I need them in different taskAffinity because of how my app works. but everytime a finish() is called when you leave one activity May 09 13:42:15 yoavst, Square just released a library that helps you searching for memory leaks May 09 13:42:36 danijoo: yea, I didn't find with it May 09 13:42:44 it didn't send me a notification May 09 13:43:46 ah nvm didnt read all you wrote May 09 13:44:07 well. If you phone gives the app a lot of memory (common for newer phones), gc will run less May 09 13:44:29 a high ram usage could just mean that the phone does not need the ram for other stuff and so doesnt clean May 09 13:45:24 danijoo: well I don't personally care, but google play reviewers do care. May 09 13:45:42 I woudnt care as long as you dont get OOMs :) May 09 13:45:45 it never crashes because of outOfMemory, or at least i don't get reported. May 09 13:45:53 yoavst, just figure out what you are allocating, and what should be released if you want to lower the heap amount May 09 13:46:15 and indeed, bitmap will take a huge amount, especially on bigger screen with high dpi resolution May 09 13:46:16 another good testing method is running it on a phone/emulator that does not provide a lot of ram May 09 13:46:25 for example genymotion and limit it to 32 mb May 09 13:46:33 adq: When I force GC a lot of memory is being released May 09 13:46:49 I don't see where I've specified an Applicaiton class. I would assume it's in the manifest file, but the only classes specified are Activities. Also, I don't want to duplicate the manifest. May 09 13:46:52 danijoo: it is an app for smart case, problem :/ May 09 13:46:55 yoavst, yeah but thats not an inditcator May 09 13:47:10 gc is triggered by system when it needs memory May 09 13:47:24 so if a lot of memory is free, it will stack up and a gc will free a lot May 09 13:49:05 yoavst, if you did not read https://developer.android.com/training/articles/memory.html read it May 09 14:18:10 Anyone know of a simpler way to tint an entire layout except for a rectangle, something like overlaying with a Layout with semi-opaque background? (I'm working on a tutorial where I want to tint everything except for a part of the GUI and the corresponding instructions) May 09 14:18:58 Or is the least-bad way to set up 4 strategically placed, smaller layouts? May 09 14:26:24 Chamooze, FrameLayout#setForground(drawable) May 09 14:26:48 when drawable is a color with alpha level, this should look like what you want May 09 14:31:51 Hey all, does anyone know of an Android example project, that shows movie sampling? ie Processing individual frame as textures. May 09 14:31:51 Hello May 09 14:32:18 how can I transform android.widget.ToggleButton into Imagebutton? May 09 14:32:22 Any ideas? May 09 14:32:38 appwidgets don't support togglebuttons May 09 14:37:10 danijoo: Hmm, not sure I follow - doesn't a color foreground on FrameLayout simply tint all its content? Or is there a way to control it to not tint specific children? May 09 14:48:48 Hi all. Question: ive been getting some bug reports about a ¨requestfeature() must be called before adding content¨ error. This happens sometimes on some devices. While the error looks obvious, ive managed to deduced that its because of the actionbar and a couple of requests on that. May 09 14:50:17 I have not been able to reproduce the error on any of my test devices. I found this answer a couple of times ABD = ActionBarActivityDelegate.createDelegate(this); before super.onCreate May 09 14:51:08 But, for some reason I cannot get a ref to ActionBarActivityDelegate. It says android.support.v7.app.ActionBarActivityDelegate is not public? May 09 14:51:11 How to solve this? May 09 14:55:49 ThomQ: What is the full stack trace? May 09 14:56:45 http://pastebin.com/bZeMqRSu May 09 14:57:11 it´s really annoying that i cant reproduce it :D May 09 15:02:43 Are you calling requestWindowFeature or anything like it? May 09 15:05:30 no May 09 15:05:51 But I read that the actionbar does something like that internally May 09 15:06:25 hence why i have to create the delegate, before super.OnCreate. But I can´t acces it May 09 15:07:07 and why it only happens on less then 1% of all installs, i really dont know May 09 15:07:16 As far as I can tell, the new version of AppCompat no longer calls requestWindowFeature. May 09 15:07:27 Though it's hard to tell for sure. May 09 15:07:29 Hello.- May 09 15:08:02 do you have a project with AppCompat in it, TacticalJoke? May 09 15:08:14 Yeah. May 09 15:08:26 Could you check if you can resolve ActionBarActivityDelegate in it? May 09 15:09:12 It's not a public class. And AFAIK it's also not in AppCompat 22.1. May 09 15:10:07 ThomQ, call super.onCreate first! May 09 15:10:15 before doing anything else May 09 15:10:16 I have this strange problem with my application, when I change text inside of TextView, it resizes as expected. Problem is that the background of parent on which is my TextView located, has a strange black rectangle that is on the same place as the TextView was, before it was resized. May 09 15:10:35 Can anyone help me, where to look to find a solution to this problem? May 09 15:10:52 pfn, I do. Well, I have to set a theme first, but directly after that i call it May 09 15:12:02 I´ve seen ActionBarActivityDelegate answers a couple of times now May 09 15:12:28 I think those answers are suggesting copy/pasting that file. May 09 15:12:53 In any case, there's a reasonable chance that simply using the latest version of AppCompat will avoid all this complexity. May 09 15:13:33 Especially because then you could just use Toolbar and free yourself from the ActionBar shackles. May 09 15:14:02 You mean rewriting a lot, for less then 1% of the users? :O May 09 15:14:12 I updated to the latest version May 09 15:14:25 Which version? May 09 15:14:27 well, ill just keep my fingers crossed then and leave it in May 09 15:14:58 I dont know, i updated all SDKs yesterday, and copy pasted the appcompat folder to my library folder May 09 15:15:48 22.1.1 May 09 15:16:31 but Toolbar is the new actionbar? Havent heard of it before May 09 15:16:47 what min SDK does it go to? May 09 15:17:31 7. May 09 15:17:59 Ahh k. Yeah just doing small bug fixes, i might look into it for the next big update. Thanks May 09 15:18:02 This talks about Toolbar: http://android-developers.blogspot.co.uk/2014/10/appcompat-v21-material-design-for-pre.html May 09 15:18:52 This is the requestWindowFeature thing: https://android.googlesource.com/platform/frameworks/support/+/jb-mr2-release/v7/appcompat/src/android/support/v7/app/ActionBarActivityDelegateICS.java#60 (That's not the latest version of that file, but it's not quick and easy to find the most recent one.) May 09 15:26:36 Please, is there anyone who can advice me something? May 09 15:26:54 maybe May 09 15:27:40 Okay, may you please? May 09 15:28:02 aah, text view resizing messes up the parent element? May 09 15:28:46 I'm not sure how you are resizing it or how you have your layout but maybe the parent is set to have absolute parameters or maybe you need to resize the parent along with the child element May 09 15:29:16 I'm resizing the TextView purely by changing its text. May 09 15:29:20 there are a LOT of ways to do layouts, I'd play with the layout editor first May 09 15:29:35 right, but the initial view is sized against the original text May 09 15:29:53 What do you mean? May 09 15:29:57 you need to make sure other elements of the view are set up to dynamically resize May 09 15:30:11 when you make the view a lot of elements are getting their size May 09 15:30:41 so when you change the size of one element other elements need to be set up to resize and need to be able to be resized May 09 15:31:01 Well, parent doesn't need to resize. It only messes up the background color. It forms this black rectangle on place, where original TextView has been. May 09 15:31:06 EG are you setting an absolute margin for something or do you have other components with minimum sizes too close May 09 15:31:34 you mean you are shrinking the text view and where the text view was is black? May 09 15:31:41 Exactly! May 09 15:31:56 aah, that's the container/parent element, you need to shrink that too May 09 15:32:04 I tried to invalidate parent, but no results. May 09 15:32:09 Nonono, that's not the problem. May 09 15:32:45 The parent is the whole display. May 09 15:32:57 I'll send a screenshot. May 09 15:33:26 https://www.dropbox.com/s/4e00ichjo1do378/Screenshot_2015-05-09-17-31-28.jpeg?dl=0 May 09 15:33:28 Here. May 09 15:33:39 Punga_: have you tried requestLayout() on the parent? May 09 15:33:44 I'm thinking maybe you have a layout grid inbetween the container and the textbox? May 09 15:33:45 I have not. May 09 15:33:49 When should I call it? May 09 15:33:59 http://developer.android.com/reference/android/view/View.html#requestLayout() May 09 15:36:28 Unfortunately requestLayout doesn't help either. May 09 15:36:35 My layout is really simplistic. May 09 15:37:14 I have not done anything with grids, I only use a Button, TextViews and LinearLayouts. May 09 15:40:02 Hmm, I figured that if invalidate() didn't help that the parent view was keeping the old layout internally for some reason - but apparently something else going on there. May 09 15:40:48 Punga_: maybe try putting together a more complete layout. Play with the editor a bit. Ideally you probably don't want elements constantly changing size anyway May 09 15:41:42 Hmm, I'll try something out. May 09 15:42:30 Punga_: Just out of curiosity, do you get the same effect if you set the background of the TextView to a translucent color? May 09 15:43:18 Translucent is predefined, right? May 09 15:44:04 Just add an alpha value to your existing color, like #C0FFFFFF May 09 15:44:11 Oh, I see. May 09 15:44:58 It still does happen. May 09 15:45:08 Also, I've found out something interesting. May 09 15:45:29 invalidate() actually does work, but not if it is called right after I change the TextView's text. May 09 15:46:11 Aah... invalidate() gets called before the new doMeasure etc is complete? May 09 15:46:32 That kinda bugs me, only way to make it work I can come up with, is to call some thread which sleeps for a while, and then invalidates. May 09 15:46:58 Chamooze: I'm not sure how does doMesure and such things work, but I believe that what you said is correct. May 09 15:47:27 what if you use postInvalidate() instead? I believe that places a call to invalidate at the end of the event queue May 09 15:48:23 I'm so stupid. Thank you so much, that was it! May 09 15:49:05 heh, I basically always use postInvalidate() just because it's thread "safe" :) May 09 15:50:06 I know, that I'm supposed to use postInvalidate(), it just was a while since I've last made something for android, and I forgot postInvalidate() even exists. May 09 15:50:11 Thank you once again! May 09 16:41:53 can I publish apps linked with LGPL code? May 09 16:45:51 paulo_: why wouldn't you be able to? May 09 16:46:09 JesusFreke: #GPL is telling me i can;t May 09 16:46:32 paulo_: why? May 09 16:46:50 *particularly* LGPL May 09 16:47:37 paulo_: I suspect you're leaving out some details in your question :) May 09 16:48:02 "paulo_: they forbid licenses which require the distribution of source, since they don't support such distribution and they don't want violation" May 09 16:48:11 i think they're talking about iOS May 09 16:48:14 paulo_: bzzzzzt. May 09 16:48:20 yeah, that's totally not true for android May 09 16:48:31 but I explicity mentioned android May 09 16:48:34 for the play store, rather May 09 16:49:18 paulo_: related: http://stackoverflow.com/questions/5662095/is-the-gplv2-compatible-with-the-ios-app-store-and-android-market May 09 16:50:46 but particularly lgpl, since that doesn't make any direct demands on your code at all May 09 16:57:31 paulo_: if you're really bothered, the answer is to consult a lawyer, of which we are not May 09 17:01:36 paulo_ esiest thing you can try is get in contact with authors May 09 17:13:03 paulo_: I'm thinking since you are specifically referencing the LGPL you are not linking but rather integrating LGPL code or simply trying to redistribute a modified version of soemthing under the LGPL without having to release the source modifications. If any of those are accurate you're kind of a dick but if not I think maybe you're misreading the LGPL. As for distributing binaries of modified sources without distributing the modified May 09 17:13:04 source the correct thing to do would be contacting the author and asking for permission or for a separate license. May 09 17:15:19 Kagetsuki: there are just images, which are separate enough from the program. May 09 17:15:47 Kagetsuki: and I do plan to release the modifications. May 09 17:16:02 I'm not looking for a way to circumvent licenses. May 09 17:16:15 so you are using images from a project that is licensed under the LGPL in your own program that is not LGPL? May 09 17:17:12 Kagetsuki: yes. May 09 17:17:17 isn't that the purpose of LGPL? May 09 17:17:43 LGPL allows linking, right? May 09 17:18:01 yes, even though it doesn't really make sense for non-software assets May 09 17:18:01 yes but if you are extracting the images and making them part of your source then that's different May 09 17:18:22 paulo_, check if perhaps the assets are licensed under one of the CC licenses May 09 17:18:28 non-software assets which are considered "part of the software" can have the license applied to them, May 09 17:18:29 I'm not making it a part of my source. May 09 17:18:54 so you're just linking the lib and using the images from the lib? May 09 17:19:00 I agree you should probably just contact the authors May 09 17:20:28 if you're just linking the lib and you happen to be bundling it I don't think you have a problem. But if you're doing something funny you think the authors can call you on the correct thing to do would in fact be to contact the authors. May 09 17:28:57 logical screen resolution for development? any good rule of thumb? May 09 17:30:51 320x200 May 09 17:30:53 :p May 09 17:31:06 lol May 09 17:31:11 thats a bit small May 09 17:34:07 i heard 960x540, like once May 09 17:34:14 but thats pretty anecdotal May 09 17:34:37 just wondering if there is a good rule of thumb May 09 17:34:46 I test at all the major sizes. May 09 17:34:57 For the cordova FileTransfer plugin, does it actually upload the file to the server or do you have to have some form of backend like a .php script to handle the actual uploading of the file to the server? May 09 17:34:58 because in the examples I see: May 09 17:35:04 ft.upload(fileURL, encodeURI("http://some.server.com/upload.php"), win, fail, options); May 09 17:35:27 how exactly would it "upload to the server"? May 09 17:35:44 eh? May 09 17:35:54 ravilov: https://github.com/apache/cordova-plugin-file-transfer May 09 17:36:06 oh cordova L( May 09 17:36:20 um, what are the major sizes? May 09 17:36:36 Im just trying to get a basic template built fir wireframning a game May 09 17:36:56 MetalHead77, I think you lack the basic understanding of how file uploads work May 09 17:37:14 that link doesn't help May 09 17:37:22 Storyteller, I do 640dp x 480dp and up. May 09 17:37:29 http://developer.android.com/guide/practices/screens_support.html May 09 17:37:36 ravilov: Neither does your remarks May 09 17:39:03 if i use the viewholder pattern in my listview then how is it different from recyclerview? May 09 17:39:49 MetalHead77, I think you need some sort of backend to handle it. May 09 17:40:50 DLSteve: So the plugin basically acts as an HTML5 file tag then? May 09 17:41:36 MetalHead77, I haven't used cordova but I think that is how it works. May 09 17:42:02 ok, thank you May 09 17:42:22 DLSteve: Alright, thanks May 09 17:44:30 MetalHead77, Yah it sends it over http so you would need something server side to handle it. May 09 17:53:38 DLSteve: Cool. Thanks May 09 17:55:52 Hey guys! I recently added an interstitial ad, and now I want to know if it gives any earnings. is there a way to report that on admob? the report in https://apps.admob.com/#home are pretty basic May 09 17:55:57 any idea? May 09 17:59:50 Hmmm May 09 18:00:04 Admob Is With AdSense Right? May 09 18:00:55 hmn, not sure. is it? May 09 18:01:57 oh, I see. I may see better reports on adsense than on admob May 09 18:01:58 let me check May 09 18:02:18 Mattx: Monetize / Performance report / network report / filter / select ad units May 09 18:02:33 I need also Help :D May 09 18:02:38 Error:(23, 32) String types not allowed (at 'maxSdkVersion' with value 'integer'). May 09 18:02:49 I get this error while building gradle May 09 18:04:50 icecube45, do you use adsense to see details of your admob earnings? is this even possible? May 09 18:05:18 Droidwall: seems pretty self explanatory to me :) May 09 18:05:28 are you using something like maxSdkVersion="18"? ;) May 09 18:05:33 Hmm May 09 18:05:44 Its in the AndroidManifest.xml May 09 18:05:46 Let me se May 09 18:05:47 e May 09 18:06:21 also, it's generally a bad idea to specify a max version anyway May 09 18:06:25 Im using android:maxSdkVersion="integer" May 09 18:06:31 uh.. May 09 18:06:37 that's not an integer :) May 09 18:06:52 May 09 18:06:52 Mattx: you spelled my nick wrong. try going through my last message May 09 18:07:03 but see my other comment about not specifying a max version. May 09 18:07:16 Best is i remove it May 09 18:07:27 well, best is you understand why it is wrong as it is May 09 18:07:30 and *then* remove it. May 09 18:07:39 err. I'm sorry, hexchat selected another user that also starts with "ice" :P May 09 18:07:59 icedp, I read your last message, I found it, thanks! I asked in case adsense gives better reports May 09 18:08:06 it seems it is connected to admob somehow May 09 18:08:16 JesusFreke: I will see im also a starter to Android Development but thanks anyway May 09 18:08:47 Droidwall: do you know what an integer is? May 09 18:08:56 Nope May 09 18:08:57 :D May 09 18:09:05 oh dear :) May 09 18:09:14 in fact yeah, adsense has the same if not more reports :) May 09 18:09:26 can you make an educated guess? ;) May 09 18:09:27 whoa May 09 18:09:39 * ravilov is impressed by this May 09 18:09:42 http://en.wikipedia.org/wiki/Integer_(computer_science) May 09 18:10:12 Droidwall, does setting maxSdk to "integer" actually make sense to you? May 09 18:10:37 Mattx: admob is for mobile apps, not adsense May 09 18:10:41 Mattx: reports seem fine May 09 18:10:59 Noo May 09 18:11:10 icedp, adsense is connected to admob, you can use adsense to create reports of your admob account it seems May 09 18:11:12 And there is a another Problem May 09 18:11:23 Mattx: Yeah you right May 09 18:11:35 Why Is Android Studio Lagging??? May 09 18:12:00 I have An Intel Core I7 4790K 32 Gb ram And A 1tb SSD and a GTX 980 May 09 18:13:07 Droidwall: have you bumped up the java heap size for it? May 09 18:13:52 How?? May 09 18:14:08 JesusFreke: Im really new to Android Development Soooo May 09 18:14:52 Droidwall: http://tools.android.com/tech-docs/configuration May 09 18:15:02 see "Increasing IDE memory" May 09 18:15:24 if you have RAM to spare, bump it up to 4g-8g :D May 09 18:19:27 JesusFreke: This is how its now -Xms128m -Xmx750m May 09 18:20:38 that's nice. I'm not sure why you're telling me this :) May 09 18:20:57 Hey guys. I have a game services question. I have created Android games using games services in the past. I am now created a web-based game. I see the API for retrieving leaderboard information and I can build a leaderboard display myself, but is there simply a webpage (on Google+ or other) Google generates for me for my game's leaderboard. I'd rather simply use Google's leaderboard UI if they provide a web-based UI. Their Android UI May 09 18:20:57 looks nice. May 09 18:21:54 scribe: I kinda doubt it, but I'm not really familiar with the game services stuff. May 09 18:22:09 i.e., For my existing Android games, can I go someplace in a web browser to see the leaderboard? May 09 18:22:26 Thanks JesusFreke May 09 18:24:06 Another Problem :(( May 09 18:24:06 Error:Execution failed for task ':mobile:processDebugResources'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Dev-Adam\AppData\Local\Android\sdk1\build-tools\22.0.0\aapt.exe'' finished with non-zero exit value 1 May 09 18:26:37 mmm ... may be time for a new dev phone :/ May 09 18:27:12 How?? May 09 18:33:18 ah, sorry, I mean for me :p May 09 18:35:25 Droidwall when aapt fails i often find a malformed xml file to be the problem May 09 18:36:26 g00s: Ohhh I will see Thanks Mate! May 09 18:36:52 maybe related to Error:(23, 32) String types not allowed (at 'maxSdkVersion' with value 'integer'). above May 09 18:41:58 g00s: ! May 09 18:42:07 hey thepoosh :D May 09 18:42:12 sup? May 09 18:42:20 are you taking it easy now that submisssion is over ? May 09 18:42:38 btw i see it now in our store, must have been time difference thing or something May 09 18:42:51 oh May 09 18:43:09 it's Saturday night, i'm easy like sunday morning May 09 18:43:12 :P May 09 18:43:34 :D May 09 18:45:12 i just spent a week getting multiselect working with recyclerview. My framelayout didn't like me setting both foreground and background drawables at the same time May 09 18:45:22 i think maybe some internal race condition May 09 18:53:25 TIL that if a create drawable programatically, or inflate it, I could not reuse that once set on a view - which seems kinda weird May 09 18:53:54 on the same view even May 09 18:54:15 thepoosh did you see https://github.com/square/leakcanary May 09 18:54:38 no, wow May 09 18:54:43 looks good May 09 18:54:53 i knew that May 09 18:56:16 but this is interesting https://github.com/square/leakcanary/issues/1 May 09 18:56:33 trying to understand whether Samsung really fucked that up May 09 18:56:44 JakeWharton: sometimes, i love you guys May 09 18:57:01 " The global app wide resource instance has been built with a context that's the activity instead of the application instance." May 09 18:57:19 how do they even ... May 09 18:57:25 oh May 09 19:36:54 hello May 09 19:38:08 I am looking to purchase a android handset for development what handset do you guys suggest is best? I am thinking of getting a Nexus 5 May 09 19:42:43 alexi5: Seems sensible. May 09 20:18:43 Nexus 5 is no longer sold AFAIK May 09 20:19:16 They sell loads on Amazon.co.uk. :) May 09 20:19:24 yeah i think you can only get the nexus 5 used now May 09 20:19:25 Is there any reason why my Drawable is showing wrong height/width calling getIntrinsincHeight/Width ? May 09 20:19:28 how about a moto g? May 09 20:19:30 second hand sure, ebay, etc... May 09 20:19:54 I think you can get a moto g 2014 new off contract for $99 May 09 20:20:01 can't really beat that imo May 09 20:23:52 * capella wondering how that N6 is going to fit in my pocket :/ May 09 20:25:06 Seems like too much phone ... if my N7 tablet is any guide May 09 20:25:23 I have a N6 and yes, it's huge May 09 20:25:29 but its main problem is that the back is so slippery May 09 20:26:07 Ah, my current is a GS3 and it's curved/slippery :) May 09 20:26:43 I have a Notes 4 also, about the same size, blocky but much easier to hold and manipulate. May 09 20:27:14 Basically a choice between ugly but practical vs/ sleek but inconvenient May 09 20:28:11 My main point is that it's a dev phone and also useable ... no screwing around getting root etc May 09 20:28:30 Hi May 09 20:28:38 Anyone is running on linux please? May 09 20:28:39 Maybe a used N5 May 09 20:29:20 jxierx: you'll be better off asking your actual question :) May 09 20:29:30 This is the QUESTION :) May 09 20:29:41 you're taking a survey? May 09 20:29:50 what do I win? May 09 20:30:03 Please stop do that. May 09 20:30:05 i knew running linux would make me rich May 09 20:30:06 Just want to know. May 09 20:30:20 ANyone develop for android in linux? May 09 20:30:28 jxierx: of course May 09 20:30:29 * capella guesses there's a 99.3% chance someone in this channel is running linux May 09 20:30:53 capella: whoa capella are you like a genie or soemthing????? May 09 20:31:04 capella: will my app be the next snapchat? May 09 20:31:07 heh - my first wifes name May 09 20:31:22 * capella says "shake again" May 09 20:31:29 DadFoundMy: I need help about partition, backup, I don't understand about moving to linux for develop for android May 09 20:31:40 jxierx: now we're getting to the actual question ;) May 09 20:31:50 gah, a windows user? May 09 20:31:52 jxierx: partitioning what? your linux distro? May 09 20:32:00 jxierx: you might be better off on ##linux May 09 20:32:06 even I gave that up :D May 09 20:32:07 My main is windows.. It's about linux May 09 20:32:13 I did no one is would like to help May 09 20:32:32 a lot of this channel is self serve - it's assumed you can google and read May 09 20:32:33 jxierx: did you ask the question right away or ask to ask a quesiton like in here? May 09 20:32:47 not sure May 09 20:32:59 if they really didn't want to help try out a specific distro's channel like #ubuntu #arch or whatever May 09 20:33:14 If you joined #linux and asked "anyone here use Linux?", no wonder you didn't get an answewr May 09 20:33:29 search first rule of irc May 09 20:33:37 it'll get you on your way May 09 20:33:38 http://rurounijones.github.io/blog/2009/03/17/how-to-ask-for-help-on-irc/ May 09 20:34:11 #1 rule - get to the point May 09 20:36:06 WOOT! May 09 20:36:08 im pretty intrigued by using non java jvm langagues for android-dev. i just cant seem to wrap my head around the benifits May 09 20:36:14 seems to just over complicate things May 09 20:37:24 capella: oh, nice. I hadn't seen that abbreviated, irc-specific version May 09 20:38:08 iiiiiiiiiiiiiiiiiiiiiii lose May 09 20:38:42 Heh - forgets that people actually need stuff like that ... first timers coming into channel and basically "tap-tap-tap ... is this thing on???" May 09 20:39:22 meh we all did it at one point, or atleast i did May 09 20:39:30 yep May 09 20:39:43 u don't May 09 20:40:25 correct. there are a whole lot of things that I don't. May 09 20:40:41 e.g. I don't like mustard May 09 20:40:47 I do, but I won't May 09 20:41:16 * capella can't the english good May 09 20:42:51 JesusFreke: You asked me a weird questions and throw me away. May 09 20:43:04 jxierx: I'm trying to get you to actually ask your question May 09 20:43:37 In the Lollipop tree, anyone know how to build KeystoreSigner.java into KeystoreSigner.class? May 09 20:43:44 (a simple javac doesn't work) May 09 20:44:17 FrankRizzo890: Which os? May 09 20:44:21 FrankRizzo890: do you have the full tree downloaded? May 09 20:44:22 (It's in system/extras/verity May 09 20:44:30 linux, and yes, full tree May 09 20:44:41 if so, you'll need to source build/envsetup.sh as per usual, select a lunch target May 09 20:44:52 and then build the module containing that source file May 09 20:44:55 yes, I've built everything, but it skips that application. May 09 20:44:59 you can find the module name in the Android.mk May 09 20:45:01 ohhh. May 09 20:45:10 OK, and then? May 09 20:45:12 :-D May 09 20:45:18 make :) May 09 20:45:27 or just cd into that directory with the Android.mk and do an "mm" May 09 20:45:36 which will build all modules in that directory May 09 20:45:39 DOH! OK, thanks! Been too long, mm it is! May 09 20:46:19 well crap! May 09 20:46:20 FrankRizzo890: can you come PM? May 09 20:46:23 build/core/product_config.mk:253: *** No matches for product "full". Stop. May 09 20:47:03 FrankRizzo890: it sounds like you got the lunch target incorrect or something May 09 20:47:51 try "lunch full-eng" or something May 09 20:48:02 or just type "lunch" and select one of the options May 09 20:52:40 just fired off "brunch manta" May 09 20:52:55 (Cyanogenmod development for the Nexus 10) May 09 20:57:34 DadFoundMy: Kotlin is a better Java. May 09 21:03:18 Anyone have proguard rules for autovalue ? May 09 21:03:30 JeusFreke does May 09 21:57:23 Hey! May 09 22:04:04 frack .. my router doesn't like my new cable modem :/ May 09 22:24:43 Is it possible to draw a Circle for instance on top of ImageView ? May 09 22:44:59 hey, is there a way to make sure that the emulator will start directly with the same orientation as a real device? Its seems like that with the phone I must use mCamera.setDisplayOrientation(90) and with the emulator it has to stay on 0 in order that the camera will be on portrait mode. May 09 22:46:53 nerredsenvy, yes May 09 23:05:11 Hi, is there a special way to create a settings activity or is it just another regular activity but with a ? May 09 23:14:18 Bolto: last official way IIRC is a plain activity with PreferenceFragment May 09 23:15:23 Thanks May 09 23:22:56 Hi! I am currently drawing the camera preview on a TextureView, the docs says that TextureView can only have one producer, so cannot be locked for drawing. How would I go about drawing graphical elements on top of it? May 10 00:50:14 isnt it hilarious how logcat works like 20% of the time in AS May 10 00:55:39 I find switching terminal windows confuses it May 10 01:14:37 Hey, I'm getting NullPointerExceptions and I dunno why May 10 01:14:39 https://serve.empy.org/e6yiVpdnbQ.txt May 10 01:14:41 here's a stacktrace May 10 01:15:08 and here's the code May 10 01:15:10 https://paste.empy.org/xCbODnoRM4 May 10 01:18:54 Bolto: tried the debugger? checked mDrawerList actually gets a non-null reference from findViewById? May 10 01:20:54 I'm not using an IDE so I'm not quite sure how I'll be able to debug May 10 01:22:31 jdb May 10 01:23:06 better: rlwrap jdb May 10 01:23:28 Thanks a bunch May 10 01:26:49 win 5 May 10 01:33:31 Bolto: what are you using for Android dev (if not an IDE)? May 10 01:33:58 vim and sbt May 10 01:34:12 sublime text :) May 10 01:34:31 no... May 10 01:34:47 http://www.scala-sbt.org/ May 10 01:34:50 "we don need no steenkin ide" May 10 01:35:05 They just get in the way May 10 01:35:10 and are hyperinvasive May 10 01:35:30 all thatvauto completion May 10 01:36:12 get outta my head!! XD May 10 01:36:24 are you ok? May 10 01:36:32 hehehe May 10 01:36:37 interesting. There are so many features I use in AS that save me heaps of time, I can't imagine doing just Android dev in vim May 10 01:36:44 do you use any special plugins? May 10 01:36:53 nope May 10 01:37:06 Just c'derekwyatt/vim-scala' May 10 01:37:54 awesome May 10 01:38:34 also I have no idea how to get jdb to listen to my application May 10 01:38:44 adb jdwb or w/e won't respond with pids May 10 01:45:26 Quick question. IM developing an android app on AIDE (Android IDE) and i pushed a repository to github and i wanna continue working on it on my PC an dwas wondering if Visual Studio is compatible. i cant seem to find a way to open my project. May 10 01:45:53 i cloned the repo but VS doesnt recognize any of the files. May 10 01:46:14 then most likely VS doesn't support it May 10 01:46:22 you can't develop Android on Visual Studio AFAIK May 10 01:46:33 the official IDE is Android Studio May 10 01:46:52 ok thanks i was just about to ask if there was an android IDE for windows =) May 10 01:47:08 that's the one! :) May 10 01:47:55 thanks! i dont use VS too often and saw it had an option for android apps so i was hoping they were compatible. =) thanks again for the help! May 10 01:48:16 np :) May 10 01:49:11 Bolto: have you used adb much? May 10 01:49:40 Not a whole lot May 10 01:49:54 i haven't actually done this yet May 10 01:49:57 http://developer.android.com/tools/debugging/index.html#stack May 10 01:50:02 so yeah, just running jdb won't work May 10 01:50:23 you need to have adb properly talking to your target, you need to have it set up so the wireline debugging protocol goes to it and to your jdb May 10 01:50:41 will this work even if the application dies on launch? May 10 01:50:58 i use emacs to code but eclipse for install, debug, etc May 10 01:51:30 again haven't done this for java on the command line (and C was long ago) but normally the debugger launches the app and then catches the crash May 10 01:52:08 if you're serious about devving from the command line you will need to do a lot of setup/research May 10 01:52:21 it's not a particularily well supported development configuration May 10 01:52:36 considering rlwrap jdb is still the state-of-the-art for debugging... May 10 02:07:33 Our startup got funded! We're building a personal gaming flying robot. Does anyone know computer vision or Artificial Intelligence? Do you want to come to shenzhen, china from July to October, and work with us? May 10 02:16:18 hi, is it safe to flash 'preloader' of a stock rom. do i need to uncheck? May 10 02:16:28 cancer: wrong channel May 10 02:16:59 sorry, i didn't know. May 10 02:19:08 stanford_drone weren't you told the other day, no advertising ? May 10 02:20:06 no ads. just looking for a coder to join me May 10 02:20:42 8bn people in China and you can't find a dev :p May 10 02:21:30 Though separately it sounds like fun May 10 02:30:30 capella-s3 i guess the power is back on over there ? May 10 02:32:50 yah - that was like last week iir :) May 10 02:36:05 Though we did just get past that nuclear power transformer explosion May 10 02:37:06 capella, i'm not looking for chinese coders May 10 02:37:38 http://www.reuters.com/article/2015/05/10/us-usa-nuclearplant-incident-idUSKBN0NU0RN20150510 May 10 02:39:32 capella nothing that less regulations can't fix ! :D May 10 02:39:55 Oh! More govt is good? May 10 02:40:03 get rid of those pesky inspectors while we're at it ! May 10 02:40:11 Send em to Iran ! May 10 02:41:04 g00s: I'm done with my latest largish effort for moz - guys trying to suck me into Rust/Servo ... May 10 02:41:18 sounds good :D May 10 02:41:33 Dammit - time to finally learn git >:-| May 10 02:41:48 or maybe that power transformer blew up because it was running javascript May 10 02:41:51 what have you been using instead of git? May 10 02:42:02 And it was overpowered! May 10 02:42:08 ercurial May 10 02:42:12 mercurial even May 10 02:42:29 ah of course. I want to learn mercurial. from everything I've read it looks better than git May 10 02:42:38 capella so moz splits between git and hg ? May 10 02:43:03 g00s: The offical is mercurial - but side projects are all migrating to git - it's sucking up the world May 10 02:43:16 weird .... May 10 02:43:25 why are they migrating to git ? May 10 02:43:48 Well our mobile team 'cause that's closer to Android world of course May 10 02:44:12 capella lol i saw an aryicle that google and fb were working on hg May 10 02:44:17 g00s: Because git is superior to hg in all possible ways? May 10 02:44:27 :D May 10 02:44:33 heeeeeeeeeeeeeeeeer we go May 10 02:44:47 CedricBeust just poured some gasoline on the fire May 10 02:44:49 I wonder if github would ever allow mercurial repositories? May 10 02:44:54 they could call themselves hitgub May 10 02:44:57 but tacticaljoke isn't here to stoke the flames May 10 02:44:59 is there a better pattern than this? it seems like a lot of indentation http://dpaste.com/1XY0N32 May 10 02:45:10 they already own that domain so maybe...? May 10 02:45:22 basically I have a method which needs to be threaded (uses the network) but also throws an exception so needs to make an alertdialog on the UI thread May 10 02:45:24 barbs: The patter would be to indent with four spaces and a saner indentation scheme May 10 02:45:42 you mean duncannz May 10 02:45:49 Yes sorry duncannz May 10 02:46:02 duncannz omg thats terrible May 10 02:46:23 holy moly May 10 02:46:43 a new runnable in a new runnable lol ! May 10 02:46:44 4 seems harsh after etting used to 2 for js May 10 02:46:45 good day everyone, I am trying to smooth out a Path drawing with a finger on a canvas, by converting the path to points and using the Quad Bezier Curve, which i believe Path.quadTo(x1,y1,x2,y2) does, but I am having a bit of an issue with my output which does not seem to follow examples of what Bezier curve supposed to produce, either I am not sampling the right points along the Path drawn or not providing the right mid/control May 10 02:46:45 points from the Path, if someone have any information or an example code for this kind of task, i would really appreciate it May 10 02:46:49 that should run fast indeed May 10 02:47:27 yo .. dawg May 10 02:48:00 i dont know, i always got this dread working on C++, that i was going to have to read somebody elses code May 10 02:48:08 i often get that dread when i have to read other Android code May 10 02:48:23 I see templates lurking around every corner May 10 02:48:42 :D May 10 02:48:46 sooo much abstraction May 10 02:48:55 drives me to distraction May 10 02:49:33 javas my attraction May 10 02:49:42 (heh this is fun) May 10 02:54:12 g00s: I know it's terrible that's why I'm asking how else to do it May 10 02:55:01 i wonder if google would not accept an app due to profanity May 10 02:55:14 if so i should probably consider using different Log strings May 10 02:56:26 so, no Log.wtf();? May 10 02:57:04 Log.d("fuckThis", "pls work"); May 10 02:57:27 oic ;) May 10 02:57:42 umm whats oic May 10 02:57:49 duncannz my prescription is to read up on rxjava :) i see you are trying to do some async thing and then handle the error May 10 02:58:10 tfw you cant figure own why i simple onClickLister() wont work May 10 02:58:16 asynctask... I've heard good things May 10 02:58:41 capella-s3 maybe thats why firefox for android behaves so weird ... May 10 02:58:45 :D May 10 02:58:50 if my button is inside a layout i shouldnt need to do anything special to it right? May 10 02:59:03 yah.. we use it a lot May 10 02:59:10 lol **** ENDING LOGGING AT Sun May 10 02:59:59 2015