**** BEGIN LOGGING AT Sun May 19 02:59:58 2013 May 19 03:00:19 ah, ok - device monitor is a standard android tool now. it starts that May 19 03:00:35 but monitor is eclipse configured to just show a few things May 19 03:01:32 hmm my fragment title isnt persisting through rotation with the drawer May 19 03:03:24 canadiancow: thanks for testing this for us :) May 19 03:03:28 lol May 19 03:03:39 the example app is working in this respect, but mine isnt May 19 03:03:43 im using abs though May 19 03:06:44 wow, the monitor command in sdk 22 is totally broken May 19 03:06:49 java.lang.ClassNotFoundException: org.jfree.experimental.chart.swt.ChartComposite May 19 03:06:57 pretty much none of the tabs load May 19 03:07:26 well, Heap and Network stats anyhow May 19 03:07:59 argh why wont my title work :( May 19 03:08:23 oh, time for chocolate May 19 03:08:34 :) May 19 03:10:07 LG chocoalte? that phone is still being sold ? May 19 03:10:48 trader joe's pound-plus dark :) May 19 03:11:13 so trader joe's is making phones now ? May 19 03:11:25 ok fixed my title issue May 19 03:11:52 funkbox: yeah, edible ones May 19 03:33:16 * g00s sighs May 19 03:33:33 just spent half the afternoon debugging this problem: if (Intent.ACTION_EDIT.equals(getIntent().getData())) May 19 03:33:59 i've never worked with a platform that involved so many strings ... May 19 03:34:05 strings all the way down … ! May 19 03:34:15 getData() is a Uri May 19 03:35:13 yeah .. what did happen there May 19 03:35:26 well, false May 19 03:35:28 :D May 19 03:37:10 hey guys May 19 03:37:20 what are those internal apps called? May 19 03:37:32 com.android.internal.app May 19 03:37:57 com.android.bloat.* ? May 19 03:38:14 just kidding ;) May 19 03:38:58 i m just saying, how do i word it? May 19 03:39:13 i am writing a analytic report on what can be done and what can't be done May 19 03:39:53 http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.0.1_r1/com/android/internal/app/ActionBarImpl.java May 19 03:40:05 source code itself surely does not give any usage what's so ever May 19 03:40:20 i mean, any explaination May 19 03:40:30 you're not supposed to use internal apis :P May 19 03:41:28 I know, I am just writing a report May 19 03:41:32 there is one internal api that is so awesome, its a top secret uh, secret sauce May 19 03:41:45 my client have access to modification of the OS, lets just put it that way May 19 03:41:51 its called HierarchicalStateMachine or something May 19 03:43:09 that's a lot of code May 19 03:44:49 funkbox: HSM ? May 19 03:44:54 android May 19 03:45:08 they should really use a more expressive and beautiful language like ruby May 19 03:45:29 .. May 19 03:47:01 is there a one-page "Volley: why you should use it and how" page somewhere? May 19 03:47:40 Leeds +1 May 19 03:47:51 the slides from IO might be there May 19 03:47:52 luckily im not familiar enough with it to go and write it :P May 19 03:47:58 the io talk should be up by now May 19 03:48:48 searching for "android volley" mainly finds volleyball games :) May 19 03:49:05 oh google May 19 03:49:21 g00s: it would make it smaller and faster and more beautiful May 19 03:50:14 actually, bing has the I/O session on the first page of results, unlike some other search engine... May 19 03:51:17 Bing? is that like Ask Jeeves? May 19 03:51:17 oh, for fsck's sake, Google... "Embedding disabled by request" on developers.google.com - really??? May 19 03:51:32 yea, i saw that and thought the same thing May 19 03:51:44 capella: select 'bing' from your firefox search box XD May 19 03:52:14 That's what that is??? May 19 03:52:17 Napalm: presumably it's because developers.google.com might be running ads against it or something, which would mean Google loses revenue :) May 19 03:54:05 this, incidentally, is completely and utterly off-topic, but such a happy-looking baby... http://goo.gl/lu2Nh May 19 03:55:07 while we're OT, goats on a trampoline http://i.imgur.com/lwdRYJp.jpeg May 19 03:55:17 anyone got a link for vid reposity of the io? May 19 03:55:33 https://developers.google.com/events/io/sessions May 19 03:55:36 click a session May 19 03:55:39 heh May 19 03:55:41 if the video is up, it will be there May 19 03:56:01 canadiancow: is this the first time you're on youtube now ? May 19 03:56:03 ty May 19 03:56:12 you're a star ! May 19 03:56:14 lol g00s May 19 03:56:15 not yet May 19 03:56:30 it looks like all the livestreamed sessions are available, and the non-livestreamed from wednesday May 19 03:56:41 any videos recomended? May 19 03:57:15 all of them :P May 19 03:57:20 yeah May 19 03:57:22 basically anything that looks relevant May 19 03:57:29 why doesn't youtube automatically pick highest quality May 19 03:57:32 if you dont do bluetooth stuff, then dont worry about bt May 19 03:57:37 but aside from that... May 19 03:57:44 ration yourself though - I/O comes but once a year May 19 03:57:50 lasserix, because if you're watching it in a 400x300 window, there's no point sending 1080p? :P May 19 03:57:50 will do bt stuff once i get bike up and running May 19 03:57:57 oh yeah May 19 03:57:58 that reminds me May 19 03:58:10 there are two kinds of people: those who full screen and those who don't lo May 19 03:58:11 ;p May 19 03:58:16 canadiancow: was yours not on a live stream? May 19 03:58:26 canadiancow: don't suppose any of those Pixels got left behind and are going spare? ;) May 19 03:58:30 no Napalm May 19 03:58:34 :( May 19 03:58:35 Leeds no idea May 19 03:58:41 but no, you cant have one May 19 03:59:11 oh well, worth asking... should get my One tomorrow, anyway May 19 04:02:13 leeds: hehe thanks for reminding me May 19 04:04:50 lasserix: pleasure... uh, reminding you of what? May 19 04:05:04 ration the io May 19 04:05:23 ah May 19 04:06:36 Leeds: your just hardcore vim, right ? May 19 04:07:54 Leeds: decides how to answer this one May 19 04:09:20 i'm sensing some shame or guilt May 19 04:13:32 you're mistaking afk for shame :P May 19 04:13:54 I do all my coding in vim, yes - although it's mostly django/python/web rather than android/java at the moment May 19 04:14:36 ;) May 19 04:14:58 we should ask vax to port ADT to vimscript May 19 04:15:03 *xav May 19 04:15:08 heh May 19 04:15:15 yeah, I may use vim, doesn't mean I work on a VAX :) May 19 04:17:00 I hate spinners so much. Always end up with about 20 xml files for 1 spinner to actually work. May 19 04:17:23 so what are those called? May 19 04:17:30 like the calendar, contact book May 19 04:17:35 default apps? internal apps? May 19 04:17:46 and google play service of course May 19 04:18:14 aosp apps ? May 19 04:18:39 play services isn't AOSP, of course - and neither is the gcal backend May 19 04:19:05 no, like internal apps May 19 04:19:07 framework apps May 19 04:19:16 what's a word for it? I just need it in my report May 19 04:20:22 call them "the apps google forgot about" May 19 04:20:50 "the apps which are there to get replaced by vendors" May 19 04:21:08 what about the kernals May 19 04:21:15 those apps arent forgotton... May 19 04:21:24 there's a whole team for contacts, and a whole team for calendar May 19 04:21:43 canadiancow: and a whole team for each at Samsung, and at HTC, and at LG... May 19 04:21:43 canadiancow: aren't there 2 calendar apps though ? May 19 04:21:53 well there's aosp, and aosp+google May 19 04:21:56 the aosp version, and the google calendar May 19 04:21:59 canadiancow, you're talking to people that are bitching about pretty much everyhing in Android last few weeks :P May 19 04:22:00 but it's one team that does both May 19 04:22:03 well, 'whole team' :) May 19 04:22:04 amibgious but not forgotten! May 19 04:22:17 "the fallen ones" May 19 04:22:18 and its more like "aosp base", and "google addon" May 19 04:22:20 ok, but what are those internal apps called? like BluetoothDun May 19 04:22:22 there aren't "two calendars" May 19 04:22:23 meetoman, just call them "bundled apps" May 19 04:22:40 Parcelable apps May 19 04:22:41 canadiancow: is the calendar app in the store built from the source in the AOSP tree? May 19 04:22:52 is it the same term with Apple? May 19 04:22:56 BluetoothDun, and such May 19 04:23:04 stock apps? May 19 04:23:09 I just need it for the report May 19 04:23:12 Leeds, the one in the play store is the aosp base, plsu the google addons May 19 04:23:15 I called it internal system apps May 19 04:23:27 so aosp alone will not give you the store version May 19 04:23:34 ok May 19 04:23:35 but it's one code base for both May 19 04:24:02 that may explain why Calendar does look relatively better May 19 04:24:09 Contacts is ok too May 19 04:26:43 I hardly ever use spinners. Do I have to manually set the "selected item" when it's picked, in the onItemSelected listener? Seems like no matter what I do, it doesnt' hilight the selected item in the list view. May 19 04:27:20 (it works, I know which item is selected, but re-opening the spinner does not show anything selected) May 19 04:27:36 hm, can't remember how this works. if I do an sqlite update, and the key is missing from ContentValues, is null inserted, or do i have to say putNull(key) ? May 19 04:29:15 hm, need putnull May 19 04:32:22 i wonder how many people work on Contacts; its pretty large May 19 04:32:38 its pretty crazy too May 19 04:33:29 canadiancow: i think Calendar uses AsyncQueryService to do its db updates in the service May 19 04:33:59 i have something similar , where I lob over ContentProviderOperations to an IntentService May 19 04:36:59 oh i just watched where roman mentioned when actionbarcompat will be available soon May 19 04:37:21 :) May 19 04:37:58 "dont stop using abs" :P May 19 04:38:20 i wonder if they will have CAB May 19 04:38:31 i guess if you use iosched you may know May 19 04:38:33 yes, have you not seen the source? May 19 04:38:47 is iosched 2013 up ? May 19 04:38:54 https://android.googlesource.com/platform/frameworks/support/+/master/appcompat/ May 19 04:38:56 here May 19 04:39:02 appcompat stores the CAB May 19 04:39:25 that source isn't anywhere near current May 19 04:39:56 indeed May 19 04:39:58 g00s, i imagine it will support everything May 19 04:40:02 at a minimum, whatever abs supports May 19 04:40:18 last I heard it won't May 19 04:40:19 canadiancow: you forgot the old action bar compat :P May 19 04:40:27 lol May 19 04:40:28 it was like an xml file May 19 04:40:30 action bar compat is a sample, not a library May 19 04:40:30 :D May 19 04:40:39 what? May 19 04:40:45 it was an example of how you could write a custom action bar May 19 04:40:48 no May 19 04:40:48 it has no relevance May 19 04:40:50 that's wrong May 19 04:40:59 http://www.youtube.com/watch?v=Jl3-lzlzOJI&feature=player_embedded May 19 04:41:02 go watch the first 5 minutes of that May 19 04:41:34 i'm not referring to that May 19 04:42:04 you're not talking about actionbarcompat? May 19 04:42:10 i'm talking about the sample May 19 04:42:16 which is what g00s was referring to May 19 04:42:29 oh May 19 04:43:27 Ah, I see, on phones the spinner doesn't highlight the selected item in the open spinner view then. Well that wasted quite a bit of time! May 19 04:44:32 Smashcat: doesnt the view get the selected/activated state? you could add that state yourself and have your background drawable reflect it May 19 04:44:47 anyways, the new actionbarcompat won't support everything ABS does. but it'll be enough to cover 99.99% of use-cases May 19 04:45:12 what wont it support that abs does? May 19 04:45:19 Napalm: No, tried that, it doesn't pick the colour up when it's selected. On then pressed. Otherwise it's always the background colour May 19 04:45:29 *Only when pressed May 19 04:46:04 well it delegates to the native action bar on Honeycomb which has tons of limitations May 19 04:46:42 Napalm: Guess it's better to use a listView instead, so I can set the selected item there. Should make things a lot simpler than using the spinner I think! May 19 04:46:43 fuck HC May 19 04:46:53 minSdk = 15 May 19 04:47:02 Smashcat: i think you miss my point, you can call View#setActiviated in your spinners getView and have the background drawable of that view be a selector that changes the color based on that state May 19 04:47:03 oh wait :| May 19 04:47:04 anyways, I DGAF May 19 04:47:10 they need apiExclusionRange May 19 04:47:18 i feel back for the Google engineers that had to work on ABCompat May 19 04:47:37 feel back ? May 19 04:47:42 they should have been working on new, awesome things instead May 19 04:48:12 mhm, 2.3 is slowly really going EOL May 19 04:48:14 actually, i think they should have done it a long time ago, so you could work on new awesome things May 19 04:48:21 Napalm: Ah, so I manually set the item as active in the listener then? May 19 04:48:30 doing it now was just a waste of effort May 19 04:49:12 Napalm: Need to raise the minimum API to 11 to use that. I'll try it! May 19 04:52:16 Napalm: cool it works. It's weird that spinners doesn't have an automatic "selected" state on the currently selected item though. The property is there, but does nothing. May 19 04:52:35 Napalm: Thanks for the help. May 19 04:54:03 another dumb IJ question: when i have a symbol that isn't resolved, hovering over it shows a pop-under "Cannot resolve symbol foo" … eclipse suggests packages and i can click one to add it to my import. how do i get that in IJ ? May 19 04:56:09 you hover over it and when you get the popup you click on it to get suggestions :) May 19 04:56:20 or you press alt-enter when on it :) May 19 04:56:36 i only get a yellow popup that says can't resolve May 19 04:57:29 alt-enter has some actions, not really applicable tho May 19 04:58:17 if i move my mouse around the red symbol, every once in a while a blue pop-up tries to say something then goes away immediately May 19 04:58:20 crapola May 19 04:58:54 ah, k, i have to click it May 19 04:59:02 so used to eclipse May 19 04:59:32 as I said, alt+enter works ;) May 19 04:59:46 it's the equivalent of ctrl+1 in eclipse May 19 05:02:41 Mavrik: i had to click the red symbol before alt-enter worked; in eclipse you just hover May 19 05:03:42 this is fluid for anyone, but these subtle differences in micro-interactions, which are little more than muscle memory now, can be confusing for newbs :) May 19 05:03:45 Smashcat: it might, if you get get the spinner view, you could set the it to single choice mode May 19 05:04:39 g00s, *shrug* I've used ctrl+1 in eclipse, alt+enter on idea, they act the same May 19 05:04:40 can I interest anybody in a rotary phone? May 19 05:04:40 https://play.google.com/store/apps/details?id=com.demarco.rotaryphone May 19 05:04:53 hovering over stuff when working was very… time consuming always :) May 19 05:05:16 Napalm: Hmm, ah well I'll stick to using the activated flag now, as it works - good to know for the future! May 19 05:07:19 Napalm: Weird thing was, I read a lot of answers on SO, and some mentioned using android:state_selected, others used android:state_focused, and some used both. None of them seem to work at all for this phone though, android:state_pressed does. May 19 05:07:37 did Google come up with a way to give free copies out? May 19 05:07:42 thats because you cant put focus to a ListPopupWindow May 19 05:07:48 which is what a spinner uses May 19 05:08:18 hmm, i might be wrong on that, but i remember it has some weird focus handling May 19 05:08:41 g00s, canadiancow: was one of you earlier playing around with Volley? May 19 05:08:48 i havent yet May 19 05:08:51 but i plan to, probably tomorrow May 19 05:09:11 Napalm: I've used Volley in a few projects. Do you have questions? May 19 05:09:38 the examples in the slides and the presenter Ficus mention a BitmapLruCache which he says is in the toolbox.. it isnt May 19 05:10:06 why can't I google anything useful about Volley? May 19 05:10:18 oh, I haven't downloaded the latest stuff. May 19 05:10:22 because its only just been released publically May 19 05:10:32 JakeWharton: yea, just working out how to get images working nicely May 19 05:10:49 Volley has been available for about 15 months May 19 05:11:14 Mavrik: it's the first three links for "android volley" when I Google it May 19 05:11:20 the ImageLoader takes a ImageCache interface in its constructor which has a couple of simple methods May 19 05:11:39 hmm May 19 05:11:40 lemme just May 19 05:11:52 just wondering whats the best implementation, if i really need to do a two stage cache, memory and disk May 19 05:11:58 yeah… I get it when googling in incognito mode May 19 05:12:06 * Mavrik shakes his fist at Google. May 19 05:12:39 I don't use Volley for image downloading. Didn't like a bunch of the assumptions it made May 19 05:14:20 ok this is a memory cache only since the requests are still cached to disk at the http level May 19 05:15:25 when you send a component in your process a Parcelable, i imagine the Framework probably copies that across process boundaries and marshal/unmarshals it … but if your process is running, does the target component get a copy that didn't have to go through that process ? May 19 05:17:03 Noob question: If I have a custom EditText object, why does calling setText() in onFinishInflate not immediately update the value of the text field? May 19 05:17:32 I'm playing with the debugger, and noticed it May 19 05:18:00 you mean why can't you see the text? May 19 05:18:10 Yes May 19 05:18:26 because you are blocking the main thread which prevents the display from redrawing itself May 19 05:19:00 That makes sense. I had forgotten about that. May 19 05:19:20 evil evil main thread May 19 05:19:37 I really should learn proper Android dev one day.... this research-quality code really does not agree with me. May 19 05:20:08 ;) May 19 05:21:50 huh, my nexus battery is so miscalibrated the graph shows it actually gaining charge while it was in my pocket -_- May 19 05:22:22 damn, what else you got in that pocket? May 19 05:22:50 cookies for good devs on my team :P May 19 05:23:05 gross May 19 05:23:14 they probably all suck on purpose ;P May 19 05:23:37 nah, they get the Android 2.3 fixing detail if they do ;) May 19 05:23:46 on Wildfire S if they're especially bad May 19 05:23:53 wow May 19 05:24:00 probably beats the bosses pocket cookies May 19 05:24:07 just implemented Volley loading images, that was completly painless May 19 05:24:55 what does an indie do for beta testers now-adays? May 19 05:25:23 ask in applicable chat rooms ;)? May 19 05:38:47 How to get the right colors/skin in androidstudio after installation? and when i install intellij and create an android project it doesnt create any gradle file, however when i use androidstudio, it does create that, which one is right? May 19 05:41:10 SeaOrifice, IDEA stable doesn't have studio changes merged yet May 19 05:41:17 you need to use IDEA 13 EAP May 19 05:45:29 thanks Mavrik May 19 06:17:31 Lint: 9.219 errors. -_- May 19 06:47:11 hi i'm trying Android Studio. I add external library as module. when i wirte code i can import external library's classes but when i compile i have same errors: Gradle: package com.jeremyfeinstein.slidingmenu.lib does not exist. why Gradle don't find classes but i can use this classed in Editor May 19 06:47:59 google needs to update their drawer stuff asap May 19 06:48:15 so we can have libraries that dont have self advertising in them May 19 06:48:28 huh? May 19 06:48:51 package com.jeremyfeinstein.slidingmenu.lib May 19 06:48:56 got another jake on our hands =) May 19 06:49:19 ? May 19 06:49:25 nevemrind May 19 06:50:55 ron_frown: do you use Android Studio? May 19 06:51:05 no May 19 06:51:11 I just use regular standalone idea May 19 06:51:18 I've installed android studio but May 19 06:52:36 why gradle cant' load package May 19 07:00:55 ron_frown: i made it through day #2 with intellij :) May 19 07:02:28 feeling a bit better about it? May 19 07:02:38 Strange situation: I have a view that I grabbed a reference to. I can set the text and get it, without any issues. Yet it isn't being updated on the screen (the app is running normally, not in debug mode) May 19 07:04:03 hello everyone, could someone suggest a place where I could get an idea of how much it would cost to develop a certain app? May 19 07:04:10 maybe a website or a channel here May 19 07:04:33 maslen wrong thread? May 19 07:04:45 er trying to issue the updates from the wrong thread? May 19 07:04:49 ron_frown: hmm, i was more productive today, but there are still some subtle things in eclipse autocomplete i like much better May 19 07:05:05 ron_frown: Would it make a difference if that were the case? Shouldn't it update the screen anyways? May 19 07:05:06 I understand, to each his own May 19 07:05:10 no May 19 07:05:30 if you are updating from another thread and the background thread is tied up in work too long you wouldnt get an update anyway May 19 07:05:38 handler and post May 19 07:05:40 the work cycle is quite short. May 19 07:05:45 or any number of other ways of passing the data May 19 07:06:08 http://stackoverflow.com/questions/1921514/how-to-run-a-runnable-thread-in-android May 19 07:07:05 I used to know why this was the case... but now its just more what cant work May 19 07:07:07 not why +) May 19 07:07:23 :(. It's just strange that I've never had this issue before. May 19 07:07:32 * ron_frown shrugs May 19 07:07:33 dont know May 19 07:08:03 if say you are trying to update ui compoennts from the worker method of a asynctask for example, it def wont work May 19 07:08:17 but you can do it from onProgress, and just post appropriate progress indication May 19 07:09:02 My stack is: main thread -> service -> call into main thread to update value. May 19 07:09:14 call how May 19 07:09:48 AIDL. May 19 07:09:52 depending on how often you send/recieve data, that post could be either a broadcast, and broadcast reciever May 19 07:09:54 ouch May 19 07:09:58 I know. May 19 07:10:35 as soon as I realized in a lot of AOSP code they just used broadcasts I went thta route and avoidded aidl like the plague May 19 07:10:42 does r22 break haxm? May 19 07:10:54 etcetera coworker says so May 19 07:11:02 frack! May 19 07:11:09 random emu crashes he says May 19 07:11:36 ron_frown: Is there an 'update' method or the like I could manually call to test what the issue is? May 19 07:12:07 I can tell you what it is May 19 07:12:16 etcetera: wat ? May 19 07:12:18 if you can access the controls etc... and dont see ui updates in andorid May 19 07:12:26 its gonna be threading May 19 07:12:38 or its gonna be canvas invalidation if you are doing your own custrom drawing May 19 07:12:56 i'm using haxm ok on 22 May 19 07:13:32 check avd May 19 07:13:36 i wouldn't be surprised if google just gives up with the fucking emulators, and run them in their cloud instead for you to connect to May 19 07:13:41 make sure it's not reverting to emulation mode. May 19 07:13:50 I dont know May 19 07:14:04 they'll figure it out May 19 07:14:17 that way, they can run their emulator instances with play services and not let their secret bits out May 19 07:14:19 ron_frown: Are you saying that it's a threading issue, but you have no real idea what it is? I'm not sure I'm following May 19 07:14:30 seems like if they have roms built for x86, how the fuck hard would it be to just simulate the java/apps/etc side of shit May 19 07:14:45 I havent messed with aidl May 19 07:14:49 but it doesnt really matter May 19 07:15:09 you should be posting updates \ May 19 07:15:17 via runnables, or handler messages or whtaever May 19 07:16:11 goos: good idea May 19 07:16:31 but then i couldn't test my app if i wasn't connected to their cloud :( May 19 07:16:35 hahahaha May 19 07:16:36 so i hope they dont :) May 19 07:17:38 ron_frown: is there some hw emulator we could use, kinda like a mini beagle board, but the screen was shown on your machine instead ? May 19 07:17:44 wow, so android studio is incredibly broken. May 19 07:17:48 I change an xml file, save it. May 19 07:18:01 run the thing in emulator, revers xml back to previous xml. May 19 07:18:18 etcetera you sure install isnt failing? May 19 07:18:20 check log kitty May 19 07:18:25 ron_frown: I modified it to use a handler; no difference. May 19 07:18:26 install, no. May 19 07:18:31 ron_frown: fairly positive. May 19 07:18:43 handler has to be initialized on the activity May 19 07:19:20 g00s look for instance at the IOS simulator.. .sure ios and osx are for all intents and purposes, basiclaly the same thing May 19 07:19:26 ron_frown: erm, how do I do that? May 19 07:19:37 but if you rip out the dependenc on the core os, the linux shit May 19 07:20:22 seems like actually running the android ecosystem(the android/c++/whtaever) actually ontop of say windows or linux would be super easy May 19 07:20:46 they are still "emulating architecture" even in the x86, its just a way less overhead emulation May 19 07:21:20 maslen make the handler itself a property on the activity May 19 07:21:20 the ios sim is very good May 19 07:21:27 hey guys May 19 07:21:28 it even kinda supports bluetooth May 19 07:21:31 is there any app open listner? May 19 07:21:32 "kinda" May 19 07:21:42 like if specific app opens, I'd know May 19 07:21:42 welcome i want to ask about android ICS for xt615 is any version for this device? May 19 07:21:46 well to be fair bluetooth on macs is pretty standardized =) May 19 07:22:50 ron_frown: I even tried using this.runOnUiThread(new Runnable(){...} ), and still, no go. May 19 07:23:21 meeto just need to find the broadcast its sending from activitymanager/service manager May 19 07:23:37 does anyone knows something about this ver of android? May 19 07:23:47 maslen, have you tried setting abreakpoint in there and seeing 1) the data you are trying to set is actually diff, and that its getting into that method? May 19 07:24:00 ron_frown: Yes and yes. May 19 07:24:07 dont know what to tell you May 19 07:24:09 =) May 19 07:24:20 I have a simple button that increments a number stored in an EditText May 19 07:24:22 its how you are trying to get from that code to activity May 19 07:24:40 Viewing the logs, it's reading the correct number, incrementing it, and setting the edittext May 19 07:24:49 ron_frown, ActivityManager does not have Listener May 19 07:24:53 ? May 19 07:25:12 broadcast receivers arent specific to what they are listening to May 19 07:25:19 you just have intents you filter May 19 07:25:42 ron_frown: I created the handler in the main UI thread, no difference May 19 07:25:53 well, what's the best way for my service to launch something when the specific app opens up? May 19 07:26:14 one way is checking the current app every 5 seconds or so, but that's just not efficient May 19 07:26:46 I just told you.. I'm not sure there is a new activity intent that pops up May 19 07:26:57 but if there is, create a broadcast reciever and have it do shit May 19 07:27:14 hmm, htat wont work May 19 07:27:22 like, i need to know whether yelk has launched May 19 07:27:28 yelp May 19 07:27:37 I can't ask yelp to create a broadcast receiver May 19 07:27:50 do you listen? May 19 07:27:53 or read May 19 07:28:08 apps broadcast shit all the time (not every app, not everything that app does) May 19 07:28:12 there is no new activity intent iirc May 19 07:28:26 what is the mVariable name convention? May 19 07:28:44 your broadcast reciever is set to listen for a specific identifier which you would have to know May 19 07:28:45 etcetera: probably for private fields May 19 07:28:49 once you set that up May 19 07:28:52 angelsl: but....why? May 19 07:28:54 so ugly. May 19 07:28:58 you start getting notifications May 19 07:28:58 i think it's something to do with some russian guy May 19 07:29:07 etcetera: it's just a convention? May 19 07:29:11 but yeah, pretty much everything has m May 19 07:29:12 i personally use _variable May 19 07:29:24 angelsl: which one does aosp use? May 19 07:29:27 ron_frown, it wont work, because I need to know whether the app opens up whether the app braodcast or not May 19 07:29:34 hmm May 19 07:29:39 i just read the documentation of http://developer.android.com/reference/android/content/BroadcastReceiver.html May 19 07:29:43 * ron_frown sighs May 19 07:29:44 nevermind May 19 07:29:50 * ron_frown zips it May 19 07:30:38 Is there a way to examine the objects that are currently displayed on the screen? May 19 07:30:45 yes May 19 07:30:47 hey, since there's no main(String[] args), is there a way to pass args to an app? i need to tell my app not to load serialized data because the structure has changed and it needs to pretend like there's none there May 19 07:30:50 heirarchyviewer May 19 07:31:58 etcetera: mVariable it seems May 19 07:32:11 angelsl: that's what I thought. such a horrible convention. May 19 07:32:18 why? May 19 07:32:21 what would you use then? May 19 07:32:39 ron_frown: Strange, it doesn't detect the device :) May 19 07:32:41 :( * May 19 07:32:42 or do you not differentiate between private/public fields, parameters and locals? May 19 07:33:38 hmm.. ron_frown, can i use braodcast receiver on android.intent.category.LAUNCHER? May 19 07:34:06 meetoman: might i suggest you disassemble any of the free app locking thingies on the App Store May 19 07:34:08 and see how they do it? May 19 07:34:09 http://developer.android.com/reference/android/content/Intent.html#ACTION_PACKAGE_FIRST_LAUNCH May 19 07:34:22 thats just first launch linked there but a list of intents May 19 07:34:23 sorry May 19 07:34:26 Play Store* May 19 07:39:04 ron_frown: The hierarchy viewer has the mText field being updated correctly. May 19 07:40:31 are yyou updating with wrong context somehow? May 19 07:40:35 thats only other thing I could htink of May 19 07:43:21 To give the full rundown: I call setContentView() on an inflated XML layout. I then use findViewById on that inflated layout to get access to the View that is inside of it - the EditText field. May 19 07:43:51 downloaded some samples May 19 07:43:52 brb May 19 07:44:04 I am then able to get and set the text in that EditText object. But the EditText on the display are not updated. May 19 07:44:13 is not updated* May 19 07:50:50 ugh, this thing is a nightmare. May 19 07:51:54 maslen: can you pastebin your code perhaps? May 19 07:52:22 angelsl: Way too much code for that :( there are many, many, layers of nesting. May 19 07:52:32 oh, alright May 19 07:52:46 maslen: thanks for protecting us :) May 19 07:53:47 If you're willing to try anyways, I can make a pastebin. It will take me a few minutes though. May 19 07:53:55 Can I use normal Java BufferedReaders with HttpConnections on Android? (inside an AsyncTask) May 19 07:55:21 can I link high dpi drawables into various drawable folders? May 19 07:56:17 etcetera: look up drawable alias May 19 07:58:20 ron_frown: there ? May 19 07:58:28 si May 19 07:59:45 Strange. It appears to be hitting "LayoutInflater.failNotAllowed()", but isn't actually raising the exception May 19 07:59:46 i think one really cool feature that the ADT , Studio, whatever needs … is being able to apply a "configuration" in the IDE and getting a view back of all your resources for that condition May 19 08:00:09 ? May 19 08:00:16 :) May 19 08:00:21 zyngawow: of course, its just a InputStream. You can wrap it up in a InputStreamReader and then a BufferedReader May 19 08:00:42 ron_frown: so you would essentially query the ide with the qualifiers available under res-* May 19 08:00:55 never messed with that May 19 08:00:58 and it would return back a unified view - May 19 08:01:06 strings, colors, dimens, May 19 08:01:09 all resource types ... May 19 08:01:24 and showed you want values were in effect at that configuration May 19 08:01:47 for example, if you put different dimens for margins in various res/values folders May 19 08:02:13 and you said, i have a landscape 600dp wide screen with keyboard" May 19 08:02:27 it would show you how these were all resolved and chosen May 19 08:02:39 i can't keep this shit in my head any more May 19 08:03:19 so instead of looking in eclipse / intellij at the physical res/ folder system May 19 08:03:28 you would in essence be querying a view May 19 08:03:49 and , it should be possible to update that view also (many times, views are read only in many systems) May 19 08:04:28 :) May 19 08:05:51 ello guys May 19 08:05:59 ron_frown May 19 08:06:04 so imagine this config: Locale = en-GB Screen orientation = port Screen pixel density = hdpi Touchscreen type = notouch Primary text input method = 12key May 19 08:06:07 https://gist.github.com/Nyceane/56d1d05a0dfd6c6725e0 May 19 08:06:29 why is that when I launch an app it doesn't really receive? =| May 19 08:06:31 i should be able to put that into the IDE, and it should show me what resources are in effect for that configuration May 19 08:07:11 is my margin 16 or 32 ? i defined them to adapt : but i want to see for that config May 19 08:07:19 understand ? May 19 08:07:20 :D May 19 08:09:59 :( May 19 08:10:10 hi all May 19 08:10:18 can someone help out a noob? May 19 08:10:34 tomnewton, what do you need? May 19 08:11:06 AndroidRuntime: FATAL EXCEPTION: main May 19 08:11:06 java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.yyztom.ytl/com.yyztom.ytl.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "com.yyztom.ytl.MainActivity" on path: /data/app/com.yyztom.ytl-2.apk May 19 08:11:10 I'm using android studio, and no matter what I try, I just keep getting an exception at startup May 19 08:11:25 oh, that's too new May 19 08:11:40 so you suggest eclipse? May 19 08:12:02 yah, it's more stable as of now May 19 08:12:12 android studio was released 3 days ago May 19 08:12:14 i'm not sure if they did the right thing at i/o with Studio; did they emphasize this is early access preview and you were likely to bleed ? May 19 08:12:22 cool - any particular plugin I need? May 19 08:12:30 g00s, not at the keynote, in the sessions May 19 08:12:43 tomnewton, no plugins, just downlad adt and that's it May 19 08:12:44 ah.. I was at i/o this year May 19 08:12:46 was good fun May 19 08:12:52 cool - will do that now May 19 08:13:01 can you load android studio on chrome pixel? May 19 08:13:12 that's a sweet laptop that I want lol May 19 08:14:05 meetoman: can you load linux on a pixel ? May 19 08:14:24 you can load ubuntu on a pixel May 19 08:14:32 I dont think so, I had a chromebook before and I can't get rid of the OS May 19 08:14:32 do it ! May 19 08:14:38 technically chromebook is linus May 19 08:14:54 technically chrome OS is linux May 19 08:15:00 i heard it was pretty locked down though, yeah May 19 08:15:11 you can install ubuntu, there are lots of guides online May 19 08:15:13 tomnewton, straight off shelf? or you have to do it off vmware and such May 19 08:15:33 off the shelf... one sec, I'll find the link May 19 08:15:50 http://sfbay.craigslist.org/search/sss?zoomToPosting=&query=chromebook+pixel&srchType=A&minAsk=&maxAsk= May 19 08:15:56 wow, lots of people are selling it already May 19 08:16:06 the price drops like map, unlike apple stuff lol May 19 08:16:21 http://www.zdnet.com/chromebook-pixel-run-ubuntu-alongside-chrome-os-7000012381/ May 19 08:16:56 I just wasted an hour and a half on this bug... so annoying May 19 08:17:14 you are not likely to get support for android studio for a while May 19 08:17:20 when you can, just export your project into it May 19 08:17:34 I dont think there are major difference in code, just IDE May 19 08:17:54 ok just installing now May 19 08:18:23 where you located meetoman? May 19 08:18:39 san francisco May 19 08:18:41 i can't imagine there'd be any differences in the code would there? isn't it just one jar file? May 19 08:19:17 Do I need any kind of permission to open an URL? May 19 08:19:32 Why does the screen not lock automatically after I release my wake lock that turned it on in the first place? May 19 08:19:36 ok g00s, do you know anything about BroadcastReceiver? May 19 08:19:42 zyngawow: internet :| May 19 08:19:48 might have the odd question for you once I get this setup. thanks meetoman May 19 08:20:00 meetoman: its not a deep topic :) May 19 08:20:10 i mean, the water goes up to your toes May 19 08:20:42 marrrk: 'cause the timeout has to expire? May 19 08:20:49 I don't want that! May 19 08:20:55 https://gist.github.com/Nyceane/56d1d05a0dfd6c6725e0 May 19 08:21:01 erm, too bad, i'm afraid May 19 08:21:05 there's no way to turn the screen off May 19 08:21:10 g00s, why am I not receivng Intent.CATEGORY_LAUNCHER? May 19 08:21:12 unless you set yourself up as a device admin May 19 08:21:15 your app* May 19 08:21:21 which would be pretty ridiculous May 19 08:21:37 why are you turning the screen on anyway? May 19 08:22:26 Why would it be pretty ridiculous? May 19 08:23:00 go ahead then ._. May 19 08:23:11 I read about that and the only thing I'm afraid of, is that it might force users to turn on some kind of silly protection like a PIN or that Pattern stuff. May 19 08:23:18 means your users are required to set a lock if they haven't, etc etc May 19 08:23:27 and you want all that just to be able to turn the screen off? May 19 08:23:34 Alright, yeah, then that's too annoying May 19 08:23:43 they also have trouble uninstalling your app unless they first remove your app as a device admin May 19 08:24:11 They wouldn't be allowed to uninstall it anyway :) May 19 08:24:53 ok g00s, there is no way of doing this May 19 08:25:29 I'm trying to build a camera app on my Nexus 4 May 19 08:25:38 The pictures it takes are saving fine to /sdcard/Pictures/test_camera_app/album_name/image.jpg May 19 08:25:43 what /is/ your app, marrrk? May 19 08:25:46 but they don't come up in the gallery at all May 19 08:25:53 any thoughts? May 19 08:26:22 It's for a study. May 19 08:26:25 conor_f: i think you need to trigger a rescan or something May 19 08:26:31 conor_f, you need to notify gallery that you added an image May 19 08:26:42 otherwise users will have to wait until device reboot for a rescan May 19 08:26:43 It is supposed to make you use your phone less. May 19 08:27:11 Mavrik: how would I do that? May 19 08:27:16 by googling. May 19 08:27:17 http://developer.android.com/reference/android/media/MediaScannerConnection.html May 19 08:27:35 it'll still take a few seconds after you call it though May 19 08:27:58 Mavrik: heh, ok. I was actually on Google when I said that May 19 08:28:02 thanks :) May 19 08:28:05 ;) May 19 08:28:22 I hope it works. But even when I manually refresh the gallery they don't show... we'll see May 19 08:29:48 what is "manually refresh" for you? May 19 08:29:59 settings -> Refresh May 19 08:30:13 and I also tried clearing all cache + data and restarting the app May 19 08:30:20 Is work done in an AsyncTask processed in a separate thread ? May 19 08:30:39 conor_f, that's because rescan takes awhile May 19 08:30:46 usually it's scheduled with low priority anyway May 19 08:30:56 so it can take a huge amount of time to update ;) May 19 08:31:07 lite_, yes. May 19 08:31:09 ok May 19 08:31:25 lite_, the "doInBackground" part, not onPreExecute and onPostExecute May 19 08:31:30 is it not as simple for the gallery to search *.jpg whenever a scan is requested? May 19 08:31:40 * *.img files May 19 08:32:09 it is May 19 08:32:18 searching file on the messy sd card isn't fast ;) May 19 08:32:26 especially when you have to extract a thumbnail and metadata for each May 19 08:32:36 suppose May 19 08:32:42 and you're trying not to kill user experience and battery while doing it right? May 19 08:32:49 Astro file manager seems to do it quick enough though May 19 08:33:07 yeah, so it has to be done during down time => low priority => long time to do May 19 08:36:53 I'm starting with the "Building your first app" tutorial on the android dev site, but I'm stuck. The step says "In the Run as window that appears, select Android Application and click OK". I don't see the "Android Application" part May 19 08:37:03 I plugged in my device and turned on USB debugging... any ideas? May 19 08:38:47 any advice on debugging a crash on startup? May 19 08:39:07 Getting "unable to start activity NullPointerException May 19 08:39:09 " May 19 08:39:30 check the rest of the stack trace May 19 08:40:16 is there anyway to edit the source lookup path so I can see the code in the SDK? May 19 08:42:00 tomnewton: could you pastebin the backtraces? May 19 08:43:39 http://pastebin.com/kxNpCzGc clever May 19 08:44:28 tomnewton: the stack trace you want is in logcat, the debugger is hiding some key details May 19 08:44:40 k - one sec May 19 08:47:29 http://pastebin.com/S6KQhSxw May 19 08:47:32 clever May 19 08:47:39 any better? May 19 08:47:41 Is there anything similar to WiFi Direct for Android versions < 4.0? May 19 08:48:31 one sec May 19 08:48:32 sorry May 19 08:48:40 tomnewton: look at lines 32 and 33 May 19 08:49:21 tomnewton: the 1st exception you where looking at in the debugger, was caused by this second one, in your own code May 19 08:49:39 right - I can see that now, it is a call to the PlusClient May 19 08:50:06 maybe I haven't included the library properly May 19 08:50:27 if you pastebin the code for onCreate i can take a look May 19 08:51:05 http://pastebin.com/P16ZXiDE cheers clever May 19 08:51:42 tomnewton: you forgot to call setContentView May 19 08:52:11 so the sign_in_button doesnt exist anywhere May 19 08:52:16 findViewById returns null May 19 08:52:19 crap... May 19 08:53:42 ok, a little further... now an issue with the SignInButton, but I'll see if I can figure this one out May 19 08:53:46 thanks clever! May 19 09:03:09 hiho anyone knows how to make widget that looks like normal homescreen icon? May 19 09:03:48 anyway i made widget with width and height the same... it should be square and its rectangle May 19 09:04:27 maybe a horizontal pixel is bigger than a vertical one? May 19 09:04:47 no idea if such devices exist May 19 09:05:15 72 dp x 72dp May 19 09:05:20 and its rectangle :C May 19 09:05:39 BtbN: dp should cancel out anything like that :S May 19 09:06:05 clever: if you make it 50x50 pixels, does dp even matter? May 19 09:06:34 if you use pixels, then what you said will apply, differing densities will mess it up May 19 09:07:07 i'd try to find out what the size of all other icons is, and then use that. May 19 09:07:15 ciurkut: all i can think of, try making it bigger, like 100dp x 100dp May 19 09:07:37 see if it turns square at some point, it might be trying to stretch beyond what you told it, to fit something May 19 09:07:45 morning all, g00s you killed yourself yet ? or fallen in love ? May 19 09:07:55 StingRay_: day #2 of IJ May 19 09:08:00 and May 19 09:08:02 :) May 19 09:08:16 hmm May 19 09:08:27 you'll have to wait for the finale :D May 19 09:08:45 it sok May 19 09:09:06 i went back to eclipse to do some xml editing. it was catching errors in my xmls that IJ was not May 19 09:09:21 IJ would catch stuff like malformed xml May 19 09:09:49 ive sometimes put 2 nodes in a scrollview by mistake, and the eclipse editor would crap itself May 19 09:09:59 so bad, that i cant undo that! May 19 09:10:04 have to switch to the raw xml tab and fix it May 19 09:10:10 but IJ didn't flag when i referenced a @string that didn't exist May 19 09:10:21 android:text="@string/foo" May 19 09:10:28 oh really? May 19 09:10:43 I thought it's supposed to resolve/lookup and ref like that ? May 19 09:10:52 one of the showcase features May 19 09:11:40 IJ let me enter bogus attributes for things like android:crap="foo" May 19 09:12:09 even after building ? May 19 09:12:11 the autocomplete suggests a lot, but it doesn't validate until you build May 19 09:12:22 well, yeah, you'll get an error from the sdk May 19 09:12:27 thats understandable though May 19 09:12:34 anyhow, eclipse has that all as you type May 19 09:12:42 cause an attrib set of a view could have "crap" attrib May 19 09:12:42 g00s: thats bad - but nagging binding:text="Bar" like sucks, too May 19 09:12:54 binding is a namespace i defined in the xml May 19 09:13:35 +lint May 19 09:14:47 StingRay_: well, its weird May 19 09:15:09 right now, i put "android:text="@string/unknown" … and it put it red and said it could not resolve May 19 09:15:12 if you have linearview and elements inside and set onclicklistener on it will it catch also it child elements? May 19 09:15:17 linearlayout May 19 09:15:18 g00s: I get the feeling that you do like coding in it though, or starting to ? May 19 09:15:22 what threw me off, is that i was expecting red squiggles May 19 09:15:49 squiggles from that file and up all its parents May 19 09:16:15 * hackkitten waves a fluffy paw at g00s o/ May 19 09:16:16 StingRay_: um, its a nice editor. i feel safer in eclipse May 19 09:16:24 hi hackkitten May 19 09:16:29 g00s: awesome news :o May 19 09:16:34 * hackkitten is an Android dev again~ (o/ May 19 09:16:37 hackkitten: :O May 19 09:16:45 HELL May 19 09:16:47 uh oh ! May 19 09:16:47 hello kitty May 19 09:16:52 I got the task of also updating the Android version of the project I was working on before :) May 19 09:16:57 the iOS app May 19 09:16:58 How can I test an application that uses WiFi Direct if I only have one phone with android version 4.0+? May 19 09:17:07 hi zhulikas :) May 19 09:17:28 conor_f: order a 2nd phone May 19 09:18:08 I'm getting an error that my manifest is malformed, but there is no logcat output. Can anyone recommend anything? May 19 09:18:17 monsti: haw haw May 19 09:18:38 and for us not so wealthy, what can be done? Or anything? May 19 09:18:55 conor_f: upate a 2.x phone to 4.x May 19 09:20:38 for any IJ expert: if i have a "semantic error" in an android XML file, and i even see the red square in the margin - is there any way for the IDE to show red squigglies in that file and its parents in the project view, as if you did the same in a java file ? May 19 09:21:14 mess up a a java file, and the project view shows squigglies from that file to the root May 19 09:21:35 which is src/ May 19 09:22:15 StingRay_: this is like having red 'x' in eclipse May 19 09:22:28 on folders and such in the navigator May 19 09:25:20 I'm following the official "getting started" tutorial, but when I run "ant debug", I get this error: "Buildfile: build.xml does not exist!" -- Any ideas? May 19 09:25:59 killer`toaster: you need to run android update project or android create project May 19 09:26:34 StingRay_: so yeah, i'm doing my xmls in eclipse for now May 19 09:27:12 clever: I already created the project in Eclipse. I'm here: http://developer.android.com/training/basics/firstapp/running-app.html - Do you think it's missing a step? May 19 09:27:58 killer`toaster: eclipse and ant build the project in very different ways May 19 09:28:02 if you use ant at all, it breaks eclipse completely May 19 09:28:32 if i do an ant build, i either turn auto build off or shut down eclipse May 19 09:28:58 g00s: ive found that when i switch back to eclipse, it takes several cleans and restarts of eclipse before it even works right May 19 09:29:17 its such a mess that i keep a second copy of the source just for ant builds May 19 09:29:21 i usually ant clean before i restart eclipse May 19 09:29:48 i only use ant for release build tho May 19 09:29:57 which isn't enough :X May 19 09:29:57 same May 19 09:31:03 clever: Ah, I see. I'm trying command-line because it does nothing when I click the "Run" button: http://cl.ly/image/3c3j1K1F4702 May 19 09:31:15 I did all the prior steps only in Eclipse though May 19 09:31:47 killer`toaster: what happens if you hit control+F11 in eclipse? May 19 09:32:03 clever: would that be cmd + F11 on mac? May 19 09:32:19 killer`toaster: do you see run on the menu bar?, ignore the toolbar button May 19 09:32:37 clever: May 19 09:32:38 yes May 19 09:32:50 killer`toaster: just click run->run May 19 09:33:07 Popup: "The selection cannot be launched, and there are no recent launchers." May 19 09:33:49 are you sure you created it as an android project? May 19 09:34:17 yeah, I followed the steps exactly as they describe on the tutorial. I even tried it twice, still nothing May 19 09:34:46 ive also got nothing under 'run as' but it works when i hit run->run May 19 09:34:46 killer`toaster: what happens if you create a new android run config and choose that project ? May 19 09:34:54 even when "Run As" shows "1 Android Application", it did nothing May 19 09:35:09 StingRay_: you mean start a new project? May 19 09:35:13 no May 19 09:35:30 I mean choose Run Configurations May 19 09:35:33 new May 19 09:35:34 android May 19 09:35:39 choose your project May 19 09:36:13 i made my homescreen widget to set this widget text to this widget id... why i get 21 22 23 24 instead of 1 2 3 4? May 19 09:36:26 StingRay_: it's doing something, not sure what yet May 19 09:36:42 probably running :) May 19 09:36:48 well building….running May 19 09:37:11 I got this: http://cl.ly/image/3y3H2W3M232G May 19 09:37:33 ok well pick what you want May 19 09:37:44 eg… just press ok May 19 09:37:44 I am not educated enough to know what I want in that regard, hehehe May 19 09:37:47 ok May 19 09:38:11 ok it added a tab to the lower section of the window, called "LogCat" May 19 09:38:20 omg it opened the app on my phone May 19 09:38:30 wow….shocker :) May 19 09:38:33 :D May 19 09:38:49 so every time I make a change, i have to run this configuration deal? May 19 09:38:56 no May 19 09:38:58 nope May 19 09:39:02 it's there as a fav now May 19 09:39:18 and also hitting run will run last config May 19 09:39:22 so your set May 19 09:39:24 that's super awesome, thank you tons! May 19 09:39:28 What is the proper approach for having a simple networked app that updates the UI? May 19 09:40:55 Like literally, read the contents of an EditText, send it over the network, and clear the EditText May 19 09:42:17 maslen: not sure what your asking May 19 09:42:38 can answer with "yeah, do that" May 19 09:42:41 :) May 19 09:43:02 Anyone ever get an issue with a new project where you crash at startup because of a: May 19 09:43:03 java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.yyz.ytl/com.yyz.ytl.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "com.yyz.ytl.MainActivity" on path: /data/app/com.yyz.ytl-1.apk May 19 09:43:22 My entire application reads the contents of a text field, sends it over the network, and then clears the text field. The complication is that 1) Network can't run on the UI thread 2) Code that updates the UI can't run within another thread. May 19 09:43:45 so I'm guessing there's some mechanism for arranging these sort of details nicely. May 19 09:43:50 But I have no idea what it is. May 19 09:43:50 ok, those 2 statements are correct May 19 09:44:07 so dont do networking on main thread May 19 09:44:14 but update the ui on the main thread May 19 09:44:34 many guides tuts etc for this May 19 09:44:53 use of services + threads, async, handler, threads etc May 19 09:45:33 What does it mean "to touch its Views" - is that modifying, or even reading? May 19 09:45:45 anything May 19 09:46:17 use May 19 09:46:45 I want the smallest, simplest, working example :( May 19 09:47:00 google May 19 09:47:05 you will find tonnes May 19 09:47:10 or even in the docs May 19 09:51:04 hey, when the docs say "A LinearLayout respects the gravity of each child", what exactly do they mean? when i set the gravity of a child in a LinearLayout to right or bottom, nothing happens, it's still stuck right after the last one? May 19 09:52:05 cause it has rules that supersede gravity, given conditions May 19 09:52:27 eg, has more than a single item in the control axis that it's set to May 19 09:52:53 oh ok May 19 09:52:59 example, LL.HORIZONTAL May 19 09:53:01 so if it was just the one it would align May 19 09:53:10 single item can gravity bottom top May 19 09:53:19 many items can May 19 09:53:31 LL.VERTICAL May 19 09:53:39 bottom and top have no control May 19 09:53:50 cause the items take order/layout May 19 09:53:58 but vertical can have left right May 19 09:54:16 well it's more about Orentation May 19 09:54:24 I'm still sleepy May 19 09:54:27 and need a shower May 19 09:54:27 ohhh May 19 09:54:31 so May 19 09:54:34 hehe no i understand, thank you :) May 19 09:54:42 vertical, control axis Y May 19 09:54:47 left,right May 19 09:55:00 horizontal control axis X top bottom May 19 09:55:14 got it! thanks StingRay_ May 19 09:55:45 dont know why it dont say that in the docs tbh May 19 09:55:59 takes like a sentence to say, or less May 19 09:56:23 StingRay_ do you do android dev for a living? how come you know the answer to every question here? :) May 19 09:56:48 no, and erm…. dunno, I was a autodesk instructor/trainer for a time May 19 09:57:00 so that could be it, I try and help May 19 09:57:10 but you know everything... how? May 19 09:57:12 it's appreciated! May 19 09:57:15 but I'm not really a programmer/dev May 19 09:57:20 ??? May 19 09:57:33 I'm a 3D TD/ VFX artist/desigery fella May 19 09:57:57 coool May 19 09:58:05 awesome! May 19 09:58:11 what are you working on? May 19 09:58:44 oh android stuff now, decided that 16 years doing that and the next step in that career was leaving the shop floor, which was where I was good May 19 09:59:01 I dont want to push paper, producer type stuff May 19 09:59:17 so decided that I'd try something new May 19 09:59:23 something I didn't know May 19 09:59:28 that was android dev :) May 19 10:00:04 ill get my diploma in 3 weeks which mean ill be a CS Engineer. May 19 10:00:13 And you seem to have more answers than me StingRay_ :/ May 19 10:00:27 Can anyone help with this not loggin the second thing? http://pastebin.com/js6r1La1 May 19 10:00:30 hehe May 19 10:00:32 logging* May 19 10:00:44 very impressive, StingRay_ :) May 19 10:01:31 i graduated in 2006, haven't stopped studying since and i still feel like a noob at most things... i wonder if other professions require this much study May 19 10:02:45 has anyone ever managed to get teh G+ login button to display? May 19 10:03:07 sometimes i want to get back to my job in manual labor May 19 10:03:16 at least there I felt smart compared to my coworkers May 19 10:04:02 hehhehe May 19 10:05:26 erdos: the half life of information in out field is like the medical fields May 19 10:05:27 StingRay_: did you learn by reading the official tutorials on developer.android.com? May 19 10:06:36 crap. im trying to come up with clever things to say about the structure of my app but drawing up blanks May 19 10:07:07 killer`toaster: read everything May 19 10:07:21 heh sounds about right May 19 10:07:31 "yadda yadda, the app was built up using fragments and only replacing parts of the user interface to ensure that the user always feels safe" May 19 10:07:34 and keep asking questions of things you dont know in the answers you get May 19 10:07:52 StingRay_: good advice, thank you. I'll do that May 19 10:08:09 but I do that in life too :) May 19 10:08:18 :) May 19 10:08:23 look at something, and then have to know "how" May 19 10:08:34 but not just surface how, like how how May 19 10:08:47 simple thing like a lightBulb May 19 10:08:52 how does it glow May 19 10:08:56 ah right May 19 10:09:04 why dont it melt the element May 19 10:09:07 oh right May 19 10:09:11 etc etc May 19 10:09:19 you must be a really smart fella May 19 10:09:28 far from May 19 10:09:31 StingRay_: what i feel is kind of funny, is ios:android :: intellij:eclipse --- in terms of commercial, and "jank" / fluidness May 19 10:09:46 the irony May 19 10:09:53 killer`toaster: not being smart is an advantage thought May 19 10:09:56 though* May 19 10:10:01 haha why's that? May 19 10:10:29 means I lack the ability to solve somewhat complexities that are dense May 19 10:10:42 so the ONLY way I can understand is to break in the parts May 19 10:10:51 storkme, storkyou May 19 10:10:58 I guess that's a good point May 19 10:11:00 then you realize that a complex problem is almost always the sum of many simple things May 19 10:11:06 :) May 19 10:11:30 complex problems are usually more than the sum of their parts :D May 19 10:11:31 it always is ;) May 19 10:11:44 g00s: your problems yes ;) May 19 10:11:46 been watching the Volley talk from i/o, this thing sounds pretty great. Does anyone have any first hand experience with it? Was thinking about porting my Twitter functionality to it May 19 10:12:08 storkme: JakeWharton said he's been using it for like 12+ months, you can ask him about it May 19 10:12:21 i didn't even realise it was 12 months old heh May 19 10:12:29 heh, me neither XD May 19 10:12:40 this place is commedy central May 19 10:13:06 or Sat night live :D May 19 10:14:01 Can anyone help with this not logging the second thing? http://pastebin.com/js6r1La1 It outputs no errors May 19 10:15:09 zyngawow its not logging "Getting information... ? May 19 10:15:32 lite_: no, the st String May 19 10:15:44 StingRay_: also notice in IJ; the editor gets more confused than eclipse when you are pressing enter, and it has to place a opening / closing brace May 19 10:15:47 anyone know how to solve a "Error inflating class" issue? May 19 10:16:32 tomnewton: strack trace ? May 19 10:16:37 zyngawow well an exception must be thrown somewhere between "Getting information..." and Log.d("STOCK", st) May 19 10:17:32 gkatsev, yes, I do May 19 10:18:10 lite_: there is literally nothing May 19 10:18:18 lite_: should the code to get the data work? May 19 10:18:52 hi guys I hoping someone here can help I have a school project I already write my project but now when I try to install my phone it wont work as in APK not Installed May 19 10:18:59 I check the logs error code -103 May 19 10:19:36 lite_: and it is weird that the app only show for 1 second and then closes. It doesnt say it has crashed or anything May 19 10:19:38 iKillCypher: did you rename the package/path ? May 19 10:19:52 rename as in? May 19 10:20:17 com.me.myapp to com.me.somethingelse May 19 10:20:21 StingRay_: i think the eclipse java editor has a deeper understanding of what is being typed and is more robust; a slight mistake in intellij seems to throw it all of, autocomplete stops working, etc May 19 10:20:25 yes I did May 19 10:20:30 thats why May 19 10:20:40 g00s: really ? May 19 10:20:42 T_T what should I do now ? May 19 10:21:02 iKillCypher: uninstall manually off the phone May 19 10:21:13 iKillCypher: then run again May 19 10:21:22 it is not even install May 19 10:21:27 APK not installed May 19 10:21:47 but icon there ? May 19 10:21:51 nothing May 19 10:22:14 iKillCypher: this is an apk that ** YOU ** wrote, right? May 19 10:22:18 i remember you :D May 19 10:22:21 oh then make sure your manifest points to the correct package path May 19 10:22:44 * iKillCypher screams May 19 10:22:53 g00s I dont know who you are. May 19 10:25:54 StingRay_, care to help me out May 19 10:28:26 my manifest points to the correct package May 19 10:28:52 have you actually checked if it is installed ??????? May 19 10:28:59 and I dont mean, is the icon there!!! May 19 10:29:18 it fails in install dude May 19 10:29:20 iKillCypher: also, do you have phone setup for install of non-market apps May 19 10:29:35 yes i do May 19 10:29:42 and this is your app May 19 10:29:51 iKillCypher: ok….. was it intalled ???? May 19 10:29:55 ever ? May 19 10:29:59 nope May 19 10:30:20 never ? never been installed on that device ? May 19 10:30:21 it compiles on eclipse I exported without sign -> phone tried to install apk not installed May 19 10:31:07 and have you really checked ? in settings ? May 19 10:31:10 apps May 19 10:31:12 ??? May 19 10:31:19 what ?! May 19 10:31:32 iKillCypher: compile with 1.6 or 1.7 ? May 19 10:31:33 settings > apps > all (is you app here) May 19 10:31:41 You have to sign your app before you can install it May 19 10:32:08 SimonVT: gets signed auto in debug no ? May 19 10:32:19 it compiles on eclipse I exported without sign May 19 10:32:28 oh May 19 10:32:40 wait what you need to sign it before install or it fails ? May 19 10:32:46 Yes May 19 10:33:05 and why did google made the emulator so freaking laggy May 19 10:33:06 how do you not sign it when using the ide :| May 19 10:33:30 cause I just export it without signing it May 19 10:33:39 why the hell would you do that May 19 10:33:52 I'm trying to make a popup selector and I don't know what it is called, I've got a screenshot of a application that does it https://docs.google.com/file/d/0B2mTNE31f5JTUl8zTndmcmlXcTA/edit?usp=sharing May 19 10:34:01 gah, on the example here: http://developer.android.com/guide/topics/ui/layout/listview.html they use a LayoutParams object, but they dont' show the imports so i don't know which one they're using, and none of the ones i can find have a constructor that takes 3 args? May 19 10:34:06 Anyone know what that popup selector window is called? May 19 10:34:33 Sonicadvance1: fragmentDialog ? May 19 10:35:06 erdos: you mean for progressbar ? May 19 10:35:11 StingRay_, Thank you May 19 10:35:15 you see the root view May 19 10:35:56 oh right, so just a standard ViewGroup.LayoutParams? May 19 10:36:09 well yes May 19 10:36:20 although I would suspect linearLayout May 19 10:36:26 as it takes gravity May 19 10:36:36 hmmm, neither of those have a constructor with 3 args May 19 10:36:41 but the layoutParams depend on the parent May 19 10:36:49 parent in that case is root May 19 10:37:01 if root is a linLayout, then thats the type of params May 19 10:37:26 The root is a FrameLayout May 19 10:37:44 oh really? May 19 10:37:58 how do you know? May 19 10:37:59 oh it's a listActivity May 19 10:38:05 eww May 19 10:38:17 ohhh May 19 10:38:22 so the view is in there May 19 10:38:26 ok i check May 19 10:38:30 Because I know how android works May 19 10:38:38 phew, someone here does :D May 19 10:38:48 Anyway, yeah.. Eww listactivity May 19 10:39:00 And eww approach, I don't know why they would recommend that to developers May 19 10:39:09 Oh. Can I use a DialogFragment from a listActivity? May 19 10:39:14 mr SimonVT, have you played with Volley yet? May 19 10:39:22 Nope May 19 10:39:28 I use retrofit instead May 19 10:39:30 so ListActivity's root is a FrameLayout? May 19 10:39:48 All activities roots are framelayouts May 19 10:39:57 Possibly all windows May 19 10:40:01 oh ok May 19 10:40:03 thanks guys :) May 19 10:40:13 Anyway, use a listfragment instead May 19 10:40:27 well, i'm not actually using it, i'm just reading the docs May 19 10:40:43 but noted, ListActivity sucks! May 19 10:42:49 if an employer asks to write an app as a pre interview test, would they be mad if i use a chunk of code from the android docs or stack overflow? May 19 10:43:42 do the employer like ice skating? May 19 10:43:51 Does copy pasting code show your ability to program android apps? May 19 10:44:05 yes May 19 10:44:16 would they expect you to work as an employee without referring to external example code? May 19 10:44:42 'cos if so - now is a good chance to walk away May 19 10:44:42 copy pastibg code from sources allowed by licence is a timesaver May 19 10:45:16 Leeds, I dunno lol May 19 10:45:21 Does the memory usage on the simulator and on a device widely differ? May 19 10:45:31 CocoStorm: wut kind of app, exactly ? May 19 10:45:37 however, asking for clarification may be wise May 19 10:46:23 RSS feed reader May 19 10:46:43 hey guys why when I open my project.apk it is blank May 19 10:46:52 but in eclipse there is something May 19 10:47:04 iKillCypher: again, is this something you wrote ? May 19 10:47:08 yes May 19 10:47:08 CocoStorm: is this for a junior position? May 19 10:47:42 Leeds, yes May 19 10:47:47 i guess it depends how much you copied and pasted. if its 100%, thats not good :) May 19 10:48:04 ... May 19 10:48:09 because seriously, if you're applying for an 'adult' job, and they ask you to do something like that, actively avoiding using common tools would be a *negative* to me May 19 10:48:26 are you mentally insane May 19 10:48:46 it is just black on my phone May 19 10:48:48 Leeds, what common tools? May 19 10:48:55 CocoStorm: example code online May 19 10:49:01 g00s, yeah for sure, won't copy 100% of it May 19 10:49:29 Leeds, so avoiding example code online is a negative? May 19 10:49:31 :O May 19 10:50:19 any working engineer who doesn't have at least a couple of browser tabs open to the docs, and at least a couple more to third-party info sources... isn't much of an engineer, to me May 19 10:50:46 it depends on what the intent behind their request is May 19 10:50:51 we don't know. May 19 10:50:53 Leeds, I guess lol May 19 10:51:16 i'm not going to implement quicksort on the job; but the interviewer may ask me to write it May 19 10:51:24 CocoStorm: You should be able to explain every single line of the code sample you copied May 19 10:51:33 yeah May 19 10:51:39 hey, any channels for domains? May 19 10:51:55 I see May 19 10:52:09 yeah definitely will understand anything I do use May 19 10:52:23 If you can say "I was confused, I consulted the docs/SO, read this code, understood how and why it worked, pros/cons, etc", to me, that would sound amazing May 19 10:52:36 maslen, yes May 19 10:52:45 that's my plan indeed May 19 10:52:46 I'm working on a stock exchange application, and I am using the Yahoo Finance API to get the data. How could I make the data auto update every X amount of time? I'm showing the data on a ListView and I get it using an AsynTask May 19 10:52:59 CocoStorm: So don't forget to reference the SO post if that's what you do :) May 19 10:53:12 zyngawow: updating zynga stock info ? May 19 10:53:21 thats easy, it just keeps going down :D May 19 10:53:34 My nickname actually has nothing to do with zynga :( May 19 10:53:41 wow May 19 10:53:45 maslen, for sure I will :) thanks! May 19 10:54:04 CocoStorm: Keep in mind, I am a nub. But try to think about their motivation for having you write a piece of sample code. May 19 10:54:32 thanks g00s also May 19 10:54:37 n leeds May 19 10:59:04 why does the freaking eclipse lagging May 19 11:06:07 can someone explain what android studio is complaining about here? https://dl.dropboxusercontent.com/u/54747914/share/api_level.png May 19 11:06:21 maslen: good answer May 19 11:08:37 anybody good with source code? May 19 11:08:46 is there anyway to detect app launch in source code? May 19 11:09:01 any activity launch May 19 11:10:11 meetoman: first google hit returns a stackoverflow post and first answer seems to be to analyze the logs May 19 11:10:23 Waynes, I've been doing that for past 6 hours May 19 11:10:40 I'm working on a stock exchange application, and I am using the Yahoo Finance API to get the data. How could I make the data auto update every X amount of time? I'm showing the data on a ListView and I get it using an AsyncTask. I have Stock objects inside the ArrayList to which the ArrayAdapter points to. What I really want is the view to be refreshed whenever I retrieve the information. May 19 11:10:49 meetoman: so why are you asking? May 19 11:11:16 I've went through broadcastreceiver, timer, and all sorts of other methods, the only way it works is by putting a stupid loop and constantly return package information of the app itself May 19 11:11:24 there are no information on source code what's so ever May 19 11:11:59 when you are dealing with operating system itself, rather than just the android frakework built for developers, the resources becomes very limited on what you can google May 19 11:12:54 meetoman: you know that this channel is for developers working on apps with the public APIs, right? we don't use source code, only object code May 19 11:13:49 some people might touched it, it's a pretty common question with no solution May 19 11:14:00 it is doable but requires root May 19 11:14:11 what, "anybody good with source code?" is a common question? May 19 11:14:16 I only use public api as well, just in this case where public api are no longer accessible, I dig down in level lower May 19 11:14:55 Leeds: Sounded weird to me, too. Like all kind of other code wasn't source code. May 19 11:15:10 meetoman: Than it's not the public API :( May 19 11:15:40 Leeds: i hear you are good with the source codes May 19 11:17:51 where is the source codes? is it on phone on the android? May 19 11:17:51 I am writing an analytical report, so I just need the concept, I don't need a working prototype right now May 19 11:17:54 so do you want to be able to detect if other apps launch? like ones you didn't write? May 19 11:18:28 http://source.android.com/index.html May 19 11:18:55 erdos, yup, currently there is only one way, run a service keep detecting what app is running in the foreground May 19 11:19:20 I am trying to see if there are any way that OS is detecting it, just going through source code file one by one May 19 11:19:42 hmmm interesting May 19 11:20:35 and if you want it, you can takea look at fromhttps://github.com/android/platform_frameworks_base May 19 11:21:41 what is this? the source of android.jar? May 19 11:22:14 yah May 19 11:23:22 oh boy i wouldn't have a clue how to approach this May 19 11:23:32 hello! how do I setup and start an android/maven-project? May 19 11:23:35 Hi May 19 11:23:55 Will TCP getInputStream().read wait for incoming message? May 19 11:24:29 Or it will return nothing if nothing was received? May 19 11:24:35 erdos, i am going through the files one by one right now lol, if someone knows the answer, it would save me like few days worth of time May 19 11:24:49 SiPlus: afair it's blocking May 19 11:24:59 meetoman: good luck May 19 11:25:09 Waynes: is there some timeout? May 19 11:25:38 Waynes, thanks May 19 11:25:41 SiPlus: you can set one for connect May 19 11:25:52 again, I only need the concept for the report, I dont need the actual implmentation May 19 11:25:56 meetoman: let us know when you are done in a few weeks May 19 11:26:03 Waynes: what about timeout to read from InputStream? May 19 11:26:32 SiPlus: maybe socket.setSoTimeout(millisec) May 19 11:27:05 Waynes, well, I think I can simply stop the thread if it takes too long May 19 11:27:47 SiPlus: Better close the strem and catch the exception May 19 11:27:51 *stream May 19 11:27:56 Waynes: what exception? May 19 11:28:10 meetoman: you might want to check out the SystemUI package, as the recently used apps screen should be implemented there May 19 11:28:17 SiPlus: the one which arises when you close the stream May 19 11:28:46 Waynes, I mean, how do I unblock .read if it takes too long time? May 19 11:29:46 oh May 19 11:29:48 found something May 19 11:29:49 SiPlus: I guess you have two threads, one which is trying to read and one which does something else. If you don't want to use setSoTimeout you can close the stream and the input_stream.read will throw an exception May 19 11:29:50 http://stackoverflow.com/a/6579607/962670 May 19 11:29:51 looks good May 19 11:30:23 ah, setSoTimeout is better May 19 11:30:28 read its documentation May 19 11:30:47 I read its documentation * May 19 11:30:54 I don't know what you want to read for anyway so I can't judge what's better for you :P May 19 11:31:19 nioncode, thanks May 19 11:31:47 Waynes, thanks May 19 11:39:10 hello, for test, im writing an camera app. i used a button and a ImageView, calling an Intent on the button to capture an image from camera and display on the imageview. it works but when i rotate the screen, the imageview kinda disappears. please help May 19 11:40:08 omid8bimo: https://www.google.co.uk/search?q=handle+screen+rotation+android&aq=0&oq=handle+screen+ro&aqs=chrome.1.57j0l3j62.3857j0&sourceid=chrome&ie=UTF-8 May 19 11:45:06 StingRay_: ok let me see the results and get back to ya May 19 11:50:39 nioncode May 19 11:50:46 are you still here? I found another way to do this May 19 11:51:53 StingRay_: ok android:configChanges="orientation" worked. why this was happening? whats the reason behind it? May 19 11:53:02 omid8bimo, what do you mean? May 19 11:55:50 hey, anybody good with java? May 19 11:55:55 i mean why my imageview object/field disappeared when screen rotated? Activity gets executed everytime it rotates? May 19 11:56:22 because you didn't save it inside the state May 19 11:56:41 so this will save it? android:configChanges="orientation" ? May 19 11:57:13 no May 19 11:57:15 if you use that May 19 11:57:21 you wont need to save the instance May 19 11:57:29 that means your instance stays the same upon rotation May 19 11:57:31 activity gets recreated on configchanges May 19 11:57:43 Other things than orientation change can kill your activity May 19 11:57:46 with that, it won't May 19 11:57:46 Always save state May 19 11:57:47 Zharf, it doesn't if you use android:configChanges="orientation" May 19 11:58:03 SimonVT, there are other ways around it May 19 11:58:03 meetoman, I know, I was getting to that! :p May 19 11:58:10 let me explain to him how it works first May 19 11:58:24 you can use dispatchSaveInstanceState and dispatchRestoreInstanceState May 19 11:58:29 Just don't say "if you handle orientation change you don't have to save state" May 19 11:58:36 those will fix all the situations where your Activity gets changed May 19 11:58:55 otherwise you ahve to deal with multiple situations, such as opening the keyboard and such May 19 11:59:06 in which, the correct version is android:configChanges="locale|orientation|keyboardHidden|screenSize" May 19 11:59:29 that way you dont have to change the state May 19 11:59:43 Just don't say "if you handle locale|orientation|keyboardHidden|screenSize change you don't have to save state" [FIXED] May 19 11:59:48 but it's not future proof, there could be some other stuff that's coming up, such as dual screens May 19 12:00:12 SimonVT, that kind of handles all the situations, I dont think you still have to save your state May 19 12:00:21 oh wait, you still have to May 19 12:00:31 In low memory situations your process can still be reclaimed May 19 12:00:35 yup May 19 12:00:58 android:configChanges="lowMemory" May 19 12:01:43 there is no such thing May 19 12:01:58 however, you have to put mcc|mnc too to avoid simcard gets pulled out May 19 12:02:15 I know May 19 12:02:47 People like to use configChanges to solve all their issues with regards to state saving May 19 12:02:49 when doing timezone conversions, if I read in a date that is CET and I want to convert it to a local timezone how do I go about that? just take away the offsets manually? May 19 12:03:25 SimonVT, that's what I do, it solves 99% of the problems May 19 12:03:27 meetoman: yes, whats up? May 19 12:03:38 nioncode, I found a solution May 19 12:03:43 https://github.com/android/platform_packages_apps_launcher/blob/master/src/com/android/launcher/Launcher.java May 19 12:03:59 err, https://github.com/android/platform_packages_apps_launcher/blob/master/src/com/android/launcher/AllAppsGridView.java May 19 12:04:02 lion 97 May 19 12:04:11 I can detect whether app is launched over there May 19 12:05:14 that will only give you the cases where the app is started from the GridView in the launcher May 19 12:05:33 all right, so is there any option in configChanges to preserve state over like screen rotation and keyboard? for now? May 19 12:05:44 meetoman: It hides your bugs, it doesn't solve them May 19 12:05:45 no, don't do it, it's bad May 19 12:05:53 or i should define one elemnt for each in activity directive? May 19 12:06:09 omid8bimo: You should use onSaveInstanceState to save your state May 19 12:06:19 you should just handle configuration changes properly May 19 12:06:58 No, you shouldn't May 19 12:16:47 SimonVT: ok so that is safer and the standard way May 19 12:17:33 omid8bimo: in short a solution for you May 19 12:17:45 get camera image path (save to file if not) May 19 12:17:58 save to a variable like _myImagePath May 19 12:18:26 onSaveInstanceState outState.putString("_myImagePath", _myImagePath); May 19 12:18:32 nioncode, what would be some psedocode that can be written to handle the situation? May 19 12:18:56 onCreate then check if saveInstanceState != null restore that variable and set the imageView May 19 12:20:57 lookup and read about Bundle if your unsure of anything May 19 12:25:39 nioncode, what if I overwrite the startActivityForResult? May 19 12:26:13 meetoman: what are you even trying to do? May 19 12:26:26 nioncode, have a listner listens when every activity opens May 19 12:26:49 if I overwrite the startActivityForResult itself, it should send a broadcast or trigger the listner May 19 12:27:09 and what do you want to do when you got this? May 19 12:27:25 i just need it in concept May 19 12:27:28 not in practice May 19 12:27:57 I dont need service either, just Activities May 19 12:28:44 meetoman: so how about overwrite startActivity too ? May 19 12:28:56 what if an activity is started from a broadcast ? May 19 12:29:03 stll don't get what the point of this is May 19 12:29:24 StingRay_, startActivity calls startActivityForResult May 19 12:29:44 is there still no good solution to doing animated expandable list views May 19 12:29:47 StingRay_ if you are starting an activity from broadcast, you still gota call startActivity May 19 12:30:13 storkme, you can overwrite it and animate it May 19 12:30:33 nioncode, I am just doing this as a concept for a client May 19 12:30:45 meetoman: but whats the purpose May 19 12:30:51 you said how you want to do it May 19 12:30:54 and who for May 19 12:31:02 still not the purpose or reason May 19 12:31:07 StingRay_, I am under NDA and can not talk about it May 19 12:31:41 there is obvious purpose, the reason why Google didn't include such function is that devs would easily exploit it May 19 12:31:56 because I can open up my app when competitor's app is open :) May 19 12:32:10 can now I think May 19 12:32:21 or rather, seen that done a few times May 19 12:32:47 there is one way of doing it without touching the source code May 19 12:32:52 just run a loop behind it May 19 12:33:53 I am just writing a report, analysis, and reasons, and if a couple of feature were to be implmented, how to do so May 19 12:34:21 alright, going to sleep, have a good night, after all I found my solution lol :0 May 19 12:34:26 can you not just capture sys log May 19 12:34:35 if you wanted a passive way May 19 12:34:40 I can, that doesn't do anything May 19 12:34:48 I need to be able to launch an activity May 19 12:35:01 intercept and launch something May 19 12:35:09 in concept, not in practice, of course May 19 12:35:12 there are some security apps that display an input for a passphrase if certain apps launch. maybe there is an open source one May 19 12:36:50 which ones? May 19 12:37:39 applock May 19 12:39:39 found it May 19 12:40:43 it's a loop May 19 12:40:45 https://code.google.com/p/applocker/source/browse/trunk/AppLocker/src/com/gueei/applocker/DetectorService.java May 19 12:41:18 nioncode, regardless, that's the only solution May 19 12:43:03 now that I've learned this trick, i m gona build an app for it :) May 19 12:43:24 better to use this than modifying the framework and rebuild it May 19 12:44:18 true, watch out for my new app ;) May 19 12:44:25 and my report May 19 12:44:37 alright, have a good night, thanks for all the help ;) May 19 12:46:53 http://developer.android.com/training/connect-devices-wirelessly/wifi-direct.html I'm following this guide for implementing WiFi Direct in my app May 19 12:47:16 Is says: "Now create a new BroadcastReceiver class that you'll use to listen for changes to the System's Wi-Fi P2P state. In the onReceive() method, add a condition to handle each P2P state change listed above." May 19 12:47:38 but I don't understand where some objects are coming from in the code snippet May 19 12:48:11 be specific May 19 12:48:13 what is this activity object? or this DeviceListFragment? May 19 12:48:23 oh May 19 12:50:06 good oh or bad oh? May 19 12:50:40 well you know what it's doing right ? May 19 12:50:45 at that point May 19 12:50:52 you know what fragment manager is ? May 19 12:50:56 what a fragment is ? May 19 12:51:03 how and instance works ? May 19 12:51:09 and calling a method ? May 19 12:51:12 I know how an instance works :P May 19 12:51:14 cause thats it May 19 12:51:17 And calling a method May 19 12:51:26 I don't know what a fragment manager is May 19 12:51:29 lemme look May 19 12:51:30 thanks May 19 12:52:23 is there a complete archive of all the videos of the talks at google io 2013 ? May 19 12:53:03 The google developers youtube channel May 19 12:53:46 Say I wanted to create a timeline of the development of my application. Are there any tools out there for making that look nice and tasty ? May 19 12:54:13 Not something that generates a timeline for me - Just a tool for creating and defining my own May 19 12:54:30 all I could find on youtube is the keynote and day 1 technical sessions, can't find day 2 or 3 stuff May 19 12:54:41 Okay so if I have a ListView so that for each item clicked a new activity starts. Is it possible to have just one activity start which changes it's content depending on which item was clicked? May 19 12:54:41 lite_: to me your talking about a blog lol May 19 12:55:29 CocoStorm: I dont know, can you make an activity that does that ? May 19 12:55:33 :) May 19 12:55:38 StingRay_, Is it possible? May 19 12:55:42 course May 19 12:55:50 very common May 19 12:55:57 and very used through almost everything May 19 12:55:59 StingRay_, how? :S May 19 12:56:07 programming May 19 12:56:09 lol May 19 12:56:18 if/else etc May 19 12:56:35 StingRay_: don't forget lots of {, } and ; May 19 12:56:36 StingRay_, as in each item clicked starts the same activity May 19 12:56:52 so i only have to deal with one May 19 12:56:54 CocoStorm: you read the ID of the selected item and pass it to the called activity as a parameter May 19 12:57:06 in the intent May 19 12:57:10 it's probably the single most common pattern in (non-game) apps May 19 12:57:10 simples May 19 12:57:27 then use the if/else or if your feeling funky, switch/case May 19 12:57:52 you don't even need an if/else/switch/case May 19 12:57:57 I see so you can pass things in the intent May 19 12:58:14 CocoStorm: so here's where you step back from your code and go do the tutorial that you skipped May 19 12:58:19 you should read starting activity stuff May 19 12:58:28 yeah Leeds +++ May 19 12:58:32 wil do thanks guys May 19 12:58:45 somehow the GCM Demo does not work for me. registering the devices works just fine, but sending messages gives a 503 in the console May 19 13:10:25 I guess this is it ... http://www.youtube.com/user/GoogleDevelopers/videos May 19 13:12:28 I'm working on a stock exchange application, and I am using the Yahoo Finance API to get the data. How could I make the data auto update every X amount of time? I'm showing the data on a ListView and I get it using an AsyncTask. I have Stock objects inside the ArrayList to which the ArrayAdapter points to. What I really want is the view to be refreshed whenever I retrieve the information. May 19 13:13:47 I would do that with a service/content provider May 19 13:13:56 what yahoo finance api? May 19 13:14:01 it might be easier through YQL May 19 13:16:24 wabz: the CSV API May 19 13:16:38 ahk, I think the YQL table uses that May 19 13:16:54 it would seriously be easier using yql May 19 13:17:29 http://developer.yahoo.com/yql/console/?q=show%20tables&env=store://datatables.org/alltableswithkeys#h=select%20*%20from%20yahoo.finance.quote%20where%20symbol%20in%20%28%22YHOO%22%2C%22AAPL%22%2C%22GOOG%22%2C%22MSFT%22%29 May 19 13:17:30 Easier in what way? Parsing it is no problem May 19 13:17:31 hey all May 19 13:17:39 well just more flexible May 19 13:18:00 By using YQL, could I have pseudo-real-time updates? May 19 13:18:11 Is it possible to have a popup (toast, or alert dialog) that is visible everywhere for a long period of time? May 19 13:18:19 Like, home screen too May 19 13:18:30 you could combine/filter/etc more easily May 19 13:18:36 the data is the same May 19 13:18:40 but I think that depends onthe region May 19 13:18:49 I want an app to display it nonstop (I realize for toast for example, .SHORT is 2 seconds, .LONG is 3.5, but I can just repeat it on a timer) May 19 13:18:51 I think for example, yahoo stock data is real time for HK May 19 13:19:07 that sounds terrible newlex May 19 13:19:16 wabz - it's what a client wants May 19 13:19:19 lol May 19 13:19:22 wabz: what I mean, is if with YQL I can update the GUI easier May 19 13:19:31 no, the data is the same May 19 13:19:43 in fact, it might be worse because YQL has its own caching layers May 19 13:19:51 wabz - the question is can it just do it on a timer and even work outside the app May 19 13:20:01 no idea, I'm not even going to figure that one out May 19 13:20:06 lol May 19 13:20:10 why not just keep a persistent notification May 19 13:20:12 at worst May 19 13:20:24 angelsl: will it clear the previous one? May 19 13:20:26 wabz: my question was how to make the GUI update. I have a custom ArrayAdapter overriding the getView() method. May 19 13:20:37 I told you to use a service and content provider May 19 13:20:38 I will check that out thanks May 19 13:20:39 you could register multiple i suppose.. May 19 13:20:47 then have the listview watch the appropriate cursor May 19 13:21:01 your client is crazy >_> May 19 13:23:30 wabz: You don't need a provider to use an SQLite database if the use is entirely within your own application. May 19 13:23:35 wabz: thats what google thinks May 19 13:23:47 yeah that doc page has always said that May 19 13:24:01 but it's pretty much the recommended way to do anything May 19 13:24:52 So I should use a SimpleCursorAdapter May 19 13:25:14 if it suits your needs May 19 13:26:02 if your app is just really simple though May 19 13:26:15 you could get away with an asynctask that you run every so often from the activity May 19 13:26:36 and in the onpostexecute you'd just do whatever you normally do May 19 13:26:46 wabz: I want to start with a simple app, but I'll keep adding features to it. May 19 13:27:24 wabz: And I need to have a database on the phone? May 19 13:27:25 zyngawow: lol, I always think those statements are odd, I want some1 to say, I want to start very complex and add NOTHING to it May 19 13:27:38 SimonVT: Do you use android.R.string.* strings? For things like Ok, Cancel, Yes, No etc? May 19 13:27:40 zyngawow: yes May 19 13:27:43 For different languages. May 19 13:27:59 StingRay_: as you can see, I'm learning Android. I have experience on Java, so I want to start the app with the simplest things May 19 13:48:20 hopefully GCM User Notifications will be available shortly for everyone May 19 13:51:26 will com.google.api.services.drive.Drive.Files.Update do a binary diff update if I update a large file? May 19 13:51:39 anyone tried android studio with andengine? May 19 14:05:16 I wanna create a persistent toast, has anyone does this before? May 19 14:06:34 nevermind May 19 14:09:16 found a helper class on google that does this May 19 14:11:22 why would you want a persistant toast msg ? May 19 14:11:28 is that not really really bad design ? May 19 14:11:43 is that not what notifications are for ? May 19 14:12:55 I'm having a hard time understanding WiFi Direct. Can anyone point me to a good guide? May 19 14:14:40 a persistent toast sounds like a *terrible* idea May 19 14:15:13 Leeds: I get pissed when ne1 uses *_LONG time so yeah May 19 14:15:21 very annoying May 19 14:16:04 Hello, i have an issue, maybe. I have activities A B C, A is main activity. I start A, from A in start B and from B i start C. The issue is that when i press the back button when i am in C i see that there is a call at method onStart of A. Is this an issue? thanks May 19 14:20:32 I'm having a hard time understanding WiFi Direct. Can anyone point me to a good guide? May 19 14:20:46 conor_f: google May 19 14:20:53 StingRay_: I have :/ May 19 14:20:59 then now, doubt it May 19 14:21:06 cause if google dont have it May 19 14:21:29 what you think the chances are of some hidden guide not shown from searches on google and SO ???? May 19 14:21:31 really ? May 19 14:21:42 just asking in case someone was once in the same position as me and found some guide useful May 19 14:24:00 better to probably ask a specific question about item/context of which you dont understand May 19 14:24:22 rather than rely on some1 in here being greater than the almighty google web search :) May 19 14:24:48 StingRay_: it's the fundamentals. I'll just have to go through it really slowly I suppose May 19 14:25:00 fundimentals of android ? May 19 14:25:04 or wifi direct ? May 19 14:26:16 wifi direct May 19 14:26:30 and I suppose my general android skills aren't up to much either May 19 14:26:39 * conor_f heads towards beginners guid May 19 14:26:49 *guide May 19 14:27:13 that will be the most part May 19 14:27:15 android May 19 14:27:39 yeah May 19 14:28:32 well, if I can't understand the wifi direct guide, I have to start with something I understand May 19 14:29:03 I used to teach 3D graphics May 19 14:29:28 if some1 could not explain to me what a pixel is, what color space is, what a diode is, what a vertex is May 19 14:29:42 I would not let them open any major 3d package May 19 14:29:52 cause there would be no point May 19 14:31:34 yeah, ofc May 19 14:32:12 I can understand Android stuff, just wifi direct is the first thing that's really caught me May 19 14:32:30 and now it's making me question how well I know the rest May 19 14:33:38 ok what about wifi direct ? May 19 14:33:43 specifically 1 thing ? May 19 14:33:53 or rather pick one thing you dont understand May 19 14:35:22 I understand the parts individually May 19 14:35:41 Like, I know what a broadcast receiver is, I know what Fragments are, I know how to use sockets May 19 14:35:50 but how it all links together I don't get May 19 14:37:13 I would suspect that a concept programming thingy then May 19 14:37:23 cause normally if you know all the components May 19 14:37:33 you know or can undestand the sum May 19 14:37:38 http://www.mkyong.com/tutorials/android-tutorial/ helped me jump in May 19 14:37:59 not sure any wifi stuff in there May 19 14:39:09 Hi I don't get it: android:textColor="@drawable/button_colors" that works for the text color of a button. May 19 14:39:47 But when I specify android:background="@drawable/button_colors" it will not run on the emulator. May 19 14:39:47 capella: it doesn't. The tuts were made with android 2.3.3 and wifi direct only came in in 4.0... thanks anyways though :) May 19 14:42:26 hi I have remoteviews and want to add to viewgroup in activity. can one point me to example ? May 19 14:43:23 viewgroup currently is linearlayout and remoteviews activity is getting from service via aidl. May 19 14:44:22 I have tried remoteviews.apply(activity, viewgroup) and have it does not seems to show the remoteviews inside activity May 19 14:45:21 Hello guys. I have a problem with AsyncTask: I am calling in an Activitiy Class a Method form another class which is calling the AsyncTask.execute(); I debugged through the Async task and doInBackground is cominf to the return statement but onPostExecute is never called May 19 14:48:15 is anyone else's android studio having a problem finding symbols/views? May 19 14:49:50 When I share a text from my app with the sms app of a 2.3 device, its automatically converted to MMS. Why is that? And how can I fix? :) May 19 14:50:15 is the text too big ? May 19 14:50:20 160+ chars ? May 19 14:51:12 Nah, just 75 chars or something May 19 14:51:22 oh, should not do that then May 19 14:51:26 well not by default May 19 14:51:44 Its not happening on a newer device May 19 14:52:13 newer devices dont default to mms until some bigger char value May 19 14:52:20 Ok May 19 14:52:20 160x4 or something May 19 14:52:30 Maybe its the subject line May 19 14:52:37 oh May 19 14:52:44 Ill remove and test May 19 14:52:45 standard sms dont support subject lines May 19 14:53:01 although odd that they do in the transport I think May 19 14:53:01 Yeah, but most apps just ignore it May 19 14:53:41 When I launch my android app from eclipse it says x.apk doesnt exist, but it isn't callled x.apk, it's called something else. I can install it with adb but then i cant debug it with eclipse. How do I tell eclipse it isn't called x.apk but something else? May 19 14:54:07 Also, if I clean the project then right click it in eclipse and build project, nothing happens, but when I do ant debug, it does build fine May 19 14:54:14 hey guys - got a question: i want to make an app that catches call intents and manipulates the number before it sends it on. for that i think i need an intentservice, moreover i want the user to be able to switch this service on and off via a widget, which is why i need a broadcast receiver. Now to my question: What should start the service? the broadcastreceiver? should broadcastreceiver and service be seperated? Any ideas are appreciated May 19 14:57:16 Yeah, removing the Intent.EXTRA_SUBJECT prevented the mms converting May 19 14:57:24 :) May 19 14:57:30 I guess theres not really a need for subject May 19 14:57:46 nobody will share it through email, hehe May 19 14:58:01 Hi guys, I just released this Rotary Phone app, please check it out! https://play.google.com/store/apps/details?id=com.demarco.rotaryphone May 19 14:58:49 Hello guys. I have a problem with AsyncTask: I am calling in an Activitiy Class a Method from another class(which didn't inherited from Activity) which is calling the AsyncTask.execute(); I debugged through the Async task and doInBackground is coming to the return statement, but onPostExecute is never called May 19 14:59:42 parco: you shouldnt advertise here May 19 14:59:50 and there are other free apps that do the same :P May 19 15:00:19 mine is better :) May 19 15:00:29 hehe May 19 15:00:53 you need to explain why yours is better in the description May 19 15:00:56 i wouldn't consider it advertising either, im just sharing ;) May 19 15:01:06 sharing a piad app. May 19 15:01:08 ya May 19 15:01:15 compared to something like https://play.google.com/store/apps/details?id=nl.wellknown.rotarydialer May 19 15:01:19 its a dolla, sheesh May 19 15:01:49 price irrelevant May 19 15:02:08 that one is terrible. May 19 15:02:14 please pay me to check out my app is not a question for this channel May 19 15:02:20 or statement rather May 19 15:02:34 was wondering if someone might be able to point me to info on scaling a table to max width OR height (depending on orientation) maintaing a 1:1 aspect ratio May 19 15:03:15 is there a way to give out free copies? May 19 15:03:16 parco: yeah, it may be terrible, but I won't know that from looking at pictures and description May 19 15:04:23 Ok so I comment out in my xml file with but it reads it as an error when parsing ? May 19 15:04:31 parco: dunno, but dont like the design/pres as much as your other 2 apps May 19 15:04:42 as in the marketing etc May 19 15:04:47 shots on play etc May 19 15:04:48 Im trying to export a release version of my app but when I get to the final stage it says build tools are not installed. I know 22 split build tools and I did install them, it says I have on android sdk May 19 15:05:02 Is it just me ? May 19 15:05:13 hmm damn, what about the feature photo? May 19 15:05:31 thats what I mean May 19 15:05:41 you already know I like the other 2, said so b4 May 19 15:05:50 this one, and the icon, ….. not so much May 19 15:05:59 Well thanks, this is why i ask here, you guys have the best eye May 19 15:06:06 I kinda get why they are the like that May 19 15:06:14 as in I get the choices reasons May 19 15:06:25 just…….dunno….not appealing really May 19 15:06:33 hard to pin down what I mean May 19 15:06:37 I need more coffee May 19 15:06:38 :) May 19 15:06:48 i think the icon might be too busy May 19 15:08:40 what do you guys do for graphic design, or are you not indies? May 19 15:09:00 I get myself to do mine May 19 15:09:04 haha May 19 15:09:10 hes a pain to work with though May 19 15:09:12 right arse May 19 15:09:16 i hear ya May 19 15:09:30 17 years of vfx/art stuff, creates a head strong twat May 19 15:09:37 I hate him most of the time May 19 15:09:42 oh wow, thats a lot of experience May 19 15:09:45 well, hate me most of the time May 19 15:10:00 is an application object always reachable? even if it's just an intentservice running? May 19 15:10:49 Im trying to export a release version of my app but when I get to the final stage it says build tools are not installed. I know 22 split build tools and I did install them, it says I have on android sdk manager =/ May 19 15:11:18 StingRay_: is this vfx guy for hire? May 19 15:11:42 not currently May 19 15:11:45 well nto really May 19 15:11:48 not* May 19 15:11:55 I need to release my 1st app May 19 15:11:57 :) May 19 15:12:11 then he maybe May 19 15:12:15 get on with it, you've been in this channel for a while :P May 19 15:12:20 until then, he's all mine May 19 15:12:24 I know May 19 15:12:31 but you should see what I'm doing May 19 15:12:33 tis funny May 19 15:12:35 :) May 19 15:12:48 is it in that top secret f** you phase? May 19 15:13:08 no but it's a view theme system thats funny May 19 15:13:17 like really funny May 19 15:13:45 if I were not an artist I would not be doing this, but the catch22 is you need to be a good programmer to do it May 19 15:13:55 thats why I ammuse myself May 19 15:14:01 its the lovely flip side of that for me May 19 15:14:28 well like I said, the "style" of the other 2 apps are nice May 19 15:14:45 and theme follows both form/style and function somewhat May 19 15:14:56 yea for this one i went with that 50's retro look May 19 15:14:58 the latest is a little harder to nail in style May 19 15:15:01 tried May 19 15:15:06 not nailed May 19 15:15:06 haha, that i did May 19 15:15:10 :) May 19 15:15:22 i had about 30 photos of Fallout and Bioshock May 19 15:15:31 gave it the college try ;) May 19 15:15:55 anyone? :( May 19 15:17:04 StingRay_: Alright so you hate the storefront, what about the UI? May 19 15:17:18 dunno, too poor to buy it May 19 15:17:35 Damn theres gotta be a way to issue free copies... May 19 15:17:38 oh but from screens, not too sure about buttons May 19 15:17:47 good eye, i hate them too May 19 15:18:05 old phone + gloss = errrr wtf May 19 15:18:16 its plastic May 19 15:18:38 did you ever see your grandmas old plastic rotary May 19 15:18:42 cept plastic in that day had no buttons or sliders like that May 19 15:18:46 yes May 19 15:18:50 I still have it !! May 19 15:19:02 send it to me, ill design a StingRay_ grandma theme May 19 15:19:08 :) May 19 15:19:23 dont have a metal spinner though May 19 15:19:28 tis plastic May 19 15:19:41 with metal marker/finger stop May 19 15:19:56 Someone using the EventBus library? May 19 15:20:06 most of them are like that May 19 15:20:07 memoryleak: yes otto May 19 15:20:36 Iv'e the problem that once the app is started and then restarted again, I get events multiple times dispatched May 19 15:21:04 with otto ? May 19 15:21:14 No, greenrobot/Eventbus May 19 15:21:24 posting logs right now May 19 15:22:32 Is it possible to call an AsyncTask in an OnClickListener? May 19 15:22:59 http://pastebin.com/MBkW5cqq May 19 15:23:22 Why would this work : android:textColor="@drawable/button_colors" but not for the background. The emulators says that the app stopped sorry. May 19 15:23:23 I've ensured that and set breakpoints to the onPreExecute and Execute method. May 19 15:23:42 Unknown0BC: no stack trace ? May 19 15:24:23 The click on the login button and the Async task are executed just once - but the event is delivierd multiple times -> if I started the app for a second time May 19 15:25:02 Could not dispatch event: class com.example.myapp.event.AppLoginStartEvent to subscribing class class com.example.myapp.activity.LoginActivity May 19 15:25:28 android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@4331d5e0 is not valid; is your activity running? May 19 15:25:41 But I get this only at the second start of the app May 19 15:26:10 I've the impression that the eventbus is trying to deliver the old event to the newly created activities May 19 15:26:52 memoryleak: do you register and unreg properly ? May 19 15:26:57 if so I have no idea May 19 15:27:08 Ah, well that would explain a lot May 19 15:30:16 Does monkey create anything more than system events? May 19 15:39:08 Im trying to export a release version of my app but when I get to the final stage it says build tools are not installed. I know 22 split build tools and I did install them, it says I have on android sdk manager =/ May 19 15:44:41 i'm porting CM7 to my device and finally i can complete boot it. But as soon as i press an hardware button phone restarts..Can anyone help me? May 19 15:44:59 andreasad: wrong channel May 19 15:45:03 read topic May 19 15:58:27 hey guys, what is the best ORM out there for Android? May 19 16:41:00 can anyone explain what benefit Gradle brings over the 'old' IntelliJ way? May 19 16:41:11 (in Android Studio) May 19 16:45:01 Hi. I'm playing around with AdMob. And I'm wondering if mye device id (which i give as test device) should be kept secret, or if it's ok to have my device id in the source when i commit/push to GitHub? May 19 16:48:40 belgianguy, what's old intellij way? May 19 16:50:23 Mavrik: no idea, but all new projects now come with Gradle settings/files May 19 16:50:31 and I don't get what the idea behind it is May 19 16:50:56 belgianguy, no, I'm asking you what do you mean by old intelliJ way (there are several build systems you could use ;) ) May 19 16:51:05 the default one was Ant IIRC and it was pain in the arse :P May 19 16:51:30 Mavrik: ah, the old default one, I can't imagine having used another one May 19 16:51:44 belgianguy, anyway, the IO talk on it pretty much shows all the best parts May 19 16:52:07 Mavrik: there was one on Gradle? oh May 19 16:52:13 I'll go find it then :) May 19 16:52:31 Im trying to export a release version of my app but when I get to the final stage it says build tools are not installed. I know 22 split build tools and I did install them, it says I have on android sdk manager =/ May 19 16:52:47 belgianguy, ah, no video yet :( May 19 16:53:13 belgianguy, basically, they implemented library files, dependency downloads from maven central, different build profiles and bunch of other stuff that was painful before May 19 16:54:48 Mavrik: ahh, that's a good enough explanation until the video comes online :) May 19 16:54:56 Hello I'd like to know how can I receive a Push Notification while my app is running so that I coud I notify my app to update a counter ? Here is a code I used to register to the GCM http://pastebin.com/MP9UfN5E May 19 16:54:58 and then I at least get the 'why' behind it May 19 16:55:29 belgianguy, also, automated testing is now first-class citizen, they support java and instrumentation tests out of the box May 19 16:59:18 Mavrik: ah, that's interesting, great to see so much attention for the developers May 19 16:59:59 is it safe to call getPurchases() from the main thread? May 19 17:00:12 IIRC no. May 19 17:00:35 Zharf: did they release that testing tool yet? May 19 17:00:56 the in-app billing says no for getSkuDetails and consumerPurchase, but no mention of getPurchases May 19 17:01:00 I forgot its name :/ May 19 17:01:11 Mavrik: thats what im thinking May 19 17:01:29 beastmanrage, if I recall the talk correctly there were only two trivial calls that were main thread save May 19 17:02:25 Mavrik: which talk? May 19 17:02:37 on the in app billing apis ;) May 19 17:02:57 i had no idea they have talks on this stuff :O May 19 17:03:30 aha, Espresso for Android it was called May 19 17:03:46 well there was a conference this week where they announced new in-app billing APIs :) May 19 17:04:15 Mavrik: > API 3? May 19 17:04:30 beastmanrage, https://developers.google.com/events/io/sessions/324958374 May 19 17:04:51 linky! Thanks May 19 17:06:00 belgianguy, no clue May 19 17:10:15 hi everybody! can anybody tell me what might be reasons for Eclipse to say "Could not find MyApp.apk! when trying to build a project? I've googled and found some people with the same problem, but nothing helped... Any ideas? (bzw my app uses the NDK, too, and this is compiled first, but then nothing happens) May 19 17:10:52 Mavrik: meant this one? https://developers.google.com/events/io/sessions/324603352 May 19 17:11:15 belgianguy, there's one just about gradle, but the video isn't posted yet May 19 17:11:22 "The new Android build system" May 19 17:11:34 Mavrik: ahh, k May 19 17:11:47 https://developers.google.com/events/io/sessions/325236644 May 19 17:35:21 I use an ArrayAdapter with simple_list_item_single_choice and I want to increase padding top and bottom on the textview. I override getView and setPadding (0, 10, 0, 10), but for some reason the textview is now underneath the checkbox to the right. Why is that? May 19 17:43:25 just copy that layout into your own project, and tweak it there May 19 17:45:24 yeah, I just did that May 19 17:45:27 way easier May 19 17:45:44 should have asked before, hehe May 19 17:55:30 Im trying to export a release version of my app but when I get to the final stage it says build tools are not installed. I know 22 split build tools and I did install them, it says I have on android sdk manager =/ May 19 17:58:48 WhereIsMySpoon: just a quick guess, maybe your ANDROID_SDK_HOME environment variable is not set May 19 17:59:23 opticdelusion: ive pointed eclipse to the android sdk home May 19 18:00:58 opticdelusion: as in window->preferences->android->sdk location is set properly May 19 18:02:58 Sorry. Why does new file(file).length differs to php $_FILES["size"]? May 19 18:04:32 WhereIsMySpoon: Did you update your ADT eclipse plugin to 22.0 as well? May 19 18:04:41 er May 19 18:04:49 perhaps not <_> May 19 18:05:48 ah. by the way.. do you guys have such problems with android studio too? (Build Path Problems with existing projects,etc.)? May 19 18:05:49 opticdelusion: i just checked for updates says no updates available May 19 18:06:18 opticdelusion: i just checked in version, adt plugin is ver 22 May 19 18:06:33 misterli: im using eclipse May 19 18:06:53 yeah. I just had problems with eclipse after installing android studio. May 19 18:11:35 I have the following code to retrieve data from Yahoo finances, but it is a bit too slow if I add more and more stocks. Would it be possible to "multithread" this? I mean, to check for all stocks at the same time. May 19 18:13:44 zyngawow: I would suspect you can do what you want May 19 18:14:04 StingRay_: I should rephrase the question May 19 18:14:13 I have the following code to retrieve data from Yahoo finances, but it is a bit too slow if I add more and more stocks. How could I "multithread" this? I mean, to check for all stocks at the same time. May 19 18:14:21 And the code: http://pastebin.com/W7byefr1 May 19 18:15:08 what do you mean it's a bit slow ? May 19 18:15:17 you can speed the network up May 19 18:15:24 cant* May 19 18:15:50 A toast is eactly 2 seconds right? May 19 18:16:01 I can't set it to less? May 19 18:16:03 StingRay_: It takes like 1 second per query May 19 18:16:21 StingRay_: and therefor, if I have 3 queries per Stock, and I have 10 stocks... May 19 18:17:12 Has anyone done anything similar to a countdown timer popup? May 19 18:17:26 zyngawow: still now sure what you question is May 19 18:17:28 I was wanting to do it via toast, this has to be done without being in the app (or at least be able to be visible outside the app) May 19 18:17:43 StingRay_: How to speed it up May 19 18:17:53 networking ? May 19 18:18:02 thats where the time is going ? May 19 18:18:05 you cant really May 19 18:18:08 like I said May 19 18:18:36 maybe the time is going in the server exporting to csv May 19 18:18:45 maybe May 19 18:18:53 you need to know what you want to speed up May 19 18:18:56 well, surely May 19 18:19:02 based of what is taking the time May 19 18:19:03 :) May 19 18:19:22 If I open it up on a browser, it takes a long time to get the file. So it's the server May 19 18:19:41 so get the data direct somehow May 19 18:19:46 reather than csv May 19 18:21:16 hey StingRay_ got a sec? May 19 18:21:37 dunno May 19 18:21:42 I got a cig in my mouth May 19 18:21:48 and I dont smoke in my home office May 19 18:21:48 haha May 19 18:21:52 so erm May 19 18:21:57 no I guess May 19 18:21:58 :) May 19 18:22:13 my nicks changed, parco here May 19 18:22:24 i made it free :) https://play.google.com/store/apps/details?id=com.demarco.rotaryphone May 19 18:22:34 i'd like to get your opinion on it May 19 18:22:38 cigarettes cause mild autism May 19 18:22:45 will d/l and look while having a cig May 19 18:22:50 thanks May 19 18:22:53 *while becoming retarded May 19 18:22:59 fk yeah May 19 18:23:07 just as long as you don't go full retard May 19 18:23:12 never go full retard May 19 18:25:36 btw. does anyone know why i get "could not find method android.provider.Settings$Global.getString" but only in sometimes? My app calls Settings.global.getString(...) and it's thrown by dalvikvm May 19 18:27:50 Running on a device where that method doesn't exist? May 19 18:28:12 beastmanrage: back May 19 18:28:29 bugs/functionality probs x 1 May 19 18:28:43 function changes/additions x 1 May 19 18:28:43 uh oh May 19 18:28:55 style change consideration x 1 May 19 18:29:03 do i have to pay for more details? May 19 18:29:08 but thats just my own op May 19 18:29:12 well the bug May 19 18:29:14 i want to hear them May 19 18:29:38 click a number, either go direct, or the opposite way to the finger stop May 19 18:29:43 rotates wrong May 19 18:29:50 and should actually do nothing May 19 18:29:53 well i'll be damned.. May 19 18:29:56 so thats a function choice May 19 18:30:01 and a bug May 19 18:30:04 ish May 19 18:30:10 ok good catch May 19 18:30:23 retarded smokes help May 19 18:30:26 you should try May 19 18:30:28 :) May 19 18:30:47 lulz yea ill have to May 19 18:30:50 the function change would be, no atuo release when hitting the stop, just a stop on rotation May 19 18:31:01 as would be the classic way it worked May 19 18:31:09 but again, just an opinion May 19 18:31:42 SimonVT. On a Galaxy S3. It works in 5/7 cases May 19 18:31:45 now style consideration, a definitive digital number display, dunno, just dont sit good for me personally May 19 18:31:55 what I remember is a hand written phone book May 19 18:32:05 so maybe pencil/pen hand drawn digits May 19 18:32:10 on a strip of paper May 19 18:32:14 loving that May 19 18:32:25 the delete maybe the tip of a rubber May 19 18:32:43 rubbers are condoms May 19 18:32:45 additions : add options for the speed/rotate release etc….. May 19 18:33:09 that concludes my retarded smokey opinions of 20 seconds use :) May 19 18:33:57 but auto release of spinny dial is not a feature I used to remember ;) May 19 18:33:58 jotting all this down, some good pointers May 19 18:34:26 but hey ho May 19 18:34:29 back to work May 19 18:34:39 so these things didnt chop the tip of your finger off everytime? :P May 19 18:34:48 ok, thanks StingRay_ May 19 18:34:54 oh 1 other thing May 19 18:35:02 but this is just me May 19 18:35:26 the specular component of that brushed metal texture is quite…. well… prominent May 19 18:35:49 thing about that is this, unless the world rotated with the dial rotor, the light would change lots May 19 18:36:03 only the detail of the brushed metal would rotate May 19 18:36:11 the specual effect would remain a constant May 19 18:36:29 but again, your talking to a 3d artist who notices these things, and gets pissed of by them May 19 18:36:43 hello! May 19 18:36:53 so separate the specular layer from the texture and place static on top of the rotating metal May 19 18:37:08 and this is why i ask the guy with 17+ years of experience May 19 18:37:11 thats would be more grounded in reality May 19 18:37:21 but here is the other thing then May 19 18:37:42 the specialar detail and highlights of brushed metal would be variant across May 19 18:37:56 the the specual result layer would not remain the same intensity or shape May 19 18:38:45 even if the metal didnt have dents? May 19 18:39:21 all worn materials have a variance of refractive index across the surface May 19 18:39:28 plastics less so May 19 18:39:38 mirror = zero etc May 19 18:40:14 but metals, you have anisotropic diffusion May 19 18:40:34 and sub variances of the way light is across a surface May 19 18:41:07 in other words, a round highlight is rarely round in materials with such characteristics May 19 18:41:08 could this be an informational layer i attach to the surface? May 19 18:41:35 well, see in RT you would produce a DOT3 map for the details May 19 18:41:43 i have an activity which is using actionBar and also creates a tabsAdapter(extends fragmentpageradapter) May 19 18:41:46 and then a spec map for the variance May 19 18:41:58 DOT3 bump = NormalMap May 19 18:42:06 I'm just old school May 19 18:42:09 ah ok May 19 18:42:25 i want to have different menuitems in every tab May 19 18:42:26 there maybe ways to fudge the effect May 19 18:42:42 not thought about it in a mobile way tbh :) May 19 18:42:59 i have OpenGL at my disposal, ill figure something out May 19 18:43:18 hi, i'm trying to use alarmManager to trigger app starting. but aparently i can only set the time. so it needs to be within 24h.. how can i set alarmManager to trigger at a certain date (e.g. in 2 days at 10:50)? May 19 18:43:33 for starters, ill rotate a specular map along with the brushed patterns and multiple some light source into the mix May 19 18:43:34 Is it possible to create a popup from an app to anywhere you are (like a toast)? and/or to able to listen to keys regardless of app being active or not? May 19 18:43:42 multiply* May 19 18:44:13 cool…but there are other things that ppl forget May 19 18:44:27 keys = keyboard connected keys May 19 18:44:27 the multiply would not decrease contrast of base layer May 19 18:44:43 but in reality, light does exactly that May 19 18:44:51 and not talking about blown out areas May 19 18:45:12 but in the end, tis what looks good May 19 18:45:18 rather that what is accurate May 19 18:46:16 yes, and at least this gives me a reason to continue working on it May 19 18:46:22 but I do think even just a fixed spec layer multiply would make it look awesomerrr May 19 18:46:57 well good, ill start with that before i break out the openGL book May 19 18:47:13 there will be a prob with brushed metal though May 19 18:47:27 as the detail of it comes from light direction + highlights May 19 18:47:37 so rotation of it would alter this May 19 18:47:38 yea i was wondering if i should keep that on the main pattern or create a bump map May 19 18:47:48 just try May 19 18:48:01 I cant picture it in my mind atm :) May 19 18:48:04 which is odd May 19 18:48:12 damn retard smokes.. May 19 18:48:25 lol May 19 18:48:31 I am stopping May 19 18:48:37 Is there a good vector graphics library for android? May 19 18:48:39 have 1 pack of tabacco left May 19 18:48:39 can anyone help me? May 19 18:50:24 dnano91: whats wrong with alarmManager ? May 19 18:51:53 StingRay_: can i also specify the date? May 19 18:52:52 erm you can do what you want May 19 18:52:55 read about the class May 19 18:52:58 in the docs May 19 19:03:17 in the docs it says "time in milliseconds that the alarm should go off" so i wasn't sure if i can also set the date May 19 19:03:39 why would you need to if you can do that ? May 19 19:04:17 because sometimes i need to set it 2/3 days in advance... May 19 19:05:04 erm May 19 19:05:30 still dont follow May 19 19:06:12 another question: how can i remove time from a Calendar()? there is .add(), but how to remove hours/minutes? May 19 19:06:51 erm May 19 19:06:54 add a negative May 19 19:07:32 i'm writing an alarm clock for my university as project (because we can't sync the calendart without authentication) and need to set an alarm for the next lesson, which could be in 3 days if it's friday May 19 19:08:01 I still dont understand, 1 ) what your really asking and 2 ) what the problem is May 19 19:10:37 i'm just not shure how to set the alarm properly, as there are a few thinks to keep in mind... but i can't really ask for help, cause it would take to long to get it right and i don't think someone would be that patient May 19 19:10:50 Use alarmmanager May 19 19:11:01 SimonVT: already using it^^ May 19 19:11:02 let say I want to set it for 3 days from now May 19 19:11:10 I pass it a time in millisecons May 19 19:11:20 those millisecons are stored as a long May 19 19:11:29 I get that by using either date or cal objects May 19 19:11:55 Calendar instanst set to today (now) get Milliseconds May 19 19:12:04 add 3 days get milliseconds May 19 19:12:10 subtract May 19 19:12:12 set May 19 19:12:39 is it also possible to set the final date right away? i have objects that store the time/date May 19 19:12:55 and then substract May 19 19:13:10 personally never used alarm manager May 19 19:13:21 Why subtract, juse get the time in UTC and use RTC_WAKEUP May 19 19:13:47 a see, ask a programmer :) May 19 19:14:15 because if the lesson starts at 10 the alarm clock should ring at 9 (customizable) May 19 19:14:51 Aha May 19 19:14:57 Then subtract May 19 19:16:47 but my app is already a mess -.- mainActivity with 600 lines and executing many things too often May 19 19:17:41 What do you people think of "Give this app rating" choice on menu click? May 19 19:18:23 As long as you don't flood the menu with useless entries May 19 19:18:36 too many useless entries May 19 19:18:41 I agree May 19 19:18:51 There will only be two or three so it should be good May 19 19:19:00 Quacked: better than a popup May 19 19:19:02 [Help][About][Send feedback][Rate app][Settings] May 19 19:19:36 Quacked: no May 19 19:19:55 show it to people who engage a lot with the app and get the most value out of it May 19 19:20:13 I hate that so few tend to rate apps.. soon 300 downloads of an app of mine and only 3 ratings May 19 19:20:27 and all 3 was made the first two days.. i.e. friends of mine May 19 19:20:56 funkbox: ad views show that a lot of people is using it May 19 19:25:07 hello maybe someone can give me a quick response. Is there some property i can give a "relativeLayout" to fill the whole spare place between two elements? May 19 19:27:40 olarf: that would be a bad use of a heavy layout viewGroup May 19 19:28:06 but in answer to your question, yeah, how you do it depends on the parent viewGroup type May 19 19:29:59 android games channel? May 19 19:31:41 anyone know if the slides from this session are available? May 19 19:31:42 http://www.youtube.com/watch?v=Jl3-lzlzOJI May 19 19:31:48 Android Design for UI Developers May 19 19:32:16 Im trying to export a release version of my app but when I get to the final stage it says build tools are not installed. I know 22 split build tools and I did install them, it says I have on android sdk manager =/ May 19 19:32:43 nick, roman ^? May 19 19:33:11 etcetera: They posted them on g+ May 19 19:34:34 SimonVT: thanks. May 19 19:34:43 I meant the entire deck as a pdf or something? May 19 19:34:56 I don't remember May 19 19:34:59 StingRay_ maybe you could have a look if I have a stupid mistake here? The whole "Pager" is not visible. That means its covered by "webviewMain". What could i do to nake the "pager"+"pager_title_strip" visible aggain? May 19 19:34:59 http://pastebin.com/v1G6PWnP May 19 19:35:54 dont use match_parent May 19 19:36:24 as that will take all the space (other than any "rules" that flow in the remaining space direction) May 19 19:36:38 talking about height btw May 19 19:36:52 so i should declare fixed heights? May 19 19:36:57 well no May 19 19:37:05 but if you really wanting relative layouts May 19 19:37:07 StingRay_: he probably wants that webview to take up all remaining space May 19 19:37:12 use constraining rules May 19 19:37:22 Jc_Dev yes exactly May 19 19:37:43 ah then dont have it at the top May 19 19:37:47 have it at the bottom May 19 19:37:50 in the xml May 19 19:38:02 AHHH! ok cool great thanks! May 19 19:38:06 so you can say above + below (the views that you want it between) May 19 19:38:19 i always placed the elements as they have to appear on my screen hehe May 19 19:38:42 relative layout needs to have the relational id processed I think May 19 19:38:52 so A,B,C in xml May 19 19:39:01 A cannot be below C May 19 19:39:21 B,C,A but now it can May 19 19:39:36 A can now be between B and C May 19 19:40:25 hmm i think i misunderstood you May 19 19:40:35 it does not work that way i tried now May 19 19:41:18 webviewMain you want between what views ? May 19 19:41:34 pager_title_strip ? and ? May 19 19:41:47 webviewUnten ? May 19 19:42:03 I'm currently doing requirement analysis for a new application, it will be utilizing GPS in phones. I saw some information about web apps being able to use GPS in phones. Any drawbacks to this? May 19 19:42:06 between webviewOben and pager_title_strip May 19 19:42:28 so May 19 19:42:40 move webviewMain below (in xml) both those views May 19 19:43:10 then have below and above rules May 19 19:43:39 ok thanks i will try May 19 19:44:06 obviously that would rely on the two views your using as anchors to be in the places you want May 19 19:44:19 but ods are you could ditch most of this and use a linearLayout May 19 19:44:26 from what I'm seeing here May 19 19:44:31 making it super simple May 19 19:44:35 and lightweight May 19 19:44:38 gulli: some phones have no GPS, and it may not always work May 19 19:45:16 StingRay_: what is the mechanism to specify something that is 10 px tall at the top, 10 px tall at the bottom, and a third object that is in the middle whose height takes up the remaining space? May 19 19:45:20 hey guys. I need some help but not sure what the exact problem is. It's been driving me insane for the past week. I have a pretty successful app in google play, but for some reason, after my last upgrade which included many changes but most importantly the switch to targetSdk 17, A LOT of people are complaining about crashes after a few seconds. I tried it on my device (Nexus 4) and on a May 19 19:45:20 friend's device (Galaxy Nexus) and also on many other online phones I could find (services like deviceanywhere...) and I cannot understand why it crashes. :( There's nothing in the crash reports in the google play console. May 19 19:45:48 layout:weight May 19 19:46:05 ah - olarf you may want to look into that May 19 19:46:30 and then just use a LinearLayout like StingRay_ says May 19 19:46:36 Most people who complained about this used droir razr or some type of galaxy device... I tried running the app on a motorola droid and it seemed ok. At some point I asked a guy from work to test it on his device, and it crashed - the kernel was killing the app. Something to do with libgl ... May 19 19:47:08 If anyone here has a droid razr and can help testing this I would really appreciate it May 19 19:47:18 A height=10px, B height=0dp weight=1.0, C height = 10px May 19 19:47:26 in a vertical linear layout May 19 19:47:48 StingRay_: perfect, i think that's the kind of thing olarf needs to do, you got that olarf? May 19 19:48:12 i do my best following those instructions May 19 19:48:18 :) May 19 19:48:20 thank you in advance for your effort! May 19 19:49:07 ok i will change the layout now May 19 19:49:35 Ok, I now know a lot more about WifiP2p but I still have a few questions: 1) the docs say that WifiP2pManager.createGroup(..) is used for accepting connections from legacy clients. Does this mean older than android 4.0 or what? and 2) can there be multiple WifiP2p networks? i.e. 8 people in a room, 4 on one network, 4 on the other. if so, what methods are used for that? and finally, can a WifiP2p network have a pass May 19 19:50:20 Techdeck: maybe someone can help you interpret the crash report better? can you put a link here to a report on pastebin maybe? May 19 19:50:39 http://pastebin.com/GiPgqje4 May 19 19:50:50 that's what I managed to get from his device May 19 19:51:21 it's not your usual force-close.. this is android killing the process :( May 19 19:52:01 and the worst issue is, I can't downgrade to the old version because google play wont let me :| May 19 19:52:42 Techdeck, you're crashing the opengl driver May 19 19:52:52 obviously you're doing something wierd with GL May 19 19:52:59 and PowerVR drivers are crap anyway :P May 19 19:53:19 Techdeck: do you use any special NDK/OpenGL function? May 19 19:53:22 yeah I see that, but I don't know why, I'm not doing anything too graphical May 19 19:53:24 nope May 19 19:53:26 hmm... why woulnt HTML5 geolocation not work sometimes? that is make a webapp that uses GPS instead of a native application? May 19 19:53:49 I have a simple webview and a few ad providers May 19 19:54:11 "Copying /data/tombstones/tombstone_09 to DropBox (SYSTEM_TOMBSTONE)" followed by "Got RemoteException sending setActive(false) notification", not sure if that's relevant... May 19 19:54:23 I think that's irrelevant May 19 19:54:40 the process that dies is the com.genericsnippet.memebase one May 19 19:54:57 with segmentation fault ? May 19 19:55:02 that an intel phone ? May 19 19:55:09 that's a droid May 19 19:55:24 razr HD is intel May 19 19:55:26 motorola droid May 19 19:55:38 oh.. seriously? May 19 19:55:44 you mean it's not running on ARM? May 19 19:55:47 iirc May 19 19:55:55 cause it gets amazing battery life May 19 19:55:56 Where should I do my network operations to fetch data for my Widget? In the provider? The Service? The ViewsFactory? May 19 19:55:59 compared to arm May 19 19:56:01 :) May 19 19:56:01 that's interesting... May 19 19:56:11 maybe I could use an intel emulator and see what happens May 19 19:56:13 google/sojus/crespo4g <- That's a nexus 4 May 19 19:56:21 err May 19 19:56:23 nexus s May 19 19:56:37 does any of you have droid razr by any chance? May 19 19:56:51 in google play it says cdma_spyder (I'm assuming spyder is the model name) May 19 19:56:51 na, I wanted 1, just for bat life May 19 19:57:18 but decided to stay nexus device fullfilled May 19 19:57:38 Techdeck, yeah I have one, but in the office May 19 19:57:42 GSM version though May 19 19:58:00 SimonVT: is there a drawer in new support lib now ? May 19 19:58:07 and if so, you dtiching yours ? May 19 19:58:11 oh, never mind that, I wanted to try and test the .apk with you guys May 19 19:58:13 SimonVT, that's the Sprint 4G version of Nexus S afaik right? May 19 19:58:14 thanks anyway May 19 19:58:22 Which design patterns do you reckon most "well designed" android apps make use of ? May 19 19:58:24 StingRay_: There is, and no :) May 19 19:58:26 I'm going to try an intel-based emulator and see what happens May 19 19:58:31 it sounds like a good lead May 19 19:58:35 Hey guys, these methods work fine to get the tags of this XML file but I want to only get the <title> tags under the <item> tag. How can I accomplish this? http://pastebin.com/xVVReR5j May 19 19:58:42 <Techdeck> in fact, I'm going to check all the reviews and see if other devices are also intel based May 19 19:58:42 <Mavrik> Techdeck, that's an ARM phone, not Intel :D May 19 19:58:45 <Jc_Dev> Ankhwatcher: good question, another option would be an IntentService May 19 19:58:47 <SimonVT> Mavrik: Yeah May 19 19:59:04 <Techdeck> oh, crap :P May 19 19:59:07 <Mavrik> Techdeck, test on other PowerVR 540 devices (like Nexus S etc.) May 19 19:59:13 <SimonVT> Just strange that google play says it's a droid razr and the logs say a nexus s.. Sounds like a broken custom rom May 19 19:59:14 <SpeedEvil> lite_: the general pattern to follow is to not surprise the user May 19 19:59:26 <Mavrik> and yes, graphical driver there is a pile of shit May 19 19:59:31 <Mavrik> had problems with that device as well May 19 19:59:37 <SimonVT> StingRay_: The one in the support lib is in front of the content, mine is behind May 19 19:59:38 <SpeedEvil> lite_: generally inventing your own way of doing things on a system is fail. May 19 19:59:39 <Techdeck> :( May 19 19:59:45 <Techdeck> what can you do about it? May 19 19:59:46 <SimonVT> Might add the front stuff as well, we'll see May 19 20:00:00 <StingRay_> SimonVT: and anim time control ;) May 19 20:00:08 <Mavrik> SimonVT, huh, wierd… crespo4g is Nexus S 4G, spyder is the Motorola May 19 20:00:14 <conor_f> Techdeck: May 19 20:00:16 <Mavrik> they both DO have the shitty PowerVR 540 though :D May 19 20:00:20 <conor_f> What are you testing? May 19 20:00:23 <SimonVT> StingRay_: You that requested that? ;d May 19 20:00:46 <conor_f> I've a Nexus 4 if you want to test on that? May 19 20:00:53 <Techdeck> conor_f, my apps crashes randomly only on certain devices (droid razr mostly) and I wanted to try and test the .apk with someone here, who can take the logs May 19 20:00:54 <StingRay_> well I would just like to pass a duration to open close May 19 20:01:03 <Techdeck> I have a nexus 4 too, thanks anyway though May 19 20:01:11 <StingRay_> so I can control based on context/content May 19 20:01:26 <Techdeck> Mavrik, I'll try and get one of those devices.. thanks for the tip May 19 20:01:26 <conor_f> ah, ok. sorry I can't help May 19 20:01:34 <SimonVT> StingRay_: Didn't I add a method to set the animation time? May 19 20:01:39 <Mavrik> yeah, Nexus 4 won't help you, since it has an adreno :) May 19 20:02:01 <StingRay_> not that I know of May 19 20:02:03 <StingRay_> and asked you b4 May 19 20:02:16 <SimonVT> setMaxAnimationDuration May 19 20:02:24 <Techdeck> Mavrik, you think there's a way to use that with an emulator somehow? May 19 20:02:28 <SimonVT> I did <o/ May 19 20:02:31 <SimonVT> \o/ May 19 20:02:32 <StingRay_> arses May 19 20:02:38 <StingRay_> and yey at same time May 19 20:02:39 <Mavrik> Techdeck, doubt it, since it's a device driver May 19 20:02:44 <Mavrik> talking to an actual device. May 19 20:02:50 <Mavrik> and the point of emulator is to replace such device :P May 19 20:03:00 <Techdeck> damn May 19 20:03:19 <Spec-Chum> anyone have a thought on Android Studio? Too soon to test? I know I could just download and try but just wanted to get an opinion from a few users first May 19 20:03:33 <StingRay_> SimonVT: see is this programmer logic in naming methods I dont get May 19 20:04:00 <Techdeck> Mavrik, do you actually know what each device is running? :) May 19 20:04:03 <SimonVT> Not much thought went into that method name May 19 20:04:07 <Mavrik> Techdeck, bad news is that it seems it's a motorola browser bug you're hitting May 19 20:04:17 <SimonVT> I had a constant called MAX_ANIMATION_DURATION or something.. And I added a setter May 19 20:04:19 <Techdeck> can I give you a couple of names and tell me if they're all powervr based? May 19 20:04:30 <olarf> StingRay_: it gets a little frustrating :( could you have another look? my webview Main and webviewUnten are both not visible now ... May 19 20:04:31 <olarf> http://pastebin.com/pm5wP4Vi May 19 20:04:31 <SimonVT> Hence, setMaxAnimationDuration :p May 19 20:04:33 <Mavrik> Spec-Chum, get IDEA 12, switch to IDEA 13 when it's ready, way more stable May 19 20:04:44 <Mavrik> Techdeck, gsmarena.com ;) May 19 20:04:47 <Techdeck> I switched to intellij 13 already May 19 20:04:48 <StingRay_> setAnimationDurationMax May 19 20:04:50 <SimonVT> Since it's not guaranteed to be the animation duration, just the max.. It can be faster May 19 20:04:59 <Techdeck> to the EP release May 19 20:05:10 <Techdeck> it's still buggy but it's looking better May 19 20:05:14 <StingRay_> why no guarentee ? May 19 20:05:19 <StingRay_> where is the variance ? May 19 20:05:21 <Techdeck> thanks Mavrik, I'll check May 19 20:05:32 <SimonVT> The variance is in how fast the user drags the drawer May 19 20:05:59 <StingRay_> but on open() close() that is abosulte ? May 19 20:06:02 <StingRay_> absolute May 19 20:06:05 <SimonVT> Yeah May 19 20:06:12 <StingRay_> oh right, ok May 19 20:06:16 <StingRay_> yeah thats cool May 19 20:06:26 <Techdeck> Mavrik, 3 devices already - all powervr (and all motorola's) May 19 20:06:37 <Mavrik> don't you just love them May 19 20:06:45 <Mavrik> no wonder PowerVR didn't dare to show their face on IO :D May 19 20:07:08 <Spec-Chum> Mavrik: thanks May 19 20:07:34 <Techdeck> weird thing is, I still used the webview before with no problems.. problems only started once switching the targetSdk May 19 20:07:37 <StingRay_> olarf: not sure what you mean May 19 20:07:47 <SimonVT> StingRay_: You should update to 2.0.3, you get the up button thingy google added to the design guidelines May 19 20:07:48 <Mavrik> Techdeck, is that all you changed? May 19 20:08:05 <StingRay_> SimonVT: up button ? May 19 20:08:06 <Techdeck> well no, you're right, maybe it could still be something else May 19 20:08:10 <Mavrik> Techdeck, that crash is an allocation error, maybe you're running out of memory in JS and motorolas webkit can't handle that May 19 20:08:16 <olarf> i can only see the "webviewOben" on the top and the pager_title_strip below May 19 20:08:17 <Techdeck> but I have a feeling it has something to do with that May 19 20:08:34 <olarf> the other elements are either not there or hidden by the first two May 19 20:08:35 <Mavrik> minSdk is just a number in manifest May 19 20:08:41 <Mavrik> doesn't do anything for the code really May 19 20:08:43 <Techdeck> Mavrik, could be, but I don't have any JS, it's very simple May 19 20:08:46 <lasserix> 1.1billion for tumblr May 19 20:08:58 <lasserix> seems low given instagram's selling price May 19 20:09:00 <SimonVT> StingRay_, topleft corner of each screen: http://developer.android.com/design/media/navigation_drawer_overview.png May 19 20:09:05 <Techdeck> all that webview has is a simple html file with an <img> tag in it May 19 20:09:19 <SimonVT> An up button that animates as the drawer opens/closes May 19 20:09:32 <StingRay_> SimonVT: oh yeah fk that, I dont use AB May 19 20:09:37 <StingRay_> or follow guidelines :) May 19 20:09:49 <SimonVT> I like it May 19 20:10:06 <SimonVT> Makes more sense than the up indicator May 19 20:10:16 <Techdeck> Mavrik, I changed the targetSdk, and it did affect stuff May 19 20:10:41 <Techdeck> I had to start calculating width in dips and the fonts were a lot smaller May 19 20:10:47 <StingRay_> SimonVT: yeah I have an apposed icon for your slider on my viewMenuBar May 19 20:11:03 <StingRay_> so that but just rotated 90 degrees May 19 20:11:13 <CocoStorm> Hey guys, these methods work fine to get the <title> tags of this XML file but I want to only get the <title> tags under the <item> tag. How can I accomplish this? http://pastebin.com/xVVReR5j May 19 20:11:22 <SimonVT> StingRay_: pix? May 19 20:11:46 <StingRay_> tis placeholder atm, and in the middle of view theme sh*t hold on May 19 20:13:13 <lite_> what do you call the "pattern" used when developing for android? May 19 20:13:34 <lite_> where you have to adhere to stuff like lifecycles etc. May 19 20:13:46 <StingRay_> gonna do a new icon for it, that is just 1 solid bar and a hollow inverse bar, so a simplified schematic icony version May 19 20:13:47 <StingRay_> https://www.dropbox.com/s/un95cvho6j94pdc/device-2013-05-19-211208.png May 19 20:14:10 <olarf> Jc_Dev: i've done what you suggested but it became worse. maybe you could have another look? http://pastebin.com/pm5wP4Vi May 19 20:15:11 <SimonVT> That color t.t May 19 20:15:12 <Mavrik> gaaah May 19 20:15:23 <Mavrik> API for Activity animations is a bloody mess May 19 20:15:23 <StingRay_> what color ? May 19 20:15:35 <SimonVT> For the content May 19 20:16:01 <StingRay_> oh thats total user custom stuff, thats not even part of a preset theme May 19 20:16:03 <Jc_Dev> olarf: that looks like what i would expect - what are you seeing? May 19 20:16:08 <StingRay_> but looks ok May 19 20:16:18 <belgianguy> CocoStorm: skip tags until you read '<item>' and then read the title May 19 20:16:20 <belgianguy> tag May 19 20:16:36 <olarf> Jc_Dev: i see the top webview, than the pager_title_strip and thats it May 19 20:16:44 <SimonVT> Anyway, the icon.. You should rotate it 90deg.. So it looks like a list May 19 20:16:54 <StingRay_> SimonVT: it's an out of focus BG with floating pannels for contnet May 19 20:17:26 <StingRay_> so it IS NOT the color bg for reading content May 19 20:17:28 <Jc_Dev> olarf: as a test, if you put a fixed height on the pager does it behave better? May 19 20:17:51 <StingRay_> it's the background that the content floats on, with it's own bg/container/whateva May 19 20:18:45 <SimonVT> Alright :p May 19 20:18:50 <olarf> Jc_Dev: yes thanks. Now it looks as it should. (but i have fixed height on the pager) May 19 20:19:19 <Jc_Dev> ok, that means the pager content isn't being constrained properly... hmmm May 19 20:19:25 <CocoStorm> belgianguy, how do you skip tags? May 19 20:19:37 <belgianguy> CocoStorm: here's an example I once tried: https://github.com/belgianguy/VolcanoFeed/blob/master/src/com/example/VolcanoFeedParser/MyXMLParser.java May 19 20:19:43 <StingRay_> olarf: what do you want the viewPager to be May 19 20:19:49 <StingRay_> layout etc May 19 20:20:03 <belgianguy> CocoStorm: it has a 'skip' method May 19 20:20:05 <StingRay_> fixed height, portion, % of free space etc ? May 19 20:20:14 <olarf> icons with links May 19 20:20:21 <olarf> so it would be ok to use a fixed height May 19 20:20:28 <CocoStorm> belgianguy, Oh I see, I'm going to have a look into it thanks a lot! May 19 20:20:35 <Quacked> For consistency I want an actionbar on my dialogfragment. Whats the best way to accomplish that? May 19 20:21:35 <olarf> for me its working now but still i would like to know what i should do to prevent such a behaviour May 19 20:21:52 <StingRay_> whats happening ? May 19 20:21:59 <StingRay_> as in prevent what ? May 19 20:22:16 <Jc_Dev> olarf: maybe use android:maxHeight instead of a fixed height, it's almost the same thing, but it would let it go smaller if needed May 19 20:22:25 <BustyLoli-Chan> everytime I write an android app I never feel like it's cleanly coded :| May 19 20:22:40 <olarf> StingRay_: i had to do fixed height on the viewpager. Otherwise i was not able to see it. May 19 20:22:41 <BustyLoli-Chan> maybe I personally do it wrong, but I'm always a little ashamed of it lol May 19 20:23:23 <StingRay_> olarf set it's weight to 1 ? May 19 20:23:53 <olarf> ok i'll try May 19 20:25:08 <olarf> StingRay_: the weight of the viewpager should not be 1 May 19 20:25:30 <olarf> the viewPager has to "wrap_content" May 19 20:26:07 <olarf> anyway the fixed height does it for me May 19 20:26:19 <olarf> i apreaciate your help May 19 20:26:33 <StingRay_> really hard to vis what some1 else has in their mind May 19 20:26:40 <StingRay_> really hard :) May 19 20:27:39 <olarf> yeah i know May 19 20:27:57 <WhereIsMySpoon> Im trying to export a release version of my app but when I get to the final stage it says build tools are not installed. I know 22 split build tools and I did install them, it says I have on android sdk manager =/ May 19 20:37:08 <wviana> hey, just a fast ask, I'm new android developer, and I saw some exemples where three methods of the same object is called, than the object name is hidden, showing the object name in the first line and in the other is just .method. This is a java feature or a android ? May 19 20:37:53 <wviana> I had never seen it before start programing android May 19 20:39:18 <StingRay_> you mean a chained method May 19 20:39:19 <StingRay_> ? May 19 20:39:51 <WhereIsMySpoon> wviana: that's the same as doing object.method().method().method() May 19 20:39:54 <StingRay_> myObject.getSomething(something).thenDosomething(anotherSomething).doSomethingElse(blaa); ? May 19 20:39:56 <WhereIsMySpoon> wviana: it's just spaced out nicely May 19 20:40:01 <wviana> just like in AlertDialog.Builder that is the method .setPositiveAction and .setNegativeAction May 19 20:40:21 <WhereIsMySpoon> wviana: link? May 19 20:40:44 <wviana> so the method setPositiveAction return a buider ? May 19 20:41:04 <wviana> @Override May 19 20:41:04 <wviana> public Dialog onCreateDialog(Bundle savedInstanceState) { May 19 20:41:04 <wviana> AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); May 19 20:41:05 <wviana> // Get the layout inflater May 19 20:41:07 <wviana> LayoutInflater inflater = getActivity().getLayoutInflater(); May 19 20:41:09 <wviana> // Inflate and set the layout for the dialog May 19 20:41:11 <wviana> // Pass null as the parent view because its going in the dialog layout May 19 20:41:13 <wviana> builder.setView(inflater.inflate(R.layout.dialog_signin, null)) May 19 20:41:15 <wviana> // Add action buttons May 19 20:41:17 <wviana> .setPositiveButton(R.string.signin, new DialogInterface.OnClickListener() { May 19 20:41:18 <WhereIsMySpoon> <_> put it in a pastebin May 19 20:41:19 <wviana> @Override May 19 20:41:21 <wviana> public void onClick(DialogInterface dialog, int id) { May 19 20:41:23 <wviana> // sign in the user ... May 19 20:41:25 <wviana> } May 19 20:41:27 <wviana> }) May 19 20:41:29 <wviana> .setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() { May 19 20:41:30 <StingRay_> erm May 19 20:41:31 <wviana> public void onClick(DialogInterface dialog, int id) { May 19 20:41:33 <wviana> LoginDialogFragment.this.getDialog().cancel(); May 19 20:41:35 <wviana> } May 19 20:41:37 <wviana> }); May 19 20:41:39 <wviana> return builder.create(); May 19 20:41:41 <wviana> } May 19 20:41:43 <wviana> sorry May 19 20:41:45 <wviana> i just past it wrong May 19 20:41:49 <wviana> https://gist.github.com/anonymous/f5e5176506192919a4b7 May 19 20:41:53 <newlex> wviana May 19 20:41:54 <newlex> next tim May 19 20:41:55 <newlex> e May 19 20:41:57 <newlex> pastebin it May 19 20:42:34 <wviana> newlex: sorry, my IRC client past it on github, like the link, a just clicked wrong May 19 20:42:42 <WhereIsMySpoon> that looks as if its setView.setPositiveButton().setNegativeButton() which is weird May 19 20:43:30 <wviana> so the method .setPositiveButton() retun the same builder ? May 19 20:43:43 <StingRay_> yeah May 19 20:43:53 <StingRay_> it just retules the builder object May 19 20:43:57 <WhereIsMySpoon> oic May 19 20:44:00 <WhereIsMySpoon> makes sense then May 19 20:44:03 <StingRay_> setPosative() returns builder May 19 20:44:09 <StingRay_> so you can chain May 19 20:44:19 <StingRay_> or whatever it's called May 19 20:45:03 <wviana> cool, thanks May 19 20:48:13 <Quacked> Pre honeycomb, dialogfragment with actionbar. Possible? May 19 20:48:15 <newlex> wviana: okay. May 19 20:48:37 <lasserix> quacked abs (+ support lib)? May 19 20:48:59 <Quacked> lasserix: thats what Im using, but I dunno how to get actionbar in the dialogfragment May 19 20:49:12 <lasserix> actionbar doesn't go in the dialogfragment May 19 20:49:23 <Quacked> yah, I know, but I want it there, hehe May 19 20:49:33 <lasserix> that'd be bad design May 19 20:49:50 <Quacked> something like this: http://stackoverflow.com/questions/11425020/actionbar-in-a-dialogfragment May 19 20:49:56 <lasserix> but if you really want a top menu bar in your df, just make one with a linear layout < layoutweight 1 wrap content wrap content > May 19 20:50:13 <lasserix> yeah just make a linear layout May 19 20:50:35 <lasserix> to fill the space between new event and done use layout_weight 1 on an arbitrary view May 19 20:50:52 <Quacked> thats my last option.. It would be nicer with actionbar :P May 19 20:51:16 <Quacked> but I dont understand where and how they use the showAsPopup method May 19 20:51:37 <newlex> Is it possible to catch keystrokes from a service or inactive activity? May 19 20:51:43 <newlex> from a hardware keyboard May 19 20:52:35 <Quacked> a few of those is only build 11 and up too, like android:windowActionModeOverlay May 19 20:52:38 <g00s> StingRay_: day #3 of intellij ;D May 19 20:52:45 <StingRay_> cool May 19 20:52:48 <StingRay_> well done btw May 19 20:52:53 <g00s> :) May 19 20:53:01 <newlex> everything jetbrains is epic May 19 20:53:02 <norbu> ugh java code is so bulky :( May 19 20:53:03 <g00s> i have to figure out if lint works as well in IJ as eclipse May 19 20:53:22 <newlex> norbu: yeah I hate Java GUIs either in base java or on android.. they need to copy what C# and Delphi do properly May 19 20:53:40 <g00s> it used to be, that if you ran lint from the command line, it had lesser abilities. not sure if that still applies to lint in IJ for similar reasons May 19 20:54:52 <Jc_Dev> my gray icon appears white in the action bar, is there something funky you have to do for action bar icons? May 19 20:55:06 <SimonVT> Lint from command line doesn't have lesser abilities May 19 20:55:17 <g00s> SimonVT: it used to May 19 20:55:33 <SimonVT> Like? May 19 20:55:37 <g00s> see the docs May 19 20:55:54 <SimonVT> Link them May 19 20:55:57 <StingRay_> Jc_Dev: did you do a white icon ? May 19 20:57:10 <Jc_Dev> StingRay_: it's actually the "content_new" icon from the "android design downloads" icon pack - it appears gray on the computer, but white when displayed on the action bar May 19 20:57:34 <StingRay_> there will be a light and dark version though ? May 19 20:57:43 <StingRay_> and it may have transparency May 19 20:57:54 <Jc_Dev> yeah, i've tried both, i'm using Android_Design_Downloads_20120823\Icons\All_Icons\holo_light\hdpi May 19 20:58:06 <Jc_Dev> and yeah, it seems to have transparency - maybe that's what is doing it May 19 20:58:39 <Jc_Dev> i'm using Holo.Light theme, i would have thought the corresponding icon would look the same as the color as the overflow menu button May 19 20:58:57 <g00s> SimonVT: it was described in the release notes of ADT 16 May 19 20:59:09 <g00s> but i think many of the rel notes have been abbreviated since May 19 20:59:58 <SimonVT> Eclipse used to have worse lint support, I don't remember it having better May 19 21:00:11 <g00s> i remember the opposite May 19 21:00:22 <g00s> ADT gave it more context May 19 21:02:46 <g00s> "Lint is integrated with ADT 16 and later. The integration offers a few features above the command line version of lint:" May 19 21:02:54 <g00s> anyhow, you can read it May 19 21:03:10 <g00s> http://tools.android.com/tips/lint May 19 21:03:17 <g00s> seems like this doc is old anyhow May 19 21:03:58 <Jc_Dev> StingRay_: ok i tried a different icon and it is appearing correctly - something must be cached somewhere or something, i'll figure it out - thanks May 19 21:04:00 <g00s> but i thought there were some rules that worked from the context of ADT .. anyhow, long time ago May 19 21:04:06 <SimonVT> That doesn't say lint works better in eclipse May 19 21:04:13 <SimonVT> It just says ADT offers quick fixes May 19 21:04:26 <newlex> Is there any way to do a toast every 1 second instead of 2 seconds? May 19 21:05:06 <g00s> SimonVT: again, its what i remember from something xav said offhand May 19 21:05:16 <g00s> it may not even apply any more May 19 21:05:25 <g00s> adt 16 seems … so long ago ;) May 19 21:06:47 <Jc_Dev> in eclipse when i click Run to see my app on my phone, the next time I click Run nothing will happen unless i first toggle off of the LogCat tab and back again... weird May 19 21:07:18 <SimonVT> [citation needed] May 19 21:08:16 <g00s> so i dont hear anything about this any more; i'm guessing there is not difference May 19 21:08:33 <g00s> even back then it wasn't brought up much May 19 21:08:58 <meetoman> morning, SimonVT, you are still up :) May 19 21:09:29 <meetoman> hey g00s, if I want to write an eventlistner whenever an activity launches May 19 21:09:33 <SimonVT> It's 11pm, why wouldn't I be ;d May 19 21:09:45 <meetoman> can I just overwrite the http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.2_r1/android/app/Activity.java#Activity.startActivityForResult%28android.content.Intent%2Cint%2Candroid.os.Bundle%29 May 19 21:09:50 <meetoman> line 3368 from the source code May 19 21:10:21 <g00s> meetoman: ? May 19 21:11:15 <meetoman> g00s, I want to know when an Activity is being launched May 19 21:11:31 <meetoman> like a ActivityOpenListner May 19 21:11:33 <g00s> in your app? i dont follow May 19 21:11:42 <meetoman> no, for every app May 19 21:11:50 <g00s> oh, i have no idea May 19 21:11:58 <g00s> activity manager would know that May 19 21:12:38 <g00s> if you're modifying the frameowork itself, you're gonna have to start making changes and testing assumptions May 19 21:13:10 <meetoman> yes, i will May 19 21:13:50 <g00s> i don't even think i have enough disk space to pull all the git repos :) May 19 21:14:43 <wviana> if I'll use a class that was putted in api level 11 and my project target is api 15 and min api 7, do I need to use v4 library api ? May 19 21:15:16 <g00s> actually, how do i run lint from IJ ? May 19 21:15:18 <meetoman> g00s, I am just making another event listner in using a "private interface" May 19 21:15:29 <pilz> Hi. private Property<Order, String>[] mFrom; compiles, but how do I create a value for it? May 19 21:15:38 <Jc_Dev> wviana: how can you support api 7 if you're using a method from level 11... May 19 21:17:00 <g00s> meetoman: this probably isn't the best place to ask framework related questions May 19 21:17:08 <wviana> Jc_Dev: so i need to use V4 library ? I'm having some problems with my FragmentDialog in method show May 19 21:17:28 <g00s> meetoman: hacking framework May 19 21:17:57 <meetoman> g00s, what's a channel good for this? May 19 21:18:20 <g00s> i thikn #android is defunct :( you can try, or i think there is a google group May 19 21:18:22 <Jc_Dev> wviana: i'm not actually sure, i haven't played with backwards compatibility stuff yet May 19 21:21:02 <wviana> Jc_Dev: what do you advice me to show a name input dialog in older versions of android ? May 19 21:21:39 <Jc_Dev> wviana: i've only used features in 11 and higher so far, i'm not familiar with the older api's, sorry May 19 21:22:29 <wviana> Some one know a good/easy way yo make a name input dialog in older versions of android ? May 19 21:23:43 <g00s> SimonVT: here you go ! https://groups.google.com/forum/?fromgroups#!topic/adt-dev/4HuEZim9SwQ May 19 21:23:59 <g00s> from Tor : For some lint checks, lint relies on the IDE to tell it about the type hierarchy, May 19 21:24:14 <g00s> good thing i have a good memory :D May 19 21:24:40 <g00s> from what i can tell, IJ is running lint as a separate process on Analyze May 19 21:24:52 <g00s> so still, would like to know , if there are any differences May 19 21:28:39 <SimonVT> Lint integration in intellij is pretty useless May 19 21:32:56 <newlex> can an alertidalog display outside of the application? May 19 21:39:01 <norbu> nothing like a competitor willing to do what you do for less money eh? May 19 21:39:57 <newlex> heh May 19 21:40:12 <newlex> I really need to grab Keyboard Input outside of my app, is this possible at all? May 19 21:40:21 <newlex> I'm seeing not really, or lack of information May 19 21:40:34 <newlex> but I need anyone who can tell me possibly? I mean any hardware keyboard event May 19 21:41:26 <norbu> do you mean from a different app that has focus? May 19 21:42:09 <newlex> My client wants something where I send a persistent toast notification, and whne he presses F1 it will show it for longer May 19 21:42:17 <newlex> now toast notifications are regardless of app May 19 21:42:27 <newlex> so I need to capture the F1 key from his hardware keyboard May 19 21:42:48 <newlex> it doesn't seem possible nor easy right now May 19 21:44:45 <newlex> Do you have any idea, norbu? May 19 21:45:08 <norbu> newlex: nah I'm a beginner May 19 21:45:30 <Jc_Dev> if i had an address book app, what's a good way to persist the entries? i'm guessing using shared preferences would be a bad idea, so that leaves writing to a file (Serializable, XStream?) or persisting to SQLite May 19 21:45:31 <norbu> try writing to an external file and have your app read it? May 19 21:45:38 <newlex> norbu: okay May 19 21:45:53 <lasserix> Jc probably sql May 19 21:47:01 <StingRay_> Jc_Dev: yeah def what lasserix said May 19 21:47:16 <storkme> torn between doing The Right Thing(TM) or implementing a quick and dirty solution to this problem. May 19 21:47:43 <lasserix> Jc_dev the best part about doing sql is you can wrap a content provider around it and make it easier to access however May 19 21:47:50 <Jc_Dev> lasserix: is there any POCO framework or something where I don't have to write the serialization code for every property of the object i want to persist? if I have a data object, say "AddressBookEntry", i'd like to persist a list of these, can I avoid writing a ton of serialization code, manually setting up tables/columns, etc? May 19 21:48:42 <zyngawow> I was going to use Yahoo Finance as an API for market data, but certain markets like the spanish one are not supported... Do you know any other reliable source? May 19 21:49:04 <Jc_Dev> zyngawow: have you looked at Google Finance? May 19 21:49:23 <zyngawow> Jc_Dev: Google Finance API stopped on December afaik May 19 21:49:32 <Jc_Dev> doh, oh ok May 19 21:50:05 <lasserix> Jc_Dev i haven't heard of any, but its none too difficult May 19 21:51:20 <Jc_Dev> lasserix: fair enough, yeah it feels like "busy work" May 19 21:51:30 <lasserix> welcome to android development! May 19 21:51:34 <Jc_Dev> lol May 19 21:59:28 <Spec-Chum> Just a heads up guys, in case it's not common knowledge, SDK 17 breaks IDEA 12. I've found a quick fix tho: the structure of the SDK seems to have changed, so for now just copy the contents of /build-tools/17.0.0 to /platform-tools (tested on Linux). IDEA is still looking for aapt etc in /platform-tools but it's moved to a new house now May 19 22:01:15 <CocoStorm> Hey guys, I've set up a custom list view with a selector and everything but the backgrounds only change one at a time, and the backgrounds only appear once I've pressed them May 19 22:01:42 <CocoStorm> it's hard to explain, the list is just blank until i press one of the rows and the background appears May 19 22:46:01 <Jc_Dev> shoot i let SDK Manager update some stuff and now eclipse is complaining that the sdk needs a newer version of ADT, but there doesn't seem to be one available... May 19 22:46:33 <Jc_Dev> Spec-Chum: is this what you were talking about? May 19 22:47:01 <Spec-Chum> dunno about Eclipse, don't use it, but yeah, I think so May 19 22:47:03 <Jc_Dev> when compiling says can't find java.lang.Object May 19 22:47:11 <Jc_Dev> hmmm ok May 19 22:47:48 <Spec-Chum> try my fix, should work on any IDE really, you're altering the SDK May 19 22:47:59 <Jc_Dev> alrighty May 19 22:48:30 <Spec-Chum> let me know :) May 19 22:48:59 <Spec-Chum> fancy Google updating the directory structure and forgetting to tell everyone haha :/ May 19 22:49:06 <Spec-Chum> *anyone May 19 22:49:09 <Jc_Dev> heh, yeah May 19 22:49:21 <Jc_Dev> didn't seem to make a difference to me, i copied the 17.0.0 folder to that other place May 19 22:49:34 <Spec-Chum> the contents of, not the folder itself? May 19 22:49:41 <Spec-Chum> the files inside it May 19 22:49:46 <Jc_Dev> oh oops i read that wrong, ok one sec May 19 22:51:37 <Jc_Dev> hmmm still no go - the error i'm getting is: The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project Unknown Java Problem May 19 22:52:06 <Spec-Chum> ah, dunno then sorry. IDEA works when I put the filed back where they were May 19 22:52:13 <Spec-Chum> files too May 19 22:52:41 <Spec-Chum> sounds like it can't find the JDK May 19 22:52:42 <Spec-Chum> odd May 19 22:52:52 <Jc_Dev> yeah, i'm getting a few hits on google for it, i'll look into it May 19 22:53:27 <Spec-Chum> IDEA can import eclipse projects if your completely stuck May 19 22:54:28 <Jc_Dev> ok if i manually go to Install New Software in eclipse i see the new versions, they're just not coming through during Check for Updates for some reason May 19 23:00:52 <Spec-Chum> any luck Jc_Dev May 19 23:01:25 <Jc_Dev> yeah the errors and start-up warning are gone now that i told it to install the ADT stuff (which it detected was already installed and turned into an update) May 19 23:01:45 <Jc_Dev> i just ran it to my phone and my app is crashing though, i'm looking into it May 19 23:01:50 <Jc_Dev> at least it compiles now May 19 23:02:00 <Spec-Chum> I think that'll be your error lol May 19 23:02:23 <Jc_Dev> it won't run on my phone? May 19 23:02:52 <Spec-Chum> a coding error I meant; do you mean it worked before? May 19 23:02:56 <Jc_Dev> yeah May 19 23:04:33 <Spec-Chum> oh May 19 23:05:46 <Jc_Dev> i think it's having trouble with my referenced jar, it's saying NoClassDefFoundError in the place where i use a third-party method May 19 23:06:12 <Jc_Dev> it's showing up as a referenced library though, i'll try re-adding it i guess May 19 23:07:01 <Spec-Chum> I feel sorry for anyone that has an imminent deadline and updated the SDK May 19 23:08:33 <Jc_Dev> heh, yeah, i know what you mean May 19 23:21:41 <Jc_Dev> where in the apk is the referenced jar supposed to go, i'm pretty sure it's not being included in the apk May 19 23:23:36 <Jc_Dev> ok geez i got it working May 19 23:24:11 <Jc_Dev> after re-importing it to libs, i had to go and manually checkbox the jar in the "Order and Export" section of Configure Build Paths May 19 23:24:27 <Jc_Dev> (which was the first thing I had tried, but it didn't work until I re-imported it) May 19 23:24:35 <Jc_Dev> phew, ok, upwards and onwards May 19 23:33:14 <newlex> is it possible to grab a power button event from outside an application? May 19 23:54:43 <CocoStorm> Hey pals May 19 23:55:05 <CocoStorm> I'm using a webView so that a webpage displays inside my app, but if i click on a link within the webpage it just opens a browser anyway May 20 00:11:29 <onto> Hi! Can anyone recommend any recent books for android development? I am currently reading "Android Essentials" but it seems to be outdated. May 20 00:11:50 <g00s> try Reto or Big Nerd Ranch May 20 00:12:11 <JakeWharton> books, by their nature, will always be dated May 20 00:12:33 <onto> JakeWharton: true, perhaps I could have worded it better. May 20 00:30:04 <nomo> Hey guys, Could you please tell how to set placeholder's text size? May 20 00:30:27 <nomo> in EditText May 20 00:33:17 <BustyLoli-Chan> placeholder? May 20 00:34:06 <Mavrik> BustyLoli-Chan, hint. May 20 00:34:11 <nomo> sorry hint May 20 00:34:28 <nomo> hint's text size May 20 00:34:47 <WhereIsMySpoon> bustyloli? doesnt that kinda defeat the point of loli? May 20 00:36:18 <f2prateek> nomo: it uses textSize May 20 00:36:32 <nomo> I see May 20 00:37:28 <nomo> but then if I set it via textSize , should I set different for different screen sizes ? Say for hdpi 14sp, and for xhdpi or xxhpdi 18sp ? May 20 00:38:00 <funkbox> 14 sp for everything May 20 00:38:23 <nomo> Ok, thank you May 20 00:42:05 <parco> hey guys, anyone have a sec i need some beta testing? May 20 00:42:24 <nomo> sure May 20 00:42:29 <g00s> parco: you can put your app on the beta channel in play now :) May 20 00:42:40 <g00s> ( i haven't tried it yet though) May 20 00:42:41 <parco> beta channel! May 20 00:42:52 <g00s> you have alpha / beta May 20 00:42:54 <parco> Ohh with the google groups? May 20 00:42:56 <shmooz> is there an alpha channel too ? May 20 00:43:01 <g00s> yeah May 20 00:43:25 <parco> Yea i saw that, didnt know what it was May 20 00:43:37 <parco> nomo: An error occurred while automatically activating bundle org.eclipse.core.resources May 20 00:43:38 <p_l> parco: watch the O/O keynote May 20 00:43:42 <parco> lol woops May 20 00:43:43 <p_l> *I/O May 20 00:44:09 <parco> https://play.google.com/store/apps/details?id=com.demarco.rotaryphone May 20 00:44:27 <g00s> nostalgic May 20 00:44:47 <parco> :) May 20 00:45:47 <g00s> parco: but hey, you went through all the trouble with the skeuomorph on the dial - why not the slider O.o May 20 00:46:20 <shmooz> I'll use that when my granpa needs to make a call ;) May 20 00:46:37 <kakazza> JakeWharton: Do you generate the github pages for the square libraries, do you use a template or write them yourself? May 20 00:46:46 <parco> g00s, for the color change? May 20 00:46:48 <JakeWharton> i write them May 20 00:46:58 <parco> shmooz: thats the idea :) May 20 00:47:04 <kakazza> madness May 20 00:47:26 <nomo> parco: works great on gingerbread 2.3.3 Panthec May 20 00:47:33 <nomo> parco: will test with ics now May 20 00:47:39 <parco> nomo, awesome. Thank you May 20 00:47:55 <kakazza> Another question, JakeWharton. I did not see a changelog for dagger. Anything I should be aware of when upgrading from 0.9.1 to 1.0.0? May 20 00:48:09 <JakeWharton> kakazza: entryPoints --> injects May 20 00:48:10 <g00s> the knife is sharper May 20 00:48:14 <JakeWharton> other than that, no May 20 00:48:40 <kakazza> Thanks. May 20 00:49:15 <WhereIsMySpoon> Im still trying to export a release version of my app but when I get to the final stage it says build tools are not installed. I know 22 split build tools and I did install them, it says I have on android sdk manager =/ and my eclipse adt plugin is ver 22 also. May 20 00:50:52 <g00s> WhereIsMySpoon: doesn't solve your exact problem, but i recommend doing releases from the command line anyhow May 20 00:51:17 <WhereIsMySpoon> g00s: i see, i just wanted to do it through eclipse as it has a 4-5 step wizard for it May 20 00:51:23 <WhereIsMySpoon> g00s: how do i do the same on cmd line? May 20 00:51:31 <g00s> i've never seen the wizard May 20 00:51:49 <WhereIsMySpoon> just right click project -> export May 20 00:51:52 <shmooz> parco: you should expand your Jarvis app to become a full assistant for dialing and emailing and whatnot too May 20 00:52:45 <g00s> WhereIsMySpoon: see 'update project' http://developer.android.com/tools/projects/projects-cmdline.html May 20 00:52:51 <parco> shmooz: ill be rebuilding it from the ground up this next week to support just that May 20 00:53:28 <shmooz> the best I had found was speaktoid assistant but the new google one is now good too I guess May 20 00:53:30 <g00s> i never used export either, sorry May 20 00:53:51 <shmooz> its good to have assistants compete so they get better faster :) May 20 00:53:53 <JakeWharton> releases from the IDE is never a good idea May 20 00:55:06 <nomo> parco: 4.0.4 check Galaxy S3 May 20 00:55:14 <pfn> it's a terrible idea May 20 00:55:30 <parco> nomo: hows it working on that? May 20 00:55:46 <nomo> smooth, no problems May 20 00:55:51 <parco> .. i've only tested on a Bionic and original droid May 20 00:55:58 <parco> Sweet May 20 00:56:23 <WhereIsMySpoon> g00s: so if i do android update project --path ./project --name somename --target 1 that will make a release version? May 20 00:56:39 <WhereIsMySpoon> also for some reason android list targets only lists 17 May 20 00:56:42 <g00s> the build files created have release and debug targets, yes May 20 00:56:43 <WhereIsMySpoon> rather than 22 May 20 00:56:56 <g00s> use the target you are compiling against May 20 00:57:05 <g00s> not 1 :/ May 20 00:57:13 <WhereIsMySpoon> there is only 1 target with android list targets May 20 00:57:20 <g00s> oh, yeah sorry May 20 00:57:20 <WhereIsMySpoon> which is 17, id 1 May 20 00:57:23 <g00s> yeah May 20 00:57:27 <WhereIsMySpoon> why, i updated to 22 May 20 00:57:31 <g00s> forgot that level of indirection May 20 00:57:32 <WhereIsMySpoon> with sdk manager May 20 00:57:57 <g00s> there is no API 22 May 20 00:58:02 <g00s> O.o May 20 00:58:34 <WhereIsMySpoon> er May 20 00:58:50 <WhereIsMySpoon> oj sorry, it was adt plguni that is ver 22 May 20 00:58:51 <WhereIsMySpoon> <_> May 20 01:00:28 <parco> hey nomo, thanks again May 20 01:02:16 <nomo> no problem May 20 01:04:03 <ron_frown> iuyiutuytfuytfu] May 20 01:05:38 <capella> ron_frow ns cat is sitting on his keyboard May 20 01:14:27 <g00s> "Avoid using a single checkbox to turn an option off or on. Instead, use an on/off switch." … glad to see google follow their own advice O.O May 20 01:14:50 <g00s> mail / calendar use checkbox for server details May 20 01:16:42 <wabz> and pretty much everything in the developer options settings? May 20 01:16:58 <sonOfRa> well, i guess dev options don't need UX May 20 01:18:45 <WhereIsMySpoon> g00s: well all that cmd line stuff worked, wonder why eclipse says theres no build stuff installed...thanks anyway May 20 01:19:06 <g00s> ;) May 20 01:24:18 <g00s> ron_frown: check this out http://zedboard.org/ May 20 01:28:05 <g00s> their Android port is 2.3 though May 20 01:34:25 <lasserix> for glsl es 2.0 is it better to use in or attribute for say position in the vertex shader? May 20 01:35:06 <lasserix> nm May 20 01:42:56 <Jc_Dev> parco: works on nexus 4 May 20 01:45:50 <CocoStorm> If I I have to a sort of mini app as a pre interview test, do I have to comment my code? May 20 01:45:58 <CocoStorm> *make May 20 01:46:11 <Leeds> of course May 20 01:46:12 <g00s> .. May 20 01:46:21 <CocoStorm> oh May 20 01:46:24 <CocoStorm> lolk May 20 01:46:25 <CocoStorm> thanks May 20 01:46:36 <Leeds> you *always* have to comment your code May 20 01:47:02 <Leeds> doesn't mean you always *will*, but you always should May 20 01:48:15 <Techdeck> Mavrik, are you there? May 20 01:48:29 <CocoStorm> The task was to create an app that parses the XML and displays each 'tag' as a row that displays the title and some other stuff as rows and when clicked it displays the website associated with that tag May 20 01:48:40 <CocoStorm> I've done it except they asked to do have an icon for each row May 20 01:48:56 <CocoStorm> which I didn't do May 20 01:49:07 <CocoStorm> I don't have a custom listView basically May 20 01:49:28 <CocoStorm> just a standard listView May 20 01:50:43 <Jc_Dev> parco you there? May 20 01:51:15 <g00s> CocoStorm: hopefully your interviewers aren't here XD XD May 20 01:51:54 <CocoStorm> I hope not :P May 20 01:52:12 <JakeWharton> a smart interviewer wouldn't expect you to know everything May 20 01:52:26 <Jc_Dev> parco: it's minor, but i noticed you can dial backwards, which is kind of goofy, but in theory it should make you drag somewhat close to the number you started on? May 20 01:52:28 <CocoStorm> but I wouldn't mind, even if I don't get the job it was a fun challenge :D May 20 01:53:04 <pragma-> just tell your interviewer that you plan to delegate everything to the interns May 20 01:53:11 <pragma-> you'll probably get a promotion to management and a pay raise May 20 01:53:35 <lasserix> sounds like a good way to answer any question you can't immediatly answer ;p May 20 01:53:49 <CocoStorm> lol :P May 20 01:54:18 <CocoStorm> I did tell them that I wouldn't mind being an intern if anything May 20 01:55:27 <g00s> thats cool, they wouldn't mind not paying May 20 01:55:45 <CocoStorm> g00s, yeah true lol May 20 01:56:02 <pragma-> except for the liabilities May 20 01:56:05 <CocoStorm> Of course I'd rather secure a job but I felt stupid standing next to the guys with 10 years experience May 20 01:56:33 <pragma-> i think they'd mind the broken insecure code more than they'd mind not paying May 20 01:57:01 <pragma-> not to mention code theft May 20 01:57:13 <Jc_Dev> where i work most people get paid to write broken insecure code May 20 01:57:32 <CocoStorm> Jc_Dev, I want to work where you work May 20 01:57:36 <Jc_Dev> lol May 20 01:57:39 <pragma-> or being sued because their intern copied some opensource code without adhering to the license May 20 01:58:02 <CocoStorm> pragma-, that happens?? May 20 01:58:09 <pragma-> oh yeah. May 20 01:58:35 <pragma-> or because the intern torrented winzip May 20 01:58:46 <CocoStorm> torrented winzip hahah May 20 01:59:18 <g00s> or lost his company laptop with a ton of test account data May 20 01:59:30 <Mavrik> well May 20 01:59:44 <Mavrik> if company doesn't enforce FDE on all their devices they're asking for it May 20 01:59:44 <CocoStorm> or forgot to add sugar in the tea May 20 01:59:46 <g00s> which of course, was just copied from prod :) May 20 01:59:48 <Mavrik> especially for interns :) May 20 02:00:10 <pragma-> sugar in the tea? you're fired. May 20 02:00:17 <pragma-> real programmers drink it black May 20 02:00:24 <Mavrik> yeah May 20 02:00:33 <Mavrik> I always offer coffee to people on interviews. May 20 02:00:57 <Mavrik> if they refuse or want sugar they're just escorted to the elevator, no real engineer works wihtout sugarless coffee ;) May 20 02:01:44 <CocoStorm> But I'm in England everyone has sugar and milk in their tea May 20 02:01:56 <Mavrik> *grumbl* gonna have to reimplement DiskLruCache for my app May 20 02:02:00 <pragma-> blasphemy to good english black tea May 20 02:02:17 <Mavrik> I thought that was a hangable offense in england. May 20 02:02:29 <CocoStorm> lol May 20 02:02:39 <pragma-> I say! May 20 02:11:01 <Jc_Dev> i grabbed the android samples, now i'd like to open one of them in eclipse so i have a view like i do in the project i created (where you get a listing under Package Manager), is that possible? May 20 02:11:58 <Jc_Dev> so far all i can do is open individual files May 20 02:12:49 <lasserix> i think you can import from the /sdk folder May 20 02:13:07 <Jc_Dev> so i make a new project, and then import into it from there? May 20 02:13:41 <lasserix> think you can do that just by going file->import May 20 02:15:39 <Jc_Dev> file->import explicitly says it imports into an existing project - i found a stackoverflow on it though, apparently you go New Project -> Other -> Android -> Android Sample Project May 20 02:15:48 <lasserix> ahh cool May 20 02:16:11 <Jc_Dev> oh wow, and then you pick from the list of sample projects that it found, this is slick, the trick is finding the menu option hehe May 20 02:43:29 <g00s> IJ question : any way to get the Structure pane to present things in the order they are defined ? May 20 02:43:52 <g00s> mine seems to be all methods then all fields **** ENDING LOGGING AT Mon May 20 02:59:59 2013