**** BEGIN LOGGING AT Sat Dec 06 03:00:00 2014 Dec 06 03:01:45 this Dec 06 03:01:47 http://www.reddit.com/r/IAmA/comments/2f0e46/i_am_an_independent_games_and_app_developer_ama/ck4r1gg Dec 06 03:02:12 by the way, what was the Android independent game developer sub-reddit? Dec 06 03:09:16 I like this rule: https://www.reddit.com/r/IAmA/comments/2f0e46/i_am_an_independent_games_and_app_developer_ama/ck4vdmv "I have a rule about iAPS in games. Is the game still fun if you had unlimited real-world cash to spend on it? If the answer is no, then it's not a good use of iAPs." Dec 06 03:09:29 seems like a good barometer Dec 06 03:22:51 Man, /r/cringe looks so bad now. Dec 06 03:23:15 I use http://www.reddit.com/r/cringe+null. I think that's the quickest way of disabling subreddit styles on the fly. Dec 06 03:43:32 hi guys, how to convert .zip file to .tar.md5 to be flash via ODIN? Dec 06 03:45:16 anyone? Dec 06 03:51:54 Hulio: wrong channel Dec 06 03:55:37 ,zip to .tar.md5 wat ? Dec 06 03:56:36 g00s, sup Dec 06 03:56:46 i have a zip file which i download Dec 06 03:57:01 if i flash thru recovery i think it should be fine Dec 06 03:57:03 no sup for you Hulio Dec 06 03:57:07 read topic Dec 06 03:57:22 but currently i have root access with stock Dec 06 03:57:41 and also stock recovery Dec 06 03:58:01 i have found a rom in zip file which is also stock but they remove the knox out Dec 06 03:58:07 no recovery in that zip Dec 06 03:58:17 i want to somehow be able to flash via ODIN? Dec 06 04:01:18 wrong channel Dec 06 04:03:09 why isn't there a proper rom channel on freenode ? Dec 06 04:03:19 make one Dec 06 04:03:26 not interested Dec 06 04:03:32 not yet anyway Dec 06 04:03:34 there's your answer then Dec 06 04:03:46 but a lot of people are Dec 06 04:03:55 like xda-developers should Dec 06 04:04:31 6 people in #xda-developers Dec 06 04:06:58 bankai_au for your next camping trip http://www.gizmag.com/tentsile-convertible-roofed-multiple-floor-tree-tent-vista/35069/ Dec 06 04:07:06 dogs get upper levels Dec 06 04:07:18 btw i thought that was crazy Dec 06 04:07:49 not sure if really good or really weird l Dec 06 04:07:49 but if all 3 trees collapse maybe you'll get lucky as they fall on each other Dec 06 04:11:01 i've got IJ14 up, how do i check this plugin version for ya Dec 06 04:11:32 bankai_au the google gradle plugin. you type it into build.gradle :D Dec 06 04:12:21 in your root build.gradle file, what is the dependency there ? Dec 06 04:13:17 i have classpath 'com.android.tools.build:gradle:1.0.+' Dec 06 04:15:24 oh, ... umm ... something very old it seems Dec 06 04:15:45 0.12.2 (i think i started this project a while ago) Dec 06 04:16:55 i wonder if you can use 1.0.+ Dec 06 04:17:16 give me 5 and i'll tell ya Dec 06 04:17:27 for science :) Dec 06 04:17:57 if it works, meh maybe i'll use regular idea too. i'm not clear on the differences, i just want to use the latest gradle plugin Dec 06 04:18:33 14 release has some really nice features Dec 06 04:24:01 bah have to update gradle now >_< Dec 06 04:28:57 fuck me, this is why i don't update things. "You need to update to Gradle version 2.1" ... i do then it tells me i need to update to 2.2 Dec 06 04:29:13 it might not be compatible Dec 06 04:30:27 the gradle-plugin is the most essential piece to me, i always want the newest one. so i use AS. if the editor has some fewer features because its behind i don't mind. unless you can use the newest gradle-plugin with intellij. Dec 06 04:30:46 why do you care so much about the latest version? Dec 06 04:31:00 because they are always fixing bugs Dec 06 04:31:16 i guess i never see the problems, so it doesn't mean much to me :/ Dec 06 04:31:22 its the weakest link in the chain, basically Dec 06 04:32:27 I always use the latest version of the gradle plugin Dec 06 04:32:57 works good, but really, haven't seen a difference in bugs in it since like 0.8 Dec 06 04:33:04 mostly stupid api changes Dec 06 04:33:27 pfn are you able to use the latest goofle-android gradle plugin with CE ? Dec 06 04:33:32 heh, goofle Dec 06 04:33:40 I don't use gradle Dec 06 04:34:20 I use com.android.tools.build:builder Dec 06 04:34:37 which is effectively the gradle plugin Dec 06 04:35:51 bankai_au i hope you get stuff working again XD Dec 06 04:39:17 time to learn Swift! Dec 06 04:39:23 ack swift is shit Dec 06 04:39:36 lol wtf is this http://stackoverflow.com/questions/24725416/xcode-6-refactor-can-only-refactor-c-and-objective-c-code Dec 06 04:42:29 hey Afzal i was watching a presentation about rx yesterday, that problem you were having came to bind ... with all those messages Dec 06 04:42:43 ben talked about temporal operators, but then went into rx pull Dec 06 04:42:57 (back pressure). you could probably use it too :) Dec 06 04:43:16 interesting Dec 06 04:43:26 rx pull and back pressure? Dec 06 04:43:31 https://www.parleys.com/play/543f8d5be4b06e1184ae4106/about Dec 06 04:43:57 g00s, thanks! watching now Dec 06 04:44:55 Afzal the interesting srtuff starts at 29:00 about - but i'd start from the beginning Dec 06 04:45:29 g00s, yeah I'm watching from the start. This will probably help a lot in understanding things Dec 06 04:45:48 looks like 1.0.+ works Dec 06 04:45:53 time to chromecast this! Dec 06 04:46:01 bankai_au orly Dec 06 04:46:45 Afzal temporal operators at 30:18 Dec 06 04:46:54 don't know what they are :p Dec 06 04:47:21 throtte, debounce Dec 06 04:47:34 oooh, that is interesting! Dec 06 04:47:53 very relevant Dec 06 04:48:24 So Future was supposed to be the future of things right, now Observable is better? Dec 06 04:48:58 future is for emitting a single thing, observable is for streams Dec 06 04:49:09 (or single thing) so it covers both Dec 06 04:49:27 Observable covers all scenarios: pull, push, single, stream Dec 06 04:49:30 I see Dec 06 04:49:35 I want to restore a project that i have git commiting for a while but it doesn't have .metadata folder in it. Is that going to be a problem? Dec 06 04:49:44 restore on a new computer. Dec 06 04:49:55 donniezazen from eclipse ? Dec 06 04:50:27 yes eclipse to eclipse Dec 06 04:50:39 nah, its ok Dec 06 04:50:41 g00s: ^^ Dec 06 04:50:46 okay thanks Dec 06 04:51:08 i don't remember the dirs ... i think .classpath, .metadata, and maybe .project .. you can just re-import the project Dec 06 04:54:00 g00s: I don't want to reimport because I think I will lose the git thing. Dec 06 04:55:18 i downloaded sdk standalone Dec 06 04:55:23 which folder do i ad ass path? Dec 06 04:55:26 it will be a few hours before I will be able to restore my backup so I just wanted to pull a project off backup and start working. Otherwise I have the backup for everything. Dec 06 04:55:27 *add as Dec 06 04:55:38 pull a project off git Dec 06 04:57:19 lasserix, the main sdk folder I believe Dec 06 04:57:30 not tools Dec 06 04:57:36 it's different there's no platform-tools Dec 06 04:57:38 just tools Dec 06 04:59:38 lasserix, that means you have to still install the rest of the sdk from the sdk manager Dec 06 04:59:46 ahh Dec 06 05:02:06 haha Dec 06 05:02:06 ig ot downvoted Dec 06 05:02:07 on reddit Dec 06 05:02:13 for my fibo spiral paste Dec 06 05:02:17 fucking idiots Dec 06 05:03:54 what?... Dec 06 05:04:03 fibo spiral paste? Dec 06 05:04:47 for your teeth :) Dec 06 05:06:29 I'm claiming my Nexus 5 warranty!! Dec 06 05:06:53 Pretty sure I'm gonna get charged money once they see that there is damage :( Dec 06 05:07:10 nobody asked me anything about damage though Dec 06 05:09:38 http://postimg.org/image/yo7c0362n/ Dec 06 05:10:00 obv it doesn't fit the spiral but the ratios Dec 06 05:21:53 LOOOL Dec 06 05:22:11 you guys love that feeling when you get a prototype done? Dec 06 05:22:31 yeah almost juicy Dec 06 05:22:31 just finished something today and sent a walkthrough video to a client Dec 06 05:22:34 lol Dec 06 05:22:41 Nice! Dec 06 05:22:41 That feeling when you're not paying attention in a meeting and suddenly everyones looking at you ... Dec 06 05:22:45 haha Dec 06 05:22:46 that Dec 06 05:22:49 is the worst. Dec 06 05:22:58 now watch the client have no idea :p Dec 06 05:23:12 Come up with the answer ? http://img2.wikia.nocookie.net/__cb20121129222629/men-in-black/images/f/f8/Griffin.png Dec 06 05:23:13 they are gonna go try to sell it Dec 06 05:23:14 (That was a close one :P ) Dec 06 05:33:34 g00s, it's hard to think in this observable pattern Dec 06 05:34:13 yeah, i'm not used to it. and a lot of the examples i find are trivial things with numbers Dec 06 05:44:32 yup Dec 06 05:49:27 Afzal or its the opposite, like one of the slides in ben's presentation ... Dec 06 05:49:53 with some monster amount of operators - but since its just a slide, you can't drill down to see the code lurking benaeth Dec 06 05:52:41 hate how some apps for you to use some orientation Dec 06 05:52:49 like i have to use my n7 upside down cause the damn usb wire Dec 06 05:52:52 is on the bottom Dec 06 05:56:32 anyone know is it possible to have "Install" link from desktop install it on my device? Dec 06 05:58:19 ^^ what do you mean? Dec 06 05:58:26 woo someone has an app with Deprecated in google play title Dec 06 05:58:31 lasserix: my app is like that Dec 06 05:58:33 \o/ Dec 06 05:58:34 and g00s, opposite of what? Dec 06 05:58:41 I am downloading a bunch of material themed apps Dec 06 05:58:46 i look for them on my desktop Dec 06 05:58:54 i want to click on my destop to have it auto install on my n7 Dec 06 05:58:58 Afzal opposite of the trivial examples :) Dec 06 05:58:59 just click install Dec 06 05:59:03 in the play store Dec 06 05:59:13 ah yeah, this presentation is a mix Dec 06 05:59:39 oh cool Dec 06 05:59:40 thanks Dec 06 05:59:44 lol Dec 06 06:02:31 all I really understood was that sensor data is hot Dec 06 06:03:00 I don't even know the downsides of handling all of that using rx vs threading like executorService Dec 06 06:03:41 Afzal if you aren't going to compose async operations its probably not worth it Dec 06 06:04:44 Yeah, they only place I use rx in my app right now is to load the humongous cloudant Documents Dec 06 06:05:19 And that's not really worth it because then my ListView is just empty for a while Dec 06 06:06:08 you should make an animation of a cloud peeing into the device Dec 06 06:06:11 Not good enough for something that's cached on disk, that's why I wanna switch to ContentProviders Dec 06 06:06:23 simplecontentprovider and schematic Dec 06 06:06:24 Lmao, it's cached on disk Dec 06 06:06:25 check it Dec 06 06:06:46 It's just the issue that json takes too long to parse at that size Dec 06 06:07:24 whoa Dec 06 06:07:32 i think its a good library to learn , and you can start small. at the edges. then over time build bigger pipelines Dec 06 06:07:56 the first time i used it, all my oberservables were hot. Dec 06 06:08:18 didn't know what i was doing :) Dec 06 06:08:26 Definitely, it's gonna be essential to know in the future for sure Dec 06 06:09:14 lasserix, SimpleContentProvider looks like it will save my life for the most part Dec 06 06:09:49 thanks! Dec 06 06:56:37 is there some place to change default location of sdk in android studio? Dec 06 07:01:21 open a project > Module settings > modify android sdk location Dec 06 07:01:23 it should take affect for all future projects Dec 06 07:03:00 ahh ok thanks Dec 06 07:26:21 why would you want to switch to content providers Dec 06 07:27:20 he is a masochist Dec 06 07:27:51 g00s what would you say the whole point of using rx is? Dec 06 07:28:18 probably a stupid question feel free to ignore Dec 06 07:28:20 composing asynchronous streams of data Dec 06 07:28:58 lasserix and i'm not an expert on rx :) Dec 06 07:53:34 onClientMetadataUpdate not called on connect, so If I connect not on start of a song, i can't know the song data, what can I do? Dec 06 08:29:02 hello every one Dec 06 08:29:11 I am new to android platform Dec 06 08:29:47 I need some suggestion on where to start if I need to develop android apps (I have knowledge on java) Dec 06 08:30:36 gourabmahapatra_: http://d.android.com Dec 06 08:30:54 you've installed the SDK/IDE and gone through the tutorials? Dec 06 08:31:25 @Leeds: I have installed Android Studio Dec 06 08:31:32 Test Dec 06 08:31:48 Sweet! Material irc client! Dec 06 08:34:15 ? Dec 06 08:38:16 @Darklust: is there any other good sites for training using Android Studio? Dec 06 08:38:45 gourabmahapatra_: do those Dec 06 08:38:49 then pick some simple projects Dec 06 08:38:53 and do them start to finish Dec 06 08:39:07 the only way you'll learn is to code code code code code code code code code Dec 06 08:41:38 No RCC entry present to update, but there is one Dec 06 08:41:39 why? Dec 06 08:41:43 @lasserix: thanks for the information, I will follow the guide. Hope I can ask any doubts here on this channel related to the android app development? Dec 06 08:42:01 you can do quite a many things Dec 06 08:42:57 also 12-06 10:32:21.773 20967-20967/? V/AudioManager﹕ registerRemoteController: size of Media player list: 0 Dec 06 08:46:16 if i am loading a file, and have an activity to load this file, if the file loads correctly int his activity the user would click CONFIRM or something, is this an appropiate use for the FAB? Dec 06 08:56:33 Hi all Dec 06 08:56:37 I have an unpublished leaderboard, my g+ account is setup as a tester and when my app posts a score using Games.Leaderboards.submitScoreImmediate, the result is success (0), yet I can't see any scores updating anywhere Dec 06 08:56:52 I've waited 24 hours, thinking that maybe there's some delay Dec 06 08:57:06 Is there something obvious I'm missing? Dec 06 08:57:23 you forgot to blow the right person Dec 06 08:58:22 Yup, seems that way Dec 06 08:58:52 is it cause it is unpublished? Dec 06 08:59:19 Leaderboard is published now Dec 06 08:59:53 did you create it in the developer console? Dec 06 09:00:14 Yup play.google.com/apps/publish Dec 06 09:00:20 That's the dev console, right? Dec 06 09:00:56 yea Dec 06 09:01:15 you did all the steps for registering with google play right? Dec 06 09:01:34 Is there an url I can double-check? Dec 06 09:01:37 what i would recomend and although it sucks is go through this guide http://code.tutsplus.com/tutorials/google-play-game-services-leaderboards--cms-20700 Dec 06 09:01:43 make a new dummy app, Dec 06 09:01:53 ok thanks, I'll check that out Dec 06 09:01:57 submit a score verify it works then cross reference it with your game till you find the bug Dec 06 09:02:15 Cheers lasserix Dec 06 09:02:31 i know it kinda sucks but that'd be the best way to figure out whats up Dec 06 09:02:37 just make a "hello world" to publish Dec 06 09:02:45 then cross ref with your game code and see whats missing Dec 06 09:22:18 Is there a way to programmatically tint or is that supported by the compat lib?> Dec 06 09:30:39 WTF why doesn't hte material icon pack include the damn circle with check arrow in it Dec 06 09:30:40 wtf Dec 06 09:35:57 ahh found it in a differnet pack Dec 06 09:36:00 http://www.flaticon.com/packs/material-design Dec 06 09:54:20 which is the best IDE for developing android applications? Dec 06 09:56:01 and will the updating/installing SDK to latest version be an issue for development? Dec 06 10:00:49 intellij Dec 06 10:00:52 or android studio Dec 06 10:00:59 android studio is a specialized form of intellij Dec 06 10:01:12 unless you like command line, then use editor of choice Dec 06 10:34:29 fucking android studio Dec 06 10:38:55 hello everyone! Dec 06 10:39:40 fucking Dec 06 10:39:42 Hi! Dec 06 10:39:46 fucking fuck fuck fuck fucking android Dec 06 10:40:08 where is sdk directory set besides project settings? Dec 06 10:40:46 How can I make my environment (eclipse + adt) recognize my updated API?? Dec 06 10:41:45 what sets the local.properties in android studio> Dec 06 11:05:06 How can I make my environment (eclipse + adt) recognize my updated API?? Dec 06 11:18:08 I hate you MediaSessionManager, RemoteController worked ~~ on 4.4 and now I need to implement it for 5.0 since RemoteController behave strange on 5.0 Dec 06 11:24:43 @lasserix: I have android studio v1.0 RC4, and I am facing issues with some classes like 'R', whenever I use the statement "R.id.action_settings", then I am getting an error like : cannot resolve the symbol R. How to solve this issue? Dec 06 11:24:44 what does Type 35sp Leading 36 pt mean? Dec 06 11:25:14 wait, AS finally reached 1.0? Dec 06 11:26:56 I just updated after installation, now it shows me version 1.0 RC4 Dec 06 11:27:34 nice, does it support the NDK now? Dec 06 11:29:18 @DLSteve: how to check if there is support for NDK? I am a new bee to this android platform... :) Dec 06 11:31:40 gourabmahapatra_, the website still says "coming soon" so I don't thik it does. Dec 06 11:33:15 Hi everybody Dec 06 11:34:32 @DLSteve: It's showing on my android studio about us page itself: Android Studio 1.0 RC4 / Build #Al-135.1626825, built on dec 4 2014 Dec 06 11:35:44 gourabmahapatra_, yah that would be the latest but as of the last beta there was no NDK support. Not something you "just add" in an RC release. Dec 06 11:36:41 ok, but is there any option in preferences, where I can check and tell you if NDK is supported. BTW, what is NDK? Dec 06 11:37:51 id try a `gradle clean` if you are getting errors like cant resolve R Dec 06 11:38:58 @aaearon: ok, can you tell me how can I do a gradle clean? Dec 06 11:40:14 DLSteve, no., Dec 06 11:40:20 DLSteve, Gradle can compile NDK projects Dec 06 11:40:30 but IDEA/AS have no C or C++ support Dec 06 11:40:39 or GDB integration Dec 06 11:41:01 what is the height of the expanded toolbar/actionbar? Dec 06 11:43:10 gourabmahapatra_ in AS: Build -> Clean Project Dec 06 11:45:04 @aaearon: it's giving me an error: app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/21.0.2/res/drawable-xhdpi/abc_ab_share_pack_holo_light.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited Dec 06 11:45:24 not familiar with taht error. id see if stackoverflow has something Dec 06 11:46:03 some more errors like: /app/build/intermediates/res/debug/menu/forecastfragment.xml:5: error: Error parsing XML: not well-formed (invalid token) Dec 06 11:46:51 Execution failed for task ':app:processDebugResources' Dec 06 11:55:15 You can ignore the appcompat warnings Dec 06 11:58:04 @SimonVT: ok, I can ignore the app compat warnings, but what to do with the second error like: Error parsing XML Dec 06 12:01:15 Fix your xml Dec 06 12:12:37 ok, done !! Dec 06 12:13:15 If I want to share some code here on irc, how can I do that? anyone knows this Dec 06 12:14:08 Can I have a field of a class that added on API V21, but it would be run on API V19 (I'll never touch the field on this version)? Dec 06 12:14:28 gourabmahapatra_: Gist... Dec 06 12:15:05 [ gist.github.com ] Dec 06 12:16:24 @flan3002: thanks man. Solved the trouble..
@flan3002: thanks man, solved the trouble Dec 06 12:19:17 @SimonVT: can you please check, if my xml file is correct or not, but still I am getting errors : unable to parse xml file... link is: "https://gist.github.com/anonymous/8b7bcefec9632899d668" Dec 06 12:20:20 gourabmahapatra_: You're missing a > on line 4 Dec 06 12:21:12 but, I need to create a list of items under the menu feature... Dec 06 12:21:55 @SimonVT: thanks for your help, I forgot to put the bracket.... Dec 06 12:39:51 whats this csc buisness and how does it affect me Dec 06 12:57:33 Consumer Software Customization ? Dec 06 12:59:06 from what i can see it doesnt seem to have much to do with regular android programming Dec 06 13:07:40 flyingbuddha is pretty good but he got served by Neguin badly ;) Dec 06 13:08:57 njcomsec: apparently it does Dec 06 13:09:13 in fact it has secret features: http://www.droidviews.com/how-to-enable-hidden-csc-features-on-samsung-galaxy-devices-with-root-access/ Dec 06 13:10:05 How to Enable Hidden CSC Features on Samsung Galaxy Devices with Root Access Dec 06 13:10:26 in my opinion that does not affect regular android programming. but sure if you want to do that Dec 06 13:12:17 even if everyone ith a galaxy phone rooted it... still not sure i would spend time working on features only one phone could use, even if it was the most popular model Dec 06 13:12:34 that's just my view though Dec 06 13:13:30 njcomsec: is there a way you can check if it's rooted and then do conditional code Dec 06 13:14:07 i would guess yes... but i dont know how Dec 06 13:14:18 Hey dev comrades, what's up? :) Dec 06 13:14:48 Hi Dec 06 13:31:46 njcomsec: yep. fully agreed Dec 06 13:32:34 is there a way to log an user to his google account in a webview? I've an auth token to my app and I can log him in to my service but he's not logged to google.com, so he cannot share a content without entering his credentials Dec 06 13:32:49 there must be a way but I'm not sure which one Dec 06 13:36:42 slmb: www.google.com Dec 06 13:36:45 slmb take a look at this http://stackoverflow.com/questions/11215874/register-login-user-using-their-google-account Dec 06 13:37:41 hm maybe I didn't explain well, I'm using the play services api and I do log my user in to my app Dec 06 13:37:59 but I would like him to be logged in directly to google.com Dec 06 13:38:45 Ok I'll try to research that Dec 06 13:38:51 I bet the answer is still on google.com though but I'm not sure where to look exactly Dec 06 13:39:40 The answers got to be in the Google api somewhere. Dec 06 13:40:38 yup but there are a lot of api, it's a bit bushy Dec 06 13:41:17 Have you seen this done before? Dec 06 13:41:31 No Dec 06 13:42:05 But the use case is simple, if the user wants to share a content in a webview and he does not have the Google Plus app installed, this must me done through plus.google.com, hence he must be logged in Dec 06 13:42:09 A new problem to solve hmm Dec 06 13:42:41 lets procrastinate! Dec 06 13:42:55 and it would be silly to ask him to enter his credentials Dec 06 13:44:25 Ashiren: that is exactly what I’m doing, feeling so guilty Dec 06 13:44:39 Leave this with me. Dec 06 14:03:06 How can I avoid the white screen at application startup ? Dec 06 14:04:46 I checked it with an app doing nothing in its onCreate, it just has an xml layout of some TextViews and it first gives a white screen for a bit. Dec 06 14:04:52 Its like it will simply always do that ? Dec 06 14:05:14 Its been irritating me in my other apps and finally I have decided to have a look at what the reason for that is... Dec 06 14:10:10 does it do that with other apps? Dec 06 14:13:15 Unknown0BC: check the parent background ? Dec 06 14:21:17 When creating a new Android app, a blank activity, only setting the background to black I get an initial white screen for a couple of seconds. Dec 06 14:21:22 In all my apps. Dec 06 14:21:44 Always this startup delay... Dec 06 14:22:08 what phone? Dec 06 14:22:24 On the emulator and a phone. Dec 06 14:22:40 I notice the same in one of my apps that has a black background Dec 06 14:22:51 but if you look at Fitbit app, the same happens Dec 06 14:23:11 Flipboard, dropbox.. Dec 06 14:23:17 Google analytics app Dec 06 14:23:21 all have delay before starting up Dec 06 14:23:33 Inbox, Gmail Dec 06 14:23:42 Yeah. Dec 06 14:23:53 Hello white screen. Dec 06 14:24:01 Looks like we must live with you. Dec 06 14:24:10 no..you can live without me Dec 06 14:24:24 hehe Dec 06 14:24:25 oh Dec 06 14:24:27 you're talking to it Dec 06 14:24:29 lel Dec 06 14:24:33 let's look that up Dec 06 14:24:33 ;) Dec 06 14:25:58 I have a fully functional app here with little amount of work at the beginning, it doesn't do this Dec 06 14:26:09 hello hello hello Dec 06 14:26:18 hello hello hello Dec 06 14:26:29 for the new material design, what's the range or whats the suggested height of the actionbar as expanded toolabr? Dec 06 14:26:58 they use this fucking 3:2 aspect ratio for the picture but that's kinda bs since it means you'd have to gen a special custom viewgroup or whatever that sizes based on width of the screen instead of just using xml Dec 06 14:27:14 unless they add aspect ratio to layout_width height -- ahh! that would be fucking cool. Dec 06 14:27:32 http://www.google.com/design/spec/layout/metrics-keylines.html#metrics-keylines-keylines-spacing Dec 06 14:27:35 can anyone figure it out? Dec 06 14:27:48 Unknown0BC: I don't know what white screen you guys are talking about Dec 06 14:27:55 I never see that Dec 06 14:28:04 like if you scroll down to the three screen shots with My Files Dec 06 14:28:27 2 + 3 = action bar + context/title bar = 56 + 72 = 128 Dec 06 14:28:33 do you never see a quick white screen at startup on any emulator or device with any application shmooz ? Dec 06 14:28:35 Unknown0BC, http://cyrilmottier.com/2013/01/23/android-app-launching-made-gorgeous/ Dec 06 14:28:41 not my apps Dec 06 14:28:42 yea he does Dec 06 14:28:49 I see a black screen ;) Dec 06 14:28:51 just thinks it's normal Dec 06 14:28:59 haha yes, example above, shmooz Dec 06 14:29:02 let's resolve this today! Dec 06 14:29:13 @lasserix: hi, I have a small query, in Android Studio : where can I find R.java file? Dec 06 14:29:25 what the fuck does that mean? Dec 06 14:29:35 for me a flashing white screen would hurt my eyes and brain Dec 06 14:29:40 small query < - > R.java? what the fuck are you talking about? Dec 06 14:29:58 shmooz i believe the idea is that you're supposed to make loading not not smooth Dec 06 14:30:01 it doesn't flash Dec 06 14:30:11 it just appears, then the actual stuff of your app show Dec 06 14:30:13 ie you want a continue function of loading, no cusps/gaps/rough transisitions Dec 06 14:30:21 Odaym, Dec 06 14:30:25 the thread above explains it really, please see Dec 06 14:30:29 the post, not thread Dec 06 14:30:30 ie, one way you could do this is grab a screenshot of your UI then just paint the screenshot till its loaded Dec 06 14:30:31 that looks like a good link. Dec 06 14:30:49 one suggestion was to put translucent theme on your launcher activity Dec 06 14:30:54 gourabmahapatra_: by query you mean your question? Dec 06 14:30:55 http://stackoverflow.com/questions/20546703/how-to-fix-white-screen-on-app-start-up Dec 06 14:30:56 2nd answer Dec 06 14:31:02 gourabmahapatra_: what do you need R for? if you tell me i'll tell you Dec 06 14:31:03 no I mean fist answer Dec 06 14:31:10 @lasserix: yes Dec 06 14:31:14 gourabmahapatra_: do you understand what R.java is? Dec 06 14:31:33 please tell me why you are investigating it Dec 06 14:32:56 lasserix: what if your ui state is saved in preferences and it will be different on every launch ? I guess you save the screenshot , hmm that's a good sneaky cheating little idea Dec 06 14:33:11 like I am following the developer.android.com/tutorials guide and tried to create a sample project.But, in the project under app/java/com.example.myfirstapp/ there is a java file called as MainActivity.java Dec 06 14:33:53 in my app the ui state is saved, everything to the lists categories and modes and the scroll positions where the user left off Dec 06 14:34:05 * Unknown0BC smiles at the screenshot idea. Dec 06 14:34:41 nI wouldn't do that Dec 06 14:34:48 gourabmahapatra_: go on Dec 06 14:34:57 just understand what the problem is before trying to come up with suggestions for fixing it Dec 06 14:35:01 Unknown0BC: i believe that's what apple does Dec 06 14:35:07 there is a predefined MainActivity class already created and there some error is showing up like "R" is highlighting in red everywhere
 Dec 06 14:35:10 this is something that Android does by default, it's called the preview window Dec 06 14:35:41 gourabmahapatra_: so that will happen if something in your XML files is incorrect, like you mispelled something--did you alter any of the files in res/layout ? Dec 06 14:36:01 @lasserix: I tried to search where this R.java file is, but was unable to find it Dec 06 14:36:50 gourabmahapatra_: you don't really care about the R.java file--its automatically generated and it contains a set of numbers that link the xml defined layouts/resources/etc to the code. so for instance, in your xml layout you'll have a button with android:id="@+id/my_button" - the ide will generate a number that corresponds to id/mybutton that the code will be able to reference Dec 06 14:37:21 in other words, modifying the R.java file won't help since it is automatically generated and changes anytime you modify your xml file and code Dec 06 14:37:31 gourabmahapatra_: don't manually import R even if the editor tells you as one of it's auto fixes! Dec 06 14:37:36 gourabmahapatra_ this is regarding have you tried pressing alt+enter or manually adding “import com.example.myfirstapp.R;” in the main activity? :) Dec 06 14:38:32 @lasserix: yes, I modified the layout xml file to create a custom layout with adding a text box and a button to it, after doing it I tried to run the app... Dec 06 14:38:33 ahh ha! that's funny android studio doesn't even show the r.java folder Dec 06 14:38:46 gourabmahapatra_: copy the entire xml file you made and post it in Dec 06 14:38:52 yes, I got confused Dec 06 14:38:56 http://pastebin.com/ Dec 06 14:39:07 you mean to say, the layout xml file? Dec 06 14:39:09 so probably you have a typo or syntax error Dec 06 14:39:10 yeah Dec 06 14:39:20 gourabmahapatra_: definately xml error Dec 06 14:39:34 ok, I am pasting it now Dec 06 14:40:01 gourabmahapatra_: the MainActivity is not predefined, you just used the wizard/new project dialog create one for you Dec 06 14:40:06 you can just as easily create it yourself Dec 06 14:40:13 but anyways lets see this layout file Dec 06 14:41:09 ok, you can just set android:windowBackground="@color/color_used_for_launcher_activity" Dec 06 14:41:22 ok, yeah I created the project and this file came up automatically. anyways, here's the link: "https://gist.github.com/anonymous/5289e3b9c23ffe3b223f" Dec 06 14:41:32 that starting window will have the same color as the window that's going to show up when your app actually starts Dec 06 14:41:39 so gourabmahapatra_the idea of using XML in android project is to make it easier to reuse the java code by having the XML be able to cover all the different cases (tablet, phone, small phone, smartwatch, special tablet window size, etc) while still more or less using the same java code Dec 06 14:41:47 so it will look like it was just loading the stuff inside that window, and not it was loading the whole app Dec 06 14:41:51 fixed it for me Dec 06 14:42:47 @odaym: I will use your idea as well Dec 06 14:42:51 gourabmahapatra_: so in your res/values/strings.xml you have both button_send and edit_message defined? Dec 06 14:43:09 um I wasn't talking to you Dec 06 14:43:11 @lasserix: yes Dec 06 14:43:18 I was talking to Unknown0BC about the issue he raised earlier Dec 06 14:43:37 gourabmahapatra_: okay so goto Build in the menu and select Clean Dec 06 14:43:55 @odaym: ohh, I am really sorry about that. I didn't knew that was not for me... please excuse me Dec 06 14:44:29 @lasserix: ok, Dec 06 14:44:41 gourabmahapatra_: so anytime you get a single mistake in ANY of the xml files you'll get this kind of R unknown error because basically the error in the XML file causes R.java to not be able to be compiled so the xml files can't be linked to your code hence a single mistake will always break it Dec 06 14:45:02 the next thing is post your MainActivity code Dec 06 14:45:12 looks like the XML file is okay Dec 06 14:45:22 @lasserix: ok Dec 06 14:45:27 so we check your MainActivity code, i am guessing maybe you are importing wrong R Dec 06 14:45:34 there is the R of your project and the sdk api R Dec 06 14:45:58 @lasserix: oh, it showed me build successful now Dec 06 14:46:10 the android sdk / api has its own resources (xml files that is stuff in the /res folder) and so it has its own R.java file, sometimes you impor tthe wrong one in your code Dec 06 14:46:13 yeah Dec 06 14:46:23 so post your MainActivity anyways Dec 06 14:46:26 i want to show you something Dec 06 14:46:33 yeah, sure Dec 06 14:46:51 typically if you ever have a R unknown error just clean the project and it will fix it 98% of the time if you have no errors in your xml files Dec 06 14:47:26 https://gist.github.com/anonymous/1735d3d2f4e587d2873a Dec 06 14:49:30 @lasserix: should I import the R file class always whenever I face a R issue in my main activity java file? Dec 06 14:49:49 http://pastebin.com/ccTi1raz Dec 06 14:49:56 no Dec 06 14:49:58 try not too Dec 06 14:50:02 its done automatically Dec 06 14:50:06 i just wanted to point out Dec 06 14:50:10 if you look in that pastebin Dec 06 14:50:35 sometimes you'll get android.R.* to be imported, which will make the compiler look for your layout files or whatever in android.R. so you'll have to delet the import or Dec 06 14:50:50 specify which R you mean where you are using it code (sometimes you legitamtly want to use something from android.R.) Dec 06 14:50:52 anyways Dec 06 14:50:54 that's all Dec 06 14:50:55 good luck Dec 06 14:51:14 who has got the white screen problem? Dec 06 14:53:01 thats definatly a onCreate loading problem, you need to use an async task to do whatever it is that is taking so long to load Dec 06 14:53:06 @lasserix: thanks, understood now. Dec 06 14:53:21 gourabmahapatra_: np good luck Dec 06 14:57:29 hey guys, anyone using MapView in a fragment? I do some map setup in onCreateView and onResume, but it gets ignored whenever fragment is replaced and created again next time. Dec 06 14:58:21 god this floating button shit is such shit Dec 06 14:58:38 bluecup: do the set up in oncreate no oncreateview Dec 06 14:59:38 @lasserix: sorry, to interrupt you again. after I run the application, the emulator starts and I am unable to see the app which I created a layout for.. Dec 06 15:01:12 lasserix: will try, tnx Dec 06 15:02:02 @lasserix: but, in the xml file and selecting the design view, I could see the layout... Dec 06 15:02:49 are you using a custom floating button or a lib? I used that futuresimples FAB library to create a menu, but ended up creating my own since it sucked Dec 06 15:03:04 Will pay a good Eclipse / Java / Android developer to give some advice to a beginner - e.g. setting up Eclipse, getting software to compile, etc. If you’re interested, please PM me. Dec 06 15:08:22 Free advice: Don't use deprecated IDEs. Dec 06 15:08:49 @Mavrik: was that for me? Dec 06 15:09:07 nop. Dec 06 15:09:22 ok, np Dec 06 15:09:22 I believe it was at mikewintermute, I too dropped him that line in the PM just a minute ago :) Dec 06 15:10:11 ok Dec 06 15:10:38 what are deprecated IDEs? Dec 06 15:10:39 Can’t believe people still go for eclipse, it’s like you’re going back to your abusive ex-IDE hoping he changed, but he still beats you up and crashes on the first day Dec 06 15:10:53 bq: vim and emacs /jk Dec 06 15:11:59 bluecup: i use vim once a while on remote server Dec 06 15:12:51 and i believe a lot of people are using vim and emacs only. Dec 06 15:12:51 i use it mostly to do some fast changes when I don’t want to open an IDE or search for something in finder Dec 06 15:13:10 bq (it was a joke, hence the /jk) :D Dec 06 15:14:58 gourabmahapatra_: you need to let the emulator load Dec 06 15:15:00 and i also use eclipse Dec 06 15:15:15 gourabmahapatra_: it usually takes a while and then you have to just let it load, you can also navigate into the system drawer and open it Dec 06 15:15:26 gourabmahapatra_: but if you are serious about app development you need to go buy a phone Dec 06 15:15:48 @lasserix: yes, I build the project again and the emulator opened but, did not see the app Dec 06 15:15:56 onClick of one of the menu items (loaded in onCreateOptions() of the Activity), I need to tamper with an element inside a fragment's onCreateView() Dec 06 15:16:08 the fragment is loaded inside the activity Dec 06 15:16:17 Odaym: why are you using fragments? Dec 06 15:16:26 pictures viewer Dec 06 15:16:28 just use activity and overridePendingTransition(0,0) Dec 06 15:16:39 fuck fragments Dec 06 15:16:44 why.. Dec 06 15:16:49 because they are a POS Dec 06 15:17:28 wut Dec 06 15:18:58 @lasserix: It took a bit of time to come up, I really get confused with this emulator thing sometimes. But, I have good hardware specs for the emulator to run.. No, worries, Maybe I need to buy a phone since I have an android phone running 2.1 eclair version Dec 06 15:19:21 gourabmahapatra_: emu is fine but if you are serious get a real device Dec 06 15:19:34 you in india ? Dec 06 15:19:39 @lasserix: Yes Dec 06 15:20:19 @lasserix: I have a LG GT540 device which used to run on 1.6 donut then I updated it to 2.1 Dec 06 15:20:33 gourabmahapatra_: do you have virgin mobile over there? Dec 06 15:21:18 http://www.bestbuy.com/site/virgin-mobile-kyocera-event-no-contract-cell-phone-black/7209064.p?id=1218835972325&skuId=7209064 Dec 06 15:21:23 you dont need a contract Dec 06 15:21:28 but this phone runs 4.0 Dec 06 15:21:33 and is 25$ in us Dec 06 15:21:40 if you can order it online i guess Dec 06 15:21:43 emulator? only genymotion Dec 06 15:21:46 @lasserix: no. we don't have any locked carriers here, but earlier it was there by which we could use services using a sim card. Nowdays, the services are stopped I guess Dec 06 15:21:58 gourabmahapatra_: you dont need service, just the device Dec 06 15:22:25 @lasserix: yes, for android development Dec 06 15:23:09 or try to get one of the android one phones, I don’t know if they’re expensive in india? Dec 06 15:23:37 and instead of default emulator, as Ashiren said, definitely genymotion Dec 06 15:23:42 I am using volley for network request that require token. what is the correct way to refresh token if 401 header is received in response? So I need to make request for new token and then retry previous request with new token. Dec 06 15:26:02 @lasserix & @bluecup: Yeah, nice to have an android one. It's cheap here in india. I am using this phone, since it is my first mobile device that I ever used Dec 06 15:27:27 gourabmahapatra_: for now use your 2.1 device Dec 06 15:27:37 you'll want something running 4.0 but you can worry about that later Dec 06 15:27:41 @lasserix: yes Dec 06 15:28:54 2.1? what year is it Dec 06 15:30:13 @Ashiren: hard to believe, but that's my first phone and nearly 4 and 1/2 years been using it Dec 06 15:35:04 good for you Dec 06 15:35:16 i still have my 3.5 years old android Dec 06 15:35:25 working as alarm clock now Dec 06 15:35:40 and sometimes home ftp server Dec 06 15:36:07 this is good thing about android after all Dec 06 15:37:00 I have a tablet that I haven’t used in months, and don’t have a clue what to use it for Dec 06 15:37:04 @Ashiren: yes, you need to get your upgraded in order to use all features from google and other apps Dec 06 15:47:08 I heard indian stores refused to carry Android One because of some disagreement Dec 06 15:52:37 gourabmahapatra_: what percentage in india do you guess is still using gingerbread and below ? Dec 06 15:52:45 I guess I could google it Dec 06 15:53:35 @shmooz: yes, android one is available in india Dec 06 15:54:31 Hello Dec 06 15:54:42 Hi there :) Dec 06 15:55:01 Is there a good way to generate GSON (or even better GSON with Retrofit) code based on a Ruby repo? Dec 06 15:56:25 @shmooz: yes, you can see this link here. This says it all.. please check this: "http://pricebaba.com/blog/india-android-consumption-report-1-february-2013" Dec 06 15:56:54 @shmooz: that stats were for 2013 Dec 06 15:58:13 gourabmahapatra_: thanks Dec 06 15:58:56 @shmooz: India is a growing market for smartphone business Dec 06 16:06:57 only saw white people with smartphones in india tho Dec 06 16:12:01 sq: when was that ? Dec 06 16:12:26 about two years ago Dec 06 16:13:58 @sq: all the working class are now owning smartphones atleast Dec 06 16:14:38 not in karnataka :p Dec 06 16:18:58 yeah 4 billion still not connected yet Dec 06 16:19:00 @sq: maybe, i have not seen much in karnataka Dec 06 16:20:07 @lasserix: ha ha ha, there will be a good opportunity to earn some cash though Dec 06 16:37:22 Oh snap, this irc client saves all the messages on a server to retrieve later so you don't have to be logged in Dec 06 16:38:00 sq: maybe about 20 years ago Dec 06 16:38:19 nope Dec 06 16:38:20 Even in Pakistan, everyone has a phone, and i mean everyone Dec 06 16:38:45 don't know about pakistan Dec 06 16:39:18 afzal, even religious fanatics? Dec 06 16:39:40 Oh wait nvm, you're talking about smart phones Dec 06 16:39:50 Sculptor: yup Dec 06 16:40:29 Heck, even the guy that picks up the garbage (there's no garbage company in Karachi) Dec 06 16:40:58 so, they will stone their daughter to preserve the family honor, and use a cell phone to tell everyone about it Dec 06 16:40:59 But not smartphones just to be clear Dec 06 16:41:39 Sculptor: how will they invite everyone to stone their daughter silly Dec 06 16:41:50 right Dec 06 16:42:13 Yeah, technology is not seen as evil Dec 06 16:43:28 You guys should try irccloud btw Dec 06 16:43:38 It's for Android Dec 06 16:51:38 https://play.google.com/store/apps/details?id=com.rovio.angrybirdsseasons&hl=en - Is there anything pressuring app developers to not use lots of storage on device? Dec 06 16:51:46 Other than users not being able to install. Dec 06 16:52:03 SpeedEvil: yup, people on froyo Dec 06 16:52:18 I guess Dec 06 17:07:18 hey guys anyone on Dec 06 17:12:59 yo shmoon wheres the moon shine? Dec 06 17:12:59 I've this piece of question if someone could help - http://stackoverflow.com/q/27334217/1437328 Dec 06 17:13:08 heh Dec 06 17:13:17 moon will shine once i am done learnign android Dec 06 17:14:40 shmoon: my guess it tells the system to filter gcm messages based on your app signature to your app Dec 06 17:14:57 i presume to get a gcm you have to register in your app right? Dec 06 17:15:05 somewhere in the code or whatever Dec 06 17:15:21 you have to register your app to get a registration ID ya Dec 06 17:18:11 i didn't really understand the based on your app signature to your app part tbh Dec 06 17:20:36 When I create an Android Emulator for API 19 it loads just fine, but if I try to create one for any other API the emulator just stays black and never starts. Any ideas? Dec 06 17:20:37 is there any "working" android bundle with emulator so that i can just download one thing open and start coding and testing android code? Dec 06 17:21:08 for windows Dec 06 17:21:54 ovrflw0x: https://developer.android.com/sdk/index.html?hl=i Dec 06 17:22:07 shmoon, gcm sends messages with that permission, duh Dec 06 17:22:21 you can download the sdk for "existing ide" if you don't want eclipse. Dec 06 17:22:47 qkzoo1978, should i download intellij or eclipse? Dec 06 17:23:02 shmoon, although that response seems to indicate otherwise Dec 06 17:23:06 i already downloaded intellij studio but it doesn't have working emulator Dec 06 17:23:23 ovrflw0x Not sure, I am still learning myself, and just got my Aide app finally working in Eclipse. Dec 06 17:25:12 Once I figure out using Eclipse, I think I'll move to Android Studio/intellij (which does have an emulator I think if you download from the link I posted). Dec 06 17:25:28 qkzoo1978, no it doesn't have emulator Dec 06 17:25:37 qkzoo1978, how are you learing android? Dec 06 17:25:41 from book or web? Dec 06 17:25:47 learning* Dec 06 17:25:55 android studio comes with emulator Dec 06 17:26:07 ^ Dec 06 17:26:09 pfn, no i donwloaded that crappy bundle but it doesn't have emulator Dec 06 17:26:22 you need to run sdk manager to download emulator images and avd manager to configure them Dec 06 17:26:23 for windows 7 Dec 06 17:26:32 ovrflw0x, sure it does, you just do it wrong Dec 06 17:26:43 I just said how it's done. Dec 06 17:26:43 pfn, i ran sdk manager but it *does not* list and emulator Dec 06 17:26:44 lol that's the story of my life. Dec 06 17:26:51 any* Dec 06 17:27:05 *images* not emulator Dec 06 17:27:07 sdk manager is for downloading images Dec 06 17:27:13 how hard is that to understand Dec 06 17:27:20 pfn, it doesn't list any images Dec 06 17:27:40 lies Dec 06 17:28:12 it will say "Google System Image" under the API you expand to download Dec 06 17:28:45 Just check the top left most check box for the API you want to download, and it will download all the required things for that API including the system image. Dec 06 17:29:42 Any idea why I can run API 19 in the emulator, but not any other API? Even though I have downloaded the images? Dec 06 17:30:01 The emulator just shows a black screen, but never loads. Dec 06 17:30:30 pfn, where is it http://picpaste.com/sdkandroid-yUXg7fnm.PNG ? Dec 06 17:31:30 pfn, ? Dec 06 17:31:41 still am i lying? Dec 06 17:32:09 qkzoo1978, ? Dec 06 17:32:22 pfn: what sort of messages with that permission ? or how do you send messages with permissions ? Dec 06 17:32:42 I'm just trying to understand, I understand permissions in conjunction with activity or broadcast receivers but this could be somethign completely new to me Dec 06 17:33:22 ovrflw0x are you connected to the internet? Dec 06 17:33:26 nm duh Dec 06 17:33:27 yes Dec 06 17:33:55 Run the "Install 3 packages" and see if the package list updates. Dec 06 17:34:21 are you no0b qkzoo1978 ? Dec 06 17:34:44 I am to Eclipse, I've been deving on Aide (onboard Android dev) Dec 06 17:35:39 wehre did pfn disappear? Dec 06 17:35:42 where* Dec 06 17:36:00 Did you try "Install 3 packages"? Dec 06 17:36:26 it wont' have any effect qkzoo1978 don't suggest n00b things Dec 06 17:37:29 Well, considering the text in your pictures shows right next to "Android SDK Tools" -- "Update Available" you may want to do it. Dec 06 17:48:08 ovrflw0x: http://picpaste.com/2014-12-06-124704_1366x768_scrot-4xOwhXqV.png Dec 06 17:49:43 qkzoo1978, which image do i need to download for windows 7? Dec 06 17:50:20 I thought I was a n00b Dec 06 17:50:41 yes you still are... i downloaded eclipse bundle now Dec 06 17:50:52 eclipse bundle shows images Dec 06 17:51:01 but not intellij beta bundle Dec 06 17:52:22 Just click the top left check box of the API you want to target, and it will download all the required images for that API. Also, download all the "Extras" at the bottom, and make sure you check off the most recent "Android SDK Build Tools" as well. Dec 06 17:57:31 Coming from a .NET background so forgive my terminology mistakes ... I'm working through the Big Nerd Ranch book to get up to speed on android dev and would like to learn a bit more about creating custom controls (widgets, whatever) - is there a specific title anyone can suggest? Dec 06 17:59:25 qkzoo1978, are you learning android from book or web? Dec 06 17:59:56 hey bubbafat you fat guy with long beard Dec 06 18:01:24 ovrflw0x, at this point in my dev, I just learn what I need from tut sites on web describing how to do a specific task. Dec 06 18:01:25 No, I'm not. Dec 06 18:02:10 qkzoo1978, which tut sites did you learn from Dec 06 18:02:36 A good site I've referenced in the past quite a bit though is http://www.vogella.com/tutorials/android.html Dec 06 18:07:36 Ok, so I created an AVD: http://picpaste.com/2014-12-06-130034_1366x768_scrot-yp1ffHiE.png and when it starts, I get http://picpaste.com/2014-12-06-130313_1366x768_scrot-AJ0w4ext.png I have downloaded the images for this API so I don't understand why it won't load. The AVD image I have for API 19 works just fine. Any advice? Dec 06 18:07:40 i learned by going through the official introductoin but i've been coding java for some years before so it was just small specific things to get to know Dec 06 18:09:25 I'd start by disabling using the host GPU to see if that changes the behavior. Dec 06 18:09:55 qkzoo1978 download genymotion, it will save you a lot of pain Dec 06 18:11:28 Thanks, I'll look into these options. Dec 06 18:12:29 Disabling host gpu did the trick, thanks! Dec 06 18:13:14 Hi. One of my apps will be installed as a system app by a manufacturer. Can they also give my application root permissions? Dec 06 18:14:21 I love vudu. Dec 06 18:15:01 qkzoo1978: It is good to be loved by you Dec 06 18:15:14 Well, I love the VUDU service lol Dec 06 18:15:18 wtf vudu is made by vudu? Dec 06 18:15:57 nah it aint me Dec 06 18:17:06 vudu, is making apps for android profitable biz? Dec 06 18:17:19 I've made 10 bucks, lol Dec 06 18:17:27 how qkzoo1978 ? Dec 06 18:17:29 I develop applications for companies Dec 06 18:17:33 that is profitable Dec 06 18:17:40 ^ Dec 06 18:17:46 How? Dec 06 18:17:48 vudu, how did you learn android from books or videos? Dec 06 18:18:09 but trying to earn money from the store is hard Dec 06 18:18:18 yep Dec 06 18:18:30 I learned by developing Dec 06 18:18:37 videos take too much time Dec 06 18:18:43 If I had an advertising budget I could probably really boost downloads, but I don't. Dec 06 18:18:48 reading is better if you could understand Dec 06 18:19:06 vudu, what do you mean by developing? Dec 06 18:19:09 Follow that Vogella Tutorial I linked to ovrflw0x Dec 06 18:19:16 read in a book and then develop? vudu ? Dec 06 18:19:28 I work as freelance developer Dec 06 18:19:32 I think he even walks you through setting up Eclipse, developing a Hello World App, etc. Dec 06 18:19:41 i really like big nerd ranch Dec 06 18:19:42 I am a software engineer. Dec 06 18:19:47 I have a cs degree Dec 06 18:19:55 ^ Dec 06 18:20:09 I.e., he's a P R O F E S S I O N A L. Dec 06 18:20:10 pretend-gineer! Dec 06 18:20:11 vudu, so you make 60k bucks easily in a year? Dec 06 18:20:11 :) Dec 06 18:20:32 I don't live in the u.s. Dec 06 18:20:51 vudu, ok convert what you make at your place in US $ Dec 06 18:20:57 That's a good thing these days Dec 06 18:20:58 60k is all? I make 75k driving a truck. Dec 06 18:21:03 we're killing each other Dec 06 18:21:16 lol you drive a truck? Dec 06 18:21:19 * setuid makes quite a bit more than that, but doesn't "officially" write softwre Dec 06 18:21:19 yep Dec 06 18:21:24 financial services, FTW! Dec 06 18:21:24 converting it to dollars not makes it meaningfull Dec 06 18:21:40 because living conditions and salaries different Dec 06 18:21:44 vudu, how did you make companies hire you Dec 06 18:21:47 I'm a truckgrammer. Dec 06 18:22:00 "make companies hire you"? Dec 06 18:22:05 ovrflw0x A gun. Dec 06 18:22:09 Your skills should sell themselves Dec 06 18:22:10 lol... Dec 06 18:22:12 I developed a lot of applications for software companies Dec 06 18:22:17 I worked as full time Dec 06 18:22:30 now I have connections bring me work Dec 06 18:22:53 vudu, may I ask where you live? Dec 06 18:23:02 vudu, so now you're capable of buying high end porsche suv? Dec 06 18:23:11 Is it worth making apps back compatible to Android 2.3 anymore? Dec 06 18:23:14 they have small companies and they don't have developers Dec 06 18:23:18 Why the heck would he spend his entire salary on a vehicle? Dec 06 18:23:26 * setuid groans Dec 06 18:23:36 qkzoo1978, Cayenne? I find Porshe's sedans better Dec 06 18:23:38 ovrflw0x: not really I wish Dec 06 18:23:45 (aesthetically at least) Dec 06 18:23:50 narekb, say what? Dec 06 18:23:56 sorry worng nick :D Dec 06 18:23:59 lol Dec 06 18:24:11 vudu, so developing android apps won't get one a high end vehicle? that's sad then Dec 06 18:24:17 I don't want to tell where I live Dec 06 18:24:30 lol ovrflw0x, like I said, my app made me 10 bucks Dec 06 18:24:32 taxes are too high Dec 06 18:24:38 does Android run on the Raspberry Pi? Dec 06 18:24:39 VladolfPutler? someone clearly hates Russia Dec 06 18:24:41 60k? Isn’t that like poor man’s money in USA? Dec 06 18:24:44 I could buy a couple loaves of bread with that, Dec 06 18:24:46 In what world, does driving a high-end vehicle relate to being a good software developer? Dec 06 18:25:07 VladolfPutler: there are ome builds for it Dec 06 18:25:07 vudu are taxes 25%? Dec 06 18:25:21 vladolfputler: but it supposedly runs really crappy. Dec 06 18:25:22 60k is more than the average income in the US but it would take two similar incomes to be considered middle class. Dec 06 18:25:34 * setuid pays 52% of his salary to tax :( Dec 06 18:25:36 around 100% on luxury cars Dec 06 18:25:49 52%????? Dec 06 18:25:53 I need to check what channel I am in Dec 06 18:26:00 taxes, us ?! Dec 06 18:26:07 qkzoo1978, yes, in the US Dec 06 18:26:11 vudu, so should i start learning android, so that i'll able to buy expensive cars? Dec 06 18:26:24 Um, I'm only paying like 30% tax, and I'm in the Us. Dec 06 18:26:37 qkzoo1978, I make considerably more than ou Dec 06 18:26:40 s/ou/you/ Dec 06 18:26:51 Well, I make 75-80 driving a truck. Dec 06 18:26:54 I'm in the lower-end of 6 figures Dec 06 18:26:57 if you live in the u.s you could buy in some time I guess Dec 06 18:27:06 setuid ok, 6 figures. Dec 06 18:27:17 You're a couple tax brackets above me. Dec 06 18:27:29 but if you think that being a good developer in a short time good luck with that Dec 06 18:27:33 Taxes go way, Way up once you cross $100k, then again when you cross $120k and $150k Dec 06 18:28:01 so 150k, you're only making 75k or so, sad. Dec 06 18:28:05 vudu, are you from Turkey? Dec 06 18:28:12 Gobble gobble. Dec 06 18:28:20 does the PlayStore require ARM processor? Dec 06 18:28:21 qkzoo1978, pretty much, just cut your salary in half Dec 06 18:28:31 Tha'ts why investments and other financial vehicles make snse Dec 06 18:28:34 anyways I will repeat my question Dec 06 18:28:43 buy that high-end Porsche, and you're sinking yourself further Dec 06 18:28:49 vudu, are you from Turkey? that's what your IP shows Dec 06 18:28:54 I'll stick to my minivan. Dec 06 18:28:57 ovrflw0x, VPN? proxy? Dec 06 18:29:09 no Dec 06 18:29:15 ovrflw0x: no Dec 06 18:29:15 mmm... 8% effective income tax, no sales taxes... Dec 06 18:30:06 also, a government controlled by a largely-brutal communist regime, but you can't have everything Dec 06 18:30:15 Leeds what? where is that? Dec 06 18:30:24 Sounds like DPRK Dec 06 18:30:39 they don't sell anything there anyway Dec 06 18:30:43 One of my apps will be installed as a system app by a manufacturer. Can they also give my application root permissions? Dec 06 18:30:45 so indeed no sales tax Dec 06 18:31:01 Please if anyone knows let me know Dec 06 18:31:19 vudu, they can, if the carrier permits it Dec 06 18:31:21 Leeds if you go to north korea, they have no taxes at all ! Dec 06 18:31:24 But don't rely on having root Dec 06 18:31:38 g00s, and no income at all! Dec 06 18:31:43 g00s, because they have no cinome? Dec 06 18:31:47 and no sales Dec 06 18:31:48 not North Korea, no Dec 06 18:31:56 Leeds, which is it then? Dec 06 18:31:58 is developing Android Apps profitable? Dec 06 18:31:59 also also, I have gigabit fibre into my living room Dec 06 18:32:05 France! Dec 06 18:32:10 Leeds sneakernet can be gigabit too Dec 06 18:32:14 setuid: why shouldn't i rely Dec 06 18:32:20 g00s: yes, but it's not fibre :P Dec 06 18:32:32 setuid, France taxes more than 8% you can bet Dec 06 18:32:33 Facebook went back to burning backups on DVD and Blu-Ray disks, because it was faster than transferring the data across their LAN Dec 06 18:32:40 ovrflw0x: it can be - if you get someone to pay you to write them... selling them yourself is largely a mug's game Dec 06 18:33:16 Leeds Romania! Dec 06 18:33:42 no, Leeds Yorkshire! Dec 06 18:33:53 but does the Play Store run on x86? Dec 06 18:34:05 Leeds seeds! Dec 06 18:34:21 VladolfPutler: you mean the app? of course Dec 06 18:34:39 VladolfPutler: Android apps run on android. doh. Dec 06 18:34:55 bluecup, Skype does require ARM as far as I remember Dec 06 18:36:02 setuid: where can I find more information on this can you show me? Dec 06 18:43:47 VladolfPutler, Yes, I have Android running in a VM here, on ESXi, and it has Play Store Dec 06 18:43:52 so it does run on x86 Dec 06 18:44:21 Is it worth making apps back compatible to android 2.3 anymore? Dec 06 18:44:40 qkzoo1978: it depends Dec 06 18:44:53 look at the dashboard Dec 06 18:45:01 then decide if that % is worth your time Dec 06 18:45:01 if I were developing my own app I wouldn't support Dec 06 18:45:02 also your target audience Dec 06 18:45:11 i make jellybean my minimum Dec 06 18:45:16 Target audience = truck drivers. Dec 06 18:45:24 Mostly US Dec 06 18:45:37 jelly bean is for truck drivers? Dec 06 18:45:43 lol Dec 06 18:45:46 * narekb is on Huawei and still can't upgrade Dec 06 18:45:48 damn you Huawei Dec 06 18:46:10 I just got an S4 (Straighttalk) that only has JellyBean on it. Dec 06 18:46:11 IMO it is purely 5 based, you cant try and guess a certain type of people will use a certain version of android Dec 06 18:46:17 purely % based*** Dec 06 18:46:27 i dont believe there is any correlation Dec 06 18:46:51 I'll take a peek at the dashboard. Dec 06 18:46:59 njcomsec: sure you can. 2.3 is almost exclusively low-end / cheap phones. if your target is lower income, they're more likely to have 2.3 than higher-end. Dec 06 18:47:16 you can buy a phone with jellybean for £20 Dec 06 18:47:31 Where on the dashboard do I look for percentages? Dec 06 18:47:36 sure, but a lot of the world is working off phones a few years old or more Dec 06 18:48:05 in the USA: 4.0+ dominates, but I still see fairly large %s on 2.3 when you start getting into younger markets (e.g. 13-18) Dec 06 18:48:21 i find that hard to believe Dec 06 18:48:29 13 year olds drive trucks !?! Dec 06 18:48:33 it doesn't require your belief :) Dec 06 18:48:35 i knew it Dec 06 18:48:35 younger genrations usually have the more expensive phones Dec 06 18:49:05 generations, sure, but parents buy their kids cheap phones because they break. Dec 06 18:49:35 nonsense Dec 06 18:49:53 Ok, "TOP 10 ANDROID VERSIONS FOR TRANSPORTATION" Android 4.4 36.14% Android 2.3.3 - 2.3.7 10.53% Dec 06 18:50:12 10.53% relevent? thats a lot of people. Dec 06 18:50:27 higher than I'd have guessed. Dec 06 18:50:27 The funny thing is Android 3.2 is only at .23% Dec 06 18:50:36 yeah, 3 is basically dead Dec 06 18:50:40 every month that number will decline Dec 06 18:51:17 You think 10.14j% is worth targetting? I suppose it is significant. Dec 06 18:51:37 tbh, I'd say only if it's not a lot of extra work Dec 06 18:52:04 2.3.3 isn't too hard for most cases. depends on your app though. Dec 06 18:52:18 It's a ton of extra work. I'd have to go back and redo all my copy paste stuff, and numerous other APIs I didn't consider for 2.3 Dec 06 18:53:07 ...speaking of which, how do I retarget the app to force compile errors (to see what I missed) if I'm already targetting api 21? Dec 06 18:53:19 if it is probably not worth it now.... think about next year, the year after, and in 3 years Dec 06 18:53:30 qkzoo1978 only lint can tell you that Dec 06 18:53:35 ^ hmm food for thoguht. Dec 06 18:53:38 lint Dec 06 18:53:58 I'm actually not even sure what lint is. Dec 06 18:54:10 using AS ? Dec 06 18:54:29 style / common bugs / API use checker. Dec 06 18:54:35 lint is incorporated in SDK Dec 06 18:54:51 AS and Eclipse have it built in (with varying degrees of success), or you can run it from the command line, it's part of the tools included in the sdk. Dec 06 18:55:05 I'm playing with Eclipse right now. I just got my app running in it after developing 99% of my app onboard using Aide. Dec 06 18:55:32 Aide? t francais? lol Dec 06 18:55:45 lol Android Aide, I'll find a link. Dec 06 18:55:49 Aide, is that the ide that actually runs on android Dec 06 18:55:56 ah ok Dec 06 18:56:02 qkzoo1978: for the most part if you just change the min SDK version, you'll get warnings automatically. Dec 06 18:56:02 http://www.android-ide.com/ Dec 06 18:56:30 Groxx, well, i did do that. I'll check the warnings again, perhaps I missed a few. Dec 06 18:56:51 qkzoo1978: Eclipse has a bad habit of not showing all of them to me though. make sure you clean / refresh / strongly consider just running the command-line version (I usually use "lint —html lint.html" since it's easier to read the output in a browser) Dec 06 18:56:57 gkzoo, did you code it all using your touchscreen?) Dec 06 18:57:24 also i would recommend android studio instead of eclipse, but thats just my personal oinion Dec 06 18:57:29 opinion* Dec 06 18:57:36 njcomsec yes, well, also using a bluetooth keyboard. Hackers keyboard is really good for that. Dec 06 18:57:36 not opinion. fact Dec 06 18:57:47 if you use eclipse you might as well install windows 95 while you're at it Dec 06 18:58:03 huh, I haven't seen aide before. impressive-looking. Dec 06 18:58:38 Coming from Aide, though, i need figure out how to load my app in Eclipse first, then AS. Aide spoiled me, and left out a lot of the finer points of Android dev, like grade and "lint" Dec 06 18:58:39 qkzoo1978: Eclipse works fine, and still has better support for a few things. AS is pretty conclusively a better coding experience though. Dec 06 18:58:59 does it generate gradle files? Dec 06 18:59:07 No. Dec 06 18:59:45 It says it supports Eclipse gradle files, but it doesn't generate them. Dec 06 19:00:02 yeah, I don't know how well Eclipse works with Gradle, tbh. that's more Android Studio's area. Dec 06 19:00:43 How would you run an app from the command line? I'd like to try this out. Dec 06 19:01:22 Woo Hoo, my apps sold 11 copies since October! Dec 06 19:01:23 you'll have to clarify that - "run an app" means… build? install and/or launch on a device? Dec 06 19:02:27 quote * or you can run it from the command line, it's part of the tools included in the sdk.* Dec 06 19:02:47 ah, lint. you've installed the SDK tools? Dec 06 19:02:53 Yes Dec 06 19:03:07 linux / OSX / Windows? Dec 06 19:03:11 Linux Dec 06 19:03:19 but it should be the same procedure. Dec 06 19:03:21 does "which lint" give you any results? Dec 06 19:03:36 nope Dec 06 19:04:02 My path might not be right though. Dec 06 19:04:04 it's not part of your PATH then. you probably want to add the sdk/tools/ folder to PATH Dec 06 19:04:29 or if you just want to try it out, it's at (wherever)/android-sdk/tools/lint Dec 06 19:04:39 ./gradlew assembleDebug Dec 06 19:04:40 or Dec 06 19:04:48 ./gradlew installDebug Dec 06 19:05:56 Hello, as anyone updated to Android Studio RC4 here? Dec 06 19:06:13 yep found lint there. Dec 06 19:06:16 Mine is complaining that jniDebugBuild method is missing on GRadle Dec 06 19:06:18 Sambarboz: yep. no problems personally, but only very light use / nothing complex Dec 06 19:06:37 ls Dec 06 19:06:42 wrong window lol Dec 06 19:06:53 qkzoo1978: cool. you know how to run it then, I assume? just run it from the root folder of your app's source code. Dec 06 19:07:11 awesome, I'll fix my path and give it a shot, thanks :) Dec 06 19:07:24 qkzoo1978: btw some of the checks require your app to have been built, since they operate on the compiled results. Dec 06 19:08:42 Sambarboz: you have an up-to-date-enough version of gradle? Dec 06 19:09:04 I dunno about that problem in particular, unfortunately Dec 06 19:09:30 groxx thanks, I'm gunna log out and reset my path to try it out :) Dec 06 19:09:43 1.0.0RC41.0.0-rc4 Dec 06 19:09:44 1.0.0-rc4 Dec 06 19:10:36 I want to have a wearable only application. Can I set an alarm on there to remind me to do something... say... once every 10 minutes? Dec 06 19:12:01 sure Dec 06 19:12:03 Sambarboz: hm. did it work on the previous version of AS, and what was the previous version? could it be that the method name changed? I see "jniDebuggable " as an option, not sure if that's new/old. Dec 06 19:12:58 Groxx dont encourage people to use eclipse ;p Dec 06 19:13:07 Groxx: Worked on previous. I update it regularly. Dec 06 19:13:25 lasserix: ndk? MAT? UI inspection? android studio has none. Dec 06 19:13:32 lint looks like fun Dec 06 19:13:44 jniDebuggable was there already. Dec 06 19:13:53 jniDebugBuild false Dec 06 19:13:54 * Dec 06 19:13:54 has UI inspection but unless you are doing NDK there is no reason to use Dec 06 19:14:02 if you need MAT special use case, not general purpose Dec 06 19:14:22 qkzoo1978: welcome back :) fwiw you can use "source your.profile" to load/reload bash profiles :) Dec 06 19:14:43 Sambarboz: does it work if you just comment out the jniDebugBuild line? Dec 06 19:15:05 Nope. It complains about runProgruad Dec 06 19:15:09 proguard* Dec 06 19:15:21 Groxx, learn something new everyday :0 Dec 06 19:15:22 runProguard is deprecated in favor of minifyEnabled Dec 06 19:15:27 Also, my build variants is gone Dec 06 19:15:39 Sambarboz: runProguard should still work though, I think. Dec 06 19:15:59 Groxx which switches do you recommend using with Lint? Dec 06 19:16:01 Sambarboz: that'll happen if AS can't sync with the gradle files Dec 06 19:16:27 Hm.. I'll comment jniDebugBuild and change proguard to minfyEnabled Dec 06 19:16:57 qkzoo1978: default is pretty good, tbh. give `—html ` a try 'cuz I like it, and because it'll show you all enabled and disabled inspections. Dec 06 19:17:11 also ugh: "- -" is turning into "—" and I don't know how to stop it :( Dec 06 19:17:18 new error Dec 06 19:17:19 Error:(77, 0) Could not find property 'processManifest' on com.android.build.gradle.internal.api.ApplicationVariantImpl_Decorated@590e4b6f. Dec 06 19:18:01 Sambarboz: https://stackoverflow.com/questions/27302965/could-not-find-property-processmanifest-on-com-android-build-gradle-internal-a ? Dec 06 19:18:54 It was only necessary bc I was using Google Maps before Dec 06 19:18:55 Sambarboz: also, what is "keep it up to date"? there have been a few 1.0 rc releases, and if you're on the beta channel it might be the first 1.0 release (which has lots of changes from earlier) Dec 06 19:19:05 I was forced to switch to Mapbox Dec 06 19:19:10 It works now. Dec 06 19:19:13 Just commented it Dec 06 19:19:39 Groxx when I run that it just says "No files to analyze" Dec 06 19:19:52 Groxx: Actually, I don't remember, but I always update when it asks me to do. Dec 06 19:20:05 Btw Dec 06 19:20:07 It works now. Dec 06 19:20:08 Thanks Dec 06 19:20:10 But. Dec 06 19:20:21 What is jniDebugBuild anyway? Dec 06 19:20:32 Build Variants are back Dec 06 19:20:36 qkzoo1978: add a "." at the end, if you have flags you have to tell it which folder to look in Dec 06 19:20:47 ok Dec 06 19:21:38 Sambarboz: not sure. I'd guess it's a flag for debugging JNI (basically: native <-> java method calls), probably just got renamed a while back Dec 06 19:21:54 That worked great Groxx, thanks :) Dec 06 19:24:45 I don't understand onPostExecute. Dec 06 19:24:46 Sambarboz: if you don't write any JNI code, you can probably remove jniDebuggable entirely (it defaults to false), it'll probably just slow down debugging Dec 06 19:25:05 Agamemnus: what's confusing? Dec 06 19:25:43 Groxx: http://pastebin.com/CECrG1CB Dec 06 19:25:48 Lines 8-9 Dec 06 19:26:42 Maybe this is another bug with google's oauth-2.0 Dec 06 19:26:51 When is onPostExecute run? Dec 06 19:27:04 also, why do i need onPostExecute? Dec 06 19:27:38 if it is run after the return, isn't it simpler just to combine the contents into doInBackground? Dec 06 19:27:43 groxx Lint just generated enough warnings and optimization suggestions to keep me busy for another year. Dec 06 19:27:59 Agamemnus: AsyncTask basically runs [main thread onPreExecute, worker thread doInBackground, main thread onPostExecute]. it just simplifies "do something off the main thread" -> "get that data onto the main thread". Dec 06 19:28:06 qkzoo1978: haha Dec 06 19:29:03 Ok. So in this case, since there's only one worker thread, does it make sense to separate onPostExecute and doInBackground? Dec 06 19:29:07 qkzoo1978: it does that. for starters, probably disable hardcoded text, typographic etc, and internationalization. unless you need them. Dec 06 19:29:40 Agamemnus: it does, because onPostExecute runs on the main thread. you can change the UI in onPostExecute, you can't in doInBackground Dec 06 19:30:10 Agamemnus: if you don't need to run on the main thread at all, you can just use doInBackground though, onPostExecute isn't really required Dec 06 19:30:46 Ok. I guess it's another ~!@#$% bug in oauth 2.0 Dec 06 19:31:19 Cooling off period for tokens is gone, and I run this the first time... the token isn't valid because somehow the second one doesn't override the first one. Dec 06 19:31:21 Agamemnus: could be. is it just returning the same token both times or something? Dec 06 19:31:31 No, they are different Dec 06 19:31:33 Groxx Yep, I need to print this thing out. Dec 06 19:31:38 But the second token seems to be invalid. Dec 06 19:31:46 But this is only the first time, when I get permissinos Dec 06 19:31:49 permissions Dec 06 19:32:15 I guess the root of the problem is clearing the token IF it is stale Dec 06 19:32:22 But you can't do that without creating a token first Dec 06 19:32:27 hence, faceplanet Dec 06 19:32:27 Agamemnus: oh, one other thing: you're setting accessToken, but checking lastAccessToken. is that right? Dec 06 19:33:05 oh, actually that if wasn't there in the compiled code, i'm just fiddling with it right now Dec 06 19:33:18 so it gets the token, clears, gets the token again Dec 06 19:33:34 but that creates two "signing in" screens, though only one prompt. Dec 06 19:33:41 And the access token turns out as invalid. Dec 06 19:33:45 I think I know why Dec 06 19:34:06 It's all because of the prompt Dec 06 19:34:21 somehow the orders are getting switched Dec 06 19:34:48 it's a chain of events that led me to this code Dec 06 19:34:54 need to undo it. Dec 06 19:35:05 are you sure you're only running one task at a time? could you be clearing the token after an earlier one has succeeded? Dec 06 19:35:48 yes i am actually... running it 4 times... it's all a mess Dec 06 19:36:09 if I run accessToken = GoogleAuthUtil.getToken(context, accountName, scope); Dec 06 19:36:13 and then I get the prompt Dec 06 19:36:16 and everything is ok Dec 06 19:36:20 And I run accessToken = GoogleAuthUtil.getToken(context, accountName, scope); again Dec 06 19:36:32 (in a new thread and everything).... Dec 06 19:36:40 then it gets an Unknown error Dec 06 19:36:54 and .. well, shit happens Dec 06 19:37:15 heh. it might not be safe to use it from multiple threads? generally the rule is "no, unless explicitly documented that you can" Dec 06 19:37:42 the first thread supposedly finished Dec 06 19:38:57 ok thanks Dec 06 19:40:14 good luck then, not sure what to do :/ I haven't used google's oauth stuff. generally I'd just say be careful with threading first, since that can cause lots of problems that wouldn't otherwise exist. Dec 06 19:40:49 Here's what I changed it to Dec 06 19:40:50 http://pastebin.com/ZhzD5f4L Dec 06 19:41:16 my users must be pretty tired of downloading 18mb updates twice a day :X Dec 06 19:41:39 My game has way too many failure points Dec 06 19:41:47 and it is too hard to debug Dec 06 19:42:32 thats what you get for buying it? Dec 06 19:42:41 it's free Dec 06 19:42:46 oh i mean Dec 06 19:42:49 the codebase Dec 06 19:43:04 I coded it. ._. Dec 06 19:43:34 oh sorry Dec 06 19:43:48 thought you said you werent an android dev Dec 06 19:43:52 Yes Dec 06 19:44:00 I coded it with Javascript and Cordova Dec 06 19:44:14 ohh Dec 06 19:44:15 hehe Dec 06 19:44:16 that's why Dec 06 19:44:23 And these Java homemade plugins Dec 06 19:45:09 still Dec 06 19:45:12 whats the game? Dec 06 19:45:44 The jigsaw game. Dec 06 19:46:10 https://play.google.com/store/apps/details?id=com.flyingsoft.safari.jigsaw.free Dec 06 19:46:40 you have to close out of it the first time and restart Dec 06 19:46:46 for it to work properly Dec 06 19:48:14 wow Dec 06 19:54:57 hi Dec 06 19:55:10 how can I change of Drawer Arrow Drawable? Dec 06 19:55:34 i just realized something Dec 06 19:55:51 "if (lastAccessToken == null)" should be "if (lastAccessToken != null)" Dec 06 19:59:33 I think I need onPostExecute . Dec 06 20:00:02 the worker thread doesn't seem to be able to call the saved javascript function without everything crashing Dec 06 20:03:03 the default state is crashing Dec 06 20:05:38 I'm checking whether the device have External Memory through a function in my app according to this link: http://developer.android.com/guide/topics/data/data-storage.html#filesExternal. I have samsung galaxy s3 with 16GB internal memory and no SD card is installed in device. But still the function is returning true for external storage. Why? Though I have no SD card installed. Dec 06 20:07:16 bardnt: there's a "fake" SD card partition on every Android Dec 06 20:08:07 Groxx how to bypass that and i forgot to mention that my device is rooted. Dec 06 20:09:03 bardnt: depends on your OS version. 4.4 I think was the first where they added getExternalStorageDirs() which can include real SD cards, otherwise prior to that there was no official support for real SD cards. I'm not sure how to best handle those. Dec 06 20:09:52 nope, that was another problem Dec 06 20:09:56 onPostExecute not needed Dec 06 20:09:58 Samsung might have a library for it, otherwise I think most apps just guess at a few common SD card paths, which is problematic Dec 06 20:11:10 Groxx Do you mean that different devices will return different results? Dec 06 20:11:35 bardnt: Perhaps look at /dev and mount/fstab for a physical sd card Dec 06 20:11:47 hmm Dec 06 20:11:59 who upgraded gradle plugin to 1.0 ? Dec 06 20:12:07 something changed in proguard ? Dec 06 20:13:25 bardnt: yep. there are almost a dozen common results I've seen, and no doubt that still misses some. Dec 06 20:13:43 is there any key press to tell AS to collapse "Closures" to look like lambdas? Dec 06 20:13:59 "all" Closures, not just the one my cursor is on Dec 06 20:14:31 g00s: dunno, but let me know what you find. I'd like that too. Dec 06 20:14:34 Darklust what do you mean? Can you ellaborate? Dec 06 20:15:34 g00s think it is a setting Dec 06 20:15:37 mine does it automatically Dec 06 20:15:53 really? mine doesn't. after i type it i have to do cmd-. Dec 06 20:16:08 or cmd+ or cmd- Dec 06 20:17:33 Groxx is there a difference between internal stroage and 16Gb stroage available on my device? I mean is my 16GB internal stroage? Dec 06 20:17:38 bardnt: Like I have one phone where the sd card block device is /dev/vold Dec 06 20:17:53 Everything else is mmcblk0p Dec 06 20:18:52 If you dont have an external storage it's all the same Dec 06 20:19:00 bardnt: this might be informative: http://commonsware.com/blog/2014/04/08/storage-situation-external-storage.html Dec 06 20:19:19 along with the links at the bottom to other blog posts Dec 06 20:21:54 Darklust sorry but i am not getting what you are suggesting Dec 06 20:22:18 You want to detect an external sd card? Dec 06 20:23:08 ok they changed proguard to 5.1 Dec 06 20:30:36 Darklust yes!!!! Dec 06 20:31:08 Groxx thanks for the link. It's really helpful. Dec 06 20:31:37 I'm just suggesting you check the mount output to find something other than mmcblk0p where the sdcard is mounted Dec 06 20:33:50 how can I change the background of Drawer Arrow Drawable? it seems impossible Dec 06 20:35:54 Darklust I think i have got what you are suggesting. I will try it Dec 06 20:40:16 yacek19: it might be, some of those actionbar-specific classes are really non-configurable. but what are you trying to do? Dec 06 20:40:47 Groxx: I am trying to change the background of hamburger button when being pressed Dec 06 20:41:07 I've got this fancy hamburger -> arrow animation Dec 06 20:41:20 but I can't change its backgrund Dec 06 20:42:58 yacek19: hm. is that the project by ChrisRenke? or something else? Dec 06 20:43:23 Groxx: no, this comes from official app compat Dec 06 20:43:40 ah, is it just built into the actionbar / toolbar? Dec 06 20:44:13 yes Dec 06 20:46:18 :/ I'm having trouble finding it in the documentation. oh well. is there a drawable name for the arrow-thing you could use in XML? you might be able to make a LayerList with the arrow on top, and a selector for your pressed state below it. Dec 06 20:46:44 Groxx: I implemented this: http://www.google.com/design/spec/animation/delightful-details.html Dec 06 20:52:01 yacek19: ah, how wonderful. it's a package-scoped class. Dec 06 20:53:40 well, the source is pretty simple. tbh I'd probably suggest just copying it and adding in a pressed state. Dec 06 20:56:59 yacek19: source is here if you're interested in going that route: https://github.com/android/platform_frameworks_support/blob/master/v7/appcompat/src/android/support/v7/app/DrawerArrowDrawable.java Dec 06 20:57:46 Groxx: woo hoo thanks, I was reading ActionBarDrawerToggle which lead to nothing Dec 06 20:58:10 yeah. I keep the android source repo dowloaded for easier searching :| I was having a lot of trouble finding it online. Dec 06 20:58:39 hello all, I am quite familiar with linux, but seem to have some issues following some tutorials for kernel compilation. After downloading the NDK from the website and setting it all up (r10d), I am supposed to use the "arm-linux-androideabi-4.*", correct? I am running linux by the way, and trying to compile the kernel... Dec 06 20:59:28 genex: are you trying to compile an android app, or are you trying to build Android the OS? Dec 06 20:59:28 I can only provice so much information in an IRC message, so ask any questions that might help you help me, haha. Dec 06 20:59:46 Groxx: Hello, I am trying to compile just the kernel. Dec 06 20:59:56 genex: so, the android linux kernel? Dec 06 21:00:02 Groxx: bingo. Dec 06 21:00:22 I think there's a porting IRC channel, that'd probably be a better bet. this is pretty app-oriented (though you might get lucky) Dec 06 21:00:49 The tutorials I was following showed the use of "arm-eabi-*", and I think i will go check that out. Dec 06 21:00:50 interesting if you have an edittext and you want to clear its value you dont do edittet.setText("") you do edittext.getText().clear() Dec 06 21:01:17 Groxx: Also, I am not trying to change the kernel at all. Just build the stock kernel, upload it, make it work, then come and make changes. Dec 06 21:01:32 lasserix: huh. what's the difference? does "" not clear out spannables or something? Dec 06 21:01:34 Groxx: And I will go check that other channel out. THank you! Dec 06 21:01:50 Groxx setText"" fucks with the input connection and causes it to throw some warnigns Dec 06 21:01:52 lasserix: hm that might explain a bug I’m seeing somewhere.. Dec 06 21:02:00 genex: yeah. I've had success building a Nexus 4 image from the source repos, but can't help you much beyond that :) Dec 06 21:02:01 Hello ! Just wanted to know if it's possible to get a theme attribute from the resource id integrer. I found this : http://stackoverflow.com/a/7898253/1354383 but it uses the context and not the resource id. Any ideas ? Dec 06 21:02:17 watch out! Dec 06 21:02:18 W/IInputConnectionWrapper(21214): getTextBeforeCursor on inactive InputConnection Dec 06 21:02:18 W/IInputConnectionWrapper(21214): getSelectedText on inactive InputConnection Dec 06 21:02:19 W/IInputConnectionWrapper(21214): getTextBeforeCursor on inactive InputConnection Dec 06 21:02:19 W/IInputConnectionWrapper(21214): getTextAfterCursor on inactive InputConnection Dec 06 21:02:21 if you see that Dec 06 21:02:23 that's why Dec 06 21:02:28 you are doing mEditText.setText("") Dec 06 21:02:43 you should instead do mEditText.getText().clear() Dec 06 21:02:49 sorry for the dump Dec 06 21:02:59 lasserix: Don't spam Dec 06 21:03:02 I’ll check it tomorrow, since I’m not in the office right now Dec 06 21:03:03 thanks Dec 06 21:03:07 sorry for the dump Dec 06 21:04:27 Groxx: sorry to bother, but do you have any tips for setting the background of this DrawerArrowDrawable when it is pressed Dec 06 21:04:33 Groxx: hehe, Im trying to do this on the S5... Got it a little while back, after convincing myself that "this super popular phone will be the first to have all the ROMs and support for development!" Dec 06 21:04:39 Groxx: then I turned it on. Dec 06 21:04:39 corenting: I think you just need to look further down - context.obtainStyledAttributes is probably what you want. you then use the typed array with e.g. array.getDimension(R.styleable.your_dimension, 0); Dec 06 21:05:05 genex: whups. new users of samsung phones often make that mistake :( Dec 06 21:05:10 I'm afraid it's fatal Dec 06 21:09:05 Damn Samsung. They have like a gazillion of these low-midrange phones that are worse than 99% of chinese phones, especially with touchwiz on them. And the fuckers still dare to sell 2.3 phones. Dec 06 21:09:31 yacek19: I'm mostly guessing, but this might work, or at least provide a starting point: https://gist.github.com/Groxx/3c1b4669b74be290e364 Dec 06 21:10:48 that should draw the toggle on top of your background selector, which will show a state when pressed. it might be easier to change the DrawerArrowToggle to do something when isPressed() though (not sure if that works in drawables though) Dec 06 21:11:19 Groxx: Live and learn, hehe. The S5 was my first smartphone, and Ive been in the linux community since I had a computer, so i figured it would translate easily to android development. Dec 06 21:11:24 Groxx: thanks I didn't saw it, guess it's time to get some sleep... Dec 06 21:11:46 yacek19: otherwise, I've been lazy and used drawables as ImageView src, and then I just draw a background behind it in onDraw before calling super.onDraw. I don't know if you can easily use that with ActionBar though - I really hate ActionBar. Dec 06 21:16:03 I'm playing around with LINT, and am trying to figure out what this error means: The id "mainListView" in layout "main" is missing from the following layout configurations: (present in layout) Dec 06 21:16:28 just warnings Dec 06 21:18:53 qkzoo1978 maybe you set it in some configs, and not others ? Dec 06 21:19:08 i dunno, I'm confused. Dec 06 21:20:13 qkzoo1978: do you have multiple layout folders? also: it's not perfect. it might just be wrong. Dec 06 21:20:33 Nope, only one layout folder. Dec 06 21:20:41 If you play the android flappy bird easter egg in the dark and die 666 times on a Nexus 7, the screen starts to visibly bleed Dec 06 21:21:59 qkzoo1978: dunno then. try cleaning and rebuilding, it's possible that'll fix it Dec 06 21:22:12 darkbasic: that might be your eyes Dec 06 21:22:57 Darklust i think they should put the easter egg devs on the tooling team Dec 06 21:23:26 oh, AS crashed 666 times in the last day ... font turns red Dec 06 21:24:01 Right, there should be some horrible consequences Dec 06 21:25:02 I believe I'm the only person here avidly using AIDE for development, because I like doing everything on my devices Dec 06 21:25:07 Thanks Groxx, still learning here :) Dec 06 21:25:12 Darklust, I use Aide. Dec 06 21:25:14 Fuck AS :O Dec 06 21:25:20 Yay! Dec 06 21:25:26 Darklust: Do you use an external keyboard, at least? Dec 06 21:25:32 Yep and mouse Dec 06 21:25:37 Tablet? Dec 06 21:25:39 Darklust get yourself a Surface Pro, and you can use VS instead of that micky mouse thing :) Dec 06 21:25:44 I use Hackers keyboard quite a bit too Dec 06 21:25:45 Nexus 7 2013 atm Dec 06 21:26:15 i'm sad they discontinued the N7 Dec 06 21:26:27 Me too, I love mine. Dec 06 21:26:36 not really sure what an ecomical dev tablet is anymore Dec 06 21:26:46 Yeah well I was ready to get the nexus 6 until I found out it was a brick Dec 06 21:26:55 That is a big phone. Dec 06 21:27:00 google had to make the decision difficult again - taking samsungs lead or something Dec 06 21:27:07 As long as they don't discontinue the N5, we'll be fine. But I don't want a freaking tablet in my pocket. Dec 06 21:27:11 I'm sticking with my N5 and N7 Dec 06 21:27:24 did the N5 come down in cost at all ? Dec 06 21:27:27 I'd like an N5, but it's camera sucks. Dec 06 21:27:41 i mean, did it come down after they released the n6 ? Dec 06 21:27:45 qkzoo1978: I use adb wifi to test apps on other devices from the tablet Dec 06 21:27:50 qkzoo1978: It's acceptable, for a phone. Dec 06 21:27:58 Who needs AVD? Dec 06 21:28:21 sucky camera. I just got an s4, even my s3 had a better camera. Dec 06 21:28:43 If you got an N5 for the camera you made a poor choice :p Dec 06 21:29:03 To be honest... I'd be fine with a 4 inch phone, no camera and lots of battery life, but still reasonable performance. Dec 06 21:29:13 hey guys, i can't get my actionbar work with NAVIGATION_MODE_TABS ...furthermore im getting an error when setting an OnPageChangeListener on my viewpager on a line with following syntax -> actionBar.setSelectedNavigationItem(position); since i couldnt use support library v4 anymore i had to change on v7...but now im getting this error. which sucks. can anyone help me? (i know that NAVIGATION_MODE_TABS and also setSelectedNavigationI Dec 06 21:29:21 g00s: looks like N5 is still the same price Dec 06 21:29:23 flan3002: Get a palm pilot Dec 06 21:29:28 Ya, most things on a new phone I can let slide, but the camera has to be better than the one I'm currently using, at the least. Dec 06 21:29:33 lol I love palm Dec 06 21:29:40 I wrote Duh Button Launcher. Dec 06 21:29:49 Darklust: Nah, I need my Android. ^^ Dec 06 21:29:50 Darklust: flan3002: yeah, my handspring lasted almost a week on a single charge Dec 06 21:30:08 Well that thing it turned into on the later palm devices was nice Dec 06 21:30:12 WebOS I think Dec 06 21:30:17 I loved my T5 Dec 06 21:31:14 Palm died a very quick death. It was sad. Dec 06 21:31:16 Seriously, who needs more pixels than 1080p? Not me. Who needs a battery that lasts longer than a day? Pretty much everyone. What do they do? Yeah... Dec 06 21:31:36 I could never be fine with a 4” phone, just too tiny. had one, hated it. Dec 06 21:31:40 how can I access custom java drawable from xml drawable definition? Dec 06 21:31:42 from now on at least 5+ Dec 06 21:31:46 is there a way to receive non-blocking socket input ready events via Looper/Handler? Dec 06 21:31:56 qkzoo1978: Apple Newton died a quick death Dec 06 21:32:02 Who needs iOS Dec 06 21:32:14 I'm trying to mix messages to my UI thread with a socket server. Dec 06 21:32:33 bluecap, do you have geriatric eyes? Dec 06 21:33:07 nope Dec 06 21:33:09 That means he can shoot lazers out of them right Dec 06 21:33:15 lol Dec 06 21:33:35 no man, those are Larryatric eyes, these are Garyatric Dec 06 21:33:39 With a 5" phone, I feel like I'm talking into a brick Dec 06 21:33:45 lol Dec 06 21:34:05 well, different tastes. also my huge hands don’t help much Dec 06 21:34:10 Yeah the N5 is *pushing* it but I think it's the perfect size Dec 06 21:34:10 Phones were really big, then they got really small, and now they're getting really big again. Dec 06 21:34:16 any iphone <6 for me is basically unusable Dec 06 21:34:23 Anyone ever had a "gcc-wrapper.py" issue while compiling a kernel? Dec 06 21:34:39 Saw someone with a note 4 the other day with skinnie jeans Dec 06 21:34:40 That sounds like a fun bug. Dec 06 21:34:43 I asked why Dec 06 21:34:53 lol skinnie jeans. Dec 06 21:34:54 or is there a way to tell Looper to process any pending messages and then exit. Dec 06 21:34:58 That thing was bigger than her head Dec 06 21:35:14 sr105: there's quitSafely Dec 06 21:35:16 Yep, no 6" phone for me. Dec 06 21:35:21 hahaha “Why?” “Because I like the phone!” “No, I meant why skinny jeans?” Dec 06 21:35:33 She puts it in her back pocket Dec 06 21:35:36 <,< Dec 06 21:35:54 and you can’t check out that ass then :( Dec 06 21:35:57 flan3002: Dec 06 21:35:58 I can't imagine how comfortable skinny jeans are. Sound too cramped for me. Dec 06 21:36:02 It was the easiest thing to do. Dec 06 21:36:10 I know, pretty much takes the whole ass Dec 06 21:36:11 Basically Marketing called Engineering and said Dec 06 21:36:21 "Moar pixels." Dec 06 21:36:41 engineering said "But cap'n! We need more power!" Dec 06 21:36:44 i'd like google to come out with native android developer console app Dec 06 21:36:50 fucking apple has had this for years Dec 06 21:37:05 g00s: There are third party wrappers, I have one Dec 06 21:37:11 I think it's funny that a lot of the errors lint is reporting are coming from the appcompat library. Dec 06 21:37:13 Agamemnus: Possibly, but batteries have more capacity over time, yet they continue to use more and more power. Thus, constant battery life. :/ Dec 06 21:37:15 But then Marketing said "we own you, do as we say or we'll complaint to management and you'll be fired" Dec 06 21:37:19 Groxx: Hmmm... I didn't know about quitSafely(), but it looks like it won't work for me: "Any attempt to post messages to the queue after the looper is asked to quit will fail. " I want to have a single event loop for both socket I/O and Messages Dec 06 21:37:36 Darklust i'm not giving any app permissions to log into my console :) Dec 06 21:37:44 unless its from google (paranoid) Dec 06 21:38:05 Ahh I see, so I suppose you won't give me your ssn either Dec 06 21:38:09 sr105: any particular reason you want to have a single loop? it's unlikely having two loops would be the performance bottleneck. Dec 06 21:41:20 Groxx: I'm trying to run a bunch of commands in my UI thread synchronously. My UI displays content as driven by an outside program. For testing, I'm trying to write a simulator in a background thread that does things like: "window_ref = createWindow(); showImage(window_ref); ...". So far, the best solution I've come up with is [Simulator(thread) <- socket i/o -> SocketServer(thread) <- Messages -> UI(thread)] Dec 06 21:41:52 doing it that way will allow my simulator to be linear, synchronous, and blocking Dec 06 21:42:59 sr105 maybe rxjava can help Dec 06 21:43:03 * g00s ducks Dec 06 21:43:10 so, the middle thread exists only to give me a way to block on UI responses, i.e. I send a Message to the UI to create a window, and then it sends a Message back with a window reference Dec 06 21:43:55 g00s: it was on my list of things to look into after someone showed me a demo of it last month Dec 06 21:43:59 :) Dec 06 21:44:16 sr105: since you can't really dive into Android's main event loop, I'd probably recommend having your simulator post a message, and then wait on a latch of some kind that's released when the UI thread runs the message and finishes. Dec 06 21:44:35 doesn't have to be a thread, you just have to be sure to unlock in all cases Dec 06 21:44:44 hmmm.... Dec 06 21:45:27 it's a pretty simple "make this asynchronous thing synchronous" approach. obviously you can get more complex. Dec 06 21:45:46 I was actually thinking of doing something along those lines: creating a Future/(python yield) wrapper. Dec 06 21:46:36 futures might work, iirc they have a blocking version of .get() ? Dec 06 21:47:07 (which is ultimately the same thing, just wrapped a little more nicely) Dec 06 21:47:46 I'm struggling with how to get block between the send and the assignment in "ref = sendMessage()" where the value of ref comes back in a message from the main thread Dec 06 21:49:17 I simply haven't found a lot of relevant web pages while searching. just lots of dedicated threads with blocking while(true) { data = recv(); .... } Dec 06 21:50:06 I was actually surprised that there's no Handler class that wraps non-blocking I/O Dec 06 21:51:10 sr105: basically I'm thinking of something like this: https://gist.github.com/Groxx/4e2053bc0211df56bf9e Dec 06 21:51:43 details are incorrect, missing finals, etc, but structurally. Dec 06 21:52:22 (and you definitely want try / finally to make sure it's released) Dec 06 21:52:59 Groxx: ah... so f.get() blocks on something like a Condition that f.set() calls .notify() on. Dec 06 21:53:33 sr105 would this help ? https://github.com/koush/AndroidAsync Dec 06 21:53:37 Hey guys, I want to have a gridview with square items. It sounds like I have to create a custom view class to achieve the squareness by overriding the onMeasure method. Other than this, I want the view to behave like any plain old view. I've never created a custom view before, so what's the easiest way to add this aspect to the view? Dec 06 21:53:54 yeah. I think set(v) is protected, so you'd need to make a subclass of Future to actually use it, and a variety of other details (like looping on f.get() because you might be interrupted before it finishes). Dec 06 21:55:32 g00s: I think it might. Although, I think I may be able to just implement the Future part that I need Dec 06 21:56:25 helichopter: you're in luck: that's pretty easy. Dec 06 21:56:38 ok, I have enough to do some reading and coding. Thanks all! Dec 06 21:58:02 helichopter: basically, make a new subclass of whatever view is convenient. create all the constructors you need. and override onMeasure to call e.g. super.onMeasure(); setMeasuredDimension(getMeasuredWidth(), getMeasuredWidth()); Dec 06 21:58:24 that'll make it square at whatever width it wants to be Dec 06 21:58:33 see also: http://www.jayway.com/2012/12/12/creating-custom-android-views-part-4-measuring-and-how-to-force-a-view-to-be-square/ Dec 06 22:00:56 Groxx: okay thanks, now this is a stupid question, but I'm inflating the view from an xml file I have. If I go with the custom view do I need to make an xml file that corresponds to it - and how would it know that it's supposed to be the custom view type? Dec 06 22:02:56 helichopter: once you create the custom view class in java, you can refer to it in xml with a tag like: Dec 06 22:03:39 there are three or four constructors you should probably define though, fwiw. just have them call super. Dec 06 22:03:56 they're used by various Android versions when inflating XML files. Dec 06 22:04:30 I'm trying to set an image for an ImageView or ImageButton to be different with each press Dec 06 22:04:47 Im not finding the proper state for it in my selector, the button opens up a context menu Dec 06 22:05:12 state pressed is a one-off thing, I want something that's like state_focus but that isn't taking effect Dec 06 22:05:18 helichopter: Couldn't you use an Adapter and then override Adapter::getView(). Inflate your square layout inside their and do anything else you like. Dec 06 22:05:36 there (I meant) Dec 06 22:06:02 i dont get a navigation bar with tabs with v7 appcompat. is there a reason behind this? Dec 06 22:06:27 I just wrote a flickr thumbnail gallery using gridview and square images as part of a tutorial in an android book. That's how they did it. Dec 06 22:07:51 groxx: it works, thanks a lot Dec 06 22:08:25 helichopter: https://gist.github.com/sr105/5786504f8e119b745399 Dec 06 22:11:43 any idea? Dec 06 22:12:09 see Google Play's example with the three vertical dots on the apps that are featured in larger boxes Dec 06 22:12:30 where you can press it to reveal Install option, the dots remain in a darker state as long as that option is still open Dec 06 22:12:44 I've tried state_active/activated/selected, none achieve this Dec 06 22:12:47 Odaym: that might be a "selected" state? Dec 06 22:13:06 it isn't Dec 06 22:13:07 you may have to .setSelected() on it explicitly Dec 06 22:13:23 let me see Dec 06 22:13:47 but tbh I don't fully follow the active / selected / focused details. I might be recommending you screw up every device with a trackball or dpad or screen-reader or something :| Dec 06 22:14:24 no, that did nothing Dec 06 22:14:25 is it ok to nest one layout inside another Dec 06 22:14:25 otherwise, I think tapping _just_ sets pressed state, and it's intermittent. you can't infer much more from a single tap on a generic View. Dec 06 22:15:02 check out what I'm referring to Dec 06 22:15:05 Odaym: do you have a different drawable for the selected state in your selector? and are you sure you have the selector defined correctly? Dec 06 22:15:13 even a simple setBackgroundResource won't work, this is very alien to me Dec 06 22:15:26 (I don't know if you're familiar with this or not, apologies if this is too simplistic) Dec 06 22:15:51 ChrisUK: yep, nest away. it tends to get less efficient as you keep nesting, but it's normal. Dec 06 22:16:05 it's alien to me that if I want to setBackgroundResource on a button it doesn't take effect, it's always taken effect.. Dec 06 22:16:07 why wouldn't it Dec 06 22:16:15 Odaym: depends on the resource Dec 06 22:16:24 it's a drawable.. Dec 06 22:16:47 yeah, but "drawable" is the uber-generic parent of everything Dec 06 22:16:59 including things with multiple states, multiple "levels" (like progress bars), etc Dec 06 22:17:09 You're obviously doing something wrong if setBackgroundResource doesn't change anything Dec 06 22:17:28 what does your look like, btw? Dec 06 22:17:38 well I have this in my adapter, maybe it's taking a second run at it and resetting its image back to the original Dec 06 22:18:07 because state_pressed does what I want, just for the brief moment of the press obviously, not for the while where some condition is not met yet Dec 06 22:18:22 condition where the popup that I show from the button pressed is not dismissed yet Dec 06 22:20:48 ok, I applied setBackgroundResouce to the view that was passed from the clickListener, that changed the background; because I am using viewholder and was doing "holder.myButton.setBackgroundResource()" Dec 06 22:21:11 so it was like holder.myButton.setOnclickListener(.....){ holder.myButton.setBackgroundResource() Dec 06 22:21:41 don't get why it wouldn't work that way, nothing was scrolling, is it recycled already or what? Dec 06 22:22:27 shouldn't be. though it could if you notifyDataSetChanged due to press. Dec 06 22:22:30 Groxx: I figured out my issue.... After over 5 hours of work, the issues I was having were because /usr/bin/python was linked to python3, when it should be linked to python2.7... Dec 06 22:22:40 that wouldn't work... Dec 06 22:22:51 archlinux >> Dec 06 22:23:21 genex: heh. python 3 seems like it causes more problems than it should Dec 06 22:23:25 it's fine now Dec 06 22:23:41 what's arch got to do with it :P Dec 06 22:23:45 it's how you installed them im sure Dec 06 22:32:13 Hey, do you guys know if there's already a subreddit for advertising wanted/looking for jobs/hobbies for android development? Dec 06 22:32:14 groxx: ok thanks alot Dec 06 22:32:27 I was basically nesting a horizontal layout inside a vertical one Dec 06 22:32:28 Like a classifieds subreddit for Android development? Dec 06 22:32:45 wanted to check out I wasnt doing being silly doing that Dec 06 22:33:17 are there any other libraries out there that do what cwac-merge does ? Dec 06 22:33:34 i guess for recyclerview Dec 06 22:33:41 see elance.com Saphiresurf Dec 06 22:33:49 why would you want to hire people from reddit.. Dec 06 22:34:05 androiddev on Reddit is very low grade honestly Dec 06 22:34:13 here is 10x more advanced Dec 06 22:34:29 Odaym: Oh, I was just thinking for hobbyists or people just getting into it who want an oppurtunity to work with someone else to learn. Dec 06 22:34:43 yea you might be walking on thin ice discussing this here too Dec 06 22:34:47 see elance.com Dec 06 22:35:02 ChrisUK: yeah, that's pretty normal. for omg-max-efficiency you should probably make your own View class to do that, but that's so much more work than it's worth :) Dec 06 22:35:25 Something I've been struggling with a bit because I know Java, I just haven't really found somewhere I want to start, really :P. Dec 06 22:35:37 ez Dec 06 22:35:40 Odaym: Yeah, I'm checking it out now. Is it a sensitive subject for some reason? Dec 06 22:35:53 ChrisUK: if you start getting REALLY deep (like 5 or more layers), there might be a better higher-level ViewGroup you can use, like RelativeLayout or something, which could flatten it and perform better. Dec 06 22:35:56 it's in the topic, you cant advertise that you are looking for someone who would be interested in a job Dec 06 22:36:07 or that you want to know where you could ask that question Dec 06 22:36:28 Fair enough Dec 06 22:36:29 but it's ez to learn really Dec 06 22:36:33 make a todo app Dec 06 22:36:39 you become pro, easy Dec 06 22:36:41 Just seeing if anyone was was interested in the idea, but that makes sense Dec 06 22:36:43 xD Dec 06 22:36:47 I swear Dec 06 22:36:49 Todo apps actually not a bad idea Dec 06 22:36:53 a todo app is actually one of our interview steps :) Dec 06 22:37:00 it touches on everything Dec 06 22:37:02 Oh, cool :) Dec 06 22:37:25 lol no, not another todo app Dec 06 22:37:33 its not like you're gonna release it Dec 06 22:37:47 ..please don't release it Dec 06 22:37:50 haha Dec 06 22:37:51 Yeah, just to get used to learning how to use android Dec 06 22:37:52 I won't xD Dec 06 22:37:55 no! release it! get millions of installs and laugh at everyone! Dec 06 22:38:06 I would shoot myself Dec 06 22:38:20 so start, Saphiresurf Dec 06 22:38:28 look at that video of Learning anything in 20 hours Dec 06 22:38:34 Josh Kaufman Dec 06 22:39:43 Learn Android in 20 Hours (18 of which are spent waiting for the emulator to start) Dec 06 22:39:50 can someone help me? if i trigger car_mode programmatically my app starts, display stays on, if i disable carmode programmatically app exits. BUT if i enter car mode the normal way (by magnet) my app starts, screen doesnt stay on and app doesnt exist if carmode is disableing (by removing magnet) Dec 06 22:39:56 what causes this difference? Dec 06 22:40:01 LOL Dec 06 22:40:14 Cool, Odaym, thanks for the help Dec 06 22:40:29 I'll be on here a little later, I have to go to work, but I'll probably start on it when I get back. Dec 06 22:40:32 And watch that vide Dec 06 22:40:33 *video Dec 06 22:41:14 Okay, I'm off Dec 06 22:41:16 Peace guys Dec 06 22:41:22 And thank you for the help! Dec 06 22:41:28 (Y) Dec 06 22:59:31 How would you use getPixels to get the horizontal and vertical lines that cross through a point (x,y) Dec 06 23:00:18 Spynxic: you just want to read the values of all those pixels? Dec 06 23:01:06 Groxx: Yes Dec 06 23:01:58 More specifically, I want to start in the middle of those pixels to read left/right/up/down from the point (x,y) Dec 06 23:05:19 Spynxic: hm, not sure just from skimming the docs. I think I'd have to play with it... Dec 06 23:06:14 Spynxic: my guess is it's something like bitmap.getPixels(pixelBuffer, 0, 0, 0, y, y, 1) for the 'left' direction Dec 06 23:06:51 The stride can be 0? Dec 06 23:07:28 Spynxic: I'm not entirely sure what that's for. It seems like it might be used for interlacing the data into the pixels buffer, but I'd have to try it out to be sure. Dec 06 23:14:55 hm. does anyone know if there's a way to get Android Studio to _not_ show me the logcat when there's new output? Dec 06 23:19:28 Hi everybody is anyone familiar with Volley ? I'm experiencing a problem when I use volley it returns a Server Error 500 and when I used a REST Client in Google Chrome with the same URL it's working with no error Dec 06 23:19:48 I'm trying to get more details from Volley but I cannot find what's wrong Dec 06 23:24:05 here's the code I wrote http://pastebin.com/aVS86SFU Dec 06 23:28:41 wathek: I'm not familiar with Volley, but have you tried visiting the URL in an incognito window? Dec 06 23:36:40 wathek: maybe dump some logs so you see what the url volley is using actually is? Dec 06 23:36:58 a 500 means something is breaking on the server Dec 06 23:40:33 Groxx, yes I've tried that and it returns the right value no error Dec 06 23:41:05 dbrosyth, how can I get more details of the error ? Dec 06 23:53:00 dp some more logging, maybe check server logs if you can get them? Dec 06 23:53:17 youre probably not sending up what you think you are Dec 06 23:54:13 dbrosyth, unfortunatly I don't have access to the server :( Dec 06 23:58:27 can i increase the size of logcat? Dec 06 23:59:08 finally got this rare bug again only to discover it happaned too long ago to be in logcat Dec 07 00:00:21 sq: increase size? Dec 07 00:00:48 file size, or time frame, or whatever Dec 07 00:09:33 Welp, ended up going to work and they weren't really busy, so I got sent home :3/ Dec 07 00:09:34 *. Dec 07 00:12:12 sq: I don't think there is a way to change the buffer size, short of building your own version of the OS Dec 07 00:12:28 D: Dec 07 00:12:53 thank you for saddening me Groxx Dec 07 00:13:23 sq: actually, it looks like `adb logcat -r` might do it… though it also seems that doesn't survive a reboot Dec 07 00:13:36 not sure though, I haven't used that before Dec 07 00:15:26 oh, thanks, will check that out! Dec 07 00:20:18 hello Dec 07 00:20:30 I am sending data from a java server socket to an android app, like this: https://bpaste.net/show/b730d388fece Dec 07 00:20:33 Hey s1 Dec 07 00:20:34 but the transfer is too slow Dec 07 00:20:35 *s1k3s Dec 07 00:20:52 is there something wrong with that way of transferring my file ? Dec 07 00:22:58 and if you're wondering what my speed is, here is the speedtest: http://www.speedtest.net/my-result/3965566858 Dec 07 00:27:38 guys, if i want my Android app to implement an auth with my own server, whats the best way to do it? server with oAuth? any alternative? Dec 07 00:31:16 s1k3s: Not sure how relevant this is, but are you flushing after writing? Dec 07 00:31:34 It's probably not relevant. Dec 07 00:31:46 oh, no I don't Dec 07 00:31:51 I close the stream after writing Dec 07 00:31:57 Closing should flush. Dec 07 00:33:48 I'd probably try flushing immediately after every write, just to see if there's any difference (though I doubt it). Dec 07 00:34:47 Hiya, I'm trying to learn some android and I'm really in love with the xml part.. But I would love to have something more than just flatUI to work with, is there a site where I can find more UI's? Dec 07 00:39:18 cliffreich: Probably oAuth2, I'm guessing. Dec 07 00:42:44 cliffreich OAuth2 is definitely the industry standard Dec 07 00:44:10 flushing after every write i can only imagine *lowering* the speed, assuming both input and output streams are buffered Dec 07 00:44:24 that loop is about as simple and fast as it gets.. your bottleneck is elsewhere Dec 07 00:45:18 what speed are you seeing on the phone? Dec 07 00:45:43 and - possibly a "duh" question - i assume the phone is connected to the same network you ran that speedtest on? (ie, it's not going through the cell network...) Dec 07 00:45:50 It's so obnoxious that Java doesn't let us define static methods in non-static nested classes. This means we can't define static factory methods. :[ Dec 07 00:46:59 sarbs, I tested it for both connected to the same network Dec 07 00:47:07 and also the phone connected to another network Dec 07 00:47:30 I don't know how to check the speed on the phone.. Dec 07 00:47:43 well when you say "too slow", how do you know then Dec 07 00:47:59 I measure it on the server Dec 07 00:48:03 TacticalJoke: you can just define it in the parent class, it'll have full access to the internal state of the nested class Dec 07 00:48:08 actually I measure the transfer time Dec 07 00:48:11 not very clean, but it works Dec 07 00:48:21 it takes ~15 seconds for 5 MB Dec 07 00:48:22 s1k3s so that's the transfer speed then Dec 07 00:48:23 Groxx: That's true. Dec 07 00:50:08 Groxx: Wait, that doesn't work either. Needs a instance on which to call "new Foo()". Dec 07 00:50:20 Where Foo is the (non-static) nested type. Dec 07 00:50:29 TacticalJoke: aah, right, for factories. hm. Dec 07 00:50:43 It's annoying, because constructors sometimes hard readability. Dec 07 00:50:46 harm* Dec 07 00:50:54 well that's kinda the point of a non-static inner class Dec 07 00:51:03 it has to have an instance of the outer class in order to exist Dec 07 00:51:11 Yeah, but that doesn't mean it can't have static methods. Dec 07 00:51:30 `final Foo FACTORY = new Foo()` and then have an instance-based .buildFoo() method on all foos? Dec 07 00:51:42 right, but if you're trying to write a factory for the inner class, w/o an instance of the outer.. Dec 07 00:52:13 Yeah, my brain is just not working at all today. lol Dec 07 00:52:19 You're right. Dec 07 00:52:50 i totally agree it'd be nice to be able to do Outer.Inner.buildUrlFromPieces(host, path), but a factory like you're describing doesn't make any sense lol Dec 07 00:54:15 well, it makes sense if you didn't have compile-time decisions about what static methods refer to :) a "parent-instance based static method" makes perfect sense in abstract, just not in Java. Dec 07 00:58:16 that's the whole point of a static method tho Dec 07 00:58:26 it's static (compile time) instead of dynamic (runtime) Dec 07 00:59:07 no vtable lookups needed, no instance fields to dereference Dec 07 01:01:10 that's the whole point of a Java static method, yeah. Other languages not so much. And anyway, TJ was lamenting about Java's decisions. Dec 07 01:01:52 oh right. duh. 'parently his isn't the only brain that's not working full capacity today Dec 07 01:10:17 Hey, does anyone have any good recommendations for a todo list tutorial for Android? Dec 07 01:11:42 any of the example android apps Dec 07 01:12:24 Didn't know there was such a thing Dec 07 01:13:11 Any that you recommend pfn? Dec 07 01:13:39 no Dec 07 01:13:45 I don't recommend tutorials, ever Dec 07 01:13:52 What would you recommend, then? Dec 07 01:14:02 reading and understanding reference documentation when possible Dec 07 01:14:07 Right Dec 07 01:14:13 But I'm sort of just starting out Dec 07 01:14:19 even when starting out Dec 07 01:14:23 It'd be nice to have a bit of a starting point so I knew what to look for in documentation :P Dec 07 01:14:25 tutorials only really teach people to "follow the steps" Dec 07 01:14:43 And I'm thinking a todo list app will help me familiarize myself with a lot of common things used in the Android library. Dec 07 01:14:43 just read d.android.com developer guide from start to finish, then jump in and try to get your hands dirty by writing hello world Dec 07 01:14:58 Saphiresurf: find a listview example that loads data remotely and efficiently Dec 07 01:15:01 I already have written a hello world program ;P Dec 07 01:15:16 see, and a tutorial did nothing to teach you anything Dec 07 01:15:28 just showed you how to write hello world, now you have no idea how to continue Dec 07 01:15:30 No, but I followed the developer.android.com guide Dec 07 01:15:47 Well Dec 07 01:16:04 The d.android.com training up to Supporting Different Devices. Dec 07 01:16:16 The thing is that it's not giving me much to apply it towards. Dec 07 01:16:49 apply it yourself Dec 07 01:17:37 The guides help only so much. IMO, with Android, you just have to dive in. Dec 07 01:18:02 Fair enough :P Dec 07 01:18:31 I guess Dec 07 01:18:42 The documentation isn't always great, really. A lot of it is 'meh'. Dec 07 01:18:48 with anything you have to dive in Dec 07 01:18:53 Of course Dec 07 01:18:55 tutorials never get you anywhere, except to join a cargo cult Dec 07 01:18:59 Saphiresurf: think of a simple app that you would like and want to do Dec 07 01:19:11 pfn: Tutorials get you nowhere when you don't ask questions ;P Dec 07 01:19:12 Saphiresurf: Ask in here if you get stuck. Android is tricky sometimes. Dec 07 01:19:29 Or when the person who makes the tutorial explains what's happening thoroughly Dec 07 01:19:32 TacticalJoke: Okay, I will Dec 07 01:19:40 I suppose I'll just start out with a todo list. Dec 07 01:19:42 Of some sort Dec 07 01:19:48 And go off from there Dec 07 01:20:06 Not very ambitious, but it'll get me started xD Dec 07 01:20:11 Is it gonna be really simple? Just curious. Dec 07 01:20:22 yeah but don't bookmark and runaway Dec 07 01:20:24 Like, will it have plain items? Or items with sub-items and stuff. Dec 07 01:21:10 Saphiresurf, Dec 07 01:21:17 It'd just be a list of items with a check mark box next to them. Dec 07 01:21:20 That was my thought, anyways Dec 07 01:21:22 K. That won't be too hard. Dec 07 01:21:35 Probably a good first app (assuming it's your first app). Dec 07 01:21:37 Saphiresurf: motivation and persistance is important Dec 07 01:21:59 TacticalJoke: 'tis Dec 07 01:22:02 Practically, at least Dec 07 01:22:04 check out this if you really want to understand the basics of Android: http://www.amazon.com/Android-Programming-Ranch-Guide-Guides/dp/0321804333 Dec 07 01:22:04 shmooz: Definitely Dec 07 01:22:18 And programming is something I keep coming back too, I understand a lot of the stuff that goes on in the background Dec 07 01:22:25 A lot of people recommend that book, but doing is so much faster than reading and then doing, IMO. Dec 07 01:22:28 After reading that book, you will know how to improve your Android skills, and you'll have a much better understanding of the Android framework Dec 07 01:22:47 offtopic: jesus my mechanical keyboard feels SOOO awesome typing on...just got it! Dec 07 01:22:49 TacticalJoke: Yeah, I learned that while attempting iOS development, for sure Dec 07 01:22:50 anyone notice that when a cardview goes beyond the visible viewport, shadow doesnt render? Dec 07 01:23:10 i.e. in a scrollview. Dec 07 01:23:11 But Dec 07 01:23:39 TacticalJoke, actually, you will go pretty fast with that book Dec 07 01:23:48 it isn't a hard book, but it does explain things very well Dec 07 01:24:15 shmooz: I've been coming back to android development a lot, I just haven't gotten myself through the initial steps of just starting. Before this I was more prone to get a group of developers together to work on an idea that I had, but now I actually want to learn it so I can actually contribute if I get a group of people together, or so I can do some of the easier stuff myself. Dec 07 01:24:24 After all, one way or the other, in the beginning, you WILL have to read up a lot (and experiment a lot with code) on android to understand the framework Dec 07 01:24:33 Yeah, definitely Dec 07 01:24:41 That's sort of what I'm looking for, too, just a reference Dec 07 01:25:38 There is no shortcut...if it was easy....every average Joe could do it.....do be able to program on Android an do wonderful stuff requires some time and committment. Those things are required for every skill worth attaining Dec 07 01:25:42 Strat: Do you know if they sell it as an e-book anywhere? Dec 07 01:25:56 Saphiresurf: just look at the obstacles as a challenging part of the puzzle no matter how hard, and don't give up ;) Dec 07 01:26:05 Definitely :) Dec 07 01:26:16 IMO, developer.android.com + effort = possibly the fastest route for many people. Dec 07 01:26:23 Saphiresurf, do a google search Dec 07 01:26:33 Strat: Fair enough :P Dec 07 01:26:41 Well Dec 07 01:26:56 Saphiresurf, also, for a reference, developer.android.com is the greatest, but I feel that doesnt explain some things quite well Dec 07 01:27:26 The book i mentioned does a great job in explaining the basic things...after which you can build on by yourself and with the help of developer.android.com Dec 07 01:27:31 Strat: Yeah, some things are a bit incompletely explained. Dec 07 01:28:00 But googling more about certain things acts as a nice replacement when the guides don't quite work. Dec 07 01:28:28 Actually, everything IS explained, but sometimes not easy for a beginner to quickly grasp the concepts of what is being explained Dec 07 01:28:33 Strat: Cool, I'll find a copy of it and start reading through it :) Dec 07 01:28:35 Oh, perhaps Dec 07 01:28:56 i really do advice you to at least start reading up on a good book, or take an online course, a MOOC for example Dec 07 01:29:26 the beginning is always hard, but once you made the first few steps, after a few weeks you'll feel much better at home in android development Dec 07 01:29:37 all is required, is just some time and commitment Dec 07 01:29:55 I don't think a book or course is required, though. Dec 07 01:29:56 Cool :) Dec 07 01:30:00 I'll start reading through this book, then Dec 07 01:30:08 Saphiresurf: If you have a lot of programming experience, you won't need a book or course. Dec 07 01:30:36 Well, I have a bit of programming experience, more knowledge than that, though (which isn't, strictly speaking, a whole lot) Dec 07 01:30:37 I think I'd say that a programming newbie would need a book or course. Dec 07 01:32:03 I'd say I really just know the basics of programming in a language (object oriented at least). Things like classes, objects, primitive data types, memory management (garbage collection, etc.), but I'm not all that familiar when it comes to working with libraries. Dec 07 01:33:16 But, I'll just read through some of the book because it wouldn't hurt, it seems like something that could help me just get an understanding of the tools I have. Dec 07 01:33:17 I like not using libraries sometimes and doing my own nitty gritty guts Dec 07 01:33:30 And from there I could just use d.android.com from there. Dec 07 01:33:37 Yeah, it's fun, sometimes :) Dec 07 01:34:01 That's most of what we do in my A.P. Comp Sci class, anyways :P. Dec 07 01:37:06 that was really annoying Dec 07 01:37:46 I'm finding it so hard to name stuff related to Reddit. Dec 07 01:39:26 When you think about it, the site is so weird. Dec 07 01:39:37 TacticalJoke: what are you trying to name ? Dec 07 01:40:06 Let's say that we're looking at reddit.com/r/programming. I'd call that a subreddit listing -- of the subreddit /r/programming. Dec 07 01:40:22 But what is reddit.com/? Currently, I'm calling that a front-page listing. Dec 07 01:40:35 But the problem is that each listing has multiple pages. So we end up having "page 2 of the front page". Dec 07 01:40:39 And it gets hard to read code. Dec 07 01:40:53 Then it's a question of what "front page" should be renamed to. Dec 07 01:41:08 come up with generic modelling names rather than specific to reddit Dec 07 01:41:35 or if that's where the confusion lies, make the model names specific to reddit Dec 07 01:41:39 how does xposed torch work knowing that listening to volume keys while the device is sleeping is not possible? Dec 07 01:41:58 Yeah, I'm strongly in favour of doing that. I guess I have been in most cases (though not with this "front page" thing). Dec 07 01:42:27 just call it Home or Main Dec 07 01:42:42 and combine the 2 or more pages it has Dec 07 01:43:40 I quite like "main listing". Hmm. Dec 07 01:43:49 "Page 2 of the main listing". Dec 07 01:44:09 huh, how do I make heads up notifications show up in L Dec 07 01:44:12 My app does combine pages into one ListView. I do, however, need to be able to refer to pages in code (because the code does the combining). Dec 07 01:44:19 setting priority HIGH didn't make it show, nor did setting category Dec 07 01:44:59 TacticalJoke: is there a reddit API ? Dec 07 01:45:16 Yeah. This is the main part: https://github.com/reddit/reddit/wiki/JSON Dec 07 01:46:45 I remember you showing us adding .json anywhere gives you the json Dec 07 01:47:40 Yeah. You can also add .xml, but I wonder whether anyone uses the (as-far-as-I-can-see undocumented) XML API. Dec 07 01:48:52 well maybe you can ;) Dec 07 01:49:36 I guess most people would prefer json Dec 07 01:49:54 how does xposed torch work knowing that listening to volume keys while the device is sleeping is not possible? Dec 07 01:50:14 XML feels so old now. Dec 07 01:50:46 I remember when it was a new buzzword Dec 07 01:50:55 and noone know what it was Dec 07 01:51:39 I remember that. I thought it was so cool at first. (How naive I was. :D) Dec 07 01:52:18 To be fair, it solved a lot of problems. I just think that something like JSON is nicer. Dec 07 01:52:24 Depending on the domain. Dec 07 01:52:44 I suppose we are evolving thanks to like javascript lol Dec 07 01:53:28 and ajax Dec 07 01:53:55 I used to hang out in #java banning people that talk about javascript Dec 07 01:54:24 ._. Dec 07 01:56:33 ugh, I have to set vibrate on for heads up notifications to pop? that's annoying Dec 07 01:58:50 In most people's minds: public class JavaScript extends Java { } Dec 07 01:59:12 In reality: public class JavaScript extends Java { /* completely violate the LSP */ } Dec 07 01:59:25 Or, I guess, this: public class JavaScript { } :D Dec 07 02:02:25 bel3atar: xposed bypasses just about every restriction there is in Android, by inserting itself between method calls. Dec 07 02:03:15 Groxx: is it a bad thing? Dec 07 02:04:21 bel3atar: it depends on your definition of "bad". I personally love it because it makes XPrivacy possible. but it's as dangerous (or more?) as giving apps root access - pretty much literally anything is possible. Dec 07 02:04:35 What do you guys (and girls) use to package and distribute a kernel after you have built it? So you can install it .zip wise in recovery. Dec 07 02:04:50 genex: fax. Dec 07 02:05:16 Groxx: thank you! Dec 07 02:11:36 How difficult would it be to downgrade to 4.4 Dec 07 02:11:41 My phone has rebooted about 10 times today Dec 07 02:13:52 Hey guys, I'm trying to change the background color of my app from white to gray. Do I need to make this change per activity, or can I make one change that affects all activities? Dec 07 02:16:45 helichopter: easiest is probably to change the background color on your app's theme (default styles for everything) Dec 07 02:17:13 helichopter: i remember there being something about setting 'parent' properties. So if you set the main activity to a theme, I think you can do a "set parent" sort of thing with the other activities. Dec 07 02:17:17 But I am not sure Dec 07 02:18:25 helichopter: https://developer.android.com/guide/topics/ui/themes.html#ApplyingStyles Dec 07 02:20:21 genex: that's right it just inherits what you set parent="... to Dec 07 02:26:05 * genex does a fistpump. Dec 07 02:29:26 Okay, so what I'm trying to do is change the background color of my gridview, as in change the color of the spacing in between cells. It doesn't look like changing the background color for the app worked, because the spacing is still white. Do I need to define a custom shape to draw around my cells to simulate colored spacing? Dec 07 02:31:18 Woah Dec 07 02:31:26 Reading through the Android API is actually really interesting Dec 07 02:32:38 Saphiresurf: Which part? Just wondering. Dec 07 02:37:23 TacticalJoke: Ah, just the introduction: http://developer.android.com/guide/components/fundamentals.html Dec 07 02:37:50 Describes where an application takes it's place in the OS Dec 07 02:39:08 Kitkat is back on my phone <3 Dec 07 02:39:15 yay, now I won't crash 10 times a day Dec 07 02:43:36 When you "make all" when building a kernel, how many .ko files do you expect to exist? a few hundred? a dozen? Dec 07 02:44:26 genex: actually this is the wrong place for rom based questions Dec 07 02:44:35 genex: http://cl.ly/image/1a0d1U262T33 Dec 07 02:44:36 we do only app dev here Dec 07 02:44:51 is my only answer, sadly Dec 07 02:47:43 lots of people come here asking about rom stuff and we should get them to gather at #xda-developers or #android-rom Dec 07 02:48:07 is shmooz any relation to shmoon Dec 07 02:48:18 is it shmoon turned by 90deg ccw? Dec 07 02:48:18 no Dec 07 02:48:28 I was here first! Dec 07 02:48:33 he's an imposter Dec 07 02:49:49 who just wants to steal the replies targeted for me Dec 07 02:50:57 two can play at that Dec 07 02:54:38 shmool: my apologies! haha, where is the best place for rom questions? Dec 07 02:54:46 Groxx: thanks for the pic :P Dec 07 02:55:00 ListView's view recycling seems way better in 5.0 than in 4.4. Dec 07 02:55:17 genex: there really isn't one but you can try making #xda-developers one by directing people there Dec 07 02:55:18 Far fewer Adapter.getView calls with a null 'convertView'. Dec 07 02:55:19 shmool: ill check at those channels, thank you Dec 07 02:55:58 genex: stay here and when other people come here asking about roms , tell them to go there Dec 07 02:56:15 we should put #xda-developers in the topic Dec 07 02:59:04 shmool: theres only about 4 people in the channel.. **** ENDING LOGGING AT Sun Dec 07 03:00:00 2014