**** BEGIN LOGGING AT Sun Feb 28 02:59:59 2016 Feb 28 03:21:12 I'm writing a module. Should I detect the api version running and warn the user if I have a minimum api version Feb 28 03:21:33 requirement Feb 28 03:26:43 can/should I use hmm, weird, did I get unjoined Feb 28 05:00:06 can I develop android apps entirely in python? Feb 28 05:01:16 y Feb 28 05:01:26 lasserix, me? Feb 28 05:02:11 y Feb 28 05:03:47 lasserix, wut? Feb 28 05:04:12 sla4 Feb 28 05:04:16 or something Feb 28 05:04:22 google it Feb 28 05:07:17 realistically, no you can't Feb 28 05:24:50 sector_0: why not? Feb 28 05:27:36 morenoh149, how does one go about it? Feb 28 05:28:34 morenoh149, is kivy the best option? Feb 28 05:30:35 sector_0: seems fine. any project that isn't android will be lacking in some way Feb 28 05:30:39 but give it a shot Feb 28 05:42:39 ugh, support 23.2 busted tabGravity="fill" ..... Feb 28 05:45:43 weird; i use it in 2 places - one it works, the other it doesn't. both worked with 23.1 Feb 28 05:52:00 interesting. seems it how has a minimum width , below that it does not fill Feb 28 06:04:04 every release brings its own weirdness ;) Feb 28 07:33:44 hi, I need to do a very CPU-intensive task a few times throughout the course of my app, each lasting less than a minute for sure. should I be using an asyncTask (probably not, its used for bg operations lasting at most a few secs as the docs say), an IntentService, a Service, or roll my own Thread() with a Runnable? Feb 28 07:34:44 i will be doing large queries using contentResolver or SQLiteOpenHelper (I haven't even decided if I need a ContentProvider, probably not, but i would like the advantage of using cursorLoader) Feb 28 07:35:51 (along with the CPU-intensive tasks, i.e. fetch an entry from DB, do calculation, store it back in DB, proceed to next one) Feb 28 07:36:32 i'd go with IntentService or singleton-like database with its own executor and base it on callbacks Feb 28 07:36:51 Transfusion: if you're trying to do intense work off UI IntentService is your best friend Feb 28 07:37:08 if you need to do it serialy Feb 28 07:37:12 serially Feb 28 07:37:31 if you need multiple actions at the same time, probably Executor and callbacks Feb 28 07:42:28 thanks :) IntentService is not tied to the activity lifecycle right? so I don't have to worry too much about a user launching a new activity,, e.g. to change some settings, and when they return progress updates will still happen as usual? Feb 28 07:43:12 hey thepoosh , try support 23.2 yet ? Feb 28 07:44:21 g00s: in the process of upgrading from 21.0.1 Feb 28 07:45:02 21.0.1 O.o Feb 28 07:45:17 for prod i'd go with 23.1.+ Feb 28 07:45:27 g00s: I was lying Feb 28 07:45:32 it's 21.0.3 Feb 28 07:45:43 updating now Feb 28 07:50:55 Guys serious question: what sounds better for an app name: SpaceHub or PocketSpace/Pocket Space Feb 28 07:52:00 pocket space sounds too cliched Feb 28 07:52:23 really? how Feb 28 07:52:26 unless the app is about space and pockets Feb 28 07:52:47 well it is, its an app all about space, and its in your pocket Feb 28 07:52:51 so.. Feb 28 07:53:39 dunno, anything in pocket in name sounds like someone lacked the creativity Feb 28 07:53:59 especially with larger phones hardly fitting into pockets Feb 28 07:54:23 but thats just my opinion. on the other hand if someone would look for an app he/she might look for 'pocket' version Feb 28 07:54:39 do you not use Pocket? Feb 28 07:54:43 out of curiosity Feb 28 07:55:01 i do Feb 28 07:55:35 so spacehub then eh. thanks for the input Feb 28 08:43:28 would you use the eye-with-bar icon to toggle the visibility on or off? (i mean if something is shown, should the inital status of the eye be with or without the crossed bar?) Feb 28 10:53:05 can anyone help me with this problem Feb 28 10:53:07 http://codereview.stackexchange.com/q/121353/60926 Feb 28 10:53:12 ? Feb 28 10:54:28 sivi: taking a look Feb 28 10:55:07 Naplam: Thank you Feb 28 10:55:39 omg Feb 28 10:55:42 shudders Feb 28 10:56:32 sivi: theres quite a bit wrong with this Feb 28 11:01:05 sivi: you here? Feb 28 11:01:39 yes Feb 28 11:02:33 sorry someone was on the line Feb 28 11:02:56 ok, so basically.. you want to switch from ListView that used a CursorAdapter to a RecyclerView that uses a Cursor Feb 28 11:03:10 yes Feb 28 11:03:53 basically I used recycle view without cursor and I moved to sqlite Feb 28 11:05:26 sivi: is gthere a reason you ignore the cursor being passed in? do you currently just contruct the adapter with null? Feb 28 11:06:09 I construct it with null I think let me check Feb 28 11:07:19 Naplam: yes new RVAdapter(ShopFragment.this.getContext(), null,location); Feb 28 11:08:48 Napalm: I thought it is more efficient to not pass a cursor as a parameter? Feb 28 11:09:13 !? that has nothing to do with it.. just hold on a sec Feb 28 11:12:47 is there a way to delete all files odler than * with adb Feb 28 11:29:11 slani: you can delete all files of your app programmatically but not other apps from within the app if you don’t have root access i think Feb 28 11:35:37 sivi: I like to remove all picutre in DICM folder which is older than 100 days Feb 28 11:35:38 sivi: posted an answer.. should do you Feb 28 11:36:19 sivi: https://codereview.stackexchange.com/questions/121353/recycler-view-with-cursor-adapter-android/121358#121358 Feb 28 11:36:23 Hey guys, i use in app billing in my app for upgrading to pro version and removing advertisement. Now a user has bought my app on a phone and wants to buy it again on a tablet with the same gmail account. Is this possible? He gets the message "item already owned".... Feb 28 11:39:33 Thanks Napalm Feb 28 12:00:24 Its solved, nevermind Feb 28 12:35:16 http://imgur.com/3BCAZN0 lovely AS, "report to google" Feb 28 12:52:00 hithere Feb 28 12:57:45 I am trying to use linearLayout with weight I have this setup http://snag.gy/SC3TG.jpg, in xml http://pastebin.com/FUZdbM75 . I want areaA to be max 30% and areaB max 70% but if there is not enough content in aA to fill those 30% and there is more content in aB which would fill more than 70% I would like to leave free space from aA for aB. This behaviour must be applicable vice versa... Is it possible to do that from within xml layout? Feb 28 12:59:40 Right now I am able to setup fixed size of both areas in defined ration, but it looks bad when there is space in areaA and areaB must be scrolled to view whole content. Feb 28 13:18:47 Hey! Feb 28 13:19:17 hey Feb 28 13:20:06 How you doing? Feb 28 13:21:25 thank you, me? im doing alright Feb 28 13:23:06 you? Feb 28 13:33:59 Got a notification from facebook that my app is posting without user consent, which it does not. Anyone encountered this? Feb 28 14:19:02 i'm parsing XML from URL but I don't know how I can make recyclerview to wait for the parsing to finish so it doesn't show empty Feb 28 14:23:54 show a ProgressBar Feb 28 14:23:59 meanwhile Feb 28 14:27:26 mentazoom: try this -> http://stackoverflow.com/a/31943275/1056359 Feb 28 14:28:17 you can just set visibility to visible when loading finished Feb 28 14:37:50 lxknvlk: and thepoosh , maybe there is other problem because my arraylist in oncreateview shows empty: I posted question here https://stackoverflow.com/questions/27384545/android-while-loop-wait-for-server-response-using-parse-server Feb 28 14:38:48 lxknvlk: and thepoosh sorry wrong link, here is correct one: https://stackoverflow.com/questions/35673990/parsing-xml-fron-url-and-stuck-in-loop Feb 28 14:39:48 the arraylist in the model/asynctask class show that the arraylist has data when I debug, but on recyclerview class at onCreatView "tasks = task.getTasks();" shows empty in debug Feb 28 14:42:09 Hey, i got a pretty hard thing (at least i think - im trying for ages) - https://pastee.org/s24kq How can i achieve imageButton1 + imageButton3 to fill the parent relativeLayout (without hardcoding them to 60dp like the middle one). If someone has some time, please help. Thanks! :) Feb 28 14:42:54 You can copy this layout to the IDE without any dependencies to see the issue Feb 28 14:44:05 ktwo: Haven't tried to paste the code, but weights? Feb 28 14:44:44 i tried but it messes up, maybe im using them wrong.. its kinda strange Feb 28 14:50:43 ktwo: How much width do you want Feb 28 14:51:44 ktwo: what are you trying to do here Feb 28 14:52:31 ktwo: this looks like you dont even need the relative layout? Feb 28 14:57:40 ktwo: hello? Feb 28 14:59:10 mentazoom: where is that your xml parsing code? Feb 28 15:00:13 Napalm: I posted it over here: https://stackoverflow.com/questions/35673990/parsing-xml-fron-url-and-stuck-in-loop Feb 28 15:00:19 if you need more I can provide Feb 28 15:00:24 i'm parsing XML from URL but I don't know how I can make recyclerview to wait for the parsing to finish so it doesn't show empty Feb 28 15:00:30 so what exactly is the issue here Feb 28 15:00:39 your stuck, or something to do with empty#/ Feb 28 15:00:39 ? Feb 28 15:01:26 I thought that it may be because i'm not waiting it for to parse, i'm not sure, but the the arraylist in the recyclerview class is empty Feb 28 15:01:52 When I debug this "task.getTasks();" then it says it's size is 0 Feb 28 15:02:07 well your loop "while (eventType != XmlPullParser.END_DOCUMENT) {" never exits Feb 28 15:02:31 move this line "eventType = xpp.next();" up a level next to "i++" Feb 28 15:03:15 do you see why? Feb 28 15:03:20 mentazoom: ^ Feb 28 15:04:10 Napalm: Did you check the edit on SO? Feb 28 15:04:47 It's not giving NPE anymore tho, but it's just empty Feb 28 15:04:53 Napalm, sorry was idle few min, basically the two buttons left and right should match the size of the center one Feb 28 15:04:58 however without the hardcoded 60dp Feb 28 15:05:13 because this is just for the example Feb 28 15:05:15 in the real case, the height of the middle one is determined in runtime Feb 28 15:05:25 ktwo: so you want 3 buttons of equal width.. so 33% of the width spread out. Feb 28 15:05:43 nope the left+right are fixed, sec ill show a picture Feb 28 15:05:52 yea, thats best Feb 28 15:05:59 http://abload.de/img/untitledbhr6r.png Feb 28 15:08:00 ktwo: k, do you want all 3 to also be centered vertically? Feb 28 15:08:42 basically it must be ensured that the left+right ones are equal height of the middle one Feb 28 15:08:55 but the middle one's height is unknown in xml, the 60dp were just an example Feb 28 15:09:11 ktwo: thats simepl Feb 28 15:09:14 i have that Feb 28 15:09:34 i thought so, but it didnt seem so simple after all :/ Feb 28 15:09:42 but since the outside layout is match_parent on both width and height, how do you expect the 3 to be aligned? Feb 28 15:10:04 hello guys,im getting warning from play store about trust manager. Anyone faced an error like this ? https://support.google.com/faqs/answer/6346016?hl=en Feb 28 15:10:19 ktwo: i'll center them vertically. Feb 28 15:10:43 yea but thats not resolving the issue i think, since then there will still be a tiny empty space on top and bottom Feb 28 15:10:55 no Feb 28 15:10:59 not with what ive done Feb 28 15:11:09 ok:D let me see if you will^^ Feb 28 15:11:14 https://pastee.org/jkeac Feb 28 15:11:21 100dp change to match_parent Feb 28 15:11:25 100dp is test Feb 28 15:13:17 ktwo: the main problem you had was you were using RelativeLayout where it shouldnt be used.. RelativeLayout isnt the answer to everthing.. and infact it can be slower than most Feb 28 15:13:25 wtf :D thanks! never would have made it like that Feb 28 15:13:49 Yea this is really nice, as it doesnt even need the "leftof" stuff Feb 28 15:14:16 ktwo: if you need to lay things out horizontally or vertically .. thats the job of LinearLayout Feb 28 15:14:50 mentazoom: so.. your problem Feb 28 15:15:17 mentazoom: more code would be helpful.. pastebin/hastebin/pastee it Feb 28 15:24:14 Napalm: You got it? Feb 28 15:24:30 mentazoom: yup **** BEGIN LOGGING AT Sun Feb 28 17:07:24 2016 Feb 28 17:13:17 If I have a tab_host with a Fragment activity inside it that contains a ViewFlipper inside the fragment...how Would I make the TouchEvent listener react to the ViewFlipper Swipe instead of swiping the entire Tab across Feb 28 17:13:25 ? Feb 28 18:23:41 hm.. so assuming I'd be able to get a favicon from a website - what would be the smartest way to store it? I ask this, because I have a XML file, that contains the configuration. Should I have a CDATA-block, that'd contain the binary data of that image - or should I save the image/icon and load it from that local file? Feb 28 18:36:13 how do you like the design where everything is a fragment inside one single activity? Feb 28 18:36:36 basically all the flows happen by switching in the appropriate fragments Feb 28 18:37:33 the downside I see, if every fragment defines a callbackListener, my MainActivity is going to implement a whole bunch of them Feb 28 18:38:20 RustyShackleford: thats easily fixed with the same interface being implemented as a callback and the parameter tells you which fragment it came from. or something. Feb 28 18:38:53 RustyShackleford: i've made an app that does exactly the pattern you suggested .. one activity, all frags Feb 28 18:39:02 it worked out nicely? Feb 28 18:39:02 RustyShackleford: the problem is memory management Feb 28 18:39:10 RustyShackleford, i thought the same thing to but in reality you can utilize multiple activities Feb 28 18:39:15 you either have to totally unload fragments Feb 28 18:39:27 which then you kinda dont get the benefit Feb 28 18:39:42 so i suggest multiple activities where it feels right Feb 28 18:39:44 for instance, lets say you have some kind of news app or something, one activity can show the news with different fragments, but lets say you have sophisticated search, that can go in one seperate activity Feb 28 18:40:07 there is probably some functionality i'll break out into another activity Feb 28 18:40:19 exactly Feb 28 18:40:27 Napalm: whats involved in totally unloading a fragment? Feb 28 18:40:34 plus you can always just use another activity as a host for a fragment Feb 28 18:40:44 or for instance you have login stuff: login, register, forgot password, splash, that can all be one activity Feb 28 18:42:06 Napalm can you think of any gapps which have master / detail on the same screen (like landscape, tablet, etc) ... BESIDE Gmail ? Feb 28 18:42:18 it seems like they are just punting to another activity for the detail most times Feb 28 18:42:24 RustyShackleford: i just mean, standard remove transaction.. not hide.. but then also make sure all the references are nulled out.. Feb 28 18:42:39 g00s you can see that in the iosched app Feb 28 18:43:19 g00s: hmm, i dont use that many.. apart from gmail. so no.. Feb 28 18:43:43 i tried using SlidingPaneLayout for m/d but caused its own weird issues Feb 28 18:44:04 like if your detail want to use AppBarLayout and that kind of thing Feb 28 18:44:24 coordinating that top AppBar between all the master fragments and then Details is kinda pain Feb 28 18:44:40 side question: does anyone have a problem with their project using Timber? Feb 28 18:44:48 there is a problem with cleaning Feb 28 18:45:03 and I can't figure out a workaround Feb 28 18:46:41 Nested fragments in ViewPager are busted in 23.2 Feb 28 18:46:44 god damn it Feb 28 18:47:04 instead of stuff getting fixed they just break more and more shit Feb 28 18:48:02 well i'm only using nested frags in viewpager, maybe they are just busted everywhere now Feb 28 18:58:18 are questions on building android-studio offtopic here? Feb 28 19:04:33 no but questions about asking questions are Feb 28 19:08:01 side question: does anyone have a problem with their project using Timber? Gradle cannot clean one of Timber's generated files Feb 28 19:08:14 I can find reports of the bug, but no solutions Feb 28 19:09:54 Restart AS Feb 28 19:10:20 AS bug, has been reported, no idea if fixed in 2.0 Feb 28 19:13:12 restart AS, then manually delete that folder? Feb 28 19:13:16 yea Feb 28 19:13:23 what a pain Feb 28 19:14:24 welp, I could just strip Timber out of here Feb 28 19:14:47 Is this a windows only bug? Anyone else have it on another OS? Feb 28 19:15:32 it was not fixed in AS 2.0 Feb 28 19:16:35 I am using AS 2.0 B6 I think and the problem still persists - so what I do is use LockHunter to forcefully clean folders (though I admit even that does not entirely work due to "instant run", which builds and publishes stuff incrementally) Feb 28 19:16:49 thaT's on a windows system by the way Feb 28 19:19:21 I'm wondering if it works on ubuntu Feb 28 19:19:34 I've sorta been wanting to switch up the OS for some reason Feb 28 19:20:33 I am pretty sure I'll be switching OS once Windows 7 support runs out.. don't want Windows 10 Feb 28 19:21:20 Hi everybody! I have a question.. Could anyone help me? Feb 28 19:21:44 I bet we need some more information on what you need help with :) Feb 28 19:22:01 lasserix: thanks - i've got an answer to my question already^^ Feb 28 19:23:26 I am currently taking a udacity course about android development, and I have a little issue with app theming. Feb 28 19:23:33 This screenshot shows it: http://imgur.com/JEIaMe5 Feb 28 19:24:17 what issue do you have? Feb 28 19:24:22 I want to make the notification area color in the primaryColorDark color Feb 28 19:25:35 uhm so the part above the primaryColorDark area that you already have? (the white space above "sunshine"?) Feb 28 19:25:49 like this: http://imgur.com/KONdIFY Feb 28 19:27:13 also I am using the new toolbar instead of an action bar, maybe thats the problem? Feb 28 19:27:14 well I did a quick google attack and this: http://stackoverflow.com/questions/24524121/how-to-change-the-color-of-notification-bar came out Feb 28 19:28:52 I suppose you'd need to overwrite certain styling rules, but I am not good at it myself, so there's not much I can do for you :/ sorry Feb 28 19:29:22 ok, well thanks anyway :) Feb 28 19:29:43 schmidtdominik, thats only supported 4.3 or 4.4 and up Feb 28 19:29:45 no problem Feb 28 19:32:29 If I have a tab_host with a Fragment activity inside it that contains a ViewFlipper inside the fragment...how Would I make the TouchEvent listener react to the ViewFlipper Swipe instead of swiping the entire Tab across? Feb 28 19:34:21 why didn't android support JavaFX and the rest of the API? It would be great if it was fully JavaSE compliant. More standard for the people. Feb 28 19:35:41 nzt-fish dont think JavaFX was even out then Feb 28 19:36:05 and even now, is JavaFX a touch optimized gui library ? Feb 28 19:37:31 android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. ... How can I get the called methods back onto the Required thread ? Feb 28 19:38:23 don't call those methods in wrong thread Feb 28 19:38:54 simplest way is to wrap whatever you're calling in a runnable and pass it to a handler creating like this: handler h = new handler(looper.getmainlooper()); Feb 28 19:39:15 Or just google it, plenty of solutions Feb 28 19:39:34 This channel is not a substitute for googling Feb 28 19:58:10 Still stuck with this -> If I have a tab_host with a Fragment activity inside it that contains a ViewFlipper inside the fragment...how Would I make the TouchEvent listener react to the ViewFlipper Swipe instead of swiping the entire Tab across? Feb 28 19:59:00 can't you consume the event and not allow it to trickle down any further? Feb 28 20:02:38 TacticalJoke have you used the new vectordrawable stuff yet ? Feb 28 20:03:18 Nah. Haven't used anything new in a while. Feb 28 20:07:01 hm i must be doing something wrong, i see my APK still has tons of PNGs ... lots from the support lib itself Feb 28 20:11:04 hm ok, my app's drawables are just vectors; PNGs are from support lib. but the ToolBar is not tinting thing correctly Feb 28 20:13:30 this was supposed to fix it https://www.reddit.com/r/androiddev/comments/47ni7v/if_you_support_older_versions_of_android_there_is/ Feb 28 20:13:48 do i need to modify the vector drawables i downloaded from google to remove the color ? Feb 28 20:14:30 for example, each google supplied XML vector drawable has android:fillColor="#FF000000" Feb 28 20:18:06 is it possible to have onBackPress respond to a fragment instead of the entire activity? Feb 28 20:21:02 SimonVT does it seem right, that i would add android:tint="?attr/colorControlNormal" to all my VectorDrawables to get them to tint correctly ... that isn't in the xml file from google Feb 28 20:22:01 Seems reasonable that you would need to tell your drawables what color to be Feb 28 20:25:05 toolbar used to have a whitelist of drawables that it automatically applied the correct tint to Feb 28 20:27:14 but that was a hack. ok, so i guess now tint should go in the xml Feb 28 20:27:42 (as opposed to the fillColor, which was already there) Feb 28 20:31:02 sorry man I have no idea about that D: but I wanted to type something so you don't feel you are talking in a big long monologue :D Feb 28 20:31:44 lol Feb 28 20:31:45 hm.. after upgrading AS to 2.0B6 it seems it does not properly run the emulator .. perhaps it's out of date.. so annoying :< Feb 28 20:32:12 and I accidentally installed all that android wear and tv crap X_X Feb 28 20:38:18 hm, so if you want to use drawbleLeft= it has to be wrapped in another drawable pre L Feb 28 20:41:46 Pretty much pure luck that it even works with native attributes/views Feb 28 20:45:03 I'm having some issues with WifiManager.addNetwork, it does return a number. but when i try to connect to it it fails. Then if i go check my phones wifi-list it's not configured.. It does however work if i put a Log.d on the returned number before i connect to it.. Feb 28 20:45:26 there is an example in the android docs about communicating between fragments/activities Feb 28 20:45:31 they say to define public void onAttach(Activity activity) Feb 28 20:45:37 but onAttach is deprecated Feb 28 20:45:53 did you see why? Feb 28 20:46:05 mm nope Feb 28 20:46:05 is it normal that the build data is 4 times bigger than the actual "binary"? Feb 28 20:46:12 figures Feb 28 20:46:15 there is an onAttach(Context context) Feb 28 20:49:32 damn... getting INSTALL_FAILED_DEXOPT when trying to run my app and my app is not installed on the image (checked data folder) Feb 28 20:49:39 no idea how to fix it T_T Feb 28 20:57:04 wow I guess I figured it out.. for some effed-up reason my main-classes.dex is over 5Mb.. Feb 28 21:02:24 if I just want to remove the action bar on *some* activities but not necessarily all of them, what's the best course of action to take? Feb 28 21:02:42 currently I set my theme's partent to a .NoActionBar but I want some activities to have the action bar Feb 28 21:02:51 use a toolbar ofc Feb 28 21:03:20 okay so just add the toolbar on those activities? Feb 28 21:03:47 then if you want to use it as an actionbar also do setActionBar()/setSupportActionBar() in the activities Feb 28 21:04:19 what's the difference between an actionbar and a toolbar? Feb 28 21:05:13 pretty easily googleable Feb 28 21:05:42 just more customizable? Feb 28 21:07:11 A toolbar can be an "actionbar", but the old action bar classes are deprecated Feb 28 21:07:17 just use a toolbar Feb 28 21:07:51 ah okay Feb 28 21:08:05 which googling would have told you Feb 28 21:08:11 so should I be using the actionbar themes as a parent or the noactionbar? or does it really matter either way Feb 28 21:08:21 canvs2321: I did google it ;) Feb 28 21:08:26 i always use noactionbar Feb 28 21:08:29 canvs2321: checking for understanding Feb 28 21:08:40 okay Feb 28 21:24:48 if you guys have a @StringRes or some such for a return type annotation, do you put it next to the data type (String) or at the very beginning of the declaration Feb 28 21:31:08 how do you respond to items selected in a listview? Feb 28 21:33:53 My usual response is "Hmm". Feb 28 21:34:02 how do you respond to a button click Feb 28 21:35:01 lol Feb 28 21:35:17 that was quite a TacticalJoke Feb 28 21:41:18 actually I meant RecyclerView. ListView has a method you override Feb 28 21:42:35 The best way is to set an OnClickListener. I think the only alternative involves hacking around with an OnTouchListener. Feb 28 21:43:19 I guess you can override onClick() in the viewholder Feb 28 21:44:12 s/override/implement/ Feb 28 21:45:01 er yeah Feb 28 21:45:29 its funny how I end up finding what I'm looking for immediately after asking here Feb 28 21:45:36 found a perfect example on github Feb 28 21:51:04 why do you prefix fields with m in javabeans? Feb 28 21:51:34 nzt-fish: Who does that? Feb 28 21:51:42 TacticalJoke: https://docs.oracle.com/javase/tutorial/javabeans/writing/properties.html Feb 28 21:51:58 TacticalJoke: all the examples prefix with m Feb 28 21:53:24 uhm.. so just because I for example use the specific method name addPropertyChangeListener() (and other conventions.. just by names and style) it's a java bean? Feb 28 21:53:59 m is just one convention people follow Feb 28 21:54:29 perhaps you mean to ask in ##java Feb 28 21:55:13 i think for javabeans you have to follow that convention, but I would ask in ##java Feb 28 21:55:20 How do I set which onTouch has precedence ? Example... I have a ViewFlipper inside a Tab_Host ... I can not flip the ViewFlipper because then the Tab_Host moves up a fram Feb 28 21:57:40 is it just me or does android have a convention of using snake_case in XML, but colors for some reason are camelCase? Feb 28 21:58:03 like colorPrimary, colorPrimaryDark, Feb 28 22:01:41 Attributes use camel-case (e.g., `textSize`). Feb 28 22:02:04 colors? Feb 28 22:02:05 no Feb 28 22:02:08 attributes Feb 28 22:02:26 xml values are underscored Feb 28 22:04:31 ah Feb 28 22:04:37 that makes sense Feb 28 22:04:47 thanks for clearing that up Feb 28 22:06:14 Hi! Feb 28 22:07:47 anyone tell me, I've created an Android project on one computer, checked into GitHub, then gone to my laptop and checked out, but I'm getting an error saying two modules cannot be loaded, both .iml's. Stackoverflow has questions, but no answers on how I should either check in or check out correctly. Feb 28 22:15:39 :( I am still getting INSTALL_FAILED_DEXOPT and DELETE_FAILED_INTERNAL_ERROR :( Feb 28 22:15:54 tried everything possible, but it just doesn't work Feb 28 22:18:03 huh ... disabling instant run helped..lol Feb 28 22:20:29 Hello, Feb 28 22:20:54 does anyone know of a simple way to get guideline-conforming long shadows for Material icons in Inkscape? Feb 28 22:23:49 in MVP architecture, who responds to touch events? Feb 28 22:23:54 That would be in the presenter? Feb 28 22:28:32 I might be missing something here but how do I remove an activity from the history stack? I have A->B 'A' should only show once for the entire app lifecycle and I want B to become the new root, I've tried setting the clear top flag and clear_task but neither one seems to do what I'm looking for Feb 28 22:29:11 RustyShackleford: the ui can respond and delegate to the presenter or you could have the presenter do it directly... I usually delegate Feb 28 22:29:21 or I should say forward, not delegate Feb 28 22:29:40 so the UI can set the listener and then forward the call to the presenter Feb 28 22:32:10 its a neat pattern, still trying to wrap my head around it Feb 28 22:32:43 it seems like it scales amazingly well. you could continue adding new views infinitely Feb 28 22:33:12 that's how I do it for iOS, anyway. I haven't applied it to android yet... I just stick to the general principle of keep the view stuff to the view and do otherstuff elsewhere Feb 28 22:33:40 does any using MultiAutoComplete fileds from support library and getting a resource not found bug/error on the preview panel? Feb 28 22:33:40 on android I had a harder time separating some of that logic out Feb 28 22:33:58 https://github.com/ribot/android-boilerplate Feb 28 22:34:03 if you're curious Feb 28 22:34:31 I've been using this as inspiration Feb 28 22:34:34 i'm getting this exception every time i try to use it https://dpaste.de/PPkF Feb 28 22:34:37 woho fixed my Failure [INSTALL_FAILED_DEXOPT] :D Feb 28 22:35:16 AND I got to keep instant run on :) (turning it off would have instantly solved the issue, but I wanted to keep it turned on to "hot swap" code if possible) Feb 28 22:37:19 oh silly me i forgot to call finish() Feb 28 22:37:21 ;p Feb 28 22:38:53 anyone tell me, I've created an Android project on one computer, checked into GitHub, then gone to my laptop and checked out, but I'm getting an error saying two modules cannot be loaded, both .iml's. Stackoverflow has questions, but no answers on how I should either check in or check out correctly. Feb 28 22:39:04 sorry if thats repeated, I got disconnected before. Feb 28 22:39:16 I have a RecyclerView.Adapter I'm working on. I've implemented onClick() in the ViewHolder, and I'd like to give a callback a reference to the underlying data of the item clicked Feb 28 22:39:57 I could give each ViewHolder a reference to the underlying list of the Adapter Feb 28 22:40:19 do you see anything wrong with that? Feb 28 22:49:45 andymccall - according to https://code.google.com/p/android/issues/detail?id=156708 it is not recommended to check iml files into version control Feb 28 22:52:03 basically it seems IML files should be ignored by your version control (e.g. git), because they should be generated whenever they are necessary Feb 28 22:58:26 I'm reading this: https://developers.google.com/android/guides/setup Feb 28 22:59:09 I don't know what to think about the phrase "Be sure you update this version number each time Google Play services is updated." Feb 28 22:59:32 isn't that a really really bad dependency? Feb 28 23:00:38 also where can I see the current version? Feb 28 23:00:50 SuperTyp: manifest Feb 28 23:00:58 well, of your app? or google play services? Feb 28 23:01:09 2nd Feb 28 23:01:15 obv :) Feb 28 23:01:16 build.gradle Feb 28 23:01:46 hu? Feb 28 23:02:06 of google play services? Feb 28 23:02:11 or what do you mean? Feb 28 23:02:28 well you pull in the google play services dependency in build.gradle Feb 28 23:02:42 find the right compile line, it will have the library name + version number Feb 28 23:03:47 yes but is the com.google.android.gms:play-services:8.4.0 the current version of play services? Feb 28 23:04:04 I know that I have to put it into the build.gradle file Feb 28 23:04:47 but in my build its not there yet Feb 28 23:10:19 yeah gradle doesn't help you with versions Feb 28 23:10:32 there are plugins. And maybe a way to check latest versions with Android Studio Feb 28 23:10:42 so I'm working on this Adapter: http://pastebin.com/HEnG0557 Feb 28 23:11:25 trying to figure out how to send a reference to the TrainStop that corresponds to the list item that was clicked Feb 28 23:11:29 is 8.4.0 the latest? Feb 28 23:12:03 SuperTyp http://www.apkmirror.com/apk/google-inc/google-play-services/ Feb 28 23:12:06 doesn't look like it Feb 28 23:12:30 thank you RustyShackleford Feb 28 23:37:31 what is the Dimensions , if am going to create a compass design using Photoshop , keeping in mind That this compass will Support all screens size , Feb 28 23:37:45 so I'm working on this Adapter: http://pastebin.com/HEnG0557 Feb 28 23:38:05 I want to send a reference to a TrainStop to MainActivity Feb 28 23:38:40 How can I parse XML file which doesn't contain the tag: "" Feb 28 23:39:47 I can parse xml files with the tag else I get this error: xmlpull.v1.XmlPullParserException: Unexpected token (position:TEXT [{"Id":0,"Task":...@1:530 in java.io.InputStreamReader@d4604d8) Feb 28 23:41:36 so I'm using a Toolbar in my activity and showing the home as up shows the actual up button, probably because this activity isn't the first activity displayed to the user, but for all intents and purposes it *should* be. is there a way to change that button to force it to be the home btuton? Feb 28 23:42:05 also calling setHomeButtonEnabled() doesn't seem to work either, because regardless of what the drawable is I still can't tap on it Feb 29 00:01:48 you just made no. sense Feb 29 00:10:54 Can you run parameterized tests with the AndroidJUnit4 test runner? Feb 29 00:11:25 no, you can't run any instrumented tests with parameters Feb 29 00:11:36 :/ thanks. Feb 29 00:25:14 "Gradle build finished with 2 error(s) in 360ms" => yet I cannot find any error messages at all besides this Feb 29 00:25:21 nothing indicating what the problem could be Feb 29 00:25:26 any ideas? Feb 29 00:27:08 invapid2, have you looked at the Event Log, and Gradle console in the bottom right Feb 29 00:27:13 (assuming android studio) Feb 29 00:29:15 hmm, I reset both of those logs and then re-ran it Feb 29 00:29:17 and no errors Feb 29 00:29:26 magic complete Feb 29 00:29:54 I've got a List as the backing data for my RecyclerView Feb 29 00:30:23 I want to return a reference to TrainStop back the the MainActivity that hosts the Fragment that hosts the RecyclerView Feb 29 00:33:01 when that item is clicked, that is. I've been poring over docs and examples, I've got no clue. You can implement View.onClicked() but that gives me a View, not a TrainStop Feb 29 00:38:27 I installed android studio last night with the intention of starting my first app I went for a 4.0.3 target so that I could use the app on older devices. Android studio hit me with this: http://imgur.com/D2Lfw0H any ideas? Feb 29 00:38:37 I have literally no experience with android dev at all Feb 29 00:38:48 and the very first thing I open up is broken Feb 29 00:39:11 did you clean and rebuild? Feb 29 00:39:14 yeah Feb 29 00:39:21 and I've reinstalled twice Feb 29 00:40:14 hm I might be wrong, but I think FloatingActionButton is part of a newer Android version than 4.x Feb 29 00:40:37 which would mean that that type of button is not available in that version of the API - let me check Feb 29 00:40:47 so clicking 4.0.3 in android studio when you make a new project means what exactly? Feb 29 00:41:28 after rebuild: http://imgur.com/cpuNXKs Feb 29 00:41:35 (different error) Feb 29 00:45:16 hm .. Feb 29 00:45:40 that one says the CoordinatorLayout is not available Feb 29 00:46:57 to me it sounds like you are trying to make the app run under some other API than you program it in - but I am not as experienced myself, mythril Feb 29 00:55:33 what is the easiest way to start developing an app targeting 4.0.3? Feb 29 01:03:44 mythril: pay someone to write it for you :p Feb 29 01:23:22 I've been looking at the "creating lists and cards" article on http://developer.android.com/training/material/lists-cards.html Feb 29 01:23:32 do you have to create a list, and then put cards inside of them? Feb 29 01:24:32 or are lists and cards two distinctly different things Feb 29 01:24:55 man... android is hard Feb 29 01:25:32 I'd say poorly organized more than difficult Feb 29 01:25:35 killed several hours trying to figure out how to detect touch events and get the data I want, where I want it Feb 29 01:25:55 I'm about to give up on RecyclerView and just use a ListFragment instead Feb 29 01:39:11 damn.. I wish there was a way to use a few of the AWT classes on android.. like IndexColorModel and WritableRaster, though I /think/ I could work around the latter.. Feb 29 01:46:08 um, no Feb 29 01:47:49 k Feb 29 01:49:29 :( I am trying to modify image4j in a way that it'd read ico files and display not only the first image (which BitmapFactory actually does when decoding), but any image within the ico file.. Feb 29 01:49:36 unfortunately image4j relies on AWT Feb 29 01:59:34 is there a good MVP example you'd recommend? Feb 29 01:59:56 something more fleshed out. I want to see how they implement responding to touch events, passing messages between activities/fragments Feb 29 02:02:32 http://pastebin.com/c5dW7Qwk - this started happening out of nowhere. Any ideas how to fix? :/ Feb 29 02:07:53 can anyone help me? I'm trying to get my toolbar to show the app icon (or any custom drawable) and be tappable to toggle my app's menu this is what I've got https://gist.github.com/hk0i/12884ae9c8ea4e8b9387 Feb 29 02:08:10 getToolbar() returns the instance of the toolbar Feb 29 02:08:11 RustyShackleford: i've been checking out nucleus lately, if your into rx perhaps give that a try Feb 29 02:09:00 impliednude: I think that may be causes be duplicate dependencies? im not sure Feb 29 02:09:04 the actual result is an uninteractable up arrow Feb 29 02:09:30 orbyt_: also trying to learn rx yeah Feb 29 02:10:32 RustyShackleford: im throwing together a bunch of real-world examples onto a github page because when i was getting into it there wasnt a whole lot of good tutorials, so maybe check that out once i complete it a bit more Feb 29 02:10:35 sorta trying to avoid learning yet another library Feb 29 02:10:51 nucleus is very small just fyi Feb 29 02:11:08 i'm looking at some code, doesn't look too bad Feb 29 02:11:28 so in MVP, what handles button presses? Feb 29 02:11:42 Presenter? Feb 29 02:11:43 grekkos: you need to do setActionBar() or setSupportActionBar() Feb 29 02:12:08 RustyShackleford: yea for the most part you have a dummy view and pass events to the presenter Feb 29 02:12:57 orbyt_: I'm setting it in the superclass the button actually shows so I know setDisplayHomeAsUpEnabled is working Feb 29 02:12:58 orbyt_> none of those files are even in my project. I am guessing proguard glitched :/ Feb 29 02:13:18 orbyt_: it's also not enabled. it's grayed out and I can't tap on it Feb 29 02:13:34 So I have MainActivity -> StopFragment -> RecyclerView Feb 29 02:13:46 grekkos: what super class Feb 29 02:13:58 the user presses an item in the RecyclerView, and now I want to pass that model back to MainActivity Feb 29 02:14:06 been pulling my hair trying to figure this one out Feb 29 02:14:25 orbyt_: one that I created called ToolbarActivity (https://gist.github.com/hk0i/f7cf05c4147a0d728fcd) Feb 29 02:14:44 grekkos: remember the toolbar is just another viewgroup, you can just throw an imageview in there on the left and then set a click listener on it for the same effect Feb 29 02:15:08 I thought it would be more intuitive to have the home button to its thing Feb 29 02:15:48 grekkos: I dont think you can set it in one activity and its set for all other activites, thats not how it works iirc Feb 29 02:15:49 orbyt_: I'm also using a DrawerToggle so I can use drawerToggle.onOptionSelected() Feb 29 02:16:19 man I really can't believe aparently no one tried to really read .ico files using android (e.g. favicon.ico) .. BitmapFactory only loads up first image and does not let me chose :/ Feb 29 02:16:38 RustyShackleford: theres tons of way to do that Feb 29 02:16:48 orbyt_: well actuall I just got the drawable to change, but I still can't tap on it Feb 29 02:17:14 create a listener, use an event bus, plenty of answers on SO Feb 29 02:17:36 orbyt_> Seems like others have run into the issue but there has been no fixes for it. :/ Feb 29 02:18:28 grekkos: im not sure what your trying to do, if your just wanting to set a drawable as the toolbars menu icon, i've already told you how to do it Feb 29 02:19:30 orbyt_: I'd like to use the home button for its intended purpose if possible Feb 29 02:19:36 the up button i guess Feb 29 02:21:03 impliednude: im almost positive its a duplicate dependency, make sure your not listing multiple .jar files or anything Feb 29 02:21:39 grekkos: the up button is the left arrow that appears when you go to an activity which has a defined parent activity Feb 29 02:22:30 orbyt_: unless you set home as up button, right? Feb 29 02:22:59 unless I'm getting confused here Feb 29 02:23:13 but this is how I've seen it used a number of times Feb 29 02:23:34 in my case the activity I'm trying to put it on isn't exactly the start activity Feb 29 02:24:20 grekkos: you ought to just post all your code on SO and link Feb 29 02:24:40 orbyt_: code examples would be great. Feb 29 02:24:44 * impliednude sighs Feb 29 02:24:51 I was playing around with some listeners Feb 29 02:25:00 but I can't get the right stuff where I need it Feb 29 02:25:24 RustyShackleford: what are you trying to do? Respond to a click event in a RV? Feb 29 02:25:38 where is the best place to start learning android development quickly? Feb 29 02:25:56 sector_0: im a fan of treehouse, check them out. Feb 29 02:26:07 lol^^ Feb 29 02:26:14 whys that funny Feb 29 02:26:19 yep. So I've got a List that backs up the RecyclerView. I would like to get a reference to that TrainStop that was clicked back in the Activity Feb 29 02:27:09 orbyt_, does this course use eclipse or the android studio? Feb 29 02:27:13 oh lol orbyt_ you were for real.. for a moment I thought you had a real treehouse in mind Feb 29 02:27:52 sector_0: um, i think some of them are a tad outdated and use eclipse, but they're updating them. For beginner level though it wont make a difference. Feb 29 02:28:24 sector_0: note that I mean what they use wont make a difference^, you should def use android studio Feb 29 02:28:45 orbyt_, yeah I'm using the android studio Feb 29 02:28:53 also intellij is so nice D: ever since I started working with AS, I started disliking eclipse Feb 29 02:29:23 but is there a course with perhaps another course that has more up to date info? Feb 29 02:29:58 sector_0: Do you have any programming exp? Feb 29 02:30:08 also I have great deal of experience with programming, and I know java, so preferably one that will just delve right to the point Feb 29 02:30:54 Udacity also has a course. Really though if you have java exp, id just get the very basics down and then just start building stuff. Feb 29 02:31:10 orbyt_: https://gist.github.com/hk0i/12884ae9c8ea4e8b9387 https://gist.github.com/hk0i/f7cf05c4147a0d728fcd I updated them, second one is the parent class Feb 29 02:31:11 youtube ofc is good as well Feb 29 02:31:55 sector_0: the udacity course is not too bad for getting the android specific things they assume you know java Feb 29 02:34:06 grekkos: that is the oddest setup ive ever seen. How is ToolbarActivity being launched? Feb 29 02:34:32 just the super call? Feb 29 02:35:15 toolbaractivity is the super class Feb 29 02:35:30 GameListActivity IS A ToolbarActivity Feb 29 02:36:17 ToolbarActivity is abstract Feb 29 02:38:06 grekkos: are you sure getSupportActionBar isnt null? Feb 29 02:38:21 orbyt_: I'm pretty sure I'd crash with an NPE if it were Feb 29 02:38:37 but i'll double check Feb 29 02:39:05 it's not null Feb 29 02:39:16 setHomeAsUpIndicator() is working Feb 29 02:39:21 just nothing else seems to be Feb 29 02:39:29 grekkos: im not sure mate, i've never seen an activity used like that. The toolbar would be tied to the activity I presume, so setting setActionBar() in TBActivity im guessing would only be valid for that Feb 29 02:39:41 are you using a .noactionbar style? Feb 29 02:41:26 orbyt_: yeah Feb 29 02:41:49 orbyt_: I create the toolbar manually though and set it so I'm not sure if it would affect it Feb 29 02:43:22 grekkos: then you've lost me mate. Setting a toolbars menu icon is very simple. Feb 29 02:45:36 orbyt_: icon is set now, I just can't click on it Feb 29 02:45:37 ahhh I can't figure this out Feb 29 02:45:49 do I realy need EventBus to pass messages around? Feb 29 02:46:04 what are you trying to do RustyShackleford ? Feb 29 02:46:21 So I have MainActivity -> StopFragment -> RecyclerView Feb 29 02:46:29 and Feb 29 02:46:29 the user presses an item in the RecyclerView, and now I want to pass that model back to MainActivity Feb 29 02:46:37 hmm Feb 29 02:46:41 well you could send an intent Feb 29 02:46:47 i'm not sure if that's the best way Feb 29 02:46:58 why does the mainactivity need it? Feb 29 02:47:13 do use it as an argument to create the next fragment Feb 29 02:47:17 instead of trying to pass it up, why don't you pass something down Feb 29 02:47:23 ah i see Feb 29 02:47:28 so how about this Feb 29 02:47:31 implement a method in your fragment Feb 29 02:47:36 your fragment can see the model right? Feb 29 02:47:37 maybe Feb 29 02:48:03 uhh maybe. I ws playing around with Listeners but I can't seem to get references to all the stuff I need Feb 29 02:48:05 RustyShackleford: you can do it all with event listeners Feb 29 02:48:23 so which class knows about the models? Feb 29 02:48:32 You have a ListAdapter somewhere maybe? Feb 29 02:49:20 yes there is a RecyclerView.Adapter Feb 29 02:49:37 I was implementing onClick in the ViewHolder, but then I don't have a reference to TrainStop Feb 29 02:50:06 RustyShackleford event bus is easy way out / quick hack - nice for some things, but often not so good Feb 29 02:50:12 think of it a s a global variable Feb 29 02:50:16 yeah Feb 29 02:50:19 that's why I don't like event bus Feb 29 02:50:22 ehhh I dunno. Another library to learn Feb 29 02:50:23 except one that changes ;) Feb 29 02:50:49 RustyShackleford: You mean the list item? Why dont you have a reference to it..? Feb 29 02:50:54 hi Feb 29 02:51:06 orbyt_: onClick(View view) Feb 29 02:51:17 the view doesn't have a reference to the model Feb 29 02:51:33 anyone knows what SYSTEM_UI_FLAG_LAYOUT_STABLE is doing? don't really get the doc Feb 29 02:51:45 I'm not sure about how the recycler view works exactly I havne't used one yet Feb 29 02:51:48 Toubs yeah thats confusing as hell Feb 29 02:52:07 in your recyclerview you obviously have a List<> of data correct? Use the position of the item to get the proper one out of the list Feb 29 02:52:11 Toubs they kept adding flags ... MOAR flags ! Feb 29 02:52:35 yes and can see no difference if I use this flag or not... Feb 29 02:55:02 Toubs the LAYOUT variants specify to layout things AS IF they had full screen Feb 29 02:55:14 eventbus is easy, but it makes reasoning about your code hard Feb 29 02:56:02 yes the LAYOUT_Fullscreen and hide navigation but LAYOUT_STABLE Feb 29 02:56:11 pfn> you're very knowledgable. why would upgrading adt in android studio cause a project to start doing this. http://pastebin.com/c5dW7Qwk. and how can I fix it Feb 29 02:56:39 upgrading ADT in android studio ... Feb 29 02:57:04 I updated android studio as it asked me too. then I started getting that error. And I am guessing its adt since others said it might be Feb 29 02:57:26 runMonoDex - using mono ? Feb 29 02:57:29 android studio doesn't have adt Feb 29 02:57:55 Then, nix that. Why would upgrading android studio cause it to do that. :/ Feb 29 02:57:58 you have a duplicate class, remove it Feb 29 02:58:03 it wouldn't Feb 29 02:58:08 That duplicate class is guardby Feb 29 02:58:10 you fucked up your build Feb 29 02:58:21 yes, that's what the error says, fix it Feb 29 02:58:39 which is a part of android studio. not the project itself >.> Feb 29 02:58:45 nope Feb 29 02:58:51 it's part of your project Feb 29 02:58:54 None of those files are found Feb 29 02:59:00 false Feb 29 02:59:20 I did a find under the project tree and none are there Feb 29 02:59:36 that's not the only part of your project Feb 29 02:59:45 gradlew app:dependencies **** ENDING LOGGING AT Mon Feb 29 02:59:58 2016