**** BEGIN LOGGING AT Mon Sep 15 02:59:59 2014 Sep 15 03:17:22 In Chongqinq, phone addicts get their own sidewalk lane Sep 15 03:17:46 haha , does it lead to the internet addiction ward Sep 15 03:18:32 thats our future Sep 15 03:18:41 china and japan are just ahead of the curve Sep 15 03:18:53 I'm trying to create a Android Manager for linux based on ADB. How can I get installed APP icons using ADB. Sep 15 03:19:18 you can't Sep 15 03:19:44 wiky: this may be a dumb idea… but you could use the package manager to get the app ids and query the play store Sep 15 03:19:49 pm list, pull the apk, inspect apk for icon Sep 15 03:20:21 pfn: can you deobfuscate the manifest? Sep 15 03:20:38 it's not obfuscated Sep 15 03:20:47 i thought last time i checked it was Sep 15 03:21:07 it isnt Sep 15 03:21:13 oh neat, lemme check that out Sep 15 03:21:18 it's just a packed format Sep 15 03:21:26 aapt d xmltree Sep 15 03:21:34 ohhh Sep 15 03:21:39 so its trivial to unpack Sep 15 03:26:26 g00s: "So we don't slam into one another" :) Sep 15 03:30:40 capella yeah, they must be a pretty distracted bunch Sep 15 03:31:23 That was my favorite line of the article ... sounded reasonable :D Sep 15 03:32:17 XD Sep 15 03:32:52 can't pull themselves away from that glowing 4" rectangle Sep 15 03:34:45 If people are simply absorbed as we're now reading more and edukatin' ourselves better, then I'm all for it Sep 15 03:34:47 Twitterers ... not so much Sep 15 03:35:56 g00s http://boringoldraphael.tumblr.com/post/29184400814/i-saw-the-best-minds-of-my-generation-destroyed-by Sep 15 03:36:28 * capella wants some reading glasses made out of Gorilla-glass Sep 15 03:39:27 lasserix agreed Sep 15 03:40:44 lasserix that Bostrom book is getting read by lots of people; still thinking about it but i get depressed by stuff i can't do anything about Sep 15 03:42:17 heh, most programmers do Sep 15 03:42:32 or they go mad trying Sep 15 03:43:23 hey Carbonflux ;) in care you are curious http://www.amazon.com/Superintelligence-Dangers-Strategies-Nick-Bostrom-ebook/dp/B00LOOCGB2 Sep 15 03:44:11 #1 bestseller in AI category Sep 15 03:44:26 some of me favorite bugs were the ones that I fixed cause they just really pissed me off Sep 15 03:46:36 oh thank you, I am always interested in that :) Sep 15 03:47:35 capella, its weird how good I feel after fixing one of those too, then I feel silly for getting so attached, then, rinse and repeat. Sep 15 03:48:26 \o/ I can successfully waste too much time fixing a thing only I care about Sep 15 03:48:45 Somone else who cares, will never know :( . . Sep 15 03:50:53 in the end that is what makes it art, the process. Sep 15 03:50:56 imho Sep 15 03:52:07 * capella will be forever ensconced in github /blame/ Sep 15 03:55:16 x_x Sep 15 03:57:25 i think eclipse just ran into an infinite loop and crashed from hitting a memory cap... Sep 15 04:20:23 I hate eclipse so much. Sep 15 04:22:17 you don't have to use it :| Sep 15 04:22:47 it could be worse; you could hate android but be forced to use it :) Sep 15 04:23:28 at least you have intellij, AS, vim/emacs/ST Sep 15 04:23:57 :) I switched off Eclipse after initially using it for only 4 hours ... I knew something was rotten there Sep 15 04:24:33 "Professional products do not behave like this!" Sep 15 04:24:59 not sure why my experience of eclipse is so different than everyone else's. i basically took the platform runtime (which is the skeleton) and added ADT, which brought in JDT. i never had any stability problems Sep 15 04:25:49 but after it seemed like ADT is kinda in limbo i decided to try something else Sep 15 04:26:39 now, the ADT had its share of bugs. its hard disentangling ADT from eclipse if stuff goes wrong Sep 15 04:27:22 for example, doing a refactor butchered my manifest requiring i checkout from git again Sep 15 04:27:45 eclipse wouldn't touch the manifest, thats ADT's handiwork ;) Sep 15 04:28:35 * capella gawd I hate reviewers that reflexively fight the smallest of changes to code they originally wrote :/ Sep 15 04:35:59 I'm trying to run the XDA focal camera app on my phone, while I get the following error: http://codepad.org/RFIPxTJI Sep 15 04:36:14 what's the meaning of "Link of class 'Lorg/cyanogenmod/focal/FocusManager;' failed"? I see the FocusManager.java is just there in the projec Sep 15 04:41:45 zhangxaochen I take it your not a developer then Sep 15 04:42:12 you're* Sep 15 04:49:39 guys so its better to use parcelable than serializable to pass an object to an activity/fragment activity Sep 15 04:50:24 wow irc died Sep 15 04:50:43 guys so its better to use parcelable instead serializable to pass an object to an activity/fragment activity Sep 15 04:50:48 cliff yes 10x faster Sep 15 04:50:58 oh ok Sep 15 04:51:05 wont matter for strings etc Sep 15 04:51:09 but for complex list of objects Sep 15 04:51:11 absolutely Sep 15 04:51:57 there was a hickup in the matrix Sep 15 04:52:17 but was it the same cat ? Sep 15 04:52:37 ok thanks, do i need to make my own parlable class to setup object structure? Sep 15 04:53:19 parcelable* Sep 15 04:53:24 net splits again? (didn't notice) Sep 15 04:53:38 because im reading this http://stackoverflow.com/questions/2139134/how-to-send-an-object-from-one-android-activity-to-another-using-intents/2141166#2141166 Sep 15 04:53:55 and i see a mData Sep 15 04:53:58 cliffreich: use teh android studio parcelable generator, its a plugin Sep 15 04:54:52 oh that's nice Sep 15 04:59:31 Carbonflux oh Naomi Klein's book is out on Tuesday (This changes Everything) Sep 15 05:02:42 i kinda wish the whole parcelable thing was done differently Sep 15 05:03:28 wouldn't it be interesting if something like 0mq was used? so you could send a message in-process (this now becomes a concurrency primitive, like a handler), inter-process, or via tcp Sep 15 05:04:39 or UDP. request/response, pub/sub Sep 15 05:16:25 I'd like to write an AI that does some language recognition...another thing I don't have time for at present Sep 15 05:20:52 Last time I tinkered with AI, I was reeeeeally bored :) Sep 15 05:23:31 i recently emailed a wall street guy i saw on tv a question and he asked me to call him, which is scaring me cause im awkward on the phone. Sep 15 05:27:00 cydd first make sure you tell him you are from the FBI Sep 15 05:27:45 don't say SEC, because they are toothless ;) Sep 15 05:33:52 emergency, incoming typhoon! Sep 15 05:35:02 and my admob is disabled... Sep 15 05:37:43 dam, thats one freaky typhoon if it's doing that Sep 15 05:38:42 kinda the inverse of the quantum butterfly Sep 15 05:39:54 would shrodinger's cat go afetr a quantum butterfly ? Sep 15 05:40:12 billions of joules of weather, causing a single bit to flip in Google's computer :) Sep 15 05:40:22 or a bug Sep 15 05:40:29 lol Sep 15 05:41:55 nah, they've been warning for months that I'd need to upgrade my account, which would mean manually reactivating my dormant adwords account - got a call from a Google person this morning to confirm that re-activation, we're due to have possible proper typhoon warning tonight, so I should really get my account working again Sep 15 05:42:20 yes, a Google person *called me* Sep 15 05:43:48 Leeds that was just me Sep 15 05:43:56 maybe theh opted for calls because of bad weather incoming. "did you replenish your food supply? have a proper shelter? also is your admob working?" Sep 15 05:44:39 ravilov: just so you know, my main personal published app is one that shows government weather warnings, with ads... Sep 15 05:44:54 I see... Sep 15 05:45:45 we are at T3 now - which is a second-level warning - and they've said *maybe* T8 tonight, which is third-level, and pretty much shuts down the city Sep 15 05:46:11 it's been a *very* quiet/late season this year, this is the first major alert Sep 15 05:46:56 Leeds maybe it was just waiting for the apple event to finish Sep 15 05:47:23 there are historical reasons for it going T1,T3,T8,T9,T10 Sep 15 05:47:31 anyway, office time Sep 15 05:48:19 StingRay_, why? I'm still learning to develop.. Sep 15 05:48:36 zhangxaochen huh? Sep 15 05:49:00 * StingRay_ scrolls a long way back Sep 15 05:49:21 right, no I mean thats kinda a user support request rather than an app development one Sep 15 05:49:49 this probably isn't the best place to ask it… but the CM channel maybe the place Sep 15 05:50:34 StingRay_, #cm? Sep 15 05:50:59 is that not forked from cm source ? Sep 15 05:53:14 StingRay_, I'm not sure Sep 15 05:53:41 the source is here: https://github.com/xplodwild/android_packages_apps_Focal , would you mind checking it? Sep 15 05:53:48 well either way, here isn't the best place for user support Sep 15 05:54:33 why keep saying 'user support'? isn't a question on debugging? Sep 15 05:56:05 did you say you were just wanting to run the app ? Sep 15 05:56:34 I mean: build from sourcecode and run on api 15 Sep 15 05:56:47 it's not an apk file Sep 15 05:57:18 zhangxaochen well that manifest says minSdk=16 Sep 15 05:57:28 sorry for not clear enough.. Sep 15 05:57:38 this channel is more for more specific questions, like any problems you find along the way Sep 15 05:57:39 and you know what to do to get it to api 15? Sep 15 05:57:48 not to just get you started Sep 15 05:58:04 zhangxaochen we do however wish you lots of luck ! Sep 15 05:58:06 g00s_, I changed that minSdk to 15, and commented a few code lines that supported since 16 Sep 15 06:00:17 ravilov, http://codepad.org/RFIPxTJI here is my error traceback, just want to know why NoClassDefFoundError occurred while the sourcecode be there Sep 15 06:23:52 zhangxaochen, I'm looking at FocusManager.java Sep 15 06:23:55 oops Sep 15 06:24:55 zhangxaochen, I'm looking at FocusManager.java now and at first glance I see nothing unusual. but yeah, if you have some specific code coming from a specific source and there is a less general channel for it, your best bet is to ask there first, as they are the most likely to know about the code Sep 15 06:29:09 ravilov, lemme try, thx guys ;) Sep 15 06:31:24 i have a date object. what is the best way to get another date object from that object that just the date at midnight? Sep 15 06:33:09 aaearon, Date date2 = (Date)date1.clone(); date2.setHours(0); date2.setMinutes(0); date2.setSeconds(0); Sep 15 06:33:17 (there is really no "best" way) Sep 15 06:35:18 ok thank you. simpler than i was trying to make it Sep 15 06:56:49 aaearon hmmm, Date.setXX() are all deprecated --- a stromg indicator that you're "Doing It Wrong" Sep 15 06:57:54 hey guys Sep 15 06:58:03 I have a somewhat peculiar bug! Sep 15 06:59:15 I use decimals in different parts of my app, and I save those decimal numbers in the database in other parts of the app Sep 15 07:00:03 a user submitted a bug and the bug said "Double.parseDouble() 440,1 is not a valid real value" Sep 15 07:00:23 I changed my language to french and it turns out that the system changes dots into commas, for decimal! Sep 15 07:07:10 Mhh this might sound almighty stupid, but when set a fragment, that also starts a new activity, from my navigation drawer, rather than showing the fragment another one "pops up, and shows a back icon rather than simply showing the fragment besides the navigation drawer. (an image might make it clearer: http://imgbox.com/dLW8FUUj) Sep 15 07:09:23 So how do I prevent this new "window" and have my fragment appear besides the (closed) nav drawer? Sep 15 07:14:41 sicp there is a Java call that handles internationalization for that Sep 15 07:14:57 for that specifically? Sep 15 07:15:09 I sort of want something like "always use US system for decimals" Sep 15 07:15:21 because I dont want to run around the app implementing whatever "fix" there is for this Sep 15 07:15:22 java.text.DecimalFormatSymbols().getDecimalSeparator() Sep 15 07:15:50 well thanks for that one, but let me just look for the other too Sep 15 07:16:31 Locale.setDefault(new Locale("en", "US")); Sep 15 07:16:38 can I do this at Main_Activity? Sep 15 07:16:44 let's see Sep 15 07:18:08 it works Sep 15 07:19:26 now regardless what language, it always uses '.' for decimal and never ',' Sep 15 07:20:23 yes, and it also forces en_US for all the rest of the app Sep 15 07:20:37 yes I know Sep 15 07:20:41 we dont offer other languages Sep 15 07:20:54 if we did, would be a huge mistake to set default locale Sep 15 07:20:56 right? Sep 15 07:21:10 or would the proper XML files still be loaded? Sep 15 07:21:15 nah they wouldnt Sep 15 07:21:16 they wouldn't Sep 15 07:21:34 this seems like a bad workaround anyway, I mean what if you decide to support other languages? Sep 15 07:21:42 just seems like bad practice Sep 15 07:21:57 but that's just me Sep 15 07:23:13 it is Sep 15 07:44:34 I can only seem to find people who want to have the back caret for a fragment, while I on the contrary would like the fragment to be a "top-level" fragment for the navigation drawer, ie have the navigation drawer icon and not the back icon, or action bar. Sep 15 07:44:38 Any ideas? Sep 15 07:46:11 hi Sep 15 07:52:32 so, it turns out that 'legacy AdMob' was shut down at the end of August - which I knew - but the migration tools were only available until September 10th - which I didn't know Sep 15 07:56:16 oh that plugin to make parcelable objectts isnt that good if you use complex classes with object as attributes Sep 15 08:38:32 hi everybody Sep 15 08:39:21 hi Sep 15 08:40:59 can anybody tell me how I can create this actionbar effect as in the I/O app? I haven't found the code in the source code. Basically I mean the session detail view, where you can scroll up an image and if it's scrolled up enough, the actionbar background will animate from translucent to opaque to match the rectangle below... Sep 15 08:45:08 is it possible to have a service that constantly listens for a certain voice command without eating through battery life? Sep 15 08:45:11 How can I have an activity use an allready existing fragment? Sep 15 08:45:38 and is there an api for voice recognition? Sep 15 08:50:06 evident: you mean http://cyrilmottier.com/2013/05/24/pushing-the-actionbar-to-the-next-level/ ? Sep 15 08:51:55 RustyShackleford, "listening for a voice command" implies running a voice pattern processing algorithm and the microphone and supporting electronics Sep 15 08:52:01 so no, there's really no good way to do that :/ Sep 15 08:52:16 how does "OK Google" work then? Sep 15 08:52:50 the Google Now launcher seems to have it running all the time Sep 15 08:57:11 It uses a special DSP processor on devices that have them and the "OK Google" phrase is baked into native / driver code Sep 15 08:57:23 the API to change / add another phrase is not exposed Sep 15 08:57:45 if your device does not have that DSP it'll destroy your battery life when you enable that functionality :) Sep 15 08:58:31 Mavrik: What is a DSP? Sep 15 08:58:46 http://en.wikipedia.org/wiki/Digital_signal_processor :) Sep 15 08:59:47 Mavrik: Isn't it redudant to write "DSP processor" then? Sep 15 09:00:21 Yes. Thanks for your contribution to the conversation -_- Sep 15 09:00:26 heh Sep 15 09:06:40 tm604: well almost. In that article, the image slides up and the actionbar changes from transparent to opaque. In the I/O app, there is a transparent actionbar with a header image underneath it. Below that image, there is a colored bar with more information. As you slide up the content, the image gets smaller and rectangle and text slide up. When the rectangle reaches the bottom of the actionbar, there is a gradient animation that changes the actionbar c Sep 15 09:08:09 tm604: the effect is also shown here: http://android-developers.blogspot.de/2014/08/material-design-in-2014-google-io-app.html Sep 15 09:31:04 Hi, how can I tell if/when PrintManager#print has ended succesfully? Sep 15 09:31:23 Is it even possible? Sep 15 09:35:41 this is the 3rd time Ive seen this question here, one of the times I googled it myself to find out Sep 15 09:35:45 still havent seen answers for it Sep 15 09:39:07 PrintManager.getPrintJobs().get(i).getInfo().getState() == PrintJobInfo.STATE_COMPLETED Sep 15 09:39:11 not so difficult Sep 15 09:40:19 With the action sharing item in Android, how do I get different intents merged? Sep 15 09:40:19 Hello. I've a few questions hopefully you bear with me :).. Is a JS Google Maps portable to android/ios? Would that be done with a WebView? Would this make the app loose a lot of functionality when compared to a pure Google Maps API v2 for android? Sep 15 09:40:28 So I can offer Facebook sharing, Text sharing, browser sharing, etc. Sep 15 09:40:28 and yeah he's asked that a bunch of times, more than plenty enough time to figure it out on his own by now Sep 15 09:40:58 skulltower: yes you lose a LOT of functionality Sep 15 09:41:29 ravilov: uhm, that's the first time I asked. But thanks. Sep 15 09:42:17 So you have to poll it. I was looking for a Broadcast or something. Sep 15 09:42:19 no it's not, I have at least another case where you asked in my logs Sep 15 09:42:45 that animation issue that I solved some time ago with object.invalidate() is not the behavior im looking for Sep 15 09:42:56 no, I don't know about any broadcast you could catch, but then again I'm not working with APIs above 10 Sep 15 09:43:04 it like redraws the object and therefore produces a behavior that is jumpy and is totally not animation Sep 15 09:43:13 bankai_, What about accessing a website that runs such js map? Sep 15 09:43:27 still suffering from having this circle not animating! http://pastie.org/9555120 Sep 15 09:44:00 I have like 10 other animations on that screen and they all run just fine Sep 15 09:44:14 bankai_, I mean, will it be usable with a smartphone, tablet Sep 15 09:44:19 >I'm not working with APIs above 10 Sep 15 09:44:19 why? Sep 15 09:44:35 depends what you define as "usable" -- i remember things like markers and a few other reactive things don't work or don't work properly Sep 15 09:45:22 Lorenz9, because I have no need to Sep 15 09:45:48 everything I need to do can be done on APIs up to 10, and still used on newer APIs without a problem Sep 15 09:46:31 Interesting Sep 15 09:46:47 bankai_, Okay thanks. I'll have to try and see I guess. Sep 15 09:46:51 skulltower, you'll get a wonky UX at best Sep 15 09:47:11 wonky Sep 15 09:47:40 ravilov, So what would be your suggestion to port a map to multiple platform? Use their own tools? As in js for web google maps api v2 for android etc? Sep 15 09:47:54 yes Sep 15 09:49:09 I still am somehow hoping that it's possible to use js map on android's browser. At least for the minimal interaction. Sep 15 09:52:07 did you check my pastie? this sort of animation is so dead simple I have it running everywhere in the code Sep 15 09:52:52 only for this specific element in the UI (from a custom class), the radius change brings up the need to call invalidate() on the object that I've just animated, in order for the result to appear. So it's not animation, it's ...just change of measurement Sep 15 09:53:06 hi guys, i have a homescreen widget in which i render some tabluar data, either as a bunch of textviews or on API 11+ as a list view. Id like to get these to line up in columns, is that doable at all or should i just give up on the idea? Sep 15 09:54:30 Anybody running Android L on Genymotion around here? Sep 15 09:55:24 I see now that it doesn't work on other objects either, it's that damned custom properties is what's wrong Sep 15 09:55:46 Hi, I am looking for a way to implement a vertical image slider that shows several ImageView's and can be slid about left and right... I have been googling but I seem to lack the proper word for it, I only find the navigation drawer. Also, I have built something with the ViewPager, but it only allows one view per page, if I'm not mistaken. I'm looking for something like this: http://bxslider.com/examples/carousel-static-number-slides Sep 15 10:02:09 hi there, is there a way to preconfigure android devices for customers? such thinks like gmail-account / install 1 app / some systemsettings Sep 15 10:14:41 I think that belongs to #android Sep 15 10:22:33 Hello, what could be the reason for my app showing 2 screens in "task manager" Sep 15 10:23:02 when I minimize it, it shows as two windows, I can click on both of them and they open the same app Sep 15 10:33:29 should all opengl objects be left untouched onPause and just trust that the context gets deleted and all the textures and buffers with it? Sep 15 10:36:13 I've had my opengl engine in use for 5 years soon, and I've always deleted all textures and buffers and programs onPause and cleaned everything up... but now I found a device that crashes when the app is resumed if any glDeleteBuffers calls were made during onPause. No other glDeleteTextures, etc. seem to bother it though Sep 15 10:37:12 so I tried finding some info on it and most sources mention nothing should be done to free any opengl related resources Sep 15 10:44:01 plilq: so try doing nothing Sep 15 10:47:29 doing nothing obviously works, but is it the suggested way? Sep 15 10:49:22 the "engine" I've made is a cross platform android/ios/linux/windows/osx library, and for example on iOS you will leak the resources if you don't free them. Obviously it's nice if the program flow can be the same on both mobile platforms like it is now, so just nuking the whole cleanup part of my library without proper thought is not really a solution Sep 15 10:51:50 so if the right way on android would be to not release anything manually it would be a bit of a shame, because then everything would need two unload functions or destructors -- one for a runtime delete that needs opengl cleanup, and one for an onPause event that still needs to get rid of the game object but not do any opengl cleanup Sep 15 10:53:22 so thus far I've just relied on "well it can't hurt to unload them onPause" to only have one generic cleanup routine, but this needs to be rethought if it causes a crash on even one device and the suggested approach is to do no cleanup onPause Sep 15 10:54:15 Hey can anybody help me with a doubt about onActivityCreated of a fragment? http://pastebin.com/PZst8rJz Sep 15 10:58:03 if an activity was created 5 mins ago and I later add a fragment by say, button click, would the "onActivityCreated" method still be called? Sep 15 11:11:31 WantToCode: I would say. Have you tried it? Sep 15 11:11:41 say no* Sep 15 11:17:45 @jush I didnt try it as such. Was trying to google it but couldn't find it. Sep 15 11:28:29 guys, why would 'adb devices' show me 'emulator-5554' when an acutal device is connected to the machine? Sep 15 11:28:45 sitting with a customer now, and this is the first time i see that issue. Sep 15 11:29:31 Anyone knows? Sep 15 12:02:51 is there a way to preconfigure android devices for customers? such thinks like gmail-account / install 1 app / make some systemsettings ? Sep 15 12:07:46 yes you preconfigure the device before giving it to the customer Sep 15 12:51:55 Hi Sep 15 12:53:19 Any idea how to force eclipse to honor the tag located in build.xml ? I'm having a hard time trying to read raw assets.. they are compressed and thus return 'garbage' data :( Sep 15 12:59:59 Hi guys. Recently I already asked this question here but having no luck with googling asking it on SO and trying to find out the solution by myself with all the possible docs I'm asking again here. How can I select Thumbnails for images stored in particular directory? I have this selection clause in my loader : MediaStore.Images.Thumbnails.KIND + " = " + MediaStore.Images.Thumbnails.MINI_KIND Sep 15 12:59:59 + " AND " + MediaStore.Images.Thumbnails.IMAGE_ID + " AND " + MediaStore.Images.Thumbnails.IMAGE_ID + " IN (?)" but it returns empty cursor while MediaStore.Images.Thumbnails.KIND + " = " + MediaStore.Images.Thumbnails.MINI_KIND works great just (it's just returns all the thumbnails for all the images on the phone, while I need only particular ones. It seems to be like a simple task but I can't find the solution for this for Sep 15 12:59:59 already 2 days and am feeling hopless about that... Sep 15 13:09:23 Hey guys. I have a layoutinflater I'm using in a baseadapter to build a dynamic form - it works as expected so far but the layout has white text instead of the default dark text - any ideas? Sep 15 13:15:26 johnhamelink, did you try to play with android:theme="..." attribute for the activity where you use mentioned layout Sep 15 13:16:19 Hmm AlexBerdnikov I haven't, but only because it's no different from other activities which don't seem to have this problem Sep 15 13:17:24 (trying that now) Sep 15 13:17:44 Nope, makes no difference Sep 15 13:18:20 I think it's probably to do with the layoutinflater - could I share it with you Sep 15 13:18:57 johnhamelink, you got the inflator from the wrong context. Sep 15 13:19:12 pfn, AlexBerdnikov this is what it looks like: https://gist.github.com/johnhamelink/edf27e3b8b95231be8d4 Sep 15 13:19:33 oh wait, do you mean when i instantiate the adapter? Sep 15 13:21:19 I suppose Sep 15 13:21:30 Ok let me check that theory out Sep 15 13:23:01 pfn: I'm using getActivity().getApplicationContext() from my fragment? Sep 15 13:26:01 wrong context Sep 15 13:26:24 pfn: I'm trying out moving the adapter creation to onCreateView() and using the context from the container Sep 15 13:26:39 Looks like that worked :) Sep 15 13:27:07 just getActivity is sufficient Sep 15 13:27:29 Cool, thanks guys :) Sep 15 13:30:10 Does anyone here have experience with titanium/cordova/phonegap/etc? Sep 15 13:31:36 what johnhamelink encountered above is why using ide autocomplete coding is bad Sep 15 13:32:09 pfn: :) I'm a vim user actually - it's more that I was referring to other people's code :) Sep 15 13:32:47 meh, looked like an autocomplete produced kind of problem Sep 15 13:38:21 I guess it was someone else's autocomplete problem :D Sep 15 13:38:32 that was then passed on to me Sep 15 13:49:03 hi I am trying to compile with ANDROID NDK and in my Android.mk file I need to provide absolute path of “C:\\Program Files”\\” and its not taking the correct path as there is space in the path.. can anybody help me with that Sep 15 13:49:31 LOCAL_SRC_FILES := “C:\\Program Files\\myproj\\myfile.a” Sep 15 13:49:37 this is the path I am trying to use Sep 15 13:50:01 mital: Are those the actual quotes you used? Sep 15 13:50:11 ah no Sep 15 13:50:17 I mean... these are fancy quotes. Some tools might not handle them. ^^ Sep 15 13:50:20 I tried with and without quotes Sep 15 13:50:54 I use it as variable Sep 15 13:51:39 ah also not used the fancy ones .. but the " Sep 15 13:51:54 mital: On GNU/Linux, you have to escape spaces if you don't quote them. That'd be /Program\ Files/ over here. :/ Sep 15 13:52:14 * mital is on cygwin Sep 15 13:53:08 that sucks Sep 15 13:53:25 Tried escaping it now, mital? *never used cygwin* Sep 15 13:53:49 wait, cygwin? Sep 15 13:53:51 don't put myproj in program Files? Sep 15 13:53:57 that sounds dumb Sep 15 13:54:08 just use an OS which is suitable for development? Sep 15 13:54:17 indeed Sep 15 13:54:23 either of those two would fix this issue :) Sep 15 13:54:34 and spaces should work fine when properly quoted Sep 15 13:56:50 hmm, is there an alternative way to implement in-app billing (e.g some library somewhere)? Sep 15 13:56:54 Probably need "\"... \"" Sep 15 13:56:57 the official way seems.. really complicated Sep 15 13:57:20 if you can't figure it out, you shouldn't implement it Sep 15 13:58:00 thanks, that answer really blew my mind Sep 15 13:58:00 Leeds: we provide platform so have to work on every os available hehe Sep 15 13:58:15 pfn: tried all different combinations with “ Sep 15 13:59:03 I don't believe you Sep 15 14:00:22 the error is “LOCAL_SRC_FILES for a prebuilt library should only contain one item” so its considering this as two parts “C:\Program” and “Files/myproj/myfile.a” Sep 15 14:00:53 pfn: yea I think have to try few more combinations Sep 15 14:01:10 the error sounds wrong Sep 15 14:01:17 never paraphrase Sep 15 14:01:42 why can't I draw offscreen? Sep 15 14:02:17 I'm trying to draw a disk at x = 0, the disk is half drawn Sep 15 14:03:09 using canvas to draw Sep 15 14:05:48 Ok I have another problem now - whenever a spinner in my view is selected, my dynamic form loses all its data (but the correct number of items is there) - what's triggering this behaviour? Sep 15 14:06:11 (correct number of form items, I mean) Sep 15 14:07:55 your bad logic... Sep 15 14:09:31 stop that shit man Sep 15 14:09:35 the fuck do you insult people for Sep 15 14:09:47 bitter little man! Sep 15 14:09:58 what? Sep 15 14:10:02 go away. Sep 15 14:10:22 mital, does your project *have* to be in program files? that seems like a horrible idea even if your makefile was working right Sep 15 14:11:47 <[A3G1S]> hey guys is it possible to run android studio configuration directly from command line ? Sep 15 14:11:52 ravilov: its a dependency for creating project for me and all my framework files resides at single place in programfiles Sep 15 14:12:07 <[A3G1S]> I am trying to run tests and getting this error "initializationError FAILED Sep 15 14:12:08 <[A3G1S]> java.lang.RuntimeException Sep 15 14:12:08 <[A3G1S]> " Sep 15 14:14:21 mital, in any case, I'm sure this is a problem #gnumake can solve Sep 15 14:14:31 mital, well... good luck with that Sep 15 14:14:51 pfn: ok Sep 15 14:15:45 is it possible to add accounts (for example google account) to an android device trough adb / flashable zip? (non rooted device / original firmware & rom) Sep 15 14:18:19 lmbd: thats a question for #android-root Sep 15 14:18:43 it's a question for : adb help Sep 15 14:18:48 I'm going to say no Sep 15 14:18:55 and yes, this is the wrong channel for this Sep 15 14:19:20 it should definitly possible with root tough Sep 15 14:19:41 not sure how easy it is with original rom. Sep 15 14:19:59 unlikely, I believe it needs two-way communication with the server Sep 15 14:20:16 that's not so easy to script Sep 15 14:20:29 its just files in a rom Sep 15 14:20:54 but mh wait Sep 15 14:21:15 i think you can add the account, but it still needs the phone-account pairing google is doing, right? Sep 15 14:21:31 it's files containing cookies and hash strings that the server needs to recognize Sep 15 14:21:40 sorry i missed the start of this conv. because i had a disconnect Sep 15 14:21:46 or else it's not a valid account Sep 15 14:21:50 lmbd_, just go to #android-root Sep 15 14:21:57 yeah. I guess you can add the account, but there one step missing that must be done by hand (the pairing) Sep 15 14:22:04 no way to do this without root? Sep 15 14:22:10 but thats really a question for android-root Sep 15 14:22:23 lmbd_, that's not what it means Sep 15 14:22:31 okay, thanks Sep 15 14:22:39 lmbd_: #android-root is for all rom flashing stuff. the guys their have much more experience then the devs here Sep 15 14:22:53 good morning :) Sep 15 14:23:33 I have a problem with hiding navigation and hiding the MediaController at the same time. View the full question here : http://pastebin.com/GfnMsqXq Sep 15 14:44:43 my toolbar in Android Studio moved to the right, and no longer has gradle, sdk, etc. buttons. anyone had this happen ? Sep 15 14:45:14 nope Sep 15 14:46:37 mattblang: Window -> Restore default layout Sep 15 14:46:46 MikeWallaceDev ahh, just needed to check View under Toolbar. not sure how that got unchecked Sep 15 14:46:53 Mrdarknezz I tried that, didn't do anything. Sep 15 14:46:59 oh Sep 15 14:47:33 Mrdarknezz, MikeWallaceDev excuse me, I meant the other way around, haha. needed to check Toolbar under View Sep 15 14:53:59 do someone know an app to automate clicks on android? Sep 15 14:54:21 hi hello. Why do i get errors if i setContentView from another class than my main activity ?\ Sep 15 14:59:09 lmbd, specific clicks, or ramdon clicks? For random clicks, look at Monkey. Sep 15 14:59:20 imbd what are you trying to do with automated clicks? Sep 15 15:00:34 Why does the java datepickers return 1 month before the selected one Sep 15 15:00:51 specific clicks, it is my idea to add the google accounts (my previous problem) to diffrent devices by an "clickbot" Sep 15 15:00:53 Janaury is noth the 0th of months Sep 15 15:04:07 In an array it is Sep 15 15:04:12 (but yes, it's stupid) Sep 15 15:04:40 hhm my question is : how can i create a fragment outside onCreate ? Sep 15 15:04:46 is that possible? Sep 15 15:07:09 when i commit fragment replace inside oncreate it works, but not from a class i create in onCreate.. why ?? Sep 15 15:08:14 SimonVT: Then they shouldn't have datetime object that interprets 0th as an invalid month Sep 15 15:10:14 BulleTime: Do you have some code I could look at? Sep 15 15:11:13 Ironthighs yeah one moment, trying one last thing Sep 15 15:12:56 Hello Sep 15 15:13:13 I'm teaching a friend Android and I'm finding the original tutorials a bit dated in places Sep 15 15:13:24 Are there any tutorials any of you would recommend? Sep 15 15:13:57 Hello guys, I have a relatively simple question. I start Asynctasks multiple times in an Adapter. How does an AsyncTask know if the adapter is still available or not? Because it needs to inform the adapter that the task has finished. Sep 15 15:15:02 If the adapter is cleaned up, I'll get a exception because the adapter doesn't exist anymore. Sep 15 15:16:26 Ironthighs my main activity: Sep 15 15:16:27 http://pastebin.com/hpBR9fr0 Sep 15 15:17:06 on line 112 this connect class is used: Sep 15 15:17:07 http://pastebin.com/FerZk8JV Sep 15 15:17:35 there i call the loadFragment() where it goes wrong Sep 15 15:18:01 if i put the httpresponsehandler code in my mainactivity it does work Sep 15 15:19:01 but i'd like to have the HttpResponseHandler inside the SystemServices class Sep 15 15:19:24 It's not enough to just provide code, you have to tell what the error is as well Sep 15 15:19:42 He did Sep 15 15:19:48 "it doesn't work" is not an error description Sep 15 15:19:53 The fragment isn't showing up Sep 15 15:20:00 this is my error: Sep 15 15:20:01 http://pastebin.com/hhnFM7QM Sep 15 15:20:42 erm...good call, SimonVT. Sorry Sep 15 15:22:44 any idea's ? Sep 15 15:22:54 You can not manually instantiate activities Sep 15 15:23:22 right u mean the extends ? Sep 15 15:23:33 Yes Sep 15 15:23:44 Either an instance is created by calling startActivity, or it's not valid Sep 15 15:24:21 hi guys! I need some help with the android aosp keyboard Sep 15 15:24:23 You're doing "new SystemServices" .. You can't create an Activity like that Sep 15 15:24:58 it's the ics-mr1-release version (I added the other stuff it needed) Sep 15 15:25:05 hhm yeah i didnt noticed that lets see Sep 15 15:25:20 build it, installed it onto my samsung phone and the voice input icon is disabled Sep 15 15:25:24 what should I do? Sep 15 15:26:31 take a sharpie and draw the voice icon on your screen? Sep 15 15:27:07 ravilov: it's there but it doesn't work when I click it Sep 15 15:27:12 this seems device-specific so should probably go to #android-root Sep 15 15:27:44 ravilov: but the keyboard is not modified in any way (except packages added to src, com.android.common...) Sep 15 15:27:46 or else trace the code from the button press/touch onwards Sep 15 15:28:04 that is why I said it seems device specific Sep 15 15:28:08 ravilov: it won't let it Sep 15 15:28:12 ravilov: *me Sep 15 15:28:23 ravilov: I can only long tap the button and it goes to settings Sep 15 15:28:37 not all devices come with proper voice recognition support Sep 15 15:29:00 ravilov: mine does Sep 15 15:29:10 ravilov: samsungime (which I deleted) Sep 15 15:29:21 dude, something surely does happen when you tap the button, I'm sure it doesn't just go ignored Sep 15 15:29:43 ravilov: ok and how do I install a real dictionary (for real suggestions) Sep 15 15:29:48 use the debugger, set some breakpoints Sep 15 15:29:58 no idea Sep 15 15:30:28 also, no need to highlight every single line, it's not like someone else is talking Sep 15 15:31:38 also what? your device comes with proper voice recognition support (or su you believe)... which is called samsungime... which you deleted Sep 15 15:32:01 ravilov: nope that was the samsung keyboard Sep 15 15:32:16 ravilov: sorry I forgot to type that Sep 15 15:32:28 quit highlighting me Sep 15 15:32:33 ok Sep 15 15:32:48 i'm going to ask in #android-root now Sep 15 15:33:51 ok, but I still think your best bet is tracing the touch event with your local debugger Sep 15 15:51:41 ravilov: I figured out the problem Sep 15 15:51:53 ravilov: I forgot to compile the native part of the keyboard Sep 15 15:52:57 That's pretty funny. Sep 15 15:54:58 the fact he forgot an essential part of the keyboard, or the fact he can't stop highlighting people? :p Sep 15 16:00:03 so I wonder when they are going to name "L" Sep 15 16:00:29 'fall' Sep 15 16:03:12 "L" isn't the final name?? Sep 15 16:05:55 no, it's going to be key Lime pie Sep 15 16:09:36 Lime and Vodka Sep 15 16:10:08 mmm, nice Sep 15 16:21:08 Leeds: are you sure? because they’ve trolled us in the past Sep 15 16:21:11 i dont understand google API limits, i have a 20.000.000 courtesy limit Sep 15 16:21:13 has there been news? Sep 15 16:21:28 so 20m/mo or 24h? Sep 15 16:21:56 JacobTabak: the only thing I'm reasonably sure about is that we'll get L in the next couple of months... I'd *guess* we'll get the name when we get the release, give or take a day or two Sep 15 16:22:14 L will be the next couple of days :P Sep 15 16:22:19 I don't *think* they'll do the branding game again, because... well, it would just be a bit crass Sep 15 16:24:30 New Moto X, anyone? Sep 15 16:24:52 Ironthighs: yes please - do you need my address? Sep 15 16:24:57 lol Sep 15 16:25:12 oh its 20million day Sep 15 16:25:14 i thought it was like 20k Sep 15 16:25:16 the limit Sep 15 16:25:42 Leeds: I heard through somewhere that Verizon may not be getting the "Pure edition" Sep 15 16:25:49 Ironthighs: otherwise, it's a new phone... not sure there's anything special about it for developers, is there? Sep 15 16:26:29 Dunno. I just like the idea of enhanced features instead of tons of bloatware (besides the provider's) Sep 15 16:26:46 S Health, S Note, S etc Sep 15 16:26:52 yes, but... this is #android-dev, not #android, where such a thing would be on topic Sep 15 16:27:02 Thanks. I'll move to there Sep 15 16:28:06 Hi Sep 15 16:28:22 Is it possible to do fuzzy search in fts 3 or 4 in android? Sep 15 16:28:42 I'm reading the docs but it seems that "~" is not supported Sep 15 16:39:08 hi Sep 15 16:43:09 Does anyone knows a way to stream audio from android to a website? Im not getting good results on google cause it returns "inputstreams" results :p Sep 15 16:46:24 you can stream anything to anywhere with a custom made tcp/udp client/server architecture Sep 15 16:49:24 anyone do any OAuth with Android Studio? I'm assuming I don't want to commit my secrets to the repo. Is there a good way to include them with a non checked in file using gradle maybe? Sep 15 16:50:32 Just put them in a java/xml file that you don't check in Sep 15 16:51:04 mattblang: I put them in the gradle.properties and then add those to the BuildConfig in gradle, and not check in the gradle.properties Sep 15 16:51:06 put them in local.properties, in build.gradle use buildConfigField to toss them in BuildConfig.java with fallbacks Sep 15 16:51:32 Or that Sep 15 16:51:53 SimonVT, pieces029, JakeWharton thanks so much y'all! Sep 15 17:22:11 anybody work with ffmpeg before? I'm having an audio sync issue I don't understand how to fix. Would appreciate any help you can provide. My audio is longer than my video so the output has the last four seconds stuck on the last video frame while the audio continues. What is supposed to happen is the audio has to stop at the end of the video. Here's the code I have so far:http://pastebin.com/ViaACkJX Sep 15 17:28:02 interesting http://jaxenter.com/eclipse-to-get-android-injection-with-proteus-51116.html Sep 15 17:28:44 hello; i'm having some trouble importing a project created in android studio into intellij Sep 15 17:29:32 specifically, i can get the project to import after pointing the local.properties file to the right SDK dir and fixing some of the dependencies (e.g. i have play services 5.0.98 instead of the project's declared 5.0.77 version), but now i have like 30 build targets and i'm not sure which is the right one to run to build an APK Sep 15 17:30:12 on top of that, the project apparently has library references that are automatically built by gradle via some target, but i can't figure out which target that is (assembleAndroidDependencies wasn't it, at least) Sep 15 17:30:21 Anyone ever get a problem of maven deploy hanging in the middle of pushing an aar to a repo? Sep 15 17:33:52 actually, i need to do a bit more detective work on this...please disregard my questions above Sep 15 17:40:12 My Android SDK folder was taking up 12.5GB Sep 15 17:40:15 no wonder I am out of disk space Sep 15 17:40:19 How can I limit the size of my list adapter? Sep 15 17:41:10 I got rid of all SDKs below API 10, all Android 3.x images, all Intel system images, all glass and tv images... now down to 8.5GB Sep 15 17:43:25 hm, i'd like to get one of those Android One phones. Sep 15 17:43:39 updates from google for 2 years Sep 15 17:43:44 platzhirsch: that’s a strange question Sep 15 17:43:53 JacobTabak: do you think I don't have to worry about it? Sep 15 17:44:05 but seems only India for now Sep 15 17:44:22 I am using it to display comments, and I don't want to end up with a list of multiple thousand comments, all ending up on the heap Sep 15 17:44:31 i put a scrolllayout as the parent to my relativelayout but my relativelayout will not fill the scrollayout even tho it's set as fill_parent..whats the deal? Sep 15 17:44:36 platzhirsch: you are the one filling the adapter, aren’t you? Sep 15 17:44:38 it's behaving as if wrap_content Sep 15 17:44:41 JacobTabak: yes Sep 15 17:45:03 platzhirsch: so only fill it to the limit that you want Sep 15 17:45:35 JacobTabak: but I need to remove the old ones ;) the list interface doesn't do this conveniently Sep 15 17:45:48 so I need to manipulate the data list, readd it to the adapter, etc. Sep 15 17:46:11 ah that adds a bit more clarity to the question Sep 15 17:46:27 you should probably use a cursor adapter Sep 15 17:46:36 MartialLaw, if you set android:fillViewport on the ScrollView its content will always be >= the size of the ScrollView Sep 15 17:47:50 JacobTabak: why? Sep 15 17:48:44 Can anyone recommend any particularly good books for a high level intro to Android app dev? Especially for someone who has worked with Java before. Sep 15 17:48:58 platzhirsch: cursors dont keep the entire data set in memory Sep 15 17:54:16 Buuyo, "Android Programming: The Big Nerd Ranch Guide" is pretty slick, and "Android Programming: Pushing The Limits by Erik Hellman" Sep 15 17:55:53 Sweet. It looks like it might make sense to read one after the other. Sep 15 17:55:59 Thanks a lot. :) Sep 15 17:59:44 d.android.com Sep 15 17:59:48 best to read there if you're good with java Sep 15 17:59:56 books generally suck Sep 15 18:01:17 I'll take a look there too then. :) Sep 15 18:01:52 android changes to fast to write books about it Sep 15 18:02:24 thats why one reads documentation online ;-) Sep 15 18:02:37 yep Sep 15 18:02:42 Do the fundamental ideas change much? Like navigation from screen to screen and what not? Sep 15 18:02:56 yes Sep 15 18:03:08 not like on a monthly basis Sep 15 18:03:23 but from year to year.. yep (not always but sometimes) Sep 15 18:03:25 yes but you usually dont write books on monthly basis :) Sep 15 18:03:55 Is there any value in getting a sort of a high level overview from a book, even if it is slightly dated? Sep 15 18:03:58 just think of the lastest big changes in design Sep 15 18:04:05 based on the amount of research some people (who write books) seem to "do", it seems so, although ;-) Sep 15 18:04:09 fragments, actionbar Sep 15 18:04:15 navigation drawer Sep 15 18:04:16 I have five tabs and five fragments. each fragment needs to do an asynctask. if I click a tab, then another one and then go back to the first one clicked it will re-execute the asynctask. how do i save the state of a fragment that has already been viewed (without using fragmenttransaction's hide method)? Sep 15 18:04:21 if reading through a technicall book works for you just buy the big ranch nerd guide Sep 15 18:04:23 navigation up instead of back Sep 15 18:04:24 etc Sep 15 18:04:35 Buuyo, why not?.. android-4 seemed good to me (kuenneth, its in german) Sep 15 18:04:49 ultimatly you becomebetter by actually coding, so whatever sources you are using it doesn't matter as long as you are actually coding.. Sep 15 18:05:14 lasserix, not only coding, more talking/thinking about it Sep 15 18:05:25 no. its coding Sep 15 18:05:25 working code isn't automatically good code Sep 15 18:05:39 if you are learning its not about thinking its about getting familiar which is coding Sep 15 18:05:52 Certainly it's all of the above. Sep 15 18:05:55 lol. android dev is dumb. Sep 15 18:06:02 it's not about coding at all Sep 15 18:06:03 writing good code and actually coming up with a project, sure that takes thought in fact that's the best part of being a programmer is that you do get to spend a lot of time thinking Sep 15 18:06:11 it's about figuring out which non standard configuration is causing you problems Sep 15 18:06:23 Oh, I haven't filtered you on this channel yet, dogarrhea... Sep 15 18:06:35 lasserix, but getting it "right" in the beginning is a lot easier when not being stuck to old/odd habits Sep 15 18:06:42 but if you do not understand the code, then reading or thinking about it all you want won't help you get anymore. Sep 15 18:06:43 flan3002: u should filter john carmack too Sep 15 18:06:43 thats what i meant ;-) Sep 15 18:06:46 and linus torvalds Sep 15 18:07:27 that being said, http://www.amazon.com/Pro-Android-4-Satya-Komatineni/dp/1430239301 this book i've found to be very useless Sep 15 18:07:34 all the information is online Sep 15 18:07:45 th ebig nerd ranch guide is good because it takes you through integrated projects Sep 15 18:07:56 with some design principles philosophy Sep 15 18:08:01 John Carmack and Linus Torvalds must be obsolete useless pieces of shit since they don't like android development at all Sep 15 18:08:05 lasserix yeah , i had that Pro Android in the 2nd ed, it was terrible Sep 15 18:08:15 isn't that right? since they are having difficulty with android development, it's THEIR fault Sep 15 18:08:17 they're stupid Sep 15 18:08:19 right? right? Sep 15 18:08:36 dogarrhea do you do anything else beside try to inflame people ? Sep 15 18:08:44 i do have this one: http://www.amazon.de/Android-Apps-entwickeln-Galileo-Computing/dp/3836219484 .. its my only android book which i bought for my thesis Sep 15 18:08:46 are you like this is real life ? Sep 15 18:08:57 you do some small examples throughout the book, quite a good book i suppose Sep 15 18:08:58 John Carmack is a little senile "FPS shooters are just on the cusp! they're not stagnant" and then you look at destiny which had 500 MILLION Production budget and is getting "fell short of potential" reviews as far as game play Sep 15 18:09:07 Actuallly... I need to figure out how to filter people on multiple channels. :/ Sep 15 18:09:07 g00s_: do the people in this channel only blame people who have trouble with android development because they think it's that person's fault? Sep 15 18:09:07 it gets a lot of good reviews Sep 15 18:09:24 dogarrhea you need mental help Sep 15 18:09:33 John Carmack is a little senile "FPS shooters are just on the cusp! they're not stagnant" Sep 15 18:09:33 MartialLaw, which one? Sep 15 18:09:40 lol my point is proven Sep 15 18:09:43 * danijoo grabs some popcorn.. Sep 15 18:09:49 he said that the other day Sep 15 18:10:06 lasserix: you pay or your country pays for your education Sep 15 18:10:12 and guess what they teach you? Sep 15 18:10:19 Something that John Carmack wrote Sep 15 18:10:20 dogarrhea: im autodictact so... Sep 15 18:10:22 is there a super cool way to have a textview word wrap on word boundaries, particularly in languages like japanese, chinese, or (heaven help me) german? Sep 15 18:10:22 big nerd and reto are still the gold standards, but they will both be currently out of date. Sep 15 18:11:04 dogarrhea: that was just in the news the other day, you brought him as an example of... im not sure actually Sep 15 18:11:30 Niya: Semantic word boundaries or just seperated by spaces? Sep 15 18:11:32 Niya: what's the problem? Sep 15 18:11:57 lasserix: btw john carmack owned occulus before facebook bought them for 1 billion dollars Sep 15 18:12:03 he's not some senile old irrelevant shit Sep 15 18:12:09 you guys are retarded Sep 15 18:12:24 i said he was a little senile because of his inane comment about FPS shooters Sep 15 18:12:37 and he sold out to fb Sep 15 18:12:47 yea he "sold out" Sep 15 18:12:55 where's your billion dollars you uneducated little shit Sep 15 18:12:59 well when someone offers you a billion dollars you are an idiot to say no but still Sep 15 18:13:20 dogarrhea: you should cool off or go clean yourself up Sep 15 18:13:31 theres a job for SimonVT i guess. Sep 15 18:13:37 flan3002: lasserix: take, for example: 私の赤い車 it shouldn't split 赤い onto two different lines Sep 15 18:13:53 so not just splitting at spaces, but splitting properly based on the language Sep 15 18:14:29 yeah tokenization Sep 15 18:14:32 lasserix: what have I said that's wrong? Sep 15 18:14:34 that's usually a pain Sep 15 18:14:42 apparently i'm not the only one whose having problems with android dev lol Sep 15 18:14:47 there is any lightweightbaby image slider project? i need an image slider but im using google maps V2 in the same fragment activity, fear CPU consume :/ Sep 15 18:14:48 but everyone here seems to think i'm the minority Sep 15 18:14:48 That sounds difficult. You could probably build a trie of words from a dictionary and see if a word exists and maybe subclass EditText for this, but how much do you really need this? Sep 15 18:14:57 dk Sep 15 18:15:00 ^^ that's the general solution Sep 15 18:15:04 and they thinkt hat the fundamental contributers to computing are senile and useless Sep 15 18:15:08 dogarrhea: but you are the only one bitching arround here.. Sep 15 18:15:18 omg again ? Sep 15 18:15:44 dogarrhea: have you been sitting in your diaper too long or what? you really should chill out Sep 15 18:15:45 dogarrhea has been banned from many channels on the network for being a troll, so it's to be expected, danijoo ;) Sep 15 18:15:47 should i make my own imageslider? Sep 15 18:15:48 so basically this is like a club full of douches with similar douche like mindsets and when someone who has a correct view comes along, it's like waking up a hive of douches Sep 15 18:15:55 flan3002: it's rather important. for japanese i know how to do it based on a small set of rules, but the other languages are much more difficult Sep 15 18:16:02 unreal: ooh Sep 15 18:16:07 i gonna stop feeding then Sep 15 18:16:16 Niya: you could drop it in a horizontal scroll view Sep 15 18:16:19 Think I gave him about 5million chances myself before AKICK Sep 15 18:16:40 kroot kick * Sep 15 18:16:44 before the bugs you didn't want to admit were real annoyed you too much Sep 15 18:16:44 the old times Sep 15 18:16:52 lasserix: nope, it must wrap Sep 15 18:17:10 Niya: Grammar as well? Sounds... :/ Sep 15 18:17:17 Niya: ahh that's tough one then, i dont believe there is a general purpose solution Sep 15 18:17:30 since it involves per-language tokenization Sep 15 18:17:37 i think dogarrhea should be permabanned since he comes and goes over many months, he did this crap a whie ago Sep 15 18:17:46 which as flan said usually involves a per-language trie and dictionary lookup Sep 15 18:17:50 anyone know why an input manager method would be do nothing in "onDismiss()" of a dialogFragment but any other place in that fragment it's fine ? Sep 15 18:18:09 g00s_: i don't care. this channel is basically useless Sep 15 18:18:18 StingRay_: wrong window token? Sep 15 18:18:27 full of useless people who suck off of society and are "self educated" Sep 15 18:18:29 nope …same used on both calls Sep 15 18:18:36 Hey guys, how's the Android L preview rooting situation now? Sep 15 18:18:36 with no respect for real knowledge Sep 15 18:18:38 Yeah that's what i mean Sep 15 18:18:46 Niya: I'm just going to drop you with the overkill http://nlp.stanford.edu/ , which afaik does parse German. You don't want this though, that way lies insanity. :/ Sep 15 18:19:00 lasserix: flan3002: okay. well, thanks for the thoughts. Sep 15 18:19:05 lasserix the ui elements and their id/tokens still exist in onDismiss though right ? Sep 15 18:19:15 ohh dogarrhea please avail upon us your mighty wisdom or at least point us to an example of what represents the true majesty of divine knowledge Sep 15 18:19:23 dogarrhea: Did you get my code for you that showed you how to open a camera intent and fetch a user selected image? Sep 15 18:19:27 btw Sep 15 18:19:28 ? Sep 15 18:19:33 yes Sep 15 18:19:37 Did it work? Sep 15 18:19:40 StingRay_: i am just thinking if the dialogfragment takes over maybe using window token from activity is invalid for it? Sep 15 18:19:43 i'm taking a different approach now Sep 15 18:19:56 *for the IMM Sep 15 18:20:07 Alright. Sep 15 18:20:18 lasserix so could be a lifeCycle issue then :( Sep 15 18:20:23 balls Sep 15 18:20:41 are you doing keyboard stuff? Sep 15 18:21:04 no, I have a dialog for a code entry, keyboard left open when dismissed Sep 15 18:21:12 kitkat immersive mode Sep 15 18:21:44 yeah managing the virtual keyboard is a real pain Sep 15 18:22:22 ahh here Sep 15 18:22:24 i have a solution for you Sep 15 18:22:41 the trick is to put a delay Sep 15 18:23:11 StingRay_: http://pastebin.com/eXu1SMZT Sep 15 18:23:16 erm, then the view element I hang it off for the token really wont exist ? Sep 15 18:23:28 nah it doesn't matter Sep 15 18:23:43 you're talking about 200 ms of delay Sep 15 18:23:54 you can make it even less Sep 15 18:24:10 the problem is something to do with it not being created yet or something but anyways you might see if those methods work for you Sep 15 18:24:53 lasserix negative on that Sep 15 18:25:03 that didn't work? Sep 15 18:25:09 it did not Sep 15 18:25:22 doh Sep 15 18:25:45 Does anyone know library similar to ExoPlayer? Sep 15 18:25:57 for playing media files Sep 15 18:26:03 StingRay_: did you try? imm.hideSoftInputFromWindow(getWindow().getDecorView() Sep 15 18:26:03 .getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS); Sep 15 18:26:11 as I have problems with specific tracks in .m4a files Sep 15 18:27:02 StingRay_: http://stackoverflow.com/questions/16106486/how-to-hide-keyboard-on-dialog-dismiss Sep 15 18:27:49 when declaring a buildConfigField, how can I access proeprties defined in local.properties? Sep 15 18:27:52 on manifest flags …wtf Sep 15 18:28:29 oh, but no, dont have any of those Sep 15 18:29:06 whats better picasso or universal image loader Sep 15 18:29:23 cliffreich haven't used universal image loader, but picasso is pretty freakin sweet Sep 15 18:29:32 picasso because i never heard of the second one Sep 15 18:29:54 cliffreich universal is pretty good Sep 15 18:31:31 cliffreich better not to ask for random opinions though, try both and choose best fit Sep 15 18:31:33 code..code.code cod code Sep 15 18:32:39 i been trying UIL soo time for picasso Sep 15 18:32:50 there is any imageslider library? Sep 15 18:33:47 i found one Sep 15 18:33:56 but seems heavy Sep 15 18:34:25 hi Sep 15 18:43:01 i am testing my app in diferent devices, in a tablet my editext it is all black, background and text, how i can fix this? Sep 15 18:44:13 Is there a bug in DatePickerDialog that makes onDateSet get called twice? Sep 15 18:44:37 lasserix just fyi, it is to do with timing I think… cant have any delay and cant be within onDismiss Sep 15 18:45:08 just did some tests and works fine even from the click listener for a button that dismisses it Sep 15 18:45:38 Seems to happen for me and my coworker said that's the case. Then again I've heard him swearing in the other room for like half an hour now. Also facebook posts insulting android. Sep 15 18:45:38 odd, maybe it detaches from the context early on a fragmentDialog ? Sep 15 18:46:28 Syzygy_ you are doing something, a call, get or a set that calls it a second time Sep 15 18:46:36 no Sep 15 18:46:43 I remember having that, and ultimately was my fault Sep 15 18:47:14 I forget, there was something that triggers the observer, I never thought it would Sep 15 18:47:15 ok guys, big sigh here Sep 15 18:47:40 Syzygy_ but for the life of me cant remember what it was Sep 15 18:50:03 anyobyd? Sep 15 18:50:18 t0th_-_: it’s probably your theme Sep 15 18:50:27 StingRay_, http://pastebin.com/BzFJZk22 this is all I'm doing Sep 15 18:50:42 minus the active part, I just coded that in. Sep 15 18:51:10 Syzygy_ yes and it fires twice on creation ? Sep 15 18:51:29 StingRay_: can you do a callback to your activity and dismiss it from your activity? Sep 15 18:51:35 yeah Sep 15 18:51:56 or rather, not on creation but when I actually pick the date Sep 15 18:52:05 the pair gets added twice to my list Sep 15 18:52:06 yeah thats what I mean :) Sep 15 18:52:08 ok guys… trying to play an instagram video: h.264, 640x640, 1.34Mb/s… NOT avc. any ideas? Just get ‘cannot play this video’ in mediaplayer Sep 15 18:52:12 with the same value Sep 15 18:52:33 Syzygy_ I do remember this, I just cant for the life of me remember why Sep 15 18:52:48 this was over a year ago I think Sep 15 18:52:48 guess I'll have to do the active workaround Sep 15 18:53:46 lasserix well, I just now do it in a click listener, either the buttons or the fake one behind the dialog :) But shouldn't work this way Sep 15 19:01:24 ok how can i play this video in a mediaplayer http://distilleryimage7.s3.amazonaws.com/54b34796d9cf11e28a1a22000aa81ffa_101.mp4 Sep 15 19:01:24 aaaa Sep 15 19:01:49 nsfw Sep 15 19:01:59 lol wut Sep 15 19:02:19 (sigh) android and video Sep 15 19:02:32 oh wow, JacobTabak. I've never seen THIS one Sep 15 19:02:38 ;P Sep 15 19:02:46 I'm just playing. Sep 15 19:02:50 i just want this to play Sep 15 19:02:52 in my app Sep 15 19:02:54 QQQQQQ Sep 15 19:03:17 its regular h.264 not h.264 AVC… and it just can’t play it Sep 15 19:03:21 I've had trouble with that before too. I wish I could help. Sep 15 19:03:29 :( :( :( Sep 15 19:16:08 JacobTabak you handle AAC fine ? Sep 15 19:16:19 not sure :\ Sep 15 19:16:37 can you disable audio playback and check ? Sep 15 19:17:12 i’ve never tried that Sep 15 19:17:17 i’ll see if i can figure out how Sep 15 19:18:37 anyone know of any good free alternatives to eclipse? because, I don't know how much more crashing I can take. Sep 15 19:19:05 are you on a current version of both, eclipse and java? whats the crashing caused by (logfiles, etc.)? graphics maybe? Sep 15 19:19:11 boredDev: intellij / Androidstudio Sep 15 19:19:36 thanks, I'll have to check those out. Sep 15 19:19:49 which would you suggest over the other? Sep 15 19:19:58 depends Sep 15 19:20:00 AS is based on IntelliJ Sep 15 19:20:03 on what you like :) Sep 15 19:20:19 now is the time to do some googling of your own, boredDev ;) Sep 15 19:20:21 something that works :) Sep 15 19:20:22 but AS is basically intellij with everything that isnt android related stripped of Sep 15 19:20:35 hmm. I'll take it. Sep 15 19:20:42 and its beta still.. Sep 15 19:20:48 so be warned Sep 15 19:20:49 JacobTobak; have you wriked with video/audio on Android at the C level? Sep 15 19:21:15 thanks danijoo and ravilov Sep 15 19:22:00 JakeWharton you had mentioned earlier using a local.properties field in buildConfigField. you couldn't point me to an example of that could you? I've got the buildConfigField working, just can't figure out how to use a local.properties field Sep 15 19:22:31 System.getProperty should work Sep 15 19:22:38 valder: no i ahve not Sep 15 19:26:13 How do you think, what author means by this https://gist.github.com/olologin/1845a79870727730689f ? Sep 15 19:26:36 He creates observable and in the same place use it by observer (And only here) Sep 15 19:27:15 olologin: probably to do work on a diff thread Sep 15 19:27:33 But here it works in same thread Sep 15 19:27:42 maybe he forgot to specify subscribeOn() Sep 15 19:27:56 for another thread he needs to specify another option AFAIK Sep 15 19:28:07 .subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread()) Sep 15 19:28:13 he’s subscribing on IO and observing on main thread Sep 15 19:28:38 make sense? Sep 15 19:30:45 I'm don't know rxJava well, but for another thread AFAIK he need's this line .subscribeOn(Schedulers.newThread()) Sep 15 19:30:59 maybe make sense Sep 15 19:31:00 he has subscribeOn(Schedulers.io) Sep 15 19:31:33 io is a pool of threads equal to the size of virtual cpus Sep 15 19:32:05 JacobTabak: So it executes in another thread? Sep 15 19:32:15 yes, Sep 15 19:32:18 thanks Sep 15 19:32:31 actually that's compuation, io is just a pool that can grow or shrink Sep 15 19:32:36 but why he needs it? Getting cursor - so slow operation? Sep 15 19:32:49 yes Sep 15 19:32:50 olologin: should do all db queries on another thread Sep 15 19:33:03 thanks guys Sep 15 19:33:08 i understood it Sep 15 19:33:20 i just learned recently too Sep 15 19:33:39 the documentation is a little rough Sep 15 19:35:12 so im adding a native lib to my project in AS Sep 15 19:35:33 i realize i have to make a zip called armeabi, inside it lib/armeabi/*.so Sep 15 19:35:42 do i have to do that for arm, armeabi-v7a, and mips as well? Sep 15 19:37:56 Is there any naming convention for module names of android application? Sep 15 19:38:30 lasserix: it seems to not be set in stone Sep 15 19:38:36 when you create a new module they suggest you start with a capital letter Sep 15 19:38:43 but i dont like to do that Sep 15 19:38:48 event ho by default its 'app'? Sep 15 19:38:52 yea it makes no sense Sep 15 19:40:09 Should we compile with 19 or 20? Sep 15 19:41:08 lasserix if you do 20,i don't think you can submit your app to Play yet Sep 15 19:41:22 obviously the wearable part will have to be 20W Sep 15 19:41:23 ahh this is for sdk demo Sep 15 19:41:32 you can compile with 21 Sep 15 19:41:42 and submit Sep 15 19:41:49 just can’t targert 21 Sep 15 19:41:52 you can target 20 though Sep 15 19:42:17 there is no api 21 O.o Sep 15 19:42:57 ? Sep 15 19:43:05 yes there is? Sep 15 19:43:12 compileSdkVersion 21 Sep 15 19:44:15 its the L preview Sep 15 19:44:28 and if you’ve added L support to your app, you need to use it :) Sep 15 19:45:35 android Sep 15 19:45:37 oops :) Sep 15 19:45:52 lol what Sep 15 19:46:02 yeah sorry, my sdk manager only has up to 20 :) Sep 15 19:46:31 so who wants to help me figure out these native libs Sep 15 19:46:42 are you talking api or support library :P Sep 15 19:46:58 i just said above, compile SDK version = 21 Sep 15 19:47:14 if you dont use API 21 you can’t use material theme or any of the new APIs Sep 15 19:47:51 ok, so even though the sdk manager says 20L, you are saying its really 21 ? Sep 15 19:49:14 if you compile with 21, you can use L features and compile and release to lower versions Sep 15 19:49:32 http://cl.ly/image/422S170a273u Sep 15 19:49:54 you dont have that in your sdk manager? Sep 15 19:50:33 no, i don't Sep 15 19:51:34 does anyone know of an open source project that has decent photo selection / cropping / displaying (and ultimately uploading) functionality?? all the fragmentation in the native camera apps + no android cropping functions + dealing with memory resources to avoid OOM = very frustrating. Sep 15 19:51:43 lasserix so you see api 21 in your sdk manager ? Sep 15 19:55:36 JacobTabak this is what mine looks like http://i.imgur.com/zwpAVvt.png Sep 15 19:55:49 no Sep 15 19:55:50 just 20 Sep 15 19:55:53 lol wut? Sep 15 19:55:54 hehe, but i haven't seen it update anything in a long time. so maybe somehow its busted Sep 15 19:57:07 oh it was probably this Sep 15 19:57:07 http://www.reddit.com/r/androiddev/comments/297xli/howto_use_the_v21_support_libs_on_older_versions/ Sep 15 19:57:36 guess i forgot about it Sep 15 20:13:14 hi ! Sep 15 20:13:18 i got a question in android dev :D Sep 15 20:13:22 got a searchview Sep 15 20:13:31 and i want to make some "suggested search" Sep 15 20:13:43 but i don't want it to come from a database (or a cursor) Sep 15 20:13:48 can't find any documention on this Sep 15 20:13:54 can anyone help me ? Sep 15 20:14:33 http://developer.android.com/reference/android/widget/AutoCompleteTextView.html Sep 15 20:14:36 ^ Sep 15 20:14:50 can’t use a searchview thou then Sep 15 20:15:01 oh, ok Sep 15 20:15:08 that's kind of an easy response ^^ Sep 15 20:15:13 will try it :D Sep 15 20:19:26 SearchView is an AutoCompleteTextView Sep 15 20:26:04 ok Sep 15 20:26:08 autocomplete seems nice :) Sep 15 20:26:20 gonne read more of the docs to customize it Sep 15 20:31:47 anyone have any experience playing h.264 that mediaplayer can’t decode? Sep 15 20:32:21 just spent a few hrs trying to get this to work but i’m getting c++ crashes https://github.com/wseemann/FFmpegMediaPlayer Sep 15 20:34:49 Hi everyone Sep 15 20:37:37 how come browser and gallery can play this video but mediaplayer cannot -.- Sep 15 20:37:40 erf, autocompletetextview will only work if suggested begins with the searched value Sep 15 20:37:57 Oh, formatted computer, forgot to join here Sep 15 20:38:01 blusky: you can work around that Sep 15 20:38:04 damn no time to do any android dev ;( Sep 15 20:38:06 is there any "simple" view to suggest exactly what I want ? Sep 15 20:38:18 JacobTabak: can you guide me ? :D Sep 15 20:38:33 havent done it for a while but just look at the source code Sep 15 20:39:17 commonsware book got version 6 (kitkat + android studio + gradle) does anyone want a 6 month subscription? Sep 15 20:39:23 can i make multiple similar requests in volley by simply adding them to the request queue? Sep 15 20:43:10 I do startIntent(i) to launch my main app from the welcome screen. How do I then close the current welcome screen intent? Sep 15 20:43:17 close the activity Sep 15 20:44:49 call finish() before startActivity() Sep 15 20:44:54 finish this, start that Sep 15 20:54:55 anyone have any suggestions for styling SearchView? I haven't had any luck changing the "hint" color in the theme style. Is the best way to deal with this programatically? Sep 15 20:56:15 pmarino: what parts are you trying to style? Sep 15 20:58:02 pieces029, basically just the hint color. Sep 15 20:58:13 pmarino: I had to do some nasty stuff like they are showing in this post http://stackoverflow.com/questions/17791388/changing-action-bar-searchview-hint-text-color to get the exact styling I wanted. The nasty stuff being looking the id up getResources#getIdentifier Sep 15 20:59:36 pieces029: thanks for the info! i'll give that a try! Sep 15 21:00:50 pmarino: np, let me know if you need more direction. Sep 15 21:07:55 anyone know / have used plink ? Sep 15 21:08:07 with adb would be nice… cant seem to get a connection Sep 15 21:30:42 I have a brand new Mac Sep 15 21:30:47 make way, make way Sep 15 21:31:02 code will now write itself Sep 15 21:31:18 lol Sep 15 21:31:30 so pro Sep 15 21:31:46 at least now I can fail in STYLE Sep 15 21:31:47 * StingRay_ has 3 of them, and I assure you that doesn't happen Sep 15 21:31:53 god damn it Sep 15 21:32:10 Sicp: You need three more Sep 15 21:32:16 he didn't try 4 Sep 15 21:32:19 yep Sep 15 21:33:15 Is it possible to send notifications from a pure NDK app or do I need to call out to java? Sep 15 21:34:57 yea.... Sep 15 21:35:11 ruler501, send notifications? you mean show them? Sep 15 21:35:38 Mavrik yeah Sep 15 21:35:40 man sound is coming out of the whole laptop Sep 15 21:35:49 question about api access, can anyone add an android app to API access? Sep 15 21:35:57 i saved up for this, so I'm really like blown away Sep 15 21:36:03 ruler501, no, you need Java. Practically no OS interaction is possible from NDK. Sep 15 21:38:21 I am trying to view a Map but I keep getting the gray grid map. I added my key as well as app to API access, built a signed apk Sep 15 21:38:24 * ruler501 wishes google would give the ndk full os interaction features Sep 15 21:38:55 There is nothing to give, OS itself is written in Java. Sep 15 21:42:50 they could expose more via native_interface Sep 15 21:43:23 wtf, is there no way to disable EventBus logs? Sep 15 21:43:36 Is it possible to remove an item from a layout, but leave it there, just for animation purposes? I want to fade out an item Sep 15 21:43:51 yea of course you can do that Sep 15 21:44:04 .setAlpha(0) on it Sep 15 21:44:10 0f Sep 15 21:44:58 Sicp: thanks Sep 15 21:48:00 Should I create a different keystroke for each application or should I use the the same one for each application? Sep 15 21:50:39 man what? Sep 15 21:50:50 do one for each application Sep 15 21:50:58 its..better Sep 15 21:51:41 Sicp: ok thanks Sep 15 21:51:48 anytime bro Sep 15 21:52:00 erm Sep 15 21:52:08 yep, anytime bro Sep 15 21:52:12 ok…. keystores Sep 15 21:52:23 for each application Sep 15 21:52:32 he typed keystrokes Sep 15 21:52:39 yep Sep 15 21:52:48 freaky Sep 15 22:00:55 Any idea why an app would not be found via PackageManager with getPackageInfo but if i manually go through the list of getInstalledPackages it's there? Sep 15 22:01:45 darken: are you using the GET_UNINSTALLED_PACKAGES flag? Sep 15 22:03:37 JesusFreke, nope Sep 15 22:03:47 both with flag 0, Sep 15 22:04:35 to be more specific it's happening on the bluestacks emulator, the "bluestacks" apps, are all showing this behavior Sep 15 22:06:33 Dunno, it's possible they modified the framework for their emulator or something. Sep 15 22:08:01 Maybe some misguided attempt to hide themself being "a bluestacks emulator" ? Sep 15 22:08:21 I'll file it under platform bug Sep 15 22:08:32 in my mental tracker :o Sep 15 22:15:51 Trying to convert a String to a Bitmap. Please help: http://pastebin.com/8yDyAQXB Sep 15 22:20:03 surf2b1 maybe encoding of commandline output, or other crap that it outputs, but why if you dont mind me asking ? Sep 15 22:21:58 i have a scrollview as the parent to my relativelayout and my relativelayout is set to fill_parent on width and height but it is behaving as if wrap_content were set Sep 15 22:22:18 StingRay_: Writing a file manager. need root to show images I don't have permissions to Sep 15 22:23:41 android:fillViewport="true" ? Sep 15 22:24:52 I am getting grey screen map, I have created a key, did everything the way I am supposed to Sep 15 22:24:58 anyway to trouble shoot this? Sep 15 22:26:07 I see: Sep 15 22:26:10 https://www.irccloud.com/pastebin/TLMrG5N1 Sep 15 22:28:41 surf2b1, have you checked the content of your of your "str" ? Sep 15 22:29:20 yes, looks to be correct. I'll run a couple more tests to make sure... Sep 15 22:30:33 'of your of your' Sep 15 22:35:35 Hi everyone Sep 15 22:37:13 how do i make multiple similar requests with android volley? Sep 15 22:37:25 darken: Looks to be failing with a normal file too. My test: http://pastebin.com/x5BjyDdC Sep 15 22:38:36 surf2b1, thats a very vague description lol, what's the content of str1 and str2? Sep 15 22:38:45 empty? same? different? Sep 15 22:38:50 same Sep 15 22:39:01 same as in a huge ass string? Sep 15 22:39:12 how do i make the same request multiple times with android volley? Sep 15 22:39:41 is a request removed from the queue after it's fulfilled? Sep 15 22:41:33 possibly cat and your FileUtils.readFile don't return the data in the right representation Sep 15 22:42:41 load the same bitmap directly and convert it to the same representation and then compare it Sep 15 22:43:58 yeah, possibly. This is the String: http://pastebin.com/ZPQdf5yC This is the image (a.png): http://i.imgur.com/YGVfivI.png Sep 15 22:46:10 anyone? Sep 15 22:47:08 emacster sure if some1 is going to answer, they will without prompts Sep 15 22:51:55 surf2b1, that doesn't look like base64 enconding to me Sep 15 22:52:41 surf2b1, http://base64online.org/encode/ Sep 15 22:52:53 I want to install my app a second time on the device, for a completely different version. What should I change in AndroidManifest.xml ? Sep 15 22:53:14 johnflux_, packagename Sep 15 22:54:25 darken: hmm, git grep -i "package" | grep -i name Sep 15 22:54:29 darken: it's not matching anything Sep 15 22:54:57 if it's a gradle project it might be in the gradlefile Sep 15 22:55:14 darken: That was the output of cat /data/local/a.png or FileUtils.readFile. This is the encoded string done in getBitmapFromString: http://pastebin.com/ugLHR8FN Sep 15 22:55:15 it is Sep 15 22:56:40 surf2b1, why do you think your readFile or cat gives you base64 encoding? Sep 15 22:57:07 darken: I don't Sep 15 22:57:45 surf2b1, how can your code work then? Sep 15 22:58:12 String encoded = Base64.encodeToString(str.getBytes(), Base64.DEFAULT); Sep 15 22:58:22 byte[] imageAsBytes = Base64.decode(encoded.getBytes(), Base64.DEFAULT); Sep 15 22:58:30 bmp = BitmapFactory.decodeByteArray(imageAsBytes, 0, imageAsBytes.length); Sep 15 22:58:35 oh deer Sep 15 22:58:39 from first pastebin ^^ Sep 15 22:59:06 surf2b1 does that not all fail if "str" is not Base64 ? Sep 15 22:59:13 I think thats the point Sep 15 23:01:03 Maybe I'm just retarded but I thought Base64.encodeToString(str.getBytes(), Base64.DEFAULT) encodes it to base64. Sep 15 23:01:12 surf2b1, did you post your readFile method somewhere? Sep 15 23:02:17 darken: http://pastebin.com/hbvczN6M Sep 15 23:04:02 surf2b1, I'm not sure what exactly goes on when doing CAT on a file, but then you are additionally moving that through an (to me) unknown Shell (that propbably wraps Process + IN/OUT/ERR) which then returns that data after a few conversions on it's own Sep 15 23:04:46 it's not standing very safely on it's feet "out in the wild" (gplay) Sep 15 23:05:29 why are you appending new lines to the file output? and reading it linewise? Sep 15 23:06:05 you want the raw files, preferrably in bytes, so you can hand it to Base64.encodeblubblub Sep 15 23:06:53 read an image like it's a text file, then adding new lines (modifying the data), that does not work Sep 15 23:09:23 darken: I got it working now. http://pastebin.com/QZgi4Jt8 Sep 15 23:09:55 surf2b1, is this going to be a pet project or something you want to put on GPlay? Sep 15 23:10:03 yes Sep 15 23:10:25 so both? Sep 15 23:10:59 sorry, gplay Sep 15 23:11:26 i think you don't have "base64" on every device Sep 15 23:11:42 true, I'll test for it. Sep 15 23:11:55 and most likely have my own busybox binary in assets Sep 15 23:12:31 also you can't use your own busybox from assets or your files on all devices with root Sep 15 23:12:50 I saw ES File Explorer shows images that don't have readable permissions so I was trying to see if I could figure out how to do it myself Sep 15 23:13:05 and remember to sanitize the image path and name Sep 15 23:13:45 ADT is fun :D Sep 15 23:14:02 Almost makes me wish I used ADT instead of an old laptop for XBMC Sep 15 23:14:09 it's like Chromecast + XBMC :D Sep 15 23:15:00 surf2b1, ESFE could also copy the images to a temp folder for previews or change permission, but your idea is the cleaner version i hope they use too Sep 15 23:21:19 Afzal ? Sep 15 23:22:12 StingRay_, the Android TV developer kit Sep 15 23:23:21 Afzal ah, good then ? Sep 15 23:24:10 It's pretty good, serves my use case at least. Right now, I use both XBMC on a laptop as well as a separate Chromecast Sep 15 23:25:16 please, I am requesting a json with "created_at":"2014-09-15T22:18:39.080Z"... Im trying to parse it with Gson.. so I instantiate the GsonBuilder with .setDateFormat("yyyy-MM-dd'T'HH:mm:ssZ") but im getting a "com.google.gson.JsonSyntaxException: 2014-09-15T22:18:39.080Z"... Sep 15 23:25:38 anyone know the correct pattern? Sep 15 23:30:26 boy that date format sucks ass Sep 15 23:34:49 desmin88, its a Rails4 format.. Sep 15 23:35:14 yeah Sep 15 23:37:10 theres another strange behaviour.. I GET a "foo_name:{}".. but I POST a "foo_name_attributes:{}"... Sep 16 00:02:51 hey all Sep 16 00:03:05 RxDx, your date format is wrong, obviously Sep 16 00:03:11 you have .millis in the timestamp Sep 16 00:03:13 but not in your format Sep 16 00:03:28 any one know why a S3 would drain battery in flight mode at a 45 degree angle on a graph. I did a factory reset and tried a know-working battery too Sep 16 00:06:35 pfn, ahh ok.. i just removed the Z and works fine.. thanks :) Sep 16 00:10:56 darkdrgn2k thats more a user support question, try in #android-root Sep 16 00:11:16 yeh but im thinking it may be hardware... Sep 16 00:11:26 or some special mensu or soethign Sep 16 00:11:29 well this aint hardware support either :) Sep 16 00:11:41 hehe Sep 16 00:11:52 who was it yetsterday that was comparing picasso and universalimageloader ? Sep 16 00:12:12 there is no comparison Sep 16 00:12:15 picasso > UIL Sep 16 00:12:20 yeh but who knows hardware better then developers ;) Sep 16 00:12:25 desmin88 in what way ? Sep 16 00:12:25 ... i guess java developers :-P Sep 16 00:12:28 darkdrgn2k: still the wrong place. Sep 16 00:12:30 sorri couldnt resist Sep 16 00:12:37 StingRay_: every. Sep 16 00:12:44 fair enough ive taken my q to another channel Sep 16 00:12:54 desmin88 so scroll listeners more effective ? Sep 16 00:13:07 wat Sep 16 00:13:34 the ways you can plug it into listViews to not load on a x threshold when scrolling Sep 16 00:13:41 scrollListeners Sep 16 00:13:43 :) Sep 16 00:13:46 oh Sep 16 00:13:49 okay, you got me there. Sep 16 00:14:35 point is I know picasso does not have many things UIL does Sep 16 00:14:46 but I wanted to know from someone who has used/tried both Sep 16 00:14:50 that's a feature Sep 16 00:16:05 JakeWharton tis mentioned you would be implementing scroll listeners in 2.3.4 Sep 16 00:16:14 reading about it on GitHub Sep 16 00:16:15 2.4 Sep 16 00:16:22 oh…ok Sep 16 00:17:33 JakeWharton did you take out fade() ? I see mentions of it from few months ago Sep 16 00:17:42 there never was one Sep 16 00:18:01 there's noFade() only Sep 16 00:18:08 oh thats on a fork… sorry Sep 16 00:19:31 JakeWharton: I may or may not read your reddit user page frequently to see if you've dropped any android knowledge bombs. Sep 16 00:20:30 Regarding fragments and http://www.reddit.com/r/androiddev/comments/2gam32/is_fragment_the_way_to_go/ckhsuv3 , what limitations have you encountered with them? I know i have my issues with them but your use cases are probably a bit more involved Sep 16 00:27:20 desmin88: usually just me complaining about people who are wrong on the internet Sep 16 00:27:27 oh Sep 16 00:27:53 hehe thats pretty common on /r/androiddev Sep 16 00:28:00 yep Sep 16 00:28:37 the limitations are the opaque nature of the fragment manager Sep 16 00:28:56 you have to code against its implicit contracts when you are doing anything semi-fun Sep 16 00:29:19 i just want to be able to inspect and mutate its internal state rather than having to try to maintain my own state synchronized with it Sep 16 00:31:05 would you say then that fragments as a concept for reusable ui components are nice Sep 16 00:31:23 but the way theyre managed is bad? Sep 16 00:32:25 the controller concept is nice Sep 16 00:37:30 what is to prevent a person from doing a hostile take over of a domain for api access? Sep 16 00:39:30 wat Sep 16 00:45:26 im using cancan.. and defined in ability that user "can :read, CheapBeer" but im getting false on "can? :read, @cheap_beer" Sep 16 00:45:37 how can I correct define that ability? Sep 16 00:45:57 sorry, wrong channel.. Sep 16 01:14:10 * StingRay_ is beginning to hate kitkat and dialogFragments Sep 16 01:15:24 i like kitkats, especially the caramel ones Sep 16 01:17:24 nick is a bleach ref yes ? Sep 16 01:17:54 * desmin88 hates fragments in general Sep 16 01:20:15 bleach - yes Sep 16 01:25:10 I like chunky kitkats, and I cannot lie Sep 16 01:43:44 hi, I'm looking for a device that can be used for GPS tracking and needs to be cheap. Thus, GPS, comms e.t.c... anyone got any suggestions? Sep 16 01:44:13 ahhughes you sure you are in the right channel ? Sep 16 01:44:39 yes Sep 16 01:44:50 perhaps I should say "android device" Sep 16 01:45:21 this is still not much to do with buying advice for android stuff :) More just android app development Sep 16 01:46:40 understood, given the nature of my requirement I thought I might get a better audience here than other channels (this is not typical phone/tablet dev) Sep 16 01:48:22 essentially every mobile Android device has GPS Sep 16 01:49:49 thanks, Im looking for something small form factor Sep 16 01:50:17 do any of the wear devices support 3g? Sep 16 01:51:19 good point - no... Samsung has a Tizen watch which is standalone, and there have been pretty strong hints that Wear devices with GPS are coming, although not necessarily with cell data Sep 16 01:58:53 I have push notification widget, which point to Actiivty C. However, a parent activity of C is B, and B’s is A. How can I bring all those Activities in stacks? Sep 16 01:59:27 so, by back button in C, bring B, and later A Sep 16 02:02:55 kamol TaskStackBuilder Sep 16 02:03:26 thank you StingRay_ ! Sep 16 02:06:44 i have a rect that i made, and want to rotate it in 45 degree increments around the perimeter of a circle… any idea how i can do that? Sep 16 02:51:58 Leeds hows typhoon going Sep 16 02:54:38 oh oh Sep 16 02:56:20 yeah …though could be extended toilet break Sep 16 02:56:28 so dont worry quite yet **** ENDING LOGGING AT Tue Sep 16 02:59:58 2014