**** BEGIN LOGGING AT Fri Jun 21 02:59:58 2013 Jun 21 03:02:29 I am trying to build/run a project in intellij/android SDK - it compiles ok, everything is hunky-dory, until it tries to "Running tests" - is there a way to have it not try to run tests? I do not see a section in manifest file, so do not know why it is trying to run tests (which do not exist....) Jun 21 03:13:25 should be something under the run config Jun 21 03:16:26 bankai_: tnx - will look there Jun 21 03:26:26 I have an idea Jun 21 03:26:33 http://pastebin.com/PLpfkZkT Jun 21 03:26:41 the commentted out code is what I had before Jun 21 03:26:58 well, almost...it was doing .findFragmentById and transaction.add with just 2 params, no tag Jun 21 03:28:28 is it possible that the fragment got cleaned up by the garbage collector and so trying to resume this activity and then find the fragment by that view id was giving something bogus? Jun 21 03:28:54 since this is in the onCreate, I shouldn't expect the old thing to be around at all...shouldn't care to find it, right? Jun 21 03:29:04 if it exists, I can let it die and just create the new one Jun 21 03:29:11 it'll get cleaned up Jun 21 03:29:21 although, guess I could reuse it if it exists Jun 21 03:29:31 tried adding the tag to not deal with view ids Jun 21 03:29:45 umm Jun 21 03:29:47 so Jun 21 03:29:49 use replace Jun 21 03:29:50 not add Jun 21 03:29:54 pass in the tag Jun 21 03:29:55 then do Jun 21 03:30:03 this is in the activity, inside onCreate Jun 21 03:30:09 the main view Jun 21 03:30:12 not the sublist Jun 21 03:30:19 Fragment mfragment = getFragManager.findFragbyTag("mytag") Jun 21 03:30:36 if mFragment == null ( mFragment = new Fragment ) Jun 21 03:30:45 otherwise you'll get errors Jun 21 03:30:54 because the fragment lifecycle != activity life cycle Jun 21 03:31:22 so then like what I previously had? Jun 21 03:31:34 without the tags, that is what was causing the error Jun 21 03:31:42 (but I had add instead of replace) Jun 21 03:31:43 yeah Jun 21 03:31:47 oh yeah Jun 21 03:31:48 sorry Jun 21 03:31:56 got my head stuck out the door to check on the cat Jun 21 03:32:22 it probably does have something to do with the lifecycles though Jun 21 03:32:24 replace replaces a dummy viewgroup in your cml Jun 21 03:32:29 yeah it does Jun 21 03:32:34 without tags, and without replace, would that be it? Jun 21 03:32:42 but while the activity will get destroyed and created again Jun 21 03:32:55 i believe the fragments float until they're called upon to reattach or something Jun 21 03:33:03 *in an orientation change for instance Jun 21 03:34:10 right, I could see that Jun 21 03:34:27 so the idea was that maybe the fragment was sticking around, but a new activity was created Jun 21 03:34:39 then the activity's onCreate would get called Jun 21 03:34:47 it would getFragmentById (previously) Jun 21 03:35:02 then somehow not work after that?? Jun 21 03:38:13 it would try to add an already added fragment and blow up :P Jun 21 03:38:18 *i think Jun 21 03:39:59 well, it would only go in there if findFragmentById returned null Jun 21 04:11:38 is jackson a good choice on android Jun 21 04:11:57 i'm looking at its full data binding mode Jun 21 04:14:33 any idea why LogCat shows a ? under the 'Tag' section? Jun 21 04:14:38 even though I am setting a Tag Jun 21 04:15:29 is it over 23 chars or something ? Jun 21 04:19:36 whats the best way to get the ListView scrollY ? doing listView.getChildAt(0).getTop() isn't working as well.. seems get Top is being reset so it goes from 0 > -N then backt o 0 Jun 21 04:34:42 xastey, that's tricks as you have no idea how big view that don't exist are Jun 21 04:34:46 *tricky Jun 21 04:36:59 well within one view it will be docked Jun 21 04:37:16 I think I got it working for listView now.. have to tackle the grid view Jun 21 05:34:37 wait a minute, a fragment that belongs to an activity lives as long as the activity lives Jun 21 06:10:42 ProgramMax: not necessarily Jun 21 06:12:06 anyone updated android studio 0.1.6? Jun 21 06:12:34 I'm having R file symbol not found errors after the update.. Jun 21 06:12:47 http://developer.android.com/reference/android/app/Fragment.html#Lifecycle Jun 21 06:12:54 that seemed to say so Jun 21 06:14:25 when did 1.6 get released? Jun 21 06:14:40 ProgramMax: setRetainInstance(true) on the fragment and rotate the phone Jun 21 06:14:45 the activity will die, the fragment will live Jun 21 06:14:53 ooohhh Jun 21 06:15:32 that might be what's going on Jun 21 06:15:40 my fragment has setRetainInstance(true); Jun 21 06:16:01 but shouldn't my activity trying to findFragmentByTag find it, then? Jun 21 06:19:11 billybigrigger: 10 hours ago Jun 21 06:21:50 is there anyone having same problem? Jun 21 06:30:20 oh wait a tick Jun 21 06:30:24 this seems to be working now Jun 21 06:30:47 is it possible that .findFragmentById was returning something different than I was expecting? Jun 21 06:48:07 yes Jun 21 07:08:13 can anyone tell me what could be horribly wrong in https://github.com/helicopter88/android_packages_apps_ChangeLog/blob/3041f9ec0ad95f628d4998adcfc9d2a4d477202c/src/com/helicopter88/changelog/MainActivity.java (I get it to print Unable to parse changelog in my listview) Jun 21 07:11:32 fucking connection Jun 21 07:23:08 Is the Android emulator's SQLite database cleared each time I compile and run my app? Is it possible to keep it? Jun 21 07:24:27 It's not. It's only cleaned if you uninstall the app. Jun 21 07:26:43 or clear data Jun 21 07:26:47 in app settings Jun 21 07:27:39 * StingRay_ guesses that amagee clears it onCreate/Upgrade or something :) Jun 21 07:28:54 hmm ok maybe something else is going on, i'll check, thanks Jun 21 07:38:11 hello, guys/girls how can I include actionbarsherlock in the new android studio Jun 21 07:38:24 or should I say what's the right way to include an external project as a library Jun 21 07:38:26 there Jun 21 07:40:11 there no info on that topic ? Jun 21 07:40:18 sure your not the 1st to want to do that :) Jun 21 07:41:05 We will provide a UI to configure project settings later. Until then, please manually edit your build.gradle file to configure source folders, libraries and dependencies. Jun 21 07:41:06 NOTE THAT EDITS MADE IN THE FOLLOWING DIALOG DO NOT AFFECT THE GRADLE BUILD. Jun 21 07:41:06 The dialog can be used for temporary adjustments to SDKs etc. Jun 21 07:41:07 there is Jun 21 07:41:08 but Jun 21 07:41:08 :D Jun 21 07:41:44 hey tagrudev Jun 21 07:41:46 so you want to read http://www.gradle.org/docs/current/userguide/dependency_management.html Jun 21 07:42:08 : Jun 21 07:42:30 or http://tools.android.com/tech-docs/new-build-system/user-guide Jun 21 07:42:40 i suspect that the second link will be more useful right now Jun 21 07:46:54 oh boy Jun 21 07:46:55 :D Jun 21 08:07:29 tagrudev, I think JakeWharton hasn't pacakged ABS as a Gradle-compatible AAR yet. Jun 21 08:11:30 Is there a real working solution to keep row selection highlighted using a listSelector before API 11? Jun 21 08:12:59 are you saying there isn't ? Jun 21 08:13:24 cause if not then dont use a listSelector Jun 21 08:13:40 if it doesnt have the states you need < api 11 Jun 21 08:14:13 I just need to highlight the clicked row Jun 21 08:15:22 Some tutorials say we have to use ?android:attr/activatedBackgroundIndicator but it's not available before API 11 Jun 21 08:15:54 Other solutions are based on BaseAdapter http://bestsiteinthemultiverse.com/2009/12/android-selected-state-listview-example/ Jun 21 08:16:59 Mavrik, I guess so Jun 21 08:17:08 at least I can't manage to run it in my project Jun 21 08:18:48 JulienDev: or just manually store and monitor a state Jun 21 08:18:58 and set something visual to indicate it Jun 21 08:20:56 if you delete a paid app, do you have to repay again to download it? Jun 21 08:21:10 cause i can't download it now Jun 21 08:31:00 rved: no Jun 21 08:31:09 ok great Jun 21 08:31:17 yes i downloaded it again without problems Jun 21 08:42:58 to create a tab view with 3 tabs containing 3 listviews,do I have to copy the xml part of listview inside every tab part? Jun 21 08:47:58 helicopter176: up to you Jun 21 08:48:24 you dont "have to" do it any particular way Jun 21 08:48:44 StingRay_, what happens if I keep only a listview and 3 tabs? Jun 21 08:48:53 if I press on tab 2 the list is going to disappear? Jun 21 08:49:28 well, it will be on tab1 Jun 21 08:49:35 but not on other tabs,right? Jun 21 08:49:43 ya Jun 21 08:49:50 obviously Jun 21 08:50:06 or what would be the point of tabs if they showed the same thing Jun 21 08:50:30 StingRay_, pheraps one would want to change contenent of the list on tab change Jun 21 08:50:51 well then thats a button Jun 21 08:50:55 not a tab Jun 21 08:50:57 :) Jun 21 08:51:02 wouldn't look as pretty,though Jun 21 08:51:09 oh well,3x lists sounds the best idea Jun 21 08:51:14 it would look as crap or as good as you want Jun 21 08:51:44 well, as good or crap as you have the ability to make it Jun 21 08:52:14 definately as crap Jun 21 08:52:16 My "sosial network for killers" just got an icon update. I fear StingRay_'s judgement... Jun 21 08:52:40 ooo nice Jun 21 08:52:45 rly? Jun 21 08:52:49 well anything better that 2 words Jun 21 08:52:54 link ? Jun 21 08:53:14 https://play.google.com/store/apps/details?id=net.kjeldahl.tournman Jun 21 08:53:19 and you should never fear the opinions of amateurs or pro's Jun 21 08:53:35 "social network for killers" hmmm, that sounds like a network that would eventually take care of it self. Jun 21 08:53:37 both have no real weight unless you take it as such Jun 21 08:54:07 hmmm Jun 21 08:54:28 my opinion is extremely important btw Jun 21 08:54:39 and i'm confused about what i'm looking at Jun 21 08:54:40 You saw that joke about a potential hire being asked in an intervu being asked about one of his weaknesses? Jun 21 08:55:25 "I'm very honest." he said. The interviewer respondend "I do not think that is a weakness." Jun 21 08:55:32 well…there would be 2 things I would experiement with Jun 21 08:55:40 as in directions to take it Jun 21 08:55:49 "I do not give a fuck what you think" the potential hire replied. ;- Jun 21 08:55:54 cause I see 3 problems with that icon Jun 21 08:56:00 Hit me! Jun 21 08:56:03 well 3 crits from my perspective Jun 21 08:56:08 just mho Jun 21 08:56:28 in order, 1. the type/font/name Jun 21 08:56:53 if it's there it needs to be clear/clean and bold enough to instantly see and read Jun 21 08:57:07 that line about "unfortunate circumstances with Google Play publishing" already makes me think this app is a joke Jun 21 08:57:07 Yup, ideally some "TV style" bolded font. Agree. Jun 21 08:57:35 2. the use of "real" objects on a computing platform is not a good idea, (given a context of surrounding UI elements) Jun 21 08:57:47 how do users get a notice that there is a new version availabe? Jun 21 08:57:51 does this go by default? Jun 21 08:57:52 so that ball is close enough to real world for that to ring alarm bells for me Jun 21 08:57:56 or do you need to write a script? Jun 21 08:57:57 But damn, that tennis ball looks great on my amoled screen. Jun 21 08:58:15 rved: User selectable. Jun 21 08:58:35 ok, so the play store manages this? Jun 21 08:59:01 rved: Usually yes. You could push messages if you like to annoy your users, like all the child apps do. Jun 21 08:59:15 3. is the backing/background/base Jun 21 08:59:24 hmm ill consider it, but i don't think i wanna spam them Jun 21 08:59:32 and it just comes down to a rule of presensce and space Jun 21 09:00:05 Thanks, great feedback. I think I'll chalk it up as good enough for a MVP until I am willing to pay for real help. Jun 21 09:01:01 The children apps push messages to get the kids attention; just like I have to repeat every message 10x to my own kids. It's depressing. Jun 21 09:05:08 pragma-: Yeah, it's tragic. Try pushing an alpha version to prod by mistake one time while you have an ongoing alpha/beta test active, and try to come up with a better solution. Jun 21 09:05:15 is there some recommended pattern to follow if I would like to create something(service probably) which would allow remote configuration of a tablets (various settings in a few sqlite databases in userdata) Jun 21 09:06:03 One solution is de-publish and re-publish with a new package name, but then you need to bug the users in your test community and have them join yet another test program. Jun 21 09:06:56 well you should always postfix package with "beta" if pre-release Jun 21 09:06:59 problem solved Jun 21 09:07:03 and it be free Jun 21 09:07:19 Great, let me fire up that time machine in my back yard. Jun 21 09:07:23 then you have the freedom in the limited console to do what you need to Jun 21 09:07:38 basically I'm creating some kind of a kiosk solution - tablet has some preconfigured defaults and the user is allowed to tweak it as needed, but once the tablet is returned there should be some easy way(automatic) to restore it back to default settings Jun 21 09:08:36 Good advice for next time though. Jun 21 09:08:59 ynezz: you're probably better rolling your own ROM Jun 21 09:09:12 To any lurkers, that sentence "and it be free" is important. If you publish as free you can not change it to paid. Jun 21 09:10:50 bankai_: yep, but even in my own ROM I need something which would handle this - I'm quite new to Android and I'm unsure if the custom service is the right path Jun 21 09:12:29 what you're describing, unless i'm making too many assumptions, requires root, so the ideal solution is to create a custom ROM Jun 21 09:13:02 * StingRay_ disagrees with bankai_ Jun 21 09:13:24 unless you wanted to add/remove major system components, ROM is irrelevant Jun 21 09:13:31 hi, when i start service in One Activity by: startService(new Intent(Act1.this, MyService.class)) , can I stop that service in another Activity by : Jun 21 09:13:33 how? Jun 21 09:14:26 StingRay_: yep, I don't need to add or remove anything, "just" tweak the settings in various sqlite databases Jun 21 09:14:29 mikeyMike: send an intent to it ? broadcast ? local broadcast? bind to it ? use event bus? get it to stop itself ? Jun 21 09:14:47 ynezz: system (android) databases ? Jun 21 09:14:53 if so which ones ? Jun 21 09:14:53 ynezz: just create a backup with the default settings, and wipe/restore on return Jun 21 09:14:54 yep Jun 21 09:14:57 get it stop itself? Jun 21 09:15:06 how is called the small header in the list in Settings (such as the one before Wi-fi in 4.2.2) ? Jun 21 09:15:11 if(doingnothing)selfStop(); Jun 21 09:15:18 mitch0: it needs to be controlled remotely, no option Jun 21 09:15:30 like MySerive.stopSelf() in Act2? Jun 21 09:15:47 i want to stop it after clicking a notification (when Act2 starts) Jun 21 09:15:54 mikeyMike: no, well yes if it;s bound in that way Jun 21 09:16:09 bind to the service, catch the bind in the service, clean up and finish Jun 21 09:16:14 so do i have to use bindService instead startService? Jun 21 09:16:15 just use a localBroadcastManager message to stop it then Jun 21 09:16:31 hiho guys... do i need fragments to use viewpager with multiple listviews? Jun 21 09:16:58 if (active) { do all the things; } ... if (nextAction) { active = false; } Jun 21 09:17:00 StingRay_: so far just a stuff in com.android.providers.settings, com.android.settings, /data/system/locksettings.db Jun 21 09:17:06 how about something like that? Jun 21 09:17:56 anyone? plox? Jun 21 09:19:04 ciurkut: no Jun 21 09:23:47 what local broadcast gives us> Jun 21 09:23:48 ? Jun 21 09:26:37 so i cannot use stopService(new Intent(Act2.this, MyService.class)))? Jun 21 09:27:27 try it lol Jun 21 09:27:37 will take like 10 seconds to test Jun 21 09:27:52 rather than waiting for 10 minutes on here for anyone to respond Jun 21 09:28:35 how can i open image with some size, or zoomed in webview, im using on my html page window.open with parameteres but im getting same thing... any similiar issues or could somebody give me hint...? Jun 21 09:29:38 i tried and it doesn't work and i wanted to ask why:) Jun 21 09:29:46 I'm trying to create a custom ImageView which is able to draw rounded corners just to one corner. I've tried a lot of examples found via google & stackoverflow, but none of them do render a rounded corner. Can someone give me a hint where to start? Jun 21 09:30:48 memoryleak: shape + shader = anything you want Jun 21 09:31:45 can even control how the roundness is calculated for each indipendant corner Jun 21 09:31:47 :) Jun 21 09:35:33 hmmmm, maybe something with getIntent() in that second activity... Jun 21 09:37:32 StingRay_: Do you have any examples of it? Jun 21 09:37:47 no Jun 21 09:38:12 but minus images, I'm doing dynamic creation of shaders/shapes/layers right now Jun 21 09:38:20 so that why I ventured an answer Jun 21 09:39:19 so adding a bitmapShader to my stuff (which I will do eventually) seems like a logical step Jun 21 09:39:38 since all the other functionality is there, dont see why it would not work Jun 21 09:39:46 could be wrong though, cause never tried it Jun 21 09:40:01 but from what I know and understand at this point, it should be fine Jun 21 09:41:02 memoryleak: be aware, 1 thing caught me Jun 21 09:41:22 anybody help for my problem?:) Jun 21 09:41:26 changes from android versions < 4.1 Jun 21 09:41:43 constructors and internal workings of things like layeredDrawables Jun 21 09:41:55 cause me NPE internal to the drawable (not my code) Jun 21 09:42:19 StingRay_: I'll be happy if I can one version to work. Jun 21 09:42:27 StingRay_: But thanks a lot for the info Jun 21 09:42:40 memoryleak: there are libs out there for this you know Jun 21 09:42:51 libs for imageViews that are rounded Jun 21 09:43:05 and async image libs that can load rounded image versions Jun 21 09:43:21 kidinjo: not sure what your question is Jun 21 09:43:28 load an image at a specific size ?? Jun 21 09:44:08 yes Jun 21 09:44:16 in webview of course Jun 21 09:44:22 what ? Jun 21 09:44:29 why a webview ? Jun 21 09:44:50 cause i got that problem:D Jun 21 09:45:11 i must do that, no matter about other solutions Jun 21 09:45:19 oh, good luck Jun 21 09:45:50 i know about other solutions and by calling image scale etc Jun 21 09:45:59 but thats the problem :/ Jun 21 09:46:10 dont use a webview Jun 21 09:46:17 this is a mobile platform Jun 21 09:46:21 not a web platform Jun 21 09:46:22 :) Jun 21 09:46:30 heh, u are right Jun 21 09:48:42 Hello! I have anyone faced with following problem: in my app camera tries to autofocus again and again but, going from clear to blurry, clear to blurry? Jun 21 09:48:53 on DROID4 Jun 21 09:49:39 speaking of cameras, has anyone released any real fine tuneable api for their cameras that are useable ? Jun 21 09:49:56 like apeture control etc ? Jun 21 09:51:09 what's faster in Java Android: sqrt(x) or pow(x,0.5)? Jun 21 09:51:25 I suspect sqrt Jun 21 09:51:29 I'll go with sqrt Jun 21 09:52:27 You're worried about that?? Jun 21 09:53:37 It's going to be calculated several thousand times in a loop; yes I'm worried Jun 21 09:54:12 you should use either, and then profile Jun 21 09:54:20 If you're planning to optimize at that level, you need a testing/instrumentation framework going already, and that question would have been answered in 30 seconds. Jun 21 09:54:30 I am sortof sure that either of those won't be the prime drivers of performance Jun 21 09:54:36 +1 to kidinjo. Jun 21 09:55:22 I figured I'd optimise when the time comes and ask around for the quick questions Jun 21 09:55:35 *the things that can be answered with quick questions Jun 21 09:55:53 YuviPanda: you mean kjeldahl Jun 21 09:55:54 You're already optimizing, and possibly wasting your time in the wrong places. IMHO. Jun 21 09:56:00 gah, sorry :) Jun 21 09:56:15 * kjeldahl snags +1 Jun 21 09:56:21 hi :) Jun 21 09:56:35 Achillion: https://developer.android.com/tools/debugging/debugging-tracing.html is probably going to give you answers much better than IRC could Jun 21 09:56:53 Achillion: it's also not that hard to setup.. Jun 21 09:57:13 * YuviPanda has found it very useful in the past while debugging perf issues Jun 21 09:57:14 I'm not already optimising if I just check if there's general knowledge for a simple operation while I'm writing it. Jun 21 09:57:19 YuviPanda: thanks! Jun 21 09:57:26 Achillion: When the time comes around for optimizing your working code, you may even want to look at Renderscript etc... Jun 21 09:57:28 general knowledge, I think is, 'it does not really matter' :) Jun 21 09:57:37 I guess Jun 21 09:57:54 I gave traceview a try yesterday Jun 21 09:57:55 i'd like create ListView without xml layout, ok it works but how can creare an ArrayAdapter without xml layout? I need a simple item ImageView+ TextView, is there some dafault android layout for ListView ? Jun 21 09:58:05 Will definitely use it later on Jun 21 09:58:11 as for renderscript, yes I have that in mind Jun 21 09:58:57 wait, i found android.R.layout.activity_list_item :) maybe it's perfect for me Jun 21 09:59:19 Achillion: also, I think traceview is sortof deprecated. You should use DeviceMonitor now :) Jun 21 09:59:24 (https://developer.android.com/tools/help/monitor.html) Jun 21 09:59:35 well, traceview is integrated into monitor Jun 21 10:01:18 yeah, that's what I meant. Jun 21 10:01:24 :) Jun 21 10:01:27 good luck Achillion :) Jun 21 10:01:32 Easy to find and run in android studio Jun 21 10:01:33 thanks :) Jun 21 10:01:34 there's also NDK to look at. Jun 21 10:01:57 I know, I'm drowning in options (which I guess is better than no options at all) Jun 21 10:02:22 I guess I should focus on getting it to work first and stop worrying Jun 21 10:02:55 +1 Jun 21 10:03:01 'make it work, make it work right, make it work fast' Jun 21 10:03:16 hi YuviPanda Jun 21 10:03:22 hi lut4rp Jun 21 10:03:30 Good to see you here Jun 21 10:03:41 Getting into the Android routine now, are we Jun 21 10:03:42 :P Jun 21 10:03:59 lut4rp: i've been here for a while :P just lurk Jun 21 10:04:16 lut4rp: funnily, I'll probably not be touching android for a couple of weeks now. Doing PHP stuff Jun 21 10:04:26 nice Jun 21 10:04:29 language Jun 21 10:04:29 man Jun 21 10:04:56 lut4rp: mw does have a nice architecture, so not all that bad Jun 21 10:06:25 is there an intent I can fire to let the user choose a name/phone number from the contacts app? Jun 21 10:11:11 Ge0rG: that would be nice Jun 21 10:11:40 so, nothing readymade? no startActivityForResults(com.android.contacts.Foo)? Jun 21 10:12:01 Ge0rG: Look at the PickFriendsActivity example. Jun 21 10:12:02 :) Jun 21 10:12:29 if there was, I may consider ditching the one I had to make and changing to it Jun 21 10:12:31 Gah, wrong one. That was Facebook. Jun 21 10:12:57 Here: Jun 21 10:12:59 Intent intent = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI); Jun 21 10:13:01 startActivityForResult(intent, reqno); Jun 21 10:13:07 kjeldahl: thanks Jun 21 10:14:40 ah single contacts yeah Jun 21 10:15:00 that dont work with multipile ? Jun 21 10:15:29 not that i know. my use case is single. Jun 21 10:15:47 lolwut. google play is forcing "sound search" upon its users? an app that is displayed as "update" but was never there before and can't be uninstalled? Jun 21 10:17:19 (I _hate_ it how you can not exclude apps from "update all") Jun 21 10:18:06 well, that would not really be update "ALL" Jun 21 10:18:13 and you can disable it if you really want Jun 21 10:18:18 StingRay_: how? Jun 21 10:18:46 appManager Jun 21 10:18:50 disable Jun 21 10:18:51 :) Jun 21 10:19:16 Update all is like a select all button. There's no reason for it to have exclusions. If you want to keep an app from updating, just click the update button on all the individual ones you want Jun 21 10:19:19 I'm kinda new to Android programming. I'm still a bit lost with it in eclipse. I am playing around with a fullscreen activity, but somehow lost the graphical look at the form design where you can drag buttons on etc. How do I get that view back ? Jun 21 10:19:46 StingRay_: cool, thanks Jun 21 10:20:06 Unknown0BC: right click the xml and select open in graphical editor (I don't remember the exact names) Jun 21 10:20:16 Achillion: yeah. I'm f*cking tired to have to do three clicks per app for dozens of apps Jun 21 10:20:33 I don't remember if there's a tab to switch while in the xml view, there might be, Unknown0BC Jun 21 10:21:33 Achillion, ah thats it thanks man. ( and wasnt it obvious ? ) Jun 21 10:21:36 I don't think app freezing is something they considered a reasonable option when they were building the market, though. Jun 21 10:21:38 :) Jun 21 10:21:40 :) Jun 21 10:29:24 hi. if i have a webview , how can I save the current scrolling position? Jun 21 10:31:04 why does screen recording require root for every app i've seen that does it? Jun 21 10:34:27 mdev: potential malicious intent, I would guess Jun 21 10:35:19 if you can capture what's on the screen, that's basically just given your app access to view almost everything that happens on the phone Jun 21 10:35:21 rops seems odd considering users content to privledges apps require regarding other things, like networking, files etc... Jun 21 10:35:44 so can apps not record the screen without root? Jun 21 10:37:37 hm when i'll kill activity and all services which are started within that activity, is that will disappear from processes? Jun 21 10:39:53 when i'll kill activity (by finish() or smth like that) would I kill the process too? Jun 21 10:40:28 i mean, i have tried but it last in processes Jun 21 10:42:53 I own a nexus 4 and i find processes/services rather annoying personally Jun 21 10:43:27 I wish I could just close them out easier, even swipping them from the minimized screen doesn't close some Jun 21 10:43:34 I guess becaues they have a process running Jun 21 10:43:38 service rather Jun 21 10:47:57 let the poor processes live, man! Jun 21 10:55:15 Hello Jun 21 10:55:24 Anyone familiair with the Facebook SDK? Jun 21 11:02:08 Mement: Barely. Jun 21 11:03:09 kjeldahl; Ok, let me summarize my problem Jun 21 11:03:48 The only good thing I can say about it, is that it runs on the emulator (which most of the google stuff does not)! Jun 21 11:04:01 Excuse me, is there a way to pull an app off the device using adb? This was built and installed from another developer's machine and is an older version. Jun 21 11:04:17 I'd like to preserve the version since his code changes aren't in our repo (lost) Jun 21 11:04:38 Yesterday I got my login function working properly, but I can't find a solution to post an automatic message to the timeline. After I found out, I followed a new tutorial using Fragments. But with this tutorial I'm receiving weird errors. Like: http://i.imgur.com/nX5PA5e.png Jun 21 11:04:42 I'd like to keep a copy of the APK to be able to install it for demos while we re-implement some of the features. Jun 21 11:04:54 adb uninstall to remove it, adb pull to copy it out Jun 21 11:05:16 In the OTHER order if you want to keep a copy of it (pull first, then uninstall if needed). Jun 21 11:06:16 adb pull reverse-dns-name-of-app ? Jun 21 11:06:32 No, the path and name to the apk. Jun 21 11:06:34 Do I have to specify some path before that? Jun 21 11:07:35 hmm /data/app Jun 21 11:11:00 Mement: Looks like the "super" does not have a method with those parameters. See FragmentActivity docs... Jun 21 11:12:05 kjeldahl; Yes, I understand. Hoping someone would refer me to something else regarding the official Facebook SDK tutorials. They are really outdated/not working :) Jun 21 11:12:05 progzer: /data/app looks like the right place yes. Jun 21 11:12:41 Mement: I'm not much use to you then, I let the SDK pull in its butt ugly friend selector and leave it at that. Jun 21 11:12:51 StingRay_: I've created this method, which adds a 20px radius to the top left corner. But it should add on the top right corner too, but it doesnt: http://pastie.org/8066065 Jun 21 11:13:08 Hmm, I've tried pulling files using adb previously too, I always run into remote object '...' does not exist. Jun 21 11:13:26 DDMS doesn't "browse" into directories either. Jun 21 11:13:40 (Into the data directory) Jun 21 11:16:03 I haven't tried pulling user installed apps, only system apk's, so I do not know for sure that it works with user apps. Sorry. Jun 21 11:16:35 If it is a licensed app, I know it is more difficult (need to be installed on a rooted device), but without protection I thought it was easy. Jun 21 11:17:38 has anyone an idea why the code just adds topLeft corner radius? Thats the output: http://cl.ly/image/461i062H323T Jun 21 11:17:54 http://pastie.org/8066065 Jun 21 11:18:20 I have 3 tabs,each tab comes with a listview,but each tab's content appears empty as lists get filled after the creation of tabs,any way to notify tabs to update themselves? Jun 21 11:46:19 helicopter88: if the ListViews are updated, there's no need to tell the tabs to update Jun 21 11:46:34 how are you updating the ListViews? Jun 21 11:46:50 notifyDataSetChanged Jun 21 11:47:34 pjdelport, I'm thinking it's something in the xml Jun 21 11:48:30 hi! is there some kind of email support for android developers? i have some questions about how i can make my app be found more easily on the play store Jun 21 11:49:26 helicopter88: what kind of backing data do you have? Jun 21 11:49:41 what do you mean? Jun 21 11:49:44 and yeah, it's probably a good idea to paste your activity/fragment and layout Jun 21 11:50:06 https://github.com/helicopter88/android_packages_apps_ChangeLog/tree/experimental Jun 21 11:50:10 everything is ^ Jun 21 11:50:12 helicopter88: which ListAdapter implementation, i meant Jun 21 11:50:34 an ArrayAdapter Jun 21 11:50:58 I do use them in this way itemAdapter = new ArrayAdapter(this, Jun 21 11:50:58 android.R.layout.simple_list_item_1, itemArray) Jun 21 11:51:12 gotta run,thank you Jun 21 11:51:20 be back in 20 mins Jun 21 11:52:49 (is there a channel bot for messages?) Jun 21 11:53:24 na Jun 21 11:53:44 there is freenode messaging thingy Jun 21 11:56:07 if i'm not here later, tell helicopter88 the problem is that he's constructing two different sets of adapters Jun 21 11:56:38 the ones he updates are not the same as the ones attached to the ListViews Jun 21 11:57:42 just looked at his post Jun 21 11:57:48 indeed Jun 21 11:58:28 that would still work Jun 21 11:58:41 if he didnt clear the data before creating the 2nd time Jun 21 11:58:43 :) Jun 21 11:58:51 well it would work wrong Jun 21 11:58:57 but still display something :) Jun 21 12:11:54 In the description of apps in developer console, why is the first line shift ignored? If I type something, hit enter twice and then type something else. The space is ignored when published on Google Play. Jun 21 12:12:07 pjdelport, you still here? Jun 21 12:13:05 helicopter88: pjdelport said looked Jun 21 12:13:12 there are a few probs Jun 21 12:13:20 kinda expected Jun 21 12:13:21 you declare your adapters Jun 21 12:13:25 get your data Jun 21 12:13:27 my first java experience Jun 21 12:13:30 clear your data Jun 21 12:13:38 declare your adapters again Jun 21 12:14:06 I was following an example on the net,i thought it was dumb,but it worked without tabs Jun 21 12:14:35 Hi all! Can I send multiply push notifications via GCM to multiply users with one request? Jun 21 12:14:45 helicopter88: you should only register one set of adapters Jun 21 12:14:56 at the moment, the ones you're updating are not the same as the ones in the listviews Jun 21 12:16:03 I see Jun 21 12:16:11 should I remove the ones in setupview or the others? Jun 21 12:19:15 you should learn to know, not ask for the absolute Jun 21 12:19:25 or you will seldom learn much at all :) Jun 21 12:20:08 generally I hack things to make them work like I want,but creating an app from scratch is something I never did Jun 21 12:21:39 String test = new String(); test = new String(); Jun 21 12:21:51 thats used 2 objects Jun 21 12:21:58 the 1st is no longer with us Jun 21 12:22:12 Uhm,fixed that Jun 21 12:22:13 both are referenced as test, only the last remains Jun 21 12:22:52 sorted then :) Jun 21 12:24:00 oh,I see what's erroring now,forget to use the new changelog Jun 21 12:31:05 sigh, is there anything good on the internet today? Jun 21 12:31:33 no Jun 21 12:35:43 lolcats and porn. Jun 21 12:41:29 Hello Jun 21 12:42:20 How to load .so library from /system/lib in java? Jun 21 12:44:29 loadLibrary returning null while I trying to use construction like static {System.loadLibrary("libm"); } Jun 21 12:46:49 anyone? Jun 21 12:49:12 use System.load instead with full path? Jun 21 12:49:48 also, it should be just "m" Jun 21 12:50:10 not sure why you would want to do that though Jun 21 12:51:11 Zharf: there directory have included my shared library Jun 21 12:51:28 what? Jun 21 12:52:31 yea, you right! just 'm' working fine! Thank you very much! Jun 21 12:52:41 you're welcome Jun 21 13:04:44 gah Jun 21 13:05:01 any good documentation on how to manage fragment transaction state over instance state change? Jun 21 13:07:52 Mavrik; Hello Maveric. I've done with yesterday problem. It is possible and easy. Thank you for your efforts. Jun 21 13:10:11 AndrewEagle, ok. Jun 21 13:20:06 Hi Jun 21 13:20:27 I just begin to learn Android in Java. It feels pretty well . Jun 21 13:20:41 I wana know what a Super is in return.super... Jun 21 13:21:00 does it mean the super class that we inheriet from? Jun 21 13:21:35 yes Jun 21 13:21:56 good Jun 21 13:22:25 If you're new to java, you may wish to read through http://docs.oracle.com/javase/tutorial/java/index.html and http://docs.oracle.com/javase/tutorial/essential/index.html Jun 21 13:25:55 I use the videos on thenewboston.otg Jun 21 13:25:56 rg Jun 21 13:26:46 consider reading the actual tutorials so that you learn the java language. Knowing the java language is a prerequisite to doing androind. Jun 21 13:26:57 yes I know java Jun 21 13:27:04 but not oop in java Jun 21 13:27:14 done oop in c# and it should be fimiliar Jun 21 13:28:15 I have a gridview which shows a lot of custom imageview (it adds rounded corners). Now I get OutOfMemory exception when I try to scroll down the list - how can I fix this? my OnDraw: http://pastie.org/8066441 Jun 21 13:34:25 any N4 guys around? Jun 21 13:41:33 tinti: Be more specific. Jun 21 13:42:10 any one with a Nexus 4 willing to try a new ROM (built with Clang)? Jun 21 13:46:03 tinti: you might have better luck in #android or #android-root Jun 21 13:46:18 lov thanks Jun 21 13:47:55 In the description of apps in developer console, why is the first line shift ignored? If I type something, hit enter twice and then type something else. The space is ignored when published on Google Play. Jun 21 13:50:27 Hey all... Jun 21 13:50:47 I'm lost with USB-Host + Interrupt mode + ByteBuffers/ Jun 21 13:51:01 Quacked: No idea, I'm experiencing the same. Very annoying. Jun 21 13:51:58 how bad is it to use reflection to make mScroller in ListView accessible? Jun 21 13:52:12 I do a queue() and then waitRequest(), the device sends packages less than Max Length, but the byte buffer has as many bytes as its size :( Jun 21 13:58:48 anyone have any suggestions for a twitter client now that falcon pro is hosed? Jun 21 14:00:15 falcon pro is hosed? Jun 21 14:01:13 yeah Jun 21 14:01:37 apparently twitter revoked the API keys because he reset them too many times Jun 21 14:02:12 http://www.droid-life.com/2013/06/19/falcon-pro-developer-thinks-twitter-shut-me-down-provides-backup-apk-file-as-temporary-fix-as-tokens-are-already-all-gone/ Jun 21 14:02:20 backup apk doesn't work either Jun 21 14:08:08 kjeldahl: it is :( Jun 21 14:09:10 back to Twicca I guess Jun 21 14:23:28 does anyone know how facebook/linkedin remembers authorization information in a mobile app? Jun 21 14:24:57 same way a website does Jun 21 14:25:16 StingRay_: Well in linkedin's case, i've to never ever login again Jun 21 14:25:25 StingRay_: A website has a method of logout/login. Jun 21 14:25:51 well fb and linkedin has an account sync added Jun 21 14:26:05 StingRay_: Whats an account sync? Jun 21 14:26:18 account sync adaptery thingy Jun 21 14:26:25 just like your google account Jun 21 14:26:36 Isnt it true, that if linkedin's app logs me in back once i power on the machine, there must be a password/token stored on my phone that authenticates my app? Jun 21 14:26:48 They use OAuth Jun 21 14:27:07 Dark-Side: So they store the oauth-token with a token that never expires? Jun 21 14:27:13 Fancy way of "store the plaintext password"? Jun 21 14:27:55 send it thru ssl? Jun 21 14:29:51 codepython777: token based auth is a thing and it's probably exactly what's happening Jun 21 14:29:57 it doesn't even have to be oauth Jun 21 14:30:09 they're not storing the plaintext password; they're storing an identity token. Jun 21 14:30:44 http://stackoverflow.com/questions/1592534/what-is-token-based-authentication Jun 21 14:32:27 so all i have to do is steal the cookie/token from a person, and I'm in :) Jun 21 14:32:55 hold on, are these tokens dependent on IPs? Do phone IPs change? Jun 21 14:33:23 phone IPs change all the time Jun 21 14:33:34 and if done right, the tokens probably expire after a while/on IP change Jun 21 14:42:47 Hey, my adb install bin\HelloJni-debug.apk HANGs. Jun 21 14:42:52 and ideas? Jun 21 14:42:56 no apps install either. Jun 21 14:43:50 hangs for how long? Jun 21 14:44:04 if your device is slow, or whatever, it can take minutes Jun 21 14:44:08 also depends on size of apk Jun 21 14:44:40 no it used to be instant. Jun 21 14:44:50 read logcat to see what it's doing Jun 21 14:44:56 i downloaded another sdk and think it might be that. Jun 21 14:45:00 and again, you haven't addressed the issues mentioned Jun 21 14:45:26 adb logcat also hangs Jun 21 14:47:28 reboot your device Jun 21 14:47:40 also, enable usb debugging :p Jun 21 14:48:00 wow , your very helpful thanks Jun 21 14:50:33 clever: you about ? Jun 21 14:51:34 pfn: finally! Jun 21 14:51:35 works now. Jun 21 14:57:30 StingRay_: yeah Jun 21 14:57:40 what was the result ? Jun 21 14:57:46 Hi Jun 21 14:57:50 Can package names be Unicode? Jun 21 14:58:00 StingRay_: when assigning an id to each view, the onStart of the fragment never got called Jun 21 14:58:10 StingRay_: i didnt dig into it much further yet, i just put that on hold Jun 21 14:59:23 not sure it would have ever worked Jun 21 14:59:46 StingRay_: i think the problem is because the view isnt part of the tree yet Jun 21 14:59:54 due to listview wanting to attach it after a delay Jun 21 15:00:22 or because the view is actually controlled by something not directly lifecycle bound Jun 21 15:00:39 I think thats why you have fragmentStateAdapters Jun 21 15:00:41 :) Jun 21 15:04:57 The reason you have FragmentStatePagerAdapter is that FragmentPagerAdapter keeps all fragments it has instantiated in memory (it never removes them) Jun 21 15:05:21 FragmentStatePagerAdapter removes fragments outside the viewpager page limit and just keeps its state Jun 21 15:06:05 hi all :) Jun 21 15:06:19 SimonVT: you would know this, clever wanted to have a listView with fragments in the items, not as an item, in a row, with other things Jun 21 15:06:39 I assume thats either not possible or rather odd? Jun 21 15:07:04 SimonVT: yeah, each row would be Jun 21 15:07:08 Rather odd Jun 21 15:07:22 I've got weird problem with my app - it works good, but when i don't use it for few minutes starts problem - I don't see layouts which should appear Jun 21 15:07:25 i'm already using that fragment in many places, and i need to also show it in a list Jun 21 15:08:31 the use case I still think does call for it Jun 21 15:08:44 :) Jun 21 15:09:52 So, what happens then? Jun 21 15:09:52 anyone can help me maybe? I'm newbie and totaly don't know what may be problem Jun 21 15:10:33 wyksztalcioch: unless you ask something, anyone in here at this moment has even less of an idea than you! Jun 21 15:13:50 StingRay_: right, so where should i start looking for cause of this problem? Jun 21 15:14:23 in your code Jun 21 15:14:33 maybe the way you handle lifecycle changes Jun 21 15:14:38 or config changes Jun 21 15:14:42 who knows Jun 21 15:22:24 anyone try antlr4 runtime on android? does it work at a basic level? performance ok? Jun 21 15:23:52 antlr3 had a specific android port by some joesmoe Jun 21 15:25:08 Has anyone used the new Beta/Alpha testing feature? How does it work with versions? Can I run v1.0 on the store, v1.1 in beta, then upgrade beta to 1.2, 1.3 etc? Jun 21 15:25:38 yes Jun 21 15:25:46 Then make a new APK for the general userbase and call it 1.1? Jun 21 15:26:09 well you promote a beta to production Jun 21 15:26:16 but in all seriousnesses Jun 21 15:26:25 I would have 2 seperate listings Jun 21 15:26:34 cause it's not a solid system as it stands :) Jun 21 15:26:49 probably a good idea Jun 21 15:28:15 otherwise my beta versions also increment my main version? e.g. if I push 5 betas, I then need to jump my production version from 1.0 to 1.5? Jun 21 15:28:36 well if you want to use such HUGE increments then yes Jun 21 15:28:50 dont forget thats just a display name Jun 21 15:28:54 versions are ints Jun 21 15:29:07 display versions can be 1.0.0003.03.1 Jun 21 15:29:31 ok Jun 21 15:29:44 I'm on version 18 currently Jun 21 15:29:54 displayed as 0.01.14 Jun 21 15:29:58 :) Jun 21 15:30:16 yeh I actually use the 1.0.0 system, was using 1.5 to keep it simple :p Jun 21 15:38:13 Can you guys recommend any libraries for making 2d live wallpapers? Jun 21 15:40:20 doubt there are any Jun 21 15:40:32 what would the library provide ? Jun 21 15:41:38 Well I am too dumb for pure OpenGL obviously. So I was hoping for something that makes it easier. Jun 21 15:41:58 thats what I mean … easier how ? Jun 21 15:42:27 never done any live wallpaper stuff, but cant see where a lib would work, unless very specific Jun 21 15:42:39 for some maths,phys etc Jun 21 15:43:10 marrrk: LibGDX Jun 21 15:43:42 StingRay_: Maybe even at least handling common file formats. Jun 21 15:43:53 android does that though ? Jun 21 15:44:04 or you mean 3d formats ? Jun 21 15:44:12 .3ds .obj etc ? Jun 21 15:45:06 Yes, I'm just steering more towards 3d now again because I just saw that Unity for android is now free. Jun 21 15:48:57 libgdx is pretty neat. Jun 21 15:49:13 what does it provide ? Jun 21 15:49:24 is it a full 3d engine ? Jun 21 15:49:34 * StingRay_ knows he should read the wiki Jun 21 15:50:42 What wiki? Jun 21 15:51:25 libgdx Jun 21 15:51:34 Actually libgdx does look nice. Where is that wiki? Jun 21 15:51:46 On the internet Jun 21 15:51:47 Documentation? Jun 21 15:51:59 Oh I just saw it. Jun 21 15:52:20 It was written in too big a font. These get filtered by my eyes since they usually indicate an ad. Jun 21 15:53:24 It makes openGL not so much of a pain. Jun 21 15:53:48 Oh no! It is "heavily Eclipse based". Jun 21 15:54:22 That would make everything else so much more of a pain. Jun 21 15:54:23 ok so answering my own question, a tiny lightweight full featured game engine Jun 21 15:54:25 sweet Jun 21 15:55:25 another possible choice: https://github.com/MasDennis/Rajawali Jun 21 15:55:54 is there anything like android.widget.AnalogClock that isn't hardcoded to display just the current time? Jun 21 15:56:45 i.e., an analog clock widget you can set the display time of Jun 21 15:57:06 any library recommendation? Jun 21 16:00:49 pjdelport: just make your own; it's a tiny amount of trig. Jun 21 16:00:56 Does anyone know of a way to lighten or darken a color by a certain percent? Jun 21 16:01:05 hell, you don't even have to use trig if you're using gles; you just tell it the amount to rate and bam Jun 21 16:01:09 s/rate/rotate/ Jun 21 16:01:28 cheese1756: maths Jun 21 16:02:52 StingRay_, I'm not familiar enough with hex for that, unfortunately Jun 21 16:03:21 then dont use hex Jun 21 16:03:28 use something you are famil with Jun 21 16:04:06 hex to bytes, or just rip r,g,b ints if you want Jun 21 16:04:19 depends on what you mean lighten Jun 21 16:06:02 in intelliJ whats the shortcut to show any docs, info on a method ? Jun 21 16:06:08 StingRay_, I want to go from white to black steadily Jun 21 16:06:10 I just used to hover over it in eclipse Jun 21 16:07:47 ctrl+q Jun 21 16:07:52 lov: eh, and boilerplate, and styling, and design, etc. Jun 21 16:08:23 i'd rather use something that's seen some testing and refinement already :) Jun 21 16:09:27 SimonVT: serously though ? Jun 21 16:09:44 Yeah Jun 21 16:10:28 cheese1756: convert to HSL or HSV, it's easier than using RGB Jun 21 16:10:52 well substituing that on a mac, means I would quit intellij :) Jun 21 16:11:28 Then go look at keybindings and figure it out Jun 21 16:11:40 StingRay_: Could try DashClock Jun 21 16:12:02 kakazza: come agian ? Jun 21 16:13:42 https://code.google.com/p/dashclock/ Jun 21 16:13:59 ok Jun 21 16:14:08 Does anyone know why when using the location services api and an emulator, my app will only return a different location for getLastLocation() after I close my app and open the system maps app? Jun 21 16:14:10 * StingRay_ puzzled Jun 21 16:14:29 Ah, you wanted an analogue clock. Not digital. Jun 21 16:14:44 kakazza: oh you mean pjdelport Jun 21 16:14:52 no I dont want a clock at all Jun 21 16:14:55 Damnit. Same colors in the IRC client. Jun 21 16:15:01 You're both pinkg Jun 21 16:15:12 I want programming skillz and knowledge Jun 21 16:15:21 link me to that ! Jun 21 16:42:43 i just installed genymotion beta Jun 21 16:42:48 hello, i just generated a new Android project in Eclipse with ADT but the R class is not generated, the "gen" folder is empty. any ideas why that might happen? i tried to recreate the project, close/exit Eclipse, there are no errors in the "Problems" tab (except for the missing R errors) Jun 21 16:42:51 and i consider this shit :( Jun 21 16:45:48 kakazza: ah, thanks for the pointer Jun 21 16:47:22 but yeah, analog specifically (client design) Jun 21 16:48:04 I might just pull out and simply AnalogClock Jun 21 16:48:07 I dropped eclipse for android studio ... just putting it out there :) Jun 21 16:48:10 simplify, even Jun 21 16:49:13 Achillion: I don't use either of those pieces of shit. Jun 21 16:49:35 well Jun 21 16:49:39 no need to be rude about it Jun 21 16:49:49 Who's being rude? Jun 21 16:50:04 pragma- is grumpy about IDEs Jun 21 16:50:17 you used a swear word Jun 21 16:50:28 What are you, a virgin? Jun 21 16:50:45 pragma- is so hard core, not even sure he uses a computer to code on Jun 21 16:51:08 what does my virginity have to do with anything? Jun 21 16:51:28 pragma- is grumpy because … he's using android Jun 21 16:51:41 I have idea, for google. Jun 21 16:52:28 When you see the permissions of app, you could start to be suspicious. Jun 21 16:52:55 But what if developers could give the description, why he used the particular permission, what is the purpose. :] Jun 21 16:53:03 they do Jun 21 16:53:18 in the descriptions in the store listing Jun 21 16:53:19 bluesm: it doesn't really matter at all. Jun 21 16:53:50 "Totally not using this permission to steal your data" Jun 21 16:53:54 bluesm: I really wish for that too Jun 21 16:54:04 As if anyone who is not a moron actually trusts the developer's explanation. "We're totally not doing anything evil, we promise -- lol." Jun 21 16:54:16 pragma- o/ Jun 21 16:54:19 StingRay_: But I mean, in tab of permissions. Jun 21 16:54:22 Most devs explain why they added a permission when it's added in an update Jun 21 16:54:43 bluesm: naaa. pretty pointless Jun 21 16:54:59 * pjdelport thinks it's very pointful Jun 21 16:55:20 hmmm Jun 21 16:55:22 ok yeah Jun 21 16:55:25 it's pointless reviewing an app's permission list without having any indication why the app might or might not need those Jun 21 16:55:26 I see the point Jun 21 16:55:32 it's just useless then :) Jun 21 16:55:57 StingRay_: More accessible and grouped :]. Here is permission, here is the description from google (what's this permission mean), and explanation from developer why he needs that permission. Jun 21 16:56:01 unless you cancel the installation attempt, and grovel around for additional information that might or might not be somewhere Jun 21 16:56:16 bluesm: like i said, developers do that in the listing Jun 21 16:56:18 bluesm++ Jun 21 16:56:19 if they want Jun 21 16:56:19 exactly that Jun 21 16:56:41 but here is the point Jun 21 16:56:42 StingRay_: but it's a crappy user experience having to grovel for it in the listing Jun 21 16:56:53 shady devs will lie Jun 21 16:56:59 honest devs wont Jun 21 16:57:07 so if gains nothing Jun 21 16:57:08 something integrated into the permission request would be great Jun 21 16:57:30 StingRay_: they can already lie anyway; this is for honest devs to communicate better with potential users. Jun 21 16:57:39 StingRay_: But in the description. It isn't clear. You have to read all the description with hope that developer written why he used that permission. Jun 21 16:58:14 asking permission is for chumps. pros use transitive permission usage attacks Jun 21 16:59:18 How about just asking for the Internet permission and then loading more code over the net. Jun 21 16:59:29 I used wrong punctuation? Jun 21 16:59:35 Again, Jun 21 17:00:25 at the end of the day, it makes nothing safer, it may slightly educate the user, but makes them no safer, and just creates more work Jun 21 17:00:45 so ya, I fail to see the uses Jun 21 17:01:21 if there is some single permission that you need to explain, cause it's a bit wacky out of context Jun 21 17:01:25 do it in the listing Jun 21 17:01:31 :) Jun 21 17:03:26 * pjdelport ahomes Jun 21 17:04:03 Where I could post my simple idea ? I mean to have a chance to get somebody from google notice ? Jun 21 17:04:07 https://groups.google.com/forum/#!forum/android-developers ? Jun 21 17:04:55 bluesm: people will have posted about that many times Jun 21 17:05:02 are there many games for phones? Jun 21 17:05:15 i a writing a platformer. Jun 21 17:05:17 there have even been sandbox ideas for permissions submitted Jun 21 17:05:38 lol JohnnyL Jun 21 17:06:37 StingRay_: Where ? Jun 21 17:06:50 google groups for AOSP Jun 21 17:07:03 bluesm i brought up your suggestion a few years ago Jun 21 17:07:24 obviously, nobody cared ;) Jun 21 17:08:00 g00s: Where ? :P Jun 21 17:08:07 i think even at the i/o fireside this year somebody brought up the permission system Jun 21 17:08:15 I think there has been a lot of pushback against making the permissions any more complex Jun 21 17:08:17 bluesm here :P Jun 21 17:08:41 bluesm back then, more googlers were here tho Jun 21 17:09:06 ? Jun 21 17:09:15 g00s: And there are gone now ? Why? Jun 21 17:09:26 dunno, ask Jun 21 17:09:28 <- doesn't own a phone Jun 21 17:09:37 13:09:26 < bluesm> g00s: And there are gone now ? Why? Jun 21 17:09:42 wisdom comes from within. Jun 21 17:09:45 maybe because they use google+ Jun 21 17:10:37 Leeds i woud push back too if i had no way of updating 90% of the phones in use Jun 21 17:10:40 lov: What do you mean ? Jun 21 17:11:21 g00s: seems like the sort of thing which would only need support from the store Jun 21 17:11:56 i would think this is runtime support; if we are thinking the same thing - selectively granting apps privs at runtime Jun 21 17:12:16 saying "ok, nobody can use my gps now" Jun 21 17:12:27 or "you .. can not use my gps now" but otherwise, carry on Jun 21 17:12:37 well, gps is bad example Jun 21 17:12:46 abaility to read contacts Jun 21 17:12:51 userDeniedPermissionException like it Jun 21 17:13:10 nah, I was talking about giving devs the ability to justify specific permissions Jun 21 17:13:27 bluesm's point Jun 21 17:13:29 oh, ok Jun 21 17:15:24 I don't like the idea of devs "taking over" the play store permission list Jun 21 17:17:02 SimonVT: I don't understand? Why taking over ?. It would be like description, but more organized. (Beside description from google, what particular permission does mean) Jun 21 17:17:58 You can have a description in your description Jun 21 17:18:17 There shouldn't be two permission lists, users have a hard enough time making sense of it as it is Jun 21 17:18:49 SimonVT +1 Jun 21 17:20:37 SimonVT: It could be scrolling down description. Jun 21 17:20:52 I'd just want it to be a bit more like iOS in some regards. App can have all the permissions it wants, but if I decide at runtime to NOT let it have my location, contacts w/e, then it shouldn't be able to and not crash. Jun 21 17:20:58 SimonVT: I mean if user want to know what developer have to say, he could scroll down and see. Jun 21 17:21:08 what if your app is donation-only??? Jun 21 17:21:11 Yes, scroll down in the description Jun 21 17:22:28 SimonVT: But it's not grouped. Jun 21 17:22:47 so format it in a nice way Jun 21 17:22:49 SimonVT: Not scroll down, but "slide down" Sorry. Jun 21 17:22:49 So, I'm having difficulty with the View.scrooBy method. Specifically it's behaving funny when I'm using a ListView. Jun 21 17:22:50 Can anyone help me with this class: http://pastie.org/private/naxfinjac3m03rdammrlkg ? It works as it should, but the problem is the performance. I'm using this custom ImageView in a GridView with about 30 items and I run into performance problems - as it "laggs" when scrolling. Jun 21 17:22:53 like many devs do Jun 21 17:23:32 does intellij's android plugin do the same things android studio does, or is a side-by-side install recommended? Jun 21 17:23:41 I've tried with enabling hardware layer type and enabling drawing chache, but still performance problems Jun 21 17:24:29 bluesm, you can't trust the developer Jun 21 17:24:43 Who the fuck cares what he has to say Jun 21 17:24:59 Google should give an adequate description of what the permission lets the app do Jun 21 17:25:01 Fuck developers! Jun 21 17:25:10 literally fuck all of us Jun 21 17:25:17 \o/ Jun 21 17:25:19 sonOfRa, IntelliJ 13 EAP has identical functions as Android Studio Jun 21 17:25:19 And the user decides if they want to give the app that permission Jun 21 17:25:22 Yeah, fuck all of you Jun 21 17:25:23 or... /o\ Jun 21 17:25:26 no u! Jun 21 17:25:29 ha, fuck you all, I'm an artist! Jun 21 17:25:31 o/ Jun 21 17:25:43 in general, I suspect developers get fucked less than the average for the population... Jun 21 17:26:05 except JakeWharton, who is a beautiful man Jun 21 17:26:08 SimonVT, that's silly, because sometimes you need to have incredibly intrusive permissions for some features and you have to explain the reasoning Jun 21 17:26:18 right now the description is "ok" for that mostly though Jun 21 17:26:40 actually true that Jun 21 17:26:42 Leeds: bromantic Jun 21 17:26:54 access to account to put a file on gdrive Jun 21 17:26:56 I'd argue you don't solve that by letting the dev justify it Jun 21 17:26:59 fk off android Jun 21 17:27:02 As I said, you can't trust the developer Jun 21 17:27:07 SimonVT, true. Jun 21 17:27:24 having permissions that you can request on runtime would solve alot of those annoyances Jun 21 17:27:38 Anyone know if there is any event/method called with the physical search button is pressed.. yeah I know most phones dont have this but still Jun 21 17:27:39 Mavrik: too many Jun 21 17:27:48 If permissions are too broad, that's an issue Jun 21 17:27:53 Mavrik: and introduce much complexity and user confusion Jun 21 17:27:59 why? Jun 21 17:28:01 If a permission lets you do X, the dev don't need to write "so I can do X" Jun 21 17:28:23 xastey: I'm pretty sure it fires an intent, like the home button does - I don't know what it is, off the top of my head Jun 21 17:28:23 SimonVT, yes you do Jun 21 17:28:36 o ok Jun 21 17:28:38 people want to know why you need their personal data mostly. Jun 21 17:28:43 thanks Leeds I'll search for that Jun 21 17:29:46 Leeds, there's no reason I need to demand full contact access from all users when only a subset of them will use contact matching functionality Jun 21 17:29:56 and I need to tell them why am I reading their contacts Jun 21 17:30:15 Mavrik: thats silly Jun 21 17:30:50 how would that even work with something that needs sooo much access to everything most if not all the time, and lots of access to parts of everything Jun 21 17:31:07 I think thats the reason there are no 3rd party apps in iOS that do core things Jun 21 17:31:12 or replace core things Jun 21 17:31:24 dialer, sms, etc Jun 21 17:31:30 Jun 21 17:31:40 none are optional Jun 21 17:32:06 what is optional in an sms or dialer app? Jun 21 17:32:23 Nothing's stopping you from putting that in your description.. I just think it's just a bad idea to have any kind of official looking permission list with a devs coments Jun 21 17:33:10 SimonVT, doesn't change the fact that current permissions system causes clashes between privacy and advanced functionality Jun 21 17:33:38 Yeah, not going there Jun 21 17:34:18 and yet you still have an opinion on it ;) Jun 21 17:34:59 Um, question about Google Services for Android. Suppose I have the user's location, and I wanted to find nearby businesses but did not have Lat/Long data? What API would I use to get that. Jun 21 17:35:02 I have an opinion on why I think it's a bad idea to let devs comment on the play store permission list Jun 21 17:35:12 Like so I could find the nearest Walmart, or nearest McDonalds Jun 21 17:35:44 Do I have to have my client maintain that data or is there an API I can use to do like the maps app does and run a rough search? Jun 21 17:36:07 when the user gets the permissions list before agreeing, it wouldn't be bad if he could further click into each permission for further detail in what it does, maybe a default generic description and optional added description by developer Jun 21 17:36:13 Fallout2man, you don't have lat/lng data of the businesses? Jun 21 17:36:28 shmooz, meh the problem is noone reads that Jun 21 17:36:37 Mavrik: Well right now that's what I'm trying to figure out. I might need to ask the client too. Jun 21 17:36:46 Mavrik: It's specifically to find open Pharmamcies Jun 21 17:36:50 even I don't, since it's a wall of text that doesn't tell me the context, since I haven't even used the app yet Jun 21 17:37:02 and now I have to decide if I trust it or not, by 15 lines of text in Play Stre Jun 21 17:37:07 client to* Jun 21 17:37:40 Mavrik: it would look the same and you don't have to read details, you can just agree without reading further than what we have now Jun 21 17:37:51 Can I use sharedPreferences to keep the list of Task ? Jun 21 17:37:54 I'm writing up requirements right now for some wireframes and I need to tell the client what information I need them to maintain to do the Location based search feature they requested. Jun 21 17:38:00 but if you want , you could further tap into each permission to see what it does Jun 21 17:38:15 I mean to i do need have the ability to store "dublicate" entries. Jun 21 17:38:20 Fallout2man, getting lat/lng data will make your life hellova easier… I'm not sure if GMaps has a reliable API for that yet Jun 21 17:39:52 Mavrik: Danke, I think I'm going to just put that in the requirements. Jun 21 17:43:10 Mavrik, permissions are about trust, and if the user doesn't trust you, dev comments make no difference Jun 21 17:47:14 Hey guys… My development team has a Samsung GS3 and a Motorola Droid 3. We need 2 or 3 more phones for testing purposes. Hopefully different brands that may make an application act differently, whether is screen resolution, custom manufacturer modifications to the default apps, gps behavior, etc… Can you guys suggest some other phones to get? Jun 21 17:48:18 get a HTC and a Sony Jun 21 17:48:18 roler: http://www.gsmarena.com/ Jun 21 17:48:47 Apple and Blackberry ;) Jun 21 17:48:59 and a Nexus 4 Jun 21 17:49:07 don't forget the lumias Jun 21 17:49:08 :p Jun 21 17:49:23 oh god yes, wm Jun 21 17:49:25 :) Jun 21 17:49:28 yeah lol Jun 21 17:49:38 odd how that never entered my mind Jun 21 17:50:10 my roomie has one, and he's always trying to convince me he made a good purchase Jun 21 17:50:12 roler, the nexus 10 is a good choice, because it can simulate any other device size Jun 21 17:50:38 oh really? Jun 21 17:50:42 lime: I think he's attempting to convince himself Jun 21 17:50:45 :) Jun 21 17:50:47 thanks guys, this is great input Jun 21 17:50:52 StingRay_, yeah.. that too :) Jun 21 17:51:21 I wouldn't mind taking the Nexus 10 home to play with :) Jun 21 17:52:56 ok... layout question - I want to create a row layout for a list view that has one element of fixed size and one element that fills the rest of the row up to its maximum size Jun 21 17:53:00 xperia z Jun 21 17:53:04 how would I go about this? Jun 21 17:53:19 whateverman: depends on the parent viewGroup Jun 21 17:53:33 linearLayout you would use layoutWeight Jun 21 17:53:43 I've an APK. how do I make sure it can be installed on any android device? Jun 21 17:53:48 relativeLayout you would use relational rules "lefOf" etc Jun 21 17:54:05 with relativelayout, how does one element know not to overlap another? Jun 21 17:54:05 leftOf* Jun 21 17:54:19 it doesnt know anything Jun 21 17:54:21 or is everything laid out such that overlaps are not possible? Jun 21 17:54:23 it's a view Jun 21 17:54:35 and no you can overlap whatever Jun 21 17:54:40 but as I said Jun 21 17:54:44 releation rules Jun 21 17:54:50 leftOf "something" Jun 21 17:55:14 i'm glad to see i'm not the only one struggling with the layouts Jun 21 17:56:10 found some articles on layoutWeight Jun 21 17:56:24 leftOf wouldn't handle the sizing of the elements, though - it seems layoutWeight does do that Jun 21 17:56:51 whateverman: wrong Jun 21 17:57:09 it handles the sizes based on the rules Jun 21 17:57:12 like i said Jun 21 17:57:14 does anyone know what size sim card the Nexus 4 uses? I wonder if I could use my iPhone 5 sim card. that would rock (no contracts are great) Jun 21 17:57:29 not the ultra-small one that the newest iPhone uses Jun 21 17:57:44 It uses micro sim Jun 21 17:58:01 32 GB max Jun 21 17:58:14 on a SIM card? Jun 21 17:58:24 "_ Jun 21 17:58:26 :) Jun 21 17:58:30 that's a lot of contacts Jun 21 17:58:35 lol Jun 21 17:58:48 oops, I thought microSD Jun 21 17:58:49 "our new phone can store over 9000 contacts!" Jun 21 17:58:58 key.store=path/to/my.keystore key.alias=mykeystore - where do I get my keys from? Jun 21 17:59:07 the nexus 4 does not have a microSD slot, shmooz Jun 21 17:59:11 I'm building commandline apks Jun 21 17:59:38 oh crap, forgot, another reason to not buy it then Jun 21 17:59:46 other than not being able to change battery Jun 21 18:00:15 the back is pretty, though Jun 21 18:00:19 * StingRay_ wonders if anyone will ever release a hi-res tablet with a sensible density/ratio :( Jun 21 18:00:26 get an S3 instead and you can stick in a 64MB SD card I think Jun 21 18:00:27 never! Jun 21 18:00:40 those cost a bit Jun 21 18:01:03 StingRay_, what's a sensible density/ratio? Jun 21 18:01:43 well not 16:9 thats for sure Jun 21 18:02:34 so res of 3840x3200 on square pixel aspect Jun 21 18:02:38 that would be nice Jun 21 18:02:43 yeah, i agree Jun 21 18:02:51 I prefer pi:e ratio Jun 21 18:03:00 that's like a 4k TV Jun 21 18:03:04 but they hardly make any computer monitors in those scales Jun 21 18:03:09 well no Jun 21 18:03:30 it'll take a while before you can fit all that in a 10" tablet Jun 21 18:04:01 i would love to see it though Jun 21 18:04:29 whats the point of 2560 x 1600 though ? Jun 21 18:04:47 it's bigger than 1920x1200 Jun 21 18:04:51 that's the point! Jun 21 18:05:17 so I loose detail on almost anything I want that is industry standard Jun 21 18:05:21 like a hd movie Jun 21 18:05:27 pisses me off :) Jun 21 18:05:32 yeah, i understand Jun 21 18:05:48 my friend has the same problem Jun 21 18:06:57 let's take a game like starcraft2. they wanted to make it fair for everyone, so that there were no advantage playing it on a bigger screen Jun 21 18:07:07 which is just messing with people with a decent screen size Jun 21 18:08:40 so in the longrun a 'sensible density/ratio' would do no good before the whole world has adapted the Ultra HD standards Jun 21 18:09:02 yes it would do good Jun 21 18:09:04 lol Jun 21 18:09:08 except if you're a graphics artist Jun 21 18:09:15 4k and 8k will be everywhere soon Jun 21 18:09:27 'soon' you say. Jun 21 18:09:33 we've had the technology for ages Jun 21 18:09:37 after the XBox One is released, its gonna go mainstream Jun 21 18:09:49 ok Jun 21 18:09:54 you know 4k tv have been around for 10 years Jun 21 18:09:59 well maybe 8 or so Jun 21 18:10:04 yeah well I see 4k TV's at bestbuy and sony store now Jun 21 18:10:29 toshiba released 4k display units to VFX places about 8 years ago Jun 21 18:10:44 the sony one was $25,000 for like 84 inch or something, and then there was like a 55 inch at best buy for $7500 Jun 21 18:10:56 i wasn't aware of this all this :D Jun 21 18:11:32 and SHARP already made a 8K TV they showed off Jun 21 18:11:32 I think sony have got this generation of consoles won Jun 21 18:12:04 problem is our computers are not fast enough to do that resolution yet Jun 21 18:12:05 StingRay_, there's no doubt about that... according to trustworthy sources like 9gag :p Jun 21 18:12:17 or you need the bleeding edge hardware I guess Jun 21 18:12:20 shmooz: what ??? Jun 21 18:12:41 how do you think movies are edited and cut and graded ? Jun 21 18:12:46 in bits :) Jun 21 18:12:54 and then a frame is combined Jun 21 18:12:56 :) Jun 21 18:12:59 StingRay_: http://www.extremetech.com/gaming/157319-asus-4k-monitor-is-just-4k-but-dont-get-too-excited-your-computer-isnt-powerful-enough-to-use-it Jun 21 18:13:08 Between the MediaRecorder state diagram and the SurfaceHolder implementation, I'm having trouble getting a full screen preview of my video without recording. I want to see the camera contents before I record, but don't see any obvious way to do this Jun 21 18:13:12 I don't see the preview until AFTER I call both mediarecorder.prepare() and mediarecorder.start(). I want to view the camera just after the prepare() step, but before start() Jun 21 18:13:24 shmooz: yeah thats balls Jun 21 18:14:00 StingRay_: haha yeah in November we'll be able to buy a $400 computer that can handle 4k. (not games though) Jun 21 18:14:50 SpearThruster: dear lord that's racist Jun 21 18:15:21 well, maybe I'm racist for thinking that :/ Jun 21 18:15:36 i can't see anything racist about it :\ Jun 21 18:16:27 making assosciations in your head doesn't make you racist though Jun 21 18:17:08 Hmmm... I blame south park, garisson is always saying "spear chucker" Jun 21 18:21:15 which would be a better method to implement in a chat client (involves group chat also) :1. GCM with payload. 2. XMPP with GCM notifications. 3. None of these and make my own algorithm Jun 21 18:23:54 algorithm ? Jun 21 18:24:46 to handle all the messages.. and use polling to receive messages Jun 21 18:25:48 you mean write your own protocol ? Jun 21 18:26:15 not a protocol..i meant about using polling Jun 21 18:26:35 sorry for the wrong grammar used Jun 21 18:27:39 i get a tingle in my pants when someone apologizes for bad grammar Jun 21 18:28:04 :) Jun 21 18:28:12 <^[o_o]^> o_O Jun 21 18:28:29 Ò_ó Jun 21 18:29:53 o_ Jun 21 19:03:16 JakeWharton, you around? Jun 21 19:03:28 * JakeWharton runs Jun 21 19:03:57 do you ever get UnicodeDecodeErrors when using pidcat? Jun 21 19:18:52 i'm taking your silence as a yes Jun 21 19:18:58 but its working now so you can relax Jun 21 19:23:25 anyone making over a thousand a month off their android apps? Jun 21 19:23:44 lol Jun 21 19:25:00 that direct at me stingray? Jun 21 19:25:29 no Jun 21 19:25:32 at your question Jun 21 19:26:04 why's that? Jun 21 19:26:34 you know the figures and probabilities of that ? Jun 21 19:26:52 can't say that I do, why are is low or average or what? Jun 21 19:26:53 very very slim I think Jun 21 19:27:09 over 1k a month on android apps profit is very very slim? Jun 21 19:27:15 yes Jun 21 19:27:27 not very probable Jun 21 19:27:40 why do people make apps then? Jun 21 19:27:48 waste a time, no? Jun 21 19:28:10 cause they think otherwise, and also for the chance that the app and idea is part of the 0.1% that will make them rich Jun 21 19:29:13 Or because they have to. Jun 21 19:29:34 I bet most don't do any marketing though Jun 21 19:29:37 it's a hobby for me Jun 21 19:29:39 I'm making > $1000/mo off of my employer paying me for an Android app Jun 21 19:29:47 ama Jun 21 19:29:47 :) Jun 21 19:30:02 lol Jun 21 19:31:38 I think if google released true and useful figures for app devs, no1 would do this with the hope of money Jun 21 19:31:53 I don't think that's true Jun 21 19:32:00 I think that some people might not go into it expecting easy money Jun 21 19:32:09 well Jun 21 19:32:12 but people who actually devote non-trivial time into this and who actually treat this as a business won't be deterred Jun 21 19:32:19 true and useful figures? I think the tracking and statistics is pretty bad ass Jun 21 19:32:37 parco: I'm on about market figures on a whole Jun 21 19:32:40 not your apps Jun 21 19:32:41 :) Jun 21 19:32:46 oh Jun 21 19:33:30 so I've been building on an athlon turion x2 laptop with 2.5gb of ram, and I have available to me now a linode to build on; quad core, but with much less ram. I may need to restrict building to as little as .75gb of RAM, though I think I can say 1GB and let it break into the swap. should I stick to building on the dual core turion laptop, or will processor speed make up for the lack of RAM? Jun 21 19:33:40 tnzr: yes. i switch from os.popen to subprocess and it's been causing problems Jun 21 19:33:52 oh look how I'm in the wrong channel. sorry Jun 21 19:34:35 always read the topic before typing, kids! Jun 21 19:35:06 i rearley type the word "kids" and not too sure of channels where that would be said lots Jun 21 19:35:10 * StingRay_ shudders Jun 21 19:35:49 I want to know how I can crack rolling AES CBC encryption Jun 21 19:36:17 so the key would only be the same in 5 - 10 transmits Jun 21 19:36:58 you can guess the key? Jun 21 19:37:31 you mean just brute force it Jun 21 19:38:33 are there any figures anywhere, that show how long that takes based on xxxxxxx format of key ? Jun 21 19:41:42 about 10 mio years - including that the cpu power increases every 18 months ;) Jun 21 19:41:53 until somebody finds a flaw in AES Jun 21 19:42:52 really ? Jun 21 19:42:59 Add to that hardware based protection as well which limit the attempts (e.g. the hardware crypto used in iOS, rate limiting to one attempt every 80msec or so). Jun 21 19:43:23 well ok Jun 21 19:43:46 how would I go about leaving some availability for it to be cracked Jun 21 19:43:47 If you want to toy around with calculations, here's one article http://www.eetimes.com/design/embedded-internet-design/4372428/How-secure-is-AES-against-brute-force-attacks- Jun 21 19:44:24 oh cocks Jun 21 19:44:35 yeah that chart is an eye opener Jun 21 19:55:47 StingRay_: it is safe to say that if you don't fuck up AES, your communication is pretty secure. Jun 21 19:56:03 yeah Jun 21 19:56:04 that said, I'm doing the Matasano challenges right now, which provide plenty of examples of how others have fucked it up. Jun 21 19:56:14 I just wanted it less so Jun 21 19:56:32 you wanted your secure algorithm to not be secure, is that what you're saying? Jun 21 19:56:46 yes Jun 21 19:57:02 do it in ECB and give out some plaintext, problem solved. Jun 21 19:58:33 no Jun 21 19:58:45 I want it hard but not 10 years hard to crack Jun 21 19:58:47 :) Jun 21 20:03:41 Any reason why you're not passing it out to something that handles all the related issues, like a good SSL library or similar? Jun 21 20:04:48 (related issues like key exchange and making sure there's enough randomness to make it secure0 Jun 21 20:05:00 well no thats the point Jun 21 20:05:20 I wanted it a little less secure Jun 21 20:05:24 dont matter Jun 21 20:05:46 a few hundred a month off android sales wouldn't hurt even Jun 21 20:06:03 millions of end users, someone besides the select few are making money off that Jun 21 20:06:08 they have to Jun 21 20:06:20 If you do not care about that stuff, you could opt for simple, like http://en.wikipedia.org/wiki/Tiny_Encryption_Algorithm Jun 21 20:06:32 granted 30% goes to google and 30% to irs Jun 21 20:06:38 mdev: think of it this way Jun 21 20:06:56 if revanue from the playstore was lets say $1000 Jun 21 20:07:20 for all apps sold in a year Jun 21 20:07:25 I would think/assume the following Jun 21 20:07:43 out of the $666 that goes to devs Jun 21 20:08:09 $600 will go to mainstream development studios, where 90%+ are games Jun 21 20:08:35 $65 will go to the elite 1% of indi developers Jun 21 20:09:27 out of all the apps on there, i would think that 99.5% from indi devs dont make money Jun 21 20:09:45 the 30% doesn't go to Google; it goes to carriers et sim Jun 21 20:10:01 [tangent] Jun 21 20:10:13 ctate how you figure that Jun 21 20:10:15 I don't understand how it goes to carriers for wifi-only devices Jun 21 20:10:24 ^ Jun 21 20:10:47 mdev: says so in black and white at https://support.google.com/googleplay/android-developer/answer/112622?hl=en Jun 21 20:10:54 * ctate | You receive 70% of the payment and the remaining 30% goes to the distribution partner and operating fees. Jun 21 20:10:56 unless they're all prorated by marketshare of sales or something Jun 21 20:11:01 "operating fees" Jun 21 20:11:07 linksys is making a fortune :P Jun 21 20:11:09 pfn: because that's the agreement with the carriers Jun 21 20:11:24 I doubt Google has agreements with ALL carriers Jun 21 20:11:32 0% goes to the distribution partner and operating fees. Jun 21 20:11:38 30% goes to the distribution partner and operating fees. Jun 21 20:11:42 * g00s becomes a carrier Jun 21 20:11:43 ctate, sure, but how does it go to carriers for wifi-only devices, and carriers for there is no agreement? Jun 21 20:11:51 and who is distributing? google is Jun 21 20:12:06 mdev: Google basically takes enough to pay for the actual cost of shipping the bits around; the rest goes to carriers et sim Jun 21 20:12:06 ctate, say I opened up my own mini-carrier that had android devices, certainly I wouldn't be receiving a cut of any sales unless I went and buggered google about it first Jun 21 20:12:27 ctate, so prorated by marketshare... nice deal for them Jun 21 20:12:28 5% distribution partner (if exists), 25$ Google for operating fees Jun 21 20:12:33 they get revenues for shit they don't even need to sell Jun 21 20:12:33 pfn: when samsung wanted to come and sell devices on your network, you'd wind up in that situation Jun 21 20:12:35 25%* Jun 21 20:12:52 i'd be surprised if google kept more than a couple% Jun 21 20:13:02 pfn: the point is that the carrier won't sell Android devices for their network unless they get a cut. Jun 21 20:13:21 pfn: this is why you end up with godawful bloatware on the devices. It's not the manufacturer who wants it there (usually) Jun 21 20:13:22 it's not like the App Store, where apple really does keep the 30% Jun 21 20:13:31 lov, might have been true with android <2.0 Jun 21 20:13:36 ctate: i really dont think so Jun 21 20:13:42 lov, particularly 4.0+ I don't think that's true anymore Jun 21 20:13:46 i love Google, but come on Jun 21 20:13:47 pfn: You realize that I actually worked for samsung on shipping phones right? Jun 21 20:13:47 who wants a carrier based phone anyway? Jun 21 20:14:00 I can assure you, it is not solely the manufacturer's call. Jun 21 20:14:14 what they need to do is stop making them and have you just pay for the services you choose Jun 21 20:14:18 the carriers run the business even in today's iphone + android world Jun 21 20:14:24 lov, huh? manufacturer's call on what Jun 21 20:14:28 like I did with nexus 4(not tmobile nexus 4, google legit nexus 4) Jun 21 20:14:31 on what goes on the phone. Jun 21 20:14:36 then i could choose tmobile if i wanted Jun 21 20:14:54 remember; you're not the customer, the carrier is the customer. Jun 21 20:14:58 mdev: it'd be great if we could get to that world, and TMO is better than the rest of them about it Jun 21 20:14:59 the manufacturer wants to sell phones to the customer. Jun 21 20:15:07 ^^ Jun 21 20:15:10 at least google getting into internet Jun 21 20:15:15 so, if the customer wants some shitty apps preloaded, you'll make it happen. Jun 21 20:15:21 that is critical to remember (that the customer is the *carrier*, not the end user) Jun 21 20:15:29 hopefully they build cell towers eventually Jun 21 20:15:30 Hi, can someone look at my 9patch image and tell me why it displays the black lines on devices? http://home.comcast.net/~erica.ramsey/message_bubble.9.png Jun 21 20:15:47 racist Jun 21 20:16:03 lov: tee hee, but pleas dont' do that :) Jun 21 20:16:05 who uses comcast for hosting? Jun 21 20:16:18 droidistical: looking Jun 21 20:16:19 ctate: couldn't help myself. Jun 21 20:16:20 lov, also, android vs. what now for operating systems on smartphones? Jun 21 20:16:31 thanks Jun 21 20:16:36 pfn: Windows 8! Jun 21 20:16:43 pfn: iOS, Win 8, BB (somehow) Jun 21 20:16:48 well foxconn is investing heavily into firefox os Jun 21 20:16:53 in terms of money through at development Jun 21 20:16:54 BB is definitely still selling phones Jun 21 20:16:58 firefox OS is Android :) Jun 21 20:17:02 and probably when it comes to building powered phones Jun 21 20:17:03 there's featurephone OSs but they're not really at the level we're discussing Jun 21 20:17:14 pretty sure firefox os is linux with web apps Jun 21 20:17:15 droidistical: cause it's not a valid 9patch Jun 21 20:17:16 not android Jun 21 20:17:23 you have content areas defined Jun 21 20:17:30 no scale/expand areas Jun 21 20:17:31 pfn: don't forget, "android" is not a monolithic OS block that negotiates with the carriers, either. Jun 21 20:17:37 firefox OS is Android with some (but not all) of the names changed, and the browser set as the home app Jun 21 20:17:38 it's an ecosystem of carriers and oems Jun 21 20:17:39 seriously Jun 21 20:17:48 ctate: wait, seriously? Jun 21 20:17:52 yes Jun 21 20:17:52 ctate you sure? Jun 21 20:18:06 wow. Jun 21 20:18:06 droidistical: and that image is not suitable neways Jun 21 20:18:07 look at the source code for their input system; it's a dead giveaway Jun 21 20:18:08 that's, uh... Jun 21 20:18:14 kind of hilarious Jun 21 20:18:16 I defined area I want text to go, i also have to define scale lines too? I thought one could just define where text goes (right,bottom) Jun 21 20:18:25 I was thinking "kind of sad and doomed to trouble" Jun 21 20:18:38 StingRay_: what is wrong with image? Jun 21 20:18:44 droidistical: your taking about view padding Jun 21 20:18:48 (remember that Android is "just" linux with a non-X graphical userspace framework.) Jun 21 20:18:53 not a 9patch expanding graphic Jun 21 20:18:56 :) Jun 21 20:19:08 also kidn of awesome that ubuntu is adopting Android's hw compositor etc Jun 21 20:19:09 :) Jun 21 20:19:12 StingRay_: what do you mean? Jun 21 20:19:28 ctate it's more than that Jun 21 20:19:28 i mean padding is what you use to contstrain sub content in a view Jun 21 20:19:30 lot more Jun 21 20:19:47 a 9patch is a expanding scale indipendant graphic Jun 21 20:19:53 StingRay_: do you mind a pm? Jun 21 20:19:55 mdev: in broad strokes, that's pretty much it Jun 21 20:19:56 android is linux powered sure, but what isn't? that's not microsoft, android is in its own right its own os Jun 21 20:20:04 that's integrated touch and other unique features Jun 21 20:20:15 well sure; all that userspace stuff is in fact part of an OS Jun 21 20:20:29 but also remember taht "Linux" doesn't include any of that. "Linux" is a kernel. Jun 21 20:20:32 lov, carriers pay apple for the privilege of carrying ios :p Jun 21 20:20:34 parco: sure Jun 21 20:20:38 then how do I vertically offset text in an button with image Jun 21 20:20:41 I can ignore you Jun 21 20:20:48 padding Jun 21 20:20:52 View.padding Jun 21 20:21:00 android:padding Jun 21 20:21:04 ok Jun 21 20:21:06 look at padding :) Jun 21 20:21:12 k thanks Jun 21 20:21:18 that's true Jun 21 20:22:05 I plan on making ios apps but reading the approval process sounds annoying, one guy said they rejected his weather app then just released their own clone of it few weeks later Jun 21 20:22:51 apple sounds scummy so wouldn't put it past them, and now that everyones drinking their koolaid is like a bad dream, when they were small and only "elitest" artsy fanboys were using mac talking about how superior mac was, it was good times Jun 21 20:23:12 now apple products are everywhere and we're left with microsoft defeated and google the only challenge Jun 21 20:24:16 hopefully google makes their ecosystem more profitable in the future Jun 21 20:24:37 even the xbox one isn't indie friendly, you need a publisher apparently to publish apps for that platform :( Jun 21 20:24:38 mdev: they wont Jun 21 20:24:55 xbox one is a joke Jun 21 20:24:56 StingRay_: thanks that worked. Jun 21 20:25:01 :) Jun 21 20:25:12 you guys think google glass will take off? Jun 21 20:25:19 and open up another ecosystem? Jun 21 20:25:36 Nope Jun 21 20:25:41 i hope not Jun 21 20:25:49 why you hope not? Jun 21 20:26:07 google already is an unofficial part of the nsa surveillance machine Jun 21 20:26:17 along with skype, prism participants Jun 21 20:26:36 sounds to me, from reading articles they do it unwillingly and want to start releasing stats on what they submit etc... Jun 21 20:27:03 and it's a known fact everything on the web, in the US is recorded and probably has been for some time Jun 21 20:27:17 every email, im, site visited, file sent, everything Jun 21 20:27:42 i was reading a decent article yesterday about the connection between silicon valley and the NSA Jun 21 20:28:02 they apparently have rooms at all the top isp's Jun 21 20:28:06 http://bits.blogs.nytimes.com/2013/06/20/daily-report-the-deepening-ties-between-the-n-s-a-and-silicon-valley/?_r=0 Jun 21 20:28:19 remember though guys, it's for your own protection! Jun 21 20:28:37 land of the free... Jun 21 20:29:01 i'm sure the surveillance state loves that there are only a few huge players that have so much centralized information Jun 21 20:29:23 yeah i'm sure, they've done all the work for them Jun 21 20:30:18 only going to get worse, one day i'm sure pretty soon they'll have thought police Jun 21 20:30:39 read intel talking about brain chips by 2020 Jun 21 20:30:57 and who wants to lug around a mobile android device when you can just search in your head! Jun 21 20:31:06 search, im, play games etc... Jun 21 20:32:14 so I know I'm a channel operator and all, but I don't think I have the power to strike the last 10 minutes of "discussion" from the record. Jun 21 20:32:25 ctate: maybe you can do it since you're a founder? Jun 21 20:32:37 is this channel logged? Jun 21 20:32:42 who has the keys to the time machine? Jun 21 20:32:52 mdev: no, I just want that to have never happened Jun 21 20:33:02 oh sorry Jun 21 20:33:06 yeah I got off topic Jun 21 20:34:22 evanc: heh Jun 21 20:34:30 I wonder how much google makes off android and its eco system Jun 21 20:34:48 listen to the earnings calls; they're public :) Jun 21 20:34:50 hey guys, if you have a few seconds join me at ##jarvis, im in need of some beta testing. Thanks Jun 21 20:34:51 * ctate | one guy said they rejected his weather app then just released their own clone of it few weeks later Jun 21 20:34:54 I know they or android phone manufactors pay microsoft like $30 for everty phone made or something Jun 21 20:35:08 cstate yeah Jun 21 20:35:12 i guarantee you that if they released their own weather app a few weeks later, it means that they'd had it in development for many months before that Jun 21 20:35:24 ctate how does that change anything? Jun 21 20:35:34 sucks to be that guy, but there's no way they saw it, thought "hey we should do that," and THEN wrote a clone Jun 21 20:35:37 they unfairly denied his, being compeition and being ready before theirs Jun 21 20:35:41 to release their own Jun 21 20:35:48 that should be illegal to be honest Jun 21 20:35:54 yes. Jun 21 20:35:56 Maybe his app sucked Jun 21 20:35:57 it's their store Jun 21 20:36:04 it should be illegal for apple to determine what can and cannot go into the store that they build and maintain. Jun 21 20:36:16 putting an app in the apple appstore is a constutional right Jun 21 20:36:41 I don't care it's their store, you can't dicate things like that or give an unfair advantage to yourself, in any other space, in stocks it's called insider trading, a felony...in internet it's against net neutrality laws Jun 21 20:36:49 the tyranny of the british review system was fresh on the minds of the founding fathers when they wrote our laws. Jun 21 20:36:56 lov: what we need are more laws Jun 21 20:36:56 oh yes. Jun 21 20:36:58 in search google got fined millions for it, for monopoly laws Jun 21 20:37:01 the net neutrality laws that don't exist Jun 21 20:37:22 we have so many laws, nobody knows how many, exactly, in total Jun 21 20:37:27 you know what this discussion really needs? a new home. I suggest #android or #android-offtopic Jun 21 20:37:29 mdev: i'ts not like the internet is one big google store that people pay to be in Jun 21 20:37:36 but yes, what evanc said. Jun 21 20:37:36 yeah too many, but people should stop abusing things too Jun 21 20:37:40 evanc: I can think of a couple laws that could be getting enforced right now. Jun 21 20:37:44 especially big companies Jun 21 20:37:49 app development! Jun 21 20:37:54 stacktrace or GTFO! Jun 21 20:38:11 I tried to paste but irssi warned me that 30 lines is 30 too many Jun 21 20:38:11 ctate what have you been up to for the last 6mos or so,haven't seen you around Jun 21 20:38:13 should I do it anyway? Jun 21 20:38:15 wait what Jun 21 20:38:17 g00s: NO GOOD Jun 21 20:38:19 who +o'd me Jun 21 20:38:23 of course Jun 21 20:38:26 ChanServ Jun 21 20:38:28 thanks Jun 21 20:38:31 duh Jun 21 20:38:33 ctate: https://mlkshk.com/r/D00U Jun 21 20:38:35 work, vacation in england, the usual Jun 21 20:38:48 Xabster: note the imgur link in the channel topic Jun 21 20:38:54 argh Jun 21 20:39:00 >:) Jun 21 20:39:04 "vacation in england" Jun 21 20:39:04 :( Jun 21 20:39:22 g00s: had some great food, saw a billion sheep Jun 21 20:39:25 it was pretty good Jun 21 20:39:30 are you not allowed to release android apps in the play store and other stores? Jun 21 20:39:31 a few nice houses Jun 21 20:39:36 (e.g. Chatsworth :) )( Jun 21 20:39:39 other stores seem to link back Jun 21 20:39:42 mdev: yes, you're allowed to do that Jun 21 20:40:16 what about the new policy that updates must be downloaded from the play store Jun 21 20:40:27 for apps taht were delivered from the play store Jun 21 20:40:32 ok Jun 21 20:40:44 wonder why there aren't more android app stores then Jun 21 20:40:48 but that doesn't affect e.g. the app as distributed through Amazon Jun 21 20:41:10 mdev: there are a lot, none very successful other than Amazon's, which i imagine is quite successful Jun 21 20:41:43 did hear people making money off nook and yeah amazon stores Jun 21 20:41:47 that's interesting Jun 21 20:42:06 there are in china Jun 21 20:42:10 because no play Jun 21 20:44:10 g00s: Chatsworth has this statue on display: http://www.flickr.com/photos/jim-in-times-square/90210622/ Jun 21 20:44:18 it's *astonishing* in person. unbelievable. Jun 21 20:45:39 ctate wow, did you take that ? Jun 21 20:45:45 ha, no Jun 21 20:45:55 oh, Jim :) Jun 21 20:45:57 but i saw that statue :) Jun 21 20:47:27 ah here we go: http://www.chatsworth.org/art-and-archives/art-library-and-archive-collections/highlights/sculpture/a-veiled-vestal-virgin Jun 21 20:49:26 so if I started my own android app store, I could charge 20% of sales instead of 30% or whatever I wanted Jun 21 20:49:28 ? Jun 21 20:49:53 You could charge 100% of sales Jun 21 20:50:08 but good luck getting any developers to use your app store Jun 21 20:50:16 lol, i'm sure 100% would go over well, but that's awesome :) Jun 21 20:52:24 yeah like with anything, marketing would be required, but i'm happy google allows such things Jun 21 20:52:27 can system apps read files in system without root? Jun 21 20:52:46 some such files, yes Jun 21 20:52:47 not all Jun 21 20:53:07 "system app" just means it runs as uid 1000 = "system" Jun 21 20:53:25 not everything in /system is owned by that user Jun 21 20:53:31 I know Jun 21 20:53:36 ctate is it possible to record the screen in android without root? you seem knowledgable Jun 21 20:53:39 just being thorough here :) Jun 21 20:53:45 mdev: as a user, or programmatically? Jun 21 20:53:50 as a user, just use the screenshot hotkey Jun 21 20:54:01 from code, it is not possible Jun 21 20:54:05 and will not be made possible Jun 21 20:54:08 ctate, so if it's owned by root:root I can't? Jun 21 20:54:14 helicopter88: correct Jun 21 20:54:24 dang, someone paying over 10k if i could pull it off, like 12 others bid so assumed there was a way Jun 21 20:54:25 depends on file permissions, of course Jun 21 20:54:46 644,root:root Jun 21 20:54:48 helicopter88: ==JesusFreke of course. if hte file is o+r then you're fine Jun 21 20:54:58 so I suppose I can Jun 21 20:54:58 so yeah, that's world readable Jun 21 20:55:33 if you have root you can do anything correct? programmically? Jun 21 20:55:41 of course Jun 21 20:55:46 just like on any other unix system Jun 21 20:56:16 except those running SELinux :) Jun 21 20:56:44 okay yes, not everything because some things are guarded more tightly using capabilities etc Jun 21 21:04:38 Hey, I am hoping someone can help me. I'm trying to offload httpPut requests to a separate thread because my application crashes due to the main thread being too busy. This is the code I am trying to offload: http://pastebin.com/sgCbK1mq but I just can't get it to work, neither with calling in threads, nor with Async, anybody has any pointers? Jun 21 21:08:29 "Content-Type: String" is not likely to work well Jun 21 21:17:06 If you want to know how to do X, but limited to API level y, how do you find such info easily? Jun 21 21:17:22 Specially I'd like to see how hard or if it's even possible to use SQLite database in API level 7 Jun 21 21:17:34 Xabster: that hasn't changed in a long time Jun 21 21:17:48 the article i'm reading says otherwise: Jun 21 21:17:58 "I still demonstrate the usage of the DAO in this example to have a relatively simple example to begin with. Use the latest version of Android 4.0. This is currently API Level 15. Otherwise I would have to introduce the Loader class, which should be used as of Android 3.0 for managing a database Cursor. And this class introduces additional complexity." Jun 21 21:18:22 and i'm before version 3.0... Jun 21 21:18:29 i got android 2.1 on my own shitty device Jun 21 21:18:46 Xabster: that's just using Loader; not really related to SQLite Jun 21 21:18:59 but what you're looking for is the support library Jun 21 21:19:00 yeah, that's just the guy's app architecture Jun 21 21:19:29 what is Loader? I'm new to android but long time java guy Jun 21 21:19:40 something to load the sqlite driver? Jun 21 21:20:05 no, i'ts an app framework/lifecycle concept introduced in 3.0 Jun 21 21:20:06 Xabster: http://developer.android.com/guide/components/loaders.html Jun 21 21:20:07 there was an important feature added to sqlite, which came to api 8 - i think it was related to constraints or delete cascades Jun 21 21:20:24 g00s: i need none of that :) Jun 21 21:20:41 g00s: yeah, there was another recent one too (canceling queries) but people using such features generally aren't asking questions like this :P Jun 21 21:20:51 i don't need that either Jun 21 21:21:41 we're talking less than 50 rows total in 2 tables currently is all i'll ever need, and i don't need any restraints, FKs, or any such stuff Jun 21 21:22:05 Xabster: right, g00s is just being pedantic. Go read that link I sent you. Jun 21 21:22:13 i read it, don't need that either Jun 21 21:22:20 i'll load all data at start up Jun 21 21:22:25 don't need async loading Jun 21 21:22:31 Yes you do Jun 21 21:22:45 Xabster: SimonVT is right Jun 21 21:22:46 Don't block the ui thread Jun 21 21:22:55 I planned on using ASynTask Jun 21 21:23:03 That's async.. Jun 21 21:23:07 you don't think AsyncTask is async...? Jun 21 21:23:07 so true Jun 21 21:23:13 yes, i meant the loader stuff Jun 21 21:23:18 that i needed it in general Jun 21 21:23:19 cause i don't Jun 21 21:23:23 only for boot Jun 21 21:23:42 I have no idea how to parse that Jun 21 21:23:56 but I'll just go ahead and suggest that you read up on Loaders instead of stumbling around in ignorance Jun 21 21:24:08 what I mean is that I don't need to do any loading of data after the app is created - the list will be known to all users and it won't need reloading Jun 21 21:24:36 it's not really a List but a List, but anyway Jun 21 21:25:17 "less than 50 rows total in 2 tables currently is all i'll ever need" Jun 21 21:25:30 frankly, with that little data wtf are you doing bothering with SQL at all Jun 21 21:25:50 but hey that's just me :) Jun 21 21:25:57 what do you suggest? Jun 21 21:25:58 just put it in a json file maybe Jun 21 21:26:00 a custom file format? Jun 21 21:26:03 i HATE json Jun 21 21:26:06 it should burn in a fire Jun 21 21:26:10 ha ha Jun 21 21:26:19 wat Jun 21 21:26:23 but it's easy and MUCH faster Jun 21 21:26:30 protobufs Jun 21 21:26:32 just use csv Jun 21 21:26:33 Xabster: json is a godsend when your alternative is xml ;p Jun 21 21:26:35 sqlite is great if you need to actually do complicated db queries Jun 21 21:26:45 but for small datasets wtf, it all fits nicely in ram anyway Jun 21 21:26:50 And gson, you never have to actually mess with json Jun 21 21:26:55 i honestly considered a Base64OutputStream(ObjectOutputStream).write(myObject) into the SharedPreferences thing, and reload it from that Jun 21 21:26:57 Just pojo's Jun 21 21:27:10 yeah seriously Jun 21 21:27:18 do you guys recommend gson or jackson for json <--> pojo ? Jun 21 21:27:27 I use gson Jun 21 21:27:30 or json --> pojo Jun 21 21:27:37 ok Jun 21 21:27:38 I'm probably spoiled, but I need an editable TextView with a Spinner which utilizes a persistable LruCache. Any advice? Jun 21 21:28:02 Start coding Jun 21 21:29:08 Great advice, thanks. :P Jun 21 21:29:17 np Jun 21 21:30:08 I have a hard time imagining what an edittext with a spinner looks like Jun 21 21:30:32 Unless you just mean AutoCompleteTextView Jun 21 21:30:33 * JesusFreke imagines the edittext itself spining around in a circle Jun 21 21:31:48 right round, baby, right round Jun 21 21:32:19 Ah, perfect, even better. Just need to wire up Adapter up to the LruCache. Jun 21 21:33:30 Come to think of it; I'll leave the lru stuff for later. It may not even be needed. I'll just persist the last X entries in entry order. Jun 21 21:34:11 ctate: could you take a look at a DMCA/copyright issue I have with the play store? someone has cloned/stolen my code and is selling a modified version (he has almost 1k sales). I sent in a DMCA a week ago but have had no response Jun 21 21:34:19 I cannot. Jun 21 21:34:22 for several reasons Jun 21 21:36:32 Is there any other way to contact someone who can help? Jun 21 21:36:52 I dunno. Check out the developer support site; see e.g. https://support.google.com/googleplay/android-developer/answer/2985818?hl=en and http://developer.android.com/distribute/googleplay/policies/ip.html Jun 21 21:39:22 ok, thanks Jun 21 21:45:27 hey guys Jun 21 21:45:44 I have CookieManager cookieManager = CookieManager.getInstance(); Jun 21 21:45:48 cookieManager.removeAllCookie(); Jun 21 21:46:02 but I notice I can kill the app and launch it again and the cookies don't seem to be cleared Jun 21 21:46:25 I think I read somewhere that it automatically updates the storage with the new cookie info every 5 mins or so...that normally it keeps the cookies in memory Jun 21 21:46:41 think that might be it? Can I like...flush the removal of the cookies? Jun 21 21:50:50 ProgramMax: maybe .sync() ? Jun 21 21:51:20 there is no cookieManager.sync() ?? Jun 21 21:52:10 CookieSyncManager.getInstance().sync() ... I'm just guessing. I don't know if this'll work Jun 21 21:53:34 ohhhh there is a CookieSyncManager?! Jun 21 21:55:07 shoot. This happens every now and then, and I forget how to fix it Jun 21 21:55:09 rebuild, I think Jun 21 21:55:16 messing up with my R.stuff Jun 21 21:57:09 I have rows in SQLite now, and I need to "map" each entry to a button on the UI (map means create a button for each entry with the description field, and under the helm i need to store an ID that I need when that button is pressed) - should I subclass the Button class and add a getter for my ID fields? Jun 21 21:57:14 or other suggestions? Jun 21 21:59:14 or use a ListAdapter and make my CustomObject's have a .toString method with the description? Jun 21 21:59:32 listadapter and getView Jun 21 22:00:35 not sure i actually understand that listadapter way myself Jun 21 22:01:49 that worked Jun 21 22:01:50 thanks! Jun 21 22:02:40 pfn, a listadapter will just show my objects as textviews, no? Jun 21 22:02:50 no Jun 21 22:02:51 why would it Jun 21 22:02:52 BUGGSGSS Jun 21 22:02:54 i hate bugs. Jun 21 22:03:01 that's what it does in the example i'm reading Jun 21 22:03:08 that's why it's an example Jun 21 22:03:21 I love bugs Jun 21 22:03:40 if there were no bugs, it would mean there is no software :) Jun 21 22:03:41 :) Jun 21 22:03:48 and no $$ for us... Jun 21 22:03:49 but textview isn't mentioned in the code, so how can i make my listadapter show the entries as buttons? Jun 21 22:03:49 :) Jun 21 22:04:34 by overriding getView Jun 21 22:04:46 Anyone know a way to either chang ethe position ID's of a spinner Jun 21 22:04:54 or set the position some other way? Jun 21 22:05:32 pfn: getview on which class? Jun 21 22:05:43 i've got a spinner that list some things. the master list of those things have id's. i was using those id's to set the position but now i've hidden some of those things so the ID numbers of those things don't match the position on the spinner any longer :-\ Jun 21 22:05:44 the adapter Jun 21 22:06:05 ArrayAdapter adapter = (ArrayAdapter) getListAdapter(); Jun 21 22:06:11 so nothing like that ^? Jun 21 22:07:17 doing that is pretty wrong Jun 21 22:07:24 the cast alone is cringeworthy Jun 21 22:08:23 ok.. Jun 21 22:09:29 pfn, there's this earlier, though: ArrayAdapter adapter = new ArrayAdapter(this,android.R.layout.simple_list_item_1, values); setListAdapter(adapter); Jun 21 22:09:46 read and understand how adapters work better Jun 21 22:10:01 also, take a little effort to figure out what android.R.layout.simple_list_item_1 is Jun 21 22:10:31 i tried, but there's no mentioning of it in any other place :( Jun 21 22:10:32 you can find the corresponding xml in android-sdk-whatever/platforms/android-TARGET/data/res/layout/ Jun 21 22:10:52 right, but i'm reading this http://www.vogella.com/articles/AndroidSQLite/article.html Jun 21 22:11:00 you should be reading d.android.com Jun 21 22:11:04 not some random website Jun 21 22:12:16 developer.android.com has examples? Jun 21 22:12:19 i can only find docs Jun 21 22:12:20 yes Jun 21 22:12:29 examples are included in the sdk sources Jun 21 22:12:38 er, sdk platforms Jun 21 22:12:55 so you mean i should read the samples in the SDK, not the site? Jun 21 22:13:06 the site documents the examples in the sdk Jun 21 22:13:26 don't seem to see that anywhere Jun 21 22:13:34 i see class docs only Jun 21 22:14:03 you're not looking hard enough Jun 21 22:15:50 care to prove what you're saying? this is all i can find http://developer.android.com/tools/samples/index.html Jun 21 22:16:11 everything under training has examples Jun 21 22:18:39 hm, so it seems gradle uses ivy as its maven dependency enabler Jun 21 22:21:20 apparently everyone loves to use ivy instead of aether Jun 21 22:21:41 never heard of aether, ivy has been aound forever Jun 21 22:22:00 aether is the api maven uses Jun 21 22:22:37 did they spin that out with maven 3 ? Jun 21 22:26:37 I don't know when that happened Jun 21 22:31:49 so, if i decide to grab the gradle stuff from repo/tools, and create a new project, will the directory structure be agreeable with intellij + plugin (not AS) ? Jun 21 22:32:02 from what it seems ADT doesn't like it Jun 21 22:33:35 adt won't like it Jun 21 22:33:42 but it should work with intellij just fine Jun 21 22:33:47 it follows the same project structure Jun 21 22:33:53 everything in src/main/... Jun 21 22:34:44 oh heh, i never used intellij android facet to creat a project from scratch - always imported the results of 'android create project' Jun 21 22:40:45 hello! I'd like to let users create their own logics and resources, so I thought a dynamic library load/unload would be the best thing to do... but I'm open to everything... like... resources compiling on-the-fly from zip files or anything similar? Jun 21 22:41:50 "their own logics"? Jun 21 22:43:21 I need to let them customize fields and how they act depending on each other Jun 21 22:43:36 i.e. field a, b, c. A and B are indipendent, C is A*B Jun 21 22:43:42 (just an example) Jun 21 22:43:51 um do you mean preferences? Jun 21 22:44:09 your question is a little too open ended Jun 21 22:44:44 lasserix: more than those. For example one'd like to have field A as integer, field B as string. Another one could need field X as float, field B as int, field F as integer Jun 21 22:44:46 how do you get input from the user? how long does the info need to persist? Jun 21 22:45:29 lasserix: the idea is to have only the basics covered by the main application, then execute determinated methods of a class from the external library Jun 21 22:46:02 elegos, sounds like you're looking for a scripting laye Jun 21 22:46:07 layer*, try sl4a Jun 21 22:46:31 parco: what about custom layouts? May I compile them (and the relative image resources) on the fly? Jun 21 22:46:55 be careful of inception, you don't want an app within an app Jun 21 22:47:23 parco: of course, thanks :) Jun 21 22:47:37 Honestly I'm not sure, i just google things Jun 21 22:50:05 Ugh... stuck. Jun 21 22:50:33 Do I have to do anything funky with a customAdapter to have it return the correct position for an item on a spinner? Jun 21 22:50:50 it keeps returning -1 (which means it doesn't find it) Jun 21 22:51:10 but i'm doing myCustomAdapter.getPosition(myObject) and its not workin... Jun 21 22:51:26 does the myObject have to be the exact same object reference as the origional? Jun 21 22:52:50 pfn so lets say i go android gradle build system + vim, just to make it simpler, is it in a usable state atm? can it do application, test, and library projects ok … each with transitive dependencies, etc ? Jun 21 22:53:29 i think you said you use sbt, but seems like you're playing around with the gradle stuff too :) Jun 21 22:57:04 I have not done anything with gradle at all Jun 21 22:57:27 oh, sorry misunderstood Jun 21 22:57:31 I'm only looking in aosp tools/base/build/builder to see how stuff works Jun 21 22:57:42 there's a common java library, and the gradle plugin stuff Jun 21 22:57:51 I'm just making comments since I cross over into gradle to see how stuff is done Jun 21 22:58:46 I only care about gradle enough to make using sbt as seamless and transparent as possible Jun 21 22:58:51 like how I made it work with ant/eclipse projects Jun 21 22:59:14 my sbt plugin is completely transparent when used with eclipse-adt and ant projects Jun 21 23:01:11 cool Jun 21 23:02:30 making it transparent with gradle is pretty difficult since just about everything about project layout and interdependent behavior has changed Jun 21 23:05:50 can you record a android screen if it's connected to a computer via usb, without root? Jun 21 23:06:06 hrmmm Jun 21 23:06:14 if you have usb debugging enabled Jun 21 23:06:17 my proguard suddenly is complaining when it wasn't complaining before Jun 21 23:06:20 about files that I haven't changed Jun 21 23:06:44 for example LandingActivity: can't find referenced method 'void setContextView(int)' in class blah.LandingActivity Jun 21 23:07:05 nowhere in the code is there a setContextView Jun 21 23:07:05 pfn was that directed at me Jun 21 23:07:10 so it isn't referencing it, right? Jun 21 23:08:39 pfn, i read some more about adapter and I'm overriding the getView method now, but I've started to write the creation of a LinearLayout with a TextView+ 2 Buttons on it in regular java code - this means that the appearance of that linearlayout and children needs to also be in regular java code, not xml - I'm sure there's a way to have a "template" sort of layout and just fill in the 3 Jun 21 23:08:39 strings that my textview and button1 and button2 needs to have - any pointers to that? Jun 21 23:08:47 one that is defined in xml Jun 21 23:09:16 Xabster, use a LayoutInflater and inflate from xml Jun 21 23:09:27 Xabster, make sure you properly utilize the convertview Jun 21 23:09:46 oh damn, i was ignoring convertview :/ Jun 21 23:09:49 no idea what it's for Jun 21 23:10:23 if it's nonnull, it's a cached previously returned object from getView Jun 21 23:10:59 "Screencapture on non-rooted device is possible. If you create an executable file using Android Ndk and then connect it to computer to start it using android adb, you will be able to access /dev/graphics/fb0 and do screencapture using the file." Jun 21 23:11:14 ? Jun 21 23:11:58 yes, the shell user has the ability to grab a screenshot Jun 21 23:12:03 a normal application does not Jun 21 23:12:09 <|0xD34D|> mdev: normal users have zero access to that Jun 21 23:12:17 <|0xD34D|> crw-rw---- root graphics 29, 0 2013-06-19 19:12 fb0 Jun 21 23:12:20 what is ndk Jun 21 23:12:21 the shell user is the user you get when you adb shell in Jun 21 23:12:25 and can a normal user install that? Jun 21 23:12:26 <|0xD34D|> native development kit Jun 21 23:12:32 ndk is pretty much irrelevant Jun 21 23:13:03 it's not the NDK that enables it, it's the fact that you're running as the shell user Jun 21 23:14:13 not "shell user" the adb user Jun 21 23:14:14 and you can only do that if you use a usb, and are debugging correct? Jun 21 23:14:35 hmm, I guess it is 'shell' Jun 21 23:14:37 pfn: that *is* the shell user Jun 21 23:14:39 ignore that Jun 21 23:14:51 mdev: correct Jun 21 23:32:34 does screen recording work with the emulators? Jun 21 23:34:07 you can grab a screenshot, yes Jun 21 23:44:17 so to record video i'll just rapidly take screenshots Jun 21 23:44:32 and make a avi out of them Jun 21 23:45:20 that'll work yay? Jun 21 23:46:17 man...I don't even know where to start on this Jun 21 23:46:34 on what brother Jun 21 23:46:56 Error: ProGuard: [project-name-here] Warning: app.stuff.LandingActivity: can't find referenced method 'void setContentView(int)' in class LandingActivity Jun 21 23:47:19 so it says it can't find that method Jun 21 23:47:20 no where in the code does that LandingActivity call setContentView Jun 21 23:47:31 well maybe another method calls it indirectly Jun 21 23:47:42 either way, why can't it find it? is it defined properly? Jun 21 23:47:58 does landingactivity extend activity? Jun 21 23:48:04 yes Jun 21 23:48:32 are there other errors that might confuse it? Jun 21 23:48:39 oh man, I lied, it does call setContentView Jun 21 23:48:42 I had typed context Jun 21 23:49:15 no, you hadn't! Jun 21 23:49:26 at least now you can fix it :) and won't have to spend hour after hour stressed out as to why the bleeping thing isn't working Jun 21 23:49:30 like this guy ^ Jun 21 23:49:49 bleeping being fudging, as I don't curse :) but still Jun 21 23:50:36 hah, the "no cursing" thing is a stupid thing to do if you instill the word in people's minds anyway Jun 21 23:50:45 the letters themselves are not the issue, the meaning is Jun 21 23:50:50 and you gave us that thought Jun 21 23:50:52 whatever you do, don't think of an elephant. Jun 21 23:50:56 making your censoring fucking useless Jun 21 23:50:59 also, it extends FragmentActivity Jun 21 23:52:38 shouldn't it have found setContentView through that? Jun 21 23:55:02 do any of you use android development thing now, or just eclipse? Jun 21 23:55:27 android studio Jun 21 23:56:27 yes, some in here use it :) Jun 21 23:56:37 I'm using it Jun 21 23:57:02 I didn't think it was mature enough for live development Jun 21 23:57:11 but that's refreshing as I never liked eclipse much Jun 21 23:58:13 I think I found the problem Jun 21 23:58:29 Note: the configuration refers to the unknown class 'android.support.v4.app.FragmentActivity' Jun 21 23:58:31 a lot of people use IntelliJ for Android dev, too, fwiw Jun 21 23:58:42 ctate what do you use ? Jun 21 23:58:47 i still use Eclipse Jun 21 23:58:52 Yeah, I've used intellij in the past Jun 21 23:59:04 Indigo Jun 21 23:59:06 ctate do you use the ADT though ? Jun 21 23:59:12 oh, no ADT Jun 21 23:59:13 ProgramMax, you need to add support-v4.jar to -programjars Jun 21 23:59:23 adt is useless when working on framework Jun 21 23:59:26 on account of framework dev & flashing devices etc Jun 22 00:00:15 hey pfn Jun 22 00:00:20 sup homeslice Jun 22 00:00:24 hey Napalm Jun 22 00:00:25 nice app Jun 22 00:00:30 which app? Jun 22 00:00:31 hey g00s.. long time Jun 22 00:00:36 well all 3 editions Jun 22 00:00:37 :D Jun 22 00:00:41 indeed ;-) Jun 22 00:00:43 pfn Okay, thanks. I am unsure how to do that but I appreciate having something to look into :D Jun 22 00:00:46 will try to find it Jun 22 00:00:54 g00s: whatcha up to? Jun 22 00:01:14 ProgramMax, that's the support library, and it should be added automatically by the build system... Jun 22 00:01:22 oh, was looking at the gradle build stuff today. exciting, but i wish everything was all worked out with adt, etc Jun 22 00:01:31 why must smooth scrolling with listViews be so hard Jun 22 00:01:40 g00s, use my sbt plugin, damnit Jun 22 00:01:45 haha Jun 22 00:01:59 xastey: because they knew you were gonna program it ;) Jun 22 00:02:10 cruse them!! Jun 22 00:02:18 in the project properties, under libraries, libs, I see "Classes: blah blah android-support-v13.jar" Jun 22 00:02:22 no -v4.jar Jun 22 00:02:31 then add -v4.jar Jun 22 00:02:39 iirc, v13 isn't a superset Jun 22 00:02:40 workin' on that. Will it be in my SDK dir Jun 22 00:02:49 another week, no iosched2013 code … did roman forget about it ? Jun 22 00:03:05 nevermind, I guess it is a superset Jun 22 00:03:10 but seriously, if I have memory cache, no heavy overdraw whatelse can I do Jun 22 00:03:28 even if I move slow.. when one cell leaves the view and another one shows it gives a short bump Jun 22 00:04:01 added it and still no good Jun 22 00:04:03 I should mention that at most only 1 full row will be showen.. so half of one and half of another is also possible Jun 22 00:04:04 xastey, use the convertview, and viewholders if necessary Jun 22 00:04:15 ProgramMax, in proguard properties, not project properties Jun 22 00:04:26 although, it's still messed up if it's not including it as -programjars Jun 22 00:04:32 proguard.cfg Jun 22 00:04:33 every project library should be included Jun 22 00:04:43 if it was a superset maybe that is why it wasn't Jun 22 00:04:52 it is a superset Jun 22 00:05:36 yeap pfn view is only called twice Jun 22 00:05:45 ? Jun 22 00:05:57 sorry getView is only called twice Jun 22 00:06:13 as I mentioned I can get it to happen even if i move very slow Jun 22 00:06:14 you only have 2 items, why are you scrolling? Jun 22 00:06:20 soon as the top of the next row shows I get a bump Jun 22 00:06:28 no pfn I have more of course Jun 22 00:06:35 then how is it only called twice Jun 22 00:06:42 sorry Jun 22 00:06:45 so that note is now gone Jun 22 00:06:46 you are very literal Jun 22 00:06:50 I need to be exact my bad Jun 22 00:06:58 I'm only inflating the view twice Jun 22 00:07:04 getView is being called multiple times Jun 22 00:07:08 what do you expect, we're not mind readers Jun 22 00:07:15 sorry for not being direct Jun 22 00:07:37 then profile how long getview is taking with all your view updates, and figure out how to minimize it Jun 22 00:07:40 every time.. never fails Jun 22 00:07:48 I've done that as well pfn its like 3% Jun 22 00:08:16 everything else is on measure and toplevel Jun 22 00:08:26 then figure out why onmeasure is slow Jun 22 00:08:28 xastey: you are using a lazy loading adapter for images with text in a listview ? Jun 22 00:08:55 yes I'm loading the images in the background in another thread if needed Jun 22 00:08:57 reduce the size of your view hierarchy Jun 22 00:09:05 also I'm using a memory and disk base cache via LruCache Jun 22 00:09:14 if the image is in memory cache I load it directly Jun 22 00:09:19 but dont get stuck on the images Jun 22 00:09:28 this still happens without the image being loaded Jun 22 00:09:38 Profile it. Jun 22 00:09:45 Traceview is yor frend. Jun 22 00:09:48 I did it a few times I'm doing it again right now Jun 22 00:10:07 hrmm Jun 22 00:10:23 you said I can specify this and add it to the proguard config? Jun 22 00:10:34 Did you mean proguard.cfg? I don't see anywhere in there that I'm setting the other jars Jun 22 00:11:41 also I ran adb shell dumpsys gfxinfo .. highest was 14ms Jun 22 00:12:06 everything needs to be under 16ms to keep 60fps so thats not it Jun 22 00:13:06 ProgramMax, yeah, you can just add it manually into proguard.cfg Jun 22 00:13:12 although that's not the preferred solution Jun 22 00:13:17 dunno why your IDE isn't generating it for you Jun 22 00:13:24 I'm trying to use some xml as a template for a row in a linearlayout. I've inflated it and I get a LinearLayout aswell (it's linearlayout with linearlayouts) but this newly inflated linearlayout has 1 textview and 2 buttons and I need to change the text on those as the only thing - how do I know which button is which and how to I fetch? Jun 22 00:13:33 this all worked before. My project freaked out and required me to rebuild Jun 22 00:13:36 my R.* were broken Jun 22 00:13:41 at that same time, proguard broke Jun 22 00:14:24 can i specify an ID in the xml for the buttons and use some method on linearlayout to get that particular button? i believe that's how it's normally done but i'm still very new to this stuff Jun 22 00:14:52 Xabster, of course, there's findViewById Jun 22 00:15:13 ahh, i was looking at get methods Jun 22 00:15:17 can someone point me to a good reference on understanding the cells in the profiler Jun 22 00:15:20 only getChild(int index) came close Jun 22 00:15:25 to make sure I'm understanding them correctly Jun 22 00:16:01 xastey, paste the image Jun 22 00:16:07 sure thing Jun 22 00:16:35 what's the difference between onCreateResources() and onCreateScene() ? Jun 22 00:16:48 pfn: what happens with duplicate IDs? I will have several LinearLayouts with equal ID buttons all on the same top linearlayout, so what will happen if I call findViewById() on the top linearlayout? Jun 22 00:17:17 Xabster, depends on your view hierarchy Jun 22 00:17:41 hehe well thats funny a png is smaller then a jpeg Jun 22 00:17:42 Xabster, if you have it encapsulated in a custom view (e.g. listview, your own custom view object etc.) then it will not cross that boundary when searching for IDs Jun 22 00:17:58 http://imgur.com/a/drD2R here you go pfn Jun 22 00:18:00 xastey, sure, you can make 8bpp pngs Jun 22 00:18:13 O i was just using mspaint Jun 22 00:18:29 anyway thats 1-91 let me know if you need the rest as well Jun 22 00:18:38 can't see anything Jun 22 00:18:49 http://i.imgur.com/9e2hJUr.png Jun 22 00:19:00 http://i.imgur.com/oU5VH0R.jpg Jun 22 00:19:25 pfn, I have a vertical linearlayout as root, and I add vertical linearlayouts to that to simulate rows, and each row has a textview and 2 buttons where each row has buttons with the same IDs, so I guess it's fine? Jun 22 00:19:38 no, it's not fine Jun 22 00:19:45 damn Jun 22 00:20:28 lol why not use a list view Xabster ? Jun 22 00:20:34 no clue Jun 22 00:20:40 good answer Jun 22 00:20:48 now erase it before pfn rips you one Jun 22 00:21:07 so listview as top container, and vertical linearlayout's for rows? Jun 22 00:22:10 xastey, dunno, but it looks like you have a loop with dispatchTouchEvent? Jun 22 00:22:32 at least on that item you have expanded Jun 22 00:25:40 umm Jun 22 00:25:50 why i haz no 'default'? http://pastebin.com/N4xmVuj7 Jun 22 00:26:00 I do have a longtouch and doubletap listener Jun 22 00:29:23 xastey, anyway, maybe you'll want to sort on cputime/call and exclusive realtime Jun 22 00:29:57 inclusive means includes all child calls, exclusive means logic within the method itself Jun 22 00:31:09 pfn thanks I'll check that out Jun 22 00:32:33 can someone confirm that a ListView with vertical LinearLayouts with TextView+2buttons is an OK thing to do? :) Jun 22 00:32:46 sure, you can do anything you want, mostly Jun 22 00:32:50 as long as it scrolls vertically Jun 22 00:33:07 but you said LinearLayout with LinearLayout is not fine? Jun 22 00:33:14 is that cause it doesn't scroll? Jun 22 00:33:32 no, because your viewhierarchy doesn't have unique ids Jun 22 00:33:44 something like that Jun 22 00:33:45 but that's ok in a ListView Jun 22 00:33:46 + Jun 22 00:33:53 gah, cat on keyboard Jun 22 00:34:21 I forget the rules, but if you encapsulate your view somehow, you can have duplicate ids Jun 22 00:34:35 Xabster he was trying tell you, you are + for taxo Jun 22 00:34:35 okay, i'll google some if i run into problems Jun 22 00:34:43 huh Jun 22 00:35:32 taxo? Jun 22 00:35:44 * pfn & Jun 22 00:35:51 You can have as many duplicate id's as you like, just remember that findViewById iterates through the view hierarchy and returns the first View with that id it encounters Jun 22 00:36:06 oh I see, I'm OK with that Jun 22 00:36:08 Xabster taxoplasmosis Jun 22 00:36:10 bfs or dfs Jun 22 00:37:15 Anyone gradle with android studio? Mine's broke and I dunno why. :( Jun 22 00:37:44 06-21 21:37:20.205 201 405 I / ActivityStack START {flg=0x1000c000 cmp=com.angeldsis.lou/.LouSessionMain (has extras)} from pid -1 Jun 22 00:38:01 i cant figure out why, but a TaskStackBuilder i'm using in my notification, has just stopped working Jun 22 00:38:08 it prints this to logcat, and nothing opens Jun 22 00:38:29 clever, you don't have it defined in manifest Jun 22 00:38:45 pfn: *double-checks* Jun 22 00:39:06 Jun 22 00:39:07 Intent resultIntent = new Intent(SessionKeeper.this,SingleFragment.class); Jun 22 00:39:12 pfn: looks like its in the manifest Jun 22 00:39:27 oh wait, i know Jun 22 00:39:29 but LouSessionMain isn't Jun 22 00:39:32 the other activity in the stack isnt Jun 22 00:39:36 yeah, i just removed that Jun 22 00:39:45 * pfn & again Jun 22 00:39:45 *doh* Jun 22 00:40:08 i'll have to review for it for all references to that activity Jun 22 00:41:45 pfn: i have seen an error before clearly telling me it wasnt in the manifest Jun 22 00:41:55 so i didnt think to look for that, it wasnt saying so Jun 22 00:52:01 using intellij, can you add a module as a submodule of your project while having the physical location of the added module be a sibling folder in the filesystem? Jun 22 00:52:27 ie. Can I have on my hdd: Projects/A, Projects/B, then in intellij have A/B? Jun 22 00:53:34 damccull i think so Jun 22 00:54:05 thats what they do here http://www.canoo.com/blog/2012/01/12/android-testing-in-intellij-idea/ Jun 22 00:54:15 damn it Jun 22 00:54:18 this is killing me Jun 22 00:55:04 so...I noticed by changing the proguard.cfg file that it, too, complained about R.* Jun 22 00:55:15 can I somehow force proguard to debuild instead of just build? Jun 22 00:55:18 That might fix it Jun 22 01:05:44 silly question if I update an imageView in will it relayout the parent chain? thats if the width,height is all the same Jun 22 01:06:29 xastey: are you using Asynctask anywhere ? Jun 22 01:07:00 not async task just an Executors.newFixedThreadPool(5) to load my images in the background Jun 22 01:07:19 should I switch? Jun 22 01:07:25 thought they were the same Jun 22 01:08:14 just was thinking maybe its some thread priority thing causing lag Jun 22 01:08:30 I'm not setting that.. maybe it is that Jun 22 01:12:28 nop thats not it Jun 22 01:12:34 happens when I switch out my images Jun 22 01:13:21 you haven't traced where it happens ? Jun 22 01:13:44 with the method profiler? yeah I have with that Jun 22 01:14:00 pfn was saying it was looping the dispatchTouchEvent Jun 22 01:14:17 so I removed the pulltorefresh listview and went with stock.. still does it Jun 22 01:14:45 not sure if you been following but even if I move the list view slow.. like pixel by pixel you can notice the jump when a new view comes in Jun 22 01:15:29 I haven't experienced that lag Jun 22 01:16:06 me either this is new for me Jun 22 01:16:16 but I tracked it down to loading the full image Jun 22 01:16:22 even if its in memory cache Jun 22 01:17:58 going try redoing my layout.. have a LinearLayout with 2 RelativeLayouts Jun 22 01:24:45 i cannot … get vanilla idea to replicate the dir structure the new gradle stuff does with modules Jun 22 01:25:53 using the 12.1.4 android plugin Jun 22 01:29:31 now i'm having trouble with TaskStackBuilder Jun 22 01:29:46 i'm adding 2 Intent's to it, and its creating a stack with the same intent twice Jun 22 01:33:33 g00s: you have any idea? Jun 22 01:34:02 no Jun 22 01:36:44 strange, it works ONCE for the first notification Jun 22 01:36:45 then it doesnt work for every other notification Jun 22 01:37:26 my nexus 4 notification is very wonky Jun 22 01:37:43 is slower than my computer and unreliable for apps i've tried, like skype and aim Jun 22 01:37:44 it was working fine until i started to use the same activity for both intents Jun 22 01:37:47 with different extras Jun 22 01:37:59 got a brand new router last week so my routers not the issue Jun 22 01:38:19 am hoping is os bugs and new release will fix it Jun 22 01:38:27 Can someone explain how I use android studio to create an aar of abs? :) Jun 22 01:40:23 wow Jun 22 01:40:26 I found a solution Jun 22 01:40:36 the code was setContentView(R.blah); Jun 22 01:40:47 when I super.setContentView(R.blah); proguard stops complaining Jun 22 01:41:05 Is there something better to hold int => int hashes than hashmap ? Jun 22 01:41:08 the former method works fine, but proguard is failing it Jun 22 01:41:15 i just need to store keys with a value Jun 22 01:41:19 and be able to look up the value by key Jun 22 01:41:28 (using to keep track of where stuff is in a spinner Jun 22 01:41:30 ) Jun 22 01:42:26 Hashtable maybe? Jun 22 01:42:29 flipture: you can do that with sqlite Jun 22 01:42:52 yeah but don't think its worth writing to the db Jun 22 01:43:19 flipture: SparseArray? Jun 22 01:43:34 clever: Thats what eclipse is suggesting Jun 22 01:44:35 brb Jun 22 01:44:42 flipture: a hashtable is synchronized Jun 22 01:48:02 I guess it doesn't need to be synchronized Jun 22 01:48:10 just looking for silightly efficent Jun 22 01:48:17 then hashmap is better than hashtable Jun 22 01:48:35 SparseArray seems to be the goto option if you're sure that you'll always use Integer as key Jun 22 01:49:29 ok cool, i will always use int as key... Its mapping the object's unique id that comes from sqllite to its position on the spinner Jun 22 01:50:00 probably won't ever be more than 10 or 20 items on the spinner and that hash will go away when you leave the layout... Jun 22 01:52:45 you know, i really could just create an array and use position of the value in that array Jun 22 01:52:51 it would equal the position on the spinner Jun 22 01:52:53 :-\ Jun 22 01:53:36 not sure how i'd locate the key tho i guess... Jun 22 01:54:38 what is it you're doing? Jun 22 01:56:17 flipture: you want to jump to an item with a certain id in the spinner? Jun 22 01:56:31 i'm adding items to a spinner using a custom arrayadapter Jun 22 01:56:51 i need to get the position of the object, or item in the spinner so i can set it to the one i want selected Jun 22 01:56:53 i just extend BaseAdapter Jun 22 01:57:11 when i tried to create a new object of the same thing that was in the spinner, it wouldn't give me the position, always return -1 Jun 22 01:57:20 i found that it was becuase i was creating a new object Jun 22 01:57:23 not using the origional reference Jun 22 01:57:33 yeah, id use a sparse array with id->position mappings Jun 22 01:57:39 so ive overridden getPosition Jun 22 01:57:48 and am creating my own hash type thingy to do it... Jun 22 01:57:52 cool. thx. Jun 22 01:57:54 trying it now Jun 22 01:59:08 can i simply do mySparseArray.put(int, int); ? Jun 22 01:59:18 i believe so Jun 22 01:59:25 then mySparseArray.get(int); and get the second int? Jun 22 01:59:36 it looks liek that from the docs but just making sure Jun 22 01:59:36 yeah, that looks right Jun 22 02:01:04 IDE suggested SparseIntArray, going to give that a go Jun 22 02:03:35 yes. Sparse*Arrays are awesome Jun 22 02:03:46 Learn something new every day :) Jun 22 02:04:00 so...it sounds like maybe proguard is obfuscating the android.support.v4.app.FragmentActivity Jun 22 02:04:14 and when this class extends FragmentActivity Jun 22 02:04:16 it can't find it Jun 22 02:04:51 look at the proguard log Jun 22 02:04:55 it will tell you exactly what it's doing Jun 22 02:15:16 Well looks like the SparseIntArray works great, but my spinners not updating now lol Jun 22 02:15:31 anything funky i have to do after doing a blah.setSelection(spinnerPositionInt); Jun 22 02:15:33 I'm looking but I'm not sure what I'm looking for, exactly Jun 22 02:21:07 Odd, inside the custom adapter, thte sparseintarray returns the correct value for key but when i call the method on the adapter object it doesn't Jun 22 02:26:41 JakeWharton Jun 22 02:26:48 nope Jun 22 02:28:59 wake up@! Jun 22 02:29:28 ⓃⓄⓅⒺ Jun 22 02:29:37 lol that's pretty neat Jun 22 02:29:57 s/neat/entirely useless and annoying and obnoxious/ Jun 22 02:30:24 it's fun for commenting on pull requests at least Jun 22 02:30:43 I still think it's neat :) in decade'ish of irc'ing i've never seen that before :) Jun 22 02:32:56 interesting all the games that are clones of bejewled, but changes slightly Jun 22 02:33:18 like candy crush, is one of the top games now, maybe the very top Jun 22 02:33:48 guess it pays to take a working formula and change it abit instead of trying something brand new, aslong as there's no fear of being sued for it Jun 22 02:34:05 Maybe my dropdown view resource is set incorrectly? coudl that make it not want to take a setSelection? Jun 22 02:34:28 flipture: nobody but you would know as you haven't shown code Jun 22 02:35:16 hopefully google embraces C more in the future, as i'm not a big fan of java Jun 22 02:35:39 you want to code android apps in C? :D Jun 22 02:35:55 heck even object C would be a win, think how easy it'd be for ios apps to convert over :) Jun 22 02:36:00 that would be sooo messy Jun 22 02:36:04 JakeWharton: yeah... i guess i'm just thinking aloud. I'm close to posting code tho. Running out of ideas... Jun 22 02:36:10 C++ at the very least Jun 22 02:36:35 I bet object c binaries run faster than java ones :) Jun 22 02:36:43 go intense games = win Jun 22 02:36:52 m Jun 22 02:36:55 yes they do, probably by a fair bit and much less memory Jun 22 02:36:56 oh damn, I thought it was GMail Jun 22 02:37:08 but dev would take 2-5 times as long I think Jun 22 02:37:10 plus lot of android phones have bigger screens, so could enjoy games even more than on tiny iphone screens Jun 22 02:37:13 and debugging is terrible Jun 22 02:37:32 my nexus 4 dwarfs my missus iphone s4 for instance, is my first smart phone so was suprised how much bigger it is Jun 22 02:37:49 it's probably a better solution for them to push device performances and stay with java's high level approach Jun 22 02:38:41 mdev: they already make games in C/C++ in android using NDK Jun 22 02:38:44 Xabster: it is possible to get high fps games out of pure dalvik, ive seen some youtube videos explaining what you need to avoid Jun 22 02:38:50 mainly, avoid triggering the GC at all costs Jun 22 02:40:09 clever: i never said it wasn't :) Jun 22 02:40:18 but C is faster than java Jun 22 02:40:24 there's no way around it Jun 22 02:40:31 ive also been looking into java to obj-c converters recently Jun 22 02:40:31 and less memory consumption Jun 22 02:41:01 Xabster: http://code.google.com/p/j2objc/ Jun 22 02:41:13 it will do a source level translation, giving you obj-c code Jun 22 02:41:26 i think you've confused me with mdev Jun 22 02:41:29 but it doesnt support any of the gui classes, just the behind the scenes stuff Jun 22 02:41:55 you can always wrap the computationally intensive code bits in native Jun 22 02:42:09 yep, just be aware of the overhead of calling into jni Jun 22 02:42:11 no, you can't always do that :) Jun 22 02:42:35 like clever said, the UI components are what they are Jun 22 02:42:52 well, hmm Jun 22 02:43:21 i guess they're of course native under the helm too, so maybe you can Jun 22 02:43:44 ive looked into many of the ui classes, almost all of it is pure java Jun 22 02:44:57 hmm Jun 22 02:45:04 they don't call something native? Jun 22 02:45:23 eventualy, but i never had to dig that deep into the source to find my answers Jun 22 02:45:54 ive also wound up digging arround at the other end, where it interfaces with the video hardware, thats almost all pure c Jun 22 02:46:13 just not sure where the 2 connect in the middle, and how the hardware rendering complicates it Jun 22 02:46:27 Any recommendations on cardui libs? Jun 22 02:47:43 clever: it might just be native in the sense that dalvik has the code and it's not really in the ADK api Jun 22 02:47:50 View class has nothing native in it Jun 22 02:48:03 and I went from Button -> ... -> View and no native code found Jun 22 02:48:15 and View is a top class, only implements interfaces Jun 22 02:48:18 lol JakeWharton, quick question about Retrofit, is there any way to only get a Response object without having at the callback being (Response r1, Response r2)? Jun 22 02:48:22 Xabster: i'm not sure, but i think both of those are doing all rendering with the canvas class Jun 22 02:48:44 Xabster: look at the onDraw function Jun 22 02:49:09 jug6ernaut: probably not Jun 22 02:49:18 k Jun 22 02:49:18 Never considered it. Jun 22 02:49:57 i looked through the source, and it looked like it would take a lot to make it so without changing way to much, for no real gain. Jun 22 02:50:28 It's just going to pass the same object for both args right? Jun 22 02:50:31 JakeWharton just wondering because in the demo website it says to pass Response to the callback, even tho it always returns the response anyways. Jun 22 02:50:40 i believe so Jun 22 02:52:30 clever: ah right, the canvas has tons of native Jun 22 02:53:11 https://www.youtube.com/watch?v=zQ-hPNrKdZI Jun 22 02:53:45 Xabster: hmmmm Jun 22 02:54:05 Xabster: onDraw gets a pre-made Canvas passed in, so we have no idea what its drawing to Jun 22 02:54:23 but it ultimate does relay that to native methods Jun 22 02:54:46 Xabster: yep, nearly all of its methods are just calling a native directly, and passing the mNativeCanvas pointer Jun 22 02:55:02 yea Jun 22 02:55:02 which is likely a c++ object Jun 22 02:55:30 hard part is finding the c code Jun 22 02:55:41 Xabster/clever : wake me up when you find the god particle Jun 22 02:55:55 shmooz: how fast was it going again? Jun 22 02:55:59 it's been found and therefor renamed because it actually exists Jun 22 02:56:05 Xabster: frameworks/base/core/jni/android/graphics/Canvas.cpp: {"native_drawColor","(II)V", (void*) SkCanvasGlue::drawColor__I}, Jun 22 02:57:00 Xabster: yep, its just a c style function pointer, which calls a c++ member function on an argument Jun 22 02:57:01 clever: god speed Jun 22 02:57:11 yep Jun 22 02:57:14 shmooz: i think it was someting like 99.99% of the speed of light? Jun 22 02:57:34 higgs boson? Jun 22 02:57:45 Xabster: nope Jun 22 02:57:49 Xabster: http://en.wikipedia.org/wiki/Oh-My-God_particle Jun 22 02:58:19 n mainstream media the Higgs boson is often referred to as the "God particle," Jun 22 02:58:23 https://en.wikipedia.org/wiki/Higgs_boson Jun 22 02:58:33 ah, different particle then i was thinking of Jun 22 02:59:08 i was somewhat off on the speed, it wasnt 99.99%, it was 0.9999999999999999999999951c **** ENDING LOGGING AT Sat Jun 22 02:59:58 2013