**** BEGIN LOGGING AT Fri Oct 10 02:59:59 2014 Oct 10 03:00:22 yeah its lame android is junit 3.x or some crap Oct 10 03:00:34 thats like, 10 years ago ? Oct 10 03:00:42 maybe 50 Oct 10 03:00:52 Yeah, I hate the "testFoo", "testBar" stuff. Oct 10 03:02:35 I kinda hate JUnit in general. Hamcrest is horrible to use. Oct 10 03:02:38 NUnit is way nicer. Oct 10 03:03:15 Parameterized testing is just neat. Like [TestCase("some value", 5)]public void TestWhatever() { } Oct 10 03:03:40 Paramterized tests in JUnit 4 are a mess. Oct 10 03:03:45 +e Oct 10 03:04:38 Sorry, that'd be "public void TestWhatever(string first, int second) {}". Oct 10 03:04:49 check our burst Oct 10 03:07:54 Interesting. This is another one: https://github.com/Pragmatists/junitparams Oct 10 03:08:07 On the topic of JUnit, the documentation is terrible. Oct 10 03:08:08 Just terrible. Oct 10 03:08:19 And Hamcrest sucks. Oct 10 03:08:23 AssertJ is way nicer. Oct 10 03:08:36 Even the name "Hamcrest" is bad. Oct 10 03:12:56 maybe Spamcrest would be better Oct 10 03:13:36 Does anyone use Hamcrest? AssertJ assertions look like this: assertThat(foo).isEqualTo(bar); I much prefer that. Oct 10 03:13:49 assertThat(x). + Ctrl+Space gives you loads of options. Oct 10 03:14:52 i think the matchers give better output Oct 10 03:14:55 hamcrest Oct 10 03:31:45 What was that Parcelable thing you linked to the other day, JacobTabak? Oct 10 03:31:49 i wonder if anyone actually uses the CVS plugin of AS Oct 10 03:31:50 I can't find it in my history for some reason. Oct 10 03:35:32 g00s: i'm sure someone does Oct 10 03:35:38 g00s: cvs will never die in some environments Oct 10 03:36:01 g00s: like the people forced to deal with perforce, don't judge, just pity. Oct 10 03:36:29 dragorn do youuse git ? Oct 10 03:36:41 lately. or svn. Oct 10 03:37:09 i couldn't decide between hg or git Oct 10 03:37:18 git unless you have a reason Oct 10 03:37:20 is my $0.02 Oct 10 03:37:28 yeah, thats what i went with Oct 10 03:37:28 I prefer Mercurial. Oct 10 03:37:29 more people use git than mercurial by far Oct 10 03:37:34 mercurial is fine Oct 10 03:37:47 It's basically the same but with a better UI. Oct 10 03:37:52 jsut for any given situation you're more likely to find help/support/etc with git Oct 10 03:37:53 Unfortunately, GitHub doesn't support it. :/ Oct 10 03:37:58 Right. Oct 10 03:38:14 In a fair world, everyone would use Mercurial. It's just better designed, IMO. Oct 10 03:38:32 TacticalJoke: I've got nothing against it, but if you don't already care, pick the one most people use Oct 10 03:39:05 But Git's UI isn't great. I think I'd recommend Mercurial to anyone. Oct 10 03:39:16 Git's Windows support also isn't fantastic. Oct 10 03:42:20 It's harder with GitHub supporting only Git, though. Oct 10 03:44:23 help. only 15mb free memory. AS 800 mb, java 600mb Oct 10 03:44:24 there are recommended settings for proguard? what should i use? Oct 10 03:45:11 i thought the sdk comes with some canned proguard config Oct 10 03:45:32 Windows Task Manager is showing Eclipse using 208K. javaw.exe, 476,516. Oct 10 03:45:52 so i just need to setup 3rd party libraries? Oct 10 03:49:15 cliffreich you might need to add some entries for 3rd party libs. sometimes not Oct 10 03:49:33 g00s: I wonder why my Eclipse is showing 208K and your AS is showing 800MB. Oct 10 03:50:13 nah, eclipse isn't running with 200K :) Oct 10 03:50:23 my stripped down eclipse would run with 380mb Oct 10 03:51:35 Yeah. Oct 10 03:51:49 I'm guessing it's some of that javaw.exe thing. Just wondering why it's not the same situation with AS. Oct 10 03:52:56 my javaw is running gradle deamon for AS Oct 10 03:53:44 I swear someone posted a Github thing the other day that was a shorthand way of using Parcelable. Oct 10 03:53:48 But I can't find it. Hmm. Oct 10 03:57:01 Okay, it was this: https://github.com/johncarl81/parceler Oct 10 03:57:16 how can I pass a class to an AsyncTask? Oct 10 03:57:39 you probably mean object Oct 10 03:58:21 just make it an asynctask Oct 10 03:58:46 https://github.com/square/retrofit/pull/578 going to test this now, just spent the last few hours trying to figure out wtf something wasn't working Oct 10 03:59:29 JacobTabak: Ok, but I can't seem to access the methods inside doInBackground Oct 10 03:59:53 you're doing like myTask.execute(myObject) Oct 10 03:59:56 Would you guys recommend Parceler? I see that it's not a good idea to use private fields with it. Hmm. Oct 10 03:59:59 then doinbackground, you get params[0] Oct 10 04:00:28 i rarely use private fields anyway Oct 10 04:00:56 TacticalJoke java is trending toward heavy reliance on generated code (via annotations) Oct 10 04:01:27 so the old theory of 'make everything private' is not very applicable, plus package visbility is nice for testing Oct 10 04:01:29 You use package-private? Oct 10 04:01:37 Hmm, interesting. Oct 10 04:01:38 yea, so you can set v alues easily on your unit tests as well Oct 10 04:01:58 Reminds me of Python, a bit. Oct 10 04:02:20 popular dependency injection libs (dagger, androidannotations) also require package-private Oct 10 04:18:23 can i upload an signed apk as debug for alpha or it requires release Oct 10 04:18:31 release Oct 10 04:19:29 ok Oct 10 04:25:44 Does anyone know if there is a equivilent for Robolectric for iPhone ? Oct 10 04:26:15 like run tests without emulator/device Oct 10 04:32:32 http://paulsolt.com/2010/11/iphone-unit-testing-explained-part-1/ Oct 10 04:32:35 first link Oct 10 04:32:59 dont know much about cpp but heard google test is good Oct 10 04:33:40 ty Oct 10 04:42:00 build completed, 41 seconds ! Oct 10 04:42:03 \o/ Oct 10 04:42:06 ugh Oct 10 04:42:28 whats going on 0.8.12 is dogging it Oct 10 04:59:05 dammit i didnt even know what day is it Oct 10 04:59:48 Hi all - so currenty my application uses getSharedPreferences to store the most recent searched item (from a ACTV), but now needs to be modified to store the last 5 items - am thinking of creating a Set to capture but I figure it really doesn't have the capacity for searching, and when the limit is reached I'd have to manually iterate over and then reset the Set... could I then use a LinkedList to assist with the list creation and then pass it to Oct 10 05:05:22 https://plus.google.com/u/0/+AndroidDevelopers/posts/XG1WmNDMe8H Oct 10 05:05:24 o! Oct 10 05:06:13 VM's on a mobile device? Oct 10 05:06:16 ha Oct 10 05:07:00 ;O Oct 10 05:10:09 Anyone have a tf101 they use for dev? I have one, used to be able to have adb recognize it, now it can't. Oct 10 05:10:32 i have one…somewhere Oct 10 05:10:43 dont use it for dev though… Oct 10 05:17:05 is their any way to stop a sleeping thread. say the thread is sleeping at Thread.sleep(5000l); is their any way i can kill it so the control passes to next line or breaks the loop? Oct 10 05:17:33 interrupt it Oct 10 05:19:07 oh nice, going alpha on my first android app Oct 10 05:19:09 any recommendation? Oct 10 05:21:28 has anyone successfully styled the overflow/options menu when there is a hardware button (aka on the note 2/3)? I've tried anything i've found online and even dropped in the styles from the ActionBar style generator. Nothing seems to work. Oct 10 05:22:06 lasserix: got it. thq. worked for me. Oct 10 05:23:01 cliffreich_ on what ? Oct 10 05:24:15 i dont know, it's my first app. anything important on the code or while testing Oct 10 05:25:04 erm… still dont quite get the question…you mean like…. "have you got good tracking and error reporting set?" Oct 10 05:25:46 cliffreich_ what app is it ? Oct 10 05:26:32 cliffreich_: 0x8B Oct 10 05:27:10 oh!! damn Oct 10 05:27:14 i forgot to set the acra Oct 10 05:29:16 JakeWharton whats that, any kind of cpu hex instruction Oct 10 05:29:17 heh Oct 10 05:29:34 you asked for suggestions on your alpha Oct 10 05:37:28 Hello my people Oct 10 05:37:36 hello Oct 10 05:37:37 is there some way to make the background of a http://developer.android.com/reference/android/support/v4/view/PagerTitleStrip.html transparent Oct 10 05:37:48 but it seems like the pagertitlestrip sits above (y axis, not z) the contents of the viewpager Oct 10 05:38:02 i would like it to overlap/hide somwhow instead Oct 10 05:40:06 hephaestus_rg, AtecStudios can help you with that Oct 10 05:40:18 NO! Oct 10 05:40:25 Beep Oct 10 05:40:31 STOP! Oct 10 05:50:11 sounds like a lot of people having problems with that new 64 bit image Oct 10 05:50:27 did we expect anything different? no of course not Oct 10 05:54:49 so, if i publish my app on alpha, only the members of the selected F+community Oct 10 05:54:54 G+ community Oct 10 05:54:58 can see it right? Oct 10 05:55:57 alpha or beta yes Oct 10 05:56:09 if there is no production apk uploaded that is Oct 10 05:56:30 StingRay_ are you in production yet? Oct 10 05:56:33 oh crap, i forgot to change the package in the manifest file Oct 10 05:56:54 damn i read that you cant change that Oct 10 05:57:03 should i delete the app and create a new one? Oct 10 05:57:09 g00s yeah, well I have 1000s of bugs to fix…and I'm thinking of doing something quite…erm… radical lol Oct 10 05:57:21 but soft release production version is out Oct 10 05:57:30 StingRay_ congrats, so beta is done ! Oct 10 05:57:40 169 pesos for 1 week of hspa+ w/ 1gb Oct 10 05:57:43 no..will be beta forever ;) Oct 10 05:57:44 thats not baf Oct 10 05:57:46 bad Oct 10 05:58:02 oh geez Oct 10 05:58:05 g00s now I have to get to a point that I'm willing to advertise it lol Oct 10 05:58:06 that's like $13 usd Oct 10 05:58:16 wrong package name is not good Oct 10 05:58:36 well, I guess I had to buy a Sim for 150 pesos though Oct 10 06:00:25 StingRay_ i hope not thousands of bugs :) Oct 10 06:00:51 4 A, 15 B, 36 C Oct 10 06:01:06 sorry 3 A now :) Oct 10 06:01:17 o.o wut Oct 10 06:01:21 so yeah, not thousands :) Oct 10 06:01:37 anyone got some experience with google billing api ? Oct 10 06:01:50 so, how are the admob incomings. are you guys earning something from free apps? Oct 10 06:02:04 g00s you dont have a Class system for bugs in mobile dev ? Oct 10 06:02:17 class system? Oct 10 06:02:28 class A,B,C etc Oct 10 06:02:50 reporting/severity class Oct 10 06:02:55 oh, yeah standard taxonomy is high medium low :) Oct 10 06:03:10 people typically go by blockers, critical, major, etc Oct 10 06:03:14 <-- console games, a,b,c :) Oct 10 06:03:53 i was using taskwarrior for my bug tracker :| Oct 10 06:04:03 probably should find some user-facing thing Oct 10 06:04:05 stingray whats your bug tracker Oct 10 06:04:11 my system is a GMail filter straight to trash Oct 10 06:04:28 does it even shred ? Oct 10 06:04:39 that's the email address Oct 10 06:04:42 shredder@ Oct 10 06:04:46 * pfn needs to booze it up more Oct 10 06:04:52 cliffreich__ I mainly use Mantis Oct 10 06:04:59 not. Getting my money's worth of unlimited drinks Oct 10 06:05:43 it's not unlimited. eventually you die. Oct 10 06:06:00 -. Oct 10 06:06:20 i was ready to use acralyzer but i think its kind complicated for a noob like me Oct 10 06:06:21 vomit is unlimited Oct 10 06:06:56 oh yeah, rainbow belly tarts :) Oct 10 06:06:56 so what were you saying? AtecStudios: Trystan34 Oct 10 06:08:01 anyways, now my problem is when i try to make a signed APK Oct 10 06:08:09 i get AssertionError: null Oct 10 06:08:46 holy crap, racoons are as smart as apes? there are plenty of them around here, maybe i can convince a few to work on my project Oct 10 06:08:59 this is the assertion error: http://paste.ubuntu.com/8531074/ Oct 10 06:11:10 whats the best error reporting for a noob? Oct 10 06:12:49 i forgot the name of that new thing for error reporting Oct 10 06:13:51 new thing ? Oct 10 06:14:58 now really new Oct 10 06:15:10 crashlyrics i think Oct 10 06:15:29 lytics Oct 10 06:15:41 yeah I use crashlytics Oct 10 06:15:50 not really new though I dont think Oct 10 06:17:24 ok, you can actually cheat in app purchases with root Oct 10 06:17:37 anyone tested it and got good solution for that ? Oct 10 06:19:52 so, the android command is downloading windows exes when I do the update sdk command Oct 10 06:20:02 any way to tell it to download the linux bins? Oct 10 06:20:11 I am running it on openbsd by the way Oct 10 06:21:16 no idea, sorry... Oct 10 06:49:43 ok, found it :) Oct 10 06:59:32 so... does anyone know if android development is possible on OpenBSD? is it possible without Linux emulation? Oct 10 07:02:48 Does anyone know if Android SDK development is doable on FreeBSD? Oct 10 07:03:02 it ought to be Oct 10 07:03:08 all you need it java Oct 10 07:03:14 and a build system like ant Oct 10 07:03:20 or maven if you prefer Oct 10 07:03:21 the tools are linux binaties Oct 10 07:03:30 binaries * Oct 10 07:03:32 which tools Oct 10 07:03:48 aidl Oct 10 07:03:50 adb Oct 10 07:04:03 in android-sdk-linux/build-tools Oct 10 07:05:50 lemme try the mac osx version Oct 10 07:05:56 thats bsd Oct 10 07:09:40 does anyone have experience in bluetooth LE on android? in my app it is very unstable.. Oct 10 07:09:48 noope Oct 10 07:09:53 mac binaries didnt work Oct 10 07:13:14 why would/should they Oct 10 07:13:26 what error message do you get Oct 10 07:15:22 exec format error: ./aidl Oct 10 07:16:48 for linux binary ? ? Oct 10 07:17:24 for osx Oct 10 07:17:38 after_r why on BSD ? why not use a supported platform to dev on ? Oct 10 07:17:42 linux or OSX ? Oct 10 07:17:46 exec format error: ./aidl Oct 10 07:17:51 thats for linux binary Oct 10 07:18:11 im thinking of just using linux Oct 10 07:18:16 but bsd is more secure Oct 10 07:18:18 try runing adb Oct 10 07:18:20 so im trying that Oct 10 07:18:25 *running Oct 10 07:18:30 it wont work Oct 10 07:18:38 are you able to install AS 0.8.12 ? Oct 10 07:18:47 as? Oct 10 07:19:06 oh Oct 10 07:19:07 no Oct 10 07:19:12 Im doing it on command line Oct 10 07:19:23 as doesnt come for bsd anyway Oct 10 07:19:31 android studio Oct 10 07:19:53 I have kind of a stupid question Oct 10 07:19:53 is there any point in which using Matcher.matches() will return true but Matcher.find() will return false? Oct 10 07:19:54 just cd to the platform-tools Oct 10 07:19:59 bsd for developing? Oct 10 07:20:01 and try running adb Oct 10 07:20:47 why Oct 10 07:20:51 i cant even build the apk Oct 10 07:22:37 man I have everything I need to be able to run L on the emulator, yet the AVD Manager doesn't offer that API from the dropdown list when Im creating a new AVD.. Oct 10 07:22:55 I have both images (Atom and ARM EABI, plus the SDK itself) Oct 10 07:23:16 i might need to do the emulator Oct 10 07:25:59 oh wow, i changed the package name, refactored everything but everytime the app closes i see Unable to get package info for com.myapp.app; is package not installed Oct 10 08:00:20 im receiving this error when i activate proguard for debug buildtype : Error:Execution failed for task ':app:proguardDebug'. Oct 10 08:00:20 > java.io.IOException: Please correct the above warnings first. Oct 10 08:00:22 any idea Oct 10 08:02:03 wait Oct 10 08:04:26 well I'm trying Android L on the emulator, button styles are not working Oct 10 08:04:56 background="@drawable/some_drawable_style_for_button" Oct 10 08:05:02 it isn't taking effect at all Oct 10 08:05:12 I really doubt that this will change when L is out! Oct 10 08:09:52 that seems less style more image Oct 10 08:10:16 what do you mean? Oct 10 08:10:43 you dont set style with drawable Oct 10 08:10:47 there is no image associated with the style, it's just a shape that has specific corners and color Oct 10 08:11:07 well sorry it's a drawable then, not a style Oct 10 08:11:27 you said button styles arent working Oct 10 08:11:41 true, I meant button having drawable property Oct 10 08:11:51 I mean background property! Oct 10 08:12:00 well bet its an error on your part Oct 10 08:12:13 why would it work on everything else Oct 10 08:12:32 everything Oct 10 08:13:14 I support 4.3 and above, and the background property works there on all platforms Oct 10 08:13:51 whats your drawable look like xml wise Oct 10 08:14:09 http://pastie.org/9636700 Oct 10 08:14:11 so innocent Oct 10 08:16:09 why padding in shape tag? is that correct? Oct 10 08:16:25 hmmm Oct 10 08:16:35 it's not wrong Oct 10 08:16:49 it maybe im used to having it as child Oct 10 08:17:42 the whole layout of the page is just wrong Oct 10 08:17:53 I simply started with teh background of the buttons Oct 10 08:18:00 yet it works everywhere else Oct 10 08:18:31 dunno, sucks if bug Oct 10 08:20:36 man this is UI Oct 10 08:20:41 what bug Oct 10 08:21:04 what could you possibly do that will break elsewhere, the means of creating a UI that will work on all platforms is obvious and clear Oct 10 08:21:11 you do it, you run it everywhere, it will work Oct 10 08:21:56 it's just that these guys at work, there's no convincing them that this is L and it's still in developer preview! There was one person who flashed their phone with L and saw that many apps broke, then said that later those app released updates to support their broken stuff on L Oct 10 08:22:29 will it break again when L is out? meaning the fixes will no longer make sense and probably break on older platforms? who the fuck will answer this Oct 10 08:22:35 asswipe google Oct 10 08:23:34 main thing is to remember its just a preview. are they updating the l preview, or did they just put it out once? Oct 10 08:23:38 ok I've determined now that it's definitely drawables that are not working, everything in the page I'm talking about that's broken, has a drawable with shape and rectangle and just like you saw Oct 10 08:24:40 it still not work if remove padding&corners? w just the solid color? Oct 10 08:24:59 Im trying with different things Oct 10 08:26:11 solid color works Oct 10 08:26:21 no padding, no corners Oct 10 08:26:29 add back padding Oct 10 08:26:32 shape still understands rectangle Oct 10 08:26:56 what's back padding Oct 10 08:27:17 add padding back in* Oct 10 08:27:32 yea already did, didn't break it Oct 10 08:27:35 it's just corners so far Oct 10 08:27:49 corners have always been iffy Oct 10 08:28:16 yea upon adding any corner it breaks Oct 10 08:28:16 if corners r all same radius just use radius instead of left/right etc Oct 10 08:28:32 makes sense.. Oct 10 08:29:12 back in 2.3 3.0 days you had todo weird tricks to add corners to only 2 sides Oct 10 08:29:13 yea that works.. Oct 10 08:29:26 with only radius Oct 10 08:29:31 cool Oct 10 08:29:52 seems they cant get setting individual corners right Oct 10 08:31:02 glad we could debug something that most here refuse to get into Oct 10 08:31:21 good old trial&error Oct 10 08:51:12 another thing it does is with toggles Oct 10 08:51:39 when the condition for a toggle to be switched is not met, you naturally want to add the code to set it back to unswitched inside the switch changed (or check changed) Oct 10 08:51:57 so you press (condition not met) --> toggle appears not to have even moved Oct 10 08:52:25 cause inside checkChanged you did toggle.setChecked(false). Well this one does not listen, it switches it as if nobody's business Oct 10 08:53:08 I think we need another channel, #android-dev-bitching :) Oct 10 08:53:19 wonder which would have most users ? Oct 10 08:53:32 bitching rightfully Oct 10 08:53:36 and I got things to work in the end Oct 10 08:53:55 developer is also a user, I will never settle! Oct 10 08:55:22 my http requests getting 401 Oct 10 08:55:27 used to work smooth Oct 10 08:55:38 pastie coming up Oct 10 08:56:58 401 is a http server code Oct 10 08:57:17 Looney: 401 is a server response - http://www.checkupdown.com/status/E401.html Oct 10 08:57:31 is the server yours? Oct 10 08:57:56 yup Oct 10 08:58:14 so you need server logs and figure out why you are getting rejected Oct 10 09:00:03 http://pastie.org/9636787 tried server with and without http:// Oct 10 09:00:07 going out Oct 10 09:00:13 will see you in a while Oct 10 09:00:44 you'll see us in a bag Oct 10 09:00:58 you'll see us in a forloop Oct 10 09:00:59 haha Oct 10 09:01:28 yep, no one has ever made that joke before Oct 10 09:01:30 I am certain Oct 10 09:03:24 looney, thepoosh already told you what todo Oct 10 09:07:56 Hi all. I have custom fonts in my assets/fonts directory. Currently I set the font in code for Button / EditText and TextView. Is it possible to set the font family in xml (style)? Oct 10 09:16:34 FrancescoV: There are tons of ways. Check out the "Fonts" category: https://android-arsenal.com/free Oct 10 09:18:12 surf2b1: thanks, will check it out Oct 10 09:42:07 so nested fragments are apperently bad Oct 10 09:48:04 what would be a use case of using them? Oct 10 09:48:29 Syzygy_ not bad at all Oct 10 09:48:43 well, only as good as fragments are Oct 10 09:54:19 StingRay_, well, so if I do startActivityForResult() within a nested fragment, not only does it not call onActivityResult in the fragment I called it from, it also modifies the requestCode Oct 10 09:55:17 Hello everbody. 7 months ago, someone said that the Android MediaPlayer doesn't support socket file descriptor as data source though mentioned in the official android documentation (the original post can be found here http://stackoverflow.com/questions/21770051/android-media-player-fails-with-local-socket-and-what-is-the-workaround-to-play). Could anyone deny that ? Oct 10 09:55:25 whatitis, I'm using a Sidemenu library that requires all of it's entries as fragments. on one of these fragments childfragments also make sense Oct 10 09:56:23 <_CalLightman_> Hi, i need some guidance with showing and hiding views, can someone help ? Oct 10 09:56:59 _CalLightman_: Please do not ask to ask, ask your question and someone might answer Oct 10 09:57:00 _CalLightman_, specific questions are prefered. you can hide and how views with view.setVisibility(View.VISIBLE); Oct 10 09:57:11 or View.GONE Oct 10 09:57:15 Syzygy_ doubt it would do that Oct 10 09:57:21 modify the request code Oct 10 09:57:24 it does. Oct 10 09:57:47 also as hinted by the name, it's "activity" releated Oct 10 09:57:52 not fragment Oct 10 09:57:59 but easy to handle and deal with Oct 10 09:58:03 first 16 bits are modified to some ID. since that is such an intelligent system i deal with it by discarding the first 16 bits and now it works Oct 10 09:59:08 http://blog.shamanland.com/2014/01/nested-fragments-for-result.html this explains a bit deeper what's going on with the first 16 bits, maybe it's because I don't usually get up before 2pm but i had trobule understanding it Oct 10 09:59:58 maybe it's the broken english though Oct 10 10:00:59 ah, the way I design it does not really have that issue Oct 10 10:01:14 there return bundle always has my fragment tag Oct 10 10:01:21 so how did you design it to avoid it? Oct 10 10:01:25 so I know where to direct it Oct 10 10:01:42 hmm Oct 10 10:01:50 I also keep the request tag + code Oct 10 10:02:12 so if it comes back canceled and I need to do something I can Oct 10 10:02:23 or user presses back etc. Oct 10 10:02:24 well, so far i'm happy with my solution Oct 10 10:02:47 requestCode = requestCode << 16; requestCode = requestCode >> 16; Oct 10 10:03:48 <_CalLightman_> I have a layout that contains a textview and an expandable list. I have implemented some drag and drop functionalify for the expandable list which is working fine. What I want to do now is that the text view must be VISIBLE on drag started and GONE when it ends ot view is dropped on it. The problem is that the textview does not reappear once set to GONE. Oct 10 10:03:57 <_CalLightman_> Here is the code snippet - http://pastebin.com/g1qdKADT Oct 10 10:04:32 <_CalLightman_> nstensen, sure thing, will keep that in mind :) Oct 10 10:05:52 _CalLightman_, well, you only set it to visible once you start dragging, you're not using GONE at all Oct 10 10:05:52 _CalLightman_ could be me, but your switch logic doesn't match your statement Oct 10 10:06:45 <_CalLightman_> oh yes sorry, I was trying out if it works with invisible but it is not, niether with gone Oct 10 10:08:09 <_CalLightman_> Syzygy_, StingRay_ : oh yes sorry, I was trying out if it works with invisible but it is not, niether with gone Oct 10 10:09:03 the difference between gone and invisible is that with invisible it still occupies the space while gone makes it zero sized Oct 10 10:09:21 anyway, as StingRay_ pointed out, your logic seems to be wrong. Oct 10 10:12:17 <_CalLightman_> Yes i understand that, but what is it that i am doing wrong, the drag listener will recieve DRAG_STARTED once i initiate drag operation Oct 10 10:12:39 hello Oct 10 10:12:42 <_CalLightman_> and then if i try to make view visible then it should work right Oct 10 10:12:42 any automatic Cursor <==> pojo solutions? Oct 10 10:13:24 I'm looking at http://greendao-orm.com/ and http://ormlite.com/ Oct 10 10:13:45 they seem pretty heaviweight Oct 10 10:15:44 do i need android build tools rev 17 to rev 23? if i have latest rev build tools will that work for all system? or depends on targets and api i need build tools? Oct 10 10:15:57 thanx whatitis and thepoosh Oct 10 10:16:12 I will try to ask client for logfiles Oct 10 10:19:23 i was updating sdk manager and i selected all to install and now its taking 20GB space. Can someone advice me that what all the things i can get rid off? which are not necessary. Oct 10 10:19:24 looney,you said it was your server. you have to find out why it is sending 401. what does them sending you anything do? Oct 10 10:32:56 Hello. I want to create a relay or proxy local server in my application. However, it should not be accessible from any other application ? Is that possible ? Oct 10 10:34:34 http://pastebin.com/m55zDYQe Oct 10 10:34:39 My alarm doesnt wanna work Oct 10 10:34:51 (i did add the broadcast receiver and service in my manifest) Oct 10 10:35:01 can anyone spot anything off? Oct 10 10:39:10 :( Oct 10 10:42:07 hello. I develop an app which makes a lot of volley requests to a server. Which is the best approach to implement the communication. 1) Via a service, 2) Via a no ui activity which will be responsible for the request or 3) make every request individually from every activity? Oct 10 10:43:57 resu01 well although 2) exists, you could not really use it for that I dont think :) Oct 10 10:44:26 ok. And from approaches 1 and 3? Oct 10 10:44:28 also resu01 the answer depends on too many factors for anyone to say, more down to you and the app Oct 10 10:45:55 which factors should i consider to choose the best approach? Oct 10 10:46:07 all of them Oct 10 10:46:16 :) Oct 10 10:47:10 can you tell me some pros and cons from approaches 1 and 3. Do you suggest any other solution? Oct 10 10:47:48 this is not really a place for 1on1 tutorials, but most of what you need is a simple google search away Oct 10 10:48:43 you are right. thanks! Oct 10 10:53:07 hi, got a question related to webviews. what is the actual mechanic of injecting executable javascript strings into a webview? Is it directly bound to the js-engine or is it injected as plaintext in e.g. the global execution context? Oct 10 11:08:29 can someone please help me out - my alarm doesnt fire :( http://pastebin.com/m55zDYQe Oct 10 11:26:02 :? Oct 10 11:54:47 Mother of god Oct 10 11:59:28 What about my mother? Oct 10 12:00:40 Hello everybody, i'm currently sending mms via network LTE it's work fine but i would to know if possible to avoid set the from value ( phone number ) in mms encapsulation. Because i can't extract everytime the number phone Oct 10 12:36:29 so I am stuck with something... Reading this page: http://developer.android.com/guide/components/fragments.html Oct 10 12:36:48 It clearly says that u can load a fragment in 2 ways and 1st one is to Declare the fragment inside the activity's layout file. Oct 10 12:37:05 I did this to display a Google Maps, but its class doesnt seem to run Oct 10 12:40:01 any clue ? Oct 10 12:42:20 your code looks ok, so not sure Oct 10 12:44:00 so Inside my GoogleMaps class i inflate my maps like this Oct 10 12:44:00 View rootView = inflater.inflate(R.layout.fragment_map, container, false); Oct 10 12:44:20 but that function seems to never run, like whole class never runs Oct 10 12:45:06 use a paste site Oct 10 12:45:47 ok give me a sec Oct 10 12:46:02 any good site that supports multiple files pasting? Oct 10 12:46:22 i just know bpaste and pastebin, but arent good solutions for this kind of issue Oct 10 12:47:36 just use something that does syntax highlighting. or if you have it like on git or something post a link Oct 10 12:48:02 mainly post xml of activity to start Oct 10 12:49:59 ok Oct 10 12:50:10 Main Activity class: https://bpaste.net/show/6f64a9bea274 Oct 10 12:50:13 GMaps class: https://bpaste.net/show/1e066c31125c Oct 10 12:50:19 main xml: https://bpaste.net/show/ad170f545f04 Oct 10 12:50:33 google maps are being displayed correctly, but their class code doesnt run Oct 10 12:50:35 thats my issue Oct 10 12:52:42 hi Oct 10 12:53:04 which class? you mean method? Oct 10 12:53:13 Hi added a new activity to my android app, but my android app crashes since then. Catlog displays http://dpaste.com/3P2M4YR Oct 10 12:54:06 The CMaps class is like never running, its methos yeah Oct 10 12:54:14 for inbstance the onCreateView Oct 10 12:54:34 so I think maps are only being shown due to the XML google maps element Oct 10 12:54:40 but they dont actually do something Oct 10 12:58:04 what happens if you use fragmentmanager to find your map by id, is it null or return it? Oct 10 12:58:47 use fragmentmanager where? In my main activity class? Oct 10 12:58:51 like you do with your navigation drawer Oct 10 12:58:54 yes Oct 10 12:59:14 i tried doing this http://prntscr.com/4usifx Oct 10 12:59:19 look the commented code Oct 10 12:59:23 but app Force Closes Oct 10 12:59:25 so I guess null Oct 10 12:59:47 ah u said find it Oct 10 12:59:49 ok one sec Oct 10 12:59:51 no, do it just like drawer Oct 10 13:00:04 but cast to your mapfragment Oct 10 13:01:36 yes one moment sir, thank you Oct 10 13:01:53 the commented part would work if you used a container, and youd add to it. you have your fragment in xml so it gets added automatically Oct 10 13:02:31 i tried removing it from xml Oct 10 13:02:38 and doing it with commented part, but it crashes Oct 10 13:03:06 What kind of crash, class cast exception? Oct 10 13:03:14 ok, back to personal project Oct 10 13:03:25 stick with adding it like navigation drawer. its auto inflated you just gotta get the instance Oct 10 13:03:30 i dont get any error at Logcat, just FCs Oct 10 13:03:31 from the manager Oct 10 13:03:37 I am using nested JsonNode.path to traverse inside a json object Oct 10 13:04:58 whatitis: I have the navigation code produced default with Android Studio, so I dont know what its doing yet Oct 10 13:05:33 just read that page, it tells you everything Oct 10 13:05:41 wish me lucj Oct 10 13:05:44 *luck Oct 10 13:05:59 maybe the problem is my gmaps code Oct 10 13:06:16 but I am creating the gmaps stuff inside the OnCreateView, which should be called automatically somehow ? Oct 10 13:06:42 the problem is like you said there are two ways todo it. you are trying to blend them Oct 10 13:07:59 I am not xD I tried that when I got confused Oct 10 13:08:07 well it seems like (I narrowed it down to barest of bare bones) I cannot do adapter.notifyDataSetChanged on L Oct 10 13:08:18 initially, I just created the Gmaps class that inflates the map itself and added the map xml fragment in my main xml Oct 10 13:08:19 crazy as that might seem, this is what's happening Oct 10 13:08:20 but doesnt work Oct 10 13:08:29 read that fragment page. its long so dont worry bout all of it. just the difference between defining fragment in xml and defining a container in xml to add fragment to in code Oct 10 13:08:33 and if I understand well thats the only steps i need to take Oct 10 13:09:52 This is my code: https://github.com/eayin2/intentmail/tree/master/src/myproject/intentmail Oct 10 13:10:28 whatitis: my issue is that GMapsFragment class is like it doesnt exist, Maybe I need to declare it in main xml or something? Oct 10 13:10:39 I have a list of objects that I feed to the adapter and construct the listview from it when I first arrive at the screen and that's working just fine of course. when I press on one of those items I change a property in one of the adapters array items and call notifyDataSetChanged, well nothing is happening when it's L Oct 10 13:10:52 I mean in Manifest.xml Oct 10 13:11:53 hello, my brother wants to make an easy android app, but he doesn't have program language knowledge, the free android makers thingies look like crap... is there anyway to make apps for free and easy? (so like the Android SDK, but a little easier) Oct 10 13:11:56 you dont need to add fragments in manifest Oct 10 13:12:22 :S then what is it, i dont really understand Oct 10 13:12:45 because I have created this GMapsFragment class which extends Fragment, but its not invoked somehow Oct 10 13:12:55 just inflates its own xml layout to main layout Oct 10 13:13:05 but its own overriding methods dont seem to run Oct 10 13:13:42 the notifyDataSetChanged IS working, sorry Oct 10 13:14:01 it's that sinewave I draw (from a class) that isn't getting coloured Oct 10 13:14:08 nor is its height changing as I need Oct 10 13:14:16 it's not getting affected at all with the adapter's change Oct 10 13:15:24 cnap: hmm you dont need fragmentManager in your fragment Oct 10 13:15:33 well this just got easier Oct 10 13:15:34 let's see now Oct 10 13:15:37 why wouldn't it color Oct 10 13:15:54 reference to the color passed wrong? color is like a strange resource number? Oct 10 13:15:55 cnap, you need the path to your GMapsFragment in your main xml Oct 10 13:16:13 thats why it isnt loading Oct 10 13:16:33 ahh i see it now Oct 10 13:16:39 Attach source doesn't work for the Android code, I select the source folder in the SDK, but nothing happens in Android Studio :-/ Oct 10 13:16:46 whatitis: as I said google maps are loading, but its methods do not run so i cannot do anything with the map Oct 10 13:16:47 com.your.package.GMapFragment Oct 10 13:17:08 you have it loading another fragment Oct 10 13:17:08 whatitis: it is done Oct 10 13:17:10 i have this inside the main.xml http://prntscr.com/4usnag Oct 10 13:17:40 Sollidius: tell him to check out mit app inventor Oct 10 13:17:44 oh so u suggesting i add an android:name inside it? Oct 10 13:17:47 Hi. Can someone explain me what is R.id.readtabcontent from here? http://developer.android.com/reference/android/support/v4/app/FragmentTabHost.html Regards! Oct 10 13:17:53 app inventor will need money later Oct 10 13:17:55 I think Oct 10 13:18:01 realtabcontent/ Oct 10 13:18:06 ** Oct 10 13:18:13 tell him to learn the language and put the effort, if he's young it will pay off so much later Oct 10 13:18:32 yeah that Oct 10 13:18:46 to your fragment Oct 10 13:19:13 How is Google getting this Material design shift so WRONG? :@ it's infuriating Oct 10 13:19:22 Is possible to put a FragmentTabHost inside a Fragment? Oct 10 13:19:23 Magic Oct 10 13:19:23 whatitis: ok did this right now but same problem Oct 10 13:19:41 I have Log.w messages inside every method in my GMapsFragment class Oct 10 13:19:46 nothing is being printed at logcat Oct 10 13:19:48 but in your fragment code, looks iffy with lines 37-44 Oct 10 13:20:20 alright, so I narrowed it down even more, I am able to have everything run (including (inside that drawing class) mPaint.setStyle(Paint.Style.FILL/STROKE)) Oct 10 13:20:31 repaste your xml Oct 10 13:20:33 that property is working fine as the line is being drawn in ...like a line, not filled Oct 10 13:20:39 updated* Oct 10 13:20:40 it's the mPaint.setColor that's failing Oct 10 13:20:55 whatitis: one more question. I have included the Maps xml fragment in 2 places. The maps own xml file and the main xml Oct 10 13:21:19 nested json object people http://pastebin.com/URYPNqSV Oct 10 13:21:44 setStrokeWidth is also working Oct 10 13:21:56 whatitis: activity_my.xml: https://bpaste.net/show/cda63b64694d and fragment_map.xml: https://bpaste.net/show/e80712601de9 Oct 10 13:22:06 I am using JsonNode's .path like rootNode.path("data").path("modhash") Oct 10 13:22:19 the maps are being show thx to activity_my.xml but never inflated from the GMapsFragment class Oct 10 13:22:23 but when I try to print/Log.d the Json Oct 10 13:22:38 *JsonNode, I get nothing Oct 10 13:22:46 cnap, you may wanna start new. some of the code just doesnt look right in your fragment. so maybe fresh code would help Oct 10 13:23:00 obviously, main goal would be dive into nested json objects Oct 10 13:23:16 whatitis: problem is that all this code is default produced from a Navigation Drawer project produced from Andcroid Studio Oct 10 13:23:26 I didnt change much, just added the google fragment inside it Oct 10 13:24:19 this is crazy... Oct 10 13:24:30 the same line colors itself on pre L, same line doesnt get colored on L Oct 10 13:24:52 if I dont call setColor on the line at the beginning (making it white), it renders as black, so setColor IS working Oct 10 13:26:06 cnap, should your GMapsFragment extend MapFragment? Oct 10 13:26:33 ive not dealt w it, so not sure how much it matters Oct 10 13:27:20 whatitis: I just changed it now, but problem remains Oct 10 13:27:22 good idea though Oct 10 13:27:36 but I am pretty sure i followed tutorials for every line in there Oct 10 13:27:39 and its mostly stolen code Oct 10 13:27:48 like 99% of it Oct 10 13:27:49 paste your main activity updated Oct 10 13:28:03 i did not change anything in there Oct 10 13:28:17 just tried this gmaps = (GMapsFragment) getFragmentManager().findFragmentById(R.id.ContactMapView); Oct 10 13:28:21 doesnt seem to return null Oct 10 13:28:24 paste what you have Oct 10 13:28:49 sure, btw thx for trying all this time to help me Oct 10 13:28:51 here https://bpaste.net/show/30f89fd1df80 Oct 10 13:29:14 lol, anyone check that secret FLV in the About Phone activity? Oct 10 13:29:17 for L, I mean Oct 10 13:29:22 but seriously i went over Googles doc like 10 times, either i am so stupid or something is wrong, like my API version or doc Oct 10 13:29:23 whats the class in xml for? Oct 10 13:29:30 it's that series of shapes (rectangeles) that made the news on Youtube a couple of months ago Oct 10 13:29:37 people thought it was extra terrestrials Oct 10 13:29:40 remember it? Oct 10 13:29:51 whatitis: what exactly do you mean? Oct 10 13:29:54 what is the difference between JsonNode path and get functions Oct 10 13:30:08 this class I sent u now is linked with my_activity.xml the main xml Oct 10 13:30:59 no in your main xml why the class in fragment tag. ive never used it so was curious Oct 10 13:31:20 also is _gmaps null after findbyid? Oct 10 13:31:31 nope i checked with an if Oct 10 13:32:07 as I said before, I just created a Drawer Navigation project from Android Studio Oct 10 13:32:12 and it produced all that stuff Oct 10 13:32:20 so I really dont know why its like this Oct 10 13:32:29 you added the maps fragment Oct 10 13:32:32 but if I manage to make this work its like 20% of my projects code Oct 10 13:32:37 yeah and the maps xml Oct 10 13:32:43 and the xml fragment inside the main.xml Oct 10 13:32:52 just those changes Oct 10 13:34:27 im asking what does having the class=... in the hmm. Was there some docs for google fit released? Oct 10 13:35:54 whatitis: I got it from here https://developers.google.com/maps/documentation/android/start#getting_the_google_maps_android_api_v2 Oct 10 13:35:59 u believe this may be the reason? Oct 10 13:40:26 i want to get my friend a book about android dev, any recommend a book? Oct 10 13:52:33 the views needed invalidate() when you do setThickness on them or setAnything Oct 10 13:52:51 I faced this with other drawing and invalidate() fixed it, never needed it in this case though, strange why now Oct 10 13:53:04 well, L basically broke nothing Oct 10 13:53:10 tell your friends, spread the word, stop bitching Oct 10 13:57:13 brx_: Unfortuanlly books go out of date really fast, but if you were going to get one I would say this one is pretty good http://www.amazon.com/Professional-Android-4-Application-Development/dp/1118102274%3FSubscriptionId%3DAKIAILSHYYTFIVPWUY6Q%26tag%3Dduckduckgo-d-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D1118102274 Oct 10 13:57:34 nice link Oct 10 13:57:35 lol Oct 10 13:57:41 I wouldn't touch that thing with a stick Oct 10 13:57:46 I just did Oct 10 13:57:58 he doesnt like that guy ;) Oct 10 13:57:58 I wouldn't suggest that one brx_ Oct 10 13:58:14 hes quite advanced too, even i could understand that book Oct 10 13:58:21 i need something that would challenge him Oct 10 13:58:26 lol! Oct 10 13:58:29 maybe a book on dalvik or something more 'lo lwvel' Oct 10 13:58:39 level* Oct 10 13:58:41 then you dont need to be asking here Oct 10 13:58:49 When you ask for a book, I assumed it was for someone to learn android. Oct 10 13:58:50 if you are advanced enough, you will find the books that interest you Oct 10 13:58:55 exactly pieces029 Oct 10 13:58:57 pieces029, no worries mate thanks for the suggestion Oct 10 13:59:09 i wanted to see what people recommended first Oct 10 13:59:22 Sicp, its not for me Oct 10 13:59:31 you as in he Oct 10 13:59:44 its a gift to say thanks for something Oct 10 13:59:46 he will know which books to get next if he's already on a roll Oct 10 13:59:58 get him something new, not something that he's already been through :P Oct 10 14:00:01 that's a good gift Oct 10 14:00:38 ok i see, perhaps yes Oct 10 14:00:43 C++ On Android, that sound challenging / new enough? Oct 10 14:00:47 Hi everyone Oct 10 14:01:17 I just pulled a project from github on my mac that is running on my friend's linux based pc Oct 10 14:02:03 I'm getting an error that says Installation failed since the APK was either not signed or signed incorrectly Oct 10 14:02:25 does anyone else faced problem in following what is mentioned in this email thread Oct 10 14:02:31 http://markmail.org/message/trbirof2mopkgr3l#query:+page:1+mid:ct7zsqpmr7akg3yx+state:results Oct 10 14:02:40 pieces029, maybe yes, that could be it. or someone else is saying to get him a book on haskall Oct 10 14:03:13 to challenge him, since its tech Oct 10 14:04:51 emacster: Remove the apk on the device you are installing it on Oct 10 14:05:51 Mrdarknezz okay Oct 10 14:05:53 i'll tr Oct 10 14:05:55 y Oct 10 14:08:30 he, just a sanity check: if my minsdk is 16, I don't need appcompat, do I? Oct 10 14:09:52 Estel: I've heard it recommended you always use appcompat because they can put fixes in it that you wouldn't otherwise have access to Oct 10 14:10:12 Mrdarknezz worked, thanks a zillion Oct 10 14:10:14 Estel: but you only need appcompat technically if you're planning to support a revision w/out the APIs you want to use Oct 10 14:10:25 dragorn: by "I've heard", do you mean that you do that? :P Oct 10 14:10:51 Estel: sometimes. Depends on the app. Oct 10 14:11:02 It's the word on the street Oct 10 14:11:55 how do you solve this app won't run without google play services, which are missing from your device Oct 10 14:12:17 I've put compile 'com.google.android.gms:play-services:5.0.+' in my grade dependencies Oct 10 14:12:41 emacster: You need to install google play services Oct 10 14:12:54 if you want to keep that dependecy Oct 10 14:12:59 dependency Oct 10 14:13:03 but I've installed them Oct 10 14:13:13 in the android sdk manager Oct 10 14:13:31 yeah but you need the application on the device from the play store Oct 10 14:14:50 i'm trying to run my app that uses google maps on an emulator Oct 10 14:15:01 how do i install 'em on the emulator Oct 10 14:15:03 ? Oct 10 14:16:18 don't know if google makes them available for an emulator. Oct 10 14:16:39 so do i want to try running the app on an actual device? Oct 10 14:18:16 ok gotcha Oct 10 14:18:24 emulators don't support maps, yet Oct 10 14:18:32 thanks for the help everyone Oct 10 14:19:09 emulator doesn't have full GApps, thus no maps Oct 10 14:20:27 Hi! Can I change a tabwidget tab style? http://www.androidbegin.com/wp-content/uploads/2013/07/ABS-FragmentTabHost-ScreenShot2.png i want to change the tab buttons.. like selectors, etc, how can I do that? Oct 10 14:25:55 friday! hi! Oct 10 14:29:20 Bpaul: chekc out https://romannurik.github.io/AndroidAssetStudio/ Oct 10 14:30:59 pieces029: i want to edit something in xml not use generators.. Oct 10 14:32:33 official iphone 6 ringtone https://www.youtube.com/watch?v=zarsqZCXO8Y&t=39 Oct 10 14:34:08 Sculptor: huh? Oct 10 14:35:01 Mrdarknezz, iphone 6 bends. it was in the news Oct 10 14:35:14 Sculptor: Did they debunk that? Oct 10 14:35:18 Didn't Oct 10 14:35:30 afaik, no Oct 10 14:35:49 I actually saw a video where they meassured the preasure needed and it was actually quite high Oct 10 14:35:53 Well, it bends with 90 pounds of force. Oct 10 14:36:07 and that Apple only got 9 custommers complaints about bent phones Oct 10 14:36:16 So yes, it does bend, but so does everything else if you put a bunch of force on it... Oct 10 14:36:57 Here are the results. http://www.consumerreports.org/cro/news/2014/09/consumer-reports-tests-iphone-6-bendgate/index.htm Oct 10 14:37:01 Bpaul: It gives you the xml Oct 10 14:37:58 pieces029, if you look at that test rig Oct 10 14:38:12 Hey, is it true that it's possible to write/read files without having a specific permission in the manifest as long as the files are in a tm Oct 10 14:38:18 it applies force to the middle of the phone Oct 10 14:38:19 pieces029: and what do to with the xml i get? Oct 10 14:38:22 are in a system temp directory* Oct 10 14:38:25 and iphone has a weak spot @ one third Oct 10 14:39:23 Bpaul: whatever you want. It's easiest to drag and drop it into your res folder. You could just look it over and see what it's doing and add it in by hand. Oct 10 14:39:48 pieces029: i know to create XML files, i don't know how to replace it with the fragmenttabhost ones Oct 10 14:40:22 Look at the xml that generates then... Oct 10 14:40:45 you don't understand .. Oct 10 14:40:49 i don't need to generate something Oct 10 14:41:02 Ok... Oct 10 14:41:39 And what do you need? Oct 10 14:41:51 to change a fragmenttabhost tab style Oct 10 14:42:17 exactly... So generate the xml from that site that would do that, and look at what it is doing. Oct 10 14:42:24 Then you learned how to do it! Oct 10 14:42:42 anyone who used nexmo sms api? Oct 10 14:43:12 people, I have a question Oct 10 14:43:25 if I have a class which implements runnable Oct 10 14:44:50 is it possible to make sure that I can call some function of class after the "void run()" has completed Oct 10 14:47:04 Looney: on a different thread? Oct 10 14:47:50 I want to maintain sort of "sequentiality" Oct 10 14:48:14 I am calling this class/runnable from my UI thread Oct 10 14:48:21 for obvious reasons Oct 10 14:51:00 Is it possible to format your Log.d output? Oct 10 14:51:07 Looney: your runnable can call the next stage as it completes Oct 10 14:51:17 Looney: or set a variable that a thread is waiting on or something Oct 10 14:51:36 For example: I want to insert indentations and new lines in a single Log.d string Oct 10 14:52:05 or how about, I have a variable/container for data as class' attribute Oct 10 14:52:26 and I modify its value when I am in run() Oct 10 14:53:03 and from UI thread, I call a function of my class which implements runnable to return data Oct 10 14:54:14 Looney: you should plan on synchronizing your variable access since a runnable is basically a thread, so you'd better be synchronizing around the accesses of those variables. Runnable can post to the UI thread to perform an update if you want to do it that way (by posting another runnable, amusingly) Oct 10 14:54:43 hehehe Oct 10 14:56:10 Looney: you can basically use whatever thread logic makes you happy, remembering you can't stall the UI thread so you can't just do a wait on the completion. If you're doing a bunch of work in a runnable and then posting the results to the UI, I'd probably wrap any access of those variables in synchronizers (so if the UI updates itself for some reason while the runnable is running, it's clean) and then trigger an update via runonuithre Oct 10 14:56:10 ad Oct 10 14:57:15 Looney: I usually have a function that preps the UI from whatever data store is behind it, and then trigger it when my async data completes. Usually I'm doing that because a service finished doing something in the background independent of the UI; the same UI update function pulls existing startup data & displays new data on complete Oct 10 15:00:04 are we biased in favour of handlers or post() Oct 10 15:13:12 Does anyone here use Android Studio? I was wondering how to handle going from Eclipse to AS when I have a bunch of libraries tied to my project. Can anyone Oct 10 15:16:57 Yeah, plenty of people do Oct 10 15:18:05 Estel: How do I make sure that those projects/libraries import correctly? Oct 10 15:18:14 Are they external dependencies? Oct 10 15:18:27 Yeah. Like I still use ActionBarSherlock Oct 10 15:18:41 But I have it downloaded and imported into eclipse. Oct 10 15:19:01 So I'm not using maven or anything. Oct 10 15:19:43 eghdk: AS does a pretty good job of importing the project from ant and moving it to gradle Oct 10 15:20:14 Then for your libs find them here http://search.maven.org/ and choose the groovy/gradle option, and paste it in. Oct 10 15:20:27 gradle/grails* Oct 10 15:22:47 pieces029: Hrm. So what do I do if I have a lib thats internal. Not on maven Oct 10 15:33:15 eghdk: one sec I have an example Oct 10 15:34:05 eghdk: you can make a libs folder, or really any folder you want and then in your build.gradle add "compile fileTree(dir: 'libs', include: ['*.jar'])" Oct 10 15:34:17 which will add anything in the libs folder with the extension of jar to your build. Oct 10 15:34:32 What if it's not a jar though? And just a library project? Oct 10 15:35:42 Add it as a module in AS and then you do " compile project(':{libraryNameHere}')" Oct 10 15:36:03 I think you need to add an include to your settings.gradle also Oct 10 15:36:40 My general rule of thumb, is if the author isn't willing to put enough time to put it in central, it's probably not worth my time to use it. Oct 10 15:36:58 "general" there are exceptions. Oct 10 15:38:23 pieces029: Yeah. But its my own library. Oct 10 15:38:32 But its private. heh. Any advice on that case? Oct 10 15:39:50 then you do the compile library name thing I said above. Oct 10 15:40:38 you could compile it to an aar if you don't want to check in the source if that's what you are worried about. Oct 10 15:46:16 when i wake my win7 pc from hibernation, AS starts reading disk vehemently and becomes unusable for 10 minutes or so Oct 10 15:46:24 any cure? Oct 10 15:49:56 hi Oct 10 15:55:55 Hello Oct 10 15:57:14 So I'm using Square Flow instead of fragments. Has anyone found a good way of doing Facebook auth and profile picture request without using Support Fragments? Oct 10 16:00:21 eghdk: the "right way" for shared library projects would be to use a local Maven repository and deploy your libraries there Oct 10 16:00:48 eghdk: then your projects can just add the local repository as well as central and grab the dependencies from there Oct 10 16:09:19 ("local" might also be a remote repository that you're hosting on a private server) Oct 10 16:10:19 Is there any way to test In App Billing of subscriptions that doesn't involve the charging of my card? Oct 10 16:15:26 "you should never pass an object that is tied to the Activity, such as a Drawable, an Adapter, a View or any other object that's associated with a Context. If you do, it will leak all the views and resources of the original activity instance. " Oct 10 16:16:08 I don't understand the "associated with a Context" part. Context stays the same - Activity only is just being recreated Oct 10 16:17:23 that means a : TextView tView = new TextView(this); where this == Context shouldn't have any problem... Oct 10 16:18:47 but activity can be destroyed and recreated and all Oct 10 16:18:58 ofcourse the findViewById() leaks but that's because the activity not a Context problem Oct 10 16:20:18 sq, so it's the Activity's problem and not Contexts. That's what I'm saying. But probably I'm wrong :( Oct 10 16:20:38 but activity is the context isn't it Oct 10 16:20:59 ^ Oct 10 16:21:05 hmmm... Oct 10 16:21:24 hi, I'm looking a pretty layout form in Internet that server me to use like a model Oct 10 16:21:39 where I can find it ? Oct 10 16:21:56 sq, so a Context changes ? ( http://stackoverflow.com/questions/11490599/can-application-context-be-changed-during-application-lifecycle ) Oct 10 16:22:20 can't view pages :< Oct 10 16:22:21 application context != activity context Oct 10 16:22:40 yuizy, oops! Oct 10 16:24:36 yuizy, so Context changes and that answers my question Oct 10 16:25:48 ceylon 1.1.0 is out, does this work on android? Oct 10 16:26:16 sq, thank you too for the help Oct 10 16:26:42 gavin king's posts indicate they want to get it working on android, but seems i'm pulling up old info Oct 10 16:50:28 I wrote a password into the code of my android app. I want to upload the app on github. Should I use sharedpreferenes to store the password or should I look for github features to hide my password? Oct 10 16:52:50 you can put the password into a separate config file and not add that to git Oct 10 16:52:59 add a template config file instead Oct 10 16:53:10 and just keep the file in local desync for the rest of forever Oct 10 16:53:25 Thanks for the hint, I'll try that Oct 10 17:01:53 I have a date object, through how many hoops do I have to jump to get the year, month and day individually? Oct 10 17:04:04 ok, I think I've found something Oct 10 17:04:21 Syzygy_, uh Oct 10 17:04:29 just call the methods on the object? :P Oct 10 17:04:35 what's the problem? Oct 10 17:04:37 nope, don't work Oct 10 17:05:00 also, canonical Java way of handling dates is with Calendar not Date Oct 10 17:05:08 most of the getStuff() objects on the date object are deprecated... and apperently for so long that they won't work anymore (or i'm just wrong) Oct 10 17:06:04 as in using it wrong Oct 10 17:06:57 ok, what I did works now. basically feeding a date into a calendar, then doing get(Calendar.YEAR) which I didn't find at first because it's just get(constant) Oct 10 17:07:39 How do I read a text file in android line by line? The text file contains just my password in one line Oct 10 17:09:52 Syzygy_, also, anyone half sane on backend uses JodaTime Oct 10 17:10:01 if you have to deal with dates alot consider it :) Oct 10 17:11:07 nah, no need. I'm pretty much done with it Oct 10 17:11:59 I've wrote my 800 character single line "convert unix timestamp to date" thingy Oct 10 17:12:22 and I've managed to make the spinner have the same date that the user selected before when he clicks it again, so I'm happy Oct 10 17:12:58 unix timestamp to local time of course Oct 10 17:15:52 I thought using dp's meant that all of your views are the same size across different devices? My views look great and in scale on xhdpi and xxhdpi but it's way off on hdpi... things are generally wider and taller than they should be. Is it possibly that the # of dp's are exceeding the # of physical pixels on the device? Oct 10 17:18:24 Is this the right place to ask questions about NDK? Oct 10 17:19:42 Syzygy_, hmm, I usually just initialize Calendar to local timezone and use setTime metho Oct 10 17:19:43 d Oct 10 17:19:47 Aster, probably Oct 10 17:20:12 Alright. Oct 10 17:20:16 Mavrik, does that take into account daylight saving? Oct 10 17:20:22 yep Oct 10 17:20:46 UTC epoch is timezone agnostic, where anything that properly handles timezones in Java is DST aware Oct 10 17:20:54 to be fair, I did use calendar, but it took a pretty long line to actually output it the way I want Oct 10 17:21:09 frankly, I shouldn't have done it in a single line anyway Oct 10 17:21:30 depending on if my colleagues will leave work soon or not I can show you what I did in a bit Oct 10 17:22:12 yeah, the neat thing about built-in objects is that someone already shot 100s of feet off to make them :P Oct 10 17:22:31 I'm trying to implement clipboard support for an application of mine, and code that seems entirely correct is crashing with a weird dalvik error: https://gist.githubusercontent.com/Mischa-Alff/4ee98909069937f10aa1/raw/57fb343f7dbc19e48e51025d4ceeb6fb0b3bcb51/error.log Oct 10 17:22:39 I know, I didn't find anything I could use though Oct 10 17:23:01 then again, I did refactor a fairly complex system into a 50 line class and it works just great now Oct 10 17:23:06 so sometimes it's better Oct 10 17:23:53 The code I'm using is: https://gist.github.com/Mischa-Alff/7c3342019247aa5eb8dd Oct 10 17:24:19 Please ignore the huge if tree, it's easier to debug if the application isn't crashing all the time. Oct 10 17:25:46 It crashes at line 52, which is weird because (as the print statement suggests), all the arguments passed to lJNIEnv->CallObjectMethod() are valid. Oct 10 17:26:27 Also, states->activity is a ANativeActivity, and thus states->activity->clazz is a jobject pointing to the app's NativeActivity object. Oct 10 17:27:53 Any help is appreciated. I've been trying to get this to work for three days now. Oct 10 17:28:28 What is the right path for a textfile within my android src folder? FileInputStream fIn = openFileInput ( "password.txt" ) ; Oct 10 17:29:58 Aster, hrm, that's kinda too much code to just look at and see the issue Oct 10 17:30:17 it can be a threading issue or just a typo Oct 10 17:30:55 if you want to stay half-sane, you should just create a java object for dealing with everything clipboard related and pass as little data across JNI as possible Oct 10 17:31:18 esing, you can't open a text file inside your android src folder Oct 10 17:31:27 Mavrik: it's 52 lines :) Oct 10 17:31:49 it's 52 lines of JNI spaghetti Oct 10 17:31:57 Indeed Oct 10 17:32:40 I'd love to stick it into a Java class and be done with it, but that would make distributing the software (not my software, this is a contribution) harder, and so I'm "not allowed to". Oct 10 17:33:31 Mavrik: Um, so where do I have to craete the password.txt file? Oct 10 17:34:01 esing: an assets folder, maybe? Oct 10 17:34:21 esing, assets or raw Oct 10 17:34:27 depending on how you want to access it Oct 10 17:35:31 Aster, hmm, are you by any chance blocking the main thread? Oct 10 17:35:59 Mavrik: this is being run in the main thread. Oct 10 17:36:22 ..I think Oct 10 17:36:58 It should be running in the main thread, unless Android/NDK stuff is messing around with it Oct 10 17:38:33 Good to know, thanks Oct 10 17:38:35 I'm trying to run my project (Eclipse proj) in Android Studio. But I'm getting an error when I hit the build and run button. "Error:(46, 9) Attribute application@label value=(@string/app_title) from AndroidManifest.xml:46:9" Any ideas? Oct 10 17:38:45 How do I open a file from the assets folder? Is this approach right? FileInputStream fIn = openFileInput ( getAssets().open("m1.map"); ) ; Oct 10 17:39:27 esing, http://www.wiseandroid.com/post/2010/06/14/Android-Beginners-Intro-to-Resources-and-Assets.aspx Oct 10 17:40:20 thanks Oct 10 17:46:23 Is there a way to clear lint errors in Android Studio like you would in Eclipse? (i.e. Right click project > Android Tools > Clear Lint Errors) Oct 10 18:20:22 In android studio where do I add: enforceUniquePackageName=false Oct 10 18:31:23 I accidentally uninstalled eclipse from my adt bundle (there is no eclipse executable in the eclipse folder in adt). How can I use the rest of ADT to install eclipse? Oct 10 18:36:49 You can't Oct 10 18:38:42 SimonVT: ok, reinstalling ADT from scratch. I should really move to Android Studio soon. Oct 10 18:41:00 O.o Oct 10 18:41:08 why don't you just download eclipse? Oct 10 18:41:24 ADT is an eclipse plugin after all Oct 10 18:41:58 Then it wouldn't be a bundle Oct 10 18:51:35 Hey everyone Oct 10 18:52:23 Is there a simple library to make multiple web api calls? Oct 10 18:53:45 *to handle Oct 10 18:53:59 or manage Oct 10 18:57:58 I'm looking to do product flavors in Android Studio. Do I need to create a different directory or can I just inline different code? IF {PRODUCT_FLAVOR==DEMO //do this}? Oct 10 19:08:13 I want to use something like PreferenceFragment but for a variable number of objects instead of app-level. Is there something meant for that, or do I just roll my own solution? Oct 10 19:13:09 Is there a way to alias selector drawable? Oct 10 19:13:32 I'm trying to override some files in libraries,but having 3 times same file sucks. Oct 10 20:17:42 lets hear suggestions for keeping api keys etc secure in your app Oct 10 20:18:15 preferably easy to implement Oct 10 20:20:01 what's api keys Oct 10 20:20:39 just stuff i dont want people to access by decompiling my apk Oct 10 20:21:56 You're pretty much screwed Oct 10 20:22:07 what about something with a native lib? Oct 10 20:22:24 can i write a native lib that uses the public key of my apk? Oct 10 20:22:35 You can combine it from multiple sources to make it harder to find, but if it's in the apk, people can get it if they really want Oct 10 20:23:09 so... Oct 10 20:23:14 there has to be some solution lol Oct 10 20:25:03 can you decompile a native c lib to get the string? Oct 10 20:25:22 we should have a suggestions/tutorials page and a apps page for this irc channel Oct 10 20:25:24 The solution is pretty much obscurity Oct 10 20:25:42 Jake told me he doesnt use proguard, i wonder how they do it Oct 10 20:26:04 shmooz we do its called google Oct 10 20:26:04 :E Oct 10 20:27:11 Anyone here successfully compile different flavors in Android Studio. I'm on the last step of the tutorial and it says "The BuildSystemExample app is now complete. To build it, invoke the assemble task from Android Studio or from the command line." But where the hell is "assemble task" Oct 10 20:27:23 SimonVT why can't we do what Google APIs does with the signed hash Oct 10 20:27:34 so only properly signed APKs can access google maps Oct 10 20:28:01 eghdk type ./gradlew tasks Oct 10 20:28:15 each flavor gets a task, like assemblePremiumDebug or assembleFreeDebug Oct 10 20:28:29 variant = flavor + buildtype Oct 10 20:28:42 flavor = "Premium" or "Free", buildtype = "Debug" or "Release" Oct 10 20:28:50 so i mean each variant gets a task Oct 10 20:29:34 JacobTabak: Yeah, but from android studio I can't say "Give me the Premium version and load it on this device"? Oct 10 20:29:39 Probably because they have a component on the device that can check the cert Oct 10 20:29:50 eghdk: installPremiumDebug or installPremiumRelease Oct 10 20:30:24 JacobTabak: Through cmd line though... right? Oct 10 20:30:31 ./gradlew installPremiumDebug Oct 10 20:30:32 yes Oct 10 20:30:46 SimonVT do you think those tools/components are not available to app developers? Oct 10 20:31:49 They can check the cert of the APK making the request, and compare it to what they have Oct 10 20:31:57 In their own service Oct 10 20:32:04 JacobTabak: Damn. That kinda sucks. I'll probably get some issue with which device I actually want to run it on... because I have like 3 emulators open. Oct 10 20:32:49 eghdk: There's a Build Variants tab in the bottom left corner Oct 10 20:32:51 you should just use 'assemble' and then use adb to install it on the device you want Oct 10 20:33:26 You can send the cert with every request if you want, but anyone else can just extract it from your apk and send it with their requests Oct 10 20:33:27 Hopefully someone can help me with this. I'm getting gradle build failed because Attribute "title" has already been defined. But this is more of a lint warning in Eclipse... Anyway to get it to build anyway? Oct 10 20:35:10 SimonVT so are you saying google apis fingerprint auth isn't actually secure? Oct 10 20:36:16 eghdk gradle merges resources and manifests of your project and library projects Oct 10 20:36:37 if you have 2 library projects with the same attribute defined, gradle doesnt know which one to take since theyr'e equal priority Oct 10 20:36:41 do you have library projects? Oct 10 20:37:02 JacobTabak, you can of course use the same approach as Google Maps uses Oct 10 20:37:20 Yeah, but I'm getting these attribute errors like 83 of them. But I wasn't getting them before. I did a "Clean project" and now it wont let me run my app... Any ideas? Oct 10 20:37:22 but I doubt it's going to be convenient and have a point Oct 10 20:37:40 Mavrik it seems like if someone created a tool it could be very convenient Oct 10 20:38:34 JacobTabak, http://android-developers.blogspot.com/2013/01/verifying-back-end-calls-from-android.html Oct 10 20:38:48 thank you for that Oct 10 20:39:44 but that does not really help you hide your API keys and stuff in the app Oct 10 20:39:59 just to verify clients using APK signature same as google services do Oct 10 20:41:13 Mavrik my idea was to implement that same auth process, but instead of authenticating with a server, authenticating with a native c lib where the keys are stored Oct 10 20:41:41 that just means that anyone can unzip the APK and copy the native lib anywhere Oct 10 20:42:06 yea, thats where the idea falls apart Oct 10 20:42:10 if they could get teh correct signature from the apk and use it Oct 10 20:42:16 to access the data Oct 10 20:42:55 JacobTabak: You have any idea why my project was building fine... then I did a "Clean project" and now its complaning? Oct 10 20:43:08 eghdk you probably have some big overarching issues Oct 10 20:43:12 with your project setup Oct 10 20:43:18 nothing i can really help you with over irc :\ Oct 10 20:45:00 JacobTabak: So you don't think theres anyway to reverse this "clean project" deal so that I can at least build my apk now? Oct 10 20:45:13 what did you change that broke it? Oct 10 20:47:49 JacobTabak: Like I said. All I did was a clean project in Android studio. Now when I build it I get all of these errors from a library Oct 10 20:48:37 eghdk the problem existed before you cleaned Oct 10 20:48:37 Theres absolutely nothing else that I touched Oct 10 20:48:50 eghdk cleaning just brought it to the surface Oct 10 20:49:07 JacobTabak: I understand that the problem existed... but it didn't fail my builds. Because I was able to build. Oct 10 20:49:19 I wish I could +1 this http://corner.squareup.com/2014/10/advocating-against-android-fragments.html a million times. Oct 10 20:49:21 you weren't building, you were reusing things taht were already built Oct 10 20:49:31 Is there anyway to hide those errors and just build anyway? Oct 10 20:49:38 depends what the errors are Oct 10 20:50:02 i cant help you without seeing your project, but i'm sure you can fix it Oct 10 20:50:33 JacobTabak: Yeah, I'm more looking for an equivallent to eclipses "Clear lint errors" button Oct 10 20:50:45 are they lint errors? Oct 10 20:50:50 or resource merging errors Oct 10 20:51:32 does moto 360 have a magnetometer? Oct 10 20:52:10 because I can't seem to be able to get the values :/ Oct 10 20:53:25 eghdk: http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Lint-support Oct 10 20:53:44 If you're certain it's lint errors, abortOnError false Oct 10 20:54:05 Duplicate attribute doesn't sound like a lint error tho Oct 10 20:54:15 In which case you have an issue you need to fix Oct 10 20:54:42 SimonVT: Yes. Understood. Just want to get a build out now, and I will fix those over the weekend. Thanks! Oct 10 20:55:51 SimonVT: One more thing maybe you could help me out with. I'm trying the demo for build flavors. So I have src/main/java/package/activity.java and src/demo/java/package/activity.java but I'm getting an error that the file already exists? Oct 10 20:57:23 main + type + flavor is compiled Oct 10 20:58:03 I'm not getting the error at build time. It's my java class thats complaining. Oct 10 20:58:20 'Duplicate class found...' Oct 10 20:58:57 Yes, that's what you're asking it to do Oct 10 20:58:58 DOn't do that Oct 10 21:00:47 What? But, the documentation states "Add a new activity to each flavor" Oct 10 21:01:14 So I have two activities, one in main and one in demo. Is that not how you do it? Oct 10 21:01:57 You want it to compile two classes with the same package and name into one apk Oct 10 21:02:02 == duplicate classes Oct 10 21:02:59 Hi.. where is the source code for tools like 'aidl' or 'dx' ? Oct 10 21:03:19 well. not dx but aidl Oct 10 21:03:58 the build tools Oct 10 21:03:58 ? Oct 10 21:08:25 I'm trying to follow the demo for doing build flavors in Android Studio. It's telling me that my class that I added already exists. How do I fix that? Oct 10 21:08:41 eghdk you can't have your class in both 'main' and a flavor Oct 10 21:08:57 either put one in each flavor (and leave it out of main) Oct 10 21:09:06 oh Oct 10 21:09:07 or use dependency injection to inject the correct one at runtime Oct 10 21:09:13 I thought "main" was a flavor Oct 10 21:09:17 nope Oct 10 21:09:19 or treated as a flavor Oct 10 21:09:27 main is the base that's merged with all falvors Oct 10 21:09:35 you only want to put stuff that's different in each flavor Oct 10 21:09:39 don't duplicate anything Oct 10 21:11:12 JacobTabak: Does debug and release differ in anything but proguard? Oct 10 21:11:25 Does release include logs also? Oct 10 21:11:57 debug and release are identical other than release needs to be signed with a release key Oct 10 21:12:20 you can use stuff like if (BuildConfig.DEBUG) { logging = true } Oct 10 21:12:34 you don't need to put separate logic in your debug directories for it Oct 10 21:13:05 you don't need to run proguard on release Oct 10 21:13:14 and you can run proguard on debug if you want Oct 10 22:05:38 https://github.com/ReactiveX/RxAndroid/issues/12 Oct 10 22:05:52 interesting discussion on unsubscribing from observables Oct 10 22:05:55 If I do if (BuildConfig.Flavor.equals("demo"){//In demo mode} else {// In PRODUCUTION} if someone decompiles my app... will they see that if statement? Oct 10 22:06:08 yes Oct 10 22:06:13 you dont want to do that Oct 10 22:07:09 eghdk you can do something like create one "manifest" file for each flavor Oct 10 22:07:23 and exclude it out of main Oct 10 22:07:35 that determines overrides for that flavor Oct 10 22:07:50 that way you can give your classses unique names for each flavor and avoid the issue you ran into before Oct 10 22:07:53 about duplicate classes Oct 10 22:08:18 for example a dagger module Oct 10 22:09:00 interesting. Oct 10 22:09:30 that way you only need to copy one file into each flavor Oct 10 22:09:48 so in your main class, you deal with interfaces Oct 10 22:09:58 and create an implementation for each flavor Oct 10 22:10:09 I don't think I'll be doing that (different manifest for each flavor). Theres just code that I don't want to be packaged with the app. I was hoping that at build time, Gradle would strip out the code that isn't possible to run Oct 10 22:10:22 when i say manifest, i dont mean like AndroidManifest of course Oct 10 22:10:30 Oh. Oct 10 22:10:33 i just mean something that declares the classes that will be overwritten Oct 10 22:10:34 Then I'm totally lost. Oct 10 22:10:36 hahah Oct 10 22:10:49 so here's an example Oct 10 22:11:29 i have a class called 'Modules' in "free" and "paid" flavors - this class does not exist in my "main" Oct 10 22:11:48 hi JacobTabak Oct 10 22:12:44 then I can make a method called "public Coffee getCoffee()" in my "Modules" class Oct 10 22:12:59 * genii sips the coffee Oct 10 22:13:05 and the free version can return a "CheapCoffee" object, and the paid version can return a "StarbucksCoffee" object Oct 10 22:13:23 both implement or extend coffee Oct 10 22:14:07 why would this be better, JacobTabak? Oct 10 22:14:23 StarbucksCoffee implementation can exist only in the paid flavor - so you don't even include that code for "free" users Oct 10 22:14:51 MyWay it just allows you to customize logic between flavors without duplicating classes Oct 10 22:15:03 oh, nice Oct 10 22:15:17 JacobTabak: Wait. Oct 10 22:15:26 But you just said you have them duplicated. Oct 10 22:15:35 no, because theyr'e different implementations of the same interface Oct 10 22:15:38 If you have Modules in free and in paid... then its duplicated. Oct 10 22:15:44 eghdk, Proguard does dead code removal Oct 10 22:15:50 it also does optimization and obfuscation Oct 10 22:15:53 yes - it's ok to duplicate code as long as it's not in "main" Oct 10 22:16:02 JacobTabak: Oh okay. Oct 10 22:16:05 eghdk, and you can deliberately set classes to remove in proguard configuration Oct 10 22:16:17 just create 2 flavors with different proguard configs and that's that Oct 10 22:16:35 So, how does this help if I have a bug in both free and paid of getCoffe, and I make a fix you have to fix it in both technically... right? Oct 10 22:16:46 yes Oct 10 22:16:49 eghdk you can have a base class in main Oct 10 22:16:52 if there is shared logic Oct 10 22:16:57 Gotcha. Oct 10 22:16:58 and extend it in free and paid Oct 10 22:17:00 Okay that makes sense. Oct 10 22:17:10 DRY Always applies :) Oct 10 22:17:29 True. Thanks. Oct 10 22:17:32 and Mavrik do you think that's a better suggestion than mine? seems totally unreliable and unsupported by the tools Oct 10 22:17:52 JacobTabak, what are you talking about? Proguard is supported in gradle by default Oct 10 22:18:04 you even get a default proguard configuration with a project and proguard is shipped as part of SDK Oct 10 22:18:27 it's pretty much the default code optimizer available for java Oct 10 22:18:30 because if you do it the way I suggested and use the IDE to switch between flavors, everything just works, refactoring, etc Oct 10 22:18:37 Can anyone help with this question? http://www.reddit.com/r/androiddev/comments/2iw9jh/help_please_cant_get_my_application_to_build_when/ Oct 10 22:18:55 see tools/proguard directory of Android SDK for default configurations Oct 10 22:18:57 eghdk do you have an appcompat dependency? Oct 10 22:19:20 Mavrik i just don't see why you'd use proguard to manage flavors rather than gradle flavors Oct 10 22:19:35 JacobTabak, that's because you don't :) Oct 10 22:19:45 JacobTabak: I don't think so. Oct 10 22:19:59 why are you still using ABS? Oct 10 22:20:02 you use gradle flavors to choose different proguard configurations Oct 10 22:20:06 6-pack ABS Oct 10 22:20:11 if you're moving to AS, time to upgrade min SDK Oct 10 22:20:35 if you have "cheap" flavor, you have a proguard configuration that throws out everything the "cheap" version isn't supposed to have Oct 10 22:20:48 JacobTabak: I would if my client would allow me to. Oct 10 22:21:00 and please stop telling people to change min SDK if you don't know their business case -_- Oct 10 22:21:01 eghdk we were all given permission Oct 10 22:21:13 to raise our min sdk Oct 10 22:21:49 Mavrik: minSdkVersion=15 Oct 10 22:21:57 JacobTabak: Yeah I know. But wait, you said appCompat might be the culprit here? Oct 10 22:22:01 Nevah! Oct 10 22:22:08 eghdk you can't have both appcompat and ABS Oct 10 22:22:10 * Mavrik holds on to Cupcake. Oct 10 22:22:22 ABS defines all teh same styles that are in appcompat Oct 10 22:22:38 my only "real" app on the market was built when Cupcake was the latest Oct 10 22:22:52 JacobTabak: Snap... how do I get rid of appcompat Oct 10 22:23:09 i love it how the author of abs is sitting right here Oct 10 22:23:14 and throwing in peanut gallery comments Oct 10 22:23:29 and you're asking me :P Oct 10 22:23:37 yeah, I just pruned some cupcake legacy code from one of my old apps :P Oct 10 22:23:40 last update was March 24, 2009 Oct 10 22:23:57 eghdk just make sure you don't have any appcompat dependencies in your gradle build files Oct 10 22:24:05 funny enough, 25% of people still on 2.3 Oct 10 22:24:10 damn broke students Oct 10 22:24:14 there are millions on 1.5 Oct 10 22:24:17 but they dont have google play Oct 10 22:24:19 so we'll never know Oct 10 22:24:38 (sarcasm) Oct 10 22:24:55 JacobTabak: I did. Now android support v4 and play services is complaining (red lines) Oct 10 22:25:08 neither of those depend on appcompat Oct 10 22:26:28 what red lines specifically? Oct 10 22:28:43 but seriously eghdk it's a big misatke to not drop support < 14 if you're migrating to AS Oct 10 22:28:51 have your boss read the internet Oct 10 22:28:54 or client or whatever Oct 10 22:28:54 and dropping < 15 doesn't mean dropping those users Oct 10 22:29:30 how so? Oct 10 22:29:43 multi-apk support on the Play Store Oct 10 22:29:46 leave them on the current version Oct 10 22:29:47 what does 15 give you that's not in 14? or does nobody use 14? Oct 10 22:29:52 nobody uses 14 Oct 10 22:29:59 No devices with 14 out there. Oct 10 22:30:38 Switching < 15 to maintenance and going 15+ is pretty much the best idea right now Oct 10 22:30:44 if you already have an app that is Oct 10 22:30:52 not updating the apk for 14 is practically same as dropping 14 users in some cases Oct 10 22:31:01 all 14 of them? Oct 10 22:31:14 :) Oct 10 22:31:42 we migrated to AS and still support v9 Oct 10 22:31:42 Wasn't the only 14 device out there Galaxy Nexus which got update in 2 weeks or so Oct 10 22:31:45 is this going to be a problem Oct 10 22:31:58 yuizy not unless you make it one Oct 10 22:32:06 i wont fight you unless you pick a fight Oct 10 22:32:33 01:28:43 < JacobTabak> but seriously eghdk it's a big misatke to not drop support < 14 if you're migrating to AS Oct 10 22:32:43 for you it's too late if you've already done it Oct 10 22:32:54 done what Oct 10 22:32:55 :o Oct 10 22:32:59 migrating? Oct 10 22:32:59 migrated to AS Oct 10 22:33:02 i'm just saying if he's in the process of getting his build working, now is the time to do it Oct 10 22:33:35 not updating the apk for 14 is practically same as dropping 14 users in some cases Oct 10 22:33:35 that's sounds like such a weak reason to drop the <14 support though Oct 10 22:33:36 no Oct 10 22:33:39 no it's not the same Oct 10 22:33:44 i meant <14 Oct 10 22:33:53 why not? Oct 10 22:34:01 because you aren't losing those users Oct 10 22:34:13 people on devices that old don't even update apps usually Oct 10 22:34:26 _in some cases_ Oct 10 22:34:28 theyr'e lke grandparents Oct 10 22:34:38 we need to update our app often Oct 10 22:34:49 I had an app with a lot of old users, I split up the APK's Oct 10 22:34:58 I had a pre-Honeycomb and post-Honeycomb APK Oct 10 22:35:06 I don't update the pre-Honeycomb one much Oct 10 22:35:23 we still have a 2.2 apk Oct 10 22:35:30 our pre-honeycomb still requires pretty much all the updates that post-honeycomb gets Oct 10 22:35:32 i think it's been updated once in the last 16 months Oct 10 22:35:37 so dropping the support would mean dropping the users Oct 10 22:35:44 I still have thousands of people using Eclair... Oct 10 22:36:01 thousands eh? Oct 10 22:36:05 out of how many Oct 10 22:36:15 and how do you know you have them Oct 10 22:36:22 yeah that means nothing if you have 100 million users Oct 10 22:36:30 but if you have 2 thousand then, well, that sucks Oct 10 22:36:34 Out of 800,000 or so Oct 10 22:36:44 how many of them have opened the app in the last year Oct 10 22:36:45 ? Oct 10 22:36:56 you also have to value the quality of the users Oct 10 22:37:17 if you're selling things and then don't buy anything then you should lose them Oct 10 22:37:28 JacobTabak, how do I know I have them? Google Play Developer Console Oct 10 22:38:20 what stat? Oct 10 22:38:51 oh nice we have 75% on 4.4 Oct 10 22:39:13 Current installs by device - Android version Oct 10 22:39:33 and how do they determine current? Oct 10 22:39:35 is it recommended to stay on eclipse if keeping the <14 support is mandatory Oct 10 22:39:36 not uninstalled? Oct 10 22:39:43 yuizy absolutely not Oct 10 22:39:50 yuizy there's no reason you can't support older sdks on AS/intellij Oct 10 22:40:05 so what's the link between migrating to AS and ssupporting older versions Oct 10 22:40:10 yuizy: it's not mandated Oct 10 22:40:30 .. how so Oct 10 22:40:42 gradle is a different build system Oct 10 22:40:46 right click > delete Oct 10 22:40:55 yuizy you have to redo your dependencies Oct 10 22:41:12 and while you're at it, why not just drop the old ones that nobody uses anymore Oct 10 22:41:21 we have 20% on 9 Oct 10 22:41:27 ok? Oct 10 22:41:28 then don't Oct 10 22:41:30 i don't care Oct 10 22:41:31 its your app Oct 10 22:41:42 no need to get salty :( Oct 10 22:41:45 lol Oct 10 22:41:50 whats your app Oct 10 22:41:52 i wanna download it Oct 10 22:42:05 how do you have 20% on 9 Oct 10 22:42:10 it's available in finland only Oct 10 22:42:21 idk, most people who got a smartphone during the last two years got a lumia Oct 10 22:42:22 i'm going to spin up 100,000 2.2 emulators and script simple app interactions Oct 10 22:42:40 damn nokia Oct 10 22:42:55 good thing they sold their phone department so things will get back to normal here Oct 10 22:42:56 i love my lumia Oct 10 22:43:56 anyway, i didn't notice anything specific about the <14 support when i did the migration Oct 10 22:44:18 i'm not saying its hard Oct 10 22:44:18 the 'migrate from eclipse' feature did pretty much everything for me Oct 10 22:44:30 oh, i've never used that Oct 10 22:44:31 so i'm just wondering if it's going to become a problem in the future Oct 10 22:44:36 nah Oct 10 22:44:36 ! Oct 10 22:44:47 yea it's pretty well done Oct 10 22:44:49 i just meant that if you're migrating your project you should re-evaluate these things Oct 10 22:44:59 you make a conscious decision, either im going to continue supporting this, or im not Oct 10 22:45:06 and its a good time to rethink that decision Oct 10 22:45:10 oh Oct 10 22:45:13 that makes sense Oct 10 22:45:22 i migrated just for the funs Oct 10 22:45:23 :) Oct 10 22:45:45 i dont even remember what im doing Oct 10 22:45:50 got bored of the slowness of eclipse Oct 10 22:45:51 or supposed to be doing Oct 10 22:45:58 oh i remember now Oct 10 22:46:00 so i decided to check if it'd be easy to migrate Oct 10 22:46:04 turned out it was pretty quick Oct 10 22:46:14 so i'm still looking for a good answer on how to distribute api keys with my apk Oct 10 22:46:16 props to google Oct 10 22:46:22 without proguard Oct 10 22:50:03 oh nice i just found a bug Oct 10 22:50:05 lol Oct 10 22:50:06 oh boy. Oct 10 22:53:21 "Warns you when you're using WebViews in your app." Oct 10 22:53:31 if you don't know that already ... not sure this will help Oct 10 22:53:36 what is this Oct 10 22:53:37 lol Oct 10 22:53:40 i use webviews Oct 10 22:53:46 https://github.com/Krylez/WebViewReally Oct 10 22:53:58 ^^ Oct 10 22:54:10 i love troll repos Oct 10 22:54:17 this is a good one https://github.com/bdotdub/bdotvm Oct 10 22:55:22 Does anyone know if it is impossible or possible to build the Android SDK on the FreeBSD os? Oct 10 22:55:32 I want to use the Android SDK on FreeBSD without linux emulation Oct 10 22:55:46 if its impossible, can I run the sdk tools with linux emilation? Oct 10 22:57:28 Getting an error in Gradle build? "Manifest merger failed uses-sdk:minSdkVersion 4 cannot be small then 7 declared in library com.actionbarsherlock:4.4.0" Oct 10 22:58:02 I don't see ABS in my project tree Oct 10 23:08:16 Hello, I have a ScrollView fragment in a Wear GridViewPager but the ScrollView can't be scrolled, probably because the GridViewPagers takes all the input before it can reach the ScrollView inside. Is there anything I could to make it work? Oct 10 23:08:18 is it possible to create an android app with HTML5? is that even recommended? Oct 10 23:08:42 I have compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' in my build.gradle file. Where is that coming from? I don't see it in my project tree Oct 10 23:10:27 a central repository Oct 10 23:10:30 (maven central) Oct 10 23:10:42 or jcenter possibly Oct 10 23:10:49 really? Oct 10 23:10:56 yes Oct 10 23:11:00 eghdk, werent you asking earlier today how to add dependencies&libriaries to your projects in AS? Oct 10 23:11:03 hi Oct 10 23:11:14 one was ABS Oct 10 23:11:26 is it easier to do android development on linux than on windows? Oct 10 23:11:34 Yeah, but I had my eclipse project, and I just opened it up in AS and it just worked. Oct 10 23:11:36 BillyZane: i don't think so.. Oct 10 23:11:45 but the platform shouldn't matter imho Oct 10 23:11:51 But then I did a project clean, and I got ABS issues (83 of them) Oct 10 23:11:56 supay, i see Oct 10 23:11:58 I just want to be able to build again... Oct 10 23:13:12 does anybody here use html5 to make their android apps? Oct 10 23:13:28 your questions now seem more like your confused that your gradle has what it has magically. you should redefine your question Oct 10 23:14:24 whatitis: what do my questions have anything to do with gradle? Oct 10 23:14:34 not you Oct 10 23:14:46 lol, ok Oct 10 23:15:16 supay: He was talking to me Oct 10 23:15:20 of Oct 10 23:15:21 ofc* Oct 10 23:16:10 supay is cordova html5 or just javascript. theres been a couple ppl using that Oct 10 23:16:52 whatitis: its both! looks interesting, checking it out, thanks! Oct 10 23:17:26 yep Oct 10 23:19:22 supay, are you from a web background? do you have issues using java? Oct 10 23:19:49 whatitis: i have experience in both java and web development. Oct 10 23:20:32 but i somehow just can't make the app look how i want it to.. web designing is easier Oct 10 23:21:10 why the need for html5? I wouldnt expect to much support of cordova outside their site Oct 10 23:21:47 well, i seem to be doing something wrong.. or eclipse just sucks Oct 10 23:21:56 supay, id stick with android sdk & java Oct 10 23:22:10 you tried AS yet? Oct 10 23:22:19 or intellij Oct 10 23:22:26 do developers use eclipse to make apps like Facebook, Zomato, Gmail? Oct 10 23:22:28 AS? Oct 10 23:22:32 Android Studio? Oct 10 23:22:36 yea Oct 10 23:22:37 Isn't it based off Intellij? Oct 10 23:22:42 yea Oct 10 23:22:46 i thought it was still in beta? Oct 10 23:22:51 so Oct 10 23:22:55 why "or" then Oct 10 23:23:19 isnt everything google in beta? Oct 10 23:23:33 lol Oct 10 23:23:34 sq, different configs Oct 10 23:24:00 that explains it. Oct 10 23:24:08 whatitis: is it easier to design the app using AS? Oct 10 23:24:30 AS rocks, use it. Oct 10 23:25:05 supay, depends on developer. but it can be easy if you know what you are wanting to accomplish and have the means of implementing it Oct 10 23:25:08 sq: ok.. i'm going to download it right now Oct 10 23:25:25 it, like, just works. Oct 10 23:25:41 whatitis: you gotta be kidding me.. there are 12 year old kids that don't know design patterns or even simple algorithms that make great iOS apps Oct 10 23:25:51 it must be the platform/tools Oct 10 23:27:01 supay, main thing is just trying to keep it looking android with your own personal touches added. its easy to stray&get too outside the box Oct 10 23:27:13 really? Oct 10 23:27:26 you mean that i should try to maintain as much of the native look and feel as i can? Oct 10 23:28:20 supay id say yes. til you are comfortable creating your own themes/styles Oct 10 23:28:32 oh Oct 10 23:28:34 okay Oct 10 23:28:47 i was trying to create something like this - http://www.sketchappsources.com/free-source/659-android-l-ui-kit-sketch-freebie-resource.html Oct 10 23:29:05 and slicing those damn psd's is a bit*h. Oct 10 23:29:32 apps can get real big real fast. with good base its easier to change/extend styles later Oct 10 23:29:43 and the eclipse gui builder is so bad.. i feel ibm is trolling the android dev community.. it's like they dont know what 'Drag and Drop' means. Oct 10 23:29:48 oh, okay.. Oct 10 23:29:59 i'll actually try that out.. after downloading AS Oct 10 23:30:04 thanks a ton whatitis ;) Oct 10 23:30:09 and you too sq Oct 10 23:31:57 supay, you should just use text in designing the layouts, less drag drop. AS gives you a good preview while editing xml Oct 10 23:33:12 oh, okay.. Oct 10 23:33:19 and then i have you guys to take advice from Oct 10 23:33:22 :) Oct 10 23:33:27 love this community! Oct 10 23:37:58 to take advice from... and blame later on! Oct 10 23:38:04 handy. Oct 10 23:38:13 haha Oct 10 23:39:45 lol Oct 10 23:55:22 So I'm trying IntelliJ. Oct 10 23:55:52 It's incredibly slow, it seems unnecessarily hard to use, and I just got (after about 20 minutes with it) an internal IDE failure. Oct 10 23:55:56 I had to kill the process. Oct 10 23:56:07 Why does every Google programming tool suck so badly? Oct 10 23:56:07 give up Oct 10 23:56:24 maybe its you *duck* Oct 10 23:56:25 IntelliJ wasn't made by Google, was it? Oct 10 23:56:29 was/is Oct 10 23:56:42 Not initially. They're pulling in changes from Google (and vice versa). Oct 10 23:56:56 It has nothing to do with google ^^' Oct 10 23:56:59 what kind of widget is this http://imgur.com/KludMWw Oct 10 23:57:02 its jetbrains Oct 10 23:57:03 popupmenu? Oct 10 23:57:15 popuplist Oct 10 23:57:28 danijoo: Google is contributing patches to Android Studio which are pulled by the IntelliJ people, right? Oct 10 23:57:35 tactical, have you written any code for you reddedit client yet? Oct 10 23:57:49 yeah.. so if i pull something into the linux repo, linux is made by me? Oct 10 23:58:05 danijoo: I said it's a "Google programming tool". Oct 10 23:58:09 is that a real object danijoo, can’t find it on google Oct 10 23:58:13 Which is not a bad description given that it's basically Android Studio. Oct 10 23:58:27 You've got that the wrong way around :) Oct 10 23:58:29 Google has done a lot of work on IntelliJ and Android Studio. Oct 10 23:58:35 And JetBrains has, too. Oct 10 23:58:36 Android Studio is practically IntelliJ Oct 10 23:58:42 Sixmsj: I think the actual class is ListPopupWindow Oct 10 23:58:53 ok Oct 10 23:58:56 thanks Oct 10 23:59:05 Yeah its just intellij with everything stripped of thats not android related Oct 10 23:59:38 but back to the topic, intellj runs great for me and much faster then eclipse, so i still think its a layer 8 problem. Oct 10 23:59:42 I'm not gonna give up, whatitis. I'm just pointing out that this stuff doesn't need to be this terrible. Oct 10 23:59:50 danijoo: Yeah, right. lol Oct 11 00:00:03 maybe not enough ram? Oct 11 00:00:03 Got my project to build! Woop. Only 10 hours later. Damn gradle. Anyway... in Android Studio I see build.gradle files... where are these files on my filesystems? Because I pushed this to github, but I dont see any build.gradle files Oct 11 00:00:07 fyi TacticalJoke my unit tests run in android studio just fine Oct 11 00:00:07 I've seen countless people complaining about how slow IntelliJ/AS is. And how fast Eclipse is by comparison. Oct 11 00:00:07 tactical, have you written any code? Oct 11 00:00:23 for your app* Oct 11 00:00:25 Its a matter of taste i think Oct 11 00:00:26 I've written a lot of Android code. Oct 11 00:00:29 Well, quite a lot. Oct 11 00:00:29 intellij is pretty slow, but so are all the java IDEs Oct 11 00:00:35 i found myself to work much faster with the idea gui Oct 11 00:00:51 Also, I've found IntelliJ much better than eclipse, or netbeans for that matter Oct 11 00:00:57 the only problem with intellij is that it does not compile on the fly like eclipse Oct 11 00:01:09 tactical, no I was curious if in passed two weeks have you written code? Oct 11 00:01:15 Running a "Hello, world!" Android app from IntelliJ takes about 20 seconds (with zero changes) on here. Takes around four seconds from Eclipse. Oct 11 00:01:17 That's no changes. Oct 11 00:01:23 whatitis: Yes. Oct 11 00:01:45 Thats the on the fly compilation Im talking about Oct 11 00:01:58 TacticalJoke: Does both IDEs use the same build system though? I think that would matter quite a bit. Oct 11 00:02:17 Yeah, it's Gradle. Oct 11 00:02:21 Gradle is the weakest link. Oct 11 00:02:33 Without Gradle, IntelliJ doesn't seem so incredibly slow. Oct 11 00:02:39 true Oct 11 00:02:46 It's the build system thats slow. Oct 11 00:02:57 But its a powerful build system. Oct 11 00:02:58 Gradle is actually quite awesome, although it will build slower than something simple like ant Oct 11 00:03:08 it definitly has its advantages Oct 11 00:03:13 but speed isnt one of ot ^^ Oct 11 00:03:15 it Oct 11 00:03:19 in Android Studio I see build.gradle files... where are these files on my filesystems? Because I pushed this to github, but I dont see any build.gradle files Oct 11 00:03:27 It's faster than Maven though =) Oct 11 00:03:34 TacticalJoke takes about 8 sec to run my app (which is at method limit) Oct 11 00:03:34 So I create a new project. It then asks me to restart the project. I say OK. It then says the compiler is running; restart anyway? If I click OK then the IDE crashes. Oct 11 00:03:35 eghdk: I think they are gitignored then Oct 11 00:03:49 I start to like android sudio. Oct 11 00:03:55 TacticalJoke: gralde is amazing, and intellij is also amazing. Oct 11 00:04:02 -ly slow, yeah. :D Oct 11 00:04:13 JacobTabak: hwo do you personally handle the method limit Oct 11 00:04:26 lower google play services version Oct 11 00:04:36 pieces029: Visual Studio from years and years ago was snappy and just worked. Oct 11 00:04:47 my app is above 64K also and what ive done as a temporary workaround was to just remove parts of google play services from the jar Oct 11 00:04:49 I'm here in 2014 trying to get a brand new IDE to do the absolute basics, and it's failing. Oct 11 00:04:57 TacticalJoke: so I would take intellij over VS any day. Oct 11 00:05:02 whats your problem now TacticalJoke ? Oct 11 00:05:13 You need Resharper anyways to make it usable. Oct 11 00:05:34 danijoo: Hmm... My git ignore is a sample one from stackoverflow. Doesn't seem to do anything with gradle files Oct 11 00:05:45 Did google play console update? Oct 11 00:06:00 eghdk: my gradle files are on git. Oct 11 00:06:20 perlsyntax: not in the last few hours Oct 11 00:06:40 eghdk: Yeah, the build.gradle files are environment-independent, and should be on git Oct 11 00:06:48 so whats your prob with the IDE? Oct 11 00:06:54 danijoo,What this with api for the constole. Oct 11 00:07:04 TacticalJoke i think you ran before doing a gradle sync Oct 11 00:07:09 that's a known issue Oct 11 00:07:11 JacobTabak: It's very slow, and it seems very buggy. Oct 11 00:07:15 Nah, I did a Gradle sync. Oct 11 00:07:15 not sure what api you are talking about Oct 11 00:07:17 whats slow Oct 11 00:07:19 Which took about about 20 minutes. Oct 11 00:07:38 JacobTabak: I can consistenly create an "internal IDE failure" just by creating a "Hello, world" app. Oct 11 00:07:40 Cool, right? Oct 11 00:07:42 TacticalJoke: do you know what gradle sync does? Oct 11 00:07:48 Yes. Oct 11 00:07:48 use the command line, and turn on parrelel running Oct 11 00:08:06 Note that new users won't know what a Gradle sync does. Oct 11 00:08:10 sure its slow. like maven syncs are slow. Oct 11 00:08:12 also make gralde run in daemon too Oct 11 00:08:13 They'll just think "This is an unusuable IDE". Oct 11 00:08:18 unusable* Oct 11 00:08:31 Then the joke is on them :) Oct 11 00:08:49 Why? They should be told what's going on. Oct 11 00:08:58 i dont see this discussion going anywhere. its like those apple/android is bad!!1! talks.. Oct 11 00:09:01 They can't assume that new users are Gradle experts. Oct 11 00:09:11 danijoo: Nah, it's more like they should fix their tools. Oct 11 00:09:15 Although I'm sure google is doing what they can to improve the stability, I see much less IDE errors now than I did with earlier versions of AS Oct 11 00:09:23 if a new user wants to know he has to google Oct 11 00:09:32 its not the job of them to tell you how gradle is working Oct 11 00:09:36 get a book if you want to know Oct 11 00:09:48 TacticalJoke those IDE failures dont mean anything lol Oct 11 00:09:56 if it weren't in beta they'd suppress those messages Oct 11 00:10:18 JacobTabak: I think he is talking about intellij which isnt in beta Oct 11 00:10:24 danijoo: You're joking, right? Oct 11 00:10:29 That's TERRIBLE UX design. Oct 11 00:10:45 "We'll just do stuff for 20 minutes and assume you're an expert on an arcane build system and understand what's going on." Oct 11 00:11:00 arcane? Oct 11 00:11:20 exactly what I was thinking. Oct 11 00:11:29 and me, but i didnt say anything! Oct 11 00:11:46 TacticalJoke: That's TERRIBLE UX design. - thats your oppinion :) Oct 11 00:11:48 It's a really good tool. Yeah it's slow and the docs could use some loving, but welcome to programming. Oct 11 00:12:00 ^ this Oct 11 00:12:02 Nah, programming doesn't have to be this bad. Oct 11 00:12:14 (sigh) Oct 11 00:12:17 you are a provocative troll Oct 11 00:12:19 Visual Studio, Delphi, C++ Builder, etc. Those IDEs were good, fast, and easy to use. Oct 11 00:12:23 The ide, uses the tool, you can switch to maven ant, stb, so you should understnad the tool you choose to use. Oct 11 00:12:38 VS 2014 or whatever they call these days is crap Oct 11 00:12:44 TacticalJoke we all came from eclipse Oct 11 00:12:46 and actually it was always crap Oct 11 00:12:52 TacticalJoke every single one of us Oct 11 00:13:02 TacticalJoke and every single one of us decided AS/IntelliJ was better Oct 11 00:13:08 so you're a troll coming in here picking fights with us Oct 11 00:13:12 Amen Oct 11 00:13:12 Eclipse sucks too. Oct 11 00:13:15 So that's not saying much. Oct 11 00:13:16 when we've already made our decisions based on facts and experience Oct 11 00:13:33 so i don't know why you're arguing or complaining Oct 11 00:13:34 No, that's not an implication of what I'm saying. Oct 11 00:13:43 We are all stuck with bad tools. Oct 11 00:13:49 Everyone doing Android programming. Oct 11 00:13:51 intellij is not a bad tool Oct 11 00:13:54 Visual studio was a bad tool Oct 11 00:13:58 "X sucks less than Y" doesn't mean that X is good. Oct 11 00:14:00 until Jetbrains released resharper Oct 11 00:14:07 And jetbrains made IntelliJ Oct 11 00:14:11 God, you're so in denial. Oct 11 00:14:18 about what? Oct 11 00:14:20 I've used so many IDEs over the years. Oct 11 00:14:26 I come to Android, and the tools are SO BAD. Oct 11 00:14:28 Seriously. Oct 11 00:14:32 TacticalJoke: did you just come here to release some frust? ^^' Oct 11 00:14:42 TacticalJoke the tools are great for doing basic things Oct 11 00:14:49 the tools are not great for doing complex things Oct 11 00:14:52 like CI Oct 11 00:14:54 If you dont like them, you are free to write your own or contribute Oct 11 00:15:03 danijoo_: That's totally feasible. Oct 11 00:15:07 I'll now write my own Android IDE. Oct 11 00:15:11 Just so I can do Android programming. Oct 11 00:15:15 Thanks for the advice. Oct 11 00:15:29 Can someone take a look at a class and tell me why just adding serializable wouldn't work? I read the docs a few times and I must be missing somehting... https://github.com/pieces029/on-this-day/blob/master/src/main/java/com/andrewreitz/onthisday/data/api/archive/model/Archive.java Oct 11 00:15:31 so you're saying the tool is bad because ... its' not clear to you what it's doing when its syncing with gradle? or what Oct 11 00:15:36 Personally I instantly liked IntelliJ (and AS) much more than I ever liked Visual Studio, although I acknowledge that it could be related to being much more familiar with java than with any flavor of C Oct 11 00:15:38 have you actually tried to write code? Oct 11 00:15:39 just wait til tactical releases something. imagine his customer support Oct 11 00:15:49 Yes i know serializable isn't on there, but i should be able to just "add it" right? Oct 11 00:15:50 whatitis: I care about software quality. Oct 11 00:15:53 JacobTabak: no he just tried to hello world and it was too slow ^^ Oct 11 00:15:57 Everything I release is as good as I can possibly make it. Oct 11 00:16:05 Okay, I give up. You're all seriously in denial. Oct 11 00:16:16 TacticalJoke when I think about tools i think about efficiency Oct 11 00:16:18 I use emacs sometimes Oct 11 00:16:18 I guess one day I'll probably go into denial mode, too. Oct 11 00:16:26 code completion has saved me from typing 300,000 chars since 7/1/2014 Oct 11 00:16:27 I've kinda gone there with Eclipse already. Oct 11 00:16:29 tactical im saying when a user has an issue. I bet youll make it all better for them Oct 11 00:16:31 "Eclipse isn't *that* bad." Oct 11 00:16:47 it really isnt Oct 11 00:16:58 welll.... Compared to a text editor it's not. Oct 11 00:17:02 TacticalJoke what have you done in your life that you ended up here Oct 11 00:17:28 with all these inferior tools Oct 11 00:17:31 when you had it so good before Oct 11 00:17:38 I've used decent stuff such as Visual Studio and Delphi. Oct 11 00:17:39 just a friday-night troll i think.. Oct 11 00:17:41 Stuff that works and is fast. Oct 11 00:17:47 yea because clearly Oct 11 00:17:53 Hahaha, VS just works? Oct 11 00:17:53 it doesn't work and it's slow Oct 11 00:17:58 hence the video i sent you Oct 11 00:17:59 Would you guys say that the Android API is well designed? Oct 11 00:18:04 No Oct 11 00:18:08 it was designed for resource constrained devices Oct 11 00:18:12 parts arent, parts are Oct 11 00:18:12 But that's not what we were talking about Oct 11 00:18:15 its a pain in the ass Oct 11 00:19:34 TacticalJoke i feel like you think you have some sort of knowledge about these other IDEs that we don't Oct 11 00:19:41 like you're able to compare them in an unbiased manner Oct 11 00:19:51 android has only been around 5 years Oct 11 00:19:57 and we're all older than 5 years old Oct 11 00:20:00 we've all used these other tools Oct 11 00:21:32 It's not that. It's that we get used to bad software and forget how bad it is. Oct 11 00:21:44 I'm new to IntelliJ/AS. I can see how much this sucks. Oct 11 00:21:56 I'm not talking about regular IntelliJ, BTW. Oct 11 00:21:58 I bet that's awesome. Oct 11 00:22:03 But the Android "flavour". Oct 11 00:22:25 theres like no difference at all Oct 11 00:22:29 just some missing buttons, lol Oct 11 00:22:44 I'm sure that writing a "Hello, world" Java console doesn't cause an "internal IDE fail". Oct 11 00:23:00 if i write a hello world i dont get that error Oct 11 00:23:02 app^ Oct 11 00:23:07 TacticalJoke blah blah blah Oct 11 00:23:08 but its sure the ide, not you :) Oct 11 00:23:28 Uhuh. First time I ever use it and I can consistently reproduce that error. Must just be me. Oct 11 00:23:28 dont hate the game, hate the player Oct 11 00:23:34 There is one major difference, AS is in beta, IntelliJ isn't (unless you're seeking those versions out) Oct 11 00:23:40 meanwhile we have people who are immensely productive, making amazing hting happen with these tools, and we have mr hello world complaining about internal ide failures Oct 11 00:23:40 yes TacticalJoke … that should be your conclusion Oct 11 00:23:42 TacticalJoke: if you misconfigured it, yes Oct 11 00:23:48 Nope. Out-of-the-box configuration. Oct 11 00:24:02 if you do the same garbage everytime, its pretty reproduceable, yes ^^' Oct 11 00:24:15 how often do you create a new hello world project Oct 11 00:24:29 it’s obvious your setup is blunted somehow TacticalJoke Oct 11 00:24:35 maybe they focused on important shit like writing complex code, refactoring, complex build rules Oct 11 00:26:13 btw TacticalJoke another nice thing about AS is I get emails ilke this Oct 11 00:26:22 http://cl.ly/image/47371F3b0i19 Oct 11 00:26:27 i submitted those 4 bugs Oct 11 00:26:35 the team responds and fixes them within 24 hrs Oct 11 00:26:57 JacobTabak: just stop feed the troll :/ Oct 11 00:27:19 yea you're right Oct 11 00:27:21 he is totally a troll Oct 11 00:27:31 ive been saying that form day one i just cant resist Oct 11 00:27:31 Yeah, they're fixing tiny issues while ignoring huge ones such as the inability to do basic unit-testing of Android projects (unless you jump through hoops). Oct 11 00:27:40 Why did you PM me then, JacobTabak? Oct 11 00:27:46 If I'm a troll. Oct 11 00:27:51 i just answered that Oct 11 00:27:53 before you even asked Oct 11 00:28:02 i just gonna mute now :D Oct 11 00:28:02 i cant resist Oct 11 00:28:07 danijoo_ i want to do that Oct 11 00:28:11 but im worried about seeing other ppl feed him Oct 11 00:28:12 I'm someone who gives a damn about programming tools. Oct 11 00:28:14 and not being able to see what he says Oct 11 00:28:20 ok fuck it im done with him Oct 11 00:28:23 bai Oct 11 00:31:17 It's very easy to declare someone a troll. Oct 11 00:31:31 "Everyone ignore this guy. His name is new and I don't like what he's saying." Oct 11 00:31:47 Sorry that you're so complacent that you can't take criticism of the programming tools you use. Oct 11 00:32:38 The fact is that if Google actually released something *good*, I'd be in here lauding it with praise. Oct 11 00:33:47 you should be in here with an actual question, to help, or to just be a zombie. you dont meet any of that criteria Oct 11 00:34:17 http://www.tumblr.com/tagged/bye-felicia Oct 11 00:36:19 Can't even run unit tests: "org.testng.TestNGException: Cannot find class in classpath: FooTests". Oct 11 00:36:35 In Eclipse, it's File --> New JUnit test (or some such). Here, it's jumping through 20 hoops to be told the class can't be found. Oct 11 00:38:49 Hey, can I set the layout programmatically and at the same time also use the xml file too ,loading stuff both ways? Oct 11 00:39:00 yes Oct 11 00:40:05 For the same .java file (i.e. same activity)? Oct 11 00:40:48 how would I build just the android " build tools" binaries from the source? Oct 11 00:40:54 in the sdk Oct 11 00:41:12 like "aidl" Oct 11 00:42:52 Ok , i got a field of table in database using cursor , now how can I use the line to display the TextView ? Oct 11 00:43:24 Tried again, and JUnit failed to start. "!!! JUnit version 3.8 or later expected:" Oct 11 00:43:37 JUnit 4 is in project dependencies. Oct 11 00:43:53 s/project/module/ Oct 11 00:46:47 TacticalJoke: JUnit 3 is built into android. Oct 11 00:47:01 Google Android Studio tries to run those. Oct 11 00:47:12 I accidently a google Oct 11 00:47:45 I know. This is IntelliJ. I'm trying to get it to run a JUnit 4 or TestNG test. It's showing all kinds of error messages. Oct 11 00:47:51 The latest is "Class not found: "HelloTests"". Oct 11 00:48:17 Is this android specific? Oct 11 00:48:28 It's a Java-only module (the latest try, anyway). Oct 11 00:48:50 pieces029: please just stop. Oct 11 00:49:12 He has a legitiment problem, granted it wasn't phrased in a question. Oct 11 00:49:38 Unfortunate that we have a dictator in tonight. Oct 11 00:50:08 I complained about this stuff because I'm probably gonna spend 12 hours trying to get a basic unit test working. :[ Oct 11 00:50:16 That's why I complain. Hours of life wasted away. Oct 11 00:50:23 It should just work. Oct 11 00:50:25 Is there a good way to see what intents an application uses and or can consume? Oct 11 00:50:39 its manifest Oct 11 00:50:49 But it's a playstore app Oct 11 00:50:53 should have mentioned that. Oct 11 00:50:55 that's ok Oct 11 00:51:01 Decompile? Oct 11 00:51:13 dont even need to decompile Oct 11 00:51:15 the apk is a .zip Oct 11 00:51:27 all you need to do is have a rooted device to get the apk from Oct 11 00:51:33 I do :) Oct 11 00:51:36 http://stackoverflow.com/questions/2097813/how-to-parse-the-androidmanifest-xml-file-inside-an-apk-package Oct 11 00:51:50 or http://stackoverflow.com/questions/4191762/how-to-view-androidmanifest-xml-from-apk-file is higher voted Oct 11 00:51:54 ive never tried it, let me know how it goes Oct 11 00:51:59 Ty, I just didn't think of htat I was trying adb to view it. Oct 11 00:52:38 So, I can't get unit tests working and there isn't anything useful in Google. Oct 11 00:52:43 TacticalJoke: if it's just a java module, try gradlew clean check in the module directory, if that doesn't work try #Java Oct 11 00:52:48 try this? https://play.google.com/store/apps/details?id=jp.susatthi.ManifestViewer Oct 11 00:52:51 (Just old posts such as "That's a bug in . It'll be fixed soon". Oct 11 00:52:52 ) Oct 11 00:52:59 does anyone know how I would go about compiling _just_ the build tools from the android sdk? do I still need to pull the entire android repo? Oct 11 00:53:17 in the /build-tools/ filder Oct 11 00:53:18 folder Oct 11 00:53:40 They are all split into seperate git repos, you should be able to just check out that one. Oct 11 00:55:23 welll do they depend on a repo that has the build scripts? Oct 11 00:55:37 Ran 'clean' and 'check'. Still saying "Class not found: FooTests". Oct 11 00:56:28 JacobTabak: That app works Oct 11 00:56:32 cool Oct 11 00:56:32 really well acutally. Oct 11 00:57:00 I think it's kinda wierd there isn't something like this in the development section in the android settings. Oct 11 00:57:10 I need to compile this: https://android.googlesource.com/platform/frameworks/base/+/master/tools/aidl/ Oct 11 00:57:28 just that tool Oct 11 00:57:35 and I need to compile it in freebsd if possible Oct 11 00:58:59 so that it can run in freebsd Oct 11 00:59:11 http://source.android.com/source/using-repo.html you to use that tool to just check it out. Oct 11 01:01:17 anyone used robolectric shadow content resolver before? Oct 11 01:07:09 Is using otto to talk to services and OK thing to do? The intent filter stuff to talk to a service just seems like a pain. Oct 11 01:08:18 pieces029 well normally you would bind to it Oct 11 01:09:59 I'm making a music service so it should play in the background. Start Service should be okay shouldn't it? Oct 11 01:11:18 pieces029 yea you may want to just bind and pass a callback to the service Oct 11 01:11:21 otto works fine though Oct 11 01:11:32 binding to the service allows you to call the services methods directly Oct 11 01:11:41 as long as its in-process Oct 11 01:12:02 Ok Oct 11 01:12:45 I feel like the service is essentially a singleton for playing music, I'm not sure I actually need it, because if you kill the app the music should stop playing too. Oct 11 01:13:05 Need the service that is Oct 11 01:16:52 pieces029 you still need the service Oct 11 01:16:57 Are you folks sure that it's possible to run JVM unit tests in an Android project in IntelliJ? Oct 11 01:17:13 Because nothing I do works. The only way I can get unit testing working in IntelliJ is by creating a plain Java project. Oct 11 01:17:14 if you want the music to play when the user is multitasking/powers the phone off Oct 11 01:18:25 Oh, right, forgot about going to other tasks. Oct 11 01:18:55 Does binding the service allow it to service when going in the background? Oct 11 01:19:08 Oh man I just read what I wrote I'm sorry for that. Oct 11 01:19:42 let me retry. Does binding the service allow the service to continue to run while the app is in the background? Oct 11 01:20:52 read the docs page on services, its all explained Oct 11 01:22:38 if you just bind, service starts, runs til unbound. if you startService then bind, continues running on unbind til stopSelf/stopService Oct 11 01:23:52 ok thanks, didn't know you could do both. Oct 11 01:24:53 make sure to return true in onUnbind if you wanna allow rebinds Oct 11 01:26:52 They claim this is fixed, but it's exactly the problem I'm having: https://youtrack.jetbrains.com/issue/IDEA-117676 Oct 11 01:27:02 Is anyone in here doing JVM unit tests in IntelliJ? Oct 11 01:27:43 I'm guessing nobody other than JacobTabak and JakeWharton actually do JVM unit tests. Oct 11 01:28:01 does* Oct 11 01:28:41 I have, but I have found it is just easier to use the unit tests on the android system. Oct 11 01:29:10 Yeah they are junit 3 and yeah you have to have a device/emulator, but that beats all the pain you are going through. Oct 11 01:29:28 In Eclipse, I just create a Java project, and it works. Oct 11 01:29:35 Instant unit tests. Zero pain. Oct 11 01:29:59 I disagree, just even using eclipse was a pain, but go use eclipse then instead of complaining to all of us. Oct 11 01:30:32 So what do I do? Use Eclipse forever? Oct 11 01:30:43 Google is probably gonna abandon it at some point. Oct 11 01:32:56 I guess I'll just have to stick with Eclipse until Google fixes this: https://code.google.com/p/android/issues/detail?id=65186 Oct 11 01:32:59 And then pray that it works. Oct 11 01:34:08 I just want to import older version of my project (new is also present) but eclipse doesn't allow me to do that Oct 11 01:35:42 TacticalJoke I think you should turn down the frequency/threshold of brain-to-irc device you have on Oct 11 01:35:57 could be defective too ;) Oct 11 01:36:37 ^^' Oct 11 01:58:50 TacticalJoke: Google does Oct 11 01:58:58 (unit test) Oct 11 01:59:43 i really feel like im missing so much Oct 11 01:59:52 i see people responding but i dont see the trolling Oct 11 02:07:16 Hey , can i use the string from my .java file into my xml file ? Oct 11 02:07:29 no Oct 11 02:09:00 ok, can i use both xml file and set layout programmatically for a single activity (simultaneously) Oct 11 02:09:10 sure Oct 11 02:09:21 JakeWharton: So Google is having to go through the problems you had to go through to get unit testing working in Android Studio, I'm guessing. Oct 11 02:09:22 the XML is just shorthand for programmatic creation of views Oct 11 02:09:26 I'm assuing they're using Android Studio. Oct 11 02:09:29 assuming* Oct 11 02:09:33 doubtful Oct 11 02:09:41 well some are Oct 11 02:09:52 but they're building with Blaze and likely using Eclipse Oct 11 02:09:58 I can't believe they degraded that bug from "High" to "Medium". Oct 11 02:10:00 I see. Oct 11 02:10:42 Why? You have no insight into their processor or priorities. Oct 11 02:10:48 Android has never supported unit testing on the JVM. Oct 11 02:11:12 It's always been in easy in Eclipse, though. Oct 11 02:11:22 god damn it ALCOHOL Oct 11 02:11:34 And normal unit testing is so important. Oct 11 02:11:45 insectsb on my screen Oct 11 02:11:50 Android has unit testing Oct 11 02:13:15 jake btw i ran into that bug with mock schedulers yesterday, was glad to see fix was already in place Oct 11 02:13:19 took me about 3 hours of WTF'ing Oct 11 02:13:53 Yeah, but Android unit testing is so slow and cumbersome that it's basically pointless. Oct 11 02:16:13 once the apks are on the device we run about 100 units tests in a few seconds Oct 11 02:16:17 but yeah the deployment of them is slow Oct 11 02:17:45 Hmm. You told me once that your guys don't run any unit tests on devices or the emulator. :) Did something change? Just wondering. Oct 11 02:20:58 I have Gradle-based libraries which use instrumentation for unit testing themselves Oct 11 02:22:59 Hey JakeWharton do you want me to do anything with this? https://github.com/JakeWharton/timber/pull/30 Oct 11 02:24:57 whats the motivation? Oct 11 02:25:02 out of curiosity Oct 11 02:25:05 JakeWharton: Do you still run most of your tests on the JVM? Just curious. Oct 11 02:25:20 yes Oct 11 02:25:28 K. Glad I'm in good company. lol Oct 11 02:26:59 god damn it Oct 11 02:27:09 ohhh nice there was an issue for it :P Oct 11 02:27:43 9 stars in the skyand iÄ#m stillrisking freezingb to deathb wile drunk Oct 11 02:33:20 How do I bring up like quick fix options in Android Studio? I'm used to eclipse where you just hover over an error and it gives you more info. Oct 11 02:33:41 I think it's Alt+Enter. Oct 11 02:33:43 alt enter Oct 11 02:33:49 In Eclipse it's Ctrl+1, BTW. Oct 11 02:36:57 Syzygy__: where are you ? Oct 11 02:40:30 Thanks Oct 11 02:43:54 Anyone here have any experience with Android studio and build flavors? I basically have a demo and production app. The production app has one more activity than the demo, so I have to add it to the manifest. Where would I add the extra activity declaration? Especially if I don't want demo users to be able to see the activity declaration in the manifest if they decompile. Oct 11 02:47:19 hmmm is there any media player that has the feature to switch between ListView and GridView? I think I'm going to implement that into the one I'm working on Oct 11 02:47:42 eghdk you can make a manifest in your flavor directory wiht just the definition for that activity Oct 11 02:47:47 eghdk: src/prod/AndroidManifest.xml Oct 11 02:48:24 JacobTabak: Really? It doesn't have to be a complete manifest? Oct 11 02:48:33 here is an example eghdk /app/src/debug/AndroidManifest.xml http://cl.ly/image/0G2N3F3Z053E Oct 11 02:48:41 Thanks! Oct 11 02:48:43 correct, it gets merged Oct 11 02:49:10 pieces029: i think i'm going to close. i filed that out of spite one day Oct 11 02:49:17 pieces029: i appreciate the effort and tolerating my impulses though Oct 11 02:49:24 Thats awesome. I didn't know that. I also didn't know library projects get a manifest either. haha. Todays been productive. Oct 11 02:52:11 JakeWharton: np, got bord while waiting on builds one day... Oct 11 02:54:17 I have an activity that uses xml file except a textview which is to be retrieved programmatically, an ideas how can i achieve this Oct 11 02:55:05 http://developer.android.com/reference/android/view/ViewGroup.html#addView(android.view.View, int, android.view.ViewGroup.LayoutParams) Oct 11 02:55:37 I would put a Framelayout then just add the view, if it's just a single one. Oct 11 02:57:47 "Squawkin is a new messaging app that lets you delete sent messages" wut O.o Oct 11 02:57:55 seems dumb, which means its worth billions Oct 11 02:58:08 couldn't you do that on AOL Oct 11 02:58:36 g00s I have the same for net messages Oct 11 02:58:48 obviously not with sms or mms though Oct 11 02:59:52 why is that obvious Oct 11 02:59:55 you can make it happen **** ENDING LOGGING AT Sat Oct 11 03:00:00 2014