**** BEGIN LOGGING AT Tue Jun 10 02:59:59 2014 Jun 10 03:08:38 so, I've activated devmode on the hardware device and recieved ID from adb.exe devices. What next? Jun 10 03:08:57 Do I still need to install drivers? Jun 10 03:09:13 context? Jun 10 03:10:24 bankai_au: android: galaxy tab 4, PC, win8.1 x64 Jun 10 03:11:19 what are you trying to do? Jun 10 03:12:13 build to device in debug mode Jun 10 03:12:56 if it comes up in 'adb devices' you should be able to deploy to it Jun 10 03:13:05 bankai_au: ok, how? Jun 10 03:13:35 have you built your application? Jun 10 03:14:26 o n/m it is listed... trying now Jun 10 03:15:39 ...waiting for debugger to attach... Jun 10 03:16:52 works a treat! ty! Jun 10 04:16:50 no, thank you Spotify, I do not want "Let's Get It On" as part of my coding background music... Jun 10 04:59:33 capella,hi Jun 10 05:03:51 http://www.infoq.com/news/2014/06/groovy-android Jun 10 05:05:59 getting better and better Jun 10 05:13:57 I have closed some projects in the workspace and cretaed a new android application project keeping the library reference to appcompat_v7 Jun 10 05:14:31 But I see a red exclametory symbol in front of the new project folder Jun 10 05:14:47 The error says nullpointerexception Jun 10 05:15:23 I have right clicked on the newly cretared project folder and checked the properties where it should refer to the appcompat_v7 Jun 10 05:15:33 But it shows a cross there Jun 10 05:15:39 what could be the issue Jun 10 05:15:53 what are you talking about? is this some eclipse problem? Jun 10 05:16:23 bankai_au you holding down the fort ? :) Jun 10 05:16:40 not now you're here *bolts* Jun 10 05:17:15 i can't do it :| Jun 10 05:17:38 took a few weeks off from android and feel like i forgot everything Jun 10 05:18:16 AS is buggy and wrong, fragments suck, rxjava is great -- consider yourself caught up Jun 10 05:18:26 yes eclipse problem Jun 10 05:18:52 bankai_au i think android needs a real shock+awe announcement at I/O Jun 10 05:18:57 * g00s crosses fingers Jun 10 05:19:42 things i'd like to see; java 8; new permission system, maybe new language choices, etc Jun 10 05:20:34 swift? Jun 10 05:20:36 i think this 4.4.3 update fixed my BT issues which were making me very mad, so no i can calm down Jun 10 05:21:02 i haven't looked at swift yet Jun 10 05:21:06 what do you think ? Jun 10 05:21:19 g00s: I've seen hilarious benchmarks for swift :3 Jun 10 05:21:20 crap, but better than obj-c Jun 10 05:21:32 anyone here roll their own android? I built aosp, wondering how hard it is to get the google apps and google play going on a galaxy nexus Jun 10 05:21:40 spikebike: topic Jun 10 05:22:55 bankai_au its good to see rxjava releases calm down; for a while they were putting something out every day - was getting kind of annoying Jun 10 05:23:32 oh yeah, that be great if they replaced fragments with something else heh Jun 10 05:23:34 yeah i know, API changing a lot, internal code changing a lot Jun 10 05:23:47 how about an official non-beta release of AS? Jun 10 05:24:08 I don't think it's ready for that yet? Jun 10 05:26:09 imho google needs much better memory analysis tooling Jun 10 05:26:22 the eclipse monitor heap analyzer it pure shit Jun 10 05:26:57 hierarchy viewer works sometimes … when it wants, very flaky Jun 10 05:28:01 so we'll see; duarte said some eyebrow raising things a few months back, i think we'll get something completely unexpected ;) Jun 10 05:28:43 eh? Jun 10 05:29:08 when duarte said 'apps' weren't the way to go , moving forward Jun 10 05:29:13 you know what would be really unexpected? Non-java, native interface to framework Jun 10 05:29:21 ... that sounds bad Jun 10 05:30:13 i had a big think about this the other day, g00s , and it seems like we've kinda done a backflip regarding applications Jun 10 05:30:51 back in the day everyone had an application for the desktop. i remember even my bank did, then everything got pushed into the browser (remember applets?), then improved - "web 2.0 or whatever" Jun 10 05:31:10 now we've got mobile devices we've kinda gone back to this 'install everything' mentality... i'm not entirely convinced this is a 'bad' thing, but it's interesting Jun 10 05:31:33 i find myself a lot thinking "ffs i just want to view your website, i don't need some stupid application just to do this thing once" Jun 10 05:31:44 bankai_au: and the web apps are often pretty shitty Jun 10 05:32:19 well that's right Jun 10 05:32:53 it's one thing when it's obviously something better fitting as a website (bank, news *site*), but if you push everything into crappy web, I'll find you and do unspeakable acts with a rusty spoon Jun 10 05:34:10 (I don't live in the half-fictional bubble of internet always working) Jun 10 05:35:40 p_l yeah … i was driving across the US and almost never had a data connection unless in a big city Jun 10 05:35:56 was nice that WP maps worked beautifully Jun 10 05:36:02 i never thought that'd be a problem in the US :/ Jun 10 05:36:17 actually, i took a huge risk and didn't plan a damb thing - just plugged into the phone and followed it the whole time Jun 10 05:36:41 bankai_au oh shit, there is almost nothing between the coasts if not a major city Jun 10 05:36:53 bankai_au: I heard that US networks are generally shitty anyway :P Jun 10 05:37:15 some of the state visitor centers had good data connections. like Texas on I40 Jun 10 05:37:21 i have heard that, but i just thought it was americans bitching about nothing.... Jun 10 05:37:33 most you were lucky if you got a few bars of 2G :) Jun 10 05:38:02 thankfully you can always go into mcdonalds and use their wifi Jun 10 05:38:06 :D Jun 10 05:38:15 https://github.com/dotcloud/docker/blob/master/pkg/namesgenerator/names-generator.go#L83 Jun 10 05:38:49 bankai_au drive across new mexico, texas, oklahoma, tennessee, arkansas - there is nothing there Jun 10 05:39:02 actually knoxville was kinda cool Jun 10 05:41:23 well, there's 9200 bit/s if you dare the fees Jun 10 05:42:39 i turned data roaming off, didn't want a surprise bill Jun 10 05:43:07 what i really liked about my little lumia 521, is that the UI was simple, and it was very reliable. it just worked Jun 10 05:43:28 almost like a mix between dumb phone and smart phone, seems primitive in some ways compared to android Jun 10 05:45:08 very few options, very stripped down. the System settings app was kinda eclectic and not well organized Jun 10 05:46:20 bing worked flawlessly Jun 10 05:46:27 g00s: !!! Jun 10 05:46:41 i started using bing for the hell of it, don't really notice any difference between google search Jun 10 05:46:47 lol Jun 10 05:46:48 they both work just fine Jun 10 05:46:52 hey thepoosh Jun 10 05:46:53 it's better for video search Jun 10 05:47:09 i used it to search for hotels, stuff in the area - worked great Jun 10 05:47:46 i don't really feel like google has improved search in around 10 years, and in that time bing caught up for the most part Jun 10 05:48:04 i doubt any of us could tell the difference blindfolded Jun 10 05:49:21 i'm reading this huge mary meeker presentation from the other week Jun 10 05:49:51 ??? Jun 10 05:50:09 I read an article bashing bad android apps on the play store? Jun 10 05:50:14 I meant . Jun 10 05:50:38 the meeker presentation ? Jun 10 05:51:06 dunno Jun 10 05:51:11 it went through MS apps Jun 10 05:51:17 what UI element should I use for a like/dislike button ? Jun 10 05:51:22 and showed why they got such bad reviews Jun 10 05:51:33 Jonno_FTW: a FB like button? Jun 10 05:52:40 not really Jun 10 05:53:04 similar to reddit vote buttons Jun 10 05:53:14 or SO Jun 10 05:53:59 groovy on android might be nice Jun 10 05:54:38 i doubt i'd use groovy, kinda a sloppy language Jun 10 05:55:27 i hate that postmodern language design shit, like perl 'sometimes, you don't need ( ) if ...' Jun 10 05:56:19 what would be cool: advanced linking between Java objects and native objects (with well-defined IDL and calling conventions), coupled with LLVM bitcode target :D Jun 10 05:57:04 g00s: I like scala more too ;) Jun 10 05:57:17 yeah, i'd be more interested in that Jun 10 06:02:34 the other nice little app i used on WP was OneNote, which ties into the desktop version nicely Jun 10 06:02:47 OneNote works on the mac too Jun 10 06:02:55 much better than Keep Jun 10 06:03:36 so imho the boys & girls in redmond are working hard, doing nice things. nice to have another alternative ;) Jun 10 06:06:15 some annoyances with WP : seems like really no notification center at all Jun 10 06:06:41 * capella when I see "WP" I still think WordPerfect Jun 10 06:06:44 but maybe they kinda see the live tiles as doing that Jun 10 06:07:14 well playede Jun 10 06:07:53 g00s: OneNote is kinda different niche than Keep, IMO Jun 10 06:08:09 this lumia 521 from t-mo had wifi-calling; i guess android has this too if the carrier implements it Jun 10 06:09:10 not really sure what Keep is, kinda like a hello world note-taking app with nice animations Jun 10 06:09:33 hasn't even been updated in a while Jun 10 06:09:47 one of those 'ok, where is google going with this one :) ' Jun 10 06:11:51 who uses robotium? Jun 10 06:13:10 most importantly, IE on WP didn't suck as bad as i thought it would … but i still really don't like any of the mobile rowsers Jun 10 06:13:30 i think safari on iOS was my favorite mobile browser Jun 10 06:13:40 even though i love FF ;) Jun 10 06:14:07 gordon_ we use robotium @ mozilla Jun 10 06:14:40 capella: how can I wait for activity to show up ? Jun 10 06:14:44 or any good sources of tests Jun 10 06:14:49 I don't recommend it, fyi Jun 10 06:15:04 what's better than it Jun 10 06:16:59 expresso Jun 10 06:17:21 haven't found anything ... just still can't recommend robotium ... it's code style is "get confused and throw exception and die" Jun 10 06:17:40 Maziz: expresso is deprecated AFAIK ? Jun 10 06:18:11 where did you hear that? Jun 10 06:18:46 dont know Jun 10 06:18:51 if it's not that's good Jun 10 06:19:12 can a parcel have more than one array? Jun 10 06:19:26 parcel -? Jun 10 06:19:34 https://code.google.com/p/android-test-kit/ Jun 10 06:19:38 http://developer.android.com/reference/android/os/Parcel.html Jun 10 06:19:50 Maziz: I will check it out Jun 10 06:19:55 can I use espresso on android 2.x ? Jun 10 06:20:41 im not sure about that. Jun 10 06:21:02 parceable should be able to store more than one array. Jun 10 06:22:01 i will give espresso the shot Jun 10 06:22:10 *a shot Jun 10 06:29:12 Maziz: can I wait for next activity in espresso ? Jun 10 06:29:26 or there are no problems like that Jun 10 06:29:28 i think so Jun 10 06:29:45 im not so sure or clear on that Jun 10 06:29:52 ok I will check it Jun 10 07:01:05 hey :) Jun 10 07:01:14 can anyone help me with a scrollview question? Jun 10 07:01:55 I have a button inside of a scrollview. I added a few more things to the scrollview programatically. How do I move the button to the bottom of the scroll view instead of keeping it at the top? Jun 10 07:04:21 Maziz: ok i watched presentation about espresso Jun 10 07:04:29 so it should be good Jun 10 07:17:10 Maxoplata: you should add a layout in scroll view first and add your view in that layout Jun 10 07:17:22 then you arrange accordingly using LayoutParams. Jun 10 07:26:17 Maxoplata, A ScrollView CANNOT have more than one Child View . that's the rule. Jun 10 07:27:30 Maxoplata, so it should be this way: ScrollView [ LinearLayout [ Vieeeeeeewwwsss...] ] Jun 10 07:27:37 what? but I want a scrollview in my scrollview Jun 10 07:28:22 capella, yes you can do that, but It is usually a HorizontalScrollView Jun 10 07:28:27 ;) and an iframe in my iframe Jun 10 07:29:10 but you cannot have something like: ScrollView [ [view] [view] ] Jun 10 07:29:29 but you cannot have something like: ScrollView [ [view] [view] ... [view] ] , I mean Jun 10 07:30:39 you can for example have one BIIIIIG and HUUUGE TextView to scroll it down. Jun 10 07:33:55 heh - needless complexity can be fun ... but not always :) Jun 10 07:35:27 ☺ Jun 10 07:37:06 Hi, I have recored some video of my problem, hopefully someone can help Jun 10 07:37:07 https://dl.dropboxusercontent.com/u/34256178/Elipse.mp4 Jun 10 07:40:00 Hi, how would i make two edit text change value based on what the user types on each, i implemented text watcher on the first edit text worked fine but when i did on the second edit text i get stackoverflow error Jun 10 07:40:06 please help Jun 10 07:40:43 OhjinXX: i doubt anyone is going to click your link without you even explaining what your problem is Jun 10 07:41:50 sorry, its googleplayservices library causing a conflict with my project Jun 10 07:42:07 atributes have already been defined is the awnser i get Jun 10 07:42:29 I was on here yesterday, but thought id do a video to make it clearer Jun 10 07:43:42 ok so here's what I did, I placed a switch statement over the newVersion in DB onUpgrade(), and inside that switch I placed the edits one after the other. Edit table name, drop another table, add column to renamed table Jun 10 07:43:44 that should do it Jun 10 07:45:32 the link is to a video, should stream from the webpage, no need to download Jun 10 07:48:26 someone who could help me with a support searchview? Jun 10 07:49:03 always getting Error inflating class SearchView Jun 10 07:52:48 hello Jun 10 07:56:05 i recorded that vid specially for you Sicp lol Jun 10 07:56:21 so you could see i lined the gps library properly Jun 10 08:03:29 haha Jun 10 08:03:32 sure I'll see Jun 10 08:04:33 that's a very fast internet Jun 10 08:04:52 Sicp: really? Jun 10 08:04:59 to me yea Jun 10 08:05:09 good, i'm going lyrical this morning... Jun 10 08:05:16 well my subscription here is 2Mb, so 250kbps Jun 10 08:05:36 have been facing with series of error since morning and i'm thinking of given up... Jun 10 08:05:44 but i think that's not the best open Jun 10 08:05:47 option Jun 10 08:06:14 Now, i believe someone is here to assist me... Jun 10 08:07:54 this is the error i recieved whenever i click on a button "The application may be doing too much work on its main thread." i attached OnClickListener to the button Jun 10 08:08:32 jesus I thought you meant GPS as in LOCATION Jun 10 08:08:36 you meant google play services! Jun 10 08:09:00 No, my development environment --- android Jun 10 08:09:15 no Im talking to OhjinXX Jun 10 08:09:39 Oops! Jun 10 08:10:20 Google play services, GPS for short Jun 10 08:10:39 I thought i was being clever, obviously not. lol Jun 10 08:10:57 but I dont get it, why do you then import the project from the SDK after having installed it from the SDK manager Jun 10 08:11:08 if you install it, this means that you have it and then you can reference it in code Jun 10 08:11:09 why do that again Jun 10 08:11:21 tutorial said so? I never used it myself Jun 10 08:11:51 ah, it was from a tutorial. Jun 10 08:12:02 If I can reference it from code that is great Jun 10 08:12:15 have you got a source where the code would be Jun 10 08:12:17 okay... tutorial stuff! Jun 10 08:12:39 So I shouldnt load it in? Jun 10 08:12:46 I mean just wherever you want to use google play services inside the code, the code will prompt to import the appropriate classes Jun 10 08:12:47 I should just code it in? Jun 10 08:12:56 ok Jun 10 08:13:01 just start using it as you normally would, it should prompt for import from what you installed in the SDK manager Jun 10 08:13:19 like you do with the usual Android versions, you install them from the SDK manager and you start using their classes in the code Jun 10 08:13:21 like ActionBar Jun 10 08:13:22 etc Jun 10 08:14:11 While surfing the code http://androidxref.com/4.2_r1/xref/frameworks/base/services/java/com/android/server/SystemServer.java it is the place where are services are started. but i could not locate, where init2() is invoked from ? Jun 10 08:14:15 could someone help me ? Jun 10 08:15:40 I did not create this project within Eclipse, It is an exported apk from a game engine, that I have unpacked and the imported into Eclipse, So my knoledge of referencing classes etc is very limited Jun 10 08:15:56 but at least you have given me another avenue to work from Jun 10 08:17:25 Hello guys, how do i make two edit text change it text based on the other, implementing text watcher on both gives me stackoverflow as it creats an infinite loop, i am doing currency conversion in two text area Jun 10 08:19:27 meadhikari, channel #android is a right place for application specific question, that was my experience with this channel. :) Jun 10 08:20:24 Keestu, i have been told their that it is not the developer channel but to discuss just android stuffs Jun 10 08:21:06 hahaha Jun 10 08:21:29 I have two edit text that need to listen to each other and change their values, using text watcher in both is creating an infinite loop please help Jun 10 08:21:39 i m also bounced back and forth between these two channels.. Jun 10 08:22:37 Keestu, trying me hand there too lets see :) Jun 10 08:22:57 good luck :) Jun 10 08:27:55 Sicp and hackable this is the tutorial i was going by check out strep 1. with its sub points as well Jun 10 08:27:57 http://googleforstudents.blogspot.co.uk/2014/01/what-you-need-to-know-to-install-admob.html Jun 10 08:28:23 hackable, that too much work thing is not an error, it appears in orange doesnt it Jun 10 08:28:27 or green even Jun 10 08:28:46 ah, well I guess thats how you use it, OhjinXX ... Jun 10 08:29:04 you need steps 2 and 3 of course, which explains why the error would appear in xml Jun 10 08:29:45 yeah, should I not do those steps? Jun 10 08:29:57 you should follow all of them man Jun 10 08:30:06 like a bible Jun 10 08:30:15 agggh, i wonder why it errors out then Jun 10 08:30:21 dont rely on what you hear here as truth Jun 10 08:30:37 its just trying, only YOU can stop forest fires Jun 10 08:31:46 I thought firemen also stop forrest fires? Jun 10 08:31:55 heyyyyy DB upgrade worked! Jun 10 08:31:57 and neighbours Jun 10 08:31:58 thanks JakeWharton ! Jun 10 08:32:02 seamless! Jun 10 08:32:09 god I was so scurreddd Jun 10 08:35:44 nah it's a saying from some American show or commercial Jun 10 08:35:48 Smokey Bear Jun 10 08:36:05 https://www.youtube.com/watch?v=N2tra1bYGkw Jun 10 08:37:12 amerecuh Jun 10 08:41:21 Sup everyone Jun 10 08:42:07 hackable, do you have System.gc() calls anywhere Jun 10 08:43:37 Sicp all i am wanting to do is sign my unsigned apk file, this eclipse is throwing a massive problem at me and stopping me from moving forward. Any ideas on how I can sign my apk for release without using elipse? Jun 10 08:43:41 A bit of a n00b question here: could anybody tell me if it's possible to deploy an app both on Android (using the SDK for the UI) and on desktop (with Qt for the UI)? Jun 10 08:44:12 That is same codebase and not run into execution/compilation errors when deploying to the different platforms. Jun 10 08:44:54 right click > Android Tools > Export Signed Application Package is not working, OhjinXX ? Jun 10 08:45:18 there is no room for error in it... Jun 10 08:45:21 its just a click Jun 10 08:45:32 granted you have created the keystore correctly Jun 10 08:45:44 no, because of the errors it wont let me export Jun 10 08:45:56 you cant if there are errors Jun 10 08:46:05 because it will build it I think Jun 10 08:47:07 hmmm i think i'll leave the gps and admob code, and try to do admob when its uploaded on google play Jun 10 08:47:53 Anybody has any idea? Jun 10 08:54:16 Anybody? Any idea? How to keep both Qt for desktops and native Android UI in the same codebase and pick one implementation or the other with some compiler flag or something depending if I'm deploying to Android or desktop? Jun 10 08:55:20 put all your functionality in a jar and reference it from your 2 applications? Jun 10 08:55:26 botulox: I'm sure you could have some shared libraries and models, sure? Jun 10 08:56:57 So 2 codebases and share modules then? No way to make it pretty with a single codebase deploying to multiple platforms with a switch? Jun 10 08:57:30 is that pretty? Jun 10 08:57:34 Sounds horrible Jun 10 08:58:17 Well that's what compile flags get used for. Jun 10 08:58:50 sounds like you write C or something more often Jun 10 08:59:49 the way i'd do this would be a project that contained 3 modules, the android app, the qt app and a library that had all the shared functionality Jun 10 08:59:55 Can't really say I "write" C when I've never done any app, just some crude hacks when I need to, and customize the functionality of apps by compiling with different flags Jun 10 09:00:18 then when you build the whole thing your get 2 artefacts out, an android app and a qt app Jun 10 09:00:21 (and a library) Jun 10 09:00:28 but that's not important Jun 10 09:01:02 So you can set Java to spit two binaries in a single project? Jun 10 09:01:52 no, you create one project that does android and one that does qt Jun 10 09:01:57 and one that has shared stuff Jun 10 09:01:58 Your build system will make separate builds probably with different compilers Jun 10 09:02:07 then you build it all thhether Jun 10 09:02:11 *together Jun 10 09:02:15 http://www.gradle.org/docs/current/userguide/multi_project_builds.html Jun 10 09:02:29 or https://maven.apache.org/guides/mini/guide-multiple-modules.html Jun 10 09:02:55 Will take a look at the links, thanks. Jun 10 09:03:41 And yeah, that sounds pretty much like what I wanted. I appreciate the input. Jun 10 09:10:23 has anyone got recent experience with admob? Jun 10 09:12:10 OhjinXX: are you doing a survey? Jun 10 09:12:57 no, i want to use it in my app, but its not been so straight forward getting it in there Jun 10 09:14:24 you need to ask your actual question... Jun 10 09:25:22 is there any way i can run android app on linux without any virtual machine Jun 10 09:26:13 is there any way i can run android app on linux without any virtual machine Jun 10 09:27:34 so we finally uploaded our app to google play at work... search finds it but when trying to open the app page it says "item not found"... which is really interesting Jun 10 09:28:42 hello? Jun 10 09:29:01 i want to run android apps on linux can i do that? Jun 10 09:29:09 if yes, then how? Jun 10 09:29:41 no Jun 10 09:29:53 why? Jun 10 09:30:01 if windows can run apps Jun 10 09:30:07 then why not linux? Jun 10 09:30:59 There's no way I know of to run android apps on windows without a virtual processor under the hood Jun 10 09:31:26 you can run some apps in the emulator I guess Jun 10 09:31:39 Zharf: the emulator IS a virtual processor, based on qemu Jun 10 09:31:40 running on linux you need i32 library Jun 10 09:32:35 okkkk Jun 10 09:33:00 do we have any player like bluestack on linux Jun 10 09:33:03 to run apps Jun 10 09:33:05 sonOfRa, -.-' Jun 10 09:34:41 i was trying to say that i dont want to install android in VM, but if player is running on the basis of qemu then i have no problem at all Jun 10 09:35:07 it should run faster like bluestack Jun 10 09:38:30 ????? Jun 10 09:39:01 Zharf> you can run some apps in the emulator I guess Jun 10 09:39:06 Maziz> running on linux you need i32 library Jun 10 09:39:13 what doesnt please you here? Jun 10 09:39:32 o.O? Jun 10 09:39:33 is this way too slow or what? Jun 10 09:39:41 he is still asking you see Jun 10 09:39:46 guys Jun 10 09:40:12 ah i think i read wrongly Jun 10 09:40:17 does anyone use google play private channel? Jun 10 09:40:37 if you want to dev on linux using x64 linux, you need ot use i32 library.. Jun 10 09:40:39 okkkkk Jun 10 09:40:50 if i install i32 library than Jun 10 09:40:54 what next? Jun 10 09:41:25 oaulakh: forget about that. I thought you were asking setting up dev env. Jun 10 09:41:58 i dunno what u r talking about Jun 10 09:42:05 but i want to run apps on linux Jun 10 09:42:06 Maziz: no he just wants to run an app, so its not slow Jun 10 09:42:10 thats all what i wnat Jun 10 09:42:34 Maziz: he finds qemu fast, and he finds vm slow Jun 10 09:42:46 yeah right Jun 10 09:43:04 i work once with qemu Jun 10 09:43:20 doesnt sound right to me since an emulator will always suck (and qemu should too) but i hope Maziz gets the idea at least Jun 10 09:43:26 when i installed mini linux on windows pc for first time virtually Jun 10 09:43:35 and it was so much faster Jun 10 09:43:40 like dragon fire Jun 10 09:43:54 okokkk Jun 10 09:44:00 genymotion supports linux? Jun 10 09:44:08 gry: ? if you know or heard about it. Jun 10 09:44:21 i havent heard of any android things, no Jun 10 09:44:34 ah Jun 10 09:44:36 oaulakh: http://www.genymotion.com/features/ Jun 10 09:44:39 could try this Jun 10 09:44:48 im running it on mac, and it’s smooth. Jun 10 09:45:00 okkkk Jun 10 09:45:01 better than emulators and other emulation I’ve encountered Jun 10 09:45:03 thanks Jun 10 09:45:11 i'm also looking on this Jun 10 09:45:22 for 15 min Jun 10 09:47:05 I'm running it on arch and it's grat Jun 10 09:47:15 *great Jun 10 09:47:28 and in arch it's easy to install Jun 10 09:47:41 does installing it involve reboot? oaulakh vanished Jun 10 09:47:50 no Jun 10 09:47:53 aw Jun 10 09:47:55 you need to load kernel modules Jun 10 09:48:11 ok i sorta hope he gets it to work Jun 10 09:48:13 genymotion runs on virtualbox Jun 10 10:22:33 Hi, It may be out of scope for this channel, but does anyone know the details of how to unlock a phone so it works in another country (with sim card from somewhere else) Jun 10 10:28:34 Should app.iml be part of the version control? Jun 10 10:34:27 hello, how can i remove debug option. Every time I "Generate sikned APK" in Android studio, it is debug version Jun 10 10:40:56 TIL Night Mode... Jun 10 10:41:22 there's an option on the bottom left somewhere you can click on to change the build version Jun 10 10:57:48 If you are targetting ICS and later, can you assume the presence of Google Play Services? Jun 10 11:02:20 no Jun 10 11:02:30 users can uninstall it like I did Jun 10 11:04:54 @Zharf: thanks - that's what I feared. Another test case coming up! Jun 10 11:12:37 andyeb: the documentation has some samples to check in the runtime Jun 10 11:16:45 If you have a DataSource class to access your database. What's the common way to use it from different activities? Should you create new instances in every activity? Create static methods? Is there a standard way? Jun 10 11:18:10 Maziz: how can I wait for background task to end with espresso ? Jun 10 11:22:28 A user authenticates with a service, I load the data, what is a good place to store this object? Is there something like a cache? Jun 10 11:22:45 I want to make a GONE view to be visible by sliding from left to right (the view take the whole activity). How do I do that using NineOldAndroid? Jun 10 11:23:37 platzhirsch: database ;) Jun 10 11:23:58 gordon_: yeah, database sounds so bloated right? Is there a key-value store for Android? Jun 10 11:24:08 yes, shared preferences Jun 10 11:24:12 (those are included) Jun 10 11:24:13 sharepreferences Jun 10 11:24:22 *shared Jun 10 11:24:27 because SQLlite seems to be ridicilious Jun 10 11:25:00 why is that Jun 10 11:25:18 but speaking of databases, could it be that a cursor doesn't really return all results? And does NOTNULL work for blobs in SQLite? Jun 10 11:25:21 just for a plain object.. Jun 10 11:25:52 sqlite doesnt have blobs Jun 10 11:25:57 plain objects won't work with shared preferences, but you could use ORMLite or GreenDAO or something that I don't know (e.g. CompotORM) Jun 10 11:26:23 I'm pretty sure it does, I mean I use them on Android and they work fine. ORMLite stores objects as blobs. Jun 10 11:26:34 doesn't shared preferences work with the Parceable interface? Jun 10 11:26:44 I want to make a GONE view to be visible by sliding from left to right (the view take the whole activity). How do I do that using NineOldAndroid? Jun 10 11:26:47 oh it does Jun 10 11:26:53 why was I thinking it doesnt Jun 10 11:27:21 platzhirsch: I dont think you can store objects in shared preferences ;) Jun 10 11:27:34 gordon_: but I have a hammer Jun 10 11:27:39 I just smash them in Jun 10 11:27:47 go a head Jun 10 11:27:56 Can I iterate over a cursor with while(cursor.moveToNext())? I think that stops prematurely, but it could just be a bug somewhere else. Jun 10 11:28:16 yes Jun 10 11:29:02 platzhirsch feel free to serialise your object, add a constant to the bytes that move them in Unicode's PUA area, store that as a string in a shared pref ... ;) Jun 10 11:29:23 so troublesome Jun 10 11:30:55 you can always use application object :D Jun 10 11:31:08 global variables are always way to go Jun 10 11:31:09 haha Jun 10 11:31:20 static Jun 10 11:31:23 you are right Jun 10 11:31:37 Seriously, it's just one User object, the one who has authenticated with the object Jun 10 11:31:39 of course :) Jun 10 11:31:54 so store only it's id ? Jun 10 11:43:10 i just registered on reddit Jun 10 11:43:11 ;o Jun 10 11:43:30 yoh my irssi is lagging Jun 10 11:43:30 completely wrong chan Jun 10 12:24:20 /hello Jun 10 12:24:29 woops. sorry Jun 10 12:28:14 Are there any recommended practises for making an "About this App" activity? I was thinking about doing it as a webpage with "webview" Jun 10 12:29:10 hey, I want to have a tabs and each tab to have childfragments with a backstack. But as I understand it child fragments are not stored between changing tabs, and the backstack of the childfragmentmanager doesn't seem to work. Is there some functionality in android that would make it easy to do this without the childfragmentmanager? Jun 10 12:29:49 jesperj: why not Jun 10 12:32:23 BoD: I was thinking if there are any standard ways for this Jun 10 12:32:46 not to my knowledge Jun 10 12:43:21 Anyone I have buttons from 1 to 9 and on Android 4.4 they show good every button is equal. On Android 2.3 some are smaller.. How can I fix this? I'm using a tablerow Jun 10 12:43:34 anyone who wants to help pm me, I'll show layout file Jun 10 12:49:21 Pastebin it Jun 10 12:54:29 Also, screenshots would be helpful Jun 10 12:54:49 RedNifre: https://stackoverflow.com/questions/24141099/layout-different-on-android-2-3 Jun 10 12:56:11 I'd use LinearLayouts instead Jun 10 12:59:30 When I try to build release with "generate signed apk" it builds debug version, and every time I try assembleRelease it generates without debug but not signed Jun 10 12:59:56 I dont ged it, what am i doing wrong, why is it so hard Jun 10 13:17:53 Click66: TableRow inherits from LinearLayout, so set the layout_width of all your Buttons to 0dp and add a layout_weight="1" property to all of them Jun 10 13:18:15 Estel: Can I do this for android 4.4 too? Jun 10 13:18:34 Yes, that wil just reduce ambiguity Jun 10 13:22:33 Estel: then I get the first row only and half the button? Jun 10 13:25:12 http://lpaste.net/105393 <- why is my tableLayout null? the results_layout.xml exists and the TableLayout has id resultstable... Jun 10 13:26:26 try view. instead of getActivity(). Jun 10 13:27:33 in fact you don't even need the findView since view is your tableLayout Jun 10 13:28:04 This webpage http://stackoverflow.com/questions/8524721/android-webview-make-urls-open-in-different-browser suggests that clicking web links to external websites in a webview, will open the url in the current webview and NOT in an external browser. When I try this in my virtual android device spawned from eclipse, the links DO get opened in an external browser it seems. Will this behave differently on a phone/tablet? Has something changed sinc Jun 10 13:28:04 e 2011 in this matter so it defaults to open in external browser? Jun 10 13:38:20 what is a good place for discussions on more advanced use of Picasso (the image loading library)? Jun 10 13:41:19 I'd like thumbnails to be used while loading the larger image and I need control over the disk cache (for offline use). Anyone used Picasso in here? Jun 10 13:41:41 jesperj: yes Jun 10 13:42:00 snowpong: you can use a custom disk cache Jun 10 13:42:01 snowpong: I'm not sure where the best place to ask is, but Picasso doesn't have an extensive API Jun 10 13:42:25 Estel: Yes as in it will behave differently on a tablet/phone, or things have changed so it now defaults to open in external browser? Jun 10 13:43:29 jesperj: I believe the default has changed, but I'm not sure since when Jun 10 13:43:42 Estel: Ok thank you. Jun 10 13:44:32 jaynewstrom: ideally I'd want two disk caches, one for explicitly offlined content (will not be auto-deleted) and another just for normal caching (with normal cleanup) Jun 10 13:45:43 snowpong: you have to use the disk cache from the http client. you can write the implementation however you want (dealing with online/offline) Jun 10 13:46:23 jaynewstrom: doesn't Picasso use the disklrucache? Jun 10 13:47:14 no. picasso doesn't deal with disk cache. http client does. if you're using okhttp, than maybe it uses disklrucache under the hood. but that's just an implementation detail Jun 10 13:48:00 jaynewstrom: OK Jun 10 13:54:55 can a table layout be inside a linear layout? Jun 10 13:56:28 tabello: all layouts can be nested, so yes Jun 10 13:57:52 <- should that be in every xml file? Jun 10 13:58:11 yes. at the very first line Jun 10 13:58:30 it tells the xml parser what version and encoding of xml to use Jun 10 13:59:35 Licensing etc is a jungle... http://androidplot.com/about/#License "We’ve made the AndroidPlot library available under the Apache 2.0 license because we think it’s most empowering and easiest to understand open source license at the moment. We want AndroidPlot to be as accessible as possible for public, private and commercial use." < Is it enough if I have an "About this App" activity in my app, and there say something like "Myappname uses Jun 10 13:59:35 androidplot" and then under that the long "Copyright 2013 AndroidPlot.com Licensed under the Apache License, Version 2.0..." thing? Or do I have to conctact them to ask for more details? Jun 10 14:02:44 jesperj: see this: http://stackoverflow.com/questions/1007338/can-i-use-a-library-under-the-apache-software-license-2-0-in-a-commercial-applic Jun 10 14:03:29 it should be enough to have a small link to apache 2.0 license in an about screen Jun 10 14:03:45 with a notice that you use library xyz which is licensed under it Jun 10 14:07:24 Sorry I'm a bit ocdish, but just something like 'Myapp uses androidplot. Androidplot is licensed under the Apache 2.0 license.' should be enough? Jun 10 14:07:35 http://lpaste.net/105394 <- I can only see column 2 of my table. and it is to the very left in my view. The text also has black color instead of white and the restartbutton is not shown. What am I doing wrong? Jun 10 14:08:12 jesperj: Im not a lawyer but I think thats enough. Jun 10 14:08:24 danijoo: Thank you. Jun 10 14:08:47 maybe have a look how other projects do it if you are unsure Jun 10 14:09:25 yeah... Jun 10 14:10:17 tabello: For the restart button: your tablelayout is set to "match_parent" in wdth and height Jun 10 14:10:30 so it uses the complete screen leaving no room for the button Jun 10 14:11:52 anyone know how to open a share intent and get back what that intent was shared to? Jun 10 14:12:18 so you should use a relative layout and make the table go from top to the button, this makes sure your button has enough room Jun 10 14:12:36 frankdoyle: openActivityForResult Jun 10 14:14:09 danijoo: ty! it works now. How do I set frames around my table? and why isnt the scoreTextView showing white strings? Jun 10 14:14:49 tabello: copy and paste error :) Jun 10 14:15:00 final TextView scoreTextView = new TextView( getActivity() ); Jun 10 14:15:00 nameTextView.setTextColor( Color.WHITE ); Jun 10 14:15:15 you are setting the white color to the nameTextView and not score Jun 10 14:15:34 what you mean with frames? A padding around the table? Jun 10 14:18:07 danijoo: hehe oops, sometimes it takes someone else to spot such obvious stupid mistakes :) Jun 10 14:18:30 yeah. the bugs that dont throw exceptions are always the hardest to spot :p Jun 10 14:18:53 "missing the forst for the trees" - syndrome :p Jun 10 14:21:59 danijoo: startActivityForResult comes back with a null intent on a successful share from google plus, and ive read it will do so with others as well. any ideas why that might be? Jun 10 14:22:34 frankdoyle: No I dont. Maybe the google devs want it that way Jun 10 14:24:13 figured that'd be it, thanks anyway Jun 10 14:39:46 Should calls to HttpClient.execute happen inside of an AsyncTask? I'm using execute(HttpGet, ResponseHandler). Jun 10 14:40:54 I was thinking that specifying a ResponseHandler means I can handle the response on the UI thread.. is that wrong? Jun 10 14:41:30 I get a Caused by: java.lang.OutOfMemoryError: bitmap size exceeds VM budget on 2.3 but not on 4.1+ (line: setContentView(layoutRes);). why? Jun 10 14:46:37 someone? Jun 10 14:47:49 There's some Scala Android fanatics here aren't there? Jun 10 14:48:04 yoavst: your bitmap is too big Jun 10 14:48:22 (or other bitmaps in your app) Jun 10 14:48:48 BoD, it is a layout file Jun 10 14:49:05 is there a way to make the bitmaps small in the file? Jun 10 14:49:19 resize it? Jun 10 14:50:52 yoavst: if you haven't already, make sure you're providing differently sized bitmaps for different density screens Jun 10 14:51:55 DallasG, I know I should, but I was hired to work on someone's app that I think never heard about diffrent density screens and the app has more then 100 pictures Jun 10 14:52:50 yeah, that's a potential problem… Jun 10 14:59:10 I have a Spinner and load data into it from an ArrayList. Instead of displaying the Strings of the elements of the ArrayList I get entries in the form of com.package.name.Type@41d8dc70 etc. hex addresses. Any ideas where I could be going wrong? Jun 10 15:01:33 you didn't implement toString in Type Jun 10 15:03:01 Yep. Jun 10 15:03:02 jaynewstrom: checked the Picasso code now, you're right - I need to implement my own HttpResponseCache Jun 10 15:03:24 jaynewstrom: and it doesn't use OkHttp unless it's installed, I thought OkHttp was required not optional Jun 10 15:03:43 snowpong: that's correct. Jun 10 15:03:58 snowpong: i have found that the default disk cache in okhttp works just fine for me Jun 10 15:05:00 DallasG, it point me error on Caused by: android.view.InflateException: Binary XML file line #107: Error inflating class Jun 10 15:05:12 and line 107 is: android:onClick="onMyPazam" Jun 10 15:05:41 jaynewstrom: yeah, but I need control over when files in the disk cache are deleted, so no matter I need to custome stuff a bit Jun 10 15:06:00 s/custome/customize/ Jun 10 15:35:38 I want to reset my spinner A to contain no items, when another item is selected in Spinner B. I have an onSelectedItemListener for Spinner B that does a setAdapter(null). It is not updating though. Do I need to refresh the UI after that call? Jun 10 15:46:28 For some reason the listener is only called once in onCreate. Jun 10 15:47:28 barq: you might want to paste your code Jun 10 15:52:16 Is setAdapter(null) correct though? It gives nullpointerexceptions Jun 10 15:53:38 Need to flash a kernel for a friend w/custom recovery that's 4hrs away (so I can't physically hold the phone). Jun 10 15:54:24 Is there a way for him to stream his phone to me? Jun 10 15:55:45 Has anyone used Haskell on Android yet? Jun 10 15:59:36 I think I am very confused as to how grid layout is supposed to work Jun 10 15:59:51 join #Haskell Jun 10 15:59:53 ahhh Jun 10 16:11:40 Would setting android:windowBackground to @null in theme and `getWindow().setBackgroundDrawable(null);` in activity result in the same thing? Jun 10 16:25:21 Hey any big gradle guys around? Jun 10 16:25:59 i'm only normal sized but am a gradle guy Jun 10 16:27:03 JakeWharton: ever import ant tasks into it? Jun 10 16:27:09 the documentation is throwing me off Jun 10 16:27:19 I'm on the bigger side, but I'm also gradle-y Jun 10 16:27:30 * DallasG walks away slowly Jun 10 16:29:37 i've got about 5 super simple ant scripts (no build.xmls) that basically run bash arguments that im trying to import into one gradle build. i want each ant script to be its own project Jun 10 16:29:56 basically this; https://s3.amazonaws.com/uploads.hipchat.com/61380/423323/7wEcS9TlW7JrJl9/upload.png Jun 10 16:30:26 Hey androids, I've upgraded to the new Gradle and AS (0.6.0), and it broke my Android Annotations. Could someone help me rewrite my build.gradle to support the new generated sources directory structure? build.gradle: https://gist.github.com/MarkyC/e78a7f6735ee8e1ddebf Jun 10 16:34:49 JakeWharton: what is the best way to make OkHttp use two cache directories? One for explicitly offlined content (not to be deleted), and another which is the default normal disk cache with max-size of 10MB or whatever Jun 10 16:39:52 Cant Jun 10 16:39:53 How does one get a ListView to resize to fill after translation? Jun 10 16:40:23 I want to .zip some RxJava Observables of arbitrary type. Is there any way to vary the type parameters of the Func or do I have to have a separate .zip for every combination of types I might use? Jun 10 16:40:26 You could have two distinct clients with their own disk cache Jun 10 16:40:47 The latter seems frightening. Jun 10 16:43:29 I setTranslationY() for the ListView, but it doesn't resize after moving, why is that? Jun 10 16:45:13 Because translationY just moves it Jun 10 16:45:41 but if match_parent is set, shouldn't it fill up, how can I force this behavior? Jun 10 16:46:14 If it's match_parent, then yes, it will be the same size as the parent Jun 10 16:46:20 No matter how much you move it Jun 10 16:46:21 colintheshots: any code to describe what you need? Not sure what you.mean Jun 10 16:47:34 It appears that updating android-apt fixed my problem. But could someone shed some insight as to what the (seemingly magic) constant GENERATED_FOLDER does? `java.srcDirs = ['src/main/java', 'GENERATED_FOLDER']` Jun 10 16:47:47 f2prateek: I’m writing code to zip Observables from several network responses, but I’d prefer to observe the cache instead if it’s valid. My hack for now is to pass Observable.just(new Response()), but I’d prefer to actually observe when the cache returns a value. Jun 10 16:47:52 Is there no border on tables? just tableLayout.setBorderSize( size ); tableLayout.setBorder( true ); ? nothing simple like that? I have to use a Shape for each item in my table? Jun 10 16:49:13 f2prateek: Using ORMlite for my database cache. Jun 10 16:52:19 Zip would work in a strict sequence, so if you zip a cached value and network value, you're only notified once both emit. Jun 10 16:53:02 f2prateek: That’s fine, but I’m looking for a way to vary which one it accepts so only one gets sent. Jun 10 16:53:17 f2prateek: The network response is coming back as a large POJO containing a collection of objects and I’m creating the cache observable from Observable.from(Dao). They’re not exactly compatible so they don’t have the same type. Jun 10 16:54:51 Hmm, there’s no way the cache observable will work unless I create a collection anyways. I guess they’re incompatible in more ways than one. Jun 10 16:55:17 I successfully overrode the onConfigurationChanged event, but now my layout does not auto-flip from portrait to landscape. Is there something easy that I am missing? Or is there a way to manually specify which portrait/landscape layout to use in the onConfigurationChanged function? Jun 10 16:56:48 f2prateek: To clarify, I have four network requests and most have different cache expirations. Jun 10 16:57:11 Jonathan_Eyre: It "auto-flips" because the activity is re-created by default.. With configChanges you've told the framework not to re-create it, so it's up to you to set the new content view Jun 10 16:57:18 Just found this, hopefully all answer are inside: http://www.devahead.com/blog/2012/01/preserving-the-state-of-an-android-webview-on-screen-orientation-change/ Jun 10 16:57:40 SimonVT: Right. Jun 10 16:58:08 colintheshots: a publishsubject could help. You emit to the subject so clients don't know the difference, but your internal implementation would change a bit. Look up the cache, if it exists, emit an item, if not, fire your requests. Jun 10 16:58:55 f2prateek: Thanks, that makes sense. So I could zip the Observable results of the PublishSubject to hide the implementation details. Jun 10 17:00:00 should the ListView's height and its container's height be set to match_parent? It doesn't resize.. Jun 10 17:11:35 just upgraded OKHttp from 1.5 to 1.6 and I'm getting an error about OkUrlFactory not being found Jun 10 17:12:09 Might need the urlconnection artifact Jun 10 17:12:10 when using Client OkClient(OkHttpClient client) Jun 10 17:18:44 so if I want to set a Client for a retrofit RestAdapter, how would I build it using OkHttp 2.0 and Retrofit 1.6? Jun 10 17:19:53 java.lang.NoClassDefFoundError: com.squareup.okhttp.OkUrlFactory at retrofit.client.OkClient.(OkClient.java:41) Jun 10 17:20:44 There's an PR on the project that shows you how to do it Jun 10 17:21:08 on okhttp or retrofit? Jun 10 17:21:29 Retrofit Jun 10 17:23:16 https://github.com/square/retrofit/pull/499? Jun 10 17:23:18 alright, so I got the dalvik version of clojure-1.6.0.jar working, but i'm still not fully grasping how to get a basic repl working. Is there an example somewhere, that I could just steal? Jun 10 17:23:27 here's what it looks like so far I need more help http://pastebin.com/fgZFgfFM Jun 10 17:23:47 you guys have been a great help so far Jun 10 17:24:13 shekibobo: add okhttp-urlconnection Jun 10 17:24:49 JakeWharton: in gradle? Jun 10 17:25:32 woops, I made a mistake, http://pastebin.com/uYW2jYyp Jun 10 17:26:05 anyways, it's throwing a null-pointer for strObject = read_string.invoke(str) Jun 10 17:26:15 on line 30 Jun 10 17:26:59 JakeWharton: thanks, compile 'com.squareup.okhttp:okhttp-urlconnection:2.0.+' did it Jun 10 17:32:07 anyone using aquery ? Jun 10 17:35:52 Hey guys, any recomendations for databases for android other then ORMLite? Jun 10 17:36:33 what's wrong with ormlite Jun 10 17:37:57 there was some alternatives Jun 10 17:38:06 green dao and... Jun 10 17:38:26 Zharf nothing :) Just checking :) Jun 10 17:38:55 one more Jun 10 17:38:58 cant remember Jun 10 17:38:59 and.. Jun 10 17:39:06 jooq supports android AFAIK Jun 10 17:39:11 and jooq is awesome ;) Jun 10 17:39:31 https://www.youtube.com/watch?v=jR4OtA8kArQ Jun 10 17:43:25 Hello, anyone know how to stop a low level deamon thread / process from java code? (I start the process, but do not necessarily retain the reference) Jun 10 17:44:04 http://stackoverflow.com/questions/8542326/android-how-to-get-the-processname-or-packagename-by-using-pid Jun 10 17:44:21 ah not this Jun 10 17:44:22 anyway Jun 10 17:44:24 gonna sleep Jun 10 17:44:26 goodnight Jun 10 17:44:30 night Jun 10 17:44:31 thanks tho Jun 10 17:47:18 new android developer here... Jun 10 17:47:27 does android support a global proxy yet? is it coming? Jun 10 17:47:46 And will that global proxy support https? Jun 10 18:00:07 One more question and other libs simmilar to Crouton? Or something like expanded Toast Jun 10 18:00:48 ArcaneWater what are you looking for> Jun 10 18:01:21 gordon_: jooq was interesting. If you point to your remote database anyone can find that in your source code. Would you just use this for local databases? Jun 10 18:01:31 lasserix some fancy thing for information what app is doing. Jun 10 18:01:44 popupmenu? Jun 10 18:01:49 gordon_: sorry didnt notice you left Jun 10 18:01:58 popupwindow Jun 10 18:02:01 ArcaneWater: you targeting 2.1 or 4? Jun 10 18:02:06 ^^ popupwindow Jun 10 18:02:09 that's what i meant ;p Jun 10 18:32:30 what odes it mean in the ide, AnnotationName expected instead (error invariable declaration)? Jun 10 18:32:39 *does Jun 10 18:35:18 Any idea how to prevent the Facebook login button to change from log in to log out? Jun 10 18:40:15 nineoldandroids :) Jun 10 18:40:32 jesus i hope not Jun 10 18:40:49 heh - I saw your name getting mentioned and thought ... I've seen that nick :D Jun 10 18:41:27 Wharton is fairly well-known for his infrequent but controversial appearances in magazines devoted to pigeons. Jun 10 18:42:04 hahahaha Jun 10 18:42:32 Wjat Jun 10 18:43:02 seems we @ moz are thinking about animations for pre-HC situations Jun 10 18:43:06 What's the cleanest way to get a list of running processes (not just "android processes" but all processing,ie what'd you get running adb shell ps) Jun 10 18:45:18 ActivityManager.getRunningAppProcesses is the only thing I can think of off the top of my head Jun 10 18:46:07 Possibly also getRunningTasks, or the one for services, looking at the docs. Jun 10 18:46:53 Not sure how what subset of all processes that is though. Jun 10 18:47:16 not the ones i need Jun 10 18:47:22 well i can just do runtime.exec Jun 10 18:47:25 Most of that info's probably fairly useless to anything other than blight-like task manager apps. Jun 10 18:47:37 but was hoping there was cleaner eay: ie one i dont have to parse the output for Jun 10 18:47:56 Wouldn't count on it Jun 10 18:48:05 not that that's difficult, just feeling exceptionally lazy and library dependent today :) Jun 10 18:48:38 Could I get some advice on what might be the best way to go about implementing a UI design. I feel like I am going nuts with the nesting of Linear and Relative layouts at the moment. https://docs.google.com/drawings/d/1NT1MsTbuaTzGgv9EoYDo9W8-u97xqUF83bDZGq8loJI/edit?usp=sharing Jun 10 18:49:58 I don't know what you're asking for advice on with five boxes Jun 10 18:50:14 What're you trying to show the user? Jun 10 18:50:40 The two bigger boxes are relativelayouts that contain some details. the bottom three boxes are buttons. im trying to leave some space to the right Jun 10 18:50:41 And, for that matter, what should they be able to do with what you're showing them? Jun 10 18:51:46 Does the user interact with the details? Jun 10 18:53:00 Nilium_ yeah, the user interacts with various things in the details, and the buttons at the bottom. but mainly im curious about the higher level layout implementation. I hate how much nesting I am doing at the moment. Was wondering if maybe a grid layout might be better. Jun 10 18:53:14 Might be. Depends on the data. Jun 10 18:54:07 Nilium_ I think one problem I had with a grid layout was that I couldn't use relative layouts for the two bigger portions, which are currently defined already in a portrait layout. Jun 10 18:54:35 Anyway, something to keep in mind, but most people are going to be right handed, so if the user's going to be using that stuff the most, put it on the right. Jun 10 18:54:54 Someone's thumb will thank you later. You can always add a left-handed thing to swap layouts later. Jun 10 18:55:39 Nilium_ that's a good point Jun 10 18:55:50 Besides that, the easiest way to decide if nesting is necessary is to see how much you can cram into a single RelativeLayout Jun 10 18:59:32 Also keep in mind there are generally conventions for ordering of positive/neutral/negative interactions Jun 10 18:59:37 so try to follow those Jun 10 18:59:59 (no idea what buttons you're adding) Jun 10 19:00:48 mattblang: you want bottom3 to always take up full width? Jun 10 19:00:55 Pretty much. Just avoid convention when it's obviously going to make something worse. Jun 10 19:00:59 It occasionally happens. Jun 10 19:01:10 probably relative layout with below below the linearlayout with width = 0 weight = 1 for each Jun 10 19:01:23 assuming you want that bottom row to alwasy take up full width Jun 10 19:01:41 mattblang: you can also use http://developer.android.com/tools/help/hierarchy-viewer.html Jun 10 19:01:54 Watchin' me a youtube video of a GINNA PAG and a cat Jun 10 19:02:04 lasserix yeah, I do want it to take up full width. i've actually got something really close to working, but the top two bigger boxes extend the full width and I can't get them to only be 2/3 Jun 10 19:02:20 oh you always want them to be 2/3? Jun 10 19:02:32 Ginna pags are adorable. Jun 10 19:02:36 lasserix was thinking I could maybe wrap again in a nested LL and use weight, but it started getting kind of crazy. I can't remember what was happening but I couldn't get it to work Jun 10 19:02:57 lasserix yeah, the bottom three buttons always extend the full width, and the top two bigger boxes are 2/3 Jun 10 19:03:10 lasserix which the two bigger boxes are currently relative layouts that have some various things in them Jun 10 19:03:20 welll if you are not afraid to set layout params you canuse above idea then just manually set the width of the first two once you know the dimensions of the screen by using layoutparams in code Jun 10 19:03:37 lasserix yeah, i'd like to avoid that if possible Jun 10 19:03:38 oh Jun 10 19:03:51 the two big squares are containers themselves? Jun 10 19:03:56 lasserix yeah Jun 10 19:04:09 then i would extend relative layout for each of them Jun 10 19:04:12 then override onMeasure Jun 10 19:04:20 and just grab the dimensions from the screen Jun 10 19:04:20 One day I will get another ginna pag. Jun 10 19:04:26 I will name it Burrito. Jun 10 19:04:37 are you prematurly optimizing? Jun 10 19:04:51 or were just having a problem getting it working at all? Jun 10 19:05:12 lasserix I probably am prematurly optimizing to be honest, because I think I see how I can get it with a seriesof nested RL and LL Jun 10 19:05:32 lasserix I had read about grid layout, and table layout though, and wondered if that would be better suited Jun 10 19:05:56 I'd say get the layout right before worrying too much about nesting. Jun 10 19:06:01 technically subclassing one of these viewgroups and just generating this stuff in code is the best way if you are optimizing Jun 10 19:06:12 but sounds like you are prematurely optimizing Jun 10 19:06:31 If the layout's wrong because of the nesting, then fiddle with stuff. Jun 10 19:06:52 Nilium_, lasserix yeah, I think yall are right. Jun 10 19:07:05 wait one sec ill have something for you Jun 10 19:07:07 Nilium_, lasserix how bad is it to do a linear layout of linear layouts to create a grid, lol Jun 10 19:07:18 Probably pretty bad. Jun 10 19:07:30 Can anyone help me organise my native app? Jun 10 19:07:33 Especially since the columns (or rows) could end up misaligned Jun 10 19:07:45 I've got a few issues with library handling, Jun 10 19:07:46 If you need a grid, use a grid. Jun 10 19:11:38 ahh that is a nasty problem Jun 10 19:11:42 the only way to feasible do it Jun 10 19:11:48 is do some stuff from code Jun 10 19:18:24 Hello guys?! Im developing an android library project? Can i get the activity and context instance without receive it by method params? Jun 10 19:23:58 no Jun 10 19:25:10 How can I access some method from shared object in JNI on Android Studio? Jun 10 19:26:55 are there some obvious reasons that eclipse might be extremely slow? Jun 10 19:27:18 Yes, lack of enough memory. Jun 10 19:29:20 has anyone worked with the instagram api? Jun 10 19:30:45 i just start to like android studio more tools i think:) Jun 10 19:31:09 anyone know if it's possible to use multiple cursor selection like in SublimeText? Jun 10 19:31:13 in android studio Jun 10 19:31:57 sogard: ty. Also, do you know why under windows Eclipse cannot be pinned to the taskbar while running? Jun 10 19:32:07 Yes, use Alt + Shift. Jun 10 19:32:22 I don't use Windows, sorry. Jun 10 19:32:22 on windows i've pinned a shortcut to the exe to the taskbar Jun 10 19:32:28 https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=multiple%20cursor%20selection%20like%20in%20SublimeText%20android%20studio Jun 10 19:32:46 while it's running i get two icons in the taskbar, but it's not too much of a big deal Jun 10 19:33:09 KaylieG: Thats what I did, and I have the exact same thing. Ive never seen anything like this. So strange. Jun 10 19:33:22 Use MMouse button or Alt-Shift for multiple cursor in Android Studio. Jun 10 19:33:32 i think they are both different environments or something Jun 10 19:33:42 jamesson: because it's running inside of the JVM Jun 10 19:33:57 because until we select the workspace, it's still the first one that's open Jun 10 19:34:14 so if you have a default workspace you won't notice it Jun 10 19:34:30 How about shared objects methods in JNI? Jun 10 19:34:47 JakeWharton: Ah, OK. mildly irritating, fortunately my taskbar is not packed enought that its a problem yet Jun 10 19:35:10 my taskbar is rally packed, like literally one more shortcut and it overflows Jun 10 19:37:14 KaylieG: I havent bothered to put Autodesk or Adobe stuffs yet, but I think I will make a stack so its just 1 icon apiece. But I also need to put cit=ruitstuff and musicstuff Jun 10 19:37:22 *circuitstuff Jun 10 19:37:49 oh i'm even using the taskbar for mundane things like paint and notepad Jun 10 19:38:03 even task manager, despite having shortcut keys Jun 10 19:38:41 guys how is android studio compared to eclipse? Jun 10 19:38:50 is shifting recommended? Jun 10 19:39:19 I cannot remember last time I opened notepad, althoI will pin taskman now you mention it Jun 10 19:39:33 KaylieG: say it with me: Never buy the latest version :) Jun 10 19:40:01 The only hard and fast rule in IT that I know of :) Jun 10 19:40:46 too many bugs? Jun 10 19:41:44 KaylieG: Too many questions :) Jun 10 19:42:17 KaylieG: Who knows? Who cares :) Jun 10 19:42:19 was wondering, is there something wrong with this code? (defn foo [a] (str "Hello " a "!")) Jun 10 19:43:08 KaylieG: Are you familiar with the term, "rice" outside its normal use? Jun 10 19:43:16 nope Jun 10 19:44:41 KaylieG: http://funroll-loops.info/. Basically my opinion on people who tell me they have the latest anything :) Jun 10 19:44:56 Say my app does not override configuration changes, and thus an Activity is killed and recreated when a user rotates their device. Can a bound service somehow stay alive when the Activity is killed and have the recreated Activity bind to it? Jun 10 19:47:45 yeah Jun 10 19:47:49 override on configuration changed Jun 10 19:47:51 pass the reference Jun 10 19:48:46 i guess i might not be advanced enough to appreciate that site Jun 10 19:49:27 lasserix: Is this the only way? The reason I ask is because when I override onConfigurationChange (and set the manifest) I call setContentView and get a blank screen (I think it may be due to ActionBarSherlock) Jun 10 19:50:01 i doubt its abs Jun 10 19:50:07 but you are using fragments? Jun 10 19:50:13 lasserix: yes Jun 10 19:50:14 anybody having trouble with AS 0.6.0 + newest gradle + the applicationIdSuffix gradle method? Jun 10 19:50:24 gradle is convinced that doesn't exist Jun 10 19:50:26 then bind your service in a nonui fragment that has setretaininstance to true Jun 10 19:50:30 but applicationid works Jun 10 19:50:34 Stop using ABS! Jun 10 19:51:06 *by bind, i mean save your serviceconnection in that? Jun 10 19:51:09 s1gmab3ta: double check tools were updated from the SDK manager. Jun 10 19:51:22 but you should really figure out hte cause of your blank screen cause that is a serious problem Jun 10 19:51:54 lasserix, Nilium_ I think I got it. Here is the hiearchy. It goes pretty deep, but it doesnt seem that bad when loading (it's not a list view or anything, just a dashboard UI). http://pastebin.com/JYWf0gU3 Jun 10 19:52:25 You have only one thing in a RelativeLayout - why? Jun 10 19:52:27 lasserix, Nilium_ but for some reason I am left feeling like I overcomplicated it, lol Jun 10 19:53:07 MarkyC, all updates available have been downloaded Jun 10 19:53:13 You also have only one thing in the second LinearLayout from the bottom. Jun 10 19:53:24 If you have layouts with only one thing in them, the layout's pointless. Jun 10 19:53:36 Actually, belay that, now that I look carefully it seems applicationIdSuffix only doesn't work when I'm defining productFlavors, in buildTypes it seems to work Jun 10 19:53:37 Nilium_ yeah, im leaving out some other views Jun 10 19:53:41 Nilium_ just put the layouts Jun 10 20:01:25 Alright, so I think i've exhausted my efforts, i'm trying to get clojure to work on android, and it's being very fussy. I can load and use parts of the clojure.core library, but any efforts to include any scripts I write myself results in NullPointerExceptions with no clear indication why. Jun 10 20:01:57 Why Clojure? Jun 10 20:02:14 Does anyone know the proper way to define the intent action for a service that is not exported? Jun 10 20:02:18 sogard: what would you suggest? Jun 10 20:02:23 Has anyone got any Idea how to use an SO library in JNI? Jun 10 20:02:32 Scala is decent and it's easy to include. Jun 10 20:02:32 I tried jython, there is no dalvik implementation of that Jun 10 20:02:37 I tried JRuby, same deal Jun 10 20:02:41 And there's also Scaloid. Jun 10 20:02:50 Which is pretty nice. Jun 10 20:02:52 i need to include it *within an existing project* Jun 10 20:03:01 So? Jun 10 20:03:12 You can use scala in combination with Java. Jun 10 20:03:15 Scala* Jun 10 20:03:15 mattblang: those linearlayouts inside the relativelayouts: are those necessary? Jun 10 20:03:23 the problem is, the .jar needs to be generated using the Dalvik version of the JVM Jun 10 20:03:38 lasserix let me get you a better drawing, one moment Jun 10 20:03:39 it can't use the Standard JVM Jun 10 20:03:44 Yes, I know. Jun 10 20:03:58 Take a look: https://github.com/pocorall/scaloid Jun 10 20:05:01 Or even: https://groups.google.com/forum/#!topic/scala-on-android/yc_bozVYJG8 Jun 10 20:07:00 regardless, I have 0 experience with scala, it was a language I was considering learning Jun 10 20:07:10 my #1 languge I wanted to use was Jython Jun 10 20:07:13 but it didn't work Jun 10 20:07:23 clojure is a nice alternative Jun 10 20:07:47 I even found a dalvik compiled version through https://github.com/clojure-android/clojure Jun 10 20:07:59 which compiled and "somewhat" works Jun 10 20:08:14 But I'm pretty sure it's going to be hard to implement. Jun 10 20:08:19 Why doesn't jython work? Jun 10 20:08:56 bacon1989 i was interested in clohure too for android, but i guess its too slow Jun 10 20:09:02 *clojure Jun 10 20:09:11 It shouldn't be slow. Jun 10 20:09:23 hard on the GC, long runtime startup, etc Jun 10 20:09:38 The startup yeah, but I'm sure the GC will be good. Jun 10 20:12:01 Can someone please help me with SO files? Jun 10 20:14:23 To anyone with experience writing background services: is there a different way I should be handling starting of the service from this Fragment? I want it to be started by a Switch, then bound to whenever the Fragment is resumed (if the service is already running). However, I get serviceconnection leaks when leaving/re-entering the app a couple of times. https://github.com/culmor30/Bluetooth-Proximity-Lock/blob/ Jun 10 20:14:24 master/Bluetooth%20Proximity%20Lock/src/main/java/com/javadog/bluetoothproximitylock/BluetoothFragment.java#L139 Jun 10 20:14:39 that was very useful, IRC. here: https://github.com/culmor30/Bluetooth-Proximity-Lock/blob/master/Bluetooth%20Proximity%20Lock/src/main/java/com/javadog/bluetoothproximitylock/BluetoothFragment.java#L139 Jun 10 20:16:41 lasserix, Nilium_ see if this helps, haha. I did find one LinearLayout that was pointless, marked it with an X. http://i.imgur.com/prVdLR9.png Jun 10 20:17:44 Wouldn't know since I have no idea exactly how much stuff is going to be in that relative layout Jun 10 20:18:01 So use your best judgment. Jun 10 20:18:58 hi Jun 10 20:19:57 what does google mean by "a developer in good standing" in its developer distribution agreement? Jun 10 20:20:23 and how do i get verified without actually accepting the agreement (which is a precondition of agreeing) Jun 10 20:38:31 Hi, can someone help me with setting up USB Debugging on my device? Jun 10 20:40:59 Anyone know why "No Such Process Exists" is the cmd line output i get anytime i try and use kill ? Jun 10 20:41:23 (assuming ive su'd) Jun 10 20:41:54 you are using the wrong pid? Jun 10 20:42:02 _any pid_ Jun 10 20:43:37 Also why doesn't the messeneger remote service example use a static handler inner class? Jun 10 20:44:16 i don't know that example Jun 10 20:44:34 lasserix, is the process running after you issued the kill command? Jun 10 20:44:56 how do i watch a variable in android studio? Jun 10 20:45:27 EPG yes Jun 10 20:45:29 Does anyone happen to know if adb backup copies file by file, or if it copies all the blocks in the filesystem? Jun 10 20:45:56 EPG like i said, it says such process/pid doesn't exist but i tried it on any of the pids i get from ps'ing and it says that Jun 10 20:46:28 ok, which device/ROM? Jun 10 20:46:34 Anyone have any idea on my problem? Even common Service lifecycle tips are welcome; it's my first time working with them Jun 10 20:47:08 I´ve just tested it on my Nexus 7 2013 Stock 4.3.1 where it works w/o problem (using SuperSU if this matters) Jun 10 20:47:25 kill command from toolbox Jun 10 20:50:46 EPG: n5 can't remember which rom Jun 10 20:50:59 can you paste the command so i can see Jun 10 20:51:10 maybe i am misspelling something foolishly or something Jun 10 20:51:23 just ps to get the pid and kill to kill, all via adb and su Jun 10 20:51:33 yeah Jun 10 20:51:34 weird Jun 10 20:51:45 JavaDog: your link doesn't work Jun 10 20:52:02 This one should https://github.com/culmor30/Bluetooth-Proximity-Lock/blob/master/Bluetooth%20Proximity%20Lock/src/main/java/com/javadog/bluetoothproximitylock/BluetoothFragment.java#L139 Jun 10 20:52:40 lasserix, no issues on my N5 (Stock 4.4.3) Jun 10 20:53:53 Has development on the AT&T/Telus hTC One X+ been officially dropped? Jun 10 20:55:38 I do know one thing, this is the last time I buy a carrier branded (but unlocked) phone Jun 10 20:55:46 From now on, factory unlocked phones Jun 10 20:57:55 i'm about to install a newer version of busybox, it's offering either /system/xbin or /system/bin install location, which is better? Jun 10 20:58:10 this is on a nexus 5 Jun 10 20:59:34 DryEagle: #android-root Jun 10 21:00:04 ta Jun 10 21:10:10 anyone ever tried any of the services available for making promotional videos for apps? Jun 10 21:21:57 g00s: new jetbrains product - http://www.jetbrains.com/dbe/features/ Jun 10 21:22:23 bankai_au yeah i saw that , cool thanks Jun 10 21:22:41 i think you meant "oh wow, bankai, that's really exciting" Jun 10 21:22:54 well, doesn't support sqlite Jun 10 21:23:01 sure does Jun 10 21:23:01 OH it does Jun 10 21:23:31 bit overkill just for that though, sqlite is pretty dumb Jun 10 21:23:32 hm, probably through those crazy sqlite jdbc drivers Jun 10 21:24:28 at dhl we used Toad Jun 10 21:25:02 and something else, can't remember Jun 10 21:27:03 bankai_au have you used it yet? Jun 10 21:27:39 nuh, i have no need for it right now, but it's jetbrains, so no doubt i'll install it at some stage ;) Jun 10 21:28:41 i took a little while off from android, now looking at my code - wondering, wtf is all this shit for Jun 10 21:29:47 oh, it's called 'java' Jun 10 21:31:35 i'm trying to get a deeper understanding of rx - schedulers, subscriptions etc. feels like a lot of this is way over my head Jun 10 21:31:56 To anyone with experience writing background services: is there a different way I should be handling starting of the service from this Fragment? I want it to be started by a Switch, then bound to whenever the Fragment is resumed (if the service is already running). However, I get serviceconnection leaks when leaving/re-entering the app a couple of times. Jun 10 21:32:02 This one should https://github.com/culmor30/Bluetooth-Proximity-Lock/blob/master/Bluetooth%20Proximity%20Lock/src/main/java/com/javadog/bluetoothproximitylock/BluetoothFragment.java#L139 Jun 10 21:32:07 bankai_au become famous, start RxSwift ! Jun 10 21:32:26 eww no thanks Jun 10 21:32:26 Uh, ignore "this one should". Pasting old messages because nobody helped me :| Jun 10 21:33:29 ORM? Jun 10 21:34:44 object relational mapping. Jun 10 21:37:48 JavaDog i would just bind to the service from the fragment in onstart/onstop regardless Jun 10 21:37:58 unbind in onstop Jun 10 21:38:25 shouldn't have any problems - but there was an old bug about binders leaking, meh too tired to find it Jun 10 21:50:04 g00s: Shouldn't have an old bug problem... targeting 4.3 Jun 10 21:50:17 it was never fixed Jun 10 21:53:29 https://code.google.com/p/android/issues/detail?id=6426 Jun 10 21:55:49 For a quiz kind of game would you use Fragments or Navigation Drawer? Jun 10 21:57:04 Actually, probably no Jun 10 22:04:10 i think the end of adobe is coming soon Jun 10 22:04:42 a few months ago they disbanded their 'core-tech' team, basically the domain experts that design the magical algorithms Jun 10 22:04:46 outsourced all of it Jun 10 22:05:46 well, adobe as we know it - seems like they want to pivot into analytics / marketing Jun 10 22:09:56 Is it cool to use RelativeLayout lately? Jun 10 22:10:05 yes Jun 10 22:10:09 it always has been Jun 10 22:11:20 ugh Jun 10 22:11:46 anyone know how to install usb debugging drivers for hip street equinox 4 Jun 10 22:11:56 its driving me to the brink of insanity Jun 10 22:12:03 it thinks its a MTP device Jun 10 22:12:19 so it wont use the drivers i tried Jun 10 22:12:46 all i need is for it to be accessable from adb Jun 10 22:14:38 g00s: Well that's an annoying bug, but I'm glad it's not my fault. Workaround time.... Jun 10 22:14:54 thanks for the assistance Jun 10 22:16:07 g00s: Would the preferred wordaround just be to... not unbind from my service? Jun 10 22:16:19 workaround* Jun 10 22:16:35 JavaDog you must unbind. there is a fix using weakref somewhere Jun 10 22:17:10 i'd just get the basic thing working for now, worry about that leak later. its kinda minor Jun 10 22:18:48 Basic thing is mostly working. I've just spent the past day trying to figure out why re-entering my activity messed everything up Jun 10 22:22:49 g00s: I can't seem to find this weakref fix you speak of. Do you remember what it entailed (ie. do I only use a weakref to refer to the binder)? Jun 10 22:25:35 hm, the original blog post went away Jun 10 22:25:54 its very simple Jun 10 22:26:36 http://www.mongrel-phones.com.au/default/how_to_make_a_local_service_and_bind_to_it_in_android Jun 10 22:26:48 see public class LocalBinder extends Binder Jun 10 22:27:28 Ah, thanks Jun 10 22:46:53 so i interviewed for an android dev position at this place today Jun 10 22:47:08 and i asked "do you guys use dependency injection?" Jun 10 22:47:29 and they were like, "do you mean git submodules?" Jun 10 22:47:33 :| Jun 10 22:49:34 :) Jun 10 22:51:25 https://www.youtube.com/watch?v=JHixeIr_6BM this is very clever Jun 10 22:51:36 I mentioned Otto in an android interview and both interviewers faces went blank Jun 10 22:53:10 How did they send a fake message to everyone in a theater? Jun 10 22:53:13 i would expect devs to know what dep injection is, even if they don't use it :S Jun 10 22:54:31 JavaDog: location based broadcasts Jun 10 22:54:43 Oh, cell broadcasts? Jun 10 22:54:53 bankai_au: that video is depressing Jun 10 22:54:56 i don't know if it works exactly how it's shown there though Jun 10 22:55:04 maybe it was an amber alert :) Jun 10 23:02:16 hello friends Jun 10 23:02:31 friends? :S Jun 10 23:03:16 yes! friends Jun 10 23:22:25 I'm using an ActionbarActivity with a FragmentPagerAdapter... should it be okay to unbind from a started service (application context) from within one of the Fragments' onPause methods? Jun 10 23:24:12 what Jun 10 23:24:38 So I have a Fragment, right? Jun 10 23:25:02 Is it okay to call getActivity().unbindService(serviceConnection) from within that Fragment's onPause? Jun 10 23:25:31 because it doesn't seem to work. Jun 10 23:25:38 I guess it depends... but you wouldn't be asking if something didn't go wrong Jun 10 23:25:41 but maybe I'm just making a mistake Jun 10 23:26:46 What's going wrong: the service should keep running once started with startService(); I just want to unbind from it when the app is closed. However, exiting and re-opening the app stops the service. Jun 10 23:27:51 you're doing something wrong Jun 10 23:28:11 are you starting the service? or binding to the service? Jun 10 23:28:16 also I need t osleep so you'll have to wait for someone else to react Jun 10 23:28:20 night Jun 10 23:49:29 How do i put a string array into a fragment_main.xml? Jun 10 23:49:40 wat Jun 10 23:49:45 I mean the string array is inside strings.xml Jun 10 23:50:00 Well, you put it in strings.xml. Jun 10 23:50:16 but I want to call the function name like: myArray[] Jun 10 23:50:29 android:text="@string/exams[0]" /> Jun 10 23:50:32 It's an array, there is no function Jun 10 23:50:56 how do I call a value from the array in a xml Jun 10 23:51:22 You can't do what you're trying to do. Jun 10 23:51:34 Also, it's not a function and you don't call a string resource. Jun 10 23:52:07 It's a resource. You reference the resource. You cannot create a resource reference to a string array element. Jun 10 23:52:26 Why can't I do that? Jun 10 23:52:39 Because resources are basic. Jun 10 23:52:57 Plus it's not really something that anyone would normally want to do. Jun 10 23:52:57 Oki doki boki Jun 10 23:53:08 No but I wantet to try it out Jun 10 23:53:15 and it didn't work, so makes sense ;) Jun 10 23:54:43 Thanks Nilium_ Jun 10 23:56:55 JesusFreke: I'm starting the service (and sorry for the slow response... phone calls) Jun 10 23:57:17 Is there a known bug with the camera preview function (http://developer.android.com/training/camera/cameradirect.html) that hinders the surface view from being loaded in a virtual device? Jun 10 23:57:19 And how do you know it's being stopped? Jun 10 23:57:26 Debug log Jun 10 23:57:32 pastebin? Jun 10 23:58:37 https://github.com/culmor30/Bluetooth-Proximity-Lock/blob/master/Bluetooth%20Proximity%20Lock/src/main/java/com/javadog/bluetoothproximitylock/BluetoothFragment.java Jun 11 00:04:59 hi all Jun 11 00:07:14 JesusFreke: After starting the service with the Switch, I hit back and open the app again, and I get Bluetooth proximity service stopped./Sent local broadcast with action: com.javadog.bluetoothproximitylock.UNBIND_PLZ/BT signal strength loader stopped Jun 11 00:07:37 and the service ceases to output info every n seconds Jun 11 00:11:50 JavaDog: I would add a breakpoint to where you stop the service, and then debug the application Jun 11 00:12:27 my suspicion is that the toggle method is getting called when the activity is started again, and turning off the service Jun 11 00:12:53 the toggleBtService() method, I mean Jun 11 00:13:20 We want to integrate FB registration and login for our app. Prefferably, this would be through just one button as other apps do, but how can we do that? Jun 11 00:15:02 The only way I can think of doing it is querying the database to check if that username exists and if it does, login, else, register Jun 11 00:15:10 JesusFreke: Ah... I can't believe I didn't think of that. I think you're right, as long as setting the Switch to "on" with code would still trigger its onCheckedChangedListener Jun 11 00:15:11 Is this the normal way of doing things? Jun 11 00:15:55 And... toggleService is indeed running at app startup. Damn XD Jun 11 00:16:03 good catch, thanks a bunch Jun 11 00:16:32 np :) Jun 11 00:29:15 hey guys, I am trying to get a custom button to work. I have defined a selector for my enabled and pressed/focused state Jun 11 00:29:25 however, when I use the app through the emulator and my Droid Maxx Jun 11 00:29:35 I dont get the pressed effect Jun 11 00:29:47 What are some possible causes for an viewpager to have all blank fragments (and the wrong tab bar) when handling onConfigurationChanged()? Jun 11 00:30:57 MarkyC, where is your logic defined the pager adapter? Is it in onCreate? Jun 11 00:34:13 if I have an external device that uses both ble and gatt, what should I test first? Jun 11 00:44:51 damn it, it was the ordering of the item selectors Jun 11 00:48:52 xximjasonxx: Possibly, I'm using Android Annotations, and I set the FragmentPagerAdapter in an @AfterViews method Jun 11 00:53:28 What's weird is my ActionBarSherlock action bar changes to a list navigation when the orientation changes, when it should be a tabbed navigation Jun 11 00:53:41 when tabs don't fit Jun 11 00:53:48 also don't blame ABS, that's the behavior of the native action bar too Jun 11 00:54:12 If I /don't/ handle config changes (not an option), it shows the regular tabbed action bar in landscape Jun 11 00:54:37 JakeWharton: I'm not trying to bring down your lib! I'm just making sure potential helpers know I'm using ABS Jun 11 00:55:01 handling configuration changes prevents ABS from properly recreating itself on pre-ICS Jun 11 00:55:11 the system, however, can still do this and will change to list nav Jun 11 00:56:16 JakeWharton: my build target is API19. Min SDK is 14 Jun 11 00:56:22 why are you using ABS then? Jun 11 00:57:16 I'm using to to provide tabbed navigation that I can swipe through. Jun 11 00:58:44 that makes no sense Jun 11 00:58:59 there's better tab solutions out there! Jun 11 01:07:48 How do I make a website explicit intent to a website with the use of browser instead of my app? Jun 11 01:07:59 like when you go from Gmail to Google Chrome (when you press a link) Jun 11 01:12:45 JakeWharton: what do you recommend instead of ABS ? Jun 11 01:14:05 I suppose ActionBarCompat Jun 11 01:14:27 no Jun 11 01:14:32 no no no Jun 11 01:14:39 what then? Jun 11 01:14:45 the built in tabs! Jun 11 01:14:59 no earlier you said 'Stop using ABS' Jun 11 01:15:11 ABS is not built in Jun 11 01:15:23 use the action bar that's in the OS Jun 11 01:17:00 well I just used a linear layout for my action bar, it does the job Jun 11 01:17:28 but I guess I would use ActionBarCompat if I had to because I need my app to be 2.3 compatible Jun 11 01:18:43 wait i'm talking to two people Jun 11 01:18:56 to you, stop supporting 2.3 users with active development Jun 11 01:18:58 they're useless! Jun 11 01:19:09 leave them on an old version of your app and develop new features for API 15+ only Jun 11 01:19:14 ++ Jun 11 01:19:52 my phone is still 2.3 :P Jun 11 01:20:33 yeah we agreed to disagree on that, I still see a lot 2.3 users around me Jun 11 01:20:44 i will not agree to disagree Jun 11 01:20:53 get a new phone please Jun 11 01:21:01 help us help you Jun 11 01:21:04 I bought a Nexus tablet instead of new phone and I use that to test 4.4.3 Jun 11 01:21:27 no way, it has to work on my phone too or I'm not satisfied, sorry Jun 11 01:21:46 your phone is 4 years old Jun 11 01:21:49 old yeller it plz Jun 11 01:22:00 yes and I will use it for another 4 years :) Jun 11 01:24:35 pretty sure the only app you'll be able to use will be calculator Jun 11 01:26:29 that's the thing, I see no need to upgrade at all, because its fast and snappy, all the apps I like work fine on it Jun 11 01:26:54 if I broke it I might buy the same phone again Jun 11 01:56:44 guys, I've been stuck for hours, what is the best way to get the view to fill up the empty area after it gets translated? Jun 11 01:57:33 I have a PullToRefresh layout, I've moved it upwards based on the scroll, it moves fine, but it leaves an area empty below Jun 11 01:57:56 any screen shot? Jun 11 01:58:08 how can I make the view expand to get it to fill up that area? Jun 11 01:58:37 damn it Aquery Jun 11 01:58:46 seems like it callback extends Runnable ;/ Jun 11 01:58:56 love it... Jun 11 01:59:43 well, I'm kinda trying to get the effect of FadingActionBar Jun 11 01:59:59 the header moves up, the listview follows it Jun 11 02:04:12 razzledazzle: ontouch listener on listview Jun 11 02:04:18 and change color to translarent Jun 11 02:04:21 *transparent Jun 11 02:05:08 you cannot hide action bar i guess, you can change activity theme Jun 11 02:06:18 What does this mean: Explain how to setup a preference in resource files, and how to implement a preference activity. Also explain how to handle menu events and how to share preferences between various components? Jun 11 02:07:05 rubas: probably assets and resources Jun 11 02:07:22 So it has nothing to do with SharedPreferences between activities? Jun 11 02:07:26 or in a activity* Jun 11 02:07:31 JakeWharton: I took your advice and dropped ABS from my Activity. Jun 11 02:07:32 second one is about onOptionsItemSelected and shared preferences Jun 11 02:07:34 I am noticing that when I'm rotating the screen, the active tab (and the next tab, which I assume gets preloaded) are blank, but the next tabs (there are 8 total) load perfectly fine. So my question now becomes: is there a redraw()/invalidate() function to force a Fragment or ListView to redraw? Jun 11 02:07:43 rubas: I guess the second one does Jun 11 02:08:26 maybe Fragment has an onConfigurationChanged() method as well? Jun 11 02:08:31 http://developer.android.com/guide/topics/data/data-storage.html Jun 11 02:08:37 http://developer.android.com/training/basics/data-storage/shared-preferences.html Jun 11 02:09:03 gordon_: I made a sharedpreference, which works by there is a editText field and under there is a button, which says Save. This saves the editText field, even though I stop the application (close it) and reopen it Jun 11 02:09:22 the editText field have the same text, I left it Jun 11 02:09:33 rubas: of course it does Jun 11 02:09:40 but there are many storage options ;) Jun 11 02:09:43 MarkyC: http://developer.android.com/images/fragment_lifecycle.png Jun 11 02:10:06 gordon_: but have I implememted sharedPreferences the right way, if my app does that? Jun 11 02:10:21 when I get mobileRxData, does that get reset with a device's reboot? Jun 11 02:10:27 it depends of your scenario and what kind of data that is Jun 11 02:10:33 if it's like logged user id Jun 11 02:10:35 just a name Jun 11 02:10:37 then that's fine Jun 11 02:10:49 if it's more like messages - I'd use db Jun 11 02:10:59 name is ok Jun 11 02:11:11 gordon_: like sqLite right? I will get to that in a couple of hours :) Jun 11 02:11:14 http://developer.android.com/training/basics/data-storage/shared-preferences.html Jun 11 02:11:20 rubas: yes Jun 11 02:13:45 ok, it seems it reports bytes since the last boot. How should I keep track of all the data used? Jun 11 02:15:34 gordon_: I'm not sure that image is relevant. Which part of the lifecycle deals with configuration changes (screen orientation change) Jun 11 02:15:49 ?* Jun 11 02:16:51 Maybe it's onCreateView()? Is the Fragment returned to the layout from the backstack when a configuration change occurs? Jun 11 02:18:09 so I have the line FileOutputStream fOut = openFileOutput("maindebug.txt",MODE_WORLD_READABLE); Jun 11 02:19:34 and eclipse complains about default constructor cannot handle exception type FileNotFound Jun 11 02:19:51 but, from what I understand it's supposed to make the file, right? Jun 11 02:20:07 explain how to add a service to an application and how to use a service, e.g. for communication with BlueTooth or reading the devices buildt-in sensors. - what's the easiest way to do that? Jun 11 02:23:11 rubas: the google docs are deficient in a number of areas, but bluetooth is not one of them. Jun 11 02:23:30 jamesson: I think i'll just the GPS sensor instead Jun 11 02:23:42 huh? Jun 11 02:24:16 at any rate the google docs have multiple great samples. Check out bluetoothchat for the simplest one Jun 11 02:25:09 MarkyC: I guess onPause() will be called Jun 11 02:27:57 jamesson: it says use a service, e.g. for communication with bluetooth or reading devices built-in sensor, and I want to use the GPS instead of bluetooth to get a position Jun 11 02:30:29 rubas: what says? where? and I haven't actually seen the gps docs. There are bluetooth objects that you can access once you import the appropriate packages Jun 11 02:30:58 I would imagine that gps works similarly, but that's apropos of nothing Jun 11 02:37:58 where do find the manifest in eclipse? Jun 11 02:48:34 jamesson: AndroidManifest ? :D Jun 11 02:52:11 gordon_: o duh ty Jun 11 02:59:57 what is a "uses permission" **** ENDING LOGGING AT Wed Jun 11 02:59:59 2014