**** BEGIN LOGGING AT Thu Mar 27 02:59:58 2014 Mar 27 03:00:01 codeguru: thanks anyways! Mar 27 03:00:19 Schoumi: yes when I go to that address in the browser I can see an xml file Mar 27 03:00:24 with lots of info Mar 27 03:00:44 hum your browser is configure with a proxy? Mar 27 03:02:08 Schoumi: apparently not! Mar 27 03:03:20 hum i can't do more, try googling your error i have no more idea Mar 27 03:04:19 Schoumi: alright thanks anyways :) i'll look around and update Mar 27 03:05:00 ok Mar 27 03:05:22 after thinking about how to design my SQLite schema, i immediately regret not taking a databases class in college :( Mar 27 03:05:57 so im trying to save a bitmap in a byte[] array (done). now i need to decompress it back into the same bitmap. not into a NEW one. im not garbaging this bitmap. sameBitmap = BitmapFactory.decodeByteArray(savedData, ..... ) <--- will this throw away the original bitmap and return a NEW one? Mar 27 03:06:03 if so... how do i NOT do so Mar 27 03:06:43 I440r: well they're two different objects Mar 27 03:06:45 I440r: yeah it do a new one Mar 27 03:06:52 ^ Mar 27 03:07:02 one's a byte[] and the other's a Bitmap Mar 27 03:07:07 how do i decompress the saved data back into the original bitmap? Mar 27 03:07:30 that is the original bitmap Mar 27 03:07:31 you dont get it i did bitmap->byte[] now i want to do byte[]->SAME bitmap, not a new one Mar 27 03:07:46 i'm not sure is it possible Mar 27 03:07:49 ok so it doesnt garbage the original bitmap and return a new object Mar 27 03:07:57 why you want to do this? Mar 27 03:08:14 because my application is EXTREEEEEEEEMLY memory intensive Mar 27 03:08:28 and the less i throw away CONSTANTLY like every 125ms the better Mar 27 03:08:34 make it not memory intensive Mar 27 03:08:37 :D Mar 27 03:08:52 yea well if anyone has any non stupid suggestions :/ Mar 27 03:10:12 ok i'll try again. Why you want to get the byte array and then set it again in the same bitmap? you make some change on it? Mar 27 03:10:35 hello g00s Mar 27 03:10:55 its a constructed bitmap. or half of it. thers more data to go into it. but while this part does not change the very often the OTHER parts do Mar 27 03:11:11 this part changes less often i should say Mar 27 03:11:32 changing data will be overlayed on top of it Mar 27 03:11:59 i dont want to have to keep throwing this away and rebuilding it every 125 ms. i dont think that will work very well Mar 27 03:12:18 i.e. i doubt the garbage collector will be able to keep up Mar 27 03:14:20 I440r: maybe look at ByteBuffer and copy method of bitmap Mar 27 03:14:29 i don't know if it help Mar 27 03:14:49 it wont unless the copy method COMPRESSES the bitmap data and the copy back decompresses it Mar 27 03:15:15 hum not copy -> copyPixelFromBuffer Mar 27 03:15:36 erm not following you there lol Mar 27 03:16:10 http://developer.android.com/reference/android/graphics/Bitmap.html#copyPixelsFromBuffer%28java.nio.Buffer%29 Mar 27 03:16:37 no that wont help Mar 27 03:16:49 beause it will just overwrite the bitmap with a compressed bitmap Mar 27 03:17:02 well i don't know Mar 27 03:17:08 like viewing a JPEG without decompressing it lol Mar 27 03:17:14 what would be the way to add tabs to a fragment? Mar 27 03:17:25 tabhost? Mar 27 03:17:40 im not looking for a Bitmap foo = new Bitmap(decompress some data from over there) Mar 27 03:17:51 or actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); Mar 27 03:18:09 im looking for a decompress_A_to_B(Byte[] A, Bitmap B); Mar 27 03:18:18 Anyone recommend a resource for me to figure out how to add an android library project as a library in Android Studio? Mar 27 03:18:22 ecept java doesnt work that way Mar 27 03:18:30 java is very much a throw away society Mar 27 03:18:45 very wasteful of time and resources :/ Mar 27 03:18:46 @Mentos I remember having trouble with that Mar 27 03:18:46 Mentos: add the .jar to the libs folder Mar 27 03:19:06 Let me see if I can find the stackoverflow article i saw for adding facebook sdk Mar 27 03:19:11 Mango_Man: its not a jar, its the DropboxChooserSDK https://www.dropbox.com/developers/dropins/chooser/android Mar 27 03:19:14 Mentos: then write this in your build.gradle: compile files('libs/.jar') Mar 27 03:19:16 there is no jar but it is an android library source right? Mar 27 03:19:24 Mentos: hmm Mar 27 03:19:49 AlexAbraham: yea Mar 27 03:20:05 https://stackoverflow.com/questions/19961828/using-facebook-sdk-in-android-studio/20221453#20221453 Mar 27 03:20:12 Mentos hopefully that will help Mar 27 03:20:17 k thanks a lot ill try it out Mar 27 03:20:33 I was able to apply it to a github android library and it worked Mar 27 03:20:36 np :-) Mar 27 03:20:48 Anybody here know how to use alarmmanagers? Mar 27 03:20:53 I could really use some help Mar 27 03:21:29 does anyone know what the term is for the notification message that pops up in the main area of the screen? Mar 27 03:21:45 it's usually shown with a black background and disappears after a few seconds Mar 27 03:21:58 kate_r toast? Mar 27 03:22:18 AlexAbraham_, oh yes you're right Mar 27 03:22:43 Toast.makeText(getApplicationContext(), "Hello World", Toast.LENGTH_SHORT) i think Mar 27 03:22:43 AlexAbraham_, do you know if there's a max length for a toast? Mar 27 03:22:52 i prob messed up somewhere :p Mar 27 03:23:14 usually u should use Toast.LENGTH_SHORT or Toast.LENGTH_LONG for the time length Mar 27 03:23:28 a toast's appearance is independent from activities, right? Mar 27 03:23:34 right Mar 27 03:23:37 i think Mar 27 03:25:17 AlexAbraham_, ok i'll look up on that. thanks Mar 27 03:25:27 np Mar 27 03:25:39 anyone know how to set alarmmanagers? Mar 27 03:25:49 AlexAbraham_: lol finally, i followed so many different tutorials, the key was that build.gradle file (i still had to tweak it though) as well as removing the libs directory Mar 27 03:26:01 right Mar 27 03:26:07 suppose i COULD write my own NDK compressor and decompressor to act directly on the Bitmaps mem Mar 27 03:26:12 i spent hours scouring stackoverflow for that Mar 27 03:26:20 honestly dont want to do tht tho Mar 27 03:26:23 but i thought that response i sent u was great Mar 27 03:26:32 AlexAbraham_: thanks so much, I'm like delirious right now from trying Mar 27 03:27:06 hahaha Mar 27 03:27:14 it really should be an easier process :p Mar 27 03:27:30 why every time i recompiled an .apk using apktool i got error and cant install again? Mar 27 03:28:09 RicoSantanna I haven't used APKTOOL in a while but maybe it has to do with some of the .9 pngs? Mar 27 03:29:40 AlexAbraham_: as well as i had a trailing ':' where i shouldn't Mar 27 03:29:56 i get error after build sucessful Mar 27 03:30:19 its a miracle Mar 27 03:30:46 AlexAbraham_ do u know ingress? Mar 27 03:30:48 dunkel2: I like the action bar tabs more Mar 27 03:31:01 and if it is a fragment in a drawer Mar 27 03:31:11 is ok to modify that actionbar just in that fragment? Mar 27 03:31:24 do i ned to reset the action bar on the other fragments? Mar 27 03:32:44 hey Mar 27 03:33:13 Alexxxx Mar 27 03:33:16 hey Mar 27 03:33:19 sorry about that Mar 27 03:33:23 :-) Mar 27 03:33:26 new to irc :p Mar 27 03:33:54 i dont remember how to send and msg to u....kakakaka Mar 27 03:34:00 i forgot Mar 27 03:34:17 Alex, do u know ingress? Mar 27 03:34:33 Ingress game... Mar 27 03:35:46 i got one question: before my main activity is loaded, i get a black screen with the title bar shown. does anyone know how to change that 'splash screen'? Mar 27 03:35:52 ya ive heard of it Mar 27 03:35:58 ive played once Mar 27 03:36:23 ya Mar 27 03:36:27 kate_r Mar 27 03:36:32 i have a good article for you Mar 27 03:36:38 AlexAbraham_, thanks :) Mar 27 03:36:55 http://www.androidhive.info/2013/07/how-to-implement-android-splash-screen-2/ Mar 27 03:37:09 I couldn’t download the code so i just read through it Mar 27 03:37:33 AlexAbraham_, that's fine. thanks :) Mar 27 03:37:57 basically you make a new activity and make that the main one, then have an imageview to display whatever you want and set a timer for a few sec and then call intent to start main activity and then call finish() to close splash screen Mar 27 03:38:43 so... im trying to modify this .apk Mar 27 03:38:55 change graphics? Mar 27 03:39:05 no... Mar 27 03:39:15 enable mock location Mar 27 03:39:38 remove if and else ... :-) Mar 27 03:39:42 that has to be enabled in the apk or on your phone? Mar 27 03:39:48 ah Mar 27 03:39:56 so you have to modify source code Mar 27 03:39:56 in decompiled apk using apktool Mar 27 03:40:04 yes Mar 27 03:40:43 thats more complicated than you would think Mar 27 03:40:53 :-/ Mar 27 03:40:58 i think apk’s are designed to not be modified easily Mar 27 03:41:10 ok Mar 27 03:41:17 thank u anyway :-) Mar 27 03:41:50 maybe this could help? Mar 27 03:41:51 https://stackoverflow.com/questions/3593420/android-getting-source-code-from-an-apk-file Mar 27 03:42:15 i think that i forgot to signing the apk Mar 27 03:42:23 i´ll try Mar 27 03:43:10 sry my bad english, i´m brazilian Mar 27 03:43:12 :-) Mar 27 03:43:34 i´m fuck brazilian... i hate this country Mar 27 03:43:38 damn Mar 27 03:45:34 :D Mar 27 03:48:11 gahhhh Mar 27 03:48:26 i need help setting up an alarm :( Mar 27 03:51:13 i all Mar 27 03:53:43 hmm Mar 27 03:54:02 whats up gordon Mar 27 04:00:56 got problem with apklib and android maven plugin Mar 27 04:02:14 looks like all I need to do with 3rd party library (normal android lib) is to pack it as zip and change extension to apklib, then install it with mvn install-file. it's ok but when it doesnt find my androidmanifest. Mar 27 04:02:46 Hi everyone, any idea why this is happening ? Mar 27 04:02:47 http://imagebin.org/302040 Mar 27 04:03:28 when something usualy happns to me like that Mar 27 04:03:41 geneller: i usually have to close eclipse in windows Mar 27 04:04:58 jareddlc: like start Eclipse once you plugged in the usb port? Mar 27 04:05:25 i usually close eclipse, and make sure my phone is connected before starting eclipse Mar 27 04:05:33 but im on a diff system so im not sure if that helps Mar 27 04:05:38 someone else might be better help Mar 27 04:05:38 got it .... trying Mar 27 04:05:58 i tend to get that Mar 27 04:06:01 when i disconnect my phone from usb and connect it back while eclipse is still running Mar 27 04:06:16 No, it didn't work Mar 27 04:06:20 is it scalable or good to use GCM for chat services? Mar 27 04:07:10 no Mar 27 04:07:23 pfn: no for GCM? Mar 27 04:07:25 sorry geneller i dont know Mar 27 04:07:44 anyone have experience with alarmmanagers? Mar 27 04:07:55 that's ok jareddlc, thank you for trying Mar 27 04:08:02 geneller: maybe try adb kill-server & restarting it, or unplug replug your device Mar 27 04:08:10 I'm having this issue on different computers though Mar 27 04:08:11 can u try adb Mar 27 04:08:52 canvs2321: Hi, I tried unplug - replug, didn't work Mar 27 04:09:01 trying adb kill-server .... Mar 27 04:09:01 geneller: you need udev rules Mar 27 04:09:25 on 100% ;) Mar 27 04:09:54 what device do you have ? Mar 27 04:10:14 http://developer.android.com/tools/device.html Mar 27 04:10:30 gordon_: Hi, I have two, a Xperia Sola (works well) and a Samsung Note 3 (Doesn't work) Mar 27 04:11:20 geneller: check link I posted Mar 27 04:11:36 this is file where you need to paste your rules: /etc/udev/rules.d/51-android.rules Mar 27 04:12:51 android:drawable="@android:color/transparent" is it possible to change the drawable for another colour there? Mar 27 04:13:28 got it, let me try Mar 27 04:14:06 funny thing: when I run "adb devices" I get this: Mar 27 04:14:10 List of devices attached Mar 27 04:14:12 ???????????? no permissions Mar 27 04:16:13 Hmmm, found this Mar 27 04:16:14 http://stackoverflow.com/questions/9210152/set-up-device-for-development-no-permissions Mar 27 04:16:48 I run adb as sudo and now I got the device Mar 27 04:18:15 geneller: yes, because you dont have rules for device Mar 27 04:18:27 sudo will work, but it's not preferred way Mar 27 04:18:32 add rules and restart Mar 27 04:18:38 is it because of udev rules ? Mar 27 04:18:43 yes Mar 27 04:18:49 Hmmm never heard of it Mar 27 04:18:55 gonna look at it Mar 27 04:20:07 Thank you guys, I owe you one :) Mar 27 04:20:42 np Mar 27 04:41:01 afahim_: Any luck installing API 17? Mar 27 05:12:37 Hi Mar 27 05:12:59 want to know why this function does not work Mar 27 05:13:15 protected void Canales() Mar 27 05:13:15 { Mar 27 05:13:15 this.sendRawLine("Join #sexo"); Mar 27 05:13:15 } Mar 27 05:13:39 Hi, is there a function to return the state (play, pause, stop) from a MediaPlayer, or do I need to keep track myself? Mar 27 05:13:54 Canales(); Mar 27 05:14:48 b0t: cuz b0t==null; why the shit are you such a troll? can you send selfie? Mar 27 05:15:11 bet you are a mess Mar 27 05:15:27 what? Mar 27 05:15:41 twat? Mar 27 05:15:50 I am following a tutorial in a book and a little confused. I have an AudioPlayer class which encapsulates MediaPlayer. And in the AudioPlayer I have MediaPlayer.OnCompletionListener() ... but I need this listener to send a message to my fragment, so that it can enable the play button. How should I go about this? Mar 27 05:17:03 nebby: find your fragment and call a method on it. or have a global listener for such changes and have fragment call methods from main data Mar 27 05:17:04 canvs2321: shut up Mar 27 05:18:06 Is it good practice to call my fragment (the controller) from my audiosource (the model)? Mar 27 05:18:14 .c Mar 27 05:18:50 nebby: if you search fragment manager for your fragment&is available can always create a method in your fragment that can be called Mar 27 05:22:18 .j java Mar 27 05:22:52 what is that? Mar 27 05:23:35 canvs2321: I'm a little new to this, could you explain a bit more? Mar 27 05:23:51 woulda been more clever with .j ##java, but you are an idiot...seriously, you are an idiot Mar 27 05:24:22 nebby: you need to connect your fragment to your main activity, and exchange as you desire Mar 27 05:25:00 I am using a layout fragment Mar 27 05:25:33 nebby: there is a isPlaying() for MediaPlayer Mar 27 05:25:44 nebby: your fragment is loaded by another source? there are many ways to connect and share. just gotta find what works for your situation Mar 27 05:29:00 what should I use with maven apklib or aar now ? Mar 27 05:30:02 thanks shmooz that works Mar 27 05:30:28 canvs2321: my fragment is a layout fragment... as in I'm using the XML attribute Mar 27 05:31:00 XML element* Mar 27 05:39:10 Greetings developers. I'm building a simple platformer where the characters move integer-based speeds, but I would like to have floating point strides like 1.5 pixels. Is this possible and is it easy to implement? Mar 27 05:39:59 ok, this project is just too complicated to mavenize... Mar 27 05:40:38 JakeWharton: is it possible to use robolectrc from intellij with standard android project ? havent seen something like that in the internet Mar 27 05:42:55 What is a standard android project? Mar 27 05:43:10 Gradle based, Maven, IntelliJ only-based? Mar 27 05:43:27 the first one which was from the beginning Mar 27 05:43:34 not gradle or maven Mar 27 05:43:50 intellij only (or eclipse) Mar 27 05:45:13 canvs2321 b0t doesn't quite pass the turing test, does IT Mar 27 05:45:20 p Mar 27 05:45:25 exactly Mar 27 05:45:26 aka aka aka aka Mar 27 05:45:31 i need help guys Mar 27 05:45:42 this.sendRawLine( Mar 27 05:45:42 "NICK " + "data.getExtras().getString("apodo"); Mar 27 05:45:42 ); Mar 27 05:45:59 not work Mar 27 05:46:21 please forgive me Mar 27 05:46:24 oh lala Mar 27 05:46:26 :b0t can you use pastebin? Mar 27 05:46:32 yess Mar 27 05:46:40 its only this code Mar 27 05:46:59 :b0t = b0t: Mar 27 05:47:08 return = null; Mar 27 05:47:17 :b0t you are bot?! :) Mar 27 05:47:24 no Mar 27 05:47:27 im a stupid Mar 27 05:47:35 Are fragments still NOT retained by default? Mar 27 05:47:40 b0t: what was that open source irc program you were learning from ? Mar 27 05:47:52 yaaic Mar 27 05:47:53 I am expecting my audio playing to cut off when I rotate my device, but it keeps playing Mar 27 05:48:02 i create a class nick change Mar 27 05:48:25 first send a raw nick + string = edit text Mar 27 05:48:32 but not work Mar 27 05:51:35 sendRawLine("Nick" + "data.getExtras().getString("apodo")"); Mar 27 05:51:46 JakeWharton: I've found this: http://dasherize.blogspot.jp/p/as-part-of-week-long-android-bootcamp.html Mar 27 05:51:46 apodo is name in spanish Mar 27 05:52:48 gordon_: it should work fine Mar 27 06:12:30 :JakeWharton any solution for android web sockets in Square? Mar 27 06:12:44 we don't use websockets Mar 27 06:13:02 :JakeWharton what do you use? Mar 27 06:13:33 for real time push notification and chatting? Mar 27 06:14:32 GCM for push, don't have chat Mar 27 06:15:04 JakeWharton: clear, thank you! Mar 27 06:19:44 hey guys Mar 27 06:19:58 is passing around context to classes bad? Mar 27 06:20:05 anything i should keep in mind if i do? Mar 27 06:21:59 don't let them outlive the context Mar 27 06:28:11 JakeWharton: what do u mean? Mar 27 06:28:48 you can pass contexts around (and you should) but they should only be objects that are used inside of the thing from which they got the context Mar 27 06:29:04 don't store them in static variables, for example Mar 27 06:30:25 :( Mar 27 06:30:33 thx for that tip Mar 27 06:30:43 storing them in static vars is a big no-no? Mar 27 06:30:54 is that becuase if the class exists longer than the lifespan of the acitivity? Mar 27 06:31:27 so pass it to the contructor, use it and thats it, dont store it Mar 27 06:31:46 does the same apply to handlers? Mar 27 06:32:06 you can store it in classes as long as those classes only exist inside of the activity Mar 27 06:32:11 a good example of this is a view Mar 27 06:32:20 a view is just a class into which a context is passed (and stored) Mar 27 06:32:41 because that view is only used inside of the activity, you're safe Mar 27 06:33:28 okay i just rmoved the context frmo static var Mar 27 06:33:33 thx JakeWharton Mar 27 06:33:41 does it apply same to handler ? Mar 27 06:34:38 not sure. a handler is just a wrapper around a queue and thread so i'm inclined to say no Mar 27 06:40:01 alright JakeWharton thx alot Mar 27 06:40:06 i just pushed Mar 27 06:40:09 calling it a night Mar 27 06:46:37 4.0.30 what number should be instead of "4.0.30" ? Mar 27 06:46:52 sorry, I googled first, couldn't find Mar 27 06:55:16 if I use gradle, why I need to add in AndroidManifest.xml? http://developer.android.com/google/play-services/setup.html Mar 27 06:57:19 kamol: so it can be queried by the service at runtime Mar 27 07:02:38 hi, do I need multiple build-tools version or can I stick with the latest? Mar 27 07:02:51 I don't need to build existing project I'm starting one from scratch Mar 27 07:04:15 anddam latest Mar 27 07:04:20 thanks Mar 27 07:04:40 can you also possibly point me to a reference that explain the difference betwee tools/platform-tools/build-tools? Mar 27 07:04:56 IIRC two of those were merged until a certain point Mar 27 07:05:55 I'm going to build a very simple app for my use, I'm getting the olders SDK Platform I can and move forwaard if I need something from the Application Framework that has been introduced later, is that reasonable? Mar 27 07:06:11 I need just layout, buttons and a database for storing data Mar 27 07:06:53 or should I fetch latest API level SDK and specify compatibility back to 1.5? Mar 27 07:06:59 s/specify/declare Mar 27 07:19:40 anddam i'd do minSdk=15 even for hello world now, unless you're selling your app in emerging markets Mar 27 07:22:18 g00s: not selling the app at all Mar 27 07:22:25 it's for personal use Mar 27 07:22:26 Hi. I am using MediaPlayer to play an audio file. I expect it to cut out when I rotate my device, as I have not retained enabled fragments.... but it does not... any ideas why that would be? Mar 27 07:22:31 say like weed Mar 27 07:26:33 they are still selling new 2.3 phones in the US Mar 27 07:27:42 Ok I see. It works as I expect on my phone, but not on the emulator Mar 27 07:27:51 myke somebody will be selling 2.3 phones … years from now Mar 27 07:27:56 somewhere Mar 27 07:28:13 to somebody, you probably don't want as a customer :) Mar 27 07:28:29 http://www.appbrain.com/stats/top-android-sdk-versions Mar 27 07:28:38 i do want them as a customer Mar 27 07:28:54 and gingerbread still has 17% market share right now Mar 27 07:29:01 that's nearly 1 out of every 5 devices Mar 27 07:29:33 i'd rather have less better customers; since i'm only one dev dealing with my users is harder Mar 27 07:30:05 never understood that line of thinking Mar 27 07:30:05 anyhow, its all software economics and ROI Mar 27 07:30:17 like someone with a newer or more expensive phone is somehow guaranteed to be less of a raging przck Mar 27 07:30:56 hm, its about finding your core users Mar 27 07:31:09 for example, i have a lot of people that use my app in the military Mar 27 07:31:18 they have some shitty phones appropved for use Mar 27 07:33:12 i just think it's funny how internet services in generally fall over themselves trying to bring yet another uneccessary product to the rich white 20-something demographic, who are completely overserved, while anyone outside those parameters is equated with worthless human garbage Mar 27 07:33:46 myke: what do you mean Mar 27 07:34:25 as a result, i had minSdk=froyo for while, and everyone else suffered because i didn't have the resources to make the UX great across all the versions Mar 27 07:34:27 myke: you're artificially pulling the racist topic into the debate with that "white" Mar 27 07:34:30 good morning Mar 27 07:34:58 anddam: abuse by color, by wealth and age Mar 27 07:35:18 but, anyway, in order to support old SDK API level should I start with 1.5 or should I start with 4.4 and import a compatibility library? Mar 27 07:35:30 sounds like "Android Support Library" http://developer.android.com/tools/support-library/index.html Mar 27 07:35:38 I'm fairly new to this so hints are welcome Mar 27 07:36:11 anddam use minSdk=15 AND the support library; yeah confusing - but the support library gets bug fixes Mar 27 07:36:33 i wish they would put more cool stuff in the support library Mar 27 07:36:47 the nav drawer thing is there, and gridlayout, those are nice Mar 27 07:36:51 more things like that Mar 27 07:37:16 truth hurts? Mar 27 07:37:17 anyone tried recursive intents ? Having some issues that parent turns identical to the childs o.O Mar 27 07:38:44 TJ_CRS recursive intents? Mar 27 07:38:48 yeah Mar 27 07:38:55 g00s: why 15? Mar 27 07:39:04 nobody has 14 :) Mar 27 07:39:10 myke: what truth? shouldn't it be 15? Mar 27 07:39:15 16 might be a little too .. new Mar 27 07:39:45 but 16 has nice notifications :( Mar 27 07:39:46 I start an intent that lists a few options, when you select an option, the intent calls on itself to list the suboptions inside the chosen option Mar 27 07:40:01 all works nice till I hit back, then parent look identical to child intent Mar 27 07:40:25 g00s: that I won't be using for now, literally I need: buttons in a grid layout, a database, a data to represent timestamp Mar 27 07:40:30 data type* Mar 27 07:40:44 anddam then go minSdk =1 Mar 27 07:40:50 be merry Mar 27 07:41:17 that's in the manifest, what API level SDK should I install? Mar 27 07:41:49 there are fifteenin Android SDK Manager Mar 27 07:41:52 fifteen Mar 27 07:42:02 *in* Mar 27 07:42:27 the newest one? Mar 27 07:42:33 i defer to the more experienced devs Mar 27 07:42:51 i thought the idea was you could always use the newest sdk, with your manifest indicating the highest level of features Mar 27 07:44:41 hmmm. wondering if it could be because child is using the same view..bleh Mar 27 07:46:52 TJ_CRS: how are you differentiating the intents? Mar 27 07:47:36 on the view or the intents itself ? Mar 27 07:50:00 myke: its basically like traversing a folder recursively. when I choose a folder, it calls upon itself to show subfolder. Not really anything crazy, and it all works fine till I hit "back" revealing that parent now looks identical to the child I just closed Mar 27 07:50:51 if your vire is holding the references like it probably is Mar 27 07:50:59 and the child changes them Mar 27 07:51:30 are you inflating a new view each time? Mar 27 07:51:39 oooh, i forgot that one Mar 27 07:51:42 nope Mar 27 07:51:52 then they are all using the same view Mar 27 07:52:08 yeah, I forgot to inflate hehe Mar 27 07:52:19 I was looking at the arrays, not the view Mar 27 07:53:04 thanks for the tip mate :) when I look at a problem for too long, the solution just wont appear to me Mar 27 07:53:38 no problem Mar 27 07:54:16 that's what irc is for Mar 27 07:54:36 i'm a total noob at android...but been programming in general a wee bit longer Mar 27 07:55:59 hehe Mar 27 07:56:16 sometimes experience only helps to point out when you did a boo-boo Mar 27 07:56:23 been a programmer for almost 30 years lol Mar 27 07:56:35 oh well Mar 27 07:56:41 then you have no excuse lol Mar 27 07:56:45 nope Mar 27 07:56:46 lol Mar 27 07:57:03 solution was too obvious to see Mar 27 07:57:49 after years of awful php+html and before that even more awful html generated by perl cgis Mar 27 07:58:15 the android model of strict seoaration between code and design is refreshing Mar 27 07:58:17 lol Mar 27 07:58:58 I am a noob in php and html, and can barely write a hello world to save my life.... which is a weird thing, I worked at opera software for two years :D Mar 27 07:59:22 so a c++ coder? Mar 27 07:59:31 I'm more oldschool, give me a linux and yeah... c/c++ or even asm Mar 27 08:00:08 android suits a C++ coder well as long as you get the brain around the ui-thread that dies when anything blocking happens Mar 27 08:00:37 well there's always asm.js Mar 27 08:01:38 sometimes it's better to learn something new than to cling on old knowledge :) Mar 27 08:02:06 it sucks, but it pays off in the end. I'm so old now that new tricks makes no sense for ages :-/ Mar 27 08:02:51 Hi there, I asked about this earlier but was a bit confused. I am following a tutorial from a fantastic book. I am playing an audiofile in my fragment, which is played with using an "AudioPlayer" class, which encapsulates MediaPlayer. I want to enable the play button in my fragment again when the audio file finishes playing. I have mPlayer.setOnCompletionListener in the AudioPlayer class, but how do I send a msg to the fragment Mar 27 08:03:13 you are in a twisty little maze of coffee-named web thingys, all inscrutable Mar 27 08:03:21 :JakeWharton thank you! Mar 27 08:04:11 lol Mar 27 08:05:04 yeah, I actually was in Java last year....TWICE. you know what ? they speak indonesian,not a offspring of C++ oO Mar 27 08:05:16 hehe Mar 27 08:06:32 your shady past is from php and those obfuscated languages only their creator can ( barely ) understand ? =) Mar 27 08:07:19 well i learned C at uni...but the rezl world was all web so i had to adapt Mar 27 08:08:10 yeah, you can't escape it. damn users trying to decide what we shall code -.- Mar 27 08:09:17 damn google Play recommendations. OTOH, it scores big recommending 'Extreme Pornografitti', which is pretty obscure. Then it recommends … The Princess and the Frog waaat Mar 27 08:09:49 that descalated quickly Mar 27 08:09:50 good thing their algos aren't going to determine my loan applications Mar 27 08:09:54 oh WAIT Mar 27 08:11:12 "computers never lie" someone once told me Mar 27 08:11:23 clearly not a clever person Mar 27 08:12:41 that reminded me of Nuno, anyone remember this ? http://www.youtube.com/watch?v=mJvG1i79CPc Mar 27 08:13:20 its actually pretty easy, 150ms one tap delay Mar 27 08:15:51 Can someone please explain what the best way to enable the play button in my fragment, once the MediaPlayer.OnCompletionListener() runs in my encapsulated MediaPlayer? Mar 27 08:17:35 * g00s avoids the media apis :) Mar 27 08:18:01 g00s: I kinda like this version better, https://www.youtube.com/watch?v=efzPJHueXrs. A mate of mine made it, and yeah, it's just one person recorded many times Mar 27 08:18:51 g00s: I guess it's more a general Android question :) If I have a fragment, which has an instanve of an object, and if I have a listener on that object, how do I get the fragment to do something when the listener hears? Mar 27 08:19:00 instance* Mar 27 08:20:00 haha thats awesome Mar 27 08:20:17 :) Mar 27 08:22:56 does anyone know of a good way to imitate a toast that persists? i'd like to show some info that's context insensitive but for about 10 seconds Mar 27 08:24:16 kate_r the mail app does it when you delete something Mar 27 08:24:24 maybe you can find it in there Mar 27 08:24:41 it shows undo for like 10 seconds Mar 27 08:24:41 g00s, but isn't that the toast? Mar 27 08:24:54 i'd like the info the show up across any activity over the 10s Mar 27 08:24:58 its probably not a real toast Mar 27 08:25:12 hm, dunno Mar 27 08:25:41 i think a service can show a toast; maybe its a custom toast Mar 27 08:27:55 TJ_CRS: that was awesome! Mar 27 08:27:59 right Mar 27 08:28:23 thepoosh: :) yeah, they are quite good Mar 27 08:28:30 yes Mar 27 08:28:34 very skilled Mar 27 08:28:47 not like douchebag Yangwee Malmsteen Mar 27 08:28:51 but good Mar 27 08:29:04 g00s, i've just written a hack with CountDownTimer Mar 27 08:30:02 thepoosh: i think when he's played as much as Malmsteen, he'll be a good match :) Mar 27 08:30:32 yeah, but he won't be a weird dude that sweats a lot and thinks he's a god Mar 27 08:30:41 lol Mar 27 08:30:44 I agree Mar 27 08:31:37 hi. do you know an app that can manage the default "open-with" for file extensions? Mar 27 08:32:01 superlinux-hp: it's called the application manager Mar 27 08:32:11 ah ok! Mar 27 08:33:04 thepoosh i had lunch with yngwie when i was in rochester :) Mar 27 08:33:18 dude, all those guys have huge egos Mar 27 08:33:30 Steve Vai, Billy Sheehan, Yngwie, etc Mar 27 08:33:44 yes Mar 27 08:33:53 I wouldn't want to be friends with them Mar 27 08:34:01 and their egos fight when they are onstage together Mar 27 08:34:05 g00s: did he have something to say about his greatness? Mar 27 08:34:14 never met those, but I did lunch up with run/dmc and prodigy ( worked with prodigy two or three times ) Mar 27 08:34:30 prodigy was..not unfamiliar with cussingone could say Mar 27 08:34:30 yngwie is a musical genius. Mar 27 08:34:42 he's pretty good Mar 27 08:35:00 he can improvise a whole concert Mar 27 08:35:00 I don't think he has emphasis on creativity more than just pure skill Mar 27 08:35:10 thepoosh, all I want is to attach a file extension to an app, how can I achieve that? Mar 27 08:35:10 idk... Mar 27 08:35:28 superlinux-hp: do you mean, you want to change the *.apk? Mar 27 08:35:41 or that there will be an action that opens your app? Mar 27 08:35:52 because that sounds like Intent.ACTION Mar 27 08:36:30 g00s: I remember listening to the classical bits from him for hours at a time Mar 27 08:37:05 i have no idea what he's doing now. for some reason i stopped listening to music Mar 27 08:37:31 thepoosh, you know on linux or windows you do "open with" to run the file using the app you selected? I want this app be the default to run the file. Mar 27 08:37:31 he's probably wearing leather pants and talking about his greatness Mar 27 08:37:40 hehe, sure Mar 27 08:37:50 superlinux-hp: that's what the application manager does Mar 27 08:39:26 how can I do that? I went to the app in concern, and I could not find a way to set the extension Mar 27 08:40:15 guten morgen. Mar 27 08:43:20 rgr: I do agree this is morning Mar 27 08:56:38 ;) Mar 27 09:01:45 Does the Location Services API work if I don't have Google Play installed or I have it installed but I'm in a country where Google Play paid apps are not available? Mar 27 09:02:17 I need a reliable way to determine the user's country at any given moment when he is using my app Mar 27 09:06:57 I could use https://developer.android.com/training/location/index.html but I'm not sure I'll get the location of Google Play services client library returns "Unavailable" error Mar 27 09:07:09 s/of/when Mar 27 09:08:21 99 little bugs in the code, 99 little bugs. Take one down, patch it around, 127 little bugs in the code -.- Mar 27 09:09:10 IntentServices are awsome for sending jobs to the background. But are there any drawbacks to using them? Have any of you ever had som problems with IntentServices? Mar 27 09:09:16 i can't blame myself for giving my career as a programmer the boot and go fireman instead. It's far more relaxing Mar 27 09:09:51 lol @TJ_CRS :) Mar 27 09:12:20 I can literally feel my hair turn gray sometimes, I google up an issue someone have which is identical to mine, and their answer 90% of the time introduces a variable that is seen nowhere else in the entire webpage lol Mar 27 09:12:27 mihalybak: what sort of problems would you expect. Standardised API for offloading work from the main thread. Other than the usual multi process/thread caveats and gotchas what would you expect? Mar 27 09:12:58 TJ_CRS: exactly the same issues here. Trying to find gradle solutions. Nightmare. 99% of hacks in google now dont work or rely on something not listed in the answer. Mar 27 09:13:23 rgr: not expecting anything speciel, just wanted to check which experiances other deverlopers had Mar 27 09:13:48 Always a kind of catch 22 : you need to know it to learn it. Mind you in the olden days one had to wait three weeks to get a book and go from there. Now a world of misinformation is just a google away. Mar 27 09:14:17 lol no kidding Mar 27 09:14:25 nice :) "Now a world of misinformation is just a google away." Mar 27 09:14:45 in the olden days, there was no "magical" variable that would help you.. Either you make it, or it's not there Mar 27 09:15:24 I for one do not miss the olden days with Java ME, Mar 27 09:15:31 that was crap! Mar 27 09:15:34 lol Mar 27 09:16:04 I miss the lists in C. Nothing crashes like a broken list Mar 27 09:16:22 and u wont find the error. ever. Mar 27 09:16:22 JAVA ME is not olden days. Mar 27 09:17:26 C was a language you could trust though, and there werent 28 gazillion versions of the same library where you needed a build system 58 Gigs in size to compile hello world. And when you ran it it "just appeared" but taking 20 seconds to jump start a JVM... Mar 27 09:17:43 s/but/and not Mar 27 09:17:59 well, wasn't C that was broken... it was always YOU that was the problem. I cried a lot in those days Mar 27 09:18:35 I was a handy enough C programmer and never had many problems tbh. I loved the way YOU were resposnible for your mess. I made you think. I'm not a fan of GC. Mar 27 09:20:32 I love a well-written C-program. in fact, last week I made a company for my app - and it communicates with a linux server, which I wrote in the nicest C-code. It has lists, it has callbacks and it have forked childs.... mmmhh... *snif* it's really something Mar 27 09:20:42 and it all just works Mar 27 09:23:26 You hade a company for your app? :) Mar 27 09:23:35 yup Mar 27 09:24:07 Not an app for your company? Mar 27 09:24:18 otherwise they have to hire me in order to pay me... which all seems unproffesional Mar 27 09:24:36 first made the app, then the company when app started working kinda Mar 27 09:27:55 TJ_CRS: so you quit? or you still coding ? Mar 27 09:28:11 I quit programming 7 years ago and became a fireman Mar 27 09:28:46 but I have so much downtime at work that I started programming at work... plus I have 17 days off every 4 weeks, so gotta do something Mar 27 09:29:16 * shmooz yanks the fire alarm Mar 27 09:29:28 HEY ! dont mess with the detectors Mar 27 09:29:35 i have a need to make a carousel with all the views visible at the same time and such (views being only images thankfully). i was wonering is it worth the effort to make the carousel from real views or just rener it manually on a surface view? Mar 27 09:29:49 actually I did and I can't get it closed again Mar 27 09:30:13 androids stiff animation api is making me doubt it can be done natively Mar 27 09:30:46 yeah its good if you get one of those slacker jobs and use the time to program Mar 27 09:31:08 yeah Mar 27 09:31:35 security guard is another Mar 27 09:31:38 true Mar 27 09:31:57 there's plenty of those kind of jobs that allows you to dev Mar 27 09:34:45 seems my beautiful recursive intent-viewer is getting the bin, either I can't go back in it or it doesn't listen to clicks lol Oh well, fragments is superiour anyway I guess Mar 27 09:36:47 not sure how you cornered yourself into that corner Mar 27 09:37:18 I feel safe in corners. Mar 27 09:37:26 anyone use/ know a good resource manager?? Mar 27 09:38:06 seemed like a good idea at the time I guess Mar 27 09:38:21 intent-viewer ? Mar 27 09:39:07 intents that views contents of a traversable database Mar 27 09:40:31 I still haven't done intents or fragments :P Mar 27 09:40:44 intents is just a second activity you call up Mar 27 09:40:58 fragments is a bit more userfriendly Mar 27 09:41:05 yeah I know them or about them Mar 27 09:41:18 just haven't needed them yet Mar 27 09:41:57 JakeWharton: Error:Android Pre Dex: [robolectric-2.2-jar-with-dependencies.jar] java.lang.OutOfMemoryError: GC overhead limit exceeded Mar 27 09:42:06 this is what I get Mar 27 09:42:59 and since some pro's here avoid using fragments I'm going to try as well, so far so good Mar 27 09:43:46 I can pop up stuff and go back with saving the minimum backstack I need Mar 27 09:45:04 whats the options to intents and fragments ? Mar 27 09:45:39 you can put extras and get it to return stuff Mar 27 09:46:12 oh you mean alternative Mar 27 09:46:20 yea Mar 27 09:46:40 I just used views and layouts Mar 27 09:47:01 and setVisibility( show/hide Mar 27 09:47:38 shmooz are you using https://github.com/square/mortar Mar 27 09:47:48 you can detect a listview's exact scroll position and save it for when you come back to it Mar 27 09:48:10 hey Mar 27 09:48:36 g00s: in order to cope with appcompat support library (default theme) I had to start with API level 7 Mar 27 09:48:56 g00s: no, never heard of it, I'll check it out Mar 27 09:49:03 anddam thats .. ok. nobody has 7 any more Mar 27 09:49:24 i was the last person with a froyo phone, which i gave up about 6mos ago Mar 27 09:49:28 :) Mar 27 09:51:03 I have 3 friends that still use froyo Mar 27 09:51:23 you should get new friends ;) Mar 27 09:51:33 I'm in the ghetto Mar 27 09:52:28 if i lived in tge ghetto, i'd just have a dump phone. unless its a friendly ghetto Mar 27 09:52:57 If you're io a ghetto you use a mopho(ne). Mar 27 09:52:58 nah even the bums all have smart phones Mar 27 09:53:14 where is this ghetton :| Mar 27 09:53:19 *ghetto Mar 27 09:53:26 toronto Mar 27 09:53:35 oh, canadians are friendly Mar 27 09:53:40 downtown but like cheap crack area lol Mar 27 09:54:26 to me, Camden is the ghetto Mar 27 09:55:34 anyway its confined to a block or two and then its more high class areas Mar 27 09:55:46 Camden Town? Mar 27 09:55:49 so location is convenient and rent is cheap Mar 27 09:55:58 no toronto Mar 27 09:56:02 yup, thats a ghetto. Mar 27 09:56:52 rgr http://www.ci.camden.nj.us/ Mar 27 09:57:44 hehe http://www.rollingstone.com/culture/news/apocalypse-new-jersey-a-dispatch-from-americas-most-desperate-town-20131211 Mar 27 09:57:51 "The first thing you notice about Camden, New Jersey, is that pretty much everyone you talk to has just gotten his or her ass kicked." Mar 27 09:58:29 @ Lest Trenton used to host the annual Apple-fest Mar 27 09:58:47 uh , i went to Trenton to Mar 27 09:58:52 where does Android Studio keep its settings? I opened ~/Desktop as project and now it's in "Recent Projects" list Mar 27 09:58:54 the Oranges, oh shizzle Mar 27 09:59:33 this sure feels ontopic for android development :) Mar 27 09:59:33 Does the Location Services API from Google Play Services SDK work if I don't have Google Play installed or I have it installed but I'm in a country where Google Play paid apps are not available? Mar 27 09:59:55 It will require play services Mar 27 10:00:36 How can I detect that Google Play is installed and its usable? Mar 27 10:00:39 Google Play Services is installed using google play Mar 27 10:00:50 http://www.zdnet.com/blog/diy-it/trenton-computer-festival-the-early-days-of-computing-and-me/451 Mar 27 10:00:51 Ah good times Mar 27 10:00:56 mihalybak: The client library is inside the application Mar 27 10:00:56 unfortunately there's enough topic nazis. If its quiet it does no harm. Mar 27 10:01:20 cff: unless you are developing for custom roms all android devices will have google play Mar 27 10:02:08 mihalybak: What if I'm in China? Phones there have Google Play but are not able to purchase paid apps (including apps with in app purchases, but that are free) ? Mar 27 10:02:32 cff: I dont think the paid part mathers Mar 27 10:03:03 So there is Google Play in Android phones in China? but they can only install free apps ? Mar 27 10:03:31 Not all phones have google play services Mar 27 10:03:49 I do not know the details about China Mar 27 10:03:54 Especially the Microsoft ones Mar 27 10:03:57 hi Mar 27 10:04:06 Or the Amazon ones Mar 27 10:04:06 i'm trying to design my layout as http://postimg.org/image/orrwuuoi9/ Mar 27 10:04:23 i've heard that nested weights are not adviced - but what would be an alternative Mar 27 10:04:25 Manufacturers are free to choose which app store to include in their roms Mar 27 10:04:43 Only that the usage of google play services seams to require a wokring google play and google account on the devices Mar 27 10:04:50 yes, but in China you can't buy paid apps on Google Play Mar 27 10:05:00 i was just thinking to make an outer linear layout and wrap two inside it with layout_weight=1. then in the bottom linear layout, i wrap another two inside it Mar 27 10:05:07 kate_r you could use GridLayout or RelativeLayout Mar 27 10:05:11 also with layout_weight=1 Mar 27 10:05:23 Heh - I meant to say Nokia ones ... but |microsoft| Mar 27 10:05:27 g00s, is my approach of nesting not advised? Mar 27 10:05:39 you can do that too Mar 27 10:05:46 because https://support.google.com/googleplay/answer/143779 Mar 27 10:06:13 cff: I don't think that mathers Mar 27 10:06:21 g00s, but if i use relativelayout for the bottom two, i wouldn't be able to split them equally into halfs, right? Mar 27 10:06:24 *halves Mar 27 10:07:15 mihalybak: ok, so assuming the user has Google Play installed, regardless of where he is on planet earth, I can get his location using the Location Services API available in Google Play services ? Mar 27 10:08:02 The docs says: "This API adds significant advantages over the plaform's location API. " What does the platform's location API mean? Mar 27 10:08:14 @ https://developer.android.com/training/location/index.html Mar 27 10:08:17 cff: Yes, I would think so. Mar 27 10:10:01 kate_r use LL then, or GridLayout Mar 27 10:11:12 g00s, ok thanks Mar 27 10:11:43 Hi I'm new to Android, going through a book - I have a fragment playing an audio file using a class which encapsulates MediaPlayer, how do I tell the fragment when the audiofile has finished playing? Mar 27 10:22:45 if i need my bitmaps scaled every frame on my surfaceView, is there a more efficient way to do it than just call drawBitmap? Mar 27 10:24:48 I guess I'll ask in US peak time lol Mar 27 10:25:38 Hi guys , is it possible to overlay text on the camera before you take a picture Mar 27 10:30:16 I am triggering the camera with an intent and then taking a picure to store Mar 27 10:44:05 Hi, I would like to implement a contact list which show the user who are using my app on the top section, and the users who are not using my app on the bottom section. What I can think of is to copy all contacts from phone book to my database and match contact one by one to my server can mark a field in my database. But it seems to me that dulplicate database from phone book to my app is not a good idea. Does Android provide any too Mar 27 10:44:05 help me to do so?? Mar 27 10:53:16 JakeWharton: got it until java: cannot access android.support.v7.app.ActionBarActivity class file for android.support.v7.app.ActionBarActivity not found Mar 27 10:56:01 hmm, anyone found a good pattern for dealing with deprecated "removeOnGlobalLayoutListener" warnings? Mar 27 11:05:13 Ignore them Mar 27 11:06:05 robolectric doesnt work with appcompat ? Mar 27 11:17:19 Heya Mar 27 11:17:29 How are we all? Mar 27 12:06:55 Hi last week I would get a valid response at https://www.googleapis.com/oauth2/v1/tokeninfo?access_token= with the token I obtain by GoogleAuthUtil.getToken() but now it doesn't work. I get an invalid_token response. I see the play service got an update last week, but how doesn't these affect the tokens? Mar 27 12:07:33 I'm having trouble getting my head around #dagger. Keep getting 'Module adapter for class .. could not be loaded, ensure code generation was run for this module'. Mar 27 12:14:00 Could this be because of : @Module(includes = NfcModule.class ), NfcModule being in a different (library-)project ? Mar 27 12:37:19 Question: I have a list with a simple cursor adapter. My list rows have switches in them. How can I update an item in the simple cursor adapter when the switch is clicked? Mar 27 12:38:34 this is what I’m currently trying to do Mar 27 12:38:35 http://pastebin.com/5QaQ06ED Mar 27 12:39:54 any of you guys protobuf experts Mar 27 12:44:02 Why would one advice against using a DI in an android-library project? Mar 27 12:44:48 nobody is going to follow best practices Mar 27 12:44:59 so it's going to be a waste of time Mar 27 12:45:28 lol what/? Mar 27 12:46:27 mikedg: ? Mar 27 12:53:52 Mavrik: remember me? (Phone-dial yesterday) you told me i should test if an activity accepts dial-intents. can you give me another hint about how i could do this? like when i`m looping over all activitys how can i test the current activity if it accepts a dial-intent? Mar 27 12:54:59 adkins, somewhere at the beggining of the app Mar 27 12:55:05 adkins, you create an intent that has ACTION_DIAL Mar 27 12:55:46 adkins, and then you call "queryIntentActivities" from PackageManager on that intent and it'll return all activities (and apps) that can open that Mar 27 12:56:03 just remember that that resolution can take about 100-200ms so do it on background thread :) Mar 27 12:57:01 ok thank you Mar 27 12:57:38 that works for pretty much any intent if you have to get what valid targets it has :) Mar 27 12:57:40 Hi, I'm trying to compile the renderscript library's myself, does anyone know where to start? I posted a Q on stackoverflow about it : http://stackoverflow.com/questions/22685162/compiling-renderscript-source-code Mar 27 12:58:53 DeGoosseZ, well if you'd actually see the docs Mar 27 12:59:04 you'd see that Script does not have that constructor you're trying to call... Mar 27 13:07:03 Mavrik: http://pastebin.com/77kadVVd Mar 27 13:08:05 Mavrik: getting two elements (contactApplication) but not the phone activity Mar 27 13:09:33 that is the phone activity :P Mar 27 13:09:49 Mavrik: oh really ? ;) Mar 27 13:09:51 at least on some devices Mar 27 13:10:15 thx Mar 27 13:10:15 Dear all, i am trying to build android from aosp. I got into the below error: arm-eabi-gcc: error trying to exec 'cc1': execvp: No such file or directory Mar 27 13:11:17 Keestu, you're missing a working C compiler. Mar 27 13:11:33 Mavrik: but the packagename of the selected app in my list is "com.android.phone" Mar 27 13:12:26 Mavrik, i have set the compiler path properly, and when i run just arm-eabi-gcc, it tells me 'fatal error" no input files. Mar 27 13:12:30 which indicates it is working right ? Mar 27 13:12:42 How should I go about creating google play complient icons? Mar 27 13:14:09 Hi Mavrik , I lost connection. Where are the docs you referred to? Mar 27 13:14:38 am Mar 27 13:14:41 Android API docs? Mar 27 13:14:53 you didn't even check what your parent Script class implements? Mar 27 13:15:07 Keestu, it's looking for cc1 executable Mar 27 13:15:22 hello everybody. Mar 27 13:15:33 hello Mar 27 13:15:48 found them now :p Mar 27 13:16:00 well Mavrik , we try to create our own "ScriptC" class Mar 27 13:16:11 I am facing a case when i am trying to clear the backstack with the help of 2 flags ,intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); Mar 27 13:16:16 Mavrik, True, if it looks for cc1 executable, then should we have arm-eabi-cc1 ? Mar 27 13:16:20 and ScriptC uses the Script constructor as far as I can see Mar 27 13:16:41 but the activties above my root activity gets recreated Mar 27 13:16:51 can anyone tell me why its happening ? Mar 27 13:17:28 BWestOz: can you help me out in this ? Mar 27 13:17:36 Keestu, yeah Mar 27 13:17:52 so i know theres a way to get the maximum allowed memory usage for your app, how do i get the actual usage so i can see how much wiggle room i have lol Mar 27 13:18:07 sorry sunny, betond me. I've been developing in unity and havn't really learn basic android api/ide Mar 27 13:18:10 I440r, check for available heap size Mar 27 13:18:49 Mavrik: can you help me out please Mar 27 13:19:03 I440r, http://stackoverflow.com/questions/2630158/detect-application-heap-size-in-android Mar 27 13:19:14 Do you have an idea then how to create my own ScriptC class? Mar 27 13:20:24 are there google play complient icon templates available? Mar 27 13:21:41 DeGoosseZ, I would suggest reading up on ScriptC.java source and see what they do there. Mar 27 13:21:56 BWestOz, check on design.android.com subsite Mar 27 13:22:11 Mavrik, thank you Mar 27 13:22:46 We copied the ScriptC code and just changed the class name Mar 27 13:22:56 I am trying to create a fragment containing a GoogleMap, from a fragmentactivity. I got this customclass MapFragClass, which should get a reference to the actual map, and also perform actions on it. I'm having all sorts of trouble, like not knowing how to extend MapFragClass ( as a Fragment, MapFragment and as SupportFragment?), and then on how to get a reference to it. Mar 27 13:23:12 mavrik, that page gave me 404 Mar 27 13:23:21 I am trying to clear the backstack using the 2 flags as mentioned above Mar 27 13:23:33 intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); Mar 27 13:23:34 All reference material I can find in the google docs all handle a map in a normal Activity, and never add them dynamicly, with a custom class for the fragment Mar 27 13:24:24 so suppose i have a stack with Activity A->B->C then B and C are getting recreated again. I have up a log in onDestroy which is getting called Mar 27 13:24:30 Anyone know how this would Work, a google map in a fragment, called from a fragment activty? Any reference material I could use? Mar 27 13:24:37 Is there anyway to find out which Intents are queued for an IntentService? Mar 27 13:25:05 BWestOz: the SO page from mavrik is working fine here :/ Mar 27 13:27:11 Mavrik, the constructor exists, but it's package private visible, that's why we need to compile the renderscript sources ourselves and create a new package with our class implemented Mar 27 13:30:35 Anyone knows how to compile the renderscript sources? Mar 27 13:36:20 Morning Mar 27 13:38:39 Anyone knows how to compile the renderscript sources? Mar 27 13:42:45 JakeWharton, I asked you this same question a couple weeks ago. I think you responded but I was not logging the channel, and my scroll back wasnt big enough. I have since enabled logging. I am using retrofit to make rest calls in my android app. When I run the same code as a java app it works fine. After i copy and paste it into an android activity I get the following errors: http://pastebin.com/h8f2PLEM Here is the snipet of the code th Mar 27 13:42:45 at is causing the error: http://pastebin.com/NkfdZ1m7 I have believe I have added the necessary .jars, here is my .classpath: http://pastebin.com/fwWMavZ4 I am using eclipse and android sdk only. Thanks for your help Mar 27 13:44:35 JakeWharton, btw, googling around I found this https://plus.google.com/+HenriqueRocha/posts/5mQT7uevu4B But I am not using android studio or gradle, and have already included gson. Mar 27 13:48:21 I can't use different Fragment classes form the support v4 lib and the main API, correct? What would be the advantage of using the v4 lib over the API, when compiling with api 18 to a min SDK of 11? Mar 27 13:54:24 good day Mar 27 13:55:40 ThomQ, the fact that support lib has some bugfixes for bugs in some API versions Mar 27 13:55:50 I'm trying to move a view offscreen somehow (specifically into an area that's only shown when overscrolling) Mar 27 13:56:10 can anyone help me do that? Mar 27 14:06:35 how can I ask people to write a review of my app? what code should i write in java? Mar 27 14:07:55 superlinux-hp: check out https://github.com/MeetMe/AppRate Mar 27 14:08:05 ok Mar 27 14:09:40 Mavrik: Thanks, I got ik working :) Mar 27 14:10:23 DallasG, just quickly, does it take the user to the app's page? Mar 27 14:10:29 yes Mar 27 14:10:33 ok Mar 27 14:10:33 in the play store Mar 27 14:10:45 and it' will open the review box? Mar 27 14:10:54 there's no way to do that Mar 27 14:11:01 I wish android would be like Mar 27 14:11:06 I get library to gradle Mar 27 14:11:09 and it just works Mar 27 14:11:12 same goes for tests Mar 27 14:11:18 but it doent Mar 27 14:11:22 ahhhh! that's what i want: open the review box. Mar 27 14:11:35 no way to do that, as far as I'm aware Mar 27 14:11:39 I can then open an email account to send me reviews. Mar 27 14:12:07 ..you know, with email intent Mar 27 14:12:20 if you just want them to email you, that's completely different Mar 27 14:12:28 noo Mar 27 14:12:38 I want the 5 stars too Mar 27 14:12:44 don't we all ;-) Mar 27 14:13:17 i meant not the stars themselves, I here talk about the review box Mar 27 14:13:31 Can anyone recommend me a way to get a view offscreen so that it can only be viewed when overscrolling? Mar 27 14:14:14 I just want to display something in the overscrolled area Mar 27 14:14:30 so that's why i ask.. I want the message+the stars. i don't care if i have zero stars, but i have so many people downloading the app. and the reviews are less than 1% of the downloaders Mar 27 14:16:11 again, so this library I just linked you will prompt optimize for getting them to rate your app Mar 27 14:16:28 the only thing it can't do is specifically activate the stars, or the input box for actually posting anything Mar 27 14:16:38 it *WILL* bring them to your app in the store Mar 27 14:17:43 is it possible to setup a content observer for a provider that runs in a different process? Mar 27 14:22:54 Hi all, I have FragmentA, then add FragmentB (addtobackstack = true), when I push the back button, FragmentA is visible again, is there a lifecycle method that will be triggered in FragmentA (back visible) Mar 27 14:23:33 FrancescoV: Not positive but I would guess onResume? Mar 27 14:25:00 mmarklar: nop Mar 27 14:25:01 so tempted to get the m8 Mar 27 14:26:46 in android studio, next tab and previous tab sometimes jump around randomly Mar 27 14:26:50 does anyone else have this problem? Mar 27 14:26:59 it's a really annoying bug Mar 27 14:29:06 picasso has the best API ever Mar 27 14:30:38 FrancescoV: Could you set up an OnBackstackChangedListener? http://developer.android.com/reference/android/app/FragmentManager.OnBackStackChangedListener.html Mar 27 14:31:52 mmarklar: Currently I handle it in my Activity (which handles a lot fragments), i'll check it out Mar 27 14:31:54 Mango_Man: for me "back" is command+alt+left, "forward" is command+alt+right. Mar 27 14:32:11 where left one tab is command+shift+left_bracket Mar 27 14:32:34 jaynewstrom: i remapped the left-one-tab to Ctrl+PageUp and right-one-tab to Ctrl+PageDown Mar 27 14:32:44 but i imagine the bug is there regardless of the key mapping Mar 27 14:33:00 hmmm. i don't have any problems. i use that keyboard shortcut all the time Mar 27 14:33:19 FrancescoV: you may also be able to use onCreateView too, but I'm not sure Mar 27 14:33:39 jaynewstrom: time to report an android studio bug :D Mar 27 14:33:49 mmarklar: this will be called the first time only I gues Mar 27 14:33:59 Hi! I'm not sure if this is the appropriate place, however, I'm trying to figure out how different developers deal with the taxes when selling on googleplay. Mar 27 14:35:14 FrancescoV: yeah I'm really not sure, just throwing out ideas :) Mar 27 14:36:27 Is there a way to call startService and ensure that only one instance will ever be running? Mar 27 14:37:59 bacon1989: check if the service is running before calling startService? Mar 27 14:38:07 bacon1989: http://stackoverflow.com/questions/600207/how-to-check-if-a-service-is-running-in-android Mar 27 14:38:14 Mango_Man: i've seen that, yes Mar 27 14:38:29 however, forced stop prevents onDestroy from being called Mar 27 14:38:41 which means I can't keep a tab on when it's actually running or not Mar 27 14:39:00 so i'll restart my main activity, and alas! it claims to be running! Mar 27 14:39:03 mmarklar: I know, it's nice that you would like to help me ;) Mar 27 14:40:11 I could be dirty and call a stopService whenever my MainActivity comes back online Mar 27 14:40:21 and then perform a startService Mar 27 14:40:27 yay converted one more person to scala android development Mar 27 14:40:27 win Mar 27 14:40:36 but is there a way to force a service to only be like a singleton? Mar 27 14:40:43 bacon1989: Try to bind to the service. If it fails, create a new service. Mar 27 14:41:01 freeone3000: oh, that seems interesting. i'll look into it Mar 27 14:41:09 thank you Mar 27 14:41:27 lemonxah: what's the tradeoff between less verbosity and more bugs from the extra layer of abstraction? Mar 27 14:42:43 not more bugs Mar 27 14:42:47 less bugs :) Mar 27 14:42:55 well it depends on how well you know scala i guess Mar 27 14:43:39 lemonxah: huh, i might try that out sometime. any good resources for getting started? Mar 27 14:44:02 lemonxah: i've been interested in android clojure development Mar 27 14:44:53 pfn, wrote the android sbt plugin i would start on his github page Mar 27 14:45:01 https://github.com/pfn/android-sdk-plugin#usage Mar 27 14:45:32 just the fact that scala is functional and closures and propper generics and .. NO TYPE ERASURE Mar 27 14:45:32 heh Mar 27 14:45:40 those alone make it worth while Mar 27 14:45:53 but also you get active pattern matching Mar 27 14:45:57 anyway Mar 27 14:47:17 also #sbt-android Mar 27 14:50:01 huh, type erasure still exists in scala Mar 27 14:50:05 but there are methods to reify types Mar 27 14:50:22 i am no expert just know that there is ways around it Mar 27 14:50:31 but no way to handle it in java :) Mar 27 14:50:39 there are, but it's incredibly painful Mar 27 14:50:55 I think it was neil gafter that came up with the way a long time ago Mar 27 14:51:27 http://gafter.blogspot.com/2006/11/reified-generics-for-java.html Mar 27 14:51:29 might be it Mar 27 14:53:55 hmm Mar 27 14:53:58 * lemonxah is reading Mar 27 14:54:09 i still wont use java though Mar 27 14:54:12 scala is just nicer Mar 27 14:54:29 it's nicer but compiler is slow Mar 27 14:54:53 only moderately slow Mar 27 14:54:59 its not really slow Mar 27 14:55:04 have you seen how slow gradle is? Mar 27 14:55:06 my app builds only take a few seconds Mar 27 14:55:10 * pfn shrugs Mar 27 14:55:21 at work we use java :/ Mar 27 14:55:26 and building with gradle Mar 27 14:55:39 each build i make to put on a phone takes 25+ seconds to build Mar 27 14:55:42 and meh, now that lastpass updated their password filling interface, I want to do something similar to keepshare Mar 27 14:55:47 and 10+ seconds to deploy to the phone Mar 27 14:55:59 using scala and sbt my project builds in 5 seconds Mar 27 14:56:02 lemonxah: i built with gradle in 5 seconds Mar 27 14:56:11 maybe because it's smaller Mar 27 14:56:20 yeah our codebase is HUGE Mar 27 14:56:34 that's why it takes long Mar 27 14:56:44 so saying taht 8 seconds vs 5 seconds to compile Mar 27 14:56:47 it takes our app about 45 seconds to compile, but I believe a lot of that is due to copying video files into the apk Mar 27 14:57:03 copying video files into apk is relatively fast Mar 27 14:57:05 which is only a problem if you waiting for it to do something and if you build tons of times a day Mar 27 14:57:21 it used to be 2+ minutes when I only had 4GB of ram and ran at about 90% usage Mar 27 14:57:25 lemonxah: I build a lot Mar 27 14:57:33 yeah me too well Mar 27 14:57:41 over 100 times a day Mar 27 14:57:42 my computer also become completely useless during those 2 minutes Mar 27 14:57:50 became* Mar 27 14:57:55 but that is 100 * 3 second diff = 300 seconds Mar 27 14:58:00 which is 5 mintues a day Mar 27 14:58:12 well ssd and some i7 resolves problem ;) Mar 27 14:58:14 have a coffee :) Mar 27 14:58:16 with 8gb of ram Mar 27 14:58:24 it can be ultra book's i7 Mar 27 14:58:37 this has a gen 2 i5, 8gb of ram and a SSD Mar 27 14:58:52 ugh Mar 27 14:59:15 and i am sure you win time with coding in scala anyway so standing off 5 minutes a day for compiles not a big deal Mar 27 14:59:16 jonc-1: What's SMART reporting as average seek time? When's the last time you ran TRIM? Mar 27 14:59:23 I desperately need an ssd Mar 27 14:59:32 and more ram Mar 27 14:59:41 and my home computer builds the same project in about 1/2 the time, i7 4770, 8GB of ram, no SSD Mar 27 14:59:47 build time is 2 minutes, somtimes 10 due to page faults Mar 27 15:00:07 lemonxah: depends how much well you know scala and those libraries like .. scaloid Mar 27 15:00:26 BUILD SUCCESSFUL Total time: 34.232 secs Mar 27 15:00:29 my gradle output Mar 27 15:00:35 lol Mar 27 15:00:53 I dont want to check on this laptop (core2duo 4gb of ram) Mar 27 15:01:13 oh and that is on a i7 with 16 gigs of ram Mar 27 15:01:18 running linux Mar 27 15:01:20 what ? Mar 27 15:01:27 how many classes do you have ? Mar 27 15:01:37 will check quick Mar 27 15:01:57 is there a way of checking that with github? Mar 27 15:02:05 dont think so Mar 27 15:02:07 1min 4 sec full rebuild on i7 :( Mar 27 15:03:02 1 min 42 seconds for clean + build Mar 27 15:03:05 I don't use scaloid Mar 27 15:03:12 * pfn finds little use for most scala libraries Mar 27 15:03:13 nor do i use scaloid Mar 27 15:03:19 not that i object to it Mar 27 15:03:24 just haven't used it Mar 27 15:03:42 I've published my common lib, and that's tiny Mar 27 15:03:53 all I would like to do with scala libs Mar 27 15:03:58 are views in scal Mar 27 15:04:02 https://github.com/pfn/android-common/tree/master/src/main/scala Mar 27 15:04:05 and not in xml which takes forever Mar 27 15:04:10 in xml is far better Mar 27 15:04:14 takes forever? not really Mar 27 15:04:21 just did a ( find ./ -name '*.java' -print0 | xargs -0 cat ) | wc -l Mar 27 15:04:29 its 85496 lines of code Mar 27 15:04:40 will lets say there is 1k empty / comments Mar 27 15:04:50 so make it 84k lines of code Mar 27 15:04:55 not sure on how many classes that is Mar 27 15:05:00 LOC != classes Mar 27 15:05:13 yeah i know Mar 27 15:05:13 you got cloc installed? Mar 27 15:05:24 why not find only java files? Mar 27 15:05:30 with java it's going to be fairly close to the number of .java files, depending on how often you use any sort of inner class Mar 27 15:05:48 we have innerclasses like builders Mar 27 15:06:02 all our fragments have builders Mar 27 15:06:02 inner classes, anonymous classes, etc. all count Mar 27 15:06:20 ah, forgot about those Mar 27 15:06:52 lemonxah: only 1k empty/comments for 85k lines? that seems an odd ratio, I'd guess mine is closer to 1:5-10 Mar 27 15:07:01 all I want for now is setting up robolectric with appcompat... Mar 27 15:07:48 mmarklar, i tend to not leave lines open even just 1 line between methods and 1-2 lines of comment per method Mar 27 15:07:50 I think last I checked my comment to code ratio is something like 1:80 Mar 27 15:08:13 lemonxah: fair enough I was just surprised. maybe I'm the odd one :) Mar 27 15:09:05 i dont comment code only methods cause if you know what the method is suposed to do then you can understand the code Mar 27 15:09:06 I need a workaround to handle counting down network requests, since I found a bug in Robospice’s service listener. Would you recommend countdownlatch if I have known number of operations that don’t neatly correspond to threads or Runnables? Or is there a better option? Mar 27 15:09:12 and if you dont understand the code then you need to learn Mar 27 15:09:44 lemonxah, yeah, I've always been taught to comment only if the code isn't clear, which means name things with clear names etc. Mar 27 15:10:28 not even that jonc-1 i honestly believe that if you are a programmer all you need to know is what the function is supposed to do Mar 27 15:10:28 Mavrik: i`m running circles ;( i followed what you were saying, making a dial intent, making a list of all apps which accept dial intents. now i have two apps in this list "phone" and "contacts". I only want to start DIAL-Intent when it is phone....i dont know how to go on without comparing Strings/names if i continue going this way. why the hell is it not possible to get a launchintent from any packagename, would be so easy... Mar 27 15:10:30 there have been a few systems I've done that involved multiple passes with regular expressions (allowing for a limitless number of passes) that needed some sort of explanation to keep it straight as I was working on it Mar 27 15:10:54 no matter what language its written in .. and you should be able to understand the code .. if you dont understand it then you have to educate yourself Mar 27 15:11:09 lemonxah, that's true, but just because you can figure it out, doesn't mean you should spend a ton of time reading through the entire function to figure out what all the names are Mar 27 15:11:27 lemonxah: I'm not so sure about that. Have you ever gone back to a project that you wrote years before and sat there saying wtf did I write? Mar 27 15:11:32 if a comment spoon feeds then you are not helping your colleges grow their development Mar 27 15:11:40 one thing I'll definitely agree on is that code won't lie but coments can Mar 27 15:11:46 I'm not saying spoon feed, I am saying make the code it's own comment Mar 27 15:12:10 mmarklar, mostly not thing wtf did i write in a sence of what was i trying to do .. but more of a wow i could have done it better cause i have learned so much now Mar 27 15:12:16 give variables reasonable names related to what they are doing Mar 27 15:12:21 but i have never looked back at code and not understand it Mar 27 15:12:49 jonc-1, sure but then you get cases where you do this Mar 27 15:13:26 fair enough, I definitely have looked at code I've written years before (that I didn't comment) and wondered exactly what was happening Mar 27 15:13:41 its easy enough to understand the syntax + code, but fitting it into a bigger picture is a whole nother story Mar 27 15:13:45 @SuppressWarnings("rawtypes,unchecked") public static Builder builder(Context context) { return new Builder(context); } Mar 27 15:14:10 so in my case i cant say ? extends thisfragment or that fragment Mar 27 15:14:15 and my builder is defined as Mar 27 15:14:31 public static class Builder> extends BaseFragment.Builder { Mar 27 15:15:17 so for contactsfragment and all other fragments that use this derived builder pattern you have to return the type Mar 27 15:15:41 otherwise the order in which you call the builder methods is important Mar 27 15:16:02 as in start with the most derived class and work your way up to the base Mar 27 15:16:22 if you call a method in the base builder then it returns a base builder and you cant call any derived methods anymore Mar 27 15:16:42 But again, that is the simplest way to do it, trying to wrap it in things to make it more obvious would make it even worse Mar 27 15:17:02 so in that case the code cant be self explanetory cause is a bit vague but even then i expect the other guys on the team to learn and just except Mar 27 15:17:24 sry Mar 27 15:17:34 ** to learn it and NOT just accept it Mar 27 15:18:17 all rules can be broken when necessary, nothing is really an absolute. I am not saying "OMG YOU HAVE TO DO THIS ALL THE TIME", it is more of an in general if you can, do it Mar 27 15:18:39 if you can't that is where I may add a comment Mar 27 15:18:39 yeah Mar 27 15:19:08 i am hard about it .. cause i use to work below someone that expected me to comment all my code cause he didn't understand most of it Mar 27 15:19:26 and if i wrote really cleaver code i had to remove it cause he cant maintain it .. so where is the point in that? Mar 27 15:20:02 so ever since then i started to do it a bit weird as someone in the channel just said code doesn't lie but comments will Mar 27 15:20:30 comments can is what I said :) Mar 27 15:20:31 how many times have you seen where ppl have changed the logic of the code to fix a big or change behaviour and they dont update the comment Mar 27 15:20:42 yeah that :) Mar 27 15:20:58 have you looked at the android source? what do you think about the amount of comments they have there? Mar 27 15:21:56 too low in general Mar 27 15:22:07 unsurprising with the number of developers working on it, though Mar 27 15:22:15 lemonxah, the only time I comment is if code is not overly obvious, which it is then within the code, so if it gets changed the comments will most likely go, of it I have made a non-obvious assumption Mar 27 15:22:36 JakeWharton: Interesting, I've found in the areas I've worked its been pretty well covered Mar 27 15:22:45 assumption is a bad word for that, a non-obvious observation Mar 27 15:22:52 some classes are extremely well documented Mar 27 15:22:55 some have none Mar 27 15:23:15 like the animated movie class to display animated gifs Mar 27 15:23:22 0 documentation and almost no comments Mar 27 15:23:40 JakeWharton: where are robolectric snapshots uploaded ? Mar 27 15:23:45 Sonatype Mar 27 15:24:00 http://oss.sonatype.org/content/repositories/snapshots/ Mar 27 15:24:07 thank you Mar 27 15:24:29 trying to use it with appcompat but google isnt saying much Mar 27 15:24:39 yeah it might be fixed in the latest snapshots Mar 27 15:25:29 I *really* dont want to use normal android tests... I like fast feedback Mar 27 15:25:44 how i hate fragments .. :/ Mar 27 15:25:47 no no sorry Mar 27 15:25:51 the fragment manager Mar 27 15:26:10 i hate both Mar 27 15:26:13 yes Mar 27 15:26:15 is there something like a softborder for drawables? Mar 27 15:26:25 i think it was a good idea .. but a bad approach Mar 27 15:26:38 lemonxah: wait for nested fragments ;) Mar 27 15:26:43 the concept of the fragment is good Mar 27 15:26:47 gordon_, i have tons of those Mar 27 15:27:02 I hate activities, although the fragment manager does have some issues Mar 27 15:27:30 lemonxah: so you must have tons of problems :) Mar 27 15:29:45 not that much Mar 27 15:29:52 i do have issues with .setTargetFragment Mar 27 15:30:12 that is super annoying cause the fragmentmanager only repopulates it once if you rotate Mar 27 15:30:21 if you rotate twice in a row the targetfragment is null Mar 27 15:30:26 super annoying Mar 27 15:30:43 i might do what JakeWharton have done and roll my own Mar 27 15:31:23 anyway .. i guess i have to get back to doing some real work now Mar 27 15:34:27 I need to go to sleep Mar 27 15:34:36 will check robolectric snapshot tomorrow Mar 27 15:41:03 colintheshots, what happened to using futures? Mar 27 15:42:15 JakeWharton, any idea on my question above regarding java.lang.NoClassDefFoundError: retrofit.RestAdapter$Builder Mar 27 15:42:28 didn't see it Mar 27 15:42:50 pfn: I was just using the SpiceServiceListener, but it deadlocks internally. I think the resistance to futures is that I’m using a ton of different result object types. Mar 27 15:43:01 colintheshots, either ListenableFuture or the one I wrote Mar 27 15:43:09 colintheshots, you can just use Future.join if so Mar 27 15:43:28 JakeWharton, Mar 27 15:43:31 JakeWharton, I asked you this same question a couple weeks ago. I think you responded but I was not logging the channel, and my scroll back wasnt big enough. I have since enabled logging. I am using retrofit to make rest calls in my android app. When I run the same code as a java app it works fine. After i copy and paste it into an android activity I get the following errors: http://pastebin.com/h8f2PLEM Here is the snipet of t Mar 27 15:43:31 he code th Mar 27 15:43:31 at is causing the error: http://pastebin.com/NkfdZ1m7 I have believe I have added the necessary .jars, here is my .classpath: http://pastebin.com/fwWMavZ4 I am using eclipse and android sdk only. Thanks for your help Mar 27 15:43:33 JakeWharton, btw, googling around I found this https://plus.google.com/+HenriqueRocha/posts/5mQT7uevu4B But I am not using android studio or gradle, and have already included gson. Mar 27 15:44:25 higher up in the logs you should see a VerifyError Mar 27 15:44:29 it will say what class is missing Mar 27 15:45:59 is it non-trivial to get the date from an image returned from an ACTION_GET_CONTENT intent? Mar 27 15:47:21 yes Mar 27 15:47:48 The MediaStore exposes a Date_Taken column Mar 27 15:48:40 pfn: As I joked earlier today, try coming up with a set of Google search terms that finds information about Futures without non-programmer meanings. Mar 27 15:49:28 colintheshots, read the twitter/scala future docs Mar 27 15:49:38 except ignore the stuff about for comprehensions, I suppose Mar 27 15:49:41 since that's not possible in java Mar 27 15:49:44 pfn: ok Mar 27 15:50:03 colintheshots, guava's futures work similarly, but are so verbose for android Mar 27 15:51:07 f2prateek: k thanks i'm investigating that Mar 27 15:52:10 JakeWharton, looking now Mar 27 15:52:25 https://gist.github.com/pfn/9487660#file-future-java-L61 Mar 27 15:52:30 functional composition ftw Mar 27 15:54:28 JakeWharton, These? 03-27 15:52:26.027: W/dalvikvm(539): VFY: unable to resolve new-instance 487 (Lretrofit/RestAdapter$Builder;) in Lnet/areyoueye/xylem/MainActivity; Mar 27 15:54:29 03-27 15:52:26.027: D/dalvikvm(539): VFY: replacing opcode 0x22 at 0x0000 Mar 27 15:55:45 pfn: I still have the original gist bookmark. I guess I thought I found a simpler solution, but it was buggy. I’ll dig in deeper to the scala-type futures. Mar 27 15:55:46 f2prateek: ah lol that was easy thanks Mar 27 15:55:47 I wonder how hard it would be to include a scripting language within an android project Mar 27 15:55:49 like LuaJ Mar 27 15:56:12 bacon1989, any java implementations are easy Mar 27 15:58:45 bacon1989, just add it as a library and make calls to the library as necessary to enable scripting Mar 27 15:59:31 pfn: except I want to do some wrapping as well Mar 27 15:59:51 then wrap.... Mar 27 16:00:07 i've worked with lua wrapping in C/C++ before, i'm just not sure about the process in Jav Mar 27 16:00:19 has anyone tried it? how hard is it? Mar 27 16:00:28 i'd probably be better off asking in #Java Mar 27 16:01:45 JakeWharton, I put the entire log here http://pastebin.com/PnxzNneT Mar 27 16:08:19 ok so im doing a dumpsys meminfo on my application and i see that the font im loading has like a great number of instances allocated. i use it in one location, i load it once at start. is this multiple instances of the entire font or just instances of specific charactes from that font? Mar 27 16:08:31 no. its the ENTIRE font. Mar 27 16:08:35 42k Mar 27 16:08:36 wtf Mar 27 16:10:01 Does anyone have experience with Contacts to help me work though something? Mar 27 16:10:59 can someone look at this meminfo dump and tell me if the "Assets allocated" is normal? Mar 27 16:11:03 http://bpaste.net/show/194400/ Mar 27 16:11:48 I’ve worked through the training from the website (http://developer.android.com/training/contacts-provider/retrieve-names.html) but now I want to (a) only show contacts with an email and (b) show the list of email address for a contact using an expandable list Mar 27 16:14:12 Hi, anyone with experience using canvas and surfaceholders to do animation? I'm trying to create the simplest sample of clearing the screen with a single color, but nothing seems to be showing up. Mar 27 16:15:32 http://pastebin.com/XsnUNwRy Here is the code I'm running, it consists of three tiny classes (View, Thread and Activity). Mar 27 16:15:50 can somebody tell me how ListFragment's setEmptyText is supposed to be used? do you need to have an @android:id/empty TextView in your xml layout? Or does setEmptyText take care of that? Or is there just a bug in the support library. I am getting this and can't seem to work it out. java.lang.IllegalStateException: Can't be used with a custom content view Mar 27 16:19:44 there's a templates folder in tools directory of android-sdk. similar(same?) to what eclipse+adt provides. are these available to command line's create project? how? Mar 27 16:24:16 Anyone using Travis CI notice that builds fail with an OutOfMemoryError since upgrading tools to 19.0.3? https://travis-ci.org/f2prateek/android-device-frame-generator/builds/21442117#L551 Mar 27 16:28:29 g00s : seems it doesnt work if you have any dependencies. You must use mavenDeployer. https://code.google.com/p/android/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars&groupby=&sort=&id=67110 Mar 27 16:30:25 JakeWharton, i got it. I have other issues to work through now. I made the assumption that adding a jar in eclipse build path->libraries would add it to the project/libs/ directory... but I had to add it manually... :/ Mar 27 16:31:56 ok so im having a little issue here. in my game ill need to pop up little chat bubbles. i have a nice chat bubble 9 patch. i do not want to use toasts and was looking at dialog boxes but as usual the google example code is not well explained. has so many trees in it its impossible to see the ONE TREE i need to understand... Mar 27 16:31:58 f2prateek: Probably less memory on their VMs, so java default to a lower max heap? Mar 27 16:32:15 also. these popups wont need anything in them excet TEXT Mar 27 16:32:27 but i have to be able to position them in the display Mar 27 16:32:37 any recomendations? Mar 27 16:33:13 pop up chat bubble. stays for 3 seconds. disappears. multiple bubbles possible at same time... must be able to position them above the character that spoke etc etc Mar 27 16:33:21 f2prateek: gradlew has a DEFAULT_JVM_OPS variable you can -Xmx or whatever it is Mar 27 16:33:56 SimonVT: Thanks, just confirming trying whether the upgrade was the real issue. I'll try updating the heap size next Mar 27 16:34:17 I'm just guessing here :) Mar 27 16:37:10 plus. every example i see uses xml to define their dialog. no good to me Mar 27 16:37:51 I440r: you should probably use PopupWindow Mar 27 16:38:05 it's easier to wrangle with positioning Mar 27 16:38:14 JakeWharton, why can i not see any references to that in my searches for android popup windows lol Mar 27 16:38:20 also. what api level is that Mar 27 16:38:32 API 1 Mar 27 16:38:45 oh lol well that shud work then lol Mar 27 16:39:02 it's how action bar submenu/overflows work and how spinner dropdowns work Mar 27 16:39:41 I'm assuming you're talking about PopupMenu then Mar 27 16:41:04 I must be doing something wrong, I listed my website on a facebook side ad last night, after 30k views, not a single click Mar 27 16:41:24 play seems to think the new version of my app has 54 new localizations (when it has 0 new), this happen to anyone else? Mar 27 16:42:11 PopupMenu holds a PopupWindow Mar 27 16:42:41 PopupMenu is honeycomb+, I think Mar 27 16:47:13 How can i use an UI kit for designing my android app?? I've the psd file of the UI kit. for example, i want my app to use a toggle button or radio button (just like i've in the UI kit) how can i do that? Mar 27 16:47:25 ahh didn't know that. Thanks! Mar 27 16:48:57 madbytes: You write the code to make it look like the psd file. Mar 27 16:53:00 freeone3000, you mean i've to alter the current style/theme xml? Mar 27 17:00:34 hi Mar 27 17:18:13 hi kate_r Mar 27 17:22:46 Hi, anyone with experience using canvas for animtions/games? Mar 27 17:23:20 hi guys...can someone explain me if certificates installed by rom are used by browser? Mar 27 17:24:53 Zerkish, barely Mar 27 17:25:56 Syzygy My problem is extremely simple, I'm just trying to clear the screen with a single color Mar 27 17:26:32 I've got an SO question posted, or a pastebin with the relevant code if you care to take a look. Mar 27 17:27:10 I'm very far out of my element from native development for PCs :) Mar 27 17:33:07 Zerkish, afaik you just draw over it Mar 27 17:33:10 in a solid color Mar 27 17:33:49 Well nothing I'm doing to the SurfaceView shows up even though the code runs, attaching an OnTouchListener does not yield any events Mar 27 17:34:14 Attaching it however brings my application out of fullscreen and appends the title that I remove 2 lines above it. Mar 27 17:35:40 hmm, that sounds like it's not initialized completely Mar 27 17:36:17 http://stackoverflow.com/questions/22694590/android-simple-animation-using-canvas There's a link that contains the barebones code that it is. Mar 27 17:36:30 I've looked at several tutorials and they all appear to be doing roughly the same thing Mar 27 17:37:58 <_nedr> Hello guys, Do you recommend Eclipse or the new IntelliJ IDE for development? Is IntelliJ ready for production? Mar 27 17:38:07 Zerkish, sorry, can't check my own code to help you Mar 27 17:38:20 Its cool :) Mar 27 17:38:27 _nedr: I use android studio. works great Mar 27 17:39:28 <_nedr> jaynewstrom, Zerkish : thanks for reply.. ok thats great to hear... Does Android studio change a lot with releases ? Mar 27 17:39:30 I use android studio, works weirdly sometimes, but the ability to attach a debugger into a running app is great. Mar 27 17:40:03 _nedr sorry I wasn't replying to you. I'm too new to give any advice on IDEs for android Mar 27 17:40:04 _nedr: the biggest thing that changes is gradle support. and gradle its self. Mar 27 17:41:25 <_nedr> Also wondering is there a big difference between IntelliJ and Android Studio? Like is there like a ADT plugin to develop using IntelliJ? Or i Android Studio like a major fork of IntelliJ Mar 27 17:41:27 I spent like 2 days implementing overscroll and displaying a view in the overscrolled area in android... and now I can't get it to fly in correctly -.- Mar 27 17:42:19 _nedr: i can't speak to that. I have opened projects in both IDEs but I haven't done any development in intellij idea Mar 27 17:43:38 quick question: whenever i press the home (or leave my app) it force closes Mar 27 17:43:43 Is there a list of product names available? e.g. how Nexus 5 is hammerhead, Galaxy Nexus was maguro/tuna Mar 27 17:43:45 is there any way to fix this Mar 27 17:43:57 ahh onPause Mar 27 17:43:59 is what im looking for Mar 27 17:44:01 aspire: look at log cat and fix the exception Mar 27 17:44:02 nvm, i got it Mar 27 17:44:08 sounds like a NPE in onPause or onStop Mar 27 17:44:20 nah i never overrided onPause or onStop Mar 27 17:44:31 aspire: you don't have to Mar 27 17:44:47 im making a game so when the user leaves the app i want to pause it Mar 27 17:45:16 <_nedr> jaynewstrom, ok .. thanks Mar 27 17:45:21 SimonVT: so yeah upgrading to 19.0.3 wasn't the issue. Just did 'export JAVA_OPTS=-Xmx1024m' Mar 27 17:49:23 hey Mar 27 17:49:34 anyone here know how to use alarms? Mar 27 17:51:39 BEEP! BEEP! Mar 27 17:51:45 hey bacon Mar 27 17:52:14 hello, what kind of alarms are we talking about here? Mar 27 17:52:53 I feel like you want to use a Handler with postDelayed Mar 27 17:53:03 here is what i want to do Mar 27 17:53:20 I have an asynctask that downloads data from a server and updates a listview Mar 27 17:53:36 I want to run that task every day at around 12:30 AM Mar 27 17:53:43 ahh Mar 27 17:53:57 http://developer.android.com/reference/android/os/Handler.html#postAtTime(java.lang.Runnable, java.lang.Object, long) Mar 27 17:54:06 i think i should be using alarmmanager but I’m not sure where to begin Mar 27 17:54:17 no no, you can use a Handler Mar 27 17:54:28 right Mar 27 17:54:33 I used a handler for other stuff Mar 27 17:54:42 look at the link I sent you Mar 27 17:54:48 for example i have a splash screen and used a handler to go to main activity after 5 seconds Mar 27 17:54:50 you can have a function call "At a specific time" Mar 27 17:55:14 isn’t that what alarmmanager is for? Mar 27 17:55:27 I have no idea Mar 27 17:56:01 https://developer.android.com/reference/android/app/AlarmManager.html Mar 27 17:56:06 I'm suggesting a solution that involves rolling your own alarm manager, if you can find info on this alarm manager and get it working, feel free to use that Mar 27 17:56:30 i feel that alarmmanager will work better since it is retained when device is asleep Mar 27 17:57:20 if you're Alarm Manager is running in a foreground service, it would be running in standby as well, I believe Mar 27 18:03:04 i probably want to use an alarm manager Mar 27 18:03:22 is there a way to make it start up at boot? Mar 27 18:03:43 and if the network is not connected i want it to try every 30 min until it works Mar 27 18:04:20 consider using a receiver, which you can have start when the device boots up Mar 27 18:04:38 ya thats what it looks like Mar 27 18:04:47 https://stackoverflow.com/questions/4459058/alarm-manager-example Mar 27 18:04:52 AlexAbraham: I believe there are broadcast events on network state changes Mar 27 18:05:08 really? Mar 27 18:05:28 http://developer.android.com/training/monitoring-device-state/connectivity-monitoring.html Mar 27 18:05:37 so if it doesn’t work, i can have a broadcastlistener looking for an active network and then run the asynctask when an active network is found? Mar 27 18:05:52 yeah Mar 27 18:06:16 okay so i have a method that checks for an active network that i use whenever running the asynctask Mar 27 18:06:28 but how to i put that in a broadcastlistener Mar 27 18:16:31 hey i am really having trouble trying to figure this out Mar 27 18:16:57 how do i set an alarm to repeat at a specific time every day? Mar 27 18:37:43 hey Mar 27 18:38:20 if people can answer they will. saying "hey" isnt going to help. Mar 27 18:38:34 :-( Mar 27 18:38:45 What do you mean by an "alarm"? You mean you just want to "do something"? Or you want a shrill klaxon to go off? Mar 27 18:38:58 just to do something Mar 27 18:39:02 i want to run an asynctask Mar 27 18:39:13 klaxon klaxoff Mar 27 18:39:17 then its not an alarm. Try ans rethink your vocab and that will help your google foo. Mar 27 18:39:34 so you want to *schedule* a task. Mar 27 18:39:34 rgr: alarmmanager motherfucker Mar 27 18:39:48 ya i want to set an alarmmanager Mar 27 18:40:14 http://developer.android.com/reference/android/app/AlarmManager.html Mar 27 18:40:16 i see a whole bunch of articles on google showing how but its not resinating. Mar 27 18:40:17 sure the alamrmanager is one thing. But the Q was "I want to set an alarm". That is NOT clear. so miedg go fuck yourself thank you very much. Mar 27 18:41:07 does alex abraham look like the kind of dude who wants to hear a klaxon? Mar 27 18:41:48 possibly the scheduledexecutorservice might help too. Mar 27 18:42:00 rgr that Mar 27 18:42:16 should i create a new class to contain the alarm or can i set it straight from the main activity? Mar 27 18:43:16 I'm wondering, what's the menu thingy called at the bottom right of the navigation bar called? Mar 27 18:43:21 the one with the three dots Mar 27 18:43:36 menu button? Mar 27 18:43:41 Fellatio icon Mar 27 18:43:48 is has three dots Mar 27 18:43:58 menu button, hmm Mar 27 18:44:01 Fellaticon for short Mar 27 18:44:24 searching for that on google would be a terrible idea Mar 27 18:44:25 it's a mouthful to say Mar 27 18:44:34 ba dan tzzzz Mar 27 18:48:01 isnt it just the "overflow" button? Mar 27 18:48:19 thats perverse man Mar 27 18:49:05 onCreateOptionsMenu doesn't affect it Mar 27 18:49:07 yes, it is I tink. http://www.tested.com/tech/android/3510-the-android-40-menu-button-controversy-its-action-overflow-now/ Mar 27 18:49:10 and it's in the bottom right corner Mar 27 18:49:21 from my research, it's from pre-honeycomb Mar 27 18:49:28 and I can't actually do anything with it Mar 27 18:49:32 then why is theere!?!!? Mar 27 18:49:36 because its an overflow button- Mar 27 18:49:48 how do I use it? Mar 27 18:49:49 he's talking about the menu icon in the soft nav Mar 27 18:49:53 i think... Mar 27 18:49:54 ;) Im guessing since I'm assuming you mean the same thing. Mar 27 18:49:59 you dont. its an overflow button... Mar 27 18:50:03 yes Mar 27 18:50:11 it shows things that cant fit on the action bar. Mar 27 18:50:15 overflow for what? Mar 27 18:50:23 yes. Mar 27 18:50:25 however. Mar 27 18:50:32 again, assumng we're talking about the same thing. link above. Mar 27 18:50:35 this overflow button doesn't reside on this action bar Mar 27 18:50:41 because the action bar is disabled Mar 27 18:50:41 oh then maybe not. Mar 27 18:50:58 the navigation bar at the "bottom right" Mar 27 18:51:03 bottom right Mar 27 18:51:16 You're talking about the same thing. Mar 27 18:51:25 no, he's talking about the action bar overflow Mar 27 18:51:30 located at the top-right Mar 27 18:51:31 depends on phone and launcher obviously. so "bottom right means sweet nothing ;) Mar 27 18:51:32 Scroll down the page that rgr sent and you'll see a picture of it above "Should you change the Menu behavior?" Mar 27 18:51:32 top right Mar 27 18:51:56 every device i've seen so far places it at the top right Mar 27 18:52:09 The one in the bottom right is an indicator that the app sucks, and you should find an alternative Mar 27 18:52:18 heh. Mar 27 18:52:40 It goes away when targetsdk >= 14 Mar 27 18:53:40 my target sdk is >= 14, but it only shows up in my fullscreen|notitlebar activity Mar 27 18:55:14 It's apparently referred to as the legacy button Mar 27 18:55:39 Yes, legacy menu button Mar 27 18:55:42 http://android-developers.blogspot.de/2012/01/say-goodbye-to-menu-button.html?m=1 Mar 27 18:55:45 So apps that didn't update didn't break Mar 27 19:00:22 Hello everyone! Mar 27 19:01:02 n20: hai2u Mar 27 19:01:23 If I'm to use the whole UI ---> DB <--- "IntentService" <--> API way of doing things, should I map all my outgoing requests through the IntentService? Mar 27 19:01:32 Or just the ones that I'd like to cache? Mar 27 19:01:39 great. So finally I manage to find that mavenInstaller() doesnt, as suspected, include dependency information in the published POM. so even for a mavenLocal() publish you do need to use mavenDeployer() to publish an android aar library. Still, time well spent. :( Mar 27 19:02:00 I'm currently doing everything with Volley, but I reckon I could benefit from actually having a server process stuff. Mar 27 19:02:06 service* Mar 27 19:02:41 SimonVT: Ever needed sections in a listview? If so, did you end up with a library or your own solution? Mar 27 19:02:54 Anyone else is welcome to recommend their solution, too. Mar 27 19:02:55 Sections? Mar 27 19:03:09 Headers/Sections. Like the A, B, C... thing in the Contacts. Mar 27 19:03:47 Ah Mar 27 19:03:58 Pulled the one from contacts once Mar 27 19:04:03 The API is horrible Mar 27 19:04:17 That's what I found, most of the libraries have horrible APIs Mar 27 19:04:23 But so were the behavior of other libraries Mar 27 19:04:38 kakazza: i did something. it's not completely terrible. probably not the best either though. https://gist.github.com/jaynewstrom/8740795 Mar 27 19:04:40 kakazza: StickyListHeaders by emilsjolander might be helpful.' :-) Mar 27 19:04:42 I don't even need a sticky headers solution, which is what most offer. Mar 27 19:05:02 kakazza: (You can turn off the sticky part) Mar 27 19:05:03 n20: I found that, I just wonder if I'll run into problems since it doesn't extend ListView Mar 27 19:05:14 The stickylistheader one has a decent api, but ultimately I didn't like it Mar 27 19:05:38 The header wasn't its own list item back then.. So clicking the first item after a header would draw a selector on top of the header.. Mar 27 19:05:44 I have no idea if he fixed that Mar 27 19:07:23 SimonVT: Me neither. :-) Mar 27 19:08:01 So... anyone familiar with the whole "IntentService" way of doing it? Ie, run the service, download the data, stash it in the database and let the UI load from it? Mar 27 19:17:08 That works, yes Mar 27 19:18:24 Best if you use a contentprovider for your database communication, so your UI will automatically update once the service has downloded the data Mar 27 19:19:46 Thanks Thorbear :) Mar 27 19:20:22 Thorbear: Somewhat what I expected, just wasn't completely sure of it Mar 27 19:27:36 "automatically" as in using a ContentObserver, no? Mar 27 19:28:56 As in using a cursoradapter, a cursor, and a contentresolver, with a contentprovider implementation that accesses your database. Mar 27 19:29:26 The contentprovider, if programmed correctly (not very hard) will update the cursor when the database changes. Mar 27 19:30:08 Hello Mar 27 19:30:26 I have connected the developerconsole Mar 27 19:30:37 But it has error Mar 27 19:30:57 Did u same thinking? Mar 27 19:36:44 man, if there are any Android bosses here, I would really, really like to know why this different behavior is occuring (http://stackoverflow.com/q/22671690/1747491). I have solved the problem by overriding onBackPressed, but I don't see how the focus could possibly be different when I am launching a new Activity in both scenarios. Mar 27 19:53:16 sooo Mar 27 19:53:23 I have an app... What's the proper way to force an app to always display on landscape mode? Mar 27 19:53:39 is there something I can use instead of android:inputType="textCapCharacters" that avoids spaces after ? on a bunch of keyboards? Mar 27 19:55:03 Gavilan2 you can put android:screenOrientation="landscape" in your manifest for all of your activities Mar 27 19:56:29 It's not working :/ Mar 27 19:57:17 How can I choose an appointment? Mar 27 19:59:16 Gavilan2 you put it as a property of in your manifest? Mar 27 20:00:23 Actually Mar 27 20:00:28 It seems to work in a Nexus 7 Mar 27 20:00:34 It's not working on a Kindle HDX though Mar 27 20:03:04 kindles ftw... Mar 27 20:03:05 not Mar 27 20:05:39 pfn: !!!! Mar 27 20:06:39 What intent should be passed to chooser so that it shows appointment selector? Mar 27 20:12:30 hello guys Mar 27 20:16:21 is it possible to dismiss the recent apps dialog from my app? Mar 27 20:20:45 yes Mar 27 20:20:51 dont know how Mar 27 20:20:57 but the answer is yes Mar 27 20:21:58 anyone know what is best? use drawBitmap and manually move the bitmap along or use a path to animate the bitmap? Mar 27 20:25:58 Hey guys. Got a problem with AndroidAnnotations. Not sure if this is a good place to ask. But I'm getting this error: The generated null.R class cannot be found Mar 27 20:27:28 Hello I have a question about SearchResultActivity, anybody have a minute to help me out? Mar 27 20:29:31 When I search something on the Actionbar, it opens a new Window/View. How can i disable that? Mar 27 20:30:58 anybody? Mar 27 20:31:26 hey sam Mar 27 20:31:27 whats up Mar 27 20:31:38 Hey thank you Mar 27 20:31:52 When I search something on my Actionbar, the view changes to a blank page. Mar 27 20:31:55 How can I disable that? Mar 27 20:32:09 what do you want instead? Mar 27 20:32:32 I just want to get the String. And proceed to call another Method. Mar 27 20:33:00 Can I get an appointment from the chooser? Mar 27 20:34:45 Sam does this help? Mar 27 20:34:46 https://stackoverflow.com/questions/19422168/search-in-android-activity Mar 27 20:35:21 I'll take a look and give a feedback in a minute. Thank you Mar 27 20:37:32 does anyone know how to use alarmmanagers to start asynctasks? Mar 27 20:40:45 Why textappearance.large no workie here? http://pastebin.com/br1DxF0a Mar 27 20:43:16 I can do textSize instead and it works Mar 27 20:43:22 but I don't want that Mar 27 20:45:52 Alex that didn't help me, I coded it through this http://developer.android.com/training/search/setup.html , the code works and I am able to get the string what the user searches, the only problem is that it loads a new view Mar 27 20:46:14 right Mar 27 20:46:55 Quacked Mar 27 20:47:16 it seems that textAppearance is controlled by a theme, not a textview itself Mar 27 20:48:35 Quacked why not just set it programatically? Mar 27 20:48:39 https://stackoverflow.com/questions/18706732/how-to-set-the-textappearance-programatically Mar 27 20:51:16 Why does https://gist.github.com/freeone3000/748bf74816a1919aed4c never receive its event? Mar 27 20:51:24 Hello, boss wanted a quick fix of something. I needed reference to context, so I wrapped context as a weak reference in a quick nested static singleton off the main activity. Was thinking this is not a bad way to make context accessable, or is this a bad idea? Mar 27 20:51:25 AlexAbraham, its been a while since Ive tinkered with this, but wont that only be loaded after view is loaded? Mar 27 20:51:43 so there will be a few milliseconds where the title is in a different size before that triggers Mar 27 20:52:05 Do it in onCreate() Mar 27 20:52:25 i think the view is loaded in onResume() which is run after everything in onCreate() Mar 27 20:53:04 gonna give it a go Mar 27 20:59:20 Is there no way to disable the actionBarTitle in xml? Mar 27 20:59:51 isn’t the actionbar title controlled by the theme? Mar 27 21:00:09 maybe you can set the theme for your activity towards the top of oncreate Mar 27 21:02:50 I'm using a custom action bar view which already hides the title bar, but I don't want the title to be drawn while the activity is launching so that the transition looks smoother. Look for a way to do this by setting a theme.This works https://stackoverflow.com/questions/7655874/how-do-you-remove-the-title-text-from-the-android-actionbar but I'm wondering if Mar 27 21:02:50 there is another way. Mar 27 21:10:59 f2prateek: why are you looking for another way ? Mar 27 21:11:23 ⁃ hey, has anyone used Maven in an Android app? I'm encountering an issue where Maven has changed my output folder to ./target/classes, and I'm not sure how to configure my android Android build look to that folder. it seems to only look in ./bin/classes Mar 27 21:11:56 f2prateek: It shoes the theme until the activity is drawn Mar 27 21:12:08 How can I access calendar events from the chooser? Mar 27 21:12:58 shmooz: looks like more of a hack since you have to set size to zero and transparent text - obviously would prefer a documented way Mar 27 21:15:24 AlexAbraham Mar 27 21:15:28 no luck.. http://pastebin.com/CL9FQvvX Mar 27 21:15:45 I shows the original settings for half a second and then changes Mar 27 21:15:49 It* Mar 27 21:16:08 hey, a new update to the support library. wonder what goodies it has Mar 27 21:16:24 If I have a custom view and it has its own Listener class that handles certain events, should I hold reference to that listener on my custom view as a WeakReference ? Mar 27 21:16:36 http://developer.android.com/tools/support-library/index.html#revisions Mar 27 21:16:57 "Added the SwipeRefreshLayout class, which enables users to refresh the contents of a view with a vertical swipe gesture." Mar 27 21:17:01 oh nice Mar 27 21:17:03 AlexAbraham, I have that right below super.Oncreate Mar 27 21:17:32 SimonVT: I have only one activity so I do have the application's theme set to my custom theme Mar 27 21:17:40 SimonVT, what do you think? Should listener references be weak? Mar 27 21:17:50 explodes: If you hate anonymous inner classes, sure Mar 27 21:17:56 waait Mar 27 21:18:09 (no) Mar 27 21:18:30 f2prateek: Then you'd hide the title in the theme Mar 27 21:18:43 if you pass an anonymous inner class to some listeners, like a preference listener, which holds on with a weakreference, it will go *poof* Mar 27 21:18:48 g00s oh wow they added a pull to refresh mechanism? Mar 27 21:19:01 well I don't have no actionbar but my titlebar does flash when launching which I try to hide from the start, so I'll try making that not flash now thanks to you f2prateek Mar 27 21:19:03 k Mar 27 21:19:52 I've never seen anyone remove listeners Mar 27 21:20:09 I've seen "addTouchListener(this)" but never a remove Mar 27 21:20:33 er, "setOnTouchListener" Mar 27 21:20:59 shigeru yeah :) looks pretty easy to use too Mar 27 21:21:25 nice Mar 27 21:21:39 sweet pull to refresh :-) Mar 27 21:21:41 ah, think I got it. you can set the Maven build directory in pom.xml, just set it to ./bin. seems to work now. Mar 27 21:21:49 I hate pull to refresh! Mar 27 21:21:57 I just used an android library from github but its good to know google has one of their own Mar 27 21:22:04 it keeps refreshing when I don't want it to Mar 27 21:22:29 just cause I scrolled back up Mar 27 21:23:50 well, its nice to see google is adding things to the support lib Mar 27 21:23:52 g00s it seems lik eyou still have to add any animations you want to display yourself Mar 27 21:24:02 i hope they add more cool UI conveniences Mar 27 21:24:02 unlike chris banes' pull-to-refresh libs Mar 27 21:24:12 oh Mar 27 21:24:18 or am i mistaken Mar 27 21:24:34 SimonVT: thanks, android:displayOptions is what I was looking for Mar 27 21:24:58 shigeru it has some visual indication Mar 27 21:25:14 you have to cancel the animation if you decide it isn't right to refresh Mar 27 21:25:24 i see Mar 27 21:25:26 ill just have to try it out Mar 27 21:35:25 am i allowed to post a tinypic url which is a 20 second vid of my android app? Mar 27 21:35:31 i just want opinions Mar 27 21:35:45 i dont see why not Mar 27 21:35:51 http://tinypic.com/r/f4dwyx/8 Mar 27 21:36:05 sorry for like the first 4 seconds, i didnt know i was recording Mar 27 21:36:15 I'm creating a notification with setSmallIcon but the icon it's being streached and centered in a way (Or maybe it's just that my icon is too big, and it's centered, so I can't see the full icon) Mar 27 21:36:33 How do I tell setSmallIcon and the notification builder to resize the icon as neccesary to fit into the square Mar 27 21:36:42 aspire SWEET!!!! Mar 27 21:37:25 really : ) Mar 27 21:37:33 im not even done though Mar 27 21:37:41 i want to add various different powerups throughout the game Mar 27 21:38:04 i like it Mar 27 21:39:02 theres actually kind of a problem though Mar 27 21:39:03 Gavilan2: you cant Mar 27 21:39:17 = Mar 27 21:39:41 How do I make my icon look properly then? Mar 27 21:39:49 use the correct icon size Mar 27 21:40:06 Gavilan2: have you tried using setLargeIcon instead? Mar 27 21:40:36 It takes a Bitmap... Mar 27 21:40:40 notification icons should be 24x24 Mar 27 21:40:47 https://developer.android.com/design/style/iconography.html Mar 27 21:41:05 Gavilan2: exactly, you can resize your icon to fit Mar 27 21:41:28 How do I know which fit is my fit? Mar 27 21:44:18 I am continuously getting a print in log cat saying: GC_CONCURRENT freed -- appears to be the garbage collector from what I see on Google, but it isn't clear to me if this is being printed because there dis a problem or because there is a leak or some other problem Mar 27 21:44:38 it's just the normal operation of the garbage collector Mar 27 21:45:11 if you're getting excessively many entries, it's an indication that you are creating a lot of short-lived objects Mar 27 21:45:43 palithius: are these coming from your app or the system? because you might have something dodgy on your device Mar 27 21:45:44 thanks Freke Mar 27 21:45:50 my app Mar 27 21:45:59 rx causes a lot of those messages Mar 27 21:46:24 rx ? Mar 27 21:47:44 rxjava, the new hipster way of doing things Mar 27 21:55:14 Is there a (relatively) simple way to have overlapping ImageViews with transparent portions, and have only the opaque parts of each view clickable? Mar 27 22:00:56 I've identified the problem, thanks for the help (yes, many small allocations) Mar 27 22:08:22 is there some standard affordance to indicate pull-to-refresh works ? Mar 27 22:08:56 g00s: turns out that to maintain dependency info in a library pom that you publish to mavenLocal you have to use mavenDeployer and point it to .m2 - mavenInstaller, shown in the examples, doesnt work past gradle tools 0.8 - whether bug or by design is unclear. Its an open issue :( Spent ages on it. Finally found the raised issue. https://tinyurl.com/q9uzylj . Only good thing to come out of it was I learnt a lot more ;) Mar 27 22:08:57 Mar 27 22:09:24 rgr but what version of gradle are you using Mar 27 22:09:55 g00s: you could set a custom drawable to your actionBar and have a line across the bottom using setLevel Mar 27 22:10:10 1.11 now. Mar 27 22:10:16 g00s: or set the forgroundDrawable of android.R.id.content Mar 27 22:10:31 anyways its documented in that link and still open. Mar 27 22:10:44 Napalm thanks Mar 27 22:11:16 <_95A31_> Hi guys, little help about this? http://pastebin.com/Myt6JN4b I think that is Java 7 related but idk how fix Mar 27 22:13:35 you're compilng AOSP ? Mar 27 22:13:40 <_95A31_> Yes Mar 27 22:13:53 ask someone in #android #android-root or whatever cm's channel is Mar 27 22:14:12 I have a project that involves sqlcipher and a few other libraries and I need to enable proguard to obfuscate my code. I am able to export my code successfully after a lot of trial and error. It works fine but when I remove `-keep class com.myapp.** { *; }` it dies on my second activity. So I'm able to get it to launch to the MainActivity but when I try to do anything involving other libraries (http, sqlcipher) it dies and produ Mar 27 22:15:05 good morning.. is there a way that I can name my output apk file to a name of my choosing.. If I could get an automatic buildnumber or something included as well it would be great :) Mar 27 22:15:07 yeah, proguard is a pita Mar 27 22:15:24 eghdk did you try starting with the android template and adding stuff to it fro your libraries ? Mar 27 22:15:30 I am using the latest AS.. Mar 27 22:15:34 g00s: yeah. Mar 27 22:16:02 Again, the app wors fine if I have the line -keep class com.myapp.** { *;} but then it's not obfuscated. Mar 27 22:17:13 are you using refection ? Mar 27 22:18:03 eghdk your message got cut off anyhow Mar 27 22:18:06 too long :) Mar 27 22:19:35 hi guys...can someone explain me if certificates installed by rom are used by browser? Mar 27 22:22:08 What do you mean it got cut off g00s ? Mar 27 22:22:39 last i saw was "it dies and prod" Mar 27 22:22:55 produ Mar 27 22:23:11 when I try to do anything involving other libraries (http, sqlcipher) it dies and produces no meaningful logcat. Any ideas? Mar 27 22:23:14 flush() baby flush() Mar 27 22:24:53 In a nutshell, app works fine with -keep class com.myapp.** { *;} but it doesn't obfuscate with that line. I need it to obfuscate, so I remove the line, but then I get a crash going from activity A to B, and theres no logcat. Just says something like "app dies" Mar 27 22:25:34 i want a solution for long-running task Mar 27 22:25:57 MalekAlrwily: Service if you want it to be persistent, AsyncTask if you don't. Mar 27 22:25:57 MalekAlrwily: use a service Mar 27 22:26:14 asynctask isn't for 'long-running' anything Mar 27 22:26:43 maybe it spent user battery Mar 27 22:27:22 i don't like the *running in background* services Mar 27 22:27:47 MalekAlrwily: So don't run them in background. Mar 27 22:28:13 MalekAlrwily: Services can be bound to the lifecycle of your Activity. BIND_OR_CREATE onResume(), DESTROY onPause(). Mar 27 22:28:18 Maybe you should ask what you actually want to do. Mar 27 22:28:27 freeone3000, i run when Network has changed Mar 27 22:29:06 MalekAlrwily: Okay, so it's from a BroadcastReceiver. So? Mar 27 22:29:55 yes, which is http://pastebin.com/VdLAHcFz Mar 27 22:30:36 hey, what's the easiest way to reset a song back to its beginning? I'm using MediaPlayer. Mar 27 22:31:00 RetroDude: MediaPlayer.stop(); MediaPlayer.start(); Mar 27 22:31:57 RetroDude: USe OnComplitionListener Mar 27 22:34:58 freeone3000, where do I use those commands. They appear to be non-static methods so I can't add them just anywhere. Mar 27 22:37:12 MaleAlrwilly. I want to be able to stop the song and restart it even before its ended on its own. Would that listener still apply? Mar 27 22:37:49 rgr are you still using the archives { } configuration block ? Mar 27 22:38:51 or, can you post your build.gradle again in pastebin Mar 27 22:40:07 Alright, so I created a new method called restart which tells the mediaplayer "this.mediaPlayer.stop(); this.mediaPlayer.start();" and then I call that in my code, but it does nothing except stop by song. Mar 27 22:42:24 RetroDude: Wait, i will pastebin a method for you Mar 27 22:43:13 cool, thanks Malek. Mar 27 22:45:17 Question: GoogleMap's onInfoWindowClick(Marker marker) returns the marker that's being clicked. I also have an array of all the markers i've placed on the map. Now, when onInfoWindowClick fires, and i get marker, how would i compare that agains the array of markers? I've checked the docs and can't find any unique id code or anything. Can I just check the objects themselves? Something like Mar 27 22:45:17 if onclickMarker = markerList[i] then, if y'all catch my drift? Mar 27 22:45:37 RetroDude: http://pastebin.com/5uCRcaMK Mar 27 22:56:35 I want to get the Id of the rating bar , i am using ratingBarArray[i] .setOnRatingBarChangeListener(new OnRatingBarChangeListener() { public void onRatingChanged(RatingBar ratingBar, float rating, boolean fromUser) Mar 27 22:56:52 I want ratingBar value Mar 27 22:57:08 so i can use switch or if statment to check which ratingbar is selected Mar 27 22:57:28 It must be silly , but i need sleep and cant figure this out too , tired Mar 27 22:58:51 ??????????? Mar 27 22:58:55 please help Mar 27 23:04:35 apparently the for( : ) loop creates an iterator allocation on array lists and such, had no idea Mar 27 23:09:05 SoundPool seems to spam to log cat a lot too, although it's working fine I wonder if there is something it doesn't like me doing Mar 27 23:09:11 for(item : array) Mar 27 23:09:16 palithius: yep, it does for Iterables. but not for actual arrays (int[], or whatever) Mar 27 23:09:49 palithius: you can look at ddms's allocation tracker thingy, to help see what's getting created and GCd Mar 27 23:10:23 thanks Mar 27 23:33:08 Anyone know how to restart a song with MediaPlayer if it's stopped before it completed the song. Mar 27 23:34:28 hmm, how can I re-use a single drawable object as the background for a few different views Mar 27 23:34:37 it seems my drawable gets clipped into the shape of the last view it's used for Mar 27 23:36:27 so im really bad with names. is jorge, the guy working on email stuff, in here right now? Mar 27 23:37:05 someone's working on email stuff? Mar 27 23:37:29 well theres a whole team in google Mar 27 23:37:31 dafq thats alot of file systems Mar 27 23:37:41 but theres an external contributor who frequents this channel, and ive talked to them before Mar 27 23:37:45 but i dont remember their username :) Mar 27 23:37:49 and a raspberry pi in ther too Mar 27 23:48:27 HI, I'm following an Android book (big nerd ranch guide if anyone is familar with it) anyway, in one chapter I create a fragment which plays an audiofile using an encapsulated MediaPlayer. When the audio file stops playing I want it to send that back to the fragment so that it enables the play button. I have a MediaPlayer.onCompletedListener, but how do I send it back to the fragment? Mar 27 23:53:14 canadiancow only nick i remember that sounds like that phonetically is ge0rg or something Mar 27 23:53:25 don't see him now Mar 27 23:53:33 i want the author of https://android-review.googlesource.com/#/c/89135/ :P Mar 27 23:53:43 yeah, AS update. omg i hope this makes things better Mar 27 23:54:04 canadiancow, the name isn't familiar Mar 27 23:54:40 "Many bug fixes" \o/ Mar 27 23:55:16 yeah, i haven't heard that name either Mar 27 23:56:29 he's uploaded a few good CLs Mar 27 23:56:41 the last one we rejected because it was bugfix we'd already done internally :P Mar 28 00:14:51 I've defined a wrapper/util class in a library, which has a static function for launching an activity with a new intent. Is it possible to catch the intent's .finish() call with a custom delegate? Mar 28 00:15:01 I don't want to rely on the application that uses my library to catch this particular call Mar 28 00:15:03 no Mar 28 00:15:11 intents don't have "finishes" Mar 28 00:15:23 #listening... Mar 28 00:15:57 Sorry, I meant the activity that is started in the static function Mar 28 00:20:35 dispraekailo actually, its technically possible by stuffing a ResultReceiver into an IntentExtra, but its dangerous, not meant for that, etc Mar 28 00:21:00 iosched 2010 used it as a callback from its IntentService Mar 28 00:21:12 and then, I never saw it again. probably a good reason for that Mar 28 00:21:27 Alright, so maybe it makes more sense to have a friend-like interaction between the static helper class and the activity subclass Mar 28 00:21:44 do startActivityForResult Mar 28 00:21:57 if you need one activity to get the result of the other Mar 28 00:22:10 Hello Mar 28 00:22:52 Is it possible to make your app come up as part of Google Search on a person's phone after they installed it? Mar 28 00:22:55 Goos: that won't really work for my usecase unfortunately Mar 28 00:23:09 I'd like to replace the texting interface that's currently part of voice search. Mar 28 00:23:19 because it relies on the ability to see the screen...and I'd like to make a ' Mar 28 00:23:29 'texting while driving' app so you don't have to touch the phone ever. Mar 28 00:23:37 or see it Mar 28 00:27:18 i kind of have a problem with my game when i leave the app Mar 28 00:27:42 i overrided the onPause method so it pauses (the thread is still running except it doesnt update or render) Mar 28 00:28:04 which is fine, i can leave the app without any problems Mar 28 00:28:10 but then when i open the app again, it crashes and im not sure why Mar 28 00:34:00 what do they logs say Mar 28 00:47:44 guys, help me i want to build button, when it pressed so database sqlite automatically update with database server, anyone help me to give me link tutorial :D Mar 28 00:53:10 for a column in a SQLite table that references foreign keys - what if that column refers to multiple foreign keys? Mar 28 00:53:40 for example, a "tags" column in a "posts" table might refer to multiple tags in a "tags" table Mar 28 00:53:55 how would you write the SQL for that schema? Mar 28 00:58:12 d'oh, that's a one-to-many relationship Mar 28 01:01:29 wait no that's many-to-many Mar 28 01:03:40 My app is closing/crashing without a proper exception thrown. The only error that's reported to me is "Multicast binderDied." I see it's related to Wifi service. Does anyone know any thing about it or where I can learn more? Mar 28 01:06:05 designing database schema is fun :D Mar 28 01:14:00 Pffff.Today I rewrote my whole project from a normal activity to an FragmentActivity, and added a functioning Action Bar. Productive day as a n00b! Mar 28 01:16:18 ThomQ: you're supporting pre-API 14? should i be doing that? *panic* Mar 28 01:16:27 anyone seeing this? :app:preDexDebugUnable to locate a Java Runtime to invoke. Mar 28 01:19:00 hmm, command line ok; only from AS Mar 28 01:24:21 g00s: sounds like JAVA_HOME is not setup right, or perhaps you only have 1.7 installed and its trying to use 1.6 Mar 28 01:32:36 Mango_Man: Yes I am. About 35% of android users that download my apps use froyo or less Mar 28 01:34:02 what's the best ORM for android? Mar 28 01:35:44 going with ormlite Mar 28 01:43:49 Ok.. Progress breaking bug:P I'm stuck. Mar 28 01:43:51 Napalm hmm … all i do is update from AS 0.5.2 to 0.5.3 Mar 28 01:44:03 ah Mar 28 01:44:12 the gradle stuff was updated yesterday, and I used 0.5.2 with that gradle setup Mar 28 01:44:14 was fine Mar 28 01:44:15 i had that same thing Mar 28 01:44:40 its perfectly clear to me that google does not do 'installation testing' with AS Mar 28 01:44:56 i mean, i start from 0 and install AS, and it almost always blows up Mar 28 01:45:00 bankai_au something about a deadobjectexception Mar 28 01:45:14 ThomQ what kind of apps do you own Mar 28 01:46:15 Mango_Man: yess.. but how to connect it/ Mar 28 01:46:17 So, I have a ActionBarActivity, with a FrameLayout, so I can add fragments. I add a MapFragment / SupportMapFragment, which all goes well. Then I want to add another normal Fragment, and I get an illegal argument exception: IllegalArgumentException: Binary XML file line #3: Duplicate id 0x7f05003f, tag null, or parent id 0x0 with another fragment for com.test.googleplacestest.PlaceDetailsFragment Mar 28 01:46:44 i want to remote my sqlite db on android... Mar 28 01:46:52 g00s: in AS go to File>Project Structure>Android SDK and verify the JDK directory is correct. Mar 28 01:47:05 creatorb1: what do you mean? Mar 28 01:47:34 Mango_Man: sorry i think you text with me :-D Mar 28 01:47:35 g00s: and in Project Structure go to SDKs and verify you have a correct JDK entry Mar 28 01:47:36 googling the error, I see people saying I can't use a fragment within a fragment (old answers), or that I have to get rid of all NestedFragments in onDestroy. I am not using nested fragments, am I? I am adding 2 fragments to a ActionBarActivity Mar 28 01:47:51 ThomQ: are you duplicating IDs? Mar 28 01:48:37 No, the ID for map and PlacesDetails are definately different Mar 28 01:49:31 eh, they didn't fix that bug where maven plugin is required for project structure dialog Mar 28 01:49:35 g00s: i just checked, 0.5.3 is the latest Canary build? did you really want to update to that Mar 28 01:49:36 lol Mar 28 01:49:44 they all suck Mar 28 01:49:48 does it matter? Mar 28 01:49:56 it can't be worse than 0.5.2 Mar 28 01:49:59 or 0.5.1 Mar 28 01:50:02 well you've now become a Canary Mar 28 01:50:02 or 0.5.0 Mar 28 01:50:02 lol Mar 28 01:50:07 they are all canaries Mar 28 01:50:26 i haven't seen a dev build. i have update set to 'dev' channel, it still doesn't persist Mar 28 01:50:41 i'd leave my update channel on dev or beta Mar 28 01:50:44 another bug Mar 28 01:50:45 lol Mar 28 01:51:25 Hey guys. I got a navigation drawer working but I now need to make the drawer elements look cooler. I need to have sort of a non-standard list... the first item has a different style than the rest...then I need a divider, and a few fixed elements, then a divider and a few custom elements that I retrieve from a REST call Mar 28 01:51:37 Napalm see, what i am seeing … by doing 'fresh installs' is they keep on fixing a bug, and then breaking it again Mar 28 01:51:42 in release +2 or something Mar 28 01:51:44 should that still be a single ListView for the nav drawer? Mar 28 01:52:12 JakeWharton: yesterday's robolectric snapshot fixes the problem Mar 28 01:52:16 with appcompat Mar 28 01:52:33 Napalm ah shit, its all set correctly anyhow Mar 28 01:52:46 :( Mar 28 01:53:23 well, i'll file another bug Mar 28 01:53:40 hey, they should give I/O tickets to the people that file the most bugs Mar 28 01:53:47 i'd be able to go this year Mar 28 01:53:52 of course, they make it easy for me Mar 28 01:53:58 lol Mar 28 01:54:51 Napalm i'm pretty meticulous when i test. now to reproduce this bug, i will uninstall everything and start again to write the steps Mar 28 01:54:54 g00s: im curious, when you inherit from another fragment say BaseFragment, and you want BaseFragment to wrap the view of sub-class. How do you normally do that? Mar 28 01:55:48 Napalm wrap the view of the subclass ? you mean Its View is a parent of the View tree of its subclass ? Mar 28 01:56:03 (like a decorator) ? Mar 28 01:56:28 for example you want to wrap your subclasses view with something Mar 28 01:56:32 another layout Mar 28 01:56:43 yea, decorator pattern right? Mar 28 01:56:48 gradle is forcing me to exclude a bunch of files manually...this is cruel and unusual punishment Mar 28 01:57:11 so you have ParentFragment and ChildFragment, and you want the ChildFragment Tree to be a Child of the ParentFragment view ? Mar 28 01:57:21 yus Mar 28 01:57:31 um, I would use a template method Mar 28 01:57:44 i have a plethora of ways Mar 28 01:57:46 in ParentFragment, call getViewInternal() or something Mar 28 01:57:48 yea abstract method Mar 28 01:57:51 in your onCreateView Mar 28 01:57:53 yeah Mar 28 01:58:03 i haven't done this so far, just throwing stuff out Mar 28 01:58:30 likewise, i guess your shild could call super.onCreateView () ... Mar 28 01:58:31 it just always feels' wrong Mar 28 01:58:34 and then attach itself to that Mar 28 01:59:05 hmm, perhaps i need to go at this in a different direction Mar 28 01:59:16 Napalm what happens when your Parent fragment layout itself has ? Mar 28 01:59:23 bwhaha Mar 28 01:59:33 oh, that might have unintended consequences Mar 28 01:59:54 you know the new SwipeRefreshLayout Mar 28 01:59:57 you don't want nested fragments per se, just decorated Mar 28 02:00:14 yeah the new thingy in the support lib Mar 28 02:00:20 was just trying to think up a nice way to wrap any fragment with it Mar 28 02:00:30 ah Mar 28 02:00:38 so you want to swipe refresh all the things :) Mar 28 02:00:53 no i wouldnt put it in the basefragment Mar 28 02:01:05 hmm Mar 28 02:01:10 perhaps a better way Mar 28 02:01:17 is to have the Activity have an interface Mar 28 02:01:25 which any fragment can access Mar 28 02:01:33 to perform and control fragments Mar 28 02:01:40 i mean fragment refreshes Mar 28 02:02:21 hit enter a few more times Mar 28 02:02:52 :P Mar 28 02:03:41 oh man, this is bad news Mar 28 02:03:51 no problem anymore? Mar 28 02:04:04 another thing I found with AS is that i keep getting 'adb is not responding' dialog Mar 28 02:04:12 but from the command line, adb devices is just fine Mar 28 02:04:45 g00s: found a pic of you.. http://scriptshadow.net/wp-content/uploads/2014/02/canary-in-the-coal-mine.jpgw595.jpeg :D Mar 28 02:05:08 hm Mar 28 02:07:03 what a piece of shit. i can't even shut down AS without kill -9 Mar 28 02:07:20 goes into an infinite loop of trying to connect to adb Mar 28 02:07:23 doesn't it have a java parent ? Mar 28 02:07:26 can't find it , can't restart it, anything Mar 28 02:07:35 * kbs gives g00s a chocolate cookie - good for stress relief :-) Mar 28 02:08:04 adb is also a piece of shit itself Mar 28 02:10:33 * g00s gets notepad, pencil. ok now, from the top. Mar 28 02:10:39 reboot Mar 28 02:11:19 this is great: https://github.com/jpardogo/FlabbyListView Mar 28 02:13:28 Mango_Man: couldn't it be done better with Matrix.mapPoints or Matrix.mapVectors Mar 28 02:13:42 this way its not just the background that 'flabs' Mar 28 02:15:12 eh i wouldn't know, didn't look at the source Mar 28 02:19:25 there's a templates folder in tools directory of android-sdk. similar(same?) to what eclipse+adt provides. are these available to command line's create project? how? Mar 28 02:20:52 hey Mar 28 02:20:53 well, i double checked. I am not using duplicate ID's or tags, so the illegal argument exception I'm having ( Duplicate id, tag null, or parent id 0x0 with another fragment ), must have something to do with the parent, correct? Mar 28 02:21:18 anybody have experience with creating alarmmanagers? Mar 28 02:21:19 the parrent id is the same, the parent to both fragments is a ActionBarActivity, with a FrameLayout attached Mar 28 02:29:30 are you trying to stuff two fragments into a single framelayout ? Mar 28 02:34:27 Napalm how did i remind you of the bird with the gas mask ? O.o Mar 28 02:34:47 Canary Mar 28 02:34:53 you know what they were used for right? Mar 28 02:35:00 oh yes Mar 28 02:35:02 where the builds get there name from Mar 28 02:35:03 lol Mar 28 02:35:03 ha! Mar 28 02:35:06 :) Mar 28 02:35:19 so i guess i need one of those masks **** ENDING LOGGING AT Fri Mar 28 02:59:59 2014