**** BEGIN LOGGING AT Sat Mar 14 02:59:59 2015 Mar 14 03:00:27 unless your phone is sucking helium while you aren't watching Mar 14 03:12:51 hello Mar 14 03:17:47 hey all. I have a relative layout. I want to add a textView or some other view at runtime. I need it to be in a specific place. I cant figure out how to give my view relative positioning - ie, android:layout_below, etc Mar 14 03:17:50 any advice? Mar 14 03:20:26 within your relative layout, put your textview, layout_below is an attribute of your textview Mar 14 03:20:55 so... Mar 14 03:21:02 bankai_: I dont want to do it via XML Mar 14 03:21:07 so I guess I need LayoutParams Mar 14 03:21:42 why no XML ? makes for cleaner code Mar 14 03:22:25 bankai_: true, but these views arent known at runtime Mar 14 03:47:35 so no one is having problems with background drawables on older android versions? Mar 14 03:48:29 fattire: not as such, no. Mar 14 03:48:39 treelzebub: are you targeting an older SDK? Mar 14 03:48:52 All my buttons that have a drawable background don't work Mar 14 03:49:02 as of the last 48 hours' worht of updates Mar 14 03:49:12 my most minimum sdk is 15. Mar 14 03:49:21 ah I'm targeting 8 Mar 14 03:49:47 don't waste your time with < 11 Mar 14 03:49:50 Suddenly all the buttons which reference a drawable that has a background color-- it's like they have full alpha Mar 14 03:49:53 god be with you. that's absolutely clown-shoes ridiculous :) Mar 14 03:49:59 bankai_: well it worked fine Mar 14 03:50:11 it was building no problem Mar 14 03:50:21 and android studio shows the layout perfectly Mar 14 03:50:32 it's just when you run it in the emulator, suddenly the buttons are invisible Mar 14 03:50:38 and I can find NO one else reporting this Mar 14 03:50:41 which is freaking me out Mar 14 03:51:27 fattire, you are targetting 0.4% of the android market by using minSDK 8. please consider this before acting further. Mar 14 03:51:36 treelzebub: still that's a few hundred people Mar 14 03:51:39 for me Mar 14 03:52:04 treelzebub: plus it affects at least up to gingerbread Mar 14 03:52:29 and it was working, no problem on wed. even rolling back the build tools didn't seem to fix it... I dunno Mar 14 03:52:51 no clue.. also went bcak to older gradle Mar 14 03:52:59 proguard doesn't seem to be the issue either Mar 14 03:53:23 anyway this is the last iteration of hte app that will support < 11 I've just decided... once this is fixed Mar 14 03:54:55 fattire: seriously nobody uses backcompat all the way back to froyo. i cannot tell you the time and experience you will waste. Mar 14 03:55:28 I'm telling you it was runnign 100% on the emulator on wednesday Mar 14 03:55:34 no need to pull support Mar 14 03:55:44 until after this rev (been working on it for months) Mar 14 03:55:52 i'm telling you, regardless of the emulation, the Android Platform has moved on. Mar 14 03:56:06 because it is deprecated. Mar 14 03:56:08 obviously.. but there are still people out there Mar 14 03:56:12 running this Mar 14 03:56:40 the IDE breaking is not a good reason to suddenly throw them under the bus Mar 14 03:56:45 I'm assuming they'll fix it Mar 14 03:56:50 THEN i can abandon them Mar 14 03:58:37 see, I feel guilty already Mar 14 03:59:00 have fun :) Mar 14 03:59:51 it's all fun Mar 14 03:59:58 play services goes back to 8 btw :P Mar 14 04:02:35 fattire minSdk=16 Mar 14 04:03:21 If I move a view to another layout or remove it and add it again, does it keep its touch listeners? Mar 14 04:04:08 knapper_tech, no. each instance of the view is its own, unless you do some weird static mojo that i can't imagine Mar 14 04:05:11 treelzebub, whats the minsdk u recommend? Mar 14 04:05:45 treelzebub, I mean a view object held in memory, not freshly instantiated by inflation etc Mar 14 04:07:06 cbot`: depends on the app... but no earlier than 15. that's not my rec, that's google's. Mar 14 04:07:15 i feel u man Mar 14 04:08:11 knapper_tech: explain moving a view object held in memory to another layout Mar 14 04:09:03 treelzebub, View lol = v.findViewById(R.id.lol); v.removeView(lol); v.addView(lol); Mar 14 04:09:50 would lol's touch listeners be live still or do they get secretly canned whenever removed? Mar 14 04:10:02 working out a drag-n-drop implementation Mar 14 04:10:28 *when view is removed Mar 14 04:10:54 lol doesn't have a listener until you lol.setSomeListener(...) Mar 14 04:11:10 treelzebub, i'll have to gist Mar 14 04:11:21 the listener is attached to the instance of the view. Mar 14 04:11:31 not the view itself, statically. Mar 14 04:13:15 https://gist.github.com/knappador/236f710594731dd20e41 Mar 14 04:13:44 reading Mar 14 04:14:10 g00s_: play services for froyo still works Mar 14 04:14:22 who cares :| Mar 14 04:14:26 dude. you don't need a gist for 4 lines of code that you just typed verbatim ;) Mar 14 04:14:28 just sayin' Mar 14 04:15:08 treelzebub, felt faster than raking your eyes over semicolons Mar 14 04:15:11 fattire, you are going about the whole thing all wrong. honestly, nobody in this room is ever going to talk to you about supporting api 8. Mar 14 04:15:47 * fattire laughs Mar 14 04:15:53 hilarious okay Mar 14 04:15:56 knapper_tech, i think you misunderstand "held in memory" vs. "unique instance of java object" Mar 14 04:16:38 treelzebub, what else would I have meant? Mar 14 04:17:04 but anyway, does some secret touchListener assassin strip my instance of its listeners after I remove it? Mar 14 04:17:33 and will they work when the view they're set on is added to a completely different view? Mar 14 04:17:39 shit. no, i'm sorry. yes, the code you have submitted will maintain the listener. Mar 14 04:17:46 sorry dude. it's been a long day Mar 14 04:17:54 treelzebub, no prob Mar 14 04:18:25 yeah, that's the same instance of the View v. Mar 14 04:18:30 free IRC support is never something to complain about unless n00b Mar 14 04:18:37 sorry, the View lol Mar 14 04:18:46 ffs i should stop trying to help Mar 14 04:22:32 no you're doing great Mar 14 04:25:57 fattire, my boss seems to think so :D Mar 14 04:26:22 Hmm. So I'm trying to shove an Easter egg or two in my app Mar 14 04:26:38 Is there any way to be able to detect a click on the text title of an activity? Mar 14 04:27:02 what do you mean by text title? Mar 14 04:27:07 the action bar text? Mar 14 04:27:50 Yeah Mar 14 04:28:23 fun trick figured out by Jake Weso over at stackoverflow.com: http://stackoverflow.com/questions/24838155/set-onclick-listener-on-action-bar-title-in-android Mar 14 04:28:41 Nice! I'll take a look Mar 14 04:31:42 NullPointerException on the second line of that solution Mar 14 04:39:36 interesting. debug and tell me what's null Mar 14 04:47:47 hey, is there any specified limit (boundaries) for the values given by SensorEvent? Mar 14 04:52:06 cliffreich, it depends on the sensor, and therefore the hardware that reports sensor data. can you be more specific? Mar 14 04:54:11 well i need the boundaries for my tests, in that case, is there any way to know/obtain the boundaries for the TYPE_MAGNETIC_FIELD Mar 14 04:54:39 or a way to obtain the boundaries from the device running the app Mar 14 04:57:40 way out of my league, i'm afraid. i'd advise looking into the source code to see if it sets boundaries. Mar 14 05:11:39 Hello friends... anybody a home? Mar 14 05:23:05 we're all home here, danny Mar 14 05:27:26 I'm home, but you can't come over :p Mar 14 05:29:43 here the lights are on, but nobody is home Mar 14 05:40:43 AS 1.2 keeps telling me this can be replaced by lambda, but thats not true obviously ... anyone see this ? Mar 14 05:42:00 its almost as if my gradle file's language level isn't being recognized (which is set to 7) Mar 14 05:43:23 nope, IDE reports source/target compatibility as 1.7 Mar 14 05:51:19 lol, so i let it change to lambda expression, and now i have a red error marker "lamda expressions are not allowed at this language level" :P Mar 14 05:51:38 hehe Mar 14 05:52:07 i'm still waiting for some objective and rational explanation on why intellij is better than eclipse Mar 14 05:52:56 In my experience, it’s better in certain things and worse in others. Certainly not the slam dunk that a lot of IDEA users keep claiming Mar 14 05:53:54 its better at pissing me off thats for sure Mar 14 05:54:25 how is it going cbeust_ :) Mar 14 05:55:29 but i have to say, when i let it replace with lamda, it looked so beautiful :) Mar 14 05:57:17 Just tried android studio, it's hands down the most resource consuming program I have ;_; Mar 14 05:57:49 yes, that much is true Mar 14 06:04:28 Is it still beta? Mar 14 06:05:16 i think it will always be beta :| Mar 14 06:05:34 do you mean "is it fit for human consumption?" Mar 14 06:05:47 Oh I thought it released, that's kinda good. Mar 14 06:05:58 1.1 is officially a release Mar 14 06:07:38 I guess we can't have a nice Java ide with good performance, but android studio is on a new level of slow. Mar 14 06:16:27 i wonder how much of intellij 14 is based on kotlin Mar 14 06:27:21 hello friends... please i'm having serious challenges here, i want to send sms message to a list s of phone numbers but its not working, but its only work when i send to a single phone number. Mar 14 06:27:27 HELP ------------------->>>>> Mar 14 06:31:20 I'm not your friend, pal Mar 14 06:31:22 :p Mar 14 06:33:47 hackable: why don't you show some code you tried to do Mar 14 06:36:58 shmooz its over ---------------->>>>>>>>>>>>> Mar 14 06:41:54 * capella can't scroll right ... am I doing it wrong? Mar 14 06:56:18 i have -- Observable foo { return (Void)anotherObserbable.ignoreElements(); } ... but this isn' working. anyone know how to fix that :| anotherObservable is of type bar Mar 14 06:56:46 since i'm using ignoreElements ... nothing gets returned techically, i just have to appease the java typing system Mar 14 06:58:43 shmooz: Thanks.. i will upload it now for you to see.. Thanks so much Mar 14 07:05:54 does anyone know why a timepicker would be disabled (gray instead of white font, unable to be interacted with) ? Mar 14 07:07:40 Hello, do any of you have experience with SQLiteAssetHelper? https://github.com/jgilfelt/android-sqlite-asset-helper Mar 14 07:08:26 hmm, .Observable.cast(Void.class) doesn't work either Mar 14 07:10:50 just return null Mar 14 07:13:15 cbeust_ i have to return an Obervable. the contract needs to be, no elements emitted but onComplete or onError only Mar 14 07:14:10 thats why i am using Observable.ignoreElements() Mar 14 07:14:29 oh well, this is confusing without code Mar 14 07:14:42 cast to an Object? was wondering wth :? Mar 14 07:15:08 i can make the function return Observable oops Observable ... seems less clean, because semantically, i'm not returning anything at all - but the stream has a type Mar 14 07:15:38 dunno ... was throwing darts Mar 14 07:16:17 g00s_: You can still return an Observable: Observable.just(null) (never tried that) Mar 14 07:18:04 ok - well to clarify, the source observable does return some type its just that i want to strip out the elements to the caller and not have exposed to the higher level of abstraction. The higher level just needs to know if if completed or errored - it wasnt going to do anything with T Mar 14 07:18:27 .ignoreElements strips out all the elements fine, but ... the type Mar 14 07:47:46 Hola hay alguien? Mar 14 07:48:33 omelette du fromage Mar 14 07:51:09 what? xD Mar 14 07:51:23 lol Mar 14 07:51:30 chees crepe Mar 14 07:51:34 *cheese Mar 14 07:53:09 No puedo compilar lollipop :( Mar 14 07:53:13 Me da error el make Mar 14 07:53:15 :( Mar 14 08:02:05 no..no.. like consuela from family guy xD Mar 14 08:16:39 yo quiero tacos? Mar 14 08:36:43 wow Mar 14 08:37:30 if you go to your Macbook's Display settings and changed to Scaled and choose the option between Default and More Space, your life will change again Mar 14 08:44:23 Are there any good dark themes for android studio other than the default? Mar 14 08:45:01 not that I know of Mar 14 08:45:07 at least not built in Mar 14 08:45:17 alright, i'll just mess around and make my one Mar 14 08:45:18 own* Mar 14 08:46:44 I really like Dracula Mar 14 08:46:58 what font do you use? Mar 14 08:47:10 well I'm on a mac Mar 14 08:47:21 so the font is Consolas but it looks much better Mar 14 08:47:26 ah Mar 14 08:47:44 http://www.ideacolorthemes.org/home/ Mar 14 08:47:58 oh nice Mar 14 08:48:00 thank you Mar 14 08:48:46 np, but some of those don't play nice with the "show the actual resource instead of the id" stuff Mar 14 08:52:30 Hey, I moved my .android, .AndroidStudio and .gradle folders to the D drive from My Documents on the C drive, now trying to launch a libgdx project on my phone but I get "Could not find org.robovm:robovm-gradle-plugin ..." gradle error. What do? Mar 14 09:14:31 Did you try going into file->project settings->gradle->use local gradle distribution and manually setting the directory?i don't know if that would work but i would try that first Mar 14 09:21:55 liuwenhao, no, I fixed it already, thanks. Did some gradle.build magic Mar 14 09:27:49 PhoneGap or Steroids? Mar 14 09:32:33 none.. Mar 14 09:32:49 use Titanium Mar 14 09:33:55 Odaym: Hmm. I checked Titanium but it appears to need different UI configs? Mar 14 09:34:12 (I have been just Googling. I don't find it feasible to download and test each.) Mar 14 09:35:05 Titanium is very good Mar 14 09:35:15 scientifically speaking, it's "good" Mar 14 09:35:17 :P Mar 14 09:35:45 is it a must that you do cross-platform? Mar 14 09:35:47 job? Mar 14 09:35:50 Odaym: Titanium does seem good but is there's a way I could avoid developing separate UIs? Mar 14 09:36:01 you will not be developing seperate UI's Mar 14 09:36:04 Odaym: Nope. Researching. Laziness. Mar 14 09:36:08 the same code you write will run on both Mar 14 09:36:21 Titanium.UI.TextField Mar 14 09:36:26 that will be a textfield on both platforms Mar 14 09:37:00 Odaym: I see. Most of these links talk about multiple UIs. What about higher layout? Can I have Titanium.UI.NavBar or Titanium.UI.Menu? Mar 14 09:37:07 yes Mar 14 09:37:26 the only if's you'll run into are when you have to code things like GCM Mar 14 09:37:33 Odaym: All other hardware APIs? Mar 14 09:37:42 the initialization of objects may differ because you'll be getting different API keys from Apple/Google Mar 14 09:37:50 hardware I haven't tested further than camera Mar 14 09:38:00 gyro...stuff like that, dont know Mar 14 09:38:05 but it should be supported Mar 14 09:38:30 Odaym: Thanks. I was being discouraged by the UI. Now that I know UI is reusable, I will read more. Mar 14 09:38:32 it's just that with phonegap you're left to fend for yourself Mar 14 09:38:44 and Steroids is too early, I bet the community is tiny Mar 14 09:38:56 you have to look for community first, a source where you can ask and get answers Mar 14 09:39:01 regardless of how sexy the technology is Mar 14 09:39:32 phonegap does have that but I've had a really bad experience with just setting up phonegap for a sample project so I completely abandoned it back then Mar 14 09:39:48 what I noticed that I didnt find enough documentation Mar 14 09:40:01 Titanium is a whole company dedicated to do this cross-platform thing, I'd trust that any day Mar 14 09:40:18 at my previous job we even were able to call them and ask them about something internal we were facing Mar 14 09:40:28 at a previous job* Mar 14 09:41:01 all that aside? I'd learn Android native :) Mar 14 09:41:54 Trying out SL4A here. The contactsGet procedure seems to return some numbers instead of email addresses. The docs don't say much. Anyone has any quick pointers before I jump into SL4a code? Mar 14 09:42:53 same seems to be happening to some of the phone numbers as well.. I get some unicode string with 4 to 5 digits instead of the real phone number like u'2340' Mar 14 09:43:12 SL4A = scripting layer for Android Mar 14 09:43:21 P.s I am using python Mar 14 09:43:59 Odaym: I'm familiar with Android app dev. I'm not interested in learning iOS though but I'd like to support iOS. Steroids seems neat. Their supersonic platform has seamless REST integration. They have really good database integration. But, they've limitations on OSs. Android 3.0+ and iOS only. PhoneGap seems to support a lot more but apparently it's slower. Mar 14 09:44:52 The_Phoenix: exactly what is slow in Phonegap? Mar 14 09:45:09 phonegap has always had that slow reputation Mar 14 09:45:17 mostly developers fault Mar 14 09:45:38 Titanium is fast even if you suck Mar 14 09:45:50 you cannot remove the splash screen from any app you make though, be warned :P Mar 14 09:46:33 kamathln: Not sure. Am researching. I installed steroids and phonegap. But, I read somewhere old Facebook apps used PhoneGap and that is the most horrible app I have ever used. Mar 14 09:46:43 Odaym: Cannot customize either? Mar 14 09:47:08 you can customize yes of course Mar 14 09:47:42 The_Phoenix: I believe you have tried fastclick .. Mar 14 09:47:45 Titanium have a showcase thing on their site where you can see all of the apps that were built using their technologies, you should check it out and tell for yourself Mar 14 09:49:11 how am I not offered the option to implement onResume and onPause inside an ActionbarActivity? Mar 14 09:49:26 isn't it ultimately...an Activity? Mar 14 09:49:33 Odaym: Some UI components like the menu have platform specific code in Titanium. Mar 14 09:51:28 Odaym: Xamarin is also there. Mar 14 09:52:21 I ran into very few if's when I was working Titanium Mar 14 09:52:30 none having to do with UI Mar 14 09:52:41 Xamarin is also a good choice by the way Mar 14 09:52:43 big community Mar 14 09:54:15 Odaym: I see. Hmm. I honestly feel I should try everything but there's Steroids, Xamarin, PhoneGap, Cordova, Titanium, Ionic and some more obscure paid options. Mar 14 09:55:11 you cannot try everything Mar 14 09:56:11 Odaym: Yes. That's the problem. Mar 14 09:57:01 wrong button Mar 14 09:57:17 LOL Mar 14 09:59:57 no one with SL4A experience ? hmmm Mar 14 10:00:33 Xamarin seems good. I think Steroids > PhoneGap. I'll check out Xamarin, Titanium and Steroids a bit more and maybe try two. I come from a Java background. Strongly typed C# might be better than JavaScript for someone like me. Mar 14 10:40:50 Odaym: Titanium iOS needs a Mac. Mar 14 10:41:05 And, Xamarin forms isn't free. Mar 14 10:42:39 Hello Mar 14 10:42:51 I've got issues with gradlew script Mar 14 10:42:56 http://pastebin.com/m7PU3vkD Mar 14 10:42:58 Any ideas? Mar 14 10:43:18 yes i used to work on a mac for titanium dev Mar 14 10:49:15 Odaym: I have a Dell. :P That's a DealBreaker for me. So, I guess that only leaves PhoneGap (and other Cordova based solutions.) Mar 14 11:00:06 I'm trying to create a gradle-based project on the command line (android create project -g -v 0.4+ --target 16 --name example --path example --activity MainActivity --package com.example.example). Mar 14 11:00:41 When I run ./gradlew, I get the error "Could not create plugin of type 'AppPlugin'". Any ideas what I'm doing wrong? Mar 14 11:01:17 hi guys Mar 14 11:01:46 good moaning Mar 14 11:01:54 im absolutely new to developing roms. Im a total noob. I wanna start developing Mar 14 11:02:03 can you guys give me some useful links Mar 14 11:02:18 roms eh? Mar 14 11:02:23 yea Mar 14 11:02:25 this is more suitable for #android-root Mar 14 11:02:26 SiPL: this channel is apps only, not roms Mar 14 11:02:33 Ashiren: not really for -root, no Mar 14 11:02:44 i wanna build a stock aosp rom for my xperia z Mar 14 11:02:48 then what Mar 14 11:02:58 o sorry Mar 14 11:03:01 SiPL: why not just install cyanogenmod? it's AOSP with some extras Mar 14 11:03:15 Ashiren: no idea Mar 14 11:03:19 i have cm12 now. I wanna learn developing roms Mar 14 11:03:23 maybe #android would work Mar 14 11:03:44 SiPL: https://source.android.com/source/building.html Mar 14 11:04:19 ty :) Mar 14 11:04:31 SiPL: alternatively, if you want to try building CM, http://wiki.cyanogenmod.org/w/Build_for_yuga Mar 14 11:04:58 (I recommend not using clockworkmod though, as it's not really maintained. use TWRP instead - you can either just flash it or if you want to, build that yourself from source too) Mar 14 11:05:32 alright. I already have twrp installed on my phone Mar 14 11:06:52 actually, -root does say "custom ROMs", sorry Mar 14 11:06:57 it may be a good channel for this Mar 14 11:08:35 I thought it's not at first, because having a custom ROM does not necessarily equate to having root access, but since the channel's topic says "custom ROMs", it sounds like the right place Mar 14 11:34:40 I've created a project with just a default Activity that does nothing. When I do `adb install thanks kamathln and odaym. Mar 14 11:41:11 rioch: what's the apk called? Mar 14 11:41:32 cristian_c, yeah Mar 14 11:41:44 you have to mark libsuperuser as dependency of your project Mar 14 11:41:57 i think Mar 14 11:47:58 Mavrik, how? Mar 14 11:48:10 I'm compiling the app with ant Mar 14 11:48:23 Oh Mar 14 11:48:25 but I need the .jar or .so of libsupersuse Mar 14 11:48:29 *libsuperuser Mar 14 11:48:29 I have no idea about ant. Mar 14 11:48:34 ok Mar 14 11:48:57 With AS I just import the module and mark it as dependency and then I add it to the build.gradle file Mar 14 11:49:17 module = libraries from github or so Mar 14 11:49:19 I've launched the gradlew script Mar 14 11:49:35 yeah, I've cloned the libsuperuser git repository Mar 14 11:52:52 Leeds: Example-debug.apk. Mar 14 12:02:33 in my activitiy #onCreate, I'm inflating a view, and setting it as a contentView. I need to know when that view and all it's children have been layed out. What's the best way. Mar 14 12:08:58 hello Mar 14 12:39:22 nevermind. I found a solution. Mar 14 12:41:14 hey guys :) Can you say me how can I use Material Design in Previous android versions please? :) Mar 14 12:43:40 Babaum, support library version 7 revision 21 Mar 14 12:44:06 ActionBarActivity + Apptheme.Material Mar 14 12:44:57 should I select that in new project creation ? Mar 14 12:45:22 you can also do it manually Mar 14 12:47:47 Can you say how can I do it please? :) Mar 14 12:48:12 http://android-developers.blogspot.de/2014/10/appcompat-v21-material-design-for-pre.html Mar 14 12:52:44 thank you :) Mar 14 13:28:20 Hi Mar 14 13:29:01 Whats better/faster, volley or retrofit? Mar 14 13:29:32 That question makes no sense. Mar 14 13:29:35 use whatever you prefer Mar 14 13:29:38 it doesnt matter Mar 14 13:30:13 even if one would be a bit faster, the bottleneck will alwways be network speed Mar 14 13:30:27 yes ofcourse Mar 14 13:30:48 those two actually don't solve the same problems Mar 14 13:30:55 (people actually use volley with retrofit) Mar 14 13:58:43 hello Mar 14 14:09:47 Hi All how's everyone doing? Mar 14 14:12:16 Does anyone know about a buy with Gradle? Mar 14 14:12:39 Bug with Gradle. Mar 14 14:58:02 hi, has anyone a clue about this: If i emulate a tablet (1280x800) with AVD, rotate to 800x1280 and start my app, the device is rotating upside down and rotating back to normal. If i start it with the natural orientation (1280x800) its starting properly without upside-down rotating Mar 14 15:05:42 don't use an avd Mar 14 15:06:23 ^ this Mar 14 15:07:14 pfn: just checking some previous git checkouts,....used to not happen, i must have done something stupid ;) Mar 14 15:07:18 why not avd? Mar 14 15:09:07 its meh Mar 14 15:09:44 Ashiren: ? Mar 14 15:13:39 hey, i saw some applications with material design running with API < 21, but if i try to use the Material Theme with API < 21, it doesnt work (Android studio says api-lvl to low) Mar 14 15:14:41 thor77: youre looking for appcompat Mar 14 15:15:55 is there some documentation available for that? Mar 14 15:16:29 yes. Mar 14 15:17:25 has anyone found a way around this issue? https://github.com/commonsguy/cwac-camera/issues/10 -- basically there's a delay when using MediaRecorder Mar 14 15:26:32 what font do you use for your app? Mar 14 15:26:50 i want to change the actionBar color when item selected , i have used this getSupportActionBar().setBackgroundDrawable(new ColorDrawable(0x600000 ));, but it didnt changed the color Mar 14 15:27:20 change it from the theme Mar 14 15:27:29 oh, yea you can still change it dynamically Mar 14 15:27:40 but not like that Mar 14 15:30:16 so u mean it cant be done programatically? Mar 14 15:30:31 yea Mar 14 15:31:04 oki, thnx Mar 14 15:31:50 I think it can be done, look at https://github.com/jpardogo/PagerSlidingTabStrip and the sample Mar 14 15:32:57 its just one line, no need to look at a project activity.getSupportActionBar().setBackgroundDrawable(context.getResources().getDrawable(R.color.pink)); Mar 14 15:33:31 this is from inside a method in another class that takes care of doing this, that's why there's a reference to the activity and the drawable is fetched through context Mar 14 15:34:21 oh my god. there are still people that define hex colors in code? Mar 14 15:34:25 that project is really cool by the way Mar 14 15:34:51 yea that's really alien to do Mar 14 15:35:55 danijoo_: why shouldnt? Mar 14 15:36:14 first it looks extremely ugly Mar 14 15:36:32 second you cannot change the color anymore without having to look through the code for where it's being used! Mar 14 15:36:39 there's a colors.xml file for this purpose Mar 14 15:36:45 just like strings.xml Mar 14 15:37:01 third: you have to do it everytime you want to use the color Mar 14 15:37:07 yeaa Mar 14 15:37:12 you should be punished Mar 14 15:37:28 changing color theme is really not fun when you realize you have to change it in every file Mar 14 15:37:36 instead of one line in color.xml Mar 14 15:38:19 there will be day in the future you'll slap yourself if you dont use color.xml, string.xml and stuff like that Mar 14 15:39:26 man.. i really hate using appcompat material design. Mar 14 15:39:57 all those hacky workaround for cardviews Mar 14 15:40:09 I just left my listview as is Mar 14 15:40:17 especially the ugly listselector Mar 14 15:40:21 convinced that it isn't worth while to move everything to cardview Mar 14 15:40:33 yeah. im writing something new with cardview atm Mar 14 15:40:43 ah yea if new I'd go cardview Mar 14 15:41:24 the thing is there is so many stuff that looks half finished. like the default list selector ignoring card view padding Mar 14 16:08:07 got a problem with Picasso. It's working fine, but just with one picture, I can't use "fit().centerCrop()". It's giving me no error, it's just not loading. Tried with different device, same behaviour. The image is fine (http://static.pickd.pics/4/77_ETNAQVVD31Q7TW22P6YBP01WRQYB6IHUY1ZOHBBRWN3632AA60296TAY5PJGEDHC.jpg). If I load it without fit().centercrop(), it's working ... but I need those feature Mar 14 16:08:15 any idea ? Mar 14 16:10:38 blusky, i think centerCrop cant be used together with fit() Mar 14 16:10:54 danijoo_: it's working fine with all other pics Mar 14 16:11:00 just that one is not working :/ Mar 14 16:11:01 oh. mh.. Mar 14 16:11:22 (just that one among my pictures set) Mar 14 16:12:08 pastebin ur code Mar 14 16:12:37 danijoo_: http://hastebin.com/yikuhoqazo.avrasm Mar 14 16:12:54 if I remove fit() and centerCrop() it's working Mar 14 16:12:55 with some context ;) Mar 14 16:13:05 oh. well. then there you have it ;) Mar 14 16:13:24 no, I need those features :p Mar 14 16:14:17 *gonna make a new test app to test it Mar 14 16:16:12 danijoo_: http://hastebin.com/belicubuha.avrasm Mar 14 16:16:20 (simple app, onyl with an imageView) Mar 14 16:16:24 the image is not loading Mar 14 16:16:50 think about what you are doing Mar 14 16:17:10 you tell it to fit the image size to the view fit() Mar 14 16:17:19 AND to be scaled to be larger or equal to the view Mar 14 16:17:23 that makes no sense Mar 14 16:18:01 how can i change the actionbar color when the an item is selected? Mar 14 16:18:14 danijoo_: it's not exactly what "fit" does Mar 14 16:18:27 fit keep the ratio of the pic Mar 14 16:18:42 john67, getActionBar().setBackgroujndDrawable Mar 14 16:19:02 danijoo_: didnt work Mar 14 16:19:14 john67, maybe done it wrong Mar 14 16:19:20 danijoo_: if I use the URL 'http://static.pickd.pics/4/78_ARXBJ9U4G9R4Z8OHDMHBLP7GICLPH3Q3RCTT88FSR4X7GM8CL3TI8HIDH9QPBXMM.jpg' it's working ... Mar 14 16:19:46 getSupportActionBar().setBackgroundDrawable(new ColorDrawable(R.color.blue )); Mar 14 16:20:03 blusky, no idea then. but i still think it doesnt make much sense to use fit() together with centercrop :/ Mar 14 16:20:15 danijoo_: getSupportActionBar().setBackgroundDrawable(new ColorDrawable(R.color.blue )); doesnt work Mar 14 16:20:28 john67, maybe used it at the wrong place Mar 14 16:20:30 danijoo_: http://stackoverflow.com/questions/9525127/android-stretch-crop-image-but-remains-aspact-ratio Mar 14 16:20:58 danijoo_: im using it on the menu item, Mar 14 16:21:08 if I just use "crop", if the pic is too small, I'll have white padding, fit() is then used Mar 14 16:21:18 john67, show the code Mar 14 16:21:51 blusky, yes but you cant tell a picture to fit its view AND extend it at the same time Mar 14 16:27:51 danijoo_: http://pastebin.com/BXRHWDEQ Mar 14 16:28:39 john67, are you sure those lines are called on button click? Mar 14 16:28:46 have you checked that with a debugger Mar 14 16:28:55 danijoo_: yeah, Mar 14 16:30:31 it should work this way Mar 14 16:30:40 everyone says it does Mar 14 16:30:44 I would use enums and a switch case Mar 14 16:30:54 not equals and ifs :p Mar 14 16:30:58 danijoo_: same behaviour if I just use "fit()". No image are loaded :/ Mar 14 16:31:22 blusky, whats your view properties? dont tell me its wrap_content :p Mar 14 16:31:38 nop, 300dp width and height Mar 14 16:31:39 :) Mar 14 16:31:42 ok ^^ Mar 14 16:31:44 weird. Mar 14 16:31:54 fit() should really work then Mar 14 16:32:04 http://hastebin.com/aqiqugufin.xml Mar 14 16:32:25 im using it like that, too Mar 14 16:32:29 and dont have problems :/ Mar 14 16:32:41 could you try with that specific url please ? Mar 14 16:32:47 I think the problem is on the image Mar 14 16:32:57 something in it make it incompatible with picasso I think Mar 14 16:33:14 blusky, you mean like a header sent from the provider? Mar 14 16:33:40 nop, same behaviour with wifi, LTE, and friends using my app Mar 14 16:33:59 and other pic (ex: http://static.pickd.pics/4/78_ARXBJ9U4G9R4Z8OHDMHBLP7GICLPH3Q3RCTT88FSR4X7GM8CL3TI8HIDH9QPBXMM.jpg) work just fine Mar 14 16:35:01 maybe try downloading the picture, upload it somewhere else and test again? or download resize a tiny bit and test that too Mar 14 16:35:13 no idea. sorry Mar 14 16:35:20 if I remove "fit()", the picture is loading fine Mar 14 16:35:42 danijoo_: i have a print on the method and they print the output, but the color is very weird Mar 14 16:36:03 what do you mean with a print? Mar 14 16:36:49 i mean a System.out.print("red") Mar 14 16:37:43 john67, have you really checked if those lines are called with a debugger or just printed the color to console to check if the method is called correctly :p Mar 14 16:37:44 i mean , its a very not the real color, i had a gray instead of a red Mar 14 16:38:52 danijoo_: yeah i have check, i had this on the out put I/System.out﹕ yellow Mar 14 16:39:13 R.color.blah isn't a color, it's a resource id. You can use the Resources class to get the color the id represents Mar 14 16:39:50 ah yeah. this should be the reason SimonVT Mar 14 16:41:00 a lot of people do this mistake because the ColorDrawable() constructor can take an int as argument. Mar 14 16:41:31 SimonVT: oki, let me try Mar 14 16:48:32 JakeWharton: any idea why some pictures can't be "resize" or "fit" with Picasso ? (https://github.com/square/picasso/issues/249) Mar 14 16:48:59 danijoo_: SimonVT thnx it works Mar 14 16:49:12 getSupportActionBar().setBackgroundDrawable(new ColorDrawable(getResources().getColor(R.color.blue))); Mar 14 16:49:18 the right answer Mar 14 16:50:50 john67, yeah. if you just pass R.color.blue, it interprets that as in integer and thinks you want to pass a hex color Mar 14 16:51:23 I dont know how many times i did this and though "why is my color not drawn?" Mar 14 16:54:51 danijoo_: it's really a jpg format issue Mar 14 16:55:09 I oppend it and save it with PIL Mar 14 16:55:18 and now it's working Mar 14 16:55:30 blusky, thats weird. Mar 14 16:55:40 can you see what the difference is? Mar 14 16:55:46 image encoding maybe? Mar 14 17:01:47 I'm trying to use a SupportMapFragment in a ListView, but I'm getting "The specified child already has a parent. You must call removeView() on the child's parent first." Mar 14 17:02:08 Is there some limit on using multiple MapFragments Mar 14 17:05:34 danijoo_: yup, image encoding Mar 14 17:05:48 so I'll need to reencode all my users pics ... Mar 14 17:05:49 lol Mar 14 17:08:22 blusky, wow that sucks Mar 14 17:13:14 it does Mar 14 17:18:19 umm hi Mar 14 17:18:41 Do I need system images for developing with android 5.0? https://paste.xinu.at/AGJ/? Mar 14 17:19:13 No, those are just for emulators Mar 14 17:19:48 ah Mar 14 17:20:02 So I only need the platfrom and sources? Mar 14 17:20:17 Just SDK platform Mar 14 17:21:27 ah thanks Mar 14 17:21:50 What are the google APIs? Mar 14 17:23:03 Not sure if they provide anything useful anymore Mar 14 17:23:46 Provides old style map views and stuff like that Mar 14 17:23:52 I believe it has all been moved to play services Mar 14 17:25:39 aye Mar 14 17:25:42 thank you Mar 14 17:32:09 Hey all Mar 14 17:32:38 So I was wondering last night about activating something when I tap on the title in the action bar Mar 14 17:33:04 It didn't seem to work. Mar 14 17:34:44 Stacktrace http://pastebin.com/NmPAMURj Mar 14 17:35:00 I was presented yesterday with Jake Weso's solution from http://stackoverflow.com/questions/24838155/set-onclick-listener-on-action-bar-title-in-android Mar 14 17:46:38 ++ Mar 14 17:48:22 that package name :D Mar 14 17:58:25 gov.nsa.spying Mar 14 18:00:10 hi :). i can how get color with ColorPalette from webview.. as similar Chrome ? Mar 14 18:01:58 I think chrome doesn't extract colors but websites can specify a color and chrome uses that Mar 14 18:02:35 http://updates.html5rocks.com/2014/11/Support-for-theme-color-in-Chrome-39-for-Android Mar 14 18:33:19 Hi! When I connect my LG G-Watch R on USB and do adb devices I get no result. Fastboot sees the device tho. Any idea why? Mar 14 18:56:25 usb debugging on? Mar 14 18:59:21 Hi folks. I have an AsyncTask whose doInBackground() is never called. Do you have any idea about where the problem comes from? Mar 14 19:06:52 do execute()? Mar 14 19:08:37 Ashiren: Yes I called execute(). It reaches the constructor and preExecute(), but not doInBackground(). Mar 14 19:08:51 can you pastebin code Mar 14 19:09:45 Ashiren: https://gist.github.com/Dinduks/0328874f9657a70ce191 Mar 14 19:10:39 Ashiren: I just tried another AsyncTask from another app I have, and it works just fine. Maybe it's because of the AsyncTask's parameters? They're not correct? Mar 14 19:11:27 Ashiren, you shouldnt use asynctask for long running operations Mar 14 19:11:32 try a service or a thread Mar 14 19:11:42 dinduks: you probably expect toast to show Mar 14 19:11:44 jvrodrigues: A thread called with Handler::post() ? Mar 14 19:11:54 dinduks: but you do it from background Mar 14 19:12:02 thus not showing Mar 14 19:12:02 Ashiren: I expect the debugger to enter background Mar 14 19:12:16 oh even before that Mar 14 19:14:40 the tmp = app.getBluetoothAdapter().listenUsingRfcommWithServiceRecord("bar", app.getUuid()); blocks? Mar 14 19:15:59 It doesn't reach it… Mar 14 19:16:17 I removed the tmp = … line and it seems to work. Testing right now… Mar 14 19:16:19 does it reach to code with asyncTask.execute() Mar 14 19:16:48 i think listenUsingRfcommWithServiceRecord block until other device connects Mar 14 19:19:27 Ashiren: But it shouldn't block before my debugger reaches it, should it? Mar 14 19:19:44 dunno Mar 14 19:32:49 dang, those birds are back - staring at me from the branch Mar 14 19:33:59 Ashiren: the .accept() on the socket was causing my problem. My code stops at that line, and I have no exception or error message in the logs. Mar 14 19:34:16 Heh. I remember there being a cardinal outside the window in the computer lab in high school Mar 14 19:34:27 It would always run into the window, trying to get in Mar 14 19:34:37 (funnily, the cardinal was our high-school mascot) Mar 14 19:36:51 JesusFreke he was trying to tell you 'write flappy birds' Mar 14 19:37:38 dang somebody just sent me an email, and google play services crashed :| Mar 14 19:44:56 i found the hackiest way to ensure a BLE char/desc buffer write happens on a binder thread so there are no concurrency issues (but this is so bad, its probably against the law) - call bluetoothGatt.readRemoteRssi() which will immediately call onReadRemoteRssi() from the binder thread, where you can write to buffer and kick off that operation Mar 14 20:01:49 i have one screen when i open the app, then to move to the next screen, you must click the i agree button. do i put the method in the MainActivity.java or make a new one and reference it? Mar 14 20:04:55 stevenjames: at this point, mainactivity Mar 14 20:07:45 ok and THEN i would create a new .java file for the next screen's layout? Mar 14 20:14:54 i guess this is one reason why the gold apple watch will sell http://www.washingtonpost.com/blogs/wonkblog/wp/2015/03/13/what-the-rise-of-luxury-toilet-paper-says-about-the-economy/ Mar 14 20:16:32 well, at least the german kind Mar 14 20:19:49 So right now I have a single navigation drawer activity. Using the navigation drawer to select an item replaces a "container" layout in the main activity with a fragment according to the option selected. This works, however the backstack causes a bit of an issue, as does resuming the app. I'd like to replace all the options in the navigation drawer with activities instead of fragments - if I do this, is it considered normal to make every activity a Mar 14 20:44:11 So I can write to a file just fine, but I can't find any working documentation anywhere on reading data from a file. Anyone have any experience doing so? Mar 14 20:44:46 Why is eclipse barking at this? "You must use Wi-Fi to complete this %s download. Touch %s to start this download the next time you're connected to a Wi-Fi network." Mar 14 20:45:03 I'm getting: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute? Mar 14 20:45:17 I tried $1%s and $2%s, that didn't work either Mar 14 20:45:36 hello Mar 14 20:46:13 I expected this to be explained here: https://developer.android.com/guide/topics/resources/string-resource.html#FormattingAndStyling Mar 14 20:46:15 But it isn't Mar 14 20:53:00 setuid, its %1$s not $1%s ;) Mar 14 20:57:17 TechGeek01: It's a waste of time asking "Does anyone know X?" unless you're doing a survey. Just ask the question. Mar 14 20:57:39 Also, there are 428 people in here. Imagine if not one of them had read from a file in Java code. That would be miraculous. :) Mar 14 20:58:28 TechGeek01: as someone (TacticalJoke?) put it - if you only had one question, would that be the question you want to ask? Mar 14 20:58:59 It sounds like an Eminem song. :D Mar 14 20:59:11 m&m's. mmMMmm Mar 14 21:00:59 Well, I was having a problem with multiple things, depending on what documentation/tutorial I used Mar 14 21:01:14 I’m developing a Widget Mar 14 21:01:33 Mostly, the problem was with the .read() function Mar 14 21:01:51 I’m trying to attach some intent to to some buttons in the TemoteViews Mar 14 21:02:29 It seems the onReceive function is triggered only if I use some ad-hoc intent type defined in the manifest Mar 14 21:02:43 so I’ve created a custom one…. Mar 14 21:02:57 now, if I create a simple Intent of this type….it works Mar 14 21:03:28 if at this intent I use setData() onReceive function is no more triggered Mar 14 21:03:40 can somebody help me ? Mar 14 21:05:10 Gandalf84: you have to add the data stuff to the intent filter, in the manifest Mar 14 21:05:32 http://developer.android.com/guide/topics/manifest/data-element.html Mar 14 21:06:04 and more broadly, how intent resolution is done is described in http://developer.android.com/guide/components/intents-filters.html Mar 14 21:06:25 You'll definitely want to read and understand how that all works Mar 14 21:08:42 Hi Mar 14 21:08:49 Hello! I want to draw text on bitmap. But how to pick text color so that it will be contrast to bitmap (readable). i have idea to use v7 palette. maybe there are some techniques while drawing?(apply filters to textpaint or etc?) Mar 14 21:08:58 I'll give those a read Mar 14 21:09:41 Does anyone has eclipse installed now? I need a small service Mar 14 21:12:45 jesusFreke: thank you Mar 14 21:19:42 jesusFreke, I’ve tried adding just Mar 14 21:19:47 now the widget is not working at all Mar 14 21:30:59 the widget is not loaded…is not even enymore in the list Mar 14 21:33:32 JesusFreke? Mar 14 21:37:01 probably I cannot put the data in the Mar 14 21:55:50 anyone notice a AS 1.2, based on intelliJ 14 - is rendering fonts differently on mac? for one i can't select some of the fonts i used previously, and they appear to be antialiased worse Mar 14 21:56:17 java and fonts - neverending headache Mar 14 21:56:35 i feel like i'm screwing around with xfs from 10 years ago Mar 14 21:57:59 AS is rendering fonts with a size of 13 what FontBook is rendering at 18 points - and the metrics / grid seems goofed Mar 14 22:08:48 Odaym you around ? quick question Mar 14 22:09:02 sure Mar 14 22:09:45 Odaym oK, so i connectGatt to this bluetooth device, and pull out the battery, or move out of range - either way, the peripheral goes off or - in the case of going out of range, blinks (which means it lost connection) Mar 14 22:10:08 but i am not getting any callbacks from onStateChanged() Mar 14 22:10:18 like, i would expect disconnected or something Mar 14 22:10:33 furthermore, when i try to read/write do whatever, these just go into the abyss Mar 14 22:10:38 there's an ondisconnect callback in the service Mar 14 22:10:50 same as on services discovered Mar 14 22:11:09 when you're initializing the handler of those callbacks in the activity that's going to do the communication Mar 14 22:11:39 i'm using this https://developer.android.com/reference/android/bluetooth/BluetoothGattCallback.html#onConnectionStateChange(android.bluetooth.BluetoothGatt, int, int) Mar 14 22:12:24 i would expect STATE_DISCONNECTED Mar 14 22:12:51 also, when i have a cleanly disconnected device, if i try to write a characteristic for example, i will see in the logs (device is closed) Mar 14 22:13:21 but seems like the interface is in some crapped up state Mar 14 22:13:43 I use this http://pastie.org/10026576 Mar 14 22:15:25 * g00s sighs Mar 14 22:15:44 i see what you did there - but those actions were broadcast based on what the listener received Mar 14 22:16:18 like if you did this https://developer.android.com/guide/topics/connectivity/bluetooth-le.html Mar 14 22:16:39 oh you're referring to the onConnectionStateChange inside the service class Mar 14 22:16:48 yea those should fire Mar 14 22:17:05 then broadcast Mar 14 22:17:15 yeah they aren't for the case the device just goes out of range. i'm not getting the disconnect Mar 14 22:17:40 there's 15 meter range on that Mar 14 22:17:43 15 or 12 Mar 14 22:17:47 I tried it Mar 14 22:18:33 if it really wont fire, do it based on that number that is available with the service Mar 14 22:18:37 that number that says the proximity Mar 14 22:18:41 forgot its name Mar 14 22:19:02 you mean the rssi ? Mar 14 22:19:24 yes Mar 14 22:19:37 but Mar 14 22:19:39 lol Mar 14 22:19:49 who cares what the rssi is, if things are working ... Mar 14 22:20:03 i can't say, if rssi = -100dmb disconnect Mar 14 22:20:08 *dBm Mar 14 22:20:15 oh so when it's battery out or proximity reached Mar 14 22:20:21 both dont fire the callback Mar 14 22:20:24 this is getting crazy Mar 14 22:20:45 they should..never had a problem in that area Mar 14 22:21:12 effing battery, at least on this device the profile always says 100% of 50% ... so i'm not sure i can rely on it Mar 14 22:21:20 100% or 50% Mar 14 22:22:07 i guess i'm back to the original plan, timeout requests and recycle the connection Mar 14 22:22:46 Odaym thanks Mar 14 22:22:52 anytime Mar 14 22:23:01 i'd like to see a list of the BLE internal defect tracker Mar 14 22:25:13 maybe i can readRssi every few seconds as a heartbeat Mar 14 22:25:50 although that doesn't actually seem to communicate with the device, just reads some register on the phone's ble stack Mar 14 22:35:56 Do any of you have experience with SQLite implentations? New to it and need some help, having a lot of problems ATM Mar 14 22:37:25 problems like what Mar 14 22:37:43 is a bitch one of them? Mar 14 22:38:21 Anyone got a guess as to why my emulator has been sitting on a black screen for the past hour or two and failing to boot up? Mar 14 22:38:40 sounds normal Mar 14 22:38:57 if it's genymotion, restart your PC Mar 14 22:40:01 odaym: i'm trying to figure out how to get my expandablelistview to read from my database but can't figure it out Mar 14 22:40:10 it's basic but I'm new to Android Mar 14 22:40:23 and the documentation is very sparse Mar 14 22:40:46 you have to call the getAllThings and give its result to the expandablelistview adapter Mar 14 22:40:59 it will use those things to populate itself or its children Mar 14 22:43:08 I'm running ArchLinux x64, standard SDK bundled emulator. Mar 14 22:43:15 Okay, I will look into it further Mar 14 22:43:37 Seylerius: does it always black screen? or just this time Mar 14 22:43:56 liuwenhao: Always. Mar 14 22:44:12 You should try genymotion, it's much better than the default emulator and runs on linux Mar 14 22:44:15 get genymotion Mar 14 22:44:17 liuwenhao: Well, this is the first time I'm trying. I've tried multiple times today. Mar 14 22:44:20 Okay, genymotion? Mar 14 22:44:25 i always had problems with default so i switched to genymotion Mar 14 22:44:31 yea its the best Mar 14 22:44:31 on windows Mar 14 22:52:41 monsier lapaditte! Mar 14 22:53:24 capella does mozilla have a fixed width version of Fira ? Mar 14 22:53:55 * capella does not know Mar 14 22:54:18 aha, yes they do ! Mar 14 22:55:17 ah, I found this http://www.carrois.com/en/fira-4-0/ Mar 14 22:56:28 Didn't know until now "Fira" was a thing :) Mar 14 22:57:28 everybody has to have their own font these days Mar 14 22:57:33 even intel has one Mar 14 22:57:35 lol Mar 14 22:57:53 i remember i.o 2013 was it ... they made such a big thing about roboto Mar 14 22:58:16 god it was awful some frankenstein sans serif variable width font that was kinda like fixed width Mar 14 22:58:26 but its changed over time Mar 14 22:59:04 and they made d.android.com roboto and my eyes were bleeding, i had to get FF and force fonts to Helvetica or something Mar 14 23:00:19 :P I'd expect providing a fixed-width (ala courier) would be a pretty basic part of font design Mar 14 23:01:19 But I'm a graphic / design kinda dev ... more straight coding ... leave the UI / Pretty stuff to visually oriented devs :D Mar 14 23:01:23 *not a Mar 14 23:02:44 sometimes you have to design Mar 14 23:02:53 when making something on your own Mar 14 23:04:12 * capella steals from the web Mar 14 23:04:35 As long as its not for eventual commercial purposes ofc Mar 14 23:04:37 what is the best tool to sketch android UIs Mar 14 23:04:48 yes, but the arrangement of things and where things go, that's design Mar 14 23:05:05 And which I definately still suck @ Mar 14 23:05:19 I do very simple layouts Mar 14 23:05:41 I've never found a good software tool for sketching GUIs. Mar 14 23:06:05 Outside of an image editor, I guess. Mar 14 23:07:03 hmm Mar 14 23:08:04 There's good ol' pencil and paper. Mar 14 23:08:07 https://i.imgur.com/crZfY9A.gifv Mar 14 23:08:16 Or pen, if you're an anarchist. Mar 14 23:08:39 i actually have drawing table somewhere Mar 14 23:09:19 feel like watching a good war movie Mar 14 23:09:36 I am reading a book on android dev and I just read a section about how to save current properties before the Activity is destroyed due to a orientation change. Is this book outdated or does a developer still need to do that? Mar 14 23:09:39 MS has a cool little app for lumia called 'office lens' which lets you take a picture of a piece of paper, whiteboard whatever - and automatically does the perspective correction Mar 14 23:10:03 rehat Still need to do that (via onSaveInstanceState or whatever). Mar 14 23:10:04 rehat still need to do that Mar 14 23:10:16 ok thanks Mar 14 23:10:20 lol, 'is it that archaic?' Mar 14 23:10:30 Error:Execution failed for task ':app:prepareComAndroidSupportAppcompatV72103Library'. Mar 14 23:10:30 > Could not expand ZIP '/Users/matt/Library/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/21.0.3/appcompat-v7-21.0.3.aar'. Mar 14 23:10:35 any idea what the issue is Mar 14 23:11:16 ObjectiveMatt thats weird Mar 14 23:11:21 why is that Mar 14 23:11:26 maybe the aar is corrupted Mar 14 23:11:39 any idea how to reinstall it Mar 14 23:11:45 do I have to reinstall the entire android studio or? Mar 14 23:11:51 is that the sdk? I don't now Mar 14 23:13:44 ObjectiveMatt you could try unzipping the aar yourself, if you get an error - its busted Mar 14 23:31:59 hmmm Mar 14 23:32:15 I think I want to scroll down to a newly-added item in the list and highlight it Mar 14 23:32:29 seems easy Mar 14 23:33:05 if no sorting is applied, scroll to listview at position items.size() - 1 Mar 14 23:50:38 works Mar 14 23:50:40 well, gn Mar 14 23:56:01 Hello, Im trying to implement google analytics within my android application. I'v set it up and it runs but the analytics shows 0 for real time users when I run the application. I made a post here including my code: http://stackoverflow.com/questions/29055277/google-analytics-android-device-real-time-overview-showing-0 Mar 15 00:03:28 Saloun, google analytics has a delay of 20 minutes Mar 15 00:04:22 @danijoo_ even for the real time part? Mar 15 00:04:50 Safinn_, yes. real time is 20min sharp. rest is updated even less Mar 15 00:05:57 danijoo_, Right.. Thank you. i'll take a look tomorrow and hope it shows someone has been accessing. Mar 15 00:21:52 God, Twitter is boring. Mar 15 00:40:33 I only check twitter when I'm waiting in line at the grocery store Mar 15 00:41:22 ^ this :0 Mar 15 00:43:08 i use the web interface, its inconvenient enough i hardly use it :) Mar 15 00:43:20 also: only follow things that don't tweet much :) Mar 15 00:43:42 i'm following kotlin and rxjava, thats it Mar 15 00:44:22 @TweetOfGod isn't too bad. Mar 15 00:44:28 you can also to TwitterObservable.ignoreItems() :D Mar 15 00:44:40 @TheTweeetOfGod * Mar 15 00:45:08 ee* Mar 15 02:10:39 Do any of you have experience with SQL queries? I have a simple select that I can't get to work properly Mar 15 02:10:55 what's the query/error Mar 15 02:16:47 I made an expandable listview and new SQLite database. my rawquery is "SELECT * from Content", which works fine, but when I click one of the groups in my list view it shows every child item. Mar 15 02:16:59 here is the relevant cursor code Cursor childCursor = mydb.fetchChildren(groupCursor.getString(groupCursor.getColumnIndex("_id"))); Mar 15 02:17:14 If you need more info to help I can paste bin the full code Mar 15 02:25:22 you should probably paste full code Mar 15 02:26:23 ("one of the groups in my list view" really means next to nothing) Mar 15 02:28:29 Alright, I will pastebin it in a few minutes Mar 15 02:28:43 ravilov ! so are you updating from 2.3 to 5.1 ? Mar 15 02:28:54 absolutely Mar 15 02:28:59 5.1 is all my dreams come true Mar 15 02:29:02 \o/ Mar 15 02:29:14 (not) Mar 15 02:29:28 /o\ Mar 15 02:29:36 Mar 15 02:30:41 IMHO, lollipop is very likely the most underwhelming and uninteresting android release yet Mar 15 02:31:07 yeah, i kinda don't like the design language much Mar 15 02:31:08 compared to 2.3, it's non of that Mar 15 02:31:32 but ravilov 2.3 ... there much be so many security bugs on your phone Mar 15 02:33:54 http://pastebin.com/HAvvWv5b Here is the code I am having trouble with; as I said before every child item shows up when one of the groups is clicked Mar 15 02:35:13 I think it might be because of my SQL select Mar 15 02:36:21 if "SELECT * from Content" is what you're doing, perhaps a SQL database is not the hammer for your nail Mar 15 02:45:56 Well my expandable list adapter is showing three fields from my database. English for the group item, Foreign and Category for the child items. It's just that every child item is showing up when one of the grouping is clicked and I'm not exactly sure how to fix it Mar 15 02:49:31 hi, I am having issues starting an activity for results in a fragment, is there any trick to this? Mar 15 02:49:54 (a support v4 fragment that is) Mar 15 02:50:17 phix i think there is a bug if you are doing this from a nested fragment Mar 15 02:50:49 but it should work from a top level fragment Mar 15 02:53:20 g00s: ummm it isn't nested, I keep getting the following error: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want? Mar 15 02:53:49 uh, dunno then Mar 15 02:54:06 g00s, was it you who had that asynctask problem Mar 15 02:54:20 cbot` no Mar 15 02:54:30 i dont use asynctask :) Mar 15 02:54:31 So i'm setting my actionbar and statusbar color in each activity programmaticly... is this not the best way to do it? Mar 15 02:54:35 should i use a theme? Mar 15 02:56:08 is there a good way to hide the keyboard when a user stops entering key presses on android **** ENDING LOGGING AT Sun Mar 15 02:59:59 2015