**** BEGIN LOGGING AT Fri Nov 08 02:59:58 2013 Nov 08 03:11:45 pals, is it bad to have a refresh button and pull to refresh? Nov 08 03:14:26 google analytics has a refresh button Nov 08 03:55:18 if i have a multi-project gradle build; do i really have to put " compileOptions { sourceCompatibility JavaVersion.VERSION_1_7 … } in each sub-project gradle file? Nov 08 04:02:00 g00s, tried the subProjects {} section in the parent build.gragle Nov 08 04:02:03 *d Nov 08 04:03:18 peckas Nov 08 04:03:29 I havent looked around much for games and such Nov 08 04:03:33 I think what I've realized Nov 08 04:03:42 google should immediately get rid of the in game purchases Nov 08 04:03:48 turned every game into a scam Nov 08 04:09:29 alex_PP ah, only recalled allProjects Nov 08 04:09:35 thanks i'll check that out Nov 08 04:09:56 ron_frow_ does play tell you when an app has IAPs ? Nov 08 04:10:09 I dont know Nov 08 04:10:10 or what the in app purchases are ? Nov 08 04:10:24 I think I accidentally bought something the other day playing some puzzle game Nov 08 04:10:43 "give us a 5 star review and unlock the next level free!" Nov 08 04:10:49 and it sucks shit that you get playing and games will... oh you want to play further? pay cash or invite facebook friends Nov 08 04:10:55 which basically secures revenue for them Nov 08 04:11:30 I mean most of the games look like shite anyway Nov 08 04:11:42 but their monetization is way worse Nov 08 04:11:45 i've never downloaded anything from Play store except wifi analyzer and Kindle Nov 08 04:11:48 and Firefox Nov 08 04:11:55 boy Nov 08 04:12:01 what is the point of having a smart phone =0 Nov 08 04:12:04 its a cesspool Nov 08 04:13:04 g00s: consideration for reviews is explicitly banned Nov 08 04:13:31 and we know how well the store is policed Nov 08 04:13:42 not like the app can check whether you reviewed it :) Nov 08 04:14:06 Leeds holy shit, big storm ! Nov 08 04:14:15 yeah, massive Nov 08 04:15:02 not coming anywhere particularly near HK, but it's going to flatten a swathe of the Phils... in a very selfish way, I'm worried because I'm due to be on a flight in about, oh, 20 hours, which is meant to fly through the path Nov 08 04:16:15 guys - I'm just starting out with android dev, used to do a lot of web stuff like Django etc. and am wondering a little bit about architecture of an app. If I have say hundreds of drawables (and different instances can add further images which are sent to a server to then be distributed to the other apps) - what's the most elegant way to keep track of these? use the name as key in an sqlite db? Nov 08 04:16:48 Hey I've been trying to get an answer to a question about modifying an update package (that's uploaded over adb sideload) to do a backup of data before the update. Nov 08 04:16:52 just dont mix up the concept of a drawable for ui resource Nov 08 04:17:01 vs an image Nov 08 04:17:18 joecap5: this isn't the right place for that... app dev here Nov 08 04:17:19 hmm - I'm trying to build a very simple identification app for kids Nov 08 04:17:35 you show an image and four buttons with labels and the kid selects what it is Nov 08 04:17:54 like horse.png -> horse/dog/cat/bird Nov 08 04:17:55 etc. Nov 08 04:18:07 would that then be an image or a drawable for ui resource? Nov 08 04:18:16 (sorry for the newbie questions!) Nov 08 04:18:33 well I think an image can be a drawable Nov 08 04:18:53 but typically I consider a drawable a resource that gets R.drawable.whatever Nov 08 04:19:08 whereas if say you had a hot or not app Nov 08 04:19:16 tons of pictures of people flowing through your app Nov 08 04:19:23 thats not really gonna end up being a drawable Nov 08 04:19:27 not maintainable that way Nov 08 04:19:44 throw it in a db, or a folder of images or whatever Nov 08 04:20:04 ok yeah - that's what I was kind of worrying about ;-) - because I hacked together a prototype with drawable but that didn't seem very extendable... Nov 08 04:20:35 plus the other thing Nov 08 04:20:41 dalvik has resource limits Nov 08 04:20:46 so if you had a ton of images Nov 08 04:20:56 so I put all the images into a folder but then I need to somehow save the correct answer per image (i.e. dog) - so then I would just save the image name and the correct answer in a separate db? Nov 08 04:20:58 you could theoretically have to break it out into separate jars and shiz Nov 08 04:21:27 yeah that definitely sounds dirty.... Nov 08 04:23:06 i dont think i would put a blob in sqlite on android; its fine on other platforms (Lightroom uses this for its image cache) but their is weird stuff with android cursors and blobs, and i think 1 MB limit Nov 08 04:23:53 yeah Nov 08 04:23:59 the other alternative though is what? Nov 08 04:24:15 you can have when the app opens, go download a zip of images and extract to sdcard or somethign Nov 08 04:24:27 oh you could toss a zip of images and throw it in raw Nov 08 04:25:03 aaaaanyway Nov 08 04:25:13 I dont know... I'm no expert anymore Nov 08 04:25:25 details on art are slim, but I'm hoping its not too little too late Nov 08 04:25:34 android is losing market share to windows mobile afterall Nov 08 04:25:34 =) Nov 08 04:25:49 JonasSG see also http://developer.android.com/google/play/expansion-files.html Nov 08 04:26:23 Thanks g00s - looking at that now Nov 08 04:28:22 that would help with the pure distribution of big numbers of images, right (which is great) - but it doesn't solve the tracking of dog_1.png -> "dog", right? Nov 08 04:29:15 you could put SHAs in sqlite then, mapping to a path yeah Nov 08 04:29:27 or whatever method of indirection Nov 08 04:29:42 if you need a pure k/v store, MVStore is awesome Nov 08 04:30:23 cool - will check MVStore... Nov 08 04:30:54 the resource id will not necessarily be the same across all devices so I can't just use that as the key, right? Nov 08 04:32:10 oh, you're using the resource system Nov 08 04:32:46 right now I was but no intrinsic need for it Nov 08 04:33:14 I'm building this for my friends kids but more importantly as this is my first Android exposure want to use proper architecture Nov 08 04:33:23 alex_PP see, the problem i have always had with allprojects and now subprojects, is that inside subprojects { } … if i put android { } … i get the following error Nov 08 04:33:26 > Could not find method android() for arguments [build_5k4cqik6dq8a4t1878af3j9vag$_run_closure1_closure2@7784524f] on root project 'android'. Nov 08 04:33:48 my sub-projects use a mixture of the android and android-library plugin, so not sure what to do Nov 08 04:34:00 not like i can also apply 'android' at that level also Nov 08 04:35:51 Would any of you know how to create or modify an update package? Nov 08 04:36:31 joecap5: this isn't the right place for that... app dev here - asking in the wrong place because you didn't get a quick answer in the (more) right place is not a good idea Nov 08 04:37:19 I don't know what the right place is. I've been trying to get some direction. Nov 08 04:38:30 you know that this isn't the right place, because I told you 20 minutes ago... Nov 08 04:38:48 also, because it says so in the channel topic Nov 08 04:39:08 What channel deals with update packages loaded over adb sideload? Nov 08 04:39:24 like cracking other peoples' apps ? Nov 08 04:39:40 not like you would do that to your own :) Nov 08 04:40:08 hehe Nov 08 04:40:16 of if you're building a rom, try xda forums or something Nov 08 04:40:17 g00s: he means the XABSD->XACSD update packages which Google pushes for OTA, but can be downloaded and manually applied with adb Nov 08 04:41:10 I've posted at xda android central etc. I barely get a response on those forums. Nov 08 04:41:41 Yes I mean the update packages loaded over adb. Nov 08 04:41:55 Is that a dev thing or a ROM thing or? Nov 08 04:42:42 Mainly trying to understand what commands can be put into an update.sh file and if any of those can do a backup of data. Nov 08 04:43:02 The thing is that I don't even know what language the .sh file is written in. Nov 08 04:43:06 it's mainly a "done by people who work for Google" thing Nov 08 04:43:35 But others do create update packages. Nov 08 04:43:47 hi anyone got a few minutes to help me with a simple example im trying to do. When i try to calculate the temperate in the app, my app just crashes and im too novice to do debugging. Nov 08 04:43:59 Lavitiz: do you have a stacktrace? Nov 08 04:43:59 alex_PP ah bummer, this blog describes it http://blog.stylingandroid.com/archives/1920 Nov 08 04:44:08 not really a nice solution Nov 08 04:44:39 Lavitiz: do you know how to use logcat? Nov 08 04:45:29 No, super novice just getting into this mate. Nov 08 04:46:44 ah, then a good time to learn to use your tools Nov 08 04:46:56 using Eclipse, AS, or 'other'? Nov 08 04:46:57 here is my code though :S http://pastebin.com/0pCH7h1w don't know if thats helpful or not ? Nov 08 04:47:04 eclipse Nov 08 04:47:23 someone else may spoil things by answering your question - I'd prefer to try to teach you to answer it yourself :P Nov 08 04:47:47 u found the problem already lol Nov 08 04:48:41 unfortunately, I don't use Eclipse... Nov 08 04:48:41 ahh i see logcat, but this fairly confusing Nov 08 04:49:10 if your app is actually crashing, you should see a stacktrace in logcat when it does Nov 08 04:49:22 i think its an issue with my coding Nov 08 04:49:29 does my code look correct to you ? Nov 08 04:49:32 well, yes, of course it is Nov 08 04:49:46 I'm not going to look at your code Nov 08 04:49:48 I think I just said Nov 08 04:49:58 I want to teach you how to fix the problem yourself Nov 08 04:50:04 okay Nov 08 04:50:17 i want to debug , but the debugging process seems super hard Nov 08 04:50:26 i just wanna step through the code Nov 08 04:50:31 nobody said coding was easy Nov 08 04:50:40 do you or do you not have a stracktrace in your logcat? Nov 08 04:51:24 it will tell you what's wrong, if you can read it Nov 08 04:51:54 where would it be ? Nov 08 04:51:59 in the logcat Nov 08 04:52:03 when your app crashes Nov 08 04:54:15 doesn't say anything about the app crashing Nov 08 04:54:51 pretty sure it does Nov 08 04:56:17 kk ill relaunch i t Nov 08 04:56:53 its not updating or anything.. like when i open the app shouldn't it make a record of that? Nov 08 04:57:58 someone who uses eclipse would probably need to help you with that... Nov 08 04:58:13 unless you've paused it or something Nov 08 04:58:41 bah, so confusing :S Nov 08 04:59:55 very easy for me - I just run "adb lolcat" Nov 08 05:00:03 hi guys. if i want one particular activity to have a fixed orientation (portrait) - is it possible> Nov 08 05:00:05 lolcat hahahaha Nov 08 05:00:33 ir7466_: yes, but please please don't do that Nov 08 05:00:46 ok I won't Nov 08 05:00:55 what is a good alternative Nov 08 05:00:56 eh, you can do that if you have a good reason Nov 08 05:01:09 bankai would it be possible for you to review my code ? :D Nov 08 05:01:12 laziness is not a good reason :) Nov 08 05:01:40 Lavitiz: you really need to learn to use your tools, or you'll need help with every little problem you have Nov 08 05:01:48 let me explain then. i have a main screen with 5 buttons on it. in portrait mode they all fit nicely and you can read the text Nov 08 05:01:58 in landscape, there's just not enough room Nov 08 05:02:09 make another layout Nov 08 05:02:16 what is the most pleasing way to solve this problem Nov 08 05:03:17 5 is a tough number though Nov 08 05:03:28 if it was 6 i could do two columns of 3 buttons Nov 08 05:03:37 but 5 almost forces you to do it in 1 column Nov 08 05:03:39 incidentally "main screen with buttons" isn't really recommended under current design guidelines Nov 08 05:04:00 what is wrong with that? Nov 08 05:04:17 i think it looks nice Nov 08 05:04:52 assuming those 5 buttons lead to different paths through your app, you probably have one which is more commonly-used - you should launch straight into that path, and make the others available through actionbar icons/overflow menu Nov 08 05:04:58 AIUI Nov 08 05:05:49 or through the 'hamburger menu' Nov 08 05:05:56 the less icons and menu options the better Nov 08 05:06:28 the less taps needed to get to the actual useful part of your app, the better Nov 08 05:07:00 this is to be used for field work... workers need big buttons. they might be using capacitive gloves or anything Nov 08 05:07:14 little icons and menu options and what not is not convenient for them Nov 08 05:10:07 then that may be a case where the guidelines aren't rules... Nov 08 05:57:21 cool, 'The Design of Everyday Things' was updated by Don Norman Nov 08 06:02:04 Is ther anyone can spare some time to see my question here? http://stackoverflow.com/questions/19850282/re-use-the-androidmanifest-xml-in-library-project-in-android-studio Nov 08 06:02:59 design question: what is the best way to handle the case where you have a list of items (say from a database or wherever) in a listview.... but there are no items to display Nov 08 06:03:36 is there a way to have a conditional on the listview, so as to not display it if the list is empty and display a textview with a message instead? Nov 08 06:03:54 see setEmptyView() or whatever its called Nov 08 06:21:41 g00s, gargh, still haven't finished whatever version it is on my desk Nov 08 06:23:36 alex_PP The Design of Everyday Things ? :) Nov 08 06:24:09 yeah Nov 08 06:25:23 alex_PP read any other good books lately ? Nov 08 06:25:32 photography / android / etc Nov 08 06:25:34 anything Nov 08 06:26:40 nope Nov 08 06:26:44 i see Michael Freeman has updated "the Photographer's eye" Nov 08 06:26:47 been shooting a fair bit though Nov 08 06:27:06 and reading the luminous landscape Nov 08 06:27:28 oh yeah, i recall that website Nov 08 06:28:59 links please :) Nov 08 06:31:40 squ which ones? Nov 08 06:32:08 luminous http://www.luminous-landscape.com/index.shtml Nov 08 06:34:09 appreciate anything interesting :) Nov 08 06:34:12 thank you Nov 08 06:36:03 LL is great for landscape readings Nov 08 06:36:05 squ this is a modern classic http://www.amazon.com/The-Photographers-Eye-Graphic-Composition/dp/0240824261 Nov 08 06:36:10 there's a lot that's out of date now Nov 08 06:36:19 (imo) Nov 08 06:36:41 alex_PP have you done any prints yet ? Nov 08 06:37:30 did some last week Nov 08 06:37:35 it's dirt cheep here Nov 08 06:38:01 some old ones from vietnam were the best though Nov 08 06:38:17 oh man, you might like Schewe's book http://www.amazon.com/The-Digital-Print-Preparing-Lightroom/dp/0321908457 Nov 08 06:38:46 Jack Dykinga is coming out with a book Dec; he's my hero since he's landscape from AZ :) Nov 08 06:38:47 ha, there's very little control over printing in my life Nov 08 06:39:05 if i can stop then recropping and aurbrushing my pictures i'm happy Nov 08 06:39:06 alex_PP you control the sharpening, right ? Nov 08 06:39:24 what makes a nice picture is very different in differnent places Nov 08 06:40:39 alex_PP are your prints color or B&W ? Nov 08 06:40:42 both ? Nov 08 06:40:59 all colour this time around Nov 08 06:41:20 is $TMPDIR defined on Android by default? Nov 08 06:42:31 printed this as big as they could for my office https://fbcdn-sphotos-c-a.akamaihd.net/hphotos-ak-prn2/1396812_10151970776894602_1725079075_o.jpg Nov 08 06:42:47 90cm x somthing Nov 08 06:42:48 90cm x something Nov 08 06:42:59 whoops, irc ain't skype Nov 08 06:43:17 :) Nov 08 06:43:56 alex_PP one of those your bikes :D ? Nov 08 06:44:02 sadly not Nov 08 06:44:25 though, there's very few places to ride a bike like that here Nov 08 06:45:30 i stopped shooting; my camera is awful Nov 08 06:45:39 no excuse! Nov 08 06:45:47 heh Nov 08 06:47:37 what is/was your camera? Nov 08 06:47:46 a canon compact if i remeber? Nov 08 06:47:56 most of them are pretty decent Nov 08 06:48:35 i have a really old Powershot G9 Nov 08 06:49:07 seems like its lost sharpness; i dunno if there is something getting old maybe with the optics / focusing system Nov 08 06:49:41 is there a /tmp folder on Android? Nov 08 06:49:55 probably not a r/w one? Nov 08 06:50:10 send it for a service? Nov 08 06:50:18 might be worthwhile Nov 08 06:50:21 canon updated the Powershot to G16 but it still has such a lame sensor; i wouldn't replace it. I'd think maybe about one of those sony a-7r though Nov 08 06:50:24 often not though Nov 08 06:51:19 http://www.luminous-landscape.com/reviews/cameras/sony_a7r_hands_on.shtml Nov 08 06:51:19 S110 or whatever that's up to would be my buy for a compact Nov 08 06:51:36 that's cute Nov 08 06:51:43 hm; the S series hasn't improved either Nov 08 06:52:24 basically, Canon is sitting on their asses Nov 08 06:52:33 Nikon too Nov 08 06:52:47 very small improvements; not worth the money to me imho Nov 08 06:53:16 they want to keep selling their big dSLRs ;) Nov 08 06:53:41 http://www.canonrumors.com/2013/11/canon-eos-5d-mark-iii-body-at-bh-photo-2999/ !! Nov 08 06:54:12 heh; some day ;) Nov 08 06:55:49 that's a bargain Nov 08 06:56:07 i've been looking at these not far off that price grey market Nov 08 06:56:20 still need the lense; the killer one is like 2K Nov 08 06:56:57 alex_PP do any panorama ? Nov 08 06:57:13 stitching , etc Nov 08 06:57:29 yeah, glass gets pricey fast, doesn't depreciate too much though, not like a digital body Nov 08 06:57:32 rarely Nov 08 06:57:46 mostly on my phone for funzies Nov 08 06:57:50 hehe Nov 08 07:01:14 alex_PP links to any recent landscape ? Nov 08 07:02:23 erm Nov 08 07:02:31 not got any, i don't think Nov 08 07:07:12 :( Nov 08 07:07:34 Nobody see my question at SF. Nov 08 07:09:48 maven__, i'd have done the 2 versions as flavors, not separate projects Nov 08 07:10:08 http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Type-Product-Flavor-Build-Variant Nov 08 07:13:21 flavors? Nov 08 07:14:20 But the two different version depent different jars and native librares which may conflict with each other. Nov 08 07:32:13 I sold most of my 10 year old canon L glass for about 70% of what I paid for it Nov 08 07:32:44 probably closer to 15 year old Nov 08 07:42:12 pfn sounds good; seem like you took good care of it too Nov 08 07:43:18 well, $1 15 years ago isn't $1 today :) Nov 08 07:44:50 looks like inflation was roughly 40% from 1998 Nov 08 07:45:34 so you recovered more like 50% of the original value Nov 08 07:45:41 which still isn't bad :) Nov 08 07:48:47 i just found out today that 'staff picks' in the library is a total lie Nov 08 07:49:10 nate silver's book was on the shelf in that section; i asked who read it - nobody Nov 08 07:51:22 hahaha funny Nov 08 07:52:31 staff picks and apples 'new & noteworthy' is pure politics :) Nov 08 07:53:07 glad we have proven evidence for that Nov 08 07:55:54 i think i'm going to go and put one of my own books in the staff picks section Nov 08 07:56:40 hi! Nov 08 07:58:19 hi Nov 08 07:58:38 h Nov 08 07:58:40 Nov 08 07:58:45 i Nov 08 07:58:48 ! Nov 08 07:59:04 ho Nov 08 07:59:13 I have 3 folders : values / values-11 / values-14 in the assets directory. also in each foder I have the styles.xml and I define for each a theme (the default for that version) Nov 08 07:59:20 but it does not get applied Nov 08 07:59:26 to my activity Nov 08 07:59:48 I have 4.1.2 and the theme that is used is the old Theme (from 2.3.3) Nov 08 08:00:14 I need Holo for this version (4.1.2) Nov 08 08:00:40 *not assets. in the res directory. my bad Nov 08 08:02:47 JesusFreke i should put this in staff picks http://www.amazon.com/Ernie-Dances-Didgeridoo-Alison-Lester/dp/0618104429 Nov 08 08:04:52 another question :) is it too much for performance to blur a 600 x 600 image in the main thread? (still need responsive ui) Nov 08 08:05:10 No Nov 08 08:05:50 or try it and run a traceview to find out Nov 08 08:12:43 java.lang.IllegalArgumentException: Empty values at android.content.ContentProviderOperation$Builder.build Nov 08 08:12:45 :( Nov 08 08:12:57 what does that mean? Nov 08 08:15:34 tried building/compiling the native activity sample which come with NDK Nov 08 08:15:36 and no luck Nov 08 08:15:52 getting Nov 08 08:15:59 stacktrace coming up Nov 08 08:16:06 I have a LinearLayout with a few elements on vertical, one under another. some elements are below the screen. How to make my layout scrollable? Nov 08 08:16:53 Zgary: put it in a ScrollView? Nov 08 08:19:02 Zgary: replace Linear layout with scrollview Nov 08 08:19:28 DarkSlay1: no - scrollview contains a single inner view/layout Nov 08 08:20:19 Leeds: my bad Nov 08 08:20:21 you are right Nov 08 08:20:36 so how to do it? Nov 08 08:20:48 now I see. i replace Nov 08 08:20:50 thx Nov 08 08:20:59 no no no noo nooooooo Nov 08 08:21:11 Encapsulate it with scrollview Nov 08 08:21:58 Nov 08 08:24:01 and place the scroll view in where/what? another layout? Nov 08 08:24:13 no Nov 08 08:24:25 ok do this Nov 08 08:24:29 really? Nov 08 08:24:29 go to your layout Nov 08 08:24:39 ctrl+a Nov 08 08:24:43 ctrl+x Nov 08 08:25:03 Nov 08 08:25:20 can I add scroll view directly on device screen? Nov 08 08:25:24 ctrl+v inside Nov 08 08:25:34 um... yeah Nov 08 08:25:50 http://pastie.org/8464810 Nov 08 08:25:59 so layout / scrollview / layout / elemnts here..... Nov 08 08:26:16 if I am not wrong, you are suppose to use ndk-build to compile the native code Nov 08 08:26:31 not really. Nov 08 08:26:35 and then use ant debug install to make an apk Nov 08 08:27:13 ok, Mavrik please enlighten me, assuming your "not really" was for me Nov 08 08:28:28 while ndk-build is the best way of building Android stuff, it's not strictly required Nov 08 08:28:48 Looney, and that exception seems like it's misisng the java part of activity, not the native part Nov 08 08:29:07 but I am talking about the sample native activity example which comes with ndk Nov 08 08:29:21 I ndk-build it Nov 08 08:29:31 and then compile it using ant Nov 08 08:29:41 there is no java in that example Nov 08 08:29:51 of course it is Nov 08 08:30:11 you have a Native activity shim that hands off control from Java to your native code Nov 08 08:30:19 and for some reason the classloader can't find it Nov 08 08:30:31 is your AndroidManifest.xml ok? proper package names? Nov 08 08:31:03 Looney, your package definition looks really wierd Nov 08 08:31:27 Looney, if you're creating a pure native activity, why are you trying to open it in your own package_ Nov 08 08:31:28 _ Nov 08 08:31:30 ? Nov 08 08:31:33 ok, I only modified the manifest a wee little bit Nov 08 08:31:51 let me re-extract the ndk Nov 08 08:32:02 to make sure that my manifest change did no harm Nov 08 08:32:11 basically see this: http://developer.android.com/reference/android/app/NativeActivity.html Nov 08 08:32:35 you need to invoke android.app.NativeActivity (not somethingsomething.your.package.NativeActivity) and tell it which .so file to hand off control to Nov 08 08:32:56 this basically uses built-in NativeActivity which transfers control to your .so code Nov 08 08:34:05 so you saying that there has to be a NativeActivity.java Nov 08 08:34:40 get back to you guys in a while Nov 08 08:35:24 I've been looking on google but haven't found the answer I'm looking for. Is there a way to tunnel through a VPN just with my app. I found ways to connect to a VPN but it'll set it for the entire device Nov 08 08:36:17 And I would like to be able to do this without rooting the phone Nov 08 08:41:04 huh, so is the bootloader on the vzw moto x unlockable? Nov 08 08:42:04 dualz: i think you need root for that Nov 08 08:42:04 pfn: I think there is a Verizon-compatible 'developer edition' available... Nov 08 08:42:14 I know there's that Nov 08 08:42:18 and it might require busybox or something Nov 08 08:42:22 not sure Nov 08 08:42:23 but the regular one, is it Nov 08 08:42:29 just guessing Nov 08 08:42:31 how can I limit the number of lines in a EditText? Nov 08 08:42:45 maxlines Nov 08 08:43:06 DarkSlay1: you might consider not guessing... Nov 08 08:43:31 but i like guessing and giving bad advice Nov 08 08:43:38 clearly Nov 08 08:43:44 lol Nov 08 08:44:45 is it possible to set maxlines based on the fixed hight size of the edittext and the size of the font? (font can be changed), so that user can change font and font size, and the edit text view is fixed in size. Nov 08 08:45:15 if you do the math yourself, probably Nov 08 08:45:18 or something to stop you from entering more text if the EditText is full Nov 08 08:45:38 text size is in sp, view size in dp. is any relation between? Nov 08 08:47:01 I am back Mavrik Nov 08 08:49:13 I guess my next question to kind of circumvent having to use a VPN at all. Is there a comprehensive list of carriers and the firewall specs they have on their 4G/3G networks? Nov 08 08:50:23 Zgary, I beleive 1 sp == 1dp when the users font size is set to the default Nov 08 08:50:32 if they change that then it changes Nov 08 08:51:40 alex_PP, that's right Nov 08 08:58:47 When drawing to the screen why is onMeasure and onLayout called twice before onDraw? Nov 08 09:04:14 Does anyone know any resources to help converting a standard build to be used in eclipse? Nov 08 09:18:15 is the same for other .ttf files? Nov 08 09:19:19 I am trying to implement a custom touch and gesture listener for common guy's mergeadapter library, anyone know any pages covering this? Nov 08 09:19:31 also, is I want to have some text in the EditText and when the user click to edit the entire text that was previously there (like a message: "customize...") to dissapear. the text the user entered should not dissapear on click, only the first one Nov 08 09:19:54 thx alex_PP Nov 08 09:20:12 Zgary i think you can set the edittext to show a hint on empty input Nov 08 09:20:46 thx! good stuff Nov 08 09:21:33 http://img.tapatalk.com/d/13/11/08/asegeda6.jpg Nov 08 09:39:05 Hi all, does somebody know a good & free augmented reality framework? Nov 08 09:39:15 I still cannot find a way to solve this. Is somene here has an idea I will appreciate. Nov 08 09:39:29 having a 300dp x 300dp edit text Nov 08 09:39:44 I use custom fonts and I have to limit the number of lines Nov 08 09:40:02 such that no more lines can be created if the EditText is full Nov 08 09:40:20 the custom fonts can have the fonts size changed Nov 08 09:40:47 the thing I need is to stop creating new lines when the edit text is 'full' Nov 08 09:41:03 any advice on hoe to detect this? Nov 08 09:41:14 *how Nov 08 09:52:42 if you wrapped the height of the edittext and listened to the height change for every new line you could override the set measured height Nov 08 10:02:02 my edit text does not get bigger. the text if pushed under the top edge of the view Nov 08 10:02:42 I need all this because the text in there will be captured as a bitmap. the bitmap is used as texture on a 3d object Nov 08 10:02:52 the view ratio is a square Nov 08 10:06:55 maybe you could take the edittext input and draw it into a canvas with known size, and then dump the canvas into a bitmap for your texture Nov 08 10:10:25 Hi, I"m trying to setup a basic helloworld android app, I've installed Eclipse and added the Android SDK + Android Platform (KitKat is the lastest) Nov 08 10:10:40 but when I go to create a new project, it says:  Errors occurred during the build. Errors running builder 'Android Resource Manager' on project 'HelloWorld'. java.lang.NullPointerException Nov 08 10:10:46 Am I doing something wrong? Nov 08 10:11:23 I am using Mac OS X Mavericks. My "java -version" in my shell says: "java version "1.6.0_65", "Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)", "Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)" Nov 08 10:12:12 Is anyone able to shed some light on why normal Eclipse + ADT plugin, Android Studio and Eclipse that comes with the Android SDK (all three) doesn't work? Nov 08 10:18:50 will this stop the user to input too much text? I need the final image to be a square with uniform and not a column of text (even if scaled to fit a square, it would leave white spaces on left and right, with the column in the middle.) . this is what I understand form using the canvas, lasserix Nov 08 10:22:41 I created an account authenticator (with prefs xml) but it doesn't show under my "Accounts" in the settings menu. Any ideas why this could happen? Nov 08 10:23:13 When I go to "Add Account" the account is there... however, how can I see the prefs menu? Nov 08 10:31:34 anyone know somthing about custom camera application ? Nov 08 10:32:02 i got problems with "SurfaceChanged" function, only called once and orientation is always 90 w/e i do Nov 08 10:47:26 Mavrik: the ending point of the solution worked for my javaless app Nov 08 10:48:20 Does anyone have recommendations for a good book for an experienced iOS dev who also knows Java already? Nov 08 10:54:45 Hello android Nov 08 10:55:00 Hello iphone Nov 08 10:55:12 binders-of-women: lord of the rings is nice Nov 08 10:55:25 hello blackberry? Nov 08 10:55:26 Lord of the rings? huh :P Nov 08 10:55:27 :)) Nov 08 10:55:29 lol no Nov 08 10:56:00 well its technically a trilogy Nov 08 10:56:27 A trilogy of android books? :P Nov 08 10:56:40 no it's about a ring Nov 08 10:56:56 if you want cool 3d go for libGDX and Mario's Game development book Nov 08 10:56:59 1 OS to rule them all Nov 08 10:57:10 if you dont want cool 3d.. lord of the rings then Nov 08 10:57:53 Not games, just generic application development Nov 08 10:58:18 the docs is a good place to start Nov 08 10:58:20 how can i write a condition inside onItemClick Listener ? i have a listview and onclick of item goes the another list view, i want check for a condition and then load the second activity else stay in the first activity itself ... Nov 08 11:02:24 Hi can I set the view of a alert dialog after show() Nov 08 11:03:39 hey guys Nov 08 11:04:14 does it make sense starting a wake manager form inside boot receiver? Nov 08 11:08:39 ok, so I have had enough of Java, so I am starting to crack and the fisrt thing which come to my mind is to get to the dark (c/c++) side :-( Nov 08 11:09:14 try c# Looney Nov 08 11:10:47 what's wrong with java Nov 08 11:11:06 Looney, if a programming language is your biggest problem Nov 08 11:11:10 you might not be cut out for mobile dev. Nov 08 11:11:18 *dev Nov 08 11:12:22 how can i write a condition inside onItemClick Listener ? i have a listview and onclick of item goes the another list view, i want check for a condition and then load the second activity else stay in the first activity itself ... Any help on this ? Nov 08 11:13:30 Is it possible to write a pure native code (say C) application that has a normal GUI interface? Without resorting to JNI and a Java app? Nov 08 11:13:43 no i don't believe so Nov 08 11:13:49 ecraven, no. Nov 08 11:13:59 ecraven, Android userspace runs in Java VM Nov 08 11:14:07 the ndk is usually for heavy graphical operations Nov 08 11:14:13 without talking to it you really don't have anything to go. Nov 08 11:14:16 or low-level driver access Nov 08 11:14:27 renderscript ;) Nov 08 11:15:51 so the minimum is a Java app that passes an OpenGL context to native code? Nov 08 11:16:05 Thanks :) interesting Nov 08 11:16:26 http://developer.android.com/tools/sdk/ndk/index.html Nov 08 11:16:33 ecraven, see NativeActivity documentation Nov 08 11:16:43 but unless you're doing an OpenGL-only game Nov 08 11:16:46 "In general, you should only use the NDK if it is essential to your app—never because you simply prefer to program in C/C++" Nov 08 11:16:56 doing everying in C/C++ is a pretty dumb idea Nov 08 11:17:52 Mavrik: it *could* be useful if you could target multiple device platforms with C code, but as that's impossible, there's really no reason to use C/++ Nov 08 11:18:42 you need to talk to OS in any way, different platforms build ther UIs differently Nov 08 11:19:40 build a common wrapper library :D (then you won't look good on *any* platform :p) Nov 08 11:21:53 Yes... Let the Java flow through you Nov 08 11:22:05 hahahaha Nov 08 11:22:56 http://memegenerator.net/instance/42818617 Nov 08 11:26:08 c = ((TextView) view.findViewById(R.id.players_count)).getText().toString(); How can i store the value of this to type "int" ? Nov 08 11:26:40 Integer.parseInt probably Nov 08 11:27:37 ecraven: i could do that, but need to have another variable…. too many lines … any other shorter way Nov 08 11:28:29 now, it's int c1 = Integer.parseInt© and using c1 Nov 08 11:28:52 looking for better way Nov 08 11:28:58 rabbi1: why not Integer.parseInt(((TextView)....); ? Nov 08 11:29:52 ecraven: din't try that.. brb Nov 08 11:32:12 ecraven: thanks.. that works…. if that's the only way.. then i am happy :) Nov 08 11:34:08 of course Nov 08 11:34:21 if you have this horror of the code, you might think of restructuring. Nov 08 11:34:56 to something like... Integer.parseInt(mPlayersCount.getText().toString() :) Nov 08 11:36:13 Mavrik: thank you… that looks better… Nov 08 11:36:33 running findViewById is rather slow anyway Nov 08 11:37:10 so you should do it as rarely as possible Nov 08 11:42:46 how can you setup eclipse, so that when i modify a layout file it considers the project changed, so that the run uploads it to the emulator/device Nov 08 11:43:32 wmealing_: isn't it like that by default ? Nov 08 11:43:36 not on my end Nov 08 11:43:41 i would have thought it would be Nov 08 11:44:22 put the focus back on to the MainActivity file and run Nov 08 11:44:48 after editing the layout file Nov 08 11:45:34 yeah i think thats what was required Nov 08 11:45:41 run on the xml view didnt seem to do anything, saved or not Nov 08 11:45:57 yeah I had noticed that too Nov 08 11:48:17 it used to Nov 08 11:48:30 but something changed in adt and it stopped allowing me to run from xml also Nov 08 11:48:31 annoying Nov 08 11:55:18 from http://developer.android.com/reference/android/app/Fragment.html <- com.example.android.apis.app.FragmentLayout$TitlesFragment , what does the $ sign mean in this instanec Nov 08 11:56:04 hello... I'm having trouble aligning the widgetlayout of listpreference against the checkboxpreference. Does anyone know what's the default margin for the check box from the right? Nov 08 11:56:36 wmealing_, that's how Java handles inner classes Nov 08 11:56:50 wmealing_, you really don't have an inner class support in Java bytecode Nov 08 11:56:54 I added custom widgetlayout for the listpreference... but when stacked on top of the checkboxpreference, the extra image does not align with the checkbox.... help pls... Nov 08 11:57:14 so what compiler does it just creates a class with $ name and adds a reference to the parent from inner class Nov 08 11:57:32 ok. Nov 08 11:57:33 that's why you see class files named $ when compiling code :) Nov 08 11:57:42 righto.. makes sense Nov 08 12:03:38 hmm, what happens if you call startActivity on activity that's paused Nov 08 12:04:33 it should start that activity Nov 08 12:30:39 I just found out about Android NDK. C/C++ comes more natural to me than all this Java madness Nov 08 12:33:20 DarkSlay3r: I have let it flow for some time Nov 08 12:33:23 ExeciN: http://s.scruffyfox.me/badndk.png Nov 08 12:33:41 sorry for delay as I was AFK Nov 08 12:34:03 ExeciN: it would be a steep climb up-hill Nov 08 12:34:32 ExeciN, don't. Just... don't. Nov 08 12:35:22 Looney: Sure, maintenance is harder but I can't think clearly in Java Nov 08 12:35:40 I would encourage people to take the road less travelled Nov 08 12:35:50 ExeciN, no, you don't get it Nov 08 12:35:50 " you should only use the NDK if it is essential to your app—never because you simply prefer to program in C/C++." Nov 08 12:35:56 ExeciN, it's not "harder maintenance" Nov 08 12:36:09 it's, you don't have ANY API's in C/C++ because Android runs in VM Nov 08 12:36:14 not only it would make you a story teller Nov 08 12:36:23 and you're paying expensive boxing/bridging cost for ANYTHING related to OS Nov 08 12:36:47 but also ensures that you have lesser hair on head (hint: hair-pulling) Nov 08 12:46:08 The thing about Java is that when I know exactly how I want to make something I have to search and find the appropriate class that does the job, import that class and spend time on the docs. Its too high level for me Nov 08 12:46:19 ExeciN: hair-pulling fact 1, I think that it is quite a task to show simple text on screen Nov 08 12:46:54 I am sure someone more seasoned would be in a better position to confirm Nov 08 12:47:05 wow you're doing it wrong Nov 08 12:47:18 most IDEs auto import classes for you Nov 08 12:47:29 Looney: I don't really care about using Android API. I want this pixel white and that one red Nov 08 12:47:41 java doc exists in the IDE you don't need to read *everything* about a class to use it, just the methods you want Nov 08 12:48:19 CallumTaylor: Importing is not the problem, the problem is finding and using a class that supposedly does what I want that I never used before. Nov 08 12:48:31 you're going to have that with *every* language Nov 08 12:48:42 that's not a java issue, that's an experience issue Nov 08 12:49:32 generally a C/C++ ecosystem has many lower level modules instead of a huge thing that does everything Nov 08 12:49:44 which is worse Nov 08 12:49:56 not for me Nov 08 12:50:38 i can't say i've ever had that issue Nov 08 13:08:50 hmm Nov 08 13:08:59 is there any way of retrieving transparent activity background Nov 08 13:09:33 ExeciN: alright, so draw glview over the window and make that pixel white and that on red one by one Nov 08 13:10:16 icedp: well that was an example Nov 08 13:10:56 you still need java to setup the C handoff and possibly context Nov 08 13:11:03 ExeciN: yes, it's much easier in theory Nov 08 13:19:43 do you guys have any ideas on how to take some slide gestures with jquery? Nov 08 13:19:57 with some eventListeners or what? Nov 08 14:01:12 hey guys, I'm stuck, maybe someone can help me out. I have an Activity which gets called on android.appwidget.action.APPWIDGET_CONFIGURE, but I don't know how to pass some information from this activity to the widget-to-be-created and close the activity then. Can someone help? Nov 08 14:16:59 webview is getting slow after orientation change. memory leak? Nov 08 14:25:57 Guys I load fragment but how can I unload items which are loaded onCreate in activity Nov 08 14:38:14 Hello, i made a custom camera app, when i take picture, the orientation is correct on the phone (i handle this on the program), but when i open the picture with a computer, it goes back to original orientation Nov 08 14:38:29 any idea ? Nov 08 14:39:33 There's an orientation field in the metadata of most picture file formats. Nov 08 14:50:38 wondering if theres an easy way to determine what sort of usb connectors are needed for a list of OTG compatible devices (whether its micro usb, 30pin etc Nov 08 14:50:46 this is really weird because on computer there is a small preview of the picture, and this preview got the right orientation Nov 08 14:50:49 http://www.lok-it.net/usb-otg-compatible-phones-tablets Nov 08 14:50:56 this is the list im looking at Nov 08 14:54:41 Hi does somebody used metaio before? Nov 08 15:00:10 hello Nov 08 15:04:55 guys, how can I use a combination of views as a single view ? Nov 08 15:05:11 I will pass it is a view to the windowManager Nov 08 15:05:17 wheres the best channel for android dev? Nov 08 15:05:24 pogiako this is t. Nov 08 15:05:28 pogiako this is it. Nov 08 15:05:28 #android-dev Nov 08 15:05:30 lol Nov 08 15:05:36 so few people Nov 08 15:05:44 pogiako well, depends. Nov 08 15:05:59 pogiako ask your question, and some1 might help u. Nov 08 15:06:01 depends on the question/problem Nov 08 15:06:15 CallumTaylor any hints about my question ? Nov 08 15:06:18 i dont have an android device but i can still dev. apps right? only that itll be slow Nov 08 15:06:21 No no no no nooooooooooooo Nov 08 15:06:23 sorry wasn't here for it, can't see it Nov 08 15:06:24 No Nov 08 15:06:27 I forbit it Nov 08 15:06:31 i forbid it Nov 08 15:06:37 No dumb questions Nov 08 15:06:40 ^ Nov 08 15:06:52 hola DarkSlay3r Nov 08 15:07:00 Yo! Nov 08 15:07:01 haha Nov 08 15:07:05 CallumTaylor guys, how can I use a combination of views as a single view ? Nov 08 15:07:08 i can use the emulator right? Nov 08 15:07:14 look at creating a custom view Nov 08 15:07:14 CallumTaylor I will pass it is a view to the windowManager Nov 08 15:07:16 wait it's friday Nov 08 15:07:26 what the hell... ask what ever you want Nov 08 15:07:26 pogiako no u cant. DarkSlay3r forbit it. Nov 08 15:07:34 ? Nov 08 15:07:36 forbit? Nov 08 15:07:39 tonyMontana9099: it's ok Nov 08 15:07:39 forbid* Nov 08 15:07:40 pogiako: look at Genymotion Nov 08 15:07:45 it's not Monday Nov 08 15:07:49 yes. its the term orbit, with the letter f added. Nov 08 15:07:59 what does that mean? Nov 08 15:08:00 its monday in neptune. Nov 08 15:08:13 like, extra, you add an f, and get fextra. Nov 08 15:08:14 am using the IDE that the android sdk had with it Nov 08 15:08:20 It's always Monday somewhere isn't it Nov 08 15:08:21 via android site ;) Nov 08 15:08:24 *headdesk* Nov 08 15:08:30 y? Nov 08 15:08:38 pogiako yes you can. Nov 08 15:08:40 pogiako: it's called an emulator Nov 08 15:08:48 it's a phone inside your computer Nov 08 15:08:56 but it doesn't work very well Nov 08 15:08:59 So it's slow Nov 08 15:09:05 but it gets the job done Nov 08 15:09:09 DarkSlay3r does it mean, its a computer outside the phone ? Nov 08 15:09:21 it's like, inception, man... Nov 08 15:09:22 um... sure Nov 08 15:09:25 Genymotion is a VM emulator which is better than the standard android emulator that comes with the SDK Nov 08 15:09:52 yeah ive heard of that Nov 08 15:10:01 CallumTaylor whats their site ? Nov 08 15:10:05 ima give it a try. Nov 08 15:10:06 thinking of buying a book though Nov 08 15:10:10 for making apps, Nov 08 15:10:13 whats a good read? Nov 08 15:10:18 http://lmgtfy.com/?q=genymotion Nov 08 15:10:20 CallumTaylor: Where have you been all my life? Nov 08 15:10:27 waiting for you <3 Nov 08 15:10:33 * DarkSlay3r begins to tear up... Nov 08 15:10:46 pogiako: the documentatio Nov 08 15:10:48 n Nov 08 15:11:07 pogiako: if you want a book, get Hello android Nov 08 15:11:10 does anyone have experience by using xmpp yet? i tried several stuff now. GCM Push, MQTT, HTTP Pushs and now XMPP. None of them were working great Nov 08 15:11:20 it'll get you started but you'll outgrow it quickly Nov 08 15:11:32 guys SOMEBODY HELP ME WITH MY PROBLEM Nov 08 15:11:36 or else, i will get mad !!! Nov 08 15:11:41 hahahahaha Nov 08 15:11:47 will we not like you when you're mad? Nov 08 15:11:50 The doc is great. I wish there was a pdf version of it Nov 08 15:12:00 when he's mad his nick changes to all caps Nov 08 15:12:00 rburgos why not make a one urself ? Nov 08 15:12:01 offline access comes with the SDK Nov 08 15:12:04 yeah me too, so i can still read it when theres no wif Nov 08 15:12:06 wifi* Nov 08 15:12:17 CallumTaylor yea :D Nov 08 15:12:21 tonyMontana9099: i think you are turning green Nov 08 15:12:27 wait i think that might be a problem Nov 08 15:12:39 my finger gets stuck to the shift. Nov 08 15:12:45 paradigm shifting. Nov 08 15:13:02 okay guys let me tell you what I want to accomplish, and pour your two cents. Nov 08 15:13:37 * DarkSlay3r gets two cents Nov 08 15:13:40 I am implemting the Floating Object project of eatHeat from https://github.com/EatHeat/FloatingExample/ Nov 08 15:14:06 windowManager.addView(myImageView, params); Nov 08 15:14:20 might be a dumb question - I have an intent service, just to submit a http post, uploading a file. I have a notification going just saying "uploading...", that kind of thing. When it's done, it vanishes. I was hoping to re-issue the notification when it's done and let it sit there saying "done uploading", but it always vanishes. How could I do that? Google and StackOverflow results don't seem to be helping. Nov 08 15:14:28 why is 4.4 intel image not avaible? Nov 08 15:15:07 So basically I can pass an imageView in here,, but I want to pass a custom view (textbox that might have any text, and an imageButton X) Nov 08 15:17:20 yes. silence. thanks. Nov 08 15:17:37 DarkSlay3r, Leeds, CallumTaylor , my own people disown me. Nov 08 15:18:16 I'm not familiar with the lib Nov 08 15:18:23 * Leeds is barely here Nov 08 15:18:31 ColonelPanic001, um... just don't cancel the notification Nov 08 15:18:34 i'm looking and the code but that's really all i can do Nov 08 15:18:35 or create a new one that's dismissable Nov 08 15:19:27 my problem is the same as the issue 26292 Nov 08 15:19:34 :( Nov 08 15:20:26 Mavrik: I'm not. At least, not intentionally. I assumed it was just going away after the service finished. Nov 08 15:20:31 ok so create a custom view which inflates an xml layout containing your views Nov 08 15:20:42 http://blog.callumtaylor.net/creatingacustomcontroljava-android Nov 08 15:20:55 but can I pass it to windowmanager ? Nov 08 15:21:16 if addView takes a View param, then sure Nov 08 15:21:21 you just extend View Nov 08 15:21:38 CallumTaylor - added the blog to my 'blogs' folder in my fav toolbar :) Nov 08 15:22:28 * tonyMontana9099 ignores CallumTaylor's dictation mistakes from the first line. Nov 08 15:23:15 proof reading is for losers Nov 08 15:23:26 CallumTaylor in a technical field. I totally agree. Nov 08 15:23:45 android is a technical field. so who cares. as long as it gets the job then. *win* Nov 08 15:24:00 I want to calla method… and wait for it to return something before I move on… How would I do that? Nov 08 15:24:09 you wouldent Nov 08 15:24:24 you'd have a method that is void and have a listener that gets called when the operation has finished Nov 08 15:24:42 Hmm… Nov 08 15:24:48 never *EVER* block the UI thread Nov 08 15:24:58 CallumTaylor let me read it, and i'll get back Nov 08 15:25:22 its a little dated so take it with a pinch of salt Nov 08 15:25:56 tonyMontana9099: did you figure it out? Nov 08 15:27:05 DarkSlay3r: i said if he's just adding a view to the window you can create a custom view Nov 08 15:27:15 or hell, you can just inflate an XML into a view and pass that Nov 08 15:27:27 DarkSlay3r, CallumTaylor i'm reading Nov 08 15:27:32 tonyMontana9099: that may be a better option Nov 08 15:27:40 CallumTaylor let me try like that Nov 08 15:27:48 creating a custom control may be overkill for what you want to do Nov 08 15:27:51 should my entire service run in its own thread, or just the socket that will be blocking? Nov 08 15:27:56 look at LayoutInflater Nov 08 15:28:06 CallumTaylor if it did not work, I try the blog's approach Nov 08 15:28:11 yeah Nov 08 15:28:26 so, what do I do, create a layout XML with the view that I want ? Nov 08 15:28:32 that is the textbox and the image button ? Nov 08 15:28:34 yeah Nov 08 15:28:45 How about this? Nov 08 15:28:47 and then call LayoutInflater.from(context).inflate(R.layout.xxx, null) Nov 08 15:28:57 CallumTaylor: Alright, so how would I implement a listener on one of my method calls. Lets say I have a method called send, and I want to wait until its complete to run a method that updates the UI. Nov 08 15:28:59 image view on click pass focus to dialog Nov 08 15:29:57 eghdk: you'd have a interface called something like "OnFinishedOperation" with a method in it, you'd then have an instance called "listener" in your class for it, implement it and then when the operation is complete, call the instance and the method Nov 08 15:30:49 DarkSlay3r, it wont work, because I'll be having couple of stuff, not just imageview Nov 08 15:31:19 Yeah but i really can't fathom why you would want to put controls in something the size of a chathead Nov 08 15:31:33 eghdk: http://pastebin.com/Mh5F4rvr Nov 08 15:31:43 If you put a small layout there then you will be trying to act like samsung Nov 08 15:31:50 Dark-Side , nooo Nov 08 15:31:54 DarkSlay3r, nooo Nov 08 15:32:14 DarkSlay3r , i will be implementing this when i get a notification Nov 08 15:32:29 What's wrong with toast? Nov 08 15:32:32 so it'll be something small.. Nov 08 15:32:36 toast is not clickable Nov 08 15:32:46 i see Nov 08 15:32:50 and a dialog will defer user attention and request attention Nov 08 15:32:53 best way is this.. Nov 08 15:33:02 at least this holds if the user moves to another activity... Nov 08 15:33:09 small, at the above, wont harm Nov 08 15:33:13 CallumTaylor: Thanks man. I really appreciate the example. Big help. Thanks again Nov 08 15:33:15 i see good idea Nov 08 15:33:18 np Nov 08 15:33:23 but +1 for the 'act like samsung' Nov 08 15:33:52 If you get it working share please Nov 08 15:34:14 I will, Nov 08 15:35:51 DarkSlay3r im on it. Nov 08 15:37:08 CallumTaylor mLayoutView = mLayoutInflater.inflate(R.layout.click, FlyBitch.this); Nov 08 15:37:18 gives me an error on 'inflate' Nov 08 15:37:39 CallumTaylor i am doing this inside onCreate of a service. Nov 08 15:38:04 you don't need flybitch.this, just pass null Nov 08 15:38:16 oh yea.. it needs a viewgroup not context Nov 08 15:38:25 no pass null Nov 08 15:38:34 and then call windowmanager.addview(mLayoutView) Nov 08 15:38:44 moment of truth. Nov 08 15:38:52 = pressing play button on eclipse and holding ur breath Nov 08 15:40:15 i'm going to die Nov 08 15:40:28 i can't keep holding my breath Nov 08 15:40:29 * CallumTaylor begins CPR Nov 08 15:40:35 *OMG Nov 08 15:40:43 * tonyMontana9099 success Nov 08 15:40:53 can i breath now? Nov 08 15:40:55 CallumTaylor: I need to start all of my liseners in onCreate? Nov 08 15:41:00 the operation was successful, thanks to tips from CallumTaylor Nov 08 15:41:10 CallumTaylor is awesome Nov 08 15:41:14 now, I want to press on the button, and take an action, what to do. Nov 08 15:41:22 eghdk not necessarily, you can do them wherever as long as its implemented before getting called Nov 08 15:41:23 tonyMontana9099 is equally awesome Nov 08 15:41:34 * tonyMontana9099 agrees and ins satisfied ? Nov 08 15:42:16 gotcha. Nov 08 15:42:50 In that example though. You have public static interface onFinishedListener{ publiv void onFinished()} Nov 08 15:43:01 Can that go at the bottom of my class? Nov 08 15:43:06 sure Nov 08 15:43:09 or a separate file if you want Nov 08 15:43:11 It doesn't necessarly have to be on top right. Nov 08 15:43:16 correct Nov 08 15:43:16 Okay. Just triple checking. Nov 08 15:43:54 CallumTaylor , now I need to set a listener for each of my views inside the big view ? Nov 08 15:44:26 Well that should be easy enough right? Nov 08 15:44:27 you can do any operations on the views after inflating the view Nov 08 15:44:40 yep. 7th grade stuff Nov 08 15:44:43 standard onClickListeners Nov 08 15:44:46 * tonyMontana9099 goes to work. Nov 08 15:44:56 a small techy question tho. Nov 08 15:45:08 I cant set a click listener on the whole view right ? Nov 08 15:45:18 each view is clickable alone ? Nov 08 15:45:32 If you want to do that then set one on the parent Nov 08 15:45:41 the linearlayout Nov 08 15:45:45 ....i think Nov 08 15:46:18 aha Nov 08 15:46:19 don't forget to set isClickable Nov 08 15:46:36 on what ?CallumTaylor Nov 08 15:46:44 the parent view Nov 08 15:46:46 if its a view group Nov 08 15:47:01 and what is the method to get the button view to put inside button Nov 08 15:47:13 ie, Button = myInflatedView.getWHAT? Nov 08 15:47:18 findViewById Nov 08 15:47:44 R.id.theview Nov 08 15:49:28 * tonyMontana9099 is on it. Nov 08 15:50:18 didnt know that a service can implement onclicklisteener Nov 08 15:54:32 any class can implement any listener Nov 08 15:54:34 interface* Nov 08 15:55:07 CallumTaylor aha. Nov 08 15:55:14 CallumTaylor DarkSlay3r I did it. Nov 08 15:55:20 working aparently guys. Nov 08 15:55:52 Haven't really worked with layoutInflator previously, some tips from CallumTaylor and I got things going, and it is working now. Nov 08 15:56:00 DarkSlay3r do you want the solution ? Nov 08 15:56:08 Yes please Nov 08 15:56:16 I am thinking of taking the project and adding to it. Nov 08 15:56:31 What do you want me to send you ? the fly Nov 08 15:56:35 It would be a good addition Nov 08 15:56:43 the flyBitch.Java (service) Nov 08 15:56:51 Sure Nov 08 15:56:55 okay Nov 08 15:57:14 should I take it and fork it on github ? Nov 08 15:57:23 Up to you Nov 08 15:57:53 I'll see Nov 08 16:08:53 howdy guys. so Im trying to read from file from bufferedreader. but whenever I type BufferedReader br = new BufferedReader(new FileReader(file)) I get an error that it's constructor is undefined Nov 08 16:09:03 I'm doing everything from a tutorial, but still same shit Nov 08 16:09:37 what to do? Nov 08 16:11:29 is this an IDE error? Nov 08 16:12:54 Leeds in da house. Nov 08 16:12:58 heh idk. how should I know that? I get it right when I type Nov 08 16:13:14 well... Nov 08 16:13:16 are you using an IDE? Nov 08 16:13:20 does it give you an error? Nov 08 16:14:04 yes, eclipse. well it gives me an error just when I write it. Nov 08 16:14:41 stop Nov 08 16:14:43 never mind Nov 08 16:14:56 hammer time Nov 08 16:15:00 seems like I shouldn't have used class name FileReader Nov 08 16:15:03 ._. Nov 08 16:15:23 Denel +1 for hammer time Nov 08 16:15:34 cant touch this Nov 08 16:15:54 We could totally have guessed that from "it's constructor is undefined" Nov 08 16:16:39 noobs are always noobs. dont blame us for our noobity Nov 08 16:17:13 noobity ?/10 Nov 08 16:21:38 9/10 Nov 08 16:22:51 agreed Denel Nov 08 16:24:14 so... why the hell it gives me an error that there should be a semicolon at line 6? http://pastebin.com/JSJ0BFa5 I just copies everything... ._. Nov 08 16:25:55 Good morning! Nov 08 16:26:19 mornin' Nov 08 16:27:16 I have a view that is touchable, you can "move" and "scale" the drawing inside: http://pastie.org/8465831 when you're doing either, I draw a grid on top of the view. Nov 08 16:28:13 The problem is that when i lift all of my fingers, *sometimes* the grid is still drawn. I recognize ACTION_UP and ACTION_POINTER_UP as indicators that they are no longer touching the view, should I be listening for something else? Nov 08 16:29:03 Maybe you're getting ACTION_CANCEL Nov 08 16:29:41 Hmm, what do you mean getting? Nov 08 16:29:48 Oh, I see! Nov 08 16:30:11 Awesome thanks, I bet this'll work Nov 08 16:30:33 Simon, how long have you been programming android? Nov 08 16:30:46 ACTION_UP and ACTION_POINTER_UP are not the same thing btw Nov 08 16:32:03 ACTION_POINTER_UP is when multiple pointers are down and one of them leaves, ACTION_UP is when the last pointer leaves Nov 08 16:32:55 Dunno, 3 years maybe? Nov 08 16:33:53 SimonVT, don't you have a counter ? Nov 08 16:46:30 guys when precisely onStartCommand is called in a service ? Nov 08 16:46:36 right after onCreate() ? Nov 08 16:48:14 simon, pointer up is when only 1 non-primary pointer is up, does that mean that there will still be one pointer on the screen? Nov 08 16:49:09 you know what, maybe if i just test at the end of all of it, if getPointerCount() is > 0 Nov 08 16:49:13 derp Nov 08 16:57:32 that didn't work at all Nov 08 17:01:14 Also, you need to use getActionMasked Nov 08 17:02:09 Otherwise you only get to handle events for pointer 0 Nov 08 17:02:31 Unless that's what you want, I don't know Nov 08 17:14:15 SimonVT ok Nov 08 17:14:22 No, I need events for pointer 1 and 2 Nov 08 17:15:03 Er, I thought that getX(1) and getX() would cover that? Nov 08 17:20:48 SimonVT, maybe I'm just doing what I'm doing completely wrong, check out that paste… Nov 08 17:20:56 I want to check for MOVE events and PINCH events Nov 08 17:21:04 that's all... Nov 08 17:21:26 What if I pinch and move at the same time Nov 08 17:22:57 And what if the user puts down 3 pointers, then removes one Nov 08 17:23:18 Or just puts down 2 pointers, then removes the first Nov 08 17:23:24 Your move stuff would be messed up I think Nov 08 17:23:33 Since you don't update touchX/Y Nov 08 17:24:00 Yea, that's what i think is difficult here Nov 08 17:24:10 I'm gonna use this guys thing and hope he accounts for all that: http://code.almeros.com/android-multitouch-gesture-detectors#.Un0dppSxNXe Nov 08 17:24:46 His framework lets you "plug and play" certain gestures in the onTouch Nov 08 17:25:32 UGH Nov 08 17:25:37 Licenses everywhere Nov 08 17:26:46 hey everyone. has someone ever had trouble with BitmapFactory.nativeDecodeAsset returning null? Nov 08 17:27:31 explodes: It's BSD, so? Nov 08 17:28:02 I'm 100% sure the asset exists and the problem doesn't seem to happen every time either.. really confused. Nov 08 17:29:21 Anyone familiar with local notifications and PhoneGap? Nov 08 17:31:32 kakazaa: Do i need to create an activity or view with the copyright info to comply? Nov 08 17:32:06 is it me or does AlarmManager fire not at the time you specify but random times? Nov 08 17:32:13 anyone doing development with Maven? Nov 08 17:32:52 zquad: on kitkat, alarms are imprecise by default Nov 08 17:32:59 LOL Nov 08 17:33:02 OH fucking god Nov 08 17:33:15 alarms are not guaranteed to fire at exact times Nov 08 17:33:35 I think that's noted in the docs well before kitkat Nov 08 17:33:38 who needs precise alarms anyway? Nov 08 17:33:41 setExact is.. And set/setRepeating on pre-kitkat Nov 08 17:33:47 i am tearing my hair out for hours Nov 08 17:34:27 That's why you read https://developer.android.com/reference/android/os/Build.VERSION_CODES.html#KITKAT before updating target sdk Nov 08 17:34:48 ah right, it only changed in kitkat Nov 08 17:35:39 god I want to cry, I wish I can cry Nov 08 17:55:43 zquad: how do you call alarmmanger's set? Nov 08 17:56:02 setRepeating() Nov 08 17:56:16 I hope that is what you are asking Nov 08 18:00:24 SimonVT: So, I'm using ScaleGestureRecognizer now, and its scaling to extreme proportions and not letting me scale downwards Nov 08 18:00:34 Hi Nov 08 18:00:36 let me read some more tutorials, none of them are helping me out here Nov 08 18:00:40 anybody here? Nov 08 18:00:56 I have a problem with the NDK Nov 08 18:01:06 I'm porting a game engine Nov 08 18:01:22 And it may crash in certain specific occassions Nov 08 18:01:35 For example, if the game data file is missing Nov 08 18:01:38 But Nov 08 18:01:46 The process keeps restarting when it crashes Nov 08 18:02:48 I tried exit, _exit, kill, pthread_destroy, explicit SIGKILL, explicit SIGSEGV/SIGBUS, implicit SIGSEGV/SIGBUS Nov 08 18:02:54 But the app still restarts Nov 08 18:03:22 Until I remove it from the recents Nov 08 18:14:22 I have created an application which calls a method to update UI. http://paste2.org/m47zHeAE is my class which is responsible for updating UI. but handler.post is taking too much time to update it on UI. Nov 08 18:16:06 I calling onUpdate function on each 1 second. but UI is not updating on time and it queues all the requests and process one by one which makes queue very bigger and causes issue on running app again. Nov 08 18:16:21 Does anyone know any faster solution to update UI? Nov 08 18:16:56 OK! I got it. Nov 08 18:16:59 Finnaaaaaaally Nov 08 18:17:10 Except I still have a bug where the grid is STILL showing up Nov 08 18:17:48 anybody has an answer to my question? Nov 08 18:18:02 About NDK auto-restart after crash Nov 08 18:18:04 Hello Nov 08 18:18:07 Hello Nov 08 18:18:21 Do u know the GooglePlay for education? Nov 08 18:18:25 I sure don't - my hunch is that it is a debug setting? Nov 08 18:18:28 @ SiPlus Nov 08 18:18:45 licksjp: that question will get you nowhere Nov 08 18:18:54 explodes, no, it's not a debug compile, and the only dev setting enabled is ADB Nov 08 18:19:03 ask something more specific about GooglePlay for eductaion. Nov 08 18:19:26 SiPlus not sure then.. Nov 08 18:19:35 the activity manager restarts it Nov 08 18:19:45 but I can't find anything in the Java code of the AM Nov 08 18:19:51 maybe it's in the native part of the AM Nov 08 18:20:10 if (this.mMove.isInProgress() || this.mPinch.isInProgress()) { this.drawGrid(canvas): } // Is there a fail safe way make sure that a view is NOT being touched? Nov 08 18:20:16 That code doesn't cover it... Nov 08 18:20:21 I had entryed sign up,but Internal server error,soI couldn't have entryed Nov 08 18:20:58 someone send me a screenshot Nov 08 18:21:04 licksjp: restart your device and try again. otherwise try again later: licksjp Nov 08 18:21:14 Looney of what Nov 08 18:21:16 and in it, there is on-screen option button Nov 08 18:21:24 oh Nov 08 18:21:38 of my activity using actionbarsherlock Nov 08 18:22:01 but, there are none on my archaic phone :-( Nov 08 18:22:15 why I can access this method when it's in the same class, but I can't access it when it's in another class? I can access other methods from that other class, except this one. http://pastebin.com/jF177EGz Nov 08 18:22:21 is, there some way to make them disappear Nov 08 18:23:06 like... www.metahill.com ? Nov 08 18:27:28 Is there any faster way to update UI from another thread, I am calling function at 1 sec but still its queuing the requests. Nov 08 18:28:12 Maybe your requests are taking too long Nov 08 18:28:30 Use a profiler Nov 08 18:29:01 SimonVT: here is my class which is calling a UI method to update http://paste2.org/m47zHeAE Nov 08 18:31:10 SimonVT: I am getting proper data onUpdate UI function but in Handler.post Runnable its giving me delay for request Nov 08 18:31:52 here's logcat regarding my issue Nov 08 18:31:54 I/ActivityManager( 499): Process com.steamcommunity.siplus.sourceinternal (pid 4255) has died. Nov 08 18:31:55 D/dalvikvm( 4269): Late-enabling CheckJNI Nov 08 18:31:57 I/ActivityManager( 499): Start proc com.steamcommunity.siplus.sourceinternal for activity com.steamcommunity.siplus.sourceinternal/android.app.NativeActivity: pid=4269 uid=10123 gids={50123, 3003, 1015, 1028} Nov 08 18:32:10 zquad: I was asking about exact arguments, especially first - type Nov 08 18:32:13 so, the process died => the process is restarted with another pid Nov 08 18:32:45 icedp: Oh i had it set to 10 seconds repeat for testing Nov 08 18:33:12 icedp: and it was repeating every 3 - 3.5 mins Nov 08 18:33:22 explodes: ty Nov 08 18:34:24 http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.3_r2.1/com/android/server/am/ActivityManagerService.java Nov 08 18:34:29 found the death message Nov 08 18:36:20 sweet i'm helpful Nov 08 18:37:11 zquad: try calling with set(..) Nov 08 19:09:11 Hy, I've tried to create a new project with the new studio (0.3.3) and it failed with an error message: Cause: org.gradle.internal.service.ServiceLocator.(Ljava/lang/ClassLoader;)V and I'm gettint the same message when I try to open the project afterwards... Anyone has the same problem? Nov 08 19:09:33 I'm on ubuntu 13.10 with oracle java 7 Nov 08 19:10:20 u-foka: That's not an error message, that's part of a stacktrace. The full stacktrace could be helpful. Nov 08 19:10:55 u-foka: However, if this isn't your application, and is instead IntelliJ Android Studio, I'd take it up with them. And switch to IntelliJ IDEA CE. Actually, the I'd do the latter anyway. Nov 08 19:12:35 Yes it's android studio, is IntelliJ IDEA CE better? Nov 08 19:12:46 what do you use instead of getAssets() to get a file? Nov 08 19:13:02 hey all Nov 08 19:13:36 u-foka: they're the same thing Nov 08 19:13:43 u-foka: Same core. More configurable. Tends to be better supported because it's used by server-side developers. Nov 08 19:14:07 u-foka: Android Studio is a certain version of IntelliJ IDEA CE with certain plugins bundled. Nov 08 19:14:49 I see, thanks! Nov 08 19:15:32 peep cmon Nov 08 19:16:15 Denel: A file not part of your APK or associated binary bundle? Nov 08 19:16:35 part of my apk Nov 08 19:16:47 btw, who owns android studio? jetbrains or google devs? Nov 08 19:17:01 Denel: Then you'd use Resources. Nov 08 19:18:09 slassh: They both own different parts. Nov 08 19:18:34 slassh: For license details, please see the LICENSE file in your installation. Nov 08 19:19:26 I see, thanks! I still haven't jumped ship from Eclipse but seriously considering it Nov 08 19:32:42 so yeah, to access it from another class I need to pass context. whatever it is. how to do that? Nov 08 19:37:27 Using the gradle build system in android studio, should specifying "apply plugin: 'android-library'" in my build.gradle result in a .aar file being created in the bin directory? The gradle build works fine but I can't find any output for the lib. Nov 08 19:39:10 ahh it looks like it goes into build/libs Nov 08 19:41:23 So I see that .aar files cannot be depended upon locally right now. Does that include putting them into a local maven repo and referencing that way? Nov 08 19:46:50 jbwyme: no Nov 08 19:47:56 @JakeWharton so to clarify, I should be able to provide an aar as a dependency from a local maven repo? Nov 08 19:50:13 jbwyme: correct, you can use a local maven repo Nov 08 19:50:16 just not a local path Nov 08 19:50:46 ok great… and for those still using eclipse/ant they'll just need to reference the lib source as an external dependency I'm assuming Nov 08 19:51:45 they'll need to reference the project, yea Nov 08 19:54:27 lots of open source projects use Maven for build - anyone doing that ? Nov 08 19:58:00 pellis: i did for a while, but gradle is becoming easier (as long as you dont mind not having unit tests) Nov 08 19:59:07 jbraeg, is the workflow with it much slower when you use intellij? Nov 08 20:01:00 pellis: no, i dont think so. android studio is being built with gradle as the standard in mind Nov 08 20:01:13 some things are a little aggro Nov 08 20:01:15 and how does maven compare in slowness ? Nov 08 20:01:31 build times for me are about the same Nov 08 20:01:57 i see. Nov 08 20:02:20 well using maven i find myself running the 'package', and then 'android:redeploy' and then 'android:run' Nov 08 20:02:24 is this how its supposed to be? Nov 08 20:14:29 Hello, I want to do an IO operation in the background, about every minute. Should I use a Service combined with an AsyncTask or just an IntentService Nov 08 20:16:11 and how do I handle the phone's sleeping behaviour? Nov 08 20:21:14 is there an easy way to know which resource folder android is using? Nov 08 20:21:33 besides adding a different resource in each one and looking for it? Nov 08 20:28:03 totic: There's one for each type of resource. Nov 08 20:29:23 kamoricks: I want to know if its using hdpi, lhdpi or mdpi Nov 08 20:31:13 totic: For what purpose? There are are better ways to determine phone screen resolution. Nov 08 20:31:55 kamoricks: I have like 5 different android phone/tablets and I am trying to test the different sizes of things on each of them Nov 08 20:32:12 so it would be nice to have an easy way to determine which resource is being used Nov 08 20:32:27 totic: Ah. For emulation purposes, http://developer.android.com/guide/practices/screens_support.html has the list. Nov 08 20:33:25 DisplayMetrics should have what you are looking for. from an activity, getResources().getDisplayMetrics() .. see the density property Nov 08 20:33:37 thanks! Nov 08 20:33:43 I'm trying to use this Listener example given to me by CallumTaylor, but I'm not able to get the onFinished() method to trigger. Any ideas? Nov 08 20:33:44 ok, is there some easy way in android to get "number" as "international/locale number (if not already)" ? Nov 08 20:33:44 http://pastebin.com/Mh5F4rvr Nov 08 20:40:28 phew that was close; almost updated gradle 0.3.3 Nov 08 20:40:33 oops, AS 0.3.3 Nov 08 20:42:13 i still can't figure out how to make my update policy 'dev' not 'canary' Nov 08 20:42:16 why would you not ? Nov 08 20:42:21 I just updated Nov 08 20:42:24 has a killer bug :) Nov 08 20:42:27 bwahahah Nov 08 20:42:29 what bug ? Nov 08 20:42:39 the bug thats about to bite you Nov 08 20:42:42 hey all, this is important: I am trying to create an http call inside a callback function which causes the app to crash (its also quite hard to debug becuase i need to be connected to an external accessory so an engineer here suggested to use a httpservice and in the callback raise a flag which is continually monitored by this service and do my http call when the flag gets raised Nov 08 20:43:02 im new to android, but in terms of programming this seems to be raising a lot of red flags in my mind Nov 08 20:43:09 is this type of operation safe? Nov 08 20:43:33 and is it acceptable to do6 Nov 08 20:43:42 g00s: ???!!! Nov 08 20:44:02 StingRay_ good idea to read this before update ;) http://tools.android.com/recent Nov 08 20:44:11 even when you're a canary Nov 08 20:44:16 JeremieDeNoob: syntax error: missing ')' Nov 08 20:44:54 helo: what i think u selected the wrong person. Nov 08 20:55:11 hm, i find nothing interesting with 0.3.4 anyhow Nov 08 20:55:33 most work on the gradle module editor; since i guess they figure we don't know how to edit a text file Nov 08 20:55:51 * g00s yawns Nov 08 20:56:14 * StingRay_ has yet to even look at what this gradle thing is :) Nov 08 21:02:12 "Support for using sourceCompatibility 1.7 even the IDE is running on JDK 1.6 (as it is by default on Mac OSX for example, even when JDK 1.7 is installed)." Nov 08 21:02:40 since apple deprecated java back in 10.7 or 10.8, they could have avoided that whole thing if they just used oracle's app bundler Nov 08 21:02:54 i guess thats more an intellij question though Nov 08 21:04:09 " We now convert the bytecode of compiled classes on the fly such that they can be executed by the layout renderer." Nov 08 21:04:12 * g00s headdesk Nov 08 21:22:42 Hey guys, I have two shapes with transparency overlapping… when they overlap, the overlap area looks darker. Is there anyway to stop this? Nov 08 21:24:30 eghdk: that's sortof how transparency works Nov 08 21:25:12 however, if you want only the image on top to show, you can avoid it Nov 08 21:25:23 it's called alpha compositing Nov 08 21:25:28 and android does do it by default Nov 08 21:29:27 if you return false in onInterceptTouchEvent, is there a way to be given the option to intercept the event once again? After my child view is done moving around I want to pass control back up to the parent. Nov 08 21:29:47 .-. Nov 08 21:30:02 -.- Nov 08 21:30:12 ._. Nov 08 21:30:51 -_- Nov 08 21:31:04 trying to mimick the new google maps pull up for place details Nov 08 21:31:16 nevermind Nov 08 21:31:17 i think i got it Nov 08 21:35:40 here is what i'm talking about https://dl.dropboxusercontent.com/u/743476/demo.mp4 Nov 08 21:38:11 there is always a mad rush to copy everything google does in its apps Nov 08 21:38:28 is this cause people think it's amazing design ? or users like it or are used to it ? Nov 08 21:39:18 StingRay_: because I'm told to :-) Nov 08 21:39:22 Hi guys, do you know if there is a way to retrieve the call history of calls that were attempted (but did not succeed) when there was no reception? The thing is, I got a phone number of a friend that I didn't see in a while. I punched the number and tried to call (using default dialer) when I was in a subway. Unfortunately the phone is not logged into the log history, so it is lost. Is there a way to retrieve it through cli may Nov 08 21:39:42 also, if it looks complex I want to figure out how to do it. Nov 08 22:00:51 Hmm what's the name of the view where users can slide a tab from 0-100 (or 0-1) Nov 08 22:00:58 Like the seekbar, but user-interactable Nov 08 22:02:18 anyone knows of an issue with decoding bitmaps from assets? it seems to fail sometimes (and always on kitkat).. Nov 08 22:03:42 it seems that, with a valid AssetManager.AssetInputStream, nativeDecodeAsset returns null (I can see the length and id of said asset) Nov 08 22:08:27 k, I found the issue, re-using input streams for decoding bitmap dimensions and later to decode the bitmap itself is not a good idea, even if the input stream is reset Nov 08 22:22:02 explodes: Picker. Nov 08 22:22:36 explodes: Sorry, no, that's not right. That's just what *looked* right from the controls page. Nov 08 22:23:24 explodes: http://developer.android.com/design/building-blocks/seek-bars.html Nov 08 22:25:13 why is Bitmap parcelable? passing anything much larger than an icon usually causes binder failures. it seems like having bitmap implement parcelable encourages bad practice. Nov 08 22:35:48 Hhey all, I'm getting all setup with gradle, android studio, etc and I have a question about testing. I have an android library module that previously had it's own test module that i've moved into the src/instumentTest folder. I've gotten that to execute using "gradle connectedInstrumentTest". The problem is that my library contains no Activity classes but in order to run the tests (extending from ActivityInstrumentationTestCa Nov 08 22:35:49 I need to provide an Activity. Is there some standard way to create/mockup an Activity for testing? Right now we just have a "DummyActivity" which feels like bad practice. Nov 08 22:38:03 *a DummyActivity inside the lib just for the purpose of testing Nov 08 22:39:12 I suppose alternatively I could just have a sibling module to the library that contains the DummyActivity and the test cases but It'd be much nicer to have it all packaged under the library Nov 08 22:57:23 yo people who admin the page Nov 08 22:57:29 http://tools.android.com/download/studio/canary/latest/ <-- mac and linux links Nov 08 22:58:40 jbwyme i dont understand, i don't have an Activity for my library project with no activities / services Nov 08 22:58:50 Zooklubba what about it ? Nov 08 22:59:05 Mac: http://dl.google.com/dl/android/studio/ide-zips/0.3.3/android-studio-ide-132.904478-linux.zip (141 MB Nov 08 22:59:11 Linux: http://dl.google.com/dl/android/studio/ide-zips/0.3.3/android-studio-ide-132.904478-mac.zip (141 MB) Nov 08 22:59:27 as in, wrong links Nov 08 22:59:40 0.3.4 isn't out yet i guess Nov 08 22:59:52 0.3.3 is busted somehow Nov 08 23:00:06 check hte last part, mac links to the linux version and vice versa Nov 08 23:00:26 g00s: Correct, the library project is fine but the test class for the project extends ActivityInstrumentationTestCase2 which requires an Activity type. So I'm trying to figure out how to run the tests without creating a Dummy Activity in my library. Nov 08 23:00:27 not surprised Nov 08 23:00:54 O.o Nov 08 23:01:00 that's why I still use Eclipse Nov 08 23:02:32 previously we had a separate project for the Test cases which just depended on the library for the sole purpose of including a Dummy Activity class for test purposes. Nov 08 23:02:45 (trying to get our code in a reasonably structured state) Nov 08 23:02:48 jbwyme right, now its one project Nov 08 23:03:03 gradle will automatically do a whole bunch of stuff Nov 08 23:03:20 anyone know if you can stream vimeo videos using something like rtsp for vimeo videos? Nov 08 23:03:31 i know youtube can do this Nov 08 23:04:16 jbwyme all i have are Testcases in my instrumentTest directory Nov 08 23:04:32 i dont even have a manifest or anything else under instrumentTests Nov 08 23:04:40 g00s: yep that's where I put them… do you have any tests that extend android.test.ActivityInstrumentationTestCase2? Nov 08 23:04:44 its literally 'gradle connectedCheck' and done Nov 08 23:04:50 no Nov 08 23:05:12 they all extend TestCase Nov 08 23:06:00 I see… the previous maintainer used ActivityInstrumentationTestCase2 which requires an Activity to run all of the tests. Nov 08 23:06:13 no, thats only for testing Activities Nov 08 23:06:24 It looks like the only thing the tests need is an ApplicationContext, I bet there's a way to mock that Nov 08 23:06:33 oh, then in that case Nov 08 23:07:09 AndroidTestCase Nov 08 23:07:39 awesome I'm going to look into refactoring the tests, thanks for the direction! Nov 08 23:10:09 My spinner is placed behind my edittext. I want to be displayed below. Any suggestions? Nov 08 23:10:12 https://gist.github.com/7379116 Nov 08 23:20:26 how bout that bad android studio version? Nov 08 23:21:29 hehe, thats funny they exchanged the mac and linux zip files Nov 08 23:21:39 who is running that show over there :) Nov 08 23:24:43 g00s: that was a super easy refactor, thanks again! Is gradle just connecting to my emulator under the hood? Nov 08 23:27:33 anyone know if you can stream vimeo videos using something like rtsp for vimeo videos? Nov 08 23:27:41 is there a better place to ask? Nov 08 23:30:59 jbwyme glad it worked; i dont recall know how the android-gradle tasks find what to connect to for running tests Nov 08 23:47:19 ok, 0.3.4 is out if anyone wants it Nov 09 00:06:14 hm, still the case gradle library projects can't have raw assets ? Nov 09 00:10:35 looks like the web site is out of date; seems like android-library plugin should handle it :) Nov 09 00:16:15 s Nov 09 01:04:54 newbie question here, are onclick listeners confined to the activity that loads the layout? Nov 09 01:09:49 no Nov 09 01:16:09 <|0xD34D|> mistenkt: you must declare a public void sayHello(View v) method of your context (typically, your Activity). Nov 09 01:16:25 <|0xD34D|> For instance, if you specify android:onClick="sayHello" Nov 09 01:17:50 No Nov 09 01:18:10 You can inflate everywhere and put a onclick listener straight to the found element :) Nov 09 01:18:29 im just having a hard time figuring out how to have one class handle all the shit that goes on in one fragment layout and have another class handle what goes on in another fragment layout Nov 09 01:18:44 it must be said im very new at this, iv only done webdeving before Nov 09 01:19:28 <|0xD34D|> you can have an OnClickListener just about anywhere, and then use View.setOnClickListener() to that instance of OnClickListener Nov 09 01:19:52 <|0xD34D|> I mistook your original question as you were using the onClick property in xml Nov 09 01:23:00 im using the navigation drawer layout with fragments now, android studio set it up, and all the loading of different fragment layouts is getting done in the mainactivity, so i just wanna find out how i then can make another class be in charge of doing the logic spesific to the loaded fragment. Nov 09 01:23:07 mistenkt. Dont worry about how android handle this. You can inflate all layouts and listeners and such everywhere what have at least activity or fragment as baseclass Nov 09 01:23:44 you can use all the stuff in the fragments too. getActivity()...... Nov 09 01:25:16 but usually you dont want that. For example: you have a tablet which can have 2 fragments on one screen. You want to hook the click in fragment 1 in the main to handle the stuff what the second fragment should do. If you have only a small screen and handle only 1 fragment ... Nov 09 01:25:36 So you want to listen (and manipulate) the click in the first fragment to do some stuff in the second fragment Nov 09 01:26:47 aw, I can't configure source roots in Android Studio 0.3.4 any longer. Nov 09 01:27:02 the APT story just got worse before it gets better. :( Nov 09 01:27:56 orospakr what happened ? Nov 09 01:28:15 seems like 0.3.4 may not have even fixed what 0.3.3 did :) Nov 09 01:29:19 g00s, if you right-click a directory in the project browser, the set roots option is no longer there. Nov 09 01:29:22 misterli, could i msg you for a second? Nov 09 01:29:30 it seems like 0.3.4 did modify how modules work. Nov 09 01:29:39 yes Nov 09 01:30:02 i wish they just left all that crap in the gradle file; want module? edit gradle ! Nov 09 01:37:37 g00s, I think that's what they've done, however, in this case I'm working around a gradle deficiency by manually re-marking my apt generated directory in IDEA after doing a gradle projecy sync. Nov 09 01:37:42 or rather, I was Nov 09 01:45:46 do you guys like gradle? Nov 09 01:46:36 i do Nov 09 01:46:45 well; i have a love hate thing with it Nov 09 01:47:19 yep... Nov 09 01:47:24 i find the DSL confusing , the docs are kinda incomplete Nov 09 01:47:41 and then there is Groovy ;) which, is probably an OK choice for this kind of thing Nov 09 01:48:26 sometimes i feel like i'm just staring at arbitrary { } blocks with things in it Nov 09 01:49:39 sometimes i feel like that i would lovely replace android studio with eclipse again.. Nov 09 01:49:41 :P Nov 09 01:50:32 Harhs Nov 09 01:50:32 i hardly ever had problems with eclipse; i wonder if its because i started with the platform runtime and added the ADT, so it was as minimal as possible Nov 09 01:50:36 harsh* Nov 09 01:50:43 It isn't THAT bad Nov 09 01:53:11 eclipse does not use the memory very well, but its good for some stuff like eclipse paho.. Nov 09 01:53:44 misterli my eclipse install took far less memory than AS Nov 09 01:53:47 faaaar Nov 09 01:53:59 it was usually around 350-450mb Nov 09 01:54:20 Eclipse doesn't even compare to intellij as an IDE.. Ant doesn't even compare to Gradle as a build system Nov 09 01:54:23 (imo) Nov 09 01:54:43 SimonVT doing anything cool with gradle like working on any plugins ? Nov 09 01:55:02 g00s: Naw, I just do Android code Nov 09 01:55:20 haha g00s. Do you know why? Because its almost impossible to get eclipse to use more then 512 mb memory Nov 09 01:55:26 there are tons of settings required which does not work well Nov 09 01:55:27 The other stuff doesn't interest me Nov 09 01:56:34 g00s, you should try this: https://github.com/SimonVT/adapterviewanimator Nov 09 01:57:22 SimonVT you could spend a long time learning gradle / groovy well, yeah, cool i'll check it out Nov 09 01:57:39 not really something i want to get bogged down in either Nov 09 01:58:01 the ant build was so rigid; if it didn't do what i wanted i just gave up :D Nov 09 01:59:36 I usually just ask JakeWharton what stuff is new.. Dude works with Android, so he can invest a lot more time than me Nov 09 02:00:58 SimonVT your degree was in power engineering , right ? Nov 09 02:01:07 Yeah Nov 09 02:02:16 has to be a ton of opportunity there with renewables / etc. lots of people here are pissed with their electric companies, and trying to figure out how to go off-grid completely Nov 09 02:02:19 My title is grid planner now, planning the future power grid in Denmark :p Nov 09 02:02:35 awesome :) Nov 09 02:03:55 Everything we do with renewables is dictated from the government (based on where we, politically, want to be in 2020/2030/2050) Nov 09 02:05:22 Or well, we don't do anything with renewables.. We're just obligated to connect them to the grid Nov 09 02:06:21 But we have to take it into account when doing analysis, so we can design our grid to handle it Nov 09 02:07:18 yo uguys are planning for mr fusion, right ? :P Nov 09 02:07:49 Unlikely Nov 09 02:08:32 Rather, not at all Nov 09 02:08:52 It's not something we consider on a larger scale for the next 40 years at least Nov 09 02:09:48 (we're going to be free of fossil fuels by 2050, at least working towards it) Nov 09 02:10:55 (across electricity, heating, transport, etc) Nov 09 02:12:46 i doubt our country will be able to follow suit with the political BS we have here Nov 09 02:13:28 It's also a lot harder to implement it on a larger scale Nov 09 02:14:53 We're 5 mil people.. And we're located pretty well Nov 09 02:15:22 Connections to 3 other countries, 2 more planned Nov 09 02:15:54 On such a small scale, compared to US, there's a lot more economy in it Nov 09 02:16:43 Some of the EU plans are looking a bit too optimistic as it is (not here tho, smaller scale) Nov 09 02:17:28 That also means we become a testing ground for the future grids, so a lot of billable hours telling you about that :p Nov 09 02:17:40 :D Nov 09 02:18:44 SimonVT do you use a lot of math on your job ? Nov 09 02:19:30 It'll come to you as well, don't worry.. And by then you can do it a lot cheaper since we've matured the technology (not just us, a lot of grants go into it) Nov 09 02:20:02 Not really.. Nov 09 02:20:14 Well, I need to understand how it works Nov 09 02:20:17 my urgent concern here in the US is that hydro-fracking is polluting our water sources Nov 09 02:20:35 But we use various applications to do all the heavy calculations Nov 09 02:20:43 cool Nov 09 02:20:54 But if you don't understand the math you won't know if the results are right Nov 09 02:22:35 is there an easy way to create an app that is like Gallery, but only shows photos ive included in the app? Nov 09 02:24:38 canadiancow: Like, look up drawables? Nov 09 02:24:54 huh? Nov 09 02:25:00 yeah Nov 09 02:25:22 R.drawable.class.getFields() and filter by name ? Nov 09 02:25:31 but how do i display them :P Nov 09 02:25:37 just a gridview of imageviews? Nov 09 02:25:49 and what im really getting at with this: is there some prebuilt solution :P Nov 09 02:25:55 I suppose Nov 09 02:26:26 Do you need zooming and stuff? Nov 09 02:26:29 no Nov 09 02:26:49 ideally id like to launch each into a full screen, and then share from there Nov 09 02:26:56 but i dont necessarily need the full screen :P Nov 09 02:27:11 Then yeah, just a gridview Nov 09 02:27:38 Get the drawable id's, use e.g. Picasso to lazyload Nov 09 02:47:11 do iPad mini cases fit the 2013 N7 generally? they have some pretty nice ones Nov 09 02:47:50 i mean more puch-like style Nov 09 02:47:56 *pouch Nov 09 02:48:15 not expecting things to be interchangeable if there are clips / etc Nov 09 02:56:47 g00s: all talks of the enemy are forbidden here Nov 09 02:56:58 How dare you speak of the i... Nov 09 02:57:02 of the i... Nov 09 02:57:11 the iPaaaaaaaaad!!! Nov 09 02:57:56 i went into BestBuy, and there was literally one fucking choice for a cover; samsung and apple had like 2 isles full of shit Nov 09 02:58:09 between them Nov 09 02:58:17 I hate it when that happens Nov 09 02:58:22 g00s don't you know its now a 2 horse race Nov 09 02:58:31 It's the same where i live too Nov 09 02:58:33 most of tech is usually a 2 horse race Nov 09 02:58:42 The stores full of iCrap Nov 09 02:58:45 like apple and ms Nov 09 02:58:56 and then one Samsung stuff Nov 09 02:59:06 Nothing for nexus Nov 09 02:59:31 yeah if u don't buy samsung or apple its very hard to get accessories or gear for them **** ENDING LOGGING AT Sat Nov 09 02:59:58 2013