**** BEGIN LOGGING AT Tue Jun 03 02:59:58 2014 Jun 03 03:00:03 exactly, we'll look in the next I/O Jun 03 03:02:52 this year's WWDC seems pretty overhyped tbh Jun 03 03:03:00 but maybe I'm just sick of the people in my office frothing over it... Jun 03 03:03:20 ^ this. me right now haha Jun 03 03:04:01 apple and google both have their fap followers Jun 03 03:04:18 I'm just tired of them telling me what to thank Jun 03 03:04:35 "its beautiful" "its glorious" Jun 03 03:04:41 "its wonderful" Jun 03 03:05:10 someone in my office was so impressed that you could now send selfies with just one button press... Jun 03 03:06:14 -_- Jun 03 03:11:22 every time i hear the word 'selfie' i think of this : https://www.youtube.com/watch?v=iFV1NtDvuPo Jun 03 03:14:01 bankai_au: where in au are you? Jun 03 03:14:08 bne Jun 03 03:14:33 is that au as in austria? Jun 03 03:14:44 no, that's 'at' Jun 03 03:14:57 i thought au meant australia Jun 03 03:15:03 it does Jun 03 03:15:13 where's bne then? Jun 03 03:15:27 brisbane, BNE is a reference to the airport Jun 03 03:15:31 ah Jun 03 03:15:49 i'm in adelaide Jun 03 03:16:09 my condolences Jun 03 03:16:32 :( Jun 03 03:17:06 my work desk is a bench in the corner of a show room, so I can hear my boss and salespeople arguing with a client Jun 03 03:18:19 lovely, clients love being aruged with Jun 03 03:26:41 why isn't Filter.FilterResults a template class? Jun 03 03:30:47 http://blog.xebia.com/2013/07/22/viewholder-considered-harmful/ Jun 03 03:35:03 gordon_: thanks, now I know why my code is spagghettti Jun 03 03:37:06 Just finished a custom recorder, why is the playback module completely different in nature then the record module? Jun 03 03:40:23 tldr for now Jun 03 03:40:27 will read tomorrow lol Jun 03 03:42:33 alex_PP about that fragment option menu question earlier, I know you can invalidate the options menu, but it doesn't seem to do anything because the fragment is still there, just not visible. maybe I had it in the wrong lifecycle method. eitehr way, seems silly to have to put an invalidate in that will run everytime the activity runs just for when you rotate to landscape and back Jun 03 03:43:23 how do i jump to the method definition of the method that my cursor is over in android studio? Jun 03 03:45:49 How do I set in the manifest that my app can accept images via "share"? Jun 03 03:48:06 mattblang_, ah, i see, ignore the invalidate Jun 03 03:48:15 in your fragments onPrepareOptionsMenu Jun 03 03:48:28 check its visibility and adjust the menuitem accordingly Jun 03 03:49:03 menu.getGetItemById(R.id.menu_blah).setVisible(isVisible()) Jun 03 03:49:08 should do the trick Jun 03 03:50:01 alex_PP yeah, I was thinking about that. seems kind of dumb you have to do that Jun 03 03:50:41 I almost put event bus yesterday at work ;) Jun 03 03:50:52 will encourage them to use it Jun 03 03:50:59 and my life will be brighter Jun 03 03:51:03 or not Jun 03 03:51:11 ? Jun 03 03:51:19 ? Jun 03 03:51:27 <Vorisi> How do I set in the manifest that my app can accept images via "share"? Jun 03 03:57:27 :( Jun 03 04:01:56 Vorisi, listen for Intent.ACTION_SHARE Jun 03 04:02:13 with a mime type of image/* Jun 03 04:02:37 *ACTION_SEND Jun 03 04:03:04 http://thepb.in/538d4405532e87 Jun 03 04:03:10 I copied from that (highlighted lines) Jun 03 04:03:17 But it didn't work. Jun 03 04:04:20 hmmm, didn't think you could have more than one mime type listed Jun 03 04:04:36 http://thepb.in/private/538d4935e59061 Jun 03 04:04:40 I'm using that Jun 03 04:04:47 see https://developer.android.com/training/sharing/receive.html Jun 03 04:04:48 By the way, that's instagram's, so >.> Jun 03 04:05:27 if an app crashes and it's using the camera, is the camera released? Jun 03 04:06:20 Vorisi, you may want to look at the intent you're tying to receive and see what's it's called Jun 03 04:06:47 how do you mean? Do you see a mistake in my manifest? Jun 03 04:07:59 nothing obvious Jun 03 04:08:13 so if that's right, why won't it show up? Jun 03 04:10:40 greetings. i have a textview which i'm attempting to create a bunch of links in. so i have a bundle of text and i am manually parsing it. i am using a SpannableStringBuilder, and calling setSpan() multiple times to add custom links to the text. The problem is that only the last call to setSpan() works, as though there can only be one at a time. how can i overcome this? thanks. Jun 03 04:11:15 Vorisi, where are you trying to send from? Jun 03 04:11:42 I'd like to share images from, say, gallery, to my app for my app to do something with\ Jun 03 04:11:56 but how are you tesing this Jun 03 04:12:03 testing* Jun 03 04:12:04 its a bit strange that there's a method clearSpans() (plural), which is described as removing "all" spans, implying more than one. Jun 03 04:12:12 with what app exactly Jun 03 04:12:35 Just the gallery ap Jun 03 04:12:37 app* Jun 03 04:12:43 it's not getting listed in the "share" menu Jun 03 04:18:31 weird Jun 03 04:18:46 ACTION_SEND and image/* should be enough Jun 03 04:21:33 alex_PP, thank you. My derp. Syntax error earlier in the XML >.> Jun 03 04:22:01 was missing some stuff* Jun 03 04:36:34 alex_PP, you still around? Jun 03 04:36:56 https://github.com/Initsogar/cordova-webintent Jun 03 04:37:07 i'm using that, and it's calling my function, but it's not got any data. Jun 03 04:37:11 have you any experience? Jun 03 04:37:41 barbs: Still there? Jun 03 04:37:44 (I had to work) Jun 03 04:37:55 yep! Jun 03 04:38:21 But yes, the project is to build an Android user interface to GNU APL. I already ported the interpreter itself to Android (it was a quick job), but I just started with th eUI Jun 03 04:38:49 I'm guessing you used the NDK to compile it natively? Jun 03 04:41:15 barbs: Yes, I did Jun 03 04:41:38 I'll build it as a library and link it directly into the UI process Jun 03 04:41:54 But right now, I built it as a standalone binary for testing purposes Jun 03 04:42:52 awesome. Good luck with it :) Jun 03 05:00:16 barbs: Thanks :-) Jun 03 05:00:42 barbs: As soon as I have something very basic running I will share the repository Jun 03 05:00:59 I have a problem Jun 03 05:01:15 Jonno_FTW: Drugs. Drugs are always the solution. Jun 03 05:01:38 no matter how much SO I read I can't find the right answer Jun 03 05:01:49 good way to make your problem worse Jun 03 05:02:00 also, hi loke! Jun 03 05:02:05 I'm trying to load a fragment into an activity as the only content Jun 03 05:02:15 SO has usually very bad answers to Android-related issues. Jun 03 05:02:21 Hello Leeds Jun 03 05:02:44 but I get java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example/com.example.myapp.InformationActivity}: android.view.InflateException: Binary XML file line #7: Error inflating class fragment Jun 03 05:02:46 we were in SG last week, for the second time this year... Jun 03 05:02:56 Were you in Singapore recently? I saw a G+ update by someone who might be you. I'm not sure why I followed this person, but he was from HK and visited SG a whil eback. Jun 03 05:03:00 loke: where do I get help then? Jun 03 05:03:06 so, yeah :) Jun 03 05:03:34 Leeds: So is Google blocked in HK now? I heard rumours to that effect. Jun 03 05:03:44 nope, absolutely not Jun 03 05:04:20 Ah. Maybe it's Google-HK that is blocked in the mainland Jun 03 05:04:51 yes, that's more likely... I haven't been over the border for a couple of years, except for a brief stopover on the way back from Europe at CNY Jun 03 05:04:55 Jonno_FTW: here? Jun 03 05:05:01 one sec Jun 03 05:06:03 now I have another problem after fixing the first Jun 03 05:06:35 Leeds: I'm going to Europe at the end of this week. Vacation time. :-) Jun 03 05:07:03 loke: we did Germany/France/Switzerland/Belgium/Holland in 2 weeks at CNY, with a day in China on the way back... Jun 03 05:07:17 for posterity: my problem was due to reusing the same ClickableSpan. I solved it by extending the class and modifying it as necessary, so I could simply call a new instance on each call to setSpan(). Jun 03 05:07:28 Whaaaa? In two weeks? You can't possibly have had a relaxing vacation then. :-) Jun 03 05:08:01 better to say Frankfurt/Strasbourg/Basel/Brussels/Amsterdam, with the odd day trip :) Jun 03 05:10:27 so i want to wire some of my folders to ram to speed up the build process, as described here: http://buttur.com/setting-up-android-studio-on-ram-disk Jun 03 05:10:40 which folders would be most helpful to keep in ram? the article itself is a bit outdated Jun 03 05:11:59 i think it'd be really helpful for myself and anyone else :) Jun 03 05:12:10 probably Jun 03 05:12:36 http://stackoverflow.com/questions/16775197/building-and-running-app-via-gradle-and-android-studio-is-slower-than-via-eclips/17286002#17286002 Jun 03 05:12:50 org.gradle.daemon=true Jun 03 05:12:51 org.gradle.parallel=true Jun 03 05:12:52 ;) Jun 03 05:12:55 Anybody here know anything about the cordova API? Jun 03 05:12:56 that should help Jun 03 05:13:02 gordon_: already done that Jun 03 05:13:10 build times are still 3x or more slower than ios Jun 03 05:13:30 it's all very optimized, except for this particular optimization, which is popular in ios but not here Jun 03 05:13:43 sorry dont know about ios Jun 03 05:13:48 and dont want to know :) Jun 03 05:14:14 gordon_, i'm just saying, on ios, it's popular to keep the really often-used folders in ram to speed things up Jun 03 05:14:28 i'm not looking for any ios knowledge though Jun 03 05:14:35 Anybody? Jun 03 05:14:43 i'm wondering what the commonly used folders are for android studio Jun 03 05:14:44 so just put whole sdk, android studio and project in ram ;) Jun 03 05:15:03 haha if only i had the ram Jun 03 05:15:05 i'd rather said gradle than android studio Jun 03 05:15:11 which of those do you think would be most important? Jun 03 05:15:23 i use gradle with android studio Jun 03 05:15:39 guess that artice is up to dat Jun 03 05:15:40 e Jun 03 05:15:57 it puts sdk and gradle in ram Jun 03 05:17:03 and run gradle in daemon Jun 03 05:17:05 and parallel Jun 03 05:17:27 someone mentioned here that dexing cache is added Jun 03 05:17:46 dexing cache? Jun 03 05:18:37 yep Jun 03 05:18:50 i mean Jun 03 05:18:53 incremental dexing Jun 03 05:18:57 dont know if it works thorugh Jun 03 05:19:06 https://groups.google.com/forum/#!topic/adt-dev/6KbhReCE_fo Jun 03 05:22:19 ok, thx :) Jun 03 05:22:31 jw, any other ideas for speeding it up? Jun 03 06:06:45 how can I check what layout has been used when calling setContentView? Jun 03 06:08:58 ActionBarDrawerToggle class takes two arguments in the constructor, openDrawerContentDescRes and closeDrawerContentDescRes for "accessibility description" but when does they actually show? Jun 03 06:16:23 Jonno_FTW, surely you noticed when you typed it in? Jun 03 06:17:32 alex_PP: I did Jun 03 06:17:37 but android disagrees Jun 03 06:17:41 http://stackoverflow.com/questions/24008311/android-cant-load-in-a-detail-fragment-in-master-detail Jun 03 06:19:48 any ideas? Jun 03 06:21:07 is it easy for people to unpack my .apk files and reuse my code into their application ? Jun 03 06:21:31 solofight: no Jun 03 06:21:48 it's the same principle as jar files Jun 03 06:21:56 Jonno_FTW: not easy or not possible at all ? Jun 03 06:22:09 Jonno_FTW: oh, thanks for replying Jun 03 06:22:24 solofight: have you tried opening an apk file? Jun 03 06:22:33 you XMLs don't match Jun 03 06:22:41 Jonno_FTW, Jun 03 06:22:44 where? Jun 03 06:22:54 Jonno_FTW: no Jun 03 06:23:02 & Jun 03 06:23:06 oh Jun 03 06:23:33 but heard people can unpack it which contains several directories from which it is difficult and time consuming to extract the code - but possible Jun 03 06:23:37 Jonno_FTW: ^ Jun 03 06:23:58 so wanted to confirm whether its true or not Jun 03 06:24:07 solofight, it can be decompiled Jun 03 06:24:11 but it won't be your code Jun 03 06:24:16 It'll just be code that does the same thing Jun 03 06:24:54 Vorisi: wont be my code but will be the code which does the same thing ! Jun 03 06:25:18 If they use a good decompiler Jun 03 06:25:20 can you please explain Jun 03 06:25:22 oh Jun 03 06:25:29 but tbh that's true for any software. Jun 03 06:25:40 The most you can do is make it illegal Jun 03 06:25:50 you mean the compiler subsitutues my code with some other which can do the same functionality ? Jun 03 06:26:01 I said decompiler Jun 03 06:26:19 A decompiler looks at the compiled software and says "This code will do this" Jun 03 06:26:29 and generates code based on that program Jun 03 06:26:42 but it wont be possible to copy my code and implement in another app right ? Jun 03 06:27:01 not YOUR code Jun 03 06:27:15 but code that does the same thing, yes. Jun 03 06:27:20 ok Jun 03 06:27:32 Like I said, the best you can do is make it illegal. Jun 03 06:28:28 well, then i have no hope - in a country like mine people dont care s**t about illegality in terms of software Jun 03 06:28:42 What does your code do, if you don't mind me asking? Jun 03 06:29:13 Vorisi: planning to do a augmented reality application to demonstrate a product or service Jun 03 06:29:42 http://www.android-decompiler.com/ Jun 03 06:29:44 alex_PP: I fixed that, but now it doesn't appear next to the list at all Jun 03 06:30:25 As one example Jun 03 06:30:35 thanks for the link Jun 03 06:30:51 Thanks for the time Vorisi Jonno_FTW Jun 03 06:31:30 np Jun 03 06:32:04 fragment_main is fill parent & the parent is a horizontal linear layout Jun 03 06:32:26 so two_pane_information_container has gone off the right hand side Jun 03 06:32:56 oh no, i see you reset the width Jun 03 06:33:04 is that valid though? Jun 03 06:33:25 although, i think i remember something about that only being honoured if you specify both Jun 03 06:33:35 try adding a height too Jun 03 06:33:39 or should I just make main_twopanel properly Jun 03 06:34:29 taht worked though Jun 03 06:34:31 thanks for the help Jun 03 06:34:31 and set the width of two_pane_information_container to 0dp and weight 1 Jun 03 06:34:38 no worries Jun 03 06:36:57 I have one final problem now, I am using an async task to load images off the ui thread into the listview, but sometimes the images don't show Jun 03 06:37:43 it's not until you do something in the UI that the image is actually shown Jun 03 06:40:22 Jonno_FTW, try using Picasso Jun 03 06:40:38 does a lot of stuff for you Jun 03 06:40:46 https://square.github.io/picasso/ Jun 03 06:42:31 looks neat Jun 03 06:42:35 but I've written most of it already Jun 03 07:21:37 alex_PP: the problem is that view.post() isn't being called for the listview items Jun 03 08:13:20 Does Google Maps on Android use Google Drive / Google Save to store data? Jun 03 08:14:44 * Cloud Save Jun 03 08:22:01 where should a USB device show up in the file system when connected? Jun 03 08:22:35 I have a serial device that I need to mess with, so I need the file handle for it Jun 03 08:23:33 I have problem with android studio / gradle with my project with some (libraries / library projects) and the support library. Android Studio imports automatically support-v4-r7 although support-v4-19.1 is already imported. how can i check where this import comes from? Jun 03 08:55:22 Jonno_FTW: Complete what you're doing, then drop it and throw in a single line of Picasso. Jun 03 09:40:49 What do you think is the overhead of an additional threading, sleeping most of the time? Jun 03 09:41:10 I have a counting thread loop which I use to check for timeouts, increment a clock etc. Jun 03 09:42:01 Now I needed to add another counting, but in a different component than the other thread, so I just created another thread to keep it separate Jun 03 09:49:01 platzhirsch, very small Jun 03 09:49:05 separate stack and that's mostly it Jun 03 09:49:22 platzhirsch, starting threads is usually more expensive so when you need alot of tasks to process via threads a ThreadPoolExecutor is a better choice Jun 03 09:49:25 Mavrik: yeah, I mean even on a single core processor, thread should be handled quite well Jun 03 10:15:08 Hi there. Jun 03 10:17:20 One question regarding android settings activity.. I'm trying to show progress dialog and when I create a new constructor like this: doalog = new ProgressDialog() <- it suggest me to fill in parameters like Context context. My q. is what is my context in settings activity? Because dialog = new ProgressDialog(getApplicationContext()); is giving me: android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an applica Jun 03 10:37:32 Any ideas? Jun 03 10:43:52 I just generated a login activity from the templates and now it complains about LoaderManager being compatible only with API level 11 and not the current minimum 9 Jun 03 10:44:01 why does Android Studio generate me incompatible code? ;) Jun 03 10:46:10 Available in the support library through FragmentActivity. Jun 03 10:46:19 getSupportLoaderManager() Jun 03 10:46:52 If it's a new app, do yourself the favor and go minSdkVersion=15 Jun 03 10:47:57 kakazza: you think so? But backwards-compatibility !! Jun 03 10:48:19 I mean what happens when I do TargetAPI(Honeycumb..)? Won't the code compile then for Gingerbread? Jun 03 10:49:32 If you absolutely must, but API <14 is 17% of the market. A shrinking segment of the market. Jun 03 10:50:46 In the end it's up to you, but I only do dev for 4.x, so do a lot of others and even bigger companies. Jun 03 10:51:25 After all this also helps to get more user to more current Android versions Jun 03 10:52:10 By the time you finish your app 2.x will be even less % of the market ;) Jun 03 10:52:36 https://developer.android.com/about/dashboards/index.html#Platform These are from May, stats up until June should follow soon. Jun 03 10:53:31 Also see how 9 doesn't even exist anymore (<0.1%) Jun 03 10:57:41 i'm haing a problem here Jun 03 10:57:57 inflating a layout with a listview (without setting the adapter yet) is taking way too long Jun 03 10:58:05 any ideas on how i can optimize? Jun 03 11:01:22 Depends on what you're doing wrong :p Jun 03 11:01:36 i'm going to pastebin the xml Jun 03 11:02:52 http://pastebin.com/y0uRSQmd Jun 03 11:05:30 where can I find language id's for values ? Jun 03 11:08:29 what are language ids for values? Jun 03 11:14:47 What is this thing about Google Play Service authentication? Do they offer Google Play as a middleman for authorization? Jun 03 11:22:43 gordon_: https://developer.android.com/guide/topics/resources/providing-resources.html#table2 Jun 03 11:23:26 kakazza: thanks, I was looking for indonesian, seems like it's not 'id' but 'in' Jun 03 11:23:44 Is there a way to get a resource by id that I pass as a string? Jun 03 11:24:20 gordon_: Interesting, because it suggests 'id' Jun 03 11:24:36 https://code.google.com/p/android/issues/detail?id=5476 Jun 03 11:25:47 Oh, and second question: What would be the best way to display multiple sets of the same structured data in android? Jun 03 11:26:34 brain fart -- recovery is located where again? Jun 03 11:27:26 Tobbi: getResources().getIdentifier() is what you are looking for Jun 03 11:27:35 danijoo_: Thanks. :) Jun 03 11:27:43 Any idea about my second question? Jun 03 11:27:59 depends on the data. a list of strings is also a set of structured data ;) Jun 03 11:28:14 a list of objects each with 100 variables too Jun 03 11:28:32 but i wouldnt put the last one in a listview:p Jun 03 11:29:40 danijoo_: List of objects with let's say 10-15 variables each ;) Jun 03 11:30:35 dictionary entry with multiple languages that you can turn on / off from the gui. Jun 03 11:30:44 hi Jun 03 11:31:00 what about a listview and on click the entry for an object opens Jun 03 11:31:22 or if its only one language to another like DE <-> EN, a table Jun 03 11:31:41 table might be good. It could only have one column. Jun 03 11:31:45 And I could hide the borders. Jun 03 11:32:03 im rly stuck atm i cant get my head around sth, im sending a click pending intent from a widget label ... and in onrecieve i force call an onUpdate ... only problem is how do i not update every widget ... or only the last added widget Jun 03 11:33:15 i tryied putting the appwidgetid in the intent extra ...but that leads to an pendingintent that only updates the widget i added last when having multiple Jun 03 11:33:57 do i have to generate an action string for every instance ? Jun 03 11:34:26 that would rly bloat things up dramatically escpecially in the on recieve part Jun 03 11:35:03 or wait... Jun 03 11:36:18 hmm seems to be the case xD Jun 03 11:36:30 fuck or not Jun 03 11:37:21 oh... Jun 03 11:37:40 i got it ... Jun 03 11:37:57 thx for listening me talking myself to the solutio xD sometimes that rly help ! Jun 03 11:52:38 ok Jun 03 11:52:43 One qeuestion regarding GUI Jun 03 11:53:48 I have a button. When clicked values from EditText are used. How can I notify user that he must first enter obligatory editTexts before he can press button? Button must not be pressed if some editText fields are empty.. how can I do that? Jun 03 11:55:03 frojnd: make the button insensitive until a vlaue check is complete? Jun 03 11:55:26 that's exactly what I need Jun 03 11:55:30 thank you Jun 03 12:04:04 sending some user credentials over HTTPS, using my own header oauth style. Is there a library I should use instead of a raw HTTPClient? Jun 03 12:15:36 hi, does anyone know if I can use the new gradle build and have library project dependencies that are built using the old ant system? Jun 03 12:20:51 yes. Jun 03 12:24:20 Hey there. Any idea why the NewApi Lint checks might not be working in my Studio project? It only finds new api stuff in XML files, but not in the Java files. Jun 03 12:30:00 Hey. Is using a SparseArray good for mapping a handful (<5) of mappings of unknown integers to a StringBuilder? Jun 03 12:44:51 Why doesn't lint find any class files in android studio? Jun 03 12:47:03 any suggestions on websocket libraries for android? Jun 03 12:49:09 When I try to instantiate a StringEntity I get "UnsupportedEncodingException" even if I Instantiate withouth a encoding Jun 03 13:12:21 guys Jun 03 13:12:43 when do you guys use set methods and when do you guys add variables in the constructor? Jun 03 13:12:55 is there a good practices guide for those things Jun 03 13:13:10 i never know if i should be assigning variables through my class constructor or through set methods Jun 03 13:16:25 jvrodrigues Jun 03 13:16:58 if the class NEEDS the variables for everything in the class, constructor. If defaults are ok(for the variable), allow to set via setter Jun 03 13:17:18 but also have a constructor for it Jun 03 13:19:42 I see Jun 03 13:20:02 thank you Jun 03 13:26:18 In Android 4.0 the multi tasking button would start to show a screenshot of your applications when it was hit. When is this screenshot taken? Do you guys think it'd be possible to change the image shown there? Jun 03 13:28:04 maybe on the paused state of the view? Jun 03 13:38:32 im implementing the android studio master / detail example. if I setHasOptionsMenu from my fragments to build the action bar menu, the detail fragment's items still linger when I switch back to portrait. it is because the detail fragment is still instantiated I guess, in case the user switches back to landscape. how can I keep the menu item from lingering though, preferably without some kind of isVisible check that seems kind of hacky. i would Jun 03 13:38:32 think that the fragment's menu items wouldn't contribute if it's not visible Jun 03 13:42:30 Hi, a reviewer told me that he will make a video review of my game (https://play.google.com/store/apps/details?id=com.indiumindeed.futiletiles), if I promise to replace my trailer video with the upcoming review video. Do you think it is smart/stupid to accept his offer? Top reviewed games in his Youtube channel have about 100 000 views. Jun 03 13:43:51 IndiumIndeed: this channel is for development questions, not marketing. Jun 03 13:44:56 alexfu: well I guess most developers need to do marketing also. Jun 03 13:46:22 Look at all the games in his channel. Are the reviews fair? Jun 03 13:46:37 no Jun 03 13:52:45 So to stop screen shots on a specific activity I can do: getWindow().setFlags(LayoutParams.FLAG_SECURE, LayoutParams.FLAG_SECURE); How would I set a flag to allow screenshots again? Jun 03 13:58:06 I am not able to set text size, can anybody please take a look? http://pastebin.com/BTFuxPvb Jun 03 13:59:19 how to set java level in ant builds? is there some key to be added to project/local.properties? Jun 03 13:59:54 WantToCode: http://stackoverflow.com/questions/20364993/android-setting-textsize-programmatically Jun 03 14:01:37 gordon_: I did what I have done from a similar question. Do I need to TypedValue.COMPLEX_UNIT_PX instead of DP? Jun 03 14:02:31 WantToCode: use sp Jun 03 14:02:58 I want a fixed size so that it doesnt change according to user's settings Jun 03 14:03:09 thats why i tried using dp Jun 03 14:04:07 sadly COMPLEX_UNIT_PX didnt work. Jun 03 14:18:36 hm Jun 03 14:19:14 Hi all, I tried to create a dir in internal storage like this: http://stackoverflow.com/questions/7105919/creating-directory-in-application-package-on-internal-storage Jun 03 14:19:23 then created a file in the new created directory Jun 03 14:19:36 but now I can't find the created file Jun 03 14:20:08 I can find the file with context.getFilesDir().list() but that's not in my created directory, what am I doing wrong? Jun 03 14:23:32 FrancescoV, you're calling list on wrong directory. Jun 03 14:23:42 why aren't you calling list on "mydir" of your example? Jun 03 14:28:04 Mavrik: I tried this but it doesn't contain files Jun 03 14:29:30 well you're supposed to store them there too :P Jun 03 14:29:49 Mavrik: this is little description: http://pastebin.com/L7FJteLA Jun 03 14:30:12 mmm ... no g00s lately ... guess he's still in the process of moving Jun 03 14:33:37 Mavrik: am I doing something stupid? :p Jun 03 14:34:19 FrancescoV, just do new FileOutputStream(routeFile) Jun 03 14:37:36 Mavrik: you are my God! Thank a lot! Jun 03 14:37:47 ALL HAIL MAVRIK Jun 03 14:46:11 our designer wanted to use only a line to indicate a viewpager page, which is fine... but do users really discover the other pages? I'm sceptical.. Jun 03 14:49:43 How can I do this in Android?: http://stackoverflow.com/questions/18959411/controlling-the-screenshot-in-the-ios-7-multitasking-switcher Jun 03 14:51:31 Don't think you can, but I wouldn't swear to it. I haven't seen any API that handles it. Jun 03 14:51:48 that's my answer as well, but if you find a way, do tell us ;) Jun 03 14:54:43 EventBus doesn't have "sticky" events does it? Jun 03 14:55:36 nevermind it does Jun 03 14:56:37 Can I do register(this) and registerSticky(this) at the same time? Jun 03 14:56:48 or does registerSticky(this) also register for standard events also? Jun 03 14:59:45 hmm, not eventbus, forgot I am using Otto on this project Jun 03 14:59:49 so no sticky events Jun 03 15:08:53 hello, droids, got a question about actionbar spinners conflicting with drop down menus Jun 03 15:09:17 how do I post a picture in here? Jun 03 15:12:36 I've got a custom spinner adapter that's loading a relative layout for my spinner items, which is set to wrap content Jun 03 15:12:41 that's on the left Jun 03 15:12:59 on the right I have a menu with dropdown Jun 03 15:13:35 the left spinner spans the full width of the action bar, butting up with the menu button Jun 03 15:14:12 the menu button, when clicked, shows left-truncated items with a ton of right padding Jun 03 15:14:18 doesn't really make much sense Jun 03 15:19:51 shekibobo: http://imgur.com Jun 03 15:21:10 http://i.imgur.com/3f553KO.png Jun 03 15:24:26 shekibobo: maybe put the spinner to the left of the date to separate them more ? Jun 03 15:25:11 The date is the spinner Jun 03 15:25:21 oh Jun 03 15:25:27 the dropdown you see in there is from the menu Jun 03 15:25:31 (on the right) Jun 03 15:25:57 I don't really understand why there would even be a collision between the two Jun 03 15:26:10 add something between the two or make the spinner shorter or something Jun 03 15:26:45 well, I've tried just making the spinner items wrap content Jun 03 15:26:51 seems like that should do it, right? Jun 03 15:41:12 is it possible to override strings/methods in an imported .aar library? Jun 03 15:42:58 if you extend the class Jun 03 15:43:15 aar is same as jar, just basically with resources Jun 03 15:48:59 What, the ... how would I encoded this request in a Retrofit method signature? curl --data "param1=value1¶m2=value2" http://example.com/resource.cgi Jun 03 15:49:02 none really works Jun 03 15:52:24 @Query? Jun 03 15:52:35 but Query appends the data at the end of the URL Jun 03 15:52:39 I reckon this is different Jun 03 15:52:39 looks like you want @Field Jun 03 15:52:43 http://square.github.io/retrofit/javadoc/index.html Jun 03 15:53:04 Look at @FormUrlEncoded Jun 03 15:53:31 yeah tried that one. Are you sure it's the right one? Then I can concentrate on debugging what has gone wrong Jun 03 15:54:23 shekibobo: http://stackoverflow.com/questions/13954917/android-spinner-size-very-large Jun 03 15:57:07 Anyone familiar with RxJava? If you have an observable subject emitting who you're talking to, and another emitting outgoing messages, how would you combine them so you emit outgoing messages along with who you're talking to? I've used combineLatest for other observables, but it would result in duplicate messages with this when you change who you're talking to. Jun 03 15:58:55 so if their merged streams were like: a 1 2 3 4 b 5 6 7 c 8 a 9, i'd want to get (a,1),(a,2),(a,3),(a,4),(b,5),(b,6),(b,7),(c,8),(a,9) Jun 03 15:59:13 with the letter being the active contact, and the number being a distinct message Jun 03 15:59:28 paralith JakeWharton: Thanks so much, working now. Jun 03 16:01:48 :D Jun 03 16:04:59 I think I figured it out, I'd want to use combineLatest, and then distinct until changed to filter out the duplicate messages where only the contact had changed Jun 03 16:06:29 Question, has anyone here ever done any livestreaming video server? Jun 03 16:32:09 JakeWharton i know the answer is probably no, but any easy way to make ButterKnife work in library projects? Jun 03 16:32:31 No Jun 03 16:32:43 blah, k. Jun 03 16:34:36 Where/How would I store session informations like access_token in my app? Jun 03 16:35:27 preferences or db Jun 03 16:36:21 so is it safe to assume that the lack of ability to read remote files/playlists over bluetooth is be design, given the AVCTP and AV2P interactions/specifications only setup streams or control streams ? I'd imagine you'd need some kind of seperate app to do the remote file listing and specifying which file to play/etc? Trying to figure out if this is a bluetooth limitation or something Jun 03 16:36:21 that the car manufacturerse just haven't been able to get at... Jun 03 16:36:33 be design = by design, sorry Jun 03 16:37:19 I was playing around in unity, just trying things out. Anyway now suddenly I got a complete game and was wondering that is it possible to use ads / sell apps on the google play without making a company? Jun 03 16:40:46 Does anyone know a good place to find free photos, I need for football, world cup. old pictures. 5-10 pcitures would be enough. I guess 3 would do. Jun 03 16:41:04 google image search? Jun 03 16:41:06 .....? Jun 03 16:42:03 you can add royalty free to the search to make sure they're free Jun 03 16:42:18 fixpost ^ Jun 03 16:44:17 I need an opinion about which API I should use to solve a problem. I want to snag JSON from a web service, put it in a database, then back a ListView. I also want the ListView to be paginated. I am using an AsyncTaskLoader for one of my ListViews, but the new one I am working on needs to be paginated. I guess really the question is can I gracefully handle pagination with an AsyncTaskLoader. Jun 03 16:47:28 kryty: well, that wont guarantee royalty-free will it? it isnt some magic word by google? Jun 03 16:47:32 or is it? Jun 03 16:49:55 how can i define a textstyle as a custom style attribute? Jun 03 16:49:58 naah, it isn't. but that's how I searched for music loops for my game, helped Jun 03 16:52:44 or rather, how is 'bold' defined, as an attribute Jun 03 16:53:28 attrs.xml Jun 03 16:53:39 with an inside of it Jun 03 16:55:27 so i have 3 styles, one of which is set at runtime, and i want them all to have different text attributes for a certain textview. So I want something like ?attr/MyCustomHeaderTextStyle Jun 03 16:55:35 which resolves to 'bold' or 'normal' Jun 03 16:55:43 depending on which of the 3 styles was chosen Jun 03 16:56:15 so in attrs.xml i have > Jun 03 16:57:06 and in the style i want something like bold Jun 03 16:58:02 i would think i can just reuse the original type, somehow Jun 03 17:03:25 what would be a proper title for a contextMenu appearing which has Edit/Delete on an item? Jun 03 17:03:47 the title of the item, isn't it Jun 03 17:04:00 Hi all, my phone isn't picking up in Eclipse... Is there any way I can check to see what devices are connected? Jun 03 17:04:39 yea you can go to the terminal and type `adb devices` Jun 03 17:05:06 the eclipse adb plugin usually is just a view of the adb command so if theres nothing there it is probably not connected Jun 03 17:05:50 what if it is but not identified properly? maybe he's on Linux? Jun 03 17:06:27 Has anyone else had problems getting compound drawables to show when using intrinisic bounds and size tags? Jun 03 17:06:56 s/intrinisic/intrinsic Jun 03 17:07:13 Sicp - I'm on Windows 7 Jun 03 17:07:23 and the phone? Jun 03 17:07:39 LG Enact VS890 Jun 03 17:08:19 My system is picking up on it. Jun 03 17:08:19 well first step is to go to the terminal and type adb devices Jun 03 17:08:37 you probably need to install something from the android SDK under support/ Jun 03 17:09:01 look it up with the phone name, easier than getting help here Jun 03 17:09:26 Eh... It's saying no devices attached from adb devices Jun 03 17:09:28 Okay, thanks. Jun 03 17:09:55 Something weird though, it stops picking up the phone as a drive eventually and treats it like a media device. Jun 03 17:13:08 brb restarting Jun 03 17:14:04 Guys. Any good way to create unversioned libraries for ndk-build? -avoid-version in la_LDFLAGS in Makefile.am doesn't seem to help. Jun 03 17:14:16 what exactly is the created row uri? Jun 03 17:18:10 I am using make-standalone-toolchain to crossbuild packages. And running ndk-build on the generated .so libraries (which are versioned), to build my project. Jun 03 17:18:27 Can an Android application be named "Word1 word 2" or does it have to be "Word1word2"? Jun 03 17:19:11 It gives me this error : java.lang.UnsatisfiedLinkError: dlopen failed: could not load library "libusb-1.0.so.0" needed by "libostc3_import.so"; caused by library "libusb-1.0.so.0" not found Jun 03 17:21:09 can i retrieve a column value from the row uri? Jun 03 17:22:55 If you have a Subject Observable in RxJava, how do you simply grab the latest value it emitted? Jun 03 17:25:30 Hey! I checked the SDK, there was nothing for my phone and haven't found anything for this on google. I know I was using a crap cable earlier that eventually lost it's ability to connect and would flicker between connected and disconnected until I pulled it out. Jun 03 17:26:01 So I restarted my PC and Android, only for it to still do this same thing. Jun 03 17:26:37 Da_Rhyno: try fully powering down the android; pull the battery if you can or full power off otherwise Jun 03 17:27:01 Da_Rhyno: not a guaranteed fix but it's definitely possible to wedge the android usb stack in a stupid state Jun 03 17:27:04 dragorn - I've already done a full power off, disconnected everything. Jun 03 17:27:18 Let me try unplugging the battery though. Jun 03 17:27:35 Da_Rhyno: fair. was a bit of a shot in the dark, but can't hurt. Jun 03 17:27:39 What's odd is after a little while, the "safely disconnect usb device" icon goes away. Jun 03 17:27:45 On windows, I mean. Jun 03 17:27:58 Da_Rhyno: the chance of it being somethign you damaged w/ the cable is pretty slim, but it could be a damaged port or something too Jun 03 17:28:11 or I suppose a driver problem, I don't do windows stuff generally Jun 03 17:28:43 Yeah... Unfortunately I don't know where the drivers are installed, and how to uninstall them. =/ Jun 03 17:28:52 Then I'd let it do a fresh reconnect. Jun 03 17:29:59 When building a camcorder app. Does anyone know why the video feed becomes scan lines when going from preview to record? However after the first recording all future ones play normally. Jun 03 17:33:55 Yeah, in my device manager the drivers are coming up as faulty Jun 03 17:40:08 Da_Ryhno you having problems with your phone? Jun 03 17:40:20 Da_Rhyno rather Jun 03 17:41:00 petecouture - yeah, well not so much the phone but the connection from the phone to the PC Jun 03 17:41:04 I think I'm getting it though. Jun 03 17:41:16 gotcha Jun 03 17:41:34 I hope, at least. Jun 03 17:41:56 should super.onDestroy() be called first when overriding? or last? Or does it not even matter? Jun 03 17:42:03 Nope, adb is still not picking it up. Jun 03 17:42:27 how to enable networking in the android emulator? as soon as I start an app that needs a network connectivity, the app crashes Jun 03 17:43:03 MarkyC: i don't think it really matters, but i always call super first for onCreate/Start/Resume/etc and last for onDestroy/Stop/Pause/etc Jun 03 17:43:35 petecouture, usually the banding issue showed up on Samsung phones when you used different preview resolution from recording resolution Jun 03 17:45:11 Mavrik, But it's fixed when you go back to preview mode and then back to recording. However technically going back to preview mode right now doens't work Jun 03 17:45:20 Or doesn't display to the preview window right now Jun 03 17:45:55 what's your point? Jun 03 17:46:10 installing drivers from LG website. hopefully this will work Jun 03 17:47:50 MarkyC, it depends if you rely on behaviour that happens there. Jun 03 17:48:09 usually it doesn't matter as long as they're called... calling them first helps at not forgetting it though ;) Jun 03 17:48:39 Mavrik, thanks for the advice. I will look at it now. I figured I was going from preview to record without waiting for a callback or something Jun 03 17:49:13 petecouture, nah, just camera drivers are broken on lots of devices in alot of different ways. Jun 03 17:49:30 You're telling me Jun 03 17:51:20 I spent about 3 days trying to figure out a problem with recording before I realized the camera itself was frozen and the phone had to be restarted Jun 03 17:51:46 yeah, don't forget those release calls and verify with cam app :) Jun 03 17:51:57 i've been fighting a camera bug where if the app crashes while the camera is open, the whole video system goes to hell Jun 03 17:52:09 which is fun Jun 03 17:52:26 dragorn: I feel your pain Jun 03 17:52:34 Mavrik: Hah they are in place now ;-) Jun 03 17:52:39 hello Jun 03 17:52:57 helro Jun 03 17:52:57 dragorn, yeah, crashing whole media server with related drivers is way too easy Jun 03 17:53:23 Have you ever tried encoding your own video using FFMpeg? Jun 03 17:54:00 im making an application that needs to track the users position as he goes from stop to stop… but i dont wanna drain battery to much … should i pole every 60 seconds or should i do a gps button that says get GPS location before they go onto the next top Jun 03 17:54:37 Sounds more like a usibility issue Jun 03 17:54:46 The easiest for the end user would be to make it automated Jun 03 17:54:58 The easiest to program would be for a button Jun 03 17:55:35 thing is i need to guarenttee a GPS coordinate before the person leaves (and im doiong GPS via html5 geolocation) Jun 03 17:55:41 they go up to the place take a picture Jun 03 17:55:57 i would makes ure to havea GPS before picture is taken but it might take 60- seconds for a geo lock which is to long to continue Jun 03 17:56:01 If an image have no Copyright on it, that does not mean it is free is it? is it largely impossible to find free images? old images from the 50s and 60s, are the rights bought by others or are they in the public domain? Jun 03 17:56:22 if JS html5 location would continue running in the background while camera intent was running that would be awesome Jun 03 17:56:41 jaspertheghost: Why are you using html5 location instead of the apps geo manager? Jun 03 17:56:50 Is there a way to reset the USB stack on my phone? Jun 03 17:57:10 I tried uninstalling and reinstalling the drivers on my PC and it did nothing. Jun 03 17:57:10 becuase im new to android dev, and i need to get this app out by august 1st Jun 03 17:57:23 for the company i work for Jun 03 17:57:39 jaspertheghost: If time to lock is a concern then I would recommend keeping the service running in the background if the app is open but suspended Jun 03 17:57:40 the second version i will role out the improves like using the locationmanger for android Jun 03 17:58:40 pete: that would drain the battery like crazy Jun 03 17:59:09 Not if you sleep it between pings Jun 03 17:59:23 if the screen is off and the phone is running you get about 2-4 hours of battery charge Jun 03 17:59:45 thjats what ill prolyl do in version 2 Jun 03 18:00:02 What photos are they taking Jun 03 18:00:03 but for now what would the result be u think if i ping every 60 seconds in JS and sleep in between Jun 03 18:00:05 is it a set location? Jun 03 18:00:18 fixpost: IANAL, but afaik, images are copyrighted by default. They're only free if the creator specifically notes that they're in the public domain, or provided via some license like CC Jun 03 18:00:26 yes pictures at an address Jun 03 18:00:34 What is the best/ a good way to handle textsizes for different phone sizes? I want it to be a percentage of the screen, the sme with my button size. Do I have to calculate this from screensize? Jun 03 18:01:44 jaspertheghost: This would be for phase two, but to overcome lock and to prevent the need for teh app to be constantly running, you could use USB trackers to get peoples position Jun 03 18:01:55 I forget the name of them. Everyones kinda using them though. Jun 03 18:02:09 yea company i work for is too cheap[ to do that Jun 03 18:02:54 already thought of that Jun 03 18:03:15 we actually have an android app .. im writing a replacement cuase the person that wrote the current one did a shit job and its super unstable Jun 03 18:04:17 *sigh* I'm realizing that myself. Android can be highly unstable if oyu don't know what your doing... Jun 03 18:05:40 thats why im doing the app in webview Jun 03 18:05:42 that can be run offline Jun 03 18:05:50 dont have to worry about the UI programming Jun 03 18:05:53 it handles all that Jun 03 18:06:23 seems api 11 added a lot that I need. How can I, with API 8, make a button transparent and set its X and Y position? Jun 03 18:07:20 lol Jun 03 18:13:23 too easy mannnn too easy Jun 03 18:13:29 huhuh Jun 03 18:13:40 Mavrik: You were spot on about the resolution differences, cheers! Jun 03 18:13:46 Android highly unstable Jun 03 18:13:46 hey guys, two questions about ListView. 1) I have a listview containing children of varying widths (think of a conversation view in hangouts) and those children views' widths are not preserved when they scroll off screen. any ideas as to what might cause that? Jun 03 18:13:48 LEL Jun 03 18:13:50 you're nuts Jun 03 18:14:03 the mother of all inaccurately broad statements said out of frustration Jun 03 18:14:24 2) I would like those children views to be able to gravitate to either the left or right, programmatically. the layout_gravity property doesn't seem to have any effect. any idea why that might be? Jun 03 18:14:25 petecouture, two weeks of debugging lost cuz of that Jun 03 18:14:26 :P Jun 03 18:14:35 Im gonna quote that Jun 03 18:14:41 ty Jun 03 18:14:52 Sicp, coming from iOS, PhoneGap and Air I find the amount of error catching and threading needed to run Android safely is massive Jun 03 18:15:41 It is an easy language to learn and pick, however it has a lot of 'tricks' they intentially don't publish you need to know to get it all connecting Jun 03 18:15:49 C, JS and ActionScript Jun 03 18:15:57 this is probably a super dumb question, but is there some kind of console I can log stuff to in eclipse for android-dev? I'm from a JS background Jun 03 18:16:09 d0de CatLog Jun 03 18:16:14 yea d0de, LogCat Jun 03 18:16:16 LogCat rather Jun 03 18:16:33 Sicp, petecouture, thanks, how do I log stuff to LogCat please? Jun 03 18:16:35 open it from the sidebar, its like an Android icon flying sideways Jun 03 18:16:42 Log.d/e/etc.. Jun 03 18:17:05 Log.d("your tag identifier", "the log message"); Jun 03 18:17:07 Log.i(TAG, ""); where TAG is usually a static String Jun 03 18:17:48 that's super helpful, thanks. Can I disable debugging in eclipse? I'm running into problems with my device waiting for the debugger, and I don't need auto debugging at the moment Jun 03 18:18:09 there's no such thing as auto debug Jun 03 18:18:21 Don't hit the debugger to build ;-) Jun 03 18:18:25 if you place a breakpoint, you'll be run into debug mode, if you dont, you'll run into the normal running Jun 03 18:18:33 unless you're trying that ctrl f11, that's debug mode Jun 03 18:19:41 Sicp: Back to my rant. Also with Android anytime you start doing anything intensive you have to use the NDK or source and then your building in C. Jun 03 18:20:10 at work I port everything that's C to java Jun 03 18:20:23 and we have a ton of C, all hardware communication Jun 03 18:20:38 Why? Wouldn't it run faster in C? Jun 03 18:20:41 didnt bother with NDK at the time, and still didn't, so I dont know what NDK might bring Jun 03 18:20:45 Sicp, thanks! Jun 03 18:20:50 I have no idea Jun 03 18:21:10 I just know that I can get the hardware to do exactly the same thing as the iOS app makes it do Jun 03 18:21:20 petecouture, not everything is faster enough in C to be worth that... Jun 03 18:21:40 s1gmab3ta but what if it's already in C? Jun 03 18:21:59 petecouture, then what's the problem? Jun 03 18:22:18 in our case it's in C because the hardware speaks that, and it was easy to port it to iOS. but there was no choice of having it in C like as a rule Jun 03 18:22:20 Lol that was my point. He's porting C to Java Jun 03 18:22:36 so you can port it to Go if you want, just do the same actions Jun 03 18:22:41 beauty of languages Jun 03 18:22:54 Lol sadely I'm just learning about Go Jun 03 18:23:00 meh Jun 03 18:23:12 all I know about Go is titles from HN Jun 03 18:23:41 Ya pretty much the same. I was at an event a few weeks ago where a younger developer argued Go was faster then Php Jun 03 18:24:00 these in-the-clouds arguments.. Jun 03 18:24:05 We then did testing. He was wrong Jun 03 18:24:09 this is faster than that and that is more efficient than this Jun 03 18:24:18 WHO'S MAKING THE BUCKS IS WHAT I WANT TO KNOW! Jun 03 18:24:23 Yup Jun 03 18:24:31 It's like people ditching actionscript for html5 Jun 03 18:24:36 teh monehs! Jun 03 18:24:53 Swift though, that I want to look at Jun 03 18:25:19 brings the same slang that I used to hear when trying Racket and Scheme, but it's made by Apple so it MUST be easy Jun 03 18:26:14 I am using API8. How would I do to achieve this, I want to do it for both buttons and textviews: I want to place 3 buttons centered on the screen witht he same distance between them and with the distance from top of top button to the top of screen being equal to bottom of bottom button to bottom of screen. there is no layout for that right? so i need to get screen size and calculate this Jun 03 18:26:14 manually? Jun 03 18:27:46 no Jun 03 18:27:59 you use layout_weight on each element and give them all the same number Jun 03 18:28:07 this is how I know to do it Jun 03 18:29:19 Mavrik: Before i goto Google search. I have the camera orientation set correctly to portrait mode. However the recorded videos are all at an angle. Is this another setting? Jun 03 18:29:36 petecouture, you're watching them with wrong player probably Jun 03 18:29:42 VLC Jun 03 18:29:45 yeah Jun 03 18:29:50 use QuickTime or something Jun 03 18:29:51 VLC flips them Jun 03 18:29:55 Will calls from MainActivity always be static references? I'm having trouble wrapping my head around it. It seems like the only way I can get everything to work is to change everything in other classes to static Jun 03 18:30:04 petecouture, camera/video encoders don't actually rotate video when you set orientation, not enough CPU power Jun 03 18:30:05 use Settings > Video Effects > Geometry Jun 03 18:30:13 petecouture, they just write a rotation flag in the MP4 file Jun 03 18:30:18 * Sicp steals that line Jun 03 18:30:34 Hmm QuickTime is doing the samet hin Jun 03 18:30:35 petecouture, and it's up to the player to read it and play video properly - Android/iOS/QuickTime/Windows Media Player can do that Jun 03 18:30:37 VLC can't. Jun 03 18:30:44 then you didn't set rotation on MediaRecorder :P Jun 03 18:30:50 it's separate from preview Jun 03 18:30:53 what're you trying to do d0de Jun 03 18:31:13 d0de, well you can make instances of those classes ;) Jun 03 18:31:17 Sicp: thanks, how would I do with text sizes? I want them to be automatically adjusted to screen size? Jun 03 18:31:18 you know, basics of OOP :P Jun 03 18:31:31 what>? Jun 03 18:31:48 Sicp: I have a background service that plays media. I'm making calls from the MainActivity to do stuff with the service (e.g. change the volume when a slider is changed, or kill the audio when the app exits) Jun 03 18:31:51 fixpost, your... explanation is wierd. :D Jun 03 18:31:55 fixpost, do you have a drawing of your layout Jun 03 18:32:10 arg! Why is there no complete documentation on this... Jun 03 18:32:26 Can anyone help me with some smali code? Jun 03 18:32:44 there's a static type of fontsize from android like android:textSize="?android:attr/textAppearanceMedium" Jun 03 18:32:52 should work Jun 03 18:33:08 but every call gives a "cannot make a static reference to the non-static reference" Jun 03 18:33:11 you need to make those classes d0de Jun 03 18:33:28 imagine calling MainActivity for something that has nothing to do with Main Activity Jun 03 18:33:32 blasphemy Jun 03 18:33:39 OOP Jun 03 18:33:42 Sicp: oh bother. I'd better learn how to do that then, I guess :\ Jun 03 18:33:42 OOPs Jun 03 18:33:48 oops Jun 03 18:33:56 yea,Android with no OOP is not gonna work Jun 03 18:34:09 Sicp: have you read sicp? Jun 03 18:34:14 not a page Jun 03 18:34:24 then why the heck is your name Sicp Jun 03 18:34:27 d0de, you really need to learn basics of Java :/ Jun 03 18:34:32 Sicp: Am I calling MainActivity? I thought I was calling _from_ MainActivity. Can you explain why this is poor practise? Jun 03 18:34:46 I watched the videos from MIT Opencoursewear Jun 03 18:34:50 ware* Jun 03 18:35:03 I dont know what you're doing Jun 03 18:35:07 you know what you're doing Jun 03 18:35:13 but your problem should not happen Jun 03 18:35:38 so poor practice is because the language is not letting you do it i guess Jun 03 18:35:52 its trying to save you from yourself!! Jun 03 18:35:58 ok, thanks. Obviously I know very little but I'm trying to build something as a way to learn Jun 03 18:36:00 THE BLOOD OF CHRIST COMPELS YOU! Jun 03 18:36:13 OUT DEMON! Jun 03 18:36:45 ugh, implementing search requires ContentProviders Jun 03 18:36:47 there's a lot of good resources out there d0de, try CommonsWare book Jun 03 18:36:51 buy it and eat it Jun 03 18:37:20 commonsware book is freakin' huge Jun 03 18:37:23 I havent, but you should Jun 03 18:37:30 cause like I seem smart if I tell you to do so Jun 03 18:38:03 i have a commonsware pdf open as an alternative to the android docs Jun 03 18:38:13 Mango_Man, there's a class in support lib I think that helps with those Jun 03 18:38:34 Mavrik: really? will have to google for that, thanks Jun 03 18:38:50 If you can humor me for just a minute: I set stuff up in other classes. Do I have to do something in main activity to make the stuff in those other classes work? Jun 03 18:39:10 you need to understand what a class is. Jun 03 18:39:12 and what an object is. Jun 03 18:39:17 create instances of them Jun 03 18:39:18 and how you construct objects from classes. Jun 03 18:39:22 and what static is. Jun 03 18:39:36 you NEEEEEED TO KNOW that before programming Android Jun 03 18:39:39 are you saying "learn java"? Jun 03 18:39:56 Seems like it Jun 03 18:39:58 preposterous Jun 03 18:40:27 Mavrik, Sicp: here is how i want my layout: http://sv.tinypic.com/view.php?pic=16707qu&s=8 Jun 03 18:40:39 the problem is that so many "intro to java" things seem useless. The oracle docs spend hundreds of pages talking about bicycles. It's all so abstract Jun 03 18:40:49 didnt layout weight do that for you? Jun 03 18:40:52 fixpost, which one of those are automatic? Jun 03 18:41:02 you can, after layout_weight, set the same marginBottom for the top and bottom element :P Jun 03 18:41:04 fixpost, e.g. which ones do you need adjustable? X, Y or Z? Jun 03 18:41:07 it will do what you want Jun 03 18:41:18 marginBottom and marginTop, of course Jun 03 18:42:00 understanding what a hypothetical "class of bicycles" means doesn't help you understand java classes at all, in my opinion Jun 03 18:42:08 you should do ctrl + space while in your XML editor, you'll see plenty of self-explanatory attributes that will help you Jun 03 18:42:24 d0de, well, you're trying to ride a bicycle blueprint :P Jun 03 18:42:25 there's no such thing as java classes Jun 03 18:42:37 it's just classes, you understand classes then you understand classes Jun 03 18:42:44 java has them Jun 03 18:42:47 d0de: You can use other resources to learn Java Jun 03 18:43:14 +1 to what Sicp says too Jun 03 18:45:04 Learning something other than Java? In my android channel?! Jun 03 18:45:24 ObjC 4eva. Jun 03 18:45:57 Does anyone know what ABI stands for as in "ABI filters" for the new gradle build system Jun 03 18:46:12 a badly pronounced API Jun 03 18:46:13 its Swift now Jun 03 18:46:21 Swift sounds like a rip off of Go Jun 03 18:46:32 guys, swift is so cool. Jun 03 18:46:36 application binary interface Jun 03 18:46:41 http://en.wikipedia.org/wiki/Application_binary_interface Jun 03 18:46:45 whatever that is Jun 03 18:46:45 cool, thanks Jun 03 18:47:00 So anyone knowledgeable with dalvik bytecode/smali in here? Jun 03 18:48:03 yiati, API is a set of functions you can call when developing/writing source code Jun 03 18:48:03 dalvik is that village in somewhere Jun 03 18:48:12 yiati, ABI is an interface to those functions after the code is compiled Jun 03 18:48:27 thanks for that info! Jun 03 18:48:29 I hope Google release a decente dev enviroment like Apple did and is doing. Jun 03 18:48:48 hope you become a better developer :( Jun 03 18:48:50 hehe Jun 03 18:48:51 ? Android Studio + Gradle is fantastic Jun 03 18:48:59 gradle is garbage. Jun 03 18:49:01 Sico: okty. Mavrik: I want X,Y,Z to autoadjust to screensize. the ration between them should be the same no matter the screensize. Jun 03 18:49:04 but yeah, AS is ok. Jun 03 18:49:10 fantastic? are you kidding me? Jun 03 18:49:10 fixpost, which of the ratios? Jun 03 18:49:16 It's not done Jun 03 18:49:23 did you ever used visual studio man? Jun 03 18:49:29 but it's leaps and bounds better than Eclipse + Ant Jun 03 18:49:30 fixpost, you're gonna have a horrible time trying to do all of it Jun 03 18:49:38 visual studio is awesome Jun 03 18:49:39 fixpost, I suggest you make size of Z fixed Jun 03 18:49:39 Yes I have used Visual Studio Jun 03 18:49:55 yiati: eclipse is 5x faster thatn AS + gradle Jun 03 18:49:59 lol Jun 03 18:50:02 no Jun 03 18:50:09 oh yes Jun 03 18:50:14 you're just angry cause your code wont work Jun 03 18:50:16 lol Jun 03 18:50:23 can confirm Jun 03 18:50:25 my code never works Jun 03 18:50:26 maybe on as :D Jun 03 18:50:33 gdrc, i can confirm it (Eclipse faster) Jun 03 18:51:08 you cant just like jump into something that has been introduced to people that had been working with something much older and expect to be good at it Jun 03 18:51:19 you have to go back to the stone age as they did, then make the same jump Jun 03 18:51:58 I dont use AS Jun 03 18:52:02 too complicated for me Jun 03 18:52:04 I don't care about it. Android dev enviroment sucks. Jun 03 18:52:10 maybe Jun 03 18:52:19 The one of windows phone is better than the android's one Jun 03 18:52:22 I see a lot of life-changing apps on Android being done by people no smarter than you are Jun 03 18:52:36 android studio Jun 03 18:52:41 makes it a hell of alot better Jun 03 18:52:52 arrrgh, why do people write java without 2 space tabs? Jun 03 18:52:54 it's so annoying Jun 03 18:53:05 two spaces tabs is annoying Jun 03 18:53:06 we are talking about the enviroment, nothing more Jun 03 18:53:11 tab is 5 damn spaces Jun 03 18:53:17 haha Jun 03 18:53:27 I thought it was 4? Jun 03 18:53:31 Mango_Man, 4 space. Jun 03 18:53:35 4 space tabs. Jun 03 18:53:38 or you get fired. Jun 03 18:53:39 :P Jun 03 18:53:45 4 space tabs Jun 03 18:53:54 we don't negotiate with space and brace terrorists. Jun 03 18:54:00 maybe he's talking about total lack of any kinds of space Jun 03 18:54:04 Tab is 8 spaces! Jun 03 18:54:07 Lol Jun 03 18:54:09 terrifying Jun 03 18:54:17 SimonVT, -----> COBOL prison. Jun 03 18:54:20 actually its 4 in sublime Jun 03 18:54:23 and thats ok too! Jun 03 18:54:27 never! Jun 03 18:55:29 Mavrik: it is simple in with higher APIs where I can get the screensize. it seems like a fairly basic thing. Jun 03 18:55:42 you really shouldn't be doing screensize calculations Jun 03 18:55:45 it'll hurt you. Jun 03 18:55:45 Mavrik: keep Z the same so i can keep textsize the same? Jun 03 18:55:52 yes. Jun 03 18:55:58 use centering on Android heavily Jun 03 18:55:59 ok,ty Jun 03 18:56:04 use margins to compensate screen size Jun 03 18:56:06 use dp. Jun 03 18:56:08 I dislike this and it seems most people prefer 4, but I'm going to be devils advocate and say --> http://google-styleguide.googlecode.com/svn/trunk/javaguide.html#s4.2-block-indentation Jun 03 18:56:13 it's gonna make your life alot easier Jun 03 18:56:21 fixpost, "proper" way to do what you want is to write a custom viewgroup Jun 03 18:56:37 fixpost, if you EVER say to yourself "I need screensize" you're doing something horribly wrong. Jun 03 18:57:59 2? i guess google want to reduce disk usage. it's time to sell my stocks Jun 03 18:58:01 What if you're coding for a 14" tablet with 1024x720 res and 480dpi Jun 03 18:58:55 mq521, what about it? Jun 03 18:59:04 bitkiller, Google taken over by ruby people Jun 03 18:59:10 I um Jun 03 18:59:28 Suppose using screensize to like, compensate for terribad design choice would be a nice reason Jun 03 18:59:36 mq521, why? Jun 03 18:59:38 i can do ruby with 2 spaces indentation, but i can't do Java Jun 03 18:59:47 The hell do I know Jun 03 18:59:51 I don't code Jun 03 18:59:51 mq521, anything UI related is being done over views and viewgroups Jun 03 18:59:53 :O Jun 03 18:59:55 some sort of neurosis Jun 03 18:59:59 mq521, if you do positioning Jun 03 19:00:19 you create a viewgroup and the OS will TELL you "hey, you're 500x743px big, do what you will with your children" Jun 03 19:00:21 Why is there screensize thing at all then Jun 03 19:00:25 no need to query screen for that Jun 03 19:00:34 Burn it Jun 03 19:00:42 there isn't, there's 3 different broken functions that aren't consistent over phones :P Jun 03 19:00:56 Sounds like android alright Jun 03 19:01:14 Use them more so more apps get broken so it gets fixed faster Jun 03 19:02:21 I wonder when we'll get screens with ridiculous enough resolution so that we'll drop pixels and just use metric system or something Jun 03 19:04:21 you never use pixels when developing Android. Jun 03 19:04:32 so the actual resolution is meaningless. Jun 03 19:05:14 We might run out of bits in an integer to represent all the pixels Jun 03 19:05:46 eh, we're getting ARM64 anyway, we'll bump int to 64-bit :P Jun 03 19:21:56 Mavrik: When you go from camera preview to recording preview then you want to switch back to camera preview after your done recording. Is there a trick or something I have to wait for? Jun 03 19:22:03 Getting this stack errror Jun 03 19:22:04 http://pastebin.com/XvieEsKi Jun 03 19:22:28 that's utterly useless Jun 03 19:22:34 see what the driver tells you in logcat Jun 03 19:22:50 you probably have to release mediarecorder and restart preview Jun 03 19:22:54 including killing it first Jun 03 19:23:04 Ya LogCat doesn't output anything after the stop request Jun 03 19:24:12 I release the recorder then release the camera then set the camera back up again and then start the preview Jun 03 19:26:01 http://pastebin.com/mEWxptx4 Jun 03 19:26:08 Here's a breakdown of the flow Jun 03 19:29:56 hmm I think I might not be sending the new camera object Jun 03 19:32:12 Woot that was right!! Jun 03 19:34:00 hello guys Jun 03 19:34:49 I have an Android project done on eclipse. If I push it and clone it to my other computer which I will install Android studio on, will everything work as normal? Jun 03 19:34:58 no Jun 03 19:35:04 Two different project formats Jun 03 19:35:06 What can I do to make a smooth transition Jun 03 19:35:15 Nothing easily Jun 03 19:35:29 It's recommend you wait until your next project to do it in AS Jun 03 19:35:49 Changing IDE's mid project is a no no Jun 03 19:36:02 CocoStorm, AndroidStudio can migrate Eclipse projects to Gradle Jun 03 19:36:11 it doesn't always work but usually it's just fine. Jun 03 19:36:12 http://developer.android.com/sdk/installing/migrate.html Jun 03 19:36:33 I don't know who to believe Jun 03 19:38:15 Should be easy right Jun 03 19:38:17 to export Jun 03 19:38:21 and migrate etc? Jun 03 19:38:42 yeah Jun 03 19:38:57 "easy"... is not something that comes with word "migration" Jun 03 19:39:00 but ok. Jun 03 19:40:38 heh Jun 03 19:40:48 I guess I'll just install eclipse for simplicity's sake Jun 03 19:41:02 ;-) Jun 03 19:41:24 Are you the only Android developer at your work? Jun 03 19:45:57 this is my own project Jun 03 19:46:41 petacourse changing to android studio midproject is a breaze Jun 03 19:47:51 how can I set android to relaunch on xml change? Jun 03 19:52:04 I wasted 3 full days without realising that we cant add "headerView" to a gridview. :( Jun 03 19:56:21 I have a listview, and I'm calling clear() then addAll(*somedata*) then notifyDataSetChanged() on it, but it does nothing until I scroll the view, and when I scroll it everything disappears. Why might that be? Jun 03 19:58:04 mavrik: but using margin, dp is a bit unreliable isnt it? it is not the same amount of pixels on different phones... Jun 03 19:58:45 It's not supposed to be the same amount of pixels.. It's supposed to be the same physical size Jun 03 20:01:28 hi Jun 03 20:04:55 OK, it seems I am meant to do layout in xml and not code but it is quite cumbersome repeating the same thing with one minimal change when i could just do a for loop in code... Jun 03 20:06:57 fixpost, forget about pixels. Jun 03 20:07:02 and no, it's not unreliable Jun 03 20:07:14 it's exactly as it should be - same amount of dp will be same PHYSICAL whitespace Jun 03 20:07:30 Mavrik: well, mostly. Jun 03 20:07:40 equivalent physical space Jun 03 20:07:59 yes. that. Jun 03 20:08:18 you never build interfaces with pixels in mind for Android. Jun 03 20:08:25 it's subtle, but it matters when you get to low values like 1dp which can look wildly different from one device to the next. Jun 03 20:08:34 hmm, I would rather set the width of the EditText and have the margin be whatever it is Jun 03 20:09:16 to some degree android layouts are a lot more like html than anything else. Things are relative because there are many many screen resolutions. Jun 03 20:09:46 there's a certain degree of letting go, especially in basic forms-style activity layouts, that will make your life a lot simpler. Jun 03 20:09:50 vozz, you're using ArrayAdapter or something else? Jun 03 20:10:07 timemage: Something that extends ArrayAdapter Jun 03 20:10:34 fixpost, I have a feeling you haven't read: https://developer.android.com/design/style/metrics-grids.html Jun 03 20:10:38 jasta, yes and no :) Jun 03 20:11:12 but fine-tweaking like that is done on case-by-case basis mostly, since 1px line can easily be too thin on highdpi devices Jun 03 20:11:30 The order in which display objects are written in the xml file is how they appear on the stage correct? The first objects in xml show at the bottom of the zindex? Jun 03 20:11:52 2 week old here so don't hate Jun 03 20:11:53 petecouture, depends on viewgroup but rule of thumb is like that yes Jun 03 20:12:00 thank you Jun 03 20:12:12 petecouture, note that only FrameLayout and RelativeLayout allow items to cover each other :) Jun 03 20:12:13 petecouture: beware some stuff ignores zbuffer, like texturesurface Jun 03 20:12:14 The damn playback screen won't show up Jun 03 20:12:16 vozz, i suspect one of your methods is supposed to call the base class method or directly call the other half of the object observer pattern. maybe the observer isn't being registered. Jun 03 20:12:34 dragorn, TextureView takes zorder in account, SurfaceView doesn't Jun 03 20:12:41 Mavrik: You probably just saved me a huge headach later tonight Jun 03 20:12:52 I'm moving from the core technology of the app to view display stuff Jun 03 20:12:55 :)) Jun 03 20:13:00 Mavrik: did I swap them in my head? Could be. Jun 03 20:13:01 petecouture, there's a huge warning in SurfaceView doc Jun 03 20:13:09 vozz, what does your arrayadapter extension do differently from the ordinary one? Jun 03 20:13:10 dragorn, probably, TextureView is the new slower in 11+ Jun 03 20:13:23 petecouture, it can only be rendered behind everything or over everything. Jun 03 20:13:30 oh Jun 03 20:13:36 can you have two at once stacked? Jun 03 20:13:57 http://pastebin.com/AG0r2hUW Jun 03 20:14:15 timemage: the constructor but that calls super() and getView Jun 03 20:14:23 Inside each frame layout I add two extended surfaceiew classes Jun 03 20:14:25 timemage: I can link you the code if you like Jun 03 20:14:27 one for recording and one for playback Jun 03 20:14:38 Playback should be higher on the z index then Recording Jun 03 20:14:44 but I can't get it to display Jun 03 20:14:45 Mavrik: oh right. surfaceview didn't respect Z, and textureview didn't allow cancelling draw ops on destroy which kept crashing one of the native graphics libs Jun 03 20:14:56 mhm Jun 03 20:15:03 Mavrik: that wasn't a good month :P Jun 03 20:15:10 thing is that SurfaceView is just a framebuffer being rendered either after all views or before all views Jun 03 20:15:28 and TextureView is a separate buffer being composited together with other views (which gives performance penalty of course) Jun 03 20:15:31 vozz, sure, i'll look at it. you my get better help out of others here though. Jun 03 20:15:46 petecouture, you can only stack textureviews Jun 03 20:15:50 not surfaceviews Jun 03 20:15:53 shit Jun 03 20:15:59 timemage: here is the adapter code: https://github.com/Astonex/Antox/blob/restructure-and-ui-change/app/src/main/java/im/tox/antox/adapters/ChatMessagesAdapter.java Jun 03 20:16:03 probably all hell will break loose if you even try to initialize multiple surfaceviews. Jun 03 20:16:13 Well it seems to work now Jun 03 20:16:20 i've had 2 surfaceviews in 2 fragments in the same layout Jun 03 20:16:22 that worked fine Jun 03 20:16:23 Just the recorder is the only thing that shows up Jun 03 20:16:38 it actually didn't show any problems until I tried to use showcaseview as a tutorial step Jun 03 20:16:42 dragorn, hmm, I had issues with them (blinking, stuff not properly rendering on some devices) Jun 03 20:16:43 dragorn did they overlay? Jun 03 20:16:47 petecouture: nope Jun 03 20:16:57 petecouture: nothing overlapped; once it did, the sv always drew on the top Jun 03 20:17:00 on some devices the OGL driver crashed :) Jun 03 20:17:04 timemage: and the code that updates the view is in the function updateChat() here: https://github.com/Astonex/Antox/blob/restructure-and-ui-change/app/src/main/java/im/tox/antox/fragments/ChatFragment.java Jun 03 20:17:18 See I started this a week ago with trying to create my own movie encoder Jun 03 20:17:44 Having not known Android then, I realized it was a mistake. NDK's FFMpeg building Jun 03 20:18:01 there's whole MediaCodec API Jun 03 20:18:09 So now I've been asked to back peddle to see if I can't just get basic recording / playback done Jun 03 20:18:38 why do you have two surfaceviews anyway? Jun 03 20:18:53 also, why are you even bothering with Android 2.3 for something problematic as video? Jun 03 20:19:05 Mavrik: What i was doing before is accessing the raw camera buffer, sending each frame to an GLSurfaceView, then doing OpenGL filters on each frame Jun 03 20:19:27 that was probably slow Jun 03 20:19:27 So you can do things like adjust the sateration, hue, etc... of the video feed Jun 03 20:19:50 That was easy because I spent 9months learning OpenGL and doing it on iOS Jun 03 20:19:57 if you haven't seen this: https://github.com/google/grafika Jun 03 20:19:59 timemage: I think I see what's going on, the getView is getting stuff from "data" in the adapter, that doesn't get updated Jun 03 20:20:13 But then I needed to take that new video and encode it Jun 03 20:20:31 Since the recorder only links to a camera and not a framebuffer Jun 03 20:20:43 I had to go to FFMPeg which ment NDK Jun 03 20:20:48 such a headache Jun 03 20:20:58 O.o Jun 03 20:21:22 I think you overcomplicated it Jun 03 20:21:28 Nice library but I'm already doing all that Jun 03 20:21:31 there shouldn't be a reason for ffmpeg in that. Jun 03 20:21:36 vozz, hmm, isn't updateChat create a new data ArrayLit each time? Jun 03 20:21:44 petecouture, that's googles example library on how to do stuff you want.... Jun 03 20:21:56 including OGL rendering that isn't slow as molasses :P Jun 03 20:22:05 grafika Jun 03 20:22:14 The renderign wasn't slow at all Jun 03 20:22:17 it was really good Jun 03 20:22:27 It's just the saving the new recording I couldn't figure out Jun 03 20:22:53 timemage: Yes, but it's then all added to the adapter with .addAll(data); Jun 03 20:22:56 Simultaneously draws to the display and to a video encoder with OpenGL ES, using framebuffer objects to avoid re-rendering. Jun 03 20:23:07 vozz, look at addAll here https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/ArrayAdapter.java Jun 03 20:23:35 hmm Jun 03 20:23:42 that is what I was trying to do Jun 03 20:23:44 lemme take a look Jun 03 20:23:49 vozz, it would seem your calling the arrayadapter's addAll rather than your own, and it' modifying an array in the super class (err object) that doesn't have anything to do with where you're storing your messages. Jun 03 20:24:29 should I be overriding the addAll? How come clear() works? Jun 03 20:27:14 vozz: call clear() and addAll() on your collection, not on the adapter, call notifyDatasetChanged() on the adapter Jun 03 20:27:18 vozz, not entirely sure. but if i think about it long enough, i imagine i'll know. it would seem that keeping your own array is a bad idea. at least so long as you're going to have ArrayAdapter as a parent class. Either need to find some way to have your subclass use ArrayAdapter's mObjects member or otherwise don't base on ArrayADAAPTER. Jun 03 20:27:35 birbeck: I'll try that, thanks Jun 03 20:27:45 gah Jun 03 20:27:52 if you have your own collection, DON'T USE ArrayAdapter Jun 03 20:28:05 it'll just lead to these issues you have and tons of confusion Jun 03 20:28:13 extend BaseAdapter directly and feed it from your collection Jun 03 20:28:18 if you have your own collection, you usually extend BaseAdapter Jun 03 20:28:29 Mavrik, that's more or less where i'm trying to get him to go. Jun 03 20:28:51 Ah, I'll do that then. Jun 03 20:28:54 Sometimes I think ArrayAdapter is there just to confuse the heck out of newbies Jun 03 20:28:59 :( Jun 03 20:29:07 it's not like it's actually useful in any realworld situation :P Jun 03 20:29:13 vozz, what does this subclass actually do for you though? Jun 03 20:29:14 thanks for all the help Jun 03 20:30:00 it's been quite some time since i've used a built-in adapter Jun 03 20:30:31 "Within the Activity that hosts this layout, the following method handles the click event:" - what if I am in a fragment? that's where I want to handle the click, should i dispatch to the current fragment somehow? Jun 03 20:30:34 vozz, i mean, provider it was working correctly, what would be the point of this over using ArrayAdapter directly? Jun 03 20:30:40 though if you are simply using a built-in adapter and view, then the same process should still work Jun 03 20:30:42 vozz, provided, rather. Jun 03 20:30:46 Doesn't help that the ArrayAdapter docs tells you to override getView Jun 03 20:30:56 mhm Jun 03 20:31:07 which usually leads to having data in ArrayAdapters list and your own list Jun 03 20:31:14 and much confusion when one or the other doesn't update Jun 03 20:32:43 timemage: I'm not the only dev on this and it was hacked together really fast, I don't really know. Jun 03 20:32:58 vozz, might be worth asking. Jun 03 20:33:26 I think it was just so we could use something other than just a TextView Jun 03 20:33:32 we were all new to android devving Jun 03 20:35:28 vozz, right, but it would seem you don't need to anything with the data. only overriding stuff having to do with the view, and a minor change at that. the other way to go about it would be to make yourself a content provider and user a cursor adaptor. Jun 03 20:38:30 timemage: How do you extend an arrayadapter and stay able to access it's internal data store? Jun 03 20:39:54 vozz, "To use something other than TextViews for the array display, for instance, ImageViews, or to have some of data besides toString() results fill the views, override getView(int, View, ViewGroup) to return the type of view you want" is in the doc. for ArrayAdapter. i don't think i've done this before though. Jun 03 20:40:25 Mavrik: Hmm so this tool they built is cool and definately helps me figure out some stuff, but not the recording after processing part. They're only able to save the prefiltered media Jun 03 20:40:58 I have no idea what you're talking about. Jun 03 20:41:23 vozz, https://devtut.wordpress.com/2011/06/09/custom-arrayadapter-for-a-listview-android/ Jun 03 20:41:44 I'm talking about taking a single frame of the video and running filters on it Jun 03 20:41:59 then taking the post filtered media and generating a video from it Jun 03 20:42:29 and... how is that different from that FBO example? Jun 03 20:42:31 The examples in that code they gave show something like what I'm doing only they're recording the video before they filter it Jun 03 20:43:06 you're trying to take video from file_ Jun 03 20:43:07 ? Jun 03 20:43:15 No I'm recording live video Jun 03 20:43:20 processing that video live Jun 03 20:43:22 and recording it Jun 03 20:43:41 and this example takes video from camera, runs it through shaders and encodes it to file: https://github.com/google/grafika/blob/master/src/com/android/grafika/RecordFBOActivity.java Jun 03 20:43:43 vozz, find Item i = objects.get(position); in their implementation of getView. see how they extract each part and render it how they choose into their own custom view. Jun 03 20:44:05 When I tested it, it didn't save the video post shader Jun 03 20:44:07 only pre Jun 03 20:44:55 well they clearly save a content of a FBO Jun 03 20:45:05 which can have anything there. Jun 03 20:45:33 Can animated gifs be used for loading icons? Jun 03 20:46:29 GEEGEEGEE, there is no animated gif support in android as such Jun 03 20:46:47 Mavrik: True... hmm if only my phone wouldn't constantly crash... Jun 03 20:47:00 Do you know what I would need to use if I wanted to for example have a animated dog act as a loading bar Jun 03 20:47:02 or somethign similar Jun 03 20:48:20 http://lpaste.net/105040 <- I used that xml to create a rounded corners button in my code. But how do I do to create that button in xml? Jun 03 20:48:20 vozz, notice that the objects member is not different from that of ArrayAdapter. it's just a reference to the same data. if it were me, i probably wouldn't have done that. would just use the ArrayAdapter's getItem instead and get rid of ItemAdapter's private ArrayList objects; Jun 03 20:49:11 It seems strange to have the same data in two places Jun 03 20:49:31 vozz, right. so stop doing that =) Jun 03 20:51:09 I think I see what you mean, calling super.getItem(position) instead of getting it from data Jun 03 20:51:15 hopefully this works :) Jun 03 20:52:50 vozz, yes. technically they're not putting it in two places in that example either. they're just keeping an extra reference around for the list. imo, just one more thing to get out of sync. Jun 03 20:55:39 Using dp, if everything fits on my phone, should it (at least theorhetically) then fit on every other phone as well? Jun 03 21:00:10 Mavrik: Thanks for the link man. You might ave saved me a big headache down the road! Jun 03 21:12:15 if you make the player first choose the nbr of players and nbr of questions, then fill in the names of the players, and you do this in 2 different views, would that be 2 different fragments or would you just clean the view between the input? Jun 03 21:20:53 clean the view? Jun 03 21:21:23 probably the best approach is to use two fragments, but you can hide/show view elements Jun 03 21:52:02 debugging always makes me want to drink. Jun 03 21:52:25 http://paste.ubuntu.com/7583216/ - why the adb can't find the android connected to usb? Jun 03 21:52:32 Strange, I find debugging to be one of the more interesting parts of programming Jun 03 21:52:53 it’s probably because I’m a control freak. Jun 03 21:53:00 I don’t like not understanding wtf is happening. Jun 03 21:53:27 IamTrying: do you have the correct drivers installed? Do you have developer mode enabled? Jun 03 21:53:47 i mean, a little nullptrexception here and there is fine. it’s the ones I have to bang my head against for an hour that get me. Jun 03 21:54:47 paralith: I'm a control freak too, in programming anyway, but I enjoy the challenge of finding out why something doesn't work. Much more fun than implementing stuff that I already have planned out in my head Jun 03 21:55:15 Thorbear: Where do you enable it ? Settings > Developer options > ?? but this phone does not show me such option at all. Jun 03 21:55:21 ha, I’m basically the opposite. I get great satisfaction out of building the implementation. Jun 03 21:55:58 IamTrying: open system info, tap the Build number 7 times Jun 03 21:57:12 It was 7, right? I don't even remember, just tap it until it says "developer mode unlocked" Jun 03 21:57:36 Mavrik: Do you reuse SurfaceViews between recording and playback or should you destroy them when ever you destroy their Display? Jun 03 21:57:43 Hello world! Jun 03 21:57:48 Thorbear: its now saying i am a Developer Jun 03 21:58:06 IamTrying: you now have Settings > Developer options Jun 03 21:58:26 I've dug around a bit into the ShareActionProvider, and subsequently the ActivityChooserView --> ListPopupWindow, to figure out how to do that "Show all" list expansion. Jun 03 21:58:37 Great thanks Thorbear for the magic :) Jun 03 22:02:26 does Android Studio use maven? Jun 03 22:02:50 Gradle by default Jun 03 22:02:54 but it supports Ant and Maven too Jun 03 22:03:17 awesome :) Jun 03 22:03:22 cheerss Jun 03 22:13:19 hello am i right in assuming HTML geolocation watchposition continue’s working even upon application “minimize” in a webview Jun 03 22:13:25 that seems to be the case in my testing so far Jun 03 22:14:22 how can I go from 1 to A, 2 to B without a big lookup table? Jun 03 22:14:45 in php? Jun 03 22:14:47 i bet there is some simple trick to do this, usin ascii Jun 03 22:14:49 Java Jun 03 22:15:00 php is even you go $var=“a” $var++ lol Jun 03 22:15:13 it even does double transition Jun 03 22:15:28 i mean i want intToChar(1)=>'A' Jun 03 22:15:31 i implimented my own function to do exactly what u want .. i dont have it any more though :( Jun 03 22:16:14 well if u want to do 12345 Jun 03 22:16:19 you use a lookup table Jun 03 22:16:38 fixpost: char and int are more or less interchangable, just ass 97 or so and you'll get 1=>a and 2=>b Jun 03 22:16:44 just add* Jun 03 22:17:03 thats pretty cool Jun 03 22:17:20 add 97? or subtract 97? Jun 03 22:17:25 add Jun 03 22:17:50 I think it is 97, but I don't remember the ascii table by heart Jun 03 22:18:18 A=97 Jun 03 22:18:23 a=87 Jun 03 22:18:27 A = 65 Jun 03 22:18:39 fixpost, (int)"a" Jun 03 22:18:42 and subtract. Jun 03 22:18:49 and remember that A and a have different ASCII codes. Jun 03 22:21:34 Hi, when I'm trying to build project I got Unresolved dependencies: Error::app/libs/androidplot-core-0.6.1.jar: (double-click here to find usages.) I have no idea why because I use this lib in project . . . Jun 03 22:22:16 Obviously my project doesn't see my library but I hoped that it will after gradle sync . . . Jun 03 22:23:43 When switch a surface holder around from a recorder to camera or media player. Should you set null to the previous holder first? Jun 03 22:26:00 vozz, just for the hell of it, i made my own. Jun 03 22:26:21 timemage: awesome :) Jun 03 22:26:33 can I see? Jun 03 22:27:16 vozz, yeah, i'm not used to posting entire projects, so, not sure the best way. a single java file and the layout files should do. Jun 03 22:27:49 vozz, actually if you want msg me. i can give you an address to my server. Jun 03 22:28:33 timemage: you could pastebin them if it's just a couple files Jun 03 22:28:45 okay. Jun 03 22:34:00 vozz, http://ideone.com/PmKw8r Jun 03 22:36:42 vozz, i'm guessing there's a way to get rid of DUMMY_VIEW_RESOURCE_ID, speaking of which, sorry about the spelling/typoing. Jun 03 22:37:04 vozz, back in half hour or so. Jun 03 23:00:38 hi guys Jun 03 23:00:55 is android studio better than adt (eclipse bundle)? Jun 03 23:01:56 misteriously, an emulator is starting in portrait (ok) but with content rotated Jun 03 23:03:32 h4k1m: in my experience this channel is divided on that issue, I'd say Android Studio is better, but others find it "not mature enough yet". Jun 03 23:04:22 Thorbear, Im using adt only because Im used to eclipse but I find a little bit annoying sometimes Jun 03 23:06:00 i'd i can't get my code appearance (formatting) the way i get it in ADT Jun 03 23:11:01 as a follow-up on the emulator problem above: hw.keyboard=no then restarted emulator (orientation ok), then hw.keyboard=yes and orientation still ok Jun 03 23:11:19 some hidden force in my computer Jun 03 23:25:16 in Android Studio, if you only plan to have one module do you just name it the same as your project? Jun 03 23:40:38 i'm trying to keep some of my folders constantly in memory, so that my build times increase. this is a proven technique, but i haven't found a good set of folders to use. does anyone have any ideas as to what folders would be best? they should be folders that are used most frequently during building Jun 03 23:40:46 *build times decrease Jun 03 23:45:32 any ideas? for example, it seems like Android\ Studio.app/sdk would be a good one Jun 03 23:46:02 however, i've only just come to android from ios so i'm not super familiar with how building works Jun 03 23:52:26 anyone with an apple dev account wanna mirror http://adcdownload.apple.com/Developer_Tools/command_line_tools_os_x_10.10_for_xcode__june_2014/command_line_tools_for_osx_10_10_june_2014.dmg for me? Jun 03 23:54:57 anyone know if swype/swiftkey etc runs as a single-instance in android? Jun 03 23:55:32 shingshang: afaik yes, but don't quote me on that Jun 03 23:55:39 p_l: cool, thanks Jun 04 00:01:56 shingshang: from my understanding, IMEs are loaded by system ui using the service interface (akin to plugins) Jun 04 00:06:09 mornin' Jun 04 00:07:09 I think I might make my live wallpaper free. Jun 04 00:07:30 It doesn't make me any money, so it seems like it'd be nicer to just have people using it. Jun 04 00:12:56 Nilium, how much do you charge for it? Jun 04 00:13:02 $1.49 Jun 04 00:13:30 Dealing with taxes and all that is unpleasant as well, so it just seems like a pain in the ass to sell anything myself. Jun 04 00:13:41 I was going to ask about tax next Jun 04 00:13:45 ;? Jun 04 00:13:49 :/ Jun 04 00:14:07 I don't make enough for it to really do anything tax-wise, but it's still extra paperwork Jun 04 00:14:19 I was looking into selling, but apparently you need to do all the sales tax yourself Jun 04 00:14:21 globally Jun 04 00:14:32 seems like a major PITA Jun 04 00:14:36 I'd rather just wash my hands of it and see if it gets people using it Jun 04 00:17:55 using location services and bearing and speed are always zero (4.0.4 and 4.1.2 devices) Jun 04 00:19:06 Ok, app's free now. I'm done. Jun 04 00:20:42 Hi there, I am currently trying to run some sort of scheduler that can perform a task in the background of my app. The key is that it must always happen, whether the app is open, on or not. Anyone able to point me in the right direction? Jun 04 00:27:03 i'm trying to keep some of my folders constantly in memory, so that my build times increase. this is a proven technique, but i haven't found a good set of folders to use. does anyone have any ideas as to what folders would be best? they should be folders that are used most frequently during building Jun 04 00:28:12 *build times decrease Jun 04 00:28:12 BjorneSven: look up Services and AlarmManager Jun 04 00:31:41 whomp_: https://unix.stackexchange.com/questions/18844/list-the-files-accessed-by-a-program Jun 04 00:37:30 Hello! I want to simulate in a test that android kills one of my background activities in the stack of activities. That is only to check that if I pressed the back button until I reached the “destroyed” activity, Android recreates it and I don’t miss it. How can I do it? (And some other important question: does it make any sense to test this?) Jun 04 00:37:38 alex_PP thanks a bunch! Jun 04 00:40:18 I wrote some code that uses a broadcast receiver to kill one activity in the stack. When I press the back button, the Activity is not there. I guess that’s the expected behaviour, because I killed it, not Android OS. And therefore my question above. Jun 04 00:45:17 alex_PP, i like the idea, but i'm on mac Jun 04 00:47:49 whomp_: strace will be probably available anyway, or 'truss'. Also, dtrace Jun 04 00:48:27 p_l, dtruss -f says it follows children, is that what i want? Jun 04 00:49:40 might be. Jun 04 00:49:54 the only system with dtrace I have has truss Jun 04 00:50:35 Just spent another $130 on a new phone but now I got a tablet too... Jun 04 00:50:37 I think i spent too much Jun 04 00:57:08 hey folks, is there a way to run the http://flash-all.sh/ script on my nexus without it having to destroy my existing data? I tried just taking out the -w but I still seem to have lost my account info Jun 04 01:02:49 mkjackson1: I believe this channel is for app development, not for things like flashing... Jun 04 01:07:11 mkjackson1: now here's the problem where this ISN'T the channel for that, but I know the answer. So I won't be a jerk. Take out the '-w' and the line that flashes userdata - basically it just overwrote your user partition with the empty image. Jun 04 01:07:32 mkjackson1: but future flashing/root questions would be better homed on #android-root Jun 04 01:08:46 good guy dragorn Jun 04 01:35:05 I am trying to make a custom video view that uses the entire screen layout (behind navigation and status bar). The problem is that the controls (using MediaController) are also covered by the navigation bar. I already set the fitsSystemWindows flag to true for the MediaController, but it doesn't seem to have any effect. Any suggestions are greatly appreciated. Jun 04 01:40:31 You're probably going to have to build a custom controller Jun 04 01:49:25 I thought that will be the case petecouture, I was just hoping there will be an easier way out :) Jun 04 01:49:59 It's not that bad lol Jun 04 01:50:22 Just built a recorder/playback view over the course of yesterday and today Jun 04 02:16:13 How to use intent filter to filte a text like: "text ******** text" ? Jun 04 02:25:25 If I write to external storage, am I limited to the file naming/path length limits of the filesystem I'm writing to, or has android emulated around that? Jun 04 02:25:42 tsp: the former Jun 04 02:25:48 assume FAT32 Jun 04 02:45:37 thanks Jun 04 02:46:29 Welcome Jun 04 02:52:14 Can I tell ant to exclude one part of my project from the final output? I want to start testing with robolectric, so my tests will probably be in src\packagename along with the rest of my app Jun 04 02:55:48 A bit of an update on the status of my phone not being picked up properly by my computer: I tried connecting my phone to another computer, and it does the exact same thing where first it connects as an "Install Device" then after a minute it connects as a "Media Device" and the Safely Disconnect icon in my taskbar disappears for it. Jun 04 02:56:08 And on my dev machine here, it adb doesn't pick it up. Jun 04 02:56:30 I tried connecting the phone to my network and doing adb connect, and it doesn't pick it up. Jun 04 02:58:38 Da_Rhyno: Do you have USB debugging turned on? Jun 04 02:58:51 tsp - Yeah. **** ENDING LOGGING AT Wed Jun 04 02:59:58 2014