**** BEGIN LOGGING AT Wed Jan 29 02:59:58 2014 Jan 29 03:39:18 anyone here deving w/scala and constantly running into 65k method limit? Jan 29 03:39:21 even with proguard? Jan 29 03:40:19 or does anyone know if the new --multi-dex command helps me get aound 65k limit? Jan 29 03:52:50 there's a 65k method limit Jan 29 03:52:52 really? Jan 29 03:56:35 a function thats over 65k? Jan 29 03:56:43 cut it apart into more functions Jan 29 04:16:12 hephaestus_rg: 64k. Jan 29 04:16:20 why in the world would there be a 65k limit? :) Jan 29 04:16:36 it's because of 16-bit method index references in the dex file Jan 29 04:16:40 hence, 64k Jan 29 04:17:25 +aaronz as well (see above :p) Jan 29 04:17:25 i've always thought 65k was an awful lot of methods Jan 29 04:17:30 any easy way to count? Jan 29 04:17:38 you can grab the count from the dex file itself Jan 29 04:17:38 sec Jan 29 04:17:39 alex_PP: afaik facebook would beg to differ Jan 29 04:17:48 ha, yes i remember Jan 29 04:17:58 https://gist.github.com/JakeWharton/6002797 Jan 29 04:18:15 http://stackoverflow.com/questions/14023397/is-there-a-way-to-get-count-of-number-methods-used-in-a-jar-file Jan 29 04:18:26 its pretty easy to hit the limit with libraries Jan 29 04:18:39 and code generators Jan 29 04:18:51 and no tree shaker Jan 29 04:18:52 30387 Jan 29 04:18:53 wow Jan 29 04:18:55 don't worry ART will fix all these silly problems Jan 29 04:19:01 bankai_: actually it doesn't Jan 29 04:19:11 bankai_: ART isn't changing the dex file format Jan 29 04:19:12 do worry ART doesn't fix these silly problems Jan 29 04:19:16 at least, not currently. Jan 29 04:19:18 part tooling, part runtime Jan 29 04:19:26 ART still consumes DVM bytecode Jan 29 04:19:28 and that's where the limitation is Jan 29 04:19:40 that reminds me that I should look into switching back to ART :D Jan 29 04:19:52 it's doing very well on my n5 ;) Jan 29 04:20:55 worked nice on my n4, only switched back when I was investigate certain wifi issue that I was unsure if it wasn't related to framework operation Jan 29 04:23:46 are the performance gains at all noticeable? Jan 29 04:25:20 alex_PP: (un)fortunately N4 got enough of a rocket engine it's hard to notice ;) Jan 29 04:25:34 huh, that Samsung NotePRO 12.2 is expensive as hell; too expensive :) Jan 29 04:25:49 why do you need to get a count of number of methods? Jan 29 04:25:56 dx tells you what uses what when it fails Jan 29 04:26:16 especially for someone who moved from an 800MHz samsung s3c6410 Jan 29 04:26:24 and yeah, ART doesn't fix the dex format Jan 29 04:26:36 who needs more than 65k methods anyway Jan 29 04:26:42 proguard fixes this problem Jan 29 04:26:47 * pfn does so on a daily Jan 29 04:29:04 also, not running proguard in debug compiles, while faster, means you might have some weird error you don't expect when you build release version Jan 29 04:29:41 proguard is only a bandaid Jan 29 04:30:22 i just mentioned that Samsung tablet here http://www.androidpolice.com/2014/01/28/samsung-notepro-12-2-wifi-now-up-for-pre-order-in-the-uk-649-and-ships-february-4th/ Jan 29 04:30:25 read the first comment Jan 29 04:30:40 "I think I would be more interested in this type of a product if there was professional-grade art software available for Android." Jan 29 04:30:48 hard to have professional grade software with a 65k method limit Jan 29 04:31:30 if you were to take IntelliJ and count the methods, how many do you think there would be? Jan 29 04:31:39 a metric fuckton ;) Jan 29 04:31:49 g00s: professional grade software actually would deal quite fine with that limit Jan 29 04:32:11 (by not being written in Java for significant chunk of its functionality) Jan 29 04:33:26 when you want "professional grade", with the heap sizes and behaviour available, you need to have good explicit picture data management Jan 29 04:33:50 as well as use vector unit effectively Jan 29 04:34:22 so it would be done similar to polaris office, which uses afaik mostly single codebase on both Android and iOS Jan 29 04:39:49 g00s: it also runs on a desktop not a damn mobile phone Jan 29 04:40:39 and uses Swing? ;) Jan 29 04:41:23 who cares if it run on a mobile phone. we're using the same OS for phone and tablets. and in case you guys didn't notice, oems are making fucking dual boot desktops of windows / android Jan 29 04:41:44 My battery cares Jan 29 04:42:04 And so do my electronic ears having to hear people complain about this shit Jan 29 04:43:54 so i guess android should remain a toy? ok :) Jan 29 04:44:22 Where did I say that? Jan 29 04:44:37 Since when is a resource constrained system a toy? Jan 29 04:44:41 g00s: no, not a toy. But tbh, the hw in even top of the line tablet is quite far behind what a mediocre desktop pulls Jan 29 04:45:34 its mostly the screen drawing power; i don't see what battery has to do with this argument of 'professional grade software' Jan 29 04:45:55 to the point that it became a problem to sell new PCs, because unless you have heavy duty requirements, the needed processing power pretty much reached plateau few years ago Jan 29 04:46:16 Well the CPU sure isn't running on the hopes and dreams of you breaking the 64k limit, that's for sure Jan 29 04:46:41 g00s: anyway, good drawing software won't be written in Java, IMO Jan 29 04:46:50 This argument isn't worth my time. I'm on my phone after all and having the screen on is "mostly" wasting my battery. Jan 29 04:47:36 65k limit is easy to hit when ur using scala Jan 29 04:47:40 which is my problem Jan 29 04:47:44 proguard only helps so much Jan 29 04:47:51 3rd party jars really increase it Jan 29 04:48:02 because that limit is not just the number of methods in your app, but also the number of methods referenced in the main runtime too Jan 29 04:48:15 aaronz, then quit using so many 3rd party jars Jan 29 04:48:22 you really don't need that many libraries Jan 29 04:48:28 lol Jan 29 04:48:42 thank you for telling me how to dev, and that using well known supported libraries like guava is a bad idea Jan 29 04:48:49 the problem is that upping the limit will be problematic Jan 29 04:48:50 btw, that samsung notePro 12.2 has a bigger battery (mah) than my 2009 MBP Jan 29 04:49:02 or... i could jsut code how i want and use whatever libs as needed which is what's practical Jan 29 04:49:10 9500 mAh ! Jan 29 04:49:30 my laptop is 7200 mAh Jan 29 04:49:30 and increasing the method limit will mean a very... sharp line in OS version support Jan 29 04:49:38 the fact that there's a limit to # of methods total is such a joke Jan 29 04:50:16 does anyoen know if i can just pre-dex various 3rd party jars and then load then dynamically at runtime to avoid this limit? Jan 29 04:50:27 * alex_PP remembers when using float in j2me would crash your apps with no stack trace or nuthin' Jan 29 04:50:53 and that some devices lied about having an fpu Jan 29 04:51:10 aaronz: some mentions of such exist, but I haven't seen evidence for that in the DVM bytecode Jan 29 04:51:19 we didn't use many libraries in those days Jan 29 04:51:49 http://developer.android.com/reference/dalvik/system/DexClassLoader.html Jan 29 04:52:01 http://android-developers.blogspot.com/2011/07/custom-class-loading-in-dalvik.html Jan 29 04:52:18 this is just the "who could need more than 640K of ram" argument for android ;) Jan 29 04:52:20 its just unclear to me if that gets around limit Jan 29 04:52:29 g00s: exactly Jan 29 04:52:35 aaronz, i don't beleive so Jan 29 04:52:42 aaronz: hmm... it might. By getting a bit *out* of DVM bytecode Jan 29 04:52:47 i.e. adding an indirection Jan 29 04:52:48 if i remebe rightly from that facebook blog post Jan 29 04:53:06 they hit that limit and did some of this Jan 29 04:53:17 but they also talked a lot about linearallocation and increasing buffer size by hotpatching dalvik Jan 29 04:54:04 https://www.facebook.com/notes/facebook-engineering/under-the-hood-dalvik-patch-for-facebook-for-android/10151345597798920 Jan 29 04:54:11 paragraph that starts "https://www.facebook.com/notes/facebook-engineering/under-the-hood-dalvik-patch-for-facebook-for-android/10151345597798920" Jan 29 04:54:25 paragraph that starts "But as we came closer to launching our redesigned app" Jan 29 04:54:27 whoops Jan 29 04:54:33 only one clipboard Jan 29 04:54:53 so that's mostly about linearalloc Jan 29 04:54:57 aaronz: essentially they had blown through everything and decided that hotpatching the runtime was more sensible than considering that they might have... overdone things Jan 29 04:55:14 well sizable code bases are, well, sizable Jan 29 04:55:23 guava is like 10k method & method calls Jan 29 04:55:24 jsut right there Jan 29 04:55:27 and 65k limit? Jan 29 04:56:27 aaronz: yeah, but are you using all of them? Jan 29 04:56:30 i dont konw how this isn't a bigger problem more often for any non-trivial production-quality app Jan 29 04:56:44 proguard still leaves many Jan 29 04:56:54 not to mention time to proguard Jan 29 04:57:11 scala occupies a lot and takes a big chunk Jan 29 04:57:26 aaronz: to be honest, last time I honestly worked at production quality app rather play with internals (a startup that... failed), we only did UI in java Jan 29 04:57:27 because its' designed with a million traits and views Jan 29 04:57:42 thats why i was interested in kotlin, seems their runtime is pretty tiny Jan 29 04:58:18 hmm Jan 29 04:58:23 i already have a sizaable scala code base Jan 29 04:58:33 its also what we use on our backend and being able to share code is nice Jan 29 04:58:48 sure Jan 29 05:09:00 To simplify my scenario, I have a fragment which displays a count variable and can be incremented with a button, That is what the fragment is tracking, I noticed that when the fragment gets recreated I can't continue from count, it starts from zero. So did I program it wrong? is a fragment supposed to be used as a view in the design pattern mvc? Jan 29 05:10:07 okamis_ use onSaveInstanceState Jan 29 05:10:22 and onRestoreInstanceState Jan 29 05:10:29 or whatever they are called ;) something like that Jan 29 05:11:00 you need to implement storing it in the fragment state. onSaveInstanceState and.... yeah Jan 29 05:11:09 what g00s said. Jan 29 05:12:31 g00s: http://blog.lacklustre.net/posts/BLE_Fun_With_Ubertooth:_Sniffing_Bluetooth_Smart_and_Cracking_Its_Crypto/ Jan 29 05:15:43 dragorn thanks Jan 29 05:16:28 "In early 2013 I discovered that BLE's encryption has a fatal flaw. I wrote a tool called crackle to automatically exploit this flaw and decrypt encrypted BLE data." Jan 29 05:16:34 oi Jan 29 05:17:19 g00s: he's got good stuff Jan 29 05:29:24 hi all y'all Jan 29 05:35:49 with PreferenceActivity and using headers, can I also put some options directly in the menu, or does it all have to be headers? Jan 29 05:37:32 coming into the convo late... so maybe this is just plain wrong, but wouldnt you want to inflate a menu in onCreateOptionsMenu for that? Jan 29 05:42:11 Also...is there any way (support library maybe) to get a preferenceFragment on pre-honeycomb? Jan 29 05:42:51 there were some people working on it, not sure if it was finished or not Jan 29 05:50:49 hello Jan 29 05:52:19 any NDK experts in here? I want to know how to force my C++ NDK-based app to use OpenGL ES1.1, not ES 2.0. I tried via manifest.xml, via but that didn't work Jan 29 05:54:35 sigh. stupid google. of all the fragments they could have included in the support lib, I'd say list and preferences are the two most important. Instead we get dialog. Jan 29 05:55:12 they give you ListFragment Jan 29 05:55:36 but yeah, no PreferenceFragment is lame Jan 29 05:56:36 grr now i have to steal someone else's idea for working around this. Jan 29 05:57:37 i'm lazy and just used FragmentActivity ;) Jan 29 05:57:53 Say what? more details plz Jan 29 05:58:02 hah, wut indeed Jan 29 05:58:10 uh, PreferenceActivity Jan 29 05:58:18 oh heh Jan 29 05:58:21 hah Jan 29 05:58:32 yeah but that doesn't become pretty on wide-screens does it? Jan 29 05:58:47 like with multi-column views and crap Jan 29 06:00:56 its not pretty on xlarge Jan 29 06:04:04 hmm...how to pull down the notifications on nexus10 emulator? Jan 29 06:10:46 anyone know of an app for planning routines/schedules with a really intuitive ux? Jan 29 06:11:11 like a calendar perhaps? Jan 29 06:11:28 weird. n10 kitkat has single column settings. Jan 29 06:11:33 build.prop issue? Jan 29 06:12:46 yeah like a calendar but able to facilitate routines (e.g. do a given task on mon, wed, friday) Jan 29 06:12:54 damccull hehe ! Jan 29 06:13:14 g00s: ? Jan 29 06:13:14 Hello, any NDK experts in here? I want to know how to force my C++ NDK-based app to use OpenGL ES1.1, not ES 2.0. I tried via manifest.xml, via but that didn't work Jan 29 06:13:28 (or is this not the right chat room for this question?) Jan 29 06:13:37 damccull n10 settings is in single column mode ? Jan 29 06:13:52 g00s: apparently with kitkat it is. Jan 29 06:14:03 emulator does it in kitkat and people complaining about that on interwebs Jan 29 06:15:39 anyone started to play with the new google drive api (dev preview) ? Having some trouble, well, am I missing something or does it currently not do much at all :) Jan 29 06:15:53 like get quota/size, web or share link etc Jan 29 06:21:31 Hi. In the gallery app, how do I know if what I'm looking at is stored on the SD card or internally? Jan 29 06:22:35 These try catches are going to murder me. Jan 29 06:22:40 Does anyone have any experience with scala for android? Jan 29 06:22:58 Basically I made a tweak to my program so it saves images to a sd card from the camera app, but I can see the images in the gallery Jan 29 06:23:06 They save to /storage/sdcard0/ Jan 29 06:23:15 But when I look on the computer, the SD card is empty Jan 29 06:24:46 ir7466: so your asking for a android file browser app ? Jan 29 06:24:53 there are many Jan 29 06:24:57 :) Jan 29 06:26:43 StingRay_ nah mate, just wondering why it's saving to what appears to be the sdcard0 but apparently isn't ? Jan 29 06:27:28 you dont have permissions ? Jan 29 06:29:38 how do I ensure I don't use the "modern two-pane preferenceactivity" so that I don't "require the use of a preferencefragment"? Jan 29 06:30:15 damccull: using fragments is the modern way Jan 29 06:30:26 StingRay_ yeah, I set permission in the mainfest to Jan 29 06:30:37 zzxx supporting api8 on this app. no preferencefragment available Jan 29 06:30:47 it just seems to be saving to sdcard0 instead of the actual sd card Jan 29 06:31:22 damccull: ah sorry, read your question wrong Jan 29 06:31:37 oh i had a method in there still that's honeycomb+. lemme try again. Jan 29 06:32:19 Cool now it's just a null pointer. That I can kill :) Jan 29 06:34:47 how do I find out which of MY methods causes a null pointer? If I break on NullPointerException I'm somewhere deep in sdk code Jan 29 06:34:57 damccull calling void onBuildHeaders switches it into multi-column mode Jan 29 06:35:14 thanks g00s appreciate :D Jan 29 06:36:06 g00s: you tried the new drive api yet ? know you were looking into some cloud stuff a bit back Jan 29 06:36:36 hey StingRay_ no i haven't; the project i'm working on now is more streaming data so no document storage Jan 29 06:36:59 if its a tech preview though, i wouldn't even bother Jan 29 06:37:37 yeah there is nothing there almost Jan 29 06:37:58 missing about 98% of the functionality Jan 29 06:38:37 So if you have internal storage + SD card, it's impossible for an app to save directly to the sd card? Jan 29 06:39:01 ir7466: no it's fine Jan 29 06:39:13 how? Jan 29 06:39:15 I do it in debug stuff Jan 29 06:39:30 it's clearly saving to internal storage when I use android.os.Environment.getExternalStorageDirectory() Jan 29 06:39:35 getting the path from getExternalStorage() Jan 29 06:39:38 and write a file Jan 29 06:39:44 nope, that saves to internal storage Jan 29 06:39:48 sdcard0 is internal Jan 29 06:39:56 oh Jan 29 06:40:02 you mean a physical sd card Jan 29 06:40:05 yes Jan 29 06:40:21 well you would have to find the mount point for that I would think Jan 29 06:55:30 hmm, i need 2 preferences for network connections: Timeout and Keepalive interval. Units are in seconds. from a Preference framework UI perspective, i'm tempted to use a Seekbar, but that would put an upper bound on it. i could make a NumberPicker preference i guess. what do you guys think ? Jan 29 07:04:40 Ok I have preferenceactivity that reads xml file. File contains preferencescreen as root. As a child contains another preferencescreen. Jan 29 07:04:55 The child has a black background on api8 but not on kitkat. Why and how to fix? Jan 29 07:05:47 oh my i wonder if its that bug Jan 29 07:08:35 hm, i couldn't find it Jan 29 07:09:58 damccull https://code.google.com/p/android/issues/detail?id=4611 Jan 29 07:10:00 userError ! Jan 29 07:10:20 hmm. Jan 29 07:10:24 userError? Jan 29 07:10:32 as in I'm doing it wrong? Jan 29 07:11:48 see #35 Jan 29 07:12:01 nah, thats what the google guy marked it as, so they didn't have to fix it Jan 29 07:12:05 ((PreferenceScreen)preference).getDialog().getWindow().getDecorView().setBackgroundDrawable(this.getWindow().getDecorView().getBackground().getConstantState().newDrawable()) Jan 29 07:12:16 haha Jan 29 07:13:05 damccull is this a new app ? Jan 29 07:13:09 Psh. Seems like a fundamental flaw really. Jan 29 07:13:16 g00s: naa I'm contributing to avare. Jan 29 07:13:24 k Jan 29 07:13:24 Trying to rework their settings menu. Jan 29 07:13:37 They support back to api8 which makes everything I WANT to too annoying and hard :D Jan 29 07:14:46 yeah, even i gave up on api 8. now i do minsdk=16 Jan 29 07:15:12 g00s: at least it didn't involve InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonWindowNotFocusedState() Jan 29 07:15:43 p_l you would have hit the method length limit of 65 characters Jan 29 07:15:47 XD Jan 29 07:15:53 or to be a bit gentler, InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonPainter() Jan 29 07:16:02 g00s: well, those two classes are both from JRE... ;) Jan 29 07:16:19 what packages do i need to cross-compile soft-float arm, i currently am on ubuntu 13.04 (armhf) Jan 29 07:16:21 ? Jan 29 07:17:50 wtf is that method!? Jan 29 07:19:35 damccull: some funky stuff involved in drawing of Swing forms ;) Jan 29 07:19:51 p_l: how annoying Jan 29 07:19:52 the ultimate evolutional goal of 90s "OOP" Jan 29 07:20:08 that poisoned java so much :) Jan 29 07:29:00 g00s: seems that the color thing IS that bug after all. 35 fixes. Is there a list somewhere of all the versions affected by this? Jan 29 07:34:30 damccull dunno Jan 29 07:34:37 this cracks me up http://developer.android.com/design/patterns/settings.html Jan 29 07:34:57 under design patterns, they list all these things like "Slider" Jan 29 07:35:08 but don't give you a SliderPreference :) Jan 29 07:35:16 heh Jan 29 07:35:31 g00s: you have to make your own sliderpreference! Jan 29 07:36:06 i think i can figure that one out … :) Jan 29 07:36:09 its just a pain Jan 29 07:36:15 or DateTime, Number, etc Jan 29 07:36:26 now the "Master on/off switch" has me more confused Jan 29 07:37:22 morning all Jan 29 07:37:29 hey lemonxah Jan 29 07:37:48 how are you doing Jan 29 07:38:38 confused :) Jan 29 07:43:10 How to start wps in application using wpsinfo Jan 29 07:46:02 how to wps pin method in application Jan 29 07:48:48 bankai_ there ? Jan 29 07:49:30 How to enable wps in application? Jan 29 07:51:08 I want to use the function startwps which is in Wifimanager class, how? Jan 29 07:52:12 If there's a startwps method, I don't think it's public. Jan 29 07:53:41 Nilium, Thanks for info, I want to use the pin generated in one side of wps in other side of device Jan 29 07:54:23 lemonxah: morning Jan 29 07:54:36 morning Jan 29 07:56:55 Nilium, Startwps is a part of wifimanager class and it is a public function Jan 29 07:57:44 Then why isn't it in my documentation? Jan 29 07:58:28 uh oh, did dash mess up ? Jan 29 07:59:35 Nilium, No idea, I have open wifimanager.jav code i can see that function Jan 29 07:59:47 can anybody help me with this? -> http://stackoverflow.com/questions/21425078/android-binary-photo-not-sent-while-using-multipartentity Jan 29 08:00:09 It being in the Android source doesn't make it public. Jan 29 08:00:16 * g00s read that as multipaternity Jan 29 08:01:31 * Nilium mostly finished his Sublime Text color scheme editor, so now he's .. polishing the code. Jan 29 08:01:41 Which right now means looking for anything I did that broke my code style in an effort to get things done Jan 29 08:02:09 So I spent the last couple days with Obj-C as a result. Jan 29 08:02:12 Fun stuff. Jan 29 08:03:57 Hello. How do I include this library in my Android Studio project? https://github.com/jfeinstein10/SlidingMenu Jan 29 08:04:13 I'm using gradle Jan 29 08:06:24 bricker`LA, why not just use android default sliding menu? Jan 29 08:06:31 there is a DrawerLayout that you can use Jan 29 08:06:39 its part of the framework Jan 29 08:07:00 lemonxah: I need it to slide from the bottom, afaik DrawerLayout doesn't support that Jan 29 08:08:04 to add it to gradle put it in your libs dir and add all files from the lib dir to your gradle depencies Jan 29 08:08:32 or just add one file depency Jan 29 08:08:42 dependency Jan 29 08:09:19 http://www.gradle.org/docs/current/userguide/dependency_management.html Jan 29 08:09:36 lemonxah: thanks! Jan 29 08:09:53 on the subject of drawer layout Jan 29 08:10:07 bricker`LA, have you check NavigationDrawer :) Jan 29 08:10:17 tagrudev: oh hai Jan 29 08:10:20 :) hi Jan 29 08:10:29 if i have 2 menus in one layout one on the left and one on the right .. how do i toggle the one on the right? Jan 29 08:11:04 tagrudev: This won't be a navigation necessarily, I really just need a way to slide up a different View from the bottom, and need to be able to offset it so it stick out a little from the bottom, like the Rdio app Jan 29 08:11:21 this lib seems to give me that ability Jan 29 08:11:31 the left and one gets toggled with the action bar Jan 29 08:12:16 bricker`LA, ah I see well just another option maybe this is what you're looking for https://github.com/umano/AndroidSlidingUpPanel/ Jan 29 08:12:50 tagrudev: yes, this looks perfect Jan 29 08:12:59 tagrudev: infact an "audio bar" is our exact use-case too Jan 29 08:13:06 :) Jan 29 08:13:35 tagrudev: beautiful, thank you Jan 29 08:22:40 can anybody help me with this? -> http://stackoverflow.com/questions/21425078/android-binary-photo-not-sent-while-using-multipartentity Jan 29 08:37:30 Hi will it be better to purchase apps from developer website? Jan 29 08:37:44 What? Jan 29 08:37:58 Hi Jan 29 08:38:09 how is your day Nilium? Jan 29 08:38:17 Like slinkies. Jan 29 08:38:45 Hi, would it be better to purchase google apps from developer websites instead of googleplay store? Jan 29 08:39:14 You'd have to ask the developer. Jan 29 08:39:24 Is it "OK" to start a bluetooth connection and hold the ref to the bluetoothsocket instance in an Application class? Jan 29 08:39:50 If you want simple updates and other convenient things, you should use Google Play. Jan 29 08:41:09 hello, After update android studio I have error in my project http://www.sourcedrop.net/7Wq8bc00da039 How I can update grandle version which is required for project? Jan 29 08:42:34 I already follow some briliant idea to delete grandle folder in project folder Jan 29 08:45:04 i've filed multiple bugs with the AS guys about importing projects, picking up the wrong gradle version, etc Jan 29 08:45:04 anyone have similar issue? Jan 29 08:45:28 their code must be total crap, because it keeps breaking in different ways Jan 29 08:45:41 usually a restart of AS fixes some things Jan 29 08:48:54 g00s not this time.. grandle folder didn't reappear but still have error about required grandle ver. 1.8 Current is 1.9 Jan 29 08:49:17 Man my elbows are dry. Jan 29 08:49:27 Dudi: I had the same issue when pulling from git Jan 29 08:49:31 Dudi well, that sounds similar to a bug i posted. Jan 29 08:49:36 it required gradle 1.9 Jan 29 08:49:43 and then said it'll work only on 1.8 Jan 29 08:49:50 it totally sucks for now Jan 29 08:49:59 thepoosh so what you do? Jan 29 08:50:14 Hi, would it be better to purchase google apps from developer websites instead of googleplay store? since I don't trust google account and might delete it every few months. Jan 29 08:50:20 basically, i point AS to my local gradle install, which was 1.10, and i was using plugin 0.8 so it should have been OK. but AS complained it couldn't find / use gradle 1.9. its borked Jan 29 08:50:25 Dudi: Eclipse and suffering Jan 29 08:50:25 I should probably learn how to use Gradle at some point. Jan 29 08:51:01 because manual importing to eclipse... -.- thepoosh what a pice of cake it is Jan 29 08:51:10 tweetergal: It's a personal decision you have to make for yourself. This isn't really the right place to ask. Jan 29 08:51:37 Dudi: I'm waiting patiently until AS 1.0 comes out Jan 29 08:51:47 I'm using IntelliJ and enjoying the stability. Jan 29 08:51:47 thepoosh i think that will be I/O 2015 Jan 29 08:51:59 when is that? Jan 29 08:52:03 they aren't gonna get there this year :) Jan 29 08:52:14 it's hard for non-US peeps to keep tabs on I/O Jan 29 08:52:24 blaaa Jan 29 08:52:34 they were too fast to announce it Jan 29 08:52:40 DAMM YOU GOOGLE!!! Jan 29 08:54:14 i'd be pretty happy if the AS devs stopped working on any features, and instead fixed bugs and made the gradle builds like 10x faster :) Jan 29 08:54:42 those 2 things would probably keep them busy for a while :) Jan 29 08:56:08 my library is apparently getting a few 3D printers Jan 29 08:56:22 g00s: fucking A! Jan 29 08:56:24 i think i should learn that stuff, at least modeling Jan 29 08:56:31 yeah :D Jan 29 08:56:58 what's the first thing you're planning on printing? Jan 29 08:57:23 hm. i always have ideas for odd camera gear / adapters; i'd have to see what i can fabricate there Jan 29 08:59:41 g00s: what do those printers load with? Jan 29 08:59:58 i'm not sure; waiting for someone to get back to me on the specifics Jan 29 09:00:12 its supposed to be a 'maker' space Jan 29 09:00:18 so they will have other tools, etc Jan 29 09:00:58 progressive libraries in the US have been experimenting with a few things, since there are a number of trends reducing the use of physical books Jan 29 09:01:20 i was reading about a new service called Oyster, like netflix for books Jan 29 09:01:46 but anyhow, from what i read polls here show most people want to use libraries as a quiet space to get work done, or work with others Jan 29 09:01:58 hmm i have a listview that thinks its contens is a bit smaller than it actually is so its starts scrolling when it has space to grow Jan 29 09:02:15 if i add enough items so it fills the entire screen it behaves as expected Jan 29 09:02:20 any suggestions on what could be wrong? Jan 29 09:02:33 http://i.imgur.com/yfWfRil.png Jan 29 09:02:35 thats how it looks Jan 29 09:03:02 asfdd is that froto :| Jan 29 09:03:05 *froyo Jan 29 09:03:16 froyo? Jan 29 09:03:34 the emu looks like a 2.2 image Jan 29 09:03:34 its 2.1 i think Jan 29 09:03:38 gah ! Jan 29 09:03:48 android was so ugly back then Jan 29 09:04:16 yep Jan 29 09:04:24 ugly all the way up to 4.0 Jan 29 09:05:18 any suggestions on my problem though? =) Jan 29 09:05:35 is it my adapter? Jan 29 09:08:38 it isn't something weird like listview wrap_content ? Jan 29 09:09:07 hmm i suppose it could be, i add the listview by code Jan 29 09:09:09 so that might be it Jan 29 09:09:26 So if I want to use this in my gradle project https://github.com/umano/AndroidSlidingUpPanel I should just clone the repo and copy the relevant files into my project's lib directory? Jan 29 09:09:57 yeah seems it is ty g00s =) listView.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); solved it Jan 29 09:10:05 :) Jan 29 09:10:21 still seems like a bug that it thinks its smaller than it actually is Jan 29 09:39:05 hi all Jan 29 09:39:12 hi Jan 29 09:41:08 hi! Jan 29 09:46:36 so... i'm just about to put up my live wallpaper, who wants to help me test it on different devices? Jan 29 09:46:40 :) Jan 29 10:02:21 erdos: what does it do? Jan 29 10:02:49 can i change FLAG_KEEP_SCREEN_ON during runtime depending on the state of my activity? Jan 29 10:02:54 it puts googley eyes on a picture, and they jiggle with the accelerometer Jan 29 10:03:02 revolutionary Jan 29 10:03:16 wanna help? :) Jan 29 10:04:40 erdos: why not.. Jan 29 10:05:01 i have a htc one s Jan 29 10:05:41 ok http://www.dirkdirk.com/Googleyize-android.apk Jan 29 10:06:04 just let me know if anything looks weird in the settings activity or it crashes or doesn't work how you'd expect it to Jan 29 10:15:20 so.. any issues? Jan 29 10:17:36 lol Jan 29 10:17:44 works fine, no issues Jan 29 10:18:49 great! Jan 29 10:19:16 htc one s: check Jan 29 10:19:23 http://imgur.com/2PGV6N7 Jan 29 10:20:07 AWESOME! Jan 29 10:20:25 slight aliasing issue on the circumference of eyes.. Jan 29 10:20:30 very slight.. Jan 29 10:20:36 oh yeah Jan 29 10:20:52 ah, i must have used low res pngs for the eyes Jan 29 10:20:59 will fix! Jan 29 10:21:37 great. what's tour erdos number? :) Jan 29 10:22:30 infinite, as i am erdos Jan 29 10:22:41 :) Jan 29 10:22:45 hehe Jan 29 10:23:15 lol Jan 29 10:23:16 http://www.buildwithchrome.com/ Jan 29 10:23:19 google lego xD Jan 29 10:24:36 man, you can do so much in the browser now Jan 29 10:25:18 yes :P Jan 29 10:25:25 doesn't work on linux :/ Jan 29 10:26:01 no? oO Jan 29 10:26:05 chrome? Jan 29 10:26:14 i have chrome on my box Jan 29 10:26:26 Version 32.0.1700.77 Jan 29 10:26:39 this is html5 Jan 29 10:26:48 its suppost to work Jan 29 10:26:48 :S Jan 29 10:27:05 yeah i keep getting : We’re sorry but it looks like either your computer or web browser doesn’t support the advanced web technologies used in the build project. Jan 29 10:27:33 webgl Jan 29 10:27:42 ? Jan 29 10:27:55 maybe you miss something in your computer strange :O Jan 29 10:28:12 report the error if the website has the button Jan 29 10:28:20 what's this say: chrome://gpu/ Jan 29 10:29:54 mostly unavailble Jan 29 10:30:02 hardware acceleration unavailable Jan 29 10:30:35 lemonxah my version is Versão 32.0.1700.102 m Jan 29 10:30:50 GPU process was unable to boot: GPU access is disabled in chrome://settings Jan 29 10:31:12 but no gpu acces in the settings Jan 29 10:32:04 Hi! Could you please help me with a little problem? I am trying to programmatically control a USB device from Android and I have been quite successful so far, but when I reset the device it reappears as /dev/bus/usb/001/011 and getParcelableExtra(UsbManager.EXTRA_DEVICE) gives me once again /dev/bus/usb/001/010 : is that a bug in Android or perhaps I need to close some handle or something? :) Jan 29 10:32:49 Kryczek dragorn might know if you can catch him Jan 29 10:33:47 ...if I can catch him yes ;) thanks :) Jan 29 10:37:56 hmmm, do my app is failing in the emulator with an opengles1 error, but in my manifest i specify opengles2, is the emulator a bit screwy sometimes? Jan 29 10:38:17 works in firefox on linux Jan 29 10:38:19 no worries Jan 29 10:41:34 Anyone who can help me to get Android Studio+Gradle+JUnit up and running? I've read a lot of different solutions but none of them are workable. Ideally I've got junit test running both in Android Studio and from Gradle. But if anyone has other 'workable' solutions I'm all ears :) Jan 29 10:54:27 hi guys, im working with an intent and wanna send a "complex" object to it, is it foolish to try and send a class that has more then just a couple of strings and ints? Jan 29 10:57:28 the class contails hash-maps of other objects and some integer lists Jan 29 11:04:30 I have had a weirdly productive week. Jan 29 11:04:37 :> Jan 29 11:05:06 Maybe it's my way of compensating for hating myself for turning 25 last week. Jan 29 11:05:28 Having an age sucks. Jan 29 11:06:06 could anyone enlighten me: I have a class extending View, now i want to add this view object to a fragment (after inflating the layout) how can i do that? addView() on either container / (LinearLayout) cast on inflated view failed :< Jan 29 11:06:46 What do you mean by failed? Jan 29 11:06:54 jaDule: does it work with a "regular" view? Jan 29 11:07:21 if i get a view from my resources (getViewByID) and change the background for example it works Jan 29 11:07:34 but for this new View i just have a placeholder in my layout Jan 29 11:08:16 so in general if i dont have a View in my Layout.xml where is the right place to addView() Jan 29 11:08:53 (so it is just added according to the inflated layout view returned by oncreate of the fragment) Jan 29 11:09:00 jaDule add a container where you want it Jan 29 11:09:15 for example if you want it at a specific place ad a linearLayout there Jan 29 11:09:31 then find the linearlayout in code with findViewById Jan 29 11:09:36 then addview on that liniearlayout Jan 29 11:09:43 mhh Jan 29 11:09:59 so i need a layout inside my layout dedicated for the new view Jan 29 11:10:00 but its better to add your view directly to the layout if you can Jan 29 11:10:05 how Jan 29 11:10:25 in general how do i get to my layout inside the fragment Jan 29 11:10:39 why would you like to do that? Jan 29 11:10:50 i have a graph class extending View Jan 29 11:10:57 do you want to get to the layout inside the fragment coming from the activity? Jan 29 11:11:18 so when i open the fragment i want to plot a graph Jan 29 11:11:37 then let the fragment plot the graph Jan 29 11:11:40 so i cannot add this graphview to the layout xml Jan 29 11:11:50 why cant you add it tot he layout? Jan 29 11:12:01 i still dont understand why it cant be part of the original layout Jan 29 11:12:27 is your logic in your activity or in your fragment? Jan 29 11:12:34 this has to be added dynamically from files Jan 29 11:13:16 so on "createview" / "onresume" i want to change this view Jan 29 11:13:34 but why not Jan 29 11:13:37 e.g. View graph = new Graph(x,y) Jan 29 11:13:44 hi, how to "Recompile with -Xlint:deprecation for details." when using gradle, see log https://gist.github.com/b457ce36df2dff5fc1f7, thanks Jan 29 11:14:28 and then you mean getView(graph) and then use that view? Jan 29 11:15:23 explain your usecase rather than asking how to add dynamic views to layout i find more often than not that there might be a design issue rather than code issue Jan 29 11:16:05 ok Jan 29 11:16:22 Hey, is it possible to use a linear layout within a relative layour? Jan 29 11:16:24 *layout Jan 29 11:17:08 yes it is jutsi Jan 29 11:17:18 is it good practice? Jan 29 11:17:40 Also if i want negative space between a logo and text, how do i do that? Jan 29 11:17:48 how deep is the view hierarchy ? Jan 29 11:17:58 and is it in a listview that will have to recreate it all the time? Jan 29 11:17:59 currently i only have one relative layout Jan 29 11:18:08 no, no listviews Jan 29 11:18:26 and how many of those layouts on the screen at any given time Jan 29 11:18:40 well im only using one at the moment Jan 29 11:19:02 its not necessarily bad practice but it will impact performance if the hierarchy is too deep Jan 29 11:19:49 ok thanks Jan 29 11:20:01 item inside linearlayout inside relative layout is 2 which is acceptable (depending on who you are) Jan 29 11:20:18 so how can i go about creating negative space between for example a logo and text under it? Jan 29 11:20:41 what do you mean negative space? Jan 29 11:21:18 Uhm right now the text appears straight underneat the logo.. i want some space between the logo and the text Jan 29 11:21:34 come think of it, i think negative space is the wrong word to use, space seems better Jan 29 11:21:54 Fragment: OnCreate i read a file, this file should be plotted using an extendend View class (Plot2D). Now in my layout.xml i have a placeholder for that graph. To generate a plot i need a Graph object (new Plot2D(context,x,y)). Now how do i add this new View object to the layout / replace the placeholder with the new object. If i do this: Plot2D graph = (Plot2D) windows.findViewById(R.id.graph); its just empty object.. Jan 29 11:22:59 negative space is a design term. for example, the arrow in the fedex logo is negative space http://www.logostage.com/logo/fedex/#.Uujki3fFL5Y Jan 29 11:23:24 hehe yea, i realized midway through my explanation Jan 29 11:23:37 so how do i create space between stuff? Jan 29 11:25:19 margins in the xml Jan 29 11:25:42 sorry, I may have come in in the middle of that Jan 29 11:25:47 margins? do you have any relevant material to link me regarding the subject? Jan 29 11:26:37 android docs: http://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams.html Jan 29 11:30:18 Do margins only work on layouts? Jan 29 11:30:30 or can i use them on, for example, a textview? Jan 29 11:35:45 Hi Jan 29 11:35:54 np on a textview. just add android:padding="40dp" or android:paddingTop="40dp" , left, bottom, or right Jan 29 11:36:01 How to install ADT package on Ubuntu 12.04? Jan 29 11:39:44 I've got .zip file from google but have no idea where should I extract it. Jan 29 11:39:55 does anyone have XP in Volley and can explain to me what happens on HTTP.50* responses? Jan 29 11:40:13 Any thoughts on appropriate/standard location? Jan 29 11:40:48 /usr/InkelTem/development Jan 29 11:41:02 I mean Jan 29 11:41:10 ~/development Jan 29 11:41:33 thepoosh: and then I'll be addings paths to all it's binaries Jan 29 11:41:50 which a spread among directory structure like start on the sky Jan 29 11:41:55 are* Jan 29 11:42:01 stars* Jan 29 11:42:05 :) Jan 29 11:42:47 I mean, is there a good ADT package for Linux which at least respect FHS? Jan 29 11:49:04 OnkelTem: set $(PATH), if you mean that. Jan 29 11:54:20 if i add a customview to the layout.xml com.myapp.Plot2D my app crashes. any idea what the errorsource might be Jan 29 11:59:15 veiz: I unpacked adt bundle from Google, and it has sdk/ subdirectory which has more other subdirectories which contain binaries. Jan 29 11:59:37 veiz: to get them launchable I have to set path for each Jan 29 12:00:11 this I consider as problem. I don't know yet what binaries will I need Jan 29 12:01:23 OnkelTem: see https://gist.github.com/8242eac33e22c18c2dbd Jan 29 12:01:49 veiz: thanks, okay Jan 29 12:05:06 Hi, when using Google Maps API v2, I noticed that GroundOverlayOptions.getWidth() stays 0.0 even after calling .positionFromBounds(latLngBounds). Any idea why that's the case? Jan 29 12:05:33 (adding it to the map works fine and displays correctly but I need the width) Jan 29 12:18:12 is anyone here familiar w/ activeandroid? Jan 29 12:18:25 i'm trying to do a "like" Jan 29 12:18:30 query Jan 29 12:25:54 how can my app force install of play services Jan 29 12:26:34 I'm fairly sure there's a method to check if its installed Jan 29 12:26:48 and if its not? Jan 29 12:26:53 it'll return false Jan 29 12:27:32 http://stackoverflow.com/a/19534368/1604213 Jan 29 12:27:40 you still need to include the library in your app Jan 29 12:57:35 Urh, is there a way to make the text align to the right instead of left in textviews? Jan 29 12:58:48 jutsi: set the 'gravity' propert? Jan 29 12:59:18 thanks Jan 29 13:03:06 I don't understand why my application crashes. I'm using a modified example from my learning book. Crash occurs when I add line 23-25. Here's the code: http://pastebin.com/deh4nn1A Jan 29 13:03:39 you don't need to do intent.getBundleExtra Jan 29 13:03:45 just call intent.getExtras() Jan 29 13:04:06 unless you're passing a bundle inside the extras with the key "bundle" Jan 29 13:06:10 Ok so gravity right doesn't seem to work so well with wrap_content... is there a way to keep my formatting while changing wrap content to fill_parent? Jan 29 13:06:41 Can i set gravity="Right" on the layout instead of each individual textview? Jan 29 13:07:28 nvm, just answered my own question :) Jan 29 13:11:25 did they fix haxm yet on mavericks? Jan 29 13:12:57 Hi, I'm using a tabbed view with each tab containing a graph (achartengine). I want to get the point of the graph touched by the user (which I've done) and add a vertical line over the graph. This line should be visible on all tabs. How can I do that? Thanks. Jan 29 13:22:43 CallumTaylor: the application still crashes, there are no runtime errors. I changed that line to: Bundle bun = intent.getExtras(); Jan 29 13:23:02 I'm trying to use an array of doubles...but I get nullpointerexceptions Jan 29 13:23:10 do I need to initialise an array of doubles somehow ? Jan 29 13:24:53 whats the crash Jan 29 13:25:02 SirLagz: double[] foo is not initialization Jan 29 13:25:10 double foo[] = new double[n]; is Jan 29 13:25:11 alankila: ah right. Jan 29 13:25:13 alankila: thanks Jan 29 13:25:22 also, don't do Double[] Jan 29 13:25:31 what should I use then ? Jan 29 13:25:36 double[] Jan 29 13:25:36 CallumTaylor: "Unfortunately, app2 has stopped. Force close?" Jan 29 13:25:44 no what was the stack trace Jan 29 13:26:07 alankila: that is what I'm using...or am I not-understanding something ? Jan 29 13:26:38 alankila: this is what I'm using - private double[] LastDistance = new double[3]; Jan 29 13:26:41 SirLagz: just be cognizant of difference between double[] and Double[]. If you do not know that that is. Jan 29 13:26:55 alankila: right. I'll make sure I look it up in a sec Jan 29 13:26:57 alankila: thakns Jan 29 13:27:04 your naming is wrong, should be lastDistance according to java naming rules. Jan 29 13:27:48 oops. Jan 29 13:27:52 typo. lol Jan 29 13:27:55 I'll fix it Jan 29 13:28:11 CallumTaylor: how can I obtain a stack trace in Eclipse? I can't find it under "Run" or in the other windows such as logcat etc. Jan 29 13:28:20 it will be in logcat Jan 29 13:29:01 SirLagz: anyway, the difference between primitive and Primitive is that the capitalized versions are boxed objects Jan 29 13:29:14 so you have a reference to something that wraps the native value Jan 29 13:29:57 * SirLagz stares blankly. Jan 29 13:30:12 CallumTaylor: but logcat scrolls too fast for me. How do I filter the stack only? Jan 29 13:30:19 alankila: boxed objects ? Jan 29 13:30:46 SirLagz: double = 8 bytes. Double = an object, with methods, that can often substitute for the primitive type but java inserts method calls to make that happen Jan 29 13:31:09 so for instance Double foo = 5.0 is possible, though in reality what happens is is Double foo = Double.valueOf(5.0) iirc Jan 29 13:32:17 alankila: ah i see Jan 29 13:32:34 alankila: thanks ! Jan 29 13:33:15 CallumTaylor: oh wait... I filtered the stack by typing 'stack', here is the trace ---> http://pastebin.com/3u8amWsp Jan 29 13:33:40 SirLagz: the key difference is that you can't compare boxed objects with ==, you must use the .equals method Jan 29 13:33:56 it works sometimes because java has a cache for most common boxed objects Jan 29 13:34:00 but it isn't generally true that it works. Jan 29 13:34:14 this whole idiocy will hopefully go away in next java release Jan 29 13:35:12 there's also the rule that states if you compare a boxed and non-boxed object, the boxed object will be unwrapped. This acts like a cast to the primitive type and can throw if the reference is null. Jan 29 13:35:42 at least it allows == 5 like code to work without forcing foo.equals(5), or, god forbid, foo.equals(Integer.valueOf(5)) or whatever Jan 29 13:37:11 alankila: yep. I try not to use == anyway. bad habits from PHP haha Jan 29 13:39:24 I recommend using == whenever possible, it's succinct Jan 29 13:39:31 but the key is to know when it's valid to use it Jan 29 13:42:10 by the way, with 'next java release' I was really looking to java 9 already... 8 isn't even out yet. *sigh* Jan 29 13:42:43 alankila: haha Jan 29 13:42:56 alankila: most of the times when I'm using .equals is with strings anyway Jan 29 13:43:21 yeah the strings is an irritating thorny thing Jan 29 13:43:25 lol Jan 29 13:43:35 they look like primitives due to the compiler help, but the compiler help doesn't extend to == Jan 29 13:44:25 this will probably never change Jan 29 13:44:37 it's just generally true that == doesn't call equals, ever. Jan 29 13:46:09 hey guys is it possible to make the text inside a textview white with a black outline so its easier to read on rough backgrounds? Jan 29 13:46:31 jutsi: try text shadow property Jan 29 13:46:39 thanks Jan 29 13:46:40 it's generally possible to add shadow to any thing Jan 29 13:48:27 alankila do you have any examples on how it will look visually? Jan 29 13:48:47 eh, not off hand, no Jan 29 13:49:19 I imagine it's a gaussian blur of the layer that shadow is applied to Jan 29 13:49:45 if you do it wrong it will look like shit too Jan 29 13:49:53 oh Jan 29 13:50:05 like, add a sharpish black shadow to black text Jan 29 13:50:09 you just ruined the antialiasing Jan 29 13:50:29 someone actually did that which is how I learnt that shadows exist Jan 29 13:55:07 is the android allocation tracker a random number generator Jan 29 13:56:10 hello Jan 29 14:00:38 I created a joystick view with 4 position up/down/Left/right . when my joystick move to right for exemple i refresh my gridview with notifyDataSetChanged() but i can see a strange problem. When notifyDataSetChanged() is process motionEvent is reset to initial position Jan 29 14:00:45 i can see the reset on case MotionEvent.ACTION_MOVE: { Log.i("JOYSTIK","AXE X="+String.valueOf(event.getAxisValue(MotionEvent.AXIS_X))); Jan 29 14:01:27 anyone have already see this problem ? thanks very much Jan 29 14:04:05 Anyone know how to get the footerDividersEnabled to work? Jan 29 14:04:40 for listview Jan 29 14:10:16 morning Jan 29 14:12:56 Hello! I have following question: in case of time(efforts) of mobile application development. Is development time for iOS more than for Android? Jan 29 14:13:43 I would say that all depends, especially if you need to learn the languages Jan 29 14:13:50 no Jan 29 14:14:04 i mean situation with 2 senior developers Jan 29 14:14:25 xgear: I heard learning iOS is more difficult than Android but I have no experience with iOS. Jan 29 14:14:26 or middle level Jan 29 14:14:40 Hello, whats the most recommended development environment. My school uses xamarin. Jan 29 14:14:58 In my experience, learning iOS was far more difficult than learning to program for Android Jan 29 14:15:03 <_rm> in our case, getting to grips with java's and android's peculiarities took a few weeks, and after that it's been pretty good Jan 29 14:15:07 <_rm> (we're mostly an ios shop) Jan 29 14:15:08 Halidith, Android Studio is the new up and coming choice, Eclipse is still a decent one Jan 29 14:15:45 and people will tend to move from Android Studio to pure Intellij Jan 29 14:16:04 <_rm> we're still soldiering on with android studio Jan 29 14:16:06 jonc-1: by the way, any example why to choose Android Studio? I just started it up on my machine and it took about 1 GB of RAM doing nothing which is pretty much I think :/ Jan 29 14:16:23 <_rm> not that it hasn't been a huge pain in the ass sometimes Jan 29 14:16:29 welcome to quite a few ide's Jan 29 14:16:51 I'm looking to code it in C#, does android studio support that, since i saw you need java. Jan 29 14:17:04 nope Jan 29 14:17:05 <_rm> uh, no Jan 29 14:17:11 <_rm> go ahead with xamarin then Jan 29 14:17:15 native android is java Jan 29 14:17:19 Hi! My boss had this idea http://pastie.org/8678714 Basically he wants the app to live inside a sticky service. Is that possible? Jan 29 14:17:36 I would imagine Xamarin is a port of mono with some extra libraries added Jan 29 14:17:40 Well I'm on Eclipse at work because I've got a PC with WIn 7 and 2 Gigs of RAM. If I used Android Studio, I'd be unable to do anythign :> Eclipse sits at 700 MB while using it. Jan 29 14:18:04 2 GB of ram? ouch Jan 29 14:18:08 yes. Jan 29 14:18:19 It's a f****ng pain Jan 29 14:18:24 that's barely enough to do anything other than browse the internet with win 7 (depending on num of tabs) Jan 29 14:18:29 Win 7 runs on 2 gig of ram? Jan 29 14:18:33 I would stick in a few gigs more in a heartbeat if it means i can AS instead of Eclipse Jan 29 14:18:37 yup Jan 29 14:18:40 win 7 will run on 1 GB Jan 29 14:18:47 but it is not suggested Jan 29 14:18:58 KNUBBIG: a c2d with 4gb and it eclipse still lags Jan 29 14:19:14 I'd do so too but well it's not my call to make :( But having Eclipse and Outlook open is kinda impossible :D Jan 29 14:19:30 doge_wow2: that's not the stacktrace Jan 29 14:19:40 razor-: hm I have a c2d as well here and it works 'kinda' fine Jan 29 14:19:45 it will have the word exception in it Jan 29 14:19:51 _rm ty, then i will first make it in xamarain because i need to use some difficult packet handling and i have the code for it in c#. After it i might rewrite it in java. Jan 29 14:19:57 Guess I'll have to talk to my superior soon Jan 29 14:20:04 CallumTaylor: ok, hold on, will look for that Jan 29 14:20:10 KNUBBIG: windows 8.1? Jan 29 14:20:17 razor-: no, 7 Jan 29 14:20:29 That explains it Jan 29 14:20:34 yea :) Jan 29 14:20:39 the cost of a few gigs of ram is much, much lower than the cost of a frustrated employee Jan 29 14:20:45 I have 4GB right now, and I need to ask for 8GM Jan 29 14:20:51 KNUBBIG: http://www.downloadmoreram.com/ Jan 29 14:20:52 GB* Jan 29 14:20:59 razor-: thanks ;-) Jan 29 14:21:20 :P Jan 29 14:22:05 doge_wow2: it will look something like this http://i.stack.imgur.com/nc1Pl.png Jan 29 14:22:31 and at home I have been tempted to upgrade to 16gb Jan 29 14:22:48 Yea I have 16 at home as well, pretty neat Jan 29 14:22:55 especially if you run some VMs Jan 29 14:23:00 I have 8 currently Jan 29 14:23:04 nah no vm's Jan 29 14:23:19 I just have some servers I wrote for my app that require upwards of 1-3gb each Jan 29 14:24:59 store a 100k x 100k sparse matrix in hashmaps Jan 29 14:25:16 CallumTaylor: I will look for that one. In the meantime, I filtered for 'exception' and did get these error messages about null pointers: http://pastebin.com/rsCsBKFm Jan 29 14:25:20 hashmap> Jan 29 14:25:47 yeah you want the whole trace (it'll all be in red) as it will tell you what line and what file the error occurred on Jan 29 14:26:15 but first, does the app start on activityA? or do you go to it from another activity Jan 29 14:28:35 I created a joystick view with 4 position up/down/Left/right . when my joystick move to right for exemple i refresh my gridview with notifyDataSetChanged() but i can see a strange problem. When notifyDataSetChanged() is process motionEvent is reset to initial position [15:00] i can see the reset on case MotionEvent.ACTION_MOVE: { Log.i("JOYSTIK","AXE X="+String.valueOf(event.get Jan 29 14:30:16 CallumTaylor: the app starts with activityA Jan 29 14:30:58 ok so thats why it crashes then Jan 29 14:31:07 no activity has passed any extras to it so it's null Jan 29 14:31:29 after the bundle bun line, add if (bun != null) Jan 29 14:31:37 and then put textje inside that Jan 29 14:38:25 CallumTaylor: thnx very much... this was a hard one to spot. I understand it now, but it's not very self explanatory. These are the things I find so hard to learn about Anrdoid. Jan 29 14:38:36 this isn't android specific Jan 29 14:38:52 the error was a "null pointer exception" which means you tried to do something on a null object Jan 29 14:39:09 extras was null because it hasn't been set by a previous activity Jan 29 14:39:40 Probably the most common exception ever thrown Jan 29 14:39:52 CallumTaylor: ok, true that Jan 29 14:48:30 I'm currently trying to get to know GCM. I read that a Google account is no longer necessary as of 4.0+. But if I want customized messages depending on the user, I'd have to use some kind of authentication - which could again be a Google account, or am I missing something? Jan 29 14:51:07 KNUBBIG: I _think_ that is your problem to solve. GCM allows your app to register "tokens" for communicating with your app. If you want to associate that token with any user (using any mechanism you care of), go ahead. Jan 29 14:52:17 kjeldahl: okay, thanks. I need personalized communication as just sending everything to everyone would kinda defeat the idea of my app :) Jan 29 14:53:11 does glclearcolor work only once per app execution? I'm trying to change the color of the screen on touch, and the debugger is showing me the function does indeed get executed when i touch the screen, but the color remains unchanged Jan 29 14:53:36 perhaps i have to invalidate the screen or something? Jan 29 14:53:40 yup Jan 29 14:53:50 per frame Jan 29 14:53:55 ok thanks Jan 29 14:54:36 * jug6-mbl hasnt touched opengl in way to long Jan 29 14:54:54 KNUBBIG: You app gets a token at runtime, so each device running the app would get a unique token for that app on that device, and if you care for that current user (you can handle account switching in tour app also by unregistering and requesting a new token when account is switched). Jan 29 14:55:01 YouR app... Jan 29 14:55:52 kjeldahl: thanks :) Jan 29 14:58:48 jug6-mbl: still not working Jan 29 14:58:52 i used postInvalidate Jan 29 14:59:00 in the onTouch function Jan 29 14:59:31 does your rendering loop running? Jan 29 14:59:42 the debugger indicates that onDrawFrame happens all the time, which has glClear(gl_color_buffer_bit) in it Jan 29 15:02:11 i'm developping on a maguro, btw Jan 29 15:05:19 can someone help me out, im using asynctask but not in an async way, what is the easiest way for my async task to call back to the activity, should i pass "this" as a param to the async class and then when its done call a function in activity ? Jan 29 15:05:42 what do you mean it's not used in an async way? Jan 29 15:05:50 ^ to clarify i want to fix my code making it async Jan 29 15:05:52 belgin: clearcolor clears the frame, after your clear the frame are you still drawing w/e color you are trying to clear? Jan 29 15:06:04 ah Jan 29 15:06:51 at the moment im using result = test.execute(url, Auth).get(10000, TimeUnit.MILLISECONDS); Jan 29 15:07:01 :| Jan 29 15:07:04 which is not async Jan 29 15:07:13 Zylinx: yeah just pass your activity into your async task Jan 29 15:07:14 jug6-mbl: clearcolor does not clear the frame Jan 29 15:07:22 it sets the color to clear the frame with Jan 29 15:07:31 jug6-mbl, ok cool thanks Jan 29 15:07:32 no, it resets the current set color Jan 29 15:08:38 Zylinx: btw, Loaders are the new hotness now Jan 29 15:08:49 loaders :o Jan 29 15:08:53 whats that! Jan 29 15:08:55 * jug6-mbl always found loaders to be confusing Jan 29 15:09:25 jug6-mbl: ondrawframe() has glclear(gl_color_buffer_bit); and ontouch() has glclearcolor(some color), also when it initializes i have glclearcolor with a different color Jan 29 15:10:01 belgin: and you simply want the color to change when you touch? Jan 29 15:10:04 yes Jan 29 15:10:21 i want it to change to `some color' that i have in ontouch Jan 29 15:10:50 but it just displays the color that i set it in onsurfacecreated Jan 29 15:11:08 are you calling glclear at the start of the frame? Jan 29 15:11:28 i'm calling glclear in onDrawFrame Jan 29 15:11:42 in fact, it's the only thing i'm calling in that function Jan 29 15:12:01 * pfn has never found a use for loaders Jan 29 15:12:06 and control reaches everything accordingly, but nothing changes Jan 29 15:13:10 i tried calling postInvalidate in onTouch but still nothing Jan 29 15:13:18 I tried using them extensively in a previous app and it felt so unnatural Jan 29 15:13:56 belgin: if the rendering loop is running postInvalidate wont do anything Jan 29 15:14:10 so what do i do then? Jan 29 15:15:04 i wanted to port my game to android, but i can't even get past this simple thing Jan 29 15:15:38 its definitely somethign simple lol Jan 29 15:15:53 * jug6-mbl hasnt touched opengl in 3 years now Jan 29 15:17:06 but as long as you are changing the clearcolor, and then calling clear at the start of the frame, it should be changing the color Jan 29 15:17:17 well it isn't Jan 29 15:17:52 what color are you chang it from to Jan 29 15:18:36 from white to red Jan 29 15:18:47 and i'm passing alpha as 1.0f Jan 29 15:19:39 change it to 0 Jan 29 15:20:05 if you clear with something that is fully transparent your not clearing anything :P Jan 29 15:20:26 0.0f would be fully transparent Jan 29 15:20:38 but i worked around the problem Jan 29 15:20:57 blah Jan 29 15:21:00 what did you do Jan 29 15:21:05 apparently, if i add clearcolor at the begnning of each frame, and then calling glclear immediately it works Jan 29 15:21:21 for some reason Jan 29 15:21:38 your doing this in java right Jan 29 15:21:43 so i stored some public floats in the renderer for r, g, b Jan 29 15:21:45 yes Jan 29 15:22:05 and i change them when i tap the screen Jan 29 15:22:15 im not sure hwo the gl context works on java, with the on touch being in a different thread & what not Jan 29 15:22:46 no, i wrapped glclearcolor with a method of the renderer Jan 29 15:22:54 actually you may be right Jan 29 15:23:11 the renderer runs on a separate thread Jan 29 15:23:13 makes sense now Jan 29 15:23:17 yup Jan 29 15:23:26 thanks for your help Jan 29 15:23:36 what little i did help with lol Jan 29 15:23:55 what is gl es at now? 3.0? Jan 29 15:24:05 * jug6-mbl never even learned 2.0 :S Jan 29 15:25:00 i'm using 2.0 Jan 29 15:25:29 nice Jan 29 15:25:32 Anyone in for a small code audit? i tip! pn are welcome (i hope this is not against the rules.. if it is i apologize) Jan 29 15:25:47 there are rules? Jan 29 15:26:00 No bots, and no advertising please, jobs or otherwise Jan 29 15:26:04 :< sorry Jan 29 15:26:29 is there another place to ask for similar? Jan 29 15:27:01 read topic Jan 29 15:28:27 topic just forbids but doesnt give info Jan 29 15:28:51 Hey. It seems that only activities have opportunity to save their state right before being destroyed, right? Services, Content providers, and broadcast receivers don't? Jan 29 15:30:38 Services have onTerminate Jan 29 15:31:02 no idea on ContentProvidres or broadcast recievers, tho idk why they would have a state. Jan 29 15:31:29 jug6-mbl, ok Jan 29 15:31:49 so when android decides to destroy a process, if there are services running there, onTerminate will be called? Jan 29 15:32:05 no Jan 29 15:32:41 pfn, I meant "right before" so that the service gets an opportunity to do some saving or something. Still no? Jan 29 15:32:50 no Jan 29 15:33:05 Ok Jan 29 15:33:21 pfn, but onSaveInstanceState for an activity will, right? Jan 29 15:33:24 pfn when does it get called, when you manually kill your service? Jan 29 15:33:34 it gets called when it exits normally Jan 29 15:34:00 phao, typically, anything after onPause is not guaranteed to be called, in an activity Jan 29 15:34:44 pfn, so an application should always save its state at each onPause? Jan 29 15:34:47 an activity** Jan 29 15:35:30 deepends on what you need to save, sure Jan 29 15:35:54 But that seems weird, given no Bundle object for storing "save-need" state is given to onPause. Jan 29 15:36:33 Bundles don't persist Jan 29 15:36:56 I know (I imagined*) Jan 29 15:37:25 But I am talking about the particular situation in which android decides to destroy a process with everything running in it Jan 29 15:37:43 to free-up some memory, with the possibility that it'll continue to run those componentes later on. Jan 29 15:38:04 as somewhat explained in this video http://www.youtube.com/watch?v=fL6gSd4ugSI Jan 29 16:05:06 Hey, is there some sort of type hinting which can improve GSON performance? Jan 29 16:06:13 performance at what level? Jan 29 16:06:35 connection / parse? Jan 29 16:06:42 deserializing Jan 29 16:07:09 you have to much data? Jan 29 16:07:37 they're long network requests with multiple objects each Jan 29 16:08:35 see this post Jan 29 16:08:35 http://stackoverflow.com/questions/15509544/optimizing-gson-deserialization Jan 29 16:08:49 there are some people with solutions and other api's Jan 29 16:08:55 "better" than gson Jan 29 16:09:25 Deserialization is hardly the bottleneck on network requests Jan 29 16:09:32 http://stackoverflow.com/questions/10693825/gson-serialization-very-very-slow Jan 29 16:11:19 SimonVT: Yes, but I want to cover all bases Jan 29 16:12:38 Unless your dataset is huge, gson is going to use an insignificant amount of time.. If your dataset is huge, well, you're on mobile Jan 29 16:12:54 lol Jan 29 16:13:24 If performance is really a concern, use its streaming api.. But that's a hell of a lot more code Jan 29 16:13:25 ColinTheShots: what kind of time are we talking Jan 29 16:14:34 doesn't gson also rely on reflection? Jan 29 16:14:50 most likely Jan 29 16:17:31 jug6-mbl: it's not exactly clear how much time it's really taking, since I have all of the retrofit debugging and logging pushed to the max... as I said, I'm just looking to shave milliseconds off Jan 29 16:19:14 retrofits loggign should tell you how long the actual network request takes Jan 29 16:19:40 jug6-mbl: that's variable... typically the request is just over half a second Jan 29 16:19:59 well if you trying to optimize gson u should exclude the network call all together Jan 29 16:20:09 just get ur json string and throw it at GSON Jan 29 16:20:45 jug6-mbl: good point... I was just looking since someone mentioned there might be some sort of type hinting to improve performance slightly Jan 29 16:21:12 not that im aware of Jan 29 16:21:24 but retrofit allows alternative converters, you dont have to use gson Jan 29 16:21:52 or u could add a custom deserializer to gson to handle your data object Jan 29 16:33:32 hmm it's kinda fun that Kryo is a very fast serializer/deserializer Jan 29 16:33:53 i've had bad experiences with kryo Jan 29 16:34:00 poor documentation and support Jan 29 16:34:26 it would work, but for some reason with fragments in view pager, wouldn't serialise objects properly, very frustrating Jan 29 16:35:10 alankila: idk if im doing somethign wrong, but i have never gotten kryo to work on android Jan 29 16:36:05 So if I want to use this library in my gradle project, I should just clone it and copy the relevant files into my project's 'libs' directory? https://github.com/umano/AndroidSlidingUpPanel Jan 29 16:36:34 ive ended up going with xstream, its slow, and produces huge strings. but its the only one thats worked in my case. Jan 29 16:36:45 Strings compress well tho so o well. Jan 29 16:37:56 bricker: ive never used gradle, but u should be able to just import it from maven Jan 29 16:38:07 I can't find it in maven central Jan 29 16:40:47 me neither, maybe you have to build it to your local maven repo Jan 29 16:41:03 did find version 1.0 here for w/e its worth http://www.ldsmobile.org/nexus/content/repositories/public/com/sothree/slidinguppanel/slidinguppanel/ Jan 29 16:41:11 maybe, but the README even says to add "mavenCentral()" to the gradle file Jan 29 16:41:36 yeah thats why i thought it was on central lol Jan 29 16:46:53 I'm just reading kryo and it looks like it has no metadata, it serializes purely by convention Jan 29 16:47:09 if you write an object and wish to read it again, everything must be set up the same way or it will fail Jan 29 16:47:31 it supports the @tag thingy which means it will support migration and stuff Jan 29 16:47:38 which is good, if it worked Jan 29 16:47:42 i could never get it to work Jan 29 16:49:23 any time i try to deserialize i would get a buffer underflow exception Jan 29 16:49:38 and i could only get it to serialize if i setEnableAsm(true) Jan 29 16:49:41 i would get wrong data back for each field Jan 29 16:49:53 weird Jan 29 16:49:58 mine would just crash lol Jan 29 16:50:05 yeah, really annoying i spent a good week or two on it Jan 29 17:08:30 Can anyone explain why this could return null? Jan 29 17:08:31 (Button)findViewById(R.id.btnLogin); Jan 29 17:09:30 (btnLogin is in a different content) Jan 29 17:10:35 Hi all, I need to develop for Bluetooth Low Energy. Now I need to make something work witb btle and something else for devices without btle. Is it oké to use BTLE features when api >= 4.3 and btle is supported? because an Samsung S3 has btle but some aren't on Android 4.3 yet, or isn't it good (enough) what I propose here? Jan 29 17:13:22 yopu can filter by version Jan 29 17:13:27 that's the status quo for android Jan 29 17:15:22 Ah i see Jan 29 17:15:40 i called setContentView() to the main layout Jan 29 17:15:58 but how do i init controls ETC for other layouts Jan 29 17:16:59 inflate Jan 29 17:17:35 Is Bundle available in any support library? Jan 29 17:17:52 Since apparently Bundle.getString(key, default) is api 12+ Jan 29 17:18:07 don't use default Jan 29 17:18:12 just null check Jan 29 17:18:15 or use minSdk=14 Jan 29 17:18:17 I could just use Bundle.getString(key) Jan 29 17:18:26 no reason to use minSdk <14 Jan 29 17:18:27 but it would be nice not to have to Jan 29 17:18:35 you don't have to Jan 29 17:18:38 don't use minSdk < 14 Jan 29 17:18:39 pfn: Not my decision, but agree Jan 29 17:18:44 * jug6-mbl says go 14+ Jan 29 17:18:54 clients decision Jan 29 17:18:59 i hate clients Jan 29 17:19:03 lol Jan 29 17:19:10 yiati: then just check for null Jan 29 17:19:12 gb makes up 20% of the user base now... Jan 29 17:19:18 then nullcheck, or write your own wrapper Jan 29 17:19:22 the worst is when they are iPhone users and they QA the android app Jan 29 17:19:33 "why does the back button take me to the home screen?" Jan 29 17:19:36 you mean the UP button? Jan 29 17:19:42 jug6-mbl: Yeah I can check for null, just wanted to see if anyone knew of a support lib that has Bundle, guess not Jan 29 17:19:52 i doubt it Jan 29 17:19:59 it's really not that big of an issue just thought I would try Jan 29 17:20:00 but idk for sure Jan 29 17:20:04 to look for an import Jan 29 17:20:28 why would bundle have a support lib... Jan 29 17:20:35 it's like a 1 line method if you wanted to do that Jan 29 17:20:42 lol Jan 29 17:21:06 Agreed Jan 29 17:21:16 but who knows Jan 29 17:21:27 shift happens Jan 29 17:22:08 String str = bundle.contains("key") ? bundle.getString("key") : "default" Jan 29 17:24:13 I've seen some really good examples of using the SeekBar view in a PreferenceDialog. Is there any way, though, to use the SeekBar directly on the Preference screen? Jan 29 17:24:40 write a seekbar preference Jan 29 17:25:20 if I have a service and inside that service I have a reference to an object, but pass it as a weak reference to a set of listeners, is there a reason that the weak reference goes away while the service is still running? Jan 29 17:25:40 (the strong reference is a class level variable inside the service) Jan 29 17:28:51 by class level variable, do you mean a static field or an instance field? Jan 29 18:07:07 hmm is it worth looking at phonegap to develop an app. Im quite new but picking up native apps on android. Most the apps I will be doing are quite straight forward. Just wondering if anyone has any advice on the subject? Jan 29 18:10:38 jonc-1, then you don't have a reference like you think Jan 29 18:10:47 matt1982_, phone gap no good Jan 29 18:11:10 pfn, hmm ok. Any particular reason. Just trying to build a picture up Jan 29 18:11:11 matt1982_: if you're serious about hte app, go native. Phonegap is probably to get prototypes and early verisons out the door Jan 29 18:11:39 *probably better Jan 29 18:12:14 ahh right thats fair enough i suppose. Jan 29 18:12:44 I was wondering if it was just for simple apps or something. EG brochure style apps like product showcases or a simple catalogues and info sites Jan 29 18:13:27 Personally, I would probably uninstall an app just because it wasn't native, but I understand the need to not go native sometimes Jan 29 18:14:24 f2prateek_ yeah Im liking making the native apps, it's just at work we got a quote for an app to be built around our site and they kept banging on about hybrid app which made me think it was that. Jan 29 18:15:39 It would come down to how confident you are developing an Android app. A phonegap app done well will beat a badly done native app. Jan 29 18:18:42 yeah thats true i suppose/ Jan 29 18:18:48 Thanks for the help guys Jan 29 18:19:20 Guys, I just bought a new laptop with a super hires screen. Android studio is not tiny. Any idea how I would fix that? Jan 29 18:21:47 hi guys Jan 29 18:22:04 not tiny? Jan 29 18:22:25 change your font options Jan 29 18:22:37 so, anyone have XP with volley? I'm trying to follow my server responses including waiting on 503 or redirecting requests Jan 29 18:24:57 I tried to grind web requests, but I could never get enough XP to get past level 1 Jan 29 18:25:24 heh Jan 29 18:27:18 JesusFreke: indeed heh Jan 29 18:28:13 JustSighDudes: did you try changing the editor settings? Jan 29 18:29:36 JustSighDudes: http://stackoverflow.com/a/16592300/1056359 Jan 29 18:35:19 I want to use this library in my android project: https://github.com/umano/AndroidSlidingUpPanel I'm using Android Studio and gradle. I haven't yet been able to find any clear instructions on how to accomplish this. Jan 29 18:35:41 It's not on maven central. I tried just cloning the github repository in my libs/ directory, but that doesn't seem like it's the correct thing to do Jan 29 18:38:36 bricker: I would say grab the repo, build the library and dump the built library into your libs dir Jan 29 18:38:55 there may be other ways to do it, but that should work Jan 29 18:39:29 I.e. you may try importing the the library as a separate sub-project/module in your gradle/AS project Jan 29 18:40:29 why would a weakreference to a static final item ever go null? Jan 29 18:40:43 thepoosh: what do you mean? 500s should be delivered to onErrorResponse Jan 29 18:41:12 evanc: yes, but I want to retry if the server gives me an option, like in 503 Jan 29 18:41:25 jonc-1: in principle, classes can also be GC'ed; though i dunno enough about dalvik to know if it does that optimization. Jan 29 18:41:56 I am trying to setup a list of listeners in a service, but I want to avoid having strong references incase a listener should be GCed Jan 29 18:41:56 jonc-1: at the very least, do you know whether ondestroy() is called on your service instance? Jan 29 18:42:12 I do not believe it is being called kbs Jan 29 18:42:42 jonc-1: if ondestroy() is not being called, and your strong reference is a static field in your service instance, it's indeed mysterious Jan 29 18:42:54 checking now Jan 29 18:43:04 Should my MainActivity directly call ListFragment, or should I call an activity that contains my ListFragment? Jan 29 18:43:25 thepoosh: in onErrorResponse, you can get the status code (error.networkResponse.statusCode) and retry there. You might also be able to set a RetryPolicy to do this on the Request; not sure, though. Jan 29 18:44:50 evanc: but the network dispacher wont even return it to the original RequestObject Jan 29 18:44:56 where do I catch it? Jan 29 18:44:57 JesusFreke: after the project is built, which files need to be moved into libraries? The entire 'build' directory? Jan 29 18:45:04 http://pastebin.com/TyVDh1pA Jan 29 18:45:07 I want to get to it before the onError Jan 29 18:45:16 *ErrorListener Jan 29 18:45:19 Code used with a weakhashmap to get the non-null strong references to the listeners Jan 29 18:45:31 weakhashset* Jan 29 18:45:55 thepoosh: well, one wonders why you'd want to retry the same request on a 503, but aside from that, you just have to get your Request to your ErrorListener somehow (and then put it back in the queue to try again) Jan 29 18:46:15 bricker: just the built jar Jan 29 18:46:16 using, Collections.newSetFromMap(new WeakHashMap, Boolean>()); Jan 29 18:46:45 evanc: well, we had some scaling issues Jan 29 18:47:04 plus, referencing back to a request from the listeners is cyclic referencing Jan 29 18:47:07 and that is bad Jan 29 18:47:12 kicking your servers while their down doesn't seem like the right solution :P Jan 29 18:47:36 the server guy came screaming at me for not handeling that Jan 29 18:47:40 thepoosh: how would this be a cyclic reference? Jan 29 18:47:42 I do agree Jan 29 18:47:57 requests take listeners as pararms in the constructor Jan 29 18:48:07 therefore every request has listeners as memebers Jan 29 18:48:20 pointing back to their father is cyclic Jan 29 18:48:51 jonc-1: kinda hard to see with just that pastebin/info, but first - what's the symptom? Jan 29 18:50:13 thepoosh: you can override Request#deliverError and add "this" back to the queue (but then you have to plumb the queue in from somewhere) Jan 29 18:50:59 all i want to do is change the RetryPolicy according to the response headers Jan 29 18:51:18 kbs, I have a service that has a bunch of listeners, the service gets data from a bluetooth device and sends information to all listeners Jan 29 18:51:36 now in my service for testing I created a static final listener Jan 29 18:51:56 I pass that to the set of listeners using a weak reference Jan 29 18:52:03 for the first few seconds everything works ok Jan 29 18:52:12 why weak?! Jan 29 18:52:12 but then my set of listeners is empty Jan 29 18:52:20 why not deregister?! Jan 29 18:52:29 or SoftReference Jan 29 18:52:43 you are aware the GC cleans all weakreferences Jan 29 18:53:03 they're treated as non existing if they're the only ones Jan 29 18:53:06 I thought about that, but I didn't really want the ability to do .addListener(new IListener{...}); and people forgetting to clean it up Jan 29 18:53:10 jonc-1: well - unfortunately, in the code you showed, I don't see any strong reference to instances of IBiometricSensorListener Jan 29 18:53:10 yes Jan 29 18:53:18 but I have a static final reference to it thepoosh Jan 29 18:53:28 hmmm Jan 29 18:53:34 I want it to be GCed if the only reference is in the listener's set Jan 29 18:53:35 that specific one is not there?! Jan 29 18:53:44 it is for a bit, then it is gone Jan 29 18:53:50 wierd Jan 29 18:53:57 jonc-1: if that code is in your service, and if the variable "listeners" is the static final list, and if that method returns an empty list, I don't see any surprise Jan 29 18:54:09 s/static final list/static final weakhashmap/ Jan 29 18:54:10 try switching it to soft referenses Jan 29 18:54:17 oh Jan 29 18:54:26 the hashmap can be pointing at nothing Jan 29 18:55:07 I only see a strong reference to the weakhashmap itself - I don't see any strong references to its contained IBiometricSensorListener instances Jan 29 18:55:31 well - actually, that assumes that "listeners" is the static final variable jonc-1 is talking about Jan 29 18:55:36 kbs, in my service I have: http://pastebin.com/cVSDF5eb Jan 29 18:55:52 the listeners set is not static final Jan 29 18:55:56 the actual listener is Jan 29 18:56:07 but the listener is being removed because of it being null Jan 29 18:56:11 jonc-1: it would probably be most helpful to paste the entire service code :-) Jan 29 18:56:42 would love to, but unfortunately I cannot Jan 29 18:58:24 unfortunately it's kinda hard for me at least to co-relate the static final variable "listener" in http://pastebin.com/cVSDF5eb with the code in http://pastebin.com/TyVDh1pA -- I don't see that variable being used at all in the latter paste - oh well. Jan 29 18:58:48 listener is being added to the set that is used in the second code Jan 29 18:58:58 but it is being removed Jan 29 18:59:12 the variable "listener" in the latter paste is a local variable Jan 29 18:59:23 if it's in teh same class, it's being shadowed Jan 29 18:59:46 not the same class Jan 29 18:59:57 ah well :-) Jan 29 19:00:21 screw it, 1 second Jan 29 19:01:40 http://pastebin.com/Sc6Hwkwc <--- service class Jan 29 19:02:12 where are those R.id.* things defined? I want to add a fragment Jan 29 19:02:26 somewhere in de .xml files, but I have no clue where unfortunately Jan 29 19:02:44 the tag is just for static ones, isn't it? Jan 29 19:02:47 http://pastebin.com/rcHc8HK5 <-- the interface that actually collects the bluetooth data and hands it off to the listeners Jan 29 19:04:01 corp_: do you mean in the resulting apk? Jan 29 19:04:28 no, in my project files Jan 29 19:04:41 that android ui design is quite confusing to me ;) Jan 29 19:04:54 R.id.* are view/layout ids Jan 29 19:05:01 declared in your layout files Jan 29 19:05:17 R.layout.* are the layout file names Jan 29 19:05:41 so I can add an id field to a linear layout? Jan 29 19:05:41 R.* are all id's to resources Jan 29 19:05:55 yes Jan 29 19:07:39 ah ok Jan 29 19:07:48 now that brings some light in the darkness, thanks jug6-mbl ;) Jan 29 19:08:35 lol np Jan 29 19:08:44 any idea? Jan 29 19:09:17 whats ur question Jan 29 19:09:22 jonc-1: just to get the obvious things out of the way, have you verified whether ondestroy() gets called on your service? Jan 29 19:09:24 Should my MainActivity directly call ListFragment, or should I call an activity that contains my ListFragment? Jan 29 19:09:44 I have put a breakpoint in an overloaded ondestroy that calls super.onDestroy, never reaches it Jan 29 19:09:53 smallfoot-: what are you wanting to do Jan 29 19:10:28 jug6-mbl, when I click something i want to bring up a fragment Jan 29 19:11:34 smallfoot-: either way. You could replace your root view with a fragment with your listview or u could put it into another activity Jan 29 19:11:45 Can DefaultHttpClient connect to HTTPS? Jan 29 19:11:55 neither is wrong, its just a matter of which works better for your. Jan 29 19:11:59 jug6-mbl, which is prefered? Jan 29 19:12:01 oh Jan 29 19:13:14 jonc-1: the double-wrapped WeakHashMap makes me pause Jan 29 19:13:54 jonc-1: there's some convoluted way you're creating your weakly-referenced set - and looking at the implementation of Collections.newFromMap - it appears to me that rather than transferring all the keys into a new set, it just delegates to the underlying map Jan 29 19:14:11 jonc-1: WeakHashMap will itself wrap keys into a weak reference Jan 29 19:14:17 Why do u have a WeakHashMap of WeakReferences? Jan 29 19:14:27 will it? Jan 29 19:14:27 Everything in a WeakHashMap is already a WeakReference Jan 29 19:14:34 the example I saw did it that way Jan 29 19:14:37 but that makes sense Jan 29 19:14:38 thank you Jan 29 19:15:10 I also dunno why it needs to be created in that weird way :-) Jan 29 19:15:21 there is no weakset Jan 29 19:15:35 so what I found was to create a set based on a weakhashmap, gives you one Jan 29 19:15:56 jonc-1: write ur own, shouldnt be to difficult Jan 29 19:16:18 well -- at least the mystery is explained - will leave you to discover the fix I guess :-) Jan 29 19:16:32 thanks again Jan 29 19:20:46 so then for a weakhashmap to check if the iterator hit something that was GCed just check that the result from it.next() != null? Jan 29 19:21:43 it.next().get() != null Jan 29 19:21:54 the WeakReference still exists, just doesnt return anything Jan 29 19:23:15 hm Jan 29 19:23:31 I don't think it returns a weakreference Jan 29 19:27:14 jonc-1: possibly Jan 29 19:27:23 to ask the stupid question - if you're taking the trouble to directly work with weakreferences, what's the issue with the straightforward hashset> ? Jan 29 19:28:49 That is a question. Most likely because I wasn't sure if it'd work and I saw that there was the weakhashmap so started looking for a weakhashset, didn't find one but found the example to use the weakhashmap as a set Jan 29 19:29:02 as long as you always check the weakreference before use, and clean out as needed [which seems to be your current design] not sure there's anything even more complicated that's needed Jan 29 19:29:19 I am confused... there is no jar file to import in this project https://github.com/umano/AndroidSlidingUpPanel Jan 29 19:29:19 I just read the greatest method description ever: "Pop the top state off the back stack." Jan 29 19:29:50 am I stupid or is it really this confusing to use a lib in your project? Jan 29 19:30:28 bricker: its an aar, not jar Jan 29 19:30:38 jonc-1: ah. Well -- probably best to rely on the canonical documentation [and the source :-)] for answers. All the weakhashmap basically adds is the internal state-checking, so the caller doesn't have to worry about weakreferences at all Jan 29 19:31:06 jug6-mbl: so if I just build the lib with gradle build, then I can just import that AAR file? Jan 29 19:31:18 yeah, I just changed it to a hashset Jan 29 19:31:40 jonc-1: if you wanted, you could probably create a similar class; but it strikes me that your current approach directly works with weakreferences - so, don't complicate it even more ;-) Jan 29 19:31:52 I've added a deliberate listener that should be GCed (function level variable), and am testing that it gets removed Jan 29 19:32:39 bricker: no idea on gradle, but the resource packaging is an aar file, there should be articles/tutorials on how to use aar's with gradle Jan 29 19:33:02 the sample project for that lib uses maven, but the aaron will work with maven and gradle Jan 29 19:33:18 jug6-mbl: okay, thanks Jan 29 19:34:01 this system is designed to allow fragments to register local listeners to update UI elements etc., but I also want to makes sure I don't leave any listeners hanging Jan 29 19:34:19 huh, interesting Jan 29 19:34:28 I've usually gone the other way [with activities at least] Jan 29 19:34:45 basically - something simple that register/unregister on onResume() and onPause() Jan 29 19:34:51 I'd just an event bus Jan 29 19:34:58 insert use somewhere Jan 29 19:34:58 I thought about that Jan 29 19:35:04 otto Jan 29 19:35:22 but I am afraid someone would make a function level listener and not know why it broke Jan 29 19:35:38 and leak it* Jan 29 19:35:49 are you writing a lib? Jan 29 19:35:55 a lib for the company to use, yes Jan 29 19:36:52 so by enforcing that you have to register a weakrefence to a listener it shows that you shouldn't do that Jan 29 19:38:02 i would go for easy of usage and simplicity, you can only police its usage so much. Jan 29 19:38:07 *nod* my 0.02 is that most people generally cut-paste some canonical "example" code - and keeping things obvious is usually a much bigger win in the long run Jan 29 19:38:35 hi, can i send audio stream from device to another device? Jan 29 19:39:01 ofc Jan 29 19:39:09 how Jan 29 19:39:11 i have no idea Jan 29 19:39:35 tcp socket if you know the other devices IP address Jan 29 19:43:09 but that is my reasoning behind making it so you don't have to unregister, I get being able to create local listeners for things that only have 1 listener (like a View only being capable of having 1 listener), but with a service that can span many many fragments with many listeners I didn't want to have it hanging Jan 29 19:46:26 I wonder if the tradeoff is more in the "debuggability" area - the runtime behaviour will be unpredictable [and potentially also call methods to invalid, but not-yet-gc'ed objects] Jan 29 19:46:48 yeah I was thinking about that also Jan 29 19:51:56 being able to add multiple listeners is the issue I think Jan 29 19:52:26 multiple listeners and having the service constantly running Jan 29 19:53:14 having a strong reference for a click listener means that as soon as that view goes away you don't have to worry about it becoming a leak Jan 29 19:54:04 but having something that never goes away (service), leaking a listener is going to be more of a problem, which the register / unregister takes care of, but then allows someone to create a new listener inline Jan 29 19:54:09 and have it leak Jan 29 19:54:16 especially if they don't really know the system Jan 29 19:57:02 hy all Jan 29 19:57:20 I get a project from android studio and I wanted to import that Jan 29 19:57:46 I get this error: Gradle 'botanikaProject' project refresh failed: A fatal exception has occurred. Program will exit. Jan 29 19:58:59 what's the difference between activities and fragments? Jan 29 19:59:08 Can DefaultHttpClient connect to HTTPS? Jan 29 19:59:09 kinda starting to learn android Jan 29 20:07:04 smallfoot-: i have not dealt with it in a long time but i believe so. But not by default, there is setup required in regards to ssl. Jan 29 20:07:08 is there anything I can do about that? 01-29 21:06:39.273: E/AndroidRuntime(2573): Caused by: java.lang.ClassCastException: com.google.android.gms.maps.MapFragment cannot be cast to android.support.v4.app.Fragment Jan 29 20:08:26 MapFragment is an android.app.Fragment.. SupportMapFragment is an android.support.v4.app.Fragment Jan 29 20:08:34 ^ Jan 29 20:08:48 beat me 2 it :S Jan 29 20:08:51 me too Jan 29 20:08:52 :P Jan 29 20:08:57 1/2 the channel Jan 29 20:09:08 99% Jan 29 20:09:29 We had issues with a MapFragment if I remember right, I had to overload it and do something specific for a specific phone Jan 29 20:10:13 I also had to do something similar for the facebook library, on the motorola droid there was an issue with the webview, so you had to extend webview and set facebook to use that Jan 29 20:10:34 :\ Jan 29 20:11:02 was a really obscure error that only happened on that device Jan 29 20:11:43 my TI launchpad comes in today :D Jan 29 20:11:48 jug6-mbl, thanks Jan 29 20:14:58 hi, can i use a2dp profile to send audio stream from an android to another android? Jan 29 20:15:16 <|0xD34D|> jonc-1: the arm based one or msp430? Jan 29 20:16:13 <|0xD34D|> actually looks like they have a few different launchpads for some different uCs Jan 29 20:17:06 http://www.ti.com/tool/ek-tm4c123gxl Jan 29 20:17:14 ARM Jan 29 20:17:16 <|0xD34D|> yep the arm Jan 29 20:17:29 was fairly certain, just couldn't remember if it was V4 or M4 Jan 29 20:17:37 <|0xD34D|> I bought up a few of the msp430 ones when they were first released for $4.30 Jan 29 20:17:52 taking a free course from the University of Texas on embedded systems (through edex) Jan 29 20:17:56 edx* Jan 29 20:18:10 <|0xD34D|> nice, embedded design is fun Jan 29 20:18:12 and this is the board they use, seems more powerful than an arduino, and a lot cheaper Jan 29 20:22:28 the launchpad? less grunt in general than an ardu but a cheap chip Jan 29 20:22:46 well, the main chip has less grunt. The programming chip is pretty powerful actually. Jan 29 20:23:01 devandroid: I don't believe so Jan 29 20:23:04 80mhz 256k memory iirc the specs correctly Jan 29 20:23:15 jonc: maybe I'm thinking of a different one Jan 29 20:23:25 they've released several versions Jan 29 20:23:26 jonc: the original launchpads were almost definitely not that beefy Jan 29 20:23:29 the newest is arm based Jan 29 20:23:31 fair enough Jan 29 20:23:36 yeah I'm out of date on them, then Jan 29 20:23:39 which is the one I got Jan 29 20:23:42 i can use a2dp profile but any android device support this profile Jan 29 20:23:43 hy all Jan 29 20:23:46 Failed to refresh Gradle project 'botanikaProject' The project is using an unsupported version of the Android Gradle plug-in (0.6.3). Jan 29 20:23:50 what should I do? Jan 29 20:23:52 if you're looking at cheap arm stuff, check out the lpc1345; i've had good luck with it and interfacing it w/ android on usb Jan 29 20:24:13 <|0xD34D|> dragorn: you're thinking of the msp430 chips Jan 29 20:24:14 it's also easy to throw a cheap < $10 BT RFCOMM adapter at those things, either the launchpad or the lpc Jan 29 20:24:42 |0xD34D|: I definitely am, tho I dont use the G line much and usually use something like the f 2618 line. Tho I haven't used them since finding the super cheap lpc, either. Jan 29 20:24:56 the launchpad I just bought was only $12.99 including shipping Jan 29 20:25:12 <|0xD34D|> I bought them more for the programmer than the actual chips Jan 29 20:25:43 dragorn, i can't use other device adatper, but i have bluetooth connection between android to another android Jan 29 20:25:51 |0xD34D|: check out the Goodfet design sometime; it's build your own but if you want the f-series chips it's a clever little design. I was working on a bt-enabled one for a while but then I stopped caring Jan 29 20:25:57 gregtom6: Use a supported version of the Android Gradle plug-in Jan 29 20:26:16 devandroid: you can do arbitrary SPP serial comms, but I don't believe there is a a2dp producer or consumer API Jan 29 20:26:31 devandroid: you could serialize your audio and send it over SPP. Might be stupid and slow though Jan 29 20:26:55 SPP? Jan 29 20:27:00 SimonVT: but how? Jan 29 20:27:07 can you show me a fast fix? Jan 29 20:27:16 devandroid: serial port protocol, rfcomm Jan 29 20:27:25 devandroid: that's the only bt socket you can make as an app, as far as I'm aware Jan 29 20:27:47 You need to use the newest version.. 0.7.+ Jan 29 20:27:55 Wait, 0.8.+ Jan 29 20:28:03 Need to make sure you use gradle 1.10 as well Jan 29 20:28:28 ok.. a moment... i send bytes via bluetooth.. and other device plaies Jan 29 20:28:48 is it possibile via bytestream? Jan 29 20:28:52 devandroid: when you make a bluetooth connection in android, you're making a SPP RFCOMM socket which is basically a serial port. Jan 29 20:29:01 devandroid: You can send any serial data you want on it Jan 29 20:29:18 devandroid: other things, like HID (keyboards, mice, etc) and audio are handled at the system level and aren't exposed to applications in the BT API Jan 29 20:29:59 you could create an audiostream I'd imagine Jan 29 20:30:00 yes yes, i just create a bi-diretional connection and a similar chat Jan 29 20:30:07 devandroid: look at the examples on the documentation site, you can make arbitrary serial connections over BT or you can use the proper UUID and connect to bog-standard rfcomm serial dongles (of which there are many, look t sparkfun or something). Jan 29 20:30:18 look at the android developer site; they have a BT chat application Jan 29 20:30:22 as the example code for using BT sockets Jan 29 20:30:30 i want to debug using this device Teclast A70h Quad Core Tablet , which vendor iud should i use for udev rule? Jan 29 20:30:39 brx_: plug it in, run lsusb Jan 29 20:30:55 dragorn, thanks... Jan 29 20:30:57 ahh yes i rememebr now Jan 29 20:31:16 thanks Jan 29 20:37:14 SimonVT: where can I see what kind of version do I have? Jan 29 20:37:38 SimonVT: because I had renamed the gradle folder and it has downloaded some kind of gradle I think Jan 29 20:37:57 SimonVT: but it still doesn't work Jan 29 20:39:21 gregtom6: you may find it simpler to make a new project Jan 29 20:39:26 gregtom6: then move your old code into it Jan 29 20:39:44 dragorn: the project is not mine Jan 29 20:39:59 but I need to use this, not other Jan 29 20:42:12 so I should refresh the gradle? Jan 29 20:42:23 well, then you need to update all the gradle inside the project and update whatever syntax incompatibilities arise, as simon has been saying. it's a big pain. Jan 29 20:42:29 how can I do that with simplest way? Jan 29 20:43:04 simplest way? make a new project, figure out what changed in the gradle, and copy it over and update all your build and settings .gradle files Jan 29 20:43:52 dragorn: it would take a lot of time I think Jan 29 20:44:40 or make a new project and yup Jan 29 20:44:50 ^and copy the source back over it Jan 29 20:45:01 I spent a few hours doing this last night to projects which had fallen behind in gradle-rot Jan 29 20:46:26 few hours???? Jan 29 20:46:31 For a simple project you really just need to update the version in build.gradle and gradle-wrapper.properties Jan 29 20:47:59 SimonVT: how can I do that? Jan 29 20:49:11 By opening the files and changing the version Jan 29 20:49:46 SimonVT: change to what? Jan 29 20:50:02 The previously mentioned versions Jan 29 20:50:13 to the version I have? Jan 29 20:50:30 What? Jan 29 20:50:44 SimonVT: what should I do with versions? Jan 29 20:50:49 change the versions to what? Jan 29 20:51:04 To the previously mentioned versions Jan 29 20:51:47 SimonVT: what are the previously mentioned versions? Jan 29 20:51:49 0.8? Jan 29 20:53:11 I have to download the gradle 1.10 manually and use that somehow with that imported project? Jan 29 20:56:29 i got my weird chinese tablet workiungwith this in case anyone else is interested http://askubuntu.com/questions/213874/how-to-configure-adb-access-for-android-devices Jan 29 20:58:02 SimonVT: I have downloaded gradle 1.10. What should I do now? Jan 29 20:59:54 If the project uses gradlew then you don't need to download it, just upgrade the properties file Jan 29 21:02:44 SimonVT: local.properties? Jan 29 21:02:54 please link some kind of tutorial for that Jan 29 21:04:57 No, gradle-wrapper.properties Jan 29 21:05:50 is there a shortcut key to hide all extra windows? Jan 29 21:06:00 (kind of like alt+number of window, but for everything) Jan 29 21:06:33 ìn android studio* Jan 29 21:10:27 for anyone that wants to know, ctrl+shift+f12 Jan 29 21:11:11 if it's like eclipse/idea(it's based on idea) you can also double click the editor tab title Jan 29 21:11:22 yup, knew that one Jan 29 21:11:30 but wanted to be able to do it with keyboard shortcuts Jan 29 21:11:40 *nod* I learned something : ) Jan 29 21:12:19 woot fixed the issues with the bluetooth Jan 29 21:12:36 SimonVT: how should I modify gradle-wrapper.properties and build.gradle? Jan 29 21:12:53 what should I write? Jan 29 21:16:42 So HttpURLConnection should be used instead of DefaultHttpClient? Jan 29 21:17:27 Why when i click debug in android studio, it actually passes the breakpoints ? and debugger doesnt show any data. although yesterday it was running fine Jan 29 21:17:28 ? Jan 29 21:17:58 is there a difference between a user hitting the back button to close an app and slide closing an app? Jan 29 21:18:37 I would like my service to keep running if the back button is pressed and it goes to the home screen, but I want to swipe it when the user swipe closes it Jan 29 21:19:03 gregtom6: You should look up what goes on in build.gradle, then it'll be much easier for you to use Jan 29 21:19:03 gregtom6: change the URL to 1.10 at the end Jan 29 21:21:17 jonc: back button drops to home but leaves the activity running. Slide closing tends to kill the activity afaik Jan 29 21:22:10 I am sending a message to my service in the activities "onDestroy" method to have the service stop Jan 29 21:23:01 which is probably not the best idea Jan 29 21:23:59 but I was having issues with the service not dying if I swipe away the app Jan 29 21:27:24 jonc dragorn: I read on the Google Android mailing list that sliding an app out of the activity switcher has undefined behavior Jan 29 21:27:39 backing out of the task will usually destroy the Activity Jan 29 21:27:44 is there an analogue for ViewTreeObservers, but with Windows? I'd like to be able to be notified anytime a window is displayed, hidden, or changes location/z-order Jan 29 21:28:39 so if you back out of the app the service should be unaffected... but you can start the service with START_STICKY to make sure it persists until it has finished all its tasks Jan 29 21:28:50 stupid question: Jan 29 21:28:51 q Jan 29 21:28:51 hat Jan 29 21:28:52 is Jan 29 21:28:58 (sorry, bad pc) Jan 29 21:29:17 what is it called when there's a checkbox option in an actionbar's dropdown? Jan 29 21:34:20 hephaestus_rg: checkable Jan 29 21:34:34 thank you napalm Jan 29 21:34:41 hephaestus_rg: http://developer.android.com/guide/topics/resources/menu-resource.html Jan 29 21:34:41 I thought slide off the screen is guarenteed to kill it?!? oh well. Thats why its there. Jan 29 21:34:46 android:checkable Jan 29 21:35:12 Any hints on how to get the imageviews in each of the fragments of my ViewPager to update after calling mImageLoader.get(url, new ImageListener{}) with Volley Jan 29 21:35:49 yiati: they are not already updating? Jan 29 21:35:56 I keep getting into the onResponse of the ImageListener, and setting the images with mImageView.setImageBitmap(response.getBitmap) Jan 29 21:36:01 Napalm: Nope :P Jan 29 21:36:12 I still can't figure out what feels like a "proper" way to include this into my gradle project: https://github.com/umano/AndroidSlidingUpPanel . I'm thinking about just copying and pasting the code I need. Jan 29 21:36:20 Creating an AVD from the commandline, I've not found a way to replicate the setting of "Internal storage" that can be done in the GUI tool. Is there a way? Jan 29 21:36:27 I can get it to build but I have to go in and rename files in the build/ directory Jan 29 21:36:30 in order for it to work Jan 29 21:36:42 yiati: try adding mImageView.invalidate(); or mImageView.requestLayout(); Jan 29 21:36:58 bricker, in your projects root directory (has src in it) add a libs folder Jan 29 21:37:00 put the jar there Jan 29 21:37:03 Napalm: I have tried invalidate, but I will try requestlayout Jan 29 21:37:06 jonc-1: there is no jar Jan 29 21:37:16 jonc-1: there is an aar but gradle won't regonize it Jan 29 21:37:19 recognize* Jan 29 21:37:31 and the aar only appears after I manually build the project Jan 29 21:37:54 yiati: sounds to me like there might be something else wrong, like your imageView's are not actually being displayed in the first place. Try changing the android:background property of your ImageView's to a bright color Jan 29 21:39:47 Going to try this next http://codebutler.com/2013/07/02/android-libraries-with-gradle-and-android-studio/ Jan 29 21:40:33 wow, just read the news about google / lenovo / motorola Jan 29 21:40:54 bankai_ you there ? Jan 29 21:41:02 sure am buddy :) Jan 29 21:41:38 haven't had my coffee, so small words for a while Jan 29 21:41:39 woa Jan 29 21:41:46 that's crazy, lenovo buying motorola Jan 29 21:41:57 bankai_ 2e of this well known book came out; one of the best i've read on UI. i highly recommend it http://www.amazon.com/Designing-Mind-Understanding-Interface-Guidelines-ebook/dp/B00HLLN0PI Jan 29 21:42:13 (i read the 1e) Jan 29 21:42:32 myke yeah, seems like it didn't work out for google Jan 29 21:42:46 Napalm: :P I set it to cyan and it's definitely showing. If I call mImageView.setImageUrl(url, mImageLoader), and let Volley handle updating the view the image will show. I would like to be able to know when the image is updated though, so I am trying to use mImageLoader.get(url, ImageListener) but it's giving me this weird behavior Jan 29 21:43:48 bankai_ that listing seems weird; here is the 1e http://www.amazon.com/Designing-Mind-Simple-Understanding-Interface-ebook/dp/B003H3IOXM Jan 29 21:45:23 gee not a cheap book Jan 29 21:45:48 is this properly formatted? https://gist.github.com/hayksaakian/b0cb9f392af1041b7238 Jan 29 21:46:34 and how would i access the checked/not state and also make sure it's set properly to begin with Jan 29 21:46:53 should i do this in the onoptionmenucreated Jan 29 21:47:14 or i guess onCreateOptionsMenu Jan 29 21:48:17 bankai_: looks cheep to me Jan 29 21:48:49 ive paid £60 GBP for books before.. thats about 100$ Jan 29 21:49:49 the best time to buy NK books is xmas, when oreilly has their big ebook sales. you can get them %50 usually Jan 29 21:50:05 <_genuser_> guys where do you normally store configuration items, or rather application constants. Jan 29 21:50:19 <_genuser_> things like your dev URL. Jan 29 21:50:32 SharedPreferences? Jan 29 21:50:45 <_genuser_> it's not a runtime pref user can or needs to change. Jan 29 21:50:58 then you have a couple of options Jan 29 21:51:00 <_genuser_> more like a CONST. Jan 29 21:51:01 static in java files Jan 29 21:51:15 or raw/xml resources processed at runtime Jan 29 21:51:19 hallo Jan 29 21:51:26 i'm having some difficulty getting started Jan 29 21:51:35 i downloaded and updated android studio, and i tried importing this one github repo Jan 29 21:51:44 but it's saying i need to specify a jdk to run Jan 29 21:51:46 <_genuser_> Napalm: right, I guess a static sounds just as good as any. I was also thinking of just storing it in @strings/url Jan 29 21:54:00 Why when i click debug in android studio, it actually passes the breakpoints ? and debugger doesnt show any data. although yesterday it was running fine Jan 29 21:55:33 is there any kind of documentation on a checkable actionbar item? all i saw was the one page linked earlier Jan 29 21:56:09 nevermind i found it Jan 29 21:59:46 Is onCreateOptionsMenu available from a ListFragment? or only in Activities? Jan 29 22:00:15 nvm, it is available! Jan 29 22:00:35 smallfoot-, it's alive!! Jan 29 22:00:39 whaaaaa :D Jan 29 22:05:03 erm, totally fogged over here .. where's the intellij command to search all user sources for an arbitrary string? I know its in front of me.... Jan 29 22:05:48 oh find in path Jan 29 22:06:43 ah yes under edit/find .. doh. put off by the "code" find options. Jan 29 22:09:04 Guys, why debugging in android studio just dont suddenly work ? Jan 29 22:10:18 DOSP, it works, you have to press the "Debug" button, next to the "Run" button Jan 29 22:10:27 and you have to place out breakpoints Jan 29 22:11:27 no i know all this, i was debugging my project whole month now since i need to finnish it, but now i place breakpoints and they never get triggered.. but the show the V mark which indicates that the program run through them.. Jan 29 22:12:14 No idea Jan 29 22:12:20 yea Jan 29 22:14:05 do a full rebuild and toggle the breakpoints. must be soemthing silly. Did you perhaps compile outside of AS with another compiler? Jan 29 22:18:20 well i have my project on usb and i am coding on two different computers, but on both i have android studio, perhaps different versions of compilers or dunno Jan 29 22:18:42 JakeWharton: Could not execute build using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.10-all.zip'.: Jan 29 22:18:49 SimonVT: Could not execute build using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.10-all.zip'.: Jan 29 22:19:19 works for me Jan 29 22:19:46 #android: the how to get girls edition. Jan 29 22:20:46 JakeWharton: distributionUrl=http\://services.gradle.org/distributions/gradle-1.10-all.zip in gradle.wrapper.properties Jan 29 22:21:07 yep Jan 29 22:21:10 erm, that was a mischan :) Jan 29 22:21:10 exactly what i have Jan 29 22:23:08 JakeWharton: build.gradle: classpath 'com.android.tools.build:gradle:1.10.+' Jan 29 22:23:21 no, should be 0.8.+ Jan 29 22:23:22 gregtom6: does it need to escape the colon on http\: ? Jan 29 22:23:30 JesusFreke: nah... nah it wasn't Jan 29 22:23:30 shmoooz: yes Jan 29 22:23:43 ok Jan 29 22:31:07 oh ffs..... intellij stuck in a "make" *again*. This is getting beyond funny. No way to kill it without forcing a complete intellij quit either. Gah. enough for the day. Jan 29 22:31:47 That's why I like my emacs and ant build system Jan 29 22:31:50 in my onoptionsitemselected Jan 29 22:32:02 the item seems to always be checked Jan 29 22:32:13 (err i mean not-checked) Jan 29 22:35:03 hey guys Jan 29 22:35:09 got a strange problem Jan 29 22:35:26 my app is handling implicit intents. Clicking a link in a webpage opens the app...so far so good Jan 29 22:35:41 except, it seems to open it in the browser's app, almost Jan 29 22:36:16 how do you almost open something? Jan 29 22:36:22 either it does or not right? Jan 29 22:36:41 well if I hold down the home button, I'll see only the browser app Jan 29 22:36:50 and it shows my app's image there Jan 29 22:37:06 if I switch to another app and switch back to this Internet app (the browser) Jan 29 22:37:08 it shows my app Jan 29 22:37:22 it is as if my app is being launched from within the context of the browser app or something Jan 29 22:37:36 however, if my app then starts a second activity, that second activity will show up under my app Jan 29 22:37:36 i think i read about that Jan 29 22:37:39 if that makes sense Jan 29 22:37:45 it's some kind of change with the app switcher Jan 29 22:38:31 i think it's doing something that you would not expect, but is technically correct? what is broken in the workflow beyond just being confusing in the app switcher Jan 29 22:38:50 everything else seems fine Jan 29 22:39:09 like if I'm in the browser, click a link that launches my app, navigate around a while, hit back a few times... Jan 29 22:39:12 the back stack is all correct Jan 29 22:39:15 everything works correctly Jan 29 22:39:31 but it's just if I switch back to the "internet" app, it shows my landing activity Jan 29 22:39:40 and you have to hit back again to get back to the webpage Jan 29 22:39:40 Guys please would someone be so kind and explain me the issue, i have this code http://pastebin.com/EmFBy6rX and at file[l] = testest; i get "Array reference expected" error in debugger. Can someone explain why this happens ? Jan 29 22:39:53 so...if I never use the app switcher and only use back buttons, it works Jan 29 22:40:55 hey i made a programme in C which plays a tone on a nexus-4 by linking gstreamer-for-android! i feel very proud of myself Jan 29 22:40:59 i think it's just an OS problem prgmmax see http://www.androidpolice.com/2013/12/01/stock-android-isnt-perfect-4-4-kitkat-edition/ Jan 29 22:41:22 the app switcher is ambiguous when you're activity hopping Jan 29 22:41:33 this is actually not so trivial after they removed /dev/snd/msm_pcm_out ;) Jan 29 22:41:37 and they're still trying to dsign it properly Jan 29 22:42:13 hrmmm but if I click a link to twitter it seems to work okay? Jan 29 22:42:56 so if you do the following Jan 29 22:43:34 click link in browser -> link opens in twitter app -> you click around the twitter app -> you app switch to the browser and it's on the last page you were on? Jan 29 22:44:06 I'll check...one sec Jan 29 22:44:11 but in your app, the last part takes you to another page in your app instead of the browser? Jan 29 22:44:25 DOSP: line 10 Jan 29 22:45:28 bankai_ as i said i know where is problem i dont understand it. Why i cant assign string to string array but on certain position.. Doesnt it accept string ? Jan 29 22:45:42 so I have a few things to test...like what happens when someone clicks a link from twitter to my app Jan 29 22:45:44 just tried that one Jan 29 22:45:58 DOSP: i'll answer that with a question - what is 'files' ? Jan 29 22:46:10 turns out, the link became a shortened url t.co/blah so it launched the browser, which then launched my app and had the same problem (my app's landing page appears in the browser) Jan 29 22:46:32 now I'll see what happens if I click a link to youtube or twitter or something from the browser...see if their apps are also effected Jan 29 22:46:41 bankai_ line 2 Jan 29 22:46:52 i can read the code, i'm trying to get you to think about it Jan 29 22:47:14 i made a noise, yay! Jan 29 22:47:36 you should also be aware of what android version you're using prgmmax because they changed the behavior in 4.4 http://www.androidpolice.com/2013/12/01/stock-android-isnt-perfect-4-4-kitkat-edition/ Jan 29 22:49:02 also SELinux defaults to enforce mode in 4.4 Jan 29 22:49:44 oh weird Jan 29 22:49:50 it looks like twitter has that same problem, too Jan 29 22:49:54 I'm on 4.3 Jan 29 22:50:03 I'll test on 4.4 as well Jan 29 22:50:38 so I went to a webpage in the browser, clicked on a link to a twitter profile of some user Jan 29 22:50:44 and it launched the twitter app Jan 29 22:50:49 at the home screen Jan 29 22:50:57 but I also see the twitter profile page inside the browser Jan 29 22:51:30 yeah, the way android was originally designed was with a task switcher Jan 29 22:51:51 so since looking at someones twitter page from a browser is considered one task Jan 29 22:52:03 it's in the same "app" slot in the "app" switcher Jan 29 22:52:54 still there's problem: Could not execute build using Gradle installation 'D:\BOTANIKA\gradle-1.10 Jan 29 22:53:01 ohhhh k Jan 29 22:53:09 SimonVT Jan 29 22:53:29 JakeWharton Jan 29 22:53:58 bankai_ i know that files is array but i need array , and i want to occupy each slot of that array with string , what is wrong there ? Jan 29 22:54:31 it's null... Jan 29 22:55:18 so like, even though it is launching a new app Jan 29 22:55:27 it is really still following one flow of user activity Jan 29 22:55:31 so it is one "task" Jan 29 22:55:33 yeah exactly Jan 29 22:55:46 so...now that I know twitter has this same issue, I feel less bad about it Jan 29 22:55:49 this becomes confusing if you have say, multiple apps opening twitter Jan 29 22:55:52 I guess I'll check the youtube app as well Jan 29 22:55:57 and also the user opens twitter from the app launcher Jan 29 22:55:57 right Jan 29 22:56:19 it's one of those things that's probably too smart for it's own good Jan 29 22:57:15 i suppose the thinking is designed to preserve the functionality of the back button, so if you keep pressing back from twitter, it should bring you to the browser Jan 29 22:57:17 yeah Jan 29 22:59:15 okay yeah Jan 29 22:59:17 youtube does it, too Jan 29 22:59:23 so...now I feel better about myself Jan 29 22:59:24 I'll leave it Jan 29 22:59:29 got a meeting. Be back in an hour Jan 29 23:00:05 thanks so much, hephaestus_rg Jan 29 23:00:12 you saved me sanity Jan 29 23:00:15 bankai_ and what it should be ? since i am occupying it in loop. Jan 29 23:00:23 yeah no prob prgmmax Jan 29 23:01:02 DOSP: something that's not null Jan 29 23:03:28 bankai_ and i am getting the error after first and second loop cycle .. at that time it should be overwritten, or not ? Jan 29 23:04:45 anyhoo, if anyone needs help compiling gstreamer for android, i'm around... Jan 29 23:05:19 so much for being around Jan 29 23:05:50 Does anyone know what the best IDE is for all of the android source? Jan 29 23:05:52 Like if I want to open GridView.java in intellij or something, is/are there iml files for that? Jan 29 23:06:28 hwrdprkns: make sure you've sources build/envsetup.sh, then make idegen && tools/development/idegen/idegen.sh Jan 29 23:06:32 sourced* Jan 29 23:06:38 that will generate intellij and eclipse project files Jan 29 23:07:58 be warned that when you first open it in intellij, it will take a long time to index everything Jan 29 23:08:20 I recommend trimming down the set of included sources to only the stuff you care about Jan 29 23:09:06 JesusFreke: If I delete files from the source repo will it still try to download them when i "repo sync"? Jan 29 23:09:18 yes. Jan 29 23:10:14 you could probably edit .repo/manifest.xml and remove projects from there Jan 29 23:10:36 but it's likely you'll run into errors when trying to build, depending on what it is that you removed. Jan 29 23:10:58 for the intellij project, I mean just disabling the various source folders in intellij. not actually deleting anything. Jan 29 23:11:33 JesusFreke: Ahhhh I see. For some reason I see Case-insensitive filesystems not supported. Stop. when I try and build Jan 29 23:11:36 I'm sure I can google this though Jan 29 23:11:57 are you on a Mac? Jan 29 23:12:19 istr the default filesystem on mac is case insensitive? or maybe I'm totally making that up Jan 29 23:12:20 * JesusFreke shrugs Jan 29 23:12:45 JesusFreke: Yeah I am on a mac haha, are you sure i need to make idgen? Jan 29 23:13:10 hwrdprkns: pretty sure. Otherwise it will complain about not being able to find idegen.jar when you try to run the idegen.sh script Jan 29 23:13:31 not sure if it was a typo, but you need to make idegen. not idgen : Jan 29 23:13:32 :) Jan 29 23:15:25 JesusFreke: Still complaining about case insensitivity... But I should be able to figure this out. Jan 29 23:15:51 http://cl.ly/image/2A2A2y260b46 Jan 29 23:15:55 hwrdprkns: well, I'm not sure what there is to figure out. I think you need to make a case-sensitive filesystem for the android source to live on :) Jan 29 23:16:07 yeah :( life sucks Jan 29 23:17:39 I would suggest loop mounting a 15gb file with an appropriate filesystem, but I don't know if mac has loop mounts, or what the equivalent would be. Jan 29 23:18:23 JesusFreke: Luckily, google came to the rescue: http://source.android.com/source/initializing.html Jan 29 23:18:47 hwrdprkns: yeah, that. :) Jan 29 23:19:16 although I underestimated the size Jan 29 23:27:21 guys how do i set range on String array when i dont know what is the range ? Jan 29 23:28:22 DOSP: Dunno, but great nickname Jan 29 23:30:48 DOSP: if you don't know, use an arraylist Jan 29 23:30:56 hmm okay thanks Jan 29 23:49:19 is a gradle project allowed to have multiple settings.gradle files? ie, project/{settings|build}.gradle, project/subproj/{settings|build}.gradle, project/subproj/leafproj/build.gradle, each of the settings.gradle files including only its immediate child directories? Jan 29 23:51:33 Hello there! Jan 29 23:51:50 i have problems loading remote images in a home screen widget Jan 29 23:51:57 can someone help? i cant make it to work :S Jan 29 23:52:05 If you interrupt animations by performing more animations, are the interrupted animations forced to finish, or just stay half-way complete? Jan 29 23:52:13 tksko: Picasso is magic. Jan 29 23:52:27 what? Jan 29 23:52:29 tkhttp://square.github.io/picasso/ Jan 29 23:52:30 remoteViews.setImageViewUri( R.id.estado, Uri.parse("http://www.gstatic.com/codesite/ph/images/star_off.gif")); Jan 29 23:52:31 wow Jan 29 23:52:33 tksko: http://square.github.io/picasso/ Jan 29 23:52:39 this line of code.. Jan 29 23:53:23 Picasso gives you image caching and automatic culling of the cache, it also animates in loaded images very nicely Jan 29 23:53:28 Picasso doesn't support gifs yet though Jan 29 23:53:36 ahhhhh crap good point Jan 29 23:53:58 like Android Query? Jan 29 23:54:03 i didint know about picasso.. i will try Jan 29 23:54:05 f2prateek: wait, if the gif is not animated, will it work? Jan 29 23:54:08 but i think the problem is the widget Jan 29 23:54:10 remoteviews...... Jan 29 23:54:20 i still dont understand how they work Jan 29 23:54:40 answer to my q is no: http://stackoverflow.com/questions/12154031/multiple-settings-gradle-files-for-multiple-projects-building Jan 29 23:54:46 Yeah it should, it just won't animate AFAIK Jan 29 23:54:47 GRRRR Jan 29 23:55:21 Guys, what can i get from this ? 29133-29146/com.example.foto:uploadService E/AndroidRuntime: FATAL EXCEPTION: Thread-64992 Jan 29 23:55:23 java.lang.NullPointerException Jan 29 23:55:24 at com.example.foto.uploadService$1.run(uploadService.java:60) Jan 29 23:55:26 at com.example.foto.uploadService$2.run(uploadService.java:134) Jan 29 23:55:49 DOSP: line 60 is dereferencing a null Jan 29 23:56:11 but the problem is that in Widgets or remoteviews i cant get "ImageView" object... Jan 29 23:56:19 the remote view only has a setImageView method........ Jan 29 23:56:24 so i cant use picasso.. Jan 29 23:56:30 because piccaso needs the target object Jan 29 23:56:34 mm Jan 29 23:56:50 what type of object is remoteView? Jan 29 23:57:08 I guess so, maybe try AndroidAsync Jan 29 23:57:12 DOSP: that your error occurs on line 60 of uploadService.java, and that you're referencing a null value Jan 29 23:57:25 dammit. JakeWharton'ed Jan 29 23:57:49 tksko: there's also a synchronous API Jan 29 23:58:08 which one? Jan 29 23:58:27 perhaps thats the problem.. the widget need synchronous image loading.. Jan 30 00:01:15 what can be wrong here ? for(;l < 4 ;l++){ Jan 30 00:01:24 where l is int l = 0; Jan 30 00:02:37 nothing Jan 30 00:02:45 tksko: get() Jan 30 00:03:03 tophyr: instead of .into() or .fetch() Jan 30 00:03:06 er, tksko Jan 30 00:03:40 humm Jan 30 00:06:56 remoteViews.setImageViewBitmap(R.id.estado, Picasso.with(me).load(json.getString("imagen")).get()); Jan 30 00:06:58 not working :( Jan 30 00:09:03 well did the image download? Jan 30 00:09:25 i am trying to log Jan 30 00:10:31 omg Jan 30 00:10:34 i am getting an exception Jan 30 00:10:47 java.lang.IllegalStateException: Method call should not happen from the main thread. Jan 30 00:13:48 its a Picasso exception Jan 30 00:13:54 and it tells you the problem Jan 30 00:14:54 is there any way to animate between gradient-drawables? Jan 30 00:15:30 use a TransitionDrawable: https://developer.android.com/reference/android/graphics/drawable/TransitionDrawable.html Jan 30 00:15:32 i have a view that is solid gray and i want to animate to some basic linear gradient, i figure the easiest way is to have the gray color be a gray-to-gray gradient Jan 30 00:15:37 thank you Jake! Jan 30 00:15:58 jake, how long have you been doing android? Jan 30 00:15:59 hey Jake, i have to go Jan 30 00:16:02 i will come back later Jan 30 00:16:04 thanks for your help Jan 30 00:16:11 good luck tksko Jan 30 00:16:20 thank you you too explodes Jan 30 00:16:25 i am new with android.. Jan 30 00:16:30 but i already have 3 apps in the market :P Jan 30 00:16:43 I am trying with widgets now.. Jan 30 00:16:47 explodes: since the M3 SDK Jan 30 00:16:54 grats tksko Jan 30 00:16:56 M3? Jan 30 00:17:09 is that API level 3, or even older? Jan 30 00:17:12 older Jan 30 00:17:14 pre-1.0 Jan 30 00:17:22 nice, are you on the core team? Jan 30 00:17:34 no, it was a public SDK Jan 30 00:18:07 released around the same time as the original Android Developer Challenge where they gave out $10m in prizes for developing apps Jan 30 00:19:04 i had my mind set on winning Jan 30 00:20:41 JakeWharton: did you win ? Jan 30 00:20:44 I have a fragment which programmatically displays "myTextview extends textview" I need to be able to restore the fragment when it gets destroyed and Im hitting a wall here, is it impossible to parcel a textview? Should I instead of extending the textview have it as a member Variable? Jan 30 00:20:55 shmooz: no. i didn't even submit anything. kroot won one of the categories though Jan 30 00:21:46 well don't feel bad, this is the first I'm hearing about it, just show me how to get in line ;) Jan 30 00:22:13 they only did two of them back in 2007 and 2008 Jan 30 00:22:24 it was to catalyze development on their new platform Jan 30 00:22:25 now they'll pay you not to Jan 30 00:22:42 shmooz: ? Jan 30 00:22:55 because of saturation Jan 30 00:24:38 I'd like to build my own android based off of OpenBSD instead of linux, and 100% open, if I had the time and the brains Jan 30 00:25:35 for what end result ? Jan 30 00:25:47 security and privacy for one Jan 30 00:25:57 stability and correctness for another Jan 30 00:26:38 good luck :D Jan 30 00:26:58 what parts of android aren't open? do you mean the proprietary binaries from the mfgrs? you can always contribute your own open-source drivers Jan 30 00:27:19 there are sort of two native video players, right? Jan 30 00:27:37 There is the video view and the media player? Jan 30 00:28:23 repositories { maven { url '/Applications/android-sdk-mac_x86/extras/android/m2repository' } } <-- is this the correct way to reference a local-filesystem maven repo? if i run this with --info, according to the output it doesn't appear to be looking here for the dep it needs Jan 30 00:29:01 videoview uses the same API's underneath, I believe Jan 30 00:29:11 it's just way easier to use a VideoView than a MediaPlayer and SurfaceView Jan 30 00:30:42 Right. That's what I've heard Jan 30 00:30:53 I think I also read that maybe it provides things like a play / pause button and all that Jan 30 00:31:01 that's what MediaController is for Jan 30 00:31:03 VideoView doesn't play .avi and other common formats on my Nexus tablet :(, but it does play .avi's on my htc phone Jan 30 00:31:04 if I plan to not have a play/pause button, or would like to skin my own Jan 30 00:31:19 shmooz: there is no such thing as a ".avi" video file Jan 30 00:31:23 beyond the container Jan 30 00:31:37 MediaController? So my current code is based on MediaPlayer and I think there is already some MediaController code Jan 30 00:31:41 if you really want to know more about why certain video files are compatible with certain hardware, learn about what's inside the container formats Jan 30 00:31:55 whatever, the user has a ton of files with the .avi container and he can't play them Jan 30 00:31:57 prgmmax: http://developer.android.com/reference/android/widget/MediaController.html Jan 30 00:32:01 so you gotta use something like ffmpeg Jan 30 00:32:21 yeah... I hate that stuff. Jan 30 00:32:28 I've wasted far too much time getting ffmpeg to work Jan 30 00:33:04 it is a PITA I agree Jan 30 00:33:26 regarding the .avi files, my point was more that you could probably hand .avi files to the user that work just fine if you targeted the device Jan 30 00:33:52 ie, encode it with h.264 baseline profile in a decently low bitrate with aac audio Jan 30 00:34:18 I just wish the extensions for video files had some sort of bearing on what you should expect from them Jan 30 00:34:33 or that the container formats weren't a thing Jan 30 00:59:07 tophyr: repos from the SDK are added automatically Jan 30 00:59:12 when you apply the android plugin Jan 30 01:09:05 hi Jan 30 01:09:15 hi Jan 30 01:10:57 does anyone use any specific programs for wireframing? Jan 30 01:11:05 that they can recommend? Jan 30 01:11:25 am working in illustrator and results are great but takes ages. Jan 30 01:20:00 i made it!!! Jan 30 01:20:15 what is the difference between view.getHeight() and view.getMeasuredHeight() Jan 30 01:20:29 i have to used asynctask to load the image and then manually put it in the imageview Jan 30 01:20:44 widgets are a pain in the ** Jan 30 01:21:01 tksko: correction: poorly engineered widgets are a pain in the ass Jan 30 01:23:38 tksko: the downside to you solution, unfortunately, is that the image has to download every time Jan 30 01:23:50 explodes: height is bottom-top from onLayout Jan 30 01:24:02 explodes: measured height is what the view requests in onMeasure Jan 30 01:24:03 yes Jan 30 01:24:08 but i am just testing Jan 30 01:24:14 i am doing a weather widget.. Jan 30 01:24:18 and i will provide the images locally Jan 30 01:24:19 JakeWharton: ok cool thanks Jan 30 01:24:25 tksko: right on Jan 30 01:24:37 but ai am just testing, and stealing the images from the web :P Jan 30 01:24:56 thievery! Jan 30 01:25:29 are you guys working on Android Development? Jan 30 01:25:35 or it just a hobbie? Jan 30 01:25:49 i just launched an app Dec. 24 that has 1.3M users Jan 30 01:25:57 making another one that hopefully has the same Jan 30 01:26:07 but its my job Jan 30 01:26:12 an i am not a pro Jan 30 01:27:44 er, i'm not a pro at android, at least Jan 30 01:29:25 does it normally take forever for the emulator to boot Jan 30 01:32:54 if you're using the arm one Jan 30 01:33:02 use x86+haxm or Genymotion Jan 30 01:33:06 both googleable terms Jan 30 01:40:17 hi, i am using the accelerometer and it is posting positive values when the device is flat. how can i fix this? Jan 30 01:44:42 arcode: "positive values"? why should it being flat change the magnitude? Jan 30 01:46:39 you sure it's not just extreemly small values that happen to be positive? maybe you should do some rounding arcode Jan 30 01:47:20 i mean non-zero values, for example SensorEvent.values[0] gives 2.8 and SensorEvent.values[1] gives 1.2. i would expect them both to give 0 Jan 30 01:47:47 device is absolutely flat on my desk Jan 30 01:49:05 rounding would still give non-zero values :( Jan 30 01:55:25 i donwloaded an accelerometer testing app and it seems the accelerometer is mis-calibrated. anyone know how to recalibrate? Jan 30 02:03:04 arcode: how do you know its Jan 30 02:03:10 miscalibrate ? Jan 30 02:03:41 because when it is flat it gives non-zero values Jan 30 02:03:50 how do you know its flat Jan 30 02:03:56 bubble level? Jan 30 02:04:11 coin? Jan 30 02:04:23 things on my desk don't roll around lol Jan 30 02:04:40 doesn't mean it's completely flat though. Jan 30 02:04:47 bubble level would be a better way. Jan 30 02:04:54 and not the bubble level app Jan 30 02:04:59 also. is that in all 3 dimensions ? Jan 30 02:05:00 mxms: lol. Jan 30 02:05:09 ;P Jan 30 02:05:14 i have to tilt the device by about 20 degrees to get zero values Jan 30 02:05:26 you can't really get all 3 dimensions in one float value Jan 30 02:05:32 SirLagz: i am using x and y Jan 30 02:05:35 arcode: kk Jan 30 02:05:49 arcode: which phone ? Jan 30 02:06:19 nexus 7 Jan 30 02:06:47 arcode: gen 1 or gen 2 ? Jan 30 02:06:59 1st gen Jan 30 02:07:33 seems like a nexus 7 issue after a quick google Jan 30 02:08:26 ok, i tried it on my phone and it gives my zero values when flat. seems like you're right thanks Jan 30 02:09:22 i think the best way to solve it would be to have a calibration mode to figure out what the flat values are Jan 30 02:09:24 arcode: aparently you can recalibrate it by spinning it around 3 times on 3 different axes. Jan 30 02:09:49 or shake it... Jan 30 02:09:51 i tried that, moving it in figure 8, shaking and tapping :D Jan 30 02:09:56 i don't know how valid these suggestions are though lol Jan 30 02:10:12 they didn't work lol Jan 30 02:10:18 lol Jan 30 02:10:50 erase and reset solved the issue for someone else... Jan 30 02:11:07 factory reset? Jan 30 02:11:16 i guess lol Jan 30 02:11:45 i'll keep that as a last resort Jan 30 02:12:03 someone ese installed the compass app from google play and then used the calibrate option to fix it temporarily Jan 30 02:12:13 or GPS status & toolbox Jan 30 02:12:55 i read that post, but i want to know how to do it in my app Jan 30 02:13:17 have a calibrate option in your app ? Jan 30 02:13:35 yes Jan 30 02:14:48 i'd say have a offset stored in the app. Jan 30 02:15:03 i guess i'll work get some sample values in the calibrate option and do as you suggest. thanks Jan 30 02:15:49 arcode: you'd have to calculate difference between what the device returns and 0, and store the offset Jan 30 02:15:58 arcode: then when you use any values, apply the offsets Jan 30 02:16:07 arcode: or is that not what you were asking...lol Jan 30 02:16:58 SirLagz: it is the best fix for my problem. i will use it thanks Jan 30 02:17:24 arcode: no problems Jan 30 02:50:16 Hi all, I'm trying to get the ip address of my device on the wifi network but I can't find any means of getting a string representation of it, only an int representation. Am I missing something or can you only get the int representation? Jan 30 02:50:33 I should add that this is from within an app and for display within that app Jan 30 02:56:31 http://stackoverflow.com/questions/16730711/get-my-wifi-ip-address-android Jan 30 02:57:19 the chosen answer is deprecated so you might want to use the one underneath it **** ENDING LOGGING AT Thu Jan 30 02:59:58 2014