**** BEGIN LOGGING AT Thu Jul 02 02:59:59 2015 Jul 02 02:59:59 snowkidind: nope. not at a computer at the moment Jul 02 03:00:22 doubt that would be available to a un rooted install Jul 02 03:03:42 huh. there's a recursive form... http://source.android.com/reference/com/android/tradefed/util/FileUtil.html#recursiveHardlink(java.io.File,%20java.io.File) Jul 02 03:09:39 this tutorial instructs to add an EditText variable, find the id and call .setText on it, but it only says to do so in the onCreate method http://www.raywenderlich.com/56109/make-first-android-app-part-2 Jul 02 03:10:11 but if i do that i can't access the variable from my onClick method Jul 02 03:10:23 the variables need to be global and outside the onCreate method right? Jul 02 03:11:08 erm, no Jul 02 03:12:27 james0r: He's assigning a field. Jul 02 03:12:50 That code doesn't look good, though, because he's not even using the `private` modifier. Jul 02 03:15:06 Actually, I take that back -- I was looking at one of the comments. Ctrl+F fail. Jul 02 03:15:17 declaring the variable right beneath my class declaration seems to work fine though. bad practice? Jul 02 03:16:06 Using a field (a member variable) is fine for this. Jul 02 03:18:29 TacticalJoke, k thx Jul 02 03:21:52 I take back my takeback. He really is forgoing the `private` modifier. Jul 02 03:22:36 `TextView mainTextView;` should be `private TextView mainTextView;`. It doesn't make sense to use package-private visibility (IOW, what you get with no modifier) without good reason. Jul 02 03:25:13 TacticalJoke, so 'TextView mainTextView' would become 'private TextView mainTextView' ? Jul 02 03:25:40 Yeah. That's the most sensible thing to do here. Jul 02 03:27:33 TacticalJoke, k. yeah i'm still pretty newb, but i wanna create good habits along the way. still not so sure what scope i want my variables to have in some instances. Jul 02 03:28:27 Generally, the best scope is the most limited one. Jul 02 03:30:41 TacticalJoke: Actually it makes sense if you use Dagger Jul 02 03:31:53 Yeah, but he's not doing that. All he's doing, from what I can see, is teaching n00bs bad habits. Jul 02 03:33:42 In part three of the tutorial, he even does it with a LayoutInflater: `LayoutInflater mInflater;` Jul 02 03:34:06 mAxflater Jul 02 03:45:31 hm, an open source mapping thing associated with samsung https://mapzen.com/ Jul 02 03:46:35 i guess they got some apple guys to work on it Jul 02 03:50:05 join us now and share the software ~ Jul 02 03:51:15 Anyone ever used google api sign in before? Jul 02 03:51:32 Having a weird issue where my onConnected method is called, but the bundle its being passed is null Jul 02 03:51:46 Weird because onConnected usually means success Jul 02 03:58:27 i have a JNINativeMethod and populated it with(javafuncchar, signiture, cvoidfuncpointer) i have 2 entries to the array how in java the libs are loaded and it calls the c native functions how does it now which index method_table[] to get? Jul 02 03:59:33 how == now Jul 02 04:02:50 does jni miracle happens with it Jul 02 04:03:01 should i ponder on how jni gets it Jul 02 04:05:38 i got it its only 1 way Jul 02 04:06:01 do we really benefit from native functions Jul 02 04:06:34 well i im doihng the onload material Jul 02 04:06:40 jni onload Jul 02 04:07:39 if you have an array of JNINativeMethods the only way to access it is through index logn Jul 02 04:08:06 now if it is huge n would be huge Jul 02 04:08:10 now Jul 02 04:08:27 please hear me out Jul 02 04:09:24 should i create my own data structure of JNINativeMethods to speed things up if i have a a large number of native functions Jul 02 04:13:23 should i leave it to find class Jul 02 04:13:35 registerNatives Jul 02 04:13:37 please Jul 02 04:47:23 Should the values that can be calculated (very simple mathematical) be stored in database for quick access? Would it matter except complicating database table. Jul 02 04:50:13 balance between file access and memory Jul 02 04:50:29 you dont want to be loading xml files and sprites at the same time Jul 02 04:52:13 sudhirkhanger usually i would leave derived data out of a database Jul 02 04:52:30 unless that data is given to another system, and you need to audit Jul 02 04:55:14 Yeah, it's basically. A listview and some extra info in detailed activity. And maybe sharing that extra info intents. Jul 02 04:58:26 damn it, there are too many good books to read :( Jul 02 05:03:34 hmm, is registerNatives worth doing? I've never bothered Jul 02 05:13:21 ""It turns out that automated vehicle technology — unlike humans — abides by the law. And that's bad news for local government revenues," lol - nm jobs, they are worried about speeding tickets Jul 02 05:18:26 dragorn http://www.wired.com/2015/07/online-anonymity-box-puts-mile-away-ip-address/ Jul 02 05:23:42 so much for red-light revenue Jul 02 05:26:31 money is money Jul 02 05:26:40 doesn't matter where it comes from Jul 02 05:26:51 it matters that it's gone Jul 02 05:27:19 whether from jobs or law abiding robots, it's all gonna be a money drain Jul 02 05:55:40 need some help with using android studio to commit a project to an existing respo like this https://github.com/mr-fool/Android Jul 02 05:55:55 I try right clicking the project name tab on android studio Jul 02 05:56:08 but the github options overwhlemed me Jul 02 05:56:48 hi my eclipse tools doesnt show android 5.0. builds Jul 02 05:56:56 how do i fix this Jul 02 05:57:03 horny-sama: Learn to do it from the command line, or use SourceTree. IDEA is really not great at git Jul 02 05:57:30 CedricBeust: I don't think window works well with command line either :P Jul 02 05:57:40 idea is fine at git when you know how git works (by using the commandline :) Jul 02 05:57:50 horny-sama: I use it every day Jul 02 05:57:58 was pushing things just 1/2 hr ago from the command line with git Jul 02 05:58:20 you can get msysgit, or at least my preferred cygwin Jul 02 05:58:56 yes, msysgit or mwing are both great, work right out of the box Jul 02 05:59:02 bash, git, ssh, everything Jul 02 05:59:44 isntalling msygit Jul 02 05:59:53 honestly I am not a fan of github Jul 02 06:00:46 cvs and 8tracks for life Jul 02 06:01:15 now that mysgit is installed Jul 02 06:01:19 how do I use it Jul 02 06:01:22 I don't mind GitHub, but Git is no fun compared to Mercurial. Jul 02 06:01:31 GitHub really needs Mercurial support. Jul 02 06:01:53 Mercurial is dead, no point really Jul 02 06:02:07 opened git gui Jul 02 06:02:10 It's not dead. It's in active development. Jul 02 06:02:13 it's not dead, but it's basically the same as git to use Jul 02 06:02:26 but I still want to push without dling the respo Jul 02 06:02:30 It's dead in use and adoption, it's just going to shrink Jul 02 06:02:32 ive used both, but can't really see any advantage to either Jul 02 06:02:38 It's as powerful as Git without the horrible UI. Jul 02 06:03:21 "ui" :D Jul 02 06:03:38 git's ui is horrendous but despite that, git is much more powerful and it won for that reason Jul 02 06:03:47 deebo: People often object to that term when talking about command-line UIs, but I don't understand why. Jul 02 06:03:58 It's a UI, no question Jul 02 06:04:07 CedricBeust: I don't think Git is more powerful. Jul 02 06:04:28 SCM wars Jul 02 06:04:59 anyone want to give me a hand on using git in conjunction with my android project that I created with android studio? Jul 02 06:05:19 horny-sama: Aren't those separate topics? Jul 02 06:05:21 There is as much a war between git and Mercurial as there is a war between humans and cockroaches Jul 02 06:05:33 CedricBeust: What can Git do that Mercurial can't? Jul 02 06:05:42 TacticalJoke: not really you need version control? Jul 02 06:05:47 while programming Jul 02 06:06:29 As far as I remember, there is a single thing that Git can do which Mercurial can't (and this is because the author of Mercurial thinks it's a terrible idea). Jul 02 06:06:39 There are probably a few things Mercurial can do that Git can't (e.g., changeset evolution). Jul 02 06:07:14 I mean I have created an android proejct using android studio now I want to upload it to git and I am stuck Jul 02 06:07:20 to existing respo Jul 02 06:07:53 horny-sama: The instructions on github are crystal clear, it's just four commands Jul 02 06:08:26 CedricBeust: url? Jul 02 06:08:40 github.com Jul 02 06:08:49 horny-sama: Don't think of this as an Android-specific thing, because it's not. It's just a question about pushing to GitHub. Jul 02 06:08:54 CedricBeust: might as well told me it is on google Jul 02 06:09:06 it'sl iterally one click away Jul 02 06:09:41 I love how so many simple questions turn into debates :D makes things interesting Jul 02 06:10:30 horny-sama: Your question is "How do I push a bunch of files to GitHub". The answer is very easy to find. Jul 02 06:10:36 I mean "a bunch of changesets". Jul 02 06:10:40 TacticalJoke: no Jul 02 06:11:08 my question is how to add a bunch of files without having to create the respo folder on your pc so my android studio can still work on it Jul 02 06:11:51 horny-sama: AS doesn't care, it will keep working on it whether there's a repo or not Jul 02 06:12:03 I know how to If you really want to combine, you'll need to go to your copy of that existing repo, or clone it new. Then move your new files in, git add them, commit them, push them. Jul 02 06:12:11 but that's not what I want Jul 02 06:12:32 CedricBeust: I need to move it to the respo folder which .... Jul 02 06:13:12 horny-sama: http://goo.gl/Ce46x8 Jul 02 06:14:02 CedricBeust: that's not what I wnat Jul 02 06:14:03 lol Jul 02 06:14:11 I know how to do that alreadyt Jul 02 06:18:37 I'm using AlarmManager and I have a question about how it sees differences in Intents Jul 02 06:19:15 I'm setting an long extra on the Intent. Does AlarmManager see it as a different alarm because of that or are all alarms with that same Intent action the same to it? Jul 02 06:35:26 Xscreensaver 5.33 out, Android coolness Jul 02 06:37:10 i have no opinion on git vs hg, but find it interesting that both google and fb have engineers working on it Jul 02 06:37:59 They're huge companies, they have engineers working on everything Jul 02 06:38:25 i guess one question i have - would repo still be neccessary with hg Jul 02 06:38:41 splitting up all the git repositories that way for android - its kinda a clusterfuck Jul 02 06:38:49 yeah Jul 02 06:39:27 We'll probably never know because it would take Mercurial five times as long to sync this amount of code :) Jul 02 06:42:27 Im confused whether I should use full height drawer menu or a clipped one in my social/ecommerce app... Jul 02 06:43:27 CedricBeust actually if i had to guess, its exactly that problem that hg might be better suited for - hence the work from google/fb. but i guess we'll have to wait and find out. we've been at this long enough to see version control systems come and go. git won't br around forever either Jul 02 06:43:56 CedricBeust: I'm not sure about that. Facebook made contributions to Mercurial that put it above Git in performance in certain areas (I think it was mainly cloning and working-directory-state calculation). Jul 02 06:44:09 Sure, but pretty confident 1) it's here for a few years and 2) it won't get outclassed by Mercurial Jul 02 06:44:54 I would say that it's been well and truly outclassed by Mercurial already, if we're talking features. It just doesn't have anywhere near the market share. Jul 02 06:47:00 I doubt Mercurial and Git will be considered state of the art for long, though. Something way better will come along in the not-too-distant future. Jul 02 06:47:30 Stuff like this looks kinda interesting: http://codicesoftware.blogspot.com/2015/07/towards-semantic-version-control.html Jul 02 06:47:33 Mercurial's obviously no good because 'h' and 'g' are the same finger on a dvorak keyboard. Jul 02 06:47:53 I don't see git going anywhere for at least five years but we'll see Jul 02 06:52:49 die git die :/ Jul 02 06:53:13 * capella but onlu cause I learned mercurial first ;) Jul 02 06:54:31 my mistake is git add --all instead of git projectName/* Jul 02 06:57:56 hey guys anyone knows how to get text from a notification without using the extras in api v19? Jul 02 07:13:14 Is there a way to make widget update onClock tick? Jul 02 07:16:25 if you enable the network permission in an update, do the users need to accept it? even though it is no longer something that is needed to be accepted on first install? Jul 02 07:31:24 anyone online? Jul 02 07:33:52 nope Jul 02 07:38:38 I should have just made a recepies app Jul 02 07:43:11 guys a best practice question Jul 02 07:44:15 game, with its instruction, what is the best way? 1. Fragment for the game, fragment for the instruction 2. one Fragment two layouts file 3. one fragment one layout Jul 02 07:47:20 icemanbp: what kind of game ? is it a game with lots of UI widgets ? Jul 02 07:47:32 no Jul 02 07:47:37 show some shapes Jul 02 07:47:54 instruction tells which shapes you have to touch Jul 02 07:47:57 you can use no fragments and just canvases Jul 02 07:48:02 and layouts Jul 02 07:48:15 you have to use canvas Jul 02 07:48:25 in the app there's different of this games Jul 02 07:49:03 there's also analytics for the results Jul 02 07:50:58 hi. I made a navigationdrawer with multiple other objects. and declare the navigationdrawer in the .main.java. However the application doesnt work and give error. Here are XML : http://pastebin.com/61c3UCJW JAVA: http://pastebin.com/t5G0c7DP and ERRORS : http://pastebin.com/Bz1ZRRmf Jul 02 07:53:07 Sorry the question is it doesn work as a slidemenu. it appears without me need to swipe it Jul 02 07:55:07 it is working now Jul 02 07:55:08 sorry Jul 02 07:57:48 Activity A starts B, B starts C, then I start B using Intent.FLAG_ACTIVITY_REORDER_TO_FRONT. Now when I finish B I want the resultCode to be passed back to A. How can I do this? onActivityResult does nto work since B was started by C. Jul 02 07:59:02 I also tried FOWARD_RESULT, but without luck. Jul 02 08:01:07 One option would be to just run the code in onResume, but I don't think that's a very good solution. Jul 02 08:02:29 I think that onActivityResult pass results to the caller Jul 02 08:04:08 barq: a lot of people would advice just using EventBus Jul 02 08:06:15 hey, what's the order android is picking the layout version? Jul 02 08:07:07 Is there a way to color TextClock (color the hour differently than the minutes) for widgets? Jul 02 08:09:37 anyone? Jul 02 08:18:27 is it possible to have your own font in a app? Jul 02 08:18:41 if you enable the network permission in an update, do the users need to accept it? (as didn't google play change it so network priv wasn't asked?) Jul 02 08:20:10 what do you mean joroci? Jul 02 08:21:21 i'll start from the beginning i only used default layout folder for my app, i found out i have an issue for andriod 4.2.2 rtl Jul 02 08:21:43 if i used right or left in the layout some views were strethced Jul 02 08:21:56 if you search with google Jul 02 08:22:11 there's priority on tag for resources Jul 02 08:22:36 i think i didn't search for the right term Jul 02 08:23:14 http://developer.android.com/guide/topics/resources/providing-resources.html Jul 02 08:23:27 its begins... http://arstechnica.com/business/2015/07/man-killed-by-a-factory-robot-in-germany/ Jul 02 08:24:22 http://stackoverflow.com/questions/17742600/android-values-priority Jul 02 08:24:25 "the robot grabbed the worker and crushed him against a metal plate." Jul 02 08:26:01 it was an accident Jul 02 08:26:05 no terminator Jul 02 08:26:12 "accident" Jul 02 08:26:15 reported by Sarah O'Connor no less Jul 02 08:26:39 i think it's terminiator 5 producer Jul 02 08:26:44 I don't see any catastrofic AI Jul 02 08:27:35 icemanbp i'm intersted only in the vXX priority Jul 02 08:27:41 i don't see it there Jul 02 08:27:59 ok, and what is the problem? Jul 02 08:28:11 lets say i have a v17 and a default folder Jul 02 08:28:14 when it goes to check the version take the right one Jul 02 08:28:17 ok Jul 02 08:28:29 i use lollipop which folder will be taken? Jul 02 08:28:34 if mobile is v17 goes in, otherwise it use default Jul 02 08:28:45 so in case of lollipop the default Jul 02 08:28:49 hmm Jul 02 08:29:03 becouse lollipop is v21 Jul 02 08:29:12 how about lower version than v17? Jul 02 08:29:17 default Jul 02 08:29:32 read the page, it explain how it works Jul 02 08:29:48 is the same as if I define layout and layout-land Jul 02 08:31:15 let me test because i think it's taking 17 Jul 02 08:32:35 joroci, http://developer.android.com/guide/topics/resources/providing-resources.html#BestMatch Jul 02 08:32:44 That explains the algorithm. Jul 02 08:33:42 thanks Jul 02 08:33:50 for version it'll use the most specific / closest one to the actual API level Jul 02 08:34:34 icedp: I think that's a bit of an overkill just for one use-case. Jul 02 08:34:46 so if everything will use v17? Jul 02 08:34:51 so everything will use v17? Jul 02 08:35:04 if that's the only specific folder Jul 02 08:36:12 joroci, everything API 17+ Jul 02 08:36:42 so if the device is API16 it will use the default? Jul 02 08:45:59 what happens with layout-land, layout-v17 and default if i have an api level18-land device? :P Jul 02 08:45:59 I use Intent.FLAG_ACTIVITY_REORDER_TO_FRONT to start an activity that is already somewhere in the stack. How can I get the resultCode back to the starting activity? Jul 02 08:46:56 danijoo, read my link. Jul 02 08:53:10 When using reorder to front, the resultCode is sent back to the Activity that sent the original intent to start it. How can I get the resultCode delivered to the activity taht used reordertofront to bringt it back to front? Jul 02 08:53:26 danijoo: just layout-land :D Jul 02 08:54:54 g00s: here? Jul 02 08:58:25 hi,im using fragmentstatepager adapter within a list view that every row has a view pager Jul 02 08:58:46 the first 3 items are created but when i scroll down, it gives array outof bounds exception Jul 02 08:59:28 sci-fic: that is a weird eceprience Jul 02 08:59:34 *experience Jul 02 08:59:39 post your code and error Jul 02 08:59:59 ok Jul 02 09:00:34 a listview with a pager in every row? Jul 02 09:00:45 is this even possible performance-wise? Jul 02 09:01:54 also I dont think it can recycle a viewpager properly (which might be the reason for your error) Jul 02 09:02:24 http://paste.ubuntu.com/11808974/ Jul 02 09:02:41 yeah i told that my boss too but he didnt care -.- Jul 02 09:02:57 stacktrace too please :) Jul 02 09:03:05 copying Jul 02 09:04:42 http://paste.ubuntu.com/11808983/ Jul 02 09:07:20 whats CustomViewPager Jul 02 09:08:21 just extended support viewpager and added a method to listener.page change listener returns current viewpager Jul 02 09:08:25 sci-fic: dude u need to call setAdapter inside your ViewHolder at each bindData call Jul 02 09:08:39 Solved, just used CLEAR_TOP instead of reorder to front. Jul 02 09:08:51 I have implemented a Viewpager inside recycler view. No probs Jul 02 09:09:17 I think he needs that to "recycle" the viewpageradapter Jul 02 09:09:30 reusing the old one with the new adapter of the row Jul 02 09:10:07 yeah the source code says that during notifydatasetChanged, it doesn't change the entire data of the view Jul 02 09:10:13 the code is optimized Jul 02 09:10:24 u need to reset the data in the viewpager using setAdapter Jul 02 09:10:32 after changing the data of the adapter Jul 02 09:11:19 let me try Jul 02 09:12:37 where does the 11 and 9 in the viewpager come from? Jul 02 09:13:09 from what I see every viewpager adapter has a size of 3. Jul 02 09:17:03 i guess,the first 3 lines of my listview was created succesfully,so it makes 3x3. whe i scroll down it tries to create next 3 ones Jul 02 09:17:18 but you are setting new adapters Jul 02 09:17:22 hmm Jul 02 09:17:50 but this would explain the values of the numbers. yeah Jul 02 09:18:33 have you tried using a FragmentPagerAdapter instead? 3 Fragments isnt what a StatePagerAdapter is made for Jul 02 09:19:24 not sure if statepager makes some weird caching internally Jul 02 09:19:37 actually i tried pager adapter,frag pager and state pager adapter :D Jul 02 09:19:42 u should use a pager adapter instead Jul 02 09:19:48 wheres the code of CustomViewPager.java? Jul 02 09:20:10 i copied support library view pager Jul 02 09:20:15 and changed only listener Jul 02 09:20:23 sci-fic: dude I have implemented the exact same thing using pagerAdapter. Jul 02 09:20:38 ok l'll use pager adapter Jul 02 09:20:42 brb 20mins Jul 02 09:20:57 if I have a container, and a limited number of fragments that get attached to it on pressing different buttons Jul 02 09:21:12 should I instantiate each one of them everytime? or store in mem Jul 02 09:21:20 any suggestions Jul 02 09:22:04 ashwink005, i'd add them to the backstack and on every click check if theres still a version of it available Jul 02 09:22:13 and reuse it if yes Jul 02 09:23:12 so in the fragmentTrasaction.add method I give the reference to the fragment already instantiated? Jul 02 09:23:20 that won't create any weird errors? Jul 02 09:23:31 ashwink005, no. you make a replace() with addToBackStack() Jul 02 09:23:41 and check the backstack each time Jul 02 09:23:43 Hey is anyone else seeing an error like this one from Picasso? http://hastebin.com/napikozepi.avrasm Jul 02 09:24:05 ok so a replace call then an addtobackstack call Jul 02 09:24:11 danijoo: right? Jul 02 09:24:11 We're seeing it in our crashlytics logs, it only seems to happen to users once Jul 02 09:25:55 ashwink005, http://stackoverflow.com/questions/19614300/how-to-save-and-reuse-same-instance-of-fragments Jul 02 09:26:17 Ankhwatcher, seems to be an issue in picasso Jul 02 09:26:23 i'd fill an issue in github Jul 02 09:33:54 danijoo: In that example the guy is instantiating new fragments each time causing an inflate each time Jul 02 09:34:45 danijoo: hat is the reason why I want to cache the fragments, to avoid inflation. Jul 02 09:35:58 ashwink005, yes. additionally you need to check the backstack if theres already a fragment of the one you want Jul 02 09:36:16 if yes, get that one from the backstack and use it in replace instead of a new one Jul 02 09:36:59 hmm nice.. so I'll inflate only when needed Jul 02 09:37:05 yep Jul 02 09:37:09 cool Thanks brah! Jul 02 09:51:07 how would you stop an observable from emitting for a specific amount of time? Jul 02 09:51:48 ie im doing a search and dont want to start another one until the first once completes (and also dont want next searches to queue up) Jul 02 09:52:46 i could set a boolean and filter everything out while search is running, but is there a more functional way? Jul 02 09:57:21 ah. there is a skipWhile() :) Jul 02 10:24:29 does the dropbox support streaming files (videos) TO dropbox? Jul 02 10:25:19 like i would start recording video from my camera to dropbox path (or using dropbox api) and in case of internet cut, the video would be still there Jul 02 10:25:53 on desktop dropbox just syncs a folder Jul 02 10:26:00 does it behave the same on android? Jul 02 10:26:04 then yes Jul 02 10:27:14 but it syncs new file when it is completed no? Jul 02 10:27:27 i think so yess Jul 02 10:28:02 or maybe theres another solution to my problem Jul 02 10:28:17 i want to make surveillance camera which comunicates with movement detector Jul 02 10:28:17 maybe, if you describe it.. :) Jul 02 10:28:41 if move occurs, it records 2.5 minutes video or longer if move continues Jul 02 10:29:15 i would like to stream it. in case of phone destroying to at least get the first part of video Jul 02 10:29:47 i dont want to have my own server for it Jul 02 10:31:45 no to mention streaming in android is pain Jul 02 10:32:32 i dont think you can do that with dropbox Jul 02 10:33:15 i thought so Jul 02 11:02:56 kroot, look at the topic, "no bots", you've got at least one here: http://logs.nslu2-linux.org/livelogs/ it's pretty easy to identify it by intersecting the channels where it logs - thank you Jul 02 11:16:42 Hello. Why is my play store listing showing wierd characters when I try to share on facebook: https://www.facebook.com/sharer/sharer.php?u=play.google.com/store/apps/details?id=com.instano.genie Jul 02 11:23:11 that looks indeed strange Jul 02 11:44:30 what... listview bounces back down if I give it enough speed to go up to the top -.- Jul 02 11:48:46 Zharf: Andoird bug Jul 02 11:48:49 Android* Jul 02 11:49:28 this annoys me a lot in reddit client. Jul 02 11:50:04 barq, is there a bug report? Jul 02 11:52:09 Zharf: There are/were a bunch of bugs related to fast scrolling. What api version are you using? Jul 02 11:52:18 22 Jul 02 11:52:33 or whatever is the latest, I forgot :p Jul 02 11:52:41 yeah 22 Jul 02 11:54:07 Zharf: See if this matches your behavior: https://code.google.com/p/android/issues/detail?id=159739 Jul 02 11:54:35 pretty much Jul 02 11:55:15 Zharf: Then feel free to add a comment to give the issue some attention. Jul 02 11:55:29 and star it Jul 02 11:55:33 that report indicates it's been fixed Jul 02 11:55:46 No Jul 02 11:55:49 oh no, I misread Jul 02 11:56:09 its fixed in aosp, but not published Jul 02 11:57:12 I'm kinda glad and sad that it's a bug Jul 02 11:57:26 https://i.imgur.com/bKGj4no.jpg Jul 02 12:03:39 Have you tested it in the M preview? Jul 02 12:05:07 me? Jul 02 12:05:59 No, Zharf Jul 02 12:06:11 How do you see it has been fixed in AOSP? Jul 02 12:07:11 I haven't tried M preview, no Jul 02 12:13:08 hey everyone Jul 02 12:13:18 does anyone know a good app for Android app regression testing? Jul 02 12:13:29 I would presume it's something you embed into your app. Jul 02 12:15:05 NetworkingPro: Define regression Jul 02 12:15:39 On what level do you want to test Jul 02 12:16:11 isnt that a specific kind of unit test? Jul 02 12:16:55 I thought it's more UI testing. Jul 02 12:17:10 As in manual clicking, but that can be automated Jul 02 12:17:17 So Espresso or UIAutomator. Jul 02 12:18:00 barq: bascically automated app testing. Something you can set to test all of your UI. Jul 02 12:18:03 barq: exactly. Jul 02 12:18:18 so are both of those pro level tools Jul 02 12:18:19 ? Jul 02 12:18:24 I dont mind paying for a good one. Jul 02 12:19:27 you can do that with what barq said, but its also possible to do it with the normal androidTests Jul 02 12:19:53 for automated testing you can use jenkins ci for example Jul 02 12:21:26 Thanks, guys! Jul 02 12:21:35 Does Jenkins CI actually do the clicking, danijoo ? Jul 02 12:21:52 barq, no. jenkins does the automatic testing for every build Jul 02 12:22:23 On code leve, so unit tests, right? Jul 02 12:22:34 Or you can launch Espresso/UiAutomator tests Jul 02 12:22:38 its a server that "listens" for changes in your repo. For every change, it runs the tests for you tells you if it worked Jul 02 12:22:40 So just manages the tools Jul 02 12:22:42 exactly Jul 02 12:22:53 So you need both, jenkins ci and one of the other tools. Jul 02 12:23:03 barq, you dont need tools to test your ui Jul 02 12:23:12 they just make it easier Jul 02 12:23:22 How do you test it then? Jul 02 12:23:28 with unit tests Jul 02 12:23:42 plain, boring android unit tests ;) Jul 02 12:23:53 Doesn't work if you do multi-apk projects Jul 02 12:24:06 why? Jul 02 12:25:37 what has multi apk to do with unit tests?> Jul 02 12:27:57 danijoo: robolectric had problems with multi apk, but unit tests should be ok, I mixed that up Jul 02 12:50:54 https://scontent-mxp1-1.xx.fbcdn.net/hphotos-xpa1/v/t1.0-9/11050309_10153705750826840_1020499227546389496_n.jpg?oh=c178d65f16eba2ba5ba7ad8b8b363836&oe=562513F4 Jul 02 12:54:09 hah Jul 02 12:54:25 good one Jul 02 13:23:23 what are multi apk projects Jul 02 13:31:17 in Rx, what use is the .subscribeOn(thread) call ? Jul 02 13:32:37 osxorgate, it makes everything "above" in the chain running on the thread Jul 02 13:33:18 for example: getSomethingFromDatabase().subscribeOn(Schedulers.io()).observerOn(AndroidSchedulers.mainThread()).subscribe(.....) Jul 02 13:33:29 eh, it means the side-effect that occurs from .subscribe() occurs on the subscribeOn thread Jul 02 13:33:42 not the side-effect of the Action Jul 02 13:34:20 danijoo: so in your example the fetching of data from the db is on the io() thread Jul 02 13:34:35 osxorgate, dont listen to me Jul 02 13:34:41 a good example is rxandroid WidgetObservable Jul 02 13:34:42 pfn can explain this way better :) Jul 02 13:35:25 WidgetObservable.text(textView).subscribeOn(mainThread).observeOn(whatever).subscribe(observer) Jul 02 13:35:57 the .setTextChangeListener that results from .subscribe() occurs on mainThread, but anything in observer runs on whatever Jul 02 13:36:30 i have a weird case where i do a networkcall (retrofit) and transform the result, and want to stash it in a view. But when I add a .delay() between the networkfetch and the .map() nothing gets sent into the view Jul 02 13:36:35 a good usecase is if you do a search on an edittext, use the query to get data from the server and show that in a list Jul 02 13:36:49 you would need to do the "middle" in an io thread Jul 02 13:36:58 so im thinking a thread is off somewhere Jul 02 13:37:26 osxorgate, your delay is probably occurring on the main thread Jul 02 13:37:45 and therefor subscribe to the edittext on mainthread, but call subscribeOn(iothread) for the server part and then observer on main again Jul 02 13:38:39 osxorgate, why would you delay the fetch -> map? Jul 02 13:38:51 pfn, because i want to simulate network lag Jul 02 13:38:55 but its probably not the right way Jul 02 13:39:11 i am trying to inject data into a view in a recyclerview Jul 02 13:39:29 so i make a subscription and when the view is recycled i unsubscribe Jul 02 13:40:15 in the meantime i have a ReplaySubject that i subscribe to, and i was hoping it would supply me with the transformed network data Jul 02 13:40:46 so in onBindViewHolder() i subscribe to the stream of data i want Jul 02 13:41:19 and if it's available, i would expect the onNext to fire immediately Jul 02 13:41:36 and if not, it will happen later (unless the view is recycled, then the subscription is unsubbed) Jul 02 13:43:17 Hello, I have a String resource kind of "This is the __company__ application" , this __company__ part is a something that I'll receive later in my app. I was thinking if there is some way to add String resources at runtime, than I would be able to represente the string as 'This is the @string/company_name message'. What do you suggest to do something like that. Or should I just replace this company part thought code every time that I would us Jul 02 13:43:17 e this string. Jul 02 13:43:43 it would be done through code Jul 02 13:44:04 You can set a placeholder in your strings xml and link that to code. Jul 02 13:47:10 wviana: So in your strings for example you have This is the %1$d application Jul 02 13:47:23 Anyone ever used google sign in api before? Jul 02 13:47:56 thank you barq , I'm just reading more about it. http://www.piwai.info/android-string-placeholders/ Jul 02 13:47:58 And then in your code you do myView.setText(getString(R.string.mytext, "company name")); Jul 02 13:48:12 wviana, String.format("This is the %1$s" application, "Company") => "This is the Company application" Jul 02 13:48:35 danijoo you ever worked with google sign in api before Jul 02 13:48:36 " at wrong place :/ Jul 02 13:48:46 barq: you've been helping me a lot last days :) thank you very much. Jul 02 13:48:55 drose379, highlighting random persons? :p Jul 02 13:49:03 yep Jul 02 13:49:10 %1$s in my answer instead of %1$d, d is for digits Jul 02 13:49:11 But have you? Jul 02 13:49:11 I'm having a layout issue with a surfaceview not being the correct aspect ratio. I need it to be the same aspect ratio as 420 width by 320 height, but I want it to fill the largest possible space on every tablet. adjustviewbounds does not seem to work, since this is not an image with defined proportions, this is a created surfaceview with nothing in it yet. Jul 02 13:49:28 wviana: No problem, glad to help. Jul 02 13:49:44 dont do that drose379 ;) Jul 02 13:49:48 barq: How long have you been a Android developer ? Jul 02 13:49:53 alright Jul 02 13:49:59 I thot youd know about it danijoo Jul 02 13:50:07 you thought wrong Jul 02 13:50:13 oh ok Jul 02 13:50:14 wviana: I've been developing on and off. Jul 02 13:50:21 You? Jul 02 13:50:45 Does anyone have experience with maintaining aspect ratio in layouts? Jul 02 13:52:29 JonathanEyre: What is your actual question? Jul 02 13:53:25 JonathanEyre: you should extend a SurfaceView (or a container) and overwrite onLayout Jul 02 13:57:23 hm.. seems to be a problem with the component i am trying to send the data to. I can change a normal TextView just fine with the .delay() in the chain Jul 02 13:57:38 barq: about 4 months now. Jul 02 13:58:39 Guys for each google API call I make do I need a api key? Jul 02 13:58:50 I see nothing about it in the google API guides but now im seeing it elsewhere Jul 02 13:59:11 ffuuu... needed to call .invalidate() :/ Jul 02 13:59:49 drose379: no Jul 02 13:59:57 barq youve worked with google sign in before? Jul 02 14:01:05 barq any way you can look at my source code, I must be missing something Jul 02 14:01:13 nope drose379, but it depends on the service you will use Jul 02 14:01:30 drose379, check https://console.developers.google.com/project Jul 02 14:01:36 adq im just trying to use the PLUS.API Jul 02 14:01:38 inside you can enable/disable api per project Jul 02 14:01:46 you will need a key for the google+ api Jul 02 14:01:48 drose379: drose379, highlighting random persons? :p Jul 02 14:01:53 it's mainly to authenticate to the service Jul 02 14:02:03 So I need to get a key? Jul 02 14:02:09 .... Jul 02 14:02:12 follow the tutorial i would say Jul 02 14:02:13 barq I pinged you cause you pinged me first Jul 02 14:03:01 See my project has Google+ API enabled Jul 02 14:03:26 check in credential then Jul 02 14:03:49 you will see client ID for Android Application, among other keys depending on how you generated it Jul 02 14:03:54 anyway, follow the tutorial Jul 02 14:04:00 cause this is a very large topic Jul 02 14:04:14 I haven't worked with Google+, but I can imagine the process is similar to maps with the key Jul 02 14:04:18 you have often a googleapiclient in your code Jul 02 14:04:24 which you logged in Jul 02 14:04:37 Im in my credentials Jul 02 14:04:38 it's pretty similar for many services now Jul 02 14:05:05 adq did you link me a tutorial? Jul 02 14:05:09 no Jul 02 14:05:12 Oh ok Jul 02 14:05:15 that's your job lol Jul 02 14:05:26 i don't know and don't know to know what you are trying :) Jul 02 14:05:32 err don't want* Jul 02 14:05:46 https://developers.google.com/android/guides/api-client Jul 02 14:05:52 if you need some direction Jul 02 14:05:54 Great, thanks guys Jul 02 14:06:45 drose379, did you hear of that awesome thing google invented recently? People say it can give the answer to a lot of questions. Jul 02 14:07:50 lol danijoo Jul 02 14:08:08 https://support.google.com/websearch/answer/134479?hl=en << Jul 02 14:08:35 better than ltmgtfy Jul 02 14:11:20 http://imgur.com/gallery/23dkqvy Jul 02 14:15:02 ? danijoo Jul 02 14:15:15 ! drose379 Jul 02 14:15:40 yo y u highlight me?? Jul 02 14:15:57 yeah I wanted to tell you about an awesome invention Jul 02 14:16:18 its from 1996 Jul 02 14:16:30 hello, what is if called when you try to go to say the twitter website on your phone, and instead of opening twitter.com in chrome, the twitter app is able to intercept this and ask if you want to open it with the twitter app? is this just a content provider? Jul 02 14:16:34 oh alright fine Jul 02 14:16:39 released under the name "backrub" Jul 02 14:17:02 carstar, deep linking Jul 02 14:17:24 https://developer.android.com/training/app-indexing/deep-linking.html Jul 02 14:17:49 My code is no different from what im seeing in these tutorials Jul 02 14:18:12 danijoo: thanks! ill read that Jul 02 14:29:46 barq: Well different devices have different sizes/aspect ratios. I want my surface to be as large as possible while still being the correct aspect ratio. If I just run fill_parent, then on some devices it looks great and on some it is stretched weirdly. Jul 02 14:30:24 JonathanEyre: run fill_parent (now called match_parent) on what? Jul 02 14:31:00 barq: I do not think that adjustviewbounds will work because I am not trying to display a picture that can be analyzed for the correct ratio. Jul 02 14:31:29 JonathanEyre: Your problem description is vague. You need to give more details and some code for us to help. Jul 02 14:31:54 I have a linearlayout that has layout_width and layout_height of fill_parent. Jul 02 14:33:05 Inside that linearlayout I have a surfaceview that has layout_width and layout_height of wrap_content Jul 02 14:33:14 JonathanEyre: Show your xml. Jul 02 14:34:11 Here it is currently... http://pastebin.com/Xq8JqWji Jul 02 14:35:49 JonathanEyre: That's an empty layout. I don't see where that could produce and aspect ratio problems. Jul 02 14:37:29 Hi all Jul 02 14:38:15 Believe me, it has problems. I then bind the surfaceview to a mediacontroller and play a video. It fills the screen and looks terrible. Jul 02 14:38:52 I'm trying to achieve this animation when an item in my RecyclerView is clicked, http://material-design.storage.googleapis.com/publish/material_v_4/material_ext_publish/0B3T7oTWa3HiFbWM2UGR1SGM2S3M/animation_meaninfultransitions_considerations_do.webm, I don't really know where to start with animations... any suggestions? Jul 02 14:39:00 Hi, i am new to Android Studio and wonder if there is a function i can find code-lines/methods with, that are in conflict with min-SDK in gradle file, so that i dont have to scroll through any file manually Jul 02 14:42:44 Ok guys I keep getting the SIGN_IN_FAILED error Jul 02 14:45:10 adkins: Navigate -> File structure (among others) Jul 02 14:45:11 adkins, lint Jul 02 14:45:25 adkins: ah sorry Jul 02 14:46:16 adkins: Analyze - Inspect code to run lint Jul 02 14:46:17 danijoo: how do i get there? Jul 02 14:46:49 adkins, google it Jul 02 14:46:56 barq you there? Jul 02 14:47:46 danijoo: icedp thx a lot Jul 02 14:48:00 drose379: maybe Jul 02 14:48:28 Ok, so Im getting the error code 4 which means sign in required, the dialog comes up, I choose the account, then it asks me to authorize the app, I choose ok Jul 02 14:48:54 Then my onConnected method gets called, which is supposed to mean success, but the Bundle that it gets passed is null Jul 02 14:49:00 and anything I try to access in that method is null Jul 02 14:59:06 Is there some really easy way to capitalize a String in android ? I was trying TextUtils.getCapsMode(, 0, TextUtils.CAP_MODE_WORDS) but it does return a int Jul 02 15:00:04 .toUpperCase() ? Jul 02 15:00:17 oh you mean only the first letter of a word Jul 02 15:00:17 String.toUpperCase() ? Jul 02 15:03:21 Chainfire: just the first letter Jul 02 15:09:26 s.substring(0,1).toUpperCase() + s.substring(1) Jul 02 15:11:19 split string, capitalize, join :) Jul 02 15:16:02 guys quick question, i need to use viewpager as listview row item, but it seems not possible to my requirements. Jul 02 15:16:14 Can i use recycler view and viewpager instead ? Jul 02 15:17:56 sci-fic, listview or recyucler view does not make a difference Jul 02 15:21:42 can anyone tell me which is a good orm library to use with retrofit??? Jul 02 15:21:56 sb = new StringBuilder(s); sb.setCharAt(0, Character.toUpperCase(sb.charAt(0))); sb.toString() should be more efficient Jul 02 15:22:03 HardikAmal, Ormlite is nice Jul 02 15:22:08 I like ormlite but I don't see what that has to do with retrofit Jul 02 15:22:29 icedp, are yu sure? Jul 02 15:22:38 thanks danijoo Jul 02 15:22:45 StringBuilder is not that efficient for little work Jul 02 15:23:00 m new to android thanks for the suggestion Jul 02 15:23:11 actually StringBuilder is more efficient Jul 02 15:23:19 didnt know that Jul 02 15:23:47 still overkill imo Jul 02 15:24:02 if its just for setting a string once Jul 02 15:24:09 the alternative, s.substring(0,1).toUpperCase() + s.substring(1) still creates a string builder but it doesn't pre-size Jul 02 15:24:47 ok danijoo thank you -.- Jul 02 15:25:23 hi jake m big fan of ur libraries…. thanks for the awesome libraries Jul 02 15:27:23 IIRC "a" + "b" is equivalent to (new StringBuilder).append("a").append("b").toString() Jul 02 15:28:25 yes, but in icedp's version it's much more efficient since the initial allocation of the underlying char[] is perfectly sized to the contents of the string Jul 02 15:29:58 if you do s.substring(0,1).toUpperCase() + s.substring(1) then StringBuilder allocates a 16-element char[], puts the first char in, and then if the rest of the string is more than 15 characters it has to allocate a new char[], do a memcpy, free the old one, and then memcpy the string into the buffer Jul 02 15:31:36 it probably doesn't matter, but you wouldn't want to do it in a getView of an adapter Jul 02 15:36:29 hmm, how can I add a header view to a listview but isn't actually part of the listview (i.e. the header views should be contained in the parent viewgroup); yet still be able to keep scrolling the header off like a normal list header? Jul 02 15:37:41 pfn, never tried, but NestedScrollView maybe? Jul 02 15:37:56 yeah, fiddling with that right now, absolutely unsuccessful with it so far Jul 02 15:38:00 Why does android studio keep asking me to "upgrade" to an older version? http://i.imgur.com/FAEZRSP.png Jul 02 15:38:20 I have
Jul 02 15:38:26 the header doesn't move at all... Jul 02 15:38:30 carzzar: maybe you have changed channel Jul 02 15:38:46 I am still on canary Jul 02 15:42:23 1.2.2 was built after that 1.3.0 preview Jul 02 15:42:29 look at the actual build numbers Jul 02 15:48:49 JakeWharton: Ah, so it is. I've never encoutered version numbers that regress like that. I guess it makes sense though Jul 02 15:49:25 btw, are you the Jake Wharton that works at square? Jul 02 15:49:48 yep Jul 02 15:50:11 are there others? :p Jul 02 15:50:59 I guess not. haha. Ive read a lot of your stuff on line. you;ve contributed a lot to android. Thanks! Jul 02 15:52:41 glad it's been somewhat helpful Jul 02 16:18:15 Hi all. Quick question. My app data is increasing by ~.1MB every time the app is closed completely and MainActivity reopens. However, I went back through my code and looked for what could be causing this -- there is nothing in MainActivity that initializes data, it's a just a ListView that links to other activities and a navigation drawer. Any ideas? Is this normal? Jul 02 16:18:52 Is it just Android caching data for later use? Jul 02 16:19:04 liuwenhao, maybe.. are you caching something? Jul 02 16:19:06 from http or so? Jul 02 16:19:10 picasso? Jul 02 16:19:20 Nope. My app is completely offline. Jul 02 16:19:35 image libraries in use? Jul 02 16:19:52 you could adb into the apps directory and check what it is by hand Jul 02 16:20:02 its in /data/data/your.package.name/ Jul 02 16:20:31 I'll try that Jul 02 16:21:12 are you talking about memory usage or disk space usage liuwenhao? Jul 02 16:21:23 i wouldnt care too much about it. if android needs rooms, it will delete your cached files. but 100kb at every close could trigger that pretty fast.. Jul 02 16:22:09 disk usage adq. I've just been force closing the app and checking the storage info. Cache stays at 12.00KB but the Storage->Data keeps on increasing by .01MB or so it seems Jul 02 16:22:38 ok, just to be sure, so indeed check where danijoo pointed out Jul 02 16:23:43 Oh. for network requests, I do have an Admob adfragment in my MainActivity. Forgot about that. Will check the ADB right now though Jul 02 16:24:21 liuwenhao, pretty sure thats it Jul 02 16:25:29 it just keeps going up and up though. Like it's never being cleared. When the app is installed it's at 0 and it doesn't seem to be automatically cleared. Jul 02 16:27:38 how much has it actually grown by so far? Jul 02 16:29:22 can anyone suggest a good lib to connect to serial devices (possibly using an EFTI usb to serial converter)? Jul 02 16:29:55 *FTDI i mean Jul 02 16:30:39 liuwenhao, android will only clear it if internal memory gets low Jul 02 16:30:56 on new phones with a few gb, this takes forever ;) Jul 02 16:33:36 It's under app_webview/cache. That's gotta be ad caching correct? Because that's the only thing in my MainActivity that uses webview Jul 02 16:33:57 yup. thats ad caching Jul 02 16:34:28 Alright. So I shouldn't worry about it? Or should I manually clear it every few boots? Jul 02 16:34:43 I'm just worried people will uninstall my app thinking it's too big. Jul 02 16:34:56 don’t worry about it Jul 02 16:35:17 hardly anyone will bother checking that Jul 02 16:35:28 and how big have you observed it getting? Jul 02 16:35:56 I did learn that I should use support fragment facing some problems in normal fragment. Should I use support DialogFragment too? or there is no diference? Jul 02 16:36:21 The largest I've seen it is 5.90MB after force closing/relaunching to see how much it would grow after every launch Jul 02 16:36:31 But I'm sure it would go higher Jul 02 16:37:59 An app similar to mine is using about 31MB for caching (i'm assuming it's ads as well) Jul 02 16:38:35 wviana, yes you should Jul 02 16:39:07 danijoo: Thanks Jul 02 16:39:31 hey guys.. how can i download inside a webview if the url is not a direct link? (aka. django, magento downloads) i currently have this on my download listener: http://pastie.org/10270174 Jul 02 16:40:26 So if I have a compact/support option I should use this one, right ? It's ok to use it as a rule ? Jul 02 16:41:11 I guess I won't worry about it. Happy to know what's causing it though. Thanks guys Jul 02 16:42:11 I have two views ( A and B ) inside a Linearlayout i wanna put A after B like --->| B --- A | <---- what attribute should i use ? Jul 02 16:45:13 how can i deal with download urls that are not direct links inside my webview??? i currenly have this in the download listener: http://pastie.org/10270174 Jul 02 16:45:50 boodllebat: if I understood, Set the LinearLayout orientation to horizontal or do not set it's orientation. Se the B and A android:layout_weight="1" . Jul 02 16:46:13 wviana: i should write first B and after that A ? Jul 02 16:46:36 boodllebat: linear layout uses the order that you declare the views inside it Jul 02 16:46:46 wviana: Thanks :) Jul 02 16:47:01 boodllebat: Welcome. Jul 02 16:49:15 Does anyone know a proof of why taking a collection of ints, multiplying each by a constant prime and summing produces a reliable hash? Jul 02 16:51:51 mathematical proof? Jul 02 16:56:50 http://pastebin.com/E4r3UnzG Why the alarm manager doesn't call the receiver? Jul 02 16:57:07 setAlarm is called Jul 02 16:57:26 Hello, Jul 02 16:57:45 So I want to use a single image and change its color depending on its state Jul 02 16:57:54 How would i go about this? Jul 02 16:57:58 Its just a simple icon Jul 02 16:58:10 Need it to be blue, red and gray Jul 02 16:58:26 kevel, colorfilter Jul 02 16:58:29 I assume for the image resource I can set have a white resource that has a transparent background Jul 02 16:58:36 i guess noone knows much about downloading files inside webview :( Jul 02 16:58:37 and then colorfilter just changes it? Jul 02 16:59:07 Has anyone messed with the new NavigationView from the support library? Are there benefits switching from old navigation drawer code to the new style, other than ease of coding? Jul 02 16:59:21 kevel, http://developer.android.com/reference/android/widget/ImageView.html#setColorFilter%28int%2C%20android.graphics.PorterDuff.Mode%29 Jul 02 16:59:33 liuwenhao: I don't think. Jul 02 16:59:57 liuwenhao, i never switch until others found all bugs :p Jul 02 17:00:07 for android, this means not in the next few months ^^ Jul 02 17:00:08 danijoo: is this available through xml also? Jul 02 17:00:16 lasserix, Goedel might have proved that Jul 02 17:00:18 kevel, yes. android:tint=color Jul 02 17:00:26 Haha, makes sense. I will probably use it for my next project but I can't find any reason to abandon the code I already have as it seems virtually identical appearance wise Jul 02 17:00:37 danijoo: nvm, dun goofd. Jul 02 17:00:40 I do like how simple they made it though. Jul 02 17:00:41 lasserix, https://en.wikipedia.org/wiki/G%C3%B6del_numbering Jul 02 17:00:41 I see the tint tags there Jul 02 17:00:42 danijoo: yeah Jul 02 17:12:02 Ologn: What did Goedel prove? Missed the bit above. Jul 02 17:13:33 barq, that an ordered list of integers can be represented as one integer. I think it's a lemma in his incompleteness theorem Jul 02 17:14:11 Ologn: Oh, that thing with product of exponentials Jul 02 17:14:27 prime factorization Jul 02 17:14:47 yes Jul 02 17:30:34 Where can I find infromation on how to use atrace on Android? Jul 02 17:30:57 whats the maximum size for layout_weight if i have two div and i have to gibe them 30 and 70 % what should be their layout weights ? Jul 02 17:31:45 danijoo: which PorterDuff mode do i use to completely change the color of the icon to what the color i want? Jul 02 17:32:26 read their descriptions and decide which one you need Jul 02 17:32:35 kevel: https://softwyer.files.wordpress.com/2012/01/porterduffmodes.png I think you want srcIn Jul 02 17:32:38 boodllebat: You could use 30 and 70. Jul 02 17:32:40 Or 3 and 7. Jul 02 17:33:01 TacticalJoke: Thanks :) i was thinking same Jul 02 17:35:14 boodllebat: Any weights that have the ratio 30/70 Jul 02 17:35:59 0.015/0.035 would work too Jul 02 17:38:00 barq: o.O Jul 02 17:38:08 barq: well thats fine Jul 02 17:43:25 If I have a website that people can pay to sign up for, and make an app on android, is it possible to sell one of those subscriptions as an IAP but contigent on the user account not on the play store? Jul 02 17:43:41 *ie contigent on the user account in my website Jul 02 17:46:30 hmm, I wonder if setting versionCode to epoch seconds is a bad thing Jul 02 17:47:23 I think it is pfn, i mean, technically Jul 02 17:47:33 they said it's an integer, epoch is often "long" Jul 02 17:48:08 i don't mind if it is useful or not to use epoch anyway, but for sure it should always be greater (assuming no clock issue) Jul 02 17:48:51 epoch seconds overflows integers in 2038 Jul 02 17:49:03 ahah Jul 02 17:49:06 in april yes Jul 02 17:49:14 near 3:14 iirc Jul 02 17:49:39 oops nop, the 19 jan Jul 02 17:49:44 @3:14:07 Jul 02 17:49:46 yeah, not really a problem Jul 02 17:49:54 I wonder what happens when you set versionCode to Integer.MAX_INT Jul 02 17:50:05 can you push another update? Jul 02 17:50:06 you are screwed for making more update ;) Jul 02 17:50:10 someone should try Jul 02 17:50:13 at some point, you're going to overflow the build tools at the very least Jul 02 17:50:27 anyway, I think imma set my versionCode to epoch seconds Jul 02 17:50:51 also what happens if my signing certificate exeeds its times? Jul 02 17:50:53 i prefer to link version code with a commit number, so in case of issue it's possible to reconstitute the exact same binary Jul 02 17:51:00 danijoo, can no longer publish updates Jul 02 17:51:01 but commit number are often pseudo-random Jul 02 17:51:13 commit numbers also vary from branch to branch Jul 02 17:51:26 then 2038 isnt a problem for me :P Jul 02 17:51:28 yeah, i always write in the commit the versionCode because of that Jul 02 17:52:05 how do you navigate then thru versions? git tag is good at this Jul 02 17:52:06 the versionname can still be used anywayt, it's a string Jul 02 17:52:19 and it's not displayed to the user iirc Jul 02 17:52:28 i tag ever released version in git Jul 02 17:52:34 every* Jul 02 17:52:36 i use mercurial :> Jul 02 17:52:58 <3 bisect for find issue Jul 02 17:53:38 oops i said the contrary, about versionCode and versionName Jul 02 17:53:43 it's versionName which is displayed to user Jul 02 17:54:05 adq you use mercurial to o? Jul 02 17:54:18 yeah, you just forgot because we already talked about :) Jul 02 17:54:30 I used mercurial before git... didn't like it, used git exclusively ever since... Jul 02 17:54:39 I used hg because firefox and openjdk used it Jul 02 17:54:43 meh Jul 02 17:54:49 yeah, it's better to be able to use difference DCVS Jul 02 17:54:53 different* Jul 02 17:55:02 instead of sticking to just one, imho Jul 02 17:55:04 and i used svk before git and hg became popular Jul 02 17:56:11 i'm using them like an average developer, because it's sufficient for me Jul 02 17:56:33 svk is a bastardized svn that is turned into dvcs, kinda funny Jul 02 17:57:07 wow, written in perl Jul 02 17:57:12 == will die sooner or later :p Jul 02 17:57:38 it seems discontinued according to wikipedia Jul 02 17:59:27 how can i find out the true download link when it’s not a direct link?? onDownloadStart gets the (django) url before redirecting Jul 02 17:59:47 wow, this is amazing http://newsoffice.mit.edu/2015/quantum-dot-spectrometer-smartphone-0701 Jul 02 18:00:25 if you could analyze the chemical composition of your food with a smartphone, contaminants, etc - that would be big Jul 02 18:00:46 'oh i see wee have a trace of corexit, pass on the fish" :D Jul 02 18:00:46 luist, that's not going to be trivial i guess, if some javascript is processed to generate the url Jul 02 18:01:24 g00s, not possible until they can also fit a PMT in your phone Jul 02 18:02:05 adq: i just want to get the file name to save the file correctly… is there an easier way to do that? Jul 02 18:02:12 really interessting news though. especially for me as a chemist :) Jul 02 18:02:17 luist, did you try with shouldOverrideUrlLoading ? Jul 02 18:02:18 http://developer.android.com/reference/android/webkit/WebViewClient.html#shouldOverrideUrlLoading(android.webkit.WebView, java.lang.String) Jul 02 18:02:19 adq: Do you use Evolve? Jul 02 18:02:27 TacticalJoke, nope Jul 02 18:02:36 It's really good. Wish they'd hurry up and release it. Jul 02 18:02:48 reading on it Jul 02 18:02:58 also scattered light might be an issue. Jul 02 18:03:00 only mq extension i have used, but i don't need it most of the time Jul 02 18:03:33 The main advantage of Evolve is that we can mutate published changesets with minimal hassle. Jul 02 18:04:06 Yeah, MQ kinda sucks. Jul 02 18:04:09 They don't recommend it anymore. Jul 02 18:04:13 i'm still on the old fashion of not changing the history :) Jul 02 18:04:22 yeah Jul 02 18:05:25 This is the best Evolve documentation: http://evolution.experimentalworks.net/doc/ Jul 02 18:05:33 thx, will throw an eye Jul 02 18:05:49 what do people do who work jobs as Android programmers? could anyone give me some details? I applied to rent a place and I put down as a job that i'm an Android Programmer, even though i just code by myself and dont make money. I should probably know what an employed one does Jul 02 18:05:54 adq: well i use crosswalk webview… not sure if i can use that: http://paste.ofcode.org/33TMreVZinAjpEjAUjVPgtL Jul 02 18:06:43 luist, no idea sorry, i tend to stay away from webview as much as possible Jul 02 18:07:05 NateRiver, how do you pay? Jul 02 18:07:24 adq: will shouldOverrideUrlLoading try to resolve the url before sending to onDownloadStart? Jul 02 18:07:27 TL;DR: Evolve is append-only history mutation with the concept of changeset obsolescence ("changeset X is the new version of changeset Y"). Jul 02 18:07:29 NateRiver, take any dev recruiting website, look at the android offer, deduce Jul 02 18:08:01 it varies from consultancy to dedicated app coding via security audit etc Jul 02 18:08:26 some company (as genymobile, the one who made genymotion) also do rom cooking Jul 02 18:08:27 tell them you are this kind of dev: http://goo.gl/aSrs1b Jul 02 18:08:32 it's very various Jul 02 18:09:44 funny fact, i got a client for android wear few weeks ago Jul 02 18:09:50 this is extremly rare Jul 02 18:09:53 (at this time) Jul 02 18:10:58 (forever) Jul 02 18:11:43 and ever Jul 02 18:11:58 danijoo, i have schizophrenia so i get like 700$ a month, but i dont want to put that down on rent info Jul 02 18:12:46 never (put that) Jul 02 18:12:46 im glad you are not my renter. not because of schizophrenia, but because you are a liar ;) Jul 02 18:13:14 You do a little bit of design when needed, but mostly just develop android apps as you are told. Jul 02 18:13:36 Then say something like and it's always 100 times more work than the client expects. Jul 02 18:13:47 :D Jul 02 18:13:53 lol Jul 02 18:14:14 "and they always change the specifications!" Jul 02 18:14:20 If they ask you why, its because the last 1% of an app will take you the longest to finish and is usually the most vital--all the details that differentiate a merely good app from a really polished one. Jul 02 18:14:22 hehe Jul 02 18:14:36 always changing the specifications, indeed Jul 02 18:14:47 just make them sign and put enough boundaries to protect you and the client Jul 02 18:15:33 one thing i started to do is trying to force them to deal more via written form (mail mainly) than phone or other audio call Jul 02 18:15:54 NateRiver: Can't you tell them you have schizophrenia? Jul 02 18:15:55 ^^ Jul 02 18:16:08 like they asked "Oh cool! what projects are you working on now?" And i said i was working on my dolphin petting app. Should i answer with a specific app? or like a certain piece of some app? Jul 02 18:16:12 TacticalJoke: sounds like he is in the states Jul 02 18:16:20 Yeah, I guess I'm not sure how it is in the US. Jul 02 18:16:45 I know a landlord here (England) who has tenants with schizophrenia and other stuff. They all seem really open about it. Jul 02 18:16:53 NateRiver, you should have a portfolio of apps Jul 02 18:17:04 and do not lie about that. Jul 02 18:17:33 Did you really say you were working on a dolphin-petting app? Jul 02 18:17:39 here in germany, they dont care what you say. the want to see a proof for your income.. Jul 02 18:18:10 I have a portfolio of my silly apps xD. And I am working on an app where you pat a flat design dolphin and its head jiggles Jul 02 18:18:32 because they have such fat heads Jul 02 18:18:47 Sounds like an app for raising charity money for dolphin protecting Jul 02 18:18:56 or a troll Jul 02 18:19:25 or just having fun at programming :) Jul 02 18:19:26 TacticalJoke, most places wont rent to me because theyre scared of Schizophrenic people thanks to Hollywood Jul 02 18:19:31 They should make a "feed dolphins" simulator. It was kinda fun feeding the dolphins at Disney World. Jul 02 18:19:41 TacticalJoke, tamagochi? Jul 02 18:19:53 NateRiver in the US? i would think thats against some housing discrimination thing Jul 02 18:20:45 do they (landlords) ask for medical records in the US?? Jul 02 18:20:48 Yeah, like a modern dolphin Tamagotchi with great graphics. Jul 02 18:20:53 i was just about to google it and though, jesus dont do that - some data broker will assume i have schizophrenia and track it back to me Jul 02 18:20:54 Well i dont want to do a year lease, all the month to month leases are with families, couples, etc Jul 02 18:21:23 g00s i think part of it is you don't have to explicitly rejected Jul 02 18:21:34 *on the basis, but you can be implicitly so Jul 02 18:21:52 they can just say "this one fitz better for the flat" Jul 02 18:21:57 fits Jul 02 18:22:06 but they still want to know why i spend all my time in my room, and how i make money. And i do spend all my time in my room programming and want to be a dev eventually. Most people in US also hate anyone with SSI/SSDI Jul 02 18:22:55 g00s tho you are right if you look up Fair Housing Act it looks like Jul 02 18:23:02 Are you guys freelance developers? Jul 02 18:23:36 barq, yes. and at the same time my only customer :p Jul 02 18:23:43 its just simpler to say i have a remote android job Jul 02 18:23:55 So you live off your own apps' proceedings? Jul 02 18:24:52 right now yes. but im a student. "live".equals("coffee" + "beer"), so im fine Jul 02 18:24:53 It's a tough one, NateRiver. Jul 02 18:25:16 Cool Jul 02 18:25:21 NateRiver last time i rented property they asked me for a paystub, or something indicating ability to pay. unless you pay the whole year ahead of time (they typically also do credit check) Jul 02 18:25:22 is it not possible to use a SurfaceView in a PopupWindow? Jul 02 18:25:23 wont do android forever (sadly) Jul 02 18:25:28 Why not? Jul 02 18:25:45 moogoo: sure Jul 02 18:25:57 barq, self tought without a grade in CS. its hard to find a job in IT without a grade in europe Jul 02 18:26:05 it does not seem to work for me, just renders blank Jul 02 18:26:11 and im not studying CS Jul 02 18:26:28 and everything I've searched seems to say it just does not work Jul 02 18:26:43 danijoo: You can easily work as a freelance app developer or employed, if you wish. Jul 02 18:27:18 barq, yes. but i would be scared of the future. I basically only know android. and android wont last forever i think Jul 02 18:27:25 NateRiver: Here in England, there's no discrimination when it comes to social housing. I guess the US has something similar (the projects). Jul 02 18:27:32 g00s thats why i rent from families or a room in a house, they only ask for a 300$ deposit usually. I could never afford the 2.5-3x rent paystub thing of apartments. Jul 02 18:27:37 i started this after starting my studies. Now I just want to get that done and then ill see ;) Jul 02 18:27:52 moogoo: could be a lot of things Jul 02 18:27:53 But with private landlords it's so easy for them to discriminate. And they often will, because it takes just one tenant with schizophrenia who refuses to pay the rent for the landlord never to trust again. Jul 02 18:27:55 I guess you can shift to similar technologies quite easily. Jul 02 18:28:01 maybe yes Jul 02 18:28:31 ill think about this in 1 year when I graduated :) Jul 02 18:28:38 danijoo: iot -> isn't the braile or whatever its called built on android? Jul 02 18:28:49 maybe i just start to apply for android and my studied job then Jul 02 18:29:19 danijoo: don't you have teachers with projects that need android stuff? Jul 02 18:29:33 lasserix, no. im chemist ;) Jul 02 18:29:37 ahh Jul 02 18:29:41 well check the cs department Jul 02 18:30:01 i wasn't even a student @ the university but ended up through a grad student getting a contract with a professor at a startup Jul 02 18:30:06 might do something with computers there, too though Jul 02 18:30:10 (i was taking electronics courses somewhere else at the time) Jul 02 18:30:40 since i worked at that start up for 9 months? before it went under now i don't really need a degree to get hired anywhere else Jul 02 18:30:48 jsut portfolio + acumen Jul 02 18:31:34 you should make apps of step by steps for phikal and thikal and sell them for 10 dollars ;p Jul 02 18:32:12 *oh i guess that'd b ochem tho Jul 02 18:32:22 is it not possible to use a SurfaceView in a PopupWindow? <- no possible :( Jul 02 18:32:26 not* Jul 02 18:32:39 this is not very well documented, but it cannot work Jul 02 18:32:51 cause i also wanted to put a surfaceview in a popupwindow a year ago Jul 02 18:32:56 and find out it's not possible at all Jul 02 18:33:48 oh yeah there is weirdness when it comes to the composition of the frames for surfaceview, like you cannot also set a background color and expect it to work Jul 02 18:34:07 yeah it drills a hole Jul 02 18:34:11 but why don't you just make custom viewgroup with intro/out animations + border shadow ("elevation") and addView/removeView from a relativelayout parent Jul 02 18:34:14 or framelayout Jul 02 18:34:23 but it's possible with playing with zorder to have a background Jul 02 18:34:29 the issue with popupwindow is different Jul 02 18:34:35 and cannot be fixed it seems Jul 02 18:34:56 i dont see why you can't emulate a popup with a custom viewgroup + aniamtions + elevation/drop shadow Jul 02 18:36:21 moogoo: did you see this guys post? http://stackoverflow.com/questions/20608875/surfaceview-not-working-inside-popupwindow Jul 02 18:36:24 also treats hover events Jul 02 18:38:20 a few things don't work inside a popupwindow, like Spinners Jul 02 18:38:37 its pretty crappy Jul 02 18:39:30 i dont think back then - 1.0 - the android guys had any coherent story to layers ontop of layers; popupwindow was a hack Jul 02 18:39:40 the impression i get anyhow Jul 02 18:39:54 have any of you read knuth art of programming? Bill gates says hell hire anyone who finishes it Jul 02 18:39:55 i kinda like it because you can directly inflate a layout and position it Jul 02 18:40:04 but yeah, they are drawbacks, as overdraw too Jul 02 18:40:05 yea I saw that, looked like he ditched popupwindow entierly Jul 02 18:40:07 big overdraw there Jul 02 18:44:21 NateRiver: if you are going to take it on, be prepared to commit yourself Jul 02 18:45:16 and probably find a solutions manual for the "hw" problems Jul 02 18:45:23 *er chapter problems Jul 02 18:45:32 NateRiver if you want to do android dev - i'd think hard about consumer facing stuff. there is very little money there unless you get insanely lucky Jul 02 18:47:52 Isnt being an android dev by yourself like being an Inventor? Like a modern day Thomas Edison, its romantic like that Jul 02 18:48:26 Edison died poor Jul 02 18:48:34 Edison was an outlier too ;) Jul 02 18:49:26 I dont think he was poor was he? He was super famous, everyone travelled across the country to work for him Jul 02 18:51:20 NateRiver http://www.amazon.com/Myths-Innovation-Scott-Berkun/dp/1449389627 Jul 02 18:51:41 irrc he didnt patent anything and therefor didnt make any real money from his inventions\ Jul 02 18:52:30 may as well also read, very popular http://www.amazon.com/Innovators-Dilemma-Revolutionary-Change-Business/dp/0062060244 Jul 02 18:53:15 Hi guys, I am working on custom home screen launcher. Right now I am displaying installed apps using recycler view. I want to refresh the view when user swipes left or right horizontally. I am looking for paging in recycler view to do that. I am bit confused on if that is the right way to do or should I use some other view to display the apps. Any suggestions will be helpful Jul 02 18:54:13 sDurgam, look up ViewPager Jul 02 18:54:15 does anyone know if shouldOverrideUrlLoading tries to resolve the url before sending to onDownloadStart? im dealing with indirect download links Jul 02 18:54:43 cool did you read those g00s? Jul 02 18:54:58 NateRiver yeah, innovator's dilemma maybe 10 years ago Jul 02 18:55:02 @danijoo thank you. I will look into it Jul 02 18:56:10 Hi everyone, I'm getting a Nexus 7 2013 soon and am wondering if anybody knows the bootloader filesystem type? Jul 02 18:56:16 I'd like to replace the bootloader logo Jul 02 18:56:22 thanks,i need to read something like this Jul 02 18:56:24 doesn't look like that's easily done on this table Jul 02 18:56:29 old_benz, wrong channel Jul 02 18:56:44 sorry, can you point me to the right channel? Jul 02 18:56:51 old_benz, see topic Jul 02 18:56:56 p_l did you see this? http://www.amazon.com/gp/product/3319155237 kinda like scott adams (dilbert) http://www.amazon.com/How-Fail-Almost-Everything-Still/dp/1591847745 but ideas grown by analogy from AI Jul 02 18:57:14 thanks Jul 02 18:57:40 p_l specificlly " Goals are for losers. Systems are for winners." heh Jul 02 19:02:10 what would you recommend for implementing 3 or 6 month subscriptions using in app billing? Jul 02 19:02:39 g00s have you read "Why greatness cannot be planned"? sounds like they say work less play harder until you stumble upon a good idea Jul 02 19:02:51 defer a just bouht monthly subscription to the new due date? Jul 02 19:02:56 NateRiver no i just saw it yesterday Jul 02 19:03:08 ^bought Jul 02 19:03:09 Im trying to install my app with adb, I keep getting insufficient storage error but I have 3GB free on my device (internal storage, it has no SD card) Jul 02 19:03:17 the app is < 20MB Jul 02 19:03:48 Illya, 3gb in total or for apps? Jul 02 19:03:58 android does not use the whole internal card for apps Jul 02 19:04:10 have you read 7 habbits of highly effective people? thats the first book of this business tips kind of genre im reading xD Jul 02 19:04:11 No idea Jul 02 19:04:30 danijoo: how can I check? Jul 02 19:04:54 Illya, settings->storage Jul 02 19:05:13 NateRiver yeah read that ... in the 90s Jul 02 19:05:22 4GB available Jul 02 19:06:42 try clearing your cache Jul 02 19:06:59 NateRiver maybe think about something like http://www.amazon.com/gp/product/1118960874 Jul 02 19:07:27 still fails Jul 02 19:08:19 cool, ill read whatever you throw at me if it relates to making apps in some way Jul 02 19:08:28 I think I need to read that. Jul 02 19:08:43 NateRiver well then http://www.amazon.com/How-Build-Billion-Dollar-Entrepreneurs-ebook/dp/B00J3C4RE6 Jul 02 19:08:57 My strategy is often "Don't inflict it upon the world until it's perfect". Jul 02 19:09:04 TacticalJoke lol Jul 02 19:09:20 TacticalJoke you know what writers say about pleasing everyone right? :D Jul 02 19:10:20 hi, i am haivng this no classdeffounderror, eclipse points to the line where I reference the fragment class. Jul 02 19:10:46 Yah. Jul 02 19:11:26 "switch to android studio" comments in 3... 2... 1... Jul 02 19:11:42 argyris: Need moar info. Jul 02 19:12:16 TacticalJoke, what kind? I am clueless Jul 02 19:12:41 More than just "[name of exception] [something about an IDE pointing to a line]". :D Jul 02 19:12:45 "buy more ram then switch to AS" Jul 02 19:13:00 our better "buy a SSD..." Jul 02 19:13:05 thanks bitkiller, you saved me Jul 02 19:13:33 TacticalJoke, will pastebin help? Jul 02 19:13:38 yes. Jul 02 19:14:15 NateRiver: Rock pet Jul 02 19:14:18 http://pastebin.com/H7tBibTD Jul 02 19:14:46 Which line does it point to? Jul 02 19:14:59 In fact, you might as well post the exception stack trace. Jul 02 19:15:32 it points to new CameraFeedFragment Jul 02 19:15:55 are you using support library? Jul 02 19:16:03 `mainapplication`. ;o Jul 02 19:16:09 opencv Jul 02 19:16:31 is that what's causing the error? Jul 02 19:16:43 argyris: you need to make sure you are not using support fragments Jul 02 19:16:49 ie android.support.v4.fragment Jul 02 19:16:58 better make sure to use them :p Jul 02 19:17:04 as superclass of CameraFeedFragment, or switch over and use them Jul 02 19:17:06 http://pastebin.com/XERaMfaw Jul 02 19:18:02 it says android.app Jul 02 19:19:38 is it the wrong one? Jul 02 19:20:13 you are using eclipse are they same part of code? Jul 02 19:20:24 yes, Jul 02 19:20:48 same project, same package, I tried switching to a different package didn't work Jul 02 19:21:08 While trying to use "./adb -s 192.168.56.101:5555 push /home/personx/whatsapp/com.whatsapp sdcard/data/data/com.whatsapp" I get an error ...personx/com.whatsapp/lib/libvlc.so : No such file or directory. I want to copy the whole folder "com.whatsapp" from my system to the folder /data/data inside the sdcard. What am I doing wrong? Jul 02 19:23:03 If a direct connection from android to database is not recommended, then what's the alternative? Jul 02 19:23:31 argyris: Can you post the whole Activity file and the CameraFeedFragment file? Jul 02 19:24:00 crised, a frontend. like a php script Jul 02 19:24:07 with a rest api Jul 02 19:25:28 Px12: you dont have read permission there Jul 02 19:25:31 unless you are rooted Jul 02 19:26:04 *or i believe you don't have write permissioin, maybe read Jul 02 19:26:16 http://pastebin.com/gWEhgAMX Jul 02 19:26:25 lasserix, well, its a virtual device. from Genymotion. Jul 02 19:27:02 argyris: new CameraFeedFragment(mainapplication); -> new CameraFeedFragment(this); Jul 02 19:27:11 or getContext() Jul 02 19:27:22 http://pastebin.com/pxhn9J6W Jul 02 19:27:28 Dude, that code looks weird. An Activity is not an application. Jul 02 19:27:58 toh nevermind Jul 02 19:28:03 TacticalJoke: it is in libgdx Jul 02 19:28:18 it's from libgdx Jul 02 19:28:33 tho i dont think you should be using fragments with libgdx, shouldn't it be another screen or whatever? Jul 02 19:29:10 you should also add KEEP SCREEN ON / OFF to onResume and onPause Jul 02 19:29:16 I dont know. I want to show opencv camera feed. Jul 02 19:29:38 yeah can't you do that by setting it through one of the view wrappers of libgdx Jul 02 19:29:58 did you try cleaning your project? Jul 02 19:30:30 yes, i did. It didnt work also Jul 02 19:30:32 also the way you are instantiating your fragment is not really great for reinstantiation Jul 02 19:30:52 argyris: what i mean is Jul 02 19:30:56 why do you need this fragment at all? Jul 02 19:31:16 to show the opencv camera ? Jul 02 19:31:18 just make CvCameraViewListener2 implemented by like androidlauncher Jul 02 19:31:30 pipe it through to a output view in the view hierarchy you set Jul 02 19:32:40 danijoo: this seemed to be the problem http://stackoverflow.com/a/10963431 Jul 02 19:33:00 mOpenCvCameraView = (CameraBridgeViewBase) this.getActivity().findViewById(R.id.tutorial1_activity_java_surface_view); Jul 02 19:33:00 Jul 02 19:33:00 argyris: you even do this! Jul 02 19:33:09 inside the fragment, so why use a fragment at all? Jul 02 19:33:21 err Jul 02 19:33:25 spoke too soon Jul 02 19:33:42 i go try what you said Jul 02 19:33:52 eh, wait. Jul 02 19:34:31 how do i change the hierarchy if it's not in a view. Jul 02 19:36:14 can you please check this question? http://stackoverflow.com/questions/31193158/google-services-json-location-in-the-project-tree and is there a specific channel for google cloud? what's the name of the channel? Jul 02 19:38:42 hey guys… i download files in my webview just fine, but i can’t open them by clicking on the “Download completed” notification, only by using the file manager. What am i missing? http://paste.ofcode.org/HEF4cUpYMj5fdk3fx7cPxg Jul 02 19:40:58 lasserix, I remounted the sdcard with write permissions but when I did "adb push /somefolder sdcard/data/data/com.whatsapp" it copied the whole folder directly to the root directory (/com.whatsapp) Jul 02 19:41:15 argyris: http://pastebin.com/ZqCs4JV5 Jul 02 19:41:22 it is Jul 02 19:41:23 you do Jul 02 19:41:44 look it up via the parent activity Jul 02 19:41:49 you dont need that fragment Jul 02 19:42:03 you can just toggle the visibility of that view, or add and remove it from a root in the activity's view hierarchy Jul 02 19:42:40 elisa87: probably in assests? Jul 02 19:43:51 Px12: dunno can you move it? Jul 02 19:44:06 lasserix, I don't know how. Jul 02 19:44:20 adb mv or something Jul 02 19:44:49 lasserix, lemme try. Jul 02 19:45:13 elisa87: your tutorial link fails since you have to be logged in, you should copy a relevant section if it is ambigious Jul 02 19:45:27 Hi! I'm a python dev who's just started playing with Java and android dev... and I'm not sure if I've got a problem with my IDE setup (Android Studio) or I'm just being really dumb. I've got "import java.net.URL;" and a few lines later I'm trying to "URL url = new URL("http://www.google.com");" but getting a "unreported exception MalformedURLException"... Jul 02 19:45:27 But that url is not malformed? Jul 02 19:46:33 Did you wrap a try catch around the new URL part? Jul 02 19:47:15 Nope... Why would that help? Jul 02 19:47:35 I mean, I know how exceptions work, but I'm failing to see what's wrong with that line? Jul 02 19:47:45 because exceptions in java are checked Jul 02 19:47:47 unlike in python Jul 02 19:47:52 very annoying Jul 02 19:48:04 argyris: oops http://pastebin.com/kqEHYw98 Jul 02 19:48:47 arbitraryuser: you can either append throws MalformedURLException to the method you do new URL in, and then someone else has to try/catch it or wrap that part in try/catch Jul 02 19:48:57 as pfn said exceptions in java are checked Jul 02 19:50:17 is it even possible to use a SurfaceView within a DialogFragment, this is not working for me Jul 02 19:50:37 the dialog gets inflated to the size of all the SurfaceViews inside but they are all transparent Jul 02 19:50:51 ok, so wrapping it "fixes" the problem... but I have no idea wtf is going on? What does "Exceptions in java are checked" actually mean? Jul 02 19:50:57 and the surfaceCreated() callbacks are never called Jul 02 19:51:05 moogoo: just use a custom viewgroup and add it to a parent in your activity's hierarchy Jul 02 19:51:26 arbitraryuser: you have to have that code or else it wont compile Jul 02 19:51:35 just a syntatic rule like you have to end a statemetn in a ; Jul 02 19:51:55 i guess it is part grammar too, since it is also like type-checking in collections Jul 02 19:52:26 what is the "feature" called? I'd like to read more Jul 02 19:52:36 checked exceptions Jul 02 19:52:37 why does java check exceptions Jul 02 19:52:41 python exceptions are unchecked Jul 02 19:52:55 how does java handle typing it is somewhat similar Jul 02 19:53:32 lasserix, "mv /com.whatsapp /data/data" gives "invalid option -- P" :/ Jul 02 19:54:03 can you push it again, but to the correct directory this time? Jul 02 19:54:31 Px12: http://stackoverflow.com/questions/18935109/how-to-move-files-with-adb-shell Jul 02 19:54:50 it'd just be nice if SurfaceView was actually useable Jul 02 19:55:19 lasserix, I saw that already. but how do I move the entire folder to /data/data? Jul 02 19:55:47 lasserix, I pasted your code and now it say didn't find class ...AndroidLauncher. Jul 02 19:56:04 moogoo: http://stackoverflow.com/questions/14522439/videoview-inside-dialogfragment Jul 02 19:56:14 argyris: there might be typos Jul 02 19:56:17 go through it and fix it Jul 02 19:56:31 i typed most of it out for you thats all the spoon feeding ill do Jul 02 19:56:50 So I'm guessing here: Is that line of code needing to be in a try/catch because at compile time the compiler has no way of knowing if that string is a valid url? Jul 02 19:56:58 for instance, you have to figure out how/when you want to call showCameraView/hideCameraView (maybe add two buttons for now, while you're debugging to get it working?) Jul 02 19:57:03 lasserix, well, it is the correct folder, no? o.O I want the contents of the folder /com.whatsapp to /data/data/com.whatsapp, how do I do that? Jul 02 19:57:47 hey guys… i download files in my webview just fine, but i can’t open them by clicking on the “Download completed” notification, only by using the file manager. What am i missing? http://paste.ofcode.org/HEF4cUpYMj5fdk3fx7cPxg Jul 02 19:57:58 arbitraryuser: http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/net/URL.java#URL.%3Cinit%3E%28java.lang.String%29 Jul 02 19:58:04 notice how it is declared as throws? Jul 02 19:58:20 like i said, if you declare a method (or constructor) with throws, someone, somewhere will have to try/catch it at some point Jul 02 19:58:35 arbitraryuser, http://beginnersbook.com/2013/04/java-checked-unchecked-exceptions-with-examples/ Jul 02 19:58:57 arbitraryuser, MalformedURLException is a so-called checked exception so it requires you to handle it explicitly Jul 02 19:59:00 ok Thanks, I will go through it to understand what changed. Jul 02 19:59:01 read that article :) Jul 02 20:01:04 danijoo: maybe Amazon Simple Queue Service (SQS) provides a hosted message queue for web applications. Jul 02 20:01:58 Hey! With in-app billing, do I have to use Google wallet? I'm allowed to take any payment method, right? Jul 02 20:02:35 no Jul 02 20:02:42 https://developer.android.com/google/play/billing/index.html "No special account or registration is required other than a Google Play Developer Console account and a Google Wallet merchant account." Jul 02 20:03:19 how to move an entire directory from /com.something to /data/data/com.something ? Jul 02 20:03:38 mv Jul 02 20:03:47 Mavrik: I guess my confusion comes from pages like https://developer.android.com/reference/java/net/URLConnection.html which don't have try/catches wrapping the URL method call. Jul 02 20:04:56 arbitraryuser, learn some basic java first Jul 02 20:05:14 It's an example meant to be concise to make a point. Jul 02 20:05:21 Not give you a copy-pasteable code. Jul 02 20:21:55 If I have an activity and it has exactly one fragment that is committed once, is there any point in even having the fragment? Or rather, is there any disadvantage of having the fragment and would favor just having an activity and no fragment? Jul 02 20:22:32 no fragment, no lolcycle :p Jul 02 20:23:01 Yes, it would simplify the lifecycle. But in terms of performance? Jul 02 20:23:16 i dont think youll notice a difference there Jul 02 20:23:47 at least not enough to rewrite code thats already working :) Jul 02 20:24:22 Most of it would be copy pasting, I think Jul 02 20:24:40 it would make the code easier i think Jul 02 20:24:48 I don't think fragments are /that/ bad for simple use case Jul 02 20:24:50 cases* Jul 02 20:24:57 i never use fragments in cases like that Jul 02 20:25:06 if an activity is enough, activity it is Jul 02 20:25:42 what if the fragment is easily reused Jul 02 20:25:42 I think just an activity would be cleaner. Jul 02 20:25:46 It is not Jul 02 20:25:51 It is coupled 1:1 Jul 02 20:25:51 well then Jul 02 20:25:57 And static Jul 02 20:26:12 is it a preference fragment Jul 02 20:26:23 What is a preference fragment? Jul 02 20:26:29 a fragment showing preferences Jul 02 20:26:39 desmin88, if reusability is a thing, then yes. but if I know something does not need to be reused, i never use frags Jul 02 20:26:52 danijoo: I agree with you Jul 02 20:26:53 No, it is not preferences. Jul 02 20:27:02 Though I don't see how that would make a difference. Jul 02 20:27:31 barq, for preferences theres not really an alternative for fragments Jul 02 20:27:38 because all those activity pref methods are deprecated :p Jul 02 20:27:51 ok Jul 02 20:28:02 danijoo: What about the use case where you have an activity that switches out fragments in its main view. the fragments aren't reused in other activites Jul 02 20:28:19 It's basically a form, enter some stuff in EditTexts and Spinners, then click next. Jul 02 20:28:23 Nothing fancy. Jul 02 20:28:34 it would be a major PITA to switch out activity content views Jul 02 20:28:43 desmin88, then I use fragments, too. Jul 02 20:28:50 but only if its fullscreen Jul 02 20:28:58 not for half of the screen or so Jul 02 20:29:27 i abuse compound views a lot :) Jul 02 20:29:40 they are much more convient for me than fragments Jul 02 20:29:49 custom views? Jul 02 20:30:06 yes. something like pre bundled views in a viewgroup Jul 02 20:30:30 where I can just do myProfileView.setProfile(mUserProfile) and have some code in there for setting content Jul 02 20:31:12 but for lets say a fullscreen viewpager im also using fragments ofc Jul 02 20:31:28 Yes, I use those too, but from within the fragment right now Jul 02 20:32:03 https://corner.squareup.com/2014/10/advocating-against-android-fragments.html Jul 02 20:32:11 relavant blog Jul 02 20:32:48 dang it, sometimes you just want multiple inheritance Jul 02 20:32:51 gosling was lazy Jul 02 20:33:00 i hate when language designers are lazy Jul 02 20:34:00 Aren't they doing this mortar and flow stuff Jul 02 20:34:45 they kinda do everything Jul 02 20:35:05 you cant name a big lib where squre/jw isnt envolved i think ^^ Jul 02 20:36:34 How do they make money to support their open source projects? Jul 02 20:37:13 those square credit card reader things Jul 02 20:37:28 g00s: i blame canada. Jul 02 20:38:31 i went to a tech talk at square last week. apparently they have 20 android devs. wrap your head around that. Jul 02 20:38:48 well it's easy if you realize the dongle was what we did 4 years ago Jul 02 20:39:12 20 android devs O.o Jul 02 20:41:22 what does square do now besides the dongle Jul 02 20:41:46 barq: i think it's more that JakeWharton is kind enough to open source his projects. code supports itself by use. Square would be using those libs regardless of their open-source-ness Jul 02 20:42:15 visit the website and find out Jul 02 20:44:51 JakeWharton is square working on their own android tablet? maybe that is top secret Jul 02 20:46:29 silence :) Jul 02 20:46:30 http://www.theverge.com/2015/2/11/8019413/square-apple-ipad-mobile-payments-terminal-android-report Jul 02 20:46:45 silence because you ask a stupid question Jul 02 20:47:08 i guess it would make sense to have 20 android devs if making custom in house tablet Jul 02 20:47:13 stupid because it is obvious you are making your own android tablet Jul 02 20:47:18 or stupid because it you are not Jul 02 20:47:19 or if you had multiple apps Jul 02 20:47:34 -it* Jul 02 20:47:45 neh. probably cheaper to buy a supported device from an established android porting company of some kind. partner with motorola or something. Jul 02 20:48:43 desmin88: it's stupid because it asks about a company's future plans Jul 02 20:48:44 Hello, is there a way to start and activity (startActivityForResult) without destroying the activity that called it? Jul 02 20:48:51 or maybe samsung, so your POS devices can have UV sensors. Jul 02 20:49:14 pakcjo: normally it doesn't Jul 02 20:49:19 yeah seems like there's absolutely no reason for square to ever build their own tablet Jul 02 20:49:34 asarazan: of course there is! there's no square form factor tablets Jul 02 20:49:43 hahaha Jul 02 20:49:43 we have round smartwatches, makes sense for a square tablet. Jul 02 20:49:45 well, for that ya just go to blackberry Jul 02 20:50:24 groxx: i have the don't keep activities option enabled on my device, but if it does, my app crashes. So I want to see if it is possible to avoid it Jul 02 20:51:07 and g00s what makes you think the lack of multiple inheritance was laziness? Jul 02 20:51:10 pakcjo: if it crashes, you're nearly 100% certain to be doing something wrong. you can't rely on things like that existing, in general. Jul 02 20:51:24 asarazan gosling didn't want to work out the diamond problem Jul 02 20:51:24 given the presence of a near endless list of white papers, articles, and blog posts about how awful of an idea it is Jul 02 20:51:42 its not awful, languages have solved it Jul 02 20:51:47 and then java gets interfaces with default implementations Jul 02 20:51:56 yeah traits seems like a better approach Jul 02 20:52:11 yeah. the distinction is pretty minor though. Jul 02 20:52:46 anyway if you're working on the jvm, there are options other than java, that have better support for such things (cough #kotlin) just sayin Jul 02 20:53:03 kotlin made it pretty nice with its interfaces Jul 02 20:54:05 pakcjo: odds are you're holding onto an instance of the activity you came from? if you get activities [a, b, c], then they leave the app for a while, they can come back to a brand new process with only [c] in memory. you have to handle that situation too, which is what "don't keep activities" tries to help you discover. Jul 02 20:55:30 groxx: yes, that's close to my case, thanks Jul 02 20:57:41 ooo, what about a Square reader built into a Pebble Time watchband? Jul 02 20:58:16 a watch with a credit card reader on it. /mind blown Jul 02 20:58:40 does anyone know how to align a ImageButton image to the left? I did try with android:layout_gravity="left" no success :( Jul 02 20:58:59 s73v3r: http://hd.wallpaperswide.com/thumbs/shut_up_and_take_my_money-t2.jpg Jul 02 20:59:30 I would, but I don’t have a credit card reader on my watchband, and my phone is aaaaaallll the way over there Jul 02 20:59:31 wviana: layout_ attributes are for the parent view - it has to be in a parent that listens to gravity attributes Jul 02 20:59:58 s73v3r: D: nooooo! we shall never escape this cruel world at this rate! Jul 02 21:00:09 wviana: what's the parent view type? Jul 02 21:00:37 groxx: LinearLayout, take a look, https://gist.github.com/wviana/18621d1ceab9abebfd31 Jul 02 21:01:23 wviana: tried gravity:left? Jul 02 21:02:01 barq: ImageButton does not have android:gravity :( Jul 02 21:02:20 wviana: Your LinearLayout is lacking an orientation. Jul 02 21:02:33 wviana: it's also good to get in the habit of defining your orientation in LLs, though it does default to vertical if omitted Jul 02 21:02:53 wviana: hmm. few oddities in there. first: you're missing layout_width and height on the LinearLayout. second: since the LinearLayout is horizontal by default (I think?), left/right gravity will be ignored - left/right position is determined by the order of the views. Jul 02 21:03:36 my fault, it is horizontal by default. you are correct :) Jul 02 21:05:58 groxx: I have the width and hight in the style. It's kind of a topbar, Jul 02 21:06:48 wviana: Pastebin your modified layout once you've opted for an orientation please Jul 02 21:06:50 groxx: I'm using horizontal gravity, Jul 02 21:07:03 wviana: ah, gotcha. I haven't figured out if I like doing that or not :) _generally_ I see people recommend against it because it hides things, but yeah. no problem there then. Jul 02 21:07:59 You can remove the gravity left/right if you are doing horizontal orientation. Jul 02 21:08:03 wviana: linearlayout takes views 1, 2, 3 and puts them on screen, left to right, in that order. left/right layout_gravity doesn't have any meaning. Jul 02 21:08:28 You are setting weights so each should take up 1/3 the width Jul 02 21:08:45 I know there’s an @notnull annotation for method parameters. Is there a similar one for return method signatures? Jul 02 21:09:33 s73v3r: https://developer.android.com/reference/android/support/annotation/NonNull.html ? Jul 02 21:09:50 thanks! Jul 02 21:09:55 s73v3r: it's the same. just put it before the method. Jul 02 21:10:22 or use kotlin (propaganda) Jul 02 21:10:35 heh Jul 02 21:10:56 it's certainly a very appealing part of the language, yeah Jul 02 21:11:11 can drive you crazy sometimes though Jul 02 21:11:19 If only I had the ability to do so. Jul 02 21:11:34 then I’d never get anything done cause I’d keep chasing the better language dragon :p Jul 02 21:12:08 if only you had the Square Watch™, you could hire someone to do that for you without reaching your phone. Jul 02 21:13:00 i imagine that square watch to look like a pid boy 3000 Jul 02 21:13:38 oh its actually called "pip boy" Jul 02 21:13:44 every problem in my life can be traced back to not having the Square Watch (patent pending) Jul 02 21:24:13 When does the google play store update its install stats Jul 02 21:24:23 fabric answers is showing me way more than what google is Jul 02 21:25:27 in fact, they did recently Jul 02 21:25:32 it was even more worse before :D Jul 02 21:25:50 they want you to use analytics :p Jul 02 21:26:10 good thing i am Jul 02 21:26:15 except not theirs Jul 02 21:26:36 4 active users, thats a new record! Jul 02 21:26:50 if you use analytics, the even get more analytics data -> more profit Jul 02 21:26:56 the = they Jul 02 21:27:09 i think thats the reasoning behind it Jul 02 21:28:54 danijoo who gets your analytics data ? Jul 02 21:29:00 fabric Jul 02 21:30:00 Don't the console updates have around 2-3 days' delay? Jul 02 21:30:28 danijoo but does twitter actually use your data ? Jul 02 21:30:53 im pretty sure they do Jul 02 21:30:57 i guess if its standardized into some canned matrics they could technically use it Jul 02 21:31:13 maybe they use it for mopub Jul 02 21:31:13 but if you define custom things i don't think they would know what to do with it, even if they did Jul 02 21:31:27 yeah i think so too Jul 02 21:31:45 i suspected that, but never found a clear answer. for that reason i avoided it Jul 02 21:33:43 they must use it somehow Jul 02 21:33:49 or they woudnt offer it for free Jul 02 21:34:20 i think they all just use the default metrics and rest is to attract devs Jul 02 21:41:34 Does anyone ever implemented android with multidex enabled? I have been fighting with this for 3 days and I can't get my app to compile when I enable multidex... Jul 02 21:42:04 multidex and proguard kind of hate each other. try minifyEnabled = false and see if that works, then you can go from there Jul 02 21:42:40 enettolima: why do you have so many methods? what libs are you using? Jul 02 21:43:52 I am using around 20 libs on my project, one of the biggest one is the csipsimple that required at least 4 others SDKs Jul 02 21:46:22 enettolima, are you proguarding? Jul 02 21:46:52 @danijoo Jul 02 21:47:06 ? :) Jul 02 21:48:42 Yes I am Jul 02 21:48:52 proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' Jul 02 21:49:52 thats not what enables proguard Jul 02 21:50:50 you have to set minifyEnabled=true Jul 02 21:51:06 and if you never edited your proguard file, this will throw you 9000 errors Jul 02 21:51:42 That is when my app breaks when I set minifyEnabled true Jul 02 21:51:59 yeah. you need to specify your own proguard rules Jul 02 21:52:07 thats the annoying part Jul 02 21:52:10 I am setting that inside the buildtypes\ Jul 02 21:52:20 Oh, so I can not use the default one? Jul 02 21:52:23 no Jul 02 21:52:33 a lot of libraries require special proguard settings Jul 02 21:52:44 where should that be, inside the flavors or buildtypes? Jul 02 21:53:03 inside the proguard-rules.pro file Jul 02 21:53:57 Do you have an example? I will need to setup this for a library called mopub Jul 02 21:54:15 yeah. i can show you my file Jul 02 21:54:19 im also using mopub Jul 02 21:54:31 awesome! :) Jul 02 21:54:36 Thank you for the help Jul 02 21:55:22 enettolima, http://pastebin.com/N2CHR5Vr Jul 02 21:59:32 hey guys Jul 02 21:59:35 can someone on kitkat test my game real quick? its on the play store Jul 02 22:00:41 Needing some hardware assistance; I have a MiPad, need to know if I can just take it apart, and swap the current stock LCD screen with the LG G3 screen. Please assist ... Jul 02 22:01:00 I'm not sure of the different types of LCD connections, and if they are universal? Jul 02 22:01:05 hi Jul 02 22:01:53 i am trying to begin developing in android. how do i load the contacts.zip from android website into android-studio? Jul 02 22:04:04 awww yiss made 1 nickel off ad revenue today Jul 02 22:04:26 git dat paper demin88 Jul 02 22:04:56 The LG G3 connector is here: https://d3nevzfk7ii3be.cloudfront.net/igi/qeBlXOPKMX6kAnW5.huge -- And the MiPad connector is here: http://www.dragon-tt.com/Uploads/photo/11272014120809AM87711.jpg Jul 02 22:04:59 only been advertising for <1 hour so thats not bad i guess Jul 02 22:05:12 Does anyone know if the LG G3 LCD will fit on the MiPad mainboard? Jul 02 22:05:22 desmin are you running kitkat? Jul 02 22:05:32 android_SoC, this is app development channel Jul 02 22:05:38 danijoo i know im sorry but im at a loss Jul 02 22:05:40 cannot find hardware help Jul 02 22:05:44 liftedbronco: what do you mean? Jul 02 22:05:54 i need someone whos running kitkat to test an app of mine Jul 02 22:05:55 for what it's worth; i'm designing apps that require the LG G3 lcd :[ Jul 02 22:06:02 whats your app? Jul 02 22:06:05 it crashes on my kitkat device but i suspect that's because its high quality Jul 02 22:06:10 let me pmsg you Jul 02 22:06:37 android_SoC, you wont find hardware help in here Jul 02 22:06:46 and my kitkat device is crap Jul 02 22:06:48 danijoo can you recommend a channel / server? Jul 02 22:06:57 danijoo, especially one dealing with VR / AR too Jul 02 22:06:59 no. im not into hardware sorry Jul 02 22:07:23 jesus christ Jul 02 22:07:28 are you actually posting hardware problems here lol Jul 02 22:07:39 we're not real engineers :P Jul 02 22:07:41 liftedbronco, it's on two android platforms that my question exists Jul 02 22:07:47 liftedbronco: does the emulator work? Jul 02 22:07:52 yeah Jul 02 22:07:56 Anyone here that has used ftrace or atrace before? Can you help me with this: http://stackoverflow.com/questions/31192104/how-do-i-use-async-start-and-async-stop-in-systrace-atrace-for-android Jul 02 22:08:56 My app is using jdk1.8.0_45, which supports lambdas. If someone tries to code on my app but only has 1.7 installed, the lambdas will break, won't they? Jul 02 22:09:08 Also, is there a downside to using jdk 8? Jul 02 22:09:17 you cant use lambdas in android Jul 02 22:09:20 Besides the interop between devs Jul 02 22:09:31 Zythyr: it seems like you're misinterpreting the documentation. async_start just kicks the tracing off, it doesn't return anything (useful). similarly, async_stop just stops it. Jul 02 22:09:38 danijoo: the app will just break? Jul 02 22:09:47 explodes_, android does not support java 1.8 features Jul 02 22:10:02 i think it woudnt even compile Jul 02 22:10:07 Zythyr: I don't think I played with the async_ variants, but I would guess that you'll have to start it and periodically dump the contents (say every 10 seconds or less), in order to capture all (or most) of the data Jul 02 22:10:29 lol k, I thought it was strange. But the IDE allows it at least- not surprised since it uses the jdk's binaries to find messages to show the user Jul 02 22:10:49 danijoo: it does compile- i'll try running a lambda- one sec Jul 02 22:11:03 groxx What if I make the buffer big enough? Jul 02 22:11:31 groxx, What does the doc say "dump" when --async_stop is called... Jul 02 22:11:39 Zythyr: it might work. but the amount of data you capture will vary a lot on the device, since some dump a lot more than others Jul 02 22:11:55 Zythyr: and I don't know if it'll run longer than ~10 seconds anyway. maybe that's just the synchronous form that has that limit though. Jul 02 22:12:02 groxx if I use the async method, do I have to use the -c option? Jul 02 22:12:03 Anyone know of a hardware support channel/server? Jul 02 22:12:24 Zythyr: ah, _stop does say it dumps. it might not have anything if you just dumped the contents though. Jul 02 22:12:26 danijoo: weird, it suddenly isn't working Jul 02 22:12:36 i know :p Jul 02 22:13:00 look at retrolambda or kotlin if you want to use lambdas Jul 02 22:13:23 groxx I did "adb shell atrace -b 1000 -c am --async_start". Then I played with my device then did "adb shell atrace --async_stop". The dump is empty. Jul 02 22:13:50 I swear it was working a minute ago... "this expression can be replaced with a lambda expression CMD+F1 -> Bam" Jul 02 22:14:18 explodes_: I would guess that it's that it compiles to .class files, and when you try to _build_ you get a failure at the dexing stage Jul 02 22:14:20 pics or it didnt happen :p Jul 02 22:15:05 so compiling works, since you told it to compile to java 8, which you have a compiler for. but the rest of the build process doesn't understand java 8 bytecode. Jul 02 22:16:16 Zythyr: dunno. I would expect that to work like it says, but tracing support seems pretty variable on devices :/ if async_dump works, just dump before stopping, seems like that's not too bad Jul 02 22:18:49 groxx Its weird... Even after stopping, I dump and I see stuff... I wait a bit and dump again and see stuff... Jul 02 22:19:50 What was that (new?) library for building Fragments with annotated arguments and an annotation that makes a MyFragmentBuilder class? Jul 02 22:20:06 Also this deep-linking library is pretty sick: https://github.com/airbnb/DeepLinkDispatch Jul 02 22:25:12 Zythyr: huh. sounds like it's not actually stopped :/ Jul 02 22:27:04 Zythyr: I was just about to ask what happens if you _just_ used --async_stop or --async_dump. I wonder if the extra args are messing things up. Jul 02 22:27:38 groxx let me try it Jul 02 22:28:48 explodes_: huh. nice. I've been wondering what an entirely URL-based app would look like... whenever I use something not in a browser, I immediately start missing browser features, like history and bookmarks :/ Jul 02 22:29:44 I don't think the point is to be url-based, necessarily Jul 02 22:30:04 But yea, those browser features go out the window unless you implement them Jul 02 22:30:28 groxx, A sepreate question. I am using windows commoand proment to shell into the my device. What is aternative to gedit or nano that I can use Jul 02 22:30:56 explodes_: well, that's url based. everything is prefixed by "airbnb://", you just don't have to write it every time. Jul 02 22:31:59 Zythyr: those seem like different things, since gedit and nano are text editors. since you're on windows, I'd probably say try sublimetext, or atom.io, or maybe even notepad++. Jul 02 22:33:29 explodes_: ha, "Theme.NoDisplay". gotta say, I do tend to prefer the invisible launches over crappy launch screens :| Jul 02 22:35:21 groxx: agreed. also, crap you're right, the scheme is airbnb, i was thinking it would make it wicked easy to pick up http(s?) links in your app- i wonder if it works easy enough like that Jul 02 22:37:28 Does anyone see a way of constructing this view without using a weight param? http://pastie.org/10270706 Jul 02 22:38:16 groxx, Found this, https://android.googlesource.com/platform/frameworks/native/+/android-5.1.1_r6/cmds/atrace/atrace.cpp, trying to understand if I can decode it Jul 02 22:38:43 desmin88, LinearLayout containing a linearlayout and the admob view Jul 02 22:38:57 in the inner layout, your toolbar and framelayout Jul 02 22:39:11 or even simplier Jul 02 22:39:43 RelativeLayout, toolbar aligning to, admob aligning bottom, framelayout anchoring on that two Jul 02 22:39:48 explodes_: seems like probably. I think you can make "https://domain.etc" as a requirement for the filter? without modification I'd guess you may have to specify "domain.etc/actually/useful/stuff" every time, bu tthat's not too bad Jul 02 22:39:57 s/to/top Jul 02 22:40:39 danijoo: And that would solve the issue where both the toolbar and admob are wrap_content, while the framelayout is match_parent? Without the weight param the admob view becomes invisibile Jul 02 22:41:01 groxx: oh duh, tru - i bet it works like buttah' Jul 02 22:41:04 desmin88: framelayout, layout_gravity top/bottom for header/footer, margins on the inner framelayout? Jul 02 22:41:05 try it Jul 02 22:41:19 id do a RelativeLayout Jul 02 22:41:40 relativelayout is probably worse than weights though :) Jul 02 22:41:48 but yeah, it would work Jul 02 22:42:03 yeah im just trying to create this view the least expensive way possible Jul 02 22:42:17 desmin88, if this is all your view contains, who cares Jul 02 22:42:19 airbnb has some cool stuff, like this https://github.com/airbnb/AirMapView MapView that falls back to WebView when google-play-services isn't available Jul 02 22:42:33 desmin88: ¯\_(ツ)_/¯ make a custom viewgroup, change the measure/layout. it's not too hard once you know how. Jul 02 22:42:39 you wont notice a difference between my option, groxx's and your weight Jul 02 22:42:52 danijoo: the framelayout may contain complex fragment views Jul 02 22:43:19 desmin88, built it, check if it works, and optimize if not Jul 02 22:43:36 dont optimize if you dont have to ;) Jul 02 22:43:53 there is that side of things too, yeah Jul 02 22:47:16 glide vs. picasso, opinions? Jul 02 22:47:31 use fresco! Jul 02 22:47:32 /s Jul 02 22:47:47 glide'll do a little more for you in some situations, otherwise they're roughly equivalent, but with different defaults. Jul 02 22:48:00 glide does gifs Jul 02 22:48:38 desmin88: oh you had me going Jake showed me this and I was put off of Fresco forever: https://github.com/facebook/fresco/blob/39aee1834c38476e66f1245ecc3b25661b7fc3aa/fbcore/src/main/java/com/facebook/common/references/OOMSoftReference.java#L52-L54 Jul 02 22:49:21 lolwhat Jul 02 22:49:33 the size of the library is also quite ridiculous Jul 02 22:49:45 ^ this Jul 02 22:50:14 facebook devs cant write 2 lines without putting a method arround them Jul 02 22:50:36 your dex count will get pretty big Jul 02 22:50:54 that's the kind of stuff I tend to see in facebook's clever stuff. clever, legitimately, and shows some deep understanding of the system. also pretty weird and fragile and implies they should be doing things differently elsewhere rather than patching it in "clever" ways Jul 02 22:51:06 hilarious- Jul 02 22:51:08 fresco is at arround 5k Jul 02 22:51:16 not worth it imo Jul 02 22:51:46 groxx: it is true, they're definitely smart Jul 02 22:51:48 but i must proguard/multidex anything anyways Jul 02 22:52:02 im a bit sceptical about the ashmem thing thouhg Jul 02 22:52:07 it looks too hacky to me Jul 02 22:53:13 ashmem? Jul 02 22:53:50 they dont store the images in your java heap Jul 02 22:54:02 its in the native memory Jul 02 22:54:06 fresco doesn't? Jul 02 22:54:13 thats what only fresco does Jul 02 22:54:40 groxx, Are you there? I think I found a mistake in source code for atrace. Look at line 879. For all theree cases (start, stop, and dump), traceStop is always false. Thus tracing doesn't stop https://android.googlesource.com/platform/frameworks/native/+/android-5.1.1_r6/cmds/atrace/atrace.cpp Jul 02 22:54:43 so you will end more or less OOM free, but trick arround the system Jul 02 22:54:43 cool. Jul 02 22:54:47 i dont really like it Jul 02 22:54:52 myspace was a big thing, I ignored it when everyone was hyping about it, and it went away, same will happen with facebook Jul 02 22:55:11 ashmem is not freed by a garbage collector and can affect other apps (in theory) Jul 02 22:55:39 shmooz, everything wents away Jul 02 22:55:54 thank god Jul 02 22:56:03 lets see if android lasts long enough to see facebook die ;) Jul 02 22:57:00 facebook won't die until a replacement comes out- facebook replaced myspace- i don't know if the temperature is right for people to jump off of facebook and join another network (google+ was doomed to fail) Jul 02 22:57:20 explodes_, teens already do Jul 02 22:57:27 facebook isnt hip anymore Jul 02 22:57:54 instagram is the new thing Jul 02 22:58:00 but its owned by fb, so... :D Jul 02 22:58:08 I have visited facebook, except when I accidently click search results that go there Jul 02 22:58:11 Zythyr: that does look suspicious, yeah. though it suggests a way to stop it: start a normal (short) dump. Jul 02 22:58:23 it runs in the family :D Jul 02 22:58:23 I mean, I have NEVER visited facebook Jul 02 22:59:39 groxx, Sorry I didn't undersatnd. How do I stop it? Jul 02 22:59:48 facebook helps humanity to regress Jul 02 22:59:53 they are pretty good at that job Jul 02 23:01:16 same goes for google Jul 02 23:02:00 danijoo: gonna look at Encypokedia to learn kotlin Jul 02 23:02:33 explodes_, better look at their tutorial ;) Jul 02 23:02:33 Zythyr: traceStop is true by default. if you start a non-async trace, it seems like it should stop the tracing when the non-async one completes Jul 02 23:03:21 TacticalJoke is here, everyone act normal ;P Jul 02 23:03:24 shhhh Jul 02 23:03:40 now he knows -_- Jul 02 23:03:57 D: not everything, surely Jul 02 23:04:05 or we're doomed Jul 02 23:04:41 * TacticalJoke can't even imagine. Jul 02 23:05:45 TacticalJoke: where's my reddit app ?!? Jul 02 23:05:45 Surgical laugh on TacticalJoke Jul 02 23:05:57 groxx, So are you saying that in order to stop the tracing, I just thave to do a regular trace command without async. I can do t=1? Jul 02 23:06:07 that was tactical joke on TacticalJoke Jul 02 23:07:43 Zythyr: seems that way Jul 02 23:08:21 Your reddit app is in the process of being shaped to perfection, shmooz. Jul 02 23:08:32 read: will never be finished Jul 02 23:09:11 he is hired by apple to slow us down and make us wonder Jul 02 23:09:44 or chair companies, since we're warping ours due to constantly being on the edge of our seats. Jul 02 23:10:31 did anyone ever see a preview of this ominous app? :Pp Jul 02 23:10:43 lasserix has. :D Jul 02 23:10:45 But an early preview. Jul 02 23:10:59 paint sketches dont count ! Jul 02 23:11:18 how convenient that they're not here... http://i0.kym-cdn.com/photos/images/newsfeed/000/131/399/fry.PNG?1307468855 Jul 02 23:11:29 It's actually not a bad app. I need to do the whole download-gfycat-videos-as-MP4s thing, though. Jul 02 23:11:34 yeah I was going to say I saw a preview, but no it was lasserix Jul 02 23:11:37 Because it's so annoying using WebView for that. :/ Jul 02 23:11:42 "If you’re flying on a Boeing 777 Cathay Pacific flight from Hong Kong to Los Angeles on any given day, there’s a one in 4,068,434 chance that your plane will crash" Jul 02 23:11:46 Didn't I send you it, shmooz? ;o Jul 02 23:11:56 TacticalJoke: no I sent you mine Jul 02 23:12:03 the real question is.. why didnt I see it yet? Jul 02 23:12:13 TacticalJoke: but I have changed it quite a bit since then Jul 02 23:12:13 adq: D: how many have they flown already? is it gonna crash soon? Jul 02 23:12:37 crazy ppl inducing fear Jul 02 23:12:39 :) Jul 02 23:13:09 those odds seem better than the lottery Jul 02 23:13:13 groxx, trace is not stopping. I keep seeing output from --async_dump Jul 02 23:13:16 surprisingly Jul 02 23:14:50 a bad joke about probability: a guy sitting next to me in the plane whisper quietly: "don't worry, I have a bomb in my bag, because the probability to have _2_ bombs in a plane is extremly low and lower than _1_, thus we are safe" Jul 02 23:15:23 I want to see a bot that responds to misuses of "your" with "Did you mean `you're`?" no matter where the misuse happens. Jul 02 23:15:24 of course this is untrue, cause events are independent Jul 02 23:15:25 nice reasoning Jul 02 23:15:26 :) Jul 02 23:15:28 Even in SMS messages (somehow). Jul 02 23:16:20 man if it was true for bug and android development Jul 02 23:16:20 TacticalJoke: or just make it randomly reply to _any_ use of "your" / "you're", and have it suggest the opposite. it'll be right sometimes, and trolling otherwise. Jul 02 23:16:26 :D Jul 02 23:17:02 an app randomly underlyining your words suggesting the opposite Jul 02 23:17:05 that would be hilarious Jul 02 23:17:16 at least you can detect if a verb is following "your" to replace with "you're" Jul 02 23:17:25 If a device qualifies for the xlarge qualifier, does that also make it a large device Jul 02 23:17:34 no Jul 02 23:17:50 1 in 4 million Jul 02 23:17:53 a high density device is not also a low density device :p Jul 02 23:17:54 there's only 1 plane a day... Jul 02 23:17:56 heh Jul 02 23:18:03 that's a lot of days Jul 02 23:18:19 desmin88: I think the only way to achieve that is something like "sw600dp", since that'll catch 600dp _or more_. Jul 02 23:18:27 ^ Jul 02 23:18:32 large/xlarge are essentially deprecated anyway Jul 02 23:18:48 so the qualifier for a tablet would be sw600dp? Jul 02 23:18:58 probably Jul 02 23:19:23 I think they use sw600dp == nexus 7 == "large", in examples Jul 02 23:19:29 desmin88, http://developer.android.com/guide/practices/screens_support.html enjoy. Jul 02 23:19:33 I might have my numbers messed up though Jul 02 23:19:36 my mongodb instance currently holds 869 Gb of virtual memory. sounds valid o.O Jul 02 23:19:39 adq: ive read that Jul 02 23:19:44 it's a maze Jul 02 23:20:28 ealier, when android was not much fragmented it was pretty easy i remember, but then phones got size like tablet, and tablets got sim-card and screen display like phone Jul 02 23:20:39 making not anymore possible to properly distinguish the two simple cases Jul 02 23:20:45 g00s finally got my hands on an n6... doesn't seem too big... think it'll be my next dev device Jul 02 23:20:57 and google recommended to not distinguish them, but just think of dpi and resolution iirc Jul 02 23:21:06 * danijoo waits for nexus 5 2015 ed. Jul 02 23:21:17 (borrowed a couple last weekend conference) Jul 02 23:21:48 i am still on the nexus 5 and really like it Jul 02 23:21:55 same here Jul 02 23:22:00 i have tried to pocket the 6 and my pants are just not that big Jul 02 23:22:09 danijoo I'm getting antsy... is there a projected date on the new one? Jul 02 23:22:29 and then they came out with 240x240 watches again and we are back to VIC 20 days Jul 02 23:22:46 adq: and then the Samsung W came out, and everything is (╯°□°)╯︵ ┻━┻ http://www.engadget.com/2014/06/01/samsung-7-inch-galaxy-w/ Jul 02 23:23:05 capella-s3, no. and not much known about it yet Jul 02 23:23:06 ahah Jul 02 23:23:06 7 in is a tablet Jul 02 23:23:20 Does anyone know what causes the varying structure of the output on android gradle builds? it seems like its a toss up how a project will actually organize the compiled class files and whatnot Jul 02 23:23:22 or a samsung! Jul 02 23:23:27 I think october/november, like every year Jul 02 23:23:54 mmm... can I wait (?) :/ Jul 02 23:24:17 pretty sure it will come with android M Jul 02 23:24:19 if there's something common about Android devices, you can rely on Samsung to break the pattern. doesn't matter if it's a good idea or not. Jul 02 23:24:56 yah, awesome... have to limp my gs3 along till then Jul 02 23:24:58 CTS is not strict enough :( Jul 02 23:25:04 ugh, yeah not getting a samsung again :-( Jul 02 23:25:45 I liked my gs3 after I slapped cm11 on it Jul 02 23:26:05 I had a s2 from tmobile and cm didn't come to it until I had bought a new phone Jul 02 23:26:31 turns out it was almost entirely a different phone from the at$t version Jul 02 23:26:43 i hope they release the new nexus 5 with usb type C Jul 02 23:26:51 would be dumb if they dont Jul 02 23:26:51 that would be sweet Jul 02 23:27:08 and finger print (although idc about that) Jul 02 23:27:16 Do you think it would have the display port mode? Jul 02 23:27:39 i expect it to have all those new features they announced with M Jul 02 23:27:58 did they announce video out with M? Jul 02 23:29:21 I wish they'd stop coming out with new stuff and new API's and deprecating things, I can't catch up Jul 02 23:30:00 did you get burned by something? Jul 02 23:30:26 theres not much to do for M until now Jul 02 23:30:30 yes, this crazy jet engined lighter Jul 02 23:30:34 only permission rework Jul 02 23:30:49 I don't think fingerprint is a good idea, you let your thumb everywhere, even if you can strengthened it with asking for order of different fingers to provide. I agree it's very convinient though, but this transfer the risk on you (cf demolition man and the pencil in the eye) Jul 02 23:31:32 pro & con as always Jul 02 23:31:46 nothing is secure :) Jul 02 23:31:59 adq: well the pattern unlock has the grease print vulnerability :-) Jul 02 23:32:09 yeah Jul 02 23:32:20 also. 2 out of 3 have a 'Z' as unlock gesture :D Jul 02 23:32:26 it's pretty obvious each time i borrow the phone of a friend, let me see, light reflect, oh ok Jul 02 23:32:28 unlocked lol Jul 02 23:32:43 what is a simple way to print out a value in the app (looking for something like a print statement).. Wanted to know what the simplest option would be Jul 02 23:32:50 resistance is futile, you will all be tracked and fingerprinted Jul 02 23:33:05 trewq: if its just for debugging Log.i("hi","there") works Jul 02 23:33:08 this also work on traditional digicode by the way, only the order to find remains but they are not protected against brutefore Jul 02 23:33:10 trewq, Log.d(yourTag, yourValue) Jul 02 23:33:12 force* Jul 02 23:33:33 trewq: note that it will show up in the adb console Jul 02 23:33:37 it is a survalliance state and we made it happen Jul 02 23:33:43 would that show up in the app, or would i have to the debugger connected? Jul 02 23:33:50 debugger is needed Jul 02 23:33:51 a survaillance world Jul 02 23:33:54 i tend to blame my parents and my grand-parents for that :) Jul 02 23:34:01 it's because of their generation (have to blame someone ;)) Jul 02 23:34:05 ftc: just read your last statement Jul 02 23:34:10 ok Jul 02 23:34:58 the NSA can force you to use your finger to unlock your phone at the airport or wherever Jul 02 23:35:12 but they can't force you to type in your passcode to unlock Jul 02 23:35:30 There is always rubber hose cryptography for that Jul 02 23:35:30 shmooz, are you sure they cant? ;) Jul 02 23:35:32 in france, law can force you to reveal your password or whatever Jul 02 23:35:40 otherwise you obstruct justice Jul 02 23:35:50 adq, in germany, law cant Jul 02 23:36:05 schön Jul 02 23:36:12 bon? :) Jul 02 23:36:18 there are court precidences that say they can't in the us. They were lower courts though so not sure how they would stand up if challenged. Jul 02 23:36:22 danijoo: well it would be harder Jul 02 23:36:23 ^^ Jul 02 23:36:34 danijoo: I guess if they torture you enough they can Jul 02 23:37:02 The NSA is more likely to use some zero day vulnerability or a keylogger to get your data without you knowing though Jul 02 23:37:07 android is too easy to defeat for law enforcement i'm pretty sure Jul 02 23:37:24 you can just pretend you forgot your passcode all of a sudden Jul 02 23:37:32 lol * all of a sudden * Jul 02 23:37:44 and go to jail for contempt Jul 02 23:37:49 so now they have to take you to the torture room Jul 02 23:37:52 contempt is for courts only Jul 02 23:38:00 remember the days where it was all in the simcard pin? Jul 02 23:38:06 :p Jul 02 23:38:12 you can always say "I do not consent to a search" to a law enforcement officer and refuse to say anything more as long as you don't physically resist Jul 02 23:38:17 if you put the wrong one in 3 times -> DOOMED! Jul 02 23:38:25 eheh still a good idea to do that Jul 02 23:38:45 they flash a copy before they let you touch it :( Jul 02 23:38:47 it's not like a real smartcard/cryptoken but it's better than in the phone disk/sdcard Jul 02 23:39:11 I like to say, I am a few levels above your top classified agents , now stay clear Jul 02 23:40:01 danijoo, you have the PUK after the 3 times which you lock your PIN Jul 02 23:40:14 and if you lock the PUK, there is often a masterkey only known by the manufacturer Jul 02 23:40:18 adq, but this one was impossible to remember :p Jul 02 23:40:28 it's not given to the user in fact :) Jul 02 23:40:43 meant the PUK Jul 02 23:41:01 it's just like a pin, with a different "user" we could say (security officier often) Jul 02 23:41:09 and it helps to reset the counter of retry of the pin Jul 02 23:41:18 it's just one byte stored somewhere protected by some ACL Jul 02 23:42:39 Cute overload: http://i.imgur.com/htZeGHn.jpg Jul 02 23:44:10 bleh every single android project seems to have a different directory structure for the build process output Jul 02 23:44:42 you mean the /build folder? Jul 02 23:44:54 this one seems to be in the bin folder Jul 02 23:45:00 I have also seen them in app Jul 02 23:45:46 Why is android studio telling me my view is not allowed here Jul 02 23:45:48 urgh Jul 02 23:46:00 you've got one build folder per module Jul 02 23:46:05 and one global build folder Jul 02 23:47:03 that gives me an idea for an app Jul 02 23:47:45 adq: but there is one place where it puts all the .class files right? Jul 02 23:48:05 or do they remain in the separate build folders? Jul 02 23:48:06 ftc, i really don't know tbh Jul 02 23:48:15 * capella awwwwwwwwww ... puppy face :p Jul 02 23:48:15 a launcher that takes some passcodes as commands , so in that situation you'd type the passcode, it would backup the new created files offsite and wipe the device Jul 02 23:48:42 and then you hand it to the NSA agent or whatever Jul 02 23:49:11 class files go into /build/intermediates iirc Jul 02 23:49:14 srm (secure rm with DOD 25 pass) is very slow shmooz Jul 02 23:49:32 danijoo: that does appear to be where most put it Jul 02 23:49:34 and does not guarantee it will not be recoverable (it is using hamming distance to rewrite bytes too) Jul 02 23:49:41 or it could restore to default version without your custom personal files and then launch so the officer doesn't think anything is wrong Jul 02 23:49:48 but there are a fair number that don't seem to conform to that Jul 02 23:49:55 like wordpress's app Jul 02 23:50:03 ftc, i think that folder will contain everything thats used to build the apk Jul 02 23:50:08 all resources and stuff Jul 02 23:50:15 before dexing Jul 02 23:50:17 or just backup and remove personal files and contacts and info Jul 02 23:51:03 or just remove cause theres no time to backup Jul 02 23:51:07 options... Jul 02 23:51:39 even a secure remove takes ages Jul 02 23:51:56 you could just encrypt everything Jul 02 23:52:30 they could decrypt it Jul 02 23:52:32 and no worry of having to wipe, but this is more for a regular thief than the NSA Jul 02 23:52:37 Can someone take a look at my layout xml and provide insight as to why AS is telling me the framelayout is not allowed there? http://pastie.org/10270763 Jul 02 23:52:38 we should not even talk about the NSA i think :) Jul 02 23:52:40 danijoo: I have a couple of counterexamples unfortunately, I wonder if just doing the ./gradlew assemble doesn't get far enough? Jul 02 23:53:08 lets be honest. if its nsa they dont care. they will just send you a zero day via whatsapp and adb through your advice while you are browsing facebook :p Jul 02 23:53:17 My broadcast receiver isn't getting the boot completed broadcast Jul 02 23:53:18 ^ Jul 02 23:53:43 ftc, maybe. Jul 02 23:53:48 im not that much into it tbh Jul 02 23:53:50 what could I do if I need to get information for a service at onCreate (of activity), since bouding to it is not synchronous Jul 02 23:54:19 get what kind of information? Jul 02 23:54:27 thanks for the info anyway :-) Jul 02 23:54:41 going to try an assembleRelease and see if that puts stuff in build Jul 02 23:54:55 bleh, didn't work Jul 02 23:55:01 that should create you the whole apk Jul 02 23:55:29 yeah, trying to catch it before the dex compiler though Jul 02 23:55:37 why? Jul 02 23:56:04 program analysis is easier on the jvm bytecode Jul 02 23:56:25 at least for what I am doing Jul 02 23:56:51 for me i can find all class files in build/intermediates/classes/relaeaseType after a build Jul 02 23:56:54 due to tooling, not for any real practical reason though which is annoying Jul 02 23:57:26 note that im talking about the build folder of the module, not the project directory Jul 02 23:59:53 Thanks I will look into that Jul 03 00:00:09 I wonder if this wordpress app just has some funky configuration in the gradle build file though Jul 03 00:00:30 ftc, they could define a seperate output folder for build Jul 03 00:00:42 if you dont mind, pastebin it Jul 03 00:00:56 the directory structure? Jul 03 00:01:13 the gradle file Jul 03 00:02:21 one sec, let me see if I can get it all copied (on a terminal and its longer than my window) Jul 03 00:02:42 you are working in terminal? oO Jul 03 00:03:38 yeah with as silly as this sounds I am trying to automate the process of building an app and re organizing the .class files so my code can find and use them Jul 03 00:04:04 working from the terminal is the best Jul 03 00:04:06 if this is out of the scope of the channel I totally understand Jul 03 00:04:10 for automated app building, theres jenkins Jul 03 00:04:14 not being able to work from a terminal ftl Jul 03 00:05:02 http://pastie.org/10270776 Jul 03 00:06:05 nothing in there that changes build path Jul 03 00:06:12 ok thanks Jul 03 00:07:46 perhaps I should just write a special case in my script for projects that put the class files in app and move on Jul 03 00:08:16 I wonder if it is some compatibility mode for an older build system perhaps? Jul 03 00:08:32 er sorry bin not app Jul 03 00:09:31 huh? Jul 03 00:09:41 why are you not using gradle to build Jul 03 00:09:48 I am Jul 03 00:09:51 the location of class files should be irrelevant Jul 03 00:10:03 then you shouldn't care where class files are Jul 03 00:10:20 I am running a program analysis that I wrote which works over jvm bytecode Jul 03 00:11:01 so far I have just been special casing all the places gradle can put class files but its kinda annoying Jul 03 00:11:42 ftc, write a gradle task, use the correct paths that gradle tells you Jul 03 00:11:49 no special cases involved Jul 03 00:12:42 that is an interesting idea, they always seem to be in the classes directory so if I can get gradle itself to spit out that location... Jul 03 00:13:17 thanks pfn Jul 03 00:15:01 it does, write a proper task Jul 03 00:16:12 if you wanted to use sbt to build, I'd help, but meh Jul 03 00:16:26 I am unfortunately operating over a bunch of different projects that I did not write myself Jul 03 00:17:15 just making any given one work is easy, its making a script that can take general gradle build and consume it that is turning out to be a pain :-/ Jul 03 00:17:25 thanks for the ideas Jul 03 00:19:12 gradle plugin is the correct approach Jul 03 00:23:27 do people actually use sbt for android? Jul 03 00:23:44 I use it for scala but have not seen it on an android app yet Jul 03 00:38:12 capella-s3 i'm waiting for the moto g 2015 Jul 03 00:38:33 nice that you found something you like Jul 03 00:39:32 that is so an hour ago ;) now I'm back to the n5 2015 :p Jul 03 00:40:25 http://www.geeksnack.com/2015/06/28/nexus-5-2015-and-android-m-born-to-be-together/ Jul 03 00:41:48 lol. moto g looks good for dev; for every day use ... not sure what i would get. kinda bummed windows phone is tanking even more - i like my luma 521 though Jul 03 00:42:25 its amazing how fluid the UI is despite such low end specs Jul 03 00:43:38 My new fxos phone is surprisingly smooth scrolling/panning... having fun logging enhancement bugs :) Jul 03 00:43:44 I'm trying to get a new android tablet I got to work with adb, but I'm having some issues. it installs everything when I plug it in, but it's installing with samsung adb interface and it's not a samsung device. Jul 03 00:44:04 but when I attempt to install the correct driver, it just tells me the best driver is already installed. Jul 03 00:44:49 does it work? Jul 03 00:44:56 nope. Jul 03 00:44:58 it does not. Jul 03 00:45:04 boredDev: common pattern to installing drivers on Windows is to install _before_ plugging the device in Jul 03 00:45:12 otherwise the auto-install magic can bite you Jul 03 00:45:17 hmm, how do I do that? Jul 03 00:45:27 unplug device, uninstall drivers, install drivers, plug in device Jul 03 00:47:17 can you link me to a walk through for doing this, I'm not really sure how to find this info when it's not plugged in. Jul 03 00:47:41 boredDev you can google for a walk through Jul 03 00:47:48 this hasn't changed in ... 15 years ? Jul 03 00:48:09 fine fine, thought someone might already have a nice link. didn't kill to ask =\ Jul 03 00:48:13 Longer i think, device manager was in 95 I think... Jul 03 00:48:34 boredDev: its in device manager, you can find it by looking at what disappears when you unplug it Jul 03 00:48:50 boredDev, http://developer.android.com/tools/extras/oem-usb.html#InstallingDriver Jul 03 00:50:01 force it to use adb composite with have a disk Jul 03 00:50:06 it's crazy but it works Jul 03 00:58:41 TacticalJoke some drama over at reddit again ... Jul 03 00:59:55 i still dont understand how that company can exist from a financial perspective, and so much goes on with volunteer mods Jul 03 01:01:02 more pao fun? Jul 03 01:02:14 capella-s3 is ffos still using android undeath? i mean kernel and stuff Jul 03 01:03:06 kernal is linux yah, no "android" like aosp components aiui Jul 03 01:04:46 the issue I'm having is that it keep coming up as SAMSUNG Android Phone, when it is not that. Jul 03 01:06:03 g00s: Damn, just saw. Do they know why Victoria was firedy et? Jul 03 01:06:04 yet* Jul 03 01:06:18 no idea Jul 03 01:06:44 http://www.slideshare.net/aimeemaree/firefoxos-and-its-use-of-linux-a-deep-dive-into-gonk-architecture Jul 03 01:11:44 Man, if reddit dies, all of my Android efforts will be a waste. lol Jul 03 01:12:14 wtf? my phone comes through as portable device, but my tablet comes through as SAMSUNG Android Phone which is it not. Jul 03 01:13:18 TacticalJoke can't have all your eggs in one basket; that goes for android too :) Jul 03 01:14:36 True.dat Jul 03 01:16:12 * capella-s3 has one eye on rust/servo Jul 03 01:16:13 To be fair, if they moved to Voat or something I could fairly easily target that (if they have some REST API) instead. Jul 03 01:16:27 RESTful* Jul 03 01:17:39 Though Voat appears to be being hugged to death right now. Jul 03 01:19:56 hmmm... there is original aosp in the kernal Jul 03 01:25:08 capella-s3 question - if you want to learn JS, are the existing books / resources probably out of date because of the recent ecmascript 6 ? Jul 03 01:27:49 nah, new version just adds new suger afaict Jul 03 01:29:31 Big changes include |promises| ... that takes a little getting used to :P Jul 03 01:29:55 guys Jul 03 01:30:13 im trying to make an image voting app Jul 03 01:30:18 im using parse as the backend Jul 03 01:30:24 so i already have users down and the image uploading Jul 03 01:30:33 but how would i make a "Vote" on which image is better Jul 03 01:30:45 capella "Reliable JavaScript: How to Code Safely in the World's Most Dangerous Language" <-- sounds exciting :O Jul 03 01:31:13 yah, it's pretty scary if you're used to static linking Jul 03 01:32:09 I didn't care much for js before I used it a lot ... now it's merely |interesting| Jul 03 01:34:29 let me shorten that sentence to "books... out of date" Jul 03 01:39:15 well, yah, by definition printed books will be pretty far behind Jul 03 01:45:16 guys Jul 03 01:45:32 how to i set the image of a imagebutton from a parsefile Jul 03 01:45:36 its a jpg in the parse database Jul 03 01:50:57 retreive the bytes and set the image Jul 03 01:51:41 does anyone know how to change the obj output directory of ndk-build? Jul 03 01:52:23 I've successfully changed the .so binary output directory with NDK_APP_DST_DIR, but I want to put my temporary obj files in a build directory instead of parallel to my Android.mk file Jul 03 01:59:16 what kind of storage solutions can i use on for my android app? Jul 03 01:59:16 g00s if you're writing something yourself, TypeScript is where it's at Jul 03 01:59:34 i'm thinking about creating a java app and i don't know what kind of storage is offered Jul 03 01:59:46 Chainfire i'd like to tinker with d3.js Jul 03 02:00:27 in cordova, i can use websql and IndexedDb Jul 03 02:01:17 anyone got experience using travis-ci with apps? Jul 03 02:13:41 guys Jul 03 02:13:49 is there a way to retrieve a random object with a ParseQuery Jul 03 02:14:15 instead of getting a list and randomizing it in java that way Jul 03 02:26:09 liftedbronco: looks to me like the best you can do is num = count -> setSkip(rand.nextInt(num)) Jul 03 02:27:04 but whether or not that's faster than "load everything and pick a random one" depends on quite a lot. Jul 03 02:30:18 woohoo just broke a nickle on admob in my first 5 hrs Jul 03 02:38:33 trying to create a share intent in the action bar and getting a crash. here is my MainActivity.java --> https://gist.github.com/anonymous/3ec92ce7f6497f5b3585 and logcat of the crash --> https://gist.github.com/anonymous/6ad0334aa5644cbbf8a5 Jul 03 02:41:25 james0r: the exception tells you how to fix it Jul 03 02:42:45 groxx, k. reading up on MenuItemCompat now Jul 03 02:44:08 Anyone have issues with the project view in AS not updating after creation of new files/folders? Jul 03 02:50:01 outside of as or within? Jul 03 02:51:29 james0r, the crash points you to the line of the error, plus tells you the reason Jul 03 02:54:26 I'm getting "Failed to install Intel HAXM" when I tried to install android studio Jul 03 02:54:49 anyone else get this? Ideas? I tried downloading the installer again but that didn't work? Jul 03 02:57:37 canvs2321, i imported v7.widget.ShareActionProvider and changed the exception line from getActionProvider() to MenuItemCompat.getActionProvider(shareItem) Jul 03 02:58:03 Feeeee, HAXM lets you run things a little faster, but it's not essential Jul 03 02:58:05 canvs2321, the app no longer crashes but i'm unable to get share options from the share option on the action bar Jul 03 02:58:14 Ologn, thanks Jul 03 02:58:49 apparently there is a work around from intel but it seems like it's designed for installing haxm stand-alone, but this was part of a larger bundle **** ENDING LOGGING AT Fri Jul 03 02:59:58 2015