**** BEGIN LOGGING AT Fri Apr 24 02:59:59 2015 Apr 24 03:03:42 ugh when is this pos manifest merger going to work right, neverending bugs and misery Apr 24 03:05:18 new one, on my submodules - which don't even have tests, the manifest merger fails for :submodule:processDebugAndroidTestManifest Apr 24 03:10:41 g00s, thanks for that link to SquiDB, bada** Apr 24 03:11:03 masterjef yw Apr 24 03:13:14 lol, OK so - build app from AS works, clean from AS fails, build & clean from CLI work Apr 24 03:13:38 groxx i'm telling you man, no release builds from AS x.x Apr 24 03:13:43 so we can have a test folder and an androidTest folder? Apr 24 03:13:47 what'st he difference? Apr 24 03:14:04 welp nvm, looks like the difference is that one runs locally on junit Apr 24 03:14:07 androidTest is -- probably for connected device / instrumentation tests Apr 24 03:14:10 right Apr 24 03:14:57 the build system is so comples, i don't even know how to file intelligent bug reports any more. it just breaks. in inscrutable ways. Apr 24 03:15:04 *complex Apr 24 03:17:39 its like you are driving down the highway, and your car loses power. you pull over, open up the hood, and every single individual part of the engine and transmission fall out of the car like marbles from a bucket Apr 24 03:17:45 Maybe the complexity of the bug report should match the complexity of the system. Fight fire with fire. Apr 24 03:23:46 how weird is that dropdown to switch b/w instrumentation and unit tests :/ Apr 24 03:23:50 why is that even needed Apr 24 03:24:07 the same reason there's a dropdown to switch between variants Apr 24 03:24:17 Afzal what dropdown ? Apr 24 03:24:24 in Build Variants Apr 24 03:24:46 basically, if you have it set to unit tests, then the src/test folder is used as test source and runs junit tests locally Apr 24 03:25:06 if you have it set to Android Instrumentation tests then it uses the src/androidTest folder and generates a test apk Apr 24 03:28:33 Afzal is this in the project structure dialog ? Apr 24 03:28:54 g00s https://www.dropbox.com/s/ncx9o59pmi69ee3/Screenshot%202015-04-23%2023.28.51.png?dl=0 Apr 24 03:28:56 in Build Variants Apr 24 03:28:58 It's in the Build Variants thing. Apr 24 03:29:32 oh wow, i never saw that :D Apr 24 03:30:08 It's fairly new. Apr 24 03:44:50 If my primary flow is screen 1 -> ... -> screen 6, but I want to return user from screens 4,5, 6 always to screen 3, if they press back, what is the canonical way to implement this? Apr 24 03:45:24 should I make screens 4 to 6 as fragments in a single activity? Apr 24 03:51:17 creitve: Hmm, what is the exact scenario here? Why do they always go back to screen 3? Apr 24 03:53:33 TacticalJoke: Basically, screens 4 to 6 are on the same level. Apr 24 03:54:00 Guys I want to move an old Android VM from my laptop, which was created through eclipse, to my other laptop which is using Android Studio latest version Apr 24 03:54:03 Would that be easy ? Apr 24 03:54:05 creitve: flag_no_history, or startActivity(); finish();, or "flag_single_top | flag_clear_top & relaunch screen 3". Apr 24 03:54:46 or startActivityForResult each time, catch back-presses, and set a "pop to 3" result. check in onActivityResult in each screen, and finish() immediately if appropriate. Apr 24 03:56:51 groxx: thanks Apr 24 04:11:46 g00s, 1.2.0 final? nice, updating my build system tomorrow Apr 24 04:17:07 It's RC1 or 0 I think, so not quite Apr 24 04:18:48 Hi all, I have a question about a library. In particular, it's called Checkout https://github.com/serso/android-checkout Apr 24 04:18:56 I was wondering if any of you have experience using this library Apr 24 04:19:04 CedricBeust, nope Apr 24 04:19:11 CedricBeust, http://search.maven.org/#search%7Cga%7C1%7CCom.android.tools.build%20 Apr 24 04:19:25 I just want to know if it's something I should use or if I should manually handle the boilerplate code. Apr 24 04:19:33 Interesting, I could have sworc I read RC0 when I updated this morning Apr 24 04:20:55 <_genuser_> so, I'm understanding this correctly? You can't tell in getView of a listadapter if the gridview item it represents is select or not. Apr 24 04:21:13 CedricBeust, it was beta last time I checked Apr 24 04:24:02 Hey, I've got a question. Is it possible to add items to a listview from a drop down menu? Apr 24 04:24:27 I'm trying to have it so when you click an item in a menu, it adds that item to the view below, http://i.imgur.com/WJOAZc1.png Apr 24 04:25:20 everything is possible Apr 24 04:26:23 Any help? I feel like it should be really simple. I just need a menu, and when you click an item on that menu, it adds it to the view Apr 24 04:26:28 <_genuser_> anybody got ideas on how to determine in getView if a gridview item is selected? Apr 24 04:27:57 Binka_, it is simple, just add the data to your adapter, done Apr 24 04:28:59 pfnQ, I'm not very familiar with adapters, quite new at this. Any help? Apr 24 04:29:26 <_genuser_> Binka_: so your adapter keeps a copy of the data to be displayed in the listview Apr 24 04:29:40 <_genuser_> 2 - you set the adapter for the listview. using .setAdapter() Apr 24 04:30:28 <_genuser_> 3 - for each item in the adapter, you decide how it is rendered. You generate this view in getView() of the adapter. Apr 24 04:30:48 <_genuser_> to determine which item it being rendered, you are provide the position of the item that the view is being requested for. Apr 24 04:31:00 <_genuser_> you alter the adapter to alter the contents of the listview. Apr 24 04:32:01 Will that work with a submenu Apr 24 04:32:21 <_genuser_> that's how it will work with anything that require a ListAdapter. Apr 24 04:32:34 <_genuser_> typically you'll override a BaseAdapter to create your adapter. Apr 24 04:33:08 So, I have it so that when you click on any item in the menu, it calls onOptionsItemSelected(MenuItem item). And then I say, case R.id.Alcohol: Apr 24 04:33:29 is that where you run the code to call the adapter? Apr 24 04:34:23 <_genuser_> if the meny item that was select is references by r.id.alkihol in onoptionitemselected... correct that's where you'll modify the adapter. Apr 24 04:34:42 <_genuser_> the copy of the data that your adapter references. Apr 24 04:35:02 Ok, do you know of any examples or guides that do something similar. This is my first app and I have no idea what I;m doing Apr 24 04:35:29 <_genuser_> http://www.vogella.com/tutorials/AndroidListView/article.html Apr 24 04:35:58 <_genuser_> this guy has very decent tuts. they're a little long because he explains it in detail. but you can either put up with it and really understand it. Apr 24 04:36:11 <_genuser_> or you can skim it and pull out the pieces you need and just get it working. Apr 24 04:37:44 Okay thanks! I've skimmed through it and it doesn't look like it has anything to do with menu's. Will I still be able to get this to work with a menu from this tutorial? Apr 24 04:38:04 <_genuser_> nobody will have exactly what you need. Apr 24 04:38:12 <_genuser_> think of it as playing with legos. Apr 24 04:38:22 <_genuser_> once you learn how the pieces are connected, it is upto you to connect them. Apr 24 04:38:35 <_genuser_> you learn from thsi one how ListAdapters and ListViews work. Apr 24 04:38:47 <_genuser_> and then when you need to add something to your list on menu click, you'll know exactly what to do. Apr 24 04:39:39 Thanks, I'll take a look! Apr 24 04:39:46 <_genuser_> good luck Apr 24 04:40:22 Is this adapter based on the adapter design patter? Apr 24 04:41:52 <_genuser_> sorry, no idea. I don't really keep up with what the Britney Spears of computer books write about just to sell one more album Apr 24 04:41:55 <_genuser_> err... book. Apr 24 04:54:28 lets say you bind to a /local service/ in onStart() ... the service connection will happen sometime after onResume(). now if you have UI elements that poke that service, do you put null checks there? its theoretically possible somebody could press something before the service is bound, but not probable Apr 24 04:57:18 I would do that anyway Apr 24 04:57:35 otherwise you could get undefined behavior ;) Apr 24 05:00:22 * g00s sighs Apr 24 05:00:31 you are right Apr 24 05:05:14 devices get REALLY bogged down at times. it'll happen. guaranteed. Apr 24 05:06:42 groxx do you ever use bound local services ? Apr 24 05:09:12 nope. might make sense in a couple places at work, but I doubt I'll ever use them for my own stuff, except as a simpler way to manage the service's lifestyle. Apr 24 05:15:53 this is one of those timing things ... like tacticaljoke mentioned you can start multiple activities if you press a button too quickly Apr 24 05:16:10 if that button does startActivity() Apr 24 05:16:28 does anyone actually guard for that O.o Apr 24 05:22:36 As of today... I'm joining the ranks of newb droid dev Apr 24 05:36:10 * capella runs away Apr 24 05:36:21 Lol Apr 24 05:36:35 Don't worry I'm learning the basics Apr 24 05:37:23 After I find a solution Apr 24 05:37:29 To my current problems Apr 24 05:46:45 will i have trouble sumbitting if i use extra permisions in the manifest? Apr 24 05:46:57 i know on iOS they will give you a hard time Apr 24 05:47:18 Google doesn't care, your users might Apr 24 05:48:01 its just the ones required for ads, im sure it's fine Apr 24 05:59:17 woo just published second app Apr 24 05:59:58 DadFoundMy remember, quality - not quantity ;) Apr 24 06:00:23 each app you publish requires upkeep ;) Apr 24 06:00:27 lots Apr 24 06:00:32 g00s: yeah i debated wether or not to publish but decided to go with it Apr 24 06:00:58 i was convinced when a lot of kids in school really liked it and were getting kinda addicted Apr 24 06:01:20 if they like it maybe others will too \_(ツ)_/¯ Apr 24 06:03:20 'gradle is running, proceed with project closing?' .... wuuut Apr 24 06:07:34 what's the hotkey to surround with try/catch in android studio? Apr 24 06:07:43 i can't find it Apr 24 06:07:55 g00s, on the service thing, I have some view data that needs a service to work. I just created a 'listener' interface the the service connection calls in onServiceConnected Apr 24 06:08:23 ie the fragment implements the listener Apr 24 06:08:39 masterjef sounds good Apr 24 06:09:55 I have an asyntask I use for API requests, which receives parameters and returns JSONObject. I want to make a set of API methods to encapsulate the calls, only receiving params+listener and return array of specific type. How do I attach these methods to the general asyntask and still be sure everything is running asynchronously? Apr 24 06:11:07 Nevermind found it, it's ctrl alt t in Windows Apr 24 06:11:48 if i understand you correctly, i would create an abstract base class with stubs for the API methods, and then depending on what you want to expose, return different implementations Apr 24 06:11:53 creitve, Apr 24 06:13:51 hm Apr 24 06:14:37 i'm not sure what you mean by be sure everything is running async... if it's a long running task you're probably better off using a Thread/ThreadHandler/Executor service etc Apr 24 06:15:06 HandlerThread* Apr 24 06:15:29 creitve: retrofit Apr 24 06:16:11 lasserix: I know, thanks. Apr 24 06:16:26 as far as your question, just like normal Apr 24 06:16:38 call your interface implemention referenes in onpostexecute Apr 24 06:16:50 mAsyncTaskCompletionListener.onTaskComplet(T) Apr 24 06:19:54 lasserix: But that callback currently returns jsonobject (generalised interface) and I parse it inside fragment. Should I chain callbacks inside api method implementations (generalised listener to particular return type listener) or what? Apr 24 06:20:33 why are you not parsing it in the background? Apr 24 06:20:51 you should probably take a good look at rxjava Apr 24 06:20:54 i'd say parse it elsewhere Apr 24 06:21:04 essentially is what you are trying to build Apr 24 06:21:09 why parse it on the ui thread? Apr 24 06:21:18 create your viewmodel in the background Apr 24 06:21:44 creitve: o you wwant SRP Apr 24 06:22:01 then sure just chain make static method calls and you can do it in background Apr 24 06:22:05 g00s, if you absolutely insist on using a bound service, hide it behind a promise Apr 24 06:22:10 g00s, problem solved Apr 24 06:22:22 does anyone have an idea of how common it is for devices to support 8KHz sample rates? Apr 24 06:22:26 g00s, RxJava has promises, no? Apr 24 06:22:40 pfnQ i am thinking about that ... Apr 24 06:22:57 but really, just say no to bound services Apr 24 06:23:13 if ipc is not involved, they are not a good idea, ever Apr 24 06:23:34 pfnQ: i agree but specifically why do you say? Apr 24 06:24:57 masterjef: very i'd think Apr 24 06:25:23 i was dealing with 8khz mono voip call recordings earlier today Apr 24 06:26:50 myke, yeah I can't seem to find much. Trying to decide whether I should bring in software decimation/interpolation for devices that don't Apr 24 06:28:58 probably will just go without Apr 24 06:29:40 For the Android Virtual Device emulator, what constitutes a system image? Apr 24 06:29:53 Will downloading this be sufficient for emulating glass? Apr 24 06:29:54 https://developers.google.com/glass/tools-downloads/system Apr 24 06:30:16 masterjef: i'd be surprised if any devices didn't support it, 8khz is the standard sampling frewuency for "telephone quality" audio Apr 24 06:30:50 and it's pretty trivial to support lesser sampling f4equencies in the hw Apr 24 06:32:06 isn't there a built in way to take a video of your app running? i keep pulling 3rd party apps when googling Apr 24 06:32:16 Android needs to update tzdata to 2015c urgently Apr 24 06:32:37 oh boy, thats a problem . - i think its baked into the image Apr 24 06:32:46 not like, jodatime that ships with a db Apr 24 06:32:55 myke, cool, will roll with it for now. thanks Apr 24 06:34:09 where do I file a bug against AOSP ? Apr 24 06:34:19 wheatthins, http://stackoverflow.com/questions/16036245/is-there-an-android-based-google-glass-emulator Apr 24 06:35:36 AnAnt, https://code.google.com/p/android/issues/list Apr 24 06:35:41 thanks Apr 24 06:35:53 what's the problem with tzdata? curious Apr 24 06:36:44 masterjef: in the old tzdata Egypt switches to summer time today, yet Egypt canceled summer time this year Apr 24 06:37:15 yeah, tzdata is only updated with OTAs Apr 24 06:37:30 basically when the OS is updated Apr 24 06:37:42 thats kinda comical Apr 24 06:38:14 Specifically OTA? Apr 24 06:38:18 got it. i always forget how important that is. Apr 24 06:38:19 Or also if you flash? Apr 24 06:38:40 AnAnt can you manually override android to specify UTC offset without DST ? Apr 24 06:38:58 like, instead of selecting Cairo or something, put in the offset Apr 24 06:39:24 well, I can get the tzdata from the git repo, and adb push it on my device Apr 24 06:39:38 thing is the tzdata on git is not updated Apr 24 06:41:04 you might have to wait until android 6 for that :D Apr 24 06:43:05 If you want to drop a system image in for the Android Virtual Device emulator, what directory does that go in Apr 24 06:44:11 .android folder in your user dir (at least on windows) Apr 24 06:44:59 g00s: no, they update the info regularly actually, they just missed the last update Apr 24 06:45:54 anyone used sqlbrite in production? any horror/success stories? Apr 24 06:46:44 actually, does anyone know how google builds the tzdata file ? Apr 24 06:46:46 g00s, adb screenrecord Apr 24 06:46:58 yeah found it in AS thanks Apr 24 06:47:11 cool it did a nice job ;) Apr 24 06:48:15 AnAnt, turned up this https://android.googlesource.com/platform/bionic/+/85aeb49144edc61797a2c60777d66f1c80e5e5e3/libc/tools/zoneinfo/update-tzdata.py Apr 24 06:48:32 masterjef: thanks Apr 24 07:01:22 hey, morning all, i have a question about git, i have two repos local server and bitbucket, and i have two computers. Apr 24 07:01:59 This morning i wanted to use other pc, and fetch from bitbucket, but it made me commit first and pull and again commit etc. Apr 24 07:02:59 im doing it wrong i guess bcs i did too many transactions, can somebody tell me how to use 2 computers and 2 remotes in a simple explanation ? Apr 24 07:12:39 pfnQ is it easy for windows users to play .mp4 ? Apr 24 07:12:56 on my mac, quicktime opened it up Apr 24 07:14:27 VLC Apr 24 07:14:33 Or quicktime on windows Apr 24 07:14:45 Or probably even windows media player Apr 24 07:17:49 i figure google would have chosen something that worked anywhere, hm seems you might have to install the media codec pack Apr 24 07:20:28 is google play services required for in-app billing? Its either not listed anywhere in the documentation or I need more coffee Apr 24 07:29:27 danijoo: Don't think so, billing is a separate library Apr 24 07:29:50 yes but I somehow thought its needed. Apr 24 07:30:11 I currently try to get rid of that google play services installed? check in an app Apr 24 07:30:19 and has to see how many features require it Apr 24 07:30:39 danijoo: Yeah, it would make sense but the docs don't mention it Apr 24 07:30:47 it looks like it communicates with the play store directly Apr 24 07:30:54 so you need that but not GPS Apr 24 07:31:06 yeah maybe thats it Apr 24 07:33:34 ok guys I some serious help..I have a LG optimus f60 LTE with unlimited LTE data. I can't seem to get a LTE connection and even with full bars and 4g I can't get internet more n then. ten mins. @ a time.. in called metro and they ran me threw 'reconfig of APN in mobile networks then found used 25gb of data they reset my data and it worked for a couple hours Apr 24 07:33:34 then back... also I did a recovery mode reset before calling them. Apr 24 07:34:29 wow epic kill Apr 24 07:34:59 ronkrt, wrong channel - see topic Apr 24 07:36:26 I can't hold s connection for more then n ten minute is n my only device no one's talking there Apr 24 07:36:55 ronkrt, you are in the wrong channel. this is android app development Apr 24 07:37:53 JakeWharton, is there a way to use something like @Optional on dagger injects? Apr 24 07:38:03 and devs know about Android and I need this fixed yesterday Apr 24 07:38:09 I have want to inject a dependancy only after a specific action has been performed Apr 24 07:38:22 So i need to plus onto the graph, then reinject Apr 24 07:38:59 Im getting compile time errors though, because the dependancy isnt in the first module, only the plus'd module :( Apr 24 07:39:00 ronkrt, good luck then. you wont get an answer here. Apr 24 07:39:17 ronkrt: dude, we aren't your carrier, nobody here gives two shits when you need it fixed Apr 24 07:40:59 Man.. why is there no page that lists what services requires google play services apk to be installed on client phone -_- Apr 24 07:54:21 Is there a way to get a unique user id after he does the google sign-in ? Trying to find an API but no avail. Apr 24 07:58:09 Is it possible to fire a refresh of a SwipeRefreshLayout programmatically? Apr 24 07:58:32 Papipo: yeah Apr 24 07:58:39 I can't find how Apr 24 07:58:55 WantToCode, what about the phones uuid? Apr 24 07:59:19 Well, I'm not sure if you can actually fire the event handler Apr 24 07:59:19 if you just want to identify the user, use his mail. that should be unique Apr 24 07:59:56 I just want to fire it on onAttachedToWindow, and I don't know how. I can set it to refreshing but not fire the event itself, apparently Apr 24 08:00:26 hey guys, i have knowledge of C programming. But im looking to make very basic app (like switches with on off functions). Is it is doable how can I proceed ? No proir exp with apps Apr 24 08:00:33 I usually just have my AsyncTask set isRefreshing to true if it hasn't been started by the SwipeRefreshLayout Apr 24 08:00:59 RoBo_V2: Android dev is typically Java, not C. You should be fine. Apr 24 08:01:05 RoBo_V2, learn java. When you are done, learn some more java Apr 24 08:01:13 and then android :) Apr 24 08:01:16 And yeah, learn some Java before jumping into Android. Apr 24 08:01:33 AS update failed.. asking me to: Please report to https://code.google.com/p/android/issues Apr 24 08:01:53 I see then I guess i should get someone to make it for me otherwise will take much time Apr 24 08:01:53 except that few tickets i previously reported are not even in triage.. Apr 24 08:02:09 RoBo_V2: That's probably a good idea :p Apr 24 08:03:04 danijoo, isn't there any token or something? Lets say that this user has one-to-many relationship with some other objects, I want relate those objects with this user via a token Apr 24 08:03:16 adq are you behind a vpn, proxy or sth? Apr 24 08:03:58 WantToCode, dunno. never tried to identify my users. I only tried to give some suggestions coming to my mind Apr 24 08:04:07 no danijoo Apr 24 08:04:15 not related to network anyway but thx Apr 24 08:04:34 danijoo, I have impleted the uuid, thought there would be a better way. Thanks! Apr 24 08:04:55 WantToCode, just keep in mind that uuid identifies phones, not users Apr 24 08:05:05 if someone gets a new phone, this information changes Apr 24 08:05:08 danijoo: yeah, that Apr 24 08:05:14 bang on! this is why I wanted token :P Apr 24 08:05:26 OmegaVesko: but that is just o display the progress animation, right? Apr 24 08:05:27 thats why I said use their mail address :p Apr 24 08:05:31 If you're using the uuid then your Google login is useless Apr 24 08:05:32 And with multi-users in lollipop... Apr 24 08:05:49 doesnt oauth gives some kind of token? Apr 24 08:05:52 i never used that too :) Apr 24 08:06:04 I am trying to find it. Apr 24 08:06:10 Implementing it for the first time Apr 24 08:06:19 Papipo: yeah, that's why I abstract the refresh logic into an asynctask and run that when I want to start a refresh manually Apr 24 08:07:34 is this normal? I am new to android development, but I really expected SwipeRefreshLayout to have something to force the refresh programmatically Apr 24 08:09:17 Papipo, i would expect that too.. mh Apr 24 08:11:10 Papipo, there is a private void startRefresh() in the class. If you really rely on that, you could exploit it. Apr 24 08:12:10 How can I do that? I am extending the class thus I can't call that method Apr 24 08:12:21 it's weird that the method is not protected Apr 24 08:13:00 you could use reflection Apr 24 08:13:10 but make sure to have some logic to catch errors Apr 24 08:16:02 Papipo, something like this should work:http://pastebin.com/9j8LnaR7 Apr 24 08:18:54 danijoo: did you say anything since my last sentence? My connection died Apr 24 08:19:24 ugh man Apr 24 08:19:34 I walked into a fucking companurial company Apr 24 08:19:39 I didn't know it was like this! Apr 24 08:19:53 the kind that sends an email about how much time exactly you are allowed to take a break!! Apr 24 08:20:26 http://www.nooooooooooooooo.com/ Apr 24 08:20:57 Papipo, this is reflection: http://pastebin.com/BvaspZ3W Apr 24 08:21:28 Thanks danijoo Apr 24 08:21:39 Actually, I will be just using the onRefresh() method of the listener Apr 24 08:21:43 But its pretty hacky. Apr 24 08:22:06 view.setRefreshing(true); Apr 24 08:22:06 controller.refresh(); Apr 24 08:22:12 two lines, not a big deal :P Apr 24 08:22:16 well. if it works. ok :) Apr 24 08:24:49 I'm in arch linux running Android Studio Apr 24 08:24:55 And it claims rendering problems, n android SDK found Apr 24 08:25:05 Despite me pointing it to /opt/android-sdk Apr 24 08:25:10 Which is where the files clearly are located Apr 24 08:25:19 I have attempted both running as root an duser Apr 24 08:25:21 *and user Apr 24 08:25:44 how are they located in opt? Apr 24 08:25:53 they were downloaded with the first run of AS? Apr 24 08:26:09 or sold separately? Apr 24 08:26:18 They were downloaded through Android SDK Manager, when I was still using Eclipse Apr 24 08:26:39 you chose to place them in opt Apr 24 08:26:45 ah, well I dont know why it wouldn't recognize it Apr 24 08:26:59 usually I'd place them in ~ Apr 24 08:27:05 under Software or something Apr 24 08:27:08 wheatthins, I too am on the same config. though I opted to install the sdk and AS outside of the package manager. I haven't found any rendering issues. Apr 24 08:27:10 I didn't have much of a choice, that was the SDK path chosen by sdk manager Apr 24 08:27:13 And it is greyed out Apr 24 08:27:26 I have an android-sdk folder in ~ as well for some reason Apr 24 08:28:34 wheatthins, did you use aur for this? Apr 24 08:28:41 avinashrbhat, yes Apr 24 08:28:56 as per instructions located at Apr 24 08:28:56 https://wiki.archlinux.org/index.php/Android Apr 24 08:29:08 lol, I advice is don't. Apr 24 08:29:39 For every single problem, #archlinux tends to point me to the wiki Apr 24 08:29:46 archlinux documentation is very very good Apr 24 08:29:48 best I've seen Apr 24 08:29:49 If they don't/can't solve it there Apr 24 08:29:54 danijoo: actually, it doesn't work. I had to wrap the call to setRefreshing in a Runnable :S Apr 24 08:29:56 install in your home directory. Apr 24 08:30:08 It is also located in my home dir, for some reason Apr 24 08:30:13 How do I change it to point there in android studio Apr 24 08:30:35 File > Project Structure Apr 24 08:30:44 SDK Location is the first element there Apr 24 08:30:56 wheatthins, copy the sdk and AS into your home directory and try running AS with the same sdk linked. Apr 24 08:31:43 wheatthins, also it seems like it's more of a configuration problem. have you checked this in the #archlinux channel? Apr 24 08:32:17 I've not Apr 24 08:32:25 I figured #android-dev would be the place to check Apr 24 08:34:28 ok, do put the stuff in your home directory and recheck. also move the folders ~/.AndroidStudio to somewhere else to emulate a fresh install. Apr 24 08:35:03 while launching AS will ask for the sdk folder, then you can point it to the sdk. Apr 24 08:35:12 wheatthins, ^ Apr 24 08:35:53 wheatthins, try to set ANDROID_HOME path Apr 24 08:36:15 export ANDROID_HOME=/your/installation/path and then restart AS Apr 24 08:36:20 How do I check to see if it's working with a hello world app I've just generated, for glass Apr 24 08:37:36 if it compiles, its working :p Apr 24 08:38:38 It appears to be...mostly working Apr 24 08:38:45 After pointing it to ~/android-sdks Apr 24 08:38:47 And doing the export command Apr 24 08:39:11 mostly? Apr 24 08:39:16 I say mostly because it's showing a phone rather than glass Apr 24 08:39:22 Although android studio supports glass Apr 24 08:39:28 And I have the glass sdk installed Apr 24 08:40:15 i dont know about glasses but i think they have a seperate setup step somewhere Apr 24 08:40:31 I opened one of Google's existing sample projects Apr 24 08:41:41 For the tab in xml docs that shows how it should roughly look on the device Apr 24 08:41:53 Does that window have a name? Is it toggleable through view? Apr 24 08:42:31 layout editor Apr 24 08:44:31 I have it displaying, though glass seems not to be an option even on api 19 Apr 24 08:47:02 the layout editor sucks :p Apr 24 08:48:57 Might I be having issues because I'm on openjdk? Apr 24 08:49:11 hi! Apr 24 08:50:19 Has anyone ever got this problem I'm trying to replace 2 fragments but the transaction is not executed immediatly (or never) Apr 24 08:50:56 ektos: yeah, I forgot to call commit() and that happened. Apr 24 08:52:32 I've got something like that, do I need to commit on my first replace too ? https://www.irccloud.com/pastebin/fSQFagqK Apr 24 08:53:48 Where is gradle located? Apr 24 08:53:57 The sample from google is using gradle 0.12 and instead I should be using 1.x Apr 24 08:54:14 *It's using 0.12.2 and the reccomended version is 1.1.0 Apr 24 08:56:13 its wrapped in your project Apr 24 08:56:22 there should be a gradle folder Apr 24 08:56:29 ektos: you need to begin() and commit() each transaction on its own. Apr 24 08:56:57 you can change the gradle version by editing gradle/wrapper/gradle-wrapper.properties and chaning the distributionUrl Apr 24 08:58:08 ektos: I am not sure if it is possible to queue transactions, like you are doing. Apr 24 08:58:56 ektos, what are you trying to archive? I mean whats the point in adding a fragment and replacing it with another one immediatly Apr 24 08:59:13 oh nvm. its different containers. Apr 24 08:59:16 danijoo, distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip Apr 24 08:59:22 danijoo: he thinks it is a queueing pattern, but it is a builder pattern. Apr 24 08:59:24 yes you need to commit every transaction on its own Apr 24 08:59:28 yep Apr 24 08:59:30 2.2.1 is far separate from 0.1 I don't understand Apr 24 09:00:05 wheatthins, I think you actually want to change the android gradle plugin version and not gradle version ;) Apr 24 09:00:21 danijoo, how do I go about doing such Apr 24 09:00:30 wheatthins, build.gradle file Apr 24 09:00:44 buildscript->dependencies->classpath 'com.android.tools.build:gradle:1.1.0' Apr 24 09:02:58 danijoo, Cause: org/codehaus/groovy/runtime/typehandling/ShortTypeHandling Apr 24 09:03:09 It got further along setup, but displayed the above Apr 24 09:03:47 danijoo: If you read carefully you'll see that I'm replacing 2 fragment holder (a header fragment, and a body) Apr 24 09:05:38 Unable to load class 'org.codehaus.groovy.runtime.typehandling.ShortTypeHandling'. Apr 24 09:05:39 Huh Apr 24 09:12:54 wheatthins, copy your build.gradle file Apr 24 09:13:04 and pastebin it Apr 24 09:14:44 hmmm, no getItem() RecyclerView.Adapter.... Apr 24 09:18:48 claint, recyclerview doesnt work like listview. with getItem() and getView() Apr 24 09:18:52 its a bit different Apr 24 09:19:26 the main work is done in onBindViewHolder() and onCreateViewHolder() Apr 24 09:22:42 danijoo: yeah, I added a listener on the whole view holder in onCreateViewHolder, I am guessing that will work. Apr 24 09:24:12 yeah, it works. Except I need to show the onClick animation somehow as well. Apr 24 09:25:50 hmmm, onBindViewHolder() might be the better place, since it has the position. Apr 24 09:29:47 set a tag on the view or sth Apr 24 09:29:54 then you can use view.getTag in onclicklistener Apr 24 09:30:08 Well, I'm able to push apps to glass by adb Apr 24 09:30:11 good enough I guess for now Apr 24 09:30:14 430am Apr 24 09:32:52 Hey. Is there a way to create an activity entirely programmatically? Apr 24 09:33:14 So, without even specifying it in the android manifest, but by just saying...create an activity and make it main. Apr 24 09:33:40 Tobbi, nope. it MUST be defined in manifest Apr 24 09:33:50 Alright. Apr 24 09:33:52 danijoo: so any ides ? Apr 24 09:34:01 ektos, for what? Apr 24 09:34:38 danijoo: The fragmentTransaction that replace 2 fragment and is not executed Apr 24 09:35:01 can you show the code again? :) Apr 24 09:36:45 https://www.irccloud.com/pastebin/X8EkKKjj Apr 24 09:37:14 danijoo: I've added a _supportFragmentManager.executePendingTransactions(); Apr 24 09:37:15 Apr 24 09:37:34 just pastebin your whole transaction code Apr 24 09:38:05 https://www.irccloud.com/pastebin/utCuEK2t Apr 24 09:45:23 you shoudnt need to call executependind transactions. they are executed right when commit is triggered Apr 24 09:45:34 also.. oh my god. _ in variable names.. :p Apr 24 09:54:10 javascript! Apr 24 09:54:43 oh "in", I thought you meant as a prefix :) Apr 24 09:54:49 can i cancel a sync adapter in onPerformSync method and behave like it never worked ? Apr 24 10:38:59 after a facebook login my mainactivity seems to be created twice... what can be the cause of that... I feel like i am missing something here Apr 24 10:45:21 ListView had some sort of horizontal dividers, right? How can I get some of those in an RecyclerView? Apr 24 10:47:01 I've seen some examples using a custom DividerItemDecorator Apr 24 10:47:09 but, seriously, how overkill is that Apr 24 10:48:36 i am loading videos and their bitmaps but app gets slow even i am doing it with Async task. how can i make it faster ? Apr 24 10:49:22 nvm Apr 24 10:54:43 Hello again! I have been trying to get a square camera preview for a few days now but no success. Here's the code I currently have, changing the scale of the textureview changes the aspect ratio of the image. I just want to crop the preview to show the bottom half of the image as a square. https://gist.github.com/anonymous/fb2f730c6243a0221c04 Apr 24 11:09:53 s9iper1, show how you do it. and "app gets slow" could mean anything. Does it give you ANR or "skipping frames" ? Apr 24 11:47:15 Hi all Apr 24 11:47:36 I'm looking for some advice on how to implement caching in my app Apr 24 11:48:57 I'm currently grabbing a list of data (Name, address, rating) from my website using JSON and displaying them in a ListView... Eventually I want to change to RecyclerView Apr 24 11:49:50 Not sure of the best way to cache the data in the list so it doesn't need to grab it every time the app is opened? When would be the best time to update the list as the rating field will change Apr 24 12:01:24 MattEmery, use cache headers Apr 24 12:01:38 wth https://www.google.co.uk/maps/@33.5155112,73.0632226,15z Apr 24 12:01:51 autrilla_, wtf Apr 24 12:08:40 danijoo, cache headers? Thanks, I'll look into it. Apr 24 12:14:14 if I sign an APK which requires system app permissions with the same keys that the Android binary was built, can I install it as I would any other apk? Apr 24 12:14:33 and still have the system level permissions granted? Apr 24 12:15:27 Now to try and figure out the best way to keep my app logged into my website... Apr 24 12:16:55 What is the best way to display a web image the way the gallery does (with zoom etc…) ? Apr 24 12:17:06 Android Is Peeing on an Apple in Pakistan - Google Maps: http://www.theguardian.com/technology/2015/apr/24/google-maps-hides-an-image-of-the-android-robot-pissing-on-apple Apr 24 12:17:29 I tried creating a File from a bitmap and lauching an ACTION_VIEW intent but it shows a black screen Apr 24 12:20:03 MattEmery, tokens Apr 24 12:20:30 its the same strategy you would use to keep your brower login Apr 24 12:20:42 send a token after login and let the app send it back with each request Apr 24 12:21:41 Brilliant, thank you. Apr 24 12:28:19 How long does it usually take for you guys to finish an app? Like from concept to release? Apr 24 12:30:32 depends Apr 24 12:31:19 Well i could ask shortest - avg - longest, but I feel it'd be too much of a hassle for anyone to reply to that Apr 24 12:31:47 i know that avg is also sort of tricky as its highly dependant on what you're working on Apr 24 12:32:11 id answer 20 minutes - few month - years if you ask that :p Apr 24 12:32:35 if the app is just an app that has a button to do something crazy simple, 5 minutes :P Apr 24 12:32:40 you've released an app in 20 mins? o.O Apr 24 12:33:12 Now i'm curious, what app has taken 20 mins to make ? Apr 24 12:33:12 jutsi, i called it hallo world Apr 24 12:33:25 danijoo but you released it on the google play? Apr 24 12:33:30 its a bit like hello world, but with an a Apr 24 12:33:50 thats not what you ask :p Apr 24 12:34:00 It is Apr 24 12:34:04 from concept to release, i asked Apr 24 12:34:31 well, release could mean anything Apr 24 12:34:35 there are other release strategies than google play Apr 24 12:34:47 i released it to everyone that writes me a mail with the secret key word Apr 24 12:34:54 I guess i was kind of ambigous on that Apr 24 12:34:55 oh and its 5$. Apr 24 12:35:05 :p Apr 24 12:35:12 in app purchases too? Apr 24 12:35:26 you should offer for 99c the upgrade that makes the h H Apr 24 12:35:38 i guess the "o" in hallo was dlc? Apr 24 12:35:55 yea, with the o it would be too big to fit into play store limits Apr 24 12:35:56 there are also 2 interstitial videos if you want to close it once it opens Apr 24 12:36:12 and ads! Apr 24 12:36:49 jutsi, honestly you cant answer that. my first app took more than a half year and im still adding stuff since 1 year Apr 24 12:37:05 i recently "finished" another one in about 2 month from concept to play store release Apr 24 12:37:14 No, but I was just asking because im an entrepenour and i just got hired to make an estimate of how much it would cost to make one app, and i estimated i'd need two months to complete it, which made me curious as to how long others take to finish apps Apr 24 12:37:43 it also really depends on how long you work a day Apr 24 12:37:51 I guess it also depends on what's the quality of the final app Apr 24 12:37:54 isn't 8 hours pretty standard? Apr 24 12:38:01 if you're ok with a few bugs, it can take less Apr 24 12:38:11 im just a student. if its in the middle of a semester, it takes my less time. When there are finals, I cant work at all Apr 24 12:38:27 Hi! I have a quiestion regarding the styling of buttons. The buttons i have looks fine but in android 5 a shadow border gets added to them. I have tried googleing on how to remove it but so far no luck. Anyon know how to remove the added borders in android 5? Apr 24 12:38:52 another important thing are graphics. If you need custom assets and have to do them on your own, it takes months. Apr 24 12:39:15 yes! Apr 24 12:39:21 i hate doing graphics Apr 24 12:39:28 i mean i get to charge more for it, but its so time consuming Apr 24 12:39:50 making ETA is really hard imo Apr 24 12:45:30 Please someone how do you disable the elevation of a button in android 5 Apr 24 12:45:55 set it to 0 ? Apr 24 12:46:36 I have tried. It doesnt work :/ Apr 24 12:46:56 Android 5 adds like a shadow to the bottom of my button and i want the button to be flat Apr 24 12:49:47 arkaros, did you set a custom selector as background? Apr 24 12:51:07 Not a selector but a drawable Apr 24 12:51:40 And the buttons looks fine in previous versions of android but in android 5 it just decides for some reason to add a border to the bottom Apr 24 12:52:05 what theme are you using as parent? Apr 24 12:52:17 can you show the button's xml + styles.xml? Apr 24 12:52:28 Yeah Apr 24 12:53:59 http://pastebin.com/RbSZPGch Apr 24 12:54:21 If my apk is signed with the platform keys, can it be installed on an unrooted phone and have all the system privileges? Apr 24 12:55:11 alesis, i think not Apr 24 12:55:29 system priveleged apps are installed to a different location Apr 24 12:55:31 alesis, depends on privileges in question Apr 24 12:55:36 (somewhere in /system i think) Apr 24 12:55:41 alesis, but for permissions that require signature, it will work yes Apr 24 12:55:47 danijoo, not really Apr 24 12:56:00 danijoo, play services are installed on /data as well, otherwise you can't update them Apr 24 12:56:17 even though, base APKs are on /system indeed Apr 24 12:56:59 yeah im not that much into that. All I know is that you have to flash something into /system to install gapps :p Apr 24 12:57:44 http://nelenkov.blogspot.co.uk/2013/05/code-signing-in-androids-security-model.html Apr 24 12:57:54 look for "platform keys" Apr 24 12:58:32 is there a tl;tr version? Apr 24 12:59:13 thanks guys Apr 24 13:00:09 arkaros, and your base theme? Apr 24 13:00:16 Theme.AppCompat? Apr 24 13:01:08 how do i change the emulator veriso to 4.1? Apr 24 13:01:22 The base for the entire app is Theme.AppCompat.Light.NoActionBar Apr 24 13:01:38 alesis, basically the permission name is SIGNATURE_OR_SYSTEM Apr 24 13:01:48 that means that either you share the signature or you're installed as part of the image Apr 24 13:01:56 fruitsNveggies, you have to create a new emulator Apr 24 13:01:58 of course, each image is usually signed with a different key Apr 24 13:02:45 danijoo, how? Apr 24 13:03:16 the same way you created your first one :p Apr 24 13:05:45 arkaros, your button style has no parent. i dont know if thats the problem but im not doing something special with my buttons and dont have that shadow Apr 24 13:05:56 what im doing is