**** BEGIN LOGGING AT Mon May 20 02:59:59 2013 May 20 03:00:10 O.O in Strategy Analytics is correct, Samsung is taking 95% of global profits on Android May 20 03:19:34 hi there, I want a imageview's right edge to exceed it's container relativelayout's edge for tens of dp, can I do that? May 20 03:20:39 i dont think so May 20 03:20:50 did you want to expand its touch area ? May 20 03:22:31 no May 20 03:22:38 just for show May 20 03:45:10 So I just did a make Settings in JB ics-mr1 source, and it installs fine with adb but when it runs I get a bunch of nullpointerexceptions - anyone know the best way to diagnose the issue? I haven't modified the source at all except fo rremoving SharedUID from the manifest May 20 03:50:40 JonMarkGo what are you installing on May 20 03:50:48 Google Glass May 20 03:51:06 dont know wht to tell you May 20 03:52:38 ron_frown: https://gist.github.com/jonmarkgo/c5ba7a1102c79cb0d380 There's the error log if it helps at all May 20 04:00:08 ugh; if i have a TextView under a Spinner, how do i get the left margins of the Text to align ? May 20 04:00:24 both wrap_content, no margins May 20 04:01:03 the spinner is slightly offset May 20 04:45:09 migrating from eclipse to android studio...do I need to keep project.properties file? May 20 04:45:13 i think that's an eclipse file... May 20 04:47:32 project.properties is used for the ant build as well May 20 04:47:51 pfn: have you played around with Studio yet ? May 20 04:47:55 no May 20 04:48:32 me neither; just getting acquainted with the plain ide May 20 04:48:58 so, where's the comparo of AS vs. ADT? May 20 04:49:12 the one you're about to write :) May 20 04:50:06 what if it uses the new gradle build system? Still need it? May 20 04:50:12 well, I see that the d.android page says it's early preview, what's the roadmap for AS vs ADT then, will ADT be phased out? are they kept in sync? May 20 04:50:14 I exported the gradle file from eclipse May 20 04:50:15 it would be nice having a 3 yay compare : ADT / AS / CE + Androdi Plugin May 20 04:50:29 damccull, no idea, depends on how gradle loads up the stuff May 20 04:50:36 ok pfn thanks May 20 04:50:43 they didn't say its being phased out May 20 04:50:49 project.properties is easy to recreate May 20 04:50:57 just delete it, if it fails, android update project to recreate it May 20 04:50:58 sounds like they are going in parallel, but focus now is on AS to get it mature May 20 04:50:59 so if i delete it, no problem eh? May 20 04:51:18 damccull, yes May 20 04:51:22 thanks May 20 04:51:35 damccull: maybe try out AS first so you can go back to eclipse as a fall back :| May 20 04:51:37 project.properties is primarily used to manage android library projects and set the sdk level of your project, for builds outside of eclipse May 20 04:51:51 eclipse doesn't even really use it May 20 04:51:53 hmm i see May 20 04:53:31 to use abs, is it recommended to use one of the zips or clone the git? May 20 04:55:26 but you're not going to do release builds in eclipse or IJ, so keep that file :P May 20 04:55:50 right damccull :P ? May 20 04:55:54 g00s: what? May 20 04:55:55 right ? May 20 04:58:51 ugh, sdklib doesn't know how to find aapt and family correctly anymore :( May 20 05:01:31 those paths changed; just put ymlinks May 20 05:01:34 heh May 20 05:01:37 symlinks :) May 20 05:02:04 intellij CE had the same issue May 20 05:02:20 so does intellij have the nifty xml editors like eclipse or is it a manual file edit? if the second, are there any intellisense-style assists? May 20 05:03:00 its xml with intellisense May 20 05:03:08 cool May 20 05:03:36 i suppose that'll force me to actually learn how the manifest file works ;D May 20 05:03:44 :) May 20 05:04:00 hey, so my layout requires a two column table like layout, is the standard way to do this with a TableLayout, with TableRow's, with LinearLayouts in there? that seems excessive and I remember the docs saying you should keep your layout as "flat" as possible... May 20 05:04:02 oh, i dont know anything about AS - jusr using plain CE May 20 05:06:19 wow, "hangouts" is confusing. this race to the bottom with the sliding drawer/menu concerns me May 20 05:25:27 heh May 20 05:27:03 make your whole app sliding drawers in sliding drawers ... May 20 05:27:21 InceptionDrawer May 20 05:27:33 hehe May 20 05:27:42 Drawerception May 20 05:27:45 and you have to find the what did they call it? totem May 20 05:44:21 anyone has an idea of how I can make a notification that does nothing? all I want to do is that when the user clicks te notification, it disappears May 20 05:45:07 um May 20 05:45:12 that should be easy May 20 05:45:28 don't supply an intent? set auto-dismiss or whatever its called May 20 05:45:57 if you supply a null Intent and it crashes, just supply an Intent() May 20 05:46:00 with nothing May 20 05:46:03 ahhh May 20 05:46:11 yes, thanks! May 20 05:46:17 i used to be able to reboot 2.2 by supplying a null intent or something May 20 05:51:24 damccull: zip and git are the same thing May 20 05:51:59 JakeWharton: thanks. Trying to set it up in android studio. Had some troubles. Ended up having to add the actionbarshherlock folder instead of library folder May 20 05:52:09 and add as a project dependency instead of library :D May 20 05:53:29 There is no library folder anymore May 20 05:54:47 But yeah, you did it correctly May 20 05:56:06 hi. i have res/layout and res/layout-xlarge whenever i make changes to activity_main.xml it affects both activity main in layout and layout xlarge. however this same does not happen with other activities. how to solve this? help please? May 20 05:56:43 oh...well my git repo still has one. DELETED! May 20 05:58:14 damccull: if you did a pull then it may have hung around with untracked files generated by tools May 20 06:00:31 JakeWharton: how best to rid myself of them and get a pure copy? May 20 06:01:18 git clean -dfx May 20 06:01:31 Or just re-clone/download May 20 06:02:54 thanks JakeWharton May 20 06:03:12 i don't like to delete and reclone, then i have to set up my projects again. I always seem to do soemthing different lol May 20 06:03:26 hey when you're declaring a custom view in your xml, is there a shortcut instead of doing the whole package, ie. com.examples.testing.SquareButton ? May 20 06:06:18 erdos you could probably add your namespace to the xml root May 20 06:06:32 JakeWharton: uh oh...now it's saying it can't find the sherlock themes... :( May 20 06:07:17 maybe someone has a clue. i want to make a slideshow with images from my server. I have no better solution than do a slideshow with jquery and show it in a webview. Anyone with a better idea here? May 20 06:07:50 damcull: how would i go about that? May 20 06:08:03 erdos: like the android namespace is declared. May 20 06:08:07 google xml namespace May 20 06:08:50 okie dokie, thanks :) May 20 06:10:05 not really May 20 06:10:12 using a good IDE helps :P May 20 06:11:20 JakeWharton: nm i fixed that May 20 06:15:06 hi. i have res/layout and res/layout-xlarge whenever i make changes to activity_main.xml it affects both activity main in layout and layout xlarge. however this same does not happen with other activities. how to solve this? help please? May 20 06:22:47 hello? May 20 06:27:34 hi all. quick question: is it possible to create an app that observes if other apps get started? if so: is it possible to prevent that other app from starting? that would make an app blocker, so to speak :) May 20 06:29:42 can someone take a look at my layout and tell me why there's extra space to the right in the last element in the LinearLayout? May 20 06:29:43 http://pastebin.com/Vuzy5p1N May 20 06:29:56 http://dirkdirk.com/layout.png May 20 06:30:46 i thought if it's set up this way (with the TableLayout's width as wrap_content) the table width should only take up as much space as its children need? May 20 06:31:00 then the two TextViews will fill the rest of the screen May 20 06:39:10 Is it correct to say that using Handlers to communicate between the UI Thread and a service is like using a publish/subscribe pattern? May 20 06:39:14 erdos: i think it's because your buttons have width at wrap_content May 20 06:39:48 change it to 0dp and set weight to 1 it will fill the rows May 20 06:40:29 ah ok i'll try this May 20 06:40:30 1 sec May 20 06:41:59 hmmm, nah that's not what i want because that stretches the width of the button May 20 06:42:17 i want the width of the table to be 2x the size of the button at it's smallest May 20 06:42:21 .. if that makes sense May 20 06:43:14 and if i use the weight thing in this case i don't know how the width will be set, since the parent width is wrap_content May 20 06:43:25 can you make an image of what you are trying to achieve ? May 20 06:43:39 sure May 20 06:43:44 Is it correct to say that using Handlers to communicate between the UI Thread and a service is like using a publish/subscribe pattern? May 20 06:46:27 hi. i have res/layout and res/layout-xlarge whenever i make changes to activity_main.xml it affects both activity main in layout and layout xlarge. however this same does not happen with other activities. how to solve this? help please? May 20 06:47:56 nomo: here's a picture of a more simple version http://dirkdirk.com/layout2.png , and its corresponding xml: http://pastebin.com/6HJQPUtb May 20 06:48:18 see how the third columns width is defined by how much space the button needs? May 20 06:48:46 if i made the text of the button longer, the other two Text's widths would squeeze in May 20 06:49:16 Why is it so hard to find common design patterns used when developing for Android ? May 20 06:49:30 I feel like I've used a bunch of them but cant really put my finger on the actual names and such May 20 06:51:59 nomo: u get me? May 20 06:53:37 uh, that xml really makes no sense May 20 06:53:57 really? why May 20 06:55:16 i'm going off what they're talking about here: http://developer.android.com/guide/topics/ui/layout/linear.html May 20 06:55:17 linear layout is top level… so thy does it have parameters that work only as a child of relativelayout? May 20 06:55:29 and it has no orientation May 20 06:56:08 which parameters? May 20 06:56:59 and i thought you can omit the orientation if you want horizontal? that it's default May 20 06:57:12 iirc, lint is going to complain May 20 06:57:30 and alignparent stuff really works only inside a relativelayout, do you have that? May 20 06:57:50 oh right, that's just cruft May 20 06:57:54 ignore that, it's gone May 20 06:57:56 also, what exactly are you trying to achieve, your pictures aren't really clear. Have textviews with same widths? May 20 06:58:07 i broke it...why does my gnex not even show up in my device manager? not even as an unknown device May 20 06:59:26 ok, 3 views, the width of one defined as wrap_content, ie only as wide as it needs to be, the other two views to take up the rest of the space, evenly divided between the two May 20 06:59:36 erdos, try this: http://pastebin.com/JHZBWLDs May 20 06:59:44 it works fine as that second example, but the first example where im using a table i'm having problems May 20 07:00:26 oh sweet! i think that's it, 1 sec im just going to look at the xml May 20 07:00:54 ah May 20 07:01:10 ohhhh you put in another LinearLayout May 20 07:01:19 the real advice for those kind of layouts it seems is "write your own viewgroup, it's way easier than hacking together a monstrosity" :) May 20 07:02:09 custom viewgroup sounds tricky, but i will look into it May 20 07:02:10 erdos just remove the weight from tablelayout and give width wrap content May 20 07:02:19 Which design pattern does Androids Handler follow ? May 20 07:02:25 no need for linearlayout May 20 07:02:33 i just was trying things May 20 07:02:45 oh... i didn't realise i'd put a width on it :P May 20 07:02:50 thanks nomo! May 20 07:02:53 thanks Mavrik! May 20 07:03:11 erdos, it is tricky the first time yeah May 20 07:03:23 basically you need to override measure and layout May 20 07:03:55 but in the long run it's way faster and easier when you figure out how measuring views work, since you don't need to hack together nested views to get something you can easly calculate yourself once :) May 20 07:04:21 so much reading to do! May 20 07:13:54 I'm making an app that let you download pdf. How do I delete the pdf after the user opens it? Or there is a temp folder? May 20 07:14:26 I only want the file to be a temporary time in the user's device May 20 07:14:46 thats not really an easily solved problem May 20 07:16:20 I was thinking in deleting the file on the onResume method, so when the user returns to the app, the file is deleted May 20 07:17:23 Does anybody know what I am doing wrong when I get "Activity does not have parent name specified" on tablet, but not on phone androids? May 20 07:17:25 or maybe using startActivityForResult May 20 07:20:27 what does an abstract method look like in a class diagram? May 20 07:20:36 hold on May 20 07:20:54 What is wrong when my app crashes when I hit the top right button, but not the back button at the bottom? May 20 07:21:30 check exception May 20 07:22:44 anbyody? May 20 07:23:20 Wuppy21_: what is the exception? May 20 07:23:38 IllegalArgumentException May 20 07:23:52 Activity mine does not h ave a parent activity name specified May 20 07:24:24 Did you forget to add the android.support.PARENT_ACITITY element in your manifest May 20 07:24:38 but I have that there May 20 07:25:01 hmm May 20 07:25:21 and it only happens with the top right button on tablets, everything lelse works just fine May 20 07:26:30 sorry, i'm at a loss - it's beyond my limited experience, i haven't played with developing for tablets yet May 20 07:27:03 there is a property called android:parentActivityName that you can put on activities May 20 07:27:15 proof: http://pastebin.com/P1YMLG5s May 20 07:27:59 hi. i have res/layout and res/layout-xlarge whenever i make changes to activity_main.xml it affects both activity main in layout and layout xlarge. however this same does not happen with other activities. how to solve this? help please? May 20 07:28:56 Wuppy21_: shouldn't parentActivityName match the PARENT_ACTIVITY value? May 20 07:30:02 try setting android:value to com.wuppy.minecraftmod.mods.Mods May 20 07:30:17 just a guess May 20 07:30:52 Abhijit: I've noticed it only does that if they're named the exact same name May 20 07:31:20 at least, under res/drawables May 20 07:31:26 I tried, but it's still the same error May 20 07:32:04 Jc_Dev, obviously they will be exact same name. the java code is same we are just porting the layout for lager screen. May 20 07:33:21 Wuppy21_: maybe they're both supposed to be MainMenu? i'm not sure what the real parent activity is in this case... May 20 07:33:29 I tried May 20 07:33:39 fair enough May 20 07:33:58 Wuppy21_: what is the parent activity called? May 20 07:45:10 hey guys May 20 07:45:21 is there a way to open activity to setup proxy for currently connected wifi network? May 20 07:45:53 question: anyone working on a gradle plugin for deploy to google play as alpha/beta already? May 20 07:46:34 zhulikas: hmm … doubt it; if you look at the settings app, you'll probably see the pref framework start that with an intent. you could grab the target class for that - but its kinda iffy / risky May 20 07:46:50 if they change the class name, you're SOL May 20 07:47:13 so its not really a public contract - but, maybe i'm wrong May 20 07:47:39 pboos: i would expect google to be working on that :) May 20 07:48:55 WOOO it works May 20 07:50:03 g00s: well I wonder if they will write such a plugin. Kind of have the feeling that they won't... May 20 07:51:11 pboos: i guess you'll have to wait until the next I/O :D May 20 07:51:34 g00s: that would suck :) want to use beta/alpha nicely already :) May 20 07:52:00 pboos: ask for a feature request May 20 07:52:02 g00s: and why wait? i can just do it myself. not too difficult. would just take some hours.. (need to learn how to write plugins for gradle) May 20 07:52:23 Why do things like a ViewPager need an adapter. What is the purpose of the Adapter and why dont you simply supply the ViewPager itself with the fragments to be shown ? May 20 07:52:35 pboos: do you mean build configuration, or actually uploading that config to play like auto-deploy ? May 20 07:56:25 g00s: build-config is easy. just configure it to sign it correctly. i am talking about auto-deploy :) since they have the alpha apk upload now :) May 20 07:56:45 oh yeah, no idea how that could be done May 20 07:56:49 g00s: i hate manual tasks. so i want my build server to take care of everything :) maybe even production release. May 20 07:57:07 sounds cool :) May 20 07:57:08 g00s: i have an idea how. just wondered, if anyone is working on that already. guessing like I can't be the only one that wants that. May 20 08:00:32 hey where can i see the definition of what the borderlessButtonStyle is actually doing, i found it here https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/res/res/values/attrs.xml but it's not telling me anything May 20 08:01:01 In the themes May 20 08:02:05 SimonVT: u mean here https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/res/res/values/themes.xml ? May 20 08:03:09 Yes, then just follow it to a style May 20 08:03:13 From whatever theme you're using May 20 08:03:36 oh right cool thanks! May 20 08:06:33 is it ok to do SQLite stuff directly in an activity, or is there a common way of abstracting the data access part away from the activity - i looked at content providers but that seems to be overkill if i'm not planning on sharing the data outside the app... May 20 08:09:14 Jc_Dev: heh, its a tricky question. if your data model is really simple, and your content provider can be implemented in less than 100 lines, use that and set exported:false so you can use the stock helpers like CursorLoader May 20 08:09:52 if you get past the point of a simple CP, which is pretty easy, you can look at canadiancow 's code May 20 08:10:03 hold on May 20 08:11:26 https://code.google.com/p/platform-features-talk-io-2013/source/checkout May 20 08:11:48 see their cursor stuff, and watch his video when its out (from this years i/o) May 20 08:12:18 great thanks - i see he has his slides.pdf in there, i'll check it out May 20 08:13:16 the tricky part with dealing with db or any file i/o in android, is that to make sure it happens, it has to happen in a service May 20 08:13:44 or more precisely, the process has to be marked as higher priority because a service is running May 20 08:13:46 service intent? May 20 08:13:49 what you suggested makes sense, a CursorLoader to grab a Cursor and then putting it in a CursorAdapter to power a ListFragment is roughly what i'm leaning towards May 20 08:14:10 using loaders is easy to query data May 20 08:14:25 pretty hassle free. saving is a different matter May 20 08:14:48 here is a shitty little class i am using now to ensure updates or handled May 20 08:16:08 man, a LOT of android questions have been asked and answered on stackoverflow, it's pretty good to be able to mash the keyboard with a few descriptive words and get an answer straight away! May 20 08:16:19 Jc_Dev: http://pastebin.com/f4KMhSUp May 20 08:17:00 that is meant for use with a provider May 20 08:17:06 its very simple, expand as you see fit May 20 08:17:14 notice i didn't even have a delete :) May 20 08:17:20 i like it May 20 08:17:41 COntentProviderOperationService.insert(context, uri. values) for example May 20 08:18:16 so, this of course would be ill suited for high performance ; bundles, garbage, etc. but for the occasional write its fine May 20 08:18:21 so it's not good enough to make the CP call for insert from a button click on an Add Form? there's edge cases where it might not go through? May 20 08:18:48 heh, well, its a metter of probability May 20 08:19:09 many people use preference editor.commit() in their activity May 20 08:19:27 that just spins up a thread to serialize xml to flash May 20 08:19:37 ok, back to your q May 20 08:19:50 you can often get away writing a little data to flash on the main thread May 20 08:19:52 i don't think i want to store my data in the preference system, i'd have to serialize to a string May 20 08:20:07 but its not considered good style May 20 08:20:18 hence the thread - i/o off the main thread May 20 08:20:38 oh i would do any DB work in the background May 20 08:20:50 *wouldn't May 20 08:20:51 yeah, thats why i used IntentService May 20 08:21:12 no, you should technically do i/o on non-ui thread May 20 08:21:23 it could take anywhere between 10-500ms May 20 08:21:24 yeah i'm agreeing, just typoing May 20 08:22:05 this is just where android is a major pita; its such a common task, but kinda inconvenient May 20 08:22:23 anyhow, the nice thing about the provider - if you do it right, is that it sends out a urinotification May 20 08:22:33 so if your UI is watching anything, it will get updated May 20 08:23:33 so "Add New Item" form adds via CP, "Main Screen" automatically includes it without manual code to force it to update... May 20 08:24:18 yeah, there should be no force update May 20 08:24:45 IntentService allows the update to occur in a non-cancellable way - I was planning on just using an AsyncTask for the updates, but it sounds like there's a probability of it getting interrupted? May 20 08:24:52 your cp will say "i just added a new thing in x/y/x" and your loader, which is watching x/y/x will auto requery May 20 08:25:14 excellent, basically .NET's ObservableCollection May 20 08:25:18 Jc_Dev: there is the *small* probability your process gets destroyed May 20 08:25:46 fair enough May 20 08:25:46 if you do this in a bg thread, then press home, and under memory stress android nukes your process you lost your write May 20 08:25:59 again, small probablility May 20 08:26:13 hello! since I've updated the ADT I can't make my app run on the device. It compiles fine, but when it's been executed it crashes every time it tries to access an external jar lib, which is in the "libs" folder of one of my linked projects - any idea? May 20 08:26:22 if you do some archaeology through old aosp code, you will see people really struggled with this; May 20 08:26:27 unless its Important. then it happens most of the time May 20 08:26:29 quite a few different ways to handle it May 20 08:26:33 elegos: you're in luck, i just went through this May 20 08:26:35 SpeedEvil: :D May 20 08:26:47 Jc_Dev: how did you solve the problem? May 20 08:27:10 it says it can't find the class 'xxx' referenced from method 'abc' May 20 08:27:26 Jc_Dev: also, you could do your write in AsyncTask, onPreExecute() start a EmptyService and onPostExecute stop the service May 20 08:27:31 a few different ways May 20 08:28:23 but remember service starts don't nest, so hehe, caveat emptor there May 20 08:28:50 i wish they released "Volley for databases" May 20 08:29:00 dealing with providers in android is the suck May 20 08:29:19 elegos: i don't know if it's the best way to fix it, but it worked for me: May 20 08:29:19 1. Backup the jars somewhere. May 20 08:29:19 2. Delete them from libs (this won't succeed because it is apparently confused, but I tried anyways). May 20 08:29:19 3. Delete them from file system's libs folder. Press F5 or refresh in the UI. May 20 08:29:20 4. Re-import them from right-click libs -> Import. May 20 08:29:20 5. Make sure they are checkboxed under the Build Path -> Order and Export menu. May 20 08:31:16 g00s: good to know, i think i'm going to start out with an AsyncTask for now since the udpates are small and infrequent, but i'm going to keep that pastebin handy, i can see that being useful May 20 08:32:26 if anyone thinks my class sucks i would like to know; this all presume CP. also the CP has to explicitly handle transactions on applyBatch. May 20 08:32:51 Hi! Is there difference in resulting apk size if I use lib jar or lib sources? May 20 08:33:24 its more of a skeleton of an idea than anything May 20 08:33:40 inspired by Calendar AsyncQueryService May 20 08:34:07 Udmurt: i'd guess they'd be very close, try it and see! referencing jar is really just more of a convenience May 20 08:34:27 g00s: from what I see it looks like a good pattern May 20 08:34:35 ;) May 20 08:34:51 we're all waiting for jasta to show us something too :) May 20 08:35:03 fuuuuuuuuuuuuuuuuuuuuuuuuu didn't work May 20 08:35:45 elegos: did you already update ADT? i had to force it, as it wouldn't update via the Check for Updates technique May 20 08:36:15 Jc_Dev: I updated from the SDK manager and then updated in eclipse (it asked me to) May 20 08:38:03 it takes two rounsd of updates in SDK manager May 20 08:38:08 at least it did for me May 20 08:39:14 Jc_Dev: just checked: all updated for me May 20 08:40:00 elegos: to verify you are seeing the same problem as me, take a look at your apk - i bet it will be smaller than expected because it's not including the jars in it - some combination of re-importing the jars into the project seemed to fix it for me May 20 08:40:05 exported eclipse project to gradle format. imported in android studio. build. Gradle: Project 'null' not found in root project 'Digitilt Reader'. May 20 08:40:37 Jc_Dev: I've already re-imported the libs :S May 20 08:40:42 Jc_Dev: this is the full log: http://pastebin.com/XZ4zXYWd May 20 08:41:07 elegos: are they checkboxed in Order and Export? May 20 08:41:15 yep May 20 08:41:23 oh also i remembered one more thing May 20 08:41:36 i had to explicitly add one of them from the Libraries tab May 20 08:42:07 Jc_Dev: http://pbrd.co/YU7Efz & http://pbrd.co/YU7C7r May 20 08:42:14 maybe try removing and re-adding from Libraries May 20 08:42:23 did it twice <.< May 20 08:42:35 trying to exiting and entering Eclipse again, you never know <.< May 20 08:42:54 yeah, i did that a few times May 20 08:43:12 ok yeah yours is complaining about the android-support-v4.jar May 20 08:43:28 omfg May 20 08:43:30 you're missing that May 20 08:43:43 it's not finding the Json thing too May 20 08:43:54 Could not find class 'com.google.gson.JsonParser' May 20 08:43:59 which is in gson May 20 08:44:42 see if it's happier after you add the support jar May 20 08:45:02 nope May 20 08:45:18 different error now? May 20 08:45:33 have to go now, I'll try to fix this later <.< May 20 08:45:43 alright May 20 08:45:47 btw no, same error May 20 08:46:14 add lib, make sure it's checked... i dunno you're on the right track anyways May 20 08:46:27 I've got a jar (gson) for a project lib (TumblReader) and a project lib (SlidingMenu) which requires the v4 support lib, as external libs May 20 08:46:44 yeah same as what i had, except a different 3rd party jar May 20 08:46:55 gonna try this evening May 20 08:47:00 full-day today! May 20 08:47:02 later! May 20 08:47:04 later May 20 08:54:42 huh weird, if i setError() a textview, android stops scrolling as the popup is at the boundary of th eviewport May 20 08:55:23 android you so wacky May 20 09:28:11 wow, sublime is really up there :| https://news.ycombinator.com/item?id=5736367 May 20 09:28:17 I have a few final questions about WiFi Direct. 1) does WifiP2pManager.createGroup() allow interfacing with devices older than Android version 4.0 or what does it do? 2) Can there be multiple networks entirely separate from one another? e.g. 8 people in a room, 2 networks with 4 people on each May 20 09:29:14 sublime is kewl May 20 09:29:33 conor_f: good luck getting that to work; let us know how it goes :D May 20 09:29:45 "If you can still change the options, please change Vi to Vim, as I'm sure most of the people voting for it actually mean Vim." <-- how to spot a vim user May 20 09:29:56 hehe May 20 09:30:10 to annoy them: put both Vi and ViM May 20 09:31:22 g00s: I'm going to take that as a "no" to both questions? May 20 09:31:44 conor_f: i've heard lots of problems unless everybody has the same exact damn phone :D May 20 09:31:54 but don't take my word fir it May 20 09:32:21 p_l: what are you using for text editor ? May 20 09:32:28 not IDE May 20 09:33:01 oh shit, sublime is cross platform. i thought it was mac only May 20 09:33:17 hmm, so what would you recommend instead of wifi direct so g00s? May 20 09:33:31 i dont have an answer May 20 09:34:09 g00s: Emacs May 20 09:34:16 of course ;) May 20 09:34:50 the one time I used Sublime I wasn't really impressed with it, but it was better than Notepad.exe May 20 09:35:50 heh May 20 09:35:57 i do like its overview thingy May 20 09:36:06 i use Komodo for python tho May 20 09:36:06 sublime rocks May 20 09:36:16 uh oh look who it is May 20 09:36:21 * capella needs to send them money May 20 09:37:11 i think emacs appeals to people that see an editor really as a collection of apis, in this case programmed in lisp May 20 09:37:23 i like that too ;) May 20 09:37:33 capella: have you used the sublime python plugin api ? May 20 09:37:55 Messed with it a little ... not a big python expert May 20 09:38:56 g00s: with some work, you can make ViM into an IDE. With some work, you can make emacs into text editor. May 20 09:39:06 (and several other editors, too) May 20 09:40:06 wonder what is better PyDev (eclipse) PyCharm(idea) May 20 09:40:13 oh wellm back to work May 20 09:40:40 ... I'd bet on PyCharm :> May 20 09:40:55 of course :| May 20 09:42:07 oh, pycharm is not free May 20 09:43:38 * g00s really hopes eclipse 4.3 gets their shit together May 20 09:45:02 no more eclipse for you ! May 20 09:45:22 pouvre g00s May 20 09:45:24 g00s: HA HA HA, yeah, right May 20 09:45:32 :( May 20 09:47:07 the eclipse 4.2 theme is hellacious May 20 09:48:44 my eclipse juno kept my dark themes after my update, took a bit of work to get it dark themed but it wasn't impossible May 20 09:50:47 shmooz: did you use the eclipse theme plugin ? May 20 09:51:30 or does Juno have some built in theme stuff May 20 09:51:41 i'm still using 3.8.2 May 20 09:52:31 g00s: I forgot how but its on Dark Juno theme May 20 09:53:26 interesting May 20 09:53:38 Keplar is coming out soon … May 20 09:56:28 hey everybody! Can anybody tell me why I can't build a project in Eclipse anymore? When I build, it installs the native libraries and then in the console just says "Could not find MyApp.apk" ... I tried cleaning the project, reimporting it to Eclipse, but still get the same error May 20 09:57:12 installs the native libraries ? May 20 09:57:14 Android Studio could fix that May 20 09:57:20 :D May 20 09:57:57 capella: does Android Studio already include all ndk stuff? May 20 09:58:02 i doubt AS is fit for human consumption yet :| May 20 09:58:13 only for androids? May 20 09:58:14 then intelliJ CE :p May 20 09:58:51 Actually Im on the intelliJ CE version not Studio ... so not sure about packaging of the NDK with Studio May 20 09:59:12 g00s: Like this: "Install : libopencv_java.so => libs/armeabi-v7a/libopencv_java.so" ... it has the .so files compiled... and then should build the rest May 20 09:59:24 there will be a separate C++ ide for NDK May 20 09:59:33 yah - suspected as much May 20 09:59:38 dont think xav went into it too much May 20 10:00:30 At first I had the error that it built the app, but didn't show any changes. so i cleaned the project, then got the "R could not be resolved" error... so I cleaned again, tried to remove the native libraries and so on and finally got stuck here May 20 10:00:53 capella: surprised you aren't attempting android dev in firefox with orion :D May 20 10:01:09 well, thats html5 May 20 10:01:21 ForefoxOS dev in Orion on FireFox :D May 20 10:01:36 um 9.9 May 20 10:02:12 I use the "agcc toolchain" for C++ in Android May 20 10:02:59 so anybody any ideas on how to fix that? What could help here? May 20 10:03:15 Heya folks May 20 10:03:21 anyone here has experience with osmdroid? May 20 10:03:59 Orion? That's the thing we use for our Scratchpad editor et.al. ... yah kinda limited May 20 10:05:22 The Pelles C compiler collection for Windows ships a cool editor ... thats what I used until I found Sublime ... cross platform under *Nix and Win is very cool May 20 10:36:36 capella: have you noticed FF21 taking up much more memory ? May 20 10:36:43 (desktop) May 20 10:37:56 Havent been watching close .... I'm running our nightly release of course but i haven't tuned into any issues other than MSVC compiler memory overload for 32bit builds and thats not related May 20 10:38:46 Where do you notice it? about:memory reports? May 20 10:39:03 os x activity Monitor May 20 10:39:28 ah ... OS X is special to us but thats all I know there :) May 20 10:39:31 i wish i just had more memory :( May 20 10:39:52 Yah i run 64bit and 8g so its all good to me May 20 10:43:56 If I could've charged $1 for my little FF mobile addon I'd have made 40,000$ ... \o/ May 20 10:44:12 capella: if you'd charge for it, you'd have 5 downloads by now. May 20 10:44:33 Yah .... vs the 200,000 actual free ones XD May 20 10:44:58 Too bad I cant distribute addon through GPlay May 20 10:51:27 g00s: What's much more memory for you? May 20 10:51:44 Firefox keeps using 800MB to 1GB memory even with UnloadTabs on Fx20 May 20 10:52:27 Just restarted into Fx 21. 500MB RAM used. (About 50 unloaded tabs) May 20 10:57:08 kakazza: yeah, thats about what i see now May 20 10:57:24 i was starting ff20 to about 350mb, now its 500mb May 20 10:57:45 then i went from eclipse (350mb) to idea(666mb) and i'mpretty fucked May 20 10:58:02 i have to tune idea settings May 20 10:59:01 get moar rams May 20 10:59:09 I'm getting new hardware this weeks May 20 10:59:14 it'll have 16Gs or rams May 20 10:59:31 nice, but i'm stuck with what i have for now May 20 11:00:58 i wish ff guys would drop bs like rust and social stuff May 20 11:01:07 rust? May 20 11:01:10 what social stuff? May 20 11:01:26 rust is their experimental language for their next gen renderer May 20 11:02:38 http://www.zdnet.com/firefox-21-release-adds-to-social-api-closes-security-holes-7000015429/ for example May 20 11:04:29 I've never noticed this May 20 11:04:41 but then I don't use any of those services either May 20 11:05:32 Has anyone here actually any experience with WiFi Direct? May 20 11:06:16 It's really starting to annoy me now :( I don't understand how I can implement what I want with it, but I know I must be able to May 20 11:06:34 never used it, no May 20 11:07:42 Simple chatroom style app: I want to have the option to either create a new room or join an existing one May 20 11:08:16 Then for other nearby devices to be able to join a room and join in the conversation May 20 11:08:41 and (obviously) when one person sends a message, for everyone else to be able to see it May 20 11:08:58 Is WiFi direct the best choice here? May 20 11:09:56 quick read on wifi direct would make me say, sure May 20 11:10:09 hey May 20 11:10:31 does anyone else feel like when they do android development they're floundering hopelessly May 20 11:10:44 anyone who get google play services working with android studio? May 20 11:10:48 Zharf: yeah. That's what I think too :/ May 20 11:11:02 what's floundering May 20 11:11:09 storkme: floundering ftw ! May 20 11:11:35 oh May 20 11:11:37 well, no, not me May 20 11:12:16 If anyone here has used wifi direct in a similar way before, would they mind PM'ing me or something. Just to explain the structure of the network created and give me a basic outline of how to do what I want to do with it May 20 11:14:46 why aren't fragment transition animations enabled by default? May 20 11:14:58 anyone experiencing the following issue: after upgrading eclipse ADT to r22 the generated files (R.java) are no longer generated. Am I the only one with problems like this? May 20 11:19:16 Hello Everyone! May 20 11:19:50 Ank Ank ! May 20 11:20:08 g00s: how are you, this fine Monday morning? May 20 11:20:21 ;:) May 20 11:20:27 oh, wth was that May 20 11:20:34 Ankhwatcher: fine, and you ;) May 20 11:21:03 I'm doing fine, thank you. I'm going to get this goddamned widget working today May 20 11:21:13 * Ankhwatcher will take no prisoners May 20 11:22:27 g00s: so how do you come down on Android Studio? Great/Terrible/Promising/Cursed? May 20 11:22:40 i never bothered to try it May 20 11:22:46 i did try idea CE though May 20 11:23:03 its ok. i can see why people like it May 20 11:23:06 I'm using CE 12 May 20 11:23:08 I like it May 20 11:23:45 could anybody help me please? "Could not find method com.google.android.gms.common.GooglePlayServicesUtil.isGooglePlayServicesAvailable" on running my android app... compiling works without problem May 20 11:23:48 I love the idea (npi), but I can't get the damned thing to do anything useful for hte life of me May 20 11:24:13 I bought JetBrains IDEA paid :). I love it May 20 11:24:45 brinsjt, good man May 20 11:24:54 Ankhwatcher: (pratchet pun?) I'm not advanced enough in Android to comment, but it's certinaly does what I need it too, but I only do very basic stuff, just starting to learn May 20 11:25:05 g00s, your opinion is shifting! May 20 11:25:38 Zharf: :) May 20 11:26:11 if i had to pick between the 2, personally the way things are ATM i would still go eclipse+ADT - but we'll see how the android support in idea goes May 20 11:26:20 Spec-Chum: cool, I tried to make this simple widget application in it and it didn't work ata all, I've switched back to eclipse May 20 11:26:22 i'm using both productively now May 20 11:27:26 Is there a way to theme Android Studio? because by default it looks terrible on Linux Mint May 20 11:28:02 Zharf: I switched to IDEA 5-6 months ago May 20 11:28:03 Ankhwatcher: I also couldn't AS to do absolutely nothing. Damn thing.. May 20 11:28:06 No regrets :) May 20 11:28:34 I was forced to switch to idea at work... only regrets... May 20 11:28:42 hah May 20 11:28:43 really May 20 11:28:53 lol May 20 11:28:54 for me its been great :) May 20 11:29:04 DeviantPeer, we've converted all of the employees around here to IDEA May 20 11:29:05 :) May 20 11:29:07 usually people are forced to use eclipse bc its free May 20 11:29:07 brinsjt: good for you. try it with a big projects. May 20 11:29:08 Eclipse is slow and shit and just terrible on OSX May 20 11:29:23 brinsjt: yeah May 20 11:29:33 the SWT / Cocoa bindings must suck ass May 20 11:29:51 at least there's a choice tho, it's all personal preference at the end of the day May 20 11:29:52 I'd like to switch to IDEA but I feel like the learning curve is going to be quite steep and I don't really have time atm :/ do you guys have any tips for getting up to speed as quickly as possible? May 20 11:29:52 well.. move to a better OS then. ;) May 20 11:29:57 I think I broke Lint... May 20 11:30:10 storkme: the learning is a couple of day. May 20 11:30:26 storkme: the problem is all the idiocrassies of intellij May 20 11:30:57 I'm not sure that is a word May 20 11:31:16 storkme: and it's slow. People say that eclipse is slow (and it is if not properly configured) but intellij.. argh.. May 20 11:31:28 were you combining idiot and idiosyncrasies? May 20 11:31:30 Ankhwatcher: probably it's not. :D May 20 11:31:43 odd, I find IDEA to be faster, but as I say I only do (very) small stuff ATM May 20 11:32:27 the thing about eclipse is it's stupied default configuration and lots of plugins that are useless (and the believe that OSGI just doesn't care how many plugins it has to check..) May 20 11:33:25 whenever I install eclipse my first move is to really delete some of the plugins... and change the eclipse.ini May 20 11:33:45 but that's my experience... YMMV May 20 11:33:58 i get the platform runtime with no plugins @ 50 MB d/l May 20 11:34:20 behaves very well May 20 11:34:25 I think it still comes with some plugins, no? May 20 11:34:29 no May 20 11:34:48 when you add the ADT , the JDT gets added May 20 11:34:59 thats all i use May 20 11:35:02 so no mylyn, no cvs? are you sure? May 20 11:35:11 absolutely sure May 20 11:35:21 alright then. That's what I shall use next time. May 20 11:35:26 g00: interesting, I might try that May 20 11:35:46 and you can "customize" the looks using CSS. :) May 20 11:36:46 this is how my eclipse is looking now: https://lh4.googleusercontent.com/-ubeR9MTBFBc/UZdIEb47KEI/AAAAAAAAFkM/mr0Gl9J_g4o/w1043-h566-no/eclipse.looking+better.png May 20 11:37:16 yeah, its called "Platform Runtime Binary" basically a blank slate eclipse May 20 11:37:19 except that my projetcs now are not compiling because with the latest adt the R.java file is not being generated... argh.. May 20 11:37:32 DeviantPeer: who in their right mind would want CVS? :> May 20 11:37:52 p_l: exactly, but eclipse Java comes with the plugin for it. May 20 11:38:25 DeviantPeer: is that 4.2 ? May 20 11:38:28 Can anybody tell me why I can't set an activity's theme to Theme.Holo.Light.NoActionBar.Fullscreen for Api level 11? I mean ActionBars and everything is supported in API level 11... so why can't I set it to Fullscreen, but still have the Holo theming? May 20 11:38:38 g00s: you mean the screenshot? May 20 11:38:43 yeah May 20 11:39:11 i'm still using 3.8.2; rock solid May 20 11:39:19 it's still juno. May 20 11:39:28 3.8 was unnanounced after 3.7 -> juno May 20 11:39:31 with some customization. :) May 20 11:39:36 :) May 20 11:39:42 that whole R.java problem with Eclipse was my first clue i'd hate it May 20 11:39:43 This is what my eclipse looks like: http://picpaste.com/ba3b1126900ba64e9372c82dac5b4cac.png May 20 11:40:13 capella: well... as maven is also having problem with the new android sdk version I would not blame eclipse. May 20 11:40:14 that's why I'm keen to get AS working May 20 11:40:34 i always thought the icons in the ADT looked like they were done by some kid in highschool or something May 20 11:40:38 ah ... similar but unrelated then May 20 11:40:52 evident: when did they add holo light? May 20 11:41:15 capella: I don't know... I'm quite pissed at google right now. breaking every way I have of building my projects it's not nice... May 20 11:41:29 :P May 20 11:41:44 this is google, everything is beta :D May 20 11:41:50 Ankhwatcher: msg in private and I can tell you what I did to make eclipse look a bit better. May 20 11:41:54 trouble is when some oem burns your beta onto a phone May 20 11:42:30 g00s: true. May 20 11:43:01 g00s: sticking with it ? May 20 11:43:31 StingRay_: heh; i'm using both. i actually like eclipse more still, but still eveluating May 20 11:44:03 its not such a good time to choose; now google is putting work into the idea side i'm sure there will be lots of cool stuff there May 20 11:44:16 but ADT uber alles May 20 11:44:30 atm ;) May 20 11:44:41 g00s: I heard that IDEA was pretty heavily used internally at google May 20 11:44:58 though it probably depends on dev and team May 20 11:45:03 Anyone had issues with getting Android Studio to connect over adb? I'm getting "ADB not responding" dialogs although when I run adb at terminal I can see logcat and device :/ May 20 11:45:09 p_l: I saw IDEA and Eclipse in the IO videos May 20 11:45:21 google looks like it's going on the "Let's Be Fashionable" stream... gradle, idea... soon they'll join apple and transform android into a iOX app. :) May 20 11:45:23 Ankhwatcher: Holo Light is supported in API11... I can set it without error... but they don't allow there the "NoActionBar" or Fullscreen... May 20 11:45:50 span: try to run "adb kill-server; adb start-server" May 20 11:45:52 DeviantPeer: I think gradle is great choice for a build system that doesn't suck and can be actually programmed :) May 20 11:45:53 or something like that... May 20 11:45:56 idea has a IDe called AppCode, which is a fucking pos. they aren't infallible May 20 11:46:06 DeviantPeer: yeah, i've done that and also rebooted my machine May 20 11:46:08 p_l: why would you want to program a build system?! May 20 11:46:35 span: then I'm out of ideas. I can't get AS to work properly too so... May 20 11:46:37 And if I just set the theme to "Theme.Light.NoTitleBar.Fullscreen", then I won't get the other Holo text formatting stuff... but well... I might just go and leave the ActionBar... would work fine, too, I guess ;) Still annoying that it's not possible May 20 11:46:48 DeviantPeer: ok, thanks though :( May 20 11:46:53 Anybody knows if can be released in the Play Store an app that installs external APKs? May 20 11:48:24 waninkoko: well they changed the rules so applications are not allowed to update themeselves, the same language would probably prevent this also May 20 11:49:14 Ankhwatcher: that's what I supposed. They only talk about application updates but installing an external APK is the same after all. thanks May 20 11:49:51 this guy in the UK going to out google for taxes … May 20 11:49:55 g00s: downloading runtime binary now, can't hurt to try :) May 20 11:50:06 :) May 20 11:50:06 g00s: tax avoidance, not evasion. Two different things in UK May 20 11:50:16 oh yeah, latter is illegal May 20 11:50:21 formal immoral May 20 11:50:25 (but legal) May 20 11:50:42 definitely not in good faith May 20 11:50:46 p_l: two differnet things everywhere, Amazon's whole business is built on tax avoidance May 20 11:51:03 yeah, technically Google hasn't done anything wrong, but look what happened to Starbucks May 20 11:51:16 g00s: former isn't always immoral. It's the gray area May 20 11:51:16 us brits can be an unruly bunch lol May 20 11:51:21 So, what is the difference between alpha and beta testing on the play market apk section? May 20 11:51:26 Just the label on the release? May 20 11:51:30 Spec-Chum: 3.8.2 or 4.2.x ? May 20 11:51:46 3.8.2 May 20 11:51:51 k May 20 11:52:05 if you are coming from 4.2 i would nuke your workspace and prefs :( May 20 11:52:17 I've not got any eclipse installed at all May 20 11:52:24 Google's tax avoidance is why I got to watch the IO keynote on a Google campus May 20 11:52:24 * DeviantPeer goes and fight the new adt and android sdk... damn them to hell... May 20 11:52:56 Can anybody tell me what I can do against a NoClassDefFoundError when using NavUtils.navigateUpTo(...)? May 20 11:53:00 DeviantPeer: they blew it all up! May 20 11:53:47 Ankhwatcher: it sure looks that way. Since March this year google has been nothing but dissapointments... May 20 11:53:48 Hello, there is any way to use my network in AVD ? Because I'm working with sockets, and the only way to test is using a real device with wifi conection. May 20 11:54:12 in hindsight, I think I'll try 4.2... May 20 11:54:22 DeviantPeer: my you've gone very Garfield this Monday. May 20 11:54:56 Ankhwatcher: :) yes.. I should go watch some Garfield strips.. that should make my monday better. May 20 11:55:10 lasagna? May 20 11:55:13 Ankhwatcher: it's holliday here in Holland, but me, no, me has got to work. May 20 11:55:53 lol. Now eclipse generated the file. I didn't even touch it! Oh for crying out loud... May 20 11:56:27 DeviantPeer: Google it...oh wait May 20 11:56:35 LOL :D May 20 11:56:53 :) May 20 11:57:26 BONG! Inception time! May 20 11:57:59 http://stackoverflow.com/questions/16648864/wifi-direct-the-right-choice-trying-to-make-chat-app-android I made a StackOverflow post instead of constantly annoying people here :P May 20 11:58:22 duck duck go (you have to say this as if you were Inpector Gadget... then it's fun). May 20 11:59:04 http://gizoogle.net/ May 20 11:59:51 I like DDG May 20 11:59:59 :) May 20 12:00:02 I have it as default on Linux Mint May 20 12:00:15 Spec-Chum: me too. using it for quite a while. May 20 12:00:54 obviously, I took off safe search for, ahem, research only May 20 12:01:19 conor_f, mind explaining how/where/when does stackoverflow create those user accounts? May 20 12:01:34 conor_f, now that you have one :) May 20 12:01:37 Spec-Chum: and as Bruce Scheneier is also using it... May 20 12:02:18 DeviantPeer: what is bruce using ? May 20 12:02:41 g00s: DDG for search on this blog, instead of google. May 20 12:02:50 ahh May 20 12:03:13 i use DDG too. reader is going away - which leaves gmail - which i plan to migrate away from May 20 12:03:14 Zharf: :P I presume it comes from me not supplying any user name May 20 12:03:18 I still say "google it" tho as telling someone to go duck themselves, sounds, um, just wron May 20 12:03:25 lol May 20 12:03:45 go duck duck your self sounds great. May 20 12:03:52 haha May 20 12:04:15 I found some one duck ducking in the computer at the public library. :D May 20 12:04:30 hello, im getting the GPS location for my app via getLatitude() and getLongitude() but they give me a long double number. first of all, how can i get like 4 number only (55.78) and also how can i convert these to location name like city/state? May 20 12:04:50 I'd just like to note that unlike reader, GMail is paid venture (yes, it is) May 20 12:04:54 any of you convert yer projects to the new build/android studio? May 20 12:05:15 funkbox: tried and failed misserably... May 20 12:05:15 omid8bimo: rounding/truncation I imagine for the first part? May 20 12:05:24 Can't help you any more than that though May 20 12:05:28 and anyone moaning about death of a *free* *cloud* service should think twice :> May 20 12:05:39 (yes, I hate reader dying, too) May 20 12:05:51 i'm glad it's gone May 20 12:06:00 google can now focus on fixing permissions in android May 20 12:06:01 omid8bimo: check out NumberFormat and DecimalFormat May 20 12:06:20 as for converting coordinates into a name, you'll need to find some kind of service for that May 20 12:06:27 maybe Google Maps provides it, i don't know May 20 12:06:53 Google Maps has geolocation features, yes, ingluding mapping to addresses May 20 12:07:05 (in the Web API at least) May 20 12:07:18 angelsl: ok i guess google map will do. so this mean converting to addresses, i need another API like google map? May 20 12:08:49 probably May 20 12:09:02 g00s: btw, I'm considering writing a GMail backup tool this summer :) May 20 12:09:16 \o/ May 20 12:09:27 :) May 20 12:09:33 backup tool May 20 12:09:34 g00s: something that you could run and have it in sync with GMail, in case it ever goes down May 20 12:09:47 same tool which crashed gmail last summer? May 20 12:10:17 I believe GMail crashes involved internal stuff :3 May 20 12:10:46 Google's Gmail had a glitch introduced that caused 30,000 users or so to loose email May 20 12:11:02 not even mentioning simple things like "oops, I pushed wrong config, 25% of the cluster just went down" May 20 12:11:32 squ: ah, that. I believe hwops had a field day with tapes :3 May 20 12:13:08 if you asked me who cares, I'd tell you noone May 20 12:13:41 well, I'd be going with external backup :) May 20 12:14:10 everyone will be happy to hear that you consider writing another tool for gmail May 20 12:14:24 does the studio properly setup the path and everythning May 20 12:14:51 I noticed that gmail web interface is changing about once in month May 20 12:15:21 that enthusiasm forced me to use mail agents :) May 20 12:16:14 p_1: gmail backup tool: just use any imap downloader. May 20 12:16:46 wow, that was quick May 20 12:16:52 eclipse now up and running May 20 12:17:00 bare metal build :D May 20 12:17:00 \o/ May 20 12:17:04 Spec-Chum: don't use eclipse! May 20 12:17:14 argh, not another one lol May 20 12:17:14 Spec-Chum: you just added ADT, right ? May 20 12:17:16 Spec-Chum: use eclipse! May 20 12:17:29 g00s: yeah, only ADT, nothing else May 20 12:17:33 sweet May 20 12:17:36 DeviantPeer: I want some extra metadata that is usually not preserved May 20 12:17:56 Basically, I'm planning something that to an email client looks like GMail May 20 12:18:02 is there a d/l of idea CE without the bs bundled plugins? May 20 12:18:02 p_1: staring I think is preserved. May 20 12:18:18 *GMail's IMAP interface (with extensions) May 20 12:18:22 DeviantPeer: labels are not May 20 12:18:23 g00s: yeah, geany May 20 12:18:24 :D May 20 12:18:25 p_1: but I confess that I use gmail only as the "public" interface, my emails are all under my own devices. May 20 12:18:26 also, fix your font May 20 12:18:39 did i hear gmail was dropping imap ? May 20 12:18:47 hurry p_l ! May 20 12:18:51 p_1: that will be a interesting projects. May 20 12:19:04 I was tempted to use geany and just use ant in the CL but since I know zero android at the mo, I figured I'd use an IDE May 20 12:19:14 g00s: would not be surprised if imap, pop and smtp were going the way of the dodo... May 20 12:19:33 DeviantPeer: SMTP won't be going the way of the dodo May 20 12:19:46 POP3 can go to hell for all I care, though :> May 20 12:19:51 true May 20 12:21:01 ok, https://github.com/jayway/maven-android-plugin/commits/master/src/main/java/com/jayway/maven/plugins/android/AndroidSdk.java May 20 12:21:05 oh it uses it's own sdk and emulators and crap May 20 12:21:22 so there were changes in the location of the tools within the android sdk. Just great google... just great. May 20 12:26:09 some symlinks and it works again. One wasted morning on issues brought by the sdk upgrade... May 20 12:26:44 yeah. sdk upgrades are always a pain May 20 12:31:40 oh, dur, just spent 2 minutes wondering where the marketplace had gone May 20 12:31:54 then remembered I'm on the minimal version May 20 12:32:00 installed it now ahah May 20 12:32:17 g00s: good call on this, it does seem quicker May 20 12:33:45 I'm having trouble with my widget, the Service which load my widget's information is not getting called and I don't know why. May 20 12:34:23 could someone please cast an eye over my AppWidgetProvider and tell me why? http://pastebin.com/k72mZGZe May 20 12:41:51 oh I think I fixed it May 20 12:42:08 I was inflating the widget into one of it's list items instead of it's layout May 20 12:42:48 oh bother May 20 12:43:25 RemoteViewsService is not allowed to run network ops. May 20 12:43:42 g00s: thanks for this, I know don't know which IDE to use May 20 12:43:43 cheers May 20 12:43:45 lol May 20 12:45:50 so, where can I run my network ops for my widget? May 20 12:46:37 *now don't May 20 12:50:00 Can't you just start a thread May 20 12:50:04 i have an issue, anyone please gimme a hint, i defined two layout (layout and layout-land) and i used configChanges="orientation|keyboardHidden|screenSize" to remember the settings since, but looks like with this config, the screen rotation does not apply when i rotate the device. any idea? May 20 12:50:20 Anyway, you should retain your info somewhere.. Doing networking every time the widget updates sounds wasteful May 20 12:51:29 omid8bimo: Inflate the layout for the new configuration and set that as your view May 20 12:52:32 SimonVT: please tell me how May 20 12:52:56 setContentView May 20 12:53:51 SimonVT: i have one setContentView in my class under onCreate. do i need to create amother method? May 20 12:54:25 now for my next major dilemma, tabs or spaces? May 20 12:54:33 very important this May 20 12:54:43 I keep getting "unable to resolve superclass" for a mainactivity that extends FragmentActivity May 20 12:55:02 omid8bimo, it'd be easiest if you just didn't use configChanges since you obviously don't know what it means :) May 20 12:55:06 I've seen stuff about Android Tools -> Add Support Library May 20 12:55:11 but nothing changed after that May 20 12:55:26 how do I figure out what is messing the startup process? May 20 12:55:43 omid8bimo: You told android you wanted to handle configuration changes yourself.. If that means changing the layout, then do that May 20 12:56:04 Zharf: if i remove that, my activity get recreated and i loose my data on the activity like the photo that user takes May 20 12:56:14 SimonVT: well the widget only displays info from the site, which should be changing fairly regularly, so I don't think there's anything to save May 20 12:56:17 omid8bimo, then persist it somewhere May 20 12:56:28 omid8bimo, there's lifetime methods for that stuff May 20 12:58:33 Hey guys, I am trying to load textures in to memory before I start my application just having some trouble with the loading right now it works but my application starts before the images load and I can't figure out a way to load the images before I start the application. Any ideas on a way to do a good image loader? I have tried async task to monitor when the load completes then start the application but that takes quite a lot longer t May 20 12:58:49 SimonVT: Vogella may have me covered: http://www.vogella.com/code/com.example.android.stackwidget/src/com/example/android/stackwidget/StackWidgetService.html May 20 12:59:03 Zharf: whats that lifetime method? May 20 13:00:04 omid8bimo, http://developer.android.com/guide/components/activities.html#Lifecycle May 20 13:02:13 well i used onConfigurationChanged removed the configChanges in manifest and screen gets rotates ok but data is lost upon rotation. May 20 13:02:56 you use onConfigurationChanged with configChanges... May 20 13:03:38 Zharf: both? May 20 13:04:36 i thought the purpose of defining onConfigurationChanged is not to use configChanges..! May 20 13:05:17 You get a call to onConfigurationChanged when one of the configuration changes you manually handle happens May 20 13:05:56 and you tell android which config changes you want to manually handly through configChanges May 20 13:06:35 oo, my hardware order is ready May 20 13:06:43 oh ok got it. thanks May 20 13:06:47 tomorrow's new computer building day May 20 13:08:27 Zharf: what you building ? May 20 13:08:39 new desktop for myself May 20 13:08:52 make sure you can install OSX on it ;) just to try May 20 13:09:02 why May 20 13:09:28 cause it's fun :) May 20 13:09:38 and good for android dev May 20 13:10:02 How's it better than other OS for Android dev? May 20 13:10:11 And I'm on OS X myself, just wondering. May 20 13:10:33 one weekend a year is enough OSX for me May 20 13:10:45 well if you read the docs on d.android not sure if it's still there May 20 13:10:54 you had the following May 20 13:11:05 windows : do this this and this, maybe try this May 20 13:11:15 linux : do this, this and add this May 20 13:11:19 osx : just works May 20 13:11:37 it just works for me on windows though May 20 13:11:46 linux is just a line in udev rules May 20 13:12:09 tis preference, and just a nicer environment for me May 20 13:12:19 windows is a bit…erm….odd May 20 13:12:21 yeah, I never liked it :) May 20 13:12:30 what didn't you like ? May 20 13:12:34 I don't use my desktop for development though May 20 13:12:45 I use my 11" elitebook for development May 20 13:12:49 Zharf: ah, fk that then May 20 13:12:52 :) May 20 13:13:00 updated to adt 22 and now i cant build my workspace. is that common? May 20 13:13:02 desktop's for music, video editing and games May 20 13:13:23 well vid editing (cut/edit) osx is pretty much king May 20 13:13:32 music too I think May 20 13:13:52 meh, adobe premiere CS5 is pretty much equal to final cut May 20 13:14:02 and there's exactly the same software available for music May 20 13:14:11 not on about final cut/ sw May 20 13:14:21 on about coreVideo etc May 20 13:14:24 I just don't feel like paying a ton on crappy hardware and crappy OS ;) May 20 13:14:45 hardware is same as any PC May 20 13:14:54 StingRay_: except often older, etc. May 20 13:14:58 for windows. well, maybe with a tiny few exceptions May 20 13:15:12 same hardware, but overpriced May 20 13:15:19 in fancy shell May 20 13:15:21 no I mean I have macs May 20 13:15:33 but I use osx mainly on my linux windows box May 20 13:15:37 StingRay_: I can buy a *laptop* that has better initial specs (not expanded specs) than MacPro May 20 13:15:53 and other desktop offerings are essentially laptop hw May 20 13:16:10 well I ditched linux of my workstation, now just have osx and windows May 20 13:16:24 Actually, I am not sure if the motherboard on MacPro doesn't have the same chipset as the 3yo workstation at work May 20 13:16:39 god no, dont buy a mac May 20 13:16:47 build a PC capable of running osx May 20 13:16:50 was my point May 20 13:16:53 :) May 20 13:17:40 I'd like to play with a hackintosh but my laptop wont do hardware virtualization and that seems to be required May 20 13:17:54 not really May 20 13:18:01 but laptop not a good choice neways May 20 13:18:08 too many manuf. custom things May 20 13:18:29 nice clean gigabyte board with EFI, thats what you want May 20 13:19:39 to be fair you dont even need full spec EFI May 20 13:20:07 only thing that is a pain is the power management tables, if you have to mod them May 20 13:20:11 wiel: It is May 20 13:20:38 kakazza, any hints for a fix? May 20 13:21:58 https://plus.google.com/photos/117122118961369445953/albums/5878509263473846433/5878509268379848162 May 20 13:22:06 Depending on what error you are facing. May 20 13:22:15 You installed the new ADT and the new Build Tools aswell? May 20 13:23:46 yes May 20 13:23:53 okay, progress now my widget says loading for all the items in the listview May 20 13:24:01 that option in the picture isnt there for me May 20 13:25:08 wiel: I bet it is. May 20 13:26:19 hullo May 20 13:26:23 kakazza, this is what the error(s) looks like http://i.imgur.com/WCL5oNc.png May 20 13:28:15 Ok, that's a different error. May 20 13:28:33 I have not encountered this one. May 20 13:32:40 I'm using ADT 17 and I've put a jar file (gson library) into the "libs" folder of an Android library project. According to the docs, it should be automatically put inside the "Android Dependencies" of the Java Build Path of the project, but there isn't! Any idea? May 20 13:32:56 hey, does my layout have too much crap in it? http://imgur.com/L2VbqZi i know i can trim it down but will i get any performance hits from doing it like this? May 20 13:34:27 erdos: if you need so many buttons... there's nothing wrong with your layout... May 20 13:34:50 hehe, they're just place holders, just trying to get the structure right, and i think i have it! May 20 13:34:53 thanks! May 20 13:36:59 btw, I see the lib inside the "Android Private Libraries" and have no "Android Dependencies" in the project explorer in Eclipse... May 20 13:37:17 One of my layouts looks like this, and it works like a charm: http://pastebin.com/sH8DBGxy May 20 13:37:39 (http://i.imgur.com/zOc7uTs.png) May 20 13:38:46 (pastebin works now) May 20 13:40:20 The android emulator can't see my keypresses from my physical keyboard.. how can I fix this? May 20 13:40:34 rather, it can't see media buttons May 20 13:40:36 oh thanks Tee_Pee! good to know, i'd noticed in the docs and a few people say that you should keep layouts "flat" for performance reasons, but if yours works fine i think i'm good to go! May 20 13:40:37 It can see normal typing May 20 13:41:26 but like I press volume up/down it ignores May 20 13:41:30 erdos - that's true, but that doesn't mean you should limit yourself and make things harder for a 1% performance boost May 20 13:42:01 definitely! May 20 13:42:11 The real deal breaker is the way you handle the layout programatically... Do you fire findViewById() from the top of the hierarchy every time, or do you keep references to components you use often? May 20 13:42:11 etc May 20 13:42:52 if you are looking for a button, using findViewById from the button's direct parent will be much faster than using findViewById() from a parent view 5 layers up in the hierarchy May 20 13:43:24 i think 5 layers borders on bad layout design May 20 13:43:34 oh really? so you do a findViewById for the parent then subsequent calls to that view? May 20 13:44:08 i just wasn't sure of how much it actually affected it, but yeah a couple of % doesn't matter in my case May 20 13:44:41 StingRay_: you mean 5 layers deep? May 20 13:44:47 yeah May 20 13:44:55 borders May 20 13:45:00 not total etc May 20 13:45:20 hehe, first app, v1 May 20 13:45:21 as in I think it borders on an overcomplicated tree May 20 13:45:22 FYI if you need external JAR files with ADT 17+, you need to select "Android Private Libraries" in the build path/export tab in the project's properties May 20 13:45:44 i think once i have a better grasp of the layout system i'll try to shrink it down, right now i just want to get this thing finished May 20 13:46:23 StingRay_: overcomplicated for the dev looking at it? or overcomplicated for cpu usage? May 20 13:46:54 I mean it borders on using the wrong layout types with the wrong kind of layout design May 20 13:46:55 ish May 20 13:47:03 and for both really May 20 13:47:07 erdos: overcomplicated: something that could be done in a more linear way May 20 13:47:15 right May 20 13:47:50 I was just using a random example May 20 13:48:51 1. get it done, 2. make it better later... otherwise i'll keep going around in circles in my head May 20 13:52:57 see I really wish I had that mentality May 20 13:53:06 thats my major flaw atm May 20 13:53:24 once again this widget business has me stumped May 20 13:54:07 I am fetching the data, converting it, I can see in the log the views being created, but nothing comes up on screen May 20 13:56:41 Good morning May 20 13:57:25 i've a question, does anybody knows how to get the Active Fragment in an Activity? May 20 13:57:27 popers: good morning May 20 13:58:50 I've tried limiting my data to only 5 items in case it was taking too long to deserialize, but it's still not working May 20 13:59:01 The worst thing ever - external libraries bugging out May 20 13:59:04 FUCK THAT SHIT May 20 13:59:11 And fuck OSMDroid right now May 20 13:59:42 Tee_Pee: yeah, I have to do a clean every time I start eclipse because Lint freaks out about MenuDrawer May 20 14:04:16 popers: There is no such thing. You _may_ be able to figure out if a fragment is visible, but "active" isn't a typical description for fragments AFAIK. May 20 14:04:56 well yes, that is what i want May 20 14:05:05 Can anybody tell me how I can crop the camera preview image somehow, so that it doesn't get distorted in the preview SurfaceView (the view is wider than the preview image size, so now it's being stretched. I don't wanna change the view size though, but just show the center of the preview image in it with it's normal ratio)... May 20 14:05:27 know if a Fragment is visible, how can i do that? May 20 14:05:32 The SO links should be a good place to start. Looks like many "gotchas", depending on where/how you use fragments. May 20 14:07:06 what do you refer with "SO" links? im sorry im learning English language already May 20 14:07:07 If you're manually handling the fragments yourself (in your activity, using fragment transactions), keeping track of what is active should be easy. May 20 14:07:14 stackoverflow.com May 20 14:07:23 popers: I hook myself up to setUserVisibleHint(), seems to be reliable, but I don't like this solution that much May 20 14:07:46 OK, I got it... May 20 14:33:20 android studio doesn't seem to support flavored builds yet does it May 20 14:46:44 hey guys, following the steps from http://developer.android.com/training/basics/firstapp/creating-project.html with eclipse, i'm not getting my R.java generated. it's a completely fresh, cleanly generated project. i didn't add anything to it (so no files with strange names) May 20 14:47:07 cleaning doesn't help either. i nuked the whole workspaces and created another project - no success May 20 15:05:55 guys, anyone knows when sgs4 developer edition will be available in europe? May 20 15:20:30 Why this notation? id.et_email May 20 15:21:57 what et ? May 20 15:22:07 EditText ? May 20 15:24:05 StingRay_: tjx! May 20 15:31:55 hi. i am working with sqlite database in android and i have a question.. i have a many to many relationship and i will have three tables (one representing the many to many relationship). how can I represent this in android? i have to create three datasources or just two? May 20 15:32:56 just like you would normally May 20 15:33:15 but i will need three datasources (one for the relationship)? May 20 15:33:23 Has anyone had an issues with google-play-services_lib after updating to ADT 22? May 20 15:33:38 barad: is that how you would implement in mySQL ? May 20 15:34:08 in mysql i would create three tables (two for the entities in the relationship and one for the relationship because it is many to many) May 20 15:34:17 ok then May 20 15:34:24 so why not do the same on android ? May 20 15:34:34 yes, but my question is about the datasources May 20 15:34:39 i will need three or two? May 20 15:34:42 oh sht sorry May 20 15:34:54 well 1 db May 20 15:34:57 3 tables May 20 15:35:30 and it is a datasource for each table? May 20 15:35:47 db = SQLliteHelper May 20 15:35:56 opens a database May 20 15:35:59 with 3 tables May 20 15:36:18 so 1 slqlite helper, opens 1 database, with 3 tables May 20 15:37:21 and what about the datasource classes? May 20 15:37:35 one for each entity or one for each entity plus one for the relationship? May 20 15:38:43 I dont use any javax stuff May 20 15:38:54 so not even sure what your asking tbh May 20 15:39:30 I just use standard loader,dbhelper for my sqlite needs May 20 15:41:01 so for example in an activiry you need to insert a tuple in the database. you create the database object and insert there directly? May 20 15:41:06 activity May 20 15:42:29 well if an activity needs access I would create one of my db helper classes and use either my convinence methods or even call raw SQL on it May 20 15:42:41 load and update are controlled with loaders May 20 15:44:19 and your convinence methods are defined outside the helper, right? May 20 15:44:26 no May 20 15:44:41 but tbh the loader controlls simple things May 20 15:44:50 like updates,insert etc May 20 15:45:02 cause I would need to reload when the data is changed May 20 15:45:47 ok.. i am reading some tutorials and in some they use datasources so thats why i came asking about that May 20 15:46:16 ah May 20 15:47:11 hmm, seems Gradle is able to convert Maven projects to Gradle projects automatically May 20 15:47:45 now i saw one which they use the methods inside the helper (methods to insert a person details for example) May 20 15:53:09 btw if I have an entity which primary key will be name, age do I need the _id field while creating the table? or I just need fields name, age and this will be the primary key? May 20 15:55:27 What is this? May 20 15:55:27 http://developer.android.com/reference/android/R.layout.html#simple_dropdown_item_1line May 20 15:55:59 barad: _id is alwasy there for anroid sqlite table May 20 15:56:20 crised: a resource pointer May 20 15:56:32 constant lookup for android.R May 20 15:56:35 so in this case the primary key will be (_id, name, age)? May 20 15:57:16 Has anyone noticed, on a 2.3 emulator, ImageViews seems like they add extra padding to their images. May 20 15:57:24 StingRay_:https://github.com/donnfelker/android-bootstrap/blob/master/app/src/main/java/com/donnfelker/android/bootstrap/authenticator/BootstrapAuthenticatorActivity.java#L142 May 20 15:57:36 I imagine what's the use case there, but I just don't truly understand ti May 20 15:58:23 that resource will be a pointer to xml layout in android.R May 20 15:58:46 StingRay_: HOw can I see how this resource pointer look like? May 20 15:58:52 with the layout…just guesssing… being calld simple_dropdown+item_1line May 20 15:59:06 Is there any way programmatically to tell the device to press HOME or do the equivilent thing? May 20 15:59:17 StingRay_: How can I see the whole list in a UI? May 20 15:59:28 open android.R May 20 15:59:36 all there May 20 15:59:37 StingRay_: In other words, is there a graphical view of this? http://developer.android.com/reference/android/R.layout.html#simple_dropdown_item_1line May 20 15:59:46 oh in the source May 20 15:59:59 StingRay_: Yes I know it's there, but... May 20 15:59:59 but given the name May 20 16:00:03 in the source? May 20 16:00:11 lin layout and textview May 20 16:00:12 lol May 20 16:00:21 android source May 20 16:00:30 as in android is open source May 20 16:00:32 layour May 20 16:00:38 sorry May 20 16:00:42 in the source res there will be a layout called that May 20 16:01:07 * StingRay_ goes for a cig May 20 16:15:56 What are my alternatives for updating an adapter in another fragment or just make its onCreateView run again? May 20 16:16:23 just get a ref to fragment and call a method May 20 16:16:41 Sounds a bit cumbersome the whole communication to activity and that May 20 16:16:53 Ref to fragment how? May 20 16:16:54 you said fragment May 20 16:16:59 not activity May 20 16:17:13 findByTag May 20 16:17:15 Yeah, I'm using a ViewPager May 20 16:17:32 lol fragments May 20 16:18:03 StingRay_: Ill look into that. Thanks. May 20 16:21:28 anybody had problems with the last update of the android sdk tools on eclipse? May 20 16:21:40 me May 20 16:21:43 lots of times May 20 16:21:47 =/ May 20 16:23:17 Im going to try download the android bundle again and reinstall it. :S May 20 16:25:28 Hello. May 20 16:28:22 hey guys, is there anyway to get who an sms was sent to from a device? IE I wanna get the devices number but getLine1Number() returns false May 20 16:30:01 huh? May 20 16:30:25 you just read the sms db and read the "to" field May 20 16:30:59 StingRay_: that shows me who the sms was sent TO, but not who its FROM May 20 16:31:08 and for incoming sms it shows who it was from and not to May 20 16:31:20 then read the person_id May 20 16:31:30 but you know you just inversed your question May 20 16:31:31 :) May 20 16:31:52 I'm trying to just get my own mobile number off my device, but it wasnt set for the device May 20 16:32:08 yeah I see it was badly worded, sorry :[ May 20 16:32:13 its late here :P May 20 16:32:56 any idea how I can get the phone number, i cant see it in sms/mms/telephony May 20 16:33:10 StingRay_: This time i was able to understand the stack trace, Thanks May 20 16:33:23 wicked :) May 20 16:33:36 sock progress ;) May 20 16:33:40 sick* May 20 16:34:20 And now I'm going to add some listerners *mindblown* May 20 16:34:57 Btw is "dip" related to resolution or a fixed measurement? May 20 16:35:29 yes May 20 16:35:32 :) May 20 16:35:47 and in some cases and manufacturers wim May 20 16:36:58 I want to build a specific kernel module for my Droid 3, but I don't know where to find the kernel headers. May 20 16:38:20 Does anyone know where I might find the source for kernel 2.6.35.7-g9f70789? May 20 16:38:41 Zah_: this is app dev May 20 16:40:17 is it possible to add in a header for each row in a list view? Something similar to how we can do section headers in iOS? May 20 16:42:10 I guess I can just increase the number of rows and return a different row type May 20 16:42:49 or have the row layout include some kind of header bar May 20 16:42:54 if you want it on every row May 20 16:43:04 just include it in the row layout :) May 20 16:43:45 anyone point me to url that shows how to attach remoteviews to viewgroup in ACTIVITY May 20 16:44:44 I see blank screen when I remoteviews.apply(actContext, viewGroup) May 20 16:44:59 I think I am missing some thing so please guide May 20 16:45:15 your setting views across processes ? May 20 16:45:22 StingRay_: yes May 20 16:45:32 funky, didn't even know that was poss :) May 20 16:45:46 StingRay_: thats why I am here May 20 16:47:05 StingRay_: getSupportFragmentManager().beginTransaction().add(fragment, "Fragment3").commit(); in the FragmentActivity with the viewpager and then something like this in the fragment that I want to update Fragment3? Fragment frag = getActivity().getSupportFragmentManager().findFragmentByTag("Fragment3"); May 20 16:47:52 indeed May 20 16:49:35 and then ((Fragment3) frag).updateAdapter(); to update it? :S May 20 16:50:28 erm, well I would cast it properly when finding it May 20 16:50:34 but sup to you what you do May 20 16:52:13 I have a simple static BroadcastReceiver listening for android.intent.action.VIEW audio/* but regardless of the priority I assign to it, the default android receiver is always invoked (I/ActivityManager( 285): START u0 {act=android.intent.action.VIEW dat=file:///xxx.yyy typ=audio/* cmp=com.android.music/.AudioPreview (has extras)} from pid 1480) what could be the reason? May 20 16:52:19 I get "can't change tag of fragment Fragment3" May 20 16:52:28 illegalstateexception May 20 16:52:49 "was Fragment3 now android:switcher" May 20 16:57:16 hobo_bot: Doesn't look like it's a broadcast.. Looks more like it's starting an activity May 20 16:58:48 SimonVT: that... sounds very right *facepalm* (sorry it's my first day with android) May 20 17:05:01 anyone guide how to make apply / attach remoteviews to viewgroup. I am sending remoteviews across processes and its not showing up on display screen May 20 17:09:19 logcat complains about a null pointer exception on this line: if(bundle.containsKey("taking_picture") == true) { May 20 17:09:23 why? May 20 17:09:37 bundle must be null. May 20 17:09:39 conor_f: because bundle is null May 20 17:09:57 and "== true" is absolutely unnecessary, since the statement itself was already a boolean before May 20 17:10:29 yeah, I know that. I just put it in in case I misread the docs and it returned null in some case May 20 17:11:07 o.O java is typesafe, if it returns a boolean, it cannot return null in any case May 20 17:11:12 Primitives can't be null May 20 17:11:37 * conor_f has many stupid moments May 20 17:12:52 I also forgot to getExtras -_- May 20 17:12:57 sorted now though, thanks May 20 17:14:27 as a matter of interest, is the Android API regarded as being "good" in terms of usability, efficency, etc? May 20 17:15:17 are there any layout types that allow % based widths? Trying to get a layout with 5 columns to expand/contract to fill teh parent view May 20 17:16:49 weights give you percentage based size May 20 17:16:56 bah. anyone got ABS running fully with android studio ? May 20 17:17:03 getting stuff like Gradle: No resource found that matches the given name: attr 'actionBarStyle'. May 20 17:23:12 im curious about how the android studio interacts with gradle. i'm guessing it's not calling out to gradle on the command-line? it must be integrating at a higher level than that May 20 17:23:31 JakeWharton: is there a list of popular apps that use ABS ? May 20 17:23:36 jasta: at IO they said it's completely decoupled May 20 17:23:37 specifically im wondering about how its performance characteristics change with very, very large gradle projects May 20 17:23:47 shmooz: every app, except for the official google IO app. May 20 17:23:52 funkbox: really, so it does just shell out to gradle? May 20 17:24:07 funkbox: thanks that narrows it down ;) May 20 17:24:12 shmooz: I can give you a list. Or maybe this: http://www.appbrain.com/stats/libraries/details/sherlock/actionbar-sherlock May 20 17:24:22 jasta: AFAIK, yes May 20 17:24:23 thanks JakeWharton May 20 17:24:35 interesting. May 20 17:24:45 the android gradle plugin's build performance kind of blows. May 20 17:25:00 that's disappointing May 20 17:25:05 hmm May 20 17:25:07 it appears to build more artifacts than are necessary May 20 17:25:11 very nice list of apps indeed :) May 20 17:25:25 is there a way of passing a "return from activity" animation in ActivityOptions when starting an intent? May 20 17:25:26 and also integrating into intellij this ways means that can't take advantage of the fact that intellij already compiled your modules before you asked gradle to do it May 20 17:25:46 i'm trying to convert our app to gradle now with android studio to see how it works May 20 17:25:47 Mavrik: no May 20 17:25:57 Mavrik: you can't know what activity is behind you May 20 17:26:02 jasta: you can narrow down what it should build May 20 17:26:16 JakeWharton, hmm, not behind you May 20 17:26:32 I'm trying to say "open this activity and when returning HERE I want this animation" May 20 17:27:05 and am just wondering if there is a sane way of doing that May 20 17:27:15 jasta: I think the idea was to decouple it, so every ide didn't make up their own approach to building May 20 17:27:19 not really, no May 20 17:27:26 ohai May 20 17:27:29 *grumbl* May 20 17:27:53 it seems android:activityOpenExitAnimation works very inconsistently, gonna have to hack together something with overridePendingTransitions then -_- May 20 17:28:44 the question is, use new gradle stuff or do maven May 20 17:28:47 hi foilks... have what may be a weird question... I bought an ainol spark 9 inch tablet, and was able to flash it no problem by writing twrp directly to nand and then install cyanogenmod via going into recovery which ran twrp. After aboiut a week I decided to installl AOSP, which I geneally prever, except this time, after restarting the tablet it got stuck in a bootloop, the only tihng showing the little green android robot May 20 17:29:12 nubae: wrong channel May 20 17:29:16 ive tried May 20 17:29:26 which channel should I talk to? May 20 17:29:38 I have so much free time, I wanna create an app but I've no ideas -_- May 20 17:29:47 its a little unclear where I might get some help :-) May 20 17:29:55 nubae: as the topic says.. ask in #android-root May 20 17:30:19 ahhh, ok i misread then, thought it said android-dev May 20 17:30:32 thanks and sorry bout that May 20 17:34:08 funkbox: Maven is (and has always been) a trainwreck for Android May 20 17:34:21 JakeWharton: what do you recommend? May 20 17:34:24 the Gradle system is very well designed and a first-party solution May 20 17:34:49 JakeWharton: what do you guys use? May 20 17:34:54 Maven May 20 17:35:38 i guess i can give gradle a few more hours May 20 17:47:51 Strange... I just converted a ListActivity into a ListFragment and now onListItemClick isn't being triggered. May 20 17:48:44 is it true you cannot replace a fragment defined in xml? May 20 17:53:17 is it possible to create an app that makes someone elses device vibrate May 20 17:54:49 Vibrating a device other than the one the app is running on? May 20 17:55:22 The messaging app does that May 20 17:55:22 CocoStorm: depends how big of a device ur talkin about May 20 17:55:52 SimonVT, yes but without sending a message May 20 17:55:53 =] May 20 17:56:07 if you defie a fragment in xml, can it not be changed programatically? May 20 17:56:07 speakingcode-wor, really? May 20 17:56:21 s/defie/define May 20 17:57:31 hi everybody. In the docs it says in Camera's takePicture() method that you can pass a PictureCallback for the raw image data. This might return null if the callback doesn't exist or is too small to hold the raw image data. How do I find out how big the callback is? How can I make it big enough so I can get the raw image data and not just the jpeg compressed data? May 20 17:57:32 That doesn't make sense. May 20 17:58:33 is it an array you pass? May 20 17:59:03 if it's a byte array like a lot of the other imaging stuff, then it would be something like width*height maybe? May 20 18:00:04 what you could do, nitind, if it is an array... is pass back a really big array and pause it in debugger n see how many values in the array get filled May 20 18:00:14 or read the implementation source May 20 18:00:20 Anybody knows SafeAsyncTask ? May 20 18:00:26 it's from RoboGuice May 20 18:00:32 Anybody familiar with it? May 20 18:00:49 err sorry, evident. not nitind May 20 18:01:27 All I did was create a Camera.PictureCallback which has the onPictureTaken(byte[] data, Camera camera) method in it... so I never initialize the byte[]... When I add the Picture as the JPEG callback instead of the raw callback, I always get a data-array back (always with different size due to JPEG compression)... but as raw-callback all I get is null May 20 18:01:33 https://github.com/roboguice/roboguice/blob/master/roboguice/src/main/java/roboguice/util/SafeAsyncTask.java May 20 18:01:35 Has anyone had/solved issues with google-play-services_lib after the ADT updates last week? May 20 18:01:50 Can this Class be used to run heavy duty processing? Unlike Android AsyncTask? May 20 18:02:26 does a CountdownTimer restart itself every time? May 20 18:02:28 or it just does it once? May 20 18:06:07 Hello! I'm trying to export my project from Eclipse to Android Studio but I think I'm doing something wrong, because the new file structure isn't present when I import the project on Android Studio. May 20 18:07:16 Is this the correct behaviour or should I do something different? As I understand from this link: http://developer.android.com/sdk/installing/studio-tips.html the imported project should be with the new structure too. May 20 18:08:44 Export didn't work at my end; Eclipse kept complaining about version 22 being needed, even though that was already installed. It's fairly simple to import the project into AS however, similar to how you would do it in Eclipse ("Import project"). You will need to set up your module/jar dependencies and similar, but other than that it should be fairly smooth even if the export stuff fails. May 20 18:08:55 (version 22 of ADT) May 20 18:09:02 is onCreate() not called when the screen is rotated? May 20 18:14:46 Hi today I have installed app for sms from market and freeze stock app and I wasn't able to receive any message and I don't know why May 20 18:14:51 It is, unless you handle config changes May 20 18:15:16 Knows anyone reason of this problem? May 20 18:17:29 Maybe I must uninstall stock app for replace by another app May 20 18:17:39 Try #android or #android-root May 20 18:17:41 mojzesz: wrong channel May 20 18:17:44 Depending on whether you're rooted or not May 20 18:17:47 conor_f: I don't think so. The activity has already been created at that point. onResume may be though May 20 18:18:14 Of course I have root May 20 18:18:27 And room toolbox May 20 18:18:35 Rom May 20 18:18:55 mojzesz: this is a developer channel not "how do i use my phone" channel May 20 18:19:09 if i declare a fragment in xml, can i replace it programatically with another fragment? May 20 18:19:29 OK I ask on other chan May 20 18:20:54 speakingcode-wor, did you try? May 20 18:22:46 speakingcode-wor, yes, but I've had nothing but problems with that when restoring state May 20 18:23:23 no. a stack overplow post said you cant, but another showed doing it, figured i'd ask out for expert insight before bothering implementing n frustrating myself with a half-working deal May 20 18:24:34 Fragments defined in xml isn't really meant to be removed May 20 18:25:09 The layout inflater doesn't care that you removed it, it'll add it when parsing the xml May 20 18:25:38 don't want to remove it just replace it upon an action May 20 18:25:56 While the state of fragments added in code is properly retained by the fragment manager May 20 18:26:01 SimonVT: What would be the point of a fragment that isn't meant to be removed? Changing layouts to a tablet? May 20 18:26:16 Replace removes the existing fragment.. May 20 18:26:51 it doesn't make sense to me why xml should behave differently than programatically creating May 20 18:27:00 pwizard1015, e.g. a navigation menu May 20 18:27:00 speakingcode-wor, I suggest you just add it programatically for your usecase May 20 18:27:08 Could implement that as a fragment and have callbacks to your activity May 20 18:27:33 SimonVT: that's what this is May 20 18:27:40 i have a menu fragment and a content fragment May 20 18:27:59 i'd like button clicks on the menu to callback to the activity which would then replace which fragment is shown in the content May 20 18:28:10 Handle it in code May 20 18:28:33 When your xml is inflated, the fragment you defined in code is going to get added May 20 18:28:44 what's wrong with that? May 20 18:29:14 It doesn't care that you removed it in another instance of the activity May 20 18:29:25 neither do i May 20 18:29:31 of course you do May 20 18:29:37 So you end up with 2 fragments as the content May 20 18:29:48 why owuld i end up with two? May 20 18:30:06 it's a single instance activity May 20 18:30:06 The fragmentmanager creates and adds the fragment you replaced the one defined in xml with May 20 18:30:15 ok May 20 18:30:28 but if the activity instance i did that in is destoryed.... why do i care? May 20 18:30:36 all this is expected behavior May 20 18:30:43 Eh May 20 18:31:04 e.g. during an orientation change May 20 18:31:12 the activity is created... fragment from xml is inflated... user action changes it.. May 20 18:31:40 wouldn't i have to maintain state either way? May 20 18:31:47 Activity is created, xml fragment is added, xml fragment is removed, code fragment is added.. user changes orientation, activity is destroyed, activity is created, xml fragment is added, code fragment is added May 20 18:32:02 if user does orientation change May 20 18:32:10 activity is created, fragment from xml is added May 20 18:32:17 and i'm back at the same path as the other May 20 18:32:41 if i want to maintain state, i'd just replace it again... which is what i'd have to do either way, no? May 20 18:32:46 No May 20 18:32:59 hows that? activity is created, programatically creates initial fragment May 20 18:33:11 orientation change. activity is created, programatically created initial fragment May 20 18:33:33 No May 20 18:33:56 If you add a fragment to the fragment manager, when the activity is restored from state it is going to re-create and add that fragment May 20 18:34:13 oh May 20 18:34:19 If you have a fragment in xml, it is always going to get added when the layout is inflated May 20 18:34:24 whats the trade off? May 20 18:34:45 Trade off? May 20 18:34:58 there must be a trade off or why use xml at all May 20 18:36:11 You use xml when you know the fragment is permanent May 20 18:36:25 that seems to defeat the purpose of fragments, damn near May 20 18:36:26 It's either a fragment tag or a framelayout + added it in code May 20 18:36:45 kjeldahl: Thanks for your answer! I have imported before the project in IntelliJ (and now with Android Studio), but what I couldn't get was the new file structure (with all files in the src folder) and the Gradle build system to be used in Android Studio. As I understand it, it was using the default ("old") build system. May 20 18:36:47 How so? May 20 18:36:53 "only use xml for a modular component when you know it won't be modular" May 20 18:37:13 how would I use an exclamation point right after a param in strings.xml? Welcome, %2 ! May 20 18:37:51 hello all!! where is right place to ask for Android/GCM issues?? May 20 18:38:08 GCM? May 20 18:38:21 google cloud messaging May 20 18:38:40 SeptDePique, here probably >( May 20 18:38:43 what's the issue May 20 18:38:44 :) May 20 18:39:29 where should I place the gcm registration code preferably? May 20 18:40:09 background service on application startup May 20 18:40:23 I've just started with android, so I am unsure how I should use GCM in a real application May 20 18:40:25 and check if you're already registered first. May 20 18:40:55 ok.. thx May 20 18:40:56 what is the standard way users activate speech recognition? May 20 18:41:06 http://pastebin.com/2tn1P8u9 Will someone explain why line 8 isn't reached when the screen orientation is changed please? May 20 18:42:32 SeptDePique, depends what you need to do May 20 18:42:44 SeptDePique, just remember you cant send pushes to the app until you have its registration id May 20 18:42:58 and registration takes a little time and may not work immediately :) May 20 18:43:51 conor_f: https://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle) May 20 18:44:02 conor_f: a) It looks like a line comment b) seems pretty straightforward. May 20 18:44:19 conor_f: May 20 18:44:28 you're using getIntent.getExtras() May 20 18:44:36 but that key is in your saved instance state bundle May 20 18:44:38 you should do May 20 18:44:56 if(bundle.constainsKey("taking_picture") ... May 20 18:45:18 nitind: yes, I understand line 8 is a line comment. I meant that block. and if I found it so straightforward I wouldn't have asked ;) May 20 18:45:20 as you have named the Bundle paramater passed to onCreate as 'bundle' May 20 18:45:25 Mavrik: do you know an example where GCM is used in a real application (not just "hello world")? May 20 18:45:50 saved instance state doesn't come from intent extras May 20 18:45:53 speakingcode-wor: ahh, ok May 20 18:46:20 it is the Bundle paramater passed to onCreate. instead of Bundle bundle you should probably follow convention and name it Bundle savedInstanceState May 20 18:46:26 SeptDePique, uhm, anything that sends you notifications :) May 20 18:46:34 I understand :) Thanks speakingcode-wor May 20 18:46:42 it's like 60%+ of all apps :) May 20 18:46:48 is there a typical hardware button to press to activate voice recognition? May 20 18:47:04 for example, on windows phone, you long press the home button May 20 18:47:27 erisco, long-press headphones button, but otherwise no May 20 18:47:35 it's the microphone icon May 20 18:47:38 or voice activation May 20 18:48:24 thx Mavrik, I think I'll have to ask google again ;) May 20 18:48:49 thanks Mavrik May 20 18:49:11 hopefully soon I'll be able to get an android phone and I won't have to ask these things :P May 20 18:49:26 ;) May 20 18:51:01 When I export a project from Eclipse (generate gradle files) and import it in Android Studio, is it supposed to change the file structure of the project? May 20 18:51:56 AkiraYB, probably yeah :) May 20 18:52:01 gradle has different structure May 20 18:52:29 Or you can just import the eclipse project in to Android Studio May 20 18:52:33 Tgat works as well May 20 18:53:04 That's what I thought... What is strange is that it's not doing that when I try to export/import the project. May 20 18:53:06 :) May 20 18:55:36 Yeah! I could import the project as I have done in the past with IntelliJ, but I wanted to try the new build system, as IntelliJ (or Android Studio using the "normal" build system) doesn't build the project as fast as in Eclipse. May 20 18:55:46 Anybody found a way to speed up the dex'ing stage on AS yet? It's A LOT slower than in Eclipse. May 20 18:57:08 hahah That's an issue I got too... I _think_ that using Gradle as a build system should speed up things, but I don't think it's using that to build the project when I simply import it from the Eclipse project. May 20 19:01:19 Hi Everyone, I have a dumb question. I have an app that has an Http Singleton and for the longest time we were not releasing the connection by doing a EntityUtils.consume(entity) or response.getEntity().consumeContent() we were getting a lot of crash reports that indicated the connection wasn't released. After adding the snippet of code, to release the request/connection, we noticed that there were a drop in requests to our ser May 20 19:02:12 Could not releasing the connection cause an inflation in requests to the server? May 20 19:02:24 I just read this link on stackoverflow concerning group chat. Which one of these libraries is recommended to work with in terms of reliability/documentation etc? http://stackoverflow.com/questions/6703669/android-apis-for-live-chat-in-android May 20 19:02:41 There's some info on the dexing slowness here: http://youtrack.jetbrains.com/issue/IDEA-80408 May 20 19:02:50 is it possible to group gui components?? May 20 19:06:19 Does anyone know what the special rules are for what you put into a item in Widget ListView? I've trying to use the normal ListView items I have, but it doesn't seem to let me include elements like views. May 20 19:08:09 well, to be more clear: Eclipse and Lint allow me to add the elements, but then the listview doesn't load any items when they are there May 20 19:13:22 man, twitters display requirements are a pita May 20 19:15:46 If I replace android-rt.jar with the one referenced in the link I wrote, I manage to shave off 5 seconds off a ~30 second build. Still looks like AS has a few tricks to learn from Eclipse when building for Android. May 20 19:16:04 Here's the link: http://youtrack.jetbrains.com/issue/IDEA-101291 May 20 19:18:02 is there a way to enable X Windows compatibility in Android ? It would be nice to be able to use the existing gui with X Windows applications and DISPLAY setting May 20 19:18:17 anyone have any experience in parsing ussd? May 20 19:19:07 i mean in catching ussd without displaying?:< May 20 19:21:53 once again: how do I group graphical elements in android apps? May 20 19:23:32 WoC: Exactly what do you want? There are VNC clients, but anything more than that and I belive you are SOL or in for some big-time tinkering. May 20 19:25:21 SeptDePique: ViewGroup? May 20 19:26:10 Ankhwatcher: where do i find ViewGroup in eclipse?? May 20 19:26:49 SeptDePique: http://developer.android.com/reference/android/view/ViewGroup.html May 20 19:29:15 I have a DialogFragment that I launch from Fragment2, in which I call a method with adapter.notifyDataSetChanged() in Fragment3 to update the ListView there. I know that the method is executed, but dismissing the DialogFragment and going from the active Fragment2 to Fragment3 - the ListView is not updated. If I go to Fragment1 and back to Fragment3, onCreateView is launched and ListView is updated. Any ideas? May 20 19:29:25 howdy... I've got an app that isn't showing up in the play store for larger tablets, but it's there for phones, smaller tablets, and the Galaxy Player - anybody know what could cause this? May 20 19:30:53 hello, how can I get the text from a TextEdit in a AlertDialog ? I'm testing and getting null from findViewById() https://gist.github.com/anonymous/f3d9aa4ed4e6119da8ec May 20 19:31:44 wviana: TextView text = (TextView) findViewById(R.id.textView1); text.getText().toString(); May 20 19:32:03 maybe I should ask in another way: what is the Android-equivalent to JPanel? May 20 19:32:39 SeptDePique: that depends. What's JPanel? May 20 19:32:39 Quacked: but it is a EditText May 20 19:33:19 wviana: get your edittext object and scroll through the functions available May 20 19:33:39 you said TextEdit so I assumed TextView May 20 19:33:47 Ankhwatcher: JPanel is a swing component for "normal" Java-GUIs May 20 19:33:50 wviana: read the docs http://developer.android.com/reference/android/widget/EditText.html May 20 19:34:13 wviana: you may need to register an onTextChanged Listener May 20 19:34:37 SeptDePique: like the rope? Frame? Seat? May 20 19:34:42 hmm.. maybe my question is tl;nr :P May 20 19:35:25 Ankhwatcher: but the findViewById() is not return the reference to EditText, like in the code is showing null https://gist.github.com/anonymous/80fc5f0c17a7ed9a6cda May 20 19:36:47 canadiancow: yo, looky what I found.. http://www.youtube.com/watch?v=qlrKh-L4bqU May 20 19:37:35 wviana: you might need to use something like dialog.FindViewById() for that May 20 19:38:50 i am writing a click event handler for menu items in a menu fragment, to dynamically load fragments in another container May 20 19:39:15 Ankhwatcher: this dialog object would be the AlertDialog instance ? May 20 19:39:15 to support tablets and handsets, the container fragment may have null fragments (in handsets) May 20 19:40:02 i can test for null via findFragmentById(), but i have N possible fragments May 20 19:40:23 so is there an easy way to just see if the container is null, instead of checking n particular fragments? May 20 19:40:46 Is it possible to use the in-app payments API to buy for example a ad free experience. So the server can remember that for the user? May 20 19:40:54 wviana: exactly May 20 19:41:11 Is it possible to use the in-app payments API to buy for example a ad free experience. And send it to my own server so the server can remember that for the user? May 20 19:41:21 I'm using the new Android Studio, and it complains when I reference custom TextView classes with custom fonts, somebody knows why? May 20 19:41:46 +marlinc, I think it is. May 20 19:42:10 Does anyone know any good free API for getting stock exchange data? May 20 19:43:13 Is there a simpler way to draw something May 20 19:43:22 than create "openGL window" ? May 20 19:44:30 In Fragment3 do updateAdapter{adapter.NotifyDataSetChanged() } and it updates the ListView fine. But when I call the method in Fragment2, the ListView is not updated when I move to Fragment3. I use a ViewPager and 3 fragments. Any ideas? May 20 19:44:50 @bluesm, you can use the Canvas class. May 20 19:45:49 how can i see which fragment is in a container? May 20 19:47:20 Sambarboz: Thanks :) May 20 19:48:05 Hi there May 20 19:48:20 Ankhwatcher: Yes, I get it, I just use the view that I set in my AlerDialog.builder thanks a lot May 20 19:48:59 wviana: I'm not sure that's what I said, but if it's working, good! May 20 19:51:19 Ankhwatcher: not what u said, but what u said open my mind to understand what was wrong. cause, if I use just findViewById() it will search by a View in the same view from the activity, but i need to findViewById() from the same view that I had set to my Dialog :) May 20 19:51:48 wviana: ah, yes that's the idea May 20 19:52:22 How would I implement my own thread listener? So I can have simple event methods get called on the main thread? May 20 19:57:55 beastman: i suggest using AsyncTask and if needed RunOnUi May 20 20:00:46 Hi guys quick question May 20 20:00:58 Math.exp(x) May 20 20:00:59 Does anyone know where the documentation for what is and is not allowed in a Remote View is? May 20 20:01:15 gives Infinity on anything more that 3 digits May 20 20:01:20 anyone know a fix for this? May 20 20:04:03 DarkSlay3r: Pass it a datatype that can hold larger numbers May 20 20:04:50 Example? May 20 20:05:48 I'm trying to let the user capture a photo using the camera. So far, the camera app opens, I can tak a picture, the picture is saved in the location I defined - but the activity result method is never called, so I don't know if and when the user captured a photo. My code: http://pastie.org/7936173 May 20 20:07:12 Well, google says e^100 is 2.6*10^43 .. An integer has a max value of ~2.2*10^9 May 20 20:07:41 This is a big issue May 20 20:08:04 because i need to take e^32648 May 20 20:09:25 you're into "custom math library" then May 20 20:09:59 libgmp for native code, I'm sure there's an equivalent (or bindings) for java May 20 20:10:18 Anyone an idea about the activityResult issue? May 20 20:10:44 memoryleak: does it do other lifecycle things when returning to your app ? May 20 20:11:14 where is that onActivityResult …. main activity ? May 20 20:11:34 Can someone explain in this code how BezelSwipeListener is an interface but its also a field in this class? https://github.com/QuantumBadger/RedReader/blob/master/src/main/java/org/quantumbadger/redreader/views/bezelmenu/BezelSwipeOverlay.java?source=cc May 20 20:11:43 dragorn: i might need some hand holding May 20 20:12:06 DarkSlay3r: I've never tried to do very large math in java, so I'm not the one to do the hand holding, unfortunately May 20 20:12:13 StingRay_: HomeActivity is the 3rd activity called in the app (Splash > Login > Home) May 20 20:13:23 DarkSlay3r: your best bet is to find an existing library in pure java and just incorporate the jar into your project May 20 20:14:09 memoryleak: dont set Intent.FLAG_ACTIVITY_CLEAR_TOP May 20 20:15:31 good advice dragorn i'll look into it May 20 20:16:32 DarkSlay3r: libgmp might be a place to start, but i'm sure there will be a java native equivalent for large math May 20 20:16:40 StingRay_: I've remode that allready. OnResume is called after I confirm the picture (Nexus 7 default app) May 20 20:17:44 memoryleak: no idea then May 20 20:18:16 StingRay_: Ok, now it works... let me try to find out what it was May 20 20:20:32 kjeldahl, ok, thanks though. Wouldnt know a way to kill the android gui and keep it from re-spawning ? May 20 20:21:46 if that can be done, it should be possible to start a normal x session May 20 20:21:49 hey y'all May 20 20:22:34 I'm trying to get my listview to not reset to the top when you change directions during a fling (you fling down, then you fling up) and it'll set the state of the listview to be idle -- even though it never really is May 20 20:22:50 how can I check for this form of idle? May 20 20:23:12 (and it resets to the top because I invalidate the adapter when it's idle and not scrolling) May 20 20:25:15 mheld: why do you invalidate it ? May 20 20:25:45 StingRay_: because I have a computationally intense thing that generates the views and I need it to reset only when it's done scrolling May 20 20:25:57 the invalidation resets it at this point May 20 20:30:09 would that not cause more probs ? May 20 20:30:19 no May 20 20:30:21 as in if you invalidate the views, you have to generate them again ? May 20 20:30:38 that's exactly what I want once the listview is idle May 20 20:30:49 oh to re-gen the views May 20 20:30:53 yup May 20 20:31:02 otherwise it stutters May 20 20:31:53 so why not just store the position on idle ? May 20 20:32:23 the position of what? May 20 20:33:07 the scroll (abs) May 20 20:33:29 if your not wanting it to reset to 0 May 20 20:33:34 StingRay_: http://pastie.org/private/xskhkiaeaueqndqv45e6w is what I do May 20 20:34:27 oh a kinda snap to thing May 20 20:34:55 well, we do that too because we want the pager that we scroll left and right into to scroll at the same position May 20 20:35:03 this stuff all works May 20 20:35:41 yeah but why invalidate the dataSet ? May 20 20:35:53 for some reason I'll fling in one direction, things will work great -- then I'll fling in the other direction (while it's still flinging) and it somehow goes into an idle state May 20 20:36:00 StingRay_: because I need to regenerate the views! May 20 20:36:10 StingRay_: the views are effectively empty until I'm done scrolling May 20 20:36:22 huh, freaky May 20 20:38:53 Thanks to yours help I progress a lot in my project today. Thank u a lot. :D May 20 20:42:22 I've stumbled on a issue with gradle. I have 2 libraries that both compile a jar. Now, when an app that depends on both libraries is built, compilation fails with "class already added" May 20 20:42:30 what's the right way to handle this? May 20 20:47:29 argh... this is fun. Install AS, try to create a "hello world" following the "New Project" wizard... and it fails completely. May 20 20:47:31 Oh well.. May 20 20:47:58 DeviantPeer: Do you have gradle in your path by any chance? May 20 20:48:02 yes May 20 20:48:18 DeviantPeer: AS comes with gradle and it doesn't play well with gradle that is arleady in path May 20 20:48:51 ikurt_: I can uninstall gradle. I though it was necessary May 20 20:48:55 ikurt_: I had the same issue. I removed gradle from my PATH, and was able to create a project successfully May 20 20:48:56 ikurt_: here it goes... May 20 20:49:12 DeviantPeer: I had the same issue. I removed gradle from my PATH, and was able to create a project successfully May 20 20:49:31 DeviantPeer: Also, make sure you've set proxy correctly if you are behind a proxy server May 20 20:49:33 StingRay_: yeah, I have no idea why I'm getting the idle state May 20 20:49:45 off to the source code! May 20 20:49:54 ikurt_: ok, no proxies here. so that's ok. May 20 20:51:56 uff.. it's slow... May 20 20:53:24 ahhh.. it runs now. I guess it was a gradle issue with the system version. May 20 20:55:17 so.. what's the big advantadge of using gradle? May 20 20:56:00 DeviantPeer: Well.. I'm new to gradle too. So, I can't tell. I was hoping to get in touch with someone familiar with gradle as I'm stuck with an issue trying to convert my existing projects to use gradle. May 20 20:56:25 ikurt_: well.. don't convert then? :) What are you using now for building? May 20 20:57:24 We are in a state of flux right now. Some members use Eclipse, some use command-line, some use Intellij. There is no unified system which we can use from IDE as well as command line. May 20 20:58:05 So, we are looking at build systems that help us manage our android projects. May 20 20:58:30 Was looking at Maven and now that Google officially supports gradle, that seems like a better option May 20 20:58:31 the word 'gradle' is sneaking into this channel at an alarming rate May 20 20:58:37 ikurt_: I have a really good experience with maven. May 20 20:59:13 ikurt_: and I really can't understand Google going for something that will in the end lead to the same mess as the ant build May 20 20:59:41 at least it feels to me that as gradle can be "programmed" people will do it, and program things on top of things. May 20 20:59:51 brx_: well, that's whats new with android development. And there is not a lot of good documentation/samples wrt Android plugin for Gradle. Until we get some good examples/documentation, I wouldn't expect the questions on gradle to go down. May 20 20:59:55 brx_: that's probably true... May 20 21:00:21 was it just me that got a bit disapointed with io13? May 20 21:01:43 the end of ADT, a build system based on something that no one uses, no one knows, and is far from being proven May 20 21:02:10 the start of the end for XMPP May 20 21:02:23 :/ May 20 21:02:25 Yeah, tying development to specific IDEs never seems like a good idea. May 20 21:02:35 shrug, I do all my editing in vim, and my building on the command-line, like the programming gods intended May 20 21:02:47 i use emacs and bash scripts May 20 21:02:49 pragma-, but we aint all as cool as you :( May 20 21:03:23 im going to wait until the transition is noob-proof through documentation, in the mean time eclipse will still be my number 1 :) May 20 21:04:00 any thing that edits and maven does the trick for me. May 20 21:05:02 maybe I just had a bad experience with Intellij... was forced feed into my workflow, and everyone I got to know that used it was a brogrammer... May 20 21:05:33 stackoverflow-copy/paster May 20 21:05:40 yes, that kind. May 20 21:06:26 people that develop but never have the sources of the libraries they are using, not even the library docs... May 20 21:07:03 one of the guys was actually fun to watch (for a while) as he would shout when the copy&pasted code didn't work as he wanted. May 20 21:07:05 :) May 20 21:07:21 brx_: i've been trying intellij for 4 days; its easy to see why people like it - has great java editing etc; but eclipse vs intellij is a useless discussion. AS not not mature so that leaves you with idea CE + android plugin vs eclipse + ADT; you can argue editing in idea is nicer - but ADT > aide android plugin for now May 20 21:08:10 i rely on lint quite a bit, for example, and that is definitely better in ADT May 20 21:08:41 g00s: what about performance. Cause to me it feels slower. May 20 21:08:41 btw, ADT isn't going away - they are just going in parallel May 20 21:08:50 ahhh May 20 21:08:55 for how long ? May 20 21:08:56 that's good to know. May 20 21:09:01 R.java just stopped generating after I cleaned my projects... happens with all projects. No XML files are in valid, no file names are invalid May 20 21:09:03 DeviantPeer: yeah, eclipse "feels" slower i agree May 20 21:09:04 bubbleguuum: that's the question... May 20 21:09:20 the only thing that changed is that I ran an updated on some of the eclipse android sdk stuff May 20 21:09:25 erisco: that happened to me after updating the adt May 20 21:09:33 g00s, i rely on lint too May 20 21:09:33 erisco: exactly May 20 21:09:43 * erisco headdesks May 20 21:09:46 thats why i didnt like intellij...i think its for people who are clearly more experienced May 20 21:09:47 personnaly I could care less about lint May 20 21:10:01 erisco: and somehow it started to build R.java file May 20 21:10:14 erisco: but I have no idea why.. May 20 21:10:31 DeviantPeer, you're saying eventually R.java began regenerating again? May 20 21:10:39 erisco: try to restart eclipse sometimes.. or something. May 20 21:10:51 already restarted eclipse. guess I will try a system restart May 20 21:10:51 I just wished Google just updated the ADT with kick-ass maven support... May 20 21:10:56 erisco: yes... but I have no idea why. spooky. May 20 21:11:08 erisco: sys restart sounds a bit overkill. May 20 21:11:18 bubbleguuum: that would be great. May 20 21:11:22 DeviantPeer, I just need the kill May 20 21:11:39 DeviantPeer, and not sure what options I have other than to roll back May 20 21:11:48 i.o 2013 would have been more impressive if AS was ready for production use May 20 21:12:02 i think the android team is spread too thin May 20 21:12:22 the way I use eclipse is to have a directory with the maven project, and another directory with symlinks to the src, res, etc of the maven project. May 20 21:12:24 But since everyone in the regular Java world uses maven, Google just had to use something else May 20 21:12:32 DeviantPeer, um, did two new updates just show up? getting rev 17 for platform-tools and "not installed" for build-tools May 20 21:12:41 this second directory has the structure eclipse expects to find for a android project. May 20 21:12:48 if you used WP7 and their tools, and watched that whole ecosystem then WP8 spring up within like 2.5 years - mS has far more momemtem that google May 20 21:13:07 erisco: I updated the android sdk, and then went for a eclipse adt "find updates" May 20 21:13:42 erisco: and then installed all the android related updates May 20 21:14:13 erisco: then when I did a clean of the project that I was working on, no more generated sources. May 20 21:14:32 is it possible to modify the actionbar icons when a particular fragment in a viewpager is highlighted? May 20 21:14:41 storkme: yes May 20 21:14:52 excellent, thanks. May 20 21:15:11 storkme: when you create the menu keep a reference to the items you want to change, and change them when you want. May 20 21:15:44 DeviantPeer, okay the new set of updates that just sprang up seemed to have fixed the issue May 20 21:16:07 storkme: you can also have specific menu entries for each fragment May 20 21:16:25 erisco: there are new updates? May 20 21:16:29 * DeviantPeer goes and checks... May 20 21:17:33 eclipse feels so much snapier than intellij... May 20 21:18:02 swt is way lighter than swing... May 20 21:18:42 nope... no updates found... must have them all up to date. May 20 21:18:56 DeviantPeer: my experience is the definitely opposite May 20 21:19:24 JesusFreke: let me guess.. you're on a MacOS? May 20 21:19:31 DeviantPeer, okay, maybe I had two rounds of updates to do then. no idea May 20 21:19:33 I don't use apple products May 20 21:19:37 ehhe May 20 21:19:40 nite reply. :) May 20 21:19:52 all I know is that my application fails to deploy now... libraries don't seem to be linking May 20 21:19:57 you might try increasing the heap size for IDEA May 20 21:19:58 this is a mess :( May 20 21:20:17 it can get a bit slow if you have a larger project, with a heap that's too small May 20 21:20:22 lots of GC, etc. May 20 21:20:39 JesusFreke: I did. same vm arguments as for eclipse. May 20 21:20:43 The little memory usage widget in the bottom right can help keep a handle on that May 20 21:21:40 -Xms:64m -Xmx:2048m -XX:MaxPermSize=2048m May 20 21:22:02 When I added bouncycastle to a project I had to zoom eclipse up to 6 gig May 20 21:22:03 You might start out with a bigger heap May 20 21:22:08 but that probably wouldn't help too much May 20 21:22:10 ahh.. and -XX:+UseConcMarkSweepGC -Xss1024m -Xverify:none May 20 21:22:16 2048 should be plenty May 20 21:22:16 it has some ridiculously poor management of complex libraries May 20 21:22:32 JesusFreke: you'd hope; it wasn't in my situation May 20 21:22:38 never used bouncycastle... May 20 21:22:48 DeviantPeer: it's a crypto lib; given only as an example May 20 21:22:57 dragorn: I'm talking about idea, not eclipse :) May 20 21:23:02 that when i threw that into a project eclipse promptly shit the bed May 20 21:23:04 JesusFreke: fair May 20 21:23:14 dragorn: I have quite big dependencies within my projects and all runs well. May 20 21:23:14 dunno about eclipse - haven't used it for java stuff in ages. May 20 21:23:15 JesusFreke: i'd say don't be afraid to go big tho May 20 21:23:25 yeah, I give mine 8gb :) May 20 21:24:27 dragorn: when I tried to open a not very big jee project with intellij then I went for a coffee, and some talk, and a toilet break... and eventually it allowed me to open some java files. May 20 21:24:29 :) May 20 21:24:33 that was fun. May 20 21:24:47 but ti was like... hum.. two or three years ago. May 20 21:24:57 well, it does run an initial indexing pass May 20 21:24:58 DeviantPeer: that sounds more like swapping May 20 21:25:12 which can be painful for large projects (never had an issue with smaller ones though) May 20 21:25:28 dragorn: well.. My machine at the time had 4Gb of ram (was maxed out I think). May 20 21:26:01 JesusFreke: that's the, IMHO, good thing about eclipse, that indexing pass is actually a compilation. May 20 21:26:25 dragorn: and the project worked well with eclipse. May 20 21:27:15 anyway... I don't care with the IDE, although I do care with the build system.. and this gradle is not of my liking... May 20 21:30:15 I want users to send me feedback through a form in the app. Is there a way to do that which doesnt require an e-mail set up on their device? May 20 21:30:48 sure May 20 21:30:52 use a library to send emails May 20 21:30:53 I'm sure there is May 20 21:30:56 Quacked: how many users you got ? May 20 21:32:28 ok… why does systrace.py output lack all method names when I grab input? May 20 21:32:40 I can see the blocks taking time but nothing about WHAT are they May 20 21:32:41 O.o May 20 21:33:42 DeviantPeer: No, it's not. Indexing does not require compilation. May 20 21:34:23 nitind: I never said otherwise. May 20 21:35:01 DeviantPeer: I must have misread that, then. May 20 21:35:02 nitind: but if at the same time you parse the files, build your indexing and compile the already parsed result you'll save time in the end. May 20 21:35:32 nitind: or at least that was what I wanted to say. May 20 21:38:44 StingRay_: I dunno yet ;) May 20 21:38:50 Sorry for the late response May 20 21:39:32 StingRay_: I'm guessing 5000 in a year perhaps May 20 21:39:34 anyone know if there are guidelines for using a twitter follow button in an app? May 20 21:40:06 dragorn: I didn't think the -Xmx parameter took a :, and if that memory spike is reproducable, you should report is a bug. That's not supposed to happen. May 20 21:40:38 does anyone here have any tips on how to import the framework (aosp) code into android studio? May 20 21:40:58 Foolean: good luck with that. :D May 20 21:41:18 did they say during i/o fireside chat something about looking into different hardware profiles for lower spec'd devices ? May 20 21:41:21 thanks :P May 20 21:42:29 nitind: -Xmx doesn't take the ":", you're right. None of the memory arguments have a ":" May 20 21:42:55 nitind: that's what happens when you're looking at the term anc opy pasting using the brain. :D May 20 21:43:09 oh, it looks like more videos are up even if there isn't a camera in the session / calendar entry May 20 21:45:11 even canadiancow 's session is up May 20 21:47:45 IJ question: when i go "check for updates" in the main menu; is that checking the IDE or plugins also ? May 20 21:48:36 g00s: I think it's plugins May 20 21:49:02 has anyone been able to get voice to work with androvm? May 20 21:49:30 erisco: noticed last week androvm is commercial now May 20 21:50:59 wait, you mean Genymotion May 20 21:51:05 erisco: why androvm? May 20 21:51:20 the emulator with the sdk is absurdly slow May 20 21:51:27 erisco: DEPENDS May 20 21:51:29 ups. May 20 21:51:31 sorry May 20 21:51:34 don't wear them myself May 20 21:51:48 I'm monkey running my app on a series of devices and I get an ActivityNotFoundException on Intent intent = new Intent(Intent.ACTION_VIEW); intent.setData(Uri.parse(getResources().getString(R.string.link_to_app))); startActivity(intent); Any ideas? May 20 21:52:07 Quacked, check your manifest to make sure its listed May 20 21:52:14 erisco: if you use atom based images and hardware acceleration then it's fast May 20 21:52:24 oh, sorry, didn't see the whole line Quacked. thought it was custom May 20 21:52:30 :) May 20 21:52:58 the R.string.link_to_app is just market://details?id=com... May 20 21:53:38 Quacked: what if you pass the string direcly (without using a resource)? May 20 21:54:42 I can try later.. the testing takes some time :) May 20 21:54:43 erisco: what host OS are you using? in Linux you have to use kvm, and in MacOS you need HAXM May 20 21:55:24 Windows, and because I need the Google APIs I can't use x86 May 20 21:55:49 not that I got the haxm stuff to work anyhow May 20 21:55:55 erisco: ohhh... in Linux even the arm images are fast. May 20 21:56:07 yep May 20 21:56:09 erisco: not as fast, but still fast enough. May 20 21:56:14 GPU Accelerated ARM images are pretty fast as well May 20 21:56:24 GPU accelerated x86 images are mostly faster than devices May 20 21:56:34 true May 20 21:56:52 here it is <15fps on the emulator. boost times are ~5 minutes... switching activities is a few seconds May 20 21:56:57 are the google aplis being deprecated for play service ? or May 20 21:57:15 Google APIs == Play services May 20 21:57:21 ok May 20 21:57:58 erisco: here the emulator starts in under a 1min. and everything feels smooth. May 20 21:58:01 :) May 20 21:58:13 we probably just have faster computers May 20 21:58:23 :) May 20 21:58:35 Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz May 20 21:58:41 not particulary fast. May 20 21:59:20 "market://" links only works when Google Play app is installed on the device." May 20 21:59:33 thats probably why its not working May 20 21:59:47 I think you can also use a url to the google play store May 20 22:00:09 yeah, URL to app on play store gets intercepted by Play Store automatically May 20 22:00:15 Quacked: and then the user will be asked to open with the play or with the browser May 20 22:00:47 yeah, but I wanted market: so it would auto open in play May 20 22:01:23 Quacked: well.. letting the users decide is not wrong. And they call set it to open in the market by default. May 20 22:01:37 Yeah May 20 22:01:40 hmm May 20 22:02:20 Quacked: you get what you want (users going to the market for the app) in any case. May 20 22:03:06 well. after one day fighting with the new sdk, new adt, AS and maven I have to call it a day.. May 20 22:03:10 see yah all. May 20 22:03:10 Im gonna do a try catch :p May 20 22:07:27 is the new adt broken in some way ? May 20 22:07:37 oh, he left May 20 22:07:53 yes. I guarantee there are bugs in it :) May 20 22:07:58 haha May 20 22:08:11 wait until google gets their mittens on the idea plugin :D May 20 22:08:25 they already did.. May 20 22:08:39 is there a replacement for slidingdrawer anywhere? May 20 22:08:47 the support lib has one May 20 22:08:52 do you want another one ? May 20 22:09:10 I thought it was being depreciated -- I guess it kinda makes sense for it to be in the support lib May 20 22:09:28 no, it actually got expanded ui design guidelines May 20 22:09:42 really? May 20 22:10:17 http://developer.android.com/design/patterns/navigation-drawer.html May 20 22:11:02 gah, the problem I have with the android world right now is that it's totally possible to use views for things other than what they were originally meant for May 20 22:11:23 I want a drawer that gets pulled up from the bottom of the screen May 20 22:11:29 and slidingdrawer is the perfect way to do it May 20 22:11:39 but if it's depreciated, there's no point in using it May 20 22:11:58 oh that drawer May 20 22:12:14 i got the impression that was a one-off for the original launcher May 20 22:12:34 it was pretty gimped too, since it always filled the whole area of its parent May 20 22:18:48 mheld: if you want it over the content you have, should be simple to setup with a frameLayout root parent May 20 22:18:51 I would think May 20 22:20:41 what happened to AndroidManifest.xml in Android Studio? May 20 22:20:55 why change something that works May 20 22:21:26 google should set up #android-dev-studio May 20 22:21:34 xav and tor should man it :| May 20 22:21:43 I got a rare occasion of NPE on this: " Fragment frag = getActivity().getSupportFragmentManager().findFragmentByTag(makeFragmentName(R.id.pager, 2)); ((Fragment3) frag).updateAdapter(); " Any ideas? May 20 22:22:13 It's run in a DialogFragment if that matters May 20 22:22:14 did getActivity return null :) May 20 22:22:19 Quacked: step one, break it down May 20 22:22:20 bwahahaha May 20 22:22:38 Quacked: Activity a = getActivity(); FragmentManager fm = a.getSupportFragmentManager(); ..... May 20 22:22:43 Quacked: but each on its own line May 20 22:22:51 StingRay_: but it's already part of the sdk! why would I rewrite it :-P May 20 22:22:58 step 2, look at the line number in the error! May 20 22:23:09 StingRay_: (I just took a copy of the sliding drawer + modified some stuff) May 20 22:23:12 yeah, surely would be easier to find the culprit in that way May 20 22:23:21 the line number is actually on the ((Fragment3) frag).updateAdapter(); May 20 22:23:39 Quacked: step 3, Log.v(TAG,"frag: "+frag); May 20 22:24:10 or. May 20 22:24:15 put a breakpoint, execute step by step May 20 22:24:25 and you'll see what your adapter is doing that takes ages. May 20 22:24:33 oooor… enable tracing and see in dmtraceview May 20 22:26:42 or talk to the rubber duck May 20 22:29:35 anyone know how to display html as text? i have hello there! the strong is making it goes italics if i use from html, and without out i see "" in the text May 20 22:31:22 Gaz`, where are you showing that text in_ May 20 22:31:23 ? May 20 22:31:30 textview May 20 22:31:31 and where are you taking it from? May 20 22:31:36 from json on server May 20 22:31:53 Gaz`, call Html.fromHtml() before setting it to textview May 20 22:32:11 yeh but then it shows things in as italics May 20 22:32:28 just trying this now info.setText(Html.fromHtml( listItem.description ).toString()); May 20 22:32:56 hey it works :) May 20 22:36:04 is it possible to play music (the user has stored in his/her device) in your application? May 20 22:36:57 how do you think a music player app works ? May 20 22:37:58 yeah isn't it like iTunes in android? May 20 22:38:15 this time I could only reproduce the error on 1/200 devices... it is that ((Fragment3) frag).updateAdapter(); May 20 22:38:46 so frag is null ? May 20 22:39:01 StingRay_, do you have any app ideas for me? :) May 20 22:39:13 for you ? May 20 22:39:20 I have 100's for myself May 20 22:39:27 ok thats a lie May 20 22:39:36 I have 6 apps and 3 games May 20 22:39:44 StingRay_: I tried printing it but the device with the error has no logcat, hehe May 20 22:39:46 but the games are beyond my skillz atm May 20 22:40:31 OpenGL programming is fun May 20 22:40:34 StingRay_, oh what are the apps? =D May 20 22:40:53 the 1 thats I'm doing and 5 others May 20 22:40:57 ;) May 20 22:41:44 StingRay_: is it annoying working on that app (which is kinda big) when you have 5 other ideas waiting? :) May 20 22:41:58 who said the others are small May 20 22:42:05 hehehe May 20 22:42:17 and no cause the stuff I'm prototyping in this app, I need for all my apps May 20 22:42:25 I see May 20 22:42:40 this isn't a big app. Just my implementation and design that is quite erm....overkill May 20 22:42:41 :) May 20 22:42:43 I try to only make apps that require a minimal maintenance May 20 22:43:04 biggest thing will be my theme editor May 20 22:43:10 :| May 20 22:43:22 shuttup May 20 22:43:24 :) May 20 22:43:26 :) May 20 22:43:29 I feel your glare May 20 22:43:34 hehe May 20 22:43:35 * StingRay_ has jedi powers May 20 22:43:54 "you will not implement yet another theme editor..." May 20 22:44:11 org.stingray.yate May 20 22:44:35 uk.co* May 20 22:45:59 but I don't have any app ideas :'( May 20 22:46:02 but back to my previous question.. I want users to send me feedback through a form in the app. Is there a way to do that which doesnt require an e-mail set up on their device? I'm guessing 5000 installations in a year or something May 20 22:46:04 I have so much free time May 20 22:46:22 what would be the most rapid way to create a "wizard style" interface? preferences? May 20 22:46:23 CocoStorm: http://androidforums.com/application-requests/ May 20 22:46:32 Quacked, push it via REST request on your server_ May 20 22:46:36 ? May 20 22:46:46 nice! May 20 22:47:59 I won't bother running a server for it :| May 20 22:48:13 Quacked: there are a few email libs May 20 22:48:41 lacking a server, account and pw stored on device May 20 22:48:47 not great May 20 22:49:51 Can I hide my e-mail but have them send from their e-mail ? May 20 22:50:36 well then you need to ask them and have permissions dont ya May 20 22:53:05 I see May 20 22:53:47 I'll just have a link to open their mail app :) May 20 22:54:05 hmm why am i getting an actionbar on my splash screen, and getActionBar() gets error nosuchmethod May 20 22:54:18 * Quacked goes to google.com to create a new gmail May 20 22:59:21 Gaz`, because you're running on 2.3? May 20 23:00:57 CocoStorm: idea May 20 23:01:08 rather that attempt an app for the sake of it May 20 23:01:42 pick a subject (something you CAN'T do) and build a test app that makes you learn said element May 20 23:02:31 StingRay_, but I could do that whilst actually building something I intent to put on the market? May 20 23:02:36 *intend May 20 23:02:55 have you got anything on the market yet ? May 20 23:03:05 StingRay_, nope which is exactly why lol May 20 23:03:17 I've done two apps now and none of them were for me :( May 20 23:03:35 then you kinda want something that you can do, and is of worth May 20 23:04:06 hard to find unique ideas ;) May 20 23:04:31 only 3 of my 6 are unique May 20 23:04:39 StingRay_, true, but I could also try and have a feature which I don't know how to do yet say, location services and learn something new in the process? May 20 23:04:45 and only 1 is unique outside of android world May 20 23:05:04 so do a tracks app or something May 20 23:05:14 StingRay_, what's a tracks app May 20 23:05:21 any kind of tracking app May 20 23:05:27 mileage recorder etc May 20 23:05:35 running tracking app etc May 20 23:05:40 anything May 20 23:05:54 StingRay_, that's the thing I could do them, but it would be the same or worse than the thousand other tracking apps May 20 23:05:55 :P May 20 23:06:03 indeed May 20 23:06:12 follow the guidelines, style and design May 20 23:06:19 and you wont be able to tell the difference May 20 23:06:20 ;) May 20 23:06:27 Then you're already better than 90% of the apps May 20 23:06:52 and exactly like the 200,000 apps that have your functionality May 20 23:07:00 and no not better May 20 23:07:17 following design guides != better May 20 23:07:18 so what am I in for May 20 23:07:30 shit design < good design May 20 23:07:55 CocoStorm: some of the best ideas come from problems you have in your real life that arise from things you do. of course, if you do nothing, you probably won't have many problems, or interesting ideas. :D May 20 23:08:19 ahahaa…so true May 20 23:08:26 you know why I got into android programming May 20 23:08:37 I needed a remote for my humax box May 20 23:08:40 because you like to torture yourself? :P May 20 23:08:45 that was wifi May 20 23:08:54 and worked with custom firmare I had on there May 20 23:08:56 lol May 20 23:09:01 forgot all about that May 20 23:09:07 firmware* May 20 23:09:20 human box? May 20 23:09:25 oh humax May 20 23:09:28 my bad May 20 23:09:31 sat dish box May 20 23:09:32 yeah May 20 23:09:56 well, I've had a couple of problems that would lead to terrible apps May 20 23:10:14 one of which is the issue of not being able to find an after party after a night out May 20 23:10:16 xD May 20 23:10:51 ooo May 20 23:10:56 u just game me an idea May 20 23:11:02 for an amazing app May 20 23:11:08 or rather your statement did May 20 23:11:14 lol May 20 23:11:20 * StingRay_ searches play/amrket May 20 23:11:21 damn, well there goes my potential idea May 20 23:11:27 :'( May 20 23:11:40 not the app you just said May 20 23:11:44 ah right May 20 23:11:51 but that gave me an idea May 20 23:11:57 yep, adding to the list lol May 20 23:12:04 7 now, dammit May 20 23:12:08 7? May 20 23:12:12 what was the idea? May 20 23:12:38 oh right, thuoght you meant you found 7 similar apps in the market May 20 23:13:29 no, just finished adding it to the ideas bucket I have May 20 23:13:37 actually there are loads here May 20 23:13:44 not looked in a while May 20 23:14:00 * CocoStorm feels envious May 20 23:14:05 oh and a few that I really should ditch May 20 23:14:23 anyone know of an online design tool like balsamiq that has android tablet presets ? May 20 23:14:48 pencil project May 20 23:14:54 but I just end up using PS May 20 23:15:24 or Illustrator May 20 23:15:45 cause there is always something, that you want, that is harder to do in these simple layout apps May 20 23:15:55 or maybe thats just me May 20 23:25:38 is instanceof quite a quick thing ? May 20 23:26:02 or rather prefered to lets say storing a type reference May 20 23:26:23 if processing 100's of views lets say May 20 23:31:44 instanceof is quick, but usually points to a design smell May 20 23:32:29 well atm I store a type int May 20 23:32:37 just wondering if I need to May 20 23:33:12 there was an example on the android docs somewhere where they tried to cast to an interface May 20 23:33:21 in a try catch block May 20 23:33:26 to see if it was of the appropriate type May 20 23:33:46 I think that's probably worse than instanceof :p May 20 23:34:11 well this is just view types May 20 23:34:27 what is this for? May 20 23:34:34 is this a listview or something? May 20 23:35:24 if so you should just be using getviewtypecount etc May 20 23:35:35 na May 20 23:35:44 not a single item in a list May 20 23:35:54 it's ANY view ANYWHERE May 20 23:36:05 I have an attrib list May 20 23:36:13 I store types of views May 20 23:36:21 just wanted to know if I needed to May 20 23:36:30 as instanceof seems, well, ok May 20 23:41:19 ok i need some1 to help un-invent candy crush May 20 23:41:38 that thing takes too much of my time….and I hate both it and the model it uses May 20 23:52:57 i don't see idea CE VCS -> Local History -> Show Local History as being very useful; i think this was part of the whole "you never press ctrl-s" thing May 20 23:53:16 i still use git to show me my changes broken down into /conceptual/ chunks May 20 23:53:32 this is idea history thing is just a stream of BS May 20 23:53:40 what is a change - i started typing for a few seconds ? May 20 23:54:45 i much prefer the stupid behavior of eclipse , saving with ctrl+s, checking in with git when there is a semantic chunk worth saving, and using git diff to do that May 20 23:55:13 of course, IJ doesn't preclude use of any vcs - just saying, what its trying to show seems useless and redundant May 20 23:55:37 except that eclipse has identical behaviour :P May 20 23:55:51 if the tool let me say "now i am working on this" and i can go back in history to see that concept specifically May 20 23:56:07 Mavrik: wat May 20 23:56:20 local history. May 20 23:56:25 Eclipse has it, behaves the same way. May 20 23:56:39 well anyhow, eclipse lets me manually save with ctrl+s i like that May 20 23:57:28 g00s you still hating on intellij May 20 23:57:43 ron_frown: no, i like it May 20 23:58:16 meh May 20 23:58:32 its the same thing just little things here and there that are better, and some that are worse May 20 23:58:42 def a learning curve May 20 23:59:13 i was just using ms visual studio, i can barely use it after eclipse, and i was slagging eclipse so much May 20 23:59:23 haha May 20 23:59:26 ctrl click to go to a declaration is something i use constantly May 20 23:59:36 god thats the reason why eclipse is such torturous to me May 20 23:59:40 and "call hierarchy" May 20 23:59:43 I came from vs.net which is a godsend May 20 23:59:48 hehe May 20 23:59:51 i came from netbeans May 21 00:00:16 netbeans I'm liking more and more May 21 00:00:23 imo they have the second best c++ ide May 21 00:00:30 yeh May 21 00:00:36 its great for making swing guis May 21 00:00:41 amazingly good for that May 21 00:00:57 and was the only good solution for j2me May 21 00:03:07 also got svn integrated into eclipse which is kinda nice i guess May 21 00:03:15 but i guess they all do it May 21 00:08:39 hello, is it possible to tap into the api that handles the offline voice typing? May 21 00:08:54 i have the code from https://code.google.com/p/google-voice-typing-integration/issues/detail?id=5&thanks=5&ts=1369094874 May 21 00:09:06 thats also the question i have :) May 21 00:28:38 ron_frown: is the idea c++ ide written in java ? May 21 00:29:19 yes May 21 00:29:20 haha May 21 00:29:42 well there isnt reallly a c++ idea May 21 00:29:55 just idea with c++ support plugin May 21 00:30:09 c++ does need to drop the #include paradigm at some point and switch to modules May 21 00:30:18 ah, i got the impression they were making a whole separate ide May 21 00:30:20 jsus chist May 21 00:30:30 g00s notes on that? May 21 00:30:34 they may be May 21 00:30:40 and if so I'm excited May 21 00:30:44 Younos: apple actually put forth a proposal a few months ago May 21 00:30:56 seriously... I hate that this tornado shit happened May 21 00:31:01 screw tv for a few days May 21 00:31:56 g00s: nice. i hope it will make it. it should help the development of great ide tools May 21 00:32:10 i still use emacs for my c++ stuff May 21 00:32:22 g00s proposal for what May 21 00:32:37 cause xcode is shit May 21 00:33:40 oh nice May 21 00:33:43 you are right May 21 00:34:28 i recovered a few of my old msx floppies last week May 21 00:34:53 it had Hisoft C, one of those very early primitive compilers May 21 00:35:14 http://www.jetbrains.com/objc/features/cpp.html May 21 00:35:15 it cant link, so #include will just pull in all the function bodies :P May 21 00:35:21 I really hope that wasnt what you were talking about May 21 00:35:30 no floats, no structs May 21 00:35:31 looks like its gonna be housed under appcode May 21 00:35:57 ron_frown: did you find the apple header proposal ? May 21 00:36:37 bi May 21 00:36:46 no May 21 00:36:58 is there any way to figure out which app is currently using the camera? May 21 00:38:35 NSA_App May 21 00:40:30 g00s: was that to me? May 21 00:40:36 :) May 21 00:41:05 ron_frown: its monday, where is your POC :D May 21 00:41:21 no sourceduck duck May 21 00:41:34 no esta aqui May 21 00:41:41 I gota lot done, but no poc May 21 00:41:49 blew the tire out on the bac of the bike May 21 00:41:55 so I was just relaxing mostly May 21 00:42:13 soon May 21 00:42:46 there are some things I realized could be problematic I havent worked through yet May 21 00:50:05 can anyone provide a fix to this logcat error? `Unable to open log device '/dev/log/main': No such file or directory` May 21 00:50:11 http://stackoverflow.com/questions/4867971/dev-log-main-not-found didn't fix it May 21 00:50:17 (none of the answers did) May 21 00:50:58 i'm on a nexus 4 with stock 4.2.2 May 21 00:53:41 ls -ld /dev /dev/log /dev/log/main May 21 00:54:00 I'll assume your phone isn't rooted, and you aren't root? May 21 00:54:25 nope, not rooted May 21 00:54:31 output of that command: May 21 00:54:32 drwxr-xr-x root root 2013-05-20 17:13 dev May 21 00:54:36 deep, that didn't work May 21 00:54:58 https://gist.github.com/anonymous/dc2ae3ede22788a3aa31 May 21 00:55:09 if you aren't root, then how can you have done any of the fixes/answers from that thread? May 21 00:55:17 I'm looking for resources on H.264 media playback. I'm not turning up clear results in Google searches. Can anyone guide me in the right direction? May 21 00:55:25 mcr: i tried the ones that didn't require root May 21 00:55:36 sorry for the lack of clarity there May 21 00:56:03 I'm looking for a library that will me to play render h264 frames on the screen. May 21 00:56:14 wait, none of those worked without root May 21 00:56:17 jmgrosen, all three answers require root. May 21 00:56:22 yeah, sorry :P May 21 00:56:36 there was one with a #*#* type number to dial, but that didn't bring up anything May 21 00:56:50 first answer here: http://stackoverflow.com/questions/6941710/unable-to-open-log-device-dev-log-main-no-such-file-or-directory?lq=1 May 21 00:58:23 i'm really stumped, and it's hard to develop without logcat :P May 21 00:58:32 you need a dev phone. May 21 00:58:37 jmgrosen: all you need is a rubber duck May 21 00:58:41 to talk to May 21 00:59:10 g00s: i'll make sure to get one… :P May 21 00:59:10 legov: does android not have native support for that ? May 21 00:59:17 mcr: dev phone? May 21 00:59:51 an unlocked, rooted phone. May 21 01:00:16 just to get logcat? May 21 01:00:17 that seems pretty ridiculous May 21 01:00:21 it's never been that way before May 21 01:00:21 StingRay_: I'm not certain. I'm looking at http://developer.android.com/reference/android/media/MediaPlayer.html May 21 01:00:27 As well as http://software.intel.com/en-us/articles/video-playback-app-on-android-whitepaper May 21 01:00:48 http://developer.android.com/guide/appendix/media-formats.html how about May 21 01:00:49 jmgrosen, sounds like Samsung doesn't want people to write apps for their phone. I'd take it back, or phone them. May 21 01:00:51 legov: look into ffmpeg for android May 21 01:01:04 mcr: …I have a nexus 4 May 21 01:01:42 I have an embedded linux device that's capturing video and encoding it to H.264. I wrote a very simple .NET client (boo) to play back listen over TCP for the stream of h264 frames and it plays them back. This was for a simple demo. I'm interested in writing an android application to render the video as well. May 21 01:02:07 Ultimately I want it send over TCP to the android device but first I want to just get raw h264 video playing on the phone. May 21 01:02:29 jmgrosen, that thread was about Samsung. I was thinking you had the Samsung Nexus whatever-number-it-was. May 21 01:02:51 mcr: sorry, i didn't mean to imply that May 21 01:02:52 so, if you have a nexus 4, why isn't it rooted? May 21 01:03:28 well, before now, i haven't had much reason May 21 01:03:47 legov: Try VideoView but if it doesn't work, I believe ffmpeg is the most powerful video container, it supports all formats but its not easy, you gotta tinker with the NDK May 21 01:04:41 Thank you shmooz. I'm willing to dive into ffmpeg but was hoping to get something quicker with the native android api. May 21 01:05:02 [Eventually] I want RTSP streaming from this embedded device. May 21 01:05:12 But that's a few weeks [months?] down the road. May 21 01:05:38 VideoView/MediaPlayer plays mp4 and some more locally, and can stream 3gp rtsp:// stuff, but its very limited May 21 01:05:57 so is root really the only option? May 21 01:06:25 i thought most google android devs didn't root their phones May 21 01:06:31 no. You could buy another phone that runs CM. You could get an iPhone. May 21 01:06:32 something seems wrong May 21 01:06:48 Android devs do not *need* to root their phones, because they come, from Google, already rooted. May 21 01:07:24 unlocked or rooted ? May 21 01:07:29 $ adb shell May 21 01:07:34 shell@android:/ $ su May 21 01:07:50 shmooz: looks like shmooz supports h264 decoding! i'm gonna give thsi a shot. May 21 01:08:18 /system/bin/sh: su: not found May 21 01:08:22 not rooted :/ May 21 01:08:52 bought straight from google play May 21 01:09:51 if i had root, how would i fix this problem? May 21 01:10:06 "rooted" means that the phone's bootloader will let you install any rom you want. so you can install /bin/su if you want. May 21 01:10:23 …no, that's an unlocked bootloader May 21 01:10:30 different things May 21 01:19:22 can't seem to get butterknife working with android studio JakeWharton May 21 01:19:34 did you enabled annotation processing? May 21 01:19:54 yes, i'm getting java.lang.NoClassDefFoundError: butterknife.Views May 21 01:20:11 then you aren't including the jar in your apk May 21 01:22:00 JakeWharton: like http://penr.ee/P5sb ? May 21 01:22:29 seems right to me May 21 01:22:40 that's how it works in normal IDEA May 21 01:23:04 Yeah I've done it before with IDEA, but for some reason it isn't working properly for me in studio May 21 01:23:10 not sure what else to check May 21 01:26:28 drudge: it looks like you have 2 android configurations? the Android and Android-Gradle? May 21 01:26:41 maybe? May 21 01:26:50 JesusFreke: this is a brand new project created from studio May 21 01:27:18 it created them both automatically May 21 01:29:22 are you getting the error when building in IDEA? or with gradle from the command line? May 21 01:30:56 JesusFreke: the build works fine, i'm getting the error when running in the emulator May 21 01:32:03 https://gist.github.com/anonymous/5616962 May 21 01:33:57 JesusFreke: does jetbrains update plugins for IJ independent of the whole ide ? May 21 01:34:20 when i check for updates, is that the ide and a new set of bundled plugins, or does it fetch new plugins and store them outside the bundle May 21 01:34:31 g00s: not positive. I don't recall seeing anything about it updating plugins May 21 01:34:33 oh yeah you don't use os x :P May 21 01:34:54 what does that have to do with anything? May 21 01:35:08 ok well this is frustrating May 21 01:35:13 app bundle is os x May 21 01:37:51 plugins update independently, of course May 21 01:39:19 Hey all- I fucked up the install on the ADT. What's the best way to wipe it completley so the next install has no problems? May 21 01:40:15 best way or a way ? May 21 01:40:22 you can just delete wherever it is and fix your path May 21 01:40:27 you can also buy a new computer May 21 01:40:31 lol May 21 01:41:43 I try deleting it and get this-http://puu.sh/2XNsn.jpg Cant find where it is running for the life of me May 21 01:42:43 Any ideas? May 21 01:43:07 drudge: oh, did you add a new library for it? May 21 01:44:39 williamturton: stop adb May 21 01:45:16 StingRay_, Thanks Mate! May 21 01:46:01 Is there any way to trigger a BroadcastReceiver to get key presses outside the app? May 21 01:46:09 fyi, i forget now, not used windows in a while, but you can open a pannel that shows all processes and files owned/open by them May 21 01:46:13 from a physical hardware keyboard May 21 01:46:21 williamturton: are you getting the whole chebang eclipse uber install with adt ? May 21 01:46:33 is that the adt bundle ? May 21 01:47:01 Yep May 21 01:47:11 do you prefer eclipse 3.8 or 4.2 ? May 21 01:47:17 Errrrr May 21 01:47:24 I am new to programming May 21 01:47:26 drudge: nm. I think you have to manually add a dependency in the build.gradle file May 21 01:47:30 So I really don't have one May 21 01:48:33 ok, i'll give you 3.8 for now :) first, remove your install. if there are file locks or some stupid crap, just reboot or something May 21 01:48:34 JesusFreke: there was compile files('libs/android-support-v4.jar') so i changed it to compile files('libs/android-support-v4.jar', 'libs/butterknife-1.3.2.jar') and it created the library/dep but still did not work. compiles fine, throws at runtime May 21 01:48:58 g00s Done May 21 01:49:22 williamturton: then delete your existing install, including workspace - as long as you don't have code in your workspace May 21 01:49:48 then download "platform runtime binary" http://download.eclipse.org/eclipse/downloads/drops/R-3.8.2-201301310800/ May 21 01:50:00 drudge: try a clean build. either rebuild from the menu, or even do a ./gradlew clean from the command line May 21 01:50:17 williamturton: follow directions here http://developer.android.com/sdk/installing/installing-adt.html May 21 01:51:11 the ADT will bring in the java environment. thats all. May 21 01:51:44 Thanks! May 21 01:52:39 g00s: heres a question for ya May 21 01:52:43 drudge: yeah, I was just playing with it a bit. After adding the dependency in the gradle file, I had to a ./gradlew clean from the command line, and then it finally compiled the library in to the apk on the next build in IDEA May 21 01:52:45 williamturton: is new user May 21 01:52:57 better to get him on AS/IntelliJ ? or eclipse May 21 01:52:59 StingRay_, Yep May 21 01:53:05 @g) May 21 01:53:09 @g00s May 21 01:53:24 StingRay_: i think eclipse, since there are lots of instructions May 21 01:53:33 i haven't seen shit for AS May 21 01:54:09 JesusFreke: that did it! thanks man. I kept trying to rebuild from the menu May 21 01:54:11 hmm true May 21 01:54:56 drudge: yeah, you would think that would work. heh May 21 01:56:59 and i think the adt still does better hand holding for noobs May 21 01:56:59 i'm enjoying intellij tho :) May 21 01:57:21 i dont think its the right time to get noobs started on early access preview; deciding between eclipse / ide ce + plugin is another story i guess May 21 01:57:23 this reply to reviewers feature in the play store is really nice, but what i'm really missing is the punch reviewer in face feature May 21 01:58:51 quit May 21 02:00:34 g00s, yes, i think they'rea ll up May 21 02:00:38 or at least the android ones are May 21 02:01:38 i do my xmls manually, i think noobs should too - so i don't really recommend the ADT 'forms' for stuff like manifest May 21 02:01:38 i think they should just nuke all that shit, actually May 21 02:01:38 but the lint integration is still better imho May 21 02:01:38 which can be useful for noobs May 21 02:03:58 sry, got disconnected. dunno if/what i wrote went through May 21 02:04:53 "(07:01:38 PM) g00s: which can be useful for noobs" May 21 02:04:56 was the last thing I saw May 21 02:05:24 ok: May 21 02:05:29 so what i have been doing these past few days is develop in idea CE, and then before commit, shutdown and run eclipse / adt / lint … seems to produce a slightly different list of lint warnings, although maybe my configs for that are different May 21 02:05:39 or it could be the way idea runs lint, dunno May 21 02:05:43 oem May 21 02:05:44 :D May 21 02:06:03 err, EOM May 21 02:13:13 hmm the drawerlayout seems to have some issues with ABS May 21 02:13:53 anyone here used GCM in an app? May 21 02:18:18 how do you exclude the registration ID when backing up a GCM app? seems to back it up on its own (I don't store it in my SharedPreferences, it creates its own GCM-specific file in shared_prefs) May 21 02:23:27 Is it possible to dynamically play a sound from the file system? May 21 02:23:36 Hi, so I made an arraylist of arraylists as a public variable, but when i add to it it ends up only preserving the final piece, but preserving it multiple times. public static ArrayList>> allComments = new ArrayList>>(); May 21 02:24:20 my call to it is allComments.get(0).get(0).get(TAG_QUERY).toString() or allComments.get(1).get(0).get(TAG_QUERY).toString() but even though it appears it would have different results, it ends up having the same content. May 21 02:31:51 morning! May 21 02:38:59 i have a grid view full of image views, and I'm trying to change the resource of the image view on click, which seems to be working correctly for every item except the first one, but they are all generated exactly the same May 21 02:39:30 anyone know what i should look into? May 21 02:40:08 JakeWharton, have you played around with the drawer and abs? May 21 02:46:54 g00s: staging AndroidSQLiteServer to github now... May 21 02:47:14 jasta: awesome … May 21 02:48:22 link when ready :) May 21 02:56:18 idea CE context menus are effing strange; right click on a png has 'reformat code' :D thats a cool trick :D May 21 02:58:43 Does anyone know of an end-to-end sample for the MediaExtractor and MediaCoec API's for audio? May 21 02:58:44 *mediacodec May 21 02:58:59 g00s: https://github.com/jasta/android-sqlite-server/ **** ENDING LOGGING AT Tue May 21 02:59:58 2013