**** BEGIN LOGGING AT Sun Aug 11 02:59:58 2013 Aug 11 02:59:59 using raw units would be hard to communicate with users. but as a way of faking tag removal it potentially could work. probably not in the car though and that might be a more common use case than usb debugging Aug 11 03:00:15 yeah Aug 11 03:00:25 also there's no way to scan for tags anyways Aug 11 03:00:36 and I'd like to have it at least check to make sure it's not still there Aug 11 03:00:48 yeah Aug 11 03:01:04 otherwise I could just poll Aug 11 03:07:18 Hello all. Aug 11 03:07:27 hello Aug 11 03:07:43 I am going through the Android dev tutorial and am getting the following error when trying to add an actionbar. This is from my Manufiest file. The code is " android:minSdkVersion="11" Aug 11 03:07:43 android:targetSdkVersion="17" /> Aug 11 03:07:43 ' Aug 11 03:08:00 It says not-well formed Aug 11 03:08:24 Eype Aug 11 03:08:25 error: Error parsing XML: not well-formed (invalid token) AndroidManifest.xml /MyFirstApp/bin line 7 Android AAPT Problem Aug 11 03:09:05 Could you use pastebin please? I can't read that in an IRC window and you're spamming up the chat. Aug 11 03:09:14 Yes, sorry Aug 11 03:09:53 j0b0x: please paste the whole xml file Aug 11 03:10:17 yes, that too Aug 11 03:10:54 Yes - here it is http://pastebin.com/Frs0FrVx Aug 11 03:11:01 Line #8 Aug 11 03:11:30 I am going through the following tutorial - https://developer.android.com/training/basics/actionbar/setting-up.html Aug 11 03:11:38 huh Aug 11 03:11:42 try retyping it Aug 11 03:11:56 like not copying and pasting, but typing it out again Aug 11 03:12:04 perhaps you somehow accidentally put in a control character and it doesn't like that Aug 11 03:12:10 I see. Will do Aug 11 03:12:23 that's the only thing i can think of Aug 11 03:12:36 Also, how can I check what version of Android I am supporting? Aug 11 03:12:54 that i have no clue Aug 11 03:12:59 i'm sure there's a chart somewhere Aug 11 03:13:02 Ok Aug 11 03:13:05 Thanks tpw_rules Aug 11 03:13:32 11 is honeycomb 3.0. if you don't need to support gingerbread, then i'd recommend just going all the way to 15 (4.0.3) Aug 11 03:13:50 there are very few honeycomb devices still out there, and honeycomb was kind of a mess and not really worth testing against Aug 11 03:14:04 i have a pre-honeycomb device :D Aug 11 03:14:05 j0b0x: http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels Aug 11 03:14:33 also, for seeing what versions are in use: http://developer.android.com/about/dashboards/index.html Aug 11 03:16:24 I've also heard that supporting anything more than 4.0+ is mainly interesting if you're making a free app. Aug 11 03:16:42 that's scary that 1/3 of all devices are running an os two and a half years old Aug 11 03:17:28 only 40% are running an up-to-date version Aug 11 03:17:48 those would be devices that doesn't support the newest versions. Not everyone buy new phones every year ;) Aug 11 03:18:13 Hello everyone. Does anyone have experience working with the networking code? Specifically, if you are up to it, there is an issue with ARP reply packets being sent with 14 bytes, instead of the full 28 bytes. It is causing malformed packets to show up on the network. Aug 11 03:18:48 "Sender IP address", "Target MAC address", and "Target IP address" are missing. Aug 11 03:18:53 Thorbear: my five year old iphone can support the latest version Aug 11 03:19:01 same with my ipad Aug 11 03:19:26 but an android carrier can just be like "lol you suck" and you can't upgrade your device Aug 11 03:19:34 I can't be sure, but it appears as if it is related to code between lines 10-7 and 127, here: https://github.com/swatspyder/android_frameworks_base/blob/cm-10.1/core/java/android/net/arp/ArpPeer.java Aug 11 03:20:19 107* Aug 11 03:24:21 Hmm not sure what I did but I fixed it with the same paste bin code. I think there might have been a hidden character from copying pasting Aug 11 03:24:22 Thanks again all Aug 11 03:27:47 j0b0x: yeah, i think that's what happened Aug 11 03:45:52 _wli, for the love of scrollback, stahp Aug 11 06:46:12 5 year old iPhone can't run current ios... Aug 11 06:46:55 my I pad isn't even 4 years old and it can't run ios6 Aug 11 06:47:07 pfn: :( Aug 11 06:47:17 pfn: you need to pay if you want the latest ios! Aug 11 06:47:38 just responding to tpw_rules Aug 11 06:47:57 I really dislike the ios ecosystem Aug 11 06:48:05 pfn: why so? Aug 11 06:48:21 I early adopted and got out as soon as android 2.0 hit Aug 11 06:48:45 everything about it doesn't appeal to me Aug 11 06:48:54 ammm Aug 11 06:49:33 Theoretically speaking, I like Android better too... Sadly, for whatever reasons, my iOS thing tends to work better/faster/smoother than my Android thing.... Aug 11 06:51:17 BTW: I download data from my server, and I have a cache with that data in memory... Is there any method that gets called before my app is terminated? so I can write and flush all my "cache" to disk? before my app closes? Aug 11 06:59:30 onStop or onDestroy http://developer.android.com/training/basics/activity-lifecycle/stopping.html Aug 11 07:04:34 I'm talking about the Process not a specific Activity Aug 11 08:08:22 How can I display a live wallpaper from my app? Aug 11 08:08:33 I'm stuck with IWallpaperServiceWrapper not being public Aug 11 10:12:44 pfn: I worked out what happens, if you have a piece of code with a missing resource AS automatically imports android.R which messes up the rest of it when you remove the code Aug 11 10:50:26 can someone guide me on how can i reduce the resolution of a photo returned by camera api (ediaStore.ACTION_IMAGE_CAPTURE) to a certain width (kinda by giving the width, the height would adjuct as well)? Aug 11 11:03:48 omid8bimo: once you have the byte stream you could load it using say Bitmap and resize with the functions available there Aug 11 11:04:05 Does renderscript work with powervr GPUs? Aug 11 11:04:06 iirc the camera settings may also allow taking pictures at reduced resolution Aug 11 11:04:23 alankila: do you have any sample code for that? Aug 11 11:04:25 though I suggest always using size larger than the one you want and then slightly downscaling and never downscaling by factor larger than 2 Aug 11 11:04:32 omid8bimo: no Aug 11 11:05:07 if downscale factor exceeds 2, bitmap filtering must be enabled Aug 11 11:05:07 alankila: downscale by factory you mean isSampleSize? Aug 11 11:05:50 inSampleSize? that is a possibility. Aug 11 11:06:27 but it can only perform integer factor downscalings, so at some point you're forced to interpolate unless you can tolerate that sort of thing Aug 11 11:08:04 no, what I had in mind was more like BitmapFactory.decodeByteArray(bytes, 0, bytes.length).createScaledBitmap(...) Aug 11 11:08:36 * alankila doesn't understand why android API doesn't use overloading. BitmapFactory.decode() could exist and always just do the right thing Aug 11 11:08:53 alankila: can this BitmapFactory... happen on the fly and not resulting in ourofmemeory? Aug 11 11:09:14 omid8bimo: that is a function of how much memory you have available and how large images you get Aug 11 11:10:03 if we assume you can spend 20 MB to load an image, and decode it to 4 bytes per pixel, then you afford 5M pixels, so work with this sort of constraint, e.g. no more than 2000x2000 image in memory at once Aug 11 11:10:18 alankila: well how much memory android core assigns to any application? (can we tweak that, and more importantly, is it ok?) Aug 11 11:10:27 and use inSampleSize to downscale it early if you know the additional precision in the image doesn't avail you anything Aug 11 11:11:13 there is a largeheap option to enable in manifest that works on androids since 3.0. In general terms android assigns a constraint based on screen resolution assuming that the graphics assets are larger because screen has more pixels Aug 11 11:11:48 the heap size is device specific property and used to be 16, 24 or 32 MB not long ago. Not all memory counts against this though. Aug 11 11:12:26 iirc you can just malloc memory natively and it doesn't get counted, or you can upload graphics to GPU where it consumes GPU RAM and not yours Aug 11 11:13:12 liquidmetal: afaik powervr is the only kind of gpu right now that can deal with renderscript Aug 11 11:13:56 you need a very recent device to enjoy acceleration with renderscript, and supposedly less so with filterscript Aug 11 11:13:56 alankila, I thought tegra3 was the only one that could use it Aug 11 11:14:06 liquidmetal: hmm, maybe some powervr press release confused me Aug 11 11:15:50 in any case right now if you want to be sure to get hardware acceleration, then writing the code as GLSL shader and requiring opengl es 2.0 is more likely to work Aug 11 11:16:19 the downside is, I tried some of this and discovered the mobile graphics processors are not necessarily accurate Aug 11 11:16:52 a properly specified computing api that promises that e.g. floating point values have 32 bit precision & operations like sqrt and pow aren't approximated in some crude way may be required Aug 11 11:18:01 so render/filterscript looks like it might be better specified though there are some downsides like lack of denormal numbers -- bummer if you need them -- and likely some shortcuts will be taken with IEEE special values Aug 11 11:19:34 alankila, my goal is to do some calculations on the gpu Aug 11 11:19:40 in any case I do like renderscript/filterscript as a concept and suggest using it rather than NDK if you can for instance. Aug 11 11:20:08 I'm watching this video (http://www.youtube.com/watch?v=5jz0kSuR2j4#at=99) and it says all the computations happen on the CPU and rendering on the GPU Aug 11 11:22:13 yes, because GPU support is only planned and in any case they screwed up renderscript enough that they aren't sure it can be really accelerated, they have this thing called filterscript that is more likely to get accelerated Aug 11 11:23:14 the key differences are that filterscript operates on 32 bit types only, has no pointers, and forces a relaxed floating point precision mode, generally no denormal support. Aug 11 11:23:24 Hello Aug 11 11:23:32 I'm having a little problem with threads Aug 11 11:23:51 "Only the original thread that created a view hierarchy can touch its views." what exactly does this mean Aug 11 11:24:21 Phineas5: exactly what it says. In general treat it to mean you can't use threads other than the designated UI thread to manipulate any views. Aug 11 11:24:52 is there any way to get a website's content without using a thread? Aug 11 11:24:56 android has UI thread which is the application's default thread which calls things like onCreate and so on. It builds the views as well, therefore it is the only one that is allowed to update the views. Aug 11 11:25:30 Phineas5: threads aren't the problem. See AsyncTask, it's great for detached processing. Aug 11 11:25:30 I'm not updating any views in my thread, I'm calling a function in the main thread which updates the view Aug 11 11:26:43 okay I'm gonna try AsyncTask Aug 11 11:26:46 Phineas5: so what's the problem anyway Aug 11 11:28:13 basicly Aug 11 11:28:32 I'm trying to make a app where it sets a textView's text to a website's content Aug 11 11:28:37 and I want to have a refresh button Aug 11 11:28:52 which gets the website's content again and sets the text of the textView Aug 11 11:29:13 okay. the refresh button creates and fires asynctask, the asynctask's doInBackground gets the data from the website, onPostExecute updates the textview. Done. Aug 11 11:29:46 yep Aug 11 11:29:48 doing that Aug 11 11:36:09 other useful things to note: disable the button right after firing the task, enable it when the asynctask terminates, either in exception or whatever Aug 11 11:36:36 good idea Aug 11 11:36:39 it's working now Aug 11 11:36:41 thanks man :D Aug 11 12:00:36 I am working on an App where i want to open a mail client and allow user to enter mail ids to send mail.Once User clicks on send button mail should be sent and return back to the my app with all the mail ids i have sent mail to. I have done everything but i don't know how i can get the callback with all the mail ids user has sent mail to.Please if anyone knows anything i can do to get the mail ids would be a great help. Aug 11 12:31:17 hi hello Aug 11 12:31:44 how do i define styles for ui stuff, like buttons etc? (without having to apply a style on each element) ?? Aug 11 12:32:13 Has anybody worked with the Facebook sdk? I am trying to make an apklib out of it but I am obviously failing. Aug 11 12:37:48 I have a .apk on my phone, from which i would like to see the output (debug) text from when i run it. I have downloaded ADK and put my phone in developer mode, but i dont know where to go from here. Aug 11 12:39:52 nds_, read online tutorials for getting an adb setup, from there you can type 'adb lolcat' Aug 11 12:39:57 and it will show you debug output Aug 11 12:40:15 well Log.i/d/wtf/etcc() calls Aug 11 12:52:03 adb lolcat lol Aug 11 12:52:31 always makes me happy Aug 11 13:15:43 pfn: ping! Aug 11 13:17:55 pfn: i have some scala-related questions to ask you about, not anything about the merits of iOS vs Anroid Aug 11 13:17:57 android* Aug 11 13:18:36 i can talk about that too if you wish though Aug 11 13:19:00 if only there was some IRC mechanism to facilitate communications meant only for one person tpw_rules... Aug 11 13:19:19 poutine: where i'm from it's impolite to PM without asking... Aug 11 13:19:36 should a capital offence Aug 11 13:21:08 sorry if i'm bothering people, but he hasn't told me I can pm him Aug 11 13:21:30 tpw_rules: are you planning on scala? Aug 11 13:21:33 yup Aug 11 13:21:48 never done anything with android though, so i need help getting a dev environment and such set up Aug 11 13:22:47 java is not my thing Aug 11 13:23:04 tpw_rules: oh that's simple. just get android studio and create a new project Aug 11 13:23:15 you can link existing libs pretty easily Aug 11 13:23:53 i've also heard of things like scaloid and want somebody's opinion on them Aug 11 13:24:19 also i was reading docs yesterday, is it true that android destroys and recreates the activity when you rotate the screen? Aug 11 13:24:27 yes Aug 11 13:24:42 there are ways to manage it so that it's not really that big of a deal Aug 11 13:24:56 okay Aug 11 13:24:57 IIRC scala has a non-trivial startup cost Aug 11 13:25:24 i've heard proguard can solve a lot of that Aug 11 13:26:40 but java is really ugly to me so i don't plan on using it Aug 11 13:27:01 it's not bad once you get used to it Aug 11 13:27:11 http://clintshank.blogspot.com/2010/11/java-vs-scala-ceremony.html Aug 11 13:27:11 which is kind of like saying getting punched in the face is not so bad once you get used to it Aug 11 13:27:17 scala is overly complex Aug 11 13:27:28 how do you think so? Aug 11 13:28:02 it does too much and it's very hard to know exactly what's going on without being a scala demigod Aug 11 13:28:07 at least in my expiernce Aug 11 13:28:18 what sort of stuff were you trying to do? Aug 11 13:29:00 financial math calculation stuff. did it in F# instead. much better Aug 11 13:29:38 ahh Aug 11 13:30:00 problem with that is it isn't a JVM language Aug 11 13:30:06 python is still my go-to language Aug 11 13:33:08 i like c# the best Aug 11 13:33:20 good tooling, async/await, and can make me a sandwich Aug 11 13:33:42 I think scala to java is a bit like c++ to c Aug 11 13:33:54 there's obvious stuff that's clear improvement over java, but go too far and you end up in living hell Aug 11 13:34:23 only thing i can say is that IMO scala > java Aug 11 13:34:47 alankila: yep. Aug 11 13:34:59 i once fixed a bug in boost. :( Aug 11 13:37:08 tpw_rules: if you do end up using scala and it works out i would love to hear about your experiences Aug 11 13:37:29 right now i have most of the actual app in a java library Aug 11 13:37:31 i've used scala well with regards to other java-requiring ecosystems, specficially minecraft Aug 11 14:22:59 Sorry, my PC crashed so i didnt see if anyone answered my question about seeing an applications output in a console on my PC with ADK. Aug 11 14:24:59 nds_: adb logcat? Aug 11 14:41:14 hello guys. does the user agent switch feature works on chrome for android? Aug 11 14:43:18 Question: I followed google GCM introduction I wanted to implement the example that they provide… they declare a service that they don't explain further … any explanations? Aug 11 14:44:55 The Intro can be found here: http://developer.android.com/google/gcm/gs.html Aug 11 14:45:41 EditTexts in ListViews. Aug 11 14:45:54 anyone done battle with the focus finding after the ListView changes size? Aug 11 14:54:25 any idea why my beta test link downloads th elive old version Aug 11 14:58:10 jan1337z: intentservice is just a service that is fired up when an intent occurs and hangs around to process further intents that it has a filter for Aug 11 14:59:15 alankila, sorry still don't get it... Aug 11 15:00:06 Ash__: has to be the same google account, need to wait for propagation Aug 11 15:00:33 uploaded beta version yesterday and linked it to my community Aug 11 15:01:07 when i click link and accept beta testing then click the link at the bottom of the page which says download app its the live app and not the beta version Aug 11 15:01:20 Ash__: same exact google acocunt ? Aug 11 15:01:30 as in poublisher account? yeah Aug 11 15:04:04 alankila, can you give me a scenario? I don't understand why there is a BroadcastReceiver and an IntentService? Aug 11 15:13:51 jan1337z: broadcastreceiver is a general thing that listens for intents being broadcasted and gets called when the intent is fired, or if there is a sticky intent that the filter receiver. Aug 11 15:14:02 filter receives that is Aug 11 15:14:32 intentservice is a separate thread which is invoked to process an intent. It's typically fired with startService with intent argument that names the intentservice to be run, and any parameters that it needs are added to the intent. Aug 11 15:14:56 Yeah ok I got that Aug 11 15:15:28 thanks so far Aug 11 15:15:29 so anyway typically 2-way communication requires 2 broadcast receivers, or one broadcast receiver and something that fundamentally already receives intents such as intentservice Aug 11 15:15:40 so typically you'd use the broadcastservice to hear the response from the intentservice Aug 11 15:16:23 all this is pretty optional by the way. Nothing prevents you from running normal Threads or using other mechanisms if you are more familiar with them Aug 11 15:16:48 though android is its own beast and there are reasons why these verbose and clumy intents and broadcastreceivers are used, and it's about decoupling Aug 11 15:19:00 alankila, okay thnaks Aug 11 15:33:36 alankila, could you see any reason why a GCMBaseIntentService could not be started by the manifest declaration? Aug 11 15:33:44 or anybody else? Aug 11 15:34:16 I get the GCM Message but only by the BroadcastReceiver Aug 11 15:34:50 does the google play edition firmware check whatever it is checking for for wireless hotspot? Aug 11 15:35:21 any Otto wizards present? Aug 11 15:44:37 alankila: When renderscript first got HW acceleration, it was only on Tegra, Exynos, and Snapdragon, wasn't it? Aug 11 15:45:19 * alankila doesn't know Aug 11 16:20:00 funkbox, use my sbt plugin and scala on Android is easy Aug 11 16:20:52 pfn: hi Aug 11 16:21:11 have you run away yet? Aug 11 16:21:27 from? Aug 11 16:21:53 irc. nvm. anyway, i have no android background whatsoever and want to get started with scala on android and i've heard you know what you're talking aboiut Aug 11 16:21:55 about* Aug 11 16:22:25 no scala, either, I presume Aug 11 16:22:35 no, i'm okay with scala Aug 11 16:22:40 it'll be a learning curve Aug 11 16:22:43 not a wizard, but i've used it before Aug 11 16:22:56 get sbt, get the plugin and get started Aug 11 16:23:14 ever set it up with intellij? Aug 11 16:23:19 use intellij if you like Aug 11 16:23:27 sbt-idea Aug 11 16:23:28 are you jberkel? Aug 11 16:23:35 no Aug 11 16:23:48 what sbt plugin is yours then? Aug 11 16:23:54 I have my own, better plugin Aug 11 16:23:58 android-sdk-plugin Aug 11 16:24:25 ahh Aug 11 16:24:51 what about the acutal programming of an application with the android API? Aug 11 16:25:01 need to do a little more testing and I'll release 0.9.0 Aug 11 16:25:05 i've seen scaloid, have you heard of that before? Aug 11 16:25:31 yes,and I haven't used it, I have my own collection of implicits and helpers Aug 11 16:25:40 Hi guys, I'ld like to ask a small question. In my app, I'm storing data in the cache in the directory this.getCacheDir(), where 'this' is an Activity. When I want to get data from the cache in a widget, how can I get that data, without starting an Activity? Aug 11 16:26:10 anyway, I'm off and on here til Tuesday Aug 11 16:26:11 pfn: ahh. do you still use xml for GUI building? Aug 11 16:26:16 yes Aug 11 16:26:22 it's the best way Aug 11 16:26:28 any recommendations for actually making code? Aug 11 16:26:42 is there PreferenceDialog analagous in operation to PreferenceActivity ? Aug 11 16:27:11 but if you're not really available til tuesday, i can hang around til then Aug 11 16:27:23 by writing g it :p Aug 11 16:27:36 pfn: is there a perf penalty associated w/scala ? Aug 11 16:27:58 i've never written anything android before, are there specific scala tutorials or am i going to have to translate java? (which i can do) Aug 11 16:28:01 funkbox, depends on how side-effectless you go Aug 11 16:28:14 tpw_rules, translate Aug 11 16:28:20 fair enough Aug 11 16:28:29 i'll see what i can do to get this set up and playing with it Aug 11 16:28:37 funkbox, marginal overhead to massive if you destroy the heap Aug 11 16:29:07 if you're using a lot of anonymous objects as anonymous functions Aug 11 16:29:09 right? Aug 11 16:30:41 no Aug 11 16:31:26 lots of immutable stuff that gets recreated Aug 11 16:31:37 pfn: so if i write scala as i would C# minimal ? Aug 11 16:31:43 what about the initial load/startup cost ? Aug 11 16:31:48 funkbox, right Aug 11 16:31:54 none Aug 11 16:32:18 pfn: what about linking scala libraries into android Aug 11 16:33:26 depends on library, I probably wouldn't use scalaz Aug 11 16:33:37 anyway, g2g,later Aug 11 17:54:52 hey can anyone read this , or is my mirc defect? Aug 11 17:55:34 why are my menu items not showing on the actionbar when i use isRoom Aug 11 17:55:47 BulleTTime: yes we can, but using mirc is still a defect ;) Aug 11 17:55:54 haha :D Aug 11 17:55:58 ok thanks :) Aug 11 17:58:54 p_l: Agreed. XD Aug 11 18:01:21 hmm Aug 11 18:01:34 anyone know why a bitmap would be showing transparent for white? Aug 11 18:01:39 is it perhaps the way I created the bitmap? Aug 11 18:06:21 ahh I see..I was creating it from a layout that didn't have a bg color defined Aug 11 18:08:15 anyone familar with the android calendar app? Aug 11 18:08:47 i would like to change some settings within that app, from my app (maybe using intent? ) Aug 11 18:09:10 can i openup the settings from the calendar app and set some things? Aug 11 18:09:16 BulleTTime dunno, i would think you would use CalendarProvider though Aug 11 18:10:00 g00s, i would like to set the default reminder/alarm to off. is that possible with CalendarProvider? Aug 11 18:10:08 not sure Aug 11 18:10:14 me to :) Aug 11 18:11:04 i tried to set SharedPreferences , but that aint work. (well setting do work but it creates a new pref file) Aug 11 18:17:21 does loading a file from the cache dir automatically remove it form the cache dir? Aug 11 18:35:18 sounds like its best not to use a bitcoin wallet on android Aug 11 18:36:04 seems like you have too many words there Aug 11 18:36:14 best not use bitcoin Aug 11 18:36:46 i'm interested in this part "We recently learned that a component of Android responsible for generating secure random numbers contains critical weaknesses" Aug 11 18:37:27 yeah, broken SecureRandom is rather important Aug 11 18:37:48 http://d24w6bsrhbeh9d.cloudfront.net/photo/ajrAv6w_460s_v1.jpg Aug 11 18:37:51 er. Aug 11 18:37:57 sorry, wrong channel, ignore this please Aug 11 18:38:13 haha Aug 11 18:38:26 ;) Aug 11 18:39:15 what is the weakness? I hear a lot of paranoia about secure random numbers but if they simply read some crap from /dev/urandom or /dev/random they should be good to go Aug 11 18:41:54 I think people are always shooting themselves at the foot with the crazy paranoia they have about randomness, unwilling to use readily available almost random sources because they aren't quite random enough, when all you have to do is collect randomness by source into different pools and then blend that crap into prng periodically Aug 11 18:41:59 g00s, it seems people don't know the limitations of Java SecureRandom Aug 11 18:42:04 and they shot themselves in the foot Aug 11 18:42:14 Mavrik i'm just reading about it here http://armoredbarista.blogspot.com.au/2013/03/randomly-failed-weaknesses-in-java.html Aug 11 18:42:25 and then you get situations where random output is entirely predictable, or random numbers aren't available at sufficiently high rate, because they want the random shit to be so good :-/ Aug 11 18:42:58 g00s, yeah I've seen that one but afaik Android 4.x is using a BouncyCastle implementation anyway Aug 11 18:43:11 alankila, yeah, the catch is Aug 11 18:43:26 it seems people seed SecureRandom from source that doesn't have enough entropy Aug 11 18:43:31 thus f-ing everyhing up Aug 11 18:44:08 Hmm pathetic showing. I'm pretty sure all android devices have either random or urandom, why not, it's a fundamental linux service Aug 11 18:44:12 turning that stuff off would be stupid Aug 11 18:44:56 and if it does read 20 bytes and discards the top bit, that's *still* 20 * 7/8 bits, not quite 160 bits but 140 bits. Seems good enough to me ... unless this gets worse Aug 11 18:46:15 alankila, you're thinking way too low level Aug 11 18:46:17 https://www.cigital.com/justice-league-blog/2009/08/14/proper-use-of-javas-securerandom/ Aug 11 18:46:19 this is the catch Aug 11 18:46:33 alankila, you don't use /dev/urandom directly on android Aug 11 18:47:25 and you can mess up initialization of a Java class in such a way it won't be using /dev/urandom either >P Aug 11 18:47:29 tl;dr Aug 11 18:47:48 I find it astounding that 'new SecureRandom()' wouldn't be enough. And if it isn't, it's just a bug and will be fixed Aug 11 18:48:16 it sounds like the 140 bit issue is not all there is to it because they have apparently lost some part of the seed value due to incompetence Aug 11 18:48:25 that ;) Aug 11 18:48:26 so ... pathetic Aug 11 18:50:52 both /dev/random and /dev/urandom exist on my android device as expected. Had to check... :-p Aug 11 18:51:15 Hi guys Aug 11 18:51:27 I guess this proves that the sort of code that has no obvious way to test it is generally difficult to get right Aug 11 18:51:59 after all, debian ran for years with random seeds from one of 32768 values iirc Aug 11 18:52:05 in their ssh implementation Aug 11 18:52:07 :)) Aug 11 18:52:14 that was a very fun bug Aug 11 18:53:40 and these days if you get a virtual machine from a provider it might come with the preloaded fixed ssh host key Aug 11 18:53:50 because the system image already has ssh host key generated Aug 11 18:54:41 security is hard, and will always be hard, and mistakes will always happen. Which suggests we are insane to use C because of those reasons, or ever attempt anything more complicated than what approximately single human mind can easily comprehend. Aug 11 18:54:59 so... I'm going to sit in the corner and try to see which kind of peg goes into what kind of hole now Aug 11 18:55:24 might be best go into the basics Aug 11 19:05:01 can I force portrait mode for whole application in some way? Instead of setting this property for each activity on manifest file.. Aug 11 19:17:42 hey gusy ....i have to open a mail client from my app and want to know the email ids which user has entered and sent the mails to.Is there any trick i can do to get the mail ids ? Aug 11 19:25:46 Manny questions no answer Aug 11 19:26:08 lets make a android-dev app ! Aug 11 19:26:11 :P Aug 11 19:26:20 i also have a question Aug 11 19:29:21 Hey all! Any wisdom and best practices for bundling raw files? I'm working on a FOSS app for Burning Man, and I want to bundle some MapBoxTiles and a pre-populated database in res/raw Aug 11 19:29:57 but all the literature seems to suggest copying these files to external storage before use, and that just seems waseful. Is there no way to grab a File reference for a file in res/raw? Aug 11 19:31:23 dbro, I think you can only get an InputStream Aug 11 19:31:31 dbro, large resources are usually packed into expansion files though Aug 11 19:33:55 okay so with some research i came op with the idea of disable / cancel the alarms that the standard clock and agenda/calendar apps create. Can i cancel the Alarms these apps create by code? Aug 11 19:34:08 or Aug 11 19:34:24 can i call the settings and disable them? Aug 11 19:34:26 Mavrik: Thanks man. That's what I've found so far too. It's a bummer Aug 11 19:34:41 can i disable stuff from the android apps?\ Aug 11 19:36:04 BulleTTime, that depends on what exactly you can achieve Aug 11 19:36:11 calendar alarms are not the same as clock alarms Aug 11 19:36:28 and the way to "disable" them is dependant on what do you mean by "disabling" Aug 11 19:39:48 hi Mavrik, well let me explain. I am trying to sync a calendar app that syncs with the google calendar app. The only thing i would need is disable the calendar app alerts Aug 11 19:40:39 in the calendar app there's a setting that would do that, but i cant do that within java that aint work Aug 11 19:40:52 i tried prefs also Aug 11 19:41:12 hey guys ....i have to open a mail client from my app and want to know the email ids which user has entered and sent the mails to.Is there any trick i can do to get the mail ids ? Aug 11 19:41:55 BulleTTime, hmm, that's a good question actually Aug 11 19:42:03 Is there a way to destroy/disable calendar alarms? Aug 11 19:42:21 the problem is that the alarms are probably triggered by the app Aug 11 19:42:26 so you need to tell the APP to be silent Aug 11 19:42:33 i thought it was possible actualy Aug 11 19:42:35 and the app might not have an API for that Aug 11 19:42:42 yeah with a intent? Aug 11 19:43:29 can i perhaps open the calendar settings activity and set the alarmtype to 2 (off) Aug 11 19:43:53 or open app first and then tell that to do? Aug 11 19:45:01 i havent found any working thing, i tought that SharedPreferences might do it but that aint work Aug 11 19:51:28 its like, tell me why would there be a CalendarContract/Provider and many things to use without disabkle the agenda app within the code Aug 11 19:54:44 Would you like other apps to disable yours? Aug 11 20:04:53 ok, this is rather odd Aug 11 20:05:39 why can I add a String as a resource, but not a single integer, only an integer array? (according to eclipse) Aug 11 20:06:07 nvm, "Item" seems to be the answer Aug 11 20:06:07 Because eclipse Aug 11 20:06:23 because ADT Aug 11 20:06:36 is the answer Aug 11 20:07:00 really Aug 11 20:15:42 The documentation on repo is horrible. How can I update my current branch using repo? repo update isn't a thing? Aug 11 20:17:27 'repo sync' maybe Aug 11 20:18:06 alankila: I tried that it just syncs the "master" branch but not my fork Aug 11 20:18:17 oh. Aug 11 20:18:23 err... I don't know the answer in that case Aug 11 20:21:07 alankila: Turns out I overthought the problem. git pull from the root directory seems to have done it. -.- Aug 11 20:22:29 did JBQ work on repo ? Aug 11 20:23:07 is it possible to isolate a triangular area of a bitmap using 3 points? Aug 11 20:23:22 tnzr: you can make a clipping path from it I guess Aug 11 20:23:25 like if I know 3 points on the bitmap, is there a straightforward way to say, fill it, or mask it to be transparent, etc? Aug 11 20:23:33 alankila: hmm, ok I will google that Aug 11 20:25:13 thanks Aug 11 20:46:50 hm, do you guys think its a bad idea to check in a build.gradle with a nonspecific version dependency like 0.5.+ Aug 11 20:47:04 may not be able to reproduce the build Aug 11 20:51:04 is there any alternative to using addPreferencesFromResource for low API levels? Aug 11 20:51:18 no Aug 11 20:55:12 damn Aug 11 20:55:49 just suppress the deprecation warning Aug 11 20:56:01 or don't support low api Aug 11 20:56:06 i guess so Aug 11 20:56:22 havent really decided if I should support it or not Aug 11 21:26:22 omg, I only just discovered the API Demos sample app... life will be so much easier Aug 11 22:24:20 apple is getting lots of crash reports from my intellij install :) Aug 11 22:25:57 i'm sure they file them appropriately in /dev/null Aug 11 22:26:17 yeah, i wonder what they use them for Aug 11 22:30:00 prism Aug 11 22:32:28 bankai_ are you using intellij or AS ? Aug 11 22:32:47 IJ, i had bad experiences with AS and couldn't be arsed trying it again Aug 11 22:33:24 ok, would you have any recommendation for module / project structure using plain intellij but with the new gradle dir layouts ? Aug 11 22:33:52 basically, i'm using gradle to build Aug 11 22:33:54 never used gradle, sorry Aug 11 22:33:59 or, thx Aug 11 22:34:01 *ok Aug 11 22:34:41 using gradle to build / deploy; intellij to edit; trying to figure out how to set up debugging in intellij Aug 11 22:38:01 why are you using gradle? just for fun or is it providing you with some benefit ? Aug 11 22:39:46 bankai_ for fun & benefit; plus i'm writing a gradle plugin Aug 11 22:39:58 ahh nice Aug 11 22:40:25 I've had a few issues with AS but still find it plenty stable to use daily... Aug 11 22:40:58 my mindset on this has been - regardless if its a little iffy - since its the 'one truth' the official android plugins for intellij/ecipse will be referencing, i may as well learn it well. Aug 11 22:41:40 (gradle, that is) Aug 11 22:42:04 i've been reading up on groovy; its a pretty simple language. Aug 11 22:42:54 codebutler so you use AS on a daily basis ? Aug 11 22:42:59 yes Aug 11 22:43:24 hm, maybe now i should just switch to AS instead of trying to get vanilla to work with gradle Aug 11 22:43:34 that's prboably a better use of time Aug 11 22:44:04 codebutler can you tell me if you AS install allows the following plugins: clojure / lua / gravy ? Aug 11 22:44:05 AS sucks if you don't only do android Aug 11 22:44:16 you cannot Aug 11 22:44:20 oops, clojure / lua / groovy Aug 11 22:44:30 ok, well, yeah, that sucks then Aug 11 22:44:31 AS is android only Aug 11 22:44:43 groovy to support gradle, but that's it Aug 11 22:44:56 wow that's surprising, i thought AS was an extension of IJ and everything that worked with IJ would work... suckage Aug 11 22:45:20 forked and cut down i assume, sound about right ? Aug 11 22:45:29 no, it's intellij, but android only Aug 11 22:45:33 not a fork Aug 11 22:45:52 I only use Java for Android development, so this has not been an issue. Aug 11 22:46:02 it's a limited edition Aug 11 22:46:17 * pfn & Aug 11 22:46:23 wonder if it comes with free steak knives Aug 11 22:46:59 i think i may use eclipse for clohure/groovy; those plugins seem more mature anyhow Aug 11 22:47:12 I like steak Aug 11 22:47:35 Maestro you can get free 72 oz steak all over Texas if you can eat it in one hour ! Aug 11 22:48:29 I don't like that much steak, lol Aug 11 22:48:47 while you guys have been fighting with IDEs to use unsupported languages instead of just using Java, I've been sucking it up and actually shipping apps. Aug 11 22:49:16 can you ship some for me? Aug 11 22:50:39 I wonder if I'll ever ship mine Aug 11 22:58:43 bankai_: i likely don't have any freelancing capacity any time soon, if that was a serious question. Aug 11 22:59:06 it wasn't :P Aug 11 23:00:13 codebutler i wasn't using clojure / groovy on android :P just groovy for my gradle plugin Aug 11 23:01:08 anyone know of any custom transition animation examples done programmatically? Aug 11 23:01:38 tnzr: transitions between activities? there was a good video from someone at google about that. Aug 11 23:02:05 codebutler: oh cool Aug 11 23:02:22 http://www.youtube.com/watch?v=CPxkoe2MraA this one? Aug 11 23:02:46 ooh Aug 11 23:02:50 I think this is just what I need Aug 11 23:03:02 yep Aug 11 23:03:14 this dex limitation to 65K methods really sucks : Conversion to Dalvik format failed: Unable to execute dex: method ID not in [0, 0xffff]: 65536 Aug 11 23:04:00 bubbleguuum yeah, i could see this in 2009 Aug 11 23:04:06 but 2013 , wtf Aug 11 23:04:22 this is known dex limitation and for large project this is really a problem Aug 11 23:04:38 i've written some fairly elaborate apps and never hit that limit. are you pulling in every library on maven central? Aug 11 23:04:57 bubbleguuum can i ask, what libraru are you using that is pushing you to the limit ? Aug 11 23:04:58 I just hit it recently althoug I wonder how I could reach 64K methods despites having a lot of third party jars... Aug 11 23:05:15 do a count? Aug 11 23:05:23 yes I'll have to count Aug 11 23:05:28 also i thought some of these 65k entries were for the framework itself Aug 11 23:05:29 see what these methods are Aug 11 23:05:43 so you dont get all 65k slots any how, right ? Aug 11 23:05:50 no it is a limitation per app. TO go over it you must load dex dynamically (sounds fun) Aug 11 23:05:55 g00s: I don't think it was global limit, but limit on stuff inside single dex file Aug 11 23:06:11 function indexes are coded on 16 bits Aug 11 23:06:11 bubbleguuum: works like normal class loading in java Aug 11 23:06:16 p_l i was under the impression it was slightly different based on android version Aug 11 23:06:27 p_l: if I can avoid it I would... Aug 11 23:06:37 i mean, always 65k, but ... Aug 11 23:06:49 bubbleguuum what libs ? Aug 11 23:07:52 goos: will not list them in detail but there are at least 30 jars, + my own code which is rather big Aug 11 23:08:03 30 ? holy shit Aug 11 23:08:10 i didn't even use that many on EE apps :P Aug 11 23:08:21 is there a difference between using Intent.FLAG_ACTIVITY_NO_ANIMATION vs. overridePendingTransision(0,0) ? Aug 11 23:08:26 in a EE project it would be a small count =) Aug 11 23:08:34 ... 30 jars? Dude, you're starting to creep out a huge badly written Java + Oracle app Aug 11 23:08:56 Jetty itself is 8 jars, some of them small Aug 11 23:09:08 though I guess sometimes maven can generate that much easily Aug 11 23:09:25 yeah, if you are careless about optional dependencies Aug 11 23:09:36 Google API makes the jar count go up easily too Aug 11 23:10:19 codebutler: you wouldn't happen to know the tool he is using in this video to do the screencast on his phone? Aug 11 23:10:26 on Android 2.x, I can run my project only proguarded otherwise it goes over LinearAlloc limit (which is another thing that this 64K func limit) Aug 11 23:10:27 bubbleguuum JakeWharton posted a snippet that counted methods, did you get it? Aug 11 23:10:32 tnzr: i think they use an external hdmi capture device Aug 11 23:10:37 codebutler: hmm Aug 11 23:10:37 ok Aug 11 23:10:39 g00s: got it, need to run Aug 11 23:10:49 and thanks btw Aug 11 23:11:31 p_l yeah, putting the OS into the support lib + play services is gonna backfire with this limit :P Aug 11 23:12:06 Hello there! I'm trying to get my project to work with Android Studio but when I compile the source, it says that com.google.android.gms could not be found. However, I've imported the google play services lib as a module and put it as a module dependency for my main project. Aug 11 23:12:15 Anyone any idea? Aug 11 23:12:18 these limits really really sucks Aug 11 23:12:30 mayeb it was valid 5 years ago, but now ? Aug 11 23:13:46 bubbleguuum jetty > :P Aug 11 23:14:25 you have piqued my curiosity Aug 11 23:15:18 teh best web server there is :p Aug 11 23:15:51 oh man, wut ?!?! Aug 11 23:25:15 i think with this limit though, they should think of some automated way for the tooling to split things up if possible Aug 11 23:26:09 maybe put overflow in apk expansion file? Aug 11 23:26:14 is that possible ? Aug 11 23:26:33 feels like using DOS 3.1 overlays :P Aug 11 23:26:54 the things is that proguarded I'm below the limit because proguard remoev unused code. But the project normally hit the limit Aug 11 23:27:22 proguard is slow on my box, i would go nuts if i had to run it every time Aug 11 23:27:31 of course that's not doable Aug 11 23:28:04 I'm looking for a tool that would list all functions in a dex file. Does it exists ? Aug 11 23:28:22 JesusFreke would know Aug 11 23:29:01 dexdump Aug 11 23:30:50 thanks Aug 11 23:33:00 g00s: not 30 jars but 52. If I believe the content of bin/dexedLibs Aug 11 23:33:27 bubbleguuum um Aug 11 23:34:47 30 seems fine. 52 seems high Aug 11 23:35:56 I use quite a bit of third party libs Aug 11 23:36:13 some of them splited in several small jars Aug 11 23:38:00 for the Google Drive API alone, there are 10 or so jars Aug 11 23:40:50 yeah that's unfortunate Aug 12 00:02:08 JakeWharthon: thanks for dex-method-count-by-package, now I know what to look for Aug 12 00:04:37 15K functions from com.google, yay Aug 12 00:06:11 heh, nice Aug 12 00:06:29 yikes Aug 12 00:06:56 looks like I'll have some pruing to do Aug 12 00:07:01 *pruning Aug 12 00:07:28 org.eclipse.jetty: 8K funcs Aug 12 00:07:41 that sounds like a lot Aug 12 00:10:41 org.apache.commons.lang3: 3K funcs. This one is going to go away Aug 12 00:13:17 no wonder one can hit 64K func fast... Aug 12 00:13:30 com.google.android.gms: 6K Aug 12 00:14:32 jarjar to the rescue! Aug 12 00:15:05 have you looked into using proguard? Aug 12 00:16:00 proguard works at pruning stuff but cannot be used for regular launches during development Aug 12 00:17:28 why do you need jetty inside of an app? Aug 12 00:19:04 because one of the core feature of my app rely on a robust webserver + servlets Aug 12 00:20:18 the com.google stuff should be easy to make much smaller Aug 12 00:20:41 there aer whole sub-package in it I do not use at all Aug 12 00:22:06 it relies on a server running inside the app? Aug 12 00:23:03 yes Aug 12 00:23:21 to what purpose? Aug 12 00:24:15 media streaming, proxying Aug 12 00:26:54 Anyone any idea why this is happening? http://pastebin.com/UyQRT9YL Aug 12 00:32:04 what did ppl use before RelativeLayout.LayoutParams.removeRule() before api 17? Aug 12 00:32:22 s/use before/use instead of Aug 12 00:35:43 JakeWharton: Otto question: if some Activity posts some object to the Bus and then the Activity dies, is there any way some later Activity could ever get that Object out of the Bus when it comes to life? Aug 12 00:36:28 create a producer somewhere Aug 12 00:36:49 codebutler: but not in the original Activity right? Aug 12 00:36:59 err Aug 12 00:37:30 I guess that's really my question: if you have a Producer, and some later thing comes to life and wants whatever it produces, the Bus goes back to that Producer to get it, as opposed to storing it somehow? Aug 12 00:37:49 which (in my example) wouldn't work because the original Producer would have died along with its Activity? Aug 12 00:48:12 The bus stores nothing Aug 12 00:50:04 If you want an initial value, produce the value elsewhere with something not tied to the activity lifecycle Aug 12 00:53:21 bubbleguuum could you use something like Apache Mina instead of jetty + servlets :P Aug 12 00:53:41 doesn't even need nio.2 like vert.x Aug 12 00:55:54 JakeWharton: ok Aug 12 00:55:55 thanks Aug 12 00:56:18 g00s: Jetty require less resources than one probably think looking at the docs. It makes great embedded web server. And I use it in a regular Java project alongside Aug 12 00:57:10 commons-lang3 is HUGE Aug 12 00:58:54 or even netty Aug 12 01:11:00 hey guys. a while back I found the source code for an application Aug 12 01:11:00 that someone wrote in case their phone got lost. the app would run Aug 12 01:11:00 in the background and wait until it recieved a very specific text Aug 12 01:11:00 message to then reply with it's GPS coordinates, or something like Aug 12 01:11:03 that Aug 12 01:11:13 copy paste fail, sorry for that Aug 12 01:16:08 google have a product for that now ;) Aug 12 01:16:23 I've been looking for it for a while Aug 12 01:17:20 https://www.google.com/android/devicemanager?u=0 Aug 12 01:17:49 google have had a product for that for a long time... Aug 12 01:18:03 device manager isn't new :/ Aug 12 01:18:34 its just a part of the prism console they let us see Aug 12 01:44:13 How much does an average freelance Android developer earn (per hour) and where can they find jobs? Aug 12 01:45:00 300 bucks, everywhere Aug 12 01:45:11 300 / per app :D Aug 12 01:47:15 Sure Aug 12 01:48:26 what does "average" mean? Aug 12 01:48:46 because i have a suspicioun that the "average" android freelancer is shit Aug 12 01:48:58 canadiancow, The result obtained by adding several quantities together and then dividing this total by the number of quantities; the mean. Aug 12 01:49:11 canadiancow, Are you a freelancer? If so, how much do you earn Aug 12 01:49:32 i am not Aug 12 01:49:41 zyngawow how much one earns is kinda personal :) Aug 12 01:49:44 canadiancow, and yeah, I supose the "average" android freelancer is shit Aug 12 01:49:47 i have done freelance work in the past, but it was so long ago, while i was in school, that the numbers are meaningless Aug 12 01:50:34 there are enough companies paying top dollar for full time android devs that if you're freelancing at all, i probably wouldnt hire you :P Aug 12 01:51:06 I usually charge about 20€ (~27$) per hour, is that a good price? Aug 12 01:51:06 or you'll end up with shit like https://play.google.com/store/apps/details?id=com.zippyyum.subway Aug 12 01:51:33 i dont know... it depends where you live, what you're doing, how good you are, etc. Aug 12 01:51:50 gee that's cheap ... Aug 12 01:52:08 canadiancow, how much did subway got charged for that? 100$? Aug 12 01:52:36 i dont know why you'd think i know Aug 12 01:53:01 but if you want a complete guess, having worked at a company that built apps like that, i'd say on the order of 50-100k Aug 12 01:53:37 * zyngawow facepalms Aug 12 01:54:02 this is pissing me off. when i create a new project in intellij; the only options for project SDK are 'Android 4.2 - Java 6' but I dont even have SDK 17 on my box. only 18. Aug 12 01:54:18 i even cleared my caches Aug 12 01:54:34 where is this being set on an IDE - wide basis ? Aug 12 01:54:37 go into the settings, remove the extry and re-add it Aug 12 01:55:46 bankai_ know which settings? Aug 12 01:55:59 searched for 'android' and nothing useful came up Aug 12 01:57:37 g00s: platform settings for specific project ?? Aug 12 01:57:47 i deleted the project Aug 12 01:57:50 I can change the build targets and everything to what I want Aug 12 01:57:53 its when i create a new one Aug 12 01:57:53 oh Aug 12 01:58:09 well just an android project and then you should have access to add project platform Aug 12 01:58:12 iirc Aug 12 01:59:31 i liked eclipse 3.8 :( Aug 12 01:59:40 too bad it will go unmaintained Aug 12 01:59:45 wait, all devices have a unique signature that I can use t identify them, right? Aug 12 02:00:30 what is it called? Aug 12 02:03:24 zquad: IMEI? Aug 12 02:04:39 alankila: maybe, can this identifier changed as in the scase of being rooted or factory reset? Aug 12 02:04:43 *case Aug 12 02:04:58 nah it's supposed to be stable Aug 12 02:05:19 ok same for iphones and other mobile devices I am assuming Aug 12 02:05:32 though some privacy-conscious unofficial versions of android lie about the IMEI value when you ask it Aug 12 02:06:28 * alankila still dimly remembers the furor when intel tried to put unique software-accessible identifier into the cpu the first time Aug 12 02:06:36 I guess they call it CPUID and nobody cares now Aug 12 02:07:47 hmh wikipedia says that the CPUID instruction actually doesn't return usable serial number value anymore. Aug 12 02:08:22 :) I just want some way to always be able to identify the device Aug 12 02:11:50 damn it, i keep doing something to make intellij crash Aug 12 02:12:21 doesn't seem to like deleting a project Aug 12 02:12:23 trying to use it? I remember it was really slow and memory hungry, made eclipse seem lightweight when it first became free to use and I tried it Aug 12 02:12:46 alankila eclipse 3.8 was pretty zippy if it was set up right Aug 12 02:12:59 4.3 was terrible on my box Aug 12 02:13:04 I usually get the most minimal package and just add the bits I need Aug 12 02:13:09 alankila what are you using now ? Aug 12 02:13:10 mostly web tools platform shite Aug 12 02:13:14 3.7 I guess Aug 12 02:13:18 oh yeah Aug 12 02:13:25 no wait Aug 12 02:13:28 the good old days. i just added adt and done Aug 12 02:13:43 I am actually not sure which eclipse version I have, and too lazy to open the other laptop that has it Aug 12 02:14:17 the largest problem with eclipse imho has been the useless shit like mylyn it crams in for the "EE" developers Aug 12 02:14:37 and when it comes built-in, it's uninstallable for some reason. Mylyn completions have been really slow in history, even if you didn't even use it Aug 12 02:14:54 oh, i only tried it once . i liked the concept Aug 12 02:15:05 establishing contexts for tasks Aug 12 02:15:11 I have no idea what it does, all I know is that I see no immediate use for it and therefore don't want it Aug 12 02:15:24 its kinda abstract Aug 12 02:15:29 my eclipse is little more than glorified text editor Aug 12 02:16:11 kjeldahl has the right idea; emacs. just need more patience setting it up :) Aug 12 02:16:18 but might also explain why I've always thought it's fairly fast and stable, whereas everyone complains what a piece of shit it is. Aug 12 02:16:33 hey guys, how do I do background image that's centercrop? Aug 12 02:16:41 alankila the ADT bundle from the google website was also a piece of shit Aug 12 02:17:02 I tend to agree, ADT has never struck me as a piece of quality engineering Aug 12 02:17:32 then again it runs in eclipse, I'm not sure how bad it is for hosting programs but chances are the fault lies with the plugin interface available. I don't know, I haven't looked into it Aug 12 02:17:39 but now those guys are working on intellij and its going to be all rainbows and ponies Aug 12 02:18:00 psch. I have no faith in it, but I will be convinced when it's ready and people say it actually works Aug 12 02:18:22 I'm assuming the android studio is also somehow intellij underneath. I don't recognize the software, it's too long since I used it Aug 12 02:19:31 would have been nice if android studio would have managed to import the gradle file eclipse made, but maybe it works in a few months. Aug 12 02:20:04 i just wrote mine by hand Aug 12 02:20:26 I get the sense that android studio will embed both sdk and ndk inside somehow Aug 12 02:20:35 so you install that software and somehow it's a complete environment right after Aug 12 02:21:12 i think what they are trying to do is pretty ambitious. with maven, the xml declared your project - seemed pretty easy to build a plugin that would eat that and comprehend things. with gradle, its an API you can define your own tasks, etc. the IDE has to understand thi Aug 12 02:21:15 if so, that is a right step. the integration between adt and the sdk/ndk has been poor Aug 12 02:25:35 oh crap, it's so late. I can't seem to turn my sleeping phase even when I wake up to alarm clock in the mornings Aug 12 02:26:08 tomorrow I will apply firm grip with my left hand to the back of my neck and throw myself on the bed Aug 12 02:26:23 and do that in the correct hour. Aug 12 02:30:10 alankila http://online.wsj.com/article/SB10001424127887323336104578503663495599972.html Aug 12 02:31:10 https://gist.github.com/Nyceane/d5ba45290a8532231248 Aug 12 02:31:12 hey guys Aug 12 02:31:36 trying to create an image that basically crops to parent's height, and the parent is wrap_content Aug 12 02:31:38 how do i do it? Aug 12 02:32:33 ok, i nuked all vestiges of intellij except the app bundle, lets try this again Aug 12 02:32:46 sneaky it installed shit in nonstandard places Aug 12 02:36:06 which OS ? Aug 12 02:36:27 mac Aug 12 02:36:58 it just didn't use the conventions, so the uninstallers like AppCleaner wouldn't pick all of it up Aug 12 02:37:14 needed to nuke Preferences/IdeaIC12 Aug 12 02:50:25 if you device is looking for a webservice for updates messages, how often does it usually look for the update, what is best practice? Aug 12 02:59:05 don't Aug 12 02:59:09 is the best practice Aug 12 02:59:12 use something like gcm **** ENDING LOGGING AT Mon Aug 12 02:59:58 2013