**** BEGIN LOGGING AT Tue Oct 22 02:59:58 2013 Oct 22 03:06:07 i finally got a word processor on my desktop Oct 22 03:06:22 Open office :P Oct 22 03:09:12 Sorry, internet went down at the house, tethering off phone now Oct 22 03:10:17 http://imgur.com/a/DjNxX Oct 22 03:10:26 seand: Oct 22 03:10:42 combatwombat: have you never heard of a pastebin Oct 22 03:11:00 Sorry, derpy crap atm, yes of course I have. Oct 22 03:11:12 where is View defined? Oct 22 03:11:46 seand: that is what I was asking earlier, should I be using a different method right there? Oct 22 03:11:56 no that's the method you should use, but it's not static Oct 22 03:12:02 lol imgur image Oct 22 03:12:16 I guess the tut I'm watching is a bit too old :( Oct 22 03:12:32 findViewById is on Activity Oct 22 03:12:46 well not technically but it's available in Activity Oct 22 03:13:41 regardless of that fact. R.id. does now show bAdd or bSub as available Oct 22 03:13:48 combatwombat, you dont need to specify View seeing as how you imported the View library Oct 22 03:14:47 nubish, the fuck are you talking about Oct 22 03:15:15 seand, he wrote View.findViewById(resource identifier) Oct 22 03:15:26 nubish: regardless of View. Activity. or anything else. R.id.bAdd and R.id.bSub doesn't do squat. Oct 22 03:15:29 he imported View, so im saying he doesnt need to include the class View Oct 22 03:15:32 It doesn't recognize them. Oct 22 03:15:39 alright im sorry im sorry ;_ Oct 22 03:15:40 ; Oct 22 03:15:50 yeah i see it combat Oct 22 03:15:50 umm Oct 22 03:15:55 nubish, that's never valid code Oct 22 03:16:00 it IS R.id. right? Oct 22 03:17:22 really seand? Oct 22 03:17:25 im checking over my code Oct 22 03:17:27 combatwombat: http://stackoverflow.com/questions/3229091/eclipse-not-recognizing-r-id-with-android/14631151#14631151 Oct 22 03:17:52 or really the entire set of answers, not that answer in particular Oct 22 03:17:53 yeah it has to do with the manifest Oct 22 03:17:56 perhaps Oct 22 03:18:04 combatwombat: also never listen to nubish Oct 22 03:18:04 its not generating the generated R code Oct 22 03:18:22 listen to me ys Oct 22 03:18:26 i have good answers sometimes Oct 22 03:18:29 SOMETIMES Oct 22 03:19:08 Cannot make a static reference to the non-static method findViewById(int) from the type View Oct 22 03:19:18 but it did find bAdd and bSub Oct 22 03:20:09 combatwombat do you not have a lot of experience with java? Oct 22 03:20:45 i was wrong Oct 22 03:20:48 sorry Oct 22 03:20:55 More like I'm not familiar with the android sdk, but I wouldn't say I am a professional in java no. Oct 22 03:21:30 could it be because you declared the variables outside of onCreate()? Oct 22 03:22:03 combatwombat: did you fix the static issue? Oct 22 03:24:26 no thats not it Oct 22 03:24:32 disregard what i said Oct 22 03:26:03 nubish i think he's got it Oct 22 03:26:08 nope Oct 22 03:26:18 hey seand im look at the book and its assigning the resource identifier of a Button to the Button variable through findViewById without calling View Oct 22 03:26:23 phone internet is creeping Oct 22 03:26:32 okay, then let me explain what static and non-static methods are Oct 22 03:26:34 combat are you using eclipse? Oct 22 03:26:41 yep Oct 22 03:26:45 but its showing right here seand Oct 22 03:26:50 i know what they are Oct 22 03:26:55 stfu nubish Oct 22 03:27:03 seand its right here! Oct 22 03:27:17 static methods are accessible without an instance (ie without doing View view = new View()) Oct 22 03:27:28 so they can be accessed like: View.method() Oct 22 03:27:46 non-static methods require an instance, so you have to construct it using the new keyword and then call it Oct 22 03:27:59 seand: I'm trying to decide how. The tutorial used add = (Button) findViewById(R.id.bAdd); Oct 22 03:28:15 combatwombat: pay attention Oct 22 03:28:17 Sorry, was typing that before I read yours. Oct 22 03:28:20 http://developer.android.com/reference/android/app/Activity.html#findViewById%28int%29 Oct 22 03:28:33 the findViewById() method is on Activity as a non-static method Oct 22 03:28:36 combatwombat press SHIFT+CTRL+O Oct 22 03:28:49 in eclipse Oct 22 03:28:50 onCreate is a non-static method, so you can call this.findViewById(...) Oct 22 03:29:08 but the this is not required, which is why every example just shows findViewById(...) Oct 22 03:29:53 does that make sense? Oct 22 03:30:33 nubish: doesn't work on a mac... just prints 0... seand: so why didn't they do a View view = new View() or Activity activity = new Activity() then? Oct 22 03:30:58 combatwombat: onCreate is called on an Activity instance, so it is a static method Oct 22 03:31:10 sorry, it is a non-static method Oct 22 03:31:20 so you can call other non-static methods also on Activity within it Oct 22 03:31:25 findViewById() being one of them Oct 22 03:31:33 What you are saying does make sense though yes. I'm just trying to figure out why his code is magic and works :P Oct 22 03:31:59 combatwombat: maybe you should look at a java tutorial before jumping into android programming Oct 22 03:32:25 alrighty, I see that I can call non-static inside of non-static methods, I'm aware of this, I'm just hung up over why mine differentiates from the tut. Oct 22 03:33:02 combatwombat hold on im going to try this code on my eclipse Oct 22 03:33:02 Hello! How to add animations to an Expandable List View? Is it possible to animate the child indicators? Oct 22 03:33:06 brb Oct 22 03:33:15 View.findViewById implies the method is static. but it is non-static, so it cannot be called this way Oct 22 03:33:17 http://www.youtube.com/watch?v=eKXnQ83RU3I&list=SP2F07DBCDCC01493A Oct 22 03:33:37 gavilian check this out https://developer.android.com/training/custom-views/making-interactive.html#makesmooth Oct 22 03:33:38 seand: yes I understand so removing it makes it non-static Oct 22 03:33:44 last section talks of property animators Oct 22 03:34:46 hey combatwombat import android.content.Context Oct 22 03:35:11 nubish: I work with SDK 7, and how can I animate the child indicators that way? Oct 22 03:35:31 SDK 7? what do you mean? Oct 22 03:35:56 api level 7? Oct 22 03:36:03 java sdk 7? Oct 22 03:36:07 if you mean API7... why, oh, why, oh why? Oct 22 03:36:26 combatwombat did you import android.content.Context? Oct 22 03:37:05 nubish: seand: here is the code as it stands. http://pastebin.com/zc2dBf8t Why would I want to import that? Again. I'm not saying you are wrong just not seeing where this lines up with the tutorial, (That is the youtube vid I linked btw.) Oct 22 03:37:34 looks fine combatwombat, what's the issue Oct 22 03:37:36 alright im gonna try this out Oct 22 03:38:17 https://gist.github.com/anonymous/5f3d5c8bb4ae271f0208 Oct 22 03:38:48 nubish: importing that only alerts me to it not being used... Oct 22 03:38:58 are you sure you saved and recompiled Oct 22 03:39:33 okay Oct 22 03:39:59 seand: .... fml.... why does eclipse keep its errors until you save? Very different than VS C# Oct 22 03:40:16 As when I save it, it works Oct 22 03:40:50 so it works? Oct 22 03:41:04 every IDE is different. in intellij you don't even get an asterisk indicating the file has changed, so i'm never sure if ctrl+s actually does anything or if it just saves automatically Oct 22 03:41:14 see findviewbyId without including the class works Oct 22 03:41:30 nubish including the class doesn't work Oct 22 03:41:43 and you can remove the import of view.View Oct 22 03:41:50 yeah Oct 22 03:41:52 and it will never work Oct 22 03:42:04 ? Oct 22 03:42:11 ashooby: Yes, Android 2.1 Oct 22 03:42:23 it does work without View Oct 22 03:42:28 the class that is Oct 22 03:42:30 ashooby: Because 5% of my users use 2.1 Oct 22 03:42:35 gavilan2 why the hell are you working with 2.1 Oct 22 03:42:41 then fuck 5% of your users Oct 22 03:42:47 ^ Oct 22 03:42:48 seand: Life doesn't work that way :) Oct 22 03:42:56 gavilan2 did they pay for the app? Oct 22 03:43:10 seand: it doesn't matter, but the more users, the merrier.... Oct 22 03:43:11 how are you able to use 2.1? Oct 22 03:43:36 nubish: Still, how to animate the child indicators or dividers ? Oct 22 03:43:38 is that possible? Oct 22 03:43:38 if you, the creator, says life is so then it will be so Oct 22 03:43:48 i dont know what you mean by child indicators Oct 22 03:43:51 gavilan2 i bet you would bring in more people if you upgraded the min sdk. lots of people prefer holo apps Oct 22 03:43:56 nubish: the line that separates two children Oct 22 03:44:06 seand: what's a holo app? Oct 22 03:44:18 holo? it's the new theme starting with ICS Oct 22 03:44:24 seand: When I can do a big improvement using a new SDK, I do it with conditional code... Oct 22 03:44:24 theme Oct 22 03:44:30 or whenver it started, don't remember Oct 22 03:44:35 seand: But I try to make most of the app work on 2.1 Oct 22 03:44:50 I target API 17 Oct 22 03:44:57 gavilan2: link? Oct 22 03:45:07 seand: can not do :( Oct 22 03:45:13 it's not on the play store? Oct 22 03:46:00 seand: If I tell you which app I work in, then I can't ask you questions any more due to confidentiality stuff.... Oct 22 03:46:33 oh Oct 22 03:46:39 :( life is sad Oct 22 03:46:53 so you do professional android dev? Oct 22 03:46:59 and work for a company? Oct 22 03:48:07 hey gav check this out http://mylifewithandroid.blogspot.com/2011/06/hiding-group-indicator-for-empty-groups.html Oct 22 03:48:45 you can also make the child indicator into a drawable Oct 22 03:49:12 which means you can do gradient drawables and composite drawables to make an animation Oct 22 03:50:12 seand: "professional", but yes... Oct 22 03:50:50 i know how it is then Oct 22 03:50:59 in my job we have to support clients who still use IE 7 Oct 22 03:50:59 gavilan2: whats with the quotes? Oct 22 03:51:12 nubish: by animation I mean slide in the contents of the group form the top... Can I make the child indicator slide from the top with that composite drawable thing? Oct 22 03:51:21 seand: eck.. Yeah We have crap like ff 15 required etc. Oct 22 03:51:29 combatwombat: android is not my strong suit :) Oct 22 03:51:40 we're all learners here gav Oct 22 03:51:47 except for seand, he knows everything Oct 22 03:52:10 nubish: is it that i know everything, or you know practically nothing Oct 22 03:52:16 i dont understand that gavilian Oct 22 03:52:28 oh no seand its that you know everything Oct 22 03:52:31 sincerely Oct 22 03:54:04 gavilian, you'd most likely need to use drawables so read up on drawables Oct 22 03:55:15 nubish: when you click on a group, the child appear... I want the child to appear from the top... so Y=-100% to Y=0 or something like that... the problem is that moving the children don't move the child indicators Oct 22 03:56:17 zero is top-left corner or lower-right corner again Oct 22 03:56:21 ? Oct 22 03:56:43 I'm assuimg it's the bottom Oct 22 03:58:49 another question, in a state drawable, is it possible to make the images fade in and out when they change? Oct 22 03:59:01 okay so you're presented an activity with several groups, and when you click on a group, that opens a new view where the contents(children) of that group approach the screen from the top flowing to the center of the screen Oct 22 03:59:17 and you want the child indicator to follow those children Oct 22 04:00:25 nubish: yes, something like that... it doesn't open a new view, it inflates a layout, and adds it there in the middle under the group.... Oct 22 04:01:24 i think what you want can be acheived through composite drawables Oct 22 04:01:35 definitely read up on composite drawables gavilan Oct 22 04:01:58 hi all Oct 22 04:02:18 hi Maziz Oct 22 04:02:47 nubish: ok, I'll read that! thanks Oct 22 04:03:13 composite drawables give life to Drawables gavilan so thats what you need Oct 22 04:03:21 Anybody knows how to retrieve child view that are not visible in grid view? Oct 22 04:04:11 Im trying to put animation when changing grid view column. So for instance you change a the number of columns from more to less i need to animated that invisible child view and put into place Oct 22 04:09:15 nubish: thanks Oct 22 04:11:15 how do you alert someone in chat with red ink? Oct 22 04:11:26 say their name Oct 22 04:11:40 nubish: http://www.youtube.com/watch?v=sQgd6MccwZc Oct 22 04:11:42 gavilan2 sure Oct 22 04:12:14 destiny child and TLC :P Oct 22 04:12:19 omg beyonce Oct 22 04:12:56 ha! Oct 22 04:13:39 is it possible to make a progress bar with a drawable? a rotate drawable that changes the angle based on the time? Oct 22 04:13:39 nubish, also, most irc clients will auto complete a name if you type the first few characters and press tab Oct 22 04:13:42 you can define Oct 22 04:13:58 you can define "discrete" steps with animation drawable... but is there any wayh to define "continuos" steps? Oct 22 04:13:59 alex_PP wicked Oct 22 04:14:56 yes you can gavilan Oct 22 04:14:57 hmm Oct 22 04:15:15 Maziz you should stick around Oct 22 04:15:22 yeah i will Oct 22 04:15:29 im still looking the answers too Oct 22 04:15:29 maybe someone will come in and assist you Oct 22 04:15:36 im looking online as well Oct 22 04:15:43 thanks Oct 22 04:18:02 nubish are you working on any apps Oct 22 04:19:17 seand im still studying this Android dev book and looking at several code for a better understanding of how things are tied Oct 22 04:19:31 seand I do plan on writing an app next month Oct 22 04:20:15 nubish: you already have an idea in mind? Oct 22 04:24:04 nubish: How do you do it? Oct 22 04:24:32 Maziz, you can create your own drawable that extends Drawable and override the draw method Oct 22 04:25:04 then you can have whatever parameters you want to change the state of the drawing Oct 22 04:25:06 seand most definitely a game Oct 22 04:25:09 so that means the removed child view from the screen will be kept as drawable Oct 22 04:25:13 gavilan2 im looking it up hold on Oct 22 04:25:23 sadly you can't use your custom Drawables in xml Oct 22 04:26:29 its so freaking cold in my room right now Oct 22 04:26:49 parents are trying to cut back on bills Oct 22 04:26:56 ill most likely die of frostbite Oct 22 04:27:14 Maziz, ? Oct 22 04:27:23 yeah Oct 22 04:27:25 im thinking Oct 22 04:27:27 lol Oct 22 04:28:05 i crushed the walmart test out of the park Oct 22 04:28:13 my app is meta-distributable Oct 22 04:28:21 really jimmy? Oct 22 04:28:24 thats awesome Oct 22 04:28:29 congrats Oct 22 04:28:32 what walmart test Oct 22 04:28:51 buy cheapest android tablet at walmart and achieve 30+ fps Oct 22 04:29:00 nice Oct 22 04:29:05 what was the cheapest? Oct 22 04:29:08 nexus 7? Oct 22 04:29:22 samsung galaxy tab 3 7" Oct 22 04:29:52 nexus7 is way better, but i already have one Oct 22 04:29:57 alex_PP: But this will create another issue. For example this case: 1. User change the column from 4 -> 2. Animate the changes (scaling and translation) Any child view that translated outside of the screen will be saved as drawable. Then after user change the num of columns and scroll and change the number of columns again to 4, you only kept the drawables of previous visible child views Oct 22 04:30:16 ill keep that in mind Jimmy Oct 22 04:30:34 so... you dont have the drawable to animate back to 4 columns Oct 22 04:30:49 because now the visible child is different Oct 22 04:30:57 i mean visible position Oct 22 04:31:42 i dont get this whole row and column thing seeing as how it seemed different than average column and row tables in real world applications Oct 22 04:31:56 column in the context of android still means vertical row right? Oct 22 04:32:52 yeah Oct 22 04:32:54 I have MainActivy class which have a method public void setTextValue(Float value) from JNI c file I am calling the method but it throws exception. I am getting NoSuchMethod error. Oct 22 04:32:58 vertical row Oct 22 04:33:04 okay good Oct 22 04:34:35 hmm another workaround Oct 22 04:34:36 i think Oct 22 04:34:42 i animate Oct 22 04:35:00 then overide pre-draw listeneer Oct 22 04:35:07 get the view then Oct 22 04:35:17 then finish predraw Oct 22 04:35:23 finish the animation Oct 22 04:35:36 and requestLayoutAgain only this time allow predraw to pass through Oct 22 04:36:30 hmm Oct 22 04:36:35 i guess woudnt work still Oct 22 04:36:53 gavilan2 you still here Oct 22 04:36:54 ? Oct 22 04:37:41 hmmm maybe an intent activity intent activity oroboros with random vector exits (lol i dont kno what eyem doing) Oct 22 04:38:05 lol i need to re-read some of these chapters Oct 22 04:38:49 I see JimmyCarter is trying to raise the dead. Oct 22 04:39:37 lo Oct 22 04:39:37 l Oct 22 04:42:59 hi all :) i'm trying to use the Android Developer Tools plugins. i require a dependency, org.eclipse.wst.sse.core. i searched around for a resolution. some people say this is supposed to be a provided by another plugin. can anyone tell me where to find it? Oct 22 04:44:57 ah, nvm, i think i figured it out Oct 22 04:46:26 check this out incase you havent hdon, solution #7 is the one ppl say works https://code.google.com/p/android/issues/detail?id=60149 Oct 22 04:46:55 nubish, i did. i just didn't understand the instructions the first time. whoops. Oct 22 04:46:58 thanks nubish Oct 22 04:47:03 k Oct 22 04:49:37 nubish are you still studying? Oct 22 04:49:40 or working? Oct 22 04:49:50 Maziz yes Oct 22 04:50:00 ask if you have a question, i have a book here in front of me Oct 22 04:50:03 i might be able to find it Oct 22 04:50:19 its a great book too, i can recommend it if you let me Oct 22 04:52:05 And just today I find out that JetBrains accidentally pushed a broken version of the Scala plugin and I hadn't noticed it 'til now. Odd. Oct 22 04:52:38 owh whats the title and author? Oct 22 04:53:12 Nilium i laughed upon accessing the website and reading World's Leading Vendor of Professional Development Tools :P Oct 22 04:53:21 * Nilium has only books on the Great Depression in front of him. Oct 22 04:53:32 Shit happens, but still odd. Oct 22 04:53:42 The upside is that uninstalling and reinstalling the plugin fixed it. Oct 22 04:54:15 you using intellij ultimate Nilium Oct 22 04:54:15 ? Oct 22 04:54:22 Yes. Oct 22 04:54:32 They most likely fixed it through an update Nilium, OBVIOUSY right Oct 22 04:54:32 worth the investment? Oct 22 04:54:54 Maziz http://www.amazon.com/Professional-Android-4-Application-Development/dp/1118102274/ref=sr_1_1?ie=UTF8&qid=1382417630&sr=8-1&keywords=professional+android+4+application+development Oct 22 04:54:57 dat link Oct 22 04:54:57 im using community ver. but really interested to get ultimate Oct 22 04:55:01 I think it is, but you should look at what you get out of the ultimate edition vs. the community edition to decide for yourself. Oct 22 04:55:12 nubish: ah that. got that :) thanks. Oct 22 04:55:24 you have it already? Oct 22 04:55:38 Nilium: besides the plugins, there sql support and umls Oct 22 04:55:40 nifty Oct 22 04:55:52 I personally couldn't give a single crap about UML Oct 22 04:56:01 lol Oct 22 04:56:03 And I thought the SQL stuff was also in the community edition? Oct 22 04:56:09 nope Oct 22 04:56:25 umls pretty handy for documentation lol Oct 22 04:56:30 Weird. I guess I get to take that for granted. Oct 22 04:56:58 I'm not sure how many plugins are limited to the ultimate edition, but my understanding was that there was no limits on them Oct 22 04:57:16 s/was/were/ Oct 22 04:57:57 community Oct 22 04:58:01 just android and java Oct 22 04:58:03 ultimate Oct 22 04:58:12 i think python, javascripts, Oct 22 04:58:19 scala, play framework Oct 22 04:58:23 and other stuff Oct 22 04:58:31 The Scala plugin should work in the community edition Oct 22 04:58:34 all language /framework with one IDE Oct 22 04:58:42 oh they do? Oct 22 04:58:56 Go look at your plugins list and click the 'install from jetbrains' button Oct 22 04:59:06 nubish: yup had it already Oct 22 04:59:12 As far as I know, you'll get the exact same list I do Oct 22 04:59:34 Maziz coolnes Oct 22 05:01:05 The upside of Ultimate Edition is probably mainly code coverage, database tools, I guess the SQL stuff though I'm not sure since I've never bothered writing standalone SQL files (it's a weird idea to me), and the support you get by having a license Oct 22 05:03:49 brb Oct 22 05:04:05 i see Oct 22 05:08:50 i saw carrie last night Oct 22 05:08:57 the new one that came out Oct 22 05:09:00 it was pretty good Oct 22 05:09:03 better than expected Oct 22 05:14:08 http://pastebin.com/Av1Mfj0y someone take a look at this and tell me why my animations aren't happening in order. The last rotation is occuring first, then the first rotation, then the scale Oct 22 05:28:39 oh, fixed it, had to set android:fillEnabled="true" and android:fillBefore="false" :) thanks bankai_ ! hehe Oct 22 05:30:08 you just thanked yourself :D Oct 22 05:31:53 wich is the control for display some values (a listbox, or dropdown) Oct 22 05:33:46 for a drop down list, you use Spinner class Oct 22 05:33:51 https://developer.android.com/guide/topics/ui/controls/spinner.html Oct 22 05:34:53 then use a SpinnerAdapter to populate the list with items Oct 22 06:23:49 Who can make me app ? Oct 22 06:23:55 I can pay Oct 22 06:29:02 Some one here can make me app ? I pay for that Oct 22 06:36:39 lololol Oct 22 06:36:49 what do you want to make, and how much are you paying Oct 22 06:37:20 I need an app example Oct 22 06:37:35 You press only 1 bottom Oct 22 06:37:41 okay, just because we've been through it on #android Oct 22 06:38:03 And automatically make videocall on skype Oct 22 06:38:13 he wants an app which just launches a skype video chat... his English ain't great, he started by offering $30, then upped to $100 when pushed Oct 22 06:38:15 When press botom take a picture Oct 22 06:38:29 he didn't say anything about taking pictures before Oct 22 06:38:50 I pay from 100 to 500 Oct 22 06:39:07 really? why? Oct 22 06:39:11 -.- Oct 22 06:39:13 Leed if you not help me leave i explaint my idea Oct 22 06:39:29 smartall: I would happily help you leave, but I can't do that anymore Oct 22 06:39:40 :) Oct 22 06:40:12 well, i dont know what you want, but 100 to 500 has gotta be something suuuuper basic with little to no functionality Oct 22 06:40:20 or liability Oct 22 06:41:08 I just want app with 2 actions Oct 22 06:41:24 but why Oct 22 06:41:27 open skype and take a picture of it? Oct 22 06:41:28 Press botom tranfer videocall an take picture Oct 22 06:41:37 Yes Oct 22 06:41:51 Enlace directly videocall Oct 22 06:41:58 To an number Oct 22 06:42:02 By skype Oct 22 06:42:16 And after finidh calle back to my app Oct 22 06:42:54 Understend ? Oct 22 06:43:18 I don't understand what the point of this would be Oct 22 06:44:00 Ok the point is like childrens phone Oct 22 06:44:16 The kids not know the phone Oct 22 06:44:48 So kids press just a botom and tranfer call by skype Oct 22 06:47:13 well, i'm not the most proficient guy in Android, but im pretty sure you can only take pictures of other applications if the phone is rooted Oct 22 06:47:37 and sure, you have a children's phone, and he doesnt know phone numbers, so he just opens an app that then skypes some number Oct 22 06:47:42 but i still dont know why you need a picture Oct 22 06:47:43 I would assume that taking a picture means a photo with the camera, but I could be wrong Oct 22 06:47:51 But need take picture when press the bottom and after make video call Oct 22 06:48:19 Yes Oct 22 06:48:34 take a picture from the phone's camera...so a picture of the user, not of who is on skype Oct 22 06:48:48 From camera Oct 22 06:49:00 And after make the video call Oct 22 06:49:15 what is the picture for? Oct 22 06:49:23 By skype directly withot put numbber Oct 22 06:49:50 ? Oct 22 06:49:55 Just picture Oct 22 06:50:06 Action from app 1 Oct 22 06:50:22 Take picture from camera when press bottom Oct 22 06:50:42 And after make videocall from save number by skype Oct 22 06:51:15 Understend ? Oct 22 06:51:32 i dont understand what you're doing with the picture Oct 22 06:51:49 you're 1. taking a picture 2. calling a saved number from skype Oct 22 06:51:54 The picture save in the phone Oct 22 06:52:04 By if stolen phone Oct 22 06:52:14 Yes Oct 22 06:52:24 This i want Oct 22 06:52:50 so you save the picture on the phone... Oct 22 06:52:58 Yes Oct 22 06:53:02 For security Oct 22 06:53:11 if the phone is stolen, the thief will delete the pictures Oct 22 06:53:19 otiose: then if the phone is stolen, the thief has a picture of the person they stole it from Oct 22 06:53:26 might make identity theft a bit easier Oct 22 06:53:53 Bot because the pictures i have directly dropbox Oct 22 06:54:07 well theres another added feature to the app Oct 22 06:54:29 Not understend broo Oct 22 06:54:42 My app i want is easy or not ? Oct 22 06:54:44 is this a personal app, or to be put in the store/ Oct 22 06:54:52 otiose: dropbox does auto-upload of photos Oct 22 06:54:53 Personal app Oct 22 06:54:59 oh nevermind then Oct 22 06:55:13 Yes i do Oct 22 06:55:13 it doesnt sound too difficult, just... i dont get why its necessary Oct 22 06:55:26 if the thief steals the phone, he's not going to use that app to make calls Oct 22 06:55:29 Just is personal app Oct 22 06:55:31 ooooh Oct 22 06:55:41 smartall: I thought this was an app for your business? Oct 22 06:55:48 you use that phone (with the app on it) to call the stolen phone Oct 22 06:55:53 and then you get the picture of the thief Oct 22 06:56:08 err no Oct 22 06:56:11 maybe? Oct 22 06:56:14 Yes if i have this app i can sell Oct 22 06:56:21 With phones Oct 22 06:56:24 To childs Oct 22 06:56:37 if you want to sell it, then its no longer a personal app Oct 22 06:56:38 Understend ? Oct 22 06:56:51 Is like personal app bro Oct 22 06:57:05 Thats way say before in othwr channel Oct 22 06:57:33 But i give first examples Oct 22 06:57:42 Because i speak little english Oct 22 06:57:52 so you have phone A, with the app; it gets stolen; thief opens the app, takes his own picture, and sends it to your dropbox Oct 22 06:57:55 so then you know who stole it? Oct 22 06:58:15 Yes Oct 22 06:58:31 and how do you make sure he opens it? Oct 22 06:59:11 Because this app will be the first screen Oct 22 06:59:22 how do you guarantee that? Oct 22 06:59:46 otiose easy you put a shortcut in bright yellow "My Bank Account" Oct 22 06:59:55 If developer do it 1000 porcent Oct 22 07:00:08 g00s: haha Oct 22 07:00:09 otiose: I assume you're not dumb enough to actually want to write this app Oct 22 07:00:26 so the new version Android Studio you can access the SQLite db from the phone Oct 22 07:00:32 how exactly do you do this? Oct 22 07:00:39 lemonxah wut? Oct 22 07:00:50 in 0.3.0 Oct 22 07:00:52 100-500 to some guy on irc? thats generally not how i find clients Oct 22 07:01:16 in which case you're stringing him along and wasting your time... Oct 22 07:01:17 lemonxah MotodevStudio had this; if using emu or sqlite file was on external storage Oct 22 07:01:30 do you have notes about it ? Oct 22 07:01:36 i was curious as to what he thought he could get for 500 on irc Oct 22 07:02:04 You not know make app? Oct 22 07:02:05 http://youtrack.jetbrains.com/issue/IDEA-67759 Oct 22 07:02:26 maybe we are happy? Oct 22 07:02:49 maybe i am just misunderstanding Oct 22 07:03:00 lemonxah not an Android Studio feature Oct 22 07:03:28 otiose: as I said, he originally said $30... then $100... Oct 22 07:03:40 it says fixed in build 132.518 Oct 22 07:04:00 it sounds like he needs to do more research into getting apps developed Oct 22 07:04:23 Because i dont know how much leed Oct 22 07:04:25 lemonxah it requires the database plugin which is only in the ultimate edition of Intellij Oct 22 07:04:35 oh :( Oct 22 07:04:38 that sucks Oct 22 07:04:41 thnx leslie Oct 22 07:04:49 their solution is pretty lame / brittle too Oct 22 07:04:51 smartall: which is why the first thing I asked you, again and again, was your budget Oct 22 07:05:15 anyway Oct 22 07:05:31 i thought there was not soliciting here Oct 22 07:05:40 *no (see topic) Oct 22 07:06:06 smartall: building apps is our job. cost = hours * hourly-rate; apps generally take many hours to make; we live off this money, so the hourly rate is going to be pretty high Oct 22 07:06:11 so, its going to be expensive Oct 22 07:06:27 g00s: there's also close to no operating here Oct 22 07:06:38 Leeds wut? i .. thought … Oct 22 07:08:05 g00s: nobody seems to have been interested in either telling smartall off, or stopping the conversation, for 40 minutes Oct 22 07:08:10 Ok you say me how much Oct 22 07:11:23 when using an LruCache to be used in 2.2, should i import the one in android.util or the one in android.support.v4.util ? Oct 22 07:11:38 use the support one Oct 22 07:11:44 cool, thanks Oct 22 07:12:08 otiose, some of us live off that money ;) Oct 22 07:12:28 ? Oct 22 07:12:28 I frankly don't understand how Oct 22 07:12:34 app market is inflated Oct 22 07:13:04 I just make apps for fun Oct 22 07:13:13 Otosi Oct 22 07:13:20 Otiose Oct 22 07:13:26 ah, i develop for money; although i've never freelanced anything Oct 22 07:14:32 I develop for fun, although I'm paid monthly salary for some of that, I wouldn't do it if it wasn't fun Oct 22 07:14:55 haha well thats a good point Oct 22 07:14:59 although its not always fun for me Oct 22 07:17:04 Otiose how much for my app ? Tellme you Oct 22 07:18:44 smartall: thats going to depend on developer, but it doesnt seem like a very enticing project to me Oct 22 07:20:29 Mm ok bro Oct 22 07:31:30 I have a button that is initially set to invisible, but when i do set it to visible(setVisible(View.VISIBLE)) it shows on my Nexus 4, but not on my Sony Xperia Go Oct 22 07:31:37 anyone seen this problem before? Oct 22 07:37:45 Testet it also works on Samsun Galaxy S3 running 4.1, Nexus 4 running 4.3 and Xperia Go running 4.0.4 Oct 22 07:43:22 maybe i think the app Oct 22 07:43:54 too late Oct 22 07:45:53 hi all. i'm using Eclipse 3.7.2 and i have an Android 2.3.5 system running on a Motorola Photon. i have android SDKs 4.3 and 2.3.3 installed. i tried to do "JetBoy" to make sure everything was working, but I got an error in the eclipse console: Unable to resolve target 'android-3' Oct 22 07:46:11 It works if i align the button compared to the background, but not if i align it compared to another button Oct 22 07:46:37 what is target "android-3?" Oct 22 07:48:49 is it maybe the android SDK for "API level 3?" Oct 22 07:51:59 yes, hdon Oct 22 07:52:08 oh i see, i needed to close another project... didn't realize eclipse would allow me to have two projects open simultaneously Oct 22 07:53:50 hello is there a library to use for caching? Oct 22 07:54:01 LruCache? Oct 22 07:54:14 what kind of caching, Baluse ? network requests? Oct 22 07:57:16 Hi Leeds Oct 22 07:57:33 Maziz: afternoon... Oct 22 07:58:51 Leeds: I got a question. Do you know how to retrieve (or even a workaround maybe) child view that are not visible in grid view? Im trying to put animation when changing number of grid view column. So for instance you change a the number of columns from more to less i need to animated the invisible child view by scaling and translating it into place Oct 22 07:59:12 Or maybe you have other suggestion. Oct 22 08:00:06 hi Oct 22 08:00:38 Maziz: no idea, off the top of my head... my brain is in python/CGI mode at the moment Oct 22 08:00:53 ah thats ok. thanks. Oct 22 08:00:58 hmm Oct 22 08:03:27 any suggestion how to use LRUCache to cache objects from a web service? Oct 22 08:03:39 sorry for my bad english, i've got a problem ... i try to view stream with videoview, but if the stream url hasn't got extension (.mp4 .3gp) then i cannot play the stream and the MediaPlayer throws "Error (1, -2147483648)" Oct 22 08:03:53 if i try with extension it works Oct 22 08:04:00 can somebody help? Oct 22 08:04:30 Baluse look at Volley Oct 22 08:08:40 lol leslie Oct 22 08:09:40 if it's not an option, store the webservice in a class model and store that class model in LRU? Oct 22 08:10:00 why lol, Baluse ? Oct 22 08:11:04 because yesterday without accepting questions they told me to use retrofit Oct 22 08:11:19 Maziz yes i can do this. Oct 22 08:11:28 But it should be transparent i guess Oct 22 08:13:51 I think people recommended retrofit + okhttp, because okhttp agressively caches, even with disk cache. Oct 22 08:14:02 If you're talking about images, picasso + okhttp. Oct 22 08:14:20 no images Oct 22 08:16:53 so which is a good approach. Create a class for my service that extends the interface of the service and put cache stuff there? Oct 22 08:21:15 is it possible to set a theme on an activity's layout file Oct 22 08:22:50 I think it has to be set in the manifest, svector Oct 22 08:26:31 leslie, that's right. It appears that only name and label attributes are allowed inside Oct 22 08:26:49 leslie, i mean Oct 22 08:27:25 leslie, putting android:theme inside sets the theme for the entire application Oct 22 08:27:47 right. or you can set it on individual activities Oct 22 08:29:03 svector: name, label and about 20 others. https://developer.android.com/guide/topics/manifest/activity-element.html Oct 22 08:30:09 putting android:theme="@android:style/Theme.Dialog" inside doesn't seem to make a difference, nor does eclipse give it syntax coloring Oct 22 08:30:21 kakazza, I'm checking out the link Oct 22 08:36:14 Now working :) It was a typo Oct 22 09:11:54 Uh, this is going to be a vague question, but I've just had an actionbar disappear.. :/ Oct 22 09:12:26 The actionbar option is still available when I bring up the context menu/phone button menu, but it is not showing the action bar Oct 22 09:13:37 I've got no idea why :/ Oct 22 09:18:53 It was working last night Oct 22 09:20:47 what would be the best way to make a screencast from an android device? Oct 22 09:27:00 Aha, I accidentally deleted some values folders :-0 Oct 22 09:32:38 What books is everyone using to learn Android here? Oct 22 09:33:56 i use the google book Oct 22 09:34:02 its got chapters on everything Oct 22 09:34:37 just crash course it here, so stackoverflow Oct 22 09:34:44 books somewhat novel idea Oct 22 09:35:29 books are cool for languages but i normally google and read the online android docs Oct 22 09:35:32 https://gist.github.com/flexd/5dfc7ac42e260e2a27a8 <-- I am having a bit of a problem with a SQlite database.. it gets an exception because the column I am trying to find does not exist Oct 22 09:35:36 But it does exist :/ Oct 22 09:36:40 you sure you two are talking about same table? Oct 22 09:37:26 empirical fact of relationship counseling is communication is 90% of problems Oct 22 09:37:32 I am fairly certain.. I have three classes, PersonTable, PersonDatabaseHelper and PersonContentProvider. Oct 22 09:37:47 PersonDatabaseHelper defines private static final String DATABASE_NAME = "persontable.db"; which is what the sqlite3 db file is called. Oct 22 09:38:35 PersonTable defines public static final String TABLE_PERSON = "people"; and the code that creates the table is https://gist.github.com/flexd/ca177a32d638ce9ba5a0 Oct 22 09:39:09 basically public static final String COLUMN_LAST_YEAR_NOTIFIED = "last_year_notified"; is what it's complaining about not existing, and I can see it in the db using sqlite3 :/ Oct 22 09:40:00 so youre creating a table and then querying it in code Oct 22 09:40:06 you sure you dont need to commit the table create or something Oct 22 09:40:19 I am looking at the table in the database, it exists. Oct 22 09:40:21 :/ Oct 22 09:40:27 It was working just fine before I added that column heh Oct 22 09:41:04 Look at this, this is directly from the sqlite3 client https://gist.github.com/flexd/9a758df370b7e21b1493 Oct 22 09:42:04 the table is there and it exists :/ Oct 22 09:44:34 Hello. Do you guys have any idea how I can force the cursor to be on the last position on focus? Oct 22 09:44:50 In an EditText. Oct 22 09:49:16 sogard: editText.setSelection(editText.getText().length()); Oct 22 09:49:49 If I do this in a OnFocusChangeListener it doesn't work. Oct 22 09:50:30 Because the EditText view does not have focus when I call setSelection. Oct 22 09:57:27 Any ideas? Oct 22 10:03:15 sogard: try it in editText.setOnTouchListener(new OntouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { editText.requestFocus(); ... return false; } }); Oct 22 10:03:46 ugh, why can't I parse numbers from strings without having to do a try/catch? Oct 22 10:04:44 because it might fail. Oct 22 10:04:53 then give it a default value Oct 22 10:06:02 Exceptions is like the core of java, learn to live with it :-p Oct 22 10:06:58 I tried to use onTouchListener but I didn't work for some odd reason I cannot remember. Now, it appears to be working. Oct 22 10:07:04 Thanks, shmooz. Oct 22 10:07:53 :) Oct 22 10:07:55 otiose, write a wrapper that reurns defautl value on failure then :) Oct 22 10:08:31 I know that i CAN do it, but dont try's have to like, copy over the stack or something, so then they can recover with an exception? Oct 22 10:08:55 i feel like determining logic flow with exceptions isnt the best way to go Oct 22 10:12:05 a quick one, will on draw be called if the view is set to invisible Oct 22 10:21:12 Is there a way to track objects alive in memory? Oct 22 10:21:52 like Instruments for ios Oct 22 10:21:55 meh. adb framebuffer screencasts all fail on 720p and higher-res devices... Oct 22 10:29:03 I know i can see the heap updates and allocations, Oct 22 10:32:13 no one can help? :( Oct 22 10:32:15 but is it not possible to track certain objects and see if they are still alive? Oct 22 10:48:29 hi Oct 22 10:48:38 hi hi Oct 22 10:49:22 Dudi: ??? Oct 22 10:50:23 *roar!* Oct 22 10:57:23 thepoosh, what's going on? :D Oct 22 10:57:46 you're sending "hi" but nothing else Oct 22 10:58:42 thepoosh, I just want say hello/hi to channle :) Oct 22 10:58:50 oh Oct 22 10:58:53 hi man Oct 22 10:58:59 i would like to roar and nothing else Oct 22 10:59:16 but roaring is less compelling when spelled out Oct 22 11:00:18 DarkSlay3r, you can do like this Oct 22 11:00:20 * Dudi http://www.youtube.com/watch?v=gXkGSc6d0xQ Oct 22 11:02:12 Hey everyone ^-^ I'm new to Android App Development and now I've got a problem: I've got multiple buttons in a But if I scroll now the button is pressed, can someone tell me how I could solve that? (Code for one button: http://pastebin.com/Myn1hc3v ) ( activity_main.xml: http://pastebin.com/xbbGNsk8 ) Oct 22 11:11:07 Panni: put it somewhere other than pastebin and i might help Oct 22 11:11:39 DarkSlay3r: Which site would you suggest? Oct 22 11:11:51 Hello, how do I set the phone's clipboard to plain text? Oct 22 11:12:42 I declared a ClipboardManager but I dont know what to do after that Oct 22 11:17:51 @ DarkSlay3r Here is it on hastebin: activity_main.xml for one button: http://hastebin.com/hecujesuma.xml | MainActivity.java for one button: http://hastebin.com/vinuhejome.avrasm Oct 22 11:29:11 Hey guys - i have high score class that extends Fragment and has an extendable list view in it. However, i can not initialize the list view from my mainActivity class, anyone who knows how to get around that? Oct 22 11:31:41 expListView = (ExpandableListView) findViewById(R.id.expLv); throws a NPE because the element is not in the actual mainActivity Oct 22 11:31:57 getView.findViewById Oct 22 11:32:52 awesome - thanks Oct 22 11:48:25 adt eclipse is quite crashy for me, logs: https://gist.github.com/zokier/7099152 Oct 22 11:49:52 try #eclipse Oct 22 11:50:30 ok Oct 22 11:55:13 Hello. How can I read the samples from an audio file to process them? Oct 22 12:07:24 my oh my, so much boilerplate for GCM client Oct 22 12:57:30 I created an app with a syncadapter. But initially the app doesn't have any data... because the syncadapter hasnt run. What would be a good way to trigger the initial sync? Oct 22 13:31:24 Has anyone here used cordova? Oct 22 13:34:36 yes, it's a trap, don't do it Oct 22 13:35:49 explain Oct 22 13:38:37 it's pretty difficult to debug code, since there is no debugger Oct 22 13:38:49 your app won't be as fast, it won't look like an android app Oct 22 13:40:55 Well to be fair it does look like a work in progress Oct 22 13:51:59 yeah, if you're a javascript programmer, go for it. But if you want a solid app, I would do it all native, using native controls Oct 22 13:52:23 Anyone know an example of how to make "flipping" views like Feedly? You can swipe a current view off screen. Almost like a deck of cards Oct 22 13:59:26 pucko: http://distantstar:52249/kN /training/animation/screen-slide.html Oct 22 13:59:33 oops Oct 22 13:59:40 pucko: http://developer.android.com/training/animation/screen-slide.html Oct 22 14:05:25 icedp: aha! I though that one was only for two views. but this gives a proper infinite flow Oct 22 14:06:15 pucko: yes you should implement getItem Oct 22 14:06:40 awesome. thanks a lot dude Oct 22 14:07:33 np Oct 22 14:13:22 is android sutudio a plugin or standalone ? Oct 22 14:13:32 *studio Oct 22 14:14:08 nevermind standalone Oct 22 14:14:16 standalone Oct 22 14:17:07 I guess I should use scala 2.10 in my next android app, so I can abuse futures Oct 22 14:17:18 Hi guys, I might have a stupid question but nevermind. How would you do if you wanna make your app available through an emulator online? Without having your user installing anything, just, browser -> github repo -> click on a link -> they can test Oct 22 14:17:22 it is something feasible? Oct 22 14:18:06 no Oct 22 14:18:18 maybe find one of those cloud-testing services Oct 22 14:21:04 * whoever nods at pfn Oct 22 14:21:45 * whoever wonder why your would want your android app to run in an emulater instead of nativly when distributed Oct 22 14:24:08 Alright Oct 22 14:24:14 thanks pfn for the answer Oct 22 14:24:54 whoever: are you in fact nodding to me? Oct 22 14:24:55 :) Oct 22 14:25:51 joe75: well i am wonderig why you want your distributed app to run in an emulator Oct 22 14:25:53 pfn: last time I check Eclipse couldn't show context help for Android API for Scala Oct 22 14:26:09 jrm2k6* Oct 22 14:26:29 because that was the idea I had Oct 22 14:26:39 Lets say you dont want to make your app public, or available on any store Oct 22 14:26:48 but you just want to share it with some specific people Oct 22 14:26:51 jrm2k6: but it would run much slower then nativly Oct 22 14:26:51 that dont have a phone Oct 22 14:26:55 how would you do it? Oct 22 14:27:06 I agree. It is just a random idea. Oct 22 14:27:18 Greymotion is pretty fast actually Oct 22 14:27:20 for an emulator Oct 22 14:27:46 jrm2k6: i would say, here is my app. if you don't have a phone, there is an emulater, and instructions to setup Oct 22 14:28:03 jrm2k6: but still why do you wannt do it. android app intended well.. for phones and tablets Oct 22 14:28:11 i dont know Oct 22 14:28:13 lets say Oct 22 14:28:17 you have a project on github Oct 22 14:28:22 someone wants to see how it is Oct 22 14:28:26 quickly easily Oct 22 14:28:41 could be pretty useful in my opinion Oct 22 14:28:45 screenshots, screencast, youtube video Oct 22 14:29:26 I just want an in-between Oct 22 14:29:31 but i think you are not ocnvinced at all Oct 22 14:29:40 I was just wondering if something like that was already existing Oct 22 14:31:36 I believe you it would be great but it's like creating additional problems for yourself - it just won't work better in emulator with current state of affairs Oct 22 14:32:00 it make work badly in emulator but perfectly in phone and so user will try it in emulator and discard it Oct 22 14:32:05 *it may Oct 22 14:32:26 After 4 years of allowing apps to deal with the sms and mms content providers, Google has finally completely broken my Shady SMS Oct 22 14:32:43 I knew this day would come eventually Oct 22 14:33:38 icedp: the specifc use case was during an interview Oct 22 14:33:56 icedp, of course it does... Oct 22 14:34:06 icedp, that's just a matter of ide misconfiguration Oct 22 14:34:06 "oh you have an app here, on your github, do you have a link to check it quickly and you can explain me the different prt of it in few sentences" Oct 22 14:34:11 screenshots would probably have been enough Oct 22 14:34:19 icedp, but eclipse isn't the greatest ide anyway Oct 22 14:34:20 but I still think it is a valid use case Oct 22 14:34:33 nseidm1, in 4.4? Oct 22 14:34:38 yup Oct 22 14:34:40 nseidm1, since they have some official sms api now Oct 22 14:34:49 nseidm1, how do you know it's broken anyway? google hasn't announced anything? Oct 22 14:34:59 nseidm1, or are you somehow in on the latest version ahead of release? Oct 22 14:35:03 in which case, are you breaking an nda? Oct 22 14:35:04 http://android-developers.blogspot.com/2013/10/getting-your-sms-apps-ready-for-kitkat.html Oct 22 14:35:10 ah Oct 22 14:35:40 pfn: https://scala-ide-portfolio.assembla.com/spaces/scala-ide/tickets/1000210#/activity/ticket: Oct 22 14:35:40 On Android 4.4, only one app can receive the new SMS_DELIVER_ACTION intent, which the system broadcasts when a new SMS message arrives Oct 22 14:35:43 I can work around the massive changed, it's gonna be alot of work Oct 22 14:35:56 interesting; is it a broadcast or an activity intent? Oct 22 14:36:03 pfn: does it work in android studio (I mean Scala of course)? Oct 22 14:36:13 The deal breaker is this: Note that—beginning with Android 4.4—any attempt by your app to abort the SMS_RECEIVED_ACTION broadcast will be ignored so all apps interested have the chance to receive it. Oct 22 14:36:28 and this: Although the system writes sent SMS messages to the SMS Provider while your app is not the default SMS app, it does not write sent MMS messages and your app is not able to write to the SMS Provider for other operations, such as to mark messages as draft, mark them as read, delete them, etc. Oct 22 14:36:46 icedp, I wouldn't consider using android studio; and the answer is no; android studio is an android-restricted ide, only "blessed" configurations are supported Oct 22 14:37:29 pfn: so where it works then? )) Oct 22 14:38:06 icedp, well, it works in scala-ide of course, as you've seen -- I don't see what you're pointing out about your ticket... it still works Oct 22 14:38:08 pfn: same broadcast pattern, just a massively different pattern. I need to bake in a full messenger replacement app alongside the existing hidden messaging app. Oct 22 14:38:09 icedp, and intellij Oct 22 14:38:19 nseidm1, oh, so it's sendOrderedBroadcast Oct 22 14:38:36 it's not abortable Oct 22 14:38:47 right, but it's hacked so it's not abortable Oct 22 14:38:53 either it's not ordered anymore, it's somehow the ordered broadcast is no longer abortable Oct 22 14:38:58 yea Oct 22 14:39:03 well, not hacked, I see how Oct 22 14:39:11 basically if you abort it, it gets re-broadcast as non-ordered Oct 22 14:39:13 so all apps get it Oct 22 14:39:17 pfn: no it doesn't work for me at least. and I'm not the only one Oct 22 14:39:28 pfn: I'll make a screenshot Oct 22 14:39:39 icedp, I don't see what you said about "it doesn't work" -- it does work, but again, eclipse misconfiguration Oct 22 14:39:43 pfn: hence if all apps get the broadcast, done deal for hiding it from other apps Oct 22 14:39:50 I dunno about "only one" because lots of people use scala on eclipse successfully Oct 22 14:40:10 nseidm1, I was basically curious if they re-did some apis in the framework to allow this new behavior Oct 22 14:40:23 pfn: I'm not talking about scala on eclipse; but about scala on eclipse for android Oct 22 14:40:28 it's likely just not an ordered broadcast anymore Oct 22 14:40:53 nseidm1, it's an ordered broadcast that if cancelled gets re-sent as non-ordered, is what it sounds like Oct 22 14:41:04 otherwise, I'm really curious how the framework/api is modified to enable this special-case Oct 22 14:41:54 icedp, yes, scala on eclipse for android, plenty of people in scala-on-android do that Oct 22 14:42:04 * pfn uses intellij, though Oct 22 14:42:06 * pfn shrugs Oct 22 14:42:25 pfn, the behavior is basically already there for startActivity with defaults Oct 22 14:42:34 Probably not much different Oct 22 14:42:46 SimonVT, right, but is this a broadcast or activity intent; was my original question Oct 22 14:42:54 SimonVT, and it sounds considerably different if it's a broadcast Oct 22 14:43:18 but of course, it should be a broadcast; would be damned annoying for an activity to pop up on every sms recv Oct 22 14:43:19 can't wait to see the source for the aosp messaging app Oct 22 14:43:33 it's definitely a broadcast just like it was previously Oct 22 14:44:09 nseidm1, Any filters for the SMS_RECEIVED_ACTION broadcast in existing apps will continue to work the same on Android 4.4, but only as an observer of new messages, because unless your app also receives the SMS_DELIVER_ACTION broadcast, you cannot write to the SMS Provider on Android 4.4. Oct 22 14:44:17 nseidm1, sounds like it'll continue to work... Oct 22 14:44:26 pfn: http://i.imgur.com/SnaACl4.png this is what I get Oct 22 14:44:35 oh, wait, you also block messages from being written to the provider Oct 22 14:44:38 * pfn shrugs Oct 22 14:44:39 pfn: deal breaker: Although the system writes sent SMS messages to the SMS Provider while your app is not the default SMS app, it does not write sent MMS messages and your app is not able to write to the SMS Provider for other operations, such as to mark messages as draft, mark them as read, delete them, etc. Oct 22 14:45:01 nseidm1, right, so you can't be "shady" -- booo Oct 22 14:45:01 so when I send sms using Shady, it'll automatically populate the sms database, and I can't delete it Oct 22 14:45:02 pfn: I was asking for help but was confirmed that others have the same problem. so it works for you? and if yes where do I get help ) Oct 22 14:45:17 icedp, so use the show-doc keystroke Oct 22 14:45:22 whatever that is in eclipse Oct 22 14:45:32 pfn: was fun while it lasted Oct 22 14:45:51 still, up to 1030 monthly subscribers :) Oct 22 14:45:57 nice Oct 22 14:46:17 pfn: this is the doc displayed Oct 22 14:46:28 icedp, I guess eclipse sucks then Oct 22 14:46:29 * pfn shrugs Oct 22 14:47:14 pfn: what not sucks then?))) you told that you saw this working but you can't say where Oct 22 14:47:25 icedp, I said it works fine in intellij Oct 22 14:47:38 I said it numerous times already Oct 22 14:47:49 as for that in eclipse; I still think it's a misconfiguration Oct 22 14:48:01 but I don't use eclipse to care to find out how to fix it for you Oct 22 15:10:06 Hey y'all. Tricky one - I think the problem I'm having is this: http://stackoverflow.com/questions/4969553/how-to-prevent-activityunittestcase-from-calling-application-oncreate Oct 22 15:11:09 I'm trying to test an Activity which ends up making a (mocked out) network request. Processing the reply from that requires accessing a ContentProvider. The context I use to do that is the application context.... so I want to mock out the Application. Oct 22 15:11:53 I'm using ActivityUnitTestCase, which lets me call setApplication()... but, woefully, it doesn't work. :( Oct 22 15:12:14 anyone happen to have any clues here? Oct 22 15:12:17 Why not use a local web server? Oct 22 15:12:31 the web service call isn't the problem... it's the ContentProvider Oct 22 15:12:49 I want to mock that out with a fake one I can use to just hard code some data. Oct 22 15:13:00 so I want to plug in a MockContentResolver Oct 22 15:13:36 In the real app, I've got a separate APK with the ContentProvider in it, and I want to avoid having to have that installed on the device when testing. Oct 22 15:14:42 any idea people ? http://stackoverflow.com/questions/19521764/android-studio-0-3-java-library-module-doesnt-work Oct 22 15:18:17 Baluse: I ran into perhaps the same thing today - added butterknife to an app, it compiled fine, but the butterknife classes weren't in the APK. Found this: http://forums.gradle.org/gradle/topics/gradle_dependencies_not_being_included_on_android Oct 22 15:18:30 running the command-line clean sorted me out, no further problems. Oct 22 15:18:57 gradlew --clean ? Oct 22 15:18:59 or clean Oct 22 15:19:06 you can clean from IDE too by invoking "Rebuild Project" Oct 22 15:19:30 Using a multi-choice dialog box, is it possible to make some of the options unclickable? Oct 22 15:19:34 JakeWharton: I did try that, and it didn't work. :/ Oct 22 15:19:45 didnt work for me too Oct 22 15:19:49 (I know, freaky) Oct 22 15:19:57 clean worked for me for one project Oct 22 15:20:00 at other didnt Oct 22 15:20:01 but using gradlew clean did work. Oct 22 15:20:16 actualy rebuild screws the project Oct 22 15:20:33 Moopz: enabled=false Oct 22 15:21:35 JakeWharton: But how do I set enabled to false on only some of the elements? I'm using a non-custom one. Oct 22 15:21:56 set it in XML or with setEnabled Oct 22 15:22:13 As I said, I'm not using a custom dialog box. Oct 22 15:22:56 I want specific elements in the listview it contains to be unclickable. Oct 22 15:23:06 oh, multi-choice dialog Oct 22 15:23:07 dunno Oct 22 15:23:10 never used one Oct 22 15:23:17 it probably takes a boolean[] Oct 22 15:24:07 It does, but that's to see if the elements should be checked or not. Oct 22 15:24:09 boolean reminds me of bullies Oct 22 15:24:12 http://stackoverflow.com/questions/16881536/hiding-items-in-android-multichoice-dialog Oct 22 15:24:26 Moopz: you can get the ListView and then dig in that way Oct 22 15:24:41 gdaniels: Ah, thanks. Oct 22 15:24:59 ew Oct 22 15:25:34 nothing like keeping a static reference to booleans for controlling an adapter to brighten your morning Oct 22 15:25:55 JakeWharton: heh Oct 22 15:26:33 do the custom adapter but implement isEnabled properly please Oct 22 15:26:59 totes Oct 22 15:27:04 I'll see what I can do. Oct 22 15:27:51 JakeWharton: nice work on Butterknife btw - liking it, and much lighter weight than some of the other options. Kudos. Oct 22 15:28:13 test Oct 22 15:29:32 is anyone here using open-jdk-7 , when i creade a blank or any project and try to compile i get errors have tao do with open-jdk-6 not supported Oct 22 15:30:15 yes i am using 7 but android studio complains about 6 Oct 22 15:31:56 gdaniels: thanks! Oct 22 15:32:40 wtf error "could not find any version that matches com.android.support.appcompat-v7:+" Oct 22 15:34:07 lol Oct 22 15:34:19 do you have this library ? Oct 22 15:34:24 check your sdk Oct 22 15:34:25 that's not a valid artifact identifier Oct 22 15:34:48 groupId:artifactId:version Oct 22 15:36:22 Baluse2: i just checked the docs it may have something to do with my min and max settings. I have my target set as gbread and max set to jb, but only have 10 installed, to support this range i assaume i need all of the libs just to be safe Oct 22 15:37:31 set your min to GB, target to JB, and remove max Oct 22 15:38:35 JakeWharton: i don't thinc android studio has a null or n/a option for that Oct 22 15:38:57 do it in the manifest directly Oct 22 15:39:04 edit the androidmanifest.xml and take out max Oct 22 15:41:05 pfn: i only hawe min and target in androidMainifest.xml Oct 22 15:42:10 then you're ok Oct 22 15:43:36 pfn: im gonna pastbin my compile error message , i have not added to the project, and let android studio create it , and when i try to compile I get error message Oct 22 15:43:39 the nexus one is an hdpi device, right Oct 22 15:43:53 <|0xD34D|> yes Oct 22 15:46:26 http://imagebin.org/274429 Oct 22 15:46:48 * pfn headscratches why his bitmap size exceeds vm budget on a nexus one Oct 22 15:46:56 it's a 32x32px compound drawable Oct 22 15:48:24 pfn: are you doing this in an emulator on device Oct 22 15:48:34 nexus one Oct 22 15:48:43 pfn: get my pastebin Oct 22 15:49:21 your build.gradle doesn't load the android plugin, probably Oct 22 15:49:45 and also, don't use + versions Oct 22 15:49:50 :18.0.0 Oct 22 15:50:03 pfn: have you tried another image, just to see if it has someting to do with the image that the nexus is picking up Oct 22 15:50:21 i know sounds dumb but gotta start some where Oct 22 15:50:42 pfn: i didn't think i was Oct 22 15:50:57 pfn: AS must had done that for me Oct 22 15:51:33 anyway, thanks, but the suggestions are unrelated Oct 22 15:51:52 pfn: ok Oct 22 15:52:19 pfn: the + versions would be in the manifest , but not seeing anything Oct 22 15:52:36 library versions go in build.gradle Oct 22 15:53:47 do i just want to remowe the + at the end of the string Oct 22 15:53:56 or completly change it Oct 22 15:54:40 you change it Oct 22 15:54:42 18.0.0 Oct 22 15:54:48 do not use wildcard versions for libraries Oct 22 15:55:19 at least not yet Oct 22 15:55:36 never Oct 22 15:55:43 do not ever use wildcard versions for libraries Oct 22 15:56:10 * Baluse2 needs sleep Oct 22 15:59:00 pfn: why would you never want to use whild in version Oct 22 15:59:35 it would be much easier then having to list each version Oct 22 15:59:45 Has someone managed to mount an OBB file? Oct 22 15:59:50 anyone Oct 22 16:02:23 whoever, because you will never be able to have reproducible builds Oct 22 16:02:53 whoever, you should always be fully in control of dependencies Oct 22 16:03:14 pfn: ah, thx Oct 22 16:03:49 please can someone help me with this OBB file mount issue? https://groups.google.com/forum/#!topic/adt-dev/0pS8Nqu6Qkc Oct 22 16:04:01 pfn: i changed from v7:+ to v18.0.0 and i am still recieveing the same error message Oct 22 16:04:07 maybe some android developer? Oct 22 16:04:36 huh Oct 22 16:04:39 ... Oct 22 16:04:44 v7:18.0.0 Oct 22 16:04:53 it's not v18.0.0 Oct 22 16:05:03 Hello! Oct 22 16:05:07 -v7 doesn't mean version 7 Oct 22 16:05:12 it means works with api7 Oct 22 16:05:18 mastroWork: http://stackoverflow.com/questions/18064114/expension-file-cant-load-obb-from-sdcard-android-obb-on-android-4-2 Oct 22 16:05:54 didin't you say change it to 18.0.0 or did i miss read Oct 22 16:06:05 whoever, I said get rid of the + Oct 22 16:06:08 you misread Oct 22 16:06:41 I have a problem.. i am using the DDMS and I can appreciate that after pressing the back button from an activity the instane is still in memory. In fact, if i press back button and i reenter to the activity several times, i get a memory exception Oct 22 16:06:43 pfn: i did that first and recived the same error messag with the "+" omitted Oct 22 16:06:51 did what Oct 22 16:07:10 and if you get an error, you either: A) didn't set the android plugin, B) did not install the android support repository Oct 22 16:07:34 i removed the "+" at the end of compile with string Oct 22 16:07:54 whoever, my issue is with mounting, the file is correctly picked up and in the right position Oct 22 16:07:57 In fact, I only have 1 activity: I enter from the Android home to the application going back every time and it explodes.. Oct 22 16:08:14 mastroWork: sorry Oct 22 16:08:25 whoever, you did /what/ Oct 22 16:08:36 whoever, you simply removed the +? that's wrong Oct 22 16:09:00 Cadmi: if you have multiple instances your not correctly setting the android:launchMode attribute for the activity in the manifest Oct 22 16:09:28 if you're getting a "memory exception" you're either using too much memory, not lru caching images, or worst case you're leaking memory Oct 22 16:10:07 nseidm1 i provocated it to explode using a bitmap Oct 22 16:10:17 makes sense Oct 22 16:10:19 in my stack there is only 1 activity at every time Oct 22 16:10:30 but in the memory there are several instances Oct 22 16:10:33 is what i don't understand! Oct 22 16:10:53 what launchMode are you using? Oct 22 16:11:01 What inSampleSize are you using? Oct 22 16:11:01 i tried Singleinstance Oct 22 16:11:12 i'm not using samplesize now Oct 22 16:11:14 if you have multiple instances of your activity in memory, you gone done leaked it Oct 22 16:11:18 i'm creating a lot of textviews inside a loop Oct 22 16:11:23 setting samplesize and launchmode will not change anything Oct 22 16:11:24 ahhhhh Oct 22 16:11:25 why? Oct 22 16:11:27 to check if it explodes Oct 22 16:11:43 i'm doing that to check if it exlodes Oct 22 16:11:45 any static collections? Oct 22 16:11:46 run down your memory references in MAT, and fix it Oct 22 16:12:09 So i've got a weird UI requirement that requires a diagram to explain: http://i.imgur.com/awrdhbB.png - any ideas on how to implement this? Oct 22 16:12:12 are you keeping static references to the activity context? Oct 22 16:12:20 no Oct 22 16:12:26 static references will only account for 1 instance leak Oct 22 16:12:27 not multiple Oct 22 16:12:32 we have static references but not to the static context Oct 22 16:12:37 unless you use a collection of some sort Oct 22 16:12:52 scary thoughts Oct 22 16:12:52 pfn every time i leave the application and i enter again i have 1 more instance of the splash Oct 22 16:12:54 for example Oct 22 16:13:03 ondestroy is being executed Oct 22 16:13:11 Cadmi, you're leaking memory Oct 22 16:13:12 use MAT Oct 22 16:13:13 so the activity dissapears from the stack Oct 22 16:13:16 analyze, fix Oct 22 16:13:18 but the activitiy continues living in RAM Oct 22 16:13:24 Cadmi, you're leaking memory Oct 22 16:13:26 use MAT Oct 22 16:13:27 analyze, fix Oct 22 16:13:49 i tried it pfn, i'm not expert in the program Oct 22 16:13:55 but what i did is to check the main activity Oct 22 16:13:59 i found for example 4 insances Oct 22 16:14:04 Cadmi, track down references, and fix it Oct 22 16:14:12 and i pressed the option of "look for with incoming references" Oct 22 16:14:18 right click on each instance, show references Oct 22 16:14:23 and then see where the reference is being held, remove it Oct 22 16:14:27 finally, for every reference i press to Path to GCCollect Oct 22 16:14:36 (excluding weak references) Oct 22 16:14:37 didn't I help jedir0x with this? -- pay it forward Oct 22 16:14:38 and there is not any reference Oct 22 16:14:46 i'm using mono for android... Oct 22 16:14:49 hey Oct 22 16:14:50 maybe it can be the problem ? Oct 22 16:14:52 pfn, help with what? Oct 22 16:14:58 jedir0x, memory leak issue Oct 22 16:15:13 'cept yours ultimately turned out to be a samsung bug Oct 22 16:15:14 oh, yes - give me a sec. I'm on a skype call Oct 22 16:15:19 is new TypefaceSpan("sans-serif-thin") = TypefaceSpan.createFromFile("/system/fonts/AndroidClock.ttf") ? Oct 22 16:15:46 pfn i'm looking for it again Oct 22 16:15:46 undeadd, read aosp and see Oct 22 16:16:08 jedir0x, as for your question; I think some of the apps I've worked on do something similar, I don't know how it's done, though Oct 22 16:16:13 pfn wondering about an easy and faster answer instead.. Oct 22 16:16:15 * pfn should look, but hasn't been curious enough to Oct 22 16:16:22 undeadd, do your own legwork Oct 22 16:16:41 jedir0x, the fact that the bottom is a gridview doesn't really matter Oct 22 16:17:02 in retrofit how /order/get?id={id} {id} wont work Oct 22 16:17:07 any idea? Oct 22 16:17:18 pfn coding smali right now.. don't have an easy way to get that answer asap as wanted Oct 22 16:17:26 use @Query("id") Oct 22 16:17:39 kill everything after the ? in the path and use @Query("id") as a method argument Oct 22 16:18:16 jedir0x: Attach a scroll listener to the gridview.. Move top view when you scroll Oct 22 16:18:21 No one really managed to mount an OBB file in an app? Oct 22 16:18:23 no one here? Oct 22 16:18:39 JakeWharton it wasnt documented:) Oct 22 16:18:48 send a pull request Oct 22 16:19:19 Cadmi, http://stackoverflow.com/questions/18806240/is-my-activity-being-leaked-and-is-it-the-actionbar-thats-doing-it Oct 22 16:19:38 JakeWharton should i use ? or remove it Oct 22 16:19:45 remove it Oct 22 16:19:59 @Path("/order/get") void get(@Query("id") String id, ...) Oct 22 16:20:35 ok worked nicely thankz Oct 22 16:21:02 also i have another problemo. If i want to send a post thing Oct 22 16:21:39 and have method(Class1 x,String y) is it possible to send them as application/json ? Oct 22 16:21:42 pfn when i look for incoming references of an acitivity instance excluding the weak references (of course the activity is not in the stack) i don't get any reference Oct 22 16:21:52 maybe the problem is caused by a weak reference ? Oct 22 16:21:58 any tips how to make new gdrive - quickoffice first run view? Oct 22 16:22:24 didnt work and had to sent them as @Body and created a Map Oct 22 16:23:53 of course you have references Oct 22 16:23:58 and activity in the stack is irrelevant Oct 22 16:24:36 Cadmi, how many instances of your activity are there? Oct 22 16:24:52 Cadmi, and weakreferences do not cause problems Oct 22 16:24:57 Cadmi, and did you look at my stackoverflow post? Oct 22 16:25:01 jedir0x every time i go to the android panel and i enter again to the app i get 1 extra instance of the activity Oct 22 16:25:12 of course, at the same time only 1 is in the activitiy task Oct 22 16:25:16 in the stack i mean Oct 22 16:25:16 my bad Oct 22 16:25:38 So if you keep doing it you get more and more and more - it _never_ goes down? Oct 22 16:25:43 yes Oct 22 16:25:44 exactly Oct 22 16:25:56 and after many times the app crashes Oct 22 16:25:59 well then finding your leak should be easy - are you using DDMS? Oct 22 16:26:00 because of a memory problem Oct 22 16:26:03 yes Oct 22 16:26:07 i am using it Oct 22 16:26:16 and i have the file here Oct 22 16:26:18 i'm analyzing it Oct 22 16:26:34 but when i look in the splashacitivity for incoming references i don't get anyone Oct 22 16:26:37 only weak Oct 22 16:26:46 there are many incoming references Oct 22 16:26:51 is Typeface.createFromFile("/system/fonts/AndroidClock.ttf") = new TypefaceSpan("sans-serif-thin") ? i mean.. is the SAME font produced with that ? Oct 22 16:26:54 don't search common references Oct 22 16:26:55 jedir0x which is your stackoverflow post ? Oct 22 16:27:01 http://stackoverflow.com/questions/18806240/is-my-activity-being-leaked-and-is-it-the-actionbar-thats-doing-it Oct 22 16:27:08 is Typeface.createFromFile("/system/fonts/AndroidClock.ttf") = new TypefaceSpan("sans-serif-thin") ? i mean.. is the SAME font produced with that ? Oct 22 16:27:15 undeadd, ok, the time it took you to wait and repeat your question; you can answer that by looking in AOSP Oct 22 16:27:18 do not ask it again Oct 22 16:27:42 Cadmi, you have many references, prove it by showing a screenshot of your dumps and trees Oct 22 16:28:02 ugh, did chrome really change their extension api to rename chrome.runtime from chrome.extension? Oct 22 16:28:08 pfn i press the option List Objects->with incoming references. Doing that i get multiple references. Then i select the option Path to Gc Roots excluding weak references Oct 22 16:28:11 is there a downside to doing .fooInBackground inside the callbacks of .barInBackground tasks? Lets say I stack them up to 4 or 5 levels deep... Oct 22 16:28:40 Is it possible to make a multiple choice expandable listview inside a dialog? Oct 22 16:28:51 pfn, so you say that the fact that it's a grid view doesn't matter - but i don't want any of the items in the grid obscured Oct 22 16:28:53 pfn where can i paste an screenshoot so you can see it ? Oct 22 16:29:10 obscured by the top view that is. Oct 22 16:29:13 any number of imagebin type sites Oct 22 16:29:20 ok i go Oct 22 16:29:27 jedir0x, I don't know how it's done, but like I said, I know apps that have done it... Oct 22 16:29:40 I could look at the source, but I'm too lazy to connect to my box at home to find it right now Oct 22 16:29:59 pfn, instagram does it on iOS (but they have contentInset) - and they don't do it on android. Oct 22 16:30:06 jedir0x, basically, detect scroll in your bottom view, set the height on your top view to be lower, and then animate a size decrease on it Oct 22 16:30:20 if the scroll position in bottom view != 0, animate top to smaller size Oct 22 16:30:41 assuming, bottom view is big enough to fill the entire remaining area Oct 22 16:31:06 lower = smaller Oct 22 16:31:06 the bottom view is as big as the screen, the top view sits on top of it. i put padding in the bottom view so that the first item in the list is visible. Oct 22 16:31:19 but padding doesn't work - i need something like ios's "contentInset" Oct 22 16:31:19 that sounds easy then Oct 22 16:31:29 so you're using like a framelayout? Oct 22 16:31:34 the padding doesn't scroll with the items - it just sets the top of the scroll Oct 22 16:31:36 that sounds easy, just shrink the top view and reduce the padding Oct 22 16:31:44 when you detect scroll Oct 22 16:31:49 right - but then you can't pull it down Oct 22 16:32:03 that's exactly what i had done Oct 22 16:32:06 pull it down by detecting a drag gesture on top Oct 22 16:32:18 as for filling up the screen when scrolling up, you can use margin Oct 22 16:32:20 rather than padding Oct 22 16:32:26 i'm going to try some other things - i just thought that there might be something obvious that i'm missing. Oct 22 16:32:27 or making the entire area scrollable Oct 22 16:32:48 I'm thinking about putting an item in the grid Oct 22 16:32:50 Ok! Here we have 1 screenshot of the incoming references to the splashactivitiy instance 1: Oct 22 16:32:58 http://picpaste.com/splash1-HMQdNO4a.png Oct 22 16:33:01 and now instance 2: Oct 22 16:33:06 http://picpaste.com/splash2-ECyWfI0O.png Oct 22 16:33:18 no references? Oct 22 16:33:20 you have 13 Oct 22 16:33:31 mOnCompletionListener Oct 22 16:33:33 sorry pfn i confused, i mean no gc path to root Oct 22 16:34:03 jedir0x is mOnCompletionListener the problem ? Oct 22 16:34:11 if it's a samsung phone, yes Oct 22 16:34:25 no, i'm not sure - i thought it might be... pfn would know better than I though. Oct 22 16:34:29 what's this$0 Oct 22 16:34:35 what are in there Oct 22 16:34:59 I don't have MAT right now, and I can't be bothered to investigate Oct 22 16:35:00 :p Oct 22 16:35:11 ok i show wait please Oct 22 16:35:24 ugh Oct 22 16:35:29 I cant get this alpha mask to work right Oct 22 16:35:33 send me your dump fil Cadmi, i'll look at it. i spent a week tracking down something similar recently. Oct 22 16:35:42 jedir0x: irrelevant to anything, but I can't read that sentence w/out sing-songing it like the nightmare before christmas. What's this$0? what's this$0? ... just so you know. Oct 22 16:35:43 ok thank you very much Oct 22 16:35:51 jedir0x how can i send it to you ? Oct 22 16:36:00 dragorn, haha. Oct 22 16:36:10 I have 2 images, one that's the background and one on top of that.. I want to "carve out" an arc on the top image at a varying level of intensity based a third gradient image Oct 22 16:36:15 What's this$0, what's this$0 - a fucking memory leak. Oct 22 16:36:26 What's this$0, what's this$0 - some code i have to tweak. Oct 22 16:36:34 poetic Oct 22 16:36:39 i go by dcc Oct 22 16:36:55 no, put it up on dropbox or something like that Oct 22 16:37:26 ok Oct 22 16:39:51 i have the same problem with next activity, but i guess if i find this i will be able to solve the other Oct 22 16:39:53 why first call from httpurlconnection or okhttp is slow? Oct 22 16:39:53 jedir0x http://dfiles.eu/files/lemky0naa Oct 22 16:40:02 DNS lookup Oct 22 16:40:06 look for SplashActivity Oct 22 16:40:15 1-2 sec? Oct 22 16:40:28 it is cached at my router Oct 22 16:42:22 jedir0x i tried without it and it doesn't work :( Oct 22 16:42:53 Cadmi, give me a second, installing standalone matt Oct 22 16:43:12 ok don't worry Oct 22 16:44:16 what kind of file is this Cadmi Oct 22 16:44:28 pfn where can i find it so far ? i am testing it now online Oct 22 16:45:34 jedir, you can't open it ? Oct 22 16:45:39 Cadmi, you only have 2 instances of splashactivity in there... Oct 22 16:45:51 pfn yes because i only entered to the app two times Oct 22 16:45:55 if i enter 5 times Oct 22 16:45:58 i will have 5 activities Oct 22 16:46:16 I guess mainreports has 4 instances Oct 22 16:46:18 Cadmi, 9 minute wait to download Oct 22 16:46:28 jedir0x thx Oct 22 16:47:00 pfn 2 instances Oct 22 16:47:27 every time i go back from an activiy the instance is in memory Oct 22 16:47:32 with all the activities of the program Oct 22 16:47:55 If i have for example A, B and C activities and i navigate in this way: Oct 22 16:48:02 Home android -> A -> B -> C Oct 22 16:48:11 when i am in c i have 1 instance of A, B and C Oct 22 16:48:13 that's normal Oct 22 16:48:18 if i go back from C to B Oct 22 16:48:22 ie: C->B Oct 22 16:48:26 Cadmi, can't download from that site Oct 22 16:48:30 every click is spam Oct 22 16:48:42 i still have the C instance (it isn't in the stack) Oct 22 16:48:49 jedir0x ok sorry, let me look for another place Oct 22 16:48:55 i just registered there Oct 22 16:49:25 ok dropbox Oct 22 16:50:45 1 minute Oct 22 16:50:49 uploading Oct 22 16:51:29 I think this should work properly: https://www.dropbox.com/s/eu3ulx999d1yos4/android6041651748666619322.hprof Oct 22 16:51:56 jedir0x sorry for the other website Oct 22 16:57:20 another example for example is: Oct 22 16:57:53 Home android-> A -> Home Android -> A -> B Oct 22 16:57:59 this produces 2 instances of A in memory Oct 22 16:58:02 and 1 of B Oct 22 16:58:30 every time i pass through an instance it will be in memory for always :( Oct 22 16:59:01 http://gist.github.com -> paste the activity code Oct 22 17:01:02 hello Oct 22 17:01:09 first call is slow dont know why Oct 22 17:01:14 for okhttp Oct 22 17:01:21 DNS resolution Oct 22 17:01:27 it isnt dns JakeWharton Oct 22 17:01:35 it is cached at router Oct 22 17:01:44 i have old phone though Oct 22 17:01:50 if i kill it happens Oct 22 17:01:55 don't know then, debug it Oct 22 17:02:01 how Oct 22 17:02:29 https://gist.github.com/anonymous/7104285 Oct 22 17:03:46 Cadmi, your references have too much garbage to really identify wtf is happening Oct 22 17:03:49 at least using jhat Oct 22 17:03:55 there's like a jillion textviews in there... Oct 22 17:05:22 remove the garbage, produce a heapdump that has more than 2 instances in memory Oct 22 17:05:49 how do you differentiate bw billion and jillion when you see bulk Oct 22 17:05:53 Cadmi, ShowReports is your problem Oct 22 17:06:10 your thread has a handle on it - it leaks the activity Oct 22 17:06:38 mm let me see Oct 22 17:06:52 _thread = new Thread(new ParameterizedThreadStart(ShowReports)); Oct 22 17:07:53 any way to make emulator window smaller? Oct 22 17:08:09 emulator @avd -scale 0.5 Oct 22 17:08:11 is what I normally do Oct 22 17:08:19 jedir0x mm Oct 22 17:08:24 i don't understand mm Oct 22 17:08:28 dam its too slow Oct 22 17:10:03 Baluse2: use Genymotion and just resize it Oct 22 17:10:52 ok but seems slow generaly Oct 22 17:11:11 jedir0x i'm going to try with it. I have been trying with another activity much more easy and it happens the same, the code is very short Oct 22 17:11:19 https://gist.github.com/discover Oct 22 17:11:27 sorry Oct 22 17:11:28 no this Oct 22 17:12:00 emulator seems to have network wait thing Oct 22 17:12:03 not * Oct 22 17:12:46 maybe my phone is slow Oct 22 17:13:00 sorry this: Oct 22 17:13:00 https://gist.github.com/anonymous/7104441 Oct 22 17:13:59 jedir0x it happens with all the activities.. maybe i make errors in all of them Oct 22 17:14:06 but with this simple code, it happens also Oct 22 17:14:14 the threadump is not updated with this code Oct 22 17:20:01 i will continue later, thanks for all Oct 22 17:31:55 hi all. android noob here. the android docs don't seem to describe the android.view.SurfaceView constructors. do i need my own constructors analogous of all three forms of the SurfaceView constructor? what do the AttributeSet and "defStyle" int mean? Oct 22 17:32:32 Cadmi, the thread you create leaks your activity via the reference to that method - that's your problem. Oct 22 17:38:40 hdon: the AttributeSet + style is the constructor used when its inflated from xml Oct 22 17:39:13 mmarklar, hmm... when does that happen? Oct 22 17:39:27 oh i see Oct 22 17:39:27 when you have a tag in your layout Oct 22 17:39:35 my MainActivity does it Oct 22 17:39:41 (i created project in eclipse from android project template) Oct 22 17:39:53 what exactly are you trying to do? Oct 22 17:40:00 learn, i guess Oct 22 17:40:11 just have a surface on the screen where you can draw? Oct 22 17:40:32 yes. i'm using jetboy as a reference, but i don't want to use it as a template. Oct 22 17:40:45 ok then I would declare the surface view in your xml layout file Oct 22 17:40:45 is jetboy obsolete if i am targeting gingerbread? Oct 22 17:40:51 no clue what jetboy is Oct 22 17:41:26 it's some example android application, copyright 2009 Android Open Source Project Oct 22 17:41:31 if you put the view in your layout, after you call setContentView in your activity you can get a reference to the surface using findViewById() Oct 22 17:41:47 ahh, yes i do recall something like that Oct 22 17:41:54 and you don't have to worry about constructors or anything like that Oct 22 17:42:47 i previously used findViewById() to gain a reference to a TextView instance Oct 22 17:42:52 in another application Oct 22 17:43:46 yup thats a typical way to do things in android Oct 22 17:45:37 doing web development work i usually maintain a reference to any DOM nodes that i need to use in a component, rather than trying to assign them a name and ask the browser to find it for me in a hash table or tree somewhere Oct 22 17:46:20 but that's not really important here i guess.. Oct 22 17:50:43 Anyone going to get the new Mac Pro for development? Oct 22 17:51:06 never! Oct 22 17:51:54 nah, I have no need for overpriced trashcan Oct 22 17:52:23 I take it both of you use PCs? Oct 22 17:52:51 is there an sms event listener of some sort? Oct 22 17:53:04 jaynewstrom: I find the new "pro" mac to be an offense to what Mac Pro used to be Oct 22 17:53:21 and I take that you find nothing odd in case someone tries to rip you off your hard earned money Oct 22 17:53:21 i think some guy did some infographic on how much macs are overpriced Oct 22 17:53:35 a few years ago Oct 22 17:54:07 hmm, i see that the Activity.onKeyDown() and onKeyUp() methods are used to receive user input... in my case i require touch input only Oct 22 17:54:22 p_l: the new mac pro is way more powerful though. Still expandable, they're just switching to external, not internal. Using thunderbolt Oct 22 17:54:32 http://cdn3.tnwcdn.com/files/2010/09/mac01.jpg Oct 22 17:55:04 jaynewstrom: yeah, so now you will end up having a spider web of cables connecting card cages so that you can claim you have small workstation ;) Oct 22 17:56:09 jaynewstrom: in general, Mac Pro doesn't impress me... much Oct 22 17:56:28 * p_l puts Shania Twain on the headphones Oct 22 17:56:39 p_l: I agree with the spider web of cables. but, it's a trade off. Oct 22 17:57:00 seand: wow thats painful Oct 22 17:57:03 jaynewstrom: for having ... what? A non expandable retarded O2-wannabe? Oct 22 17:57:27 XXCoder: yeah. if you want macosx just install it on a pc Oct 22 17:57:38 lol did consider hackoish Oct 22 17:57:42 but decided not to do it Oct 22 17:58:05 and if you can make it work with AMD, getting 64core machine with half a terabyte of ram might not be that expensive compared to Mac ;) Oct 22 17:58:10 not sure what that is. i was talking about buying osx from apple Oct 22 17:58:29 seand: the license forbids installing on anything non-Apple Oct 22 17:58:32 hackonish is installing maxosx on some pc laptop Oct 22 17:58:43 I cant spell worth crap too Oct 22 17:58:44 and it's hackintosh Oct 22 17:58:50 JakeWharton: have you caught wind of any problems with Butter Knife and incremental builds? Oct 22 17:58:53 ^^ ;) Oct 22 17:58:59 what build system? Oct 22 17:59:03 who cares about the license Oct 22 17:59:06 fuck apple Oct 22 17:59:12 haha Oct 22 17:59:27 apple with hole in it? :P Oct 22 17:59:51 a wormhole ! Oct 22 17:59:53 jjnye: you dragged me in here during an Apple keynote with all these complaining asshats. make it quick :) Oct 22 18:00:07 haha Oct 22 18:00:27 * p_l is trying to find a channel where he won't get dragged into talking about overpriced trashcans Oct 22 18:00:28 imange setting a lecure about discovery of wormhole Oct 22 18:00:36 then speaker holds up apple with wormhole in it Oct 22 18:00:51 there'll be lots of angry muttering and stuff :P Oct 22 18:01:26 JakeWharton: okay sorry haha Oct 22 18:01:35 JakeWharton wow, shots fired Oct 22 18:01:53 JakeWharton: vanilla Android Studio Make but with Maven's process-resources Oct 22 18:01:57 here are much better alternatives to mac ... http://www.walmart.com/cp/Trash-Cans-Recycling-Bins/1010739 Oct 22 18:02:42 jjnye: there are definitely problems with IJ+Maven. It's never worked fully (but neither has any other apt code-gen library i've used). Gradle's compilation pipeline is much more receptive Oct 22 18:03:25 lol shmooz, are those mac alternatives or for mac storage Oct 22 18:04:03 JakeWharton: Noted. We'll try AS's built-in resource processing for ad-hoc builds and see what happens Oct 22 18:04:07 JakeWharton: Thanks! Oct 22 18:05:48 hi all. when i override Activity.onTouchEvent(), do i need to call the super() ? Oct 22 18:06:13 Who can help to me ? Oct 22 18:06:52 smartall: just ask your question Oct 22 18:07:08 I need buy an app Oct 22 18:07:11 Personal app Oct 22 18:07:46 smartall: you want to fund the development for a personal app? Oct 22 18:07:56 Yes Oct 22 18:08:00 I can pay Oct 22 18:08:20 No advertising jobs Oct 22 18:08:45 I just need this app Oct 22 18:08:50 No Oct 22 18:08:59 Not in this channel Oct 22 18:09:09 #android-jobs Oct 22 18:09:54 <^cheeky> JakeWharton: hey ... it was my fault, i did not implement picasso, right. :( but i am out of time so miss working on the app, when i finally move i hope i have time to finish it .. cheers Oct 22 18:26:49 I'm trying to create recreate a project that I was working on prior to the gradle build, in a new android studio project. My project uses, android-support-v4, and GooglePlayServices. I've gotten the modules to build fine, (not so sure about the support library), but while building, as an example, i'm getting "package android.support.v4.app does not exist" in my activity. why cant my activities see the compiled packages? Oct 22 18:35:23 can anyone help me with a strechted front camera preview window? My code is here http://pastebin.com/d1rk6e8h and on a SGS2 the preview window is strechted. I think I need to stretch the window over the phone screen, but I don't know how to do that Oct 22 18:37:39 eppo: you need to go to the gui and add it as a lib for the project, then go to build.gradle and add it as a link there too Oct 22 18:37:59 eppo: I think 0.3.0 has support for doing it all in the gui, but i've heard so much pain from ppl about 0.3.0 that I didn't upgrade yet Oct 22 18:38:29 eppo: project structure, add the lib to your app module there (is what I mean by 'use the gui') Oct 22 18:39:14 why not just add it to the build.gradle... Oct 22 18:40:13 pfn: because I think that doesn't link it to the project fully Oct 22 18:40:19 pfn: you have to do both, in my experience Oct 22 18:40:30 shouldn't have to, just choose refresh project or whatever it is Oct 22 18:40:32 to get it to sync Oct 22 18:40:33 you don't. edit the build.gradle, click refresh in the gradle window Oct 22 18:40:38 pfn: hm. Oct 22 18:40:55 maybe this is some weird pseudo-method I have then because it didn't ever work for me the right way :P Oct 22 18:50:28 * pfn shrugs Oct 22 18:50:37 I'm just continuing to wait for intellij 13 Oct 22 18:50:42 and miss out on all the new android features until then Oct 22 18:50:49 I should try out the eap, but haven't wanted to deal with it Oct 22 18:52:26 what new android features Oct 22 18:53:41 Can I have a checkbox that looks like a button, and show the text like a button? Oct 22 18:54:37 I'd list some features, but I'm not sure which ones are already available in intellij, one thing is certain though, I'm not even considering going back to eclipse Oct 22 18:57:51 seand, just the android studio features Oct 22 18:58:09 intellij isn't completely up-to-date with android support Oct 22 18:58:16 but it is practically in 13 eap Oct 22 18:58:26 oh, but it does get updated with android support in new versions, right? Oct 22 18:58:39 (and will continue to be) Oct 22 19:10:33 hey Oct 22 19:10:39 can anyone help me ? Oct 22 19:11:13 want to change my rom's default keyboard.. just deleted the default one, pasted the newly one and then it isn't auto recognized after flash .. Oct 22 19:11:41 #android-root can help you Oct 22 19:21:41 hello Oct 22 19:21:59 Hello Oct 22 19:22:16 Ich have problems with fragments can anyone help me?? Oct 22 19:22:49 Julian_B90: just ask your question(s) Oct 22 19:23:53 anyone to help me ? Oct 22 19:23:54 seand: I have a actionBar with 4 Tab Oct 22 19:24:38 undeadd: wrong channel Oct 22 19:24:55 seand: and at the moment i get this error No view found for id 0x7f0a0000 (xxx.xxxx:id/fragment_container) for fragment ForexNews{41bb9438 #0 id=0x7f0a0000} Oct 22 19:26:23 seand okay i have found. on my onCreate i muss add the setContentView() method Oct 22 19:26:27 methode Oct 22 19:27:15 seand: But now "Caused by: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first." Oct 22 19:28:43 Julian_B90 paste your code somewhere Oct 22 19:29:03 wait Oct 22 19:29:27 Julian_B90, inflate(..., container, false) Oct 22 19:29:41 http://pastebin.com/5GGAr6B7 Oct 22 19:30:22 what's android's preferred way of e.g. having a listview with editable items (add/remove/change), and populating & committing to a settings file of some kind? Oct 22 19:30:29 settings/config Oct 22 19:30:39 not to be confused with "Settings" menus.. Oct 22 19:30:50 looking for something like "oh use json and this adapter" Oct 22 19:30:59 pfn this works. I have no erros Oct 22 19:31:02 (to populate said list, and save to file) Oct 22 19:31:48 sharedpreferences?? Oct 22 19:32:21 Hey, so I have an app that I want to copy files to a clipboard Oct 22 19:32:25 The files are assets Oct 22 19:32:35 It seems what I use is contentprovider Oct 22 19:32:46 And share with clipboard manager Oct 22 19:33:33 What I want it to do is copy images if the image is selected Oct 22 19:33:40 So it can be sent via email Oct 22 19:33:49 Is this nonsense in android? Oct 22 19:34:08 As in, is copying uri's to the clipboardmanager not meaningful in that way Oct 22 19:34:27 sreich: SharedPreferences is basically a persistent hashtable for simple values. You can use that, or write to the file system, or use the built-in SQLite database. Whatever's easiest. Oct 22 19:34:57 yeah, former sounds most optimal Oct 22 19:35:22 what's the best way to populate a list with said values? Custom adapter? Oct 22 19:35:37 If you have just a few data items, SharedPreferences is reasonably straightforward. You just have to come up with dynamic keys like ("listLabel" + index), and then make sure to clean them up. Oct 22 19:35:57 right Oct 22 19:35:58 any one know some decent app for saving adb log file on sdcard Oct 22 19:36:26 sreich: custom adapter would work fine. Oct 22 19:37:16 well, say i want to have the user add items to a listview, with each item containing a name(/id or whatever), and e.g. 2-3 strings that i need to retrieve later Oct 22 19:37:28 seems less like it's designed for that.. Oct 22 19:37:42 yeah... it's not really. Oct 22 19:38:00 you probably want to look into the database route Oct 22 19:38:06 well, database feels overkill thoguh Oct 22 19:38:51 sreich: how many items are you talking about? Oct 22 19:39:04 jaynewstrom: very small Oct 22 19:39:11 assuming the user doesn't go overboard Oct 22 19:39:14 you can also do files, but Android has a bunch of nice boilerplate for interacting with the DB (i.e. CursorAdapters/Loaders) Oct 22 19:39:20 10, 20, 100? Oct 22 19:39:22 so literally like 20 is probably all anyone would ever do Oct 22 19:39:29 and that's for some crazy person Oct 22 19:39:32 sreich: don't use a database, it's overkill Oct 22 19:39:35 1-4 would be average Oct 22 19:39:38 yes, i suspected so Oct 22 19:39:44 just do internal storage w// json or sth? Oct 22 19:39:46 use SharedPreferences Oct 22 19:39:59 eh? how would you store it then? Oct 22 19:40:40 If you have name/address, say, you can 1) store "name1" and "address1", or 2) store a chunk of json Oct 22 19:40:54 i wish it'd just let me store a map and i could just have item1: [ str1: "blargh"; str2: "blahrg ] Oct 22 19:41:03 oh okay Oct 22 19:41:08 sreich: so do that with jsonObject.toString() Oct 22 19:41:29 perhaps i'll try sharedprefs first, and your suggestion Oct 22 19:41:36 for a small data set I agree with gdaniels Oct 22 19:41:43 thanks Oct 22 19:42:56 gotta scoot - laters all! Oct 22 19:46:13 does dvm implement String.intern() ? Oct 22 19:47:25 hey guys Oct 22 19:48:03 i have a menu with 2 items. one opens it's activity, the other crashes the program Oct 22 19:48:20 i don't think i like your second item Oct 22 19:48:21 the strange this is, the one that crashes is the one i made first, and it worked fine before Oct 22 19:48:28 me neither Oct 22 19:48:37 sreich probably null pointer Oct 22 19:48:54 chars6 http://imgur.com/jacoj Oct 22 19:48:59 i think these are the relevane errors Oct 22 19:49:09 tonyMontana9099: hehe indeed Oct 22 19:49:15 need someone experienced with modding android.policy.jar.. getting bootloop.. Oct 22 19:49:40 notifyDataSetChanged(); shows wrong items when called from filter class Oct 22 19:49:42 E/AndroidRuntime( 919): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.project/com.example.project.Profile}: android.view.InflateException: Binary XML file line #2: Error inflating class menu Oct 22 19:50:13 however, just before calling notifyDataSetChanged() i do a for loop with logs, and I get the needed items correct Oct 22 19:50:16 this spot here: com.example.project/com.example.project.Profile looks like it might be it Oct 22 19:50:23 ok, and what's the contents of the xml file? Oct 22 19:51:12 Oct 22 19:51:23 -_- Oct 22 19:51:29 items have assigned id, icon, and title Oct 22 19:51:31 pastebin the entire contents.. Oct 22 19:51:35 ok Oct 22 19:51:38 chars6 ever heard of pastebin ? yeah me too. Oct 22 19:51:43 tonyMontana9099: it could've been worse Oct 22 19:51:58 after i sent that message i mostly expected to drown in 100 lines of xml Oct 22 19:51:58 sreich lol Oct 22 19:52:13 sreich people can surpirse you. :) Oct 22 19:52:16 hehe Oct 22 19:52:18 sreich did you see my problem ? Oct 22 19:52:22 sreich any hints ? Oct 22 19:52:32 no, i'm literally doing my first android app now :D Oct 22 19:52:35 http://pastebin.com/ywhjWebm Oct 22 19:52:39 just did a hello world ;p Oct 22 19:53:05 sreich nice. Oct 22 19:53:11 sreich all the best mate Oct 22 19:53:19 cheers Oct 22 19:56:27 my BaseActivity looks like this http://pastebin.com/XZrESuMU Oct 22 19:56:37 hey guys would it be okay for me to ask for help with some bitcoin related android code or offer some cash for someone to do it for me? Oct 22 19:56:52 manage is the one that's working correctly and profile crashes Oct 22 19:57:03 ahmedbodz : No bots, and no advertising please, jobs or otherwise Oct 22 19:57:41 tonyMontana9099 so even asking if its okay to ask for help is offlimits? Oct 22 19:58:16 well, donno Oct 22 19:58:37 lool i dunno Oct 22 19:58:46 ahmedbodz: Soliciting money for services in any channel is generally frowned upon. Oct 22 19:59:27 android.policy.jar bootloop.. anyone? Oct 22 19:59:28 ahmedbodz try freelancer.com Oct 22 19:59:36 VonKranke i understand thats why i asked first rather than just posting it Oct 22 19:59:49 sigh Oct 22 20:00:03 is it really that complicated? -_- Oct 22 20:00:13 or are you just being sarcastic Oct 22 20:00:21 :L Oct 22 20:00:24 neither Oct 22 20:04:02 the other error says "Error inflating class menu", but menu isn't a class Oct 22 20:04:23 "some times things get complicated." - deadmau5 Oct 22 20:04:49 well, i guess the first one did too Oct 22 20:08:28 I am getting ready to set up ADT on my new machine and start building for the firs6t time. I noticed that there is a program called Android Studio but its still in in early access preview. Is this something I should bother with or just skip it until I get more development under my belt Oct 22 20:09:31 i'm trying it right now and it's quite awesome Oct 22 20:09:32 donavan01 i'd skip it for now Oct 22 20:09:36 intellij is pretty nice Oct 22 20:09:59 but for some "this is my job" app i wouldn't chance it Oct 22 20:10:17 anyone have advice on my menu problem? Oct 22 20:10:35 and intellij even has a vim plugin Oct 22 20:10:43 which is great and was hassle free, out of the box Oct 22 20:11:03 even had a configuration to go into "act like kde's vim bindings" which was kewl Oct 22 20:11:07 any other goodies I must have that isnt specifically lined out on the developers site Oct 22 20:11:13 `(and eclipse is terrrriible) Oct 22 20:11:47 there's a really neat view which shows you what your xml file turns into, ui-wise Oct 22 20:11:55 though i imagine ADT has/had that anyways? Oct 22 20:12:21 ok im looking for the easiest to learn way to go so is eclipse not very freindly or something Oct 22 20:12:42 sreich: intellij and android studio are different IDEs Oct 22 20:13:20 seand: android studio is forked from intellij though, it would be more accurate to call it "Intellij + android studio" Oct 22 20:13:38 seand: android studio rebases periodically from it, actually Oct 22 20:13:40 which is not what he did Oct 22 20:13:43 i hope android studio to be able to generate apk for store Oct 22 20:14:06 seand: yes, except i said "intellij even has a vim plugin" Oct 22 20:14:10 which still holds true for android studio Oct 22 20:14:20 being pedantic about it seems a bit fruitless.. Oct 22 20:14:23 you also said you wouldn't use it for a professional app Oct 22 20:14:29 which is stupid Oct 22 20:14:30 android studio.. Oct 22 20:14:42 so refer to it as android studio, not intellij Oct 22 20:14:46 intellij is highly stable Oct 22 20:14:55 you clearly didn't read Oct 22 20:15:05 [16:09:31] intellij is pretty nice Oct 22 20:15:05 [16:09:55] but for some "this is my job" app i wouldn't chance it Oct 22 20:15:05 oh, nevermind Oct 22 20:15:25 yes, i was implicitly context switching Oct 22 20:15:38 anyways, being pedantic about it seems like a waste of time. but that seems like what you want to do Oct 22 20:15:52 it gets confused often in this channel Oct 22 20:16:00 oh Oct 22 20:16:11 i see your annoyance with it then.. Oct 22 20:16:16 being pedantic is never a waste of time. Oct 22 20:16:26 only the stupid and ignorant think so. Oct 22 20:16:44 pragma-: your name is quite fitting Oct 22 20:17:07 i guess i forget that most are too dumb to know the difference between things, beyond marketing/shiny download button Oct 22 20:18:01 being "pedantic" is necessary in programming anyway because bugs are sometimes subtle and require an attention to detail Oct 22 20:18:17 yes, but social interactions it is basically the inverse ;) Oct 22 20:19:57 i don't approach interaction on irc the same way i do in real life Oct 22 20:20:20 because it's completely different Oct 22 20:20:42 so when the program crashes it should add: "i hate to say that i was right but ... i was right" Oct 22 20:34:52 heh, somebody on google+ android developer tools is having an issue with AS 0.3.0 and OS X 10.9; what a canary :) Oct 22 20:36:44 g00s: oh, someone in twitter is crying too Oct 22 20:36:48 let's me try Oct 22 20:37:48 i'm excited about 10.9 but will wait for .1, which will probably come in 2 weeks ;) Oct 22 20:40:59 g00s: so far, so good Oct 22 20:41:40 i found it. Oct 22 20:41:51 one of the classes needed to import android.view.Menu; Oct 22 20:44:01 could someone look at this file, tell me where R.drawable.bug comes from? http://stellarwavedev.com/2012/05/android-custom-arrayadapter-text-and-icon/ It's literally nowhere on the page and then he uses it out of thin air.. Oct 22 20:48:11 sreich: it's just an icon he has in the drawable-Xdpi folders, called bug.png or something Oct 22 20:49:14 at least, i've always used png files as icons Oct 22 20:55:03 seand: okay Oct 22 20:55:08 yeah, png ftw Oct 22 20:59:16 Tried to read commonsware book, too dense Oct 22 21:02:47 Foxandxss really? i thought it was too fluffy Oct 22 21:03:15 i like the amount of detail Oct 22 21:03:39 yes, but that makes it really really slow. I am with other book atm, but I will go back to commonsware Oct 22 21:04:36 i haven't actually read it, i just use it as a reference guide and go straight to the chapter/section i need Oct 22 21:04:39 Hi! Maybe this is a silly question, but how do I find the exact, physical location of an .apk given its package name? Oct 22 21:04:53 seand: for that is awesome Oct 22 21:08:07 michalrus: should be physically whereever the phone's storage chip is Oct 22 21:08:18 RyanM, ;-) Oct 22 21:08:24 kidding. adb shell pm path package.name.here Oct 22 21:08:29 RyanM, <3! Oct 22 21:08:52 Thanks. :} Oct 22 21:09:00 no problem Oct 22 21:09:52 What minSDK do you use? I am reading a post about using 14 as min Oct 22 21:11:58 shell@android:/ # pm uninstall eu.chainfire.supersu Oct 22 21:11:59 pm uninstall eu.chainfire.supersu Oct 22 21:11:59 Failure Oct 22 21:11:59 shell@android:/ # Oct 22 21:12:00 O_O Oct 22 21:12:41 (Ah, remount, nevermind.) Oct 22 21:17:15 I think now that Eclipse crashes every time I try to do anything consequential, it's time to switch to Intellij Oct 22 21:18:59 lol Oct 22 21:19:04 * Baluse2 http://www.youtube.com/watch?v=t3ZDqe5j4q8 Oct 22 21:19:19 every time i see here they talk about eclipse or android studio :P Oct 22 21:19:51 i feel happier with android studio, with eclipse was a pain Oct 22 21:21:15 michalrus, for system apps, /data/system/packages.xml Oct 22 21:21:35 michalrus, did you switch plugins? ;-) Oct 22 21:24:45 android studio is good, needs a lot of work, but it is good Oct 22 21:30:12 hi Oct 22 21:30:33 needs fix for gradle Oct 22 21:30:47 designer seems better than eclipse at all means Oct 22 21:31:49 I find easier to use xml :P Oct 22 21:33:31 hey, does Google Maps API show ads in the bottom of the MapView, or these apps I've seen just added the ads for themselves? Does anybody know anything about that? Oct 22 21:34:14 interesting question indeed Oct 22 21:35:07 J_Caselles: i use map fragments in my app and they don't have ads. never used a MapView before and not sure how it differs Oct 22 21:35:27 seand: ok, that seems reasonable Oct 22 21:36:41 what is alternative to singleton ? Oct 22 21:37:31 i want a class that i dont want to keep state but because of expensive initialization Oct 22 21:37:34 and some caching Oct 22 21:37:46 that means that if it gets destroyed isnt a problem Oct 22 21:37:58 but i dont want to write code to create it every time Oct 22 21:38:57 seand: They should be the same. It was really bothering me, because those are crappy apps, I wasn't expecting their developers to add ads to it, and the ads are only shown below the map, not in any other place of the app Oct 22 21:39:58 weird, i guess they just added them to the activities with maps? i haven't used ads in an app before so i don't even know how you add them Oct 22 21:42:30 pfn, no, not yet. :< However, I have not touched any Android codebase from that day. Moved to developing backend (Akka + Spray) for a while. Oct 22 21:43:34 pfn, and my question got asked because of me setting up a new phone for dev. Oct 22 21:43:39 :} Oct 22 21:44:22 But as soon as I'm back to android dev, I'm switching. Oct 22 21:44:41 6 s. <3 Oct 22 21:47:21 indeed Oct 22 21:48:21 is tehere Oct 22 21:48:23 any SOUL Oct 22 21:48:26 that can help me Oct 22 21:48:31 replacing my rom's keyboard ??? Oct 22 21:49:16 install a new one Oct 22 21:49:32 lol Oct 22 21:49:37 bankai_ kidding ? Oct 22 21:49:49 want it to come flashed as the new default one Oct 22 21:50:08 not a question for this channel then - #android-root Oct 22 21:50:28 no one Oct 22 21:50:30 answers me Oct 22 21:51:47 does anyone know if it's possible to detect that an action chooser doesn't have any available options? Oct 22 21:53:40 action chooser = intent chooser Oct 22 21:56:02 Evening everyone, I have a best practice question I was hoping you guys could help with. I need to ship a database with my application (quite a large one). That actual database file is around 50 megs with the data already inserted.... the script that creates the database is MUCH larger at 75 meg (including inserts into tables). If I zip the database file and throw it into assets it clocks Oct 22 21:56:02 in at 10 meg and the script (if zipped) clocks in at 3 meg. Given that info, what is the best practice for including the data in the APK? Downloading the data after the application is installed IS NOT AN OPTION. Oct 22 21:58:25 ad0le: http://developer.android.com/google/play/expansion-files.html Oct 22 21:59:15 I should have stated I was trying to avoid that as well. Oct 22 22:00:04 why? Oct 22 22:00:05 lol Oct 22 22:00:27 because I dont want to put the burden on the user Oct 22 22:00:47 i am still not following here Oct 22 22:01:10 you want to ship a database with your app Oct 22 22:01:16 but you want the application small Oct 22 22:01:33 what is the problem? Oct 22 22:01:47 I dont mean that, I dont want the user to be burdended with downloading a seperate APK Oct 22 22:01:52 they dont Oct 22 22:01:54 its automatic Oct 22 22:02:10 ok, maybe I need to read you link more carefully Oct 22 22:02:31 and if you dont want it seperate then you have to make your data set smaller or do something else Oct 22 22:03:38 Whats the best JSON parser. I need speed. current data set takes 7 seconds to parse using the default android json parser Oct 22 22:03:56 id like to just attach the zipped script to create the database.... unfortunately it upzips to 70 meg and creates a 50 meg file... at some point making the disk footprint 70meg+50meg+apk size Oct 22 22:04:59 jaynewstrom: stream token parse it with gson or jackson Oct 22 22:05:52 I can vouch for Jackson... very fast (http://jackson.codehaus.org/) Oct 22 22:06:01 Napalm: I'm reading jackson is much faster. also, what is "stream token parse" Oct 22 22:06:52 ad0le: sounds like you should stream the recompiled database from a source online to the device.. the stream is gzipped.. so the downloaded amount is 50MB but the storage is 70MB of disk space and the APK is only 3MB or whatever Oct 22 22:08:51 APK is 5GB Oct 22 22:09:19 after reading your first response and link... looks like thats the way to go. I was under the impression the use would have to install a separate apk. If google is willing to host it for free and its transparent to the user; I don't see a downside. Thank you very much for the help. Oct 22 22:17:32 what does apk containt that its 5gb :O Oct 22 22:17:43 fuck off Oct 22 22:17:48 you cant be serious Oct 22 22:18:25 what? Oct 22 22:18:34 5GB apk Oct 22 22:18:35 lol Oct 22 22:18:46 are you telling me to fuck off or him? Oct 22 22:18:48 game ? Oct 22 22:18:53 him Oct 22 22:19:52 well, there were ios apks that were 10gb, weren't there Oct 22 22:19:55 er Oct 22 22:19:56 ipas Oct 22 22:20:52 Xe on ios, I remember being frigging huge Oct 22 22:21:10 elements, not Xe Oct 22 22:21:19 oh, only 1.72gb Oct 22 22:23:21 multi-GB apps aren't *un*common Oct 22 22:23:41 Though the ones I've seen are all 3D games Oct 22 22:27:05 Any idea why I'm getting this error but no output of what's wrong anywhere? http://d.pr/i/HJdB I have no idea what I'm supposed to fix ... Oct 22 22:27:43 your project has errors, i suggest fixing them Oct 22 22:29:29 bankai_, Astute observational skills friend. Oct 22 22:30:02 :) Oct 22 22:30:04 bankai_: since you're so observational, tell me what the errors are Oct 22 22:30:11 or tell me how to find out Oct 22 22:30:22 you've given absolutely NO information, how can anyone even hint at an answer? Oct 22 22:31:07 lol. Oct 22 22:31:30 bankai_ come on, you can do it Oct 22 22:31:33 Yeah let me zero in on the exact problem with your informative error dialog. Oct 22 22:32:51 i can see a red exclamation mark and i think XML, so i'm going to suggest looking at that Oct 22 22:32:51 I heard that "final" variables read faster, so I'm putting final everywhere that I can. Am I being ridiculous? Oct 22 22:32:59 explodes: yes Oct 22 22:33:04 Really? Oct 22 22:33:06 why Oct 22 22:33:26 yes "final" variables read faster or yes he's being ridikalous Oct 22 22:33:27 bankai_: Did you even read what I wrote? Oct 22 22:33:43 seand: lol Oct 22 22:33:44 yes hes being ridikalous Oct 22 22:34:00 mmm that's sum ridikalousness Oct 22 22:34:04 bankai_: I said that there *IS* no other information. It just tells me there's an error, but there's absolutely NO information to give. Oct 22 22:34:28 all I see is that stupic exclamation point Oct 22 22:34:37 eydaimon: usually when i see that exclamation error in eclipse it means there's some missing dependency Oct 22 22:35:06 check Project -> Properties, then Java Build Path? Oct 22 22:35:07 eydaimon: did you read console window? Oct 22 22:35:13 icedp: yeah, it's got nothing Oct 22 22:35:15 seand: thanks Oct 22 22:35:40 seand: you were right, that's it. It's listing that there are missing libs there Oct 22 22:35:43 explodes: You really think any super small, minute increased "read" time, if there even one exists, is nothing compared to all the other overhead you probably have Oct 22 22:35:44 eydaimon: the Errors view might show something. Window > Show View > Error log Oct 22 22:35:46 seand: thanks! Oct 22 22:35:55 seand: error log was empty Oct 22 22:36:08 seand: there was no clue aside from now that I opened and looked at the build path Oct 22 22:36:25 explodes: thats on the tune of micro-optimization and isn't worth it really Oct 22 22:36:25 is the Problems view empty too? Oct 22 22:36:41 desmin88: ##java is saying that final USED to read faster. Oct 22 22:36:58 ok Oct 22 22:37:00 past tense Oct 22 22:37:01 but now it reads slower, right? Oct 22 22:37:13 also Oct 22 22:37:19 no, now it makes no difference Oct 22 22:37:19 what do you even mean by "reads" faster Oct 22 22:37:29 seand: uh, no, that was noot empty, but it was hidden, so I didn't see it until you asked. :/ Oct 22 22:38:00 desmin pulls the variable out of some location in memory fast Oct 22 22:38:07 eydaimon: yeah for some reason that doesn't pop up automatically when you get those kinds of errors Oct 22 22:38:54 explodes: what is this "reads" you speak of? next you'll be telling us you can also perform "writes" without a computer Oct 22 22:38:59 lol. Oct 22 22:39:04 with* Oct 22 22:39:18 read is a class of java bytecodes Oct 22 22:39:24 so is write Oct 22 22:39:35 i was kidding Oct 22 22:39:49 thanks for that? Oct 22 22:40:03 reading/writing variabies... kinda basic machine code stuff. i was making fun of desmin88 Oct 22 22:40:26 hehe Oct 22 22:40:53 seand: thanks, I'll know next time :) Oct 22 22:41:05 does Google Maps API generate too much overload? I have the option to load from url a lightweight picture of a map instead of using Google Maps, but if GM is not much resource hungry, I'd choose it... Oct 22 22:43:11 depends what you're planning on doing, do you want the interactive map ? Oct 22 22:44:32 well, it's not a requirement, but it would be better if Oct 22 22:44:54 i think the advantages of an interactive map outweigh the overhead Oct 22 22:46:24 bankai_: thanks Oct 22 22:46:38 I'll try it then Oct 22 22:58:32 I have a ListView that has a click listener that works fine, unless I add a ToggleButton to the row layout. At that point, the toggle button works fine, but the click even will no longer fire for the row, even if I click on another part of the row. Any ideas? Oct 22 23:00:06 seand: so the project i'm working on consists of many packages in the src folder. they seem to reference eachother but I can't understand why it's not finding the source code for them. ANy ideas? Oct 22 23:01:44 you just copied the source tree for other projects along with your code? Oct 22 23:02:47 I don't have any code. I pulled down a project for work and i'm trying to get it to compile Oct 22 23:03:30 nm, I see it now Oct 22 23:05:14 Project X is missing required java project Y. hm. not sure how to assicoate them tho Oct 22 23:07:32 eydaimon: are they different projects in the eclipse workspace? Oct 22 23:08:06 seand: they are, but I noticed now that one of them didn't import with the correct name, so I renamed it Oct 22 23:08:11 that seems to have fixed some issues Oct 22 23:08:28 if so, you can open project properties for project X, go to java build path > projects, add projext Y Oct 22 23:08:34 Now the only error I have is "Invalid character constant" Oct 22 23:08:37 oh Oct 22 23:08:53 doesn't seem to like this: '¬£' Oct 22 23:09:10 is there some UTF-8 setting or something? Oct 22 23:10:02 good question, i'm not sure Oct 22 23:11:57 IntelliJ? Oct 22 23:12:05 eclipse Oct 22 23:13:11 i just deleted the character. I just want to see if it builds. ANd it's launching now. Oct 22 23:13:23 yepp, it works. Looks like I solved all the other issues :) Oct 22 23:13:29 but it will be good to know how to fix that Oct 22 23:14:27 Guys, I need a word which means "to make mandatory" - usually a word ending in "-isation" Oct 22 23:15:15 compulsory Oct 22 23:15:17 Or "to make compulsory" Oct 22 23:15:29 ha Oct 22 23:15:33 I need the form that would normally take the form "-isation" Oct 22 23:15:42 hey, what is internal-plugins? Oct 22 23:16:00 The build.gradle for the Gradle-based "New Build System" appears to depend on it. Oct 22 23:16:08 Anthaas: require? Oct 22 23:16:33 Hmm, I wanted something a little more demanding Oct 22 23:17:01 Anthaas: obligation Oct 22 23:17:06 also: http://thesaurus.com/browse/require Oct 22 23:17:23 Anthaas: Necessitate? Oct 22 23:17:26 Not sure if obligation says "MUST" enoug Oct 22 23:17:32 Hmm, necessitation might be a good one Oct 22 23:17:38 Keep coming with words though - these are great Oct 22 23:17:45 Im looking for a word for a report, and it must be one word haha Oct 22 23:17:49 Not sure these words are good for UX. Oct 22 23:18:18 Its not a UX word Oct 22 23:20:26 There really needs to be a word invented - either mandation, mandorilisation, or something Oct 22 23:21:02 Anthaas: what do you want to say, show some context Oct 22 23:21:15 Ummm Oct 22 23:21:21 This questionnaire was made mandatory Oct 22 23:21:30 So a good subheading might be this word Oct 22 23:22:52 what's wrong with Required ? Oct 22 23:22:55 "was made mandatory"? Oct 22 23:23:30 Needs to be a verb Oct 22 23:23:34 Anthaas why do you need a one-word title. what is this, an achievement Oct 22 23:23:37 or whatever that kind of word is Oct 22 23:23:49 "Was Made Mandatory" is not a good subheading Oct 22 23:23:49 that's a noun Oct 22 23:24:10 oh it's a subheading, so what's the heading? Oct 22 23:24:11 The "This questionnaire..." part would be part of the text falling under that subheading Oct 22 23:24:23 oh Oct 22 23:24:24 There is a heading above it which this falls into Oct 22 23:27:35 Ive gone with necessitation but would have preferred something different... Oct 22 23:28:05 it's not a verb Oct 22 23:28:13 and that's not how English works Oct 22 23:28:17 Its not supposed to be Oct 22 23:28:30 Anthaas | Needs to be a verb Oct 22 23:28:59 Anthaas | or whatever that kind of word is Oct 22 23:29:19 so word needs to be a word - ok Oct 22 23:29:21 fair enough Oct 22 23:29:33 Imposition is a better word Oct 22 23:30:26 Thanks for your help anyway :-) Oct 22 23:31:03 Hey guys, does it make sence to you to disable some feature on low-level devices based on their sdk version? (something like: gingerbread devices will most certainly be low-level devices, therefore I don't want to run "x" on them) Oct 22 23:31:16 You can do Oct 22 23:31:28 or it is too much assuming? Oct 22 23:31:30 I think there is a requirement annotation Oct 22 23:31:37 Or you can restrict the API level the device runs on Oct 22 23:33:27 Anthaas: yes, here is the picture: I can use either google maps API or a plain picture of a map. Would it be wise to use GM API only to honeycomb+, and download a plain picture on gingerbread or less? or this is just silly? Oct 22 23:33:58 J_Caselles you can add runtime checks: http://developer.android.com/reference/android/os/Build.VERSION.html#SDK_INT Oct 22 23:34:24 massive heterogenuous hardware landscape with virtually no assitance from supposed ecosystem guardians is a cluster bombing in a zen garden Oct 22 23:34:26 J_Caselles: makes sense, but gingerbread devices can be fairy different in power as well compared to each other; but they are less powerful then 4.0+ of course Oct 22 23:35:05 seand: yes, I know, just want to know if assuming gingerbread devices are low-level and honeycomb+ are high-level is or not acurate Oct 22 23:35:14 oh Oct 22 23:35:35 JimmyCarter 'supposed ecosystem guardian' … i love it; good quip Oct 22 23:35:44 JimmyCarter: indeed Oct 22 23:37:40 Do you know any other way to check if it is a low-powered device? Oct 22 23:38:43 google needs to buy every single android device that they have in their play store hardware configuration Oct 22 23:38:50 and provide service where i give them apk and they run it on them all Oct 22 23:39:10 some of the oems provide a testing service like that Oct 22 23:39:10 DO IT or you dont care about developers Oct 22 23:40:51 I am not being overprotective, right? I don't want an old galaxy ace to run Google Maps API for a rather secondary feature Oct 22 23:40:54 JimmyCarter but google seems to be trying to reign in fragmentation; there was an excellent article about it in ars the other day. the downside is that android becomes less open Oct 22 23:41:43 i dont really care if its fragmented if they can test them all for me and tell me which ones are good and what goes wrong w others Oct 22 23:41:57 well being non fragment has advantages Oct 22 23:42:46 Devils advocate here - you are the developer, and they want a unrestricted development platform, why should the onus to do that be on them? Oct 22 23:45:27 behold! for i hath decreed it. Oct 22 23:46:50 JimmyCarter a good policy i think that has worked well for me; only give a shit commensurate with the amount you feel google gives a shit ;) Oct 22 23:48:32 hello Oct 22 23:48:44 does downcasting causes performance issues? Oct 22 23:49:46 g00s: i have to do a complete redesign of my cards Oct 22 23:54:28 i want to create an activity that displays a list of objects (however many the user has entered) and an option to make more at the end. do i want to use fragments for this? Oct 22 23:55:55 developer.android.com stresses that fragments are for different sized screens. is there something else I'd want to use for what I'm doing Oct 22 23:58:54 fragments just arent for different sized screens Oct 22 23:59:28 fragments are for reusable ui components Oct 22 23:59:35 ok Oct 23 00:00:26 ..which is useful for displaying on differently sized screens as well Oct 23 00:04:26 fragments were added in 3.0, what was used before that? Oct 23 00:04:47 i've developing for 2.3 Oct 23 00:04:54 activities Oct 23 00:05:05 This question is for SimonVT or anyone that has been around for me creating my custom bubble layouts. I am drawing them programatically, so far I have been able to draw them just fine, but I want to draw the stroke and fill as two different colors. How would I go about doing that? Oct 23 00:05:48 chars6: there are compat libraries for fragments, too Oct 23 00:08:08 chars6: fragments allow you to divide the layout into diferent spaces, as if they were different sub-activities shown at once Oct 23 00:09:37 chars6: and you can still have just one fragment at a time on small screens Oct 23 00:13:39 chars6: for exactly what you are asking, you don't need fragments, but if you'd like to have a good app design for the entire Android ecosystem, fragments are recommended Oct 23 00:14:56 thanks. i'm working my way through a tutorial right now. Oct 23 00:15:20 chars6: in this case don't bother with fragments yet Oct 23 00:15:37 chars6, android.support.v4.app.Fragment works on 2.1+ Oct 23 00:15:39 or 1.6+ Oct 23 00:35:27 does anyone know how how to add a sub-module to git but have changes stored in the repo that hosts the sub-module? Oct 23 00:49:42 I have a ListView that has a click listener that works fine, unless I add a ToggleButton to the row layout. At that point, the toggle button works fine, but the click even will no longer fire for the row, even if I click on another part of the row. Any ideas? Oct 23 00:51:46 Napalm, "repo that hosts the sub-module" == "origin of the submodule"? Oct 23 00:52:05 nope Oct 23 00:52:12 so, i think i figured it out Oct 23 00:52:22 i added a new remote to my sub-module Oct 23 00:52:31 of the local repo that hosts the sub-module Oct 23 00:52:43 Napalm you know make apps? Oct 23 00:52:44 created a branch and set the sub-module master to track to that Oct 23 00:52:58 and commited my changes to that new branch Oct 23 00:53:05 seems' to have worked Oct 23 00:53:15 just cloned it fresh and all the changes are there Oct 23 00:53:33 the sub-module in this case is not owned by me Oct 23 00:53:43 michalrus: ^ Oct 23 00:53:49 smartall: yes Oct 23 00:55:04 michalrus: i spoke to soon, it failed Oct 23 00:55:25 Napalm, submodules are evil. :^ Oct 23 00:55:40 michalrus: yea, i know, but im trying to work out how to proceed Oct 23 00:55:41 Napalm, eventually you'll forget to do something. Oct 23 00:56:01 perhaps just treat the external repo as a remote Oct 23 00:56:11 arg Oct 23 00:56:12 Napalm you can help me ? Oct 23 00:56:17 Napalm, and what about using a subtree? Oct 23 00:56:19 http://git-scm.com/book/ch6-7.html Oct 23 00:56:22 subtree? Oct 23 00:56:27 oooo Oct 23 00:56:34 Napalm, what are you trying to achieve, first of all? :P Oct 23 00:56:48 ok, lets start again Oct 23 00:57:11 so, i have a project that depends on the android support library with app-compat Oct 23 00:57:14 v8 Oct 23 00:57:37 Uhm? Oct 23 00:57:41 but the eclipse project requires the v4 library which is part of my main project Oct 23 00:58:02 now when they update that project i want the ability to pull those commits into my tree Oct 23 00:58:26 but really i dont need the history of all the development of the support lib Oct 23 00:58:42 How to add a bottom line to a textview or something? Oct 23 00:58:49 can I do it with the background? Oct 23 00:59:56 michalrus: looks like sub-tree's might solve my problem Oct 23 01:01:08 i'll give it a go and see Oct 23 01:01:18 gavilan2: you should be able to create a 9-patch background that will display a line for the bottom-border of the textview (essentially). This might or might not do the "right thing" depending on what you need 'course [eg: if the text in the textview doesn't fill the width] Oct 23 01:01:33 Napalm, probably, but... why do you want to pull in the source of support/compat libs? Why not just use the .jars from sdk/extras/? Oct 23 01:01:41 hi all Oct 23 01:02:56 Which way is the /best/ way to load data from a server API asynchronously and load it into a listview as the data comes in? Oct 23 01:03:16 michalrus: look at SDK\extras\android\support\v7 you'll see no jar's because they depend on resources and not just code, they have to referenced as library projects Oct 23 01:03:34 so ADT plugin can merge the resources Oct 23 01:03:34 I feel like I might have not fully understood your case. :^ Oct 23 01:03:49 But if you need to use submodules, consider subtree. :) Oct 23 01:04:06 looking at it now Oct 23 01:04:09 Napalm, hm, so why don't you reference them as lib projects? :P Oct 23 01:04:33 * michalrus really doesn't know, I just add a line to build.sbt and it just happens. Oct 23 01:04:39 i do, but the v7 library project depends on the v4 jar Oct 23 01:05:12 And how's that a problem? Oct 23 01:05:14 michalrus: i would love that, but i HAVE to do it this way, other developers and alll ... :( Oct 23 01:05:30 Uhm. :} Oct 23 01:05:40 michalrus: because then the changes to the files are not stored in the repo Oct 23 01:05:53 Which files? Oct 23 01:06:13 ie adding my local app v4 library jar to the v7 project Oct 23 01:06:36 Napalm, why don't you add v4 globally? Oct 23 01:06:43 ??? Oct 23 01:07:54 Napalm, when you add it locally, information about this fact is kept somewhere in project's configuration. `build.sbt' in my case. some-file in your. Oct 23 01:08:00 Napalm, commit & push this some-file. Oct 23 01:08:01 :} Oct 23 01:08:23 but i cant, because that file is owned by google's repo Oct 23 01:08:50 michalrus: https://android.googlesource.com/platform/frameworks/support/ Oct 23 01:09:14 so basicly i want my repo always referencing that but with changes stored in the local repo Oct 23 01:09:15 make sense? Oct 23 01:09:43 Sure, then use subtree. Oct 23 01:09:56 But the whole situation doesn't make sense to me! Oct 23 01:10:00 Just to clarify: Oct 23 01:10:14 1) you're developing your own project A. Oct 23 01:10:24 kbs: Can I do it with just XML? Oct 23 01:10:30 2) this projects depends on v7 and so v4. Oct 23 01:10:36 kbs: with shape and all that stuff? Oct 23 01:11:02 3) you're saying you can't commit to your project X config/build file an information to use v4+v7? Oct 23 01:11:06 Napalm, right? Oct 23 01:11:14 is this channel? for android apps? Oct 23 01:11:16 4) because your build file is owned by google? Oct 23 01:11:32 mystupid, is yes it Oct 23 01:11:40 okay so some mexican guy wanted me to make an app to call someone on skype, i got everything working but im not sure how to go about storing settings. how can i just store a string? im really new to this Oct 23 01:11:52 mystupid, sqlite! Oct 23 01:11:57 ahhh Oct 23 01:11:59 mystupid: He's been doing that for 2 days now. Oct 23 01:12:00 gavilan2: hm. You _might_ be able to play some clever tricks with layer-lists and shapedrawable purely in xml - but sometimes it's simpler just to create a 2-3 pixel png file and be done with it. Oct 23 01:12:02 im scared Oct 23 01:12:16 lol Oct 23 01:12:25 mystupid: Just now he was trolling #android saying that he found someone to make his app and now he's started all over again here Oct 23 01:13:02 /kb mystupid go awayyyyyy!111111oneone!11cos(0) Oct 23 01:13:11 michalrus: yes Oct 23 01:13:24 Napalm, *head explodes* Oct 23 01:13:38 Napalm, how's it that google owns your build config? Oct 23 01:13:59 michalrus: you tell me.. its right here > https://android.googlesource.com/platform/frameworks/support/+/master/v7/appcompat/.project Oct 23 01:14:51 VonKranke, who was? Oct 23 01:15:03 yeah i know but i want to do it anyway Oct 23 01:15:16 it sounds like an easy idea and i want to get into android development Oct 23 01:15:21 mystupid: the guy you're talking about, smartall Oct 23 01:15:34 mystupid: My point is he's trolling. It's fake. Oct 23 01:15:39 i dont care Oct 23 01:15:44 Wow. Oct 23 01:15:46 hey yall Oct 23 01:15:47 i just want to try this Oct 23 01:15:48 Darwin was right. Oct 23 01:15:50 not for him Oct 23 01:16:13 i got a foreground active notification that i spawn my app w/ when selected.. but it always restarts the app. even seconds after its running.. any way around this? Oct 23 01:16:26 my intent is PendingIntent pi = PendingIntent.getActivity(getApplicationContext(), 0, new Intent(getApplicationContext(), MainActivity.class), PendingIntent.FLAG_UPDATE_CURRENT); Oct 23 01:16:26 do you have a problem if i liked his idea? whether he was trolling or not Oct 23 01:16:31 What say about me ? Oct 23 01:16:39 AHHH Oct 23 01:16:41 hes here Oct 23 01:16:54 Yes Oct 23 01:17:26 What you say about me ? Oct 23 01:17:58 About my app or fake ? Oct 23 01:18:05 Napalm, and what happens if you add both v7 and v4 to your .project, leaving v7's intact? Oct 23 01:18:21 v7 what? Oct 23 01:18:24 its not a jar Oct 23 01:19:06 Yes, it's an apklib. Oct 23 01:19:21 Napalm, can't you add any apklib to your own project? Oct 23 01:20:14 where is the apklib? Oct 23 01:20:20 plus i want it to track the source Oct 23 01:20:25 so this is fine Oct 23 01:21:22 In sdk/extras/android/m2repository/com/android/support. :} Oct 23 01:21:26 Napalm, ok. Oct 23 01:22:22 anyone familiar with app translation projects? for example i want my app translated to language x, and in return i could translate the other guy's app to language y Oct 23 01:22:31 michalrus: i dont see an apklib only aar Oct 23 01:22:39 osxorgate: never heard of em. Oct 23 01:22:50 michalrus: check appcompat-v7 Oct 23 01:23:24 My stupid... you too want an app Oct 23 01:23:30 Or not understend Oct 23 01:23:41 hmm well it's a start http://www.reddit.com/r/AppTranslations Oct 23 01:24:41 Napalm, rrright. I can use aar's just as apklibs. Oct 23 01:25:04 Napalm, well, there must be way to do it with vanilla eclipse+adt, that's the official way to build apps, I guess. ;o Oct 23 01:48:29 in supporting multiple screen sizes I noticed that some projects explicitly define a new layout for each resolution and some other projects modularize the layouts and only specify certain components for higher densities Oct 23 01:48:53 is this a fair assessment? Oct 23 01:50:28 for the modularized method, they use the include and merge tag, I'm just wondering which way is better or more accepted Oct 23 01:53:55 Should an Android app still use a service for a task that should explicitly run in the background, like playing audio in the background? Oct 23 01:54:33 yes Oct 23 01:54:55 how else would you do it? Oct 23 01:59:33 alex_PP: If an activity starts a long-running task, that task will often continue to run even when the activity is no longer displayed, especially on newer devices with plenty of memory. That led me to wonder if the rules had changed. Oct 23 01:59:47 mwcampbell you can look at the aosp music app; even though its been rotting since 2.3 probably, the basic technique you are interested in is still there Oct 23 02:00:43 g00s: good idea, thanks Oct 23 02:00:47 mwcampbell, yes, but there's no guarantee that it wont be killed at any time. that's what foreground services are for Oct 23 02:02:41 Is there a way to force Android to be more aggressive about killing off non-foreground processes when running in the simulator? Oct 23 02:03:01 I guess I could just reduce the amount of RAM in the AVD, then start up other apps Oct 23 02:03:08 sorry, emulator Oct 23 02:03:33 the web browser's a pretty bug memory hog Oct 23 02:03:46 *big Oct 23 02:03:47 heh, yeah Oct 23 02:05:36 Is the HttpURLConnection class still the recommended HTTP client for apps targeting 4.0 and later? Oct 23 02:13:41 sup Oct 23 02:18:35 Without any context, is it a good idea to create new apps just targeted towards 4+, or what is the lowest that should generally be supported? Oct 23 02:19:15 new apps, minsdk 15 or 16 (if it will take a few months) Oct 23 02:20:05 the longer it will take to dev, probably minsdk=16 has more validity Oct 23 02:20:49 when I run "gradle" in the Android Studio terminal, it isn't recognized, but the project builds with gradle just fine Oct 23 02:21:03 could someone please help me access the gradle binary Oct 23 02:21:07 otiose https://developer.android.com/about/dashboards/index.html Oct 23 02:21:25 i'm running linux and the latest version of android studio Oct 23 02:21:40 are all the other env vars set right in the AS terminal ? Oct 23 02:21:49 try echo $PATH Oct 23 02:22:17 ah, 10 if you want tons of people Oct 23 02:22:22 meh, 16 is good enough for me Oct 23 02:22:48 from 15 and onward otiose Oct 23 02:23:05 okay, just did that and my path seems to be pointing to an old sdk location, going to try adding the new one and will report back Oct 23 02:23:46 mwcampbell: yes. i'd recommend you use OkHttp though Oct 23 02:24:23 ah,i would have to do 15+, because my personal device is 15 hah Oct 23 02:24:51 my path now includes sdk/tools and sdk/platform-tools but still no dice on the gradle command Oct 23 02:25:06 any1 have experience w/ 4.1 notifications w/ .setContent using Remoteviews? i have a question about click handlers Oct 23 02:25:31 otiose yes always target the minimum platform version you want to develop for, seeing as how developing for that would work on the new releases Oct 23 02:26:06 yes, and that pie chart was wonderful, thank you Oct 23 02:26:29 considering the test devices we have here at work, i was under the impression 2.2 was still very widespread Oct 23 02:27:28 otiose Also, you should know that Android 3.0 platform version, which is codenamed Gingerbread, introduced all sorts of features that are not possible with Android 2.x platform versions(Froyo, Gingerbread). So it's a challenge developing for 2.x devices and for new 4.x platform devices in regards to making resource-intensive applications like games. Oct 23 02:28:06 I'm not thinking anything resource intensive Oct 23 02:28:12 otiose that's 3.0 = honeycomb sorry Oct 23 02:28:50 just wanted to do somethings for hobby, outside of work, and wondering if developing for my device at a minimum would be feasible, or if 4.0.4 was still too 'cutting edge' despite being like 2 eyars old Oct 23 02:28:54 otiose then most likely you'll be able to develop for Gingerbread as well, but you should stay away from Froyo. Oct 23 02:28:54 imo although it was unreasonable several months ago, considering how much 2.x usage has shrunk developing for 4.0+ is now a fair choice (depending on the app/audience, of course) Oct 23 02:29:06 tslocum is right Oct 23 02:29:41 otiose 4.0 and upward is the preferred choice Oct 23 02:30:02 straight and to the point, thansk Oct 23 02:30:13 have fun! Oct 23 02:30:31 if I install gradle from the ubuntu repositories will it still build my android project just fine? Oct 23 02:30:42 probably not. you need 1.8 Oct 23 02:31:04 tslocum, sorry, I had gradle installed before and can't workout where it AS likes to put it Oct 23 02:31:11 im checking out this Gradle user guide PDF, want to see what all the fuss is about with this software Oct 23 02:31:17 Everyones using it Oct 23 02:31:21 seriously, its just a zip file - plop it someplace and point your path. you don't need apt-get for this :) Oct 23 02:31:44 well the thing is i have gradle installed, and it is being used by android studio, i just cant find the damned thing Oct 23 02:31:46 you could try "find ANDROIDSDKDIR ANDROIDSTUDIODIR -type f -name gradle" Oct 23 02:31:59 tslocum try slocate :) Oct 23 02:32:23 i did but all i came across was gradle.jar and executing it with java did not yield anything useful Oct 23 02:33:23 i suppose AS might come bundled with one; maybe you found that Oct 23 02:33:31 or parts of one, dunno Oct 23 02:33:58 i'm beginning to think it is bundled with it but not in a way which makes it executable from a terminal Oct 23 02:35:46 uninstall and reinstall Gradle tslocum so that it might recognize it Oct 23 02:35:46 just recreated my project using android studio, to start using gradle, I have 2 modules, my App, and google play services, when I run the app in the emulator it crashes right way due to a class not found exception, it looks like its trying to run the GooglePlayServices module, how do I get it to run my App module? Oct 23 02:35:52 recognize AS that is Oct 23 02:35:59 anybody already update to os x marverick? Oct 23 02:36:22 Maziz whats up with that? Oct 23 02:36:47 I know its free but is it new? Oct 23 02:37:47 Im looking at doing it now Oct 23 02:37:53 there are some changes Oct 23 02:38:03 wondering if there any adverse affect on android dev env Oct 23 02:38:33 nubish: from a dev point of view the new OS is very cool tech Oct 23 02:38:43 from new GL stack to other things Oct 23 02:38:58 GLES 3 runs on the Mac os now also. Oct 23 02:39:06 yeah, can't wait to update … but waiting for a .1 release Oct 23 02:39:08 making new games on ios / mac seemless Oct 23 02:39:11 smart movies Oct 23 02:39:24 g00s: yeah I normally wait for a new mac etc ;) Oct 23 02:39:31 Im temped to update at home Oct 23 02:39:45 So did this just come out today Oct 23 02:39:45 ? Oct 23 02:39:50 Open GL 3? far out! Oct 23 02:39:55 TheBunny i have to update since 10.7 doesn't run the latest xcode Oct 23 02:39:57 tho one of my friends at apple is worried about incomming bug reports Oct 23 02:40:03 you might want to wait Oct 23 02:40:07 :) Oct 23 02:40:11 new graphics stack? Oct 23 02:40:12 whaaaaaat Oct 23 02:40:26 did this just come out today or has it been out recently? Oct 23 02:40:28 10.7 had GL 3.2 Oct 23 02:40:35 and 10.9 gets 4.1 Oct 23 02:40:41 among other things Oct 23 02:40:42 im not familiar with mac software Oct 23 02:40:46 still cool though Oct 23 02:41:26 i do however look forward to purchasing a macbook Oct 23 02:41:32 want to develop iOS apps Oct 23 02:41:45 came out today Oct 23 02:41:53 nubish: Oct 23 02:42:17 awesome Oct 23 02:42:40 were you guys surprised that it was free/ Oct 23 02:42:52 i was. thought it would be $20 again Oct 23 02:43:00 which is still worth it Oct 23 02:43:13 why the sudden change of cost structure Oct 23 02:43:23 I was surprised it was free Oct 23 02:43:34 They also gave out a lot of productivity tools Oct 23 02:43:43 TheBunny does it seem more like a internals / plumbing update ? Oct 23 02:43:47 yes Oct 23 02:43:53 thats probably why then Oct 23 02:43:54 I don't feel it was a huge win for users Oct 23 02:44:00 at least interface wise etc Oct 23 02:44:23 The tech underneath they might love but won't see it till adopted Oct 23 02:44:31 TheBunny "ios 7 is late" "ok, put out mac os devs on ios" .. "ok, we'll just release what we have now for free" \o/ Oct 23 02:45:36 I was at WWDC Oct 23 02:45:42 theres a lot of new stuff Oct 23 02:45:47 g00s: lol Oct 23 02:45:51 10.9 is pretty different... Oct 23 02:45:55 i have to read the ars review Oct 23 02:46:05 ipad air <.< Oct 23 02:46:20 maybe apples trying to add more value to their products Oct 23 02:46:29 seem to be no new ideas coming out of Apple ever since Jobs passed Oct 23 02:46:29 free OS , free productivity apps etc Oct 23 02:46:31 ipad can now be bendable, like a piece of paper? Oct 23 02:46:44 lol Oct 23 02:46:52 i dont like devices that thin Oct 23 02:46:53 is ot was not Air it would have veen what ipad 5 or 6? Oct 23 02:46:59 I can see them wanting a new name Oct 23 02:47:03 its been to long Oct 23 02:47:04 feel no weight at all Oct 23 02:47:07 how hte hll do i put a simple click listener on a RemoteView? im trying to make clickable buttons in my Notification Oct 23 02:47:18 i feel like breaking the thing just to feel something Oct 23 02:47:24 next year watch we get the iphone air Oct 23 02:49:47 I have a simple dataset of about 100k gps coordinates, names, and elevation data. The information is static (will never change) Oct 23 02:49:55 What's the best way to package it up in a queriable format Oct 23 02:50:09 db Oct 23 02:50:12 I'd prefer a semicross platform approach Oct 23 02:50:14 just included it in ur apk Oct 23 02:50:20 You can prebuild a db? Oct 23 02:50:22 acidjazz https://developer.android.com/reference/android/widget/RemoteViews.html#setOnClickPendingIntent(int, android.app.PendingIntent) Oct 23 02:51:55 sql lite DBs run everywhere Oct 23 02:52:15 sqlite ftw Oct 23 02:52:16 sucks that the android sqlite doesn't have rtree indexes compiled in Oct 23 02:52:33 could ship your own version Oct 23 02:52:34 if you are going to to geospatial searches ;) Oct 23 02:52:38 its not that big Oct 23 02:52:43 BRB Oct 23 02:52:51 TheBunny yeah, then you have to abort using the supplied sqlite bindings Oct 23 02:52:57 pretty much NDK Oct 23 02:53:33 TheBunny, wow that's fantastic Oct 23 02:53:48 BenOrnstin mvstore has r*tree indexes; although its java and may not play nice on ios or WP :) Oct 23 02:54:01 g00s, okay Oct 23 02:54:22 sqlite may be the prefered route as this is gonna be a Windows Phone/iOS product as well Oct 23 02:55:11 Speaking as someone who has minimal db experience, is it realistic to expect relatively fast queries in the form of distance from gps coordinate Oct 23 02:55:22 In a specific range? Oct 23 02:55:32 Or should I really be looking for a custom approach? Oct 23 02:55:48 sounds like k nearest neighbor Oct 23 02:55:51 I'm considering pre-coding them into 'boxs' Oct 23 02:56:14 nubish: yea thats what im trying.. i got rV.setOnClickPendingIntent(R.id.nPlayStop, playStopIntent(getApplicationContext())); .. rihgt.. then in my playStopIntent() i just Log.d().. i only see the Log.d when the app loads up.. and clicking the button doesnt show the Log.d again Oct 23 02:56:30 nubish: am i misinterpreting how this should work? Oct 23 02:56:31 BenOrnstin maybe The_Bunny can help youget r_tree indexes compiled in; i think mrenouf did it with spatialite. gotta go Oct 23 02:56:54 nope can't help Oct 23 02:57:05 Hahaha Oct 23 02:57:16 More looking for concepts to look into then anything else Oct 23 02:57:17 just being honest on this one :) Oct 23 02:57:38 how much DATA do you have? Oct 23 02:57:40 So even the name 'r_tree indexes' is a helpful clue Oct 23 02:57:55 Right now about 40k entries Oct 23 02:58:08 acidjazz is the item you are accessing within a collection Oct 23 02:58:09 We're considering expanding it, which could bring it close to 700k Oct 23 02:58:18 So theres this thing called threading ;) Oct 23 02:58:19 acidjazz not sure, im totally a noob at this Oct 23 02:58:20 Or releasing several 'regional' versions Oct 23 02:58:27 acidjazz sorry man Oct 23 02:58:32 TheBunny, I'm aware :) Oct 23 02:58:41 nubish: no.. https://gist.github.com/acidjazz/b6ac75bfd534e4fa5508 Oct 23 02:58:51 nubish: all good its kinda brand new stuff right Oct 23 02:58:54 But yeah, I have zero db experience Oct 23 02:59:06 honestly I don't actually know how much load a modern device can handle Oct 23 02:59:08 I'm not sure if the wait time I'm looking at is in miliseconds, seconds or half a minute Oct 23 02:59:18 nubish: tryin to get a play/pause button goin for my MediaPlayer service Oct 23 02:59:19 Test it Oct 23 02:59:23 Will do Oct 23 02:59:45 But I do sugges the thread it and fake it approach if needed Oct 23 02:59:55 Okay, cool **** ENDING LOGGING AT Wed Oct 23 02:59:58 2013