**** BEGIN LOGGING AT Fri Aug 01 03:00:00 2014 Aug 01 03:45:17 anyone done a master-detail with just one Activity? Aug 01 03:45:31 i would say the majority of people Aug 01 03:45:57 bankai_au all the tutorials use two, it seems like the gmail app does too. how was it, if you did? Aug 01 03:46:41 there's an example on d.android.com that talks about how to do it, it's one of the 'fragment introduction' ones Aug 01 03:50:32 mattblang_ did you see the commonsware presentation on master detail ? Aug 01 03:50:43 g00s I did not Aug 01 03:50:59 http://commonsware.com/blog/2013/11/15/introducing-cwac-masterdetail.html Aug 01 03:51:10 presentation on top Aug 01 03:51:30 it is kinda pita ;) Aug 01 03:51:51 g00s lol, the master-detail in general, or the commonsware? Aug 01 03:52:01 master detail Aug 01 03:52:10 the devil is in the details Aug 01 03:52:13 g00s yeah, i would agree Aug 01 03:53:14 see slide 5 Aug 01 03:53:15 g00s ive got it working perfectly, but I implemented it in the list activity, not the detail activity, and the client wants it the other way around Aug 01 03:53:45 mattblang_ hm, so the client wants 2 activities ? Aug 01 03:54:52 g00s ive got a list activity, and a detail activity. i implemented the master-detail in the list activity. I think gmail does it in the detail activity Aug 01 03:55:16 because if you flip gmail to landscape in the list, you just get a long list. then if you click one you go to master detail Aug 01 03:55:33 mine is opposite, if you flip in detail you just get a wide detail view, but if you flip in the list you get the master-detail Aug 01 03:55:51 oic Aug 01 03:55:56 but the client wants it to be like the gmail app. really though, he wants it to go to master-detail from either screen, which would require a single activity Aug 01 03:56:02 just wasn't sure how hairy it would get Aug 01 03:56:23 lots of managing state Aug 01 03:56:32 g00s yeah, not looking forward to that :( Aug 01 03:56:47 g00s i would just implement master-detail in both list and detail activity, but then back button would be jacked up there Aug 01 03:56:48 almost need a little rule engine :) Aug 01 03:56:55 g00s since there'd be the illusion of it not working on first press Aug 01 03:57:50 g00s i think ill probably just do it like the gmail app, with the "entry" point being on the detail Aug 01 03:58:03 so if the list is flipped to landscape, it will just be long until they click one Aug 01 03:58:16 i like working on the non-UI parts of my app Aug 01 03:58:23 all this stuff drives me nuts Aug 01 03:58:33 Why not just work it like you would if you were designing for tablet? Aug 01 03:58:44 Anthaas that is what im doing Aug 01 03:59:00 Ahh, was beginning to get lost :P Aug 01 03:59:12 Anthaas yeah, we only allow landscape on our tablets Aug 01 03:59:17 i got lost ages ago, i didn't think this kinda thing was overly complex :S Aug 01 03:59:28 bankai_au that is the frustrating part, it does't seem like it Aug 01 03:59:34 but like g00s said, the devil is in the details Aug 01 03:59:41 I hate holding my tablet landscape unless I really need it to be. Aug 01 03:59:58 mattblang_ little details like hidden fragments putting shit in menus :) Aug 01 04:00:08 Anthaas I almost always use my tablet in landscape. do you have 7 or 10 Aug 01 04:00:23 7 Aug 01 04:00:25 g00s yeah I know man. i started out learning fragments to do master-detail. not a good idea to try that when you are just starting to learn fragments. Aug 01 04:00:33 Anthaas yeah, a 7 I might do portrait Aug 01 04:00:58 g00s I hated on fragments for the longest. now that I have used them for doing some tab and view pager stuff, I actually like them Aug 01 04:00:59 rumor has it the next nexus tablet is 4:3 or something Aug 01 04:01:39 g00s but when I had only tried doing master-detail, I hated fragments. I think its because of the little stuff like we have been talking about. drives ya nuts Aug 01 04:27:40 I'm teste achievement using Google Play Game Service. How I erase achievement unlocked in tested account without delete achievement then recreate Aug 01 04:27:56 teste = testing Aug 01 04:57:54 capella do anything with underscore.js ? http://underscorejs.org/ Aug 01 04:59:16 g00s: interesing Aug 01 04:59:41 i learned about it from a book (gasp!) Aug 01 05:00:00 "Functional Javascript" Aug 01 05:05:15 capella have you read "Effective Javascript" ? Aug 01 05:05:38 http://www.amazon.com/Effective-JavaScript-Specific-Software-Development/dp/0321812182 Aug 01 05:06:01 still putting together my JS corriculum, almost done :) Aug 01 05:06:17 ah ... good luck :) Aug 01 05:11:12 why do fragments have different life cycles than that of activities Aug 01 05:11:13 :( Aug 01 05:12:36 because they are different from activities Aug 01 05:13:27 why are they different. Aug 01 05:17:00 detachYo did you post that perl story on HN the other day :P the first time i recall perl being on the front page ;) Aug 01 05:18:38 g00s: hi Aug 01 05:19:09 i didn't do it Aug 01 05:20:03 I am struck up with some concept issues here. I want to develop an application which takes data from the database and displays it in the UI dynamically Aug 01 05:21:15 ok Aug 01 05:21:15 I want to follow this. The UI will entirely take care of the graphics part.then the DAO(data access object and datasource) which will communicate with the db and the Model class and factory class Aug 01 05:21:55 In this way every part will do its duty instead of a static approach. Aug 01 05:22:46 Can you redirect me to some tutorial on this(some links which I can refer)? Aug 01 05:23:03 g00s, must've missed it, what was it about? TBH, I haven't seen many Perl stories either. Aug 01 05:23:07 on HN, that is Aug 01 05:23:20 hm, i don't use DAOs ... just plain cursors. i can't think of a tut offhand niru Aug 01 05:23:33 I am having a weird issue. Aug 01 05:24:11 I have a method in my class that extends BaseColumns Aug 01 05:24:31 that does return CONTENT_URI.buildUpon().appendPath(itemId).build(); Aug 01 05:24:44 ok g00s Aug 01 05:24:51 Then in provider's query method, I have one that takes care of it, but I get an error Aug 01 05:25:03 which is not being explicit enough for me to understand what's going on Aug 01 05:25:15 maybe I need to know how to throw exceptions correctly. Aug 01 05:46:04 Hello Aug 01 05:46:08 Anyone here use mopub? Aug 01 05:46:22 I'm trying to integrate admob correctly and can't figure something out. Aug 01 05:46:46 It's asking for a username, API password, and API key Aug 01 05:47:00 but there is no way to get this from admob.... so I am really confused Aug 01 05:52:20 not sure if oath works right Aug 01 05:54:55 never mind Aug 01 06:47:23 anyone around Aug 01 06:47:32 Agamemnus: yes Aug 01 06:47:40 wondering why I can't invoke jarsigner outside its own directory :\ Aug 01 06:47:55 whenever I do this, I get "please specify alias name" Aug 01 06:48:23 Even if I do 'C:\"Program Files"\Java\jdk1.8.0_11\bin\jarsigner -help' Aug 01 06:48:53 what it is saying? Aug 01 06:49:50 that is it Aug 01 06:50:29 Please specify alias name Aug 01 06:50:38 Please type jarsigner -help for usage Aug 01 06:51:01 If I CD inside the directory, it works Aug 01 06:51:49 I can pass to my second activity ArrayList, right? Aug 01 06:52:20 simply i2.putExtra("playlist", playlist); ist not working Aug 01 06:53:09 look up and see what putextra takes Aug 01 06:53:15 its not an arraylist, ill tell you that Aug 01 06:56:01 I've read I need to serialize it Aug 01 06:58:18 Agamemnus, it's really simple - jarsigner is actually a generic batch file used for invoking .jar files, however it seems it is poorly written and only looks for needed .jars in the current directory Aug 01 07:13:23 ravilov: okay, got it. thanks Aug 01 07:37:36 so, passing ArrayList to intent is not one-liner? Aug 01 07:45:25 i've found this example: http://pastebin.com/AvhRawWF Aug 01 07:45:30 should this work? Aug 01 07:46:27 why don't you try it an see? Aug 01 07:48:39 problem solved Aug 01 07:54:26 maybe http://www.parcelabler.com/ is useful for next time Aug 01 07:56:36 There's also a neat IDEA plugin :) Aug 01 07:58:10 AutoParcelable Aug 01 07:58:46 https://github.com/frankiesardo/auto-parcel Aug 01 07:58:49 Never tried it Aug 01 07:58:49 cool, I haven't tried it Aug 01 07:58:50 thanks Aug 01 07:58:52 But it's there :p Aug 01 08:13:12 how does one handle onBackButtonPressed when the configuration changes i.e when screen orientation changes Aug 01 08:21:53 gmg85: I'm not sure what you mean? when the screen orientation changes you should rebuild your activity in exactly the way it was before, so the back button works just the same>? Aug 01 08:23:38 onBackButtonPressed doesn't fire when i start my app in landscape mode.. Aug 01 08:23:51 wonder what i might be doing wrong Aug 01 08:27:50 onBackButtonPressed should not be orientation-dependant at all Aug 01 08:27:56 i think i found my problem Aug 01 08:28:18 the problem is that on landscape mode the nav drawer is open Aug 01 08:28:49 and I havent called setFocusableInTouchMode Aug 01 08:29:02 according to some explanation on stackoverflow Aug 01 08:30:18 yup Aug 01 08:30:21 that was it Aug 01 08:33:02 hi guys i have installed Ubuntu 12.04 LTS on a vmware and now i am tring to Install required packages Aug 01 08:33:08 but i cant seem to get libgl1-mesa-glx:i386 installed Aug 01 08:33:52 i get this error http://pastebin.com/AMe5Fbuz Aug 01 08:34:32 Ubuntu?Wrong room buddy Aug 01 08:34:48 i am following this http://source.android.com/source/initializing.html Aug 01 08:34:57 oh Aug 01 08:35:18 my bad Aug 01 08:35:20 still not really the right channel... Aug 01 08:36:04 is it really required i skipped it and every thing seemed ok Aug 01 08:39:10 hello everybody. Aug 01 08:39:41 i have a requirement in which i have i have 2 views one above the another . Aug 01 08:40:08 when i click the upper view i want to get the id of the below view. Is there any way i can do that ? Aug 01 08:40:38 surely they both belong to a single root view Aug 01 08:43:23 ok Aug 01 08:43:47 but i need to id of that particular view which i under my current clicked view Aug 01 08:44:04 my current clicked view is movable . I can drag and drop it anywhere Aug 01 08:45:13 that's not a probelm Aug 01 08:45:15 problem* Aug 01 08:46:08 getRootView().findViewById(ID) Aug 01 08:47:41 oh wait, I think I understand now - you don't know the ID, you just want to know which view you are over? Aug 01 08:47:47 hmmm Aug 01 08:47:51 correct Aug 01 08:48:06 i may be knowing the x and y coordinates of the view Aug 01 08:51:13 this is actually trickier than it might seem and cannot be answered accurately without further knowledge of your situation Aug 01 08:51:50 when exactly are you considered to be "over" a view? when your "floating" view merely touches the other view, or when it's fully inside it, or partially, or...? Aug 01 08:52:38 Is it possible to select a higher dpi class drawable explicitly? Aug 01 08:54:43 platzhirsch, I've seen some apps fetch strings from a different locale by changing the locale field in the local Configuration instance, perhaps a similar thing can be done with the densityDpi field? Aug 01 08:55:04 ravilov: the situation is something like this . Aug 01 08:55:08 ravilov: but maybe it's not necessary I am looking into supporting tablets, maybe using the new layout qualifiers it works withou tthat Aug 01 08:55:21 i have a floating view which i can drag to any place i want Aug 01 08:56:04 platzhirsch, yeah I'm not going into details about your specific case but generally you should configure your resources as accurately as possible and then let the system manage them Aug 01 08:56:18 sunny_slls, yes I got that Aug 01 08:56:51 i can leave this view at any point on my activity. My activity contains many other views. When i leave this view above any particular view i want to know the ID of that view Aug 01 08:57:07 Do I need to change anything in my app due to the changes to the Advertising ID, even though I don't actually advertise? Aug 01 08:57:13 ravilov: based on that ID I want to print the name of that view Aug 01 08:57:35 i mean the text Aug 01 08:58:10 sunny_slls, you're missing my point Aug 01 08:58:19 define "above a view" Aug 01 09:02:34 ravilov: the above view is nothing but an imageview with an image in it Aug 01 09:03:13 onTouch() of this imageView i am trying to update the position of the view based on the calculated coordinates Aug 01 09:04:20 sunny_slls, I don't care what the view is, define what "above a view" actually *means* Aug 01 09:05:22 ravilov: means that it will be at the top of another view. Aug 01 09:05:49 that says nothing... Aug 01 09:06:13 consider a scenario that you have an image1 and image2 in a layout. Image1 is on the left hand side of the layout and image 2 is on the right hand side of the layout Aug 01 09:07:00 ravilov: now i drag image2 to the left hand side of the layout. So now you won't be able to see image1 because image2 is on top of that Aug 01 09:07:46 ok, so your definition of "above a view" is "fully contained within another view" Aug 01 09:07:49 correct? Aug 01 09:07:50 consider image1 is bigger than image2 . then in that case when you drag image2 on image1 then you can only see some parts of image1 which are not hidden by image2 Aug 01 09:07:59 correct Aug 01 09:08:25 sorry for my lousy description Aug 01 09:08:34 so if I drag the image only two-thirds of a way (so that only 2/3 of the view is inside another view), that's not considered "above" Aug 01 09:08:38 correct? Aug 01 09:09:07 yeah .. you can say that Aug 01 09:09:26 ok, because such details are actually very important Aug 01 09:10:02 anyways the important part is that i want the hidden image's id Aug 01 09:10:11 yeah I get that Aug 01 09:10:12 well Aug 01 09:10:14 the view which got hidden Aug 01 09:11:42 I guess you'll just have to walk through the view hierarchy (checking if a view is a ViewGroup, if so walk through all its children, if not just check the view), get the current layout parameters for each view (x, y, width, height), and compare them to your "floating" view's current position Aug 01 09:12:20 if you determine your floating view with its current position and size fits fully within a particular view, then there you go, you found your view Aug 01 09:12:33 probably not the best way to do this but I can't really think of any other Aug 01 09:14:44 ok thanks Aug 01 10:08:57 Hello Aug 01 10:09:05 One question Aug 01 10:09:12 yay, b0t is back! Aug 01 10:09:27 Uf man Aug 01 10:09:34 U live here? Aug 01 10:09:45 Didn't I ban him? Aug 01 10:11:01 Guess he was smart enough to figure out it was a nick ban Aug 01 10:11:05 Most aren't :p Aug 01 10:11:30 he's been using a couple of different nicks anyway Aug 01 10:11:44 but you're probably right Aug 01 10:12:56 He's angry now Aug 01 10:13:19 wonder why :p Aug 01 10:13:26 yeah, they do that Aug 01 10:14:20 >.< Aug 01 10:34:18 Hello ! What is the best library to draw histograms on Android ? Aug 01 10:42:52 Chainfire, are you Chainfire of SuperSU? if so, I could use some advice :) Aug 01 10:44:11 I want to show an animation that slides in a fragment. That is, when the fragment is added/shown, it should appear gradually, sliding in from the top. I have a layout and some code that does this, except its only the textview inside my fragment that is animated - the fragment itself, including its background color, appears and disappears directly without any animation. What gives? Layout: http://bpaste.net/show/1f5fUKTNxiKn6NOzORQ2 - Code: http://bpaste. Aug 01 10:45:33 liefer: your last paste url was cut short because your message was too long Aug 01 10:45:58 Oh, thanks. My irc client sucks, didnt warn me about that =S Aug 01 10:46:05 code: http://bpaste.net/show/J3VqNsioRe6FrllICKhJ/ Aug 01 10:46:35 liefer: weechat automatically splits it into several messages. ^^ Aug 01 10:47:25 liefer: whats with this layout? its this suppose to be your activity layout? Aug 01 10:47:59 Napalm: hmm? yes Aug 01 10:48:12 liefer: so where is your fragment's layout? Aug 01 10:48:19 I add my "_bottomFragment" to the overlay_fragment id Aug 01 10:49:33 you do understand this activity layout is screwed up Aug 01 10:49:39 it probably is not going to do what you want Aug 01 10:50:03 Is it? What do you mean its screwed up Aug 01 10:50:09 do you want your overlay_fragment to put its content over the top of the rest of things? Aug 01 10:50:16 Yes Aug 01 10:50:51 can you draw a picture with some colored blocks as to how you expect things to be laid out. and upload it Aug 01 10:51:03 Sure, give me a sec Aug 01 10:55:59 hello Aug 01 10:56:09 I require some help...with a multiselectlistpreference Aug 01 10:56:14 Napalm: https://dl.dropboxusercontent.com/u/462241/Untitled.png Aug 01 10:56:14 how can I make it select all by default? Aug 01 10:56:33 My drawing skills are.... lacking to say the least. But hopefully you can make sense of it Aug 01 10:57:01 heh Aug 01 10:58:29 Like i said, i feel like im almost there, since the textview inside my overlay_fragment behaves as i want. Its "just" that the fragment background, does not. It is not being animated but instead appears "on/off"-ish with no animation Aug 01 10:58:55 I fixed it Aug 01 10:58:57 liefer: edit your layout and rename your LinearLayout's to FrameLayout and remove android:orientation attributes and see how it behaves. Aug 01 10:58:59 I needed to setDefaultValues Aug 01 10:59:56 Is it a problem that I have about 3000 Log.e("testing", "test1");s? Aug 01 11:00:01 liefer: also, whats the layout for your bottomFragment look like Aug 01 11:00:52 Moony22: i guess it would be a problem if your trying to find a bug and all you can see is testing, test1 Aug 01 11:03:01 Napalm: BottomFragment is here: http://bpaste.net/show/daIvmF9vklnBJwaC6LQ6/ Aug 01 11:03:33 I changed the LinearLayouts to Framelayouts, no apparent change in behavior Aug 01 11:03:40 good Aug 01 11:03:49 its a tad more optimal now Aug 01 11:04:31 SimonVT: I stepped away from my PC for a bit :) Aug 01 11:04:53 liefer: now change your RelativeLayout to a LinearLayout in your BottomFragment and get rid of the RelativeLayout layout params and add android:orientation="horizontal" to it Aug 01 11:05:28 liefer: let me send you a new layouty Aug 01 11:07:16 Napalm: can you paste it somewhere? I dont think i can accept file transfers Aug 01 11:07:40 liefer: http://bpaste.net/show/8feSLGVQ138RFqKcNuHl/ Aug 01 11:07:40 hello friends :) i have a question. I built a whole android from aurora code, then i modify some .java files from framework/base/services and make services.jar. Now, how to replace it correctly? (i have eng build with root on my device) And sorry for bad english :) Aug 01 11:08:43 Cause when i'm trying simply push and chmod 644 it stocks in a boot loop Aug 01 11:08:45 liefer: also make sure you set text on those text' views during onCreateView or onViewCreated of your bottomfragment.. or the view might not be measured and laid out ready for the animation to occur Aug 01 11:10:04 liefer: i forgot the orientation attribute, updated: http://bpaste.net/show/rlra3iCBKWykgqVPxXbR/ Aug 01 11:12:28 Napalm: thank you, trying... Aug 01 11:15:41 Napalm: hmm i dont see much change to be honest. I was not setting the textviews previously, but now im setting their text in onViewCreated() Aug 01 11:16:24 can i make small queries to sqlite local db in UI thread or it is wrong way and i should use loaders or background threads? Aug 01 11:17:30 Napalm: actually i can set them as early as in onCreateView(), although that does not appear to change anything Aug 01 11:21:07 hmm Aug 01 11:22:59 liefer: so you see the TextView's and their content animate.. but just not the background? Aug 01 11:25:24 v_for_vasiliev, that is indeed the correct way to replace the file, the fact it makes the system bootloop means your new services.jar is probably not valid; you can't just simply change system services without having deep impact on the entire rest of the system Aug 01 11:25:37 that's another thing I learned the hard way Aug 01 11:26:06 Napalm: correct Aug 01 11:27:04 liefer: doh, what version of Android are you testing this on? Aug 01 11:27:44 ravilov: thanks :) Aug 01 11:27:49 Napalm: 4.1 Aug 01 11:28:39 damn, not what I thought Aug 01 11:28:54 liefer: ok, does the background show up.. after the animation has finished? Aug 01 11:29:35 The background shows up first, "on/off"-ish (dont know how else to describe it. Without any animation). Then the textviews are animated in Aug 01 11:30:29 yo? Aug 01 11:32:17 Napalm: uh, i fixed it Aug 01 11:32:30 I dont understand why :( Aug 01 11:32:41 I set "android:animateLayoutChanges="true"" in the fragment container view Aug 01 11:32:44 and it works Aug 01 11:32:51 lol Aug 01 11:33:06 Why is that necessary when i explicitly say that my fragment transaction should do an animation? Aug 01 11:33:14 it isnt Aug 01 11:33:24 It works, though Aug 01 11:33:24 if you remove your customAnimations Aug 01 11:33:31 you'll notice it still animates Aug 01 11:33:39 because the layoutchanges is providing the animations Aug 01 11:33:55 meh, it works, so just be happy Aug 01 11:34:07 Yes, but it uses my custom animation. Sliding in from the top is not the standard animation AFAIK...? Aug 01 11:34:28 Im happy :). But always nice to actually understand whats going on :P Aug 01 11:35:02 SQLiteDatabase.update with simple 'where' fast enough for run it on UI thread, people? Aug 01 11:37:32 Nevermind, that IS the standard animation provided by the layoutchanges Aug 01 11:38:12 any tips about how i can hide a preference in an app settings like this? https://github.com/danieloeh/AntennaPod/blob/master/src/de/danoeh/antennapod/preferences/UserPreferences.java Aug 01 11:38:27 This is weird. Should investigate wtf is going on another day. Oh well, thanks a lot for your help Napalm Aug 01 11:42:58 hey guys, I imported a project to Android Studio, everything went well but it didn't pull in anything related to git for that project. What can be done? Aug 01 11:43:54 ondroed, that question is way too broad Aug 01 11:44:06 When migrating from Eclipse to Android Studio, for the remote repo, what is recommended? Create a entire new repository for it? Aug 01 11:46:31 mikechelen, what exactly do you need to do? just hide/remove a preference from a preference screen? Aug 01 11:46:46 ravilov: yup thats right Aug 01 11:47:24 ravilov: i was looking at https://stackoverflow.com/questions/2240326/remove-hide-a-preference-from-the-screen but cant figure out how to apply it Aug 01 11:47:40 many ways to do this, depending on what info you have available Aug 01 11:48:12 using PreferenceGroup.removePreference() is one way Aug 01 11:48:16 ravilov: thats the confusing part, i dont have a PreferenceScreen afaik Aug 01 11:48:31 or a PreferenceGroup :D Aug 01 11:49:24 i have a UserPreferences Aug 01 11:49:53 yes which is your "invented" class Aug 01 11:50:03 are you using standard android preferences at all here? Aug 01 11:50:06 doesn't seem like you do Aug 01 11:50:08 oh i think PreferenceScreen is in another file Aug 01 11:50:19 in css its normal to utilise strips of icons/images and then use a background offset to display the correct image on screen from a single downloaded "strip of images". Is there anything similar in Android or is it best to keep all bitmaps as seperate files? Aug 01 11:50:28 it's someone else's code im trying to figure it out Aug 01 11:50:30 what you posted looks like just your own preference manager Aug 01 11:50:37 hm, well post your own code Aug 01 11:50:49 well this is what im trying to modify Aug 01 11:50:53 and contribute to the project Aug 01 11:51:22 rgr, this technique has a very specific background and reasoning that applies very well to css/http, but does not apply at all to android Aug 01 11:52:04 rgr, while you *can* do it that way, it is extremely inefficient and requires a lot of manual work Aug 01 11:52:09 so there really is no point Aug 01 11:53:18 ravilov: ah well i found https://github.com/danieloeh/AntennaPod/blob/master/src/de/danoeh/antennapod/activity/PreferenceActivity.java maybe that will do the trick Aug 01 11:57:13 mikechelen, that's better, but I would also need preferences.xml (as referenced by line 78 in that file) and also the name of the preference you want to remove Aug 01 11:58:32 ravilov: preferences.xml: https://github.com/danieloeh/AntennaPod/blob/master/res/xml/preferences.xml Aug 01 11:59:05 lets says for example "prefPauseOnHeadsetDisconnect" Aug 01 12:04:27 mikechelen, looks like the last answer posted on stackoverflow should work in your case Aug 01 12:05:37 ravilov: cool thanks, im trying that now Aug 01 12:05:42 a PreferenceActivity can obtain references to both PreferenceScreen and PreferenceManager via the appropriate methods, from thereon it should be simple Aug 01 12:08:29 ravilov: any particular place the code should go, is within onCreate() ok? Aug 01 12:10:22 mikechelen, anywhere after "addPreferencesFromResource(R.xml.preferences);" is okay Aug 01 12:14:57 ravilov: hmm it doesnt seem to have an effect Aug 01 12:14:57 Out of interest, what would the difference be between PreferencesManager.getDefaultPreferences(context), and getSharedPreferences(String name, int mode) ? Aug 01 12:15:16 Anthaas: the former just calls the latter but with a standard default string Aug 01 12:15:19 basically Aug 01 12:15:35 Ahhh, so each app has some default preferences (I assume private?) set up for it? Aug 01 12:16:00 Not "set up" really, it's just a standard name I think Aug 01 12:16:25 hy all Aug 01 12:16:53 Ahh, trying to understand what you mean by standard? Is the instance of preferences set up when the app is created, or is there like a common collection? Aug 01 12:17:05 does anybody have android phone what's proximity sensor measures distance in centimeter and not with 2 values? (far/near) Aug 01 12:17:25 ravilov: this is the current code snippet: http://pastebin.com/i4ggKaEa Aug 01 12:18:05 Anthaas, yes, the default shared preference file for an app is "[PACKAGE]_preferences.xml" Aug 01 12:18:15 Ahhh cool thanks. Aug 01 12:18:26 Are they private? Aug 01 12:18:34 yes? Aug 01 12:18:38 i.e. can't be modified by another app that knows the name of some app on the device? Aug 01 12:18:40 ahh ok thanks. Aug 01 12:18:57 Anthaas: you can have different collections of shared preferences that you might use depending on a context. So I might use getSharedPreferences("statusPrefs", 0) to store a load of status codes and getSharedPreferences("user1", 0) to store preferences related to user1 (or 2, 3 etc.). getDefaultSharedPreferences is basically the same as getSharedPreferences("default", 0). Aug 01 12:19:00 they are stored within the app's private folder (within /data/data) which is itself private to the app Aug 01 12:20:05 Brilliant, thanks. Aug 01 12:20:05 mikechelen, first of all, you shouldn't use a hardcoded constant -- replace "16" with Build.VERSION_CODES.JELLY_BEAN Aug 01 12:20:43 Hey everyone, does anyone know if it is possible to upload apks with incremented version codes but with the same version name? Aug 01 12:20:55 mikechelen, second of all, are you sure your condition meets the requirements (ie. the API level)? try running it unconditionally, ie. remove the "if" around it Aug 01 12:21:46 somebody? Aug 01 12:21:49 ravilov: ah ok ill try it that way, i am running in a 3.2 avd Aug 01 12:23:21 3.2 is HONEYCOMB_MR2 which is 13 which is obviously less than 16 so it should work... but try unconditionally just in case Aug 01 12:23:34 ravilov: tried it, still no dice Aug 01 12:24:19 ok, try removing getPreferenceManager() in your block Aug 01 12:24:39 so it ends up like this: Preference pref = findPreference("prefExpandNotify"); Aug 01 12:25:16 ok one sec Aug 01 12:26:46 nope still no change Aug 01 12:27:51 ok, next check if pref is null Aug 01 12:28:04 use your favorite way to check this, mine is System.err.println() ;) Aug 01 12:29:06 mikechelen, er, wait... "prefExpandNotify" is not mentioned anywhere within that XML Aug 01 12:30:13 ravilov: ah sorry thats the upstream ill link my fork Aug 01 12:30:43 https://github.com/mchelen/AntennaPod/blob/notifymore/res/xml/preferences.xml Aug 01 12:31:08 for null check something like: if(pref == null){Log.d,"foo","pref is null"} Aug 01 12:31:23 sure, that should work Aug 01 12:32:05 and yeah, always link YOUR OWN code, linking to other code is useless and just confusing, even if your code is based on other code Aug 01 12:32:25 anyway, if pref is null, I think I know why Aug 01 12:32:40 yup true, i didnt notice it was the wrong tab Aug 01 12:34:07 mikechelen, if pref is null, try working with findPreferenceInHierarchy() instead of findPreference() Aug 01 12:34:38 ravilov: it appears to not be null, i am not seeing my log message Aug 01 12:35:14 you should just skip any "if" checks and print it out directly Aug 01 12:35:25 that way you know it actually gets to that part of code Aug 01 12:35:44 Log.d("pref", pref); Aug 01 12:35:58 ravilov: yeah thats what I thought : the main and only reason I was thinking of something like that was to reduce the number of drawables for things not requiring any specific efficiency in terms of runtime. eg menu icons. afaik I still cant use directories and the whole prefix_ notion is SO 1986... Aug 01 12:36:29 ravilov: i got a compilation error from that, error: no suitable method found for d(String,Preference) Aug 01 12:36:57 mikechelen, ok, try Log.d("pref", (pref == null) ? "NULL" : "NOT NULL"); Aug 01 12:37:39 rgr, yes, you can't use subdirs, so you're stuck with prefixes just like the rest of us Aug 01 12:37:42 that's the android way :p Aug 01 12:38:07 eventually you might get used to seeing underscores as slashes Aug 01 12:38:24 (probably not) Aug 01 12:39:32 ravilov: ok it says "NOT NULL" Aug 01 12:39:44 rgr, the android way is to also have as many drawables as you need and to never attempt to "compress" several into one, reason being some drawables are used in a very specific way (hint: 9-patch PNGs) Aug 01 12:39:59 mikechelen, hm, I see Aug 01 12:42:16 Anthaas, ... you asked that not an hour ago Aug 01 12:42:25 ... oops dangit Aug 01 12:42:26 hmmm? Aug 01 12:42:29 ravilov: i guess alternatively i could take the preference out of the .xml and add it manually in the activity within an if block Aug 01 12:42:29 was scrolled back Aug 01 12:42:30 sorry Aug 01 12:42:42 Anthaas, carry on, my bad Aug 01 12:42:44 Oh, np haha Aug 01 12:43:03 Was just looking at Googles IO code which made me ask. Might as well make myself better by doing a few things they do I guess Aug 01 12:43:13 mikechelen, that would not be a good approach Aug 01 12:43:16 sure none of which has any relevance really since no matter how they are packaged they can still be unpackaged. obviously 9-patch is a different form of packing. Aug 01 12:43:53 mikechelen, try this instead: findPreference("prefExpandNotify").setEnabled(false); Aug 01 12:44:04 see if that disables it Aug 01 12:45:19 ok trying Aug 01 12:46:19 If I'm using a fragment that acts as a tabview for other fragments, I add the tab fragments in the parent's onCreateView, and also set the actionBar's navigation mode to tabs. However, when the parent fragment is added to the activity, the tabs show up for a split second, then disappear. Any thoughts on what I'm missing to make this work right? Aug 01 12:46:52 ravilov: ah that greys it out Aug 01 12:47:11 good, at least that is working Aug 01 12:47:25 no idea why it won't get removed though Aug 01 12:48:08 yeah that might have to be good enough Aug 01 12:48:13 ravilov yes Aug 01 12:50:33 mikechelen, from what I'm reading you have two options here: 1) assign an ID to the that contains your preference, find it in your activity, and then use it to remove the preference; 2) walk the entire preference tree trying to find the "parent" of your preference and then use that to remove the preference Aug 01 12:50:44 or of course 3) be content with just graying it out Aug 01 12:50:51 Chainfire, awesome, got a moment? Aug 01 12:50:58 sure Aug 01 12:51:23 so your SuperSU has the ability to move itself to /system, can you give me an outline of how does it do that? Aug 01 12:51:59 I'm trying to do something similar, I got to the point where I copy myself to /system/app, but my activity terminates abruptly as soon as I delete myself from /data/app Aug 01 12:52:04 to be expected I guess... Aug 01 12:52:21 ravilov: if you have any links on how to do 1 or 2 that would be great when you have a chance Aug 01 12:52:30 ravilov remount /system r/w, copy its own APK to /system/app, delete itself from /data/app, more or less Aug 01 12:52:45 yes, it is normal for the app to terminate once removed Aug 01 12:53:00 not sure how I did it exactly, beyond what I just said Aug 01 12:53:00 hm, well Aug 01 12:53:28 okay, thanks... I meant to do a soft reset after I'm done, but this might have to do Aug 01 12:53:46 Chainfire, did you have to trigger anything to make the system refresh its app list after you moved the apk? Aug 01 12:54:02 the user has to reboot Aug 01 12:54:10 ah Aug 01 12:54:19 I thought I would be nice and do it for them, but I guess no dice Aug 01 12:54:30 thanks Aug 01 12:54:53 sometimes twice, leftover cruft. Android is getting "dumber" over time. It used to be much less of an issue to move the APK than it is with later versions Aug 01 12:55:14 and then people wonder why I feel android is going downhill, lol Aug 01 12:55:46 well to be fair, those shortcuts and optimizations are valid, as an APK would normally never transition from /data to /system Aug 01 12:55:54 yeah that is true Aug 01 12:56:16 so I'm guessing even though your /data apk is removed and your activity terminated, your prefs in /data/data are still preserved? Aug 01 12:56:38 mikechelen, there is no tutorial for #1, just add android:id to your and then use that ID to find that PreferenceCategory Aug 01 12:57:05 ravilov I think I actually delete /data/data/..mypackage.. as well to prevent issues Aug 01 12:57:25 right Aug 01 12:57:47 makes sense I guess, potentially different uids and such Aug 01 12:58:02 except I can't do that, I have to preserve user prefs any way I can Aug 01 13:00:16 ravilov: ah ok thanks Aug 01 13:07:04 Chainfire, so you don't try to deal with wiping any part of dalvik-cache? you leave that up to the system? Aug 01 13:07:46 I figure that makes most sense, just making sure Aug 01 13:08:16 I wipe dalvik cache as well Aug 01 13:08:34 you can only trust system to do the right thing if the version numbers change Aug 01 13:08:43 ah Aug 01 13:09:41 do you happen to have a list of most common dalvik-cache dirs I should check? so far I have /data/dalvik-cache, /cache/dalvik-cache and /sd-ext/dalvik-cache Aug 01 13:11:24 thats it pretty much, afaik Aug 01 13:11:45 ok, thanks Aug 01 13:30:25 i', trying to do this: https://dl.dropboxusercontent.com/u/21637985/Random/Shot-140801-162029-r.png and i'm lost Aug 01 13:30:42 is there a nice tutorial on how sizings in android work? Aug 01 13:31:16 Use weights? Aug 01 13:31:16 like, what exactly is match_parent and wrap_content, etc Aug 01 13:31:34 Is there a reason it is 300dp exactly? Aug 01 13:31:46 Or do you just want it to hold a proportion of the screen? Aug 01 13:32:12 well, it should accomodate three titles and it doesn't look good if they are scattered Aug 01 13:32:22 ok Aug 01 13:32:26 Use weights then Aug 01 13:32:26 hi, hi, i am on a fragment and start a activity startActivityForResult(mIntent, 0); in my activity i have Intent mIntent = new Intent(); setResult(0, mIntent); how i can get the response of activity in my fragment? Aug 01 13:32:28 so i want it to be at most 300dp or so Aug 01 13:32:33 It will always hold the same proportion Aug 01 13:32:43 t0th_-, override onActivityResult iirc Aug 01 13:32:50 Anthaas: what proportion? Aug 01 13:33:01 squirrel: Whatever you like. Aug 01 13:33:09 where? Aug 01 13:33:14 Read up on weights in layouts Aug 01 13:33:15 but i want no proportions, just 300 dp Aug 01 13:33:18 on Fragment? Aug 01 13:33:25 fixed maximum size Aug 01 13:33:36 and i want to understand how it works, mostly Aug 01 13:33:41 t0th_-, in the Activity Aug 01 13:33:53 and from there you'd pass it to the right Fragment Aug 01 13:34:46 but i need a response in my fragment Aug 01 13:34:48 if I have my app translated in english (default values folder) and my british english translation (values-en-rGB) has only a subset ob those strings translated, how can I make link not warn me? I still want to be warned about missing translations for other translations though. Aug 01 13:34:48 why layout_width="30dp" produces a usable widget while layout_width="wrap_content" wastes a ton of space? Aug 01 13:34:55 i call a activitty from fragment Aug 01 13:35:14 shouldn't wrap_content make widget as small as it can be? Aug 01 13:37:25 t0th_-, override onActivityResult() in the activity holding the fragment and from there pass the result to the appropriate fragment Aug 01 13:43:03 it not called Aug 01 13:43:16 i put onActivityResult on fragment and in activiyt Aug 01 13:43:21 never is called Aug 01 13:46:45 t0th_-, paste your code Aug 01 13:47:10 pastebin* Aug 01 13:48:08 *paste{wherever} Aug 01 13:49:04 EPG, well large pastes are generally undersirable straight in the channel Aug 01 13:49:39 http://pastebin.com/P3XDUsQW Aug 01 13:49:51 EPG, "pastebin" means use a service :) Aug 01 13:50:27 ravilov, sure, but I don't remember anyone understanding this as "write it here" Aug 01 13:50:51 and paste_bin_ is one particular service and I don't want to urge anyone using this particular service ;) Aug 01 13:51:10 yeah sorry, I'm using pastebin the same way people use kleenex :p Aug 01 13:51:14 Please. Give me any hint on how to parse this array http://invapp.promission.net/mobApi/getJobList.php and show it in spinner? I'm going mad with this issue. Thanks Aug 01 13:51:48 iflista, that looks like straight up JSON, android has quite nice built-in parsers for that Aug 01 13:51:58 never used them myself so can't tell you anything specific Aug 01 13:53:10 ravilov, I know, but I tried so many things and failed, so I just don't know how to get it donw Aug 01 13:53:29 JakeWharton, so is square using scala now? Aug 01 13:54:06 any? Aug 01 13:58:30 http://stackoverflow.com/questions/17085729/startactivityforresult-from-a-fragment-and-finishing-child-activity-doesnt-c Aug 01 13:58:32 same error Aug 01 14:03:12 t0th_-, call from fragment not activity Aug 01 14:03:22 i cal from fragment Aug 01 14:03:58 Your paste says fr activity Aug 01 14:04:09 can I use retrofit to create an image from a response to say, the google static map API? Aug 01 14:04:33 http://pastebin.com/P3XDUsQW Aug 01 14:05:50 racking myself over this nullpointerexception. can anyone take a quick look ? http://pastebin.com/m33xdt2e Aug 01 14:06:38 08-01 10:01:50.309: E/AndroidRuntime(11004): at com.iosharp.android.smoothstreams.HTTPFeedTask.doInBackground(HTTPFeedTask.java:38) Aug 01 14:06:48 line 38: File file = new File(mContext.getCacheDir(), "feed.xml"); Aug 01 14:06:50 something there is null Aug 01 14:06:58 and there's really not alot of options right? :P Aug 01 14:07:08 touche' :P Aug 01 14:07:42 aaearon, aaand... you never really set context anywhere :) Aug 01 14:08:01 Nothing to rack your brain over Aug 01 14:08:05 is there some configuration I'm missing to set gridview cells to align to the bottom? Aug 01 14:09:53 yeeeeep Mavrik you nailed it. thank you Aug 01 14:09:58 guess its break time :P Aug 01 14:11:48 shekibobo, android:gravity="bottom" ? Aug 01 14:11:59 ok. Ive got myself into some nasty deadlock/threading issue resultig in unresponsive app. some sort of super duper way in intellij to help diagnose the cause? or just plain old hard work and careful rechecking of all messaging and thread interactions? Aug 01 14:13:39 anyone know if theres a cli git available for android? Aug 01 14:13:52 rgr, last time I was dealing with threads, the ANR was caused by thread.join() Aug 01 14:14:19 realitygaps, you want to clone repos and such on your android device? Aug 01 14:15:01 kind of, want to be able to call a git command from any terminal or from an app Aug 01 14:15:33 want to get https://github.com/IJHack/qtpass running on android, only missing piece is a git commanbd Aug 01 14:15:38 s/commannd/command/ Aug 01 14:15:56 as the ui itself works fine, and i have gpg2 working also - just no git command Aug 01 14:17:48 are there any publishing tools for Intellij/AS that allow one-click market publishing like unity can? Aug 01 14:18:00 realitygaps, ok, just making sure, I actually have nothing to offer Aug 01 14:18:07 ravilov: no probs :) Aug 01 14:18:15 think i might have to try crosscompiling git Aug 01 14:19:45 you might end up having to compile it statically though, AFAIK android has a very basic and at times incomplete libc Aug 01 14:28:29 AIDE has git functionality. + the few git apps in the store. Aug 01 14:28:38 so it is "Possible".. Aug 01 14:31:13 rgr: yep, thinking it prob uses jgit somehow Aug 01 14:43:46 anything in android sdk to facilitate smart menus? e.g easy to configure "this is menu item is disabled when this is enabled and vice versa"? Aug 01 14:48:18 which update channel should i use for my android studio? Stable/Beta/Dev/Canary? I'm currently on stable with version 0.5.7 Aug 01 14:49:59 hi guys. Aug 01 14:51:00 I need to make launch image but i don't know all the required resolutions. Could you advise me any tutorial on android design that would just provide me with requested resolutions? Aug 01 14:51:26 I have some menu items in my menu xml marked as invisible. This means, and I dont know why, findViewByID(R.id.menutiem) returns null : which is a pain because I want to make them visible interactively via code. I want it to be there and retrievable at run time via some method (even if not findViewByID) so how do I do it?. (menu toggling on and off) Aug 01 14:51:39 obozhdi, http://developer.android.com/design/style/iconography.html Aug 01 14:51:58 launch image? Aug 01 14:52:18 rgr yep, the image that shows when app starts Aug 01 14:52:18 ah I see. Aug 01 14:52:53 oh, not the launcher icon then? Aug 01 14:53:10 not the icon, the launch image Aug 01 14:53:19 I heard that there are lots of resolutions Aug 01 14:53:39 and some resolutions are grouped by factor Aug 01 14:54:21 ..are there any alternatives to viewpagerindicator and pagertitlestrip? Aug 01 14:54:36 py0 they provide only pixel density Aug 01 14:55:05 squirrel: what are your issues with those? Aug 01 14:55:31 py0 if they could just write something like 320x480 640x960 800x1200 1080x1920 so tell me exact picture sizes Aug 01 14:56:25 oh. never heard of a launch image. thought was app specific added. I need to look that up. Aug 01 14:56:42 Estel: these are not embeddable, they don't work fine when small, they don't allow custom colors for each tab Aug 01 14:57:10 rgr its also calles android splash screen Aug 01 14:58:20 k Aug 01 15:01:32 hello there anyone work on airdroid like app Aug 01 15:01:47 i want to make screen sharing app Aug 01 15:01:51 over internet Aug 01 15:03:12 How much have you already made? Aug 01 15:03:29 rgr, how about you leave them enabled in xml and disable them later in code, after you've found them with findViewById()? Aug 01 15:05:40 rgr: Use Menu#findItem to get a reference to menu items Aug 01 15:05:55 heard about square and scala Aug 01 15:06:01 what was the answer? ;) Aug 01 15:07:11 ravilov: well obviously that would be one way if awful and defeating the reason for marking them as invisible in the XML. Allowing to be visible then turn them off kind of sucks and is hack. But Ive moved passed that for now. I decided to try them just disabled rather than invisible. Menu woes : I have three menu items in xml. 2 are set disabled. i "setEnabled" the others when the "pre" enabled one is clicked. After they are Aug 01 15:07:11 "enabled" When I then press them they "press animate" BUT the onOptionsItemSlected is not called. IF I enable all three in the XML then all three trigger the onOptionsItemSelected. Aug 01 15:07:18 SimonVT: Ill look at that thanks. Aug 01 15:10:39 without holding a reference to a Menu in the oncreate when I first inflate it, how do I get a reference to the parent menu in onOptionsItemSelected? Or is hold a reference the way to go? Aug 01 15:10:50 what tool do you use for automatic icon generation? Aug 01 15:19:03 ok. It seems maintinaing references to the menu items at create time is the way if this is correct : http://stackoverflow.com/questions/5440601/android-how-to-enable-disable-option-menu-item-on-button-click Aug 01 15:34:17 im using Picasso to load a static google map. if I just load a basic map it works fine, but it doesn't load anything when I start adding request params. I've set logging to enabled and manually tried the Request it logs, which works Aug 01 15:35:34 mattblang: did you url-encode your request parameters? Aug 01 15:36:19 Napalm hey man! no I didn't, but, it does work with just a few of the request params (center, size, zoom). But when I add all the params (markers, path, api key) it doesn't load Aug 01 15:36:52 turn on the request debugging and see if you can sport any problems Aug 01 15:38:15 Napalm yeah I did that, and manually tried the request it logged in chrome, which pulled the map. I think ive narrowed the problem down to the "path" request param, which has vertical bars "|" Aug 01 15:40:05 mattblang: as i said, they should be url-encoded Aug 01 15:45:21 gordon_, pfn: no Aug 01 15:49:27 Napalm yup, thanks man! Aug 01 15:49:32 np Aug 01 15:50:36 how can i make (my own) links in a textview clickable? i.e. withough using autoLink Aug 01 15:50:55 ..in xml Aug 01 15:51:15 also, how can i make these links open in different tabs? Aug 01 15:56:25 JakeWharton, why the sbt q? Aug 01 15:59:06 bored. tinkering. Aug 01 15:59:18 I see, anything interesting? Aug 01 16:00:14 building from Maven poms automatically Aug 01 16:01:18 I see, yuck :p Aug 01 16:02:26 works pretty well, still some kinks Aug 01 16:02:34 can't support everything, obviously Aug 01 16:03:19 Is MultipartTypedOutput to be expected specified as @Body on a @PUT method in Retrofit? Aug 01 16:03:28 it can be Aug 01 16:03:33 but you should use @Multipart instead Aug 01 16:03:50 JakeWharton, pretty cool though, maven sucks :) it's nice to build it all with sbt instead Aug 01 16:04:01 JakeWharton, for generic java projects, or for android projects Aug 01 16:04:41 yeah it was fun to tinker with. scala was fun, to, but jesus it's an awful language Aug 01 16:05:02 JakeWharton: yes, not 100% sure. I had something like uploadImage(@Part(user[file]) TypedFile image, @Part(user[width]) TypedString width,..) which didn't work. But it's to be expected that further parameters are added to this with @Part as well? Aug 01 16:05:13 platzhirsch: right Aug 01 16:05:27 you need @Multipart on the method Aug 01 16:05:52 and MultipartTypedOutput is just an alternative to get similar behavior on non @Multipart annotations Aug 01 16:06:47 MultipartTypedOutput is what's used behind the scenes for @Multipart Aug 01 16:06:56 but yes, you can use it manually (although it's API isn't amazing) Aug 01 16:08:49 JakeWharton: thanks :) Aug 01 16:10:01 i have 8gb ram and when start avd with 2 gb i got this message "Requested RAM size of 2048MB is too large for your environment, and is reduced to 1536MB." How should i change environment ram size Aug 01 16:14:21 when a user logs in, he is assigned a session_id. Would SharedPreferences be the right place to store this session_id? Aug 01 16:19:03 hmmph. using onAttachedToWindow to get a custom view to do some resource loading stops surfaceCreated being called back for some reason. Aug 01 16:19:39 i have 8gb ram and when start avd with 2 gb i got this message "Requested RAM size of 2048MB is too large for your environment, and is reduced to 1536MB." How should i change environment ram size Aug 01 16:21:11 hi have a fragment with getActivity().startActivityForResult(mIntent, 10); in second Activity i have setResult(10, mIntent); finish(); Why my method onActivityResult on fragment is not called after activity finish? Aug 01 16:22:18 t0th_-: use the fragments startActivityForResult method Aug 01 16:22:37 withou getActivity(). ? Aug 01 16:22:51 yes Aug 01 16:23:01 not working Aug 01 16:23:10 i try again Aug 01 16:23:46 I want to "cache" a detail screen, and only refresh it if a preference is changed. What do y'all think is the best way to do this? Aug 01 16:24:20 essentially, I want to do all the setup, but only first time, and refresh if a preference changes Aug 01 16:24:25 t0th_-: what does your fragment's parent Activity's onActivityResult() method look like Aug 01 16:24:28 pastebin it Aug 01 16:24:29 mainly because it involves a mapfragment, and some other stuff Aug 01 16:26:38 http://pastebin.com/dPNysK2Z Aug 01 16:30:04 t0th_-: no thats in the fragment Aug 01 16:30:15 working here Aug 01 16:30:26 you got it working now Aug 01 16:30:29 i need put OnActivtityResult in parent of fragment Aug 01 16:30:56 you mean a parent fragment of the fragment your working in? Aug 01 16:31:06 sounds like something else is wrong Aug 01 16:34:04 Hi all. I'm looking for a batch drawable converter tool that lets me resize my xxhdpi map to all the lower dpi folders. Does anyone have any recommendations? Aug 01 16:34:16 lol Aug 01 16:34:23 All i found were outdated tools, which didn't use xxhdpi Aug 01 16:34:31 ThomQ: you understand that's kinda pointless Aug 01 16:34:47 Why pointless? Aug 01 16:35:38 well the idea is to provide resources designed for that resolution, if you just resize things down, its the same as a the sampling your going to get on the device Aug 01 16:36:34 Well, in theory the resampling should work. But we found that manually resizing the assets has a much better (less pixelated) effect. Aug 01 16:37:12 We tested the app on different screens, there were no other layout problems other then the bad pixelation of the assets Aug 01 16:37:29 depends on the method of sampling, but yea, since the device uses the fastest method, unless you turn on the bitmap filtering Aug 01 16:38:33 ThomQ: well what you want is probably imageMagik Aug 01 16:38:49 JakeWharton: Have you ever run over this one here? http://stackoverflow.com/questions/21582453/multipart-request-using-retrofit-1-4-1-not-working Is maybe @PartMap the answer here Aug 01 16:38:50 ThomQ: http://www.imagemagick.org/script/download.php Aug 01 16:39:38 ThomQ: its for all major OS, you can simply create a script in your preferred language that will call it to resample the images down, the magic here is to choose the right filters Aug 01 16:40:42 Thanks Napalm! Aug 01 16:41:30 Image Magick makes me feel old Aug 01 16:41:34 :'( Aug 01 16:42:08 website could use some updating :P Aug 01 16:43:40 ThomQ: it wasnt that, its just I started using it back in 2000/2001 Aug 01 16:43:51 my my, how time flys Aug 01 16:44:10 back in the day, when Perl was the only way to go Aug 01 16:49:19 imagemagick is p cool Aug 01 16:49:43 platzhirsch: no. are you using the latest version? Aug 01 16:49:52 JakeWharton: 1.6.0? Aug 01 16:49:57 1.6.1 Aug 01 16:50:04 no, let me get this in Aug 01 16:50:08 any relevant changes? Aug 01 16:50:44 but it's basically the same problem we face :) Aug 01 16:51:16 JakeWharton, there's nothing awful about the language Aug 01 16:51:24 JakeWharton, what library creators do is their own prerogative Aug 01 16:51:44 your second statement validates the presence of it being awful Aug 01 16:51:51 not at all Aug 01 16:51:56 great power => great responsibility Aug 01 16:51:58 always been the case Aug 01 16:52:02 => great awful Aug 01 16:52:08 if you really think scala has nothing awful you're blind Aug 01 16:52:13 every language has awful things Aug 01 16:52:17 the language itself? not much Aug 01 16:52:21 So on 1.6.1 now :) @PartMap looks good, unfortunately it creates exactly the same HTTP Request Aug 01 16:52:30 the awful things about the language, interop with java Aug 01 16:52:31 yeah ok Aug 01 16:52:33 that's the most awful thing Aug 01 16:52:38 enjoy your stockholm syndrome Aug 01 16:52:48 the nulls that won't go away because of required interop with java Aug 01 16:52:50 that's awful Aug 01 16:53:04 etc. Aug 01 16:53:16 verbosity when dealing with higher kinded types Aug 01 16:53:18 that's awful Aug 01 16:53:23 what you call awful, isn't Aug 01 16:55:41 and, I work with probably 10 different languages at any given time Aug 01 16:55:50 there's no stockholm syndrome going on here Aug 01 16:56:08 how many are you working with, 1? java? Aug 01 16:56:24 JakeWharton: to me it seems it would be solved when Content-Transfer-Encoding: binary is dropped Aug 01 16:56:45 platzhirsch: there's an issue for that. should be fixed in the next week or so Aug 01 16:56:57 language fight! Aug 01 16:57:05 pfn: if i say yes, will it stop you from projecting your stockholm syndome on us all? Aug 01 16:57:56 * pfn shrugs Aug 01 16:57:59 you're so right Aug 01 16:58:02 birbeck: there's no fight. just 414 people watching someone LARP alone Aug 01 16:58:04 whatever Aug 01 16:58:07 JakeWharton: alright, thanks Aug 01 16:58:55 dragorn interesting stuff about OMA device management. you probably know this already :) http://www.wired.com/2014/07/hackers-can-control-your-phone-using-a-tool-thats-already-built-into-it/ Aug 01 16:59:27 I remember someone ignoring pfn during Google I/O :p Aug 01 16:59:47 g00s: reminds me that i have to look at an android cramming exploit Aug 01 17:00:08 I think it was g00s. Oh btw g00s, they released iosched 2014 source finally :p Aug 01 17:00:30 Afzal yeah :) no, it was pfn ignoring me. but i don't need to set my client to do that Aug 01 17:00:39 oh lol Aug 01 17:01:46 Afzal hav you looked into it yet? i'm looking at how the toolbar stuff is done. seems like they only use it on lpreview. i was kinda disaapointed, because i was hoping the compat library abstracted that Aug 01 17:01:56 it will Aug 01 17:02:05 that will be nice ;) Aug 01 17:02:16 nothing stopping you from doing it yourself already Aug 01 17:03:12 Not yet, I'm gonna look into it tomorrow when I look at the current L preview animation stuff Aug 01 17:06:01 hm, my app crashes with the latest rx. this will be fun Aug 01 17:10:29 g00s, sounds like you need a new doctor Aug 01 17:11:30 hey mikedg how are you Aug 01 17:13:04 i am what i am Aug 01 17:14:19 hey guys Aug 01 17:14:36 mikedg: how goes? Aug 01 17:19:10 why must proguard be such a hell :/ Aug 01 17:26:25 it's a pro app Aug 01 17:30:15 Hi guys I want to know if it is possible to record or capture just the system sound using Android code Aug 01 17:34:21 how i can get the position of actived tab? Aug 01 17:35:23 t0th_-: what have you tried? Aug 01 17:35:31 google Aug 01 17:35:36 What gradle task is ran for launching an app? Aug 01 17:35:39 https://developer.android.com/reference/android/app/ActionBar.Tab.html#getPosition() Aug 01 17:36:47 assembleDebug runs without issues, but running the app gives me ClassCastException: com.android.build.gradle.internal.model.ApiVersionImpl cannot be cast to java.lang.Integer Aug 01 17:37:01 Afzal, no, I ignored g00s Aug 01 17:37:03 not the other way around Aug 01 17:37:16 pfn lol yeah, g00s corrected me Aug 01 17:37:35 pfn: just got one of these. http://skpang.co.uk/catalog/images/component/switches/09181-03-L.jpg just hooking it up to a usb cable so we can use it as a Deploy button Aug 01 17:37:41 #sqlite Aug 01 17:37:46 end of each sprint someone gets to press the button Aug 01 17:37:47 :D Aug 01 17:37:53 Napalm, that's pretty fun Aug 01 17:38:13 it lights up depending on the build status Aug 01 17:38:34 switch on Wear or no switch on wear layout Aug 01 17:38:35 ? Aug 01 17:38:56 a user requested a switch instead of a button :/ Aug 01 17:39:24 Afzal: why not? you can tap them just a like a button Aug 01 17:39:39 Napalm, because native switch on Wear looks uuuuugly Aug 01 17:39:45 and you can't slide a switch on Wear Aug 01 17:40:17 so it's still gonna be a button (or a checkbox since it has two states) but looking like a switch Aug 01 17:40:44 compoundbutton Aug 01 17:41:02 of which both a switch and checkbox are instances Aug 01 17:43:12 JakeWharton, any benefits of switching from Checkbox to CompoundButton. I don't think there would be any difference for me Aug 01 17:44:00 the checkbox class only exists to be a specialization of compoundbutton with a default style that looks like a box with a check in it Aug 01 17:44:05 also i have no idea what you are doing Aug 01 17:45:33 JakeWharton, ah okay, we're using a custom drawable so I guess CompoundButton makes slightly more sense. It's just to turn something on/off Aug 01 17:46:16 are there any good howtos/guides for debugging ANR issues you could recommend? One's slipped in and its ... testing me... Only occasioally happens. Always happens when I launch the app from the intellij on my device but not when I launch from the mobile launch icon. Im pretty 100% sure my secondary thread does nothing to hinder the mainUI thread. Aug 01 17:47:18 rgr, if you're running your app in debug mode, ANR might just be the debugger attaching to the app or something Aug 01 17:47:40 Hey, I'm adding a view to a view group (with addView). Is there any way I could keep this change on the back stack or would I have to manage that manually? Aug 01 17:47:44 no, just running it from IJ. debugging it I rarely get an issue. Aug 01 17:47:45 app usually runs slow in debug mode Aug 01 17:48:24 jessie you may try giving the added views IDs Aug 01 17:48:26 jessie, might wanna look into showing DialogFragments inline (?) Aug 01 17:50:02 my secondary thread IS going at full wack. putting a small sleep in there seems to help BUT surely it shouldn't need that? Or am I being naive? Aug 01 17:50:31 scratch that. even with the slip it stops responding after a while. Aug 01 17:50:38 sleep Aug 01 17:50:44 g00s: I might go down that path. Changing my view to a fragment and putting the fragment inside the viewgroup using FragmentManager.add() Aug 01 17:50:56 Is there a way to check if an activity has been started for a result? Aug 01 17:54:36 JakeWharton: Sorry to stick around with this question :) but was the issue you were talking about related to this one? https://github.com/square/retrofit/issues/574 Aug 01 17:54:44 yes Aug 01 17:54:56 thanks Aug 01 18:02:58 rgr, did you look into the possible .join() issue I mentioned earlier? Aug 01 18:03:14 right. the plot thickens. I removed the android:showAsAction="ifRoom" from the menu XML and all works perfectly. Snappy. No freezes. Some Android issue in certain circumstances? Aug 01 18:03:57 ravilov: nothing to do with join Im sure . its why I specifically said its in a single run() with no thread cancellation. I did look into it. Aug 01 18:04:20 g00s: yeah i saw that; it's bad times when a vendor puts stuff on your device and screws up Aug 01 18:05:55 rgr, you do call start() and not run() right? (speaking from a mistake I myself made some weeks ago) Aug 01 18:09:08 I've got several detail screens that I only want to update on first load and when a preference changes. What do yall think would be the best way to do this. Aug 01 18:09:58 mattblang: the screens are what? fragments? just add a boolean to the state bundle Aug 01 18:10:45 yes . but how that would affect things only when menu actions are displayed as actions Im not sure. Aug 01 18:11:01 Napalm yes, they are all fragments. Aug 01 18:11:52 Napalm would I try to get all the fragments I want to change from the fragment manager, in preference activity, and change the bundle directly? Aug 01 18:13:13 waaa? Aug 01 18:13:21 i dont follow now Aug 01 18:13:57 anybody use flash to make some button animations? :p Aug 01 18:13:58 Napalm sorry, I think im confused about how I would use the bundle Aug 01 18:14:13 Napalm like, what if the user goes back after making a preference change. i'd want it to update, but otherwise not update Aug 01 18:14:31 yes, well you would just check the a preference for that Aug 01 18:14:52 but when you press back, do they not just load again? Aug 01 18:15:36 Napalm yes, but I'd rather them not if not necessary. currently im implementing a timestamp when it is loaded, and planning to check that against a timestamp set in my preferencefragment Aug 01 18:18:52 frankdrey: why not just put an extra in your intent and check for it Aug 01 18:20:07 Napalm, I guess I'll do that, was just wondering if there was something built in for that :p Aug 01 18:22:32 rgr, ok, just wanted to make sure Aug 01 18:35:48 no worries. btw simpler to draw the bg we talked about yesterday thus : c.drawColor(Color.argb(0xd0, 0x00, 0x00, 0x00)); Aug 01 18:36:07 seems more efficient that constructing a paint. Aug 01 18:36:15 anybody faced an exception like this: Type variable 'V' can not be resolved when a library uses com.google.common.collect.AbstractMapBasedMultimap ? Aug 01 18:36:24 it's proguard thing and it's driving me crazy :/ Aug 01 18:37:21 rgr: or just 0xd0000000 Aug 01 18:38:13 which would be pretty nasty. Aug 01 18:38:55 how Aug 01 18:39:07 one less method call Aug 01 18:39:09 hi all; i'm having problems with expanded notification- isn't there a way, when notification is collapsed, clicking on collapsed notification would also open my main activity? i have to expand it and clicking on "addAction" which opens the app. Aug 01 18:40:14 hmm Aug 01 18:40:37 does Otto work if I pass generics in the notification class? Aug 01 18:40:56 i.e. ItemAvailableNotification Aug 01 18:41:18 no Aug 01 18:41:22 well, kind of Aug 01 18:41:28 Getting an error Producer for type class com.meetmaestro.android.rally.app.notifications.ListAvailableNotification has already been registered. Aug 01 18:41:30 true in this case since it is a loop. But in "real code" (im experimenting) id have "int c =Color.argb(0xd0, 0x00, 0x00, 0x00)" somewhere anyway. makes me cosier. and it easier to edit. TBH I assumed it was a macro anyway. glad you pointed it out. Aug 01 18:41:47 right, the registration itself doesn't take into account the parameterized components of the type Aug 01 18:41:50 only the class Aug 01 18:41:52 pub Aug 01 18:41:57 bummer Aug 01 18:42:11 I just went and refactored everything down Aug 01 18:42:21 thank goodness for source control Aug 01 18:42:34 JakeWharton: fix it Aug 01 18:42:42 YOU FIX IT Aug 01 18:42:54 int c = 0xD0000000; Aug 01 18:42:55 point me in the right direction and I'll fix it Aug 01 18:43:34 when with the NDK port of Otto be ready? Aug 01 18:43:44 next week Aug 01 18:43:58 and the Swift version? Aug 01 18:44:08 already released Aug 01 18:44:14 damn i misssed it Aug 01 18:44:15 lol ? Aug 01 18:44:25 new Otto ? :> Aug 01 18:46:51 If anyone is having problems opening activity from collapsed expanded notification, add this to builder: .setContentIntent(getPendingIntent()) Aug 01 18:46:52 OMG, JakeWharton is here...! Aug 01 18:46:56 thank you all for helping o_O Aug 01 18:47:32 hmmmm Aug 01 18:47:44 https://github.com/square/otto/blob/a109e2e83dd3fa3788c62b66c5bf9af8c66a3939/otto/src/main/java/com/squareup/otto/AnnotatedHandlerFinder.java#L67 Aug 01 18:47:48 gordon_: ignore everything mikedg says Aug 01 18:48:03 JakeWharton: ok Aug 01 18:48:15 JakeWharton is the raddest man alive Aug 01 18:48:20 ignore that Aug 01 18:48:26 touche Aug 01 18:48:27 haha Aug 01 18:48:31 hahaha Aug 01 18:52:28 Does anyone know any good ways or resources showing how to build out a grid like view that looks like Pinterest or like Google + ? Each column and row scattered and stuff? Aug 01 18:53:18 scattered or staggered? Aug 01 18:53:32 well, each cell would have varying heights Aug 01 18:53:40 same widths. Aug 01 18:53:51 In all seriousness, though JakeWharton, is there a way to get the eventType to pick up the generic parameter? Aug 01 18:53:57 I think Pinterest is the best example of the look Aug 01 18:54:10 shekibobo: subclass into a concrete type that's specialized Aug 01 18:54:30 public final class FooSomething extends Something {} Aug 01 18:55:06 fair enough Aug 01 18:55:57 was thinking more about opening up a PR if I had any idea how to do it Aug 01 18:56:19 just trying to DRY up all these event classes Aug 01 18:58:01 hello Aug 01 18:58:33 i installed cordova from github instructions Aug 01 18:59:08 Now I'm trying to work with cocoonjs command line Aug 01 18:59:18 and it gives me an error: Aug 01 18:59:41 Error: ERROR : executing command 'ant', make sure you have ant installed and added to your path. Aug 01 18:59:49 I do not have the eclipse sdk Aug 01 18:59:54 ant Aug 01 18:59:55 just the android sdk Aug 01 19:00:03 I am on Windows 7 Aug 01 19:00:07 So I'm not sure what to do Aug 01 19:00:09 dont know any of cordova Aug 01 19:00:17 but it says that you need to have ant Aug 01 19:00:20 do you know how to install it? Aug 01 19:00:25 ant ? Aug 01 19:00:30 add it to path Aug 01 19:00:36 i don't think i have it Aug 01 19:00:44 is it an EXE? Aug 01 19:00:46 write 'ant' in console Aug 01 19:00:52 I think it is Aug 01 19:00:57 google -> apache ant Aug 01 19:01:00 I searched my cordova and android apk files Aug 01 19:01:04 found 3 folders Aug 01 19:01:05 and feel like in the 80's Aug 01 19:01:07 because ant Aug 01 19:01:07 all XML files Aug 01 19:01:37 ok thanks Aug 01 19:01:46 i'll do a system search Aug 01 19:06:54 Hello Aug 01 19:07:02 I am Japanese Aug 01 19:07:10 I live in Japan Aug 01 19:07:50 Does anyone Amazon Ads there r? Aug 01 19:08:07 * rdnt hears crickets Aug 01 19:08:16 I was tryed Amazon ads but not shown Aug 01 19:08:33 sounds odd Aug 01 19:08:46 why aren't you using admob etc Aug 01 19:09:40 Agamemnus:does admob has released Amazon store? Aug 01 19:10:01 amazon store Aug 01 19:10:08 I think only Googleplay Aug 01 19:10:08 why are you even bothering with it Aug 01 19:12:02 Agamemnus: because i want to add the new market other google play Aug 01 19:12:07 i c Aug 01 19:12:12 yeah i dunno sry Aug 01 19:14:05 Agamemnus: ok Aug 01 19:14:16 anyone familiar with native development willing to try turning a crazy (root-related, mind you, but still; I've been to #android-root and the channel's been relatively quiet) yet useful project into something real and usable? :) tl,dr: FOSS one-click root app for select devices (mainly those running Android 4.1.2 and/or older); I've written some more details on this XDA thread: http://forum.xda-de Aug 01 19:14:18 velopers.com/nokia-x/general/idea-one-click-apk-app-rooting-nokia-x-t2833278 Aug 01 19:23:40 if I call locationManager.requestLocationUpdates will onLocationChanged get called if the device has a lock but remains in the same place? Aug 01 19:25:44 Is this some kind of cruel joke: Cloudinary's Android API gives you this error: java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Hex.encodeHexString Aug 01 19:25:47 i’m getting a laggy animation sliding my drawerlayout out when i have two different background resources (one for my content frame, the other for the drawer layout) Aug 01 19:25:55 Perhaps I'm just missing something trivial; Aug 01 19:26:03 Its not like they built their android api with java. Aug 01 19:26:15 is this a known thing or is it probable im doing something wrong? Aug 01 19:27:50 I need to clean up my SDK; it's taking up >12gb. can someone give me some general pointers? for instance do I need all versions of the SDK build tools, or just the lates? Aug 01 19:30:07 my eclipse is Luna Aug 01 19:30:19 Luna has many errors Aug 01 19:30:28 it has occurs Aug 01 19:30:32 why? Aug 01 19:31:59 explodes, lol are you using proguard or is this without proguard? Aug 01 19:32:22 Eh, turns out the version up on gradle is pure JAVA Aug 01 19:32:26 That's my bad; Aug 01 19:37:09 jamesson: just which ever ones you use Aug 01 19:37:13 the build tools should be relatively small Aug 01 19:37:21 the big stuff is going to be the emulator images Aug 01 19:37:28 maybe even docs? Aug 01 19:37:38 that im less sure of Aug 01 19:38:03 mikedg: ok ty Aug 01 19:38:42 mikedg: I need to trash those anyhow, I never got emu to work Aug 01 19:42:03 neither did google Aug 01 19:42:11 badumsssss Aug 01 19:42:22 JakeWharton: heh Aug 01 19:42:29 jamesson: how old are you? Aug 01 19:42:40 mikedg: 31 why? Aug 01 19:42:53 give it another year, it takes about 32 years to start the first time Aug 01 19:43:10 mikedg: start what now where? Aug 01 19:43:20 mikedg: emulation? Aug 01 19:43:31 the emulators Aug 01 19:43:45 mikedgL=: o yea I got that far Aug 01 19:44:15 mikedg: I got it running a couple times but never saw the apps load Aug 01 19:44:16 GenyMotion :) Aug 01 19:44:27 iOS Aug 01 19:46:27 AdamJB: Thanks, I will give it a shot Aug 01 19:46:56 It’ll change your life. It runs Android inside VirtualBox, and so much faster than the Emulator . Aug 01 19:47:14 Though, if you want to stick with the Emulator, have you tried the Intel HAX ? Aug 01 19:47:26 I never felt a difference between the x86 emulator and Genymotion... Aug 01 19:47:40 AdamJB: anything that duesnt involve punkass usb debugger is wortha shot Aug 01 19:48:01 AdamJB: does it debug OK? Aug 01 19:49:00 jamesson: I believe so, I haven’t had any issues with debugging. Though I usually run it via USB / device. Aug 01 19:49:40 AdamJB: what do you mean USB/Device? You dont debug in emulator? Aug 01 19:50:08 Not all the time. Aug 01 19:50:40 I also use Android Studio, which seems to be somewhat faster than Eclipse. Aug 01 19:50:49 AdamJB: but you had no problems with debug in genymotion? Aug 01 19:51:07 Yea I am not switching to studio till it comes out of beta, matter of principle Aug 01 19:51:16 Nope. Well, I’ve always had issues with Eclipse. Android Studio debugging is a lot better too. Aug 01 19:53:09 Intel HAXM makes a world of a difference with x86 images. It's almost as good as genymotion if not the same Aug 01 19:53:15 AdamJB: After this project is done, I will try studio. At this point I know exlipse well enough to fix stuff when it breaks Aug 01 19:53:22 HAXM + GPU + x86 image Aug 01 19:53:32 isn't AS just glorified eclipse? :p Aug 01 19:53:46 afzal: Yah, agreed. I haven’t benchmarked the haxm and genymotion, but both seem fine. Aug 01 19:53:48 ravilov, ....not sure if troll but AS is built on IntelliJ IDEA Aug 01 19:53:57 Afzal: it offloads work onto gpu? I heard of stuff like that, but never tried it Aug 01 19:54:03 IntelliJ feels 1000 times better than eclipse. Aug 01 19:54:34 Afzal, semi-troll, sorry; but last time I saw it it was at least visually very similar Aug 01 19:54:38 (to eclipse) Aug 01 19:54:44 similar? Aug 01 19:54:48 yes, it has a text editor ;) Aug 01 19:54:51 most IDEs look visually similar.. Aug 01 19:55:04 the tabs, the layout, the philosophy... the keyboard shortcuts... Aug 01 19:55:07 jamesson, it's not just offloading the work to GPU, that's already done with use GPU host, but HAXM allows the x86 images to use some native instruction sets (speaking from a very vague understanding of HAXM) Aug 01 19:55:27 oh well, guess I'll have to give it another try at some point, for now I'm more than happy with my eclipse setup Aug 01 19:56:06 ravilov, except workspaces = projects and projects = modules in IDEA Aug 01 19:56:18 The thing is, I want to keep my ide small because I keep it in cloud mirrored partition. I can t have android taking up 12gb Aug 01 19:56:21 that's just a vague thing though Aug 01 19:56:26 ravilov: It’s 2 different IDEs, everyone has their preferences. The autocompletes on AS with IntelliJ is much better than Eclipse. Aug 01 19:56:47 jamesson, don't you only need to keep the IDE settings in the cloud and not the whole IDE? Aug 01 19:58:12 Afzal: the problem is that between the heavy compression and complex structure, unpacking Android Dev takes as much as 1/2 hour Aug 01 19:58:35 jamesson, yeah I don't think I know what you're talking about :) Aug 01 19:58:37 Afzal: I like how haxm makes kernel panic on mac Aug 01 19:58:43 such amazing hardware and system Aug 01 19:58:48 gordon_, not anymore Aug 01 19:58:55 yeah right Aug 01 19:59:06 probably only if you're using it on Yosemite Aug 01 19:59:19 no I'm using the prevoius one Aug 01 19:59:21 damn I hate macs Aug 01 19:59:30 yeah, it works perfectly for me with mavericks Aug 01 19:59:37 maybe try reinstalling haxm Aug 01 20:00:00 it's my computer at work Aug 01 20:00:07 maybe they will let me use linux... Aug 01 20:01:15 we should stop this topic Aug 01 20:01:17 I'm apple hater :) Aug 01 20:01:37 so yeah, if anyone interested, looks like I figured what was problem with that yesterday "response too small" thing during install for install on NFC element: i created Security Domain with wrong install params, so package loading was allowed, but not instantiation. will use another SD for now. Aug 01 20:04:46 AdamJB, ok, noted; like I said my eclipse setup works perfectly fine for me and I have no desire to switch or anything, but that doesn't mean AS isn't better and I don't know it :) Aug 01 20:05:02 mikedg: yea those emus were >7gb, dang Aug 01 20:07:19 I personally prefer IntelliJ over AS Aug 01 20:07:40 ^+1 Aug 01 20:13:12 Ugh; Is anyone familiar with the Cloudinary API? Particularly their upload API w/ signature and timestamp? Aug 01 20:15:10 ravilov: you will when gradle will be standard Aug 01 20:15:19 and I hope it will come soon Aug 01 20:15:36 because it's like 2014 and we still use some stupid build system without deps Aug 01 20:15:44 and testing looks like joke Aug 01 20:15:49 and dexing is slow Aug 01 20:17:51 gradle is really slow in my experience Aug 01 20:17:53 :/ Aug 01 20:18:53 I'm tired of putting deps Aug 01 20:18:57 into repo Aug 01 20:18:59 and to classpath Aug 01 20:19:02 it's just.. Aug 01 20:19:06 old Aug 01 20:21:15 I don't have put deps into repo, I let those be handled outside Aug 01 20:22:04 I also don't have any project files other than ant stuff in the repos Aug 01 20:22:28 (but no library references, they should add those themselves) Aug 01 20:22:31 gradle is another thing I have yet to experience Aug 01 20:22:45 but I'm really just not too eager to Aug 01 20:23:59 I use it in one project Aug 01 20:24:04 because of libgdx Aug 01 20:26:22 if you don't like gradle, or ant, you can try buck Aug 01 20:26:54 yet another build tool? Aug 01 20:27:55 yet another for a good reason; it has a different philosophy. if that philosophy gels with your needs, thats great Aug 01 20:28:42 actually, now that I think about it... I'm kinda surprised there isn't a build tool called yabt, lol Aug 01 20:29:12 it's made by Facebook? Aug 01 20:29:29 if these are the same guys that made the Facebook SDK, hell no i'm not using it Aug 01 20:30:11 I'm fine with ant *shrug* Aug 01 20:30:59 i just threw that out there. i use gradle Aug 01 20:31:09 frankdrey: that's even worse Aug 01 20:33:36 I use ant for release builds only though Aug 01 20:33:53 for development I use IntelliJ's built in build system Aug 01 20:35:45 i spent a day trying to use IntelliJ builds from the CLI for fun Aug 01 20:36:01 didn't work well Aug 01 20:36:08 lol Aug 01 20:36:42 you have an odd sense of fun Aug 01 20:36:57 A few days ago, I did something that I'm very glad I did Aug 01 20:37:01 I recreated my repos Aug 01 20:37:10 well it was fun in that it was a different approach for creating a unified build system Aug 01 20:37:16 this was two years ago Aug 01 20:37:17 if not more Aug 01 20:37:20 and set up my IDEs around the repos (with just source files) Aug 01 20:37:29 rather than setting up my repos around my IDE :p Aug 01 20:37:53 Square was using ant+intellij. Two build systems. Terribru! Aug 01 20:38:14 because I used to just upload a whole IntelliJ project to git Aug 01 20:38:17 why is that terribru? Aug 01 20:38:22 because you maintain it twice Aug 01 20:38:27 not really... Aug 01 20:38:30 there should be a single source of truth for build config Aug 01 20:38:33 um, yes really Aug 01 20:38:57 intellij uses make internally. nuances from the ant config won't translate automatically Aug 01 20:39:18 I use 3 external lib projects, that's the only reference I've had to keep up Aug 01 20:39:39 well we had 2 apps, 20 modules, and 20+ external dependencies Aug 01 20:39:39 and both pull jars from libs/ Aug 01 20:39:43 aha Aug 01 20:39:48 that makes sense then Aug 01 20:41:17 it worked nicely for me to split my app into several gradle sub-projects Aug 01 20:41:26 iosched also does that , they have :Wearable Aug 01 20:41:30 makes sense Aug 01 20:41:47 yeah we have about 15 modules Aug 01 20:41:56 small, reusable, modular components for the win Aug 01 20:42:16 iosched is... okay Aug 01 20:42:22 sounds like Google Play Services Aug 01 20:42:29 small, modular... Aug 01 20:42:32 oh wait Aug 01 20:42:38 what you did there. i see it. Aug 01 20:42:48 i knew you'd get it of all ppl Jake :) Aug 01 20:43:03 you can explain it to these other guys Aug 01 20:43:38 was that pure sarcasm? Aug 01 20:44:16 I wonder if it's possible to "finalize" an object Aug 01 20:44:30 I usually end up creating a new final pointer Aug 01 20:44:41 what does that mean Aug 01 20:45:18 Can I space component on an equal distance from each other with gridlayout? I want a 3*5 grid of buttons. spacing between buttoin should be equal in x and y and all buttons should be the same size... Aug 01 20:45:30 basically my code looks a bit like: Aug 01 20:46:28 any admob users here? Aug 01 20:47:05 https://dpaste.de/a3BD Aug 01 20:48:49 frankdrey, afaik no, not possible Aug 01 20:49:01 yeah i figured Aug 01 20:49:20 "final" is there only to tell java the variable can (and must) be assigned exactly once Aug 01 20:49:28 nothing fancy Aug 01 20:50:19 frankdrey, another option is to define a private static method that does the processing and returns a value that you then assign to a final var Aug 01 20:50:22 yeah, and how I was thinking a "finalize" could work is by telling it "don't reassign this from now on) Aug 01 20:50:29 why my admob revenue keeps dropping? Aug 01 20:50:32 aha, good idea.. Aug 01 20:50:39 thanks Aug 01 20:50:44 frankdrey, yeah I know what you meant, not bad idea but not doable Aug 01 20:51:25 mrpyo: do you get paid only when someone clicks your ads? how much do you get then? Aug 01 20:52:00 Well my app has only 5000 users so I only get few $ Aug 01 20:52:13 it's kinda funny watching IntelliJ struggle with this though Aug 01 20:52:14 but first day I got 10$... Aug 01 20:52:25 then 3.5$ Aug 01 20:52:41 if you autocomplete something from an anonymous class it tries to add final to it Aug 01 20:53:01 and today only I mean then around 8$ and today only 4$ Aug 01 20:53:08 and in this case, the error goes away and comes back a second later :p Aug 01 20:53:44 but it does also have a suggestion for "copy result to temp final variable" Aug 01 20:54:51 frankdrey, I noticed dpaste.de has an option "reply to this snippet" so I decided to use it :p https://dpaste.de/nD70#L Aug 01 20:55:31 :D Aug 01 20:55:40 yeah, dpaste is by far my favorite paste site Aug 01 20:57:31 it's possible for activity request codes to get mixed up with their child fragments request codes? Aug 01 20:58:02 because of that I've started numbering my fragment's request codes from 100 Aug 01 21:00:30 yes, sure. the activity gets it first and if it doesn't handle it it goes to the fragments as I recall (as part of super.onactivityresult) Aug 01 21:01:11 aha Aug 01 21:02:13 you should definitely not overlap return codes between them :P Aug 01 21:03:38 i figure 100 request codes is enough for the activity :p Aug 01 21:03:49 yeah; probably Aug 01 21:03:51 i'd hope Aug 01 21:13:37 Since gridLayout is backported, how do I use it in xml? or is it not supported in xml ? Aug 01 21:14:13 I just converted my android project to use maven, and I'm having trouble getting it to run Aug 01 21:14:16 when I try to run it with mvn android:deploy Aug 01 21:14:19 I get: No plugin found for prefix android Aug 01 21:14:19 hujn, reference it directly Aug 01 21:14:25 com.support.blah.blah.GridLayout Aug 01 21:14:28 or whatever :p Aug 01 21:14:52 SuperNoeMan: you need to add maven plugin to pom.xml ? Aug 01 21:15:07 yeah... here's what I have for that: Aug 01 21:15:27 https://gist.github.com/anonymous/b1245f6f50f4fd363b99 Aug 01 21:15:49 hello Aug 01 21:15:52 hujn, android.support.v7.widget.GridLayout Aug 01 21:16:09 I’m using ORMlite….I need to store Collection but it is throwing an error Aug 01 21:16:18 can somebody tell me how to achieve this? Aug 01 21:17:08 frankdrey, but in xml...? Aug 01 21:17:14 why alpha ? Aug 01 21:17:22 hujn, exactly like he said Aug 01 21:17:34 Gandalf84: what error ? Aug 01 21:17:46 Gandalf84, always follow your question with some code :p Aug 01 21:17:52 gordon_: ?? Aug 01 21:18:01 hujn, i've gotta run for now, but give as much detail as ya can and maybe someone can help ya. Maybe replace all that code with a Simple and run it and see if crashes Aug 01 22:21:39 I have 2 namespaces, could that be the problem? Aug 01 22:22:18 try removing everything and just have a in there and see if crashes, then start narrowing it down Aug 01 22:22:20 I’ve had issues like that when in onCreateView I create a view by finding the view by ID and returning that view, and not the inflated view. Aug 01 22:22:41 Maybe post your fragment code as AdamJB is talking about Aug 01 22:22:42 I notice your GridView has an ID Aug 01 22:22:42 brb Aug 01 22:23:22 I’m guessing you’re doing something like View view = inflateView(…) and then GridView gridView = view.findViewById(gridId) Aug 01 22:23:31 Then return the gridView instead of the view.. Aug 01 22:24:40 But that’s just my guess from having a similar error. Aug 01 22:29:22 frankdrey84, android.support.v7.widget.GridLayout is not working. If I use a normal GridLayout it works but when I change to android.support.v7.widget.GridLayout it crashes. Aug 01 22:40:08 Is it possible to color actionbar text items but keep the same color in the menu? Aug 01 22:40:20 it’s 30min the emulator is stucked during “pm install -r” command Aug 01 22:40:32 I’ve ried restarting the emulator and the android studio but same error is there Aug 01 22:40:39 I’ve tried also cleaning the project Aug 01 22:40:41 any idea? Aug 01 22:48:34 actionMenuTextColor isn't doing anything Aug 01 22:49:13 hujn: fix your problem yet? what is your minSdk? Aug 01 22:49:32 15, but that should not matter right? if it is highe than the stuff I use... Aug 01 22:49:44 GridLayout works but not the support version Aug 01 22:49:46 hujn, then why were you using the support library? Aug 01 22:51:17 yeah gridlayout is available i guess 14+ Aug 01 22:51:38 and you aren't making a widget are you? i'm seeing alot of google questions with ppl using the compat gridlayout in widgets Aug 01 22:51:39 I will use 8 later. But then I have to change on a lot of places so I am changing fragment by fragment now then I will lower minSdk when I am finished... Aug 01 22:51:56 dont know what a widget is even... Aug 01 22:52:30 what IDE are you using&are you using gradle? Aug 01 22:52:41 You're probably including the library wrong Aug 01 23:02:46 hello Aug 01 23:03:06 anyone here use ACRA? Aug 01 23:03:49 i dont, i just use a custom class Aug 01 23:03:54 hmmm Aug 01 23:04:13 ACRA is suppressing the printstacktrace for any fatal exception Aug 01 23:05:48 http://pastebin.com/n3kVaTqU -> for following pice of code on the view.loaddata part crashes the app “only sometimes” with a null pointer in the paste is the full stack trace Aug 01 23:05:58 i could really use some an opinion on this Aug 01 23:07:31 don't see a stacktrace Aug 01 23:08:58 wrong pastebin lol Aug 01 23:08:59 http://pastebin.com/Ww21JCaN Aug 01 23:09:00 this one Aug 01 23:10:12 my original code was calling the actual webview object i initiliazed and am using in the class i changed it to view which is passed to the function .. but still same result Aug 01 23:10:13 what is URLActivity.java line 535 Aug 01 23:10:32 view.loadData(ceData, "text/html", "UTF-8"); Aug 01 23:10:56 so you're crashing in your crash? Aug 01 23:11:21 what is your exception in your catch? Aug 01 23:11:23 indeed i figure this would work and then display the string with the error msg but its not Aug 01 23:11:35 the same exception that is crashing it Aug 01 23:11:37 null pointer Aug 01 23:11:41 and what is view Aug 01 23:11:46 then view must be null Aug 01 23:12:05 how can it be when im inside private class Callback extends WebViewClient{ Aug 01 23:12:12 change Exception e to NullPointerException e and see what happens Aug 01 23:12:25 because you can't have it have the same crash unless it is null Aug 01 23:12:43 like i said the crash only happens out of the blue (nbot even in my phone but users phone that are in different states) i have no way of replicating Aug 01 23:12:56 i think the webview is null Aug 01 23:13:01 but i dont know how it could be Aug 01 23:13:23 and it is def the same crash Aug 01 23:13:25 one sec Aug 01 23:13:27 i can prove Aug 01 23:13:31 you just said that your catch() catches nullpointer exception, then when using view you get the same nullpointer, view is the common between them Aug 01 23:13:34 i have th estack trace of the originals Aug 01 23:13:45 hey guys, I have a Samsung S5 device, and when I use it to connect to a wifi network with no internet connection, it disconnects from that network. Is there a way to programmatically force it to connect? Aug 01 23:13:59 your right which brings me to the same conclusion (view and Webview is null Aug 01 23:14:09 but how is that possible inside the WebView class Aug 01 23:14:23 inside a function that only runs if it was initiated Aug 01 23:14:23 how&where did you define view Aug 01 23:14:33 ah u are passing it Aug 01 23:14:38 check if for null at top of method Aug 01 23:15:00 webView = (WebView) findViewById(R.id.webView); Aug 01 23:15:25 before your runnable Log.d("Bleh", view == null ? "null" : "not null"); Aug 01 23:15:29 android.support.v7.widget.GridLayout Aug 01 23:15:31 why widget? Aug 01 23:15:36 this function is hit when a timeout occurs in loading a pge in the webiew if i check for null i will likely get a white screen and will need to restart the app Aug 01 23:15:39 before your runnable Log.d("Bleh", (view == null) ? "null" : "not null"); Aug 01 23:18:13 http://pastebin.com/26nXwWck is from the prevous code where i didnt have a try catch in there Aug 01 23:18:14 http://pastebin.com/26nXwWck Aug 01 23:18:39 so if its null when im inside the object do i just reinit ... Aug 01 23:19:27 i'm not sure on the flow of the rest of your app, within the 10secs the WebView is still visible when the runnable gets ran? Aug 01 23:20:53 im not sure… but basically this is where i got the code Aug 01 23:20:54 http://stackoverflow.com/questions/7772409/set-loadurltimeoutvalue-on-webview Aug 01 23:20:57 Hi all. Got a question about actionbar and the home button. In my project I have it set up so that there is no title nor launcher icon, juts the home button itself. This does work on my phone (galaxy s4), but on multiple test tablets i've used, the home button is Not being shown. Aug 01 23:22:25 Now to fix this I followed this advice: http://stackoverflow.com/questions/21889032/how-to-hide-app-icon-but-keep-up-button-in-action-bar-android, which does seem to work correctly on my tablet; button is being shown, icon is hidden. On my phone however it results in an extra empty space.. Aug 01 23:22:26 jaspertheghost: did you try the answers on that page? Aug 01 23:23:07 and read the comments, about how it wouldn't work sometimes Aug 01 23:23:08 there is no reference to a null pointer problem i used the examples that paged provided to consutrct this Aug 01 23:23:18 yes but there wasnt a crash Aug 01 23:23:59 what about this answer http://stackoverflow.com/a/22620404 Aug 01 23:24:11 would that help with timeout, what are you wanting todo if timeout Aug 01 23:24:36 the weird thing is, the only way to get it to work correctly on my phone is to use actionBar.setHomeButtonEnabled(true); & actionBar.setDisplayHomeAsUpEnabled(true); after I set my custom adapter. Aug 01 23:24:45 canvs i think that will only work with phonegap Aug 01 23:25:04 yea thats a phoengap thing Aug 01 23:25:14 what does your timeoutHandler callback looklike Aug 01 23:25:49 private Handler timeoutHandler = new Handler(); Aug 01 23:25:57 shit nevermind you are not using a handler as much as just running a runnable Aug 01 23:25:59 timeoutHandler.postDelayed(run, 10000); // 10 seconds … Aug 01 23:26:06 you could do view.postDelayed Aug 01 23:26:18 view is null, i'd find a better way to get reference Aug 01 23:27:13 where is your WebView in relation to this code, are they in the same class scope? Aug 01 23:28:05 webView.setWebViewClient(new Callback()); webview is called in the activity scope Aug 01 23:28:26 where call back extends webviewclient Aug 01 23:31:36 How do I get the gridLayout to center my buttons? i have a 3*5 grid like I want but they are all in the left corner. I want all buttons to be on equal space from each other Aug 01 23:32:03 jaspertheghost, what i'm saying is Callback() in the scope of the activity or another class? Aug 01 23:32:30 yes same scope Aug 01 23:32:44 then whynot in your runnable just reference webView Aug 01 23:32:54 is webView a member of your activity class Aug 01 23:33:01 or an inner class Aug 01 23:33:06 i did… and it works (except i get the same crash) (sometimes) Aug 01 23:33:11 hmm Aug 01 23:33:58 webView.loadUrl() … works fine except i get the same crash occasionally Aug 01 23:34:22 is it saying webView is null crash? Aug 01 23:34:36 are you ever leaving the activity with webView then coming back to it? Aug 01 23:34:46 as in a new reference would be created for webView? Aug 01 23:34:57 no Aug 01 23:36:21 not really sure whatelse to say to help, guess if you are able maybe post your activity Aug 01 23:36:38 thats alot of code to read through Aug 01 23:37:02 not really, i'd skim most of it, just follow the logic of webview Aug 01 23:37:08 is it over 1000 lines? Aug 01 23:37:19 yes Aug 01 23:37:34 how big Aug 01 23:37:43 1700 Aug 01 23:38:06 if pastebin allows it go for it Aug 01 23:38:09 and i know i did some stuff sloppy in my coding (this i my first full android app) Aug 01 23:38:46 http://pastebin.com/T0FbCpZh Aug 01 23:43:07 do you ever hit lines 406-408? Aug 01 23:44:38 in practice it shouldnt but its there just incase Aug 01 23:44:49 and no i dont believe so i havent heard anything back from the users on it hitting that Aug 01 23:45:04 i'd narrow that Exception to something that you'd expect to catch, as it could run through your try{} start loading a page, error, then the timeout still stands running, but you are starting a new activity, nulling your reference to your webview Aug 01 23:45:11 k Aug 01 23:45:45 could CEdata string be null somehow? Aug 01 23:46:28 also just a quick question does line 244 cancel out 243? shouldn't relate to your error, but seems like extra work for nothing Aug 01 23:46:31 check it Aug 01 23:46:42 do += work on strings, if so i wouldn't think so Aug 01 23:46:50 plus i think you ro CEdata = ""; Aug 01 23:46:59 so it should be empty but not null Aug 01 23:47:09 244 cancels 243 Aug 01 23:47:37 your right its double work didnt see that Aug 01 23:48:06 Can I force Progaurd to obfuscate a specific file? Aug 01 23:48:09 In the raw folder. Aug 01 23:48:10 you sure my pointer to webview would eb null if a new activity is called? Aug 01 23:48:24 Yes Aug 01 23:48:24 the activity is an error dailog i create Aug 01 23:48:48 would ondestroy be called? in the urlactivity? Aug 01 23:48:54 cause i destroy the webview there Aug 01 23:49:07 and how does the variable get reinit after i close the activity? Aug 01 23:49:09 I'm seeing you doing alot of startActivity upon catch() statements, i'm guessing you should start with that Aug 01 23:49:52 plus really shouldn't rely on catch(Exception e) as it is too broad, you should only catch what needs caught based on what you are using Aug 01 23:50:11 yea i know, im going to be fixing that in later releases Aug 01 23:50:19 how can i make sure the object is reinit upon returning to original activity? Aug 01 23:50:44 wow, this android wear data item stuff is weird Aug 01 23:50:53 are you getting the errors running this app yourself or are you users? Aug 01 23:50:56 especially to do some live UI changes Aug 01 23:51:36 just my users Aug 01 23:51:37 jasper if it is an activity and it was destroyed it would be expected to run onCreate again Aug 01 23:51:47 If you are starting for result that shouldn't be the case Aug 01 23:51:57 jjbrunton thats what i thought Aug 01 23:52:33 jaspertheghost: I'd try to find out what happened before the Crash, did they get any other visible errors for anything else before it happens, ie. Error loading/saving to DB, no Data connection etc... Aug 01 23:52:49 This is where Crashlytics is a god send Aug 01 23:53:06 yea to bad the boss is super cheap Aug 01 23:53:31 It's free :) Aug 01 23:53:44 does it send remote crash reports? Aug 01 23:54:01 Yes and a full device capture before the crash (statistics and states) Aug 01 23:54:26 jaspertheghost: I've scanned through your Activity&only real things that have me questioning webView being null, is startActivity&or your users trying to load the page, then leaving your app&coming back within the 10sec window Aug 01 23:55:11 otherwise you initiated webView correctly so it has to be losing reference, and with your 10sec timeout, that reference is no longer valid to your original webView Aug 01 23:56:20 so maybe in your runnable, check to make sure the view you are using in it is null, if not then proceed with your error loading page, otherwise ignore the timeout Aug 01 23:56:37 on phone with user Aug 01 23:56:38 1 sec Aug 01 23:56:50 the users are retarted so its hard to deal with them Aug 01 23:56:55 not tech savy at all Aug 01 23:56:57 :) Aug 01 23:59:41 there telling me its not crashing Aug 01 23:59:58 then problem solved :P Aug 01 23:59:59 and to be honest all of them have said this about this error Aug 02 00:00:09 except that i have code in there that sends me these reports on uncasight eceptions Aug 02 00:00:18 and uncaght exceptions always are crashes Aug 02 00:00:33 esepcially on null pointer are crashes no? Aug 02 00:00:37 gotta find the person it's crashing on Aug 02 00:00:45 yeah any uncaught exceptions will crash ya Aug 02 00:01:04 and the google crash reports doesnt show the crash either … so maybe its just an exception and it fixes itself? Aug 02 00:01:33 An exception that fixes itself, I want me some of those Aug 02 00:01:39 me too lol Aug 02 00:01:46 i cant explain it otherwise... Aug 02 00:01:56 that's where you need to close the gap on what exceptions you catch so you know when you get unexpected behavior and deal with it appropriately Aug 02 00:02:43 and don't wrap all code in try{}catch{} just what needs it, and can add finally{} to finish up. Aug 02 00:06:40 http://lpaste.net/108608 <- Why do i not get any space between rows and columns in my gridlayout? Aug 02 00:07:15 and why is the grid not centered. all buttons are in the left corner Aug 02 00:07:23 if (webView == null) { showalertdialog( with error and etc… } else ... Aug 02 00:07:29 hujn: show a screenshot Aug 02 00:07:32 thats my solution for now Aug 02 00:07:50 thanks canvs we’ll see how it goes Aug 02 00:07:57 cool, goodluck Aug 02 00:08:18 jaspertheghost, you putting that in your runnable? Aug 02 00:08:30 yes Aug 02 00:09:25 i would just do , if(webView !=null){ doTimeoutStuff;} otherwise just ignore the timeout and fallout the runnable, as no reason to show anything if no crash Aug 02 00:11:06 tru Aug 02 00:12:44 be best if you could reproduce the error yourself so you aren't chasing your tail about it :) Aug 02 00:16:13 mtp://[usb:001,010]/Phone/Pictures/Screenshots/Screenshot_2014-08-02-02-09-30.png Aug 02 00:16:26 canvs2321, screenshot abov Aug 02 00:16:27 e Aug 02 00:16:42 http://sv.tinypic.com/view.php?pic=1z17ek4&s=8#.U9wtutbzTFY Aug 02 00:16:45 there it is Aug 02 00:23:24 hujn: is it in a fragment? what is that background from Aug 02 00:23:51 the background is a png. it is in a fragment Aug 02 00:24:07 show your activity layout Aug 02 00:24:22 or the layout that contains your fragment Aug 02 00:25:30 fragment container* Aug 02 00:25:43 or twat ever :) Aug 02 00:27:44 what was the name of that app crashanalytics? Aug 02 00:28:01 maybe crashalytics Aug 02 00:28:06 or something similiar Aug 02 00:28:33 its not free... Aug 02 00:28:36 https://try.crashlytics.com/ Aug 02 00:28:53 it is free Aug 02 00:29:07 free to try Aug 02 00:29:22 and then free after Aug 02 00:29:43 ok theats fucking sweet then Aug 02 00:30:05 says im on the list Aug 02 00:30:08 what now i wait Aug 02 00:30:09 ? Aug 02 00:30:19 i have no idea Aug 02 00:31:43 canvs2321, http://lpaste.net/108612 <- thats the activity layout Aug 02 00:33:21 where are you setting that background? is it part of your theme? Aug 02 00:33:59 seems like many layers to this onion :) Aug 02 00:34:32 something is set to wrap_content, or is hardcoding a size, as so far you have match_parent for the last two layers Aug 02 00:34:37 hujn: what do you expect each, of your buttons is wrap_content/wrap_content Aug 02 00:35:00 napalm but he has spacing of 60dp that isn't getting set Aug 02 00:35:16 you know in the youtube app (and others ) the white panels on the grey background (what is that called) how can i make it look like that with a listview can someone point me in the right direction Aug 02 00:35:24 his gridlayout is set match_parent Aug 02 00:35:33 GridLayout != GridView Aug 02 00:35:47 lol Aug 02 00:35:49 ahhh that may make since Aug 02 00:36:19 hujn: show a screenshot of setting your GridLayout background to a solid color Aug 02 00:36:43 I've never used GridLayout so i'm not well versed :) Aug 02 00:38:06 what is the diffference between GridLayout and GridView? Aug 02 00:38:47 http://developer.android.com/reference/android/widget/GridLayout.html , GridView uses an Adapter, like ListView but a Grid Aug 02 00:40:24 hey guys, this doesn't resolve for me in styles.xml - @android:style/Widget.Holo.Spinner.DropDown.ActionBar Aug 02 00:40:31 for parent attribute Aug 02 00:40:36 what gives? Aug 02 00:41:42 it's not a public style Aug 02 01:10:03 Hi Aug 02 01:10:13 When an app is in alpha testing in the Play store Aug 02 01:10:20 And you don't specify any groups Aug 02 01:10:26 it can't be downloaded, right? Aug 02 01:14:24 anyone? Aug 02 01:18:21 thx JakeWharton Aug 02 01:18:45 this official blogpost is not working for me http://android-developers.blogspot.com/2011/04/customizing-action-bar.html Aug 02 01:32:50 i dont understand why studio stopped working. i made no change and yesterday studio was runing good. what i should do to find outbreason? Aug 02 01:33:19 out reason ? Aug 02 01:34:25 stopped working how? just pops up a msg saying "Not today u!"? Aug 02 01:34:56 that is what i dont understand. it do not even start on clicking the icon Aug 02 01:35:23 what OS, or does AS only work on Windows? Aug 02 01:35:32 debian wheezy Aug 02 01:35:32 or u running a VM? Aug 02 01:35:57 what if you ran the executable directly compared to icon? Aug 02 01:36:05 no VM, and openjdk 7 was installed before studio Aug 02 01:36:23 or ran the executable from commandline any output Aug 02 01:36:33 even, directly running executeable do not work Aug 02 01:37:27 gotta be some output somewhere, are you able to run ps and see if it's running? Aug 02 01:37:56 the studio.sh is not working. no. there is no output anywhere , no error message and nothing Aug 02 01:38:24 im sorry, what is ps? Aug 02 01:38:34 show's running processes Aug 02 01:38:43 commandline Aug 02 01:38:45 ok, let me check Aug 02 01:38:53 what is in studio.sh Aug 02 01:39:26 ps | grep "Android" or ps | grep "Studio" or whatever they have it Aug 02 01:39:42 guess need to know what studio launches Aug 02 01:44:09 Has anyone been having problems with 23.02? Aug 02 01:44:28 I just update two date ago and been having problems Aug 02 01:44:35 days* Aug 02 01:44:44 what kinda problems Aug 02 01:44:50 girl problems? Aug 02 01:44:57 well it crashes when i try to make a project Aug 02 01:45:06 crashes how Aug 02 01:45:12 into a pole? Aug 02 01:45:14 tree? Aug 02 01:45:17 lol Aug 02 01:45:25 no like completly down Aug 02 01:45:43 and what is 23.02? build tools Aug 02 01:45:47 ? Aug 02 01:45:51 I try two new install and downloads and same results Aug 02 01:46:02 build tolls i think 20 Aug 02 01:46:07 you need to give more info, so i stop making stupid guesses Aug 02 01:46:13 tools* Aug 02 01:46:16 what is 23.02 related to? Aug 02 01:46:46 Yes, I have 20 Aug 02 01:46:54 what is 23.02 Aug 02 01:47:08 the new one Aug 02 01:47:14 of build tools? Aug 02 01:47:19 oh Aug 02 01:47:34 I dont see where i can get 23.02 at lol Aug 02 01:47:36 canvs2321: the grep command did nit show no process while my studio is running now. i used killall studio.sh and executed studio again and studio started Aug 02 01:47:55 androidlinux64: me confused Aug 02 01:48:04 abator: can you pastebin studio.sh Aug 02 01:48:07 same here Aug 02 01:48:11 hahah Aug 02 01:48:16 [21:44] Has anyone been having problems with 23.02? Aug 02 01:48:22 wtf is that? Aug 02 01:48:41 from what i found online yes Aug 02 01:48:51 ahhhh Aug 02 01:49:06 AOL version 23.02? stop using AOL! Aug 02 01:49:34 23.02 doesn't mean shit :/ atleast to me Aug 02 01:50:10 the problem is I thought i just had a bad download and i remover my old stuff Aug 02 01:50:34 Fuck, bad download of what, use words not numbers Aug 02 01:50:51 im sorry i could not find way to pastebin studio.sh . what does it mean? do i need to run studio.sh from terminal for pastebin? Aug 02 01:50:57 the 23.02 Aug 02 01:51:03 i hate u Aug 02 01:51:05 :) Aug 02 01:51:14 abator: cat studio.sh then paste that Aug 02 01:51:21 oh ok Aug 02 01:51:24 i wanna know what's in the script Aug 02 01:51:59 the 23rd month 2nd day == ? Aug 02 01:52:13 I try to downgrade to 22.6 I think and it made me update still Aug 02 01:52:14 or the 23hr 2nd minute == Aug 02 01:52:34 android, you are not welcomed :P Aug 02 01:52:58 i'm gonna snail mail you a harsh letter Aug 02 01:53:53 what are the highest sdk tools working? Aug 02 01:53:54 androidlinux64: just use the 7 from the 0x48D bottom corner of the 9 there is a 1 that multiplies by 0 resulting in a divisible int that also is 0 therefore crashing u Aug 02 01:54:08 19 working, 20 test? Aug 02 01:54:59 So I need to find 19 Aug 02 01:55:11 sdk, and tools not the same? Aug 02 01:55:20 what is the higest ide working currently? Aug 02 01:55:22 you never said tools.... Aug 02 01:55:28 you just beat around bush Aug 02 01:55:31 canvs2321: the cat sutdio.sh http://paste.debian.net/113252/ Aug 02 01:55:42 i c 23.0.2 for tools Aug 02 01:56:44 androidlinux64: next you need to show your crash Aug 02 01:57:26 Thats alot to paste in here and which crash? Aug 02 01:57:34 who here uses crashalytics? Aug 02 01:58:34 Crashlytics, what is your question, and what have you researched, that isn't showing you what you want. And are you still chasing your tail? :) Aug 02 01:58:42 I try different setups some more successful then others Aug 02 02:01:51 abator: seems like running that should give you some output, but i'm not expert on linux&AS tho :/ Aug 02 02:02:27 androidlinux64: is your app crashing, or the IDE? Aug 02 02:02:52 well I think both are Aug 02 02:03:12 when I try the hishest eclipse and sdk 23.02 Aug 02 02:03:14 no.... Aug 02 02:03:17 I am sure both are Aug 02 02:03:24 are you getting a stacktrace from your app? Aug 02 02:03:26 canvs2321: the ide was not starting at all. imthink previous process had some dead part and that is why new was not runnning Aug 02 02:03:27 I jusr need to know what seyup is working best Aug 02 02:03:36 it is stuck on will make the following changes: Aug 02 02:03:49 and there is no changes displayed and when i hit next it just stays there Aug 02 02:03:58 i cant get passed that screen Aug 02 02:04:15 android studio 8.2 jdk 7 Aug 02 02:04:32 jaspertheghost: does the Crashlytics site have a FAQ? Aug 02 02:04:43 or maybe SO has similiar questions with answers? Aug 02 02:04:57 yes, i actually emailed them support guy got back to me…said its not suppose to do that Aug 02 02:05:03 waiting to hear back with extrqa info Aug 02 02:06:12 another issue is about error message, gradle project sync failed. do i need to worry about it. or i can make a new project without gradle. i used android after sometime. i think some new things are creating issue. also aapt was new thing for me. Aug 02 02:06:35 they are your best bet, but, why are you wanting to use it, besides someone mentioning it? seemed like your issue wasn't that great to need a 3rd party to diagnose, more of you seeing an issue, but it was a rare one, and such that you should have changed your code to check a view, if null, ignore and just continue, if not display a page Aug 02 02:07:02 abator: just make sure you have internet connection&resync til done Aug 02 02:07:16 ok Aug 02 02:07:20 well i have my own class to capture crash’s and send me info… i was actually looking for a btter tool and had looked at this application before but thought it was $$$ Aug 02 02:08:15 jaspertheghost: this goes back to me telling you to nail down your exceptions&quit just bundling Exception e, and know why&the how of to handle situations Aug 02 02:09:10 im going to do that as well Aug 02 02:09:51 jaspertheghost: so f Crashlytics&having to relearn something that shouldn't be needed. Just be a programmer&problem solve :) Aug 02 02:10:30 they are a gimmick solution for the unwilling to learn/understand. Be your own boss, and know the flow Aug 02 02:10:48 which revision 19 is working best? Aug 02 02:11:03 well i’d rather have a better soltion that my current to capture uncaught ececptions and get a stacktrace to me via email Aug 02 02:11:39 androidlinux64: always stay updated, if issues arise, be able to accept and find a solution. Even if bleeding edge, you should understand what's going on Aug 02 02:12:10 jaspertheghost, you need to understand those exceptions Aug 02 02:13:31 i dont follow? so how should i remotely debug and know what is wrong when the application crashes for an unknown reason that i havent accounted for yet becuase of a bug i didnt realize was going to happen? Aug 02 02:13:46 i know that if i'm messing with images, if i'm not careful i can get an OOM exception, or if loading from disk i get FileNotFoundException, etc... when you write code, you read the docs of, hey i wanna do this, but if doing this then that can happen, i catch it and go with it Aug 02 02:14:10 you think of all roads, you have to think like a user Aug 02 02:14:39 so your saying i should write perfect code the first time? Aug 02 02:14:45 not just catch(Exception e){do this} as that doesn't tell you much Aug 02 02:14:48 nope Aug 02 02:15:07 i already understand what your saying with the catches (what i am saying is i need more than just that) Aug 02 02:15:09 i'm saying if you wanna use a Method, you read the docs of if i do this, what gets called if i fail Aug 02 02:15:16 i will take the suggestion and make the changes Aug 02 02:15:41 but i’d like to use crashalytics in general for this application now Aug 02 02:15:48 since i know its free and has alot of tools i could use Aug 02 02:16:01 with Android Studio i do alot of Ctrl-Q, it brings up the docs and tells me what Exception is called or what value is returned if fail Aug 02 02:17:13 btw i know i asked ebfore but i didnt see anyoen answer it (prolly missed it) … in youtube for android the white panel’s ontop of the greay background how do i do that/what is that called Aug 02 02:17:56 show a screenshot Aug 02 02:18:29 http://cdn.cultofandroid.com/wp-content/uploads/2013/08/Screen-Shot-2013-08-20-at-13.50.48.jpg Aug 02 02:24:39 jaspertheghost: http://developer.android.com/training/implementing-navigation/nav-drawer.html Aug 02 02:25:01 jaspertheghost: oh, the white panels, nevermind Aug 02 02:25:13 I think the term for those is "cards". but *shrug* Aug 02 02:25:43 e.g. https://github.com/gabrielemariotti/cardslib Aug 02 02:26:19 yea the cards Aug 02 02:27:41 isn't there some card thing in the support library now ? Aug 02 02:28:11 Yeah, I thought there was, but my brief googling didn't show anything Aug 02 02:28:47 it might be in 21-rc Aug 02 02:30:21 thanks Aug 02 02:46:50 jaspertheghost: you don't Necessarily need a library for that, do you know about draw9patch, or layer-list etc? Aug 02 02:50:01 jaspertheghost: There exists sample code that has some kind of card view and layout available: https://developer.android.com/samples/BatchStepSensor/index.html , That sample only works on 4.4 and up. Aug 02 02:55:01 it's just a layout Aug 02 02:56:37 yeah **** ENDING LOGGING AT Sat Aug 02 02:59:59 2014