**** BEGIN LOGGING AT Sun Nov 22 02:59:59 2015 Nov 22 03:05:18 I hate how LayoutInflater.inflate returns the root view if (and only if) `root` is non-null and `attachToRoot` is true. Always trips me up. Nov 22 03:09:29 The documentation for LayoutInflater.cloneInContext: "Returns a brand spanking new LayoutInflater object associated with the given Context." Wat. Nov 22 03:25:55 Are there any recommended system requirements for developing Android apps on a Linux(Ubuntu) computer? Nov 22 03:27:43 Hmm, not sure. For any system, I'd be tempted to say "at least 8GB RAM". Nov 22 03:29:54 I'm running on 4GB (on Windows 7), but the next laptop I get will have at least 12GB. Nov 22 03:32:13 So processor speed, 1.6 - 1.9 GHz, 2 - 2.9 GHz 3GHz would be fine? Nov 22 03:34:30 I mean, would an i3 processor be fine? **** BEGIN LOGGING AT Sun Nov 22 03:37:53 2015 **** BEGIN LOGGING AT Sun Nov 22 03:50:51 2015 Nov 22 04:04:38 You will have a hard time running Android Studio + emulator at the same time without it being slow as hell Nov 22 04:04:56 You should aim for a quad core if you have the budget Nov 22 04:20:08 the android and ios dev chatrooms are dead Nov 22 04:20:21 compared to chatrooms like linux and javascript Nov 22 04:28:55 Imagine if "in the box" was a better emulator or simulator. Nov 22 04:29:05 I highly doubt it, but that'd be cool. Nov 22 04:29:23 b4b: How many people are in those channels? Nov 22 04:30:50 alot more surprisingly Nov 22 04:30:58 you’re like the only active dude Nov 22 04:55:10 Is there a guideline for what color a MenuItem drawable should be for material design? Not sure what color I should use for icons in the overflow or in a PopupMenu. Nov 22 05:03:02 did the channel go down earlier for anyone else..? Nov 22 05:05:28 There was a netsplit. Nov 22 05:06:30 CedricBeust have you been having problems with SourceTree 2.0.5.6 crashing a few minutes after starting up ? Nov 22 05:07:37 Whoa, there's gonna be a new Prison Break series in 2016. Nov 22 05:08:20 TacticalJoke: everything even vaguely old is new again Nov 22 05:09:03 Leeds yeah, i just installed vim again :D Nov 22 05:09:14 not neovim? Nov 22 05:09:20 Oh no, g00s. Nov 22 05:09:26 :D Nov 22 05:09:43 lol, i have vim, emacs, ST, Atom, and VS Code ... Nov 22 05:09:48 i got rid of ST Nov 22 05:10:35 apparently somebody started doing mac builds of cim again, after a period of abandonment Nov 22 05:10:42 s/cim/vim Nov 22 05:10:44 Part of the reason I left vim was that I couldn't use it in Borland Delphi, I think. If I had started using it today, I might've never left. Nov 22 05:11:03 oh its still a piece of crap. i just use it to edit config files Nov 22 05:12:18 i gave up on it for a while when i built it from sources, and the end result was often garbage in the text area, like the screen buffer was corrupted Nov 22 05:12:23 but hey, wors on amiga 2000 Nov 22 05:12:50 I've always hated building stuff from sources. So many ways to go wrong. Nov 22 05:13:32 ST is expensive for the momentum it has Nov 22 05:13:39 i think Atom will nuke it Nov 22 05:15:56 Leeds what do you think of neovim ? Nov 22 05:16:05 g00s: I don't Nov 22 05:16:14 kudos to those guys for ripping out all the kruft and crap though Nov 22 05:16:40 i think it will wind up like xemacs Nov 22 05:38:51 TacticalJoke i think some projects just design themselves into a corner, and then accumulate so much baggage they can't do anything interesting any more. vim and emacs are like that Nov 22 05:41:38 hm, google analytics is the 2nd app i see now that has nav drawer but only 'settings' is in there Nov 22 05:45:09 c'mon gradle... api23... you can do it Nov 22 05:52:50 anyone read that new google ebook on Play 'The Secrets to App Success on Google Play" ? Nov 22 05:56:35 dragorn gonna be a warm nov & december apparently Nov 22 05:58:21 g00s, no complaints here Nov 22 06:01:23 saves me money on firewood and heating oil, i'm happy w/ that Nov 22 06:01:40 dragorn firewood ? O.o Nov 22 06:02:02 for emergencies or regular use ? Nov 22 06:02:17 regular use, got a wood stove as well as oil heat Nov 22 06:02:35 offsets it nicely. i took down a dozen or so trees a few years ago when we were doing our garden so I'm getting them split and burned Nov 22 06:02:44 built a nice little raised woodshed last year, makes things easy Nov 22 06:03:01 nice Nov 22 06:03:13 dragorn able to keep all the critters out of the garden ? Nov 22 06:04:13 yeah, tho I need to get an auger or hire someone w/ a bobcat and a drilling rig to put in proper poles Nov 22 06:04:28 I ended up taking an impact drill up there and drilling into the shale to put in metal poles... it's pretty shitty Nov 22 06:05:28 i used a gas powered auger once; needed 2 people to hold it ... i think we lost grip and it spun around by itself :D Nov 22 06:05:42 yeah I've used one of those, they're fun Nov 22 06:05:46 but not so good at rocks Nov 22 06:06:44 whoo finally got permissions requesting working Nov 22 06:06:52 dragorn here you go http://www.directindustry.com/prod/rabaud/product-41260-1319069.html Nov 22 06:06:55 i say finally. a whole lot of not actually working on it Nov 22 06:07:02 for excavator :D Nov 22 06:07:05 nice Nov 22 06:07:07 heh Nov 22 06:07:11 if I won the lottery Nov 22 06:07:22 I'd buy a small excavator Nov 22 06:07:53 I can't seem to use ic_action_content_new as src for my FAB Nov 22 06:08:05 do I need to get this icon from somewhere? Nov 22 06:08:15 err Nov 22 06:08:19 probably Nov 22 06:08:43 dang couldn't they just include a big plus somehow by default Nov 22 06:08:49 they gave me all this other stuff Nov 22 06:08:56 email icons Nov 22 06:09:04 File > New > Vector Asset. Nov 22 06:10:40 yeah I don't think i saw it in the stock resources Nov 22 06:16:19 got it, thanks Nov 22 06:24:37 What's a good way to implement a timer UI? I mean a relative time picker Nov 22 06:27:31 as in 4 hours from now, not 4 AM Nov 22 06:54:31 get it from the material icons Nov 22 06:56:55 all the platform icons are ugly noe Nov 22 06:56:57 now Nov 22 08:31:31 Hi all. If I have data file and I want to edit something that already exists inside of it, how would I go about that? So far all I see is that I can overwrite the file entirely or just append to the end of it, but not modify specific things and leave other parts of the file alone Nov 22 09:05:41 Hello.. heloo .. hellooo ... is there anybody out there .... ? Nov 22 09:23:13 Hi, Adater with recyclerview. i have an image. If url_image is no empty loadimage with Picasso. when url image is empty i don't load image... but i have a strange bug. sometime in item without image a i see an image loaded Nov 22 09:23:32 a random image Nov 22 09:42:40 Views are reused, you need to always set an image Nov 22 09:57:53 any reasons why online gradle build taking a very long time? A local gradle distribution has been set so its not downloading a new one, not sure what its doing.. Nov 22 10:25:53 You can build with --info to see what it's doing different, but there shouldn't be any difference when all dependencies are available offline Nov 22 10:33:39 Sorry, a complete beginner at this. I am wondering if android-developer (linux) can run in a pure 64-bit environment, or if there is some way to get/make a version that can. Nov 22 10:40:46 Should be instructions for running 64 bit on http://developer.android.com/sdk/installing/index.html?pkg=tools Nov 22 11:16:55 is it possible to monitor data consumption by an API within app Nov 22 11:16:56 ? Nov 22 11:17:33 I dont want the whole application consumption Nov 22 11:17:49 i just want the data bytes consumed by an api on button click Nov 22 11:41:38 android annotation folks: can @InstanceState work on List, not ArrayList? Nov 22 11:42:02 it complains it shoul be primitive or Serializable or Parcelable on List, but ArrayList works fine :s Nov 22 11:43:56 Ashiren, that's because ArrayList can be stored in a Bundle and generic List can't. Nov 22 11:44:15 @InstanceState is just syntactic sugar for manually storing stuff to Bundle and won't magically support datatypes that can't be stored there :) Nov 22 11:45:41 ah Nov 22 11:47:39 well, aa doesnt suck after all Nov 22 11:47:53 Hey everyone! I'm trying to make my app location-aware using a service, but I'm having some trouble with it. Fine location access is fairly important, but it's vital that I always have some location available. Any reading suggestions? So far I've set up a service with a binder and nonsticky binding, but it starts in such a way that it isn't created before the app attemps to access the location, gets a null and promptly crashes Nov 22 11:48:49 hrmf. Nov 22 11:49:02 Jargon_, why not ask FusedLocationProvider for last location? Nov 22 11:49:26 Also you must handle the case where you have no location. Nov 22 11:49:38 Thinking that you'll have valid location at all times is a huge misconception. Nov 22 11:50:38 What's the FusedLocationProvider? Nov 22 11:51:24 Ah, bugger, something came up - I'll come back later :P Thanks for the help so far, I'll be back Nov 22 12:57:51 hi anyone around working with ffmpeg in their android app? Nov 22 13:01:14 canvs2321, ad yesterdays setMultiChoiceModeListener(), CAB why do you thing theme coloring is not the right thing? http://stackoverflow.com/questions/19038322/change-color-of-androidactivatedbackgroundindicator Nov 22 13:09:19 is it possible to monitor data consumption by an API within app Nov 22 13:09:20 ? Nov 22 13:10:00 Hi Nov 22 13:10:22 Do I need to create a custom adapter for putting 2 items in each row in a list view? Nov 22 13:10:51 anyone with new AS 1.5? Nov 22 13:10:59 I have crated a list view with one element per row. But I am not able to understand how to put 2 elements row wise in every row. Nov 22 13:11:09 any pos/neg experiences? Nov 22 13:11:19 rudolf_, I'd suggest you switch to recyclerview and use the grid layout manager. Nov 22 13:11:30 bolovanos, works well, has some neat new features. Nov 22 13:11:54 Mavrik, is there some problem with listviews? Nov 22 13:13:18 No problem. Nov 22 13:13:24 They just don't do what you want. Nov 22 13:13:38 rudolf_, I do not think that there is problem with listView - its just the way the thing you need is being done Nov 22 13:13:40 ListView is built to show a list of items. Nov 22 13:13:47 Mavrik, cannot find release notes Nov 22 13:13:57 "We've released Android Studio 1.5 to the canary and beta channels. If all..." Nov 22 13:14:19 Mavrik, I want a simple list only but with two rows in each row of listview. Nov 22 13:14:24 Should I not use it? Nov 22 13:15:02 rudolf_, http://stackoverflow.com/questions/15832335/android-custom-row-item-for-listview Nov 22 13:15:53 did not checked the code, but in ff mode - it is the way you should go Nov 22 13:17:00 Mavrik, probably I will wait a little bit http://tools.android.com/knownissues Nov 22 13:17:05 bolovanos, all right. This is what I want :) Will try it. Nov 22 13:17:25 bolovanos, that page is horribly obsolete :) Nov 22 13:17:30 But you can wait if everything works for you. Nov 22 13:18:26 Mavrik, I was wondering if this version is the one with for example svg support... mentioned few months ago Nov 22 13:19:32 and yes it is working, but this would be helpful :) - so I would be hesitating a little bit if it is integrated in it Nov 22 13:19:46 IIRC the vector support is in 1.5 yes. Nov 22 13:19:52 You also have to update the Gradle plugin to 1.5.0 IIRC. Nov 22 13:20:13 We use AS 1.5 / Gradle 2.9 / Gradle plugin 1.5.0 and there haven't been any issues really. Nov 22 13:21:01 how about update - did it preserved everything from previous version? Nov 22 13:23:37 btw - is there less obsolete web for Android devel tools, than tools.android.com/tech-docs/new-build-system/version-compatibility ? Nov 22 13:54:05 hey to all anyone can help a bit with why i cant press the volume up button when in fastboot? Nov 22 13:54:18 Daimwn: and it's off-topic here Nov 22 13:55:13 well its dev thats why i try but anyway :) Nov 22 13:55:31 it's not app-dev Nov 22 13:57:04 I was updating my gradle manualy, but it is done on rare occasion (in my case once). I forgot how I have done that - is there straight forward guide how to upgrade Gradle, gradle plugin in AS? Nov 22 13:57:06 found http://stackoverflow.com/questions/26254526/manually-install-gradle-and-use-it-in-android-studio Nov 22 13:57:40 Question - how do you upgrade Gradle, Gradle plugin in AS? Nov 22 14:00:58 bolovanos, you just update versions in gradle wrapper properties and build.gradle. Nov 22 14:01:39 hey ! i created a folder on my moto X phone and my app writes files to that folder... somehow when i connect it to my computer the folder pretends to be empty! what am i doing wrong? ^^ Nov 22 14:06:52 bolovanos, in the link which you gave, he has fixed the text of the first textview. I want both the text views non static. Nov 22 14:11:48 Mavrik, thank you Nov 22 14:15:04 rudolf_, those are keywords you should be after https://www.google.cz/search?q=recyclerview+arrayadapter&oq=recyclerview+arrayAsm=93&ie=UTF-8#safe=off&q=android+listview+recyclerview+arrayadapter Nov 22 14:15:43 find the solution which suits you Nov 22 14:15:57 Ok...I will read them. Thanks Nov 22 14:24:10 grees, you need to call mediascanner after write if you want the MTP service to update the file listing Nov 22 14:29:37 Mavrik: allright i'll try that! Nov 22 14:31:11 how do you bookmark in AS? Nov 22 14:31:49 nvm, F11 Nov 22 14:42:54 Mavrik: if i want to call the mediascanner from a normal java class , i just pass from my activity "this" as the context object to that class and call context.sendBroadcast right? Nov 22 14:47:45 Mavrik: okay that works, the files no appear on my computer, but not on the phone! Nov 22 14:48:29 Mavrik: currently I wirte to the Download folder, but on the phone that folder is empty Nov 22 14:50:04 Mavrik: sorry i wanted to say "the files now appear on the computer" not "no" ^^ Nov 22 14:55:01 doh... i think they don't show because they are not really "downloaded" Nov 22 15:44:29 hi guys, I am a newbie to android development and currently developing IME. I need to get ridoff the cancel button at the end of popupkeyboard, plz tell me how can I do that. Nov 22 15:48:55 hi Nov 22 15:49:04 does this thread stop after i send it an exception? Nov 22 15:49:05 public void run() { Nov 22 15:49:05 try{ AutoSolve();} Nov 22 15:49:05 catch (RuntimeException e){} Nov 22 15:49:05 Log.d("thread","stopped"); Nov 22 15:49:05 } Nov 22 15:53:12 that really really depends Nov 22 15:54:05 on what? Nov 22 16:03:38 anybody? Nov 22 16:03:56 how do i stop this thread Nov 22 16:03:57 public void run() { Nov 22 16:03:57 try{ AutoSolve();} Nov 22 16:03:57 catch (RuntimeException e){} Nov 22 16:03:57 Log.d("thread","stopped"); Nov 22 16:03:57 } Nov 22 16:04:06 sending it the exception doesent stop it. Nov 22 16:04:27 stop posting all those lines in the room, use a pastebin site Nov 22 16:06:19 and without seeing your AutoSolve code, just exit that method and the thread will complete. Nov 22 16:06:27 read jcip Nov 22 16:06:38 return afterward Nov 22 16:10:12 Bullet_93: you can get InterruptedException (or several related exceptions), anything that AutoSave throws or nothing if AutoSave() is doing time in kernel Nov 22 16:10:27 my autosolve is a recursive function that solves a maze Nov 22 16:10:38 my autosolve is a recursive function that solves a maze Nov 22 16:11:24 use a flag, then Nov 22 16:12:19 ..also i charge $5 worth of nuts per pm Nov 22 16:12:47 15$ worth of nuts by far xD Nov 22 16:16:45 I have a image view in xml, the image src is "@dawable/image1" now in my activity, when i click a button, i can change the ImageView to image2 with no problems Nov 22 16:16:52 However, if i dont know which image is currently in the view, how can i know if that image is image1 or image2? Nov 22 16:16:59 If its image1, then i want to setImageResource to image2, and when its image2, i want to setImageResource to image1 Nov 22 16:17:33 Anyone here use ffmpeg in their android project? Nov 22 16:35:46 ok i found it, i can use the Tag attibute to know which image is there Nov 22 16:37:15 @SimonVT The instructions on that page just say "If you are running a 64-bit distribution on your development machine, you need to install additional (32-bit) packages first" (which is what I am trying to avoid :) ). Nov 22 16:42:55 if i have an existing layout comprising several elements, what would i need to wrap that in to have a support.design.widget.FloatingActionButton float at the bottom correctly? Nov 22 16:44:46 curmudgeon: You're out of luck then :) Nov 22 16:44:54 arussellsaw: A FrameLayout Nov 22 16:46:28 i ended up using an android.support.design.CoordinatorLayout Nov 22 16:51:29 you use coordinatorlayout if you want it to react to changes in other widgets Nov 22 16:51:39 frame layout if you want it to only float Nov 22 16:52:44 mm Refactor on xml name does not change R.layout.xml_name in code Nov 22 16:53:56 no sry - it does :) Nov 22 17:06:35 What's a good way to implement a timer UI? I mean a relative time picker, as in 4 hours from now, not 4 AM Nov 22 17:06:56 Do I have to make it from scratch? Nov 22 17:07:31 SimonVT, I just don't understand the requirement for 32-bit capabilities. If I recall, they pretty much stopped making 32-bit desktop processors about ten years ago, and it seems that even the vast majority of new android devices are 64-bit now. Nov 22 17:15:10 hi guys, I am a newbie to android development and currently developing IME. I need to get ridoff the cancel button at the end of popupkeyboard, plz tell me how can I do that. Nov 22 17:33:06 Hi guys, i need some help. I want to change the position of one item inside a RecyclerView,e.g. send a item in a arbitrary position to the bottom of the recyclerview. I didn't find anything like this googling and that's why I am here asking. Any ideas? Nov 22 17:34:19 Is there any recyclerview method like this: Recyclerview.changeItemPosition(item,position) ? Nov 22 17:34:28 or into its adapter. Nov 22 17:37:29 Change your dataset and Adapter#notifyItemMoved Nov 22 17:38:32 thanks for the heads up, SimonVT . Got any example on hand? Just to make sure I follow. Nov 22 17:39:00 No example Nov 22 17:39:13 :( Nov 22 17:39:21 But reorder your List and call that method with the initial position and the new position Nov 22 17:39:55 seems straigh forward enought. Gonna try it now Nov 22 17:40:05 Thank you, btw. Nov 22 18:10:37 curmudgeon, has nothing to do with that at all, but simply building it as 32 bit Nov 22 18:10:55 because it's something of a pain to make sure everything works properly in 64bit Nov 22 18:12:35 pfn, you worked with ffmpeg on android anytime? Nov 22 18:13:27 no Nov 22 18:13:44 read docs, build. as directed, link into app Nov 22 18:13:49 pretty much done Nov 22 18:14:24 pfn manning just published a book on sbt Nov 22 18:14:34 did they finally Nov 22 18:14:49 "for beginners and experts" Nov 22 18:16:02 I dunno. about for experts, all the topics I want to deal with would never be covered in such a biij Nov 22 18:19:46 i'm trying to show a basing alert dialog on button click but nothing is showing http://pastebin.com/yZwhZDuP debugging goes through with no issue Nov 22 18:41:28 Did you set an onClick listener on the button and then pop that dialog method in your buttons onClick method? Nov 22 18:43:35 Hello, I'm looking for a sample code that uses both Camera and Camera2 API to support old and new devices.... any idea if something like that exists? Nov 22 18:48:58 or even a proper tutorial for camera2? seems to be highly undocumented Nov 22 19:05:24 jellybee: in the samples directory there are Camera2 apps Nov 22 19:06:22 samples/media/Camera2Basic, samples/media/Camera2Raw etc. Nov 22 19:06:54 Download the latest API samples if you don't have them with the SDK download manager Nov 22 19:12:34 Ologn: maybe it's me but those sample are hard to figure out Nov 22 19:19:07 jellybee: sometimes they have a general sample library type library/directory they keep referring to for almost all of the samples, and that can be confusing Nov 22 19:22:28 how can I change CAB menu - when Activity's invalidateOptionsMenu() http://developer.android.com/guide/topics/ui/menus.html#ChangingTheMenu is not available Nov 22 19:22:54 I am using AbsListView.MultiChoiceModeListener Nov 22 19:22:57 http://developer.android.com/reference/android/widget/AbsListView.MultiChoiceModeListener.html#onItemCheckedStateChanged(android.view.ActionMode, int, long, boolean) Nov 22 19:23:13 bolovanos, why is invalidateOptionsMenu() not available? Nov 22 19:24:47 bolovanos, because it is not implemented in AbsListView.MultiChoiceModeListener widget... Nov 22 19:27:32 You have an ActionMode with a Menu you can add and remove items from Nov 22 19:27:51 daniele_athome, I have implemented this http://developer.android.com/guide/topics/ui/menus.html#CAB Nov 22 19:29:01 SimonVT, I need to call something, invalidates menu like in Activity and calls onCreateActionMode(ActionMode actionMode, Menu menu), where I am about to handle hiding, showing menu items Nov 22 19:29:09 uppon number of selected list items Nov 22 19:29:38 No, you just need to add and remove items from the Menu Nov 22 19:29:39 or maybe there is better way to do it Nov 22 19:29:53 invalidateOptionsMenu() just removes all items from a Menu and calls a method to have you populate it again Nov 22 19:31:49 SimonVT, ok - how can I add/remove (set visibility) of menu items in CAB menu? Nov 22 19:32:14 upon user interaction with list items? Nov 22 19:32:42 which means from onItemCheckedStateChanged(ActionMode actionMode, int position, long id, Nov 22 19:32:43 boolean checked) method Nov 22 19:32:44 Menu has methods for removing all items, or single items Nov 22 19:33:14 I assume you already know how to add items Nov 22 19:33:19 of course Nov 22 19:34:01 I know how to populate menu from within onCreateActionMode(ActionMode actionMode, Menu menu) - but i need to do it from I have mentioned Nov 22 19:34:22 from method onItemCheckedStateChanged(..) I have mentioned Nov 22 19:34:50 That method passes you an ActionMode Nov 22 19:34:56 ActionMode has a getMenu method Nov 22 19:35:34 thank you! Nov 22 19:35:39 Does the android sdk come with a few fonts we can use by default? Nov 22 19:35:43 Or just the default Nov 22 19:37:33 drose379, it comes with some fonts Nov 22 19:37:45 but theres no guarantee they arent changed (hello samsung) Nov 22 19:38:05 Where can I choose what fonts I use? The styles.xml? Nov 22 19:38:31 google iot Nov 22 19:38:35 -o Nov 22 19:38:46 Ok Nov 22 19:47:47 SimonVT, removing is ok, but it seems to me that it does not have inverse method http://developer.android.com/reference/android/view/Menu.html Nov 22 19:48:14 inverse? Nov 22 19:48:15 SimonVT, isn't it that problem which must be overcome with setting visibility to group of menu Items? Nov 22 19:49:46 pfn, is there a way to override settings picked up by gradle sbt plugin in huild.sbt? I have Proguard enabled for all buildtypes in gradle because of dex limit but I dont want them to run when protifying Nov 22 19:50:00 useProguard in Android := false Nov 22 19:50:01 didnt help Nov 22 19:50:05 you can remove specified Items with remove(), but there is no add function which would be able to return removed menu Items Nov 22 19:50:15 i set them to false in gradle-generated for now Nov 22 19:50:53 The first 4 methods are called add Nov 22 19:57:44 How can I add Material Design's ripple effect to my RecyclerView items? Nov 22 19:58:44 in the selector Nov 22 19:59:28 and set it as forground Nov 22 20:16:19 danijoo, useProguardInDebug := false Nov 22 20:16:30 thx Nov 22 20:18:33 So for a class that I want a shared instance of throughout the application, using a singleton is a good idea, yeah? Nov 22 20:18:37 SimonVT, of course they are called add - have you used them before? Nov 22 20:19:36 removeItem takes "int id", http://developer.android.com/reference/android/view/Menu.html#removeItem(int) Nov 22 20:20:06 unlikne all of add methods http://developer.android.com/reference/android/view/Menu.html#add(int) Nov 22 20:21:23 none of them takes single int id parameter Nov 22 20:21:32 bolovanos, im late to the party, whats your prob> Nov 22 20:22:54 danijoo, removing/adding (setting visibility) of menu Items in CAB - for more pls up - I do not want to spam it here with same text... Nov 22 20:29:29 hmm got it Nov 22 20:29:30 http://stackoverflow.com/questions/17635499/hide-items-in-context-action-bar-cab-dynamically-when-multiple-items-are-selec Nov 22 20:32:44 Hey. Is possible to start an application through a bash script? Nov 22 20:33:30 over adb? yes Nov 22 20:33:43 you mean start from bash through adb, or in androids "bash" it self? Nov 22 20:33:43 :) Nov 22 20:34:04 bolovanos: preferrably local root shell. Nov 22 20:34:18 SSH connection to android-x86 VM, specifically. Nov 22 20:35:03 stmbgr, run 'am start -n packagename/package.and.activity' Nov 22 20:35:28 danijoo_: yeah, where to get the activity name? Nov 22 20:35:39 manifest Nov 22 20:36:02 also, if its your app, you should know it :p Nov 22 20:36:09 if its not, you are at the wrong place :p Nov 22 20:37:39 danijoo_: how come wanting to launch an app through on my own "device" using bash was hacking? Nov 22 20:38:07 who said thats hacking? Nov 22 20:38:12 danijoo_: wrong place? Nov 22 20:38:22 maybe package name would be sufficient Nov 22 20:38:27 stackoverflow.com/questions/4567904/how-to-start-an-application-using-android-adb-tools Nov 22 20:38:44 stmbgr, wrong place because this is "app developing channel" Nov 22 20:39:24 Well, bash scripting is "development" to me. Nov 22 20:39:55 app development as in develop your own android app ;) Nov 22 20:40:02 but I already gave you an answer :) Nov 22 20:40:19 ist am -start -n packagename/activity Nov 22 20:40:30 bolovanos: That monkey thing is what I needed. Thanks. Nov 22 20:40:36 maybe you can ommit activity if its the only entry point, no idea Nov 22 20:41:58 np Nov 22 20:46:14 hi Nov 22 20:46:27 tried to import my eclipse android project to android studio Nov 22 20:47:15 the eclipse project structure is barely compatible with gradle Nov 22 20:47:16 well, this was working but if I restart android studio I get this message Error:Protocol family unavailable Nov 22 20:49:21 I want to create a View that has two states, and some simple graphics: two triangles, one above the other. the state of the View dictates which direction the triangles would point to. I wouldn't want to use ViewSwitcher, or a ViewGroup instead of View. what other options do I have? Nov 22 20:50:58 perhaps it can be thought of as a ToggleButton. Nov 22 20:51:39 you could use a selector drawable Nov 22 20:51:57 with different images depending if the sate is switched on or off Nov 22 20:52:02 right! :) Nov 22 20:52:22 :> Nov 22 20:52:23 rather simple and lightweight. thanks Nov 22 20:52:30 yw Nov 22 20:55:01 I get a warning that I'm leaking an IntentReceiver Nov 22 20:56:55 danijoo_ is there a log file where the error is written in detail? Nov 22 20:57:18 I'm not sure about this. Nov 22 20:57:56 I only want to unregister after the alarm gets triggered... Nov 22 20:57:58 ChampS_, i guess so. but dont ask me where.. Nov 22 20:59:00 danijoo_ where? Nov 22 20:59:01 :p Nov 22 21:01:15 danijoo_, or.. http://stackoverflow.com/a/25526227 :D Nov 22 21:01:47 if this is enough for you :) Nov 22 21:02:35 I don't think this is the best solution, just thought it's funny :) there's a better one in the same thread Nov 22 21:09:06 Where do I report Play Store bugs? It's not part of AOSP, so can't use that tracker, can I? Nov 22 21:14:54 Is anyone present atm? Nov 22 21:17:38 * squirrel hides Nov 22 21:19:20 * yawkat is past and future Nov 22 21:20:11 https://goo.gl/E0diLY Nov 22 21:22:38 pretty much danijoo :( Nov 22 21:23:11 you should just ask your question if you expect anyone to answer ;0 Nov 22 21:23:17 Most people wait for something to happen (e.g., a question) and then respond. Nov 22 21:24:33 lets say you have an app, and user goes from Activity A -> B. Then app is swiped away. How come the app starts at A again, instead of B ? Nov 22 21:24:53 hey g00s Nov 22 21:24:59 hey perlsyntax Nov 22 21:25:15 g00s: I think because the swipe is seen as "kill the process and forget all state". Nov 22 21:25:23 Or at least "refresh everything". Nov 22 21:25:34 so its not just kill -9, its also kill task stack Nov 22 21:25:53 or maybe its just kill task stack if foreground service is going Nov 22 21:25:59 sounds like that's desired behavior Nov 22 21:26:06 means forget this task Nov 22 21:26:20 don't try to over think it Nov 22 21:26:25 it's a natural mnemonic Nov 22 21:27:02 g00s, the kill -9 implies that there's no state saving going on. Nov 22 21:27:21 i'd like to cleanly disconnect from BT devices Nov 22 21:27:30 sometimes they don't want to reconnect again Nov 22 21:27:40 unless i power cycle phone, device, or both Nov 22 21:28:38 its such a pain to edit layouts in AS.. Nov 22 21:28:48 pfn Mavrik thanks Nov 22 21:30:25 danijoo_, editing isn't, previewing or knowing wtf it looks like is Nov 22 21:30:40 pfn, yes Nov 22 21:31:09 changing merge tag to framelayout -> editing -> change back to merge Nov 22 21:32:02 im needing to store two sets of data for my application. a dynamic number of bags which the user can create/destroy where each bag has it's own set of complex items. i can envision doing the items as a database where each element of the item is a different column and each item is on a different row. but this would mean that each bag is a seperate database and something tells me this is not a smart way to go about this Nov 22 21:32:23 danijoo_, simple answer is to never use the preview :p Nov 22 21:33:11 someone suggested realm but outside of the docs there arent many tutorials or helpful things. I learn a lot better visually or interactively than i do with just reading :\ Nov 22 21:33:24 does anyone know of any good resources? Nov 22 21:36:54 Akayllin, you can do that with mysql Nov 22 21:37:10 android uses sqllite Nov 22 21:37:20 one table for bags, one table for items Nov 22 21:37:30 Akayllin, I meant sqlite :) Nov 22 21:38:04 new to databases. you can do different tables per single db? Nov 22 21:38:42 yes.. Nov 22 21:38:50 thats basically what i meant. like each backpack would be a different table but i was thinking that a db was just one table Nov 22 21:38:59 hmm okay. back to reading :( Nov 22 21:39:14 ie you have a row in your bag database. that row has an id Nov 22 21:39:46 in your items table each row has a field called bag_id Nov 22 21:40:11 if you want to get all items from a bag, you just receive all items where bag_id == idOfBag Nov 22 21:51:12 sweet thanks for the advice ^_^ Nov 22 21:51:27 pfn http://digg.com/video/brightest-flashlight-led-video Nov 22 21:52:02 I guess there is no limit as to how many Paths you can draw in a Canvas? my programmatical drawing experience can be counted in hours.. Nov 22 21:52:17 dragorn light bar for truck ^^^ Nov 22 21:54:24 danijoo_: I think tools:showIn works on merge tags Nov 22 21:56:45 SimonVT, thanks. didnt know about showIn Nov 22 21:57:16 seems to work :) Nov 22 21:58:41 There's a few more tools attributes that makes your life easier when designing layouts Nov 22 21:59:11 yeah im just going through the list right now Nov 22 21:59:20 but I knew most of them, just not showIn Nov 22 22:00:25 unfortunatly showIn doesnt help if you use merge because you want to inflate the layout into a custom viewgroup :( Nov 22 22:02:03 Do you guys use singletons at all when necessary? Nov 22 22:02:39 static classes ♥ Nov 22 22:02:55 ??^ Nov 22 22:02:56 By "singleton", do you mean "static field that's assigned only once" or "the traditional singleton design pattern"? I use the former where suitable. Nov 22 22:03:15 I mean the design pattern (I think) Nov 22 22:03:26 Basically I mean the private staitc Object; Nov 22 22:03:39 then public static Object getInstance() Nov 22 22:05:25 drose379 it was nice and quiet but now you had to bring up controversial topic :D Nov 22 22:05:35 Sorry man Nov 22 22:06:15 A lot of people use that on Android (and elsewhere), drose379. Nov 22 22:06:21 http://mike802.blogspot.com/2015/11/a-full-explanation.html Nov 22 22:06:22 ??? Nov 22 22:06:32 Oh hey mike802 Nov 22 22:06:37 hello! Nov 22 22:06:39 ^_^ Nov 22 22:06:45 http://mike802.blogspot.com/2015/08/coding-standards.html Nov 22 22:06:46 drose379, yes, it is used. Nov 22 22:06:53 The singleton pattern is even a first-class construct in Kotlin: https://kotlinlang.org/docs/reference/object-declarations.html#object-declarations Nov 22 22:06:56 So its cool if I use a singleton, ok Nov 22 22:07:01 Word Nov 22 22:07:07 I am using it for a central controller Nov 22 22:07:10 drose379, of course it has severe downsides Nov 22 22:07:13 lol, oh you drose379 Nov 22 22:07:24 and usually it's used with DI so you can replace it in testing Nov 22 22:07:35 Ok Nov 22 22:07:40 what's your ap do? Nov 22 22:07:56 Its an animal adoption application Nov 22 22:08:06 oh, no way Nov 22 22:08:12 that sounds really cute Nov 22 22:08:20 Not sure if thats a good or bad thing Nov 22 22:08:30 Plot twist: some of the animals are humans. Nov 22 22:08:30 everyone likes adopting animals Nov 22 22:08:45 :o Nov 22 22:08:46 Hey if you have an android device I'll send you the apk and you can mess with hit Nov 22 22:08:50 TacticalJoke, you weirdo Nov 22 22:08:52 anyway, good luck Nov 22 22:09:03 i can see you're quiet passionate Nov 22 22:09:21 I really cant tell if he was being sarcastic or not Nov 22 22:09:22 Whatever Nov 22 22:10:19 are you the guy who had this really unoptimized getView and who would not do anything about it Nov 22 22:10:31 Almoast Nov 22 22:10:56 I have the unoptomized getView, but we talked about how I should continue developing the app and optomize getView later Nov 22 22:11:32 can't argue there! Nov 22 22:11:33 if its not forgotten then :p Nov 22 22:11:51 Got it written down danijoo_ Nov 22 22:12:22 :) Nov 22 22:12:22 bugs that get forgotten cease to exist. Nov 22 22:12:22 Sure Nov 22 22:14:35 So anyone here with a marketing background? Nov 22 22:14:43 I wish that to be true squirrel :p Nov 22 22:19:02 but it's true. projects without issue trackers have less bugs than projects of similar size with them. go prove me wrong. Nov 22 22:19:23 wut Nov 22 22:19:55 Do you mean they may have the same amount of bugs, they are just harder to find? Or easily forgotten? Or what Nov 22 22:20:07 i'm not sure myself. Nov 22 22:20:21 Interesting theory at the least Nov 22 22:21:18 how can you point out there are less bugs, if they are not kept track of? Nov 22 22:22:09 "Fewer bugs", not "less bugs". :D Nov 22 22:22:10 if I have two Paths about to be drawn on a Canvas, can I still switch their places somehow? Nov 22 22:22:19 Unless you mean "bugs of smaller intensity" or something. Nov 22 22:22:36 well I'm sorry, I'm not a native English speaker :P Nov 22 22:23:09 wait, what did you mean to point out with fewer<->less? Nov 22 22:23:23 It's only because two people made the same mistake within about 60 seconds. I got triggered. Nov 22 22:23:47 there are always more bugs than you think there are. which means that you can't really count them. so they are uncountable. hence less Nov 22 22:23:57 :) Nov 22 22:24:55 saapas: It's "little/less water" but "few/fewer raindrops". Nov 22 22:24:58 I would argue, what are their test pass percentages :D Nov 22 22:25:32 alright TacticalJoke Nov 22 22:25:34 "Fewer" does sound weird, though (maybe because almost nobody says it where I'm from). Nov 22 22:26:16 bugs are the food of the future. how many bugs did you guys have today? :-P Nov 22 22:26:29 lol Nov 22 22:27:01 all software has bugs Nov 22 22:27:12 TacticalJoke: "less bugs": 156k results on google, "fewer bugs": 100k Nov 22 22:27:27 People suck at Englishing. Nov 22 22:27:45 TJ hows the reddit client man? Nov 22 22:27:57 It's redditing along. Nov 22 22:28:16 Any beta for me to mess with? I've been looking forward to it for a while now Nov 22 22:30:33 TacticalJoke, is the code open source? Nov 22 22:31:59 Nah. Nov 22 22:32:13 Why? Nov 22 22:32:46 drose379, is whatever you're working on open source? Nov 22 22:33:52 Yep Nov 22 22:35:22 Does it have freedoms 0 to 3, drose379? Nov 22 22:35:28 I'm having trouble with my alarm reciever I guess I don't understand Nov 22 22:35:58 s/Does it/Do the users/ Nov 22 22:36:05 What are those TacticalJoke Nov 22 22:36:11 http://www.gnu.org/philosophy/free-sw.en.html Nov 22 22:36:31 I guess, yeah TacticalJoke Nov 22 22:36:31 I'm using AlarmManager and I pass it different PendingIntents with different putExtra key value pairs Nov 22 22:36:37 Although Id really like it to be closed source Nov 22 22:36:48 it's that bad eh? :p Nov 22 22:36:51 But, on the other hand I need something in my portfolio Nov 22 22:36:52 You can use Bitbucket if you want private repositories. Nov 22 22:37:02 Github has private repos too Nov 22 22:37:12 but my alarm reciever is always getting the same putExtra fields, equal to the first pendingIntent that my app uses with AlarmManager Nov 22 22:37:18 any idea what is going on? Nov 22 22:37:22 They're free on Bitbucket. Nov 22 22:37:29 Squeegee, each pending intent must have a different id Nov 22 22:37:31 For non-commercial stuff, anyway Nov 22 22:37:57 I want it open for now though, hoping it will be a good project to show to an employer if I am applying for a job Nov 22 22:38:19 pfn, well I declare those in the manifest...how do I do that dynamically? Nov 22 22:38:21 drose379, realistically, no employer ever looks at your repos Nov 22 22:38:33 Why is that pfn Nov 22 22:38:36 Squeegee, you don't declare pending intents in manifest Nov 22 22:38:44 And I strongly disagree pfn Nov 22 22:38:50 drose379, they mostly don't have the interest Nov 22 22:38:59 To look at your code? Nov 22 22:39:25 drose379, it might be something to look at if they're on the fence and really want to hire you anyway Nov 22 22:39:37 What else would they look at? Nov 22 22:39:44 pfn, what do you mean by id? Nov 22 22:40:01 Squeegee, pending intent have an id, use unique id Nov 22 22:40:42 pfn, I'm constructing it using PendingIntent.getBroadcast Nov 22 22:41:14 I just find that hard to believe Nov 22 22:42:38 pfn, what's the ID here? Nov 22 22:44:03 drose379, find it hard to believe as much as you want, most employers will not trust what you have in your repos to be yours, nor spend the time to give it a thorough audit to see that it's of quality Nov 22 22:44:05 so I use different requestCode? Nov 22 22:44:37 I guess I just have a different personal experience in the past pfn Nov 22 22:44:52 drose379, anecdotal evidence isn't fact Nov 22 22:45:18 drose379, for the vast majority of job applicants that throw in a github link, it will be ignored Nov 22 22:46:13 I guess my argument is, for a project like mine, having it open source, and having my github link on my resume _cant hurt_. It shows I am actively working to improve my skills, if they dont have time to look at the code Nov 22 22:47:22 it doesn't hurt Nov 22 22:48:03 yeah apparently that's it, you use a different argument for reqCode when calling getBroadcast Nov 22 22:48:08 Cool, then we have come to an agreement pfn :D Nov 22 22:48:12 the documentation failed to make that clear Nov 22 23:01:33 Agh, AS has frozen twice today Nov 22 23:11:22 drose379 happens to me, try killing adb-server Nov 22 23:11:38 Are you on linux? Nov 22 23:12:55 mac Nov 22 23:13:01 Ah ok Nov 22 23:15:17 but seems AS will hang if adb is hung, so :) Nov 22 23:15:35 adb might hang for different reasons on mac (usb stack) Nov 22 23:15:35 Right Nov 22 23:24:12 i have a bunch of fragments in a ViewPager / FragmentPagerAdapter. whichever one is shown, i'd like to update the App Bar title. what event do i listen to to know 'ok, this fragment is shown and settled' Nov 22 23:31:47 aha addOnPageChangeListener Nov 22 23:36:05 omg the Android TO tickets are $300 ! Nov 22 23:36:24 I will pretend to be Jake Wharton and sneak in Nov 22 23:37:00 shmooz what is TO ? Nov 22 23:37:20 g00s: http://androidto.com/ Nov 22 23:37:27 Android conference in Toronot Nov 22 23:37:32 Toronto Nov 22 23:37:50 shmooz you'll get halfway through and somebody will recognize your GingerBread phone - then you'll be discovered and dragged out Nov 22 23:38:09 amazing how many android conferences there are Nov 22 23:38:18 what the hell does everyone keep talking about Nov 23 00:01:47 When using a singleton pattern, is it better in an activity to just do getInstance() on the class once and save it as an instance var, or do getInstance() throught whenever I need? Nov 23 00:02:33 How can I get rid of the overflow menu? I already set showAsAction="always" but it's not working Nov 23 00:27:03 g00s, the same self flagellation over and over Nov 23 00:27:43 How can I get rid of the overflow menu? I already set showAsAction="always" but it's not working Nov 23 00:28:45 bluebz: Maybe you're using AppCompat with `android:showAsAction="always"` instead of `custom:showAsAction="always"`. Nov 23 00:30:14 I am using app: namespace Nov 23 00:30:47 TacticalJoke: I need to extend all the activities that need to use the menu item with AppCompatActivity? Nov 23 00:31:38 If you're using AppCompat, I think you have to do that regardless. Nov 23 00:32:47 How else can I do it? When I switch over to an appcompat theme, my actionbar disappears Nov 23 00:33:42 bluebz: Are you using AppCompat? Nov 23 00:34:30 I am trying to use the search widget and I think that's only with AppCompat, so I think I am Nov 23 00:35:38 My guess is that you're not using AppCompat. If so, use `android:showAsAction="always"`. Nov 23 00:36:51 Hmm, I am sure I am using it now Nov 23 00:36:55 The search widget doesn't work without it Nov 23 00:37:32 When I extend AppCompatActivity instead of activity, my app crashes when I go to that activity Nov 23 00:39:40 bluebz: Nov 23 00:39:45 pfn there must be a lot of money in having conferences / talking at them Nov 23 00:39:47 Oops. I meant to type "try what I said above". Nov 23 00:40:02 maybe the best way to make money as android developer :D Nov 23 00:40:07 I tried it with andoird Nov 23 00:40:12 with android: namespace, it didn't work Nov 23 00:40:27 My menu xml Nov 23 00:40:28 xmlns:app="http://schemas.android.com/apk/res-auto" Nov 23 00:40:28 xmlns:tools="http://schemas.android.com/tools" Nov 23 00:40:28 tools:context="com.gevdev.stalky.MainActivity"> Nov 23 00:40:28 android:id="@+id/action_search" Nov 23 00:40:29 android:title="Search" Nov 23 00:40:29 android:icon="@mipmap/ic_action_search" Nov 23 00:40:30 app:showAsAction="always" Nov 23 00:40:30 app:actionViewClass="android.support.w7.widget.SearchView" > Nov 23 00:40:31 Nov 23 00:40:32 Nov 23 00:40:36 aww paste some more! Nov 23 00:40:57 bluebz: I didn't get that, can you repost it? Nov 23 00:41:07 :D Nov 23 00:41:28 xmlns:app="http://schemas.android.com/apk/res-auto" Nov 23 00:41:28 xmlns:tools="http://schemas.android.com/tools" Nov 23 00:41:29 tools:context="com.gevdev.stalky.MainActivity"> Nov 23 00:41:29 android:id="@+id/action_search" Nov 23 00:41:29 android:title="Search" Nov 23 00:41:29 android:icon="@mipmap/ic_action_search" Nov 23 00:41:30 app:showAsAction="always" Nov 23 00:41:30 app:actionViewClass="android.support.w7.widget.SearchView" > Nov 23 00:41:31 Nov 23 00:41:34 Dude. Nov 23 00:41:34 ok thanks... Nov 23 00:41:41 You should pastebin that ish. Nov 23 00:44:07 bluebz was never seen again. Nov 23 00:45:33 g00s, eh, not really, but conference. organizers make 300/head for that one Nov 23 01:51:53 hello, i'm new to android development and the documentation is a little too hard to read for me, please recommend me some books that help me through Nov 23 02:24:53 shadofren: https://www.reddit.com/r/androiddev/comments/3ai7r1/best_book_for_android_development_yes_ive_read/ Nov 23 02:26:03 There are probably more. Google "reddit android books" or similar. Nov 23 02:27:51 TacticalJoke: thank you, the documentation is quite overwhelming for me Nov 23 02:28:35 A lot of the documentation isn't great. Much of it is out of date, unnecessarily complicated, incomplete, or some combination of these. Nov 23 02:33:38 shadofren: As far as I remember, though, isn't too bad. Have you tried it? Nov 23 02:39:39 pfn: I finnaly got some time to check sbt build - works Nov 23 02:40:33 but now, my project uses dagger2 - so I need to run annotation preprocessor. Didnt found out how to run it (apt plugin for gradle). DO you have any idea how to run it ? Nov 23 02:41:25 TacticalJoke: last time i tried this but stucked at the sending objects between activities. now i want to get back to it. Nov 23 02:43:44 shadofren: I wouldn't worry much if you get stuck there. As far as I remember, that tutorial jumps between beginner level and expert level at whim here and there. Nov 23 02:44:05 Personally, when I first came to Android, I did the first guide there (I think it was the "start another activity" one) and just dived in to Android development. Nov 23 02:45:03 into* Nov 23 02:51:23 thank you. i will try the training again and then study this book: Android Programming: The Big Nerd Ranch Guide. I will come back when i encounter problems. Thanks so much. Nov 23 02:51:42 shadofren: have you tried treehouse Nov 23 02:52:05 Whats up orbyt_ Nov 23 02:52:38 shadofren: Do you have a lot of programming experience? Nov 23 02:52:41 just got a quad headshot in csgo so theres that @ drose379 Nov 23 02:52:52 Sweet Nov 23 02:53:10 I would say that your need to read a lot about Android is fairly strongly inversely correlated with your general programming experience. Nov 23 02:53:21 i'm in 2nd year at uni. did a few programming courses Nov 23 02:53:38 orbyt_, what is treehouse? Nov 23 02:53:54 Okay, if you haven't done much actual programming then it seems wise to read up a bit. Nov 23 02:54:35 shadofren: teamtreehouse.com, I always recommend it for beginning android. Probably the fastest way to get into it Nov 23 02:54:46 Gotta learn Java first though Nov 23 02:55:27 thanks guy Nov 23 02:57:39 is it frowned upon to use webviews for complex interfaces? Nov 23 03:00:27 Depends b4b... but if you are making apps for Android you are better off going 100% native code **** ENDING LOGGING AT Mon Nov 23 03:00:34 2015