**** BEGIN LOGGING AT Tue Aug 06 02:59:58 2013 Aug 06 04:34:43 its so quiet in here tonight; did the NSA sack everyone because of that crazy conversation yesterday :P Aug 06 04:40:37 -.-- . ... Aug 06 04:43:40 i'm trying to write a simple app that is console-based.. eg, there is no UI. i'm trying to run it from the console and have it output the current gps location Aug 06 04:43:58 if this is a topic for #android-root, let me know Aug 06 04:57:01 billybobjoe: it is more of a topic for there, but honestly i don't think anyone either here or there will be of much help Aug 06 04:57:23 you can checkout the code in AOSP for the "am" command, which gives you an idea of a command line app interacting with androidy things Aug 06 04:58:04 GPS APIs might be a bit of work that way (you don't have a context) . you might be better of making your app a normal app put outputting to the logcat Aug 06 05:11:49 hey all, how many of you are running android studio? Aug 06 05:19:55 fb|: how many people do you expect to respond? this is irc, half the people here won't even see your message for another 12 hours... anyhow, I am Aug 06 05:27:04 Leeds using the gradle stuff yet ? Aug 06 05:27:40 g00s: nope... to be honest, I've barely touched any Android code in the past year or so - mostly been doing django/python Aug 06 05:31:27 oh! Aug 06 05:31:57 will be doing at least a prototype app for $NEW_PROJECT in the very near future though, I think Aug 06 05:31:58 its a full time job just keeping stuff compiling with these tools :| Aug 06 05:39:57 Leeds has the demand for django stuff gone up/down/ etc ? Aug 06 05:40:14 can someone point me to the location of the stagefright source code in android? Aug 06 05:40:53 its supposed to be frameworks_base/media/libstagefright, but apparently that path is way out of date... ive been searching for quite a while now and github search is quite bad :| Aug 06 05:41:21 download all the codes and search with silver searcher Aug 06 05:47:40 how do i open the files the emu produces like sdcard.img, and why the hell does it Aug 06 05:52:01 Now I know why my data queries are giving different answers Aug 06 05:52:08 I'm querying two different data sources Aug 06 05:52:08 holy shit Aug 06 05:52:11 Blech Aug 06 05:52:14 did anyone's phone just go crazy Aug 06 05:52:24 Hi all I am having an issue with ACTION_UP not getting called even though I am returning true. Wondering if I could get some knowledgable person to spare me some time :D Aug 06 05:53:32 ahh I just thought about something... this is android development irc not android app development irc huh Aug 06 05:53:37 wow I feel dumb Aug 06 05:53:59 you know you have a very specific and undocumented issue when searching for the error brings 3 logcat dumps on pastebin/other websites... Aug 06 05:54:15 Thorbear: thansk for the reply Aug 06 05:54:18 read the topic again hacker_ Aug 06 05:54:24 I was trying to get RootTools working as a jar dependency Aug 06 05:54:29 couldn't get the gradle configuration to work Aug 06 05:54:43 but I wound up downloading the RootTools source code and including it in my package Aug 06 05:54:53 now it compiles fine and no dependency issues Aug 06 05:55:06 I hope they get the gui for gradle working soon in Android Studio :D Aug 06 05:55:42 what would a gui for gradle look like Aug 06 05:55:47 its totally dynamic Aug 06 05:55:55 well build.gradle files are static Aug 06 05:56:06 In that case any takers? Aug 06 05:56:07 according to the dialog in AS they're going to add support for it Aug 06 05:56:10 well, yeah the physical file doesn't change :| Aug 06 05:56:13 here goes, hopefully out of sheer chance someone dealt with the same problem i'm currently tearing my hair out over.. I'm trying to stream video to the android mediaplayer. It works all fine and dandy except for one 2.4GB movie. The odd thing is I see the mediaplayer requesting the file from my server, and I return the appropriate 200 ok response, but nothing progresses further... Aug 06 05:56:24 this it what it says Aug 06 05:56:26 We will provide a UI to configure project settings later. Until then, please manually edit your build.gradle file to configure source folders, libraries and dependencies. Aug 06 05:56:28 mediaplayer repeatedly requests the same file without actually requesting data Aug 06 05:56:29 NOTE THAT EDITS MADE IN THE FOLLOWING DIALOG DO NOT AFFECT THE GRADLE BUILD. Aug 06 05:56:32 The dialog can be used for temporary adjustments to SDKs etc. Aug 06 05:56:33 so it never tries to play the file Aug 06 05:56:42 I get a bunch of 08-06 07:48:23.728: V/AwesomePlayer(208): now cached 0 bytes of data Aug 06 05:56:54 and eventually a error -1004, ERROR_IO Aug 06 05:57:01 fb| my advice is earn the DSL, as much as i hate it Aug 06 05:57:06 *learn Aug 06 05:57:08 http://pastebin.com/u8JRGA5W Aug 06 05:57:15 ACTION_UP never gets called Aug 06 05:57:17 yeah :( I'm slowly learning Aug 06 05:57:17 no idea why Aug 06 05:57:25 g00s: luckily I've been doing a lot more android dev Aug 06 05:57:31 I was kind of rusty at it Aug 06 05:57:47 fb| look at eclipse ADT … does anybody use those stupid "gui" editors for AndroidManfest, etc ? Aug 06 05:57:54 they are just big forms Aug 06 05:57:57 yes lol Aug 06 05:57:58 yeah :/ Aug 06 05:58:08 I do like the gradle build system though Aug 06 05:58:15 It just pulls up auto and does what I need Aug 06 05:58:18 it seems to be quicker when you have multiple dependencies Aug 06 05:58:25 since it can do a parallel build Aug 06 05:58:37 I don't think they had support for it in ADT/make Aug 06 05:58:59 One more time lol any takes to look at my code and take a guess as to why ACTION_UP never fires? http://pastebin.com/u8JRGA5W Aug 06 06:00:01 hacker_: you should enable syntax highlighting :D Aug 06 06:00:10 dually noted Aug 06 06:01:13 http://pastebin.com/CrbT8JeE Aug 06 06:01:36 btw if anyone was wondering, this is my app. I got it to work with ActionBarCompat (migrating from ActionBarSherlock) and Eclipse. Aug 06 06:01:40 https://dl.dropboxusercontent.com/u/1178606/android/unlocker/2013-08-05-unlocker_app_update_working_root.png Aug 06 06:02:25 i take it no one has much experience with the mediaplayer and streaming... :} Aug 06 06:02:28 :|* Aug 06 06:02:45 Seems lots of issues in this chat little help lol Aug 06 06:02:49 Maybe I should check back another time Aug 06 06:02:57 hacker_: Aug 06 06:03:05 try removing the logic check for ACTION_CANCEL Aug 06 06:03:12 and see if just ACTION_UP will get called that way Aug 06 06:03:33 Does the mediaplayer have a hard limit on file size? Aug 06 06:03:43 this file is probably over int_max... Aug 06 06:04:08 although storing filesizes in anything but a long doesnt make any sense Aug 06 06:04:10 or you can even do a call to getActionMasked() in a Log.e() to see what's getting fired Aug 06 06:04:23 i highly doubt android limits the size to int_max Aug 06 06:05:46 actually... let me try to manually set the length to int_max -1 Aug 06 06:08:53 fb| I have thanks for the reply Aug 06 06:09:22 getActionMasked() Aug 06 06:09:25 hmm.. Aug 06 06:09:28 lemme try that Aug 06 06:09:52 but wait if that code isn't getting fired how would I print out that info Aug 06 06:10:21 Hi, I'm stuck when deploying my app on the emulator "[info] Packaging /xxx.apk" with sbt, do anybody know how I could get more info about what's wrong? Aug 06 06:15:51 fb| okay so with actionMasked I get a reply from ACTION_UP but not when ACTION_MOVE fires first Aug 06 06:16:11 make any sort of sense? Aug 06 06:33:19 * monsti raises on top Aug 06 06:46:37 Where are the release notes for Android Studio? Aug 06 06:47:16 Snicers-Home: google Aug 06 06:47:27 I was told groovy could be used for android dev. does that mean any language using the java JVM can be used? Aug 06 06:47:27 http://tools.android.com/recent Aug 06 06:47:53 BullShark-Nexus: Pretty much. You can use Scala, even. Aug 06 06:48:01 hi there. there is a way in order to check if a user is at 'x' metres from a defined location? Aug 06 06:48:32 maybe because it all compiles into the same java bytecode Aug 06 06:48:37 Well, more so that the language compiles to java bytecode Aug 06 06:49:02 iirc the tools convert from java bytecode to dalvik Aug 06 06:49:04 seitensei, any reason why the "Release Notes" button in Android Studio doesn't actually take you to release notes? Aug 06 06:49:18 Snicers-Home: google :) Aug 06 06:49:32 Snicers-Home: it's okay, I've never understood that either Aug 06 06:49:54 seitensei, I did find them, just seemed a bit odd. Aug 06 06:50:18 I meant google the company, not google search :) Aug 06 06:50:38 not really wanting to do that. just curious. I had to use groovy for a gitblit irc hook script, not a fan of weakly typed not explicit languages. Aug 06 06:55:22 there is a way in order to control from the location of the user (from gps values) if he is at at least 'x' metres from a defined location?Do I have to look for a specific formula? Aug 06 07:01:00 you mean like geofencing? Aug 06 07:01:40 http://developer.android.com/training/location/geofencing.html Aug 06 07:02:10 is that what you're looking for? Aug 06 07:02:34 Is there a java dev channel that is open? Aug 06 07:03:00 #java ? Aug 06 07:03:19 Inv only it says Aug 06 07:03:40 oh, just have to register your nick Aug 06 07:03:48 Oh Aug 06 07:04:09 Nm just tried again and it worked Aug 06 07:07:42 Stochasticity yes it is. I'm able to retrieve longitude and latitude of both the user position and the destination location. now I want to check if the distance between the user and the destination is less than or equal to a fixed 'x' value Aug 06 07:09:01 http://developer.android.com/training/location/geofencing.html this is what I can use right? Aug 06 07:10:17 jewels: looks like it, yes - I haven't worked with geofences myself but they should provide what you're looking for Aug 06 07:10:21 what does 4.3 offer new to the developer? Aug 06 07:10:45 http://developer.android.com/about/versions/android-4.3.html Aug 06 07:11:02 bah you beat me to it Aug 06 07:11:31 Stochasticity thank you Aug 06 07:11:34 hah, you can next time Aug 06 07:12:16 Jewels are Aug 06 07:12:29 jewels: you are able to define a radius around a given lat/long that triggers when the individual enters within that radius; the only catch is that I'm not sure what units 'radius' is in, but I'm sure you can figure that one out Aug 06 07:13:08 and no problem, hope it works for you Aug 06 07:13:10 Oh I thought you were looking to do the mah Aug 06 07:13:24 Math Aug 06 07:13:56 Stochasticity I'm trying to understand it. I've downloaded the example from the android reference website and now I'm studying it. :) Aug 06 07:14:09 fantastic, good luck :) Aug 06 07:14:17 Hey all Aug 06 07:14:57 So when I don't have ACTION_MOVE fire first ACTION_UP will fire but not the other way around Aug 06 07:15:38 here is the code http://pastie.org/8210647 Aug 06 07:16:47 my sd-card died :( Aug 06 07:18:04 sorry hacker_, I'm new to this as well or I'd try to help you out Aug 06 07:18:16 no worries Aug 06 07:18:25 [well, that assumes you're new, more accurately, I am :p} Aug 06 07:18:37 I am farely new Aug 06 07:18:43 I know what I know lol Aug 06 07:18:49 :) Aug 06 07:19:08 building a launcher though Aug 06 07:19:14 proving a learning task Aug 06 07:19:54 hah, that I can understand Aug 06 07:20:40 I have so much potential but as with everyone not the greatest idea to put it to but I thought everyone uses launchers why not give it a go heh Aug 06 07:21:49 i don't really understand what you're asking, ACTION_UP isn't firing after ACTION_MOVE finishes ? Aug 06 07:22:46 is it common to write all the code of one activity into one java file? Aug 06 07:23:15 Skullcrasher: you should focus on re-usable, uncluttered code Aug 06 07:24:17 so outsourced classes n stuff for an activity should be ok? just oop Aug 06 07:24:37 because all example always have everthing in one file Aug 06 07:25:52 btw, is there a kinda mockup tool? so i can see how my views are related to each other? Aug 06 07:26:13 android studio has something Aug 06 07:26:14 or should i just use gimp/photoshop/visio etc Aug 06 07:27:55 actually that may be UML... Aug 06 07:28:35 Hey everyone, after performing a factory wipe in TWRP, do I need to worry about the bootloader/rooting again or can I just install a new ROM, then a new Kernel, and then restart phone? Aug 06 07:29:09 oops lol wrong thread Aug 06 07:29:18 wrong *channel Aug 06 07:30:33 yes, but i thought more of and graphical method. just to see which view activates another, how to transfer from one view to the nect Aug 06 07:30:44 not all that class stuff Aug 06 07:37:21 Hi all, is it possible to put 2 items inside the actionbar overflow menu and one item alsways visible (next to the 3 dots) ? Aug 06 07:44:50 other question: what's the best way to save 2 values (login + username) , nothing else than those 2 values. (need the values when app starts) Aug 06 07:46:01 openid ;) Aug 06 07:46:42 is this with an account on your app? like your app is visible in the settings? Aug 06 07:48:25 FrancescoV: for the ab-items: the one you want to see always should have showAsAction="ifRoom" (or ="Always", though ifRoom doesn't make your app look strange on small screens), see https://developer.android.com/guide/topics/ui/actionbar.html#ActionItems Aug 06 07:49:08 ponzellus: tnx :) Aug 06 07:54:11 #58618 - "Music" player does not exist in Android 4.3, cannot play music in Nexus 7 Aug 06 07:57:36 Is there a way to automatically identify the user without needing to register? Aug 06 07:59:31 fmj45 is that a question about irc? Aug 06 07:59:58 Android Aug 06 08:01:13 you can use device's user account for that Aug 06 08:01:19 I believe each device has a unique signature that can tell it apart from other device Aug 06 08:02:11 it's highly advised you don't use that though ^ Aug 06 08:02:26 see this: http://developer.android.com/google/play-services/auth.html Aug 06 08:02:46 Karlo does that require the serverside to use openid calls? Aug 06 08:03:06 I don't think so but I haven't use it yet Aug 06 08:03:38 used* Aug 06 08:03:51 phone id Aug 06 08:21:53 hi everyone. Aug 06 08:21:59 hello Aug 06 08:22:28 mithrop wanna help me with an issue? Aug 06 08:22:30 heh Aug 06 08:23:22 I am looking for the size of a component. the problem is : it is not drawn for now. Actually, I am looking for make a slide effect on a menu, so I have to know the animation length before the component drawing. Any idea about it ? ask any question if I am not clear :( Aug 06 08:23:44 hacker_, ask your question. if somebody know the answer, he will write it down here :) Aug 06 08:24:14 Can you decide the size before it's created? Aug 06 08:24:31 then you can use your set size to work off of Aug 06 08:24:34 and I have Aug 06 08:24:38 no one can really help lol Aug 06 08:24:52 http://pastie.org/8210795 ACTION_UP doesn't fire after ACTION_MOVE Aug 06 08:25:42 I tried it. but my screen have some menu, so the last one "should not" be drawn on the screen, so the calculated height is always 0 except if I remove the previous components in the layout. Aug 06 08:26:26 hacker_, i I will not read all this ^^ can you give me the line with the ACTION_UP firing ? Aug 06 08:27:18 idk what you mean exactly Aug 06 08:27:23 it's all of that Aug 06 08:27:25 hehe Aug 06 08:27:36 and I didn't say fetch the height Aug 06 08:27:43 I said decide a height for it Aug 06 08:27:46 like 50px Aug 06 08:27:57 than base your calculations off of that Aug 06 08:28:06 using pixels is a really bad idea on Android devices ^^ Aug 06 08:28:13 dp w/e Aug 06 08:28:56 you get the idea right? Aug 06 08:29:29 your code seems a little complicated... a lot of call to the same function, then to super ... Aug 06 08:29:47 hehe it is kinda complicated yes Aug 06 08:29:51 I have to call to super Aug 06 08:30:06 I will try your way. but I like to use the size calculated by the SDK. a futur evolution will be a lot easier this way ^ Aug 06 08:30:19 because that is a horizontalscrollview implementation Aug 06 08:30:34 don't you should call super everytime ? Aug 06 08:31:22 not if you are not extending a class that needs to have its touch responders activated when yours aren't err Aug 06 08:31:49 anyways be right back good sir I'm going for a cigarette Aug 06 08:31:59 hey, is /msg NickServ identify . Aug 06 08:31:59 hey, does Sherlock Action has SwitchPreference? Aug 06 08:35:14 afternoon Androids Aug 06 08:35:31 morning :) Aug 06 08:40:30 Can anyone recommend a 3.5mm headphone - bluetooth adaptor that works well with android? Aug 06 08:41:14 SpeedEvil isn't that universal? Aug 06 08:41:35 In principle yes. Aug 06 08:41:40 than? Aug 06 08:41:41 However I have one that doesn't. Aug 06 08:41:46 how? Aug 06 08:42:28 It won't pair. Aug 06 08:42:34 I have no idea why. Aug 06 08:42:39 wrong pair code? Aug 06 08:42:42 It works with a windows laptop. Aug 06 08:43:07 Same pairing code I'm assuming Aug 06 08:43:15 yes. Aug 06 08:43:38 never heard of that... Aug 06 08:43:45 Was idly wondering if anyone had a recommeded model. Aug 06 08:44:13 I recommend the 8 dollar biglots model lol Aug 06 08:46:11 does the phones bluetooth work for sure Aug 06 08:46:25 yes. Aug 06 08:54:38 hey guys, what's the best 3d lib right now that's avaible on ubuntu? Aug 06 08:54:54 I tried libgdx but it's just too buggy atm Aug 06 08:55:08 how do i know which permissions my app has to use? Aug 06 08:55:17 your manifest Aug 06 08:55:20 .. Aug 06 08:55:31 yes, i told to use internet permission Aug 06 08:55:49 then you have that permission Aug 06 08:55:53 but how do i know which permissions my functions need Aug 06 08:56:40 logcat tells me many: unknown permission ... Aug 06 08:56:57 on warning level Aug 06 08:58:03 dunno Aug 06 08:58:21 check here http://developer.android.com/reference/android/Manifest.permission.html Aug 06 09:18:47 should I design my program in code or in xml Aug 06 09:33:51 when apps bind to a service, is there a way to give one app more permissions than another app? Aug 06 09:39:09 I'm playing around with the geocoder trying to get the address at the current location, I can get the lat and lng but when running Geocoder.isPresent() in the emulator it returns false. Any ideas why? Aug 06 09:40:18 https://gist.github.com/Artmann/725711237a8cd1142296 Aug 06 10:25:11 Hey, I have an image view with a circle drawn on it which I animate to be rotating. How can I make it be in the background so that the edges (which in the PNG are transparent, by the way) don't overlap the other views? Aug 06 10:31:07 hi Aug 06 10:31:24 how can I modify the UI from a BroadcastReceiver? Aug 06 10:31:30 I read this post: http://mobile.tutsplus.com/tutorials/android/android-fundamentals-intentservice-basics/ Aug 06 10:32:04 but the method "findViewById()" isn't available inside the BroadcastReceiver … Aug 06 10:33:05 Get a context Aug 06 10:33:12 This is android you always need that stupid context shit everywhere Aug 06 10:33:42 Actually you need to run that on some view Aug 06 10:33:59 It will then search all its children for one with that ID Aug 06 10:35:11 I have the context Aug 06 10:35:11 public void onReceive(Context context, Intent intent) { Aug 06 10:35:26 but context has no method to find a object by id Aug 06 10:36:32 bdrop: do you have a reference to the activity/fragment? Aug 06 10:37:09 if you followed that article then you should have access to findViewById Aug 06 10:37:28 (because your broadcastreceiver should be a non-static inner class of the main activity) Aug 06 10:37:32 Okay so I need to convert my linear layout to a frame or relative layout. Aug 06 10:37:41 Which is one is faster? Aug 06 10:38:43 damn it isnt a inner class Aug 06 10:38:45 thanks! Aug 06 10:50:54 Was it really necessary for the default indeterminate progress bar to look like shit? Aug 06 10:51:26 does anyone know how to set my key in android studio? Aug 06 10:51:30 I didn't set it up properly with gradle Aug 06 10:51:44 and when I upload APKs it says it's been signed with a key other than the one that I originally signed with Aug 06 10:52:08 a little spinner looks like shit? Aug 06 10:52:10 marrrk: having a bad day, are we? Aug 06 10:52:21 Not particularly. Aug 06 10:52:25 well, he wasted his whole day dicking with preloaded scala bullshit Aug 06 10:52:32 * pfn shrugs Aug 06 10:52:38 That was yesterday! Aug 06 10:52:51 same difference to me Aug 06 10:53:36 Yesterday = Today? Aug 06 10:53:59 With that I can prove to you by total induction that any day is yesterday! Aug 06 10:53:59 and tomorrow==Wednesday! Aug 06 10:54:29 That's true, Leeds. Aug 06 10:55:09 What about your bad day then? Aug 06 10:55:46 my day has been fine... Aug 06 10:56:24 Well then you could have answered your answer about "us" having a bad day yourself! Aug 06 10:57:50 rhetoric, darling... Aug 06 10:58:15 I'm from Leeds! Aug 06 10:58:49 If you start a conversation with someone about that city it might not please Mr. Leeds! Aug 06 11:00:57 Where can I specify where the Android Studio keystone path is? Aug 06 11:02:35 emilevictor: have you tried this: http://www.jetbrains.com/idea/webhelp10.5/exporting-a-signed-android-package.html ? Aug 06 11:03:01 I can't currently open Eclipse, I'll see if I can fix that first Aug 06 11:03:07 I might provide a gist for the eclipse error, fi that's OK? Aug 06 11:03:27 https://gist.github.com/emilevictor/51b5c9b6a8354d8059f4 Aug 06 11:04:16 The error is Eclipse. Aug 06 11:05:37 Does anyone know how to fix that error? :( Aug 06 11:09:00 Have you tried turning it off and on again? Aug 06 11:14:13 Is the saved instance state saved on disk? Aug 06 11:15:01 Will it survive reboots? Aug 06 11:16:19 marrrk, no Aug 06 11:16:30 Okay, so I guess I'll write a file instead. Aug 06 11:23:04 About serialization: Is it correct that I don't need to bump/change the serialVersionUID as long as all I do is to add a new member variable? It will just be initialized to the default value for the type? http://docs.oracle.com/javase/6/docs/platform/serialization/spec/version.html#6678 seems to claim this Aug 06 11:23:22 yes Aug 06 11:26:30 OK, thanks Aug 06 11:27:17 Hi again Aug 06 11:27:29 I have still one question to this article: http://mobile.tutsplus.com/tutorials/android/android-fundamentals-intentservice-basics/ Aug 06 11:28:12 When I should unregister the BrodcastReceiver in "onPause" isnt it wrong just to register it in "onCreate" Aug 06 11:29:13 what about "onResume" or "onStart" dont I have to do it there also (if not already done … depending which state chnages are happening to my activity?) Aug 06 11:29:36 yes Aug 06 11:29:54 http://developer.android.com/images/activity_lifecycle.png Aug 06 11:30:18 as far as I understand I have to at least check it again on "onStart" and "onResume" Aug 06 11:30:20 right? Aug 06 11:30:31 pfn: was this for my question Aug 06 11:30:36 hey i need help. this is my code -> http://ideone.com/qb6ckV :: basically im calling the camera API, capturing a photo, and trying to save into sdcard and reduce its size. but what happens in my code is the saved file is 240 x 180 pixel and aroudn 50 KB (but my phones camera is 13 MP and normal photo is around 3 MB and 4000 x 3000 pixel.) any please Aug 06 11:31:33 im pretty sure you are supposed to get a uri Aug 06 11:31:46 you sure as shit aren't supposed to be getting 3 megs of data in an inent Aug 06 11:32:46 what do you mean? i'm not sending the image via intent putExtra? Aug 06 11:34:29 the last "?" was mistype Aug 06 11:38:05 would like some help with this broadcast reciever problem please http://stackoverflow.com/questions/18078762/android-broadcast-receiver-not-listed-defined-in-manifest Aug 06 11:42:04 omid8bimo: uhm Aug 06 11:42:19 hrnt: ? Aug 06 11:42:28 omid8bimo: isn't that code just using the thumbnail image? Aug 06 11:42:57 your line 21 (if (!imgFile.exists()) probably always matches, and there you write the thumbnail Aug 06 11:43:15 (i have no idea why you think that imgFile would exist) Aug 06 11:43:15 A 4000x3000 px bitmap is around 45 MB.. They're not going to send you that in an intent Aug 06 11:43:50 yeah, i am a bit confused by that code Aug 06 11:43:59 "mThumbnail = (Bitmap) data.getExtras().get("data");" Aug 06 11:44:04 even the code knows that it is getting a thumbnail Aug 06 11:44:06 :P Aug 06 11:44:29 hrnt: well i can remove that "if" in line 21 and probably you are right, it should work but still, the photo saved is very small when i said quality, 100 in compress method Aug 06 11:45:06 mThumbnail is just my emtpy bitmap variable i created in class level Aug 06 11:45:44 omid8bimo: you do realize that the "data" extra in the intent is a thumbnail? Aug 06 11:45:51 and not the full image Aug 06 11:46:21 hrnt: really? i didnt know that!! the sdk doc didnt say anything on this regard :( Aug 06 11:46:40 Then why the hell did you call it thumbnail oo Aug 06 11:46:45 indeed :) Aug 06 11:46:59 and it is documented Aug 06 11:47:01 http://developer.android.com/reference/android/provider/MediaStore.html#ACTION_IMAGE_CAPTURE Aug 06 11:47:10 "The caller may pass an extra EXTRA_OUTPUT to control where this image will be written. If the EXTRA_OUTPUT is not present, then a small sized image is returned as a Bitmap object in the extra field." Aug 06 11:47:23 And you're looking for a file called (cal.getTimeInMillis() + ".jpg, if that doesn't exist you write the thumbnail Aug 06 11:47:32 Images aren't going to be called the time in millis.. Aug 06 11:48:24 dumbnail Aug 06 11:48:24 yeah, that piece of code is wrong in many levels Aug 06 11:48:32 code is not wrong! Aug 06 11:48:38 it just isnt being used in the right place Aug 06 11:49:06 well, my bad. im a newbie and learning for the past 3 months Aug 06 11:49:40 Seems like you just copy pasted some code without knowing what it does Aug 06 11:50:00 have some copy pasta and tomato sauce Aug 06 11:50:17 no actually i wrote it myself based on what i though its was right Aug 06 11:50:37 so is it possible to save the full image and inside onActivityResult? Aug 06 11:50:39 You just said you didn't know your variable, which you called thumbnail, was a thumbnail Aug 06 11:51:06 omid8bimo: you need to specify where you want to save the image in your takePhoto Aug 06 11:51:29 SimonVT: yeah that part i didnt know returned image is in fact thumbnail Aug 06 11:51:47 hrnt: and then use putExtra? Aug 06 11:51:50 think of it this way, you send an envelope with a self addressed stample envelope inside and a check to order a boat Aug 06 11:51:59 you get your SASE back with a receipt and a picture of the boat Aug 06 11:52:08 you get the boat back at the address you told them to deliver it Aug 06 11:53:28 some other stuff: you shouldn't have mThumbnail as a instance variable, don't hardcode DCIM, if you want to save an image, save it directly to the SD card, don't have a pointless intermediate bytearrayoutputstream, close your output streams in finally-clause Aug 06 11:54:48 hrnt: save to the root of sdcard? Aug 06 11:55:13 if you want to save your images to the gallery, use e.g. MediaStore.Images.Media.insertImage Aug 06 11:56:52 ok. so just to make sure i got it right, the only way to save the full image taken by camera is to put it in a Uri and send it to startActivityForResult via putExta. right? Aug 06 11:57:30 i am not sure if it is the only way, but it is probably the most common Aug 06 11:58:02 ok. so in this case, what if i wanted to reduce the size of the returned photo before saving? Aug 06 11:58:25 that's up to the user Aug 06 11:58:36 you can create your own camera taking funcitonality Aug 06 11:58:40 but i wouldnt recommend that Aug 06 11:59:09 huh, do 9patch padding bounds override explicitly set padding? Aug 06 11:59:12 seems to be the case :-/ Aug 06 11:59:28 omid8bimo: i am curious, why do you even want to do that? Aug 06 11:59:44 pfn: have you used broadcast recievers and intent filters before? Aug 06 11:59:50 never Aug 06 11:59:53 what are those Aug 06 11:59:54 really? that would be inconvenient. my final action of this activity is to send the photo via rest api to a web service (i convert the photo to base64) Aug 06 12:00:09 then make the conversion before sending it via the rest api Aug 06 12:00:21 or make the conversion after taking the image, but do not save the new image to the gallery Aug 06 12:00:57 or any of the other permutations :P Aug 06 12:01:00 pfn: funny, well I've been trying all morning to get mine registered and it wont. able to provide assistance? Aug 06 12:01:05 you can make the conversion after the camera activity has saved the full image :P Aug 06 12:01:38 Linkandzelda, then register it correctly, some broadcasts are only available to registered receivers and not manifest receivers Aug 06 12:01:39 (also: why does your REST api require the base 64 conversion o_O) Aug 06 12:01:44 hrnt: well after camera activity saved the full image is good. but how? Aug 06 12:01:56 omid8bimo: open the saved image, convert it, save the converted image :P Aug 06 12:02:10 android.intent.action.VIEW, is this compatible with the manifest? Aug 06 12:02:11 well the web app for now, only accepts base64 for the image field Aug 06 12:02:13 I would of thought so Aug 06 12:02:26 VIEW is not a broadcast Aug 06 12:02:28 hrnt: ok make sense :) Aug 06 12:02:40 sorry intent filter inside the broadcast in the manifest Aug 06 12:02:49 VIEW is not a broadcast Aug 06 12:03:08 how come it works for everyone else who wants to open a file? Aug 06 12:03:17 how many times do I need to repeat Aug 06 12:03:19 VIEW is not a broadcast Aug 06 12:03:57 http://stackoverflow.com/questions/11152838/why-isnt-my-app-on-the-list-of-apps-to-open-txt-file what is going on in this question? Aug 06 12:04:17 ive pretty much implemented this answer Aug 06 12:04:28 idiocy Aug 06 12:04:29 view is not a broadcast Aug 06 12:04:42 http://stackoverflow.com/questions/12462816/android-registering-intent-filter-to-open-email-attachment-with-my-app this one too Aug 06 12:05:10 None of those use a broadcast receiver Aug 06 12:05:32 Because VIEW is not a broadcast Aug 06 12:05:34 so its an intent filter, I did both of them to be on the safe side Aug 06 12:05:50 the intent-filter is inside my activity definition Aug 06 12:05:52 do you have the correct permissions Aug 06 12:05:57 hi, i am trying to update a screen with 7 switch buttons from an asynch task. when i use setChecked() method, the app hangs.Is that a known issue? Aug 06 12:06:08 no Aug 06 12:06:10 hmm, weird, 9patch padding bounds override explicitly set bounds Aug 06 12:06:14 that is so annoying Aug 06 12:06:23 you shouldnt be interacting with the ui from background threads Aug 06 12:06:26 now I have to go through and fix all these 9patches Aug 06 12:07:03 how else? i am not supposed to do heavy stuff in ui thread. so i am calling it in asynch task and do the gui stuff in onpostprocessing methiod Aug 06 12:07:33 so you are calling setChecked in onpostprocessing method? Aug 06 12:07:38 yes Aug 06 12:07:52 if i only update 3 or less buttons there is no lag Aug 06 12:07:55 mikedg: what permission would I need for that? Aug 06 12:07:59 3+ --> app hangs Aug 06 12:08:10 do you have listeners for when the check state changes? Aug 06 12:08:21 i am removing them right beofre Aug 06 12:08:42 try not adding them at all and see f that hcnages the behavior Aug 06 12:12:58 Hi I'm looking for advice on how to build a single shared library that is built from a set of different code bases that need stlport. It must be a single shared library since the engine I'm using has some limitation that allow only 1 library to be loaded. Aug 06 12:13:31 mikedg: yeah, when i did not add the listener in first place, it doesnt hang Aug 06 12:13:48 sounds like your listeners are not getting unregistered when you think then Aug 06 12:13:50 I'm using NDK r9 - I want to use the compiler in a 'standalone' mode - any hints? Aug 06 12:14:01 how to do it correctly? Aug 06 12:14:11 swbutton.setOnClickListener(null); swbutton.setChecked(status); swbutton.setOnCheckedChangeListener(Main.switchbutton); Aug 06 12:14:15 this is how i am trying Aug 06 12:14:49 try commenting out the reset of that Aug 06 12:14:58 I had most of the code building using some dodgy handcrafted shell scripts with NDK r8, but things seem to have changed with r9 and it no longer works. So I'm seeking advice on the correct way to build such a beast. Aug 06 12:15:00 so leave the initial setting, then leave the set to null Aug 06 12:15:20 dont get that, sorry Aug 06 12:15:28 remove the setting to null? Aug 06 12:15:47 or not setting initially, just after the update? Aug 06 12:15:50 pfn: my full manifest http://pastebin.com/us3a0NNx Aug 06 12:16:18 i put the same stuff on the reciever to see if that would make it work Aug 06 12:16:44 as I understand that should make my app be listed when opening a file from an email attatchment or file browser app Aug 06 12:18:11 No one has experience with using NDK r9 in standalone mode to build a 'multi' code base into a shared lib? Aug 06 12:21:07 hello everyone Aug 06 12:22:19 i have a major problem. i am currently trying to build cm7 to my ace plus. the building went fine, but it doesn't boot. can't get logcats, but dmesg shows the following "Warning: Unable to open an initial console". Aug 06 12:22:34 I tried adding /dev/console node in the ramdisk, but it didn't work either Aug 06 12:22:53 neXusthemacosx: this channel is for app development, not rom hacking... you might try #cyanogenmod Aug 06 12:23:02 oh...ok thx Aug 06 12:24:13 I'd be happy with a link to some resource that might help me out (or even the right keywords to search) since I've found almost no resources on how to do this... Aug 06 12:28:30 I can't even get it to include stdport, I've followed the instructions in the STANDALONE-TOOLCHAIN.html which states: "determined by your use of the --stl= option described previously" but if I specify anything like --stl=stlport I just get: arm-linux-androideabi-g++: error: unrecognized command line option '--stl=stlport' Aug 06 12:28:50 I'm pretty desperate and would appreciate any hints. Aug 06 12:31:37 Really? No one has used stlport with r9 in standalone mode? Aug 06 12:40:15 this stupid mac I'm using needs a damned ssd Aug 06 12:40:18 so friggin' slow Aug 06 12:40:55 pfn: i know how that feels xD Aug 06 12:41:35 fucking trackpad is going nuts Aug 06 12:42:40 tried rebooting :( Aug 06 12:48:33 pfn: I've read 2 books, tons of questions and copied tons of examples for intent filters of all types, but none work Aug 06 12:48:54 I have no idea what you're doing, what you're sending in and what you're expecting out Aug 06 12:49:14 goddamnit, I spent all this time hacking on the 9patch padding, when I could just set a minWidth on the item Aug 06 12:50:44 pfn: i'm going to make a new project with the following intent filter on the main activity http://pastebin.com/n7v6tYLM acording to the book I'm reading this will open my app when a user tries to visit stackoverflow Aug 06 12:51:05 i've applied the same one to my current app and it will not work Aug 06 12:51:47 you put that intent-filter on what Aug 06 12:51:53 the main activity Aug 06 12:51:56 need context, always need context Aug 06 12:52:31 if it doesn't work then your activity doesn't exist Aug 06 12:53:33 pfn: http://pastebin.com/SyaTRYbQ Aug 06 12:53:37 thats the definiton Aug 06 12:53:46 this apps activity *definitly* exists Aug 06 12:54:10 this should be a 3 second job but its turned into a 6 hour job Aug 06 12:54:25 so desparation and frustation doesnt describe how im feeling Aug 06 12:54:41 * pfn shrugs Aug 06 12:54:46 looks right Aug 06 12:54:49 exactly Aug 06 12:54:54 its right out of a book Aug 06 12:54:54 read logcat to see what's happening Aug 06 12:55:03 books are not authoritative Aug 06 12:57:01 logcat is a book without pages Aug 06 13:04:05 I think my mac trackpad died Aug 06 13:04:06 complete Aug 06 13:04:09 yikes Aug 06 13:07:29 pfn: it works 100% in my new fresh project with just that addition Aug 06 13:09:42 Linkandzelda, then you done something else wrong Aug 06 13:10:01 if you can't control your changes and your code, you are really going to be in for a bad time Aug 06 13:12:29 man, my mac is so slow, I have to resort to using my tablet to browse and do stuff Aug 06 13:13:22 lol Aug 06 13:13:39 sounds like you need a chromebook Aug 06 13:16:11 pfn I don't know what to say, there's nothing more to it than defining this in the manifest file Aug 06 13:16:24 I blame Android Studio Aug 06 13:17:36 i blame Aug 06 13:19:15 android studio has absolutely nothing to do with your failures Aug 06 13:19:46 you can try cleaning, maybe if gradle's resource/manifest merging failed Aug 06 13:19:52 but beyond that, it would be your fault Aug 06 13:22:28 I hate yelp, tell it to sort by ratings and it still shows shit haphazard Aug 06 13:22:39 who taught their developers their sorting algorithms... Aug 06 13:28:52 pfn: just got it to work finally on my main project :) Aug 06 13:33:14 what did you have to fix? Aug 06 13:33:56 im not really sure, honestly Aug 06 13:34:01 ... Aug 06 13:34:05 learn to check code in regularly Aug 06 13:34:07 I had the same intent filter applied to multiple activitues Aug 06 13:34:09 and then take diffs Aug 06 13:34:24 yea I dont use any version control system right now xD Aug 06 13:34:30 trivial Aug 06 13:34:31 git init Aug 06 13:34:33 git add -a Aug 06 13:34:34 git commit Aug 06 13:34:42 er, git add . Aug 06 13:34:49 what about from within AS? Aug 06 13:35:03 I don't care Aug 06 13:35:15 you figure that out :p Aug 06 13:35:18 use the git plugin Aug 06 13:35:21 click click clik Aug 06 13:35:21 done Aug 06 13:35:32 ok sounds simple enough Aug 06 13:44:54 hello. How can I open the app drawer with some keyboard shortcut? Aug 06 13:46:42 or a shortcut to the bottom black navigation buttons Aug 06 13:48:13 where the hell are the audio settings for the web hangouts app Aug 06 13:51:20 man, mac audio support sucks Aug 06 13:55:18 any ideas? Aug 06 14:24:39 hi, anybody nows from what android version do private channels work? i have a tablet with 4.0.4 and i don't see the private channel Aug 06 14:24:47 nows => knows Aug 06 14:25:21 private channel? Aug 06 14:25:32 enterprise channels Aug 06 14:25:51 or "Google Play Private Channel for Google Apps" Aug 06 14:33:06 Does anyone know if there's a way around the standard memory cap an app can use? Aug 06 14:33:30 ndk Aug 06 14:33:34 on the sony tablet z it's only 128MB ? while internal memory is 2GB Aug 06 14:33:34 multi-process Aug 06 14:33:51 hmm Aug 06 14:37:10 pfn: any examples? Aug 06 14:38:08 gallery app used to, dunno if it still does Aug 06 14:39:39 pfn: you mean multi-process through ndk? Aug 06 14:39:52 multiprocess with and without ndk Aug 06 14:39:57 both are options Aug 06 14:40:14 the limit is just for the dalvik heap Aug 06 14:40:23 native memory is independent of that Aug 06 14:45:38 pfn .. how would you use multi-process without NKD ? Something like using multiple activies? Aug 06 14:46:49 android:process Aug 06 14:47:32 pfn: ... that's interesting sentiment Aug 06 14:47:43 ? Aug 06 14:47:44 (regarding mac audio) Aug 06 14:48:13 p_l, windows stepped up their audio game in 7 Aug 06 14:48:23 I am an unhappy camper with bluetooth in osx Aug 06 14:48:46 Sirolf, before you waste your time… does just requesting a larger heap work for you? Aug 06 14:48:58 pfn: actually, windows took a huge step back in NT6, though 3rd-party stuff tried to patch that Aug 06 14:49:21 in vista, I suppose, but I never used vista to notice, heh Aug 06 14:49:38 pfn: basically, there's no such thing as hw audio path in NT6 Aug 06 14:49:53 hw access is verboten :) Aug 06 14:49:59 Mavrik .. I need more than the capped dalvik heap I think Aug 06 14:50:08 you sure? Aug 06 14:50:16 yes Aug 06 14:50:18 :) Aug 06 14:50:22 you need more than 512MB you get with expanded heap? Aug 06 14:50:27 :S Aug 06 14:50:28 Sirolf: what do you need it for? Aug 06 14:50:30 expanded? Aug 06 14:50:44 Sirolf: there's a switch to mark that your application is memory waster ;) Aug 06 14:50:46 are you SURE your app will even work on low-mem devices even if you devise some workaround? Aug 06 14:50:56 p_l, hmm, I suppose there's that, I somehow remember there being low latency drivers for that--but for that use-case, for myself, I don't really care Aug 06 14:51:12 pfn: third-party APIs (like ASIO) Aug 06 14:52:45 it's for loading enough maptile textures ... I just need some more than the 128MB I get now ... because the resolution of larger tablets ask for more pixels to be loaded ;-) Aug 06 14:53:49 what would you prefer to store some temporarily data? Aug 06 14:54:04 Sirolf, set large heap then. Aug 06 14:54:07 until the user closes the app Aug 06 14:54:13 Sirolf: ... just *what* you're loading as the tiles? Aug 06 14:54:22 bitmaps Aug 06 14:54:23 Sirolf, if that's not enough, there's something wrong with how you load stuff Aug 06 14:54:57 with the exception of N10, a bitmap of the whole screen of typical hi-res tablet is under 9MB Aug 06 14:55:22 i remember when it was awesome that i had a 2mb graphic card Aug 06 14:55:23 there is ... in later version we'll use OpenGL ... for now we just need more memory to cashe enough tiles to run things smoothly Aug 06 14:55:24 fitting tiles and such under 128MB shouldn't be that hard Aug 06 14:56:23 it's not ... sony tablet has 1920x1200 resolution ... so 128MB will do I guess Aug 06 14:56:41 but in some cases it doesn't Aug 06 14:56:47 Sirolf: 1920x1200 with 4 8bit colour channels is <9MB Aug 06 14:56:49 A 1920x1200 bitmap is still <9MB Aug 06 14:56:56 ;o Aug 06 14:56:59 make it black and white and low res Aug 06 14:57:02 call it Retro maps Aug 06 14:57:06 lol Aug 06 14:57:24 you can also sell a green and dark green theme and call it GB Maps Aug 06 14:57:46 Remember this is mobile devices.. You can't just load everything, you have to be smart about it Aug 06 14:57:55 I know Aug 06 14:57:59 just exploring options :-) Aug 06 14:58:14 Sirolf: then, considering the tiled nature of the maps, you'll have a bunch of repeating tiles that would be loaded all the time, plus... hmm... something like 6 tiles on screen of the map, each much less than the 9MB of the whole screen Aug 06 14:58:17 add a larger ui Aug 06 14:58:43 Sirolf: I'd recommend you start by getting a sensible drawing engine that can do hw accelerated tile painting Aug 06 14:59:03 something along the lines of "my first 2D OpenGL program example" Aug 06 14:59:11 p_l yeah ... we're already writing an opengl engine Aug 06 14:59:38 Sirolf: btw, consider the fact that you're starved in memory *BANDWIDTH* as well Aug 06 14:59:54 hmm Aug 06 15:00:49 needing >128MB for just bitmaps when you are displaying on 1920x1200x32 display, even with double/triple buffering, suggests that something is rotten Aug 06 15:03:04 if you limit yourself to just GLES2 devices, you can even enjoy compressed bitmaps (with at least ETC1 available) Aug 06 15:11:11 anyone has experience with avoiding view clipping during view property animation? Aug 06 15:12:04 I hate phone reviews Aug 06 15:12:21 the latest engadget and verge reviews of the moto x say it has great battery life under heavy usage Aug 06 15:12:24 but they don't qualify it Aug 06 15:12:26 fuckers Aug 06 15:12:38 give cold, hard stats, like screen on time and shit Aug 06 15:14:04 ok i did it! Aug 06 15:14:12 my 1st phonegap app Aug 06 15:14:25 and it's a pile of poop? Aug 06 15:14:29 and it's less gay then expected Aug 06 15:14:47 and building hello world on winphon8 failed as expected ;) Aug 06 15:14:55 and it's a pain in the ass to get it working Aug 06 15:15:08 80% M$ fault and 20% buggy phonegap scripts Aug 06 15:15:47 I found wp8 to be easy to get started Aug 06 15:15:57 took me two days to port my 3D engine over to winphone8 Aug 06 15:16:38 coding wp8 is so nice - mvvm/silverlite is nice Aug 06 15:16:49 but nobody wants to buy the hardware ;) Aug 06 15:17:17 I don't think I could use the OS. Sleek looking, but I am too used to intents and concurrency :) Aug 06 15:20:35 monsti: why would you expect a phonegap app to either be homosexual or happy? Aug 06 15:21:45 Leeds: because the colors you see in the sky when entering "phonegap create l33tApp" Aug 06 15:22:00 are a beautiful rainbow? Aug 06 15:22:06 it's so great! Aug 06 15:24:16 What's the best way to listen to the change in state of a View, e.g. the enabled state changing? Aug 06 15:24:41 You could make your own listener Aug 06 15:29:22 How can I make the main activity as a dialog box? Aug 06 15:30:50 that's easy Aug 06 15:30:51 I tried Theme.DIALOG, but didn't work Aug 06 15:31:00 try a transparent theme for your activity Aug 06 15:31:04 then open a dialog box Aug 06 15:31:32 Oh, you have to do it that way. All right, I'll try that, thanks Aug 06 15:31:33 there are samples in the internet for creating a slash screen in android - you can use this theme for making the activity transparent Aug 06 15:33:59 I have a page in my app that I either want to have a ScrollView in, or a centered TextView. What should I wrap the TextView in since it can't go into a page by itself, but I still want it to be centered on the page heightwise Aug 06 15:52:25 hey pfn, if my app accepts files via intent filter, how can I then get the file information? I tried getStringExtra(Intent.EXTRA_TEXT); but its null, so is "URI". Aug 06 15:58:00 What happens on the next update if you increase the minApiLevel for your app? Aug 06 15:58:19 will the update for people with lower api levels still happen and then they can not find the app? Aug 06 15:58:27 or will there be a warning? Aug 06 15:59:20 MVO_: just a guess, but those previous users will not be able to get the update Aug 06 16:00:21 I was hoping this. I could test it by setting up a beta version, couldn't I? Aug 06 16:00:36 indeed Aug 06 16:04:01 Linkandzelda: Thanks! Aug 06 16:04:10 worked? :) Aug 06 16:05:32 have to wait a bit until everything is setup.. it's already kind of end of the day. Setting up betatests is probably a very good thing to do anyways Aug 06 16:09:33 Users below your min api level wont be able to update. You can leave your old apk enabled and they'll be able to download that Aug 06 16:12:04 SimonVT: Thanks a lot! :) Aug 06 16:12:34 there will be no update notification Aug 06 16:17:00 view animation and clipping, any help would be appreciated: http://stackoverflow.com/questions/18085332/making-android-not-clip-the-view-while-animating-simple-flip-clock-like-widget Aug 06 16:21:02 Just use two textviews Aug 06 16:37:37 capella ff 23 is buggy as hell Aug 06 16:37:53 like, i'm not using this buggy. Aug 06 16:38:29 mmm .... serious? desktop? mobile? Aug 06 16:38:44 desktop. installed a plugin from disconnect.me without asking Aug 06 16:38:52 (which , i went to go and install) Aug 06 16:39:18 but it should ask. i was so amazed - blew away my install, reinstalled ff, tried again - 2nd time it did ask me Aug 06 16:39:38 mmmm ... Aug 06 16:39:57 aslo, do these guys do any performance testing? running ff next to chrome is embarrassing (page renger speed - i guess js is fast these days) Aug 06 16:40:45 ui has minor bugs with check boxes not having the right bg colors Aug 06 16:40:49 (mac) Aug 06 16:41:43 yah ... mac doesnt get much respect from what I gather Aug 06 16:43:05 which ad services are people using? Aug 06 16:43:22 none \o/ Aug 06 16:44:05 :) Aug 06 16:44:20 ive never used ads but someone is asking 'which is the best' Aug 06 16:46:01 is there a way to hide a view after some amount of time that doesnt involve threads, runnables, or manually telling the view ot hide after some timelimit Aug 06 16:46:16 * capella cant find an open bug for that addon issue ... still looking Aug 06 16:46:28 mikedg, no Aug 06 16:46:52 mikedg, maybe a property animator, but that's like 4.0+ only Aug 06 16:47:22 capella yeah - when i restarted ff (1st time - with no conf) the addon was there. i'm reinstalling ff 3rd time to see what happens again Aug 06 16:47:42 no profiles, fresh start Aug 06 16:48:02 can someone please explain to me how I can get the filename from an intent opened as a gmail attatchment or downloaded file? Aug 06 16:48:34 pfn there were 2 interesting scala articles on HN yesterday; scala & llvm & scala vs go for a tc server Aug 06 16:48:43 *tcp Aug 06 16:48:46 g00s, the latter sounded like bs Aug 06 16:49:16 I think they always wanted an llvm target for scala... kind of on the backburner Aug 06 16:49:29 would be cool Aug 06 16:49:49 too many jvm dependencies for that to happen anytime soon Aug 06 16:50:00 not for anyone to use in a production manner, at least Aug 06 16:52:32 I want them to port Scala to ios so I can run android apps on ios Aug 06 16:56:34 So can someone please tell me I'm wrong that Gradle won't allow for a parent and child style to implement the same attribute? Aug 06 16:57:54 i'm coming to the conclusion that gradle is just a pile of { and } with [azA-Z_] intermixed; public APIs and private APIs frolicking in the sun; dynamic task generation eating its own tail ... Aug 06 16:59:12 I don't want to have to refactor this entire Android project because gradle is strict, but I want to move it over to build with gradle Aug 06 16:59:16 :( Aug 06 17:06:41 useful idea for app pricing http://blogs.hbr.org/cs/2013/07/want_to_raise_prices_tell_a_be.html Aug 06 17:11:04 * capella immediate page close on pop over Aug 06 17:12:35 hm, no idea. have adblock & noscript Aug 06 17:13:22 * capella probably needs noscript Aug 06 17:17:46 * monsti loves to script Aug 06 17:20:26 when i script you script i script Aug 06 17:20:42 we script Aug 06 17:21:52 wish android was more easier to get a single task done Aug 06 17:22:09 that's why i spend years writing libraries Aug 06 17:22:55 i dont find the documentation to be large enough to learn from, they mention x and y but you really need the whole aplabet to get it working Aug 06 17:23:06 well - yeah ;) Aug 06 17:23:28 i like doing it and figuring stuff out but im losing my hair lol Aug 06 17:28:16 Linkandzelda: yes that's what charles darwin told us ;) Aug 06 17:28:29 lol Aug 06 17:30:04 g00s: I love the closing line :D Aug 06 17:31:05 p_l which one? Aug 06 17:31:19 i think i've read 10 web pages since :D Aug 06 17:31:25 "So, dinner anyone?" Aug 06 17:31:29 in the HBR article Aug 06 17:31:32 oh ha Aug 06 17:31:45 i bet mikedg has a good story Aug 06 17:31:52 about what Aug 06 17:31:52 oh god, i set myself up Aug 06 17:32:13 your get richer app Aug 06 17:32:29 i'm rich now, i cant deal with you plebes Aug 06 17:32:52 mikedg: you write NSA apps ;) Aug 06 17:33:21 kernel local storage xDDD Aug 06 17:36:58 monsti: ... there *is* kernel local storage Aug 06 17:38:13 and keystore since 4.2 or 4.3 uses TrustZone-based SE on gnex and N4 Aug 06 17:38:31 (not sure about N4, but I suspect they reused that part from gnex) Aug 06 17:40:31 whats the need for contentresolvers, uris, input streams and cursors when all I want is the file path >_< Aug 06 17:42:49 is there a straightforward way to get a DialogFragment window to take up more space? Specifically to match parent width with 20dp padding on left/right? Aug 06 17:43:28 I was trying like.. getDialog().getWindow().setLayout(width,height) with width = display.getWidth() - 40dp but no worky Aug 06 17:43:55 tnzr: when I made a standard Dialog, I was able to use setWidth() on it Aug 06 17:44:34 hmm Aug 06 17:44:55 I don't see a setWidth() in Dialog :( Aug 06 17:45:25 well it might of been on the layout, but whatever hapepned my dialog changed width for sure Aug 06 17:45:52 hmm ok Aug 06 17:47:06 if you want to know what I did, I looked at code from the aFileDialog library and it has a setWidth() inside it Aug 06 17:47:46 I also just realized I am using the 2-param LayoutInflater.inflate() method instead of the 3-param one Aug 06 17:48:02 which, if I remember right, means it will discard whatever LayoutParams your inflated layout has Aug 06 18:08:06 oreilly just came out with a new gradle book; its weird. its the 2nd in the set (part 1 and 2). the first was too basic and didn't help much at all, the second is like a reader on advanced topics. together they don't give any systematic treatment Aug 06 18:09:01 hopefully the manning one will be better; too bad their stuff goes out of date so quickly Aug 06 18:09:07 is it possible to track your device with android device manager yet? Aug 06 18:12:15 Lets try my luck again... I have an encrypted video, and I'm trying to play it in a videoview. So I setup a local http streaming server and everything works just fine. Mediaplayer reads from my server as if it was streaming from the internet. Now, I have a 2.3gb movie that refuses to even attempt to play. Let me expand on that. Mediaplayer requests the file from my server, and I reply with the appropriate 200 respons Aug 06 18:12:15 e with the content-length, and thats all that happens. The mediaplayer just constantly requests the file from my server but doesnt actually try to play it or retrieve any of the video data. I do see an error -1004 (ERROR_IO) but it doesn't make any sense since no attempt to read the video / play it are made.... I'm lost and have been trying to fix this for well over a week now. The mediaplayer also constantly reports Aug 06 18:12:15 that it cached 0 bytes of data. Aug 06 18:12:21 the movie is in the correct progressive streaming format Aug 06 18:12:31 and plays normally decrypted with the stock media player Aug 06 18:13:22 this is on a d2tmo as well Aug 06 18:13:26 which is no where near old Aug 06 18:18:06 someone just told me its impossible to get the filepath using an intent filter when opened from a downloaded file via the browser Aug 06 18:21:44 http://stackoverflow.com/questions/18086725/how-to-get-file-path-from-intent-filter-email-attachment-download Aug 06 18:30:03 uh oh, gradle 1.7 was released Aug 06 18:30:43 * g00s wonders if maven-publish works this time Aug 06 18:41:55 oops Aug 06 18:42:10 the android gradle plugins don't work with 1.7, yey ! Aug 06 18:42:32 serves you right for constantly wanting to be on the newest version Aug 06 18:42:42 bah Aug 06 18:46:45 not a problem at all; i have so many things in the over i just leave this pile of brokenness and move on to the next thing Aug 06 18:46:50 *oven Aug 06 18:48:12 Hello. Aug 06 18:48:14 hopefully 0.5.6 gradle plugin fixes publishing and android.xxxVariants task creation timin along with being 1.7 compat Aug 06 18:49:02 So, I make a new fullscreen activity app in Eclipse, got my note 2 plugged in the USB, compile and run and eclipse tells me that installation failed due to invalid APK file. Aug 06 18:49:05 what do I even how Aug 06 18:49:54 maybe try on the emu first Aug 06 18:50:07 I did but the emulation is just unworkably slow. Aug 06 18:50:12 I'm going to try though. Aug 06 18:50:20 try the x86 image Aug 06 18:50:28 lol your statements contradict each other Aug 06 18:50:29 hexm + gpu accel on Aug 06 18:51:07 raunching the app on a virtual device Aug 06 18:51:09 huh, still no API 18 x86 image. Aug 06 18:51:20 erraider use the API 16 image, 17 is a fuckmess Aug 06 18:51:21 I'll be back in about four weeks. Aug 06 18:51:29 oh what Aug 06 18:51:44 how do I Aug 06 18:52:17 g00s, for the emulator I can only do API level 17 on platform 4.2.2 Aug 06 18:52:30 get api 16 x86 image, use that Aug 06 18:52:51 Can I use my actual phone? Aug 06 18:52:52 leave the api 18 SDK installed, use that as your targetSdk Aug 06 18:53:03 uhhhhh Aug 06 18:53:03 erraider we're trying to figure out whats wrong :| Aug 06 18:53:07 okay Aug 06 18:53:08 wait Aug 06 18:53:18 get api 16 x86 image <-- how Aug 06 18:53:30 start up the android tool :| Aug 06 18:53:33 $ android Aug 06 18:53:46 I have no clue what you are talking about Aug 06 18:53:53 I'm sorry but I just don't Aug 06 18:53:56 ok, go read the docs Aug 06 18:53:58 what android tool Aug 06 18:54:13 To me the whole thing is "the android tool" Aug 06 18:54:36 Do you mean the console? Do you mean the Run as... ? Aug 06 18:54:39 anyone know where you need to put renderscript files in a gradle build? Aug 06 18:55:17 doesn't seem like any ScriptC_*script* files are being generated for me. I've tried in /src and in /main Aug 06 18:55:36 /src/main* Aug 06 18:55:36 Howdie, got an APK from my Company that is signed, need to edit the VersionCode (up it at least one Value) and send it to our app deployment team,whats the best way to do it (the editing part) Aug 06 18:55:38 I'm going to run it as is on the emulator :I Aug 06 18:56:00 Because I haven't edited anything, just made new android project with the fullscreen thing Aug 06 18:57:12 SrRaven: Uh, edit it before you compile Aug 06 18:57:37 cant edit it before compiling, we take the software from a 2nd party who brands it for our company Aug 06 18:57:51 why can't you edit it before compiling? Aug 06 18:57:56 installing the apk on the emulator... Aug 06 18:58:32 evanc like I said, we dont have the code on hand. We use a "reseller" Portal to brand it to our needs etc Aug 06 18:58:54 which is basically us entering stuff into forms and it pops out Aug 06 18:59:13 SrRaven: oh. Well then you need to talk to them and have them give you a way to set the verion code Aug 06 18:59:29 appreciate it Aug 06 18:59:34 they arent the smartest folks Aug 06 18:59:50 basically told me (the Sr Engineer did) that it has to be done on our side Aug 06 19:00:07 SrRaven: if you can't edit the source, it can't be done on your side Aug 06 19:00:08 now after telling him again (as a 1st Semester CS Student) that he actually has to,he agrees Aug 06 19:00:27 okay well Aug 06 19:00:31 I started the emulator Aug 06 19:00:34 clicked my app Aug 06 19:00:35 it opens it Aug 06 19:00:37 no problemo Aug 06 19:03:26 So, what now? Aug 06 19:03:46 Is it a problem if my note 2 is r00ted? Aug 06 19:05:55 erraider: yeah it will eat your first born child. otherwise no Aug 06 19:06:33 Anyone have a Nexus 7 and multiple profiles? Trying to figure out how to enable developer options on a second account, seems only main account has the option. Aug 06 19:07:14 logcat doesn't say anything Aug 06 19:07:31 Elderwolf, I think you have to go to settings and tap the build number Aug 06 19:07:35 Just that installation failed due to invalid apk Aug 06 19:07:37 like 10 times or something Aug 06 19:08:13 mmathis: yah, that is how you set it up initially but the second account just says "You already are a developer" and doesn't give Developer Options Aug 06 19:08:21 oh Aug 06 19:08:36 well then I dunno :P Aug 06 19:08:44 I downloaded 4.3 hoping that hte new user permissions would fix that, but nope :( Aug 06 19:08:54 np, thanks Aug 06 19:09:00 I have an Activity containing a ListFragment which uses a Loader to populate a list. I instantiate the ListFragment in the Activity's onCreate, and populate the list on the fragment's onCreateView. Aug 06 19:09:15 When the orientation of my device changes, I see a blank screen. Aug 06 19:10:05 sulaiman: do things in onResume ? Aug 06 19:14:25 StingRay_, of the fragment or the containing activity? should I recreate the fragment or rerun the cursrorloader? i'll try to figure out Aug 06 19:14:43 but the same doesn't happen with a ListActivity Aug 06 19:16:28 is this the first time you have looked at activity and fragment lifecycle ? Aug 06 19:16:37 cause you should read up on it Aug 06 19:17:40 Guys, how can I run my app on my note 2 Aug 06 19:17:58 erraider: http://developer.android.com/tools/device.html Aug 06 19:24:47 evanc, I have all that set up. Aug 06 19:25:12 then plug in your device, hit "run" in eclipse; done Aug 06 19:25:29 [2013-08-06 22:25:21 - AkiApp] Installation failed due to invalid APK file! [2013-08-06 22:25:21 - AkiApp] Please check logcat output for more details. [2013-08-06 22:25:21 - AkiApp] Launch canceled Aug 06 19:26:03 did you check logcat output for more details? Aug 06 19:26:14 Yes and it was blank. Aug 06 19:26:20 There was no logcat output. Aug 06 19:26:35 that's false Aug 06 19:26:50 Well, I've got the logcat tab open in eclipse, there's nothing there. Aug 06 19:26:50 there's always logcat output; if you aren't getting any, you need to fix that first Aug 06 19:26:59 erraider: check your filters Aug 06 19:27:04 also, don't use eclipse logcat Aug 06 19:27:14 Oh. Aug 06 19:27:19 What logcat should I use? Aug 06 19:28:31 you can use the eclipse one; I just don't prefer it (just run it in a terminal) Aug 06 19:28:51 eclipse logcat will work just fine in most cases, just make sure it isn't filtering on an app. Aug 06 19:29:18 :I Aug 06 19:29:44 I've got "All messages" selected Aug 06 19:29:57 sounds like the conneciton just broke Aug 06 19:30:03 is a device selected? Aug 06 19:30:21 if logcat is blank something is broken Aug 06 19:30:44 Well, yes, that I figured when it didn't install the app. Aug 06 19:31:03 But seriously though, in what context "is a device selected"? Aug 06 19:31:05 Where? Aug 06 19:31:52 did you try restarting the emulator? Aug 06 19:32:11 I'm trying to get it to work on an actual device. Aug 06 19:32:15 It works fine on an emulator. Aug 06 19:32:25 did you reboot your device Aug 06 19:32:26 restart eclipse =) Aug 06 19:32:34 oh you rooted your phone, thats the problem Aug 06 19:32:39 |:[ Aug 06 19:32:41 I fucking Aug 06 19:32:42 asked about that Aug 06 19:33:07 Unroot and retry? Aug 06 19:33:15 yeah Aug 06 19:33:22 ok Aug 06 19:34:43 mikedg, why does it having been rooted screw with it? Aug 06 19:35:08 cause roots sometimes mess up how many gigabytes you have in local storage so you cant upload the apks correctly Aug 06 19:35:19 Hi, I have a question about shared preferences and default preferences that are used in the Preference Manager. When do you put things in default preferences and when do you put things in your own shared preference file? Aug 06 19:35:50 That's weird, why would such a fluke happen to me Aug 06 19:35:58 navetz: not much Aug 06 19:36:16 http://stackoverflow.com/questions/5946135/difference-between-getdefaultsharedpreferences-and-getsharedpreferences Aug 06 19:39:45 mikedg: Should i be using default preferences for things that users can change, and my own preference file for things I don't allow the user to change but I need saved? Aug 06 19:39:46 Okay, unrooted Aug 06 19:39:47 trying again Aug 06 19:39:59 not really Aug 06 19:39:59 or can I use one file for both? Aug 06 19:40:07 use one file Aug 06 19:40:27 mikedg: okay, only the stuff in my preference.xml file will show up as a user option then correct? Aug 06 19:40:41 mikedg Aug 06 19:40:44 It didn't work. Aug 06 19:40:45 and the other preferences will be for me to use when writting the app? Aug 06 19:40:56 logcat speaks though Aug 06 19:41:56 mikedg do you want to look at it Aug 06 19:42:23 not really Aug 06 19:42:38 try acidjazz Aug 06 19:42:54 I think acidjazz is afk Aug 06 19:43:13 usually is Aug 06 19:44:11 Well Aug 06 19:44:14 apparently Aug 06 19:44:48 http://pastebin.com/dYUvCLDu Aug 06 19:44:52 just look at it and tell me what is what Aug 06 19:45:50 I tried everything. Rooting, unrooting, driver installing, plugging the USB in the back ports of the PC instead of the front... Aug 06 19:45:52 Exception during service Aug 06 19:45:52 08-06 22:42:08.089: W/fb4a(:):BlueServiceQueue(3558): java.net.UnknownHostException: Unable to resolve host "graph.facebook.com": No address associated with hostname Aug 06 19:45:52 08-06 22:42:08.089: W/fb4a(:):BlueServiceQueue(3558): at Aug 06 19:46:04 is that u Aug 06 19:46:15 what Aug 06 19:46:26 are you doing stuff with the facebook graph api Aug 06 19:46:35 Well, I have the facebook app Aug 06 19:46:39 and thats about it. Aug 06 19:50:00 mikedg you work on it while I go feed my pet cancer. Aug 06 19:50:11 ? Aug 06 19:50:21 Go out for a smoke. Aug 06 19:50:37 what kind of pet Aug 06 19:50:39 i like dogs Aug 06 19:50:39 erraider: what are you giving it, chinese pet food ? Aug 06 19:51:04 I feed it nicotine and tar. Aug 06 19:51:48 mikedg: sup? Aug 06 19:51:57 ok, gotcha.. feed yourself cock and your pet nicotine and tar. good strategy. Aug 06 19:51:57 can you help eraider Aug 06 19:52:00 erraider: sup Aug 06 19:55:22 acidjazz Aug 06 19:55:28 [2013-08-06 22:48:43 - AkiApp] Installation failed due to invalid APK file! [2013-08-06 22:48:43 - AkiApp] Please check logcat output for more details. [2013-08-06 22:48:43 - AkiApp] Launch canceled! Aug 06 19:55:30 this Aug 06 20:03:07 acidjazz what do you make of it Aug 06 20:04:19 whats Aki mean btw ? Aug 06 20:04:36 some acronym ? Aug 06 20:04:53 Aweomse Kiwi Indian Aug 06 20:05:10 Almost Kind Intentions ? Aug 06 20:05:29 Always kill indigenous ? Aug 06 20:05:34 :) Aug 06 20:07:54 StingRay_ just a name Aug 06 20:08:19 is this your app ? Aug 06 20:08:36 It's the app that got created when I went through New -> New Android App Aug 06 20:15:04 So yeah even that alone I can't run on my droid Aug 06 20:15:57 erraider: did you check the logcat for further details? Aug 06 20:16:45 RyanM: http://pastebin.com/MxmhUBMu Aug 06 20:16:46 cool, xavd says gradle plugin will be updated today or tomorrow for 1.7 Aug 06 20:16:57 hopefully this will be much faster builds Aug 06 20:20:25 I tried this android studio but I guess it refused to import my project because I have set it to target android 4.3 Aug 06 20:20:30 that's a bit earl Aug 06 20:20:34 early Aug 06 20:20:55 then I changed that and it said it doesn't know build version 18.0.1. Bah Aug 06 20:21:16 Going to try it again in 6 months or so Aug 06 20:22:37 Every once in awhile, I get java.lang.IllegalArgumentException: View not attached to window manager with if (progress.isShowing()) progress.dismiss(); Aug 06 20:22:39 My main attraction would be to have better visualization for renderscript. eclipse has no syntax highlight for it. Aug 06 20:22:53 shouldn't the isShowing always negate the possibility of the view not being attached? Aug 06 20:23:09 I'm hoping this other thing can do that. I'm in general encouraged by the performance of renderscript -- it seems to me that it can replace the ugliness that is ndk if you do a little bit of porting Aug 06 20:23:31 If I want to use the devices camera in my app to take a picture, resize it and upload to a webservice, is it possible to do it keeping the photo in memory or do I have to save it to disk... every camera example I have read saves it to disk/sdcard first, just wondering if that is required.. Aug 06 20:24:03 I have some native code like FFT that is probably better written as renderscript. Aug 06 20:24:46 heh, nvidia, ibm, others started a POWER consortium Aug 06 20:25:43 bcows: public void onPictureTaken(byte[] data, Camera camera) { Aug 06 20:26:41 erraider: is your phone rooted? Aug 06 20:26:48 No. Aug 06 20:27:18 RyanM ^ Aug 06 20:27:52 and you don't have a custom ROM either? Aug 06 20:28:01 No. Aug 06 20:28:18 you're getting a permission error Aug 06 20:28:27 Ah. Aug 06 20:28:30 How do I fix this. Aug 06 20:28:59 Googling it turns up mostly rooting-related issues, but you might have some luck with the solutions: https://www.google.com/search?q=unable+to+open+zip+permission+denied+android Aug 06 20:29:57 Hm. Android kernel has some weeeeird /proc/x/cmdline handling. Aug 06 20:30:26 RyanM, it says to use chmod 666 on a downloaded zip Aug 06 20:30:34 er, apk Aug 06 20:30:37 question is Aug 06 20:30:44 how does that even work Aug 06 20:31:58 how do i adb shell Aug 06 20:32:22 erraider: maybe you should read some of the docs Aug 06 20:34:02 Would it be possible for me to add a context menu option to the file explorer on Android? Aug 06 20:34:12 I should get a job. Aug 06 20:34:58 It's okay I just did an act of paralell computing where I asked you if you could tell me before I figured out how to do what I did which I did Aug 06 20:35:00 trying again Aug 06 20:35:29 Kake_Fisk: there is no "the" file explorer on android Aug 06 20:35:35 does anyone know if there is a way to determine whether a build is debug/release from within a gradle task? Aug 06 20:35:42 So basically Aug 06 20:35:43 adb shell cd /data chmod 777 local Aug 06 20:35:44 Kake_Fisk: some hardware manufacturers add a file explorer to android Aug 06 20:35:45 did nothing Aug 06 20:36:00 monsti: Ohhh Aug 06 20:36:16 Kake_Fisk: so just find a better one in the playstore - or code your own ;) Aug 06 20:36:52 Ah, yes. I wanted the "create new file" where I can decide the extension. I hate that you cannot rename files with extensions. Aug 06 20:37:06 So I guess I could just make a small app for myself Aug 06 20:37:29 well - yeah - get es file explorer Aug 06 20:38:18 Is that the best file explorer or? Aug 06 20:38:43 i have no idea Aug 06 20:38:47 Ah, okay Aug 06 20:38:56 that implys knowlege of all file explorers on android Aug 06 20:39:18 good answer to a flawed question monsti Aug 06 20:39:20 :) Aug 06 20:40:21 although I still dont get how the ES guys make any money Aug 06 20:41:14 oh cool I turn 18 in 19 minutes Aug 06 20:41:36 erraider: sorry :( Aug 06 20:41:47 i prefere 25, female, cute and blond Aug 06 20:41:54 bummer Aug 06 20:42:28 god dammit Aug 06 20:42:36 I did a chmod 777 rampage and still ain't helped nothin' Aug 06 20:42:59 http://stackoverflow.com/questions/18086725/how-to-get-file-path-from-intent-filter-email-attachment-download anyone able to help with this? thanks Aug 06 20:44:04 Linkandzelda: that it 100% answered Aug 06 20:44:45 Linkandzelda: yeah you might get a content:// and not a file:// url Aug 06 20:45:05 in other words the "file" might me no file Aug 06 20:45:12 s/me/be Aug 06 20:45:27 StingRay_: working directly with an InputStream is inconvinient, how can I show the file name like that? Aug 06 20:46:16 Linkandzelda: your question makes no sense given the information people are telling you Aug 06 20:46:42 i have toruble communicating my questions but it seems pretty straightfoward to me: I need the file path Aug 06 20:46:53 if there is no file, I understand that Aug 06 20:46:53 lol Aug 06 20:47:00 well then Aug 06 20:47:04 Linkandzelda: there are cases where you don't get a file Aug 06 20:47:10 no file ???? where does the path come from ? Aug 06 20:47:11 Linkandzelda: got it? yes/no Aug 06 20:47:13 path of what ? Aug 06 20:47:31 the path of the righteous man Aug 06 20:47:36 lol Aug 06 20:47:49 well ok, the only way I can think of using an input stream is to make a new file from it in a temp directory then use that path Aug 06 20:48:04 Linkandzelda: "no file" not even a temp file ;) Aug 06 20:48:14 then what can I do... Aug 06 20:48:16 Linkandzelda: "no file" because the content might come from an imap server Aug 06 20:48:21 did you get it now? Aug 06 20:48:25 yea, I get that Aug 06 20:48:34 ok ;) i tried hard Aug 06 20:48:48 StingRay_ chmodding doesn't help at all Aug 06 20:49:07 erraider: help what ?? Aug 06 20:49:11 so the content might come from imap and then I can use input stream to read its data? Aug 06 20:49:12 lol Aug 06 20:49:14 With my problem Aug 06 20:49:25 oh, try more things then :) Aug 06 20:49:32 chown :) Aug 06 20:49:51 Linkandzelda: yes use a content resolver for this Aug 06 20:49:54 btw I'm joking Aug 06 20:49:57 But wouldn't that only work on the directory and not affect sub Aug 06 20:49:58 okay Aug 06 20:50:08 and no Aug 06 20:50:12 Linkandzelda: remember? that was the answer for your question Aug 06 20:50:16 it would work however you asked it to Aug 06 20:50:42 Well, how do I ask it for all files created in that directory to automatically be 777 ? Aug 06 20:51:02 erraider: on your sd card? Aug 06 20:51:03 you should not need to play with any permissions Aug 06 20:51:11 erraider: that makes no sense on fat32 Aug 06 20:51:36 monsti: ok, ok, even if I saved the attatchment it still isnt a physical file? xD Aug 06 20:51:49 erraider: and in your /data stuff - it's possible to play with permissions but that should be done with the flags in your manifest Aug 06 20:51:49 Okay, I will then resort to plan B. Sacrificing a goat and dancing about within the bounds of an encircled pentagram. Aug 06 20:51:55 erraider: idea/hint : sometimes permission denied does not always mean you dont have permission :) Aug 06 20:52:14 Linkandzelda: yes it's a content:// uri that points to a backend that can deal with "open" Aug 06 20:52:49 is it possible to pass InputStreams via Intents? Aug 06 20:53:03 not sure you would want to Aug 06 20:53:15 I have a class that takes 2 file paths basically Aug 06 20:53:19 this app is a frontend Aug 06 20:53:38 if I cant get the file path or make a file from this data somehow Aug 06 20:53:43 how am I meant to proceed? Aug 06 20:54:06 Linkandzelda: consider reading some documentation on content receiver/resolver ;) Aug 06 20:54:16 therae are examples in the sdk Aug 06 20:54:21 ive been reading all day ;-; Aug 06 20:54:35 e.g. a contetn resolver for your a contacts Aug 06 20:54:50 a contact has no "file" Aug 06 20:54:52 got it? Aug 06 20:55:15 of course, but you still get the content from that contact (name, address etc) Aug 06 20:55:51 I wish for my birthday that someone would PM me and walk me through the process of getting this to work. Aug 06 20:56:21 erraider: this is a good learning exercise for you to work on your diagnostic ability Aug 06 20:56:26 start simple Aug 06 20:56:32 >simple Aug 06 20:56:35 >new project Aug 06 20:56:38 not even edited Aug 06 20:56:52 thats a process orientated blind button pushing exercise Aug 06 20:56:59 i said "diagnostic" Aug 06 20:57:21 meaning start simple and rule things out Aug 06 20:57:37 not start a simple project Aug 06 20:57:47 start simple and diagnose whats happening Aug 06 20:57:50 :) Aug 06 21:00:01 even the ancient romans knew how to debug when they said 'divide & conquer' Aug 06 21:03:13 OK guys, how do I learn about compiling a gcc compiler to compile for Android on armv7 hardware floating point? Aug 06 21:03:23 I also want to compile, using this compiler, a gcc for on device programming Aug 06 21:03:36 drchip: eh, get ndk Aug 06 21:03:41 so theree will also be a gcc compiler on the android device Aug 06 21:03:47 you want to pass a parameter to enable hardfp Aug 06 21:04:07 ndk? it's that simple? what gcc version is that? Aug 06 21:04:23 it is multiple versions. But NDK isn't available for android. Aug 06 21:04:24 can I compile a nice gcc for the device itself using that? Aug 06 21:05:09 there is a debian distribution for android Aug 06 21:05:17 ew Aug 06 21:05:28 drchip maybe just use ubuntu phone :) Aug 06 21:05:33 anwyay -mfloat-abi=hard or -mfloat-abi=softfp will compile vfpv3 stuff Aug 06 21:05:46 unless somebody makes it to where android no longer exists on my device... Aug 06 21:06:11 I mean, I _tried_ doing that, but the device has such a locked down bootloader that as soon as you remove the stack override it dies on you Aug 06 21:06:14 as to building code on android, I have no idea if that is possible. Aug 06 21:06:28 maybe if I just dd'd the stack override after making a NEW system partition it'd work Aug 06 21:06:29 I mean, sure it is possible but no idea how to e.g. link code into running android process Aug 06 21:06:32 I _hope_ so Aug 06 21:06:59 and by dies I mean it well...won't boot anything but the official amazon kernel anymore Aug 06 21:07:13 so no Fedora, no Android CyanogenMod, no nothing Aug 06 21:07:52 fastboot has the boot from USB functionality patched out as well, it will download the kernel + initramfs image but it will NEVER boot it Aug 06 21:08:14 in general new androids have this renderscript thing though, which converts llvm bitcode into native ops Aug 06 21:08:31 I'm not interested in android Aug 06 21:08:48 I want something that allows me to code away, not this strange android crap Aug 06 21:09:35 a tablet is more powerful than a Power Mac G3 from 1999 Aug 06 21:09:36 well maybe you want jolla or something. Aug 06 21:09:50 but how do I get jolla? Aug 06 21:09:58 you can't, it's probably not finished Aug 06 21:10:04 :( Aug 06 21:11:17 ok well if I could just get a real unlocked bootloader, none of this stack override crap Aug 06 21:11:23 *SIGH* Aug 06 21:11:44 it's amazing the xda-developers people didn't work on that Aug 06 21:11:53 right now I guess the most practical thing you want is some debian chroot or debian on ARM or something like that. Full linux. What it can do probably disappoints you but if you don't want android your choices are pretty limited right now Aug 06 21:12:22 alankila: well no dice if I wanted an installed debian Aug 06 21:13:16 alankila: I guess a kindle fire hd is only good for reading books and listening to music and playing some games like they advertised, simply because they are so closed off to developers Aug 06 21:13:29 they don't want you making your own operating systems Aug 06 21:13:39 its for pushing content Aug 06 21:13:48 kinda like all tablets atm Aug 06 21:14:12 * alankila doesn't care really. We are surrounded by hardware more capable than we can use it for, and there is an argument that some hardware is only sold at the price point it is because it is restricted Aug 06 21:14:14 if only I could just sell it Aug 06 21:14:46 it is very sadly restricted Aug 06 21:15:03 the nexus 7 costs similar and it isn't restricted Aug 06 21:15:30 I do not particularly like the signature approach of actually preventing hardware to be hacked, though. I think that's sort of anti-engineering, spending work to make something worse than it would be without it Aug 06 21:16:05 alankila: yes but if I sent you the contents of the xloader and bootloader partitions would you feel like removing their signature checks? Aug 06 21:16:13 there's a kind of hippocrates's oath for engineers, which is summarized in the 3 words: do no harm Aug 06 21:16:36 drchip: what? no. How about you buy hardware which is hackable without particular effort Aug 06 21:16:41 support the people who aren't nasty Aug 06 21:16:52 alankila: ok, I guess I'll be saving my money Aug 06 21:17:33 I have in excess of $100 and if I just sell my tablet at about $100 in price with the original OS on it it will be nice for somebody else and I'll get my money's worth Aug 06 21:17:45 of course I'll never get my money back Aug 06 21:19:37 alankila: so the nexus 7 is _the_ one to buy? Aug 06 21:20:16 yes get a nexus 7 Aug 06 21:20:19 if I bought an AT&T Nexus 7 2013 model will it be just as unrestricted as a one that is WiFi only?↵ Aug 06 21:20:28 it's the best tablet on our planet Aug 06 21:20:36 and it helps google to earn money Aug 06 21:21:03 can I do this on both the AT&T 4G LTE model and the WiFi only one? fastboot -i 0x oem unlock Aug 06 21:21:37 monsti: yay I get to support the company that says they do no harm but most probably are Aug 06 21:21:40 lol Aug 06 21:22:07 I guess I'll support them because they make android Aug 06 21:22:15 and I haven't seen the evil Aug 06 21:22:31 other people say google is bad, well I'm not sure Aug 06 21:22:53 so get a windows 8 phone Aug 06 21:23:08 but seriously, is fastboot oem unlock possible on a nexus 7? will that make me have an unlocked bootloader? Aug 06 21:23:20 monsti: ew microsoft, they are definitely a monopoly Aug 06 21:23:29 plus windows 8 phone is terribl Aug 06 21:23:40 I'll stick with Google Aug 06 21:24:00 monsti: did you ever try fastboot oem unlock? Aug 06 21:24:25 http://www.androidcentral.com/how-unlock-nexus-7-bootloader Aug 06 21:24:28 OOH Aug 06 21:25:02 they use the nexus hardware for mozillas phone/tablet OS Aug 06 21:25:06 or even linux Aug 06 21:25:13 so yes - you can boot anything Aug 06 21:25:25 WOW Aug 06 21:25:29 actually i dont :) Aug 06 21:25:34 FORGET YOU AMAZON Aug 06 21:25:45 soon I get to use my money Aug 06 21:25:50 and you go away Aug 06 21:25:52 this is #android-dev not #android-root or #android-how-to-waste-time ;) Aug 06 21:26:16 monsti: lol but is Android fast and stable on that Nexus 7? Aug 06 21:26:28 does it ship with proprietary drivers?] Aug 06 21:27:17 drchip: no idea - i don't waste time ;) Aug 06 21:27:33 monsti: ok ok um...who can I ask? Aug 06 21:27:46 google ;) Aug 06 21:28:03 if im using gradle to make different product flavors of my app, each with their own packageName, how can i get that to work with custom views (i.e. in res/layout/example_view.xml i have )? Aug 06 21:28:34 smoak: you can try and put this in a lib project Aug 06 21:28:55 so you can keep that name and just switch on the toplevel Aug 06 21:29:25 hmm, that wont work with my current project structure without massive refactorings :-/ Aug 06 21:29:29 e.g. my.package.lib ... my.package.full (the apk) and my.package.lite Aug 06 21:29:43 that should, work, too Aug 06 21:29:54 I thought it only changed the package in manifest (and generated classes) Aug 06 21:30:19 because the namespace of the project and the namespace of single items (mostly) don't depends Aug 06 21:31:07 hmm maybe i should rephrase my question Aug 06 21:32:41 say i have a layout file that looks like this: https://gist.github.com/smoak/6168888 Aug 06 21:33:18 but i have 2 product flavors i want to build, one with packageName="my.custom.package" and another with packageName="some.other.package.name" Aug 06 21:34:23 Does it actually move every single class in my.custom.package? Aug 06 21:34:27 That sounds like a horrible approach Aug 06 21:34:32 when i go to build flavor2 (with packageName="some.other.package.name"), gradle fails at the aapt step because my.custom.package doesnt exist (since we are within namespace "some.other.package.name") Aug 06 21:34:49 this shouldn't matter for custom views Aug 06 21:35:26 only stuff that is referenced in the manifest Aug 06 21:35:31 (really, what SimonVT said - if you're not changing the package name of all your classes (which is a bad idea) you'll be fine) Aug 06 21:36:02 the packageName in the manifest doesn't need to actually be a package used in the code Aug 06 21:36:18 RyanM: yes that does the trick! Aug 06 21:36:34 The right way to get a transparent window is to make a transparent layout right? It will not work to not set a layout? Aug 06 21:36:51 Kake_Fisk: a transparent theme Aug 06 21:37:15 Kake_Fisk: only that makes the transparent layouts "transparent" on the launcher Aug 06 21:37:56 The Theme.Translucent.NoTitle won't suffice, right? I have to make my custom theme? Aug 06 21:38:23 yes google for "android splashscreen" Aug 06 21:38:31 there are a lot of examples out Aug 06 21:38:37 Okay, I'll try that Aug 06 21:39:37 RyanM: actually, it looks like the issue is with my res/values/attrs.xml Aug 06 21:39:59 i have a declare-styleable element with "my.custom.package" Aug 06 21:40:38 so that i get No resource identifier found for attribute 'backgroundColor' in package "my.custom.package" when attempting to build flavor2 (with packageName="some.other.package.name") Aug 06 21:41:04 yes you have to add the R. imports in every file Aug 06 21:41:44 monsti: that's not his issue Aug 06 21:41:53 he's actually right in this case Aug 06 21:42:57 smoak: are you able to declare them in a library project with a fixed package name? Aug 06 21:42:57 i guess i could have a custom attrs.xml file for each product flavor... Aug 06 21:43:16 Why is the package defined anywhere in attrs? Aug 06 21:43:22 smoak: you'll still run into the issue of the correct xmlns in each layout, right? Aug 06 21:43:57 I assume it's not and the issue is the xmlns declarations in the files that use it Aug 06 21:44:48 That begs the question why he's defining his package name in the xmlns scheme instead of using res-auto Aug 06 21:46:09 SimonVT: probably because that feature is very poorly documented :-) Aug 06 21:46:26 I had no idea it existed until you mentioned it. The docs use the package name. Aug 06 21:46:51 if i'm scripting ADB commands, do i need to do some sort of pausing for wait-for-device after an install command? Aug 06 21:46:56 see: https://developer.android.com/training/custom-views/create-view.html Aug 06 21:47:07 i start getting device not found after the install command returns Aug 06 21:47:08 zaltekk: you shouldn't Aug 06 21:47:12 Huh Aug 06 21:47:24 They should change that Aug 06 21:47:36 RyanM: do you have an alternative? Aug 06 21:47:50 zaltekk: "shouldn't" is the key word. Aug 06 21:48:08 you *shouldn't* be getting device not found either Aug 06 21:49:00 SimonVT: might be worth a bug report Aug 06 21:49:19 adb install my-apk.apk ; adb shell some-command Aug 06 21:49:20 I can't find the Style resource in Eclipse/Android SDK. I'm looking at "New Android XML File". Am I doing something wrong? Aug 06 21:49:31 the second always reports error: device not found Aug 06 21:49:36 Kake_Fisk: it's just a resource file Aug 06 21:49:42 so pick the Resource type Aug 06 21:49:50 Oh, I'll try Aug 06 21:51:03 zaltekk: http://pastie.org/8213110 works for me Aug 06 21:51:10 RyanM, SimonVT: i still get the same issue when using res-auto Aug 06 21:51:28 except now it says: No resource identifier found for attribute 'backgroundColor' in package 'res-auto' Aug 06 21:51:36 RyanM: any ideas what to look into? Aug 06 21:51:38 Like ? Aug 06 21:51:45 In for example styles.xml Aug 06 21:51:51 smoak: xmlns:app="http://schemas.android.com/apk/res-auto" Aug 06 21:52:01 Not res/res-auto or whatever you did :) Aug 06 21:52:04 zaltekk: if you have any other devices, see if it works on those with the same computer and everything Aug 06 21:52:05 oh Aug 06 21:52:14 SimonVT: thanks, let me try that :P Aug 06 21:54:19 SimonVT: thank you Aug 06 21:54:23 SimonVT: that works! Aug 06 21:55:57 I can't manage to make a transparent theme. :| Aug 06 21:57:36 Something obvious wrong with this? http://pastebin.com/VSie4NJ3 Aug 06 21:58:07 It doesn't make my activity transparent Aug 06 22:00:56 now my next question is how do i get these two product flavors to install simultaneously? they use the same ContentProvider, so i am getting INSTALL_FAILED_CONFLICTING_PROVIDER Aug 06 22:05:20 smoak: does it need to be exported? Aug 06 22:05:36 if not, does making it not exported fix it? Aug 06 22:07:05 (semi-related: shouldn't this say 'You can set android:exported="true"', not false? http://developer.android.com/guide/topics/manifest/provider-element.html#exported) Aug 06 22:08:03 Have each flavor define the authority in an xml file and a java file Aug 06 22:08:13 And reference them Aug 06 22:12:48 RyanM: yeah, it looks like it Aug 06 22:17:33 so.. android <= 2.3 notification icons.. Aug 06 22:18:19 arnorhs: what about them? Aug 06 22:18:43 trying to figure out what to do Aug 06 22:18:46 i remember this page: http://web.archive.org/web/20130125185941/http://developer.android.com/guide/practices/ui_guidelines/icon_design_status_bar.html Aug 06 22:18:50 but it has been removed Aug 06 22:18:57 and now there's just the iconography guide Aug 06 22:19:02 and i have a bunch of devices Aug 06 22:19:44 that outdated guide says something about the 2.3 icons being gradient grey icon .. but i have a bunch of these devices and they mostly use white or very light icons (at least for all the default notification stuff) Aug 06 22:20:00 and then there's the facebook app that does something completely different and custom Aug 06 22:20:24 and then if you take the droid incredible.. it has a black list of icons in the pull down.. and apparently adds somekind of box around its built in icons Aug 06 22:20:43 (and to be clear, 3.0 and up is super simple and straight forward) Aug 06 22:22:08 so i'm only wondering about the color we're supposed to use for notifications on android 2.3 devices Aug 06 22:23:37 a grayish color Aug 06 22:24:07 2.3 should be black, 2.2 should be that gray gradient Aug 06 22:24:16 so the bug that was killing me was not because of any real code errors, but becuase my SVG was scaling by aspect ratios, not by fill. Aug 06 22:25:14 evanc: ok, so why does almost no app do that anymore.. and the built in apps all have a lighter color... Aug 06 22:28:45 the lighter color is the correct one; everyone else is too lazy to add drawable-v8 to have correct icons for a tiny fraction of users Aug 06 22:29:19 Froyo is 2.5% of all users; I bet 2.5% of that 2.5% is actual paying customers Aug 06 22:31:45 here's my wish for santa claus: no gingerbread for christmas Aug 06 22:33:43 alankila android 5 will likely be out, and then api 14 will be the new GingerBread Aug 06 22:33:53 there will always be a gingerbread Aug 06 22:34:19 actually i take that back, from what i read last week statistically, no version of android is dominating Aug 06 22:34:27 api 14, which has 0 % of users? Aug 06 22:34:34 ok, api 15 Aug 06 22:34:55 My experimental renderscript project ended up requiring api 17 Aug 06 22:35:04 I'm clearly either living in the future or android is crap Aug 06 22:36:45 It's obviously not crap in the future! Aug 06 22:36:45 all I wanted was just to call a few methods on the renderscript programs and have a little hope that perhaps one day it would actually execute on gpu Aug 06 22:37:26 right now renderscript doesn't even parallelize on my phone's 2 CPUs. No idea why. I guess it has somehow just decided the task isn't threadable though I have no clue why it would have determined that to be the case Aug 06 22:37:54 I tried reading the source and got lost in the indirection looking for implementation of rsScriptForEach Aug 06 22:38:34 I eventually found it, I think, and there was a few tests like you have more than 1 core & that the task is threadable -- whatever determines that is unknown to me -- and that it isn't already in a forEach loop Aug 06 22:38:57 alankila write once, debug everywhere ! Aug 06 22:39:01 then it would separate input array to roughly 16k element chunks and parcel those chunks to the threads Aug 06 22:39:37 maybe the problem was that my task actually doesn't have an input array, it's generating output without input Aug 06 22:40:01 I'd rather jam forks into my eyes than try to work out what I should do with this barely documented pile of crap Aug 06 22:44:03 alankila: Maybe you should jam forks in your code. Aug 06 22:44:42 alankila it doesn't sound like you are frustrated enough. maybe you should also take on playing around with the gradle build stuff Aug 06 22:44:42 the shit is open source now if anyone cares to take a look Aug 06 22:45:20 https://github.com/alankila/live-mandelbox/blob/master/src/fi/bel/android/livemandelbox/rs/render.fs' Aug 06 22:45:25 sorry for the final ' Aug 06 22:45:25 * Gumboot remembers rifling through the thread-splitting code in renderscript a couple of years ago. Aug 06 22:45:43 StingRay_: the answer I had told me to restrict my app to the file scheme however opening from downloads and also email attatchment is both part of "content" scheme. how can I solve that? Aug 06 22:45:51 Gradle is the devil Aug 06 22:46:34 anyway that piece of bastard doesn't parallelize, the core is the root() function Aug 06 22:46:53 it's parallelizable on its face based on its signature, uchar4 __attribute__((kernel)) root(uint32_t x, uint32_t y) { Aug 06 22:47:05 I've noticed that on some devices (such as the Galaxy S3) my application name is rendered in two lines whereas on other devices the name is rendered on one line to a point followed by ellipsis. Question: Is there a way to control how the application name is rendered on the android 'desktop' or is that controlled by the device? Aug 06 22:48:12 It's controlled by the launcher Aug 06 22:48:17 g00s: it sounds to me like android is just getting worse in a sense. I almost expect to look back at this moment a few years from now and lament how things were simple now. I already saw that maven was involved somewhere now Aug 06 22:48:43 at least less than 4.x androids are about to die, if I can jump the gun with a year or two Aug 06 22:49:10 alankila: It's not your reference to statics, is it? Aug 06 22:49:34 I've never had any complaints about eclipse building apks, I don't look forwards to externalizing the android app building to some different tool. If anything, I'd like to see android evolve features similar to normal java programs like hot code replace and debug link Aug 06 22:49:36 Maybe if you had a per-pixel PRNG state, etc. Aug 06 22:50:21 Gumboot: well it's only used for dithering Aug 06 22:50:29 alankila i'm sad to say, i agree. one persistent problem has been the tooling and docs. maybe new people need to be brought in. i hope with android 5 more is done to solve the frag problem, but thats technical & political. goog is getting around the frag problem themselves by consolidating the most often changing stuff in play services; but for indie devs its a mess Aug 06 22:50:33 I could throw it out but it doesn't really even matter what is generated in there Aug 06 22:50:42 SimonVT, just to be clear, as it's controlled by the launcher we have no control over whether or not the name will be split or truncated with elipsis, correct? Aug 06 22:50:43 there's rsRand(), I could try that instaed Aug 06 22:50:45 I don't mean that it's broken. I mean that it might be upsetting to something which is trying to figure out whether or not it's safe to parallelis. Aug 06 22:50:48 e Aug 06 22:50:53 zanberdo: Correct Aug 06 22:50:59 SimonVT, Thank you Aug 06 22:51:36 Whyyyyyy doesn't git just support empty folders? Aug 06 22:51:36 Gumboot: well thanks for the suggestion. I'll try rsRand but I honestly don't expect renderscript to be capable of any deep analysis like that Aug 06 22:51:50 If at first you don't succeed. Throw all your code out and replace it with stubs which return 0. Aug 06 22:51:50 Gumboot: after all, it is not even specified which order the pixel iteration will occur Aug 06 22:51:53 RyanM just put a .gitignore in there Aug 06 22:52:00 with like one line a comment Aug 06 22:52:05 (before someone tells me it's because git tracks files - I know, but it drives me crazy) Aug 06 22:52:07 #don't delete me Aug 06 22:52:23 g00s: you don't actually even need the one line Aug 06 22:52:30 empty file will do it Aug 06 22:52:30 yeah, you can touch it Aug 06 22:52:37 but i like to know why its there :) Aug 06 22:52:50 i only did that to my libs/ directory Aug 06 22:53:09 the issue, in this case, is that the wonderful people at Google *didn't* do that, and therefore Volley doesn't build without modification. Aug 06 22:53:39 we are outside of the googleplex; thats expected, right ? Aug 06 22:53:41 If anyone wouldn't mind helping me for 5 minutes via TeamViewer, please pm me Aug 06 22:53:48 I realize it's an easy fix, but the lack of that feature in Git just causes so many issues. Aug 06 22:54:07 RyanM: wait, I didn't pay attention; Volley doesn't build without modification? Aug 06 22:54:14 pebkac Aug 06 22:54:23 evanc: [2013-08-06 15:49:17 - Volley] ERROR: resource directory '/Users/ryan/android-libraries/volley/res' does not exist Aug 06 22:54:36 don't add it as an android library Aug 06 22:54:39 just add the jar Aug 06 22:54:55 it doesn't have a res folder because it doesn't have any res Aug 06 22:55:44 git clone https://android.googlesource.com/platform/frameworks/volley && cd volley && android update project -p . && ant jar Aug 06 22:55:50 ^ the magic incantation you seek Aug 06 22:56:47 evanc: alright, I'll do that. That said, I revise my complaint to "the supplied eclipse project does not build without modification" :-) Aug 06 22:57:30 Volley bundles IDE files? Aug 06 22:57:35 Nubs Aug 06 22:57:44 hey guys, what's the best 3d lib/engine right now available on ubuntu? Aug 06 22:57:56 SimonVT: it does, Ficus even mentioned that in the I/O session Aug 06 22:58:09 trying to do a simple 3d game Aug 06 22:58:23 Bundling IDE files is fine as long as you don't bundle the wrong IDE files. Aug 06 22:58:26 SimonVT: that way you can just import it as a project. It's easy. Aug 06 22:58:30 ==RyanM Aug 06 22:58:44 hey evanc, mind if I PM you? Aug 06 22:59:01 james-ubc: this channel is for Android application development. You might try looking for a channel for ubuntu or linux dev. Aug 06 22:59:14 evanc: Switch to gradle, that way you can just open the build.gradle Aug 06 22:59:17 No need for IDE files Aug 06 22:59:41 As long as you don't use the wrong IDE Aug 06 22:59:45 alankila: Actually, I remember, now, when I was trawling through the code it looked an awful lot like the variable determining whether or not to multi-thread wasn't actually initialised. Aug 06 22:59:58 SimonVT: high-quality patches welcome! Aug 06 23:00:06 And it would randomly switch on and off by itself. Aug 06 23:00:13 Pfft Aug 06 23:00:14 Gumboot: mmh. I may look into this and perhaps open a bug at android BT ... later Aug 06 23:00:17 SimonVT: it already has build.gradle, brah Aug 06 23:00:18 But that was 4.0 Aug 06 23:00:19 I'm kind of sick and tired of the whole thing right now Aug 06 23:00:59 Anyone have any pointers on how to debug NDK memory allocation errors? Aug 06 23:01:04 The mandelbox rendering can be run -- if you have decent hardware like nvidia gtx 470 or better and firefox -- here: https://bel.fi/alankila/webgl/.secret/mandelbox.html Aug 06 23:01:09 We've got an app that worked under 4.2 but now fails under 4.3. Aug 06 23:01:13 it's practically the same code but as a webgl shader Aug 06 23:01:30 if you don't have decent hardware you may end up powering down your machine waiting for it to recover Aug 06 23:01:52 it's intense enough exercise for my gpu it actually causes it to overheat after a while Aug 06 23:02:00 crashes :-/ Aug 06 23:02:45 does a patch with an empty .gitignore in the res directory count as "high-quality"? ;-) Aug 06 23:02:50 chrome's "almost native gl environment" can't convert the shader correctly directx equivalent... yeah, this webgl is so fucking ready for prime time too Aug 06 23:03:13 write bad code, DoS the entire GPU, if it agrees to run at all Aug 06 23:03:31 evanc: Didn't look. Retrofit 4 lyf, brah Aug 06 23:04:15 facebook like Aug 06 23:05:00 http://paste.rubenrocha.me/showpaste.php?id=678&key=3TxBKye , could anyone let me know why on 73, setting the adapter on the ListView returns a NullPointerException? Aug 06 23:05:52 Radsr: heh. Why does the text jump up and down on that page? Aug 06 23:06:14 alankila, what do you mean? Aug 06 23:06:38 Radsr: well it renders funny on chrome, that's all... Aug 06 23:06:59 I think it's the
coupled with some elements with variable amounts of margin or padding, perhaps. Aug 06 23:07:12 Gah! Aug 06 23:07:12 alankila, Hmm... was fine last time I checked, I'll check on my chrome Aug 06 23:07:22 Nice to see WebGL is still allowing remote DOS attacks. Aug 06 23:07:23 alankila, any idea as to why it returns a null exception though? Aug 06 23:07:59 Better still, after forcibly shutting down my machine, on starting up again, OSX saw fit to re-open Chrome where it left off, putting me through the whole cycle again. Aug 06 23:08:16 alankila: You broke my computer. Aug 06 23:08:21 Radsr: R.id.listview_hashes can't be found I guess Aug 06 23:08:24 Gumboot: sorry! Aug 06 23:08:39 Gumboot: I should have headed the link with warnings, not tailed them Aug 06 23:08:44 alankila, it does exist though, that's what I don't understand... Aug 06 23:08:52 No problem. It's my own fault for knowingly loading a page with webgl on it. Aug 06 23:08:56 GPU programs can really kill your machine in a way that only hard reboot can fix Aug 06 23:09:13 Radsr: well findViewById probably returns null Aug 06 23:09:14 alankila, i've checked it out, thats actually a feature of GaSHI(a framework for syntax highlighting), it and 's certain params etc Aug 06 23:09:44 * Gumboot moves Chrome back to the shitlist. Aug 06 23:09:51 er... pooplist Aug 06 23:11:00 alankila, may I PM you? Aug 06 23:11:05 why? Aug 06 23:11:41 alankila, maybe you could help me figure it out more in-depth if you didn't mind of course Aug 06 23:11:53 well confirm if it's null, then figure out why the listview isn't found Aug 06 23:12:06 it's not like there's much going on in this Aug 06 23:13:56 alankila, 08-07 00:13:39.846: D/com.rubenrocha.encrypttotal(4018): android.widget.ListView{42d6e3a0 V.ED.VC. ........ 48,192-1032,192 #7f080003 app:id/listView_hashes} Aug 06 23:14:00 so its being found Aug 06 23:14:18 ive done some "debuging" with log.d and it stops when im setting the adapter.. Aug 06 23:15:41 * Gumboot doesn't remember OSX re-opening all the applications when he shuts down normally, and wonders if it only does it when recovering from a crash (ie., when doing so is most stupid). Aug 06 23:16:18 Radsr: well, I can't see any other possible null pointer usage except for lView Aug 06 23:16:40 alankila, could it be the R.layout.hashes_view? Aug 06 23:16:47 the adapter is constructed right before and it is impossible for constructor to return a null value. Aug 06 23:17:07 Radsr: the error doesn't then arise from that line but from whatever setAdapter calls Aug 06 23:17:46 alankila, true... I'm so confused right now Aug 06 23:18:52 alankila, do you suggest anything else? Aug 06 23:19:53 not really. The only possible cause for a nullpointerexception for line 73 is if lView is null at the time of call. Aug 06 23:20:26 seems strange that android.net.Uri is documented as parsing URI references which conform to RFC 2396, but it does not follow the spec Aug 06 23:21:01 alankila, yeah, but im echoing it on the catch(), which means it isnt null.. Is there another alternative to adapters or listViews themselves? Aug 06 23:21:20 Radsr: note that this kind of code is always subtly broken in sense that the activity can die and be replaced by another instance during an asynctask. You shouldn't really make inner classes of activity or any other object that android can replace under you Aug 06 23:22:16 I am working on an app that will iterate over the user's contact list, searching for contacts that have a specific custom field. I know how to find a contact based on a phone number, and on notes, but not on custom fields. I can't find anything on the developer.android.com site to explain this, either. This task needs to work on phones from 2.2 up. Help? Aug 06 23:22:41 mm wait a second Aug 06 23:22:49 I see runOnUiThread() here Aug 06 23:22:57 Yes indeed, alankila Aug 06 23:23:02 oh but trust me, I've tried without Aug 06 23:23:11 i can try again or whatever Aug 06 23:23:16 his is unnecessary. The asynctask is already running on uithread in the onpostexecute. I know it shouldn't affect anything but it's just weird Aug 06 23:23:34 alankila, I'll try removing it again Aug 06 23:23:55 i had quite a few nasty bugs due to an inner asynctask forming a closure with my activity Aug 06 23:24:07 alankila, still nullpointer >_< Aug 06 23:24:22 you aren't initializing a variable called list Aug 06 23:24:25 can someone confirm if its possible to pass input streams using intents? Aug 06 23:24:26 is the error really coming from line 73? Aug 06 23:24:40 it should already crash on the list.add("TEST") like thing, if not before Aug 06 23:24:45 alankila, from tests I did with log.d, the output stopped there Aug 06 23:25:00 it stopped right after adding the adapter Aug 06 23:25:06 iirc Aug 06 23:25:06 oh right because you just print e.getMessage() rather than the full exception. Stop doing that. Aug 06 23:25:21 i see... Aug 06 23:25:23 hold on Aug 06 23:25:33 try Log.d(TAG, "foo", e) Aug 06 23:27:07 also define TAG with 'private static final String TAG = FooClass.class.getSimpleName()' or something like that Aug 06 23:28:28 alankila, http://pastebin.com/65U9qtdL Aug 06 23:29:43 I don't know what is on 68 anymore, but I bet it's the list.add now Aug 06 23:29:59 perhaps you are a C++ programmer. They are prone to write 'ArrayList fooList' and then try to use it Aug 06 23:30:30 on java, lists are objects. This simply declared a name of particular type, but it's still null value. Aug 06 23:30:54 alankila, you are correct that it is the list.add Aug 06 23:30:59 alankila, oh right... Aug 06 23:31:09 lemme go initialize it Aug 06 23:32:38 alankila, oh wow. I'm such an idiot. it works now, sorry for any inconvinience. Also, thanks for the compliment on being a C++ Programmer, haha, I wish I could program C++. Aug 06 23:33:01 The only things I'm good at are PHP(and mysql,css,html,javascript) and Python.. Aug 06 23:34:21 I am just saying C++ programmers make that mistake, that's all. Aug 06 23:35:06 alankila, nah, I know.. I did know that i have to initialize pretty much everything, but i wasn't expecting that to be it Aug 06 23:35:31 you would have been better off without the try-catch though. You would have received the correct stack trace in the log immediately. Aug 06 23:36:00 in general I advice against catching exceptions during development, unless it's a checked one and you have to do it Aug 06 23:36:25 there may be some checked (and in some cases unchecked) exceptions that you can handle in real code so by all means catch and handle those Aug 06 23:36:28 but they are rare Aug 06 23:36:51 just keep a logcat running somewhere Aug 06 23:36:53 alankila, thanks for the tip! Aug 06 23:37:06 running lolcats ... Aug 06 23:37:22 anyone know here a android Mooc class starting very soon? Aug 06 23:39:27 damn i have to fix vbox but i am too lazy :( Aug 06 23:40:17 monsti, what's wrong with it? Aug 06 23:40:47 the dhcp doesn't save the IP/MAC leases Aug 06 23:41:03 I'd like to clone a vm and give it a specific IP Aug 06 23:41:09 (with hostonly networking) Aug 07 00:11:57 guys I cant see how I can do this, passing an input stream to a pure java class used in my application? Aug 07 00:17:24 Linkandzelda: what? Aug 07 00:18:45 i need some time to experiment evanc before I can ask a question Aug 07 00:19:41 pfn did you use pircbotx in qicr ? Aug 07 00:20:41 oh wait, i guess this is something else Aug 07 00:23:07 g00s, no Aug 07 00:26:59 anyone encountered this and managed to fix ? http://stackoverflow.com/questions/11812686/android-api-8-10-contactscontract-data-has-phone-number-no-such-column/15879928#15879928 Aug 07 00:27:30 seems I'm a little screwed with my cursor + filter due to a bug ?!! :( Aug 07 00:39:00 Anyone have any suggestions on how to troubleshoot malloc issues? We've got an app that worked with 4.2 but fails on 4.3 because malloc returns null. As far as I can tell we're not running out of memory. Aug 07 00:39:55 read errno Aug 07 00:44:15 pfn: I assume that it'd be set to ENOMEM, but I'll give it a shot. Aug 07 01:22:37 the adb_usb.ini says to not edit it. however, adb won't show my device until I add the vendorid in that file Aug 07 02:11:13 hey guys.. what's a decent way to have a DialogFragment call back into the Fragment that initiated it? Aug 07 02:11:37 I wanted to pass an instance of an interface into it and then I realized it's bad to use non-default constructors with Fragments Aug 07 02:13:11 Use setTargetFragment/getTargetFragment Aug 07 02:13:27 And implement the callback interface in your fragment Aug 07 02:13:43 ooh Aug 07 02:13:50 i was not familiar with those Aug 07 02:13:52 * tnzr reads up Aug 07 02:13:54 thanks Simon Aug 07 02:14:29 wow cool Aug 07 02:41:16 What determines what version of the Android library an Android project is built with? I can't seem to figure to figure out if it's the min-sdk, target-sdk, or the 'Project build target'? Aug 07 02:42:41 Gowie: Project build target Aug 07 02:43:15 anyone know if there's a way to use JarJar when building from Eclipse? Aug 07 02:43:50 Failing that: any easy way to deal with libraries that depend on the same libraries as your project? Aug 07 02:46:07 I'm building an Android library project which I need to be able to support all developer versions. Right now I create 3 seperate jars which each have code for different bases (GB, HC, ICS), and I want to cut that down to 1 but I'm not sure exactly what I need to require my users to do. Aug 07 02:46:46 RyanM: You're sure of that? Do you know how that works with the different dev environments? Do you pass that a command line param when you create with Ant? Aug 07 02:46:47 you need to check Build.Version.SDK_INT Aug 07 02:47:36 Gowie: I'm quite certain that's how it works in Eclipse, which is where the phrase "Project build target" appears :-) Aug 07 02:47:47 I'm fairly certain that works with Ant as well Aug 07 02:48:08 Hm.. Alright. That's really helpful, thanks man. Aug 07 02:48:37 since it writes it to project.properties Aug 07 02:48:47 and the default build.xml for Ant includes: Aug 07 02:49:08 Cool. Aug 07 02:50:02 Have you ever run into any library project which require you to update your Project build target? Aug 07 02:52:49 The build target shouldn't matter in any circumstance I've run into. Aug 07 02:53:26 well Aug 07 02:53:32 *raising* it shouldn't Aug 07 02:53:58 lowering it will make things not build if you use stuff from later versions Aug 07 02:54:35 Yeah I Aug 07 02:58:33 Yeah I'm trying to support the latest version and I need to hook into what methods my users use, so I need to hook into the latest methods. **** ENDING LOGGING AT Wed Aug 07 02:59:58 2013