**** BEGIN LOGGING AT Wed Jun 05 02:59:58 2013 Jun 05 03:00:22 Jc_Dev, yes. in the gsm network Jun 05 03:00:36 Jc_Dev, TTFF ? Jun 05 03:00:40 oh ok, should be able to get a fix pretty quick then Jun 05 03:00:46 TTFF = time to first fix Jun 05 03:00:51 k Jun 05 03:01:04 but why i see a cross agains a satelite icon Jun 05 03:01:16 i'm not familiar with what that indicates Jun 05 03:01:20 let me ask google Jun 05 03:01:50 k Jun 05 03:02:41 Quest: actually, it would be easier to ask your phone - pull down the notification shade and see if it has more details, you can also long press on it to see what app is showing it Jun 05 03:04:42 Jc_Dev, it doesnt Jun 05 03:04:50 Jc_Dev, it doesnt have any infor about it Jun 05 03:07:04 Quest: maybe try and see if it works in other apps, like GPS Test? https://play.google.com/store/apps/details?id=com.chartcross.gpstest&hl=en Jun 05 03:07:22 doesnt works in any app Jun 05 03:07:48 oh that doesn't sound good - it's enabled and whatnot? Jun 05 03:08:07 it is enabled for sure Jun 05 03:08:24 did it used to work? Jun 05 03:09:47 no. I just bought the phone :) Jun 05 03:09:52 second han Jun 05 03:09:52 have you tried: rebooting? testing it outdoors with a good sky view? Jun 05 03:09:53 d Jun 05 03:10:02 yes. on tallest buildings Jun 05 03:11:53 hmmm i'm out of ideas Jun 05 03:12:01 np Jun 05 03:12:06 Jc_Dev, how to stop a service? Jun 05 03:12:45 Settings -> Apps -> Running -> click service -> Stop Jun 05 03:13:30 i mean by code :) Jun 05 03:13:42 While you're there, go to "Settings -> Location access" and make sure everything is on Jun 05 03:14:05 Quest: oh - not sure, haven't played with services yet Jun 05 03:14:22 Jc_Dev, am i have disabled network location / wifi as i only want to check GPS Jun 05 03:14:28 Jc_Dev, ok. np Jun 05 03:15:00 Quest: as a troubleshooting step, i'd try enabling those things just to make sure they aren't required Jun 05 03:15:13 Jc_Dev, ok Jun 05 03:15:15 good idea Jun 05 03:15:17 let me try Jun 05 03:15:21 brb outdoor Jun 05 03:15:25 k Jun 05 03:22:42 Jc_Dev, same results Jun 05 03:22:52 Quest: awww too bad Jun 05 03:23:25 could try a newer version of android maybe... you running 4.2.2? Jun 05 03:25:17 Jc_Dev, the phone is galaxy ace Jun 05 03:26:25 http://www.gsmarena.com/samsung_galaxy_ace_s5830-3724.php Jun 05 03:28:45 Jc_Dev, i see the second last icon on the right bottom with a cross and also at the same time see the last icon (fetching fix when I run any GPS based app Jun 05 03:29:13 Jc_Dev, i see the second last icon on the right bottom with a cross and also at the same time see the last icon (fetching fix when I run any GPS based app). I dont get any fix even on tall buildings. Why iam getting a cross? Jun 05 03:29:21 Jc_Dev, nevermind. it was for the room Jun 05 03:29:55 http://www.spotnblog.com/android-symbols-and-notification-icons/statusicons/ Jun 05 03:31:13 by a cross do you mean like a X Jun 05 03:32:42 could try this app: https://play.google.com/store/apps/details?id=com.andreabaccega.simplegps&feature=search_result Jun 05 03:34:19 ya Jun 05 03:35:31 could try disabling gps, then turning it back on i suppose - i'm not really finding any more info on it, sorry Jun 05 03:36:09 Jc_Dev, i have used this one https://play.google.com/store/apps/details?id=com.eclipsim.gpsstatus2 Jun 05 03:36:26 Jc_Dev, no problem at all! Jun 05 03:37:06 maybe trade it for a Nexus 4 worst case :) Jun 05 03:38:41 sure Jun 05 03:38:46 i would see Jun 05 04:18:22 where can I find android kernel log (I use pandaboard, there are only userdata sdcard cacche system boot folder) (not /proc/kmsg exists) Jun 05 04:19:55 I'm adding image views programatically during my oncreate, but I can't seem to get them to scale right by using setLayoutParams…it seems to be some type of race condition because it works correctly when i add a breakpoint (or sometimes randomly)…not entirely sure what to google to find out how to get around this Jun 05 04:40:06 epop: pastebin the code creating the imageviews and i can take a look if you like Jun 05 04:44:36 anyone know why you would call setComponentEnabledSetting Jun 05 04:44:53 if your trying to support different devices Jun 05 04:44:56 ? Jun 05 04:48:15 TinkerTailorHC: I'm not seeing a lot of use cases for that feature, although i see one guy using it to disable a BOOT_COMPLETED receiver when there aren't any active alarms that need to be scheduled Jun 05 04:48:39 I'm going throught the google io app code Jun 05 04:49:01 and its used to disable activites that aren't meant to be used on the device Jun 05 04:49:16 i,e disable tablethome.class if used on a phone Jun 05 04:50:11 sounds like an optimization maybe? or maybe to prevent it from receiving intents, rather than handling that in the class itself... not 100% sure Jun 05 04:51:09 usually you just handle diferent devices by feature checks and different layouts aliased using refs.xml Jun 05 04:51:33 https://github.com/yangjiandong/iosched.2012/blob/master/android/src/com/google/android/apps/iosched/util/UIUtils.java#L375 Jun 05 04:51:56 yeah, that sounds reasonable Jun 05 04:52:16 I'm gonna check the classes in question as to whether they receive any intents Jun 05 04:52:29 should be declared in the manifest if so Jun 05 04:53:15 oh it's a lib Jun 05 04:54:25 Jc_Dev, Thanks, that was really bugging me Jun 05 04:54:30 your correct! Jun 05 04:54:35 they receive intents Jun 05 04:54:44 the tablet and the the phone activites? Jun 05 04:54:51 *activities Jun 05 04:55:14 what were you referring to about the lib? Jun 05 04:55:27 oh nevermind that i finally found the manifest Jun 05 04:55:39 thought for a sec it was a lib (no manifest) Jun 05 05:09:44 Jc_Dev, can i ask if there is a diff in the way you call activitys Jun 05 05:09:57 between calling an intent Jun 05 05:10:27 well you launch activities using an intent Jun 05 05:10:38 yeah , you are correcrt Jun 05 05:10:41 *correct Jun 05 05:10:47 not sure what other way you are comparing too? Jun 05 05:11:23 its packing the intents Jun 05 05:11:35 but i think im just getting confused about pointless semantics Jun 05 05:12:08 yeah intents can be confusing, they're used for a few different things Jun 05 05:12:35 but in general used to start activities and optionally include some parameters Jun 05 05:13:14 you can be specific, or you can be generic, and just say, hey, start an activity to handle editing a photo Jun 05 05:14:12 I'm getting confused because I'm seeing intents beeing hardcoded Jun 05 05:14:15 using a class Jun 05 05:14:51 like this Jun 05 05:14:57 that's how you start an activity within your app usually, you reference the static .class property Jun 05 05:15:17 Class bleh = foo.class; Jun 05 05:16:17 ahh Jun 05 05:16:22 god damn semantics Jun 05 05:16:29 sorry i'm an idiot Jun 05 05:16:32 that line is just storing a reference to the class Jun 05 05:16:41 yeah Jun 05 05:43:11 hi, is it possible to beam ndef message to another device while reading from that device we send the message to? Jun 05 05:44:50 EmFeld: technically i think NFC supports full duplex, i'm not sure if android beam actually does though Jun 05 05:45:25 i'd just try it and see Jun 05 05:45:42 any workaround then? or do both users have to perform the beam at the same time? Jun 05 05:45:51 ok thx Jc_Dev Jun 05 05:46:10 the beam is just like a download i think - so i'd start a long running beam from device A, then try and start one from B while the first one is in progress Jun 05 05:59:44 hello everybody Jun 05 05:59:49 i am facing an issue Jun 05 05:59:51 I have an edittext with a right drawable image, which is being used for deleting the text of the edittext based on the cursor position. Jun 05 05:59:57 But i am facing problem while clicking on the drawable image which though deletes the text properly but then even though i place the cursor Jun 05 06:00:02 how can i resolve it ? any idea. I have got to use the drawable only. No separate imageView Jun 05 06:01:06 so you're losing focus when you click the image? Jun 05 06:01:27 can you rephrase that, i am a bit confused Jun 05 06:01:36 i'm/we Jun 05 06:02:07 yeah the part where you state the problem is kind of jumbled... Jun 05 06:02:28 Jc_Dev: well i am not sure about that because i can see the cursor after i delete a character from the text and placed the cursor manually Jun 05 06:02:45 okay let me rephrase it Jun 05 06:04:19 i am facing problem while clicking on the drawable image which though deletes the characters properly but cursor always comes at the end Jun 05 06:04:41 this thing works fine with hardkeys deletion Jun 05 06:04:50 even though i am calling the same method Jun 05 06:05:04 oh ok yeah your click is probably just repositioning the cursor Jun 05 06:05:39 Jc_Dev: I do set selection but that is to the desired cursor position. Jun 05 06:06:05 Jc_Dev: it goes to that position and again flickr to the end of text Jun 05 06:06:44 is your layout using xml or are you doing it programmaticly? Jun 05 06:06:58 programmatically Jun 05 06:07:35 can you paste a snippet please? Jun 05 06:09:24 sorry i can't send the code its restricted here. Can you provide me with some possible reasons for why it is happening ? Jun 05 06:09:57 so that i can work on it ... Jun 05 06:10:17 you want to prevent the click event on the image from "being seen" by the edittext Jun 05 06:10:28 as Jc_Dev said it may be the click repositioning the cursor Jun 05 06:10:36 Jc_Dev: yes exactly Jun 05 06:10:37 are you using View.onClick() to handle the click on the image? Jun 05 06:11:21 idea: ViewParent.requestDisallowInterceptTouchEvent(boolean) Jun 05 06:11:57 Jc_Dev: i am using onClick() for postioning the cursor between the edittext and onTouch() for the image click Jun 05 06:12:06 i'm not really sure how you disable that, usually there's concepts of event bubbling, cancelable events, or a way to promote the image "higher up" in the z-index so the textedit never sees the event Jun 05 06:13:30 actually the onTouch() overrides a customized onTouch event so that it doesn't gets called while i click on edittext Jun 05 06:14:31 have you narrowed down what exactly is causing the cursor reposition? a touch event? a click event? Jun 05 06:15:13 its happening in touch event Jun 05 06:17:26 i'd play with this then: http://developer.android.com/reference/android/view/ViewGroup.html#onInterceptTouchEvent(android.view.MotionEvent) Jun 05 06:17:57 it lets you intercept touch events and take ownership of them, you can hopefully "ignore" a touch event if you detect that it has occurred on the image Jun 05 06:18:11 ignore it on the edittext i mean Jun 05 06:19:51 ok let me try. Thanks Jc_Dev Jun 05 06:20:02 np, good luck! Jun 05 06:26:26 Got some Nexus 4 trouble if anyone finds they can help Jun 05 06:51:30 Jc_Dev Thanks for being so excellent! Jun 05 06:51:36 oh the joy of hitting the run button Jun 05 06:51:53 :) Jun 05 06:52:35 oh the joy of gaining new insight and knowledge while simultaneously gaining more problems Jun 05 06:53:21 advice needed, I have maybe 20 or so Array/Maps and needing to store them as a single sqlite record, so , combine to 1 map > gson > sql entry etc, and reading it out and deserialize etc, is that an efficient way ? or should I be looking at something else ? Jun 05 06:55:18 an array of 20 Jun 05 06:55:25 or 20 arrays of x Jun 05 06:55:31 the latter Jun 05 06:55:59 20 maps of between 5-40 entires each Jun 05 07:07:11 sorry Jun 05 07:07:21 didnt post the brb that was written Jun 05 07:07:28 :) Jun 05 07:10:07 I dont know about specific efficiency times but why not as a json blob on the filesystem Jun 05 07:10:18 well internal storage Jun 05 07:10:42 well cause this data would need sync ops from local sqlite to remote Jun 05 07:12:07 from remote, as in interwebs? Jun 05 07:12:24 indeed Jun 05 07:12:40 so not really a fan of blob fields either given this case Jun 05 07:12:53 Corporalist: got your nfc working? :) Jun 05 07:13:21 what format is the data being transferred in? Jun 05 07:13:31 as json? Jun 05 07:13:58 or *shudder* JDBC Jun 05 07:15:46 json yeah Jun 05 07:15:57 I mean it seems quick ish Jun 05 07:16:07 just wondering if there was a better way Jun 05 07:19:07 I'm not sure about better Jun 05 07:20:16 tbh Jun 05 07:21:48 ok thats cool Jun 05 07:22:23 basically it's a visual theme set Jun 05 07:22:31 so gonna have lots of them Jun 05 07:22:34 for faster, i would use a json blob and handle updating myself Jun 05 07:23:23 ie compare dates and or hashes to eliminate an unnecessary comparison Jun 05 07:23:29 I'm having some trouble with using nested TabHost/TabWidget instances Jun 05 07:25:53 as far as I can tell, nesting them is vaguely supported, as long as each TabHost's setup() finds the right TabWidget Jun 05 07:26:06 (which it does using the @android:id/tabs id) Jun 05 07:27:20 but here's the catch: my outer tab widget is customized to have the tabs on the bottom (client requirement) Jun 05 07:28:53 which changes the traversal order of findWidgetById to cause the outer TabHost to find the *inner* tab widget's TabWidget first, instead of its own TabWidget Jun 05 07:29:10 which obviously breaks Jun 05 07:29:41 pjdelport: sounds like bad design Jun 05 07:29:44 a little Jun 05 07:30:00 and wrong uses, chuck fragments in there ? Jun 05 07:30:19 it's already fragment-based Jun 05 07:30:20 maybe choose a different UI path to what you want Jun 05 07:30:41 oh so whats the prob with find*byId ? Jun 05 07:31:00 they should be localized to fragments Jun 05 07:31:06 (the inner tab widget is in one of the content panes, which is a fragment) Jun 05 07:32:15 well if a fragment and it's views rely heavily on containers or parents of that fragment, it's not really correct use of a fragment ? Jun 05 07:33:39 the child fragment (i.e., the one tab's content) is fine; it's the parent that breaks Jun 05 07:34:24 breaks with findViewById? Jun 05 07:34:39 because it finds the child's TabWidget before it finds its own TabWidget, when it does the findViewById(com.android.internal.R.id.tabs) lookup Jun 05 07:34:42 right Jun 05 07:35:41 oh then dont use same id's Jun 05 07:35:45 thats just bad Jun 05 07:35:50 as far as i can tell, this usually works when people nest tab containers because each TabWidget is usually before the corresponding tab content frame Jun 05 07:35:59 so each TabHost happens to find the right one Jun 05 07:36:24 so…dont use same id's or tag them and findViewByTag Jun 05 07:36:47 but it happens to break when the layout puts the tab content frame before the TabWidget Jun 05 07:37:10 StingRay_: I didn't write TabHost / TabWidget :) Jun 05 07:37:29 no but you set the id on it right ? Jun 05 07:37:31 :) Jun 05 07:37:51 there's only that id to set Jun 05 07:38:05 it's part of the TabHost API Jun 05 07:38:44 well no Jun 05 07:38:52 I just created a tabhost in a layout Jun 05 07:38:58 and set the id to whatever I want Jun 05 07:39:45 not that I've ever use a tabhost Jun 05 07:39:50 horrid ewww Jun 05 07:39:59 it's not the tabhost's id that matters Jun 05 07:40:29 well whatever it is, dont use same id's in the same view hierachy Jun 05 07:40:32 TabHost itself looks for @android:id/tabs and @android:id/tabcontent inside it Jun 05 07:40:36 I think that is like a big rule Jun 05 07:40:52 i don't get to choose; that's what TabHost uses Jun 05 07:41:07 you what ? Jun 05 07:41:47 StingRay_: I don't get to choose the ids: TabHost requires that you use those Jun 05 07:42:03 oh Jun 05 07:42:27 well are you not supposed to reference tabs on it by the root widget ? Jun 05 07:42:40 as in myTabhost.tabAt(1) ? Jun 05 07:42:48 or something like that ? Jun 05 07:42:59 rather than attempting to find the actual view id Jun 05 07:43:29 StingRay_: this is part of TabHost's setup(), before any of that even happens Jun 05 07:44:06 hang on Jun 05 07:44:11 I can id the tabs Jun 05 07:44:16 I just created a tabhost Jun 05 07:44:42 does it not just use subViews/child of tabcontent ? Jun 05 07:44:48 and I can set tabcontent Jun 05 07:44:54 to be whatever Jun 05 07:45:36 so I have tabWidget, the framelayout as tabcontent Jun 05 07:45:47 right Jun 05 07:45:48 and then just linLayouts tab1,tab2 etc Jun 05 07:48:03 that's all good and working; the problem comes in when you have another, otherwise unrelated TabHost deeper inside some tab, and the outer id.tabs isn't before the outer id.tabcontent Jun 05 07:49:01 but the TabWidget id you can have as what you want Jun 05 07:49:18 or is that fixed ? Jun 05 07:49:22 so the situation is a bit silly: i can have nested tabbed containers, or have tabs at the bottom, but not both at the same time Jun 05 07:49:31 yeah, it's fixed Jun 05 07:50:56 they must be exactly "tabs" and "tabcontent" in the android: namespace Jun 05 07:51:11 or TabHost.setup() will throw an error Jun 05 07:51:24 you can check the source, if you have it on hand Jun 05 07:51:54 seems like a mess of a view Jun 05 07:52:02 or collection of views Jun 05 07:52:17 go with viewPager and indicator or something Jun 05 07:52:23 this is just odd Jun 05 07:52:24 yeah; them's the breaks, apparently Jun 05 07:52:38 from a time when android was very…erm….new maybe Jun 05 07:53:09 I mean in all seriousness you could do your own view like this by extending linearLayout Jun 05 07:53:26 and have 3 containes (2 button areas and 1 content) Jun 05 07:53:38 take less time than using something this old Jun 05 07:53:42 or attempting to Jun 05 07:54:15 it would be nice not to have to reimplement all that stuff, though Jun 05 07:54:27 all the stuff ? Jun 05 07:56:05 everything else that TabHost / TabWidget implements Jun 05 07:56:20 doesn't look to do anything Jun 05 07:56:27 well not much Jun 05 07:56:34 there's quite a bunch of stuff Jun 05 07:56:43 keys, accessibility, styling Jun 05 07:57:58 it's old, but it still works, modulo this problem, and i'm not relishing having to redo both it and the existing layouts Jun 05 07:59:54 subclassing and hacking TabHost to fix the lookup might be the easiest solution Jun 05 08:04:15 hi all :) Jun 05 08:04:23 hi Jun 05 08:05:25 I have a question about sanitizing String to add them in an SQLite DB. I am using SQLiteDatabase.update() method. Just want to know if this method sanitize String or do I have to do it myself ? Jun 05 08:06:05 if you use sql parameters ... it's ok Jun 05 08:06:13 strings will be escaped Jun 05 08:07:53 sql parameters ? what do you mean exactly ? Jun 05 08:08:39 the "?" Jun 05 08:09:27 ok. So yes, I am using it. Thank you :) Jun 05 08:10:31 ugh Jun 05 08:10:41 and ViewPager is only in the support library? Jun 05 08:11:58 is there something close to it in the native API? Jun 05 08:12:48 you gone off using tabHost now ? Jun 05 08:12:55 and no I dont think there is Jun 05 08:13:56 just looking at options, since swiping might be nice to have Jun 05 08:14:20 using the support library isn't really an option, though Jun 05 08:14:37 why not ? Jun 05 08:14:50 not aiming for < 3.0 ? Jun 05 08:15:28 yeah, 4+, and we're already using stuff that isn't supported by the support library, for e.g. preferences Jun 05 08:31:02 what's the closest thing to ViewPager without the support library? Jun 05 08:42:38 hi guys Jun 05 08:42:55 * norbi says hello to everyone! Jun 05 08:43:28 what would be a good way to cache voice recognition? Jun 05 08:43:46 the support library still makes sense on 4+. there is a v13 version of it to use native fragments. proguard can strip out some of the unused stuff. Jun 05 08:44:26 i use it for ViewPager, NavUtils, LongSparseArray, and maybe a few other minor things Jun 05 08:44:27 pjdelport: ViewPager is the thing you should use Jun 05 08:44:28 now my application listens all the time on speech but before sending it to google server i would like to check for cached response Jun 05 08:44:40 kevinb: well, i already have a whole app not based on the support library, that uses stuff like the new preferences things that aren't supported by the support library Jun 05 08:44:50 pjdelport: it is only implemented in the support library for a reason Jun 05 08:44:59 that's fine, you can include the support library and just use the viewpager out of it Jun 05 08:45:10 and adding the support library means in no way you have to use everything from it? Jun 05 08:45:18 you... whatevert kevinb said :) Jun 05 08:47:07 is there actually a v13 of ViewPager? Jun 05 08:47:17 it doesn't look like it Jun 05 08:47:35 no why would there? Jun 05 08:47:39 the lower the number the better Jun 05 08:48:05 timroes: it's not just a matter of not using the parts you don't need; you have port everything over to android.support.v4.app.Fragment instead Jun 05 08:48:16 No you don't Jun 05 08:48:22 it is the minimum sdk version this support library works with. so if they manage to make it work from api level 4 on. so ofc it also works from api level 13 on Jun 05 08:48:36 there is a v13 for FragmentPagerAdapter or FragmentStatePagerAdapter Jun 05 08:48:38 pjdelport: see what SimonVT said. ofc you dont Jun 05 08:48:43 to use native fragments with the ViewPager Jun 05 08:48:43 you just use whatever you want Jun 05 08:48:51 you want to stay with the old fragments, just use them Jun 05 08:49:03 (and with old fragments, i mean actually new fragments :D the one not from the support lib) Jun 05 08:49:09 kevinb: ah, i see Jun 05 08:49:18 re. FragmentPagerAdapter Jun 05 08:49:31 You probably should use v4 fragments tho, always access to new features Jun 05 08:51:49 SimonVT: we already require API level 15+, and that's fine; i don't want to use v4 fragments without very good reason Jun 05 08:52:16 anyone any idea how to cache data of voice recognition? Jun 05 08:52:31 and not sending all of it to google? Jun 05 08:56:58 You get an api that's updated independently of the platform Jun 05 08:57:46 madness Jun 05 08:59:55 SimonVT: that can be as much of a drawback as an advantage Jun 05 09:00:06 drawbacks please? Jun 05 09:00:36 i've seen enough bug reports about differences between the platform and support library to be wary Jun 05 09:01:14 That's why he recommends the support platform. Same Fragment code on all deployed devices Jun 05 09:01:21 Instead of dealing with API 15, 16, 17 differences. Jun 05 09:01:23 At least the bugs are consistent Jun 05 09:01:29 ^-- this Jun 05 09:01:43 timroes: bigger APK, more code complexity, having an additional set of bugs and issues to deal with Jun 05 09:01:43 and the bugs can be fixed way better and faster in the support lib Jun 05 09:02:40 kakazza: you still have parts of the base system, so it's API 15 + support, API 16 + support, API 17 + support Jun 05 09:05:05 Where exactly is the code complexity? Jun 05 09:09:47 are there situations where BLUETOOTH_ADMIN is required to open an SPP socket, but not documented? My app fails on one device with the "Need BLUETOOTH_ADMIN permission" exception Jun 05 09:10:35 kakazza: the support library Jun 05 09:10:36 you can't have code without complexity Jun 05 09:13:13 You talked about an additional complexity, while our argument is that it strips away some of the complexity. Wittingly named "consistent bugs". Jun 05 09:13:21 But you already made your choice. Jun 05 09:14:39 pjdelport: why have you chosen to target 4+ only, would the app be too slow on the older devices ? Jun 05 09:15:05 He is targetting API 15+ Jun 05 09:15:06 Because old devices suck Jun 05 09:15:16 I already forgot what his original question was >_> Jun 05 09:15:43 shmooz: various reasons; it's a client choice Jun 05 09:18:53 i have stereo mic on my device, can i split it and use one for speech to text and the other for recording audio? Jun 05 09:25:23 anyone know how to generate a 1 or -1 randomly that's efficient? Jun 05 09:27:54 first benchmark rand() Jun 05 09:28:08 second, what do you mean by random Jun 05 09:28:24 i just need to add or subtract a number from another number with some randomness Jun 05 09:28:41 SharedPreferences has a .putStringSet() but I'd like to have Map> in there... there are various ways to do this, but do you have a suggestion? Jun 05 09:29:24 Xabster: whats the purpose of that ? Jun 05 09:29:39 to save data in a format that is useful to my app... Jun 05 09:29:46 sqlite Jun 05 09:29:51 i thought generating the second number within a range of -max to max would work but i get randomness that climbs along y = x Jun 05 09:30:37 sqlite is not SharedPreferences Jun 05 09:30:38 correct Jun 05 09:30:38 hello. I've been wondering if anyone is facing a similar issue as I do. I'm working on an application and it is published to google play. I have implemented in-app-billing and it works very well. From time to time we're releasing new versions with changes/improvements and would like to QA it before publishing to google play. I have recently got familiar with Google Play Alpha/Beta testing. It is my suspicion that it takes a significant Jun 05 09:30:38 lol Jun 05 09:30:38 amount of time to get your APK exposed to alpha test users and this will definitely make development/qa process longer. Any inputs on this? or is there a better approach to this issue? thanks. Jun 05 09:30:53 why do you insist on saving it in shared prefs Jun 05 09:30:59 that data is probably better in a table structure Jun 05 09:31:02 in a db Jun 05 09:31:16 than hacking it into sharedprefs, simple key pairs Jun 05 09:31:37 >_> managing a db in android is oo much work, just to save a simple structure Jun 05 09:32:16 * StingRay_ thinks balls2thewall does not know the meaning of "work" :) Jun 05 09:32:33 hell, I want to do your work, whatever it is Jun 05 09:32:34 :) Jun 05 09:32:44 do ho ho Jun 05 09:33:05 are you gonna say the db api for android is super streamlined easy and fast to use? Jun 05 09:33:35 i wish i could put an EROEI index on this Jun 05 09:33:56 balls2thewall: db apis are never easy and fast to use, thats why ppl invented mappers Jun 05 09:34:05 because we only want to save objects and not care about all this sql stuff Jun 05 09:38:10 Hello :p Jun 05 09:41:07 balls2thewall: man, i feel your pain Jun 05 09:41:35 thank gods for things like SimpleContentProvider Jun 05 09:43:19 I'm considering biting the bullet and porting this stuff to ViewPager Jun 05 09:44:04 it looks like http://viewpagerindicator.com/ comes highly recommended as an indicator Jun 05 10:05:49 I am looking for a way to report all exceptions to a service Jun 05 10:05:58 even nullpointerexceptions Jun 05 10:06:21 well, even ones which do not crash my app Jun 05 10:06:35 so from various background threads/etc Jun 05 10:12:23 I have a piece of code that throws EOFException and I'm catching IOException in general - why does the program still terminate saying uncaught exception? Jun 05 10:12:30 zhulikas, hmm, that will probably be impossible Jun 05 10:12:44 Xabster, is EOFException something that inherits from IOException? Jun 05 10:12:50 yes Jun 05 10:12:57 Mavrik, Thread.setDefaultUncaughtExceptionHandler Jun 05 10:13:00 http://docs.oracle.com/javase/6/docs/api/java/io/EOFException.html Jun 05 10:13:00 do you re-throw it? Jun 05 10:13:02 no Jun 05 10:13:06 i print the stacktrace Jun 05 10:13:07 so what I need now is to register handlers in all the threads I'm spawning Jun 05 10:13:10 zhulikas, yes, not the "uncaught". Jun 05 10:13:15 *note Jun 05 10:13:21 true Jun 05 10:13:24 that wont catch handled exceptions Jun 05 10:13:33 I can report handled expcetions Jun 05 10:13:37 becaquse I'm handling them Jun 05 10:13:43 yes, check the source of ACRA Jun 05 10:13:51 it's a library for doing exactly what you want Jun 05 10:13:54 line 6 in this paste is the origin: http://pastebin.com/sYe9f6Cd Jun 05 10:14:08 zhulikas, or just grab ACRA and plug in your exception reporter ;) Jun 05 10:14:09 origin of the exception (and yes I know it should throw it, but why is it saying unhandled?) Jun 05 10:14:26 I'll look into it Jun 05 10:14:27 Xabster, what's the stack trace_ Jun 05 10:15:20 Mavrik: http://pastebin.com/0dBP6e4r Jun 05 10:15:20 ACRA looks promising Jun 05 10:15:25 easy to use Jun 05 10:15:59 although I'm wondering whether Application.onCreate gets called when application is started on boot for example Jun 05 10:16:01 let's debug! Jun 05 10:16:14 zhulikas, yes, Application.onCreate is _always_ called :) Jun 05 10:16:35 cool Jun 05 10:16:36 thanks :) Jun 05 10:19:47 any idea, Mavrik? Jun 05 10:19:55 i'm obviously catching IOE Jun 05 10:20:04 hmm Jun 05 10:20:59 if i try to explicitly catch EOF below the IOE I get a compile error that it's already caught Jun 05 10:22:24 zhulikas: ACRA's good; I'm using it to report uncaught exceptions as well as various other conditions Jun 05 10:22:53 i changed my machine since the last apk publishing and now i can sign my apk Jun 05 10:22:59 exists some way to do it? Jun 05 10:23:07 i have access to the old machine where i signed the apk Jun 05 10:26:54 How to deal with old / obscure browsers? In either case, the amount of users affected is expected to be minimal: Jun 05 10:26:57 1. Chrome Frame for IE. Users will be asked to install Chrome Frame. Might as well ask them to install a modern browser instead. Fail. Jun 05 10:27:00 2. Polyfills (Modernizr + Webshims). Just became old browsers now support some HTML5 and CSS3, doesn't mean they'll render your stuff properly. Fail. Jun 05 10:27:03 3. Look forward, never look back. Block if old / obscure browser (http://ruby-journal.com/how-to-block-old-ie-version-with-rails/) - ask users to install a modern browser. Plain and simple. Win. Jun 05 10:27:51 boytoy: was that supposed to be in this channel ?? Jun 05 10:27:52 lol Jun 05 10:28:28 kinda, hoping to get an android dev's perspective Jun 05 10:28:40 well dont care Jun 05 10:28:43 irrelevant Jun 05 10:28:44 (note that the Android browser would be among "the modern browsers") Jun 05 10:28:45 not an app Jun 05 10:28:47 android dev's perspective on desktop browsers? Oo Jun 05 10:29:05 boytoy: wrong channel Jun 05 10:29:06 :) Jun 05 10:29:11 StingRay_: i beg to differ Jun 05 10:29:20 beg all you want Jun 05 10:29:22 Android has a browser Jun 05 10:29:31 correct Jun 05 10:29:36 has nothing to do with android development... Jun 05 10:29:55 boytoy: wrong channel still, read topic Jun 05 10:30:25 alright cool Jun 05 10:30:50 Hello, just made a tool for myself. but maybe someone else need it as well :) http://android-dpi-converter.warting.se/ Jun 05 10:31:57 warting: cool Jun 05 10:32:08 Action bar icon size is wrong Jun 05 10:32:17 what sould it be? Jun 05 10:32:20 32dp Jun 05 10:32:36 warting: what unit is the size you enter? pixels? dp? doesnt matter? Jun 05 10:32:49 Isn't AB 48dp? Jun 05 10:32:53 @Ge0rG doesnt matter Jun 05 10:35:02 actionbar icon size is updated :) Jun 05 10:36:11 Still not 32dp ;O Jun 05 10:36:47 google says its right :/ http://developer.android.com/guide/practices/ui_guidelines/icon_design_action_bar.html Jun 05 10:37:15 wat Jun 05 10:37:41 That's not right Jun 05 10:38:17 http://developer.android.com/design/style/iconography.html#action-bar Jun 05 10:38:36 wow, thats confusing... Jun 05 10:38:42 ^that's right Jun 05 10:38:58 i guess the first link means the actual place it should fill without the padding Jun 05 10:39:12 then it would fit Jun 05 10:40:26 so actually you should design with a square of 24dp and then just add the 4dp margin on every side Jun 05 10:41:48 doesn't the actionbar add that margin automaticaly? Jun 05 10:44:09 updated to 32 now :) Jun 05 10:45:43 how does persistent data storage work on the emulator? if i write something to SharedPreferences is it saved forever even if i close the emulator window and relaunch or? Jun 05 10:48:06 Works like on a device Jun 05 10:49:34 i'm unsure how that works aswell Jun 05 10:49:53 i believe I wrote some stuff to sharedpreferences and it doesn't appear to be in there when I try to read it after a re-deploy Jun 05 10:50:12 is that because redeploying it creates a new sharedpreferences for that app? Jun 05 10:52:10 Nope Jun 05 10:54:06 okay, i found my mistake Jun 05 10:54:07 thanks Jun 05 10:58:01 well, not completely, look: http://pastebin.com/0jyTy5F6 Jun 05 10:58:23 the first line prints a lot of stuff, the last line prints and empty string Jun 05 10:58:33 hey Jun 05 11:00:13 I am adding a library to my project. I've read on google's andoird dev page how to do it for eclipse, but I am using Android studio so I thought I might check here. Also I am doing it a little differently. Can I just take the .jar files (google play and v4), and just put them in a folder called "lib" in my project, and then rightclick them and "add as library"? Jun 05 11:01:29 Add them like this: https://plus.google.com/u/0/+AndroidDevelopers/posts/4Yhpn6p9icf Jun 05 11:02:05 if the tablet/phone versions have completely diferent starting views how do i manage it without creating a proxy starting activity or writing all logic in one unmanagable file Jun 05 11:02:16 not sure why i can't get the value back from SharedPreferences Jun 05 11:03:54 >_> being able to give activity names from string resources would be pretty handy Jun 05 11:04:58 Hi there, I need push notifications in my app, but i dont want to use google services, any idea how to implement push notifications with php without Google services ? Jun 05 11:07:29 xabster stick a p.commit(); in there somewhere? Jun 05 11:07:43 did that meanwhile, still no string read out Jun 05 11:07:51 i did p.edit().commit() Jun 05 11:08:02 is that wrong maybe? Jun 05 11:08:10 You have to call commit on the same Editor object Jun 05 11:08:26 oh, it's a new editor Jun 05 11:09:57 thanks Jun 05 11:10:47 well that's strange, I got kicked out of #android-dev again Jun 05 11:11:36 anyhow Jun 05 11:11:41 * capella wonders where g00s has been...? Jun 05 11:12:17 Ankhwatcher, there were connection trouble with freenode yesterday/last night, maybe your client doesn't identify with nickserv before trying to join back? Jun 05 11:12:19 I'm taking another run at Android Studio, lets see if I can get the damned thing to work. Can anyone point me at a guide to adding dependencies like ActionBarSherlock and Google Play Services? Jun 05 11:12:49 Zharf: yep, I had a look through the log and that's what happened Jun 05 11:13:10 Ankhwatcher, you should use a password when connecting to the server :) Jun 05 11:13:52 Ankhwatcher, http://freenode.net/faq.shtml#nicksetup step 7 Jun 05 11:14:47 Zharf: meh, irssi isn't perfect, but it's close enough that I don't want to screw with it Jun 05 11:14:59 I have to fight with Android Studio today! Jun 05 11:15:06 Ankhwatcher, I recently messed aroudn with my irssi config because of that fact :) Jun 05 11:15:42 anyway, I never used android studio but in intellij idea you can add dependencies from module settings Jun 05 11:16:05 tbh I can't help but think that you could scrape a bunch of passwords during a netsplit Jun 05 11:17:24 it's an irc nick, no one really cares that much Jun 05 11:18:04 I wonder if you could add ABS directly from Github, seeing as Android Studio seems to be designed to work closely with version control Jun 05 11:18:32 not in IDEA at least, but you can add it directly from maven, I'm pretty sure Jun 05 11:21:29 though not 100% sure if it knows how to download apklibs without the actual pom Jun 05 11:21:40 By the way if anyone wants to check out my android app, I've just updated it: https://play.google.com/store/apps/details?id=ie.appz.popupplaces Jun 05 11:21:42 Gradle doesn't support apklibs Jun 05 11:22:03 who cares about gradle Jun 05 11:22:04 :p Jun 05 11:22:05 feel free to tell me I'm useless and I should go open a stand selling Ice Cream Jun 05 11:22:24 Well, I assume he's using gradle Jun 05 11:23:48 time to put my living room back in order, roomba's done cleaning Jun 05 11:23:59 this time I added my project directly from GitHub, because I had just uploaded up to date code Jun 05 11:24:13 I think I'll be avoiding gradle this time Jun 05 11:25:56 what does gradle exactly do? Jun 05 11:26:06 Build Jun 05 11:26:07 gulli: screw up my project ;-) Jun 05 11:26:30 I'm reading about it now Jun 05 11:26:36 but what are the benefits of using gradle Jun 05 11:26:40 j/k SimonVT's right, as always Jun 05 11:27:11 Compared to? Jun 05 11:27:44 so should I copy Google Play Services into my Android Studio Workplace, or import it from the SDK? Jun 05 11:27:44 eclipse/ant ;) Jun 05 11:28:21 Ankhwatcher: depends, you using gradle or ant ? Jun 05 11:28:49 ant means you can just use it as module from anywhere and have to do next to nothing Jun 05 11:29:04 Sounds promising Jun 05 11:29:15 next to nothing is always the dream Jun 05 11:29:18 gradle means sacrifices to the build GODS at least a small goat and 2 virgins Jun 05 11:29:37 and then there is still no guarentee Jun 05 11:29:38 harder and harder to find virgins these days, I blame the Recession Jun 05 11:29:56 na… i think just everyone is attempting to use gradle Jun 05 11:29:58 queueRunnable for a glsurfaceview is actually very slow if called frequently? Jun 05 11:32:46 Gradle got proper dependency management (via maven central), you can define different build types in your .gradle file (debug, release, whatever), different flavors (free, paid) that's compiled using different resources, different source files, has different package name, etc Jun 05 11:32:47 zharf: are those roombas any good? Jun 05 11:34:27 All with a few lines in a .gradle file Jun 05 11:35:02 SimonVT: yes, but how does that help with the Roomba? Jun 05 11:35:54 I don't know a lot about vacuum cleaners, sorry Jun 05 11:36:19 ahh i was asking zharf i wanted to get one and hack it to turn it into a cat toy Jun 05 11:36:24 I wonder what the Roomba is programmed in Jun 05 11:37:40 Where do you see your errors in Android Studio? Jun 05 11:37:59 In your editor Jun 05 11:38:08 Or at compile time Jun 05 11:38:29 hey guys Jun 05 11:38:34 how I can Allowing Other Apps to Start My Application ? Jun 05 11:38:36 ah, here we go Jun 05 11:39:05 Ando: http://developer.android.com/guide/components/intents-filters.html Jun 05 11:47:17 but how can I use that ? Jun 05 11:48:23 Ando: not sure you have read it enough if your asking that Jun 05 11:48:33 Ankhwatcher: we need when user click in contact call, in opened dialog where has, Skype native call app, there should be our app Jun 05 11:49:08 StingRay_: I read that, but that not resolved my answer Jun 05 11:49:21 cause now your askinig a different question Jun 05 11:49:32 Ando: then (to the best of my understanding) you need to make a provider that provides ACTION_CALL Jun 05 11:51:59 Ando: maybe this will help: http://stackoverflow.com/questions/8834923/android-provide-call Jun 05 11:59:22 Hi all, was there something in google io 2013 that explained something new for downloading images? Jun 05 11:59:42 volley Jun 05 11:59:48 it has a networkimageview or something Jun 05 11:59:52 tnx :) Jun 05 12:00:14 oh duh Jun 05 12:00:38 I was trying to figure out why my project couldn't find @string/debug_maps_key Jun 05 12:01:02 it came from Github you idiot! You'r don't upload your api keys to github! Jun 05 12:02:21 there we go, and now AS can do it's party trick of showing me what the string I have referenced says Jun 05 12:05:28 can somebody explain REST (request) shortly? Is it a sort of service that handles Http requests? Jun 05 12:07:23 does anyone using google checkout as a publisher of paid android apps had a "_weird_" payout? i received (in june) only the payout from the may 25 to may 31 Jun 05 12:07:45 in the middle of may (may 15), i received the payout corresponding to avril 1 to avril 30 Jun 05 12:07:48 there is a hole Jun 05 12:07:51 i'm worried. Jun 05 12:08:03 adq: did you have sales in between? Jun 05 12:08:07 yes of course Jun 05 12:08:18 it's in the ending balance Jun 05 12:08:22 hm... there was a shift of the payout date, for me it was around march I think Jun 05 12:08:31 i know they have to keep an amount in the ending balance for the rollback/refund per example Jun 05 12:08:33 but not so much Jun 05 12:08:36 didn't look too much into it, hope there was no hole Jun 05 12:09:41 lasserix, mine's been very sufficient for me, considering that I would almost never vacuum otherwise :p Jun 05 12:09:57 FrancescoV: rest is an architecture for distributed systems Jun 05 12:10:16 it's not exactly a service. it's a set of principles you keep in mind when developing a web service Jun 05 12:10:56 lasserix, I just need to make sure the floors are clear of stuff that might disturb it like the stuff I had left over from building a computer a couple of weeks ago, and it just rolls around 3 times a week and I clean it up at the end of the week, I've been very satisfied with it Jun 05 12:12:55 Zharf: how does the Roomba handle stairs, ie does it fall down them? Jun 05 12:13:28 cliff sensors Jun 05 12:13:50 Does Android provide a set of stock icons, e.g. the icons for the camera, send email, share, refresh, etc. And if so, how do I access them? I specifically want a camera icon and an add icon. Jun 05 12:13:54 it reflects ir beams off the floor. Jun 05 12:14:18 If these stop, it's found a 'cliff' - and it backs odd Jun 05 12:14:19 Hello there, i got 2 threads. First thread is like a receiving thread that stores data in a queue. Second thread is like a processing thread that takes the data from the queue and sends the data by a handler to the UI-thread so it can be displayed. Both threads are running in a loop btw. My problem here is that not all sent messages are received. I have no idea why thats the case. Any suggestions? Jun 05 12:14:20 off Jun 05 12:15:25 Zta: yes, they are there they are referenced in java as android.R.drawable. Jun 05 12:16:11 Don't use those tho Jun 05 12:16:36 They have a bunch of action bar icons on the design page Jun 05 12:16:48 Use those, or create your own Jun 05 12:17:55 Ankhwatcher, it just ignores them Jun 05 12:18:14 Zharf: how close does it get before it sees them? Jun 05 12:18:28 Ankhwatcher, just close enough to not fall Jun 05 12:18:29 Ankhwatcher: thanks. Is there a list somewhere with all of them? I mean what they look like and their id name? Jun 05 12:22:38 Zta: there's a list here, no images though http://developer.android.com/reference/android/R.drawable.html Jun 05 12:23:21 there's also an action bar icon pack for download http://developer.android.com/design/downloads/index.html Jun 05 12:24:13 Zta: in addition just look in your SDKfolder/platforms/android-(VERSION)/data/res Jun 05 12:25:56 Morning all! Quick question.. Would anyone happen to know if there's a way to initiate a wifi direct connection without requiring a prompt on the receiving device? Jun 05 12:26:43 Ankhwatcher, some people whine that it doesn't handle stairs, but a robot that size that would move stairs ... difficult to implement Jun 05 12:26:45 Ankhwatcher, edman, StingRay_: Thanks, will do =) Jun 05 12:29:42 StingRay_: Lovely, exactly what I wanted. Jun 05 12:31:11 now Android Studio is complaining that this.getClass() is an Ambiguous Method Call Jun 05 12:31:39 uhhuh Jun 05 12:34:03 http://picpaste.com/Screenshot_from_2013-06-05_13_33_05-kbFwoW8P.png Jun 05 12:34:39 wutgui: pastebin some code Jun 05 12:34:44 how are the threads managed, and what kind of queue implementation is it? Jun 05 12:37:14 how do I tell the ActionBarSherlock module that it is a library and add it to the Popup Places module? Jun 05 12:38:19 whats a popup places mod ? Jun 05 12:38:33 oh thats your app Jun 05 12:38:38 StingRay_: yep Jun 05 12:38:41 now that makes more sense Jun 05 12:38:43 :) Jun 05 12:38:57 I'm glad this makes sense to you, because it's confusing the shit out of me Jun 05 12:39:41 How weird. android.R.drawable.ic_menu_star is not found by Eclipse, but I can see it on disk (/opt/android-sdk-linux/platforms/android-14/data/res/drawable-mdpi/ic_menu_star.png -- in android-17 too). I'm have . What am I missing? Jun 05 12:40:46 Ankhwatcher: so u have it as a module ? Jun 05 12:40:58 do you have a facet for it ? Jun 05 12:41:23 cause that has a little checkbox. "Library module" Jun 05 12:41:47 then you just add it to your main module as a dep Jun 05 12:43:10 Zta: yep, not everything is in the SDK, if you want it you can just copy it into your drawable folders Jun 05 12:43:29 StingRay_: facet? Jun 05 12:43:32 Ah, right. Might be safer that way after all. Jun 05 12:43:45 hello there Jun 05 12:43:57 StingRay_: oh, I see, yes it is set as a Library Jun 05 12:44:15 ok well just add it as a dep. in your main module Jun 05 12:45:35 as a module dependency? Jun 05 12:45:37 is tehre anyone here that could help me optimize a problem i have ? Jun 05 12:45:40 *there Jun 05 12:45:55 Zta: there's some magic somewhere that determines what resources are actually exposed as part of the API Jun 05 12:46:11 How do you optimize a problem? Jun 05 12:46:22 the files in SDK/platforms includes extra stuff that isn't exposed Jun 05 12:46:23 zeroZshadow: just tell us what's on your mind and we'll help if we can Jun 05 12:46:43 I have a simple live wallpaper with a shader that makes the background change color based on the time of day Jun 05 12:46:48 http://developer.android.com/reference/android/R.drawable.html lists the ones you can use Jun 05 12:47:00 all my problems are optimized to f*ck, they are all perfect at stifling my productivity ! Jun 05 12:47:14 I pass a number from 0 to 1 to this shader and use this as the X texture coordinate for a nice and smooth transition Jun 05 12:47:23 the problem lies in how i calculate this number Jun 05 12:47:32 every frame i get a calendar instance Jun 05 12:47:37 StingRay_: yeah this error message is pretty well optimized to confuse the hell out of me Jun 05 12:47:45 and i get the feeling this is damn heavy Jun 05 12:48:13 https://play.google.com/store/apps/details?id=com.zerozshadow.fezcubewp Jun 05 12:48:15 this is the application Jun 05 12:48:35 it runs perfectly normal on phones ranging from samsung galaxy s3, to even the htc wildfire s Jun 05 12:49:01 but on some machines, like my asus transformer tf101 and the nexus Jun 05 12:49:18 the image runs smooth, but the rest of the system grinds down to a halt Jun 05 12:49:30 zeroZshadow: stash the calendar instance somewhere? Jun 05 12:49:36 so sliding between home screens goes incredably slowly Jun 05 12:49:53 ffs: http://stackoverflow.com/questions/10386264/getclass-in-abstract-class-gives-ambiguous-method-call Jun 05 12:50:07 have you profiled? it might not have anything to do with the calendar instance Jun 05 12:50:12 pjdelport i thought of that, but it seems the instance does not update its time Jun 05 12:50:23 pjdelport, its my first app, im unsure how i could profile it Jun 05 12:51:00 zeroZshadow: you can start and stop profiling in the monitor / DDMS interface Jun 05 12:51:49 http://developer.android.com/tools/debugging/ddms.html#profiling Jun 05 12:51:55 http://developer.android.com/tools/debugging/debugging-tracing.html Jun 05 12:52:04 thanks Jun 05 12:53:13 I need an algorithm that allows me to apply a twerking filter to photographs Jun 05 12:54:05 twerking ? Jun 05 12:54:43 yup calendar it is Jun 05 12:54:48 27.1% Jun 05 12:54:59 sadly my tablet is not here so i can see if its the same there Jun 05 12:55:01 I had some very strong coffee and now I'm really twerking Jun 05 12:55:22 thanks for the links, ill have a fun day debugging with this ^^; Jun 05 12:55:37 well I just sat here feeling ashmed that in my art/design life, I know not what this twerking filter is Jun 05 12:55:45 it's twerking me off! Jun 05 12:56:03 zeroZshadow: is that the time spent in Calendar? Jun 05 12:56:25 yes Jun 05 12:56:45 http://skreened.com/waverly/the-harder-i-twerk Jun 05 12:57:01 kinda saw this coming, since im using a horrible piece of code to get that 0 to 1 number Jun 05 12:57:39 http://pastebin.com/xJqwiwSn Jun 05 13:01:10 im pretty sure i can do this a different way Jun 05 13:01:26 but ive been unable to think of one sadly enough.. Jun 05 13:02:27 zeroZshadow: is the expensive bit Calendar.getInstance(), or get()? Jun 05 13:02:59 Calendar.getInstance() can potentially look at the locale and a bunch of stuff, which might get expensive Jun 05 13:03:23 you probably want to do that only once, and stash the instance method on the widget or something Jun 05 13:03:47 i can't really think that the get() should be a bottleneck Jun 05 13:03:59 thats what i tried Jun 05 13:04:03 if it's once per frame, that math should be vanishingly small Jun 05 13:04:08 sadly if i do getInstance only once at the start Jun 05 13:04:23 the instance seems to keep the time stored in the instance **** BEGIN LOGGING AT Wed Jun 05 13:15:45 2013 Jun 05 13:15:51 and what nexus ? Jun 05 13:15:52 i tested it on the first transformer Jun 05 13:16:18 the galaxy nexus(toro) Jun 05 13:16:19 pjedelport: here is some code http://pastebin.com/WMmJTsKv its messy atm so i tried to clean it a little Jun 05 13:16:55 zeroZshadow: well I have nexus devices at the side of me so can test if ya want Jun 05 13:17:01 the queue is a normal arrayblockingqueue Jun 05 13:17:14 what is it your attempting to get the 0-1 for ? normalized texture coord ? Jun 05 13:17:24 yes Jun 05 13:17:54 and i not sure how to respond to the managed threads :/ Jun 05 13:18:51 so you would only need to update it (pixelWidthRes / (24*60*60)) seconds ? Jun 05 13:19:17 as in only at points when there is a pixel difference Jun 05 13:19:39 Can I arrange my drawables (lots of icons and xmls) in subfolders? Jun 05 13:20:13 StingRay_, maby, but that might make it jump colors, this way it will automatically interpolate between the 2 pixels with texture filtering Jun 05 13:20:44 there is no between 2 pixels Jun 05 13:20:52 (I could of course tias, but I'm in the middle of something else ;) Jun 05 13:21:12 just the left one and the right one, and would filtering not be a post process reguardless of coord Jun 05 13:22:19 Zta: nope :( Jun 05 13:23:18 StingRay_, hmm i guess i could optimize it a bit more. Jun 05 13:23:26 zeroZshadow: jerky as hell Jun 05 13:23:31 damnit.. Jun 05 13:23:45 standstill for maybe 30ms on page swipes Jun 05 13:23:54 i dont understand how it runs smooth on a phone as sucky as the HTC wildfire S Jun 05 13:24:07 but modern tablets just wont run it well Jun 05 13:24:15 wutgui: okay, so you say only some messages are arriving? Jun 05 13:24:22 can you describe the problem in more detail? Jun 05 13:24:38 yes Jun 05 13:25:05 zeroZshadow: the bg scroll is constant, but the cube looks like it dropping frames Jun 05 13:25:12 mikedg: ok. Jun 05 13:25:12 that i dont quite understand Jun 05 13:25:38 not 1 after another as i expect Jun 05 13:25:50 i don't spot anything obviously wrong with your code, though it is perhaps slightly low-level Jun 05 13:25:56 Geesh... Styles are difficult and spreads out into lots of .xml files, doesn't it?! Jun 05 13:26:31 you might want to look at these methods, if you're not already familiar with them: http://developer.android.com/guide/components/processes-and-threads.html#WorkerThreads Jun 05 13:27:14 especially since it SEEMS to run smooth, untill you slide the homescreen Jun 05 13:27:14 StingRay_, thats odd, it was the other way around first Jun 05 13:27:14 the cube would be constant, and the scroll would just be choppy Jun 05 13:27:32 well no i dont mean the viewPage scroll Jun 05 13:27:35 wutgui: are you doing anything to make sure you're not starting multiple threads? Jun 05 13:27:37 I mean the bg scroll Jun 05 13:28:10 I just find it odd that if you were drawing them together that one could be dropping frames and the other not Jun 05 13:28:24 so obviously your not :) Jun 05 13:28:58 no not realy but i am looking for threads in ddms and there are only 1 of them Jun 05 13:29:34 ok Jun 05 13:30:06 i not sure if its a problem that handler is createt in UI-thread Jun 05 13:31:45 StingRay_, im going at this since morning, taking a little break for some food and a shower ^^; Jun 05 13:32:01 ill upload the source somewhere afterwards if you are interested in why its breaking Jun 05 13:32:18 wutgui: it should be created in the UI thread to run stuff there, yeah Jun 05 13:32:35 gah Jun 05 13:32:54 I've been fucking around with Android Studio for what? 4 hours now? Jun 05 13:32:58 still doesn't work Jun 05 13:33:00 wutgui: try using runOnUiThread / post instead? Jun 05 13:33:20 they should avoid the need to do your own Handler-level stuff Jun 05 13:33:46 and what's the 60ms delay for? **** BEGIN LOGGING AT Wed Jun 05 14:29:26 2013 Jun 05 14:29:41 you could put the logic in a small changeCANValuesThrottled() helper method Jun 05 14:29:56 shouldn't be more than 4 or 5 lines of code Jun 05 14:36:56 but what i dont understand right now if i say in the precessingthread Thread.sleep() and take after that a element from queue shouldnt that be the same behavior? Jun 05 14:39:32 wutgui: that would also throttle it, yes, but not in exactly the same way Jun 05 14:40:24 sleeping in the processing thread will throttle both the processing and the rate of messages Jun 05 14:41:28 throttling the calls to changeCANValues() will process and send messages at the full rate, but only update the UI at a fixed rate (skipping UI updates for messages that arrive faster than the delay) Jun 05 14:43:30 The real question is are you smoothing out burstiness or are you dealing w/ more data than you want to render realtime Jun 05 14:43:40 if it's bursty, you can throttle the delivery rate and still catch up Jun 05 14:43:52 otherwise yeah - you need to process and fwd the messages, and then update the UI independently Jun 05 14:44:33 also assuming your message source can handle being throttled - if you're getting messages from some piece of hardware that HAS to deliver them, you've got to process them or throw them away as they arrive instead of just going to sleep and ignoring them for a bit Jun 05 14:44:43 it rather i get more data i can deal with Jun 05 14:45:47 then you probably want to do what pjdelport was saying - process the data as it arrives, and decouple the UI update so that it updates regularly from the parsed data info, either w/ an average, or the last value, or whatever your data goes into Jun 05 14:47:41 Do you win a prize if you find a bug that can make a device go into a crazy boot loop? ;) Jun 05 14:50:55 a golden spinning brick? Jun 05 14:51:24 wutgui: what's the context for your app, by the way? Jun 05 14:54:51 pjdelport, whats wrong with a golden spinning brick xD Jun 05 14:55:12 its should be a monitoring app for cardata Jun 05 14:57:07 wutgui: ah; in terms of architecture, it sounds like you want a foreground service, then Jun 05 14:57:26 see http://developer.android.com/guide/components/services.html#Foreground Jun 05 14:57:29 and services in general Jun 05 14:58:32 ok thx for advice i'll take a look on that! Jun 05 14:59:22 the service will be responsible for showing an ongoing notification, while it's started and connected, and for managing the worker threads that read and process the data Jun 05 15:00:49 thx gtg now Jun 05 15:05:39 Hi there, I need push notifications in my app, but i dont want to use google services, any idea how to implement push notifications with php without Google services ? Jun 05 15:07:21 what do you mean without google services Jun 05 15:07:28 all push notifications must go through google Jun 05 15:36:40 In the Gallery app, there are photos that appear that are sourced from Picassa or Google+ posts. Is there a way to get the actual image so I can POST it to some service? Jun 05 15:39:37 When I download the adt bundle and try to unzip it it is prompting for a password, this doesn't seem right. Jun 05 15:39:48 Just to be safe I downloaded it again and had the same issue. Jun 05 15:39:59 stop downloading it from a torrent ? :) Jun 05 15:40:28 Not from a torrent Jun 05 15:40:33 from here Jun 05 15:40:34 http://developer.android.com/sdk/index.html Jun 05 15:40:34 was a jk Jun 05 15:40:48 k, 32 bit. Jun 05 15:41:08 oh Jun 05 15:41:13 dl.google.com is down now. Jun 05 15:41:17 which samsung mobile would you guys vote for being one of the most stable and durable models? my range is $100 - $250 ? Jun 05 15:43:14 sgs4, of course Jun 05 15:43:20 otherwise sgs3 Jun 05 15:43:22 on-contract, they can be had for quite cheap Jun 05 15:43:30 not matter where you are, never get a contact phone Jun 05 15:43:32 yeah, just make sure it's an S2/S3/S4 without any prefixes/suffixes. No Mini, no Advanced, no bla. Just a real S2, S3, or S4 :) Jun 05 15:43:32 just has never made sense Jun 05 15:43:45 last time I got a contract with a phone was when I had an xda-exec (htc unviersal) Jun 05 15:43:49 never since or again **** BEGIN LOGGING AT Wed Jun 05 15:48:29 2013 Jun 05 15:48:58 Even if I did overpay (I don't think I did..) at least I didn't have to keep paying for the phone after the carrier had already gotten their money back Jun 05 15:49:04 ok I have a android web related question, I need to host a db online, and want permissions control, I have a few hosting packages just sat here doing nothing, one is a full server, the other is a shared thing, I dont really want to have to manage the full server just for something as simple as what I want, but my shared package dont allow creation of users with permissions, only a single admin user Jun 05 15:49:29 is there no kind of cms hosting pack for sqlite or an intermediate cms > database thing ? Jun 05 15:49:38 see I dont even know what it's called Jun 05 15:49:44 or what I would be asking for :) Jun 05 15:49:54 anyone understand what I just asked ? Jun 05 15:50:04 Why would you want sqlite on the server? **** BEGIN LOGGING AT Wed Jun 05 15:56:06 2013 Jun 05 15:56:10 Hi Al Jun 05 15:56:14 *all Jun 05 15:56:37 dgp: ah something like http://storageroomapp.com/ what they are doing Jun 05 15:56:41 There are some db services with JSON/XML based rest interfaces Jun 05 15:56:44 but something I can just host myself Jun 05 15:56:58 I'm trying to use Gson to get a JSON stream and finding it works great for my app which has SDK 17 Jun 05 15:57:32 is it possible to use it with SDK 8 ? as my client wants the app to run on androidn 2.2 and above Jun 05 15:58:47 MickeySoFine: read the docs Jun 05 15:59:27 I have dgp thats why I'm here because I need the advantage of experience Jun 05 16:00:07 would I be better of using 'Jackson' instead, ut would mean recoding I think Jun 05 16:00:34 Fire it up in an emulator and try it then Jun 05 16:03:54 seriously? you think your saving time by not answering a straight question? lol Jun 05 16:05:50 Hi there fellow Devs! Jun 05 16:06:49 gson works fine on 2.2 Jun 05 16:07:07 and 2.2+ supports java 1.6 anyway Jun 05 16:07:09 or was it 2.3+ Jun 05 16:07:10 I forget Jun 05 16:07:16 as for wanting to support 2.2, wtf Jun 05 16:07:41 pfn: have we chat before? Jun 05 16:08:29 pfn: they want the combined 3% of the market that is 2.2 and below Jun 05 16:08:31 :) Jun 05 16:09:26 Anyone here a broke Android developer? Jun 05 16:09:27 3% is a lot of people. Maybe their app has 40% market share still on 2.2 Jun 05 16:09:45 androidnewb: always! Jun 05 16:10:12 If you're going to support 2.3 which still has a good chunk of users you might as well support 2.2 Jun 05 16:10:42 now that I don't agree with. 2.3 is java 6 as pfn alluded to and you get some sweet convenience APIs in java 6 Jun 05 16:10:46 MickeySoFine: Well, really I was wondering what part of GSON you thought wouldn't work on 2.2 considering it isn't tied to Android Jun 05 16:11:02 Gson works on 1.5 and up which is all versions of Android Jun 05 16:11:30 pfn, when I change my min SDK to 8 Gson comes up with a nullPointerException but if I set it to 17 its fine :-S Jun 05 16:13:24 StingRay_: there's also https://developers.google.com/cloud/samples/mbs/ Jun 05 16:14:10 StingRay: If you have some skillz, I might be the answer to all your problems! Jun 05 16:14:21 Does anyone know if it's possible to modify the "next"/"previous" times in a TimePickerDialog? e.g. http://stackoverflow.com/questions/16944567/modify-the-next-and-previous-times-in-a-timepickerdialog Jun 05 16:15:38 just support 4.3+ Jun 05 16:15:48 you get a user base that knows what they want Jun 05 16:17:23 pjdelport: what is that Jun 05 16:17:26 ? Jun 05 16:17:38 their pay hosting service ? Jun 05 16:25:52 MickeySoFine, so read the source and figure out why it's npe on 2.2 Jun 05 16:29:39 wow two trolls in one day :-O this must be a record Jun 05 16:31:35 Hello! I'm trying to link a library (static or shared - doesn't matter) and use it in another shared library (a native Activity). The big problem here is that the Activity needs the stlport_static standard library and the other library requires gnustl_static. Jun 05 16:32:00 I have tried compiling it as a shared library and link the Activity to it, but it results in a crash when the Activity starts. Jun 05 16:32:50 I have also tried linking the library statically but then I get enormous amount of unresolved references to standard library functions since the std lib is not statically linked into the library (I guess that is the reason) Jun 05 16:33:26 is there a library for adding search functionality to a ListView ? Jun 05 16:33:33 So I guess the question is how I combine code which depends on different standard libraries and linking flags (one is c++ and has RTTI enabled) Jun 05 16:34:12 Zaknafein: well you would want to search the backing data, not the listView Jun 05 16:34:17 and thats quite easy Jun 05 16:34:28 you can also use filters with a cursor etc Jun 05 16:35:39 Looks like SearchView is in API 11, my minimumsdk is api 8 Jun 05 16:37:09 zaknafein: https://github.com/inazaruk/abs-search-view Jun 05 16:37:15 use the backport Jun 05 16:37:57 thanks jgarrick Jun 05 16:38:00 thats what i was looking for Jun 05 16:38:06 ABS has SearchView already Jun 05 16:38:14 You don't need a separate library Jun 05 16:39:13 he didn't mention whether or not he was using ABS Jun 05 16:39:24 im using this: https://github.com/johannilsson/android-actionbar Jun 05 16:39:38 but i might switch to ABS because i saw most people use that Jun 05 16:39:42 ABS is better Jun 05 16:40:02 ABS is terrible Jun 05 16:40:03 what a hack Jun 05 16:40:13 ^JakeWharton wrote it Jun 05 16:40:30 jgarrick: who? Jun 05 16:42:22 some dude thats a square Jun 05 16:42:58 square is like when you dont fit in right ? Jun 05 16:43:06 yeah, round holes and all Jun 05 16:43:14 like the opposite of cool Jun 05 16:43:14 :) Jun 05 16:48:11 so is AndDevCon any good? Jun 05 17:00:36 YO Jun 05 17:02:00 StingRay_: it's just an App Engine project, it seems, so you have the free tier Jun 05 17:03:47 https://developers.google.com/appengine/docs/quotas Jun 05 17:03:52 the quotas are pretty generous Jun 05 17:05:42 1GB Datastore, 50k read/write/store operations per day, 1GB traffic per day Jun 05 17:07:34 ugh, bloody hell Jun 05 17:07:54 so i have this thing partially ported to android.support.v13.app.FragmentTabHost Jun 05 17:08:34 but now it seems to not be finding the contained TabWidget at all Jun 05 17:09:11 FragmentTabHost has a check that does "if (findViewById(android.R.id.tabs) == null)" Jun 05 17:09:38 which goes and creates a new LinearLayout hierarchy with the standard layout, if that's not found Jun 05 17:10:19 for some reason, it's doing that even though i already have android.R.id.tabs declared in my layout Jun 05 17:10:57 which means that the FragmentTabHost is now ending up with two duplicate LinearLayout hierarchies as children Jun 05 17:12:00 why on earth would that be happening? Jun 05 17:16:07 still think a custom view would take longer ? Jun 05 17:16:26 Anyone god any idea of how to fix the width of a tab in the ActionBar? I've got some tabs that I don't want to equal width. Jun 05 17:19:03 <|Agent> Is TextWatcher.afterTextChanged called whenever the user taps a keyboard button, or only when the Editable's new value is committed? Jun 05 17:21:22 Hm, I think I've found something... Jun 05 17:25:17 StingRay_: to reimplement everything that FragmentTabHost does, yes :P Jun 05 17:25:43 FragmentTabHost is already there, and it should work, modulo this weirdness Jun 05 17:26:29 what could be causing it not to find the existing TabWidget? Jun 05 17:28:36 at what point exactly does the child hierarchy of a layout being inflated become valid? Jun 05 17:29:46 FragmentTabHost does that check inside its constructor (after calling the superclass constructor) Jun 05 17:29:58 is findViewById valid at that point? Jun 05 17:30:36 do views get inflated bottom-up or top-down? Jun 05 17:30:41 ok switched over to ABS, looks prettier now ;) Jun 05 17:40:46 im pretty sure top down Jun 05 17:40:54 but it should be inconsequential Jun 05 17:41:28 the view is valid after .inflate Jun 05 17:43:40 Zaknafein: ABS is pretty nice. Three cheers for JakeWharton Jun 05 17:43:54 thanks jake :) Jun 05 17:44:40 mikedg: regarding https://github.com/android/platform_frameworks_support/blob/master/v13/java/android/support/v13/app/FragmentTabHost.java#L119 Jun 05 17:45:10 those constructors call initFragmentTabHost, which does findViewById(android.R.id.tabs) Jun 05 17:46:33 the FragmentTabHost's layout declares a TabWidget with id "@android:id/tabs" Jun 05 17:46:52 will it be valid at that point? Jun 05 17:54:05 if i read this right, it won't be Jun 05 17:54:19 why dont you just create a test? Jun 05 17:55:02 it sounds like you are correct but there may be non -immediately obvious cases Jun 05 17:55:43 mikedg: i'm testing with my app, but it's not trivial to introspect Jun 05 17:56:53 <|Agent> If you setVisibility(GONE), does that apply to subviews also? That is, if I called getVisibility() on a subview, would it also return GONE? Jun 05 17:57:12 JakeWharton, ABS's SearchView works for API 8 ? Jun 05 17:58:02 because androids default searchview is for api 11 Jun 05 18:09:57 i have a checkbox option in PreferencesActivity, how can i check in in my activity that if its checked (selected by the user), do something? Jun 05 18:10:02 im using-> Jun 05 18:10:04 SharedPreferences showMap = PreferenceManager.getDefaultSharedPreferences(MainActivity.this); Jun 05 18:10:06 boolean doShowMap = showMap.getBoolean("showMap", true); Jun 05 18:10:17 then trying to check with "if" but doesnt work Jun 05 18:11:06 I'm using Android Studio and when I switched over to use Theme.Sherlock.Light in my app I get "Rendering problems: The following classes could not be found: TextView) when viewing the layout design of a layout xml file Jun 05 18:11:58 I am having alot of trouble accessing an asset form the assetmanager. I checked the filename. My asset *is* being bundled with the APK but I cannot access it in my debug environment... Jun 05 18:12:29 any help would be greatly appreciated, thank you Jun 05 18:13:35 omid8bimo: what exactly does not work? your code seems fine to me Jun 05 18:14:57 edman: yeah up until this point is ok. next i wanna check if the option is selected, so then i do something about it, but the action is not happening Jun 05 18:15:00 like this Jun 05 18:15:02 if (doShowMap) { Toast.makeText(getBaseContext(), "ShowMap Option Checked", Toast.LENGTH_SHORT); } Jun 05 18:15:05 is it wrong? Jun 05 18:15:20 yes Jun 05 18:15:23 Hey. Can I set how I would be showed in google play ? Jun 05 18:15:24 you never called .show() Jun 05 18:15:33 I wonder If i should create new google account... Jun 05 18:15:46 bluesm: always a good idea Jun 05 18:15:46 bluesm: like, what your name is? yes Jun 05 18:15:58 oh damn! you are totally right! im checking the true value but not showing the Toast for test! Jun 05 18:16:27 i prefer using log over toasts Jun 05 18:16:54 birbeck: But what should i put as "Name" and "Second name" If i want to make the "organisation" ? Jun 05 18:17:34 birbeck: I mean this account have to be accessible to my friend, that I develop with... Jun 05 18:17:37 bluesm: it can be your own name, your business name in google play can be different Jun 05 18:18:05 you dont have to give him the account login, you can add him as a coordinator in google play Jun 05 18:18:32 but if you are thinking about sharing an account, absolutely create a new one Jun 05 18:19:32 if you are going to ever sell apps, create a new one Jun 05 18:19:56 i'm trying to run this in the ADT debugger Jun 05 18:19:56 birbeck: Ok. Thank you very much :) Jun 05 18:20:13 Zaknafein: Yes. SearchView is API 8_ Jun 05 18:20:16 + Jun 05 18:20:32 but it's crashing with java.lang.NoClassDefFoundError: org.acra.ACRA (I'm using ACRA) Jun 05 18:20:39 bluesm: you can even set your personal account as a contributor, so you can still log in to google play developer console using your normal account Jun 05 18:20:51 from my application's onCreate, from android.app.Instrumentation.callApplicationOnCreate Jun 05 18:20:57 pjdelport: My money is on an improper importing of ABS. Is this your first time using ABS? Jun 05 18:21:11 i'm not using ABS Jun 05 18:21:18 (this is for the FragmentTabHost problem above) Jun 05 18:21:27 pjdelport: That issue commonly happens with ABS classes becuase the person messed up the importing and its trying to build ABS before the support libraries are imported Jun 05 18:21:27 pjdelport did you add acra to your manifest? Jun 05 18:21:32 yep Jun 05 18:21:43 it works fine usually; it's just failing in the debugger now Jun 05 18:21:45 is any versions of android support multi window(multi tasking)?? Jun 05 18:22:08 is there something special i need to do to have ACRA work with instrumentation / debugging? Jun 05 18:23:14 <|Agent> If you call addXListener more than once with the same object, are the listener methods called multiple times, or does Android ensure that each listener instance is only included once? Jun 05 18:23:21 Hi. Tried this Q in #android-root; no 'takers'. Trying here ... Jun 05 18:23:22 I've a Samsung Epic4G running Cyanogenmod 10.1-RC4. Bluetooth is (a) unstable, and (b) won't pair with my car. Dropping to non-4.2-based CM7 or CM9,or back to stock 4.1.x fixes the issue. I've filed a bug at CM, with logs, but no real attention's been paid, but implied that there's a problem in ANdroid's 4.2.x BT stack, itself. Jun 05 18:23:30 I've been finding lots of 4.2.x BT problems all over the place -- but no 'primary'/official thread that's addressing it. Jun 05 18:23:35 Anyone have a reference/pointer to what's uptodate & going on with fixing BT on 4.2.x? Jun 05 18:26:08 hi, I upgraded my sdk and now I'm missing android-sdk-mac_x862/platforms/android-12/tools folder.. android-4 has a tools folder for example but android-12 does not, anyone know what happened here Jun 05 18:32:16 DarylXian: is it any better with wifi turned off? Jun 05 18:32:21 does Hackers Keyboard support abbreviation expansion? Jun 05 18:36:38 Is there a way to synchronyze blootooth connection ? Jun 05 18:37:29 no way Jun 05 18:37:39 because it's dongeld with the BT hardware ID Jun 05 18:37:42 Synchronize clocks? Jun 05 18:37:55 the clock ist synced by default in android with the internet Jun 05 18:38:08 monsti: eem Jun 05 18:38:37 monsti: Clock is synced ? You can't be sure... Someone could use my app, but not to connect to te internet... Jun 05 18:38:47 monsti: I need milisecon precision... Jun 05 18:39:17 monsti: Just to send in which moment the button was pressed. Jun 05 18:39:23 no you don't need that Jun 05 18:39:30 if you need that, there is a flaw in your design Jun 05 18:39:55 check andrew tannenbaum's "modern operating system" - this guy tells you - "NO! global clock!" Jun 05 18:40:17 he has 20 pages with reasons against this architecture Jun 05 18:41:50 bluesm: you mean System.currentTimeMillis() or System.nanoTime() Jun 05 18:42:05 that's the highres timer - but not the realtime "clock" Jun 05 18:42:39 The bluetooth hop clock is extremely high speed Jun 05 18:42:51 You can do things with it, but you won't be doing it with the android bluetooth interface Jun 05 18:43:07 monsti: All I do need is synchronized clocks, and know which click was faster... :) Jun 05 18:43:23 dragorn: hop clock ? Jun 05 18:43:23 bluesm: yes nanoTime is what you need Jun 05 18:43:24 oh; you don't actually care about the bluetooth comms itself Jun 05 18:43:52 you'll have yto get the time on both devices, communicate it to eachother, calculate the offset Jun 05 18:43:59 bluesm: but between 2 systems there is no way to make the RTC that precise Jun 05 18:44:04 assume there isn't significant drift OR continually recalculate the offset Jun 05 18:44:21 and then accept whatever level of precision you get Jun 05 18:44:28 there is the RTC algorithm for the timed - but - that is also just a better hack Jun 05 18:44:37 if you're timing human reactions, milliseconds is likely more than enough Jun 05 18:44:45 dragorn: yeah Jun 05 18:45:25 and if you're timing human reactions, i doubt any modern device would have enough clock drift to make any difference if synced once a minute, or even less often Jun 05 18:46:38 and linux isn't a realtime OS ;) so +/- 20ms is what you get Jun 05 18:47:02 yeah i was going to say, the amount of overhead involved in doing a click when the system may or may not be loaded is going to destroy your precision anyhow Jun 05 18:47:14 since I assume this is for a game, all that really matters is it isn't egregiously obvious Jun 05 18:47:58 does anyone know how do I submit a change over another change that I've cherry-picked, but that's not merget yet? Jun 05 18:52:47 <|Agent> haskeller_, this might be informative: http://www.ndpsoftware.com/git-cheatsheet.html Jun 05 19:01:57 dragorn: drift OR continually ? What do you mean ? Jun 05 19:02:10 Guys anyone with Oath experiences? I want to use DropBox API which requires oath to access dropbox account(should be same for any other app) and that dropbox account should be my and I want to authorize token directly in app so user doesn't have to be redirected to login to dropbox. I want to do this because I want all apps to use my account. Jun 05 19:13:17 Launcher how to design? Jun 05 19:17:29 dgp Hi. Unfortunately, no. Seems insensitive to WiFi on/off Jun 05 19:17:29 dgp if it's helpful, here's the issue: https://jira.cyanogenmod.org/browse/CYAN-878?focusedCommentId=14211&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14211 Jun 05 19:17:29 log's attached there ... **** BEGIN LOGGING AT Wed Jun 05 19:35:14 2013 Jun 05 19:36:06 db.execSQL(insert); Jun 05 19:49:50 anyone there wanna work with in a project? Jun 05 20:08:40 Semi-noob here. https://gist.github.com/scumola/5716862 (line 145), calling adapter.notifyDataSetChanged() is not doing anything. My has is populated and my adapter seems to be the right one. Any ideas why I'm not getting any data in my listview? Jun 05 20:08:45 s/has/hash/ Jun 05 20:11:53 swebb, you can only update the adapter from the ui thread Jun 05 20:12:04 i had the exact same problem as you a few days ago Jun 05 20:12:14 you should use runOnUiThread Jun 05 20:14:15 swebb: You have to add the items to the ArrayList the adapter has a reference to Jun 05 20:14:51 Now you're just setting contactList to a new ArrayList, while the adapter has a reference to the old one Jun 05 20:18:37 I hate this method http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.0.1_r1/android/media/RemoteControlClient.java#RemoteControlClient.scaleBitmapIfTooBig(android.graphics.Bitmap,int,int) and the lockscreen cover art imageview which scales the image to fully cover the imageview area.. Jun 05 20:19:23 I'm not sure what density bitmaps I should give it.. Jun 05 20:20:00 also I have to hardcode this: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.0.1_r1/android/media/RemoteControlClient.java#RemoteControlClient.0ARTWORK_DEFAULT_SIZE Jun 05 20:20:06 why's that not public... sigh Jun 05 20:23:39 To mock you Jun 05 20:23:55 also, that 256 max size is just silly Jun 05 20:24:04 the imageview that will hold it in the end might be much larger Jun 05 20:24:11 which will create a blurry bitmap Jun 05 20:24:20 because it'll scale to fit Jun 05 20:24:25 ngh Jun 05 20:27:54 Mockito.when(kakazza.speak()).thenReturn("blahblahblah"); Jun 05 20:28:15 D: Jun 05 20:36:41 Anyone here have any experience converting JSON to XML on android? Jun 05 20:38:32 I wouldn't call that an android problem.. Jun 05 20:39:11 Zharf: It is. I can't find any good way to do it on android Jun 05 20:39:14 I think that's just a terrible problem Jun 05 20:39:28 none of the .jars I've found work on ANdroid for some reason or another Jun 05 20:39:34 hi guys, how do I know when my application loses focus? I have a little audio player and I want the song to stop if I hit "back"/"home"/whatever Jun 05 20:39:47 Hi guys. I'm going mad: where does PackageManager keeps its "database"? I need it to forget a package was ever installed, but when running 'pm list packages -u' it keeps returning it Jun 05 20:42:02 <|Agent> Phr33d0m, activities have an onPause method that you can override, described in the activity lifecycle document. Is that what you want? Jun 05 20:42:51 |Agent: that would be onStop, IIRC Jun 05 20:42:54 |Agent yeah seems I had a brainfart and forgot about that... should I override onPause(), onStop() and onDestroy() for that purpose? Jun 05 20:43:08 Phr33d0m: pick one (probably onStop) Jun 05 20:43:31 evanc I want to cover all possible causes Jun 05 20:43:56 <|Agent> Not sure. From what I understand, onPause is used if there's a toast or keyboard or something that pops up, and onStop happens when user can't even see the activity any more. Jun 05 20:44:23 onPause() is only called when your entire view is obstructed Jun 05 20:44:39 keyboard/toast/dialog/etc will not trigger it Jun 05 20:45:25 birbeck what about keyboard in fullscreen? Jun 05 20:45:26 dear all , i did install room manager . as i know it start support delta files , i do have the cm-10.1-20130604-NIGHTLY-i9300.zip installed and i have the cm-10.1-20130604-NIGHTLY-i9300.zip file in the /sdcard , now today we have this cm-10.1-20130605-NIGHTLY-i9300.zip , how can tell room manager to download the delte files not all room ? ps i have the pro v Jun 05 20:45:51 Phr33d0m: good question, but i dont think so Jun 05 20:48:48 Phr33d0m: then you need to look at (and understand) the lifecycle chart Jun 05 20:49:48 beshoo: #android-root Jun 05 20:49:50 birbeck: it's not only called when your entire view is obstructed. It's called when you're no longer the topmost activity (e.g., you startActivity one that's invisible or dialog-themed) Jun 05 20:51:59 evanc: i thought onPause() was not called when you startActivity on a invisible or dialog activity Jun 05 20:52:17 thay dont talke , there is more than 100 person and no talke ! Jun 05 20:52:32 this channel is for app development Jun 05 20:52:41 try #cyanogenmod then Jun 05 20:53:06 beshoo: there are more than 300 people here and often no talk :)... but this is not the channel for rooting or rom development Jun 05 20:53:35 Hmm, so do I need xxhdpi app launcher icons not just for tablets like the N10 but for devices like the HTC One too? Jun 05 20:53:54 yep Jun 05 20:53:58 birbeck: according to the docs it should be Jun 05 20:54:29 Just the App launcher Icon or all of them? Jun 05 20:54:34 evanc: docs are probably a better resource than my own memory Jun 05 20:54:40 kakazza: all Jun 05 20:54:48 ugh Jun 05 20:54:55 okay Jun 05 20:55:02 kakazza: note, you are not REQUIRED to, but i would definitely do a launcher icon Jun 05 20:55:17 can i run emulator and eclipse on a corei5 (3210M , it is laptop and have low score in http://www.cpubenchmark.net/high_end_cpus.html ) and 4gb ram ?? Jun 05 20:55:28 without lag ?? Jun 05 20:55:31 birbeck: | For example, when a semi-transparent activity opens (such as one in the style of a dialog), the previous activity pauses. Jun 05 20:55:49 weox: try it and see. You know it's free, right? Jun 05 20:55:51 I don't see xxhdpi mentioned in the Android Docs Jun 05 20:56:03 kakazza: it is (somewhere) Jun 05 20:56:12 Great Jun 05 20:56:12 :) Jun 05 20:56:22 evanc : no , problem here i am going to buy laptop , my pc is dual core old pc . i have problem on it with eclipse :D Jun 05 20:56:23 Gotta find the right size for icons. Jun 05 20:56:30 kakazza: xxhdpi is referenced a few times, but not everywhere yet Jun 05 20:57:01 weox: are you using the x86 emulator or the ARM one? the ARM one will be slow on virtually every x86 computer, for obvious reasons Jun 05 20:59:03 evanc : even without emulator , my eclipse run with lag , i try both arch linux 64 and windows 8 , but i have lag in both . but intellij is a little better , but i have some lag in it too , i jast ask is there anybody here run eclipse and emulator on core i5 without any lag ?? something like we see in lecture's on apple macbook ?? or even on corei5 i get lag ?? Jun 05 20:59:21 kakazza: "Standard quantized DPI for extra-extra-high-density screens. Applications should not generally worry about this density; relying on XHIGH graphics being scaled up to it should be sufficient for almost all cases." Jun 05 20:59:35 weox: yes, with atom image and intel haxm installed and enabled Jun 05 21:00:14 birbeck: Depending on when that was written. Jun 05 21:00:22 diminish : what is atom image and intel haxm ?? Jun 05 21:00:28 I think HTC One and Galaxy S4 fall into that category. Jun 05 21:00:51 kakazza: yes they do, lately ive been doing ONLY xxhdpi assets, but thats for concept apps Jun 05 21:02:12 Zaknafein, SimonVT: Thanks. I'll check out your solutions and let you know how it goes! Jun 05 21:02:12 I can't wait for the next level of density Jun 05 21:02:34 no problem swebb Jun 05 21:02:50 weox: android image for x86 arch (atom), haxm is a tool for enabling x86 virtualization used in this case, requires a cpu with virtualization support and execute disable bit enabled (bios setting and also a cpu feature) Jun 05 21:03:06 all is available within sdk manager Jun 05 21:03:34 or rather both of them Jun 05 21:03:51 kakazza: if you want to be lazy, just a launcher icon would suffice. i have a one and an s4 and all apps look gorgeous, and i KNOW they dont all have xxhdpi assets Jun 05 21:03:53 Guys I have app which takes video and I want to load that video and upload it somewhere when I run data.getPath() I get /external/video/media/62 which doesnt seem like path to file so ofc I get file not found exception. Jun 05 21:04:07 kakazza: but when making any new apps or assets, i would definitely make xxhdpi ones Jun 05 21:04:15 diminish : thanks , i am going to buy thinkpad with Intel Core i5-3210M , i hope eclipse dont have lag on it Jun 05 21:06:21 i have i5-2410m, no problem Jun 05 21:06:45 but be sure to get at least 8GB RAM Jun 05 21:07:14 not that 4 won't be enough, but 8 will make things more comfortable Jun 05 21:08:02 (since emu reserves some and you need the rest for eclipse + jvm + os and your other stuff) Jun 05 21:08:11 weox: an i5 with 4gb will work for android dev, including emulator... yes there will be some lag in the emulator, but there always is and it has gotten much better recently Jun 05 21:08:14 diminish : i am so thankful , i was somekind worry about that Jun 05 21:08:56 Zaknafein, SimonVT: Ok, I tried runOnUiThread() and that didn't really do anything different. Jun 05 21:09:05 birbeck : emulator lag is acceptable , but i just was worry about ide and development tools , Jun 05 21:09:18 weox: what os? Jun 05 21:09:41 birbeck : i am on linux (archLinux 64) Jun 05 21:09:43 weox: IDE responsiveness is mostly influenced by HDD speed in that case Jun 05 21:09:48 Zaknafein, SimonVT: … and regarding the contactList thing, I define contactList early in my DashboardActivity class https://gist.github.com/scumola/5716862#file-dashboardactivity-java-L89 and never define it again anywhere. Jun 05 21:10:01 weox: then that should be fine Jun 05 21:10:43 for the best experience get 8GB RAM and an ssd Jun 05 21:11:07 diminish : hdd with 5400rpm is ok ?? or i should think about 7400rpm ?? Jun 05 21:11:56 the dell xps13 developer edition (i7, 8gb, 256gb ssd, ubuntu) works great Jun 05 21:12:27 Zaknafein, SimonVT: Oh, nevermind. I think that I found the second place where I define the contactList. Sorry. Jun 05 21:12:44 swebb, you don't change contactList, you point it at a new list the adapter doesn't know about Jun 05 21:12:44 weox: depends on the model Jun 05 21:13:08 ArrayList> Jun 05 21:13:10 *shudder Jun 05 21:13:17 diminish : wait Jun 05 21:13:30 Zaknafein: Told you I'm a semi-noob. :) Jun 05 21:14:03 SimonVT: Yea, I see that inside db.getNotes, I allocate a new one. Jun 05 21:14:05 usually when your type becomes too long ArrayList, HashMap< .... Jun 05 21:14:08 you should use an object instead Jun 05 21:14:15 has anyone seen an error like this before http://stackoverflow.com/questions/7747268/edittext-seterror-not-working-in-android ? Jun 05 21:15:30 diminish : are you agree with this : http://www.newegg.com/Product/Product.aspx?Item=N82E16834310605 ?? Jun 05 21:16:57 SimonVT: That did it. Got my list refreshed! Woohoo! Jun 05 21:17:17 birbeck : what do you think ? is this ok ? http://www.newegg.com/Product/Product.aspx?Item=N82E16834310605 Jun 05 21:17:46 weox: i cant look over all the specs, but i i5/4gb/linux will work Jun 05 21:18:00 birbeck thanks Jun 05 21:18:14 not the best, but with linux memory management it will suffice