**** BEGIN LOGGING AT Fri Oct 11 02:59:58 2013 Oct 11 03:00:22 shaun413: make a compass that looks like an old school compass Oct 11 03:00:30 nah Oct 11 03:00:39 do you guys know of a good site that blogs about android apps Oct 11 03:01:25 http://www.androidcentral.com/ ? Oct 11 03:01:40 I got it, an app idea app, that users can post ideas of apps into Oct 11 03:02:08 skywell anything else Oct 11 03:02:32 linuxuz3r: http://androidandme.com/ Oct 11 03:02:44 http://androinica.com/ Oct 11 03:02:57 http://www.droiddog.com/ Oct 11 03:04:27 shaun413: picture to text to speech app. Oct 11 03:04:29 anyone know if there is a dev channel for UI design? Oct 11 03:04:38 picture? Oct 11 03:05:18 take a pic with camera, use tesseract to grab text, have the phone say the tetx Oct 11 03:05:20 text* Oct 11 03:05:44 that would take him 24 years Oct 11 03:06:09 hey! Oct 11 03:13:51 that exists Oct 11 03:14:26 of course it does. Oct 11 03:14:30 ha Oct 11 03:15:58 shaun413 i have an idea; can you write some kind of viewer for a pandaboard so i can deploy / test my apps there, but tunnel he screen like its running in a emu window on my box? Oct 11 03:16:08 what? Oct 11 03:16:19 screen and keyboard ;) Oct 11 03:16:24 hmm Oct 11 03:17:24 kinda like a VNC Oct 11 03:18:23 or a beaglebone Oct 11 03:19:11 i think google should have done something like this a long time ago, since the emu sucks. they should have provided images for something like this http://beagleboard.org/Products/BeagleBone%20Black Oct 11 03:19:25 and then you just ran a viewer on your machine; to interact with it Oct 11 03:20:32 still 1/2 the cost of a yearly iOS membership :D Oct 11 03:21:40 theres remote desktop for android Oct 11 03:22:09 I tested it, pretty effective, besides from rather low speed for screen draw Oct 11 03:22:33 i'm trying to avoid the process of registration in my app. is it secure to authorize user with his android_id and phone number? Oct 11 03:24:11 golubeff, what happens when he changes phones and can't use it because the id doesn't match Oct 11 03:24:37 Q48VW: that's fine, i want my app to be linked to a specific device Oct 11 03:24:43 ah Oct 11 03:25:03 I thought you meant preventing apk sharing and such Oct 11 03:25:28 Q48VW: no, no, not at all Oct 11 03:25:46 Q48VW: just want to get rid of registration activity in my app Oct 11 03:25:52 gotcha Oct 11 03:27:26 http://android-developers.blogspot.hk/2011/03/identifying-app-installations.html Oct 11 03:30:48 Leeds, well, yes, I can submit my Android ID, but what prevents an intruder to use my Android ID to get a valid session? Oct 11 03:31:06 er... what? Oct 11 03:32:19 My goal is to authenticate a user. It means server must be sure, that this specific request is coming from this specific device, not from another device, which is sending spoofing traffic. Oct 11 03:33:57 then you should use actual authentication Oct 11 03:34:28 agh Oct 11 03:36:17 netburst Oct 11 03:37:43 you can hash together a few unique IDs on the phone, but be careful doing so ( see security vulnerabilities in grindr/blinder ) Oct 11 03:38:32 bankai_: what exactly I should be careful about? Oct 11 03:38:41 bankai_: what kind of vulns looking for Oct 11 03:39:21 certain things can be spoofed, but if you tie together several identifiers and hash them, you can reduce the risk Oct 11 03:39:41 as as leeds said, you're better to just use proper auth ( OAUTH for example ) Oct 11 03:41:54 bankai_: how can it be dangerous if it's hashed out. i like the way Blackberry identifies their users on bbm. there's no registration/login/anything. i just launch an app and it works. Oct 11 03:45:28 which has better android support; beagle or panda board ? Oct 11 03:45:37 ron_frown would know that ^^^ Oct 11 03:57:39 do you guys thing these outfits which go around offering to "boost your rating" (adding reviews / etc) also pick vulnerable projects and sink their ratings … while offering a lifesaver ? Oct 11 03:59:24 If they'll cheat the one they'll cheat the other Oct 11 04:00:13 then put up your mugshot and charge to take it down Oct 11 04:00:44 hi Oct 11 04:01:50 when i use a title without logo in ActionBar don't work click to back Oct 11 04:02:42 when i use logo png and i click on logo app to back previous screen but when i use title don't work the click Oct 11 04:03:25 are those questions? Oct 11 04:28:07 You shouldn't work the click but gently ease into it. Oct 11 04:28:48 Too many people force the work the click but the work the click is overbearing and makes it self-conscious click so you want to reassure it of its necessity and ease into the work the click role Oct 11 04:30:31 capella, my question... is: how can i improve click on title of ActionBar? Oct 11 04:30:50 Hi, if I've got listview items that aren't taking up the entire space of their respective layout, like Google "card" style. How do I hightlight the select element's sub view (the content view)? Oct 11 04:33:21 you mean how do you only highlight what they're taking up, and not the entire row? Oct 11 04:33:41 (there are also libs that emulate the card style; if that's your end goal I'd use one of them) Oct 11 04:35:21 as far as only highlighting your view and not the whole item row in listview - you'd have to override / turn off highlighting on the list view, then catch the event on your view. I don't recall the calls specifically but that should get you what you need. You can set if the listview row is clickable - actually if something inside it is clickable, it should disable the list row, so you could maybe get away with setting your view clickable and setti Oct 11 04:35:21 ng the background to the selectable attribute to get the highlighting effect Oct 11 04:36:56 dragorn: Yes, that's what I mean. Yeah, I'm already pretty close and basically just need the highlighting. Oct 11 04:37:05 Sorry, terribly late reply. Oct 11 04:37:33 not really, only typed that a minute or two ago Oct 11 04:38:24 so try setting your view clickable=true, and then background to "?android:attr/selectableItemBackground" Oct 11 04:38:51 on 4.x (or maybe 3.x, anyhow not 2.x) that will get you the on-click highlighting Oct 11 04:38:58 there's something similar in ABS Oct 11 04:38:59 But the background is already set to the card style background... Oct 11 04:39:09 I'm support 2.1 Oct 11 04:39:12 unfortunately. Oct 11 04:39:20 you'll have to modify the card style background to handle a click event and change Oct 11 04:39:40 I'll look into the libraryies I think lol. Oct 11 04:39:45 libraries* Oct 11 04:39:46 which i've never had to do, google up selectableItemBackground and you should find what you need Oct 11 04:39:50 it'll just be a style setting Oct 11 04:40:04 honestly, probably easier to use a lib, yeah Oct 11 04:40:20 Thanks for the help. Oct 11 04:40:21 and possibly more consistent, too, which is a big thing Oct 11 04:40:38 unless you're REALLY good at matching googles cards theming Oct 11 04:41:11 Yeah lol Oct 11 04:45:10 Guys I'm in a pickle. Oct 11 04:45:45 How can my main activity support actionbarcompat (ActionBarActivity) and also be a fragment activity for actionbar tab swiping? Oct 11 04:48:06 make it an actionbaractivity and use compat.v4 fragmentstateadapter Oct 11 04:48:13 it's actually in the examples for actionbar stuff Oct 11 04:48:31 Nay, target API level 16 as a minimum. Oct 11 04:48:57 targeting api 7 Oct 11 04:49:06 dragorn: thanks, i'm daft. Oct 11 04:49:15 desmin88: http://kismetwireless.net/gitweb/?p=android-smarterwifi.git;a=blob;f=SmarterWifiManager/src/main/java/net/kismetwireless/android/smarterwifimanager/MainActivity.java;h=5424d167dff4fb375d5a1043469f7f0e89b2b673;hb=HEAD Oct 11 04:49:15 7 ? Oct 11 04:49:35 g00s: yep, api 7 Oct 11 04:49:35 desmin88: is a compat main + actionbar + tabpager Oct 11 04:50:03 desmin88: for my needed levels of compat, anyhow, you should be able to get from there to something for whatever api levels you need Oct 11 04:50:09 thank you. Oct 11 04:50:31 desmin88: that's actually actionbar + nav + tab pager Oct 11 04:50:43 ah Oct 11 04:50:54 same effort really Oct 11 04:51:35 no, i lie Oct 11 04:51:39 shit, ignore that url Oct 11 04:51:47 i haven't pushed my new UI code to pub git yet Oct 11 04:51:48 ok. Oct 11 04:52:30 what is the purpose of homeasupenabled[true/false] around the nav mode setting? Oct 11 04:52:42 desmin88: http://durandal.kismetwireless.net/~dragorn/MainActivity.java Oct 11 04:52:55 danke. Oct 11 04:53:04 that's the compat ab + nav drawer + scrollable fragment pager Oct 11 04:54:04 should i be doing the homeasupenabled[true/false] before after i set the navigation mode? Oct 11 04:54:41 I don't think it matters if you set it before or after Oct 11 04:54:54 okay Oct 11 04:54:56 tho i guess if it acts wacky in one, set it to the other :P Oct 11 04:55:07 yea Oct 11 04:56:05 also of note in that code, onPostCreate and onConfigurationChanged overrides for remembering tab and drawer states Oct 11 04:56:17 and onSaveInstanceState Oct 11 04:56:55 otherwise you'll get weird behavior when you rotate - generally the fragmentstatepager will remember where you left your tab, but the actionbar won't, and then scrolling is very odd for the user Oct 11 04:58:06 i see Oct 11 04:58:44 thanks for the help Oct 11 05:19:38 anyone tried out codeNameOne? Oct 11 05:22:18 first time i heard of it Oct 11 05:22:59 all their examples look like poop though Oct 11 05:26:58 JakeWharton if you're around, have you ever used the gradle multi-project builds? i'm trying to figure out when they are worth it vs just having separate top level library-projects Oct 11 05:27:22 i have a repo with 16 modules and two apps Oct 11 05:27:53 hm, is this on github ? :) Oct 11 05:27:58 no. work Oct 11 05:28:01 ah, ok Oct 11 05:28:23 it's no different than any other multi-module gradle build Oct 11 05:29:40 JakeWharton: Any idea why your disklrucache may throw an exception like the directory is invalid at startup, or something like that? Oct 11 05:30:23 not without more info Oct 11 05:31:13 JakeWharton: another question... you seem to be pretty familiar with a lot of libraries... What would you use for loading images, and network requests? volley? picasso? okhttp? something else? Oct 11 05:32:03 i mean, i wrote most of Picasso and contribute heavily to OkHttp... Oct 11 05:32:25 JakeWharton: how would you compare it to volley? Oct 11 05:32:40 for images? Oct 11 05:32:52 JakeWharton: for caching images.... Oct 11 05:33:05 and then volley vs okhttp... Oct 11 05:33:14 those are apples and oranges Oct 11 05:33:20 if you're using volley, use it with okhttp! Oct 11 05:34:17 I may not know exactly what each library offers Oct 11 05:34:39 okhttp is a standalone implementation of HttpUrlConnection with more features than the native version Oct 11 05:34:53 JakeWharton: is it faster and lightwayer? Oct 11 05:35:03 do you know this one: https://github.com/nostra13/Android-Universal-Image-Loader ? Oct 11 05:35:10 of course Oct 11 05:35:18 that's what I link when I show people how not to make APIs Oct 11 05:36:10 what dont you like about that one? Oct 11 05:37:17 well, the API is nothing short of a train wreck on top of a sinking ship inside a star going supernova Oct 11 05:39:09 hey Guys Oct 11 05:39:17 I like picasso for image loading Oct 11 05:39:25 I'm trying to use Android Studio [trunk] Android SDK is not specified or cannot be parsed Oct 11 05:39:48 I get this error, although Android SDK is shown in default project settings ? Oct 11 05:41:44 JakeWharton: any particular concrete examples? Oct 11 05:42:01 of their bad API? just read that README Oct 11 05:43:00 the configuration options are insane and conflate any actual utility Oct 11 05:43:26 JakeWharton: what do you think of https://github.com/square/picasso? Oct 11 05:43:30 the defaults are terrible Oct 11 05:43:34 desmin88: i wrote that Oct 11 05:43:44 no fuckin shit, eh? Oct 11 05:43:56 good work Oct 11 05:44:13 thanks. it was me and one other all-around badass i work with Oct 11 05:44:24 he deserves a lot of credit for pushing v2 through Oct 11 05:46:35 JakeWharton: Can you take a look at this one: http://pastebin.com/kG20q70j ? Oct 11 05:47:47 what version are you on? Oct 11 05:50:16 1.3.1 Oct 11 05:53:32 JakeWharton: So your advise would be to use Picasso on top of Volley on top of okHTTP? Oct 11 05:53:47 upgrade your disklrucache Oct 11 05:54:28 Picasso sits on top of an HTTP client like HttpUrlConnection or OkHttp Oct 11 05:54:40 you will only get disk caching on pre-ICS by using OkHttp Oct 11 05:55:45 JakeWharton so about the gradle multi-project build; do the sub-projects ever publish artifacts to a repository? or - when that would be desired - is that the case when you break it out into its own project ? Oct 11 05:56:42 nobody in the repo publishes Oct 11 05:56:52 the two apps in the repo are the consumers Oct 11 05:57:12 modules would be broken out if there were consumers outside of the repo or something was going open source Oct 11 05:57:33 ok, thanks Oct 11 06:01:26 <^cheeky> blhh.. its soo hard to import a jar to android studio :( Oct 11 06:03:35 compile file('./foo/bar.jar') Oct 11 06:03:42 gradle > refresh Oct 11 06:03:44 done Oct 11 06:04:23 easy. breezy. beautiful. gradle girl. Oct 11 06:04:40 <^cheeky> :/ Oct 11 06:04:42 <^cheeky> :( Oct 11 06:05:11 <^cheeky> been @ this for hours, tried different permutations of methods google gave me Oct 11 06:07:01 <^cheeky> JakeWharton: the compile line goes into the build.gradle file right Oct 11 06:07:03 JakeWharton: what's pre-ICS? Oct 11 06:07:13 ^cheeky: yes. in dependencies Oct 11 06:07:31 gavilan2: cupcake, donut, eclair, froyo, gingerbread, honeycomb Oct 11 06:07:56 ahhh okay Oct 11 06:08:16 JakeWharton: Does OkHttp implement disk caching? Oct 11 06:08:24 yes. Oct 11 06:08:38 JakeWharton: What's the difference between volley and OkHttp then? Oct 11 06:09:00 volley is a high-level API and image downloder written on top of an HTTP client Oct 11 06:09:05 OkHttp is an HTTP client Oct 11 06:10:25 <^cheeky> JakeWharton: thats what i did, i even placed the jar in libraried folder in my project structure Oct 11 06:11:15 <^cheeky> *libraries Oct 11 06:12:52 What language is used to edit Android Source Code? Oct 11 06:13:06 brainfuck Oct 11 06:13:08 JakeWharton: What would be the advantage of using picasso with voley, rather than using voley alone? Oct 11 06:13:41 Tripplemin: Java and C Oct 11 06:13:46 oh.. Oct 11 06:13:50 and wat IDE? Oct 11 06:13:55 any Oct 11 06:14:01 Kay Oct 11 06:15:19 hey guys, I am following this android guide to create a settings page: http://developer.android.com/guide/topics/ui/settings.html#Fragment . The problem is it only works for android 3.0+, I have tried extending fragmentActivity and using getSupportFragmentManager but it's not working. Can anyone guide me? Oct 11 06:15:30 gavilan2: Picasso is purpose-built at both the API level and underlying library-level for image downloading, transforming, and caching. Volley is multi-faceted providing both image downloads and server calls through the same rails. Oct 11 06:16:07 JakeWharton: so... what does Picasso offer than volley doesn't? Oct 11 06:16:41 easier integration, better API, built-in image transformation support Oct 11 06:17:00 k Oct 11 06:17:16 does picasso support multiple CDNs? and dynamic priorities? Oct 11 06:17:46 multiple CDNs? give it whatever url you want and it hands it off the the underlying HTTP client. Picasso doesn't care Oct 11 06:17:53 does actionbarsherlock have it's own way of doing the settings page. I am reading in some comments on stackoverflow that I should be using sherlockpreferenceactivity Oct 11 06:17:53 what are "dynamic priorities"? Oct 11 06:18:00 JakeWharton: I have 2 urls for the same image.... Oct 11 06:18:14 JakeWharton: sometimes the CDNs go down so.... Oct 11 06:18:15 no Oct 11 06:18:24 :( Oct 11 06:19:03 JakeWharton: dynamic priorities, is that I put some images to download, but then the user does something and I tell it, wait, do these now because they are more important, finish does ones later.... Oct 11 06:19:17 I'd actually need that for network requests too Oct 11 06:19:34 BTW: does okHTTP block 1 thread per request? Oct 11 06:19:47 or does it do truly async I/O? Oct 11 06:20:49 <^cheeky> i spent .. 3 hours .. trying to sort this jar file :/ i fail .. i guess ill just have to write code .. and put it together myself .. and i sucuuuuck Oct 11 06:21:01 v2 in development does fully async for spdy/http2 and then hands off to a single thread after buffering a small amount to hand off to the caller Oct 11 06:22:02 the current v1 is just threads. fully async on a mobile device doesn't really give you much because the number of connections is so small Oct 11 06:22:22 this isn't a big beefy server with 1000 threads where end-to-end async would make a huge difference Oct 11 06:22:52 JakeWharton: OkHttp supports Android 2.2 ---> that kills me :$ Oct 11 06:24:12 v2 will probably be java6 and up Oct 11 06:24:52 it's so low level we could probably make it go back to API 1 Oct 11 06:25:42 <^cheeky> i am using picasso, Oct 11 06:26:17 <^cheeky> should have just kept working with it .. so far gotten me so far, but then my ADD kicks in and i get excited about all the other stuff lol Oct 11 06:26:19 <^cheeky> heh Oct 11 06:27:23 do I need to implement the settings page a different way if it's android 2.3 vs android 4.0 + ? Oct 11 06:27:32 <^cheeky> JakeWharton: i see there is a square image view, is that something i could use, to get the cropping of the images i grab off the tubes, to get the actual center of the pic, since i specified, centercrop, images dont show well, as in like peoples heas are cut odd and what not lol Oct 11 06:27:51 JakeWharton: 2.1 and I'll be happy :) Oct 11 06:28:03 you're going the wrong direction Oct 11 06:28:28 it probably works on 2.1 though. i'll leave it up to you to find out. Oct 11 06:28:30 <^cheeky> me ... :( .. ok what am i doing wrong Oct 11 06:28:35 <^cheeky> oh !me Oct 11 06:28:51 ^cheeky: SquareImageView is for layout, not image manipulation Oct 11 06:29:21 i'm not going to add face detection for cropping client-side Oct 11 06:29:45 JakeWharton: That's not reassuring... Oct 11 06:29:54 JakeWharton: What primitives does okHTTP uses? sockets? Oct 11 06:29:58 <^cheeky> but that would bee freaking cool , i .. errm .. hope i can add that feature to my app Oct 11 06:30:08 if you need smart cropping, use something like Thumbor on the server: https://github.com/globocom/thumbor/wiki/Detection-algorithms#facial-detection Oct 11 06:30:49 gavilan2: drop support for 2.1 and problem solved Oct 11 06:30:56 and yes, it uses sockets Oct 11 06:31:55 JakeWharton: Can't do that... Oct 11 06:32:13 JakeWharton: How do you avoid blocking 1 thread per request in v2? Oct 11 06:32:39 <^cheeky> ohhhh niiice , bookmarked and will implment once i get over this hurdle, .. if i want to use picasso using a thread pool i would have to create service and send intents to grab from net and then load it using picasso ? Oct 11 06:32:56 wat. Picasso uses a thread pool automatically Oct 11 06:33:22 Can we develop android app in python Oct 11 06:33:25 gavilan2: spdy and http2 go over one connection Oct 11 06:33:33 tarunbhardwaj: only if you like a world of hurt Oct 11 06:33:55 JakeWharton: why Oct 11 06:34:22 <^cheeky> JakeWharton: no no i am already hurting .. this is how much of a nooblet I.is Oct 11 06:34:41 JakeWharton: Python itself is so beautiful. Oct 11 06:34:45 JakeWharton: Adapter re-use is automatically detected and the previous download canceled ---> is there any way to "lower the priority" instead of canceling it? if you have a listview, then the user might go back up.... Oct 11 06:35:06 JakeWharton: With actionbarsherlock do I need to use SherlockPreferenceActivity for my settings page? Oct 11 06:35:25 gavilan2: no. existing downloads finish. you can preload with calls to .fetch() Oct 11 06:35:42 navetz: you don't have to... SPA puts an action bar on top of a preference activity Oct 11 06:35:46 hi, i have a request from marketing department, is it possible to stop sync only official email app? Oct 11 06:35:55 tarunbhardwaj: right. just not on Android Oct 11 06:36:55 JakeWharton: What's the min version for picasso? Oct 11 06:37:08 don't remember Oct 11 06:37:14 7 or 8 Oct 11 06:37:27 k Oct 11 06:38:41 general question... If I have 2 items with weight=1 and a layout with weight=2 and there is a 1 pixel separator in the layout... what will be the size of the items? screen size / 2 and screen size / 2 - 1 ? Oct 11 06:41:34 probably the latter Oct 11 06:41:41 check hierarchy viewer Oct 11 06:42:27 <^cheeky> excuse my noobness .. but in your example, you have isFinishing() .. and then you cancel it in the pause lifecycle ... Oct 11 06:43:07 <^cheeky> how do i get that callback ... isFinishing .. sorry i was a lil confused so i just put the canceling of the picasso.to target in my onDestroy method :( Oct 11 06:43:56 <^cheeky> and in pause . i just made check if the imageview if not null || if local picasso reference is not null then i cacel it in my onPause lifecycle callback Oct 11 06:44:27 I can't download the android source code Oct 11 06:44:55 Weird.. My app is crashing with no stacktrace Oct 11 06:48:37 JakeWharton: Ah I see, does actionbarsherlock have a implementation of preferencefragment? it seems that the support library doesn't like PreferenceFragment Oct 11 06:48:47 nope Oct 11 06:50:31 wtf. Oct 11 06:50:35 JakeWharton: :( well then, googles tutorial page seems to have left me stranded lol Oct 11 06:50:42 app has stopped. no stacktrace Oct 11 06:51:33 JakeWharton: are you still maintaining ABS now that google support API7+ ? Oct 11 06:51:57 yes... but you should just minSdkVersion="14" already Oct 11 06:52:28 really? that makes me uneasy :S Oct 11 06:52:43 why? Oct 11 06:53:03 google added support for api7+? does that mean it added what abs has been doing for the actionbar stuff? Oct 11 06:53:12 i have no valid justification for that comment, i've just always had 8 in my head Oct 11 06:53:13 yes Oct 11 06:53:31 bankai_: it's time to upgrade your development experience! Oct 11 06:53:44 awesome!, how continue to maintain abs then ? Oct 11 06:53:49 why * Oct 11 06:53:59 because it requires almost zero effort Oct 11 06:54:07 makes sense lol Oct 11 06:54:13 it's been stable for something like 18 months Oct 11 06:54:35 did you help google with their support library ? Oct 11 06:55:04 probably by wasting probably 100+ hours figuring what works and what doesn't Oct 11 06:55:30 probably probably probably Oct 11 06:55:34 i'm leaving. night Oct 11 06:55:58 cya Oct 11 07:11:15 JakeWharton: Any idea how stable and bug free voley is? Oct 11 07:18:00 g00s: have you seen the dropbox webpage? I just noticed the background watermark image that gets more vivid as you view it on angle Oct 11 08:11:53 anyone ever turned on/off the virtual mouse in android from java? Oct 11 08:12:13 some games on nvidia shield do that, but I have hard time finding how could I do it in my game. Oct 11 08:24:10 !request https://www.czechav.com/members/login/?next=/members/czech-casting/ (form) (EPOCH, CCBILL, EPGBILL) Oct 11 08:26:47 Hello, I need some help :( I've been spending _weeks_ with trying to extract text from a pdf in my android app, but it doesn't work *cry* I tried to read it as binary, but failed. Could you please help? I am completely stuck with this D: Is there a quick solution? Oct 11 08:28:40 capella let me see ... Oct 11 08:29:07 i dont notice anything Oct 11 08:29:14 i think its just you Oct 11 08:29:17 :) Oct 11 08:29:30 unless Im going nuts, from the top edge its transparent ... from the bottom edge its bright and green Oct 11 08:29:39 two differnt laptops doing it here Oct 11 08:30:01 capella adding a divider in my bookmarks toolbar increases its height by like 20 px Oct 11 08:30:06 O.o Oct 11 08:30:10 Its the files list page im looking at Oct 11 08:30:17 oh Oct 11 08:31:35 why cant i get the boundaries on my god damn bi-directional scrollview to function.. Oct 11 08:31:45 its gotta be a led/lcd thing Oct 11 08:32:24 someone knows a library pdf viewer that allows you: create thumbs'page, research and ome in page animation Oct 11 08:33:05 man, pdf on android is a bloodbath Oct 11 08:33:17 Yep :'( Oct 11 08:33:18 i didnt know you guys took requests like MrKeys88 asked for Oct 11 08:33:27 if you want pdf libs, you're going to have to pay for them :) Oct 11 08:33:48 xT Oct 11 08:34:08 the official adobe pdfl is licensed by Datalogics Oct 11 08:34:15 not sure if they have an android port Oct 11 08:34:28 its expensive probably, because getting it to work on android was suckass Oct 11 08:34:34 (i know those guys) Oct 11 08:38:53 wow, the 2nd book on 2d canvas stuff i've seen now http://www.amazon.com/Pro-Android-Graphics-Wallace-Jackson/dp/1430257857 Oct 11 08:41:05 also, "Android Programming: The Big Nerd Ranch Guide" is the deal of the day at informit.com / 50% off Oct 11 08:42:36 Goodmorning my friends. I want to put my app on Google's Play Store, but I don't want it to be downloaded yet, or restrict it for test users only, is that possible, or do I have to share my test app via a file transfer service? Oct 11 08:43:14 you can have a closed alpha/beta via G+ communities Oct 11 08:43:38 https://support.google.com/googleplay/android-developer/answer/3131213?hl=en Oct 11 08:47:35 Mavrik, thank you my friend, this looks good. Oct 11 09:06:26 Android dev is a PITA. Oct 11 09:10:56 <^cheeky> i feel like i didnt accomplish anything :(.... picasso did so much for me !!!!!!!! Oct 11 09:11:57 <^cheeky> but there are some quirks i am going to learn from that code, too bad i spend freaking 3 hours or so trying to implement volley into android studio, i was able to do it in eclipse but !aAS ........ because iam a N00000b :)) Oct 11 09:12:04 <^cheeky> so happy it freaking works Oct 11 09:12:20 meh. a user is complaining that my app is missing the options menu on a desire x phone. the app is pre-r11, and thus the "physical" menu button should appear in the android menu bar, but doesn't. Oct 11 09:14:21 oh wow. you need to long-press the switch-tasks button. great work, HTC. Oct 11 09:16:05 Ge0rG, why the hell do you still have an app requiring menu button in 2013? Oct 11 09:16:13 Mavrik: because I'm retro Oct 11 09:16:36 then don't whine about HTC Oct 11 09:17:01 if you're breaking 4-year old design guideline Oct 11 09:17:03 Mavrik: there are so many badly designed apps in the play store... Oct 11 09:17:04 <^cheeky> Mavrik: thats freaking awsome thank you Oct 11 09:19:15 <^cheeky> Mavrik: regarding having people test your code . cheers Oct 11 09:19:24 mhm :) Oct 11 09:19:34 I like how alot of larger apps use it already Oct 11 09:19:40 <^cheeky> oh .. Oct 11 09:19:46 <^cheeky> so then no point me putting up mine Oct 11 09:19:51 why? Oct 11 09:19:58 <^cheeky> since .. its really really .. my app EVER !!!! Oct 11 09:20:17 create a community for it, invite friends Oct 11 09:20:24 and they'll get beta versions directly from play store Oct 11 09:20:24 <^cheeky> yeah ... Oct 11 09:20:31 <^cheeky> ill try to sort something ot Oct 11 09:21:01 <^cheeky> that new right now is soo awsome i just finished and basic stuff of my app works soo freaking happy Oct 11 09:21:02 <^cheeky> heh Oct 11 09:21:27 heh Oct 11 09:21:32 nice one ^cheeky Oct 11 09:21:38 <^cheeky> hey man !! Oct 11 09:21:58 <^cheeky> ummm .. well i mean .. its "Working ... " but i havent done any tests or anything Oct 11 09:22:02 <^cheeky> so umm .. Oct 11 09:22:03 <^cheeky> yeah .. Oct 11 09:22:17 <^cheeky> freaking 5 22 AM here !!1 Oct 11 09:24:47 lol Oct 11 09:24:51 its 11:24 am here Oct 11 09:26:20 <^cheeky> i dont want to sleep heh, Oct 11 09:26:33 <^cheeky> looking @ memory analyzer right .. now . Oct 11 09:26:57 <^cheeky> seems like Picasso is leaking .. but i bet its my  code, Oct 11 09:27:18 so you finally found and made your idea ^cheeky? :D Oct 11 09:27:23 <^cheeky> what on earth , java, lang,ref,finalizer Oct 11 09:27:47 <^cheeky> oh .. no yet .. its a lil baby heh Oct 11 09:27:56 <^cheeky> but yeah the basics of it seems to work .. Oct 11 09:28:23 <^cheeky> but i have so much to learn and i am so slow Oct 11 09:28:36 <^cheeky> wish MATRIX really freaking existed heh Oct 11 09:29:37 great :) dont be overwhelmed by what you have to learn, everyone has to do it, just take it easy and enjoy doing it Oct 11 09:29:47 <^cheeky> writing code, like a library like Picasso or volley is so impressive to me , i hope i can write code like that 1dat Oct 11 09:29:49 <^cheeky> *y Oct 11 09:30:00 <^cheeky> heh yeah Oct 11 09:30:48 <^cheeky> mobile devices rock Oct 11 09:30:59 <^cheeky> i better go get some more tea or caffein and walk heh Oct 11 09:31:08 <^cheeky> *caffeine Oct 11 09:34:29 Hm. I need some help again. I want to have a link from a webview webpage as string. But if I try to use Httpclient, I don't get it, it downloads the login-webpage. I guess there are no cookies. Is there a direct way to get the html from a webview? Perhaps with Javascript *think*? Oct 11 09:36:04 ^cheeky im doing the same, monster energy in hand and im going to go out to get some sun :D walking helps me later to think Oct 11 10:04:22 mmh Oct 11 10:46:58 haha, the last comment here made me laugh https://code.google.com/p/android/issues/detail?id=39723 Oct 11 10:49:11 indeed, it produces 20k lines of log per second Oct 11 10:50:20 https://lh4.googleusercontent.com/-ZVq1R5maseo/ThwejpVBD6I/AAAAAAAAARI/OF_3ZIoRxhA/s240-no/pza-photo.jpg Oct 11 10:50:23 He hates Android. Oct 11 10:51:02 pleroma is that the fella that posted the bug? do you know him? Oct 11 10:51:09 posted the last message Oct 11 10:51:49 * pza * … yeah, i'll bet thats him :) Oct 11 10:53:12 I don't know him, but yeah Oct 11 10:53:16 that bug was infuriating though Oct 11 10:53:49 i filed another bug, which was meta, saying intel doesn't EVER update their fucking images Oct 11 10:54:59 i dont understand all the details; i get the impression intel does an image, puts it on their web site - google does some qa (how did this pass?!?!) and then puts it in the sdk manager. Oct 11 10:55:03 i could be wrong Oct 11 10:55:32 but i was told google does some qa Oct 11 10:55:52 thats why its available from intels site earlier than the sdk manager Oct 11 11:24:56 I'm a bit confused. If I want to do fast lookups for objects in a set with the same value than the one i have, the object for the set that I need to create is a HashSet right? Oct 11 11:26:02 the contains() method documentation of it doesn't tell me if it checks for a value or the same instance of the object Oct 11 11:31:55 DwordKnight, it checks for hashCode() Oct 11 11:38:01 and that hashcode is used to identify the object, not the value, am i right? then it would not work for me :/ Oct 11 11:40:28 DwordKnight, how would a hashset know what "a value" of your object is? Oct 11 11:40:38 you DO know that each object has overridable hashCode() method right? Oct 11 11:40:41 this is like… basics of Java Oct 11 11:46:22 I'm no expert in the language. I just started using it seriously a year ago, learning by myself :D Oct 11 11:46:47 well as I said. Those are total basics. Oct 11 11:48:23 I expect to find a class in the jdk that does hashes to the value or values of the object i append to the set, and then It could find an object by doing the same process and using some search algorithm to find the hash that was done from that value Oct 11 11:48:44 that would give me a "yes, that one exists" Oct 11 11:58:02 its curious that i never found out that piece of info in all this time. i mean i know almost every method is overrideable if the class is designed for it, but not that hashcode is actually overrided from class to class to offer different behaviour as to identify the actual value of the object and not the object itself :D!!! Oct 11 11:58:27 string class says it computes its hash using the actual string :3 Oct 11 11:58:33 thanks Mavrik! Oct 11 11:58:51 http://en.wikipedia.org/wiki/Java_hashCode() Oct 11 12:00:05 read the source, luke Oct 11 12:00:42 :D yup Oct 11 12:36:32 hey pfn, i hadnt slept in 48 hours sorry i made a fool of myself Oct 11 12:36:42 been reading stacktraces for 5 years Oct 11 12:36:46 just new to android Oct 11 12:44:55 Is it possible to route audio to both the headset jack and the bluetooth radio when devices are paired by modifiying the system image, e.g. by modifying the bluedroid or audio HAL source (in 4.3) Oct 11 12:50:55 what are the steps to make an app installable on the external storage? anything I have to do or be aware on my code besides setting the manifest (preferExternal)? Oct 11 12:54:38 could someone look at my spinner/combo boxes are not expanding across the screen: http://i.imgur.com/jLmwbKC.png and http://hastebin.com/nosagoxoco.xml Oct 11 12:54:47 i feel like i'm missing something, or doing something wrong Oct 11 12:54:53 they seem to take up the minimal amount of space Oct 11 12:55:28 <^cheeky> i should Zzzz, jus read some articles about Weak and Soft References, used them .. think it improved, but Picasso is reposting a leak in memory analizer ... got it down to 30 MB .. Oct 11 12:58:22 its probably something simple, but whatever it is, i'm overlooking it Oct 11 12:58:34 other widgets in place will expand, the spinner just doesn't seem to be Oct 11 12:58:34 jug6ernaut, this any interest? http://stackoverflow.com/questions/5730115/preferexternal-in-manifest-not-working-when-installing-from-market Oct 11 12:58:35 any of them Oct 11 12:58:40 <^cheeky> i am looking .. at it .. pretty nested view you got there Oct 11 12:58:56 thanks ^cheeky Oct 11 12:58:59 <^cheeky> sorry Oct 11 12:59:13 oh, you were not talking to me Oct 11 12:59:35 <^cheeky> why not use a linear layout ? Oct 11 12:59:53 <^cheeky> i mean a list view blaah Zzzz Oct 11 12:59:53 ie, drop the scrollview ? Oct 11 12:59:59 oh, um ok.. i can try Oct 11 13:00:06 <^cheeky> whoa whao Oct 11 13:00:09 <^cheeky> wait .. i am no pro Oct 11 13:00:25 <^cheeky> see ... ok .. i have never used a scroll view as of yet ... Oct 11 13:01:15 well, i probably am less pro, so you're a step up from me Oct 11 13:01:16 <^cheeky> but if you want a setup like that .. perhaps you have list view .. and and each item for the list you creat a view for it .. like edit text and spinner Oct 11 13:02:21 <^cheeky> have a linear layout with one side edit text and one side spinner > Oct 11 13:02:24 <^cheeky> i dunno Oct 11 13:03:23 <^cheeky> think its good practice not to nest so many views like how you have it setup, coz droid OS need to calculate those positions and such, using a relative layout maybe better Oct 11 13:03:32 <^cheeky> but mebe some one here could help Oct 11 13:03:48 <^cheeky> monster || ! monster Oct 11 13:07:54 wmealing_, is there any reason you're using a table layout for this and not just a vertical linear layout with nested horizontal linear layouts? Dynamically adding rows? Oct 11 13:10:00 but either way, change android:layout_width="wrap_content" to android:layout_width="match_parent" Oct 11 13:10:22 on the table row android:id="@+id/TableRow04" Oct 11 13:11:56 question about app planning: I want to have a tab layout, every view (lisfragment) needs to update own data every n second (the data is caught from the web). what is the best way to do this?How and where the views have to get the data from? Is this a job of the fragmentactivity class that contains the fragmentPagerAdapter? Oct 11 13:14:02 <^cheeky> wait , i just mucked around with page adapter Oct 11 13:14:20 <^cheeky> pageadapter would have its one adapter as its source ? Oct 11 13:14:22 gdrc, people use event bus design for that Oct 11 13:14:43 <^cheeky> oh Oct 11 13:14:44 gdrc, e.g. a single service that updates data and sends events over eventbus so fragments can update themselves Oct 11 13:15:01 <^cheeky> holly crap, srsly lol Oct 11 13:15:14 * ^cheeky googles bus times Oct 11 13:16:12 <^cheeky> observer model Oct 11 13:17:50 <^cheeky> this might be what i was looking for Oct 11 13:19:50 <^cheeky> oh maybe not, Oct 11 13:21:45 Kegsay: probably because i dont know what i'm doing Oct 11 13:21:59 ok, and i'll do that.. just a few moments .. i'll let you know Oct 11 13:25:03 <^cheeky> FragmentStatePage adapter, i need spawn off background thread to get more information, regarding a fragment, but i already have one thread grabbing the image for the fragment, but i need to hit other services to get more infor for the fragment, i was going to use an Service and Intent Service with a thread pool ... i guess this is the wrong approach Oct 11 13:27:38 kegsay: still no good.. i'll keep messing around though Oct 11 13:28:40 <^cheeky> oh man .. too interesting and iam so lost Oct 11 13:29:00 you need to apply match_parent to your other fields as well, so: Oct 11 13:29:01 android:id="@+id/TextView01" Oct 11 13:29:01 android:layout_width="wrap_content" Oct 11 13:29:06 should be match_parent Oct 11 13:29:38 oh hang on, you want the spinners right? Oct 11 13:30:13 yes Oct 11 13:30:51 * ^cheeky cracks open a monster can Oct 11 13:33:09 wmealing_, try removing the table layout / table rows entirely Oct 11 13:33:28 you already are using a vertical linear layout so it will still display correctly Oct 11 13:33:40 oh ok Oct 11 13:35:12 that did it Oct 11 13:35:38 i had tablesl previously due to text field | input Oct 11 13:35:43 but didn't need it anymore Oct 11 13:35:45 thanks kegsay Oct 11 13:35:54 np Oct 11 13:40:50 if a function is protected, a subclass can access it, right? Oct 11 13:40:55 <^cheeky> Kegsay: hi, if i have a fragment in a FragmentStateManager, that requires .. background threads, to hit different services to get information to populate the fragment, in a fragment Activity, would the be error prone, dude to not fetching the data in time or thread syncronization, i am really new to this Oct 11 13:41:40 <^cheeky> kc8hfi: yes, it can i have implemented it in my code Oct 11 13:42:59 that would entirely depend on what the background threads are doing in the background, and how you choose to update the fragment after that work is done Oct 11 13:43:26 in general, it is indeed error prone and this is why there are things like Loaders which handle a lot of this for you Oct 11 13:44:53 <^cheeky> ok il read up on that before i do this part of my app then sorry, my typing ability is decrementing excuse me Oct 11 13:45:54 for the Scanner, what does it mean if you've got useDelimiter("\\A") ? Oct 11 13:47:53 <^cheeky> Kegsay: when i was quickly parsing through pages on the dev and other resource sites, one thing that caught my attention regarding loader, were that they were implemented alot with databases. Oct 11 13:48:42 <^cheeky> i dont want to save data here, its actually me grabbing a a pic from a service and its information, such data posted, geo location, comments and such Oct 11 13:50:14 if the data is just transient, then you should be able to do this using an AsyncTask and link it to the fragment lifecycle Oct 11 13:50:31 so when the pager destroys the fragment, the task goes with it Oct 11 13:54:11 <^cheeky> but i would have to execute it in parrallel coz i need three different different service apis to invoke, and would that not annoy an user eating up their Data, when invoking the Cell antenna to come out of stanby mode every time the user swipes ?, and would that not drain the batts, because if it does come out of standby mode its stays one for a few mins, so that into the amount of times the user swipes would decrement the battery j Oct 11 13:54:11 <^cheeky> increment the users data usage, Oct 11 13:55:22 if you're concerned with the efficiency of your network requests, then you'll need to decouple your requests for network data from the UI Oct 11 13:56:27 e.g. having a physical refresh option which will request all the data to fill the pages you want at once Oct 11 13:57:01 <^cheeky> no no i know nothing.. i am just going to do with an async-task and perhaps. if i even succeed in this app , ill refactor it late with more knowledge coz it a freaking jungle here so much ! Oct 11 13:57:03 Hi, a question regarding using Google Play services. I've been able to use an AccountPicker to select an account. Now, however, when I try to getToken with a scope I get a failure (GoogleAuthException). There seems to be another step missing in between where I ask the user to authorize my app's access to his account, given the scope. How do I perform this? Oct 11 13:58:49 generally speaking ^cheeky, the best compromise I've found in apps which are doing these kinds of requests involves a physical refresh button + a refresh when the app is first created, with all of the data stored in a database (which can then be neatly accessed using loaders) Oct 11 14:00:30 btw getTokenWithNotification(...) is of no help either. Oct 11 14:02:14 Hah silly me, I thought a spinner was one of those Loading indicating spinners Oct 11 14:02:43 <^cheeky> that is more cleaner, but i let the user just go wild with images, ill just stick to using a thread pool and execute the three threads for each of the services i need to say hello to , but could i possibly double that .. know that my user is @ position 5 so i send three requests simultaneously .. but the sae time send 3 more threads for 6 and 4 as well ? Oct 11 14:03:47 yes, of course. You can multithread requests for random resources like images Oct 11 14:03:56 just be sure to be sensible when storing them if they are large Oct 11 14:04:43 e.g. limit your disk size, use external directories if possible, use a lrucache for the in-memory cache Oct 11 14:05:02 <^cheeky> :( i have no idea if there are, as of yet, could you point me to what i need to read up on that .. executors Service and Service intents ? Oct 11 14:06:11 <^cheeky> Kegsay: yes i have imeplemented them, in fact i did my own but i did not scale well so i opted to use Picasso, which was awsome, but didnt teach me much .. but right now .. unfortunately i dont have time i need to pack lol Oct 11 14:08:08 hi room Oct 11 14:08:53 is google's photo optimization available in google api? Oct 11 14:10:09 i mean android api Oct 11 14:24:59 rom12three: not sure what you mean by photo optimization. Are you talking about the google+ stuff? Oct 11 14:26:03 yeah Oct 11 14:42:00 rom12three: I don't really know, but I would guess its going to be in the play services sdk if it is available: http://developer.android.com/google/play-services/index.html Oct 11 14:48:41 Hi, a library I'm using contains a bug, so I fixed the bug by re-creating a class of the same name in the same package, to override the buggy class. Unfortunately my project does not compile giving the error "Multiple dex files define package.name.ClassName" Is there a way to make this work? Oct 11 14:48:46 hmm i guess not... Oct 11 14:51:40 thanks btw mmarklar Oct 11 14:54:03 You can't "override" a buggy class just by creating a new class with the same name and package Oct 11 14:54:10 That will, as you found out, give you an error Oct 11 14:55:01 Either fix it, extend it or don't use it Oct 11 14:55:46 Why am I getting "User intervention required. Notificatino has been pushed" in an exception while calling getTokenWithNotification, instead of having a request screen be brought up for the user? Oct 11 14:56:27 SimonVT: in java I can, in android I can'tz Oct 11 14:58:00 Hey guys, I've decided to give android app dev a go, can anyone recommend a great book or source for android app dev? Oct 11 14:59:39 <^cheeky> Snake2k: Developer API guides and Training are a good intro , this book freaking fun read Oct 11 14:59:39 <^cheeky> http://www.bignerdranch.com/book/android_the_big_nerd_ranch_guide Oct 11 14:59:41 <^cheeky> njoy Oct 11 15:00:36 <^cheeky> use , both and xRefence kinda a must, actually Oct 11 15:01:03 <^cheeky> ok .. maybe !forAll but me().yes Oct 11 15:01:14 maxmc: you could unzip the library .jar, and replace the .class file, then zip it again Oct 11 15:04:21 tofi9: hehe, I just found out about it, too. thanks! Oct 11 15:08:02 Good morning, devs. Does anyone have any reference information regarding best practices for managing multiple client versions with multiple possible server versions? Oct 11 15:09:33 jacobwalker0814: Backwards compatibility, and REST interfaces with different path for each version (i.e. myapp.com/v4/path) Oct 11 15:10:22 Shloffen: thanks. I was thinking something like that is what we would probably do. Do you know of any blogs or articles on the topic? Oct 11 15:10:28 You must accept multiple client versions as a fact of life, and if you have a big server deployment then multiple server versions as well. Oct 11 15:11:31 jacobwalker0814: no specific links I can think of right now Oct 11 15:12:24 Shloffen: yeah we have thousands of customers running different versions of the server and we're just now starting to distribue a companion android app Oct 11 15:12:34 tofi9: works like a charm. Thanks again Oct 11 15:13:11 maxmc: yw Oct 11 15:13:45 Shloffen: I'd like to distribute through Play to keep that process easy so I guess the client will have to be backwards compatible like you said and should detect the approriate server version so it knows what UI to display if there's every any change Oct 11 15:14:00 jacobwalker0814: If you can keep the app backwards compatible, i.e. able to work with older server versions. Sometimes it is possible to redirect clients to newer servers, but that brings load of issues, like hotspots in your server distribution. Oct 11 15:14:56 your big question then becomes "is my existing server install base designed w/ any sort of compatibility in mind" Oct 11 15:15:07 you may have to put all the cross-version logic in the app Oct 11 15:15:42 dragorn: that might be the way we go Oct 11 15:16:13 obviously going forwards you'll want to keep the server design clean, but if you didn't until now, you'll have to deal w/ that in the app Oct 11 15:16:39 or if the server design is really bad, provide a bridge server of some sort (ie if your only access is direct to sql, that's no good, you'll have to make a REST shim of some sort) Oct 11 15:17:03 Mp Oct 11 15:20:43 So, does anyone know if I need to have my app signed with my own private key when debugging code which uses Google Play Services getToken, or is the debug key enough? Oct 11 15:22:27 dragorn: Shloffen: so when I need to change behavior in the client for a new server api version do I do something like this: http://pastie.org/private/gx54rcewmsovqo0zvjw7g Oct 11 15:22:41 Shloffen: and sorry, I don't know the answer to your question Oct 11 15:23:38 jacobwalker0814: if your API is that simple, that'd work. Oct 11 15:23:47 jacobwalker0814: Perhaps there is a prettier way to handle this. If would suggest doing something like feature detection, and then deciding based on feature availability. Oct 11 15:24:25 Shloffen: so like this same concept but on a feature specific level? Oct 11 15:24:34 where is some documentation on how gc works on dvm and that it's not impacted by circular references? Oct 11 15:24:54 I /know/ it's a roots-based system, but I can't convince someone otherwise necessarily by just saying so Oct 11 15:25:06 i.e. when connecting (1) detect server version. (2) populate a bunch of variables such as isMyNewFeature23Available (set to true if sVersion > 12). Then do an if isMyNewFeatureAvailable only when relevant. Oct 11 15:25:46 I should have put (3) instead of "Then" for consistency. Oct 11 15:26:05 Shloffen: dragorn: okay, thanks for your input Oct 11 15:31:57 hello. can a virtual device used through eclipse be scaled down? I'm using a rather small notebook and the device I have (galaxy nexus) is too big to fit my screen. Oct 11 15:36:08 PTBD: Depends on how you are starting it. Do you click "Start" from the AVD or "Debug/Run" through Eclipse before it is started. Oct 11 15:37:04 no. I just installed the android sdk. I'm only beginning. it starts when I press to run a program Oct 11 15:37:51 PTBD: When clicking "Start" on a selected device from the AVD Manager, the "Launch Options" menu contains a "Scale display to real size" checkbox. Click it and play around with the screen size or monitor dpi to achieve the desired size. Oct 11 15:38:17 will I always have to start it like this to have it scaled? Oct 11 15:38:35 No Oct 11 15:38:46 If you are using the automatic launching by Eclipse then: Oct 11 15:39:55 Project properties, Run/Debug Settings, Edit, go to the Target tab, then under "Additional emulator command line options" enter "-scale 0.5" (or whatever 0-1) Oct 11 15:40:35 Shloffen, thank you Oct 11 15:40:48 what should i google to learn more about the newer app design (ie menu slide-in from left) in apps like gmail and google+. i'm not sure what it is called Oct 11 15:41:12 are you referring to "Holo"? Oct 11 15:41:24 mobabur94, DrawerLayout Oct 11 15:41:41 drawerlayout is an abomination Oct 11 15:41:44 http://developer.android.com/design/style/themes.html Oct 11 15:41:49 Q: Did anyone here find a way to have Eclipse show the correct stack trace on exceptions? It keeps showing the Android part without showing the any of my code. Oct 11 15:41:53 oh yeah, drawerlayout. thanks Oct 11 15:42:07 Shloffen, it always shows your code Oct 11 15:42:12 Shloffen, eclipse has nothing to do with it Oct 11 15:42:18 you just need to open your eyes Oct 11 15:42:26 Shloffen, it might not originate from your code though Oct 11 15:42:32 like nsdmanager NPEs... Oct 11 15:43:03 pfn: I see my code in LogCat but not in the stack trace tree in that other view in debug perspective Oct 11 15:43:16 scroll down Oct 11 15:43:44 pfn: I am going to induce a NullPointerException on onCreate in my code just to check it out now :) Oct 11 15:43:54 no need to induce Oct 11 15:44:00 just throw new RuntimeException() Oct 11 15:44:56 hello. my search widget (support library v7) is not appearing in the action bar. Oct 11 15:45:33 then you didn't add it to the actionbar Oct 11 15:46:02 <^cheeky> sulaiman: check your xml file where you declare it , i think you need to specify the class for it in the menu item and ^^ and action BAr Oct 11 15:47:49 I performed the same steps I did for ActionBar (app.actiobar) which worked, In my menu xml file, I have included "android:actionViewClass="android.support.v7.widget.SearchView" Oct 11 15:48:41 <^cheeky> coudl i say ... umm lets say, make my grid View a Weak Referece, my gid adapter and my image view all of them ? Oct 11 15:49:10 <^cheeky> an on my destory method, i set them to null if they are ! null Oct 11 15:52:35 <^cheeky> is that allright ,, only concern, that i am aware of is that the tablet rotates, i might have to re fetch and populate my items Oct 11 15:54:50 ^cheeky: activity doesn't have to die when the device rotates. You can have your handler change the layout on configuration changes. Oct 11 15:56:03 <^cheeky> Shloffen: hi. well i am not ending my instances of gridview or my arrays or data sources in my activity though i keep them in a fragment, with setRetainInstance turned on. Oct 11 15:58:36 Also known as leaking your activity Oct 11 16:00:02 <^cheeky> :( .. wait .sorry , i am confused, dont destroy or null objects on the destory () of the fragment ? Oct 11 16:00:24 You said you kept your gridview Oct 11 16:00:29 <^cheeky> no no Oct 11 16:00:44 <^cheeky> i null all of these object on Destroy() Oct 11 16:00:57 <^cheeky> but i check if there ! null first and then null them Oct 11 16:01:00 But your fragment is not destroyed Oct 11 16:01:08 pfn: Still no luck. Debug Perspective, Debug view still showing only Android stack: ActivityThread.performLaunchActivity instead of MyActivity.onCreate and nothing when I scroll down. Oct 11 16:01:09 You're retaining it Oct 11 16:02:00 Shloffen, why don't you pastebin/screenshot it and prove it Oct 11 16:02:04 <^cheeky> but something wierd happenned i was so happy and flinging rtthough the pics .. and watching log cat and since i have a bottomless grid .. i have to keep track of the pages counts .. and all of a sudden BAM , one number was less twice of the other and bottom less grew a wall :( Oct 11 16:02:06 SimonVT: Is there a general problem with not destroying the activity but just switching layouts on configuration changes? Oct 11 16:02:46 <^cheeky> yeah i retain it, sisnce its a short period of time unlike saving it which gets wrottien to the activity record .. if i a correct .. Oct 11 16:02:51 <^cheeky> blah i am overwhelmed Oct 11 16:03:40 Shloffen: No, it's just more work and mostly completely unnecessary Oct 11 16:04:20 You still have to implement everything you'd implement if the activity was destroyed (saving state, etc) Oct 11 16:04:33 + more logic for handling configuration changes Oct 11 16:05:36 ^cheeky: You're keeping a reference to your gridview, which keep a reference to your Activity. When the activity is destroyed it can't be GC'd because it's still referenced Oct 11 16:06:04 pfn: preparing it now Oct 11 16:07:32 <^cheeky> hmm ok .. but.. when i create an instance of the fragment with Context being passed in as param to the fragment and in its destroy()i null the context, but i guess i set the retainfunction to true as well . Oct 11 16:07:33 pfn: http://picpaste.com/debug_screen-iJcVgKuP.png Oct 11 16:07:41 <^cheeky> blaaah oxymoron situation i am in Oct 11 16:07:54 that's not a stack trace Oct 11 16:07:58 that's a current stack dump Oct 11 16:08:12 fail Oct 11 16:08:32 and for that matter, by the time it's caught, the stack will no longer be in your code Oct 11 16:12:14 ^cheeky: I don't understand why you have to do anything other than onConfigurationChanged Oct 11 16:14:01 <^cheeky> sorry i dont follow, so using setRetainINstance is not good Oct 11 16:15:38 pfn: How do you define the difference? Oct 11 16:15:54 Shloffen, define what difference, one is a current instruction pointer stack Oct 11 16:16:00 the ohter would be an exception stack Oct 11 16:16:02 basic CS Oct 11 16:19:21 pfn: Forgive me for my apparent lack of basic CS understanding, please explain why what you call "exception stack" does not qualify as a stack trace. Oct 11 16:19:41 what you pasted was not an exception stack Oct 11 16:19:46 and is not a stack trace Oct 11 16:19:49 it is a current execution stack Oct 11 16:20:50 and exception stack trace is a point in time in the past Oct 11 16:21:01 what you pasted is instantaneous, current execution Oct 11 16:21:57 it's like getting a receipt for an ATM deposit 5 days ago, and looking at your bank statement now Oct 11 16:22:05 it most likely will not be the same Oct 11 16:23:14 I can't find formal definitions of "exception stack" or "current execution stack" on Google. Can you point me to any CS resources which define your terminology? Oct 11 16:23:38 no Oct 11 16:23:43 that's for you to go to school and figure out Oct 11 16:25:21 Shloffen: not everything has to be defined formally. Oct 11 16:25:32 I see. So basically, your terms mentioned above, are just basic misuse of commonly accepted terminology. Which kind of brings context on your "fail", "go to school" and "basic cs" comments. Oct 11 16:26:27 basic misuse? Oct 11 16:26:29 not at all Oct 11 16:26:54 but I'm not going to spend my time giving you a free education Oct 11 16:27:02 Shloffen: you can see it often in the backtrace dumped on the log: you've got a current execution stack dumped, and in it, you've got an exeception stack telling you where the error occured, which is a different point than the current execution stack, because the exception has been caught. Oct 11 16:27:02 because it's not my job, and I don't really care if you fail or succeed Oct 11 16:27:07 because you're not my kid Oct 11 16:27:29 but I do enjoy belittling you, so there's that benefit Oct 11 16:28:15 pfn: if you need to belittle me to feel better, go ahead, I won't protest. Oct 11 16:28:26 meh, keepassdroid doesn't support entry references, I guess I need to hax0r that in Oct 11 16:31:49 ogamita: thanks, I've learned I can find those in the LogCat, even though the terminology used in documention refers to "stack trace" and "stack frame" (http://developer.android.com/reference/java/lang/RuntimeException.html, http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Freference%2Fviews%2Fdebug%2Fref-debug_view.htm) Oct 11 16:32:48 I was just wondering whether I can get that easily accesible through the Debug view rather than sifting through LogCat. Oct 11 16:33:51 ad the logcat view in your debug perspective Oct 11 16:34:13 if I set blank constructor in a class that implements Parcelable, I get unmarshalling error. Is there a way to avoid this? Oct 11 16:34:14 set a breakpoint on the exception and examine the exception object Oct 11 16:34:32 gdrc, address the error as specified in the unmarshalling error Oct 11 16:35:00 and for that matter, your Parcelable.Creator is the one dealing with object construction iirc Oct 11 16:35:29 pfn: so the problem is elsewhere? Oct 11 16:36:20 gdrc: try http://devk.it/proj/parcelabler/ Oct 11 16:37:17 gdrc, I dunno, you provide no evidence of what you are doing or encountering Oct 11 16:37:40 and seeing as how we're all clairvoyant, it's really unnecessary to give details Oct 11 16:41:05 pfn: here's the class http://pastebin.com/Q8eEjjZB Oct 11 16:41:41 always start with the error Oct 11 16:43:54 ? Oct 11 16:44:15 pfn: y u no find err in my clazz? Oct 11 16:44:18 I'm not going to read your code Oct 11 16:45:44 pfn: you said 'you provide no evidence of what you are doing or encountering', now I did Oct 11 16:45:57 find s/or/and Oct 11 16:46:00 s/find/fine Oct 11 16:56:33 i am a logcat Oct 11 16:56:37 miaaaaao miaaaao Oct 11 16:59:27 oh noes, mikedg's on drugs Oct 11 16:59:33 :) Oct 11 16:59:38 im on hugs Oct 11 16:59:58 even worse, time to amputate Oct 11 17:06:56 * ScottishPig pipes mikedg's logcat to /dev/null Oct 11 17:08:31 * mikedg pipes u Oct 11 17:10:24 it seems htc likes to pipe /dev/random to logcat, cause when you try to view the logcat on any htc device there are like 100 errors a second and full of all sorts of gibberish Oct 11 17:11:37 stackoverflow or gtfo Oct 11 17:14:10 public void so() { return so(); } Oct 11 17:14:20 birbeck: s/htc/all manufacturers/ Oct 11 17:15:17 thats not a stack overflow, thats a compile error :) Oct 11 17:23:34 where is the default cipher list defined that gets used by SSLSocket on android? Oct 11 17:30:56 Hm, $10 spent on advertising, 105 clicks, 0 installs. Pretty sure that means advertising is a waste of money. Oct 11 17:31:36 Hard to tell. Ten bucks got you pretty far though. Who'd you use? Oct 11 17:31:55 Admob. I wouldn't say that's far at all if nobody installed the app. Oct 11 17:32:06 Like, not even one install and refund. Just zero installs. Nada. Oct 11 17:32:36 Advertising is worthless if it doesn't "convert" (as they call it). Oct 11 17:33:47 Lots of folks spend much more than $10 with the same results. Oct 11 17:34:01 Sounds like they waste more money. Oct 11 17:34:44 * ScottishPig has been thinking about spending money on advertising. Oct 11 17:35:46 And Google has apparently decided to start putting people's names and photos in ads, ala Facebook. Oct 11 17:35:59 * Ge0rG is digging into why android SSL sockets use RC4 first by default Oct 11 17:36:02 Thankfully you can disable it, though unthankfully it's opt-in-by-default Oct 11 17:40:09 hmm, what's a quick way for reversing a hex string in java? Oct 11 17:40:17 i.e. reversed by pairs, not just completely reversed Oct 11 17:41:13 Nilium, clickthrough conversion rates are pretty low Oct 11 17:41:19 like .1-.5% Oct 11 17:41:32 So totally not worth it. Oct 11 17:41:38 * pfn ponders Oct 11 17:42:18 Could you get a view on the string, get each N slice, reverse that, and join it? Oct 11 17:42:41 stupid endianness issues Oct 11 17:42:49 Though I guess that depends on how often you'll need to do it. Oct 11 17:42:51 Nilium, not with java stupidity Oct 11 17:42:52 heh Oct 11 17:43:02 not in like a one-liner, at least Oct 11 17:43:15 Ah. Yeah, I guess you'll just be substringin' and arrayin' it up. Oct 11 17:43:27 scala: "deadbeef".grouped(2).reverse.flatten Oct 11 17:44:26 toSeq and mkString in there to make it the right thing again Oct 11 17:44:35 pfn: write a webservice in scala Oct 11 17:44:41 then post the string there Oct 11 17:44:47 that's a brilliant idea! Oct 11 17:44:53 fuck, why didn't I think of that Oct 11 17:45:09 the most obvious ideas are often the most fleeting Oct 11 17:45:34 perl: @a=m/(..)/g;while($s=pop @a){print $s} Oct 11 17:46:26 You're cheating there-- it's technically not a one-liner. Oct 11 17:46:33 oops Oct 11 17:48:16 but yeah, endianness issues ftl Oct 11 17:48:33 anyone know how to get around the RenderScript "rsAssert Failed: !mTypes.size()" error? romain's twitter suggests that it's a bug Oct 11 17:49:45 so i'm just now tinkering with some android dev stuff (more specifically wanting to skin widgets and waht not.. i've not had much luck finding existing widgets (or even much about it being possible) to display a live google map as a widget.. basically i'm starting off small and combining existing widgets/skinning apps (UCCW/Zooper) to create a (soon to be) robust car interface for the nexus7 i have Oct 11 17:49:48 installed in my dash. i saw where MANY versions ago you could make a live wallpaper out of a live google map Oct 11 17:49:52 is there any thing possible for that anymore? Oct 11 17:50:05 not necessarily liev wallpaper, bu t just a widget with live (with current location) google map display? Oct 11 17:50:19 I suppose it's easier to join parse it into a long and do the byte-swapping that way Oct 11 17:50:22 Well that's a lot of words Oct 11 17:51:02 replicant: Did you try? Oct 11 17:52:32 nilium: did i try.. ? so i've searched the play store and xda forums for similar functionality in an existing widget, etc. some stackoverflow and google group threads seem to indicate in the "allowed" sdk endpoints for maps, that its not a possibility, but figured "allowed" doesn't mean "impossible" Oct 11 17:52:48 Did you try coding anything? Oct 11 17:52:54 Also, stay away from xda. Oct 11 17:53:29 Stay very far away. Oct 11 17:54:20 Nilium, why? Oct 11 17:54:29 Terrible community. Oct 11 17:54:33 You can't display google maps as a widget Oct 11 17:54:39 Nilium: i hadn't coded anything yet, as i was trying to make sure it's even possible witht he SDK.. which, as mentioned, my previous searches for SDK help on it didn't return an\thing as it being a possiblity. was trying to avoid writing a full fledged app to do this, was hoping to basically tu rn the homescreen of my nexus7 into a car-friendly UI (car dock ultimate has similar functionality, but Oct 11 17:54:42 horribel looking and not flexible to skin it, etc) Oct 11 17:54:49 Make an actual app instead Oct 11 17:55:06 SimonVT: that's what i had read as well.. wasn't sure if that was just for stuff to go into the play store but "un authorized" usage of some API could be taken advantage of Oct 11 17:55:11 ok guess i'll be heading down that path :D Oct 11 17:55:22 There's a limited set of views that can go in widgets Oct 11 17:55:52 No custom views at all Oct 11 17:56:13 *nod* Oct 11 17:56:23 sound sgood, thanks for the direction SimonVT Oct 11 18:44:18 SimonVT: you here? Oct 11 18:53:18 why this doesn't work http://pastebin.com/vj3TF5Ve but if I remove the empty constructor it does? Oct 11 18:56:07 gdrc: "doesn't work" isn't very helpful Oct 11 18:57:08 Class not found when unmarshalling: package.Element Oct 11 18:59:00 full error: http://pastebin.com/PFnk2GA5 Oct 11 19:00:47 if i get the broadcast address from WifiManager it works, if i get it from ifreq in C it doesnt work, i just get the interface address? anyone else run into this? Oct 11 19:19:10 hi, how can i disable the vga text console but still be able to activate it (from the serial console for example) ? Oct 11 19:52:15 Anyone ever have to deal with OpenGL rendering on Tegra in a non-standard way? Oct 11 20:01:56 :| Oct 11 20:01:59 Shapoopy Oct 11 20:14:51 On android is it possible to tell the difference between a device with hardward keys and soft keys? Oct 11 20:15:00 A flag or something maybe? Oct 11 20:17:21 http://stackoverflow.com/questions/9044907/android-programatically-detect-if-device-has-hardware-menu-button Oct 11 20:17:40 evanc: Thanks so much! Oct 11 20:20:41 anyone ever get this output in logcat, "NV Interposer: Multiple graphics contexts are used. And we have no guarantee for correct behavior." Oct 11 20:22:56 hey guys Oct 11 20:23:08 im trying to sign an app ive made for my android phone Oct 11 20:23:21 if i sign with the debug key it compiles and is used fine Oct 11 20:23:36 if i delete the key and regenerate the debug key it works fine Oct 11 20:23:45 however if i try to make my own key i get this error Oct 11 20:23:48 keytool error: java.security.cert.CertificateParsingException: java.io.IOException: Parse Generalized time, invalid forma Oct 11 20:30:31 anyone know what this does? (from /system/customize/ACC/default.xml Oct 11 20:30:51 false Oct 11 20:31:01 in the section Oct 11 20:34:41 ahmedbodi, some time ago, there were issues when pathes had spaces in them, just a guess though Oct 11 20:41:22 it's frustrating when I can't get any dev work done because I'm researching how to do said dev work. {gradle build problems} Oct 11 20:42:12 anyone have any ideas about the keystore Oct 11 20:44:14 You have to start somewhere. Oct 11 20:44:34 at least you have and idea Rescue9. Oct 11 20:44:52 My problem is thinking up and idea for an app that has not already been done. Oct 11 20:45:19 I'll trade. I've got PLENTY of ideas. lol Oct 11 20:52:43 Anyone here ever managed to get theur apks to sign Oct 11 20:53:08 yes Oct 11 20:53:38 I just do it in Android-studio, I've taken the time a few times to do it in terminal Oct 11 20:54:18 Did u generate ur own keystore. Oct 11 20:54:29 I get an invalid time parse error Oct 11 20:55:51 Generated my own keystore using the directions provided on some android page Oct 11 20:57:21 Yeah i triedthat Oct 11 20:57:30 And thats when igot that error Oct 11 20:57:39 i need to practice rest json soap, anyone know where i can get a good Webservices Oct 11 20:57:50 ? Oct 11 20:58:04 not just for retrieval, but logging in an editing Oct 11 21:00:23 try Parse Oct 11 21:06:08 ahh thanks darken Oct 11 21:09:03 ive tried storing it in /tmp/ahmedbodza Oct 11 21:09:10 but it still gives the same error Oct 11 21:13:10 Can anyone give me advise on eclipse vs. android studio. Keeping in mind that I am a newbie to intermediate programmer. Oct 11 21:13:34 Shaba1: pick one, go from there. At this point it won't really matter. Oct 11 21:17:48 I already have eclipse with the adt Oct 11 21:18:02 I just heard about android studio 4 days ago in this channel Oct 11 21:18:15 I was wondering if it might be easier then using eclipse/adt Oct 11 21:28:15 Shaba1 i would use eclipse or plain intellij unless you need / want to mess with gradle Oct 11 21:28:51 g00s: I did not even know what gradle was until 4 days ago. Oct 11 21:29:59 or wait for AS to have a dev build; all of them so far have been 'canary' (dog food) Oct 11 21:31:13 if you need to use libraries packaged as .aar you will need gradle Oct 11 21:32:18 or, you just want to learn about gradle, which is kinda fun ;) Oct 11 21:37:33 hi, where can i try android studio documentation, such as gradle info, maven etc. i use ADT Oct 11 21:45:17 wow, this is amazing http://www.theverge.com/2013/10/11/4827280/qualcomm-brain-inspired-learning-computer-chip Oct 11 21:45:30 hope some nexus gets it ;) Oct 11 21:47:15 "Mark Zuckerberg Just Spent More Than $30 Million Buying 4 Neighboring Houses For Privacy" oh, the irony ! Oct 11 21:47:48 so i have a AudioPlayer service that i need to hit as an intent to play music.. my action is com.xxx.xxx.PLAY .. how do i properly define this action in the manifest? i keep getting No Activity found to handle Intent Oct 11 21:48:01 g00s: url Oct 11 21:48:27 acidjazz this one? http://www.businessinsider.com/mark-zuckerberg-buys-4-homes-for-privacy-2013-10 Oct 11 21:48:35 g00s: thanks Oct 11 21:48:37 lol Oct 11 21:49:31 ironic that Zuckerberg has to go through great lengths to protect his privacy. Yesterday news broke that Facebook was removing yet another privacy feature. Oct 11 21:50:12 yeah, i saw that. corporate spying is an important topic Oct 11 21:53:32 so about our pictures showing up in google ads; is that only if i have a google+ profile ? Oct 11 21:53:44 (and i have not opted out) Oct 11 21:53:57 Will it show my shiny Dolphin profile picture? :D Oct 11 21:54:04 haha Oct 11 21:56:33 I have never done any android development, and only very little java. I am trying to build https://github.com/rfc2822/davdroid.git ... how do I go about this? I've checked google. I have the sdk and eclipse set up (I am an emacs guy, eclise is unfamiliar to me) ... help a newb out. Oct 11 21:59:33 my key generated fine on windows :L Oct 11 21:59:55 so, when someone leaves a review like "1 star, this sucks". is that troll /spam/ or do you just downvote it? Oct 11 22:00:40 g00s: It's a lot better than someone leaving a one star review 'Useless' Oct 11 22:00:47 At least you know that your app sucks Oct 11 22:01:11 i would think Useless is better :| Oct 11 22:01:52 You're not quite sure what useless means Oct 11 22:02:15 Is the service your app provides useless? Is the app itself useless? Oct 11 22:02:45 i would find the Nascar app useless, but that doesn't mean it sucks - Oct 11 22:02:53 i think i understand what you're saying though Oct 11 22:03:10 That being said, this is coming from an environment where people vote 1 star on free books in the Play Store since it requires them to enter payment info to download Oct 11 22:09:24 is there a reliable way to get the device owner's name? Oct 11 22:09:32 none of the methods i've tried so far work Oct 11 22:09:44 device is not registered with a google account yet but does have an owner name set Oct 11 22:11:00 w3pm: query the "Me" profile? Oct 11 22:19:39 evanc: that doesnt get the owners info setting afaik, it gets the owners contact id Oct 11 22:19:54 hello Oct 11 22:20:23 a daughter of a friend of mine has a pocketbook SURFpad with android 4.1.1 can someone tell me why playstore will not load and and close almost immediately i don't know how to install apps on this pad is this normal ? thank you Oct 11 22:21:57 birbeck: can't you query the contact info from that? Oct 11 22:22:15 Agiofws: I doubt that tablet came with play store Oct 11 22:22:41 yeah, but what if the contact id is null? the owner info setting i dont think has any correlation to the actual device owner contact Oct 11 22:22:52 ok so how can i install apps ON this device ? Oct 11 22:22:53 oh, huh. Based on some unboxing video, it looks like it did. Oct 11 22:23:29 https://gist.github.com/acidjazz/7ec669dd60b1144b4cd4 <- any1 know why this gets FATAL EXCEPTION: main Oct 11 22:23:45 java.lang.RuntimeException: Unable to start service Oct 11 22:23:48 acidjazz: pastebin the stack trace Oct 11 22:24:02 is PlayerService declared in your manifest? Oct 11 22:24:08 ah think i jujst found it.. crap in my onStartCommand Oct 11 22:24:22 yup Oct 11 22:24:35 evanc, doesn' the manufacture give us a solution of installing apps on this device else its like bricked device ? Oct 11 22:24:51 Agiofws: you can always adb install Oct 11 22:25:02 whats adb evanc ? Oct 11 22:25:05 but this is a discussion for #android, not #android-dev Oct 11 22:27:46 Hello Agiofws. Funny meeting you here :) Oct 11 22:28:49 whew. Thank goodness I found vrapper Oct 11 22:31:11 can anyone here tell me if "pocketbook SURFpad" is supported by playstore and if not what are my options of installing apps on this device ? Oct 11 22:31:48 Agiofws: /join #android Oct 11 22:35:44 This whole transition to android studio has made development so not fun any more. Gradle has me so lost it's not funny. Oct 11 22:36:00 i definitely prefer maven to gradle Oct 11 22:36:24 though it did have a steep learning curve, im sure gradle will be decent once i get accustomed to it Oct 11 22:37:27 I can't for the life of me figure out how to add libraries (not in maven repo) to the build Oct 11 22:41:09 worse yet, I can't figure out how to turn the libraries I have into ones that play nicely with gradle Oct 11 22:48:32 Rescue9 did you see the examples? it should be easy Oct 11 22:48:48 in your dependencies { } just say compile file ('libs/mylib.jar') Oct 11 22:49:02 or something like that Oct 11 22:49:26 Say no to dependencies not in central Oct 11 22:49:32 g00s: I don't have a jar file. :-( Oct 11 22:49:52 I feel like such a newb. Oct 11 22:50:01 SimonVT please tell me, where is the google analytics jar file in maven central :) Oct 11 22:50:03 it just doesn't make sense like it did with Eclipse Oct 11 22:50:04 lol Oct 11 22:50:38 Tell Xav to put it in the sdk repo Oct 11 22:51:02 all the sdk repos should be hosted by google too, i don't see why i need to repo a repo :) Oct 11 22:51:16 must be some weird licensing deal Oct 11 22:51:23 aha, i bets thats it Oct 11 22:51:34 since we have to click through licenses Oct 11 22:51:41 hmm not able to send any udp packets, i can receive them though Oct 11 22:51:47 SimonVT: I've been referencing your android-menudrawer github. Mind if I pick your brain a minute? Oct 11 22:51:48 have internet permission set? anyone run into this? Oct 11 22:51:58 oh well - Rescue9 - if you don't want to deal with gradle use plain intellij Oct 11 22:52:12 w3pm most carriers drop UDP i think Oct 11 22:52:16 * SimonVT runs Oct 11 22:52:18 g00s: this is on wifi Oct 11 22:52:24 Rescue9: sure Oct 11 22:52:33 g00s: No, I want to deal with it. I want to do it 'the right way'. Just the learning part is hurting my brain. Oct 11 22:53:16 SimonVT: I've forked a project that is in no way setup for gradle. See here: https://github.com/Rescue9/SlideMenu Oct 11 22:53:40 Rescue9 yeah, it has a large conceptual surface .you will need a minimal understanding of groovy if you're going to do more than copy / paste, and then there is gradle , and the API for the android-plugin itself. i think its kinda steep learning curve Oct 11 22:54:01 steep indeed. Oct 11 22:54:02 but 80% of the time, you should be able to copy / paste :D Oct 11 22:54:47 SimonVT: I'm looking at your commit 13d9706c (Add gradle build) Oct 11 22:54:58 I understand the two build.gradle files. Oct 11 22:55:20 sorry... 3 build.gradle files Oct 11 22:55:48 What I can't make out are the pom files. Oct 11 22:56:03 What are these doing? Oct 11 22:56:16 It's a maven project Oct 11 22:56:24 Published in maven central as an apklib Oct 11 22:56:34 Then they made gradle which uses another packaging format Oct 11 22:57:04 Ok... that follows in the lines of my thinking. However, some of the information in your pom.xml file isn't in my file to refernce Oct 11 22:57:07 So I have maven do a gradle build and attach the aar along with the apklib when pushing to central Oct 11 22:57:28 for example, you have 3.0.4-SNAPSHOT between . The pom.xml file I have doesn't have a properties Oct 11 22:57:41 (courtesy of JakeWharton) Oct 11 22:58:22 Where do I have that? Oct 11 22:58:41 https://github.com/SimonVT/android-menudrawer/blob/13d9706c565f9bfa5538339396a2745fea5d28b5/pom.xml Oct 11 22:59:41 Parcelable protocol requires a Parcelable.Creator object called CREATOR on class Oct 11 23:00:01 Wonder what that's for Oct 11 23:00:10 Anyway, just use gradle Oct 11 23:00:26 so I don't need to edit either of the pom.xml files? Oct 11 23:00:56 pom files aren't for gradle projects Oct 11 23:01:06 You should use gradle now instead of maven Oct 11 23:01:09 (imo) Oct 11 23:01:20 (lmao) Oct 11 23:01:59 Ok. I'm following you so far. Won't I need the pom files if I push to central? Oct 11 23:02:01 Also, I believe android-maven-plugin supports building aar's now Oct 11 23:02:12 So it's probably unnecessary to do all that anyway Oct 11 23:02:27 Gradle can push to central Oct 11 23:04:09 That helps out a lot so far. I think I'm undertanding a bit better than I did earlier Oct 11 23:04:36 I'll go play with the code some more and see if I can figure this out. Thanks SimonVT! Oct 11 23:22:31 * g00s is close to breaking down to by Sketch to draw app icons Oct 11 23:22:50 inkscape on mac has been a wreck Oct 11 23:23:34 anybody have suggestions for < $100 vector editing tools? Oct 11 23:26:10 does the 'tools' namespace allow inserting design-time placeholder images? Oct 11 23:26:13 i know it works for text Oct 11 23:26:37 Should work with all attributes Oct 11 23:27:46 SimonVT when you use gradle sub-projects, are the things depended on supposed to use the android plugin , or the android-library-plugin ? Oct 11 23:28:03 hm ah does non of that stuff work for eclipse Oct 11 23:28:08 lol thats probably my problem Oct 11 23:29:57 g00s: Is the subproject an android project or an android library project? Oct 11 23:30:15 i guess just a reusable chunk used by the main project Oct 11 23:31:04 Soo.. a library? Oct 11 23:31:14 i suppose .. not to be published anywhere though Oct 11 23:31:27 no aars going to maven central, or any repo for that matter Oct 11 23:32:50 i think i need the android-library plugin, based on the gradle examples Oct 11 23:33:35 but if its just plain java, i guess you still use the 'java' plugin Oct 11 23:34:14 * g00s attempts first multi-project build Oct 11 23:36:29 Sorry if anyone already answered this a minute ago my internet cut out --- hey guys, I have created an alarm that triggers a notification to go off. My issue is that when I click the notification nothing happens, the notification drawer just closes and the notification just stays there. Any suggestions? Oct 11 23:37:31 i guess it wasn't auto-dismiss and the intent went into oblivion Oct 11 23:37:42 like, nobody caught the intent Oct 11 23:38:31 ahh that makes sense. Oct 11 23:38:46 i think i changed my intents around, i'll take a look thanks! Oct 11 23:41:27 I don't think the android plugin is compatible with the java plugin at this point Oct 11 23:44:28 first multi-project build? Oct 11 23:45:13 navetz, you need to set a content intent for the notification Oct 11 23:45:21 and, of course, handle it accordingly Oct 11 23:45:27 gradle sub-projects Oct 11 23:46:01 i guess they call them 'multi-project' builds, yeah Oct 11 23:46:58 pfn: How do you handle an intent? I believe I am setting the content intent correctly like so: http://pastebin.com/sJx0Y9bk Oct 11 23:47:40 navetz see 'filter rules' for match http://developer.android.com/reference/android/content/IntentFilter.html Oct 11 23:48:48 You're telling the PendingIntent to send a broadcast, not start an activity Oct 11 23:51:08 g00s: do I need to set an intent filter for this? Oct 11 23:53:19 SimonVT: ah I see, I'll change it to getActivity instead thanks Oct 11 23:54:17 ahh getActivity did the trick! except the notification didn't go away. almost there :) Oct 11 23:57:07 setAutoCancel ! Oct 12 00:55:37 Happy friday guys Oct 12 00:56:08 woohoo, this could be my last unemployed friday ;) Oct 12 00:56:15 Question, In my book it says to assign The listener OnSystemUiVisibilityChangeListener() to the View that I am using to control navigation visibility. Oct 12 00:56:42 How would I identify the view that I am using for navigation? Oct 12 00:56:51 would that be the Actionbar? Oct 12 01:01:23 anyone? Oct 12 01:07:12 using android studio for the past 2 months has been a nightmare. I thought gradle was supposed to make it easier...... Oct 12 01:07:17 lolzers Oct 12 01:07:27 heard lots of annoying stuff regarding Gradle Oct 12 01:07:56 I've been trying for 3 days to implement the SlideMenu library Oct 12 01:08:14 just can't seem to wedge it in there Oct 12 01:08:15 its usually as simple as restarting the program Oct 12 01:09:57 the problem is that it's not in a repo, and doesnt' have proper build.gradle files. So, I'm learning grade, on top of Android Studio, on top of Android itself, on top of.... Oct 12 01:10:30 i just use Eclipse Oct 12 01:10:41 I miss eclipse Oct 12 01:10:44 with the Android SDK plugin Oct 12 01:11:03 i wont touch any of the new environments until I have more experience. Oct 12 01:11:38 problem is that I'm trying to learn 'the right way' rather than shortcutting myself. However, I feel like I'm wasting time. Oct 12 01:12:01 Honestly, I've spent the past 3 days just trying to figure out how to add this library to the build so I can use it. Oct 12 01:12:12 Rescue9 do you have the jar ? Oct 12 01:12:18 something that would have taken me 10 mins in eclipse at most Oct 12 01:12:26 no g00s, no jar Oct 12 01:12:30 just the github repo Oct 12 01:12:42 Rescue9 is it SimonVT library ? Oct 12 01:12:52 anyone have any idea what file/project the android recent apps window is written in? Oct 12 01:13:03 no.... I was using his to try and build my fork of the SlideMenu Oct 12 01:13:25 Rescue9 did you dl the android gradle examples and look through those ? Oct 12 01:13:27 g00s: https://github.com/Rescue9/SlideMenu Oct 12 01:14:13 LOL... I've looked at so many examples I've lost count. Can you point me to the specific ones you're referencing please? Oct 12 01:16:13 Rescue9 so, did you dl the sources for that and build it ? Oct 12 01:16:57 for slidemenu? Oct 12 01:17:00 yeah Oct 12 01:17:58 no. I'm trying to use it as I would within Eclipse... android project library. Oct 12 01:18:16 I thought that was the purpose behind gradle, to reuse Oct 12 01:18:52 so the aar isn't in a maven repo then ? Oct 12 01:18:58 no Oct 12 01:19:10 tell SimonVT he needs to get his crap together :) Oct 12 01:19:26 it's not SimonVTs code Oct 12 01:19:39 for now, build it, get the aar, put the aar in some directory like .gradle/local-artifacts Oct 12 01:20:02 and then un your dependencies { } block, add the dir Oct 12 01:20:57 Ok, I can try that. My ultimate goal though is to add the aar to a repo. Oct 12 01:21:49 ;l Oct 12 01:21:53 ignore that Oct 12 01:41:33 so i got this mediaplayer service running w/ my app.. should i communicate through binding or messaging? Oct 12 01:42:32 the old music player used binding Oct 12 01:43:17 20 minutes later and I'm still trying to build. :-P Oct 12 01:46:13 How can i remove the dropshadow from the actionbar (using appcompat)? Oct 12 01:52:56 why would you want to remove your penis? Oct 12 01:52:58 totally kidding Oct 12 01:55:18 lol Oct 12 01:55:18 FINALLY! Oct 12 01:55:42 So i need to remove the dropshadow under the actionbar - i'm using the appcompat library - any ideas? i don't see anything in the xml files for it. Oct 12 01:59:36 jedir0x i was just looking in google Oct 12 01:59:37 not sure Oct 12 01:59:43 let me check my book, i know it talks of appcompat Oct 12 02:00:04 thanks Oct 12 02:00:13 i'm still consulting the google Oct 12 02:01:34 it might actually be the window Oct 12 02:03:42 there's a book that talks about appcompat already? Oct 12 02:04:31 that's so fast Oct 12 02:05:43 jedir0x, use hierarchy viewer, find the view that has the shadow, then find the styles applied to it, then set the style you want to remove it Oct 12 02:05:49 maybe that'd work Oct 12 02:06:08 otherwise, just dig through the styles xml included with appcompat Oct 12 02:06:12 hierarchy viewer? Oct 12 02:06:23 the outline view? Oct 12 02:06:34 no, in monitor Oct 12 02:07:55 yeah it has to do with style Oct 12 02:08:16 i've never used this tool before Oct 12 02:08:19 it's awesome, thanks. Oct 12 02:09:13 check this out Oct 12 02:09:14 http://stackoverflow.com/questions/18737419/strange-divider-with-the-v7-support-actionbar Oct 12 02:09:21 its the first asnwer to the question Oct 12 02:09:22 try that. Oct 12 02:10:09 yeah, i saw that one - wasn't sure if i liked the solution. I'll mess with it. Oct 12 02:10:30 in this hierarchy viewer - i'm looking at the views... but whereare the styles applied? Oct 12 02:25:56 hmm im able to receive udp packets but not send them, anyone run into this? only using my local wifi Oct 12 02:27:37 why would anyone run into that in an android room :P Oct 12 02:27:54 because its on an android device? Oct 12 02:27:56 you most likely have the wireless card set at a certain mode Oct 12 02:27:59 ooooh Oct 12 02:28:01 lolz Oct 12 02:28:06 :P Oct 12 02:28:11 how can i check? Oct 12 02:28:22 hell if i know :P Oct 12 02:28:28 Google magic! Oct 12 02:28:40 honestly, you will most likely find it by googling yourself Oct 12 02:28:43 its pretty sweet Oct 12 02:29:09 try googling android wireless settings or something along those lines **** ENDING LOGGING AT Sat Oct 12 02:59:59 2013