**** BEGIN LOGGING AT Tue Jan 29 02:59:58 2013 Jan 29 03:00:16 rafasc: I don't know the answer to your question. I would suggest running a quick test that stores something to a key, read it back to ensure it was written, then write something else to the same key and read it back to see what it looks like. I suspect it would overwrite what was already there. Jan 29 03:15:36 I have a fragment that is a webview. When i tell it to load a certain page, it becomes blank and ONLY loads the page when I turn to a horizontal view from vertical view and vice versa. Jan 29 03:37:26 android 2 doesn't support css animation? Jan 29 03:37:28 wtf???!!! Jan 29 05:23:27 android 2? jeez dude you need an upgrayyyd Jan 29 05:30:01 is linux kernel the same that used on android ? or they in google use different branch of linux ? Jan 29 05:30:07 is linux kernel the same that used on android ? or they in google use different branch of linux ? Jan 29 05:31:10 im sure asking twice will get you a faster answer Jan 29 05:32:10 elkng: No two Linuxen have exactly the same kernel. Rare enough finding any two Linux boxes running precisely the same one, for that matter. Android's Linux kernel is Google's own fork, and I have no idea how up to date they keep it with Linus' tree. Jan 29 05:32:12 canadiancow: my connectio was disconnected and I repeat to be sure Jan 29 05:32:23 gwynne: or android's kernel was forked from 2.6 and now its differ from 3.* version ? Jan 29 05:32:50 are new feature added to an droid kernel goes automatically to vanilla source also ? Jan 29 05:33:19 Again, not sure. I would guess that Google is merging and/or backporting from the vanilla tree, but I suspect most changes on the Droid fork don't go back, though I'm sure they submit stuff like security patches. Jan 29 05:36:21 jaaaaaake Jan 29 05:36:24 coooooow Jan 29 05:36:29 fix my bugs Jan 29 05:36:32 did you go to the thing today? Jan 29 05:37:01 and which bugs are these Jan 29 05:37:23 return thing.lowercase().contains("work") ? "Yes" : "No"; Jan 29 05:37:30 toLowercase(), i think Jan 29 05:37:36 (i did a lot of Python today) Jan 29 05:37:53 LinearLayout measure/layout pass problems Jan 29 05:38:07 it's not a real problem, i'm just lazy and don't want to make my own ViewGroup Jan 29 05:38:25 oh Jan 29 05:38:32 im also lazy Jan 29 05:38:36 and dont want to make a viewgroup Jan 29 05:38:42 o/ Jan 29 05:39:00 i'll just extend AbsoluteLayout and call it a day Jan 29 05:39:06 and I'll punch you Jan 29 05:39:12 lol Jan 29 05:39:15 i saw that coming Jan 29 05:39:31 romainguy_, why hasn't AL been removed from the sdk? Jan 29 05:39:39 compatibility Jan 29 05:39:46 we've removed other stuff Jan 29 05:39:47 it should be @hide on new APIs Jan 29 05:39:57 it can still exist on the classpath, just not in the public API Jan 29 05:40:14 we removed Service#setForeground(boolean) Jan 29 05:40:17 liek totally removed Jan 29 05:40:26 yep Jan 29 05:40:44 so why not remove AbsoluteLayout :P Jan 29 05:40:52 because it's not that big of a deal Jan 29 05:41:00 WebView needs it! Jan 29 05:41:19 :| Jan 29 05:45:34 if I specify an application-wide theme, can I override this in one Activity? Jan 29 05:45:53 yes Jan 29 05:48:37 I have 4GB of RAM and eclipse is slow as fuuu Jan 29 05:49:03 Hey guys, I'm in a bit of a bind. I need to figure out how to do something with the soft keyboard, and I'm not sure if its possible. Basically, I need to figure out what input type options Jan 29 05:49:15 will allow me to have the emoticions (The little smiley face button) as well as the return key Jan 29 05:49:36 I can figure out how to have one or the other, but not both. The android docs keyboard has one that has both, but nothing other then a picture of it Jan 29 05:52:22 I thought LinearLayout made two passes when there was a child with a weight. Jan 29 05:52:49 I have a child which dictates its height based on the width but it gets called with AT_MOST and then the full height of the LinearLayout Jan 29 05:53:46 The source seems to confirm this which seems odd. I had hoped it would get called with UNSPECIFIED on the first pass and then with AT_MOST on a second pass when less than the desired space was available Jan 29 05:54:29 The docs for how Views get measured confirm my assumptions but the LinearLayout sources has short-cuts for weighted views (presumably to prevent multiple passes of measurement) Jan 29 05:55:39 maybe I should phrase this as a question... Is it possible for a child of a LinearLayout (or other ViewGroup) to dictate its desired height but shrink vertically if it would push other views beyond the vertical bounds? Jan 29 05:55:48 JakeWharton, you answered my question on stackoverflow, thank you! :) Jan 29 05:56:38 squ: glad I could help. Jan 29 05:56:48 will try it now Jan 29 05:57:34 I might need to ask my own here since I seem to be unable to accurately convey my problem Jan 29 06:05:57 made another question, http://stackoverflow.com/questions/14576650/weighted-vertical-linearlayout-with-proportionally-scaled-image-and-textview-to Jan 29 06:07:08 squ already said Jan 29 06:07:10 this might help you: https://gist.github.com/2856179 Jan 29 06:07:14 squ: ^^^ Jan 29 06:07:50 1. code solution, 2. make the image bigger so that it only downscales, 3. use 2 linearlayouts Jan 29 06:07:55 JakeWharton: the first pass will depend on the layout params you've specified Jan 29 06:08:26 JakeWharton: and to answer your question: yes, that's what weight will do Jan 29 06:09:22 JakeWharton: weight will either determine how much empty space to use *or*, if the sum of the children's dimensions is larger than the parent's, the weight determines how much space to take away from the children Jan 29 06:11:27 StingRay_, "3." you mean nested LinearLayouts? Jan 29 06:12:01 romainguy_: what I was trying to accomplish was to have a child whose aspect ratio was fixed at 1:1 based on the width of the view, except when that height would cause additional children (wrap_content) to be clipped at the bottom of the view in which case it would shrink its height Jan 29 06:12:49 and then I got the additional requirement of having one of those additional children to fill the remaining space, if any Jan 29 06:13:24 it's somewhat hard to explain without a picture or layout XML, but we couldn't get it to work with a normal LinearLayout and thought a custom ViewGroup was required Jan 29 06:13:42 JakeWharton: yep you'll need a custom ViewGroup Jan 29 06:13:51 you basically want weight to work only to shrink Jan 29 06:14:13 just write a custom ViewGRoup Jan 29 06:14:16 it's easy Jan 29 06:15:33 yeah the child arrangement is really straightforward thankfully, it was just the end of the day and I wasn't in the mood. Jan 29 06:15:57 probably could have written it in the time we spent trying to wrangle existing logic Jan 29 06:16:34 yep Jan 29 06:16:46 that's what I keep telling developers :) Jan 29 06:16:52 especially since you know exactly what you need Jan 29 06:16:55 you can take many shortcuts Jan 29 06:20:05 squ I still dont get why you want to scale an image/icon up enough so that it will become pixelated Jan 29 06:22:02 the layout I gave you yesterday works if there are enough pixels and you dont start pixelating it due to scalin Jan 29 06:22:05 *g Jan 29 06:25:17 JakeWharton, I noticed that style="@style/Widget.Sherlock.ActionButton" does not add blue touch feedback to items Jan 29 06:25:58 expected that it should do this: http://developer.android.com/design/style/touch-feedback.html Jan 29 06:26:02 it sets the background to ?attr/actionBarItemBackground which is a state-list drawable Jan 29 06:26:27 if you're not using a Sherlock theme then that may resolve to null Jan 29 06:26:38 what if ImageButton have already background set? Jan 29 06:26:57 then it will override Jan 29 06:27:14 ran tests on 2.2.2 device and 4.2 device Jan 29 06:27:43 image gets scaled to fit the area and thats all Jan 29 06:33:20 I'm trying to cook up a theme. For some reason my ActionBar remains the same color. How do I change the color of the actionbar? Jan 29 06:33:43 RustyShackleford: background attribute in the style specified by the actionBarStyle theme attribute Jan 29 06:33:57 also, see http://jgilfelt.github.com/android-actionbarstylegenerator/ Jan 29 06:34:29 so I need a separate style for the ActionBar? Jan 29 06:34:57 also, dark themes vs light themes? Jan 29 06:35:14 the action bar has its own style, yes Jan 29 06:35:23 and i have no idea what you're asking in your second question Jan 29 06:35:50 what are the pro's and cons? When to use which? Jan 29 06:36:05 depends on the content Jan 29 06:36:20 I usually tend to like light themes Jan 29 06:36:35 there's a dark action bar theme for use with light activity themes Jan 29 06:36:58 it looks similar to this: http://jgilfelt.github.com/android-actionbarstylegenerator/#name=example&compat=holo&theme=light_dark&actionbarstyle=solid&backColor=2D2D2D%2C100&secondaryColor=555555%2C100&tertiaryColor=3F3F3F%2C100&accentColor=33B5E5%2C100 Jan 29 06:39:06 JakeWharton, have you tried that sample provided on stackoverflow.com with your solution? Jan 29 06:39:19 i have no idea what you are referring to Jan 29 06:39:28 http://stackoverflow.com/questions/14457312/sherlock-action-item-style-for-button-in-custom-action-bar-layout Jan 29 06:40:01 you're overriding the background thus the state-list drawable isn't there Jan 29 06:40:16 set the foreground image on your ImageButtons, not the background Jan 29 06:41:27 hooray! brilliant! :) Jan 29 06:45:10 menu resource from 2.2 is coming into actionbar to 4.2 device Jan 29 06:46:11 how to avoid that? Jan 29 06:46:24 i don't know what that means Jan 29 06:46:41 http://developer.android.com/images/ui/actionbar-stacked.png Jan 29 06:47:10 button at the upper right corner Jan 29 06:47:20 that's the overflow menu Jan 29 06:47:52 I expected that android:showAsAction="never" in the menu.xml will not add it to the actionbar? Jan 29 06:48:10 seems that something else must be done? Jan 29 06:48:54 "Menu items that are not promoted to an action item are available in the overflow menu, revealed by either the device Menu button (when available) or by an "overflow menu" button in the action bar (when the device does not include a Menu button)." Jan 29 06:48:59 ref: http://developer.android.com/guide/topics/ui/actionbar.html Jan 29 06:52:23 and how to hide it? Jan 29 06:53:07 romainguy_: using your mac pro again :| Jan 29 06:53:11 squ: dont add it to the menu? Jan 29 06:53:29 f2prateek1, I want menu button on 2.2 device Jan 29 06:53:45 but I dont want it as action item on higher devices Jan 29 06:53:53 that's how the action bar works, you cannot control it Jan 29 06:54:08 add it through java code' or use menu-v11 specifically (if that works) Jan 29 06:54:36 that would be nice Jan 29 06:54:47 I'll try that now :) Jan 29 06:56:09 although if jake says its not possible, it likely isnt Jan 29 06:56:27 well you can do that, but if you want to present the option to the user it still has to go somewhere Jan 29 06:56:39 and there are API 11+ devices with hardware menu keys that will not get the on-screen overflow action item Jan 29 06:56:43 do you absolutely need styles-v11, styles-v14 etc? Jan 29 06:57:25 you can, of course, check that too, but you also have to take into account that the number of action items that the action bar shows varies based on the width of the device Jan 29 06:58:15 in summary, you're best off just putting the most important action items first and allowing the rest to fall into the overflow (or be forced into it) Jan 29 06:58:25 4.2 nexus is ignoring menu-v11 Jan 29 06:58:36 I mean overflow is added Jan 29 06:58:51 ignoring my fix :) Jan 29 06:59:23 v11 means anything above api 11 will use that Jan 29 06:59:51 can you have only styles/ ? Jan 29 07:00:37 are v11 and v14 required? Jan 29 07:00:44 they're not required Jan 29 07:00:56 can any of you guys point me in the right direction as far as some makeshift animations... nothing fancy.. but I'm trying to just do some cheap animated gif like stuff... as simple as making a record appear to spin, etc.. I'd settle for a little more complex than just rotating a series of images to do the job, ... just don't know the capabilities without being in the video game design Jan 29 07:00:56 world... a site with examples would be fantastic, if any of you know a place. Thanks. Jan 29 07:01:34 hey so I'm trying to add a custom animation for a fragment transition but when i do replace i get this error: "The method replace(int, Fragment, String) in the type FragmentTransaction is not applicable for the arguments (int, Fragment, String)"....to me that says "1 does NOT equal 1". huh? Jan 29 07:01:56 KillmeSoftly: except that there are multiple Fragment classes Jan 29 07:02:04 you probably mixed up the two of them Jan 29 07:02:36 pierpark your asking how to make the animation images ? or how to do a frame list in android ? Jan 29 07:02:56 gimp or photoshop can do both jobs in creating an animated gif pierpark Jan 29 07:03:04 RustyShackleford: only if your themes are using something from above those api's; e.g. holo derived themes will require the theme to be defined in v11 or higher Jan 29 07:04:13 StingRay_ .. maybe both? I can definitely compile a GIF, or lay my images out frame by frame like a flip-book, .. mainly I'm trying to figure out the method of bringing some sort of animation to my layout so that it isn't still and stagnant... might be as simple as the appearance of the 'refresh' spinner that sits and spins.. but my own graphic. Jan 29 07:05:00 f2prateek, I added the empty menu to the menu-v11, while menu/ has featured xml. And thing now work as they should :) Jan 29 07:05:02 how difficult is it to support GingerBread? Are ActionBars available in GB? Jan 29 07:05:19 RustyShackleford: there are libaries which backport the functionality Jan 29 07:05:19 VeggieVampire: Thanks. I'm trying to figure out how to incorporate such animation into the app. Making the graphics would be the easy part. Jan 29 07:05:20 pierpark http://developer.android.com/guide/topics/resources/animation-resource.html#Frame Jan 29 07:05:38 JakeWharton, other than the support library? Jan 29 07:06:00 StingRay_: Sweet! The first line on the page looks like what will help me out. I appreciate the link. Jan 29 07:06:02 the support library doesn't do anything for the action bar Jan 29 07:06:27 beyond providing helper classes for people who can't wrap their calls to API 11+ method on MenuItem in a `if` block Jan 29 07:06:52 hm. I think I'm going to target v11 for now Jan 29 07:06:58 go for v14 Jan 29 07:07:03 learn one chunk of the api at a time Jan 29 07:07:33 RustyShackleford: actually ActionBarSherlock has an API identical to the native one Jan 29 07:07:43 there's only 6 people on the globe who use Android 3.x so you're better off going with 14+ if you're doing that Jan 29 07:07:54 JakeWharton 10 still 47.4% Jan 29 07:07:56 i think pfn is one of the six Jan 29 07:08:00 soon enough gingerbread will be gone Jan 29 07:08:01 thats a big ass chunk Jan 29 07:08:31 Wow.. it's that simple? Holy hell... I can't believe I missed this part of the docs. Thanks again, StingRay_ Jan 29 07:08:57 StingRay_: if you're minSdkVersion is 14 then there's 100% of users on 14 and up and 100% is bigger than 47% Jan 29 07:09:02 LOGIC! Jan 29 07:09:21 how quickly will gingerbread die out? Jan 29 07:09:24 pierpark np, if you want to know how to do anim, output etc Jan 29 07:09:33 not that long ago, it was way higher than 47% Jan 29 07:09:34 <--- 3d artist/animator Jan 29 07:09:35 :) Jan 29 07:10:21 jakewharton: the only one i'm using is supportv4 Jan 29 07:10:25 RustyShackleford: if you're starting a new app and you're not a company like Facebook you can ignore anyone on pre-ICS Jan 29 07:10:55 Hello guys. I have fragment which contains list with data which i load from back end and user can "load more" if he need it. If analyze main purpose of fragments: should i set adapter with loaded data, on item click listener to open details screen from the inside after creating fragment or i should only say to fragment what to load after creation, and after adding to screen he load and show... Jan 29 07:10:56 ...this data? Jan 29 07:11:02 ignoring that means I can have property animation :) Jan 29 07:11:09 Don't tempt me dude... I do stuff like this, and think it looks good... but I definitely need to learn how these cool "effects" happen... http://lifeofchance.com/hd.png Jan 29 07:11:14 StingRay_: there's a backport of property animation Jan 29 07:11:19 hey all.. I'm working on an android project I shelved a few months ago. Now, every time I build it from eclipse and run it it's unusably slow. Any ideas, or ideas for figuring out what went wrong? Jan 29 07:11:21 it's kind of a hack, though Jan 29 07:11:38 could be a billion things Jan 29 07:11:45 no? Jan 29 07:11:49 ^^ StingRay_ Jan 29 07:11:51 pierpark better than some programmer art, but I dont like ios'ish design on android Jan 29 07:12:19 KillmeSoftly, me? Jan 29 07:12:20 + I think you have 3 styles there, 2 of them quite apposed Jan 29 07:12:37 blah. Jan 29 07:13:03 pierpark: "open soundboard" and "exit" ? wtf Jan 29 07:13:18 open an app just to open the app Jan 29 07:13:19 you basically just put up a worthless screen Jan 29 07:13:22 also the logo text has apposing highlight direction while in some cases looks ok, makes that look a bit odd Jan 29 07:13:35 g00s... yep... it's worthless. just a pic. Jan 29 07:14:18 yeah, I'm no graphics artist. So if you've got some good links for Android graphics/animations/effects, I'd love to see them. Jan 29 07:14:40 pierpark: don't make useless dashboards, put user directly into soundboard Jan 29 07:14:41 if you want to learn 3d maya stuff, I have my own training vids :) Jan 29 07:14:47 but at bit of an overkill Jan 29 07:14:48 :) Jan 29 07:15:00 maya is expensive as hell Jan 29 07:15:24 p_l is right, user flow, open soundboard...then errr > open soundboard Jan 29 07:15:48 g00s: personal learning editions are free for a year from their release, iirc Jan 29 07:15:49 I had Maya at a time, when I was working with film... Jan 29 07:15:52 g00s I used to use it and train people when it was $26,000 per license Jan 29 07:16:03 :O Jan 29 07:16:06 * g00s passes out Jan 29 07:16:10 so no, it isn't now Jan 29 07:16:16 :) Jan 29 07:16:23 g00s: but they limit render resolution (and I think some options) and put a watermark Jan 29 07:16:32 i'm teaching myself blender slowly Jan 29 07:16:33 also, just 26k? cheap Jan 29 07:16:51 nuke is 16k for full set Jan 29 07:16:57 I'm a bit spoiled Jan 29 07:16:59 Yeah, I know what the pic says... I didn't say that's what I was using, guys. Jan 29 07:17:05 with highend vfx software Jan 29 07:17:27 StingRay_.. so incorporating the type of work you do... how? OpenGL? Jan 29 07:17:33 Piano 5 starts at 49.5k... GBP Jan 29 07:18:06 pierpark what you mean in what I'm doing here ? Jan 29 07:18:07 (but it's not 3D software) Jan 29 07:18:23 p_l then it's crap, I bet all it does is make noises Jan 29 07:18:59 huh? I was asking how you build such... complex graphics into Android ... like if you were to build 3D stuff.. how do you animate that type stuff in Android? Jan 29 07:19:21 pierpark pick an nice engine/renderer Jan 29 07:19:32 based of purpose and requirements Jan 29 07:19:36 StingRay_: Piano 5 is software for advanced exploatation analysis and simulation for aircrafts :) Jan 29 07:19:48 p_l crap!! really? Jan 29 07:20:01 bet it still makes noises though right ? Jan 29 07:20:01 Ah. Alright that makes sense. Okay, headed out to look at this document you linked me to. Jan 29 07:20:04 Hello guys, I have an API that returns some JSON (news mostly) I want my android application to read those news and render them, can you point me on how it is done ( I mean should I make one request and write all in the db or should I make request on everytime the user has internet connection) My question is mostly on the approach of doing this. Jan 29 07:20:05 StingRay_: things like calculating if changing the flight path will result in lower cuts etc. Jan 29 07:20:21 s/cuts/costs/ Jan 29 07:20:34 and no, I don't think it actually has sound outside system alerts Jan 29 07:20:35 p_l cant a calculator do that ? Jan 29 07:20:45 :) Jan 29 07:20:57 StingRay_: If you want to spend weeks manually doing loooong calculations, sure Jan 29 07:21:04 if not more Jan 29 07:21:23 well if it takes into account weather and jet stream patterns then yeah Jan 29 07:21:25 http://www.lissys.demon.co.uk/index2.html <--- one man company Jan 29 07:21:29 it maybe worth it Jan 29 07:21:50 StingRay_: not just that, it calculates emissions, drag, differences in fuel use depending on flight pattern, etc. Jan 29 07:22:02 weather and jet stream is less important than those Jan 29 07:22:11 well no I dont think Jan 29 07:22:19 drag, fuel eff Jan 29 07:22:21 constants Jan 29 07:22:26 nope Jan 29 07:22:34 fuel efficiency is dependant on altitute Jan 29 07:22:36 *altitude Jan 29 07:22:39 same with drag Jan 29 07:22:42 yes Jan 29 07:22:46 but they are constants Jan 29 07:22:52 not exactly Jan 29 07:22:53 maybe 2 relational numbers Jan 29 07:22:57 but they are Jan 29 07:23:15 neways, not something I'm gonna buy at this stage Jan 29 07:23:25 although oddly I do now want to play with it Jan 29 07:23:26 :) Jan 29 07:23:31 StingRay_: do well on your android app, and you can save some money towards it Jan 29 07:23:42 well Jan 29 07:23:45 anyone ? Jan 29 07:23:54 I have good fluid dynamics in Maya Jan 29 07:24:03 well, it's a program for airlines and such - where a difference of 10kg or slightly more aggresive climb might mean thousands of dollars Jan 29 07:24:31 most impressive is that it's one-man company Jan 29 07:24:41 climb is defined by airport approach and dispatch though Jan 29 07:24:53 but yeah, 1 man is pretty impressive Jan 29 07:24:53 StingRay_: only close to airport Jan 29 07:25:04 p_l true Jan 29 07:25:15 and even then, you usually get "limits" rather than exact paths Jan 29 07:25:33 i.e. "you need at least that fast climb to quickly clear area and stop making noise" Jan 29 07:25:33 I think I'm getting a job offer from natural motion if I want Jan 29 07:25:34 i wonder if humidity changes drag coefficients as well Jan 29 07:25:39 g00s: yes Jan 29 07:25:41 that maybe interesting Jan 29 07:26:26 StingRay_: these days, even the stop-point during landing is optimized to reduce fuel use Jan 29 07:27:09 so they plan in advance which taxiway to enter Jan 29 07:27:36 does that piano take into consideration all the on-board systems though :) Jan 29 07:27:39 bet it dont Jan 29 07:27:50 StingRay_: all that make impact on flight Jan 29 07:27:54 like compressor overhead for cabin preassure Jan 29 07:28:07 StingRay_: bleed air is accounted for in engine data Jan 29 07:28:14 dam Jan 29 07:28:21 that guys pretty smart then Jan 29 07:28:23 :) Jan 29 07:28:38 hmm... we had gone quite OT :D Jan 29 07:29:34 oops Jan 29 07:29:36 your fault! Jan 29 07:29:47 cause 3d is still kinda devvy Jan 29 07:29:51 androidy Jan 29 07:30:07 I have a ListView backed with a CursorAdapter. How can I apply a theme to each row depending on it's contents? Jan 29 07:30:23 RustyShackleford if else Jan 29 07:30:32 in getView Jan 29 07:30:41 or view types Jan 29 07:30:43 * p_l goes back to doing questionable things to database Jan 29 07:30:51 else would be quite important due to recycling Jan 29 07:31:02 view types would be better due to recycling Jan 29 07:31:22 StingRay_, in getView of the adapter? Jan 29 07:31:45 RustyShackleford listen to JakeWharton, I'm not really a dev Jan 29 07:31:49 just faking it Jan 29 07:31:57 haha Jan 29 07:32:17 JakeWharton, can you explain in a little more detail? Jan 29 07:32:49 JakeWharton listView question, recycling was screwed when I did any animation to any view on my list item, this common ? Jan 29 07:33:14 even though I tracked states for the anims and set them, still made no diff Jan 29 07:33:20 StingRay_: I guess it depends on how you did your animation and how you dealt with when a view was recycled before its animation completed Jan 29 07:33:36 RustyShackleford: how complex are the differences between the different themes? Jan 29 07:33:49 "before its animation completed" yeah probably never thought of that Jan 29 07:34:02 as in, are you just changing an image depending on a value or are you completely changing the layout of the row Jan 29 07:35:26 JakeWharton, Text color and background Jan 29 07:35:40 ok for those you should just set them in your getView for every call Jan 29 07:36:02 JakeWharton, so I need to sublcass SimpleCursorAdapter or something? Jan 29 07:36:31 probably, to override getView so you can change those things Jan 29 07:37:01 also, will i have an issue with the selector when I change the background? (you know how the item gets highlighted when you click it) Jan 29 07:37:01 i've never used any of the SimpleXyzAdapters so i'm not sure what they're doing over a normal XyzAdapter Jan 29 07:37:19 no, that's drawn separately Jan 29 07:38:01 RustyShackleford selector can be drawn front or back, listView property Jan 29 07:38:18 yes, drawSelectorOnTop Jan 29 07:38:27 but that can look crap though Jan 29 07:38:29 not a fan Jan 29 07:38:33 fades over text Jan 29 07:38:57 depends on the view Jan 29 07:39:01 christ how do you remember all of this knowledge? Jan 29 07:39:07 works great for GridView + ImageView Jan 29 07:39:11 i thought I would understand more of the API by now Jan 29 07:40:34 practice Jan 29 07:40:43 and actually writing things Jan 29 07:41:02 there's a difference between knowing a lot of things and knowing how to do a lot of things Jan 29 07:41:41 do you work as an Android dev? Jan 29 07:42:05 I do now Jan 29 07:42:31 is the mobile app market still hot? or has that fizzled out already? Jan 29 07:43:08 it hasn't fizzled Jan 29 07:43:27 I'm saying salaried jobs, rather than writing an app and getting rich Jan 29 07:44:22 although working for yourself is appealing. Just riskier Jan 29 07:44:51 I'm leaking a service connection :( Jan 29 07:45:00 that I dont quite understand Jan 29 07:46:56 I see the thing unbind Jan 29 07:49:32 JakeWharton, so I've subclassed SimpleCursorAdapter. The theme depends on the value in one of the columns of my table. Jan 29 07:49:57 How can I get rows from my cursor? Jan 29 07:50:58 StingRay_: leak it as in ? Jan 29 07:51:09 RustyShackleford: CursorAdapter is simpler than SimpleCursorAdapter :) Jan 29 07:51:33 g00s, that's counterintuitive Jan 29 07:52:06 will getCursor() interfere with my ListView? Jan 29 07:52:57 appel1 "has leaked ServiceConnection service_db_connector$1@42c17138 that was originally bound here " Jan 29 07:53:06 none fatal exception though Jan 29 07:53:22 there is an old bug in android that leaks the binder Jan 29 07:54:02 http://code.google.com/p/android/issues/detail?id=6426 Jan 29 07:54:08 appel1 actually I dont see it unbind, even though it's there in onDestroy and onDestroy gets called Jan 29 07:54:43 also, can you use JRE 1.7 compliance? Jan 29 07:55:12 switch/case with strings would be nice Jan 29 07:55:40 StingRay_: onDestroy isn't guaranteed to get called, but if you run the service in the same process I guess that wont matter Jan 29 07:56:00 well odd thing is I see it get called Jan 29 07:56:04 and the other odd thing is Jan 29 07:56:17 it unbinds fine if I make NO messenger calls to it Jan 29 07:56:34 only if I call the service to do something does it leak when that act ends Jan 29 07:56:38 StingRay_: messenger? Jan 29 07:56:53 using Messenger/Bind method Jan 29 07:57:02 RustyShackleford: you must use java 6 Jan 29 07:57:03 rather than AIDL Jan 29 07:57:20 cause to be honest I didnt quite understand the latter Jan 29 07:58:02 and since fragment interfaces work of message I though it more fitting Jan 29 07:58:28 where should I unBind a service if onDestroy is not guaranteed ? Jan 29 07:58:45 not that, thats the problem in this case Jan 29 07:58:49 just interested Jan 29 07:59:54 how can I set the style of a view to one that I have defined in styles.xml? Jan 29 08:00:13 StingRay_: depends on what behavior you want :\ Jan 29 08:00:20 in Java source Jan 29 08:00:43 appel1 one that doesnt leak :) Jan 29 08:00:57 its a database service Jan 29 08:01:16 StingRay_: hehe, but since you know it happens even if you unbind something else must be going on here Jan 29 08:02:10 well I see onDestroy called, but I just logged the binder with the calling activity and even though unbind is there, it dont get called Jan 29 08:02:21 so now I'm a bit puzzled Jan 29 08:03:03 although it does IF i do nothing with the service during the life of the activity Jan 29 08:03:17 but doesn't if I DO something with the service Jan 29 08:03:22 very confused now Jan 29 08:03:23 :) Jan 29 08:04:00 a binder is not persistent if a call is made and the operation is still going ? Jan 29 08:04:39 nope that aint it either Jan 29 08:08:36 http://www.fiercedeveloper.com/story/developer-survey-ios-mindshare-drops-5-android-jumps-4/2013-01-28 Jan 29 08:08:36 StingRay_: perhaps looking at adb shell dumpsys activity services before and after you've sent a message can give you a clue? Jan 29 08:08:54 the slides are very interesting Jan 29 08:09:18 Hi all, I have the dreaded "R cannot be resolved to a type" happening. I've cleaned and made a few hundred times, and checked the naming of my layout files, but cannot see anything, any other ideas? Jan 29 08:09:38 b0nn xml syntax ? Jan 29 08:10:07 accidentally importer android R? Jan 29 08:10:13 imported* Jan 29 08:10:22 StingRay_: I dont _think_ the files are incorrect, but I'll paste them if you want to send some fresh eyes over Jan 29 08:10:45 balls2thewall: I grepped the files, and no I hadn't managed to eclipse them Jan 29 08:12:33 http://pastebin.com/YV9tuPcm Jan 29 08:13:17 My MainActivity starts AlarmManager and I have a service that calls a method in MainActivity to stop the AlarmManager. Unfortunately it seems that the MainActivity has to be active for the service to broadcast method(); in MainActivity. Am I wrong? Do I have to have AlarmManager in a Service instead of Activity? Jan 29 08:14:03 b0nn have you got any uppercase letters in any layout filenames ? Jan 29 08:14:13 or drawables Jan 29 08:14:13 StingRay_: no Jan 29 08:14:37 no on both counts Jan 29 08:14:46 this is my other xml layout http://pastebin.com/FsfQwFLt Jan 29 08:15:06 b0nn have you selected the problems in the problem window and manually deleted them and then done a clean ? Jan 29 08:15:16 not sure that makes a diff, but worth a go Jan 29 08:16:08 One thing that I am trying is I moved the eclipse folder Jan 29 08:16:15 so, moving it back Jan 29 08:16:22 Quacked: what do you mean by "stop the AlarmManager"? do you mean that you want to cancel a scheduled alarm? Jan 29 08:17:42 found it. Jan 29 08:17:47 aapt isn't executable Jan 29 08:18:11 Sorry, I moved the android-sdks to a filesystem that didn't support permissions Jan 29 08:18:21 moving it back left... issues Jan 29 08:34:00 is #android the same as here? in context ? Jan 29 08:34:15 as in android dev questions/discussions Jan 29 08:34:31 appel1: Yes Jan 29 08:34:44 appel1: on deleteIntent of NotificationManager I want to cancel the alarm Jan 29 08:36:03 Quacked: so in the receiver get the AlarmManager and cancel the alarm? why try to involve the activity at all since it might not exist? Jan 29 08:41:00 >_> notifyDataSetChanged doesnt work on FragmentAdapters? Jan 29 08:42:28 StingRay_: it's more general android discussion there Jan 29 08:42:59 balls2thewall dunno, always use a fragment WITH a listView, I think there are some probs with the supportLib, from questions in here though Jan 29 08:43:30 http://code.google.com/p/android/issues/detail?id=19001 Jan 29 08:44:05 best solution for me was use a listView in a fragement Jan 29 08:44:13 job done Jan 29 08:44:39 appel1: hmm. the Intent I create for AlarmManager starts an AlarmReceiverActivity. Is that correct? Jan 29 08:45:03 appel1: in order to get an AlertDialog when the alarm sounds Jan 29 08:47:01 Not sure how to get the AlarmManager from the IntentService. IntentService is run if notification is cleared. Jan 29 08:47:14 Quacked: depends on what kind of PendingIntent you used Jan 29 08:47:50 Quacked: you call getSystemService(Context.ALARM_SERVICE) Jan 29 08:48:04 pendingIntent = PendingIntent.getActivity(this,random, intent, PendingIntent.FLAG_CANCEL_CURRENT); Jan 29 08:48:16 Quacked: as far as I know that is the only way to get an AlarmManager Jan 29 08:49:40 I create the AlarmManager in the Activity with am = (AlarmManager)getSystemService(Activity.ALARM_SERVICE); Jan 29 08:49:56 So I was thinking of doing am.cancel() Jan 29 08:50:49 could someone look at this lil' layout for me? http://pastebin.com/b7mdFXq3 im trying to get the "img_top" to be above the "plane". it works but when i add the background imageView to the layout it goes apeshit and the "img_top" flies up into space somewhere Jan 29 08:52:45 Quacked: so in your IntentService you do AlarmManager am = (AlarmManager)getSystemService(Context.ALARM_SERVICE); am.cancel(..); Jan 29 08:53:06 balls2thewall then why have alignleft/right ? Jan 29 08:53:44 to cut it down to the size of the "plane" Jan 29 08:54:40 hi there Jan 29 08:54:49 any bluetooth expert here? Jan 29 08:56:58 as an app developer, is it possible to implement a bluetooth profile solely through android public api? Jan 29 08:57:18 balls2thewall not sure i understand what your wanting Jan 29 08:57:29 cause dumping that into my project...well Jan 29 08:57:32 just looks odd Jan 29 08:58:21 appel1: how do I get the pendingIntent that should be inside am.cancel(...)? Jan 29 08:58:42 "img_top" is supposed to be above the "plane". but its not Jan 29 09:00:13 appel1: with a getter from the MainActivity where the intent is created? Jan 29 09:01:05 Maybe not. I guess that would also require MainActivity to be open Jan 29 09:01:17 balls2thewall then just have "Above" and Center Horizontal Jan 29 09:01:56 it already is set to above. Jan 29 09:02:18 "background" seems to have some effect on the layout. but i have no clue why, its not related to anything Jan 29 09:02:24 add center horzontal then Jan 29 09:02:57 you mean when you add a bg image ? Jan 29 09:03:03 or just leave it as color ? Jan 29 09:03:53 the img_top is set to be above the plane. so far soo good. now as soon as i add another imageview to the layout ("background") the img_top isnt above the plane anymore. why Jan 29 09:05:29 background being you add another imageView to this layout as the 1st item ? Jan 29 09:06:57 cause it's working fine in my project Jan 29 09:07:02 http://pastebin.com/b7mdFXq3 background being the item called "background" Jan 29 09:07:34 ah ok Jan 29 09:07:55 still works fine here Jan 29 09:08:24 http://pastebin.com/XhVQAfbB Jan 29 09:08:28 thats all fine for me Jan 29 09:09:33 http://i.snag.gy/cfOc0.jpg Jan 29 09:10:25 erm, what size is your bg image ? Jan 29 09:12:01 its just a color Jan 29 09:12:15 hang on Jan 29 09:12:17 <--- lost Jan 29 09:12:36 you say adding an image to your background imageView throws everything off ? Jan 29 09:12:42 the grey stuff is an imageview with just a color set Jan 29 09:13:03 the white thing is the plane. the thing outside the view is the image im trying to positio above the plane Jan 29 09:13:17 if i remove the grey background the image is above the plane. when i add it it goes out of view Jan 29 09:15:03 bit hard to visualise what your doing, sorry, still not had a shower to wakeup yet Jan 29 09:15:21 appel1: still there? Jan 29 09:38:13 Hi there. I've an ImageView in a vertical Linear layout, which has full screen width. I've set the ImageView Layout Width to fill parent, but the image isn't scaled and it's centered in the middle of the row Jan 29 09:38:57 http://developer.android.com/reference/android/widget/ImageView.ScaleType.html Jan 29 09:39:22 StingRay_: I've tried different scale types, doesn't change Jan 29 09:39:56 wont if you have wrap_content on height Jan 29 09:40:32 howver matrix scale would skew it to view Jan 29 09:40:37 even in that case Jan 29 09:44:09 StingRay_: When putting scaleType: fitXY and layout_width and layout_height to "fill_parent" it stretches the image horizontally, without sclaing up the height Jan 29 09:44:40 pastebin layout Jan 29 09:48:33 StingRay_:http://pastie.org/private/dg23mmowvrt1zx1umjyw Jan 29 09:49:03 @+id/imageViewEntryPicture is the element Jan 29 09:50:08 the 1st textView in the scroll is set to fill parent Jan 29 09:50:45 tis a bit odd having any element of a scroll set to fill parent Jan 29 09:50:57 also fill parent is depreciated Jan 29 09:51:17 Is there a smali community somewhere around here on freenode or any other IRC server? Jan 29 09:55:00 StingRay_: What Android version was match_parent introduced? Jan 29 09:55:53 8 Jan 29 09:57:09 Okay, will make sure to migrate to it in my app then, 8 is my minimum Jan 29 09:58:46 StingRay_: So what do I need to change in Order to get the image width scaled with the height? Jan 29 09:58:59 Bitmap.Factory Jan 29 09:59:01 Look at that Jan 29 09:59:22 create a new scaled bitmap from the original bitmap using DisplayMetrics to get the new height Jan 29 09:59:28 Even the width if you like Jan 29 09:59:59 Does anyone have any idea how to connect my device through DDMS to a remote computer with Eclipse? Jan 29 10:02:18 adb connect address:socket Jan 29 10:03:56 Sorry? Jan 29 10:04:18 your wanting an adb connection right ? Jan 29 10:04:23 to something else Jan 29 10:04:38 address = ip socket = well, data socket Jan 29 10:04:40 Yeah, basically I want to be able to debug on my device over a remote connection. Jan 29 10:05:00 I have no idea about changing the adb address. Jan 29 10:05:10 so adb connect 192.168.1.1:5555 Jan 29 10:05:19 would connect me to that ip and that socket Jan 29 10:05:59 Oh Jan 29 10:06:10 And I need to get the external IP address of my phone to do that? Jan 29 10:06:21 may help Jan 29 10:06:28 suppose you could start guessing Jan 29 10:06:32 Hahaha Jan 29 10:06:33 may take a while ;) Jan 29 10:06:41 Seems like it might be a bit slow. Jan 29 10:07:04 slow to guess ? Jan 29 10:07:07 yeah Jan 29 10:07:09 could be Jan 29 10:07:40 Hahaha, I mean the connection to my phone Jan 29 10:07:49 But Im sure guessing would be just as long, if not longer. Jan 29 10:07:50 slow to debug ? subjective, based on log output, network characteristics and latency/bandwidth Jan 29 10:09:12 Hmm - in this instance I'm sure it will be. Jan 29 10:09:18 I've sent an email! ^_^ hah Jan 29 10:09:24 hm why not cpu architecture dashboard on d.android.com Jan 29 10:10:36 osxorgate: because it would be 9X+% ARM, and not changing Jan 29 10:11:07 ok :0 Jan 29 10:11:30 Leeds that moto razr i though, looks good in stats, and amazing battery life Jan 29 10:11:35 intel may do well Jan 29 10:13:15 Leeds: c'mon, give MIPS a chance Jan 29 10:13:27 NEVER! Jan 29 10:22:54 would anyone happen to have a htc one x? Jan 29 10:23:10 balls2thewall: many people do... including me! Jan 29 10:23:31 im getting complaints the location tracking is giving the wrong coords. while google maps doesnt >_> but it works on all other devices Jan 29 10:26:39 balls2thewall : I have an AT&T One X Jan 29 10:28:47 is it badly wrong, or just a bit inaccurate? Jan 29 10:31:07 apparently its showing an old address Jan 29 10:37:45 im wondering is this really an HTC thing or im just lucky on another devices. can anyone with an HTC confirm this story? http://www.berson3.com/b3c/?p=22 Jan 29 10:39:16 balls, indeed Jan 29 11:00:07 anyone using an IOIO with a Nexus 7 over BT ? Jan 29 11:04:39 balls2thewall: possibly he had stale AGPS data from previous place he was in, causing issue in finding sats Jan 29 11:08:04 fragments have getString() to read from resources. generally resources are accessed via a Context, how does a fragment do it? Jan 29 11:13:42 context -> resource manager Jan 29 11:15:42 anyone know why a service would not ubind, even when onStop() is called and unbind is there ? Jan 29 11:35:37 * Zharf cries out in agony Jan 29 11:35:48 170MB apk ;_; Jan 29 11:36:40 err Jan 29 11:36:43 Can anyone recommend a simple, JSON-like DB system for Android? Something like MongoDB or CouchDB, perhaps. Jan 29 11:36:46 what the hell you got in there ? Jan 29 11:37:16 ejcweb whats wrong with sqlite ? Jan 29 11:37:17 StingRay_, it's some stupid ios game we're porting :E Jan 29 11:37:36 well I bet the textures are way too silly Jan 29 11:37:44 or it's a massive game Jan 29 11:37:52 in mobile terms Jan 29 11:38:09 StingRay_: Intrinsically, nothing - but I'm going to be syncing the DB with a server, and so having the data already in a NoSQL JSON format would be handy. Jan 29 11:38:24 Or does everything just use sqlite? Jan 29 11:39:20 ejcweb well I use gson to get sqlite data to json > mysql Jan 29 11:39:29 so not really sure what your question is Jan 29 11:39:38 suppose you could just store it in a file Jan 29 11:39:39 :) Jan 29 11:45:41 heya, been stuck on this for ages now... orientation change causes that camera preview to crash... yet I can't find anything that is a conclusive cause... any ideas? Jan 29 11:46:02 osxorgate: a fragment is inherently attach Jan 29 11:46:29 StingRay_, silly doesn't even begin to cover it Jan 29 11:46:56 Zharf well where is the space going ? Jan 29 11:46:59 textures ? Jan 29 11:47:24 osxorgate: attached* to a fragment Jan 29 11:47:34 osxorgate: the fragment can access the resources through his activity, which subclasses context Jan 29 11:47:44 195MB of assets, 18MB binary Jan 29 11:47:46 :) Jan 29 11:48:00 but I mean how are the assets divided ? Jan 29 11:48:10 geo/level/textures/sound Jan 29 11:48:36 cause there are many options to reduce that if they haven't already Jan 29 11:49:19 Edman: but a fragment can be detached from any activity Jan 29 11:52:44 hi, what do you guys use for doing wireframe/mockups? Jan 29 11:52:56 of what ? Jan 29 11:53:20 UI stuff ? Jan 29 11:53:39 StingRay_, it's a sprite game, there's nothing but textures really Jan 29 11:54:35 well the sounds are insignificant portion of it, but there's no geo or levels Jan 29 11:54:35 Zharf but consider compression, dictionaries/CLUTS, pages, then... or choose a better format for task Jan 29 11:54:47 StingRay_, can't, stuck with this :p Jan 29 11:54:58 retarded client Jan 29 11:55:01 oh Jan 29 11:55:03 gl Jan 29 11:55:05 ;) Jan 29 11:55:31 yeah, ui stuff StingRay_ Jan 29 11:55:53 Hey all! Jan 29 11:56:35 I am having trouble understanding SQLite usage in Android: when using two nested Activities should they use the same database reference, or should every one use its own reference> Jan 29 11:57:07 The SQLiteOpenHelper seems to return the same instance/reference every time. Jan 29 11:58:17 StingRay_, this client basically included assets for each resolution on iOS, and their "support" for various iOS devices was hacked in with a million "isIpad()", "isIPhone5" calls, etc Jan 29 11:58:22 it's just that stupid Jan 29 11:58:35 stork illustrator, photoshop, gimp, even premier and after effects Jan 29 11:58:54 those aren't mockup/wireframe tools though Jan 29 11:59:24 stork wirefram is just a line Jan 29 11:59:28 you can do them in anything Jan 29 11:59:31 pencil then Jan 29 11:59:35 and paper Jan 29 11:59:37 :) Jan 29 11:59:57 I want a tool to do it, so I can make semi-professional looking ones and send them to clients :) Jan 29 12:00:08 oh photoshop then Jan 29 12:00:28 Lachezar, same Jan 29 12:00:36 or any illustration, 2d graphics or dtp package Jan 29 12:00:50 Lachezar, why get a new db for each activity if its the same db? Jan 29 12:02:08 ahhughes_: And what when a background service is managing the database also? Jan 29 12:02:56 i can't imagine how long it would take to do wireframe mockups in photoshop Jan 29 12:03:31 well Im yet to write a service Lachezar but I think thats irrelevent... db connection AFAIK will be per task (which encompasses service or activity granularity). Jan 29 12:03:37 but happy to be shot down Jan 29 12:04:39 folks...does android < 3 supports css animation? Jan 29 12:04:53 i've been having a warm time understand what is going on Jan 29 12:05:28 i like to learn android development, can you reccomend me good book ? Jan 29 12:07:20 stork depends, couple of minutes to endless time Jan 29 12:07:25 KeyboardNotFound: Android tutorials FTW. Jan 29 12:07:27 depends on the individual Jan 29 12:08:32 :/ Jan 29 12:08:36 Lachezar: link please ? Jan 29 12:09:12 KeyboardNotFound: http://developer.android.com/guide/components/index.html Jan 29 12:10:34 KeyboardNotFound: And maybe better off: http://developer.android.com/training/index.html Jan 29 12:11:50 Lachezar: the second link is better from the first :D thank you very much, but i have one more question for all android developers, is there good earnings with android app development ? Jan 29 12:12:38 KeyboardNotFound: I can't know. I do Android development for a living :), I get salary for writing code (Java or Android). Jan 29 12:13:08 KeyboardNotFound: If you're asking if Android apps sell well: that is really, really specific to an application. Jan 29 12:13:59 Lachezar: thank you Jan 29 12:19:18 oh this damn camera preview crash is starting to hurt my brainz Jan 29 12:20:57 ahhughes_ uses something that gets destroyed on config change ? Jan 29 12:21:11 like the layout Jan 29 12:21:26 whats the exception neways ? Jan 29 12:24:58 StingRay_, gimme a sec I will get that... was just coping some files to the phone Jan 29 12:29:46 StingRay_, http://pastie.org/5930265 Jan 29 12:30:41 ahhughes.triangulator.addbearing.Preview.surfaceChanged(CameraPreview.java:325) Jan 29 12:30:41 ahhughes_ looks to me like you dont do much to account for a config change Jan 29 12:31:06 should look to you like I gots me no idea what todo Jan 29 12:33:03 StingRay_, what should I be doing on a config change? Jan 29 12:37:58 dunno not played with camera Jan 29 12:38:10 maybe reinit everything ? Jan 29 12:38:14 release camera ? Jan 29 12:38:26 reattach surface preview ? Jan 29 12:38:40 really dont know Jan 29 12:43:40 yeah me neither Jan 29 12:43:57 Colleagues: How should I proceed to display a grid, in which every cell has a few buttons I need to handle differently? Jan 29 12:44:35 StingRay_, I copied some code verbatim from the android dev guide.. works except for orientation change Jan 29 12:44:53 ahhughes_: Orientation change and camera don't mix well :( Jan 29 12:45:07 if I want to send an SMS and display a progressdialog while it is being sent, do I put that sendingSMS and progressdialog code inside an Asynctask? Jan 29 12:45:15 ahhughes_ like I said things will get nulled and destroyed Jan 29 12:45:21 you will need to deal with that Jan 29 12:45:23 ahhughes_: I know I'm stoopid, but I tend to make all my camera views landscape. Jan 29 12:46:53 Lachezar thats not stupid, that genius, or the world will end like this ---> http://www.youtube.com/watch?v=Bt9zSfinwFA Jan 29 12:47:16 anyone else experienced that eclipse - adt freezes on startup? .. cause i haven't had this before :s Jan 29 12:47:22 ahhughes_: There is a long-standing discussion in the 'ZXing Barcode Scanner' project about making the scanner work in portrait mode. It's not yet solved. Jan 29 12:47:47 lime stuck on workspace message on splash screen ? Jan 29 12:48:20 well, after all that.. i'm in the editing window.. but i just get the little circle-loading-thingie of doom Jan 29 12:48:35 and if i click the window it goes white and tells me i can close the application Jan 29 12:49:18 lime: Regularly... I tend to restart my Eclipse a few times before it starts correctly. Jan 29 12:49:33 alright, i'll try again then Jan 29 12:49:37 or restart my pc Jan 29 12:49:45 lime: Don't restart the PC. Jan 29 12:49:59 but that's go-to solution #1 :) Jan 29 12:50:05 lime: I think caching the code actually helps. Jan 29 12:50:35 lime: Just restart Eclipse: kill it from the Task manager (Windoze), or from a terminal (Loonix). Jan 29 12:50:49 lime: Then start it again. Jan 29 12:51:00 well, tried that a couple of times now Jan 29 12:51:13 but guess i'll check if there's some background processes that didn't quit Jan 29 12:51:24 lime: Hmmm... Last ditch resort: turn off your Internet connection when starting Eclipse :-/ Jan 29 12:51:35 can I force an activity to be ONLY landscape? So I never have to deal with orientation change? Jan 29 12:51:39 turn off my internet? Jan 29 12:51:41 are you mad? Jan 29 12:51:42 :D Jan 29 12:51:42 ahhughes_: Yes: Manifest Jan 29 12:52:20 lime: I know... Just for starting it. I have a gut feeling, that it tries to get something from the Internet, and fails badly. Jan 29 12:52:35 ahhughes_ or in activity itself setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) Jan 29 12:52:55 is it possible to use includes in layout with changing some innter param? like including multiple instances of the same view but change each ones inner image Jan 29 12:53:11 damn typos <_< Jan 29 12:53:14 hmm, seems like it crashes on "DDMS post-create init" Jan 29 12:53:23 balls2thewall no just in xml Jan 29 12:53:39 cause there not instances Jan 29 12:53:44 they are includes Jan 29 12:53:45 :) Jan 29 12:54:23 alright, i'll try kill the connection :s Jan 29 12:54:34 problem solved! or rather... avoided Jan 29 12:54:50 thanks guys Jan 29 12:54:57 :( it would be nice if you could Jan 29 12:55:30 balls2thewall well, all views othe than include are instances Jan 29 12:55:38 so not really a point i dont think Jan 29 12:58:11 hahaaaah, <3 google.. i just had to unplug my phone :) Jan 29 12:59:15 sometimes the most obvious solutions are the hardest to think of Jan 29 13:04:47 lime: Thanks for the tip. I'll be sure to try that next time I get stuck on loading :). Jan 29 13:05:06 you're welcome :) Jan 29 13:05:56 btw, why is it that xml doesn't like hardcoded strings? Jan 29 13:06:41 localization Jan 29 13:06:45 languages Jan 29 13:06:59 not good for an app to have "please confirm" Jan 29 13:07:33 i got the first two lines, but what do you mean with "please confirm" ? Jan 29 13:07:37 however @string/pleaseconfirm that points to a resource Jan 29 13:07:47 means that resource can be language specific Jan 29 13:07:55 ah, ok i see Jan 29 13:08:51 i'm really against all these localization language thingies though.. i see how it's practical for non-english speaking parts of the world Jan 29 13:09:18 but still.. with the danish translations i get on my phone, i'd much rather having it all stay in english Jan 29 13:10:16 lime: rememeber that language is selectable Jan 29 13:10:32 yeah, i know Jan 29 13:10:37 lime: depending on the target audience, it is usually a good idea to localize. but not using automated tools that do not bother with things like context ;) Jan 29 13:10:51 like they've used for the translations in Android itself :\ Jan 29 13:11:05 but i like the main interface to be danish, i don't mind that.. Jan 29 13:11:37 but for example in google play i get all these obvious google-translate translation which would've been much easier to read if they were translated by a machine Jan 29 13:12:00 but i can't pick a language for google play (as far as i can tell) Jan 29 13:12:22 weren't translated by a machine* Jan 29 13:12:45 localization does not improve readability in alot of cases Jan 29 13:13:17 lime: I get data in english, most of the time Jan 29 13:13:25 I just set locale to English UK Jan 29 13:13:36 where did you set this? Jan 29 13:14:02 this is not even really a developer question, sorry.. but i guess i had some bottled up anger :D Jan 29 13:14:30 http://pastebin.com/uMiDgHXy Jan 29 13:14:34 What the actual fuck? Jan 29 13:15:10 sonofra, it seems like you have an error :) Jan 29 13:15:36 ok, sorry, i will stop not-helping.. Jan 29 13:18:42 lime: if apps are badly localized don't install them ;) that's what I do whenever I bother to set my phone to swedish. Jan 29 13:19:20 sonOfRa: bad equals implementation? =) Jan 29 13:19:38 now that sounds wise, äppel ;) Jan 29 13:21:24 alright, on a complete sidenote.. can anyone tell me why this shows absolutely nothing? --> http://pastebin.com/ch9buCHN Jan 29 13:21:51 lime: bad localizations can be a source of fun though like the child game mole-handtralla (don't think they know what handtralla means in swedish) :) Jan 29 13:22:25 now i'm curious.. what is handtralla? :D Jan 29 13:22:36 lime cause your dimensions are all really odd ? Jan 29 13:23:33 stingray, probably :) ..but a have a similar document which i'm c/p'ing from.. which have basically the same setup Jan 29 13:24:00 lime well it should display the text Jan 29 13:24:02 a couple of months away from irc and i've forgotten how to use -completion on nicks :s Jan 29 13:24:21 lime: slang for masturbate.. Jan 29 13:24:42 lime: I have not used irc in 10 years and just now learned the "tab" thing, thanks :) Jan 29 13:24:43 yeah, i thought it was something along those lines appel1 Jan 29 13:24:58 haha, no problem StingRay_ :) Jan 29 13:25:15 lime: 10 years back didnt have that if i recall Jan 29 13:25:16 :) Jan 29 13:25:32 i didn't even know irc existed 10 years ago, so not sure either Jan 29 13:25:41 sonOfRa: Hmmm... Expecting a Date, but getting a String with the date's content? Jan 29 13:25:48 irc was first instance of net communication Jan 29 13:25:51 b4 http Jan 29 13:26:10 lime: I used irc in the mid 90s with tab completion =) Jan 29 13:26:24 alright, appel1 wins :) Jan 29 13:26:26 sonOfRa: Add a check for the class of the element. Jan 29 13:26:27 appel1: really? Jan 29 13:26:37 StingRay_: don't remember what the client was called though Jan 29 13:26:47 appel1: I cant even remember what I used to use Jan 29 13:26:53 StingRay_: irc + mud in high school, good times Jan 29 13:26:54 i was allowed like 30 mins of internet usage/month back in the 90's Jan 29 13:27:03 cause the dial-up was so expensive Jan 29 13:27:28 oh crap, I said 10 years ago, i forget we are in 201x Jan 29 13:27:34 lol Jan 29 13:27:37 maybe I ment 20 years Jan 29 13:27:39 :) Jan 29 13:27:39 my parents got so annoyed that I was hogging their phone they got me a separate line for the modem ;) Jan 29 13:27:52 nice parents :) Jan 29 13:27:59 yup Jan 29 13:28:07 ne1 used to use bulletin board dialins ? Jan 29 13:28:18 nope Jan 29 13:28:20 cause the internet was still shit and small ? Jan 29 13:28:22 appel1: Buy your parents a drink on me... They sound way too cool :) Jan 29 13:28:26 dam I am old then Jan 29 13:28:36 nope. I got more contact with 36bit minis than BBSes Jan 29 13:28:47 unlike most games i play, i actually seem like one of the younger folks around here :D Jan 29 13:28:50 Damn... I itch for some CircleMUD! Jan 29 13:29:06 Waaay good times... Jan 29 13:29:07 StingRay_: used to play a few games on BBSes in the early 90s :) Jan 29 13:29:20 appel1: nice :) Jan 29 13:29:42 enough of these "proving" how old we are, this game has horrid results and winning is bad! Jan 29 13:29:54 I still use Terminal + IIRC just to remember the good old days... Jan 29 13:30:12 StingRay_: till you start regularly getting people confused making them think you're way past 40 while you haven't went past half of the 20s :> Jan 29 13:30:27 passed my 20's Jan 29 13:30:35 although my g/f is 27 Jan 29 13:30:44 so that takes me backwards a few years Jan 29 13:30:46 :) Jan 29 13:31:00 hey, i'm 27 as well.. which means.. i am your g/f :o Jan 29 13:31:07 lol Jan 29 13:31:19 you didn't see that coming :D Jan 29 13:31:26 i feel like I'm in my 40's though Jan 29 13:31:30 Colleagues: I am puzzled: SimpleCursorAdapter has one consttructor deprecated in favour of a LoaderManager, that is not available at the same API level. So no matter what I use: I have warnings and errors :( Jan 29 13:34:20 Lachezar: LoaderManager was introduced in 11, and SimpleCursorAdapter(Context context, int layout, Cursor c, String[] from, int[] to) was deprecated in 11, what am I missing? Jan 29 13:34:48 I'm trying to sync my aosp repo and I keep getting: fatal: not a git repository: ...../mockito.git Jan 29 13:34:54 appel1 a version condition ? Jan 29 13:34:55 any idea how to fix that? Jan 29 13:34:55 :) Jan 29 13:35:34 appel1: I am targeting API 16, but am required to use minimum 5, so I can't use a LoaderManager, but the constructors are deprecated :-/ Loss-loss situation :-/ Jan 29 13:35:45 sorry for replying late, but those are Date objects Jan 29 13:35:59 sonOfRa: Are you sure? Jan 29 13:36:01 yes Jan 29 13:36:39 Lachezar: you could use LoaderManager from the support library instead Jan 29 13:36:52 http://pastebin.com/BwdKt2fX Jan 29 13:37:05 that is the test case I am executing Jan 29 13:37:18 appel1: Oh... Checking... Jan 29 13:37:26 That card I am inserting is the ONLY card that is in the database Jan 29 13:38:38 sonOfRa: There may be differences in the milliseconds. Jan 29 13:38:46 sonOfRa: Date.equals compares milliseconds Jan 29 13:38:53 lol Jan 29 13:38:56 mh, maybe when parsing the date result from the database this occurs Jan 29 13:38:59 that's some shit Jan 29 13:39:07 sonOfRa: Occasionally persistence engines drops milliseconds, and you can't tell the difference :-/ Jan 29 13:39:20 Well, it stores it as varchar internally Jan 29 13:39:30 and I guess I'm dropping millis in my rowmapper Jan 29 13:39:42 sonOfRa: SQLite has no Date/Time. Jan 29 13:39:54 SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Jan 29 13:40:10 Is there something for .millis after ss? Jan 29 13:40:17 sonOfRa: That's OK, but you need to take that into account when comparing. Jan 29 13:40:32 sonOfRa: just change the Date to use the same accuracy in the test Jan 29 13:41:50 sonOfRa: I don't recall DateFormat specification for milliseconds. Jan 29 13:42:04 sonOfRa: Alternatively: store the Date as long milliseconds. Jan 29 13:42:21 sonOfRa: it might be silly, but why don't you use Integer as the datatype and use timestamp in milliseconds? Jan 29 13:42:42 Well, I'm using ORM, and a Date field in the class Jan 29 13:43:07 It's alright if it stores it as Varchar, i just have to adjust the test to reflect this Jan 29 13:43:16 sonOfRa: Commonly that can be solved with a synthetic property of type long that stores/restores the millisecond representation of the date. Jan 29 13:43:18 you could change the date field to long timestamp Jan 29 13:43:20 shouödn't be a problem elsewhere Jan 29 13:43:26 *l Jan 29 13:43:43 and then implement two method to set and get as date Jan 29 13:44:00 it might also be a problem of the ORM you're using... Jan 29 13:44:11 anything can be a problem .:) Jan 29 13:44:43 actually sqlite DATE is stored as NUMERIC Jan 29 13:45:09 so it's probably a issue with the ORM you're using if the schema is using a string to store the date. Jan 29 13:45:28 mh Jan 29 13:45:29 I guess. Jan 29 13:46:10 actually SQLite everything is stored as text-like Jan 29 13:46:49 also true Jan 29 13:47:00 p_l: it depends on which bind function you use when storing the data, bind int vs bind string Jan 29 13:47:12 formated date/time are just string Jan 29 13:47:20 and blobs? Jan 29 13:47:28 clever: it's converted back when you get the data from it, but internally there's afaik only one storage type Jan 29 13:47:39 which works pretty well, though Jan 29 13:47:41 looking at http://www.sqlite.org/datatype3.html section "Affinity Name Examples" Jan 29 13:48:51 and I guess section 1.2 is also relevant. Jan 29 14:00:20 In MainActivity I create AlarmManager that runs another Activity when alarm reaches 0. When the countdown starts I also have NotificationCompat.Builder with setDeleteIntent to open an IntentService. How can I cancel the AlarmManager (stop the countdown) from that IntentService? Jan 29 14:07:24 I've got a service exposed to other applications which share an interface using AIDL. There are synchronous calls but I can also call callbacks in the service clients asynchronously. My question is how I would retrieve the service object e.g. from an activity to send asynchronous events to the clients Jan 29 14:20:48 i have an edittext that i want to set a different background for when disabled/enabled. i've created a statelist selector in xml and set it to that. android ignores it. any ideas? Jan 29 14:21:36 set what to it ? Jan 29 14:21:50 my statelist is http://pastebin.com/VLsLAScj Jan 29 14:21:51 or rather, what is "it" <--- the thing you have set Jan 29 14:22:12 android:background="@drawable/autoreply_textfield_statelist" Jan 29 14:22:18 i've done this with numerous buttons without problem Jan 29 14:22:25 it's just this edittext Jan 29 14:22:55 curiously the eclipse layout preview behaves as expected if i toggle android:enabled in the xml Jan 29 14:23:34 but with setEnabled() on the edittext in code it always shows in the disabled state (more specifically the disabled background - the edittext functionality itself does match the enabled state) Jan 29 14:29:08 i've eliminated pretty much everything except eclipse letting something go stale Jan 29 14:34:58 Is my question understandable? :) Jan 29 14:36:02 ugh. yes, it was eclipse letting the resources go stale. full clean fixed it. Jan 29 14:36:33 broadcast rubber duck programming, yay Jan 29 14:37:16 In MainActivity I create AlarmManager that runs another Activity when alarm reaches 0. When the countdown starts I also have NotificationCompat.Builder with setDeleteIntent to open an IntentService. How can I cancel the AlarmManager (stop the countdown) from that IntentService? Jan 29 14:37:18 Quacked: i joined to ask my question so i don't see yours but feel free to retype it in case i can help Jan 29 14:37:25 :) Jan 29 14:39:17 Quacked: i've not cancelled an alarm before but it looks like you want public void cancel (PendingIntent operation) on AlarmManager Jan 29 14:40:09 But I don't see how I can do that inside the IntentService created when notification is clicked on/removed Jan 29 14:40:37 the pending intent for the cancelleation action causes your service startService method to be called, right? Jan 29 14:41:03 yeah, Intent resultIntent = new Intent(this, MyService.class) Jan 29 14:41:10 so you pick up on the cancellation via its call to startService, and in that you do AlarmManager.cancel Jan 29 14:41:57 you can put some extras in the intent and check for them in onStartCommand to detect if it is called due to notification cancellation Jan 29 14:42:31 yes, but what do I put into putExtra? Jan 29 14:43:17 then call AlarmManager.cancel - it says intent equality for the purposes of cancellation is determined by Intent.filterEquals Jan 29 14:43:30 anything you like in putExtra, just something that you know to look for Jan 29 14:44:55 uhm Jan 29 14:47:11 e.g. new Intent(context, serviceClassName).putExtra("isAlarmCancellation", true) Jan 29 14:47:35 thats for the cancellation action Jan 29 14:48:25 a separate intent for the cancellation action? Jan 29 14:48:56 no Jan 29 14:49:02 then in onStartCommand something like if(intent != null && intent.hasExtra("isAlarmCancellation")) {AlarmManager.cancel(intentThatIsConsideredEqualToTheAlarmIntent)} Jan 29 14:50:19 that all said if all you want to do is cancel the alarm you might find it cleaner to do it in a separator broadcast reciever as opposed to via your service (which i presume already exists and is primarily meant for other things) Jan 29 14:50:41 no, the IntentService is only for cancelling the alarm Jan 29 14:51:04 oh, IntentService. i missed that bit, i assumed a standard service Jan 29 14:51:15 not sure what the differences are, i've never needed intentservice Jan 29 14:51:28 How to detect that a client unbinded a service? My service stores data per client connection and I'd like to make sure to cleanup the data structures Jan 29 14:51:33 I don't know, I can try with Service instead Jan 29 14:52:28 ugh Jan 29 14:52:30 just looked Jan 29 14:52:33 IntentService is fine Jan 29 14:52:44 just put what i said into onHandleIntent Jan 29 14:53:00 not onStartCommand Jan 29 14:53:40 right Jan 29 14:53:47 But what about "intentThatIsConsideredEqualToTheAlarmIntent", hehe Jan 29 14:54:26 i think a service/intentservice is overkill given you're not using it for anything else Jan 29 14:54:35 i'd use a broadcastreciever instead Jan 29 14:55:02 I just figured I needed a service instead of activity since I don't want any Activity popping up Jan 29 14:56:04 are you able to help me using a broadcastreceiver? Jan 29 14:57:35 which bit are you stuck with? Jan 29 14:58:54 your starting point is to use PendingIntent.getBroadcast() instead of PendingIntent.getService() as your notitifaction cancellation action Jan 29 15:00:03 pleed when you use a binder you get onBind, onUnbind Jan 29 15:00:17 dhpiggott: but simply public class MyBroadCastReceiver extends BroadcastReceiver ? Jan 29 15:01:31 Quacked: yep, don't forget to declare it in the manifest Jan 29 15:01:52 I just found it in Eclipse Jan 29 15:02:05 So it declares automatically :) Jan 29 15:04:25 Ok then, so now I use you code in my broadcastreceiver instead Jan 29 15:05:56 yep. are you setting the action or component of the intent that is given to the PendingIntent builder? Jan 29 15:08:31 question about manifest and intent-filter... do we need to use in every activity intent-filter... i know we have to use it with activity which we want first to start but what with other... i tried without intent-filter for other activities and all work so just want to know is it better to put it just in case or...? Jan 29 15:09:20 dhpiggott: here's my MainActivity if it helps: http://pastebin.com/0DyFcFZC Jan 29 15:12:30 I'm suspecting I'm doing the putExtra on the wrong Intent Jan 29 15:13:14 dhpiggott: does it make sense? :P Jan 29 15:13:54 nicole24: unless you have a specific reason for doing so, no, you don't need intent filters on all your activities - typically just the launcher activity Jan 29 15:15:08 dhpiggott thx, i tried now to clear from "Preference" activity too and it did not work but for other "normal" activity it works without intent-filter... Jan 29 15:16:41 Quacked: mostly, but given that the broadcast receiver is there solely for cancelling the alarm, it'd be better code style to not bother passing it arguments via the extras Jan 29 15:17:13 hehe Jan 29 15:17:15 Ok Jan 29 15:17:18 What do you suggest? Jan 29 15:17:29 just get rid of the extra entirely Jan 29 15:17:36 Yeah Jan 29 15:17:44 you know when that intents onReceive method is called that you want to cancel the alarm Jan 29 15:18:35 Ah, yes, of course Jan 29 15:19:14 you could of course call it by an intent action string rather than its explicit component (and i would tend toward doing that) and then check the action in onreceive Jan 29 15:19:22 you'd need to declare that in its manifest filter Jan 29 15:19:47 mostly swings and roundabouts for these purposes though, i think Jan 29 15:20:00 nicole24: can you define "it did not work" a bit more precisely? Jan 29 15:20:18 btw, I WAS thinking of having different actions for whether the user clears the notification or simply clicks on it. Jan 29 15:21:02 But I guess that's just creating another intent Jan 29 15:22:03 So, what do I declare in manifest? Jan 29 15:23:43 dhpiggott i now examine differences and i guess its this part for sure... for most of activities i use this Intent intnt = new Intent(Class1.this, Class2.class); and then i dont need intent-filter... for some i use Intent intnt = new Intent("com.android.CLASS2"); and then i need intent-filter... am i right :D Jan 29 15:24:04 and what do I now need in MyReceiver to cancel the alarm :) Jan 29 15:33:22 dhpiggott: still here? Jan 29 15:53:01 nicole24: Is that a typo or do you seriously omit the 'e' in the variable name? Jan 29 15:53:38 That might have sounded rude, I am just wondering ;) Jan 29 16:02:19 hello, can anyone help me identify this layout please? http://i.imm.io/UvFJ.jpeg Jan 29 16:02:48 erm, both the same Jan 29 16:03:03 kakazza i seriously omit... Jan 29 16:03:17 or optionally both the same OR linear layout with RelativeLayouts Jan 29 16:03:27 Any limit on SoundPool's file length? Jan 29 16:03:28 or even gridView / listView Jan 29 16:03:58 nicole24: sick! :p Jan 29 16:04:02 loin: i think you can do that many different ways Jan 29 16:04:34 StingRay_, i want the space to be divided by how many elements it has and center it in that space Jan 29 16:05:01 then look into layout:weight Jan 29 16:05:05 StingRay_, in case it isn't obvious from there Jan 29 16:05:47 StingRay_, i want to have elements added in dynamically Jan 29 16:06:11 ok, then look into layout.params.weight :) Jan 29 16:07:17 or rather layoutParams.weight Jan 29 16:07:20 :) Jan 29 16:07:25 When receiving a broadcast, is it ok to do network & db operations that may take a while? Jan 29 16:07:32 in the onReceive method Jan 29 16:07:51 StingRay_, isn't weight for distributing space when you want uneven space? Jan 29 16:08:09 loin yep Jan 29 16:08:17 but i want even space Jan 29 16:08:21 and if there all of the same value ???? Jan 29 16:08:28 :) Jan 29 16:08:52 space gets divided equal Jan 29 16:09:12 Hi, does anyone here use Blender for 3D modelling? Jan 29 16:09:23 Da_Rhyno GOD YES!! Jan 29 16:09:30 16 years in VFX Jan 29 16:09:33 StingRay_, i'll try that now Jan 29 16:09:33 StingRay - do you do any coding in it? Jan 29 16:09:36 :) Jan 29 16:09:37 and I'm a Maya instructor Jan 29 16:09:40 Sweet! Jan 29 16:09:43 for autodesk Jan 29 16:09:54 Cool! Jan 29 16:09:57 20+ console games! Jan 29 16:10:00 Blender python coding? Jan 29 16:10:07 20+ tv/film effects Jan 29 16:10:10 I'm running into a wall with an exporter I'm trying to write Jan 29 16:10:15 not blender no Jan 29 16:10:19 For my android/PC game Jan 29 16:10:21 Dang. Jan 29 16:10:23 x_x Jan 29 16:10:26 but python maya yeah Jan 29 16:10:34 whats the prob ? Jan 29 16:10:50 I'm trying to figure out the bone layout in Blender Jan 29 16:10:57 the docs for it are literally crap Jan 29 16:11:06 explain "layout" Jan 29 16:11:16 Well, I know there's two kinds of bones: Jan 29 16:11:23 and tbh, calling them bones is wrong Jan 29 16:11:36 rest bones, the bones in edit mode which you place when making the model Jan 29 16:11:37 but thats probably the docs fault Jan 29 16:11:51 and pose bones, which are representative of the poses they are at Jan 29 16:11:55 What would you use? Matrices? Jan 29 16:12:18 na Jan 29 16:12:19 joint Jan 29 16:12:29 since they are normalized point vectors Jan 29 16:12:29 Ah Jan 29 16:12:38 not with any real physical lenght Jan 29 16:12:42 Good point Jan 29 16:12:45 neways Jan 29 16:12:52 Anyways... Jan 29 16:13:09 The issue I'm having is trying to figure out what the different matrices do Jan 29 16:13:15 how they're all connected Jan 29 16:13:29 well in maya Jan 29 16:13:36 I would ident the root joing Jan 29 16:13:39 ooops Jan 29 16:13:40 joint Jan 29 16:13:43 Someone told me yesterday that posebone.matrix = editbone.matrix * a transform matrix Jan 29 16:13:46 Right Jan 29 16:14:20 see not sure there are 2 kinds of bones in there, unless your using quite a complex animation rig Jan 29 16:14:34 No, this is the standard for animation in blender Jan 29 16:14:34 with like I/K F/K and bound joints Jan 29 16:14:42 very odd then Jan 29 16:14:45 Yeah Jan 29 16:14:50 And it's confusing as hell. Jan 29 16:14:59 drop box the file Jan 29 16:15:04 interested to see now Jan 29 16:15:12 what file? Jan 29 16:15:23 your analyzing a file ? Jan 29 16:15:37 for export ? Jan 29 16:15:53 Nope... I was analyzing the model itself in the python console Jan 29 16:15:54 But sure Jan 29 16:16:01 Let me give you a tutorial I was using Jan 29 16:16:04 ok Jan 29 16:16:10 I'm just interested now Jan 29 16:16:11 Maybe you can help me make sense of it Jan 29 16:16:16 cause it sounds dense! Jan 29 16:16:19 * StingRay_ downloads ...ewww..... blender Jan 29 16:16:29 lol xD Jan 29 16:16:30 http://graemehill.ca/exporting-armature-animation-with-the-blender-25-python-api Jan 29 16:16:44 If anim8or works for this in the future, I might just export my models to it Jan 29 16:16:52 write an exporter for the bones in that. Jan 29 16:16:58 and do animation in that Jan 29 16:17:23 the advantage that maya has is that you get by default an ASCII scene Jan 29 16:17:26 really easy to read Jan 29 16:17:27 :) Jan 29 16:17:53 hey StingRay_ you were absolutely right Jan 29 16:17:57 ok now i get it Jan 29 16:18:02 Why isn't my BroadcastReceiver cancelling my alarm here? http://pastebin.com/8UvUNq87 Jan 29 16:19:19 pose bones = reset position Jan 29 16:19:34 so like a nullification of matrix for a start point Jan 29 16:19:51 so essentially local space re-set to zero Jan 29 16:19:57 also quite dense Jan 29 16:19:58 :) Jan 29 16:20:23 Quacked: I'd guess the pending intent you make when you set the timer isn't matching the one you make later Jan 29 16:20:37 Quacked: if they're both in the same class, keep your pending intent in a class variable and use it to cancel Jan 29 16:20:47 StingRay_ - sorry, I'm still a bit lost Jan 29 16:21:05 Da_Rhyno well in animation you have an td construct a skeleton Jan 29 16:21:17 StingRay_, thank you for the excellent support :) Jan 29 16:21:18 to do this he freely creates it every wich way Jan 29 16:21:34 right Jan 29 16:21:38 so each joint has world orientation Jan 29 16:21:47 dragorn: they're not in the same class Jan 29 16:21:47 which is based on world coordinates Jan 29 16:21:49 right? Jan 29 16:21:52 ok Jan 29 16:22:10 but then you can freeze trans matrix Jan 29 16:22:20 this sets all local to 0 Jan 29 16:22:34 Quacked: well, I don't know offhand if 2 pending intents created w the same parameters are considered equal; if they are, you have to make them the same way - one is made using random, the other a fixed number. If they're not, you have a problem to figure out. Jan 29 16:22:39 and can, by the looks of it set world to 0 in blender Jan 29 16:22:46 which is dense Jan 29 16:23:02 anything away from this position is a pose Jan 29 16:23:21 but it seems the pose is relative to the froozen positions Jan 29 16:23:36 like I say a bit dense, but want to know an easier way ? Jan 29 16:23:43 Sure Jan 29 16:24:00 since a bone is actually just a joint Jan 29 16:24:15 and depending on how blender deals with joint rotation Jan 29 16:24:25 normally just a point offset Jan 29 16:24:37 you could get the joint world positions Jan 29 16:24:42 dragorn: but I'm having a hard time figuring it out since AlarmManager creates one Intent with an Activity popup when countdown reaches 0. At the same time, the Intent that triggers the BroadcastReceiver is a NotificationCompat. So in the BroadcastReceiver I want to cancel the Alarm from the MainActivity. Jan 29 16:24:47 and work it out yourself quite easy Jan 29 16:25:16 And it would be relative to the parent joint, right? Jan 29 16:25:20 no Jan 29 16:25:25 I would do it world Jan 29 16:25:33 Quacked: the only way AM knows to cancel something is if you give it the same intent. If the thing you tell to cancel isn't equivalent to the thing you scheduled, it can't cancel it Jan 29 16:25:33 ugh Jan 29 16:25:36 depends on context Jan 29 16:25:41 whats it for ? Jan 29 16:25:44 character ? Jan 29 16:25:47 biped ? Jan 29 16:25:48 Mind if I we continue this in message? Jan 29 16:26:00 sure Jan 29 16:26:01 (and what sort of animation..) Jan 29 16:26:01 Quacked: so you have to either pass the pending intent you scheduled to your bcast receiver, or make the same intent again. I don't know if the latter is possible. Jan 29 16:26:08 then I'm not spamming channel Jan 29 16:26:10 :) Jan 29 16:26:11 like.. would you make hand anims relative to world? Jan 29 16:26:21 It's for character Jan 29 16:26:35 Honestly, I'm very new at these different coordinate systems Jan 29 16:26:38 so I'm very confused Jan 29 16:26:54 dragorn: I'm trying to do the latter because I think I've seen examples of it Jan 29 16:28:21 Quacked: well, you have to make the exact same intent - in one you make one using random, in the other, a fixed number Jan 29 16:29:03 Question, is it a good idea to keep a connection to the Google Play store open in a singleton? I'm trying to wrap my head around in-app billing and I'm sure what the best approach is for multiple activities. Jan 29 16:29:14 I'm not sure* Jan 29 16:30:55 dragorn: yes, I set line 11 to 12345 after the pastebin Jan 29 16:31:44 Still doesn't work, so I must have done something else wrong :) Jan 29 16:36:43 dragorn: do you see something else thats wrong? Jan 29 17:03:09 Does anyone here have experience with iabHelper? Jan 29 17:09:47 HI guys, i wanna now more about the process of the verification on a ROM during install, where can i find information ? What prevents any ROM to be installed on any Phone ? I assume there must be a sort of key, but for example if I want to build a ROM for my phone, where can I find this key ? Jan 29 17:21:56 You can't find that key Jan 29 17:22:04 That's the point of signing roms Jan 29 17:23:12 Hey, does anyone know a freenode room where people complain about stupid startup things they hear... Jan 29 17:23:54 Like Oh i have this great smartphone app idea. You do all the work and I'll take 50 percent... But its going to make a billion dollars so you will get paid in equity Jan 29 17:24:30 SimonVT, right, the ROM has to be signed with a key that somehow is in the device ? Jan 29 17:25:27 hello all Jan 29 17:26:02 hi SimonVT Jan 29 17:26:06 Got the next build of To Do Mapr ready for deployment in the next few days. Check out the screenshots: https://twitter.com/todomapr Jan 29 17:26:16 H3bus: https://android.googlesource.com/platform/bootable/recovery/+/master Jan 29 17:26:24 lot more work ahead, there are some activities/UI components we're not happy with, well a lot actually but working on it :) Jan 29 17:41:51 How do you implement in-app billing for multiple activities? Jan 29 17:42:43 what does IAB have to do with an activity at all Jan 29 17:43:26 IabHelper is the class (from a bundle of code) that Google provides to act as a helper for setting up in-app billing. Jan 29 17:44:12 The initial setup of the IabHelper object needs a context passed as a parameter, ie. an activity's context. Jan 29 17:44:43 Well, a context and an app license key. Jan 29 17:45:23 canadiancow: Am I going about this all wrong? Jan 29 17:47:20 Context != Activity Jan 29 17:48:10 Btw I need to add foreign keys to tables . should I just create one migration create_relations for all of foreign keys / creating tables for N:N etc or should I split them per each table? Jan 29 17:48:57 OK, but while in an activity, to initialize the IabHelper I have passed the parameter "this". Then "this" does not refer to the activity itself, but it's context? Jan 29 17:51:25 no, "this" in an Activity refers to the Activity Jan 29 17:51:38 That was my understanding. Jan 29 17:51:46 That's where I got confused I guess. Jan 29 17:52:18 Activity = Context Jan 29 17:52:23 But Context != Activity Jan 29 17:52:28 ya I was about to say Jan 29 17:52:34 Ya I understand. Jan 29 17:54:18 So do you have any advice on how I can do in-app purchasing for multiple activities? Or do I just have to copy/paste the code to each activity in order for it to work. Currently I have one activity that can query inventory and start a purchase "flow". What do I do to get this to work on the next actiivty? Jan 29 17:56:54 hello all. I've got an android application. The main activity relies on a superclass that's from a library. It builds fine and Eclipse doesn't give any fuss, but when I try to run it it says that it's unable to resolve the main activity's superclass, and dies with a class not found exception. Any ideas of how I should go about debugging it? The superclass of the main activity is there in Jan 29 17:56:54 the library .jar as a .class. Jan 29 17:57:14 I've tried to create a singleton class that holds an IabHelper, but I run into errors when initializing the helper with a context because I will be in a different context if I initialize within the firs activity but try to use it in the second. Jan 29 17:57:47 jdawes: http://www.levinotik.com/2011/10/12/demystifying-context-in-android/ <-- might help you better understand Context Jan 29 17:57:49 MercuryTW: is it in your libs/ folder? Jan 29 17:58:02 MercuryTW: I seem to recall that it pretty much needs to be in there to work Jan 29 17:59:06 QubeZ: thanks, reading. Jan 29 18:00:39 excuse me my network is awful Jan 29 18:00:44 did I miss anything? Jan 29 18:05:40 MercuryTW, nope Jan 29 18:06:21 Qubez: the article was helpful for my overall understanding but I still don't know what I'm doing with this in-app billing stuff. I'm just going to resort to testing out my guesses. Jan 29 18:08:43 Qubez, Today you became a habit Jan 29 18:09:12 ? Jan 29 18:09:25 haxor Jan 29 18:09:41 I'm not following Jan 29 18:09:48 stupid spell check! Jan 29 18:10:16 hehe ya it'll get ya Jan 29 18:10:25 hacker. It was meant to be funny. Jan 29 18:10:42 ok =) Jan 29 18:11:27 How do I set up a layoutparams for a subview of a relativelayout or framelayout so that a view will be centered at a given X,Y coordinate when I don't know the exact size of the subview? Jan 29 18:11:49 It's easy if I know the top left coordinate, I can just specify margins. Jan 29 18:12:59 The X,Y coordinate in my case is being obtained from the cooridnates of another object on screen... so different device resolutions are not an issue. Jan 29 18:13:55 hello there. I have a Dialog with an EditText in it. When the dialog opens de soft keyboard pops up, but if i cancel the dialog the focus goes to another edittext i have in my layout and the keyboard stays open Jan 29 18:14:08 i tried forcing the keyboard to hide on the dialog's onCancel but it doesn't work Jan 29 18:14:12 any ideas? Jan 29 18:18:16 if you make an app with no theme set, running on 4.2, what color is the defualt text color Jan 29 18:18:18 is it c4c4c4? Jan 29 18:20:11 Maybe Jan 29 18:23:46 Does anyone know how can I can set up the layoutparams so that a view (whose size I do not know) is centered at a certain x,y coordinate? Jan 29 18:27:07 MarkT how would you not know the size ? Jan 29 18:28:03 but you could just use relative layout params center_in_parent Jan 29 18:28:14 because it is specified as WRAP_CONTENT. Jan 29 18:28:42 hello, anyone have any idea where I can get the xperia play original system files? i tried looking for them and couldn't find any of them Jan 29 18:30:46 And I don't want it centered in the entire parent.... I want it centered at a particular point on screen (which will always be on the screen, screen resolution has already been accounted for elsewhere in the code) Jan 29 18:31:48 MarkT measure the view one "onLayout" and set Jan 29 18:32:32 I noticed with ExpandableListViews, if you have a few views expanded and they have a lot of child rows then the fast-scroll thumb doesn't properly calculate the size for scrolling -- e.g., the last 30% or so of the scrollbar is unused Jan 29 18:32:34 * pragma- tsks. Jan 29 18:34:05 hmmm.... I just had an idea.... Jan 29 18:34:15 hello? Jan 29 18:34:19 crash bandicoot apk? Jan 29 18:34:27 ArmyMan007: you can get them not here Jan 29 18:35:13 could I create a view of fixed size, that I know will be bigger than my wrap_content view, and center it at that location, then put the other view inside of it? Jan 29 18:35:17 evanc, can you give me a link? Jan 29 18:35:49 I'd just need to make sure that this fixed size view doesn't capture any touches or events... Jan 29 18:36:08 MarkT yeah could do, or you can measure it onLayout :) Jan 29 18:36:26 using a custom view Jan 29 18:36:37 what is it ? Jan 29 18:36:40 an image ? Jan 29 18:37:03 ArmyMan007: no. I'm trying to politely tell you to piss off. Jan 29 18:37:26 evanc: there is a thing as too polite :) Jan 29 18:37:27 ArmyMan007: that's not something that should be asked in #android or #android-dev Jan 29 18:40:40 can I set the style of a view programmatically? Jan 29 18:41:06 that is, a resource in styles.xml, rather than manually calling view.setText(), etc Jan 29 18:41:30 somethings yeah, others no Jan 29 18:41:37 i think Jan 29 18:41:46 If you have questions about some of Google's training pages, where do you send the questions? Jan 29 18:41:47 iirc Jan 29 18:41:47 StingRay_, it will just be background and text color Jan 29 18:42:04 well i think I did that ages ago Jan 29 18:42:09 using attributeSet Jan 29 18:42:13 but wasn't worth it Jan 29 18:42:23 and there were some things I could not set Jan 29 18:42:32 <-- bad memory at mo.... tired Jan 29 18:46:59 Hi if I made an app for $1 and it had mp3 decoding/encoding would I have to pay $2 for each app sold? Jan 29 18:47:25 https://gist.github.com/4661342 <<< go home git, you are drunk Jan 29 18:47:37 .. wow .. lot of people .. Jan 29 18:48:22 hi, new here, just trying it first time Jan 29 18:48:38 Miesco: that's up to your negotiations with whoever owns the IP for MP3 encoding/decoding, presumably? Jan 29 18:49:29 tophyr: git can't know that whitespace doesn't matter :-/ Jan 29 18:49:37 evanc: http://mp3licensing.com/royalty/software.html says I have to though, I dont know how it works Jan 29 18:50:31 popped here hoping to find an answer to this question, "Can Google Play APIs" be used from a Windows CPP application ? I mean is any way to call the Google Play/Billing APIs from a C++ program ? Jan 29 18:51:06 Miesco: you'll have to talk to them, sadly. I've never heard of anyone doing such a thing, but that doesn't mean that everyone else is playing by the rules Jan 29 18:51:40 GilesGoat_: you could probably reverse-engineer it, but it's almost certainly a) against TOS, and b) a bad idea Jan 29 18:52:12 So no body knows how to implement in-app purchases when you want to make purchase queries or start purchase flows from multiple activities? Jan 29 18:52:28 evanc: I had the impression it's a DLL, so I suppose you could call just the APIs even from CPP, problem is I have a purely CPP application I'd love to use Google Play to handle some IAP Jan 29 18:52:32 I'm sorry for being a broken record, I'm just frustrated. Jan 29 18:52:54 jdawes: have you Googled your ass off? Jan 29 18:53:12 essentially, how much research time have you put into this? Jan 29 18:53:21 There isn't much about in-app billing in general and I haven't found anything on making queries etc. from more than one activity Jan 29 18:53:39 half of yesterday and all of today, not too much yet. Jan 29 18:54:02 I'm just starting to re-read on developer.android.com to see what I can find out. Jan 29 18:54:09 GilesGoat_: why would an android library be a DLL? Jan 29 18:54:12 I'm just poking this channel to see if I can get a quicker answer. Jan 29 18:54:30 jdawes: why would it ever not work from multiple activities? Jan 29 18:54:51 evanc, I had some quick read of stuff around the "C# and Google PLay" documentation, I got the impression that thing is a DLL Jan 29 18:55:08 GilesGoat_: got a link? I've never seen such a thign Jan 29 18:55:16 evanc: let me find it Jan 29 18:56:21 So I've subclassed SimpleCursorAdapter and I'm overriding getView. What I'm trying to accomplish is to change the colors of an item in a ListView depending on the contents of that item Jan 29 18:56:48 I'm sorta confused, what do I need to do within getView? Jan 29 18:56:58 evanc: Well there is a class called IabHelper, in order to connect to the Play store you need to "startSetup" with a context and an app license key. This is from one activity. You also have to write a couple listeners that are about 30 lines each, and since I have about 12 app purchases (level packs) there are a couple other methods to change and check for purchased material. I don't konw how to do the query if I've switch Jan 29 18:57:54 any reason you can't do it from the Application and make it a singleton? Jan 29 18:58:12 What do you mean do it from the Application, exactly? Jan 29 18:58:43 jdawes: http://developer.android.com/reference/android/app/Application.html Jan 29 18:58:47 Hello. I have so problems vonerting a File String to a Uri. I am getting a "not a file uri" error ... why i am getting this kind of error? Jan 29 18:58:59 jdawes: note: I've never done IAB Jan 29 18:59:07 Fair enough. Jan 29 18:59:24 Styler2go: pastebin your code for doing the conversion, please Jan 29 19:00:01 hey all Jan 29 19:00:16 i need sone help please Jan 29 19:00:38 evanc: touche, guess there could have been tab/space differences Jan 29 19:00:49 bet i could put in my merge options to ignore whitespace Jan 29 19:00:51 I have done a program that receive data via bluetooth and send at the same time Jan 29 19:01:04 tophyr: yeah, or it could be a language where whitespace matters Jan 29 19:01:06 the problem is that im able to send Jan 29 19:01:13 It it possible for a button to give parameters to a function when it is pressed? Jan 29 19:01:13 http://pastebin.com/NBTZ4X6X Jan 29 19:01:21 but not receiving any data Jan 29 19:01:41 xyz87: please form a single chorent question instead of randomly pressing whenever you take a breath :) Jan 29 19:02:37 urlUri.setScheme("file"); Jan 29 19:02:44 evanc: I think I lost the link to the "wiki" but here is one : https://developers.google.com/android-publisher/libraries?hl=en Jan 29 19:02:45 GilesGoat_: i too am curious why the google play store library would be a .dll, as opposed to a .jar Jan 29 19:02:57 ok Jan 29 19:03:02 and, answered Jan 29 19:03:17 GilesGoat_: oh are you talking about doing e.g. server-side verification? Jan 29 19:03:30 dou you mena: urlUri.scheme("file"); ? Jan 29 19:03:46 GilesGoat_: if so, that should be valid and supported for CPP applications. I thought you were making a CPP desktop app and trying to add Google Play in-app purchases Jan 29 19:03:55 Styler2go: yeah Jan 29 19:04:03 lets try it.. :) Jan 29 19:04:13 I have done a program that should receive data when someone send data and send data also at a time via bluetooth the problem is that i am able to send but the program is receiving nothing Jan 29 19:04:30 GilesGoat_: it looks like that C# library is hosted as source - why not just download it and modify it to be exportable to COM so you can use it with regular non-.NET C++? Jan 29 19:04:31 evanc: Thanks! Jan 29 19:06:19 evanc: here -> http://code.google.com/p/google-checkout-dotnet-sample-code/wiki/FAQ Jan 29 19:07:02 tophyr: I'll have a look into that , I was just wondering if maybe someone here "already done it" and knew just "yes it can be done" or "nope" :) Jan 29 19:07:20 ah :) Jan 29 19:08:13 tophyr: I am just right now learning to use all that on android, I am trying to make that "trivial drive" sample work, I kinda managed it but I still need to sort out the Checkout account or I cannot create IAP Jan 29 19:08:35 why do you need (EditText) here? EditText editText = (EditText) findViewById(R.id.edit_message) Jan 29 19:08:47 is android a decent platform to learn OpenGL? Jan 29 19:09:16 I've made an attempt before using OpenGL on linux and I was clueless Jan 29 19:09:33 spetsnoz: to case the view to a specific type of view i.e. EditText Jan 29 19:09:35 so many packages that accomplish the same thing. I'm pretty sure I was using glut Jan 29 19:09:51 yes, there is a lot of info on getting OGL working in android Jan 29 19:10:27 ah another "silly question" :) this is a thing making me NUTS since some weeks, I have a "ListView" control, I used it just to "display" items I don't want them to be selected so I made "IsEnabled() return false all time" .. all works .. BUT .. I set the items background to "Black" .. there are still " a couple of line of pixels in white" coming out .. Tried EVERYTHING I can't make those "two lines of pixels" disappear :) Jan 29 19:10:28 will I need to venture into NDK-land? Jan 29 19:10:31 Qubez, yes but what if i didnt put it there? isnt whats being returned already going inside an EditText variable? Jan 29 19:10:48 ??? Jan 29 19:12:06 I have done a program that should receive data when someone send data and send data also at a time via bluetooth the problem is that i am able to send but the program is receiving nothing ???? any help Jan 29 19:12:11 RustyShackleford: uh, "yes" Jan 29 19:12:22 xyz87: post something on stackoverflow? Jan 29 19:12:40 ok Jan 29 19:12:43 spetsnoz: I dont think you need to explictly do the cast since you are getting a View back anyway but its a best practice Jan 29 19:12:44 what is that Jan 29 19:12:48 RustyShackleford: Android provides wrappers around all of the GLES 1.0/1.1/2.0 code, so it's capable Jan 29 19:12:55 whether it's the "best" platform for it, I don't know Jan 29 19:12:58 ok Jan 29 19:13:13 You can definitely build off of the GL demo apps, to get a feel for what's going on Jan 29 19:13:16 anyway thanks, I think I'll return back to experiment with Google Services, at least seems "there's some hope" for what I'd hope to do on windows Jan 29 19:13:54 RustyShackleford: have a look at those GL Demos/Samples, it's the way to start Jan 29 19:14:11 RustyShackleford: I don't know about Java, but I can tell you OpenGL works perfectly from the NKD ;) Jan 29 19:14:42 i have same code of this Jan 29 19:14:44 http://stackoverflow.com/questions/10568202/android-bluetooth-inputstream-read-never-receiving-data Jan 29 19:14:59 * GilesGoat_ waves and goes back to experiment with stuff Jan 29 19:15:00 spetsnoz: http://biginteger.blogspot.com/2011/04/better-findviewbyid-that-doesnt-require.html Jan 29 19:16:19 Unrelated, but how feasible is this idea for an app? You plug your phone into your desktop/laptop and then text using your computer. Jan 29 19:16:37 I think that's been done Jan 29 19:16:57 has it? I know the iPhone does soemthing like this Jan 29 19:17:12 but I think it uses the iCloud rather than a physical connection to your computer Jan 29 19:17:48 why should I have to plug in my phone? Jan 29 19:17:58 why couldn't I just use e.g. desksms.appspot.com? Jan 29 19:19:58 evanc, sends all your texts through the web? Jan 29 19:20:16 yeah, that really is much more convenient Jan 29 19:20:30 well fuck. I won't make that app I guess Jan 29 19:25:07 Good job, evanc .. you just ruined his idea ;/ Jan 29 19:25:35 there are about 6 apps now that do that Jan 29 19:25:52 I know cause it was/is/ in my app features list Jan 29 19:25:53 http://english.cxem.net/arduino/arduino5.php this is the same code of my program under Android - transmit and receive data to the Arduino title but no success in receiving data any help plz Jan 29 19:27:47 Why isn't my BroadcastReceiver cancelling my alarm here? http://pastebin.com/uSPWkFky Jan 29 19:28:17 Guys i have one more question, i have created all Images for my Design in xhdpi, do you gyus know any programm or maybe photshop batch process to automatically create the images for the other densities? Jan 29 19:28:42 Styler2go photoshop Jan 29 19:28:53 Quacked: what is random? Jan 29 19:28:56 manually or is ther ean automatic way? Jan 29 19:29:00 there* Jan 29 19:29:06 Styler2go: see imagemagick Jan 29 19:29:17 Styler2go well once manual, then the rest of the images batch Jan 29 19:29:22 as in record an ACTION Jan 29 19:29:31 ?????????????????????????? Jan 29 19:29:35 and replace action sets with relative conditions Jan 29 19:29:43 like size from px to % Jan 29 19:29:43 ah yes.. this would be a solution... Jan 29 19:29:54 Quacked: nicely spotted. Supposed to be 12345. Jan 29 19:30:01 is imagemagick easier? i am ot that good at console applicaitons Jan 29 19:30:09 no BUT Jan 29 19:30:17 xnview is even easier Jan 29 19:30:17 I find it easier Jan 29 19:30:41 problem is filtering and/or resize method Jan 29 19:30:51 do you have a script for that or you could help ma a bit? Jan 29 19:31:04 for what ? Jan 29 19:31:11 xnview ? Jan 29 19:31:14 or ps ? Jan 29 19:31:23 uhm wait, let me first try.. maybe i get it.. no i mean imagemagick.. Jan 29 19:31:32 oh dont use it Jan 29 19:31:37 oh Jan 29 19:31:37 QubeZ: nicely spotted. Supposed to be 12345. Still don't work though. Jan 29 19:31:40 why? Jan 29 19:31:43 besides when I do things it's in splines/vectors Jan 29 19:32:02 so my output save changes, no resizes or anything Jan 29 19:32:09 cause thats quite ugly Jan 29 19:32:16 what about xnview? is it easy to do this automatically there? Jan 29 19:32:19 Quacked: the alarm isn't cancelling or the notification isn't disappearing with user click? Jan 29 19:32:26 xnview very easy Jan 29 19:32:44 Xnvconvert? Jan 29 19:32:49 QubeZ: the alarm isnt cancelling. the notification is cleared Jan 29 19:32:49 or really "xnview"? Jan 29 19:32:58 xnview, select all, conver/batch, add transforms, scale 50%, new file execture Jan 29 19:33:15 ok i will try my thing Jan 29 19:33:18 thanks, sir :) Jan 29 19:33:22 Quacked: you are sending in 0 for the resultPendingIntent Jan 29 19:33:27 you need to change that to 12345 also Jan 29 19:33:41 otherwise the requestCode does not match and Android has no way to knowing which Intent you meant Jan 29 19:34:03 oh by the way.. does anyone of you know how to uplaod a file to a php script in a AsyncTask? aybe any code snippet? i couldnt find anything on google Jan 29 19:34:28 QubeZ: fixed, but still no go :) Jan 29 19:35:44 could it be that the intent passed to MyReceiver is a notification and not the alarm? Jan 29 19:37:12 StingRay_: how can i set the percent in xnview? Jan 29 19:37:15 ... yes? Jan 29 19:37:42 The PendingIntent you try to cancel has to match the one you gave alarmmanager Jan 29 19:37:44 any help Jan 29 19:38:20 Styler2go err you change it from pixels to precent Jan 29 19:38:35 yeah i found... Jan 29 19:38:40 SimonVT: I think it does Jan 29 19:38:41 :P Jan 29 19:39:02 hey it worked! :D Jan 29 19:39:44 The intent the alarmmanager has is for an activity.. The one in your broadcastreceiver is, well, for a broadcastreceiver Jan 29 19:39:49 How is that ever going to match Jan 29 19:40:12 so, i have all pictures in xhdpi (100%), so mdpi = 50%, hdpi = 75% and ldpi = 25? Jan 29 19:40:38 37.5% Jan 29 19:40:55 ldip = 37,5 Jan 29 19:40:59 every other correct? Jan 29 19:41:31 Quacked: right, you have getActivity when creating your PI for the alarm.set but then you're using getBroadcast in your receiver code Jan 29 19:41:32 Yes Jan 29 19:41:37 Shitty way to remember it tho Jan 29 19:41:44 Just remember 3/4/6/8 Jan 29 19:41:59 ldpi/mdpi/hdpi/xhdpi Jan 29 19:43:07 ok i converted it.. (thanks to StingRay_ for the XnView, veery easy) Jan 29 19:43:29 verry silly though, from a design standpoint Jan 29 19:43:39 :) Jan 29 19:44:22 wgy? Jan 29 19:44:33 *why Jan 29 19:45:11 Ok, changed to getActivity Jan 29 19:45:11 http://pastebin.com/Ub1ypBz6 Jan 29 19:45:15 errr visual downgrading due to miss match on both scale ration and or including filtering method based on pallet and context Jan 29 19:45:25 *ratio Jan 29 19:45:36 btw I have no idea what I just said!!! Jan 29 19:45:38 ;) Jan 29 19:45:51 Still not working Jan 29 19:46:05 http://english.cxem.net/arduino/arduino5.php this is the same code of my program under Android - transmit and receive data to the Arduino title but no success in receiving data any help plz Jan 29 19:46:07 well actually I do, but simply put, you cant divide 10 by 3 and expect it to be nice Jan 29 19:46:07 Anyone know how to reference the gradient black background used in most of google's apps (such as settings, account creation etc) ? Jan 29 19:46:26 oh oh one other question, can i tell my app NOT to scale up the background of the app? Jan 29 19:47:06 in a view with wrap_content Jan 29 19:47:20 will not scale beyond a 1:1 pixel ratio Jan 29 19:47:24 I think Jan 29 19:47:25 Quacked: The Intent has to match Jan 29 19:47:42 I doubt the Intent you receive can be used to start an activity Jan 29 19:47:55 but the background is in the very first LinearLayout.. so... Jan 29 19:48:18 SimonVT: so how do I do it? Jan 29 19:48:46 Intent intent = new Intent(this, DialogActivity.class); Jan 29 19:48:46 pendingIntent = PendingIntent.getActivity(this, Jan 29 19:48:46 12345, intent, PendingIntent.FLAG_CANCEL_CURRENT); Jan 29 19:48:51 amg.cancel(pendingIntent) Jan 29 19:49:00 s/this/context/ Jan 29 19:50:35 That actually worked Jan 29 19:51:06 I think I tried that earlier but just failed because of the ID (12345) Jan 29 19:51:11 Thank you, SimonVT :) Jan 29 19:52:17 oh god i hate designing on android... :D Jan 29 19:52:36 you should find a job you love Jan 29 19:52:39 you'll be happier Jan 29 19:52:39 :P Jan 29 19:52:48 its my hobby not my job :) Jan 29 19:53:11 maybe i just should find a good designer who works with me :D Jan 29 19:53:18 ....even more impetus to find something else you love? ;P Jan 29 19:55:39 something a bit OT: does anyone know a good program to record android screen? (on rooted device) Jan 29 19:56:19 Styler2go: I use Screencast Jan 29 19:56:27 Used it for my videos on todomapr.com Jan 29 19:56:47 I bought it... and its not working that good.. it does not record my listviews and so on.. some kind of strange... Jan 29 19:57:03 weird, worked fine for me and I have listviews too Jan 29 19:57:10 ive always had better luck using emulator and Jing Jan 29 19:57:32 Can you tell me your configuration and your phone? Jan 29 19:57:42 Droid Razr Jan 29 19:57:43 Google just needs to add it Jan 29 19:57:54 Along with hierarchyviewer on production devices, want Jan 29 19:57:57 i have: resolution high, fps 40, timepalpse 1 and no touch pointer and no audi record Jan 29 19:58:12 Styler2go: did you do the benchmark to see what fps you should be at? Jan 29 19:58:18 SimonVT: +1 Jan 29 19:58:21 it tells me 50 Jan 29 19:58:28 50? what phone do you have? Jan 29 19:58:32 i have the Razr and im at 21 Jan 29 19:58:33 Nexus 4? Jan 29 19:58:47 seems kinda high Jan 29 19:59:03 any help Jan 29 19:59:14 yeah... i love the pohne.. u think fps is too high? Jan 29 19:59:21 QubeZ: nex4 is much more powerful than droid razr Jan 29 19:59:32 i'll try 25 fps... Jan 29 19:59:50 tophyr: indeed but that fps seems high *shrug* Jan 29 20:00:16 Styler2go: all of my settings besides fps are defaulted Jan 29 20:00:19 and it works fine for me Jan 29 20:00:43 i have the latest version but my ftp options only show up to 40... what version are you on? Jan 29 20:01:01 so u dont have ehrm Jan 29 20:01:12 resolution gigh? Jan 29 20:01:47 ya vid res is set to high Jan 29 20:01:58 thats not default.. isnt it? Jan 29 20:02:08 sorry that too... here are my settings Jan 29 20:02:39 high, auto, 21, 1x, pointer .. the others are just optional checkboxes Jan 29 20:02:43 the webview is completly empty while recording Jan 29 20:02:45 the list too Jan 29 20:02:46 I am working with Sherlock fragments to create a pager with 3 fragments(pages). I have layout1.xml, layout2.xml and layout3.xml which all have a TextView with ID #some_id. wwll, under onCreateView, I bind some_id TextView to a TextView variable some_tv. After which I set the text on some_tv to the current page. Well, this works for the 1st page and last page, but not the second page. What am I doing wrong, or is their some function like onPageLoaded() th Jan 29 20:03:14 i think i will record it with an external camera and so on :-/ Jan 29 20:03:46 that sucks, harder to manage :\ Jan 29 20:04:21 what should i do if the screencast won't record my custom listviews and, for example, webviews and one other activity.. :( Jan 29 20:05:07 Styler2go: you could use desktop recording software in conjunction with android-screencast which is a free java based tool to capture screen images from Android onto desktop Jan 29 20:05:38 do you think thats fast enough? Jan 29 20:05:57 then record your desktop which whatever software and add in your audio through the same workstation mic. As you control the phone (via USB attached), the android-screencast software will show you Jan 29 20:06:11 Styler2go: right, not fast at all but you can go slow then time elapse the video to sync up with your audio Jan 29 20:06:19 might be too much of a headache though Jan 29 20:06:33 i dont need audio, it will just be a presentation... Jan 29 20:06:55 uhm screencast is veeery slow ^^ Jan 29 20:07:01 yes it is Jan 29 20:07:18 if htere would be a perfect emulator :-/ Jan 29 20:07:27 with youtube access... this would be so great Jan 29 20:07:34 or even a functional one lol Jan 29 20:07:40 i hate the emu Jan 29 20:07:40 :D Jan 29 20:07:50 u could root them and isntall gapps but... Jan 29 20:07:54 especially for location-based stuff that I'm writing Jan 29 20:07:57 not the youtube app Jan 29 20:08:27 Current limitations Slow refresh rate (about 4-5 fps) Jan 29 20:08:30 does anyone have any ideas what might cause an app to crash on one device but works very well on another? the difference is of course the android version but the app is set to support very old versions. it might not matter but it is a samsung galaxy s2 and a s3. it works fine on the s3. Jan 29 20:08:54 http://english.cxem.net/arduino/arduino5.php this is the same code of my program under Android - transmit and receive data to the Arduino title but no success in receiving data any help plz Jan 29 20:08:59 look in the logcat Jan 29 20:09:04 MelvinKelvin: lots of things... how do you know you are set to support very old version? Jan 29 20:09:49 I am working with Sherlock fragments to create a pager with 3 fragments(pages). I have layout1.xml, layout2.xml and layout3.xml which all have a TextView with ID #some_id. under onCreateView(), I bind some_id TextView to a TextView variable some_tv. After which I set the text on some_tv to the current page. Well, this works for the 1st page and last page, but not the second page. What am I doing wrong, or is their some function like onPageLoaded() that g Jan 29 20:10:32 QubeZ: the sdk? am I completely wrong now? the app is using the holo theme but it should be fine on the samsung galaxy s2 Jan 29 20:14:25 hello :) Jan 29 20:14:30 Has anyone noticed an issue with icons in an ActionBar being smaller on 4.2 than on 4.0, 4.1, etc? I also feel like the launcher icons are smaller on 4.2 as well.. Anyone noticed that? Jan 29 20:14:36 need help on android app webview Jan 29 20:15:11 evanc: so far so good using a class that extends Application. Thanks for the suggestion. Jan 29 20:15:46 :( Jan 29 20:16:28 MelvinKelvin: load up the emulator with that target SDK that is crashing and *use* your app Jan 29 20:17:50 but is sdk version the same thing as android version? Jan 29 20:18:37 becuase android version is the only thing i can read from the device right? Jan 29 20:18:46 MelvinKelvin: in your manifest's android:minSdkVersion is the API version you are supporting down to Jan 29 20:19:16 just because you put minSdkVersion="8" doesn't mean that your app will run all features you've built in on Android 2.2 (API Level 8) Jan 29 20:22:20 so it's quite difficult to develop an app that works fine on a wide broad of devices. I am using simple text views and action bars only. Jan 29 20:22:54 but your actual problem is crashing so you should load up an emulator with that android version as your target and test your app Jan 29 20:23:01 welcome to the world of Android, enjoy your stay Jan 29 20:23:33 MelvinKelvin: wait until you start using hardware stuff like Bluetooth Jan 29 20:23:34 any help Jan 29 20:23:36 any help Jan 29 20:23:36 any help Jan 29 20:23:38 http://english.cxem.net/arduino/arduino5.php this is the same code of my program under Android - transmit and receive data to the Arduino title but no success in receiving data any help plz Jan 29 20:25:37 QubeZ: I will try it out. Im afraid it is something that I must have and can't fix :/ it must work on both devices ha ha Jan 29 20:27:38 xyz87: are the devices paired ok ? Jan 29 20:32:53 yes Jan 29 20:32:54 they are Jan 29 20:33:03 and i can send data normally Jan 29 20:33:15 but I have no receiveing data Jan 29 20:35:20 actually, how are ones doing apps with support for many devices? there are some examples of apps working on as far as I know almost all devices Jan 29 20:36:04 xyz87: maybe try pairing your arduino with the PC first and makeing sure its send/receive side is working Jan 29 20:36:29 i have tried that and it is working normally Jan 29 20:37:07 ok, next is to take 2 android phones and run BluetoothChat example to make sure that works - if you can Jan 29 20:37:09 MelvinKelvin: i use test automation and a whole crapload of emulators Jan 29 20:37:32 MelvinKelvin: there are a few services that will run your app on a buttload of devices Jan 29 20:37:44 it didnt work too Jan 29 20:37:49 tried that also Jan 29 20:38:00 xyz87: BluetoothChat between 2 phones didn't work ? Jan 29 20:38:36 what 2 phones were these, and os versions? i've been hearing about issues with 4.2 devices since they changed their BT stack Jan 29 20:45:18 ideas on how i can demo my in-dev app to ppl many miles away? Jan 29 20:45:21 htc one x Jan 29 20:45:27 4.1.1 Jan 29 20:45:39 was thinking of doing screencast from PC using emulator but if anyone has a better idea... Jan 29 21:10:38 Hey guys, anybody know the input type options to get the emoticon button like in SMS's, but also a return key icon? Jan 29 21:10:54 Kind of like the stencil they have on the android site, it shwos both but it doesnt have any flags Jan 29 21:11:39 For the soft keyboard in an edit text. Right now I can only do one or the other, I'm starting to think that's all that's going to be possible :P Jan 29 21:16:40 sabton: android-screencast project on Google Code Jan 29 21:16:49 you can USB a real phone and display it on your PC Jan 29 21:17:42 I tried it, it sucked Jan 29 21:18:06 using the emulator and ffmpeg was way better on linux, on windows that sucked Jan 29 21:18:13 worked fine for me to demo my app over the net Jan 29 21:18:32 run a 4.2 emulator and tell me how fast that is Jan 29 21:18:52 there's no x86 image of it, so Iwouldn't Jan 29 21:19:02 thats my point Jan 29 21:19:25 oh wait Jan 29 21:19:26 there is now Jan 29 21:19:28 that's new, yay Jan 29 21:21:46 nice Jan 29 21:23:26 does android 4.x allow you to set shadowDx/Dy/Radius in xml? Jan 29 21:23:35 err dip values Jan 29 21:23:38 vs. pixels Jan 29 21:23:42 QubeZ, works great Jan 29 21:23:44 :) Jan 29 21:23:45 oh wow the n4 is back in stock :D Jan 29 21:23:51 g00s, i just pulled a you Jan 29 21:23:52 sadly it works like crap on windows still Jan 29 21:24:11 canadiancow: betcha it's sold out in few hours? ;) Jan 29 21:24:18 ? Jan 29 21:24:21 it's not sold out is it? Jan 29 21:24:41 dunno, I already have mine Jan 29 21:24:49 it's still available Jan 29 21:25:11 hehe Jan 29 21:25:24 Hence the "in a few hours" part Jan 29 21:25:56 maybe they also fixed the bug that involved what someone described as "Play store code wasn't ready for checking availability of items that took longer than X" ;) Jan 29 21:26:29 can I create multiple views in the same layout/name.xml file? Jan 29 21:27:49 RustyShackleford: of course Jan 29 21:28:20 why wouldn't you be able to? Jan 29 21:28:27 QubeZ, not nested views. Jan 29 21:28:53 but different Views that I can choose between. Jan 29 21:29:01 use fragments Jan 29 21:29:35 One view hierarchy per file Jan 29 21:29:54 Let me explain what I'm trying to accomplish. I'm defining a custom list item as the base. Then I want to create several views with this custom list item as the parent Jan 29 21:31:40 i hate that these x86 images are not avail for Google APIs targets Jan 29 21:38:37 JakeWharton: I looked at your 'tape' library and the sample app. But I'm not sure how I'd do it without injection. Jan 29 21:39:06 I saw https://github.com/square/tape/blob/master/tape-sample/src/main/java/com/squareup/tape/sample/SampleActivity.java#L27 but without injection, how do you start, restart etc the Queue after it has been aborted. Does it have a queue? Does it just know (one queue per app?) Jan 29 21:39:12 QubeZ, mh, never used the google apis stuffs Jan 29 21:39:20 what is in there anyway? Jan 29 21:40:30 Zharf: Maps, for one Jan 29 21:41:09 can you add the same span to a SpannableStringBuilder twice? Jan 29 21:41:13 (with different start/end) Jan 29 21:43:30 Zharf: check out todomapr.com, thats what I'm trying to keep testing but end up testing on my phone instead Jan 29 21:43:38 would be nice to have a stable/fast emulator to test on Jan 29 21:43:55 oh btw, new stuff coming out if you check out the twitter feed: twitter.com/todomapr Jan 29 21:44:08 Ok I'm done marketing now... sorry =) Jan 29 21:45:28 im getting a refund back this year... that sucks Jan 29 21:46:26 I generally prefer to test on my phone(s) Jan 29 21:46:37 only thing I used emulator for was screencasting.. Jan 29 21:46:46 Zharf: same here but after i've tested on the emulator Jan 29 21:47:12 i'l run around with my phone and test further, especially battery usage etc.. but having an all-in-one dev and testing solution on my laptop would be ideal Jan 29 21:47:59 my current laptop with touchscreen would be great for such a thing Jan 29 21:48:10 because mouse sucks with the emulator, imo Jan 29 21:48:44 ya mouse does suck Jan 29 21:49:46 if I get to tablet stuff at some point I'll have to do the UIs on emulator Jan 29 21:49:51 I refuse to buy one Jan 29 21:50:49 I wonder when Android removes all of the triggered proximity alerts. I noticed that all the testing I did for my app still shows a ton of alerts as Proximity Entered: Jan 29 21:51:04 which are inactive and thats fine but wondering when Android releases/clears these Jan 29 21:55:20 I'm creating an App that will have multiple tables, with enough rows/colums to want to do it efficiently. what is the easiest way to set up the sqlite tables for the application? Jan 29 21:55:31 mouse is fine for me on the emulator. the only problem is that it doesn't do pinching Jan 29 21:56:17 pragma-, yeah Jan 29 21:57:27 but I don't actually have a mouse, just a touchpad/clit Jan 29 21:57:38 I don't really use either Jan 29 21:57:53 eppo: create a sqlite database, package it with your app, extract if one doesn't exist. Jan 29 21:59:01 lov: any experience with proximity alerts? Jan 29 21:59:02 sounds like a plan, thanks for your help lov Jan 29 21:59:22 I have mine working but wondering why the Android system does not release/clear all of the ones that already triggered/entered Jan 29 21:59:24 QubeZ: are you working for my ex? don't lie! Jan 29 21:59:32 can I create a View at runtime, but also specify a style? Jan 29 21:59:33 lov: lol Jan 29 21:59:50 for example I have res/layouts/route_item.xml Jan 29 22:00:33 can I create a route_item but also apply a color/text options that I have defined in styles.xml? Jan 29 22:02:49 QubeZ: where in the docs does it say the system will remove proximity alerts for you? Jan 29 22:03:27 Hey guys, when you use a soft keyboard with android:windowSoftInputMode="adjustResize" defined in the manifest for the activity Jan 29 22:03:42 is there any way to define elements that stay static, while the rest adjusts? Jan 29 22:03:48 Or do I need two layouts? Jan 29 22:03:53 mr6: it doesn't but just curious why not... the list could grow pretty lengthy Jan 29 22:04:04 Exano: would two layouts even work? Jan 29 22:04:45 only on reboot it resets.. so I presume the user's battery will die or they will reboot manually at some point. I do this now just to clear that list so I can get to my data faster when troubleshooting Jan 29 22:04:59 although that segment of my code appears to be bug free Jan 29 22:05:01 QubeZ: that is correct unless you follow this Jan 29 22:05:13 Nevermind, google is my friend. Jan 29 22:05:18 After the number of milliseconds given by the expiration parameter, the location manager will delete this proximity alert and no longer monitor it. A value of -1 indicates that there should be no expiration time. Jan 29 22:05:23 Evanc, yup, scrollview layout will do what I need Jan 29 22:05:27 QubeZ: from http://developer.android.com/reference/android/location/LocationManager.html#addProximityAlert(double, double, float, long, android.app.PendingIntent) Jan 29 22:05:33 mr6: right, i always set -1 for the user Jan 29 22:06:14 evanc: if scrollview is considered a layout type O.o Jan 29 22:06:32 I'm surprised how well these proximity alerts work. I expected a huge delay but they're pretty snappy. Jan 29 22:06:36 ScrollView is not a layout, Exano ... Jan 29 22:06:48 QubeZ: well it's running GPS constantly Jan 29 22:06:55 so dont expect good battery life Jan 29 22:06:59 mr6: mine isn't Jan 29 22:07:00 My bad, I'm sorry. I'm not familiar at all with typical XML/layout stuff tbqh Jan 29 22:07:02 kakazza: you definitely don't need injection Jan 29 22:07:04 I'm using fluffy location lib Jan 29 22:07:17 QubeZ: before api 17 it didn't require gps Jan 29 22:07:25 kakazza: you just need an alternate means of constructing and holding the queues somewhere (e.g., singleton) Jan 29 22:07:29 in which case it used network location nearly constantly Jan 29 22:07:36 still can be pretty costly Jan 29 22:07:44 how would i display text with multiple colors and images in a single TextView?, similar to http://gallery.earthtools.ca/index.py/android/device-2013-01-29-180658.png Jan 29 22:07:50 mr6: I have a buddy that uses Nexus 4 (API 17) and uses Tasker with no GPS enabled Jan 29 22:07:51 i don't recommend leaving proximity alerts registered all the time Jan 29 22:07:57 how are proximities working in Tasker? Jan 29 22:07:59 in the image, i'm using 3 seperate TextView's and an ImageView, and the wrapping is confined to within a single view Jan 29 22:08:04 I'll get there, I just need to brush up on reading. This is the third app I've worked on using normal layouts =p Jan 29 22:08:07 so its not working well on small screens Jan 29 22:08:15 QubeZ: they aren't necessarily using Android's proximity alert api Jan 29 22:08:15 JakeWharton: Thanks. But as I understand it, the queue can survice a crash, app close etc. How do I re-instantiate that very same Queue again? Like, how does it know where to get the incomplete tasks from? Jan 29 22:08:25 mr6: what do you mean all the time? they would need to be registered all the time to alert the user no? Jan 29 22:08:25 QubeZ: they can have developed their own logic Jan 29 22:08:42 kakazza: they're persisted to disk Jan 29 22:09:02 QubeZ: pretty much yes :) im just saying they aren't very smart about battery usage Jan 29 22:09:30 hmm ya proximity alerts on API 17 might be costly but thats up to the user to decide to use that feature Jan 29 22:10:45 QubeZ: the android code i've seen merely checks the location every 4 minutes using whatever providers are enabled Jan 29 22:10:51 nothing smarter than that Jan 29 22:11:09 it may be better in api17 i've not read the code yet Jan 29 22:11:18 so on API 17 my use of proximity alerts would kill the battery since its using GPS? Jan 29 22:11:38 unless they've gotten smarter and don't turn it on if they can get a good location without Jan 29 22:11:41 using network Jan 29 22:12:01 iOS has this ability Jan 29 22:12:05 in android you can do it Jan 29 22:12:11 but have to write a lot of complex logic yourself Jan 29 22:12:21 and manage it in a background service Jan 29 22:12:56 i require ACCESS_FINE_LOCATION in my app anyhow Jan 29 22:13:02 sure it requires it Jan 29 22:13:14 but i'm saying it's possible it doesn't use the gps if it doesn't need to Jan 29 22:13:32 you have to declare the permissions up front Jan 29 22:13:35 i sure hope so because I can't get my damn 4.2 emulator working with geo fix sends Jan 29 22:13:42 i need to test this on 4.2 Jan 29 22:14:45 i load up 4.2 google api's emu, do a geo fix but maps apps says no location found. Then I even treid via DDMS which I presume does the same thing as geo fix CLI cmd Jan 29 22:15:07 I have internet though so I could install the location spoofer app and test right on my emu but again, location not working Jan 29 22:15:59 google maps app is not going to see the spoofed locations probably Jan 29 22:16:06 when you do the geo fix what provider does it use? Jan 29 22:16:18 mr6: not sure Jan 29 22:16:25 http://pastebin.com/e6dqRX9b quick opinion, explanation... thx :) Jan 29 22:16:26 i haven't tried to do location on emulator in several years Jan 29 22:16:47 real device >>>> emulator for location Jan 29 22:17:00 ya definitely, i'll have to test my all on a friends phone Jan 29 22:17:23 hey guys. I have a listfragment and the contents of the list are determined by a ArrayList... I know to add contents i call (nameofArrayList).add(newcontent).... how can I add content to it outside of the onViewCreated method? Jan 29 22:17:30 nicole24: no one is going to look at that, just ask your question using regular English here Jan 29 22:18:37 nicole24: then if someone wants to see a pastebin you can show them, just a heads up Jan 29 22:18:51 when I do content.add("whatever") in a different method eclipse tells me to make the ArrayList static...and thus the adding of new contents can not be achieved Jan 29 22:19:15 mr6 its short, simple and "basic" question for someone with more experience... and its lot easier to ask that way and to answer it... Jan 29 22:19:35 if its short then copy and paste in here Jan 29 22:20:29 nicole24: i don't actually care, was just trying to give you a heads up that most people won't click a random link with no context Jan 29 22:21:22 canadiancow: you pulled a g00s ? Jan 29 22:22:30 mr6 thx... i really appreciate it... just from experience from past questions this way seems easier for person who will reply to understand what i am asking... :) Jan 29 22:23:24 nicole24, check PM Jan 29 22:23:53 JakeWharton: I got that much. But are they identified somehow? Or will it just know "Oh, yeah, I'm MyCustomQueue, my data is stored _there_" without me needing to tell it? Jan 29 22:24:44 you have to give it a path to store its data in Jan 29 22:25:04 I didn't see that in the sample, let me check again. Jan 29 22:25:40 https://github.com/square/tape/blob/master/tape-sample/src/main/java/com/squareup/tape/sample/ImageUploadTaskQueue.java#L56-L59 Jan 29 22:25:43 oh... Jan 29 22:26:11 precisely Jan 29 22:26:24 So if that file already exists, it will use it, otherwise create it? Jan 29 22:26:37 Or would calling create() more often overwrite it? Jan 29 22:26:51 if it already exists, it will use what's there Jan 29 22:28:28 Now I get it, thank you. Jan 29 22:28:33 nicole24: it's not at all clear what you are asking. It seems like you're asking whethere the java alone or the java + manifest is better. Jan 29 22:28:49 Will also take a look at FEST. And looking forward to what will replace Robolectric ;) Jan 29 22:29:17 nicole24: and that's my point. when you ask a question in a public forum, it forces you to think about what you're asking, as opposed to, oh hey click this random link with a half-baked idea and tell you what you think Jan 29 22:30:00 or rather, it should force people to think about what they say, doenst seem to work on most people Jan 29 22:30:43 mr6 yes thats right what i am asking... ofc we need to define every activity but everyone even with little knowledge knows that... so my question is not that hard to understand... but i agree in most things with you... especially if some more complex code... Jan 29 22:33:38 so you have this statement nicole24: Intent intent = new Intent("com.android.CLASS2"); Jan 29 22:33:48 that't not even a valid constructor for Intent Jan 29 22:33:55 g00s, i announced old news Jan 29 22:35:02 \o/ Jan 29 22:35:26 JakeWharton seems to think i'm sort of SEO bot Jan 29 22:35:46 mr6: yes it is? Jan 29 22:36:15 mr6 not valid.. why it works? Jan 29 22:37:12 nicole24: it's vali Jan 29 22:37:13 +d Jan 29 22:37:28 sorry misread that as a class-loader object not a string Jan 29 22:40:02 so nicole24 i personally don't register in the manifest unless the component needs to receive intents from outside my application Jan 29 22:40:30 like a broadcast receiver, an intent from Launcher, etc. Jan 29 22:40:45 so the java only one is fine Jan 29 22:42:40 mr6 thx for explanation and help ;) Jan 29 22:45:55 np, sorry you had to be the recipient of my periodic rant on how2irc and ask questions Jan 29 22:46:52 Is there a way to programatically access the data used by Android's battery graph? I'd like to build something that lets me "zoom in" on that graph :-/ Jan 29 22:48:45 savid: there is an xml file that the system writes the battery data to, i'm not positive but i think it's readable by any app Jan 29 22:49:13 savid: i'm not sure that there's are real api tho Jan 29 22:50:53 file is good enough. thanks, I'll look into it. Jan 29 22:55:16 how can i dynamically add a new object to a ListFragment during runtime? that question may be vague... I have a ListFragment and a ArrayList. When i click a button next to some text i want that button click to add that text as another string in the ArrayList Jan 29 22:58:57 list.add(whatever); listView.notifyDatasetChanged(); Jan 29 23:00:11 assuming your adapter is sane Jan 29 23:00:37 Does anyone know the smallest possible android screen resolution off the top of their head? Jan 29 23:01:06 nvm 240x320 Jan 29 23:02:20 canadiancow never assume saneness Jan 29 23:02:22 sorry if this is a stupid question but i am relatively new to android/java...but i want to add the new content in a method outside of the onViewCreate method, which is where the arrayadapter is created. Jan 29 23:02:39 is that even possible? Jan 29 23:03:03 http://db.tt/XTztgzec << Is there a way to make these icons centered, using only Notification.Builder? Jan 29 23:03:06 s/saneness/sanity/ Jan 29 23:03:27 eh, sanity* Jan 29 23:05:41 ohhhh i got it nevermind...thank you canadian!!! Jan 29 23:07:52 is it possible to change the color of the ListView dividers taht are surrounding a particular ListView item only? Jan 29 23:08:20 like say I select a listview item and now it's blue, but I also want it's top/bottom dividers to be blue too Jan 29 23:09:29 I'm using gles 2 and I'm getting the error " Called unimplemented OpenGL ES API" when I try to compile a shader Jan 29 23:10:00 I do have the uses-feature/required set in my manifest, I'm on min api 11 target 16 and testing on 4.1.1 Jan 29 23:10:42 any ideas what the issue is? Jan 29 23:13:19 nvm found it Jan 29 23:14:22 ive imported an external jar, and tried to use some methods from it...compiles fine, but when i run i get NoClassDefFoundError. however, i unzipped the jar, and there is a .class file for it inside the jar... Jan 29 23:15:11 whoa hey I just had that error earlier Jan 29 23:15:24 fix it? Jan 29 23:15:54 sorry I didn't find a solution. :/ please post here if you figure it out Jan 29 23:16:17 but I would suggest trying a clean build Jan 29 23:19:09 ok so how do i add content to an arraylist (inside a ListFragment) based on an event from another fragment(like a button click)? Jan 29 23:33:46 OK, now that my nightmare with in-app billing is "over" (waiting for a couple hours for in-app products to sync with new APK) I've got a new question. Jan 29 23:34:20 If I wanted to make a new app but base it completely off of another one of my apps, basically just have a different pack of text files which contain level information, how would I go about doing that? Jan 29 23:35:06 Do I just copy the project and replace the text files or would using the old app as a library do what I want it to? Jan 29 23:35:40 Depending on how modular it is, a library project could work. https://developer.android.com/tools/projects/index.html#LibraryProjects Jan 29 23:36:51 Yes, I'm aware of libraries, thanks. I'll try a couple things out and be back with more questions later. Jan 29 23:37:05 jdawes: or just make an ant script that changes the package name/s in AndroidManifest.xml Jan 29 23:37:13 Are you aware of libraries or are you aware of library projects or both? Jan 29 23:37:16 (and the text files) Jan 29 23:38:12 kakazza: sorry I wasn't specific, I meant both. I actually used a library project to build the first one, but kind of stop working on it because I got a little over my head, I'm fairly new to Android dev. Jan 29 23:38:56 sonOfRa: Ever got an answer on why Android doesn't use JUnit 4? Jan 29 23:38:58 evanc: Never written an ant script before. Jan 29 23:39:17 kakazza not really, no Jan 29 23:39:19 jdawes: doesn't have to be ant, but that's what the android app build system currently uses Jan 29 23:39:34 Gotcha Jan 29 23:39:43 jdawes: just s/old.package.name/new.package.name/g pretty much Jan 29 23:39:46 only vague mentions, that junit 3 is deeply integrated with the android framework and it would possibly a huge deal of work Jan 29 23:40:21 jdawes: it's slightly more complicated than that, but not the end of the world. Library projects might be easier Jan 29 23:40:49 +1 Jan 29 23:41:01 replacing the package name was more complicated than one might think Jan 29 23:41:13 R.java changes location Jan 29 23:41:16 Yeah I get the gist of it. I think I'll just try my hand with library projects and see where that goes. Thanks. Jan 29 23:41:18 GCM permissions change Jan 29 23:41:19 etc Jan 29 23:47:01 tangential ugly hack https://github.com/kbsriram/thormor/blob/master/lib/bcfetch/fetch_and_fix.sh or "how to use a new bouncycastle version in android while making your eyes water" Jan 29 23:47:13 (vis-a-vis package renaming :-) Jan 29 23:52:32 ive imported an external jar, and tried to use some methods from it...compiles fine, but when i run i get NoClassDefFoundError. however, i unzipped the jar, and there is a .class file for it inside the jar. can anyone make sense of that? Jan 29 23:53:15 mahamoti: is the jar inside of your libs/ folder? Jan 29 23:53:26 I seem to recall that jars need to be in there for some reason Jan 29 23:53:38 (in order to be compiled into the classes.dex) Jan 29 23:54:51 evanc: hmm, it wasnt in my libs folder, it was just in the build path Jan 29 23:59:25 mahamoti: yeah try tossing it in libs/ Jan 29 23:59:32 and removing it from your build path Jan 29 23:59:47 I seem to recally I spent half a day debugging that a while ago Jan 30 00:04:52 Hey, I'm using httpUrlConnection and I'm having a terrible time trying to handle 401 responses. If the server response doesn't have an authentication challenge httpUrlConnections throws and IOException and if it does have a challenge I think it tries to auth, and ends up returning http 500 as the response code. Has anyone run into this? Jan 30 00:08:11 I haven't dealt with 401s specifically, but doesn't getResponseCode() allow you to tap the server response before anything egregious happens? Jan 30 00:08:59 nope, that method calls getAuthorizationCredentials() and tries to handle the 401 Jan 30 00:09:46 huh. does something different than the javadoc, I guess. ah well. Jan 30 00:11:32 I'm mostly curious -- do you have a stacktrace pastebin'able somewhere? Jan 30 00:12:18 heres an equivalent stackoverflow article: http://stackoverflow.com/questions/11810447/httpurlconnection-worked-fine-in-android-2-x-but-not-in-4-1-no-authentication-c Jan 30 00:12:58 I think the major issue is legacy devices, (such as 2.2.3) that handle this poorly Jan 30 00:15:37 does the Nexus Q have location services? Jan 30 00:15:41 can it get a fix from WiFi? Jan 30 00:16:12 good question, JakeWharton Jan 30 00:16:59 I don't see why it couldn't, but I haven't tested that Jan 30 00:17:50 is it possible to have a test project build against a *release* build of its target? Jan 30 00:17:54 jayd16: huh, interesting bug. good to know, thanks. Jan 30 00:18:51 wifi with media devices = death :( Jan 30 00:19:32 on 2.3, is it not possible to clear a single notification? Jan 30 00:19:51 kbs: I think the only real option is to catch the exception and look at the message Jan 30 00:21:27 jayd16: ah well. Jan 30 00:24:33 JakeWharton: maybe this is already old news to you, but fwiw I recently stumbled upon a nice little geolocation (business) api google offers. You give it the mac address of the wifi AP (and/or cell-phone towers etc.) and it gives you back a lat/long. Jan 30 00:25:14 well our app uses normal location services and I was wondering if it would just work or not on the Q Jan 30 00:25:29 last time I tried running it I had to disable the location check but I don't think i was connected to WiFi Jan 30 00:26:18 JakeWharton u on osx & idea EAP? Jan 30 00:26:24 yep Jan 30 00:26:39 for each update does it require u to download the whole app again lol? Jan 30 00:27:23 for 80%. they randomly patch themselves Jan 30 00:27:28 When switching from Eclipse to IntelliJ, what should one do/consider? Is it easier when setting IntelliJ to Eclipse Key Shortcuts? Jan 30 00:27:29 almost never though Jan 30 00:27:40 to update intelliJ? I've been seeing that a few times in the past few weeks Jan 30 00:27:54 kakazza: i suffered for a week not knowing the shortcuts but after a week I didn't have to think about it anymore Jan 30 00:28:09 * jug6ernaut is still suffering xD Jan 30 00:28:16 jayd16 ok making sure I'm not the only one lol Jan 30 00:28:44 Are there videos I should watch, tutorials I should read? And is the community edition enough? I'd really like to try the switch. Jan 30 00:29:02 no no yes Jan 30 00:29:22 ital take u a week or so to get used to it, but after that its SO much better Jan 30 00:29:41 One thing I'd need is to commit Formatter rules to the repo, so people with IntelliJ (me) and others (the rest of the team) don't end up commiting stuff which just because of linebreaks and whatnot. Jan 30 00:29:59 few annoying things, but for most part its pretty good Jan 30 00:30:18 What are the things that are SO much better? When I once tried it for only an hour or so, the speed was that amazed me the most. It felt so responsive. Jan 30 00:30:25 like why organizing imports doesn't auto import…arg so annoying Jan 30 00:31:03 how does the variables for NotificationCompat.Builder setProgress work? It's supposed to be (int max, int progress, boolean indeterminate) Jan 30 00:32:29 Do I have to make a loop that refreshes the notification where "int progress" increases? Jan 30 00:36:54 not really a loop, but you can update a notification's progress asynchronously Jan 30 00:38:20 I want the progress bar to tick along with setUsesChronometer Jan 30 00:39:18 Say my notification's max is 60 seconds, I want the progress to update every second Jan 30 00:39:23 if you understand what I mean Jan 30 00:39:45 i do. you need a callback mechanism that will happen every second in which you can update the notification's progress value Jan 30 00:40:39 too bad I can't use what setUsesChronometer uses Jan 30 00:40:44 but how do you suggest I do that? Jan 30 00:41:28 I tried something like a while (...) { SystemClock.sleep(1000) ... } Jan 30 00:42:00 is there a more proper way? :) Jan 30 00:42:12 look in the docs at Timer and TimerTask Jan 30 00:45:04 thanks Jan 30 00:45:21 this post is a good description also, of using a repeateadly posting Handler Jan 30 00:45:36 http://android-developers.blogspot.com/2007/11/stitch-in-time.html Jan 30 00:46:19 depending on the use, one may be better than the other Jan 30 00:51:50 hey guys Jan 30 00:52:43 i have a fragment that contains a button..on click that button executes a FragmentTransaction to display another fragment...but I am getting an IllegalArgumentExcption Jan 30 00:54:25 stacktrace or GTFO Jan 30 00:54:48 lol ok hold on Jan 30 00:55:46 Thread [<1> main] (Suspended (exception IllegalArgumentException)) Jan 30 00:55:46 Jan 30 00:55:46 FragmentManagerImpl.throwException(RuntimeException) line: 451 Jan 30 00:55:46 FragmentManagerImpl.moveToState(Fragment, int, int, int, boolean) line: 903 Jan 30 00:55:46 FragmentManagerImpl.moveToState(int, int, int, boolean) line: 1088 Jan 30 00:55:46 BackStackRecord.run() line: 682 Jan 30 00:55:46 FragmentManagerImpl.execPendingActions() line: 1444 Jan 30 00:55:47 FragmentManagerImpl$1.run() line: 429 Jan 30 00:55:47 Handler.handleCallback(Message) line: 725 Jan 30 00:55:48 FragmentActivity$1(Handler).dispatchMessage(Message) line: 92 Jan 30 00:55:48 Looper.loop() line: 137 Jan 30 00:55:49 ActivityThread.main(String[]) line: 5039 Jan 30 00:56:48 ill show you the code, hopefully i wont get booted for flooding Jan 30 00:57:02 pastebin ... Jan 30 00:57:55 pastebin or GTFO Jan 30 00:58:33 here is the code: http://pastebin.com/iarWxadg Jan 30 00:58:39 Jake, if I was to use FEST when I already have 500something unit tests, would you think it's worth rewriting the old tests or just start using it now? Jan 30 00:58:57 kakazza: we've been gradually switching over Jan 30 00:59:17 As in, whenever you need to touch old tests, you rewrite them? Jan 30 00:59:28 precisely Jan 30 00:59:48 Would've been my idea too. I love the assertThat syntax, and without Junit 4, FEST seems like a good idea. Jan 30 01:00:25 Also _really_ looking forward to what square has to offer as a replacement to robolectric. Currently we run about 80 minutes for one complete run of Robotium tests. Jan 30 01:00:43 And someone on the Robotium Issue tracker said they are at 90 minutes already, heh. Jan 30 01:00:47 well the blog post is going live either today or tomorrow Jan 30 01:00:53 \o/ Jan 30 01:00:56 Where's the blog? Jan 30 01:01:02 :x Jan 30 01:01:35 if you browse the internet at all you won't miss it Jan 30 01:01:42 it'll be making its way over Twitter and G+ once posted Jan 30 01:01:54 hurray Jan 30 01:11:44 no ideas? Jan 30 01:12:00 it seems to be happening at getChildFragmentManager Jan 30 01:14:24 nevermind i have a way to fix it Jan 30 01:25:28 has anyone done rtsp publishing? i'm looking for some tutorials or help Jan 30 01:30:00 how can i replace a fragment via fragmenttransaction within the fragment that will be replaced? Jan 30 01:57:44 grrrrRRRRRUUUUUUUUUUUHHHHHHH Jan 30 01:57:57 it is so satisfying when you nail down an aosp bug Jan 30 01:58:05 but at the same time... SO FRUSTRATING Jan 30 01:58:20 because there is exactly 0 chance i can fix this for my users Jan 30 01:59:09 save submitting a patch and waiting 4 years for it to percolate out via asshole carriers selling beyond-end-of-life OS versions Jan 30 01:59:37 * tophyr bruce banner Jan 30 02:01:10 the multiwindow stuff samsung added to wiz seems pretty extensive, i wonder if it will slow their update cycle even further Jan 30 02:01:35 even though, from what i recall, its most re-qualifying the drivers and carrier approval Jan 30 02:02:24 update cycles Jan 30 02:02:25 yawn Jan 30 02:05:34 i part with a haiku: Jan 30 02:05:36 aosp bug Jan 30 02:05:39 so satisfying to find Jan 30 02:05:41 cry powerlessly Jan 30 02:06:07 <_deXter_> lol Jan 30 02:06:19 where can i find information about android's file management system? Jan 30 02:06:34 spetsnoz elaborate Jan 30 02:06:55 i want to write a paper about how androids file system works Jan 30 02:07:50 its just ext4 Jan 30 02:08:10 its not yaffs2? Jan 30 02:08:28 <_deXter_> Ya its not, FFS. Jan 30 02:08:54 there was something about YAFFS2 and concurrency Jan 30 02:09:29 although, samsung created a new flash friendly filesystem called F2FS Jan 30 02:09:56 they had some troubles in the past with their filesystem stuff, so some probably dont trust them yet :P Jan 30 02:41:34 does google play take out taxes in the US? Jan 30 02:44:08 yes Jan 30 02:44:56 k Jan 30 02:44:57 good Jan 30 02:45:10 didn't wanna have to fork over more money to the gov lol Jan 30 02:45:38 umm google play takes sales tax in some cases, but not income tax Jan 30 02:45:47 better start home-schooling your kids and paving your own streets, then Jan 30 02:46:07 if you're in the USA you'll have to pay income tax on your google play earnings and need to pay estimated taxes as well in years after your first year Jan 30 02:46:51 pragma- i said "more" i pay plenty already i assure you Jan 30 02:47:22 damn payroll tax holiday ending cost me ~1000/year Jan 30 02:49:43 jug6ernaut: just drop your health insurance to save that money; if you have access to the emergency room you're good to go Jan 30 02:50:05 its through my work Jan 30 02:52:27 only chumps work Jan 30 02:52:29 :) Jan 30 02:53:03 g00s lol Jan 30 02:53:13 hi, what you use to store data objects in android? Jan 30 02:53:24 I don't want to use writeObject Jan 30 02:53:53 Marius: whats a data object? Jan 30 02:55:06 well it's object Jan 30 02:55:14 but I want to save it to device Jan 30 02:55:29 you have lots of options Jan 30 02:55:48 you can save it to sqlite, serialize it to xml (using simple) or json using something else Jan 30 02:55:55 or serialize it using protobufs Jan 30 02:56:05 ghm Jan 30 02:56:26 what? Jan 30 02:58:15 pojo Jan 30 02:59:36 I'll try simple xm Jan 30 02:59:40 xml* **** ENDING LOGGING AT Wed Jan 30 02:59:59 2013