**** BEGIN LOGGING AT Mon Jun 17 02:59:58 2013 Jun 17 04:14:34 Does anyone know how to customize how your app appears in the intent chooser dialog? Jun 17 04:16:31 have you tried adding a label and icon to the intent filter? Jun 17 04:17:19 alex_PP: didn't know you could do that, thanks Jun 17 04:21:22 anyone have a problem with android-studio now creating new resource IDs? Jun 17 04:21:29 s/now/not Jun 17 04:23:39 intellij for android work is sounding more and more like eclipse with each passing day :D Jun 17 04:23:51 lol Jun 17 04:24:30 is android-studio not used much or what? Jun 17 04:24:58 I use us everyday Jun 17 04:25:03 us/it Jun 17 04:25:14 oh as im sitting here in irc, my R.java magically updated? Jun 17 04:25:18 feckin slow Jun 17 04:25:32 weird Jun 17 04:25:37 fast as hell here Jun 17 04:25:38 :) Jun 17 04:26:40 my pc is snappy as hell Jun 17 04:26:44 windows or linux? Jun 17 04:26:54 im on linux, although that shouldnt matter Jun 17 04:26:59 osx Jun 17 04:27:48 I, for one, am using studio Jun 17 04:27:55 not that I know what I'm doing Jun 17 04:28:09 I think most people use intelliJ or AS Jun 17 04:28:19 damn near the same thing no? Jun 17 04:32:09 fk sake Jun 17 04:32:13 I spoke too soon Jun 17 04:32:20 AS is not…erm Jun 17 04:32:26 causing a problem :) Jun 17 04:32:36 my problem? Jun 17 04:32:45 ANR warning everytime I debug Jun 17 04:32:48 not updating R.id's in your R.java? Jun 17 04:32:51 then app auto closes Jun 17 04:32:57 oh ok, not my problem lol Jun 17 04:33:00 in the middle of me debugging Jun 17 04:36:29 you have to have a reason to switch to AS Jun 17 04:36:33 from eclipse Jun 17 04:36:55 I think most people do it out of sheepleness Jun 17 04:37:03 * StingRay_ invented a word! Jun 17 04:48:02 people need reasons to switch from Eclipse? Jun 17 04:48:22 they need woken up Jun 17 04:48:28 they're trapped in the Matrix Jun 17 04:49:54 Hello. Jun 17 04:50:32 JakeWharton: well having experienced both now, I see why as a user I would want to Jun 17 04:50:42 JakeWharton, Not enough red pills on the market Jun 17 04:50:53 but I dont see how I would justify a team/project switching asap Jun 17 04:51:01 I've a problem with InputStream. When I call readObject() I get a ClassNotFoundException. Jun 17 04:51:56 Oh, it's an ObjectInputStream. Jun 17 04:52:13 StingRay_: IntelliJ is such a superior editor in general that I feel like i'm in handcuffs anytime I touch Eclipse Jun 17 04:52:15 On "normal" Java the same code works fine. Jun 17 04:52:56 JakeWharton: see I agree, to a "degree" but not so much so that I would push for it as soon as possible Jun 17 04:53:34 I did that once with an entire team, 3ds max to Maya, cause the difference was worth the immediate downtime and ramp up Jun 17 04:53:45 I dont see that as great with these two Jun 17 04:54:03 The code should be IDE agnostic anyways Jun 17 04:54:27 indeed, always :) Jun 17 04:54:31 the user/coder is not Jun 17 04:54:40 most of the time Jun 17 04:56:05 and unfortuante that in development, to a degree when forced change can lead to resentment, productivity will suffer ….somewhat Jun 17 04:57:12 get one person using it and your entire team will switch in a month Jun 17 04:57:19 it's infectious Jun 17 04:58:29 hmmm, I need a gradientStroke :( Jun 17 04:58:38 or a strokeGradient Jun 17 04:58:40 :) Jun 17 05:02:06 JakeWharton: I got a square reader :) Jun 17 05:02:13 in the uk Jun 17 05:02:20 am somewhat pleased Jun 17 05:02:33 and it works? Jun 17 05:02:49 you mean does it read tracks on a card ? Jun 17 05:02:52 yes course Jun 17 05:02:55 :) Jun 17 05:03:11 i meant more that the payments actually go through Jun 17 05:03:27 no and thats your fault as you dont support uk Jun 17 05:03:48 but there are options and libs to read the tracks, thats what I'm suprised by Jun 17 05:04:04 but none from your good selves Jun 17 05:06:32 why would we release something which does that? Jun 17 05:07:50 yeah, suppose Jun 17 05:11:37 but then again, why not go global by now with the payment system Jun 17 05:14:08 we are Jun 17 05:15:05 sorry to say, but a little slow Jun 17 05:15:15 I signed up for news 2.5 years ago Jun 17 05:15:46 well you try launching a global payments processing network and we'll race you Jun 17 05:16:25 give me your funding or we can split it and I will do my best Jun 17 05:17:08 i'm not sure that's how races work Jun 17 05:17:14 or business Jun 17 05:17:33 business rarely, races … yeah they do Jun 17 05:18:56 feel free to apply. you can work on furthering our international expansion Jun 17 05:19:33 or better yet, work for the government and make them suck less Jun 17 05:19:54 did the questionair made a correct choice in "status" ? http://stackoverflow.com/questions/17005837/persistent-foreground-android-service-that-starts-by-ui-works-at-sleep-mode-too Jun 17 05:20:36 JakeWharton: there is no shame in copying such things Jun 17 05:20:50 look at what others have done, on the cheap and quick Jun 17 05:21:10 * StingRay_ speaks of paypal/ebay / amazon / google Jun 17 05:21:15 and when you think of Square do you think "cheap and quick"? Jun 17 05:21:56 is that not irrelevant , cheap an quick in realisation is not cheap and quick as in poor quality and experience Jun 17 05:22:12 neways, not looked into it much, other than, oh, still not here :) Jun 17 05:23:02 i'm pretty sure we could turn the UK on in a day with a few engineers if we wanted it to suck and wanted to be sued by the government Jun 17 05:24:18 Google Play requires 2 screenshots for app submission, but my app has no GUI. What do? Jun 17 05:24:32 take a screenshot of nothing :) Jun 17 05:24:39 take a selfie Jun 17 05:24:43 ha Jun 17 05:25:01 perhaps a screenshot of my app's entry in Settings>Apps Jun 17 05:25:15 there no settings screen ? Jun 17 05:25:23 what does it do exactly ? Jun 17 05:25:25 not at this time Jun 17 05:25:35 hahaha selfie Jun 17 05:25:54 it will by the time it reaches true "1.0" status, but right now there's nothing to configure Jun 17 05:26:13 BHSPitMonkey: whats it do ? Jun 17 05:26:54 StingRay_: it's 2 apps actually; one runs on something like an ouya or google tv (something connected to a display), and one runs on handheld devices Jun 17 05:27:24 oh what is it's function ? Jun 17 05:27:29 remote display ? Jun 17 05:27:31 the client lets you share things from the standard "Share via..." dialog in Android, which zaps the content over to the device running the server app Jun 17 05:27:55 ok then have an icon based diagram that denotes and symbolizes that Jun 17 05:27:59 as the screenshots Jun 17 05:28:01 not quite remote display, but just a way to get a URI from point A to point B Jun 17 05:28:31 StingRay_: do you know if Google is usually friendly toward that kind of "screenshot abuse"? :) Jun 17 05:28:33 then your screenshots serve and informative purpose Jun 17 05:28:38 they are fine Jun 17 05:28:44 I don't want to get rejected due to not meeting the guidelines or something Jun 17 05:28:47 if it has purpose Jun 17 05:29:36 BHSPitMonkey: top apps in the store disregard the guidelines. you'll be fine Jun 17 05:34:47 BHSPitMonkey why not take a screenshot of the "share via" , if thats the only UI visible Jun 17 05:35:20 hi all Jun 17 05:35:26 put a gaussian blur over superfluous entries maybe Jun 17 05:35:27 is it possible to use multiboot in nexus to run android or ubuntu tuch? Jun 17 05:35:59 g00s: why gaussian ? would that not look odd on the "inner" boundaries ? ;) Jun 17 05:36:10 yeah. definitely box blur Jun 17 05:36:13 like a pro Jun 17 05:36:15 ;) Jun 17 05:37:04 maybe a lens flare or two Jun 17 05:37:36 dont!, I have see promo screens with pointless use of lens flare Jun 17 05:43:01 i like it when people take photos of their screens and use that as the "screenshot" Jun 17 05:45:52 StingRay_ got close to a bobcat today Jun 17 05:45:59 got a pic too :) Jun 17 05:46:07 erm Jun 17 05:46:11 with my shitty little G9 Jun 17 05:46:16 you mean a lawnmover with a bucket ? Jun 17 05:46:24 lawnmower* Jun 17 05:46:35 Lynx rufus :) Jun 17 05:47:44 see cat do some amazing machinery Jun 17 05:48:05 but not ever seen a real use for bobcats beyond some gardening :) Jun 17 05:49:59 this is what I like to play in http://www.merlo.it/AA_2012_Draft/entry.htm Jun 17 05:50:13 pretty much does everything you would want if you get it with full rear PTO Jun 17 05:50:24 and gives you a feeling of having to control time Jun 17 05:50:46 cause it's a hydrostatic motor, you have to kinda offset your actions and reactions :) Jun 17 05:51:46 g00s: you seen my vid of me and a friend having a pulling competition ? with 2 rather large machines ? Jun 17 05:52:02 I had a merlo he had a case int. tractor Jun 17 05:52:26 nope, will have to wait … time for bed Jun 17 05:52:28 gnight Jun 17 05:52:36 night Jun 17 06:47:15 Just published to the Play Store! (First time!) Jun 17 07:02:43 BHSPitMonkey: got all the promo gfx done ? Jun 17 07:13:50 StingRay_: the screenshots, yeah Jun 17 07:14:09 well the main marketing graphic is "the one" Jun 17 07:14:22 imho Jun 17 07:14:29 secondary are the screenshots Jun 17 07:14:57 StingRay_: I'm going to make sure I have that ready when I'm out of the alpha/beta phase Jun 17 07:15:23 right now it's just an early release of a small open-source app. Doesn't matter too much. Jun 17 07:15:23 what's your app? Jun 17 07:16:09 anything fun? Jun 17 07:16:24 To everybody here running alpha/beta tests: Make sure you DO NOT accidentially publish as prod; it's irreversible, and you'll end up with idiotic workarounds like I did: https://play.google.com/store/apps/details?id=net.kjeldahl.tournman Jun 17 07:17:11 kjeldahl: you can unlist it Jun 17 07:17:24 takes a while Jun 17 07:17:37 StingRay_: Not without unlisting the alpha/beta as well, AFAIK. Jun 17 07:17:52 not sure thats true Jun 17 07:18:01 as long as the version in beta is unique and higher Jun 17 07:18:18 It's true; I tried. Unpublishing from the store make it unavailable for testers as well. Jun 17 07:18:27 oh yeah Jun 17 07:18:32 remembered now Jun 17 07:18:33 Unpublishing affects prod and beta and alpha. Jun 17 07:18:38 yeah I just switched package name Jun 17 07:18:56 blaablaa for release and blaablaaabeta for erm Jun 17 07:18:59 beta Jun 17 07:19:09 There's no issue with the app name itself? A new package name can have the same app name? Jun 17 07:19:24 if worse comes to worse and I make the mistake again, I will have a new blaablaaafinalbeta Jun 17 07:19:27 :) Jun 17 07:20:49 btw kjeldahl hope thats not the final icon :) Jun 17 07:21:17 What do you mean!! ;-) No, it's the MVP icon. Jun 17 07:21:37 MVP ? Jun 17 07:24:15 Minimum Viable Product. I should have real artwork before beta finishes. Jun 17 07:24:46 (do the least amount of work until you have a product that can actually sell) Jun 17 07:25:03 well I like the item layouts Jun 17 07:25:04 Hey, I've a problem with updating pending intent extras and singletop activity, none of the ways I googled is not working Jun 17 07:25:05 :) Jun 17 07:25:31 Thanks! Jun 17 07:26:46 I want to update my notification pending intent extras and once the user clicks on it, I don't one the activity to be shown more than once Jun 17 07:27:02 SingleTop, actually. Jun 17 07:27:39 any experience? Jun 17 07:28:46 kjeldahl: if i were to make one alteration it would be the type in the center (3 lines) being slightly smaller allowing for a little more space, cause there is just a slight difference from 1-2 and 2-3 Jun 17 07:29:55 could be just my eyes and the type size difference Jun 17 07:29:57 :) Jun 17 07:32:16 Thanks, I'll give it a try. You mean more space between the names and "gametype and date"? Jun 17 07:33:05 yeah the center colum with the 3 lines/rows and the scrore seem a little cramped Jun 17 07:35:05 thinking about it, visually it's not strongly obvious that it's the score between the names and pic Jun 17 07:35:09 hmmm Jun 17 07:35:16 ok I'm gonna stop looking at this now Jun 17 07:35:24 forget what I'm saying :) Jun 17 07:35:52 Ha ha, I know how you feel. When I get a professional to look at it (no offense), he'll have opinions too. We all do. Jun 17 07:36:02 alex_PP: http://bhspitmonkey.github.io/VuDo-Android/ Jun 17 07:36:14 kjeldahl: who says I'm not ? Jun 17 07:37:00 kjeldahl: I think the artwork needs more blood dripping from the word "killer" Jun 17 07:37:04 I'm assuming, based on you answering technical questions. That doesn't disqualify you from design opinions, but that would make you "special". ;-) Jun 17 07:37:21 this is a social network for murderers, right? Jun 17 07:37:38 well I'm a vfx/3d artist/designer of 17 years so, maybe I am special :) Jun 17 07:37:46 Considering the amount of energy spent hitting those innocent balls, yes. Jun 17 07:37:56 StingRay_: Definitively. Jun 17 07:38:28 I'm either very special, or a sh*t developer ;) Jun 17 07:38:37 I really cant say which Jun 17 07:38:47 actually, an app or website to help murderers find other murderers could be good for the public Jun 17 07:39:07 StingRay_: I'd settle for special if I were you. Jun 17 07:40:06 btw being both a new developer, and a professional vfx/artist type, is a big disadvantage I have found Jun 17 07:40:24 I dont reccomend that..at all Jun 17 07:41:05 StingRay_: make me a new logo for VuDo, will ya? Send a pull request when you're finished :) Jun 17 07:41:59 Mine is garbage, I just threw it together this evening because I wanted to hurry up and release https://raw.github.com/BHSPitMonkey/VuDo-Android/master/VuDo/src/main/ic_launcher-web.png Jun 17 07:41:59 Yes, must be hard. I spent 10 years developing video games. By the time we had code base "1.0", the gfx had already been redone 2-3 times. Hard to prioritize if you are only one person what to waste your time on. ;-) Jun 17 07:42:04 erm Jun 17 07:42:24 (It's supposed to be a cross between a voodoo doll and an android phone...) Jun 17 07:42:49 BHSPitMonkey: yeah it's a complicated message your attempting visually Jun 17 07:42:55 and probably not a path I would choose Jun 17 07:42:58 I think that would scale down really poor. Those needles would become dots. You need a pixel artist to pull that off! Jun 17 07:43:08 less phone, more voodo doll I think Jun 17 07:43:10 doo* Jun 17 07:43:28 well luckily I have no launcher currently :P Jun 17 07:44:07 and yeah, scaled down: https://raw.github.com/BHSPitMonkey/VuDo-Android/master/VuDo/src/main/res/drawable-mdpi/ic_launcher.png Jun 17 07:44:18 I'll replace it later Jun 17 07:44:29 also, just so you know, equal lengths of those pins is not good with differential angles Jun 17 07:44:34 Just like I said! ;-) Jun 17 07:44:55 Hello guys/girls, Jun 17 07:44:56 0 Jun 17 07:44:56 down vote Jun 17 07:44:56 favorite Jun 17 07:44:56 Anyone has any idea if I can programatically connect to an AP by using BSSID? just like the following linux command? Jun 17 07:45:20 tagrudev: erm Jun 17 07:45:22 paste fail? Jun 17 07:45:22 ah paste in irc :) Jun 17 07:45:32 Anyone has any idea if I can programatically connect to an AP by using BSSID? just like the following linux command? Jun 17 07:45:36 :) that's it Jun 17 07:45:44 iwconfig eth0 ap 00:60:1D:01:23:45 Jun 17 07:45:46 no it isn't Jun 17 07:45:47 for example Jun 17 07:45:51 kjeldahl: I worked in console games for 10+ years, i'm too perfectionist to be a dev I think Jun 17 07:46:08 BHSPitMonkey, I can't tell druid to connect to a specific bssid ? Jun 17 07:46:30 tagrudev: there's a way, I was just remarking on your paste Jun 17 07:46:38 StingRay_: Yeah, that's gotta hurt. Jun 17 07:46:59 BHSPitMonkey, sorry about the paste, would you point me out on how to do it ? Jun 17 07:50:10 tagrudev: I don't know the API, but I think the permission is android.permission.CHANGE_WIFI_STATE Jun 17 07:50:28 perhaps start with a search for that and see where you end up Jun 17 07:50:52 BHSPitMonkey, http://t0.gstatic.com/images?q=tbn:ANd9GcRgbu6op0TDxdXyFrPtgQy4v-k7UmSwJSbbiRthLXE6Lob24yM3 Jun 17 07:50:53 ty Jun 17 07:50:54 :) Jun 17 07:57:28 Anybody have any experiences to share regarding implementing Facebook login (in addition to the Google Account login which 99% of the Android users have anyway)? Is it worth it for an Android app? I'm just talking about login; even my app allow for Facebook friend selection for opponents and sharing etc. Jun 17 08:04:25 kjeldahl: depends on how much engagement you expect to get out of it Jun 17 08:04:39 and/or how you envision that functionality being used Jun 17 08:07:42 I know as a consumer, anything that links to facebook, I steer clear of ;) Jun 17 08:09:49 As I said, for most Android users, I expect they will just use their Google account. Jun 17 08:10:21 But it's a bit tricky, regarding identities. My backend separates users from identities. So one user may have multiple identities (one google, one facebook etc). Jun 17 08:11:05 If logging in and selecting opponents with using the same identity system, everything is in sync. Unfortunately, I suspect most users will log in with Google and then select opponents with FB. Jun 17 08:11:50 So when I get fancy, I need to match a google identity with a facebook identity. Not a simple problem. Not strictly necessary, but it makes it more fun. Jun 17 08:17:36 It's basically the problem where MOST users use their Google identity on their Android devices, but have all their friends on FB. Until Google can sync their contact list with FB (yeah, not bloody likely), it will remain a mess. Jun 17 08:18:26 well all I know is fb sync for contacts included by some manuf. (sammy) really screw the android flow of things Jun 17 08:18:55 like you need fb api access to even get thumnails, and you cant get a cache local version Jun 17 08:19:01 you have to download the fkin thing Jun 17 08:19:12 I haven't even attempted to go down that path yet. Jun 17 08:19:16 thats when my tollerance of all things facebook ended Jun 17 08:19:37 Yeah, it's a PITA the whole Facebook SDK thingy IMHO. Jun 17 08:22:16 * StingRay_ wonders how hard it would be to create a new drawable type ... Jun 17 08:23:04 well actually a new sub operation type of a **Gradient Drawable Jun 17 08:25:37 Why we have several ways to get layout-inflater ? Jun 17 08:25:58 why not? Jun 17 08:26:12 variety is the spice of life Jun 17 08:29:42 alex_PP: But minimalism is the way to achieve performance, and lack of clutter. Jun 17 08:30:16 so just use 1 and stick to it :) Jun 17 08:39:15 If i use "AnimationUtils.loadAnimation" to fade-out my view, i see the 'previous' view getting faded out. E.g.: seek bar starts at 24%.. i set it to 74%, but when i fade out, i see 24% in the screen again for the animation length (300ms) Jun 17 08:39:20 does any one know this problem? Jun 17 08:39:41 am i creating the view variable wrong? Jun 17 08:40:40 Please note that all variables are actually good, there is nothing changed, but the output on the screen is wrong, this has to do with animation Jun 17 08:41:15 Im creating the view in the hide function like this: final RelativeLayout wrapper = (RelativeLayout) findViewById(R.id.seekbarwrapper); Jun 17 08:41:57 rved: not sure anyone could visualize what you doing Jun 17 08:42:08 wait ill make image Jun 17 08:42:08 eg, what is 24% and 74% Jun 17 08:42:14 of what ? Jun 17 08:42:17 how is it set Jun 17 08:42:25 what is it visually etc Jun 17 08:42:31 yeah screenshot would be better Jun 17 08:42:57 I suspect it may have to do with fill method Jun 17 08:43:06 but depends on what the heck it is your doing and how :) Jun 17 08:43:42 by fill method/type flag i mean http://developer.android.com/reference/android/view/animation/Animation.html#attr_android:fillAfter Jun 17 08:43:51 fillBefore etc Jun 17 08:49:29 how can I open a samples project in the new android studio :? Jun 17 08:50:59 StingRay_ https://www.dropbox.com/s/nmv0caunf07dm1h/help.jpg?m Jun 17 08:51:53 on debugging via usb .. Eclipse->Phone i don't have the problem Jun 17 08:52:11 but when i export / sign it.. and install ithe apk via dropbox, i do have this problem Jun 17 08:52:20 eh??? Jun 17 08:52:25 now that is odd Jun 17 08:52:36 indeed Jun 17 08:52:49 i don't have pro guard activated when i export Jun 17 08:52:53 so that makes it more odd Jun 17 08:52:54 in developer options on the phone Jun 17 08:53:06 set anim rate to be like the slowest it can be Jun 17 08:53:13 then try it Jun 17 08:53:37 Hi devs, I have a problem here with this intent function "Intent intent1 = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);" Jun 17 08:53:37 is this the same as changing the animation speed in the app ? Jun 17 08:53:48 anything crazy about that code? Jun 17 08:54:09 http://paste2.org/s641cczd Jun 17 08:54:11 rved: well it changed the system anim time Jun 17 08:54:23 i tried to make a sdk check, but the app wouldn't open Jun 17 08:54:26 or rather the timer for the animation within the OS Jun 17 08:54:31 (this is a test piece of code) Jun 17 08:54:42 when i do wrapper.animate() .. i don't have the problem Jun 17 08:54:49 but then i have to use minSDK 8 Jun 17 08:54:52 * 12 Jun 17 08:54:59 and want to use 8 Jun 17 08:55:07 or at least 10 Jun 17 08:55:50 hey guys, is anything crazy with this code? http://pastebin.com/jNJeqz8E , I get data=null error. Jun 17 08:56:10 rved: ok it's wrapper thats the view yes ? Jun 17 08:56:34 yes, i have a relative layout, which is called seekbarwrapper Jun 17 08:56:42 what does moveTaskToBack do ? Jun 17 08:56:55 anything view based ? Jun 17 08:57:19 when the dialog fades out, it must still be active (can't use finish) Jun 17 08:57:34 so i moved it to back Jun 17 08:57:41 so the app is gone Jun 17 08:58:06 is it okay to pass just the first 2 arguments of onActivityResult()? Jun 17 08:58:48 rved: does it happen without the viersion check stuff? if you just played a xml anim ? Jun 17 08:59:06 I'm thinking using alpha and animate maybe doing it Jun 17 08:59:26 as in have you tested either without that just using/playing xml anim Jun 17 08:59:31 or on a pre honeycomb Jun 17 08:59:55 yes the actually script that causes the fade-out error loos like:http://paste2.org/gb8NVnd8 Jun 17 09:00:19 *loos = looks like Jun 17 09:01:07 the anim xml : http://paste2.org/dFJ1B9d5 Jun 17 09:01:09 what happens if you post delay the moveTaskToBack for like 200ms or something Jun 17 09:01:34 ok moment Jun 17 09:03:19 btw these are all wild guesses and tests Jun 17 09:03:43 best kind of debugging Jun 17 09:04:54 StingRay_ when i add android:startOffset="200" /> to the anim xml the same things happens Jun 17 09:05:06 is there another way to fadeout using java instead of xml? Jun 17 09:05:21 no i mean postDelay the moveTaskToBack Jun 17 09:05:31 cause wrapper.animate() Jun 17 09:05:31 .alpha(0f) did make the problem go away Jun 17 09:05:39 but then i have to upgrade minSDK Jun 17 09:06:55 or is my "final RelativeLayout wrapper" defined at onCreate and doesn't it update after i touch the seek bar? :s Jun 17 09:07:38 i mean http://paste2.org/bkVxVU8p Jun 17 09:10:27 ok ill try it moment, in the meanwhile, here is my code: removed some parts of my code to give you an overview: http://paste2.org/jdc28ygF Jun 17 09:10:34 also could try http://paste2.org/bXWNIyWt Jun 17 09:11:31 and, hadnt noticed it, but you set the animation listener after you start the animation Jun 17 09:11:48 not sure in the execution how much of a difference that would make Jun 17 09:11:54 but should be set before Jun 17 09:11:58 So does this link produce the image of two handsome guys (one FB, one G+)? I'm prepping for "share match" image generation.. http://killermatch.com/ttapp/match/5f080490-4b5e-413d-bb39-5213a4e0164f Jun 17 09:12:43 should have a little indicator icon within the image Jun 17 09:12:50 g+ Vs fb Jun 17 09:12:52 :) Jun 17 09:12:58 Works? Jun 17 09:13:04 indeed Jun 17 09:13:11 Are you logged in to Facebook? Jun 17 09:13:14 no Jun 17 09:13:17 GREAT! Jun 17 09:13:17 god no Jun 17 09:13:23 like REALLY REALLY NO NO!!! Jun 17 09:13:24 ever Jun 17 09:13:42 Left image is pulled from FB. Jun 17 09:13:46 seee, you publicly fraped a user Jun 17 09:14:24 kjeldahl: would be nice to have the source icon though, within the image Jun 17 09:14:30 g+ and fb icons etc Jun 17 09:14:51 Definitively an idea yes. Jun 17 09:14:54 f-raped? Jun 17 09:15:10 facebook-raped Jun 17 09:15:16 Lol Jun 17 09:15:20 fraped Jun 17 09:15:27 StingRay_ moved start animation after listener.. deleted the move to back to test.. Jun 17 09:15:38 same problem Jun 17 09:15:47 tried my postDelay ? Jun 17 09:15:50 when the fade out starts, it uses and old view Jun 17 09:15:53 yes altried Jun 17 09:16:01 also no good Jun 17 09:16:14 ok last thing, take out any cache quality reference the view has Jun 17 09:16:23 you set it in the animation Jun 17 09:16:27 how ? :) Jun 17 09:16:44 you mean? android:drawingCacheQuality="high" Jun 17 09:16:52 yeah, get rid Jun 17 09:17:21 then add fillAfter=true to anim, either code or xml Jun 17 09:17:23 and try that Jun 17 09:17:47 after that, I'm out of any more off the wall ideas Jun 17 09:21:26 StingRay_ nope too bad this didn't work either Jun 17 09:21:47 i think the best way is to make a sdk check and use different codes for animation? Jun 17 09:22:06 but is this possible Jun 17 09:22:21 why would it not be ? Jun 17 09:22:36 well, i never tried it before, best thing i came up was something like this http://paste2.org/s641cczd Jun 17 09:23:11 should this be correct? Jun 17 09:23:37 my app would open once, but would not reopen with this script Jun 17 09:23:59 AnimatorListenerAdapter ? Jun 17 09:24:01 when i press my icon again, it only shows the press state (icon gets smaller) Jun 17 09:24:09 i got that from the docs Jun 17 09:24:26 http://developer.android.com/training/animation/crossfade.html Jun 17 09:25:19 really dont get the naming on that one Jun 17 09:33:07 How can I order an activity to the back of the activity stack (not just my own) and bring it to the front on demand? Jun 17 09:39:11 Why to use TableLayout and rows. Jun 17 09:39:23 If I could achieve it by LinearLayout ? Jun 17 09:42:34 you asking why you should/could ? Jun 17 09:42:49 how would anyone know ? Jun 17 09:49:09 he probably means "when," and the answer is: when it's appropriate Jun 17 09:50:04 oh, then reading it as "when" I would pitch the answer : never Jun 17 09:50:39 oh hang on, na, yours is better spobat ….thinking about it Jun 17 09:51:02 cause you could pretty much do anything with combos of linearLayouts Jun 17 09:53:20 StingRay_: I really like the linearLayout because is flexible and scalable, and I don't see the point of using others :] Jun 17 09:53:31 (Other ways to position) Jun 17 09:53:42 then I worry about you :) Jun 17 09:53:58 depending on requirements :) Jun 17 10:00:46 StringRay_ i solved it like this now http://paste2.org/LPn4ZZaC Jun 17 10:00:48 works Jun 17 10:01:21 finish :) Jun 17 10:02:30 * StingRay_ wonderds if it is time to try ubuntu phone again Jun 17 10:03:16 Sounds like you have too much time on your hands.. ;-) Jun 17 10:04:43 far from, but I would call it an exercise … like "OMG I need a break" Jun 17 10:05:01 so it's rather finding something productive to do inside of a break ;) Jun 17 10:06:36 hows your smoking cessation going? Jun 17 10:06:41 speaking of breaks... ;p Jun 17 10:06:47 really sh*t Jun 17 10:06:54 I'm no fan of Java (the language), but having something between native compiled output and the source code is something I do believe in (with a future of at least two different processor architectures). Which is why I suspect native platforms (like iOS, and Ubuntu) may struggle in the future. Jun 17 10:07:03 What's a washing machine doing in a pub? Jesus, I need a drink! Jun 17 10:07:10 well, I mean, oh yes fine, all good, still not smoking! Jun 17 10:07:22 But I guess it could be something like LLVM "bytecode" or similar I guess. Jun 17 10:07:26 but inwardly thinking, "really sh*t" Jun 17 10:08:42 see I'm only just getting to know java, so no1 better change a thing!! Jun 17 10:08:52 if they do, I'm gonna start smoking again :) Jun 17 10:10:14 is it fine to sched. alarmManager to do something every minute ? Jun 17 10:10:39 with RTC_WAKEUP Jun 17 10:11:19 You might want to think if that is really needed Jun 17 10:11:28 StingRay_ only if you want people's battery to be dead Jun 17 10:11:38 Thats going to be a massive power drain Jun 17 10:12:07 well all I want to do is send a sms Jun 17 10:12:11 but every minute Jun 17 10:12:40 sorry, rather all I want to do, is check a db, to see if a sms needs to be sent Jun 17 10:12:43 every minute Jun 17 10:13:49 so is there a better way to approach doing this ? Jun 17 10:16:41 contentobserver? Jun 17 10:17:03 not sure how that aids me Jun 17 10:17:12 if I have a scheduled sms send time Jun 17 10:17:20 and repeating times etc Jun 17 10:17:25 You respond to the change in the db rather than polling it Jun 17 10:17:35 but there is no change Jun 17 10:17:39 was my point Jun 17 10:17:47 what's the check for? Jun 17 10:18:02 current time > send time Jun 17 10:18:12 hm, logcat not catching any of my log calls on the phone, using aLogcat Jun 17 10:18:39 or rather currentTIme > schedTime Jun 17 10:18:56 the logs are being caught in the emulator Jun 17 10:19:00 but not on an actual device Jun 17 10:19:16 anyone know what could be wrong? Jun 17 10:20:37 eSatsu: sounds like your asking for specific app support Jun 17 10:20:46 contact dev Jun 17 10:22:45 oh Jun 17 10:22:50 how can I open samples project in android studio? Jun 17 10:23:16 >>as of the newest version of Android (4.1 Jelly Bean), Android apps can no longer read each other's logs using the READ_LOGS permission Jun 17 10:23:55 I have a problem. I need to send some data when the phone call starts. But, on gprs/edge, the data connection is shut down before I finish sending my data. Is there some way to "hold" the call for couple of seconds? Jun 17 10:24:47 Pitel_IPEX: not given the nature of gprs/edge, you dont really control it that way Jun 17 10:25:19 and as a user, if you could/did, i would kill you!! :x Jun 17 10:25:23 StingRay_: I know, but my boss wants to solve it somehow. :/ Jun 17 10:25:44 Hello, I'm migrating from eclipse to android studio and my code that doesn't generate errors within eclipse (I can create a signed .apk) doesn't work within android studio (it gives some errors and I can't create an .apk). Any clue where I should start looking to solve this issue? Jun 17 10:25:55 Pitel_IPEX: tell him to segment the bands/dax that gsm/gprs work on and no problem Jun 17 10:26:04 Error: D:\android\android push app\app\SinnerGPush\build\apk\SinnerGPush-debug-unaligned.apk (The system cannot find the file specified) Jun 17 10:26:10 he may need a few hundered billion dollars though Jun 17 10:26:33 actually maybe 10x that figure Jun 17 10:26:48 k :) Jun 17 10:26:54 That file doesn't seem to exist (also not on other locations) Jun 17 10:27:00 come to think of it, it maybe cheaper to make sure all radio towers are 3g Jun 17 10:27:31 oh, and another question: when are geofences removed (if I don't remove them explicitely)? Jun 17 10:32:10 Why does my automatic response not get written the first time around? Jun 17 10:32:16 What's different then? Jun 17 10:40:45 i'm a bit dense, I dont need RTC_WAKEUP do I Jun 17 10:42:53 I do need it. Jun 17 10:42:59 That's exactly the problem. Jun 17 10:43:12 Well not exactly. Jun 17 10:46:07 anybody use open source software they created on their resumes? Jun 17 10:46:46 what open source software did you create ? Jun 17 10:46:50 out of interest Jun 17 10:48:30 how can I open samples project in android studio? Jun 17 10:50:17 BullShark, Well, I used a OSS project I'm a part of in casual speak during the interview Jun 17 10:51:01 tagrudev: does import not work ? Jun 17 10:51:03 :) Jun 17 10:51:31 But the job I was applying for was....meeeeh Jun 17 10:52:08 BullShark: if you where trying to get work for us it would be a good idea Jun 17 10:53:23 MarkS-, I'm a five year developer on the Dolphin Gamecube/Wii emulator, currently working on a ARMv7 JIT recompiler core and making the OpenGL backend work on OpenGL ES 3 devices. Where is my job? :D Jun 17 10:54:26 Sounds you already have a full time job doing that. Jun 17 10:55:00 meeeh, that's just a hobby, I don't make money off it :P Jun 17 10:56:07 Okay, then tell me why does getting a wake lock with: PowerManager.ACQUIRE_CAUSES_WAKEUP sometimes work and sometimes not? Jun 17 10:56:24 MarkS-: Migrating from Eclipse to AS means redoing your "make" stuff. Be aware AS supports "two ways" of build configs; it's own, and Gradle, where the last one is the one we're moving to. Jun 17 10:56:46 MarkS-: If you were able to export your project from Eclipse to Gradle, you should have build.gradle files in your new project. Jun 17 10:57:00 Sonicadvance1: we don't have a job in that direction at the moment (and probably also not in the near future), however for a web developer (PHP/MySQL/PostGreSQL) it would be nice to provide some open source code you did create) Jun 17 10:57:09 MarkS-: That never worked for me, so I had to rebuild them from scratch. A bit painful; documentation is scarce. Jun 17 10:57:10 kjeldahl: I have a build.gradle Jun 17 10:57:39 MarkS-: And the whole subproject/dependency thingy has changed. If you were used to Eclipse just fixing it, get ready to learn something new. Jun 17 10:58:01 MarkS-: Any "subprojects"/dependencies? And what errors are you getting? Jun 17 10:58:27 MarkS-, Dang, and here I have a spite towards PHP coding :P Jun 17 10:59:32 marrrk, I don't think I can help with that. I've only just begun Android development a couple months ago. I'm still a baby with it Jun 17 10:59:37 MarkS-: You can also build from cmdline. At the top of your project, do a "./gradlew assembleRelase" or similar. Jun 17 10:59:59 ./gradlew assembleRelease (warning typo in my previous line) Jun 17 11:00:10 kjeldahl: the error I get is what I just provided and everything else I get is just pointing in the same direction (when trying to run it in debug mode) http://pastebin.com/1sGkgYDE Jun 17 11:00:32 kjeldahl: does that work on Windows? If yes I'll try it Jun 17 11:01:14 Juck, Windows! Not much help there, except there's always path issues with windows and filenames/directories with embedded spaces.. Jun 17 11:01:37 I created one app a few months back and it still has a bug that I didn't discover at that time (we only use it internally to get a message using GCM when there is a new ticket from someone) Jun 17 11:01:44 Does the file exist in that directory at all? Jun 17 11:01:57 the file doesn't exist Jun 17 11:02:30 So the build process probably failed. Does "./gradlew.bat assembleDebug" work on the cmdline? Jun 17 11:02:55 But is shouldn't try to push the apk if the build process failed. Weird. Jun 17 11:03:26 IT shouldn't Jun 17 11:04:16 changing the directory requires some work I think, but removing the spaces should be possible Jun 17 11:04:22 trying gradlew.bat assembleDebug Jun 17 11:04:30 trying "gradlew.bat assembleDebug" Jun 17 11:05:13 hey, how's the situation with full phonecall recording? Jun 17 11:05:37 kjeldahl: that helps, it mentions that the build failed Jun 17 11:06:11 SDK location not found Jun 17 11:07:39 Great. Hope you figure it out. Gotta go out for a couple of hours. Jun 17 11:08:23 kjeldahl: thank you for pointing to this problem, this should help solving it Jun 17 11:11:22 can i somehow prevent a service from getting killed when a user swipes it off the recently used app list. when downloading something large let's say Jun 17 11:13:12 I just can't seem to get my wake lock to turn on the screen reliably. Jun 17 11:18:01 balls2thewall: does downloads using the DownloadManager also stop if the app is swiped away? Jun 17 11:27:44 My app is in the app store Jun 17 11:28:03 but in the play store it tells me that this app isn't available in my country :s Jun 17 11:28:04 i don't get it Jun 17 11:28:41 ;O Jun 17 11:28:42 nvm Jun 17 11:28:53 i forgot to check all the countries in this version Jun 17 11:28:54 ... Jun 17 11:28:57 in the dev console Jun 17 11:28:58 srry Jun 17 11:31:45 I like your affinity for the return key. Jun 17 11:49:38 Jun 17 11:50:09 Jun 17 11:58:19 MarkS- -> who's "us"? Jun 17 12:12:39 Does android optimize somehow findViewById ? Jun 17 12:13:02 optimize how? Jun 17 12:13:10 I come from Browser Based Javascript, where selectors make huuge problems sometimes (in performance) Jun 17 12:13:45 findViewById is expensive. So use it wisely. Jun 17 12:14:06 kakazza: For Example, if you don't create dynamically your layout, it could "link" the object without searching Jun 17 12:14:17 kakazza: Why ? It is expensive ? Jun 17 12:15:18 bluesm: it does a simple depth-first traversal of the entire view hierarchy, so it's proportional to the number of view instances you have Jun 17 12:15:43 kakazza: If you inflate layout, is there better way to find for example appropriate "TextView" than yourViewThatYouAreInflating.findViewById(R.id.yourTextView); ? Jun 17 12:16:05 so it's not necessarily *too* bad, if you do it near the leaves of your hierarchy. Jun 17 12:16:38 but it depends on how often you call it. Jun 17 12:16:42 Yeah. Unless you do it repeatetly, like in ListViews without a ViewHolder. Jun 17 12:17:07 Yep. I'd not worry too much if you call findViewById only once when your Fragment starts. Jun 17 12:17:31 And as always, profile before you begin optimizing performance. Jun 17 12:17:58 kakazza: There is no better way ? Jun 17 12:18:35 Not that I know of. Jun 17 12:19:08 But you're already using "better". Do you even have performance problems right now? Jun 17 12:21:10 kakazza: No. But it is the mobile programming. If you debug on your *super* phone you really don't know what will happens on low-end android Devices ? Am I right ? :] Jun 17 12:21:32 kakazza: I just ask why they didn't optimize it in compile time. Jun 17 12:21:37 *compile* Jun 17 12:22:33 I don't know how exactly it works. But probably because you have to inflate and only then your Views become available. Thus you have to find them. Jun 17 12:22:54 And when dynamically creating the UI, you don't know at compile time what's there and what's not. Jun 17 12:23:48 I wouldn't worry about low-end devices. It worked the same when they came out. So only if you're doing very stupid things performance will be an issue. Jun 17 12:24:02 kakazza: But say the discussed case is "onCreate" 's serveral lines of "findViewById" Jun 17 12:24:11 Then there's no problem. Jun 17 12:24:30 It's a one-time cost. Jun 17 12:24:53 Where it matters are for example ListViews. Jun 17 12:25:18 And there's quite a few Google I/O videos about that and things like a ViewHolder is also discussed in the official guides. Jun 17 12:25:47 https://developer.android.com/training/best-performance.html Jun 17 12:29:10 kakazza: Emm.. One time cost ? You mean that "first run" doesn't matter? Or the layout is showed before it executed findViewById ? Jun 17 12:37:34 have any of you implemented view-pager like functionality with a horizontal scroll view? Jun 17 12:39:18 bluesm: First run is negligible. Somewhat. Jun 17 12:42:36 < BullShark> MarkS- -> who's "us"? << we are a hosting company in the Netherlands (SinnerG BV) and are working on an own control panel Jun 17 12:43:33 i see Jun 17 13:53:51 Hi. I'm trying to update the folder my app writes into so the files become visible when connecting the device via usb. Using sendBroadcast( new Intent( Intent.ACTION_MEDIA_MOUNTED, Uri.parse( "file://" + Environment.getExternalStorageDirectory() + "/mypath"))); does not work as i get messages about denied permisson. Any ideas how to notofy the system of new files? Jun 17 13:54:33 kakazza: Ok. Thanks For you time :) Jun 17 13:55:40 Is there a way to put to the SharedPreferrences only data ? Without keys ? Jun 17 13:56:22 I mean , I have a list with task, and I really don't need set every task key "task" Jun 17 13:57:36 freiform: uh... what? why are you trying to send a protected broadcast again? Jun 17 13:57:54 freiform: let me rephrase; what types of files are these, and what do you want to pick them up? Jun 17 13:58:03 you should be able to send off a broadcast to tell the media manager to rescan the systme. Jun 17 13:59:15 *cough http://developer.android.com/reference/android/media/MediaScannerConnection.html cough* Jun 17 14:00:06 lov: my app records (raw) audio and calculates different measures like rms, short-time-spectra and the like. Th eformat of these files is custom. Now i want to connect my device to a pc and transfer the data. unfortuanetly, with the nexus 4 and its internal storage, i don't see the files on my pc. i've been told i have to tell the system that new files are here... Jun 17 14:01:55 regarding the media scanner, i was under the impression that this onl yworks for 'registered' types. Jun 17 14:02:49 I'm not really sure what you're trying to do, then. Jun 17 14:03:00 Are you trying to inform the system media scanner about the content? It can't play it so I don't see why. Jun 17 14:03:06 Are you trying to inform your own application or something? Jun 17 14:03:19 .... oh derp reread your question Jun 17 14:03:57 yeah, that protocol is just dodgy under the best of circumstances :( Jun 17 14:07:04 How do other apps like e.g. ES file explorer do this? if i create a new file, regardless of the type, it show up immediately in my PCs file browser. And isn't the media manager used to add e.g. audio files to the audio library or images to the appropriate lib? Jun 17 14:07:34 yeah, sorry, I was misunderstanding what you were trying to do. Media Manager is probably totally unrelated. Jun 17 14:07:41 I'm not sure how to force the files to show up for the sake of MTP. Jun 17 14:09:15 Hmm. well, looking around, there's an "SDrescan" app which forces an update. Jun 17 14:09:22 you can try downloading it and poking at it. Jun 17 14:09:37 I'll give it a shot, thank you. Jun 17 14:11:50 Oh well, according to the documentation, SDrescan uses the media scanner. Jun 17 14:14:01 and back to square one :) Jun 17 14:14:52 use adb, or something like file expert or airdroid for network access Jun 17 14:14:54 you may want to take a look at the sources, too, and see if there's a simple broadcast you can send. I recall that there used to be one. Jun 17 14:15:09 Leeds: that's kind of a PITA at times, and ADB's file transfer rate actually sucks a lot. Jun 17 14:15:22 lov: SDRescan sends that broadcast - that's all it does Jun 17 14:17:34 Leeds: the one I use (unsucessfully) at the moment? Jun 17 14:17:58 actually, there are a few of them - but all they do is poke the indexer by sending the appropriate broadcast Jun 17 14:18:18 for what it's worth, foldersync can poke a scan of a particular file/folder.... Jun 17 14:18:50 but the issue, AIUI, is that MTP - at least under some conditions - only presents indexed files to the PC, and since your files aren't a known format, they won't be indexed Jun 17 14:18:55 Hello everyone, I am using a navigation drawer for my app together with ABS. I would like to make teh actionbar slide away as soon as the navigation drawer is opened as it happens in apps like facebook/linkedin etc. Any tip on how to do that? Jun 17 14:18:57 Is there a way of making toasts not look like shit? Jun 17 14:19:25 Hello Guys. I have a problem: I want to set an Image VISIBLE with setVisibility() but it's notworking. Any idea why? Jun 17 14:19:41 marrrk: You can design your own Toast. Jun 17 14:19:50 Leeds: can't you just use MediaScannerConnection.scanFile after you've added a file to make it show up over MTP? Jun 17 14:19:57 Leeds, lov: so maybe there's a way to register those types? Jun 17 14:19:58 Even the background drawable? Jun 17 14:20:03 marrrk: Yes Jun 17 14:20:09 I've never used MTP... that's just my understanding Jun 17 14:20:14 That's good. Jun 17 14:20:34 marrrk: http://stackoverflow.com/questions/11288475/custom-toast-in-android-a-simple-example Jun 17 14:20:49 freiform: tried MediaScannerConnection.scaneFile on your new files after you've created them? Jun 17 14:20:58 If you know this then you certainly know how to reliably have the screen wake up with a wake_lock that has the turn on screen flag set! Jun 17 14:21:10 appel1: no, i'll try that Jun 17 14:21:28 i actually dont know marrrk Jun 17 14:21:38 Inconceivable Jun 17 14:22:41 http://stackoverflow.com/questions/3621599/wake-android-device-up maybe Jun 17 14:22:58 Anyone knows why setVisibility is not working for me? Jun 17 14:23:38 The horrible part is that it sometimes works. So if ever you need a good random number generator then try using your wake lock to unlock the phone a few times and you have a pretty random bit pattern. Jun 17 14:23:51 What are you doing Styler2go Jun 17 14:23:52 ? Jun 17 14:24:03 trying to make an imageview visibile Jun 17 14:24:12 Is it hidden by default? Jun 17 14:24:13 but it just stays invisible... Jun 17 14:24:20 it is invisible by xml Jun 17 14:24:22 Have you tried to make it visible by default? Jun 17 14:24:31 And see if you can see it at all? Jun 17 14:24:48 And then have you tried running ".invalidate()" on the view or any of its parents? Jun 17 14:25:39 i will try... Jun 17 14:25:48 and try Jun 17 14:25:50 and try Jun 17 14:25:58 and beat my head sooo hard Jun 17 14:26:38 Anybody done their own input method? Jun 17 14:27:30 :D Jun 17 14:27:39 What does that mean? Jun 17 14:27:49 monsti was funny Jun 17 14:28:01 Oh I didn't realize. Jun 17 14:28:03 :D Jun 17 14:28:18 let's lol for him Jun 17 14:29:00 * monsti is talking about some "situation" with a jr coder ;) Jun 17 14:29:09 never mind ;) Jun 17 14:30:17 Can I add window flags to a view? Jun 17 14:31:05 why the hell is setVisiblity not working. Jun 17 14:31:19 fu u, visibilitx Jun 17 14:31:26 ImageView imageView = (ImageView) findViewById(R.id.imageView1); imageView.setVisibility(ImageView.GONE); Jun 17 14:31:40 is that in a layout? Jun 17 14:31:53 fu u? Jun 17 14:32:04 did you mean to say "Fuck you"? Jun 17 14:32:13 find you Jun 17 14:32:25 You can be rude with visibility it won't mind. Jun 17 14:32:33 heh Jun 17 14:32:36 ? Jun 17 14:32:39 it is in a layout Jun 17 14:32:49 what happenes? Jun 17 14:33:11 it's still visible? Jun 17 14:33:12 it stays in the state defined int he xml Jun 17 14:33:51 syntax error Jun 17 14:34:14 ? Jun 17 14:47:10 Why can't I do getWindow().setFlags(…)? Jun 17 14:54:00 in order to use ActionBarSherlock in my project, can i just copy their src folder into mine? Jun 17 14:54:41 no Jun 17 14:54:58 no Jun 17 14:55:46 no Jun 17 14:56:15 Hello Everyone, I'm trying to intigrate an app update notification in my app where it'll notify user directlly in the app that a newer version has been released. What the best way to go about that? Jun 17 14:56:29 so? if no, how can i use it? Jun 17 14:56:32 bencbond_com: GCM Jun 17 14:56:33 by publishing in the play store Jun 17 14:57:07 omid8bimo, by using it as a library project Jun 17 14:57:08 omid8bimo: It's a library project so you should reference it as such Jun 17 14:57:18 omid8bimo, if you're using gradle, you might be able to use it as an apklib Jun 17 14:57:23 http://developer.android.com/tools/projects/index.html#LibraryProjects Jun 17 14:57:32 dunno if gradle's build plugin supports apklib, I know it supports .aar, whatevertf that is Jun 17 14:57:33 gradle doesn't consume apklibs Jun 17 14:57:44 aar is an android archive Jun 17 14:57:56 yes, it's an android archive, but what exactly is it Jun 17 14:58:04 is it basically an apklib but simply renamed .aar? Jun 17 14:58:06 A zip file Jun 17 14:58:14 Different format Jun 17 14:58:34 no, an apklib is a zipped project folder Jun 17 14:58:38 apklib is a zip file Jun 17 14:58:51 so is a jar, war, ear, aar... Jun 17 14:59:17 anyways, aar contains compiled sources along with other Android-specific information such as dependencies Jun 17 14:59:33 android-specific dependencies, how does that work... Jun 17 14:59:47 so they bundled maven dependencies into the aar as well? Jun 17 15:00:20 no, that would be stupid. but you can embed a jar in the aar Jun 17 15:00:34 That's stupid as well Jun 17 15:00:35 But you can Jun 17 15:02:12 yeah it'd be nice if they didn't support project-local dependencies at all Jun 17 15:02:25 Again: Someone an Idea why setVisibility is not working for me? It only uses the Visibility defined in xml. Jun 17 15:02:34 but everyone would squeal and cry Jun 17 15:02:41 I am using this code: ImageView img = (ImageView) findViewById(R.id.imageView1); img.setVisibility(View.GONE); Jun 17 15:02:49 Styler2go: Have you tried invalidating as I told you? Jun 17 15:03:03 you don't need to invalidate when changing visibility Jun 17 15:03:03 yes Jun 17 15:03:06 No luck? Jun 17 15:03:09 no Jun 17 15:03:12 Okay Jun 17 15:03:24 i dont know why it is not working... Jun 17 15:03:28 You're probably not referencing the imageview you think you're referencing Jun 17 15:03:41 good idea Jun 17 15:03:43 lets see... Jun 17 15:03:50 Remember to clean project Jun 17 15:04:29 http://pastebin.com/Uz3HnBjw this is my xml Jun 17 15:05:27 Don't the ids have to be all lowercase or something? Jun 17 15:05:33 include_scrollview_new_medicin probably contain imageView1 as well Jun 17 15:05:34 no Jun 17 15:05:34 No Jun 17 15:05:37 mmarker: no Jun 17 15:05:44 Alright alright :) Jun 17 15:05:46 bah stupid slow client Jun 17 15:05:57 Srsly, give your views some proper id's Jun 17 15:06:08 Not all that button1, textView1, imageView1, ... Jun 17 15:06:24 Yeah man, you should really start your indices at 0 :D Jun 17 15:06:37 yes, the include have a imageView1 Jun 17 15:06:40 ok i read about this android library project, so if i wanna use sherlock as my project's library project, i need to create it as such in intellij, also, do i need to have the imports as well? Jun 17 15:06:58 Well, there you go, Styler2go Jun 17 15:07:33 DUde Jun 17 15:07:36 You gotta respect textView1 Jun 17 15:07:39 that is legit stuff Jun 17 15:08:57 Why is accessibility so broken? Jun 17 15:09:14 n.getChildCount == 1 && n.getChild(0).getClassName=="android.widget.TextView" . I should really not get a NPE in that. Jun 17 15:11:13 aaaand, *facepalm*, it is working. Jun 17 15:11:25 i am feeling slightly retard Jun 17 15:11:32 It was working all along Jun 17 15:21:24 In the Google Dev Console .. what does google mean by this: Jun 17 15:21:25 Testers opting in Jun 17 15:21:26 Your app can only be used by your testers when it is published to Google Play. If your app has no production APK then it will only be visible to Alpha and Beta testers. The link that your testers can use to opt-in will be displayed here when you have published your app. Jun 17 15:21:35 .. they really contradict themselfs Jun 17 15:22:40 What does Google define under 'Published' ? Jun 17 15:22:50 i think that published = production apk Jun 17 15:24:54 and how do i get my test link for tester to opt-in? Jun 17 15:24:57 i don't see it? Jun 17 15:27:41 Extend ALL of the classes Jun 17 15:27:42 >.> Jun 17 15:27:48 Creating my own view and my own adapter type lul Jun 17 15:29:06 is rk4 integration overkill for an android device? Jun 17 15:29:40 rved, you should be able to flag your apk you uploaded as a test apk Jun 17 15:30:07 i see the apk slots, uploaded one in the alpha slot Jun 17 15:30:11 set a google group for testing Jun 17 15:30:17 and then.. nothing Jun 17 15:30:23 no messages/email Jun 17 15:30:30 app is still not available in the appstor Jun 17 15:30:33 play store Jun 17 15:30:43 (but read it might take up to 24 hours) ? Jun 17 15:30:46 been 8 hours now Jun 17 15:30:54 show details of the beta apk Jun 17 15:31:35 pfn: how? Jun 17 15:31:44 by clicking the show details link below Jun 17 15:42:58 certainly not a dev question but nonetheless, i am interested in knowing that would it be possible to access/modify sim card contacts via adb Jun 17 15:45:34 I don't believe it is. Jun 17 15:47:36 :'( life is so unfair Jun 17 15:47:57 * Looney has to use some app for managing sim card contacts Jun 17 15:52:03 I'm surprised that non-system apps have access. Jun 17 15:52:30 Actually, they shouldn't have access iirc. Do you have some app that's actually able to modify SIM content? Jun 17 15:53:21 Hello everyone, I am using a navigation drawer for my app together with ABS. I would like to have the navigation drawer open upon the actionbar as if the actionbar were attached to the view on the left, jut like it happens in apps like facebook/linkedin etc. Any tip on how to do that? Jun 17 15:53:41 the guidelines do not recommend that Jun 17 15:54:49 yes lov there was an app I used Jun 17 15:54:51 waallen: There is a library that implemented sliding layouts before the official support, and it could do that Jun 17 15:54:53 maybe look there? Jun 17 15:54:58 cannot remember the name Jun 17 15:55:15 there are about 8 of them, yes Jun 17 15:55:15 let me see if I can find it in history of my apps Jun 17 15:55:34 all hail JakeWharton for seconding me Jun 17 15:57:35 so, I'm writing a little widget thing, why does it stop responding to my clicks--my pending intents don't fire Jun 17 15:58:13 <3 ArrayAdapter class Jun 17 15:58:14 so useful Jun 17 15:58:49 indeed Jun 17 16:00:12 I used ArrayAdapter for the first time over the weekend. I was sad the static factory method didn't allow supplying the dropdown view resource id Jun 17 16:01:17 JakeWharton: when can we expect you to magic up an open source project to replace its functionality? Jun 17 16:01:55 Hmm I am addicted to the new/bind pattern of cursor adapter... Jun 17 16:02:03 but that can be solved with a simple base class Jun 17 16:02:46 JakeWharton: I was interested mainly for learning purposes, the app I am developing is for a university project and it basically consists of a googlemap fragment with a lot of requests to a web server, so the UI isn't that important. But I am in that phase where I want to know how to get all that eyecandy done :D Jun 17 16:02:51 Also, thanks for ABS! Jun 17 16:02:58 Brian|CB: thank you, I'll look them up Jun 17 16:03:04 waallen: try https://github.com/SimonVT/android-menudrawer Jun 17 16:03:36 thanks Jun 17 16:04:49 I'm using actionbarsherlock and i noticed that when i run my app on android 2.3 gingerbread the action bar doesnt have a home (back) button. But it does in jelly bean. any idea why? Jun 17 16:05:20 i didnt implement a back/home button and i was surprised it appeared in jelly bean Jun 17 16:05:45 they probably enable it by default if you target API 17 or something Jun 17 16:06:35 yeah i actually am targetting 17. how would i enable that functionality also for lower api versions? Jun 17 16:06:47 there's an api on ActionBar for it Jun 17 16:06:48 Call methods that show it Jun 17 16:06:57 you can also set it with styles/theme Jun 17 16:13:17 guys, i'm trying to get the density of the people that are currently using my app. imagine that i want them to gather at some point, and this point is determined by where there is more people together Jun 17 16:13:29 the new maps api provide some easy way out to this problem? Jun 17 16:14:07 I got it to work, thanks. I just had to call getSupportActionBar().setDisplayHomeAsUpEnabled(true); Jun 17 16:14:30 I am using user:pass@www.example.com for http authentication to download a xml Jun 17 16:14:57 when I open the link in browser, a dialog pops up Jun 17 16:16:04 is there a demo of the usage for partiallyUpdateAppWidget somewhere? Jun 17 16:16:19 aforementioned browser = firefox Jun 17 16:16:19 trying to figure out where it makes more sense to call that, or if it never makes sense to use it if yuou keep a copy of the remoteviews Jun 17 16:16:27 but no dialog in chrome Jun 17 16:17:10 would there be any problem associated with authentication in app Jun 17 16:27:55 trying to open a URL stream from web with auth Jun 17 16:28:04 not working :-( Jun 17 16:49:34 I heard chromebeta supports http-auth for downloads Jun 17 16:50:07 huh? httpurlconnection? you pass the creds using authenticator Jun 17 16:56:57 hi all! Jun 17 16:58:25 In my project i have a service that do stuff in other thread Jun 17 16:58:25 is there a library that allows for a TextView to produce small info bubbles wrt certain words? Jun 17 16:58:43 or are there alternatives (DialogFragments ?) Jun 17 16:58:47 i need to pass an Handler to those "thread" Jun 17 16:59:14 the problem is that my services sometime get called from android services for example for doing contact syncronization Jun 17 16:59:19 so there is no thread ui Jun 17 16:59:41 G10h4ck: yeah? Jun 17 16:59:47 lern about parameters Jun 17 16:59:58 There's always a main thread Jun 17 17:00:02 if(heades) ... Jun 17 17:00:03 so qhen i try to creat ethe handle the app crash sayng that you cannot create handler outside of theread ui Jun 17 17:00:29 yeah i know about parameters Jun 17 17:00:32 the problem is Jun 17 17:00:46 in the case if the sync already started the service and then i start the ui Jun 17 17:01:00 the ui need notyfication by the handler Jun 17 17:01:25 but it is null because the service was previosly startd by android service so without ui... Jun 17 17:01:43 yes but if the ui is there - there is only "the" ui Jun 17 17:01:54 and "the" ui has onCreate and onStop Jun 17 17:01:59 so do things there Jun 17 17:02:11 e.g. service.attachUI ... detachUI Jun 17 17:02:25 thanks monsti Jun 17 17:02:35 thanks for the pointere pfn Jun 17 17:03:20 G10h4ck: in my code i attach/detach in interface by this methods Jun 17 17:03:34 the default interface implemenation is a notification Jun 17 17:05:25 monsti and for example if i need notification on the services i have to use another mechanism ? Jun 17 17:06:07 or is there a way to have a Looper or something like that inside a service ? Jun 17 17:07:14 G10h4ck: is start a service Jun 17 17:07:21 and then a thread Jun 17 17:07:44 maybe there are other/better/different ways Jun 17 17:07:58 mm i dind't understood how to do Jun 17 17:08:08 there are examples by google for that Jun 17 17:08:28 the fact is that i have already implemented all the notification mechanism with handler Jun 17 17:08:43 but the official documentation does not seem to be in sync with http://www.avajava.com/tutorials/lessons/how-do-i-connect-to-a-url-using-basic-authentication.html Jun 17 17:08:45 and it is orrible to have two different notification mechanism Jun 17 17:09:03 one based on handlers for UI and another based on another stuff fro services :| Jun 17 17:09:34 monsti do you have a name for the right example ? Jun 17 17:10:42 android threaded service - google first hit Jun 17 17:10:47 then "Process and Threads" Jun 17 17:11:14 or you can use asynctask - which is basically a thread wrapper Jun 17 17:11:52 monsti i get this as first result http://developer.android.com/reference/android/app/Service.html Jun 17 17:12:22 monsti: Who is trying to use Asynctask and hwy? Jun 17 17:12:25 why* Jun 17 17:13:13 monsti i have already a dervices with multiple thread, the problem is send notification from those thread to another service Jun 17 17:13:28 i have already accomplished to send notification to the UI with handler Jun 17 17:14:11 * monsti was speaking of the notification service - not of notifing services Jun 17 17:15:24 monsti sorry i am not native english speaker :( Jun 17 17:15:39 hey.. quickiee ---- does the onPreExecute method in AsyncTask run on the UI thread?? I know onPostExecute does and doInBckgrd does not. I don't feel like running a simple test and would think someone in here would have a yes or no answer to that.. sorry Jun 17 17:16:20 KillmeSoftly: it's too bad that this isn't documented somewhere, like, say, the documentation. Jun 17 17:16:38 If only there was a website upon which you could look at all of the public APIs! Jun 17 17:16:41 alas! Jun 17 17:16:50 This will simply have to remain a mystery for the ages Jun 17 17:16:53 see this is why this channel is useless Jun 17 17:16:57 everybody says that Jun 17 17:17:02 Because we're not your personal lazyweb? Jun 17 17:17:07 its a simple question and Jun 17 17:17:18 Seriousanswer: have you gone to d.android.com and typed in "AsyncTask" then looked at the first paragraph? Jun 17 17:17:19 monsti thanks, i understand that it is not possible with the actual architecture Jun 17 17:17:52 KillmeSoftly: If it's not on doinbackground, it's on the UI thread Jun 17 17:18:11 KillmeSoftly: http://developer.android.com/reference/android/os/AsyncTask.html Jun 17 17:18:14 scroll to "The 4 steps" Jun 17 17:18:27 this answers your question DIRECTLY. Jun 17 17:18:31 christ... absolutely useless... gotta love coders who have an ego. really this is pretty bad. every single question i ask here regardless of how complex or simple it is, i always get the same result.. "LOOK IT UP!!" "TEST IT YOURSELF" "LOOK IN ANDROID DEV DOCS" god, watta useless channel Jun 17 17:18:39 that doesnt answer the question Jun 17 17:18:40 ok Jun 17 17:18:48 but we have Jun 17 17:18:52 Yay Jun 17 17:19:01 oh well Jun 17 17:19:08 was about to catb questions him, too bad. Jun 17 17:19:09 You won that round Jun 17 17:19:23 I'm not sure you could call that winning Jun 17 17:19:43 Sure you can Jun 17 17:22:13 is there any broadcast intent that gets sent as a user pages through lockscreen widgets? Jun 17 17:28:30 I still want to know how to reliably turn the screen on, by the way. Jun 17 17:29:23 hi everybody! I'm looking for an android SSH server... Found QuickSSHd, SSHelper, DroidSSHd ... any recommendation??? I need something light, to be used with old phones! Jun 17 17:29:28 Press the power button Jun 17 17:29:41 That's one way. Jun 17 17:30:29 I mean of course programmatically. Jun 17 17:31:01 Don't you just hold a wakelock? Jun 17 17:31:18 JakeWharton, oh, so why use pidcat when you can just filter by app in ddms? Jun 17 17:31:33 unless you can run shell commands in intellij or something... Jun 17 17:33:29 I do hold a wake lock but it only works occasionally. Jun 17 17:35:13 marrrk: alarmmanager for when the device is actually asleep and the CPU has turned off? Jun 17 17:35:21 *cough* Jun 17 17:36:10 The CPU is not off. Everything works except committing text to a text field. Jun 17 17:36:24 o_O Jun 17 17:38:21 Well sometimes it does. Jun 17 17:38:30 wait. Jun 17 17:38:43 what do you mean "everything works except committing text to a text field" Jun 17 17:38:49 what do you mean by committing, and by text field? Jun 17 17:38:57 what does this have to do with a wake lock? Jun 17 17:40:00 Is anyone else having problems with the HAX module on Mavericks? Jun 17 17:40:02 sometimes the textfield is on PMS Jun 17 17:40:55 I am trying to write an app that automatically responds to messages from messengers (Facebook, WhatsApp, WhatEver) as soon as they arrive with an out of office message. Using an AccessibilityService I can get to the right window and click everything. However for text input I have to use my own Keyboard. The keyboard needs the screen to be on in order to be allowed to commit text however. Jun 17 17:41:44 Lawl Jun 17 17:42:11 Good luck with that Jun 17 17:42:31 Why? Jun 17 17:45:36 It works quite reliably. It just doesn't answer to the first message it receives because it doesn't turn the screen on in that case. Jun 17 17:46:50 O_O Jun 17 17:49:05 Is there a reason why su -c will work in the command line, but not in a Runtime.exec? Jun 17 17:49:30 FLeiXiuS: yes. it specifically checks if it's running as the shell user Jun 17 17:49:39 which is the user adb shell runs as Jun 17 17:49:49 but Runtime.exec will be running in the context of an application user id Jun 17 17:53:35 (https://android.googlesource.com/platform/system/extras/+/master/su/su.c - line 49) Jun 17 17:53:50 hey guys Jun 17 17:55:01 is there a way to open up a FrameLayout without haveing to open up a new intent? Jun 17 18:00:55 O_O Jun 17 18:01:58 sup Jun 17 18:02:06 anyone her integrate the facebook sdk? Jun 17 18:02:13 hello Jun 17 18:02:16 hi Jun 17 18:02:23 i'm very new to Android, i used this project to implement a fragmentpager: http://developer.android.com/training/implementing-navigation/lateral.html#horizontal-paging. i'm using a FragmentPagerAdapter, and i want to know how to destroy the current pane. can anyone tell me how? Jun 17 18:02:32 http://developer.android.com/training/basics/firstapp/starting-activity.html#DisplayMessage in the second Activity i displayed image and one more text message (static image and text), i see the image and the text on design time, but when run the app on my Android device not... why? Jun 17 18:08:55 g00s: in case you were curious how I ended up handling those screenshots: https://play.google.com/store/apps/details?id=com.stepheneisenhauer.vudo :) Jun 17 18:09:30 BHSPitMonkey cool, looks good ! Jun 17 18:09:35 thanks! Jun 17 18:10:15 haha, thats a great icon Jun 17 18:11:05 does anyone know how i can destroy a fragment from a fragmentpageadapter? Jun 17 18:11:10 anyone successfully get ABS working in new android studio with gradle? Jun 17 18:11:22 I have Jun 17 18:11:41 pfn: you probably wouldn't Jun 17 18:11:48 but then again, I don't use logcat in my IDE Jun 17 18:11:57 What is the data format used by Google for the contacts sync it provides? Jun 17 18:12:35 JakeWharton: I should have know. Heh. Any idea why gradle is telling me it can't find theme.sherlock.*? Jun 17 18:12:54 JesusFreke, So the only way would be to run su to get perms, then execute the command Jun 17 18:12:58 damccull: Because Gradle is the devil Jun 17 18:13:14 Brian|CB: oic. and why is that? Jun 17 18:13:26 FLeiXiuS: you can't run su from an application Jun 17 18:15:05 JesusFreke, Even with Superuser.apk's su? Jun 17 18:15:16 no, that works completely differently Jun 17 18:16:09 I should have mentioned, that. My bad. I'm using superuser apk with their version of SU Jun 17 18:16:41 Anyone have an example AOSP local manifest to bundle extra apps? Jun 17 18:17:20 I have it downloading but I am not sure if it is getting built and it is def not bundled. Jun 17 18:18:19 damccull: did you build an aar? Jun 17 18:18:25 KWhat_Work: you have to add the application to the list of things included in whatever product you're building Jun 17 18:18:37 or just run make manually, before doing a full build Jun 17 18:18:42 any1 here ever implement facebook sdk? Jun 17 18:19:12 JesusFreke: you know the file that I need to modify off the top of your head? Jun 17 18:20:11 codebutler: since i don't know what an aar is I suppose I better look it up. :D I just imported ABS into studio and MY project is gradle. I suppose 2 separate build systems don't work, right? Jun 17 18:20:27 KWhat_Work: AndroidProduct.mk maybe, for whichever device you are building for Jun 17 18:21:07 javaDon: The facebook SDK infuriates me Jun 17 18:21:14 KWhat_Work: if you're just wanting to do this as a one-off thing, just build that app or whatever manually Jun 17 18:21:20 It took me forever to get it working properly, even with the help of present facebook engineers Jun 17 18:21:24 and then Jun 17 18:21:27 a couple momths later Jun 17 18:21:31 does anyone know how i can destroy the current item of a pageradapter? Jun 17 18:21:32 my facebook login functionality now no longer works Jun 17 18:21:34 for no reason Jun 17 18:21:35 I changed nothing Jun 17 18:21:38 and now it doesnt work Jun 17 18:21:43 Brian|CB: that sounds like facebook all right Jun 17 18:21:49 g00s: you have terrible taste in icons :) Jun 17 18:22:04 :) Jun 17 18:22:07 Stavros: I mean I have a love hate relationship with facebook Jun 17 18:22:07 I really need to befriend a designer Jun 17 18:22:20 I like their recruiter for my area, and the nice stuff they give us Jun 17 18:22:25 but I hate the way they do some of their ode Jun 17 18:22:27 code* Jun 17 18:22:33 hey Brian|CB sup Jun 17 18:22:33 BHSPitMonkey: Date one Jun 17 18:22:35 Thats what I want to do Jun 17 18:22:43 the annoying part is, I'm really proficient at using Inkscape; I just don't know how to design the things I'm making Jun 17 18:22:52 the only thing i see wrong with it, is that it can be reduced / simplified further while still communicating the essence : some simplified version of the share symbol with voodoo pins Jun 17 18:22:59 i see allot of same usernames in here pretty often thats pretty coool Jun 17 18:23:11 Brian|CB: dating a film major currently; At least I'll be able to make pretty promo videos for apps Jun 17 18:23:27 damccull: the 'dev' branch has gradle scripts that will create an aar file Jun 17 18:24:20 is there a way to manually destroy fragments in a pagerview, or is it just not supposed to happen? Jun 17 18:24:20 aar files are easier to pirate Jun 17 18:24:24 g00s: maybe I'll switch the phone for a plushy-looking android mascot :P Jun 17 18:25:05 codebutler: thanks. Do I need to grab just the scripts or can I just jump over to dev version and it'll still work? Is dev branch stable enough to compile? Jun 17 18:25:33 Brian|CB: Just in case; you didn't change your signing key? Jun 17 18:25:50 kjeldahl: I changed NOTHING Jun 17 18:25:55 same app, same everything Jun 17 18:26:00 damccull: seems stable. Jun 17 18:26:23 ugh, can someone please help me destroy a fragment? Jun 17 18:26:28 *nod* Jun 17 18:26:32 Stavros: Define destroy? Jun 17 18:26:41 Brian|CB: i want to remove it from the pager view Jun 17 18:26:58 Why are you removing it, and by what method did you add it? Jun 17 18:27:18 Brian|CB: i used this project http://developer.android.com/training/implementing-navigation/lateral.html#horizontal-paging Jun 17 18:27:37 i have screens you can swipe left/right for (like tabs), and i want to remove one of those when the user presses the delete button Jun 17 18:28:43 Brian|CB: i am not sure about the method, this is literally my second day with java/android Jun 17 18:28:46 Stavros: destroyItem(ViewGroup container, int position, Object object) Jun 17 18:29:03 Brian|CB: that's what i'm doing, but it crashes with a null pointer exception outside my app Jun 17 18:29:09 although, i'm not sure what object should be Jun 17 18:29:53 Brian|CB: also i overrode destroyItem but super.destroyItem() seems to be deprecated? Jun 17 18:31:01 what i'm doing is: int position = mViewPager.getCurrentItem(); mCollectionPagerAdapter.destroyItem(mViewPager, position, null); Jun 17 18:31:16 in the button's handler Jun 17 18:32:01 Stavros: you need to remove the thing from your adapter Jun 17 18:32:13 the viewpager should automatically remove it Jun 17 18:32:35 codebutler: hmm, i have an ArrayList where i store fragments, i overrode the destroyItem() to remove it from the list Jun 17 18:32:51 how can i remove it? Jun 17 18:33:35 is there a way to start a startActivityForResult(intent, requestCode); ontop of ui thread without haveing to leave to start a new activity? Jun 17 18:33:55 Stavros: http://stackoverflow.com/questions/9061325/fragmentpageradapter-is-not-removing-items-fragments-correctly Jun 17 18:34:30 Brian|CB: ah, that's exactly what i need, thanks Jun 17 18:34:35 Sure feels good to have your app progressing swiftly Jun 17 18:34:53 when importing a module, what is 'gradle home'? Jun 17 18:35:42 damccull: place with gradle files. how did you install gradle? Jun 17 18:35:49 if you're using the wrapper thing you can skip that Jun 17 18:35:50 codebutler: android studio Jun 17 18:36:05 if you check "use gradle wrapper" you can leave that field blank Jun 17 18:36:11 the UI is not very clear Jun 17 18:36:14 do i need to copy the wrapper stuff into abs to make it appear? Jun 17 18:36:17 its grayed out Jun 17 18:36:27 oh. I'd just do this from the command line. Jun 17 18:36:41 made an android library that wraps some hardware stuff (nfc, bt, usb) and some non-hardware business logic, but the apis that require handling intent. I don't have any activities in my library, so I can't intent-filter in my library (right?). I'm passing the intent to the library, but it doesn't do anything. Jun 17 18:36:44 oh heh Jun 17 18:36:50 Brian|CB: okay, it looks like it does nothing when i destroyItem(), but then it crashes as soon as i swipe Jun 17 18:37:52 codebutler: oh sweet yeah if you copy the gradle wrapper folder into the abs folder it just magically works Jun 17 18:39:29 heh apparently i need to install API14 to be able to import this...or edit something. Jun 17 18:43:32 Is there a reliable way to determine the correct orientation of a video? Jun 17 18:43:45 checking the dimensions itself are not reliable Jun 17 18:44:15 okay so, INSTALL_FAILED_DEXOPT and INSTALL_FAILED_UID_CHANGED --> is there more info on this? The stuff on stackoverflow hasn't been useful :\ Jun 17 18:44:24 Pyuruku: wait, is there a better way than checking dimensions? Jun 17 18:44:27 example: Shooting a portrait video on the S4 results in a 1920x1080 video, which is then played in landscape Jun 17 18:44:42 shoerain: thats what I want to know... Jun 17 18:46:02 What are you playing it with? I thought all videos can be played in either orientation Jun 17 18:46:14 a video view Jun 17 18:46:27 yes they can be played... but its not optimal Jun 17 18:46:30 Brian|CB: how come i don't see anyone calling destroyItem()? even the link you posted doesn't use destroyItem(), it only overrides it Jun 17 18:46:37 you wouldnt play a portrait video in landscape, and vice versa Jun 17 18:48:36 Is there some metadata I can read off a video to determine its orientation? Jun 17 18:49:13 There has to be something since the stock gallery app on the s4 plays it in the correct orientation Jun 17 18:49:33 i know Brian|CB knows about fragments maby you got some time for me im still stuck on the same issue as before i decided to leave thatfor last Jun 17 18:49:53 Pyuruku: the stock gallery is open source. Jun 17 18:50:09 codebutler: from the S4? Jun 17 18:50:17 i meant the stock touchwiz one that comes preinstalled Jun 17 18:50:27 it feels like i.o happened an eternity ago Jun 17 18:50:30 oh, that's not what I think of as "stock". Jun 17 18:50:38 Pyuruku: check how the stock gallery app compares Jun 17 18:50:51 i would refer it as AOSP gallery :P Jun 17 18:51:13 i have some really easy to read classes to work off of should take to long Jun 17 18:52:17 javaDon Stavros I would love to help, but I have to limit my time on the IRC helping Jun 17 18:52:20 cause I have to work on my own stuff :S Jun 17 18:52:26 Brian|CB: ah, thanks anyway :( Jun 17 18:52:29 this thing is driving me nuts Jun 17 18:52:53 i have an activity that extends fragment activity and launches the FriendPickerFragment from facebook i was wondering if there is a way to do that without launcing a new activity and running it on the main ui thread Jun 17 18:53:39 what does @Override do? Jun 17 18:54:26 don't you think you should go learn basic java before asking android specific questions in here? Jun 17 18:54:45 nope, i'm fine doing both at the same time Jun 17 18:55:13 JakeWharton, I don't use an IDE :p Jun 17 18:55:17 JakeWharton, but I do run ddms standalone Jun 17 18:55:24 http://www.pastebin.com/5NBvVcGe any1 if you got some time have a look here its not to long and easy to read Jun 17 18:55:31 just curious why bother with console logcat+colorizer when you can run ddms independent of an IDE Jun 17 18:55:55 of course, there are annoyances with running logcat in ddms, but generally it works well Jun 17 18:56:02 i need a way to invoke startPickerActivity without it starting a new activity Jun 17 18:56:19 i've been experimenting with logback-android and lilith; can't recommend it yet though Jun 17 18:56:24 how can gradle reference projects outside of its root directory? ie. I have my project and ABS side by side, and I have imported ABS as a module in android studio. I want to use it as a dependency. Jun 17 18:58:08 err, anyone ever used Linkify? Jun 17 18:58:11 pfn , when i start ddms it says "The standalone version of DDMS is deprecated" Jun 17 18:58:20 is it? Jun 17 18:58:26 I want to add links to some parts of a multiline textview Jun 17 18:58:28 funny it then says "Please use Android Device Monitor (tools/monitor) instead." Jun 17 18:58:32 ADM is eclipse , haha Jun 17 18:58:33 also since this is a simple thing, Stavros, what you really want to be doing is updating the FragmentManager, then calling notifyDataSetChanged on the adapter Jun 17 18:58:33 it's the same concept as if you used a ListAdapter and list view, but iwht fragment and pagers Jun 17 18:58:33 how that makes sense Jun 17 18:58:34 g00s, oh, run monitor instead :p Jun 17 18:58:45 g00s, ddms has always been an eclipse RCP Jun 17 18:58:59 no, i thought it was a standalone SWT app Jun 17 18:59:09 are you sure? Jun 17 18:59:22 eclipse as far as I ever understood Jun 17 19:00:06 Brian|CB: yeah, that sounds simple, unfortunately i have no idea why it crashes. i'll try to debug a bit, because it seems that it might be unrelated, thanks Jun 17 19:00:29 maybe I didn't pay it much attention, but it always looked like an rcp Jun 17 19:00:54 http://developer.android.com/training/basics/firstapp/starting-activity.html#DisplayMessage in the second Activity i displayed image and one more text message (static image and text), i see the image and the text on design time, but when run the app on my Android device not... why? Jun 17 19:00:56 any1 get a chance to check out that pastebin? Jun 17 19:00:56 i would really appretiate the help Jun 17 19:02:17 g00s, does it matter either way? it's still a standalone ddms Jun 17 19:03:37 jak2000: check logcat Jun 17 19:03:52 no; i thought the old ddms standalone was relatively lightweight yet ugly - seems like they both take up around the same amount of memory. my laptop is memory challenged Jun 17 19:05:20 where does the albumart gets downloaded by the mediascanner? i don't mean a spacialized app, i mean the one from the stock MediaStore.Audio Jun 17 19:05:27 *from where Jun 17 19:06:31 does google maintains its own albumart lookup api? Jun 17 19:08:57 pfn do you use tig ? Jun 17 19:10:07 I want to add links to some parts of a multiline textview, anyone an idea how to spawn DialogFragments from them? Jun 17 19:11:22 belgianguy: if you are unaware ellipsizing is broken on multiline textviews for <3.0 (if i remember correct api) Jun 17 19:12:38 lasserix: ah, haven't run into that yet Jun 17 19:12:55 yeah it only wraps at most 2 Jun 17 19:13:04 it's tablet focused, so those usually are on >3 Jun 17 19:13:28 http://stackoverflow.com/questions/9969789/clickable-word-inside-textview-in-android Jun 17 19:13:47 to simplify the question I asked earlier: I have a library that contains just a class that wraps stuff like NfcAdapter and BluetoothAdapter (for example). Those adapters need intent from the applications activity, which I pass on construction of my object. Nothing ever fires. I have the intent filter setup in my application, but I'm not sure if there is something special I have to do to the library to allow the application to handle the intent? Jun 17 19:14:04 anyone done rk4 integration for games on android devices? Jun 17 19:14:17 evanc i am reading: http://forum.xda-developers.com/showthread.php?t=1747544 Jun 17 19:15:05 anybody here familiar with facebook sdk? Jun 17 19:15:19 Just great; after my laptop ran out of memory and killed off some processes, AS refuses to build my app even though gradle (from the command line) builds it just fine. Jun 17 19:15:34 javaDon: Even most facebook devs aren't familiar with the SDK, nor do they have any idea how or why it works Jun 17 19:15:36 Looks like gradle plugin trouble. Jun 17 19:15:38 its an awful SDK Jun 17 19:16:53 jak2000: I have no clue why you're doing that, but have fun, I guess. Jun 17 19:18:21 evanc learning about logcat... Jun 17 19:19:32 xda-developers is the worst place to start learning about anything, unless you want to learn the most ridiculous way to do it Jun 17 19:19:48 jak2000: start here: http://developer.android.com/tools/help/logcat.html Jun 17 19:21:00 g00s, no idea what tig is Jun 17 19:21:17 apt-get install tig Jun 17 19:21:27 I don't run ubuntu Jun 17 19:21:34 pfn thought you would like it since you use git from the command line i thought Jun 17 19:21:42 I use tig. Jun 17 19:22:02 I do use git from the commandline Jun 17 19:22:11 http://blogs.atlassian.com/2013/05/git-tig/ Jun 17 19:22:24 I wondered about that article, since tig has been around for so long. Jun 17 19:22:38 interesting Jun 17 19:22:43 Been using it for years. The article made it look like it was new. Jun 17 19:22:53 (I've been using it before it was cool!!11) Jun 17 19:22:53 I also run primarily on windows, so no tig probably Jun 17 19:23:58 sad. Anyone know how to fix? Android studio. Gradle: No resource found that matches the given name (at 'theme' with value '@style/Theme.Sherlock.Light.DarkActionBar'). Jun 17 19:24:28 properly import abs Jun 17 19:24:34 assuming abs supports building as a gradle project Jun 17 19:24:37 kakazza i didn't know about the status view - learned that from the blog Jun 17 19:24:53 pfn HEH. Ok. Now i just have to figure out how to do that. Jun 17 19:29:30 Brian|CB lol Jun 17 19:39:18 fucking java Jun 17 19:40:19 it is possible to have an sdk based project with parts that are ndk? Jun 17 19:40:45 So in this line: compile 'com.android.support:support-v4:13.0.0' (from a gradle build script); does the 13.0.0 refer to a version, and how does that match with what is here: http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.google.android%22%20AND%20a%3A%22support-v4%22 Jun 17 19:42:06 :p nm, it was working. just not the getIntent in the constructor. Jun 17 19:42:31 :self-solve: Jun 17 19:45:01 lasserix: yes, of course. Jun 17 19:45:23 lasserix: if you're super grumpy about the concept of writing any of your code in java because your neckbeard is 3 feet long, you can write the entire thing in C as long as you target API level 10 and above. Jun 17 19:45:23 I'm writing an app to use the Presentation class to display different content on a connected TV. I activated Simulate Secondary Display on the tablet but now I can't turn it off. The tablet crashes when I try to open Settings now. Anyone have any great ideas I could try to turn off the simulated display? Jun 17 19:46:07 lov: nothing to do with grumpiness, am trying to build a physics integrator and the GC of java makes it difficult to use, for instance, rk4 integration technique Jun 17 19:46:26 * lov shrugs Jun 17 19:46:37 *computationally intensive Jun 17 19:46:45 yeah, there are definitely things you want to do directly in C, etc. Jun 17 19:46:49 this is probably one of them Jun 17 19:48:43 anyone have any pointers for speeding up the ListView with images.. I already cache the images and load them in the background Jun 17 19:49:18 that's good. and if you don't have the image cached yet, don't block for it. Jun 17 19:49:28 display an empty image, and have a callback to update the view. Jun 17 19:49:37 (if the view is still present and relevant) Jun 17 19:49:43 (don't forget that listview recycles views) Jun 17 19:50:34 Suspicion confirmed: com.android.tools.build:gradle:0.4.2 refers to that exact version on mavenCentral. For the support library, there is only r6 and r7 versions, not 13.0.0 that my build script refers to. Guess I need to tell my build script to pull it from the file system. Why gradle still finds it, but AS not, I have no idea. Jun 17 19:51:08 its 2013 and build systems still suck , heh Jun 17 19:51:26 it's 2xxx, and still sucks. Jun 17 19:51:37 no hoverboard :( Jun 17 19:51:39 you win Jun 17 19:51:43 ^^ Jun 17 19:53:01 but, happy schwarzenegger is not prez. Jun 17 19:53:29 bhundven would you prefer biff ? Jun 17 19:53:40 haha, we had him for 2 terms Jun 17 19:53:42 g00s: I'd vote stiffler for pres Jun 17 19:54:03 ;) Jun 17 19:55:46 i think the hoverboard will be out before android can get 80% of its users on the same version Jun 17 19:56:16 It seems the support library is "special", and gradle will pull it from the sdk dir automagically. But AS still bitches about it in it's log files, but still not sure this is why AS suddenly refuses to import from my perfectly valid (and unchanged from earlier) gradle build file. Jun 17 19:57:32 its a technology preview, maybe its a bug Jun 17 19:59:45 can anyone tell me why these two classes produce slightly different output? http://pastebin.com/FxWx5atY Jun 17 20:00:14 * lov sighs Jun 17 20:00:19 is android studio better than eclipse? Jun 17 20:00:30 Download the android studio, accidentally don't tell it where gradle lives, it decides to download it itself. With no way to cancel. Jun 17 20:00:37 Stavros: yes and no. It's still alpha software. Jun 17 20:00:46 lov: what's worse about it? Jun 17 20:00:57 It's... still alpha software. Jun 17 20:01:03 i.e. things might just break Jun 17 20:01:08 intellij ... ;) Jun 17 20:01:10 yeah, i mean apart from bugs Jun 17 20:01:14 oh Jun 17 20:01:16 obviously those will be ironed out eventually Jun 17 20:01:23 but, as a core IDE, do you like it better than eclipse? Jun 17 20:01:23 not much, really. Jun 17 20:01:42 i guess it comes down to intellij vs eclipse Jun 17 20:02:11 i'll check out kepler when its out in a few weeks, but the eclipse team is struggling Jun 17 20:03:16 the polls i saw last week say it has decreased in popularity by quite a bit Jun 17 20:04:12 Hey all. Mind taking a look at this question please? Would appreciate any insight. Jun 17 20:04:13 http://stackoverflow.com/questions/17154934/what-development-environment-engine-for-creating-app-with-interactive-map Jun 17 20:23:22 Figured out what caused AS to not import my gradle project. In my "main app" (a subproject from the root, MyProjection -> MyApp), I had a file settings.gradle containing "include ':facebook-android-sdk-3.0.1'". FB is another subproject. Gradle did not mind, but AS did. When I removed that file, both gradle and AS were happy. Jun 17 20:23:46 MyProject -> MyApp I meant... Jun 17 20:29:44 Hi, I just installed the ADT bundle and am trying the "HelloWorld" example and I am getting this error http://pastebin.com/YMZwTUuU What have I done wrong? (Debian 7) Jun 17 20:32:58 @Kilhd do you see adb when you list this directory: /home/user/adt-bundle-linux-x86_64-20130522/sdk/platform-tools/ ? Jun 17 20:33:17 <|0xD34D|> and is this a typo? while attempting to get adb version from '/home/user/eadt-bundle-linux-x86_64-20130522/sdk/platform-tools/adb' Jun 17 20:33:27 <|0xD34D|> it says eadt-bundle- instead of adt-bundle- Jun 17 20:34:14 good eye Jun 17 20:34:38 <|0xD34D|> I'd still check the path though like kmayoral suggested Jun 17 20:35:50 Yes, abd is listed. Jun 17 20:36:09 And yes typo. Jun 17 20:36:27 <|0xD34D|> then it may be that typo causing the problem Jun 17 20:37:15 perhaps you should check file permissions? I'm not sure what would be required in your setup or if that would affect anything Jun 17 20:38:16 Hmm.. K I will look into permissions. Jun 17 20:41:03 Any advice? Thanks! Jun 17 20:41:04 So, is it true that if I have a Bitmap (a rendered view) I want to share (ACTION_SEND intent), I need to stuff it somewhere and get a "local" Uri for it first (file:// or content://)? And remote Uris will not work? Jun 17 20:42:39 @Kilhd have you seen this yet? http://stackoverflow.com/questions/13571145/android-adb-not-found Jun 17 20:44:54 another post @Kilhd http://stackoverflow.com/questions/14972641/ubuntu-64-with-android-64-bundle-cannot-find-adb-executable Jun 17 20:45:06 No, but thanks! Jun 17 20:46:54 Kilhd: x86 vs x64? Jun 17 20:48:50 Heya Jun 17 20:48:54 @kjeldahl If you want to share the image represented by that bitmap, then best practice would probably be to do as you say and save the image locally, since the limit on data you can pass through an intent will vary depending on the device I believe Jun 17 20:49:44 lov: I am on x64 but I guess I need 32bit libs. Jun 17 20:50:16 If I want to display two buttons side-by-side each with evenly sized widths and filling the screen evently, can I do it with a LinearLayout? Jun 17 20:51:20 kmayoral: Yes, thanks. And that touches the issue on where to save it. If internally, the receiver intent can not access it unless I make a ContentProvider. Externally I need extra permissions. Or use the MediaStore ContentProvider if I understand it correctly. Jun 17 20:52:20 yup svm_invictvs just set the android:layout_weight property for each button to be the same value (if they're the only two child views of the linear layout) and they'll each take up half of the available space Jun 17 20:53:02 When I do that, it doesn't seem to occupy the whole screen. Jun 17 20:53:39 how is the parent linear layout laid out? does it fill parent in the dimension that you want it to fill? Jun 17 20:53:52 The parent layout is set to match_parent Jun 17 20:54:50 oh yeah sorry, that's right. is the parent layout a child of another view or is it the root view? Jun 17 20:55:28 No, it's not the root view Jun 17 20:55:41 The parent layout is a sub-view of the root view. Jun 17 20:56:11 http://mysticpaste.com/view/LpawCwaRE1?2 Jun 17 20:56:13 XML Jun 17 21:00:01 svm_invictvs can you try setting the layout_weights to "1" for each of the children? not sure if that matters though. also you can try setting the android:weightSum on the LinearLayout to "2". Finally, don't think this matters but the RelativeLayout still has a android:orientation="vertical" property which doesn't apply any more Jun 17 21:03:16 kmayoral: I tired that, nstill doesn't work. It seems like each sub-layout is just still wrapping it children. Jun 17 21:03:51 why would relativelayout respect orientation? Jun 17 21:04:39 sorry, i was suggesting he remove that line because I think it was just a remnant from when the view was a linearlayout that was then converted to a relativelayout Jun 17 21:10:19 oh i think i know what it is svm_invictvs, i think you also have to set android:layout_height in your examples Jun 17 21:10:42 via the documentation: Jun 17 21:10:42 However, if you want to override layout attributes using the tag, you must override both android:layout_height and android:layout_width in order for other layout attributes to take effect. Jun 17 21:10:48 (http://developer.android.com/training/improving-layouts/reusing-layouts.html) Jun 17 21:14:09 * pfn is absolutely confused why his widget doesn't reconfigure itself properly when turning the screen back on and stuff Jun 17 21:27:39 hi dev, i don't why my whats wrong with this code? Bitmap bm = BitmapFactory.decodeFile(imageFile.getAbsolutePath()); Jun 17 21:27:41 iv1.setImageBitmap(bm); Jun 17 21:27:53 Does anyone know if com.android.vending.INSTALL_REFERRER can be used for user-specific tracking (e.g. an install cookie)? Jun 17 21:27:58 Bitmap bm = BitmapFactory.decodeFile(imageFile.getAbsolutePath()); Jun 17 21:28:03 iv1.setImageBitmap(bm); Jun 17 21:28:28 androidnewb: please use a pastebin if you're going to paste more than a line or two Jun 17 21:28:54 ok cool, i use it Jun 17 21:29:09 androidnewb: are you getting an error? Jun 17 21:29:28 what's the best way to check if a textView is null? Jun 17 21:29:52 chrassidy: if (textView == null)? Jun 17 21:30:22 yeah, but I want to change the textview to a string if it is null Jun 17 21:30:49 greetingTextView.setText(getString(R.string.greeting_text)); is what i'm currently using Jun 17 21:31:15 it says that the variable can only be null at this location Jun 17 21:31:20 i'll paste in a sec Jun 17 21:31:22 ok i don't know why my "bm" variable won't go to my imageView? http://pastebin.com/ByLQQ4Zk Jun 17 21:32:07 http://pastebin.com/2wefLmaJ Jun 17 21:32:30 should I reverse my statement? Jun 17 21:33:02 awesome Jun 17 21:33:04 that fixed it lol Jun 17 21:33:05 nvm Jun 17 21:33:07 chrassidy: I don't know what showAppSettings does exactly, but it looks backwards to me. Jun 17 21:33:11 yeah Jun 17 21:33:16 reversing it did the trick Jun 17 21:33:18 :) Jun 17 21:33:36 showappsettings is a stringbuilder that gets values from the preferences acvitivity i have Jun 17 21:33:41 chrassidy: you also will want to change that || to &&, methinks Jun 17 21:34:02 since I believe you are wanting both of those conditions to be true Jun 17 21:34:11 (as opposed to just one of them) Jun 17 21:37:37 androidnewb: try checking if bm is null before passing it to setImageBitmap Jun 17 21:38:51 BHSPitMonkey: ok ill logcat that Jun 17 21:38:56 e.g. Log.d("testing", (bm == null) ? "bm is null" : "bm is not null"); Jun 17 21:39:29 also obviously make sure your execution flow is indeed reaching that case statement Jun 17 21:40:19 yes sir, i'm that newbbbbb :) Jun 17 21:40:24 i'm *not Jun 17 21:40:29 heh Jun 17 21:41:27 BHSPitMonkey: not null, bm is not null! Jun 17 21:41:38 it won't go in my iv1 imageview Jun 17 21:42:48 is there a way to customize a keyboard layout? as in which letters/numbers are available on the main screen? Jun 17 21:44:26 androidnewb: verify that iv1 is hooked up to the UI? Hard to tell from your paste what iv1 actually is Jun 17 21:48:48 perhaps there's an app that allows for keyboard customization? i need to strip out a bunch of characters and gear the keyboard towards only entering email addresses. Jun 17 21:52:08 amh345, perhaps using inputType in your fields to specify that you want only email addresses: http://developer.android.com/reference/android/text/InputType.html Jun 17 21:52:29 more docs: http://developer.android.com/training/keyboard-input/style.html Jun 17 21:53:10 kmayoral: thanks for the link. i need to see if this can be incorporated into an app made with flash. Jun 17 21:56:28 whoah did someone just say flash ? Jun 17 22:03:09 hey all Jun 17 22:03:59 im using AS and going through a big nerd ranch book that uses eclipse, just wondering if someone here is familiar with LogCat, i can't seem to find what im looking for (TAG for QuizActivity) Jun 17 22:04:41 i suspect an app using up a lot of battery power, but i am not sure it is the cause. it's very useful. i don't want to remove it unless it's really the cause. how can i find out. also since it uses root, does that mean some of it's power consumption might not be shown? Jun 17 22:05:23 <|Agent> billybigrigger, http://developer.android.com/tools/help/logcat.html. But what are you looking for? Jun 17 22:06:31 <|Agent> You can use whatever you like for the tag Jun 17 22:07:06 <|Agent> It's just something to search for and filter by. Jun 17 22:07:25 |Agent: i tagged all my lifecycle methods Jun 17 22:07:42 AS just has a way different layout for LogCat than eclipse... Jun 17 22:08:17 i watched the lifecycle as i hit back in the emu, got too see onPause/Stop/Destroy :) Jun 17 22:08:26 im good now :P i figured it out Jun 17 22:08:37 just had to filter my activity Jun 17 22:09:34 feck i feel like im too old to be learning programming Jun 17 22:10:02 should have done this 15 years ago when i started on my compaq presario :P Jun 17 22:10:07 <|Agent> lol Jun 17 22:10:29 <|Agent> You've missed out on some formative experiences, like assembly-language hacking. Jun 17 22:10:39 <|Agent> and low-level languages Jun 17 22:10:42 <|Agent> (like C) Jun 17 22:10:46 i was too busy playing nhl 94 Jun 17 22:10:50 games got me :P Jun 17 22:11:17 <|Agent> But programming is more about whether you can think like a computer, and whether you are OCD enough. Jun 17 22:11:34 feck i couldn't care less about programming, been using linux for 6-8 years and still don't know bash Jun 17 22:13:14 Does anyone know if com.android.vending.INSTALL_REFERRER can be used for user-specific tracking (e.g. an install cookie)? Jun 17 22:22:33 bash is a terrible lagnuage Jun 17 22:22:43 also terrible: my keyboard Jun 17 22:40:46 hi guys, how do you put a return of a BitmapFactory.decodeFile() to a normal Bitmap so I can put it in a imageview? Jun 17 22:42:01 androidnewb: http://stackoverflow.com/questions/11182714/bitmapfactory-example Jun 17 22:42:19 ImageView image = (ImageView) findViewById(R.id.test_image); Jun 17 22:42:19 Bitmap bMap = BitmapFactory.decodeFile("/sdcard/test2.png"); Jun 17 22:42:19 image.setImageBitmap(bMap); Jun 17 22:42:36 ty ill look on that. Jun 17 22:42:43 anyone using android studio know a workaround for creating a new resource directory? Jun 17 22:42:43 sry for line spam, thought it would single line it Jun 17 22:42:45 Xabster: ill try that Jun 17 22:43:10 i rightclick on my res folder in package view, then New, then Android resource directory, and no dialog or anything appears Jun 17 22:43:18 Xabster: this was my first approach and not good Jun 17 22:43:23 Xabster: this was my first approach and no good! Jun 17 22:43:33 no good, in what way? Jun 17 22:44:24 the bitmap won't go to my imageview, the picture will fill up the canvs Jun 17 22:44:27 *canvas Jun 17 22:44:36 *Acitivity Jun 17 22:44:54 as what they've called it Jun 17 22:45:16 sounds like a layout issue, and your imageview works fine. Jun 17 22:45:48 it just stretches to the size of the activity. check the imageview properties Jun 17 22:45:49 yes my imageview works fine, i tried it with intent only, no saving of file and it work Jun 17 22:54:58 dang. I was hoping I could just wrap nfcadapter in a class and put it off in a seperate library without needing an activity (just using asynctask to run blocking actions...), but I guess it really wants to be a fragment. Jun 17 22:55:46 or I just suck at java, and shouldn't loose my day job and stick with c. Jun 17 23:11:51 Does anyone know if com.android.vending.INSTALL_REFERRER can be used for user-specific tracking (e.g. an install cookie)? Jun 17 23:14:33 yaaaay Jun 17 23:14:51 What I thought was going to some pain in the ass code was actually easy to do! Jun 17 23:15:05 sjmikem, install a cookie where? Jun 17 23:15:23 Bye sjmikem Jun 17 23:16:52 (I've looked through some of the stackoverflow solutions) is there a canonical way to (a) have a GridView layout a row using the maximum height of the cells in that row (as opposed to the last cell) and (b) when the number of columns is auto_fit? Jun 17 23:22:04 kbs, I wrote some code, don't know if it is exactly that Jun 17 23:22:25 Ologn: great -- link to code available? Jun 17 23:22:37 kbs, http://bit.ly/1abDbhK Jun 17 23:22:58 Ologn: thanks, looking... Jun 17 23:24:09 Looking over it I don't use AUTO_FIT...I do my own estimation of how many columns should fit Jun 17 23:25:15 I use a fairly standard cell height also so... Jun 17 23:25:21 yep :-) so, as I read it, it's using a fixed size over all the cells in your spreadsheet? Jun 17 23:27:16 Yes, I just looked over the code and on second thought it's more afield of what you want then I remembered Jun 17 23:27:33 It seems like the textview that's the basis of the grid is being set to predefined width/heights --> https://github.com/dennis-sheil/android-spreadsheet/blob/master/src/com/vartmp/android/spreadsheet/Spreadsheet.java#L803 Jun 17 23:27:58 gotcha. Jun 17 23:28:32 hello, while testing my app i suddenly got an error: "error opening trace file: No such file or directory (2)" Jun 17 23:28:48 i have no idea how to solve it Jun 17 23:29:32 it happened while i was working on a broadcast receiver for sms Jun 17 23:47:16 JakeWharton Jun 17 23:48:16 Hi, does anyone here own or have a Kindle Fire HD device? Jun 17 23:49:03 any idea for the error? Jun 18 00:03:27 Anyone know how to get the "UP" button to show up on a layout where its not showing up? Jun 18 00:03:55 I can't seem to find what i should be googling for... It shows up in my non main activity just fine, but not the child layout of the main activity. Jun 18 00:04:46 up button ? Jun 18 00:04:54 yean not back, up Jun 18 00:05:00 the navigation bar at the top. the button on the left... Jun 18 00:05:18 oh, on an actionbar Jun 18 00:05:20 The doc's i've read call it the "up" button Jun 18 00:05:23 yah Jun 18 00:05:31 yeah, dont use actionbars Jun 18 00:05:36 as in I dont Jun 18 00:05:39 :) Jun 18 00:05:43 not telling you not to Jun 18 00:05:43 i tried disabling it at first Jun 18 00:05:46 :) Jun 18 00:05:48 but gave in... Jun 18 00:06:02 tis a silly place for it really Jun 18 00:06:07 are they easy to disable? Jun 18 00:06:11 yeah, its far away from your finger lol Jun 18 00:06:16 indeed Jun 18 00:06:26 bye bye 1 hand operation on a 5 inch screen Jun 18 00:06:33 yup Jun 18 00:06:33 hence I dont use actionbar etc Jun 18 00:06:36 :) Jun 18 00:07:02 StingRay_: I've given up on onehand operation on my note. Jun 18 00:07:20 shouldnt Jun 18 00:07:29 get my texting/sms app when I release it Jun 18 00:07:33 you will be fine Jun 18 00:07:54 yea, I wish more apps supported the onehand operations Jun 18 00:07:58 ui also has left/right handed settigs too Jun 18 00:08:00 ;) Jun 18 00:08:11 If I instantiate class A, then instantiate class B from within class A. What happens to class B when I clear Class A from memory? Jun 18 00:09:04 Does it stick around? So if I had a handle/reference on it, I would still be able to use it? Jun 18 00:10:15 i think that would depend what it is Jun 18 00:10:33 explain :) Jun 18 00:10:34 How do you disable? You use the Theme.NoTitleBar.Fullscreen? or do something in styles.xml? Jun 18 00:10:37 if it's just an simple object, it will be gone Jun 18 00:10:49 if it's a singleton Jun 18 00:11:24 flipture: haha, I dont use styles either, as they didn't allow what I wanted :) Jun 18 00:11:36 * StingRay_ fights against the flow/grain :) Jun 18 00:11:50 i see lol Jun 18 00:14:04 if the action bar goes away, do i loose my menus too? Jun 18 00:14:26 flipture: why are you trying to remove the action bar? Jun 18 00:15:38 well i didn't like it at first. then i gave up trying to make it go away. Now i can't figure out how to get the "up" button to show up on my main activity (different layout) Jun 18 00:15:45 so i've reverted to trying to remvoe it lol Jun 18 00:16:05 i'm cool with keeping it but i haven't found any good docs explaining how to manage it Jun 18 00:16:08 you really should keep it unless you have very good reasons to remove it Jun 18 00:16:30 i got finish() working on one of my child activities, but from a child layout of the main activity i cant get the button to show Jun 18 00:16:43 romainguy: i dont have a good reason :) Jun 18 00:16:53 would much rather get the back button working at this point honestly... Jun 18 00:17:57 I probably just need to go read some more... Jun 18 00:20:14 well I dislike both the system bar and action bar Jun 18 00:20:30 sounds like you don't want to use Android then :) Jun 18 00:20:37 love the black sys bar, and the ghosting it can cause on 90% of mobile screens Jun 18 00:21:19 love the actionbar with with functions that replicate the systembar and on the average large display require 2 hands Jun 18 00:21:30 * StingRay_ is grumpy and needs to start smoking again Jun 18 00:22:12 I was told cravings never go away, thats a bit…erm… crap! Jun 18 00:22:20 they do go away Jun 18 00:22:40 well this media staff woman said I will always get them, foreva Jun 18 00:22:43 takes about 3-4 months for them to get very far apart, and it took me about 7 months for them to go away Jun 18 00:22:58 how long were you smoking though ? Jun 18 00:23:06 i still have a "maybe i should ask him if i could bum a smoke" when drinking Jun 18 00:23:09 6 years Jun 18 00:23:19 ah, 20 here Jun 18 00:26:07 howdy Jun 18 00:26:30 any suggestions on an xml parser to use? Jun 18 00:26:55 I'm mostly taking serialized arrays of objects from the backend and turning them into data objects to be consumed by the frontend Jun 18 00:30:15 I usually go for the xmlpullparser Jun 18 00:31:51 hey, is there any way for me to allow an imageview to scale down but never up? Jun 18 00:32:07 fitCenter ? Jun 18 00:32:26 one of the scaleTypes does it I think Jun 18 00:32:34 very sure on that Jun 18 00:32:38 centerInside maybe Jun 18 00:33:01 alright, I'll give a few of them a shot Jun 18 00:33:11 well no Jun 18 00:33:14 read the docs Jun 18 00:33:20 and use the 1 that is what you want Jun 18 00:33:22 lol Jun 18 00:34:29 nope! it's my way or the highway (I'll take a look at the docs, I haven't even made the ImageView yet) Jun 18 01:07:15 I need help pleaase Jun 18 01:07:43 yes? Jun 18 01:08:54 I want to take pictures and save it on storage also it will put thubnail on the activity after taking a picture. I have a code here it can only save but not put a preview on the activity after taking a picture? http://pastebin.com/ByLQQ4Zk Jun 18 01:10:42 androidnewb: and what is not working ? Jun 18 01:10:57 and I thought your deadline was a while ago ? Jun 18 01:11:27 the 72hours deadline ?? Jun 18 01:11:35 yes, it was prospone to tommorrow. Jun 18 01:11:52 i can take pictures and save to my storage but not put a preview on my imageview Jun 18 01:12:04 email sending is already working Jun 18 01:12:21 and why cant you ? Jun 18 01:12:47 because it does return a regular Bitmap image Jun 18 01:12:59 im using this "itmapFactory.decodeFile(imageFile.getAbsolutePath())" Jun 18 01:13:06 *B Jun 18 01:13:13 *BitmapFactory Jun 18 01:14:14 that made no sense Jun 18 01:14:30 what i've just said? Jun 18 01:14:48 you cant display a bitmap in an imageView (a view for displaying bitmaps) cause "it" returns a regular bitmap ? Jun 18 01:15:58 when I use just the regular intent to take pictures and display it on my imageview it work, this is my past code "Bitmap bm = (Bitmap) data.getExtras().get("data");" Jun 18 01:17:24 well thats a thumbnail blob of what was taken Jun 18 01:17:38 not the image data that is saved Jun 18 01:17:53 still not sure of your problem though Jun 18 01:18:42 can i do the same for 1st too? I just want to take pictures save them and also put a preview in my activity that all, how do you do this? Jun 18 01:19:46 when you get the completed intent in onActivityResult, check that the file is there, load it, check that it's loaded, set it Jun 18 01:20:07 if it's too big to display, use sampling with bitmapOptions Jun 18 01:20:44 yes it too big to display, samling with bitmapoption? Jun 18 01:20:52 you mean just changing the properties? Jun 18 01:21:04 no, or I would have said that Jun 18 01:21:27 http://developer.android.com/training/displaying-bitmaps/load-bitmap.html Jun 18 01:22:11 work out the ratio, etc, and read in a sampled version to display Jun 18 01:22:17 all on that page I just linked Jun 18 01:22:54 ok cool, ill look to it :) Jun 18 01:52:44 hello Jun 18 01:53:56 i'm pretty new to android development, i implemented a FragmentPagerAdapter (from here http://developer.android.com/training/implementing-navigation/lateral.html#horizontal-paging) and i want to remove a fragment/page, but it crashes with null pointer exception. does anyone know the proper way to remove a fragment? Jun 18 01:54:55 dont call something that is or is on, null Jun 18 01:55:44 hm Jun 18 01:55:54 i don't think i am, this happens while swiping left/right Jun 18 01:56:27 well a runtime null means your allowing it to do so Jun 18 01:56:42 hmm Jun 18 01:56:44 what is it that is null ? Jun 18 01:57:39 i don't know how to tell, it doesn't show any of my lines in the traceback Jun 18 01:58:00 sure it will Jun 18 01:58:20 StingRay_: i Jun 18 01:58:27 StingRay_: http://pastebin.com/kZ5NEn3L Jun 18 02:00:22 StingRay_: it doesn't look like it Jun 18 02:04:39 is this the only channel were users of android studio hang out? Jun 18 02:05:20 Stavros: you sure thats the entire thing ? Jun 18 02:06:14 billybigrigger: sure there are people in here who both use AS and are in other channels, and I'm equally sure that there will be a few not in here, but in other channels who may use AS Jun 18 02:06:16 lol Jun 18 02:06:27 StingRay_: yeah, before that there's just "thread exiting with uncaught exceptions" Jun 18 02:06:59 what happens when i run remove is that the fragment goes blank, but the title stays, i swipe right, swipe back left and then it crashes Jun 18 02:07:11 maybe i need to also remove the upper-level view somehow? Jun 18 02:07:47 Stavros: and there is no "Caused By" line Jun 18 02:09:24 StingRay_: this is it, start to end: http://pastebin.com/756Gx4Dj Jun 18 02:09:40 is thread 1 the main thread? Jun 18 02:10:27 at a guess I would say you should look at your getItem* methods for the null cause Jun 18 02:10:54 StingRay_: i checked that, all getItem does is "return panes.get(position).fragment;", and it returns successfully Jun 18 02:11:02 i suspect something like that as wlel Jun 18 02:11:18 yeah but is it returning null Jun 18 02:11:19 Hey guys, I've got this bit of code and it's opening a new window and I just want it to switch tabs, any ideas? https://gist.github.com/BAGRuby/e2907ead0da8a6a08ba1/ Jun 18 02:11:44 StingRay_: hmm Jun 18 02:11:56 AdamWeb: I think this is the wrong place to ask Jun 18 02:12:04 Oh? Jun 18 02:12:09 this is android app dev Jun 18 02:12:17 This is android. Jun 18 02:12:35 thats javascript in a webpage or something no ? Jun 18 02:12:53 Just the small little function AndroidFunction.ShowWebView(link); Jun 18 02:13:07 I thought it might be relevant Jun 18 02:13:28 the one below is a different file Jun 18 02:13:40 I'm not linking the entire files. Jun 18 02:14:09 well just get an instance to the tabView you want to play with Jun 18 02:14:16 and set current tab to what you want Jun 18 02:14:37 or am I missing a point somewhere / Jun 18 02:14:57 How do I get an instance of the tab? (Complete noob with Tabhost) Jun 18 02:15:05 StingRay_: it seems to be returning properly, no nulls anywhere, although it tries to get all the PageTitles for every swipe Jun 18 02:15:48 AdamWeb: you been through the learning android tuts on d.android.com ? Jun 18 02:16:55 Stavros: well, when you swipe, you should be able to track this down, debug it etc, cause something your doing is giving it null Jun 18 02:16:58 Well what I'm asking is can I pull that information from an activity that doesn't extend the tabactivity Jun 18 02:17:28 you can do it from anywhere that has a hook to the view hierarchy Jun 18 02:17:52 so if the activity owns the content/layout/views, yes Jun 18 02:18:52 hell, never tried but you maybe able to do it from anywhere with current access to active context Jun 18 02:20:07 Well I have a tabhost, in the tabactivity and I've added activities to it Jun 18 02:20:27 in one of these activities I'm trying to get a javascript function on a webview to change the tab to something else Jun 18 02:21:03 oh see thats where it a bit alien Jun 18 02:21:10 yeaaaa Jun 18 02:21:23 why do you want such a thing ? Jun 18 02:21:30 seems, backwards Jun 18 02:21:46 the client wants what the client wants Jun 18 02:21:49 unless you were attempting to hide a webpage as an app or something :) Jun 18 02:21:58 how would you suggest the clicking of a webview to change tabs? Jun 18 02:22:05 an item in a webview* Jun 18 02:22:36 I would never use webview personally, specially that has any content that is supposed to interact Jun 18 02:23:03 Well they want to dynamically change the content (the part with the function is consistent). Jun 18 02:23:27 well, you could pull content from a web service Jun 18 02:23:27 So I'm open to a suggestion :o Jun 18 02:23:36 and create views/layouts etc Jun 18 02:23:44 rather than webview Jun 18 02:24:16 Yeah could have but when they want to change the layout they want it to be consistent across devices whenever they want without rerelease. Jun 18 02:24:57 and how would that contradict what I just suggested ? Jun 18 02:25:23 I've just never seen a service serve up styles Jun 18 02:25:25 I guess Jun 18 02:25:38 anyway, what I posted above works to a degree but it's starting a new activity Jun 18 02:25:45 rather than switching tabs Jun 18 02:25:49 well a "style" is just a pre-determined list of attribs Jun 18 02:25:56 named/ref Jun 18 02:26:30 I thought about having an activitygroup Jun 18 02:26:46 well. with webview/javascript/html stuff I'm a bit clueless…so cant really help Jun 18 02:26:54 That's no problem :) Jun 18 02:26:58 Perhaps you can answer this; Jun 18 02:27:02 most people here do native/java apps Jun 18 02:27:11 there is the phonegap irc channels Jun 18 02:27:11 Whenever I create a second activitygroup I run into problems Jun 18 02:27:24 they maybe more up on things like this Jun 18 02:27:24 is there some taboo with having a second activity group? Jun 18 02:27:27 web apps Jun 18 02:28:21 ive done jni in sun java, but i still need to try the next thing, the same thing in android... right? Jun 18 02:28:47 AdamWeb: well ActivityGroup is deprecated Jun 18 02:28:57 tis now "fragments" Jun 18 02:29:06 i'm stoned :] lemme google for a bit Jun 18 02:29:24 Yeah I know, but without importing the support library I am stuck with activity groups :P Jun 18 02:29:34 so import it lol Jun 18 02:29:47 *hiss* Jun 18 02:29:49 I would think 99.9% of all aps do Jun 18 02:29:53 apps* Jun 18 02:30:06 Is there any tuts on converting activitygroup to fragments? Jun 18 02:30:30 there are the fragment tutorials Jun 18 02:30:36 just go through them Jun 18 02:30:40 but I guess then, I can't use a fragment in my tabhost? Jun 18 02:30:59 well, tabhost is a bit…errr…. redundant ish Jun 18 02:31:06 viewPagers etc Jun 18 02:31:14 Yeah, I'll brb a min ;) Jun 18 02:34:21 StringRay: where you from? Jun 18 02:34:56 Your from London mate? :) Jun 18 02:34:59 my moms womb, you ? Jun 18 02:35:08 na bit north of london Jun 18 02:35:22 use to spend all my working days in london though Jun 18 02:35:36 I'm from Yorkshire, but live in Buckinghamshire now Jun 18 02:36:01 bah, bloody southerners Jun 18 02:36:05 cool, anyone here from the US? Jun 18 02:36:40 London people are cool by the way Jun 18 02:36:43 Leeds: erm, latitudely speaking, you have no say!!!! Jun 18 02:36:57 also, bloody far westerners... :) Jun 18 02:37:38 * Leeds hasn't been north of Luton since Easter Jun 18 02:38:10 I have been south of the equator though... Jun 18 02:42:26 okay, so it turns out you don't call destroyItem directly, you remove the item from the collection and android is clever enough to figure it out Jun 18 02:46:36 indeed Jun 18 02:46:44 :) Jun 18 02:46:52 this wasn't mentioned anywhere :( Jun 18 02:49:17 it doesn't crash immediately, now, but there's still erratic behaviour Jun 18 02:49:43 could be that is also be missuse/design Jun 18 02:49:56 the way i use it is pretty simple, i don't know Jun 18 02:50:20 i initialize the List on create, and then just return the fragments Jun 18 02:51:09 hmm, the List is actually a list of custom classes, each instance of which includes the fragment in an attribute Jun 18 02:51:12 could that be causing it? Jun 18 02:51:49 i need extra state on each fragment Jun 18 02:52:19 e.g. a title Jun 18 02:53:09 hmm, that seems unlikely, android doesn't even know about that list **** ENDING LOGGING AT Tue Jun 18 02:59:59 2013