**** BEGIN LOGGING AT Sat Aug 02 03:00:00 2014 Aug 02 03:01:17 If he wants the drop shadow, that BatchStepSensor has a 9patch file made for the background with a nice shadow Aug 02 03:02:09 what is BatchStepSensor? want shadow, use a 9patch, or layer-list Aug 02 03:03:05 layer-list seems to have redraw issues tho, so either 9patch, or a simple below whatever view with height 1-4,5,6,7,8dp with gradient alpha Aug 02 03:03:30 background* Aug 02 03:05:29 canvs2321: It’s just some sample code from Google for Android. It’s just a sample on using some step sensor, but it contans a full package with a CardLayout and card objects. Aug 02 03:06:32 how do you think apps like facebook do the popup but with the little arrow (like a comic dialogue) pointing to whatever spawned it Aug 02 03:06:35 If that is visibly what he'd/she'd like, then go for it, otherwise it isn't hard to come up with something that works, minus having to use a library Aug 02 03:06:49 mattblang: screenshot? Aug 02 03:07:02 canvs2321 sure 1 sec Aug 02 03:07:43 http://android-apps.com/wp-content/uploads/2011/12/facebook-android-app-update.jpg Aug 02 03:07:50 canvs2321 ^ Aug 02 03:08:10 how many hours will the mobile battery stand if i continously watch for its accelerometer and gyro values > Aug 02 03:08:10 ? Aug 02 03:08:21 that could be a popupWindow, with a little triangle drawable pointing to its anchor Aug 02 03:08:28 wow, that’s an old facebook app? Aug 02 03:08:46 i am doing a POC, and do not have a mobile device with me to test it... so any approx values from your side will help me complete the document and ask for a device Aug 02 03:08:48 kindly help Aug 02 03:08:49 AdamJB that is the one right before this last big update I think Aug 02 03:09:16 solofight no way to tell, maybe a 1-2 hours ? maybe more. depends Aug 02 03:09:25 g00s: depends on ? Aug 02 03:09:31 too many things Aug 02 03:09:31 mattblang: if only worried about a actionbar/top toolbar, then simply have a popupwindow, have it's background set based on x postion as y would be static Aug 02 03:09:47 g00s: first of all thanks for replying Aug 02 03:09:52 mattblang’d agree with g00s , anchor and some drawable, maybe override onDraw or something. Drawing a path out for the triangle on a canvas is quite simple. Aug 02 03:10:08 can you please quote some params which it depends on Aug 02 03:10:09 few Aug 02 03:10:17 g00s: ^ Aug 02 03:10:22 hmm * I agree with* ... Aug 02 03:10:38 solofight battery capacity for one, what other apps are running (because you have the phone awake), etc Aug 02 03:10:41 otherwise if y is an issue you have to do some math on hey if i have enough y space load below, if not, then get top y of view that clicked, and load the popup with arrow on bottom Aug 02 03:11:39 g00s: apart from running apps (assume there is none) are there any other system parameters which will come into play ? Aug 02 03:12:31 solofight this is why http://www.androidpolice.com/2013/10/31/kitkat-feature-spotlight-new-step-detector-and-step-counter-low-power-sensors-other-battery-saving-optimizations/ Aug 02 03:13:04 g00s: recently i read a user story about how iphone even after switching off due to low battery, it was recording its gyro and accelerometer values for several hours ..... which means that it requires so very little battery to monitor... is it the same case for android ? Aug 02 03:13:24 g00s: oh wow :P i was quoting an example of similar kind :D Aug 02 03:13:32 g00s: thanks for the link Aug 02 03:13:35 * solofight reading Aug 02 03:14:00 solofight: I would guess it would depend on the actual device hardware itself, and not related to the OS. Aug 02 03:14:21 i think its both, but too many unknowns Aug 02 03:14:49 anyone here with experience modding systemui.apk for touchwiz? just trying to set the quick settings height to 0 (to hide it) Aug 02 03:15:07 zone117x please read topic Aug 02 03:16:30 solofight: The iPhone 5S has a special chip, called the M7, that’s specifically built for low power sensing. Aug 02 03:17:37 AdamJB: but if the OS is running fewer tasks and take less compute cycles to perform one task then the battery consumption will be less - right ? Aug 02 03:18:30 solofight: what? Aug 02 03:18:31 solofight you will have to measure Aug 02 03:19:26 solofight: It’s quite complicated.. There’s some new cool battery monitoring tools so you can see how much power you’re using: https://github.com/google/battery-historian Aug 02 03:20:15 solofight: what with your knowledge, gives your the ability to ask such a question. How long you been coding for Android? Aug 02 03:20:33 AdamJB: oh thanks - yes i read about the M7.. you are right Aug 02 03:20:57 you read about IOS so he's right about Android? Aug 02 03:21:03 AdamJB: similar to M7 theres nothing on the make for android phones till now ? Aug 02 03:21:41 canvs2321: i am a fresher to android programming Aug 02 03:21:50 solofight: I have no clue if an Android phone out there has something like the M7. Not something I researched yet. Aug 02 03:22:09 solofight: Exactly, so your questions aren't valid :/ Aug 02 03:22:37 canvs2321: i do not want to get into a ios vs android discussion here, was quoting to highlight the feature only (forgot the name M7 and AdamJB rightly pointed it out) Aug 02 03:22:54 quoting, without testing Aug 02 03:22:58 test! Aug 02 03:23:49 I think he wanted to know if something similar existed on Android. Aug 02 03:23:57 canvs2321: sorry, like i told in the begining of the discussion, i do not have a device to test and the entire aim of asking these questions is to prepare a better POC to ask for a device :P Aug 02 03:24:14 AdamJB: ++ Aug 02 03:24:17 he wanted to know battery life......... Aug 02 03:24:30 based on a obscure question........ Aug 02 03:24:39 Ah, so you’re requseting your bosses to buy you a nice android device with good sensor capability ? Aug 02 03:25:07 AdamJB: thank you... but is there any physical constraint why it wont be possible for android phones getting a chip like M7 ? Aug 02 03:25:42 There is no wanting, just hey, i do IOS, so Spoonfeed me unrealistic data for android, so i can suck my bosses d... Aug 02 03:26:01 solofight: soon M7 for Android Aug 02 03:26:11 solofight: no, someone just needs to find the market value in it and do it. Maybe Samsung might add it. Aug 02 03:26:44 AdamJB: i have a business idea, but the more i thought about it - i understood that the application even if finished quickly wont be of much use to end users as it will drain the battery (as gyro and accelorometer values are continously monitored).. so before they ask about it i want to address the point and ask for a device which can support the same for development Aug 02 03:26:59 Honestly, there’s nothign special. You might want to checkout the new wearable watches , they may have a sensor built in already. Aug 02 03:27:29 oh Aug 02 03:27:44 solofight: what is your battery drain issues? You know in Android alot of the times you can swap right? Aug 02 03:28:07 solofight: you use services? Aug 02 03:29:01 canvs2321: like i said, i am a fresher, the highest level of android programming i did was executing examples Aug 02 03:29:17 What i'm saying is don't assume Aug 02 03:29:28 learn the flow Aug 02 03:29:43 canvs2321: even when swapped you can monitor those values ? Aug 02 03:29:58 AdamJB: thanks a lot for the time and knowledge share Aug 02 03:30:07 cheers Aug 02 03:30:11 you can monitor any value, you have to accept lifecycles Aug 02 03:30:36 AdamJB: you think Samsung devices are good builds ? sturdy ? Aug 02 03:30:43 ah shit Aug 02 03:31:13 no, i hate samsung in general, i like my iPhone 5S :) Aug 02 03:31:24 even more ah shit Aug 02 03:31:34 lol Aug 02 03:31:54 solofight: realize you aren't coding per producer, you are coding for Android Aug 02 03:32:10 simply learn lifecycles, and succeed Aug 02 03:33:09 aye, lifecycles are good to know. Aug 02 03:33:22 yes Aug 02 03:33:40 and there is sooooo much more Aug 02 03:34:26 it's simple, if concept of java is known, or atleast in the background Aug 02 03:35:11 solofight: i just onPaused you, what is your counter onResume? Aug 02 03:36:43 make sure to differentiate between home button and back button Aug 02 03:36:59 home-> minimize back-> quit Aug 02 03:37:22 canvs2321: http://developer.android.com/training/basics/activity-lifecycle/index.html correct place to learn about it ? Aug 02 03:37:38 canvs2321: nice one on the onPause and onResume :P Aug 02 03:37:52 solofight: that maybe a start. You have to learn the Android Process Aug 02 03:38:32 i'm just saying your question about sensors, are simple, battery draining isn't an issue as long as you don't break the rules Aug 02 03:38:44 canvs2321: and the rules are ? Aug 02 03:38:52 follow them Aug 02 03:39:12 don't think you'll drain based on logical responses Aug 02 03:39:30 take all IOS memories and delete them Aug 02 03:39:34 start fresh Aug 02 03:40:34 canvs2321: process and lifecycle is what i need to focus right Aug 02 03:40:35 thanks Aug 02 03:40:43 will start learning now Aug 02 03:40:55 is there a way i can test this in a emulator ? Aug 02 03:41:07 * solofight hope there is a way (fingers crossed) Aug 02 03:42:09 there is always a way to test emulator. if no device, check out GenyMotion, otherwise, use the AVD and just keep focused and problem solving capable based on what you wanna do, and why it may fail, and how to fix Aug 02 03:42:18 solofight just ask your boss if you can borrow his phone :) Aug 02 03:42:25 surely somebody has an android device ;) Aug 02 03:42:34 google.com is my best friend, alot of the times leeds to stackoverflow but i always find the answer Aug 02 03:43:51 g00s: he has an iphone.... often irritates me saying iphone is the best for reasons like tap a phone number on a web page and that automatically opens a dialer to call that number ! ! ! ! Aug 02 03:43:57 i may have meant leads, but leeds is always here :) Aug 02 03:44:17 g00s: i phone is the best - i ask why ... because its the best :P Aug 02 03:44:38 solofight, does that not work on android? i think it does, unless patents of Apple being douches took it Aug 02 03:44:48 there is nothing irritating than working under a stupid but thinks he is a genius kind of boss Aug 02 03:44:58 iphone is the best? You my aswell /quit Aug 02 03:45:07 canvs2321: it does... it works on old symbian phones Aug 02 03:45:36 i have a n900 which runs an orphaned os by Nokia called maemo .... thatttt.... can do the same Aug 02 03:46:12 I know Apple tried to patent # Links awhile ago, Fuck iOS Aug 02 03:47:14 canvs2321: no wonder in 2023 apple patents the apple fruit and sells them version by version on preebookings Aug 02 03:47:53 Dunno what you just said, but this is #android-dev, so..... Aug 02 03:47:59 but i do like the fact they pump in lot of money for innovation... (and ofcourse lawsuits :P) Aug 02 03:48:11 canvs2321: :) oh yes Aug 02 03:48:13 sorry Aug 02 03:48:14 you get a portion of that $? Aug 02 03:48:53 canvs2321: would have been a rich bugger Aug 02 03:49:14 no innovation, just failures trying to skim the system, as anyone i guess. Just sad that so many ppl love it based on being idiots Aug 02 03:49:29 thanks canvs2321 for the time and knowledge share.. will read, try and get back here if i get confused again :P Aug 02 03:49:49 and sad based on me being a hater that i didn't learn to scam ppl first :/ Aug 02 03:50:27 finger print reader was a longing for me 3 years back ... Aug 02 03:50:52 does any android phones have it now ? Aug 02 03:50:53 Users are idiots, but being able to scam them takes a special kind Aug 02 03:50:57 yes Aug 02 03:51:18 ok, will look for it.. Aug 02 03:51:20 thank you Aug 02 03:51:43 yep, just read, then read, then read, then read, then compile&profit! Aug 02 04:17:41 baksmali ftw Aug 02 04:17:45 all I have to say Aug 02 04:41:22 Thanks for your help. Aug 02 04:44:17 capella this is cool! https://addons.mozilla.org/en-US/firefox/addon/onetab/?src=hp-dl-upandcoming Aug 02 04:46:23 :D Aug 02 04:48:21 capella what editor / ide do you use for Js development ? Aug 02 04:57:22 g00s: Same as I use for everything, Sublime-Text Aug 02 04:57:31 ah Aug 02 04:57:46 i have ST running aw we speak :) Aug 02 04:59:33 Ever hear of ISPF/2 ? Aug 02 04:59:45 no Aug 02 05:00:03 capella any resources on isomorphic Js apps ? Aug 02 05:00:21 heh - >old< mainframe programmers editor ... translated to the PC world ... still use it from time to time Aug 02 05:01:32 capella my buddy at work would always show me mainframe stuff, it was like a parallel universe were time flowed backwards, things were upside down in the mirrors, etc Aug 02 06:32:36 i have an async task that downloads an xml file and then a class that parses that. i need to wait for that xml file to download before i can parse it. how do i handle it? my first thought is to somehow 'wait' on the async to finish but that seems to defeat the point of an async task. isthere something else to use since i cant do the http request in the main thread Aug 02 06:35:15 hey hey hey Aug 02 06:35:19 its FAAAT albert Aug 02 06:45:53 aaearon: you can do it in onPostExecute of asynctask Aug 02 07:19:42 is there any way to deal with the android L vpn issue? Aug 02 08:09:12 how would i notify an adapter of a dataset change from the onPostExecute() of an asynctask in another class? Aug 02 08:12:10 Do you prefere to develope on a smartphone or a virtual android? Aug 02 08:12:26 I guess developing on a smartphone is loading the app faster? Aug 02 08:12:35 Device. Always. Aug 02 08:13:22 Nilium Not because of debugging, but just because it's faster than with a virtual device? Aug 02 08:13:50 No, because an emulator is just that and doesn't behave the same as an actual device. Aug 02 08:14:22 Mhm I see Aug 02 08:25:07 from my onPostExecute() in a seperate class, how would i call notifyDataSetChanged() on the adapter for my fragment with a listview? Aug 02 08:31:30 Nilium Do you develope on windows or linux Aug 02 08:32:11 I noticed I have to install development drivers from 2011 to actually have my device recognized in eclipse Aug 02 08:32:23 Maybe with linux I don't have that issue Aug 02 08:33:16 I develop on Mac OS. Aug 02 08:33:37 Far as I know, drivers are only required on Windows. Aug 02 08:34:00 Good to know, thanks. Then I'll reboot to linux and try eclipse there Aug 02 08:34:09 Is there anyway to turn off the screen when outputing through hdmi? Aug 02 08:37:16 Do I have to compile the ADT SDK android bundle on linux myself. On my first search I didn't find a package for it on arch Aug 02 08:38:19 You should download it from the dev site. Aug 02 08:38:29 Or maybe I do just need eclipse? Eclipse is in the official repository of my distro Aug 02 08:38:34 Hmm Aug 02 08:40:10 I can't say anything about Arch because the only distros I used to use were Slackware and Ubuntu. And technically Mandrake.. Aug 02 08:40:18 I'll check the bundle on the dev site out. Maybe it's precompiled like the one I downloaded on windows Aug 02 08:40:27 It should be. Aug 02 08:41:46 Ye, it's precompiled, great. Aug 02 08:42:08 Do you manually redownload the sdk bundle, since I guess automatic updates won't work with precompiled software Aug 02 08:43:29 Once you have the tools installed, it has a tools updater and specific SDK versions can be downloaded using the android tool. Aug 02 08:43:39 I don't use Eclipse, so I can't comment on whether that will update. Aug 02 08:44:03 hi guys, I was wondering if there is the possibility to lock all google services (including google analytics) without a custom a rom. I explain better: my htc one allow to not configure a google account to run the phone, so if I install adaway and I block all google connections, can I be considered "safe"? Aug 02 08:44:25 vixxo: Ask in #android-root Aug 02 08:44:29 ok Aug 02 08:44:43 Nilium: thank you Aug 02 08:54:55 There's actually android dev packaged in arch: https://wiki.archlinux.org/index.php/android#Install_Android_SDK_core_components Aug 02 08:54:58 http://pastebin.com/Th3aqxwY how can i call notifydatasetchanged on my custom adapter from a onpostexecute in another class? Aug 02 08:55:01 But I'll use the precompiled for now Aug 02 08:55:16 Hi all- I'm having difficulties returning the result from exec command, which triggers Sudo app. allowing or granting (meaning sudo app closes) returns to my application but on black screen and nothing happens. - the error i get in between (while superuser app still opened): WindowManager? Starting window AppWindowToken timed out Aug 02 08:56:24 i am still getting the aapt not found error from studio, every build failed. do i need to add the aapt into my path? http://paste.debian.net/113269/ Aug 02 08:58:09 where did the aapt come from? it was not there in older android. life was good without aapt. Aug 02 08:59:31 please tell me how do you get rid of that nast aapt error? Aug 02 08:59:43 nasty*** Aug 02 09:01:42 to me the aapt is bad experiment Aug 02 09:02:12 unnecessary burden, it has nothing to,do with my project source code Aug 02 09:10:36 How many folks here use git? Aug 02 09:10:53 not me Aug 02 09:11:16 my studio isnt easy to setup for me Aug 02 09:11:27 android studio Aug 02 09:11:58 Not sure how that factors into git, but anyway, I'm just trying to figure out how people feel about git's index. Aug 02 09:12:29 Since it only just dawned on me after reading up on hg that maybe I'm insane and it's not super-intuitive but actually confusing for some people Aug 02 09:12:41 Even though I'm still convinced it's great Aug 02 09:13:19 im getting no response to my questions either Aug 02 09:14:20 may i ask if you use android studio and know how to fix aapt error? Aug 02 09:14:24 :) Aug 02 09:19:59 I use IntelliJ. Never seen an aapt error, but I'd recommend doing a clean. Aug 02 09:20:17 When in doubt, clean and rebuild. If that doesn't work, google the error. Aug 02 09:20:24 If that still doesn't work, reinstall the SDK. Aug 02 09:20:44 If that still doesn't work, delete your project files and recreate them. Aug 02 09:21:06 Some of this can be done in a different order. Aug 02 09:21:58 Actually, I did have one aapt error once, but that was just due to me forgetting to follow naming rules. Aug 02 09:28:12 oh ok , thanks a lot , i will try all that Aug 02 09:33:54 Is there a way to wait for reply after another activity is opened from my activity instead of android stating my activity timed out and killing it? Aug 02 09:37:44 I've created a new project and I got MainActivity.java in src/my_package/MainActivity.java. Now I want to add another java file named GMailSender.java. I right click on the folder my_package and created a new file and named it GMailSender.java. Is that correct or do I need to create GMailSender.java as a package or something else? Aug 02 09:38:41 bewees: packages are like folders, if you want to keep that GMailSender.java in another folder, go ahead and create a new package Aug 02 09:40:42 bhagi, Ah I see, thanks. I want a file, so my approach was right I guess. I was confused because the icon for the GMailSender file wasn't the same as MainActivity.java, but that was just because I didn't have had any code yet in GmailSender Aug 02 09:42:46 Just keep in mind that folders are not packages (though Eclipse doesn't like it when people don't have 1:1 folders and packages) Aug 02 09:45:51 any room for "android studio" chat ? Aug 02 09:53:37 Error:Execution failed for task ':app:processDebugManifest'. Aug 02 09:53:37 > Manifest merger failed : uses-sdk:minSdkVersion 8 cannot be smaller than version L declared in library com.android.support:support-v4:21.0.0-rc1 Aug 02 09:54:48 added v4 support lib. why is that error? m new to android studio. please help. Aug 02 10:18:50 Where's MainAcitivity.xml located Aug 02 10:19:56 res/layout Aug 02 10:29:56 Thanks, found it Aug 02 10:41:58 Do I put the from Listing2, Listing3 and Listing4 from this tutorial http://mrbool.com/how-to-work-with-java-mail-api-in-android/27800 into MainActivity.java within public class MainActivity extends ActionBarActivity { ? Aug 02 10:42:44 +code Aug 02 10:48:10 Hm, not sure where to the code from the tutorial, the author doesn't mention that. Putting it into my default class MainActivity results in many errors when running the app: http://dpaste.com/1EAKHNH Aug 02 10:52:32 Can you recommend me a decent tutorial to simply send a mail in java with java's mail api Aug 02 10:56:05 running the app or compiling the app? Aug 02 10:56:54 Hello, I have problem with preferenceactivity and sharedpreference. Why when I get into preferenceactivity. All in sharedpreference changes into string? Aug 02 10:57:16 P.S. maybe I went offtopic ? this is not related to java ? :D Aug 02 10:58:01 post your code since "sharedpreference changes into string" means nothing without it. Someone might then help. Aug 02 10:58:02 rgr, Clicking on 'run as' Aug 02 10:58:38 clicking on what? in what? Show the errors in a pastebin. Aug 02 10:59:15 http://pastebin.com/2aFvxD86 Aug 02 10:59:38 I think I know where is problem Aug 02 11:00:40 bewees: the on bit of advice I can give you is this : programming an android app is not just learning a language. You cant just take an "example" and expect it to run or understand how it hangs togeher. You must run through the Google Android tutorials IMO and get to understand the concepts of what makes an android app. Then you can ask specific questions. Qs like "it wont run" or "how do I program an email app" wont get you much Aug 02 11:00:40 support or help. Aug 02 11:01:33 Leftas: you wouldnt think to say where the issue is in that code? Aug 02 11:01:45 If I am not wrong I am think that eipa = (EditTextPreference)findPreference("eip"); it's in prefsfragment... Aug 02 11:01:55 Make it string ? Aug 02 11:02:07 Have you stepped through with the debugger? Aug 02 11:02:55 There is no line "eipa=". Aug 02 11:03:06 No, I am having problems with debugger. I will post prefsfragment. Aug 02 11:03:37 What do you mean you are having problems with debugger? Set a breakpoint and step through and examine your variables. takes 30 seconds. Aug 02 11:04:07 Breakpoint dosen't get executed in computer, but that line does in phone. Aug 02 11:04:29 nonsense. set a breakpoint at start of function. step through. Aug 02 11:04:37 http://pastebin.com/9vLZYC5y Aug 02 11:04:46 app just dosen' Aug 02 11:04:51 stop and in pc nothing happens Aug 02 11:06:18 what do yo umean "in pc nothing happens"? You are using an IDE like eclipse or intellij? You do know how to debug right? Aug 02 11:08:18 Hi. I'm making an app that snaps pictures, and transfer it to the computer. It works, but the quality is always quite fuzzy. When I use the normal Camer built-in app the quality gets perfect. Aug 02 11:08:26 rgr, Also I think I am unlucky with the sendmail tutorials I checked out so far. I tried 4 different tutorials and all failed Aug 02 11:08:27 I do: p.setFocusMode(Camera.Parameters.FOCUS_MODE_CONTINUOUS_PICTURE); Aug 02 11:08:43 Intellij, Yes... Maybe it's different from .net debugging ? Aug 02 11:09:14 rgr, One worked, but that didn't use Java Mail API, but it uses an existing mail client like google mail on android Aug 02 11:09:24 bewees: go and do the android tutorials then worry about sendmail apps. If you cant even get "run as" to work you need to start from the beginning. https://developer.android.com/training/index.html Aug 02 11:09:54 Leftas: what do you mean "maybe its different from .net debugging"? Are you trolling. Aug 02 11:11:00 I am using a AutoFocusCallback when snapping a picture, but it still gets blurry. Aug 02 11:12:56 NO. Because in visual studio when you set breakpoint, applciation stops and in visual studio shows "step". But when I do in android studio app not stops and still running even when it goes through that line... Aug 02 11:24:08 Should I create GMailSender.java from this stackoverflow post as a class within src/mypackage/ or as a file? http://stackoverflow.com/questions/2020088/sending-email-in-android-using-javamail-api-without-using-the-default-built-in-a Aug 02 11:51:36 has anybody tried to import iosched 2014 source into android studio? I'm getting "Missing Styles" issue when i open any layout file Aug 02 11:54:52 Just a quick question if anyone can answer it... In the Makefile what is the usage of ",," in a path for? Aug 02 11:55:07 synaptics_firmware := $(subst $(srctree)/firmware/,,$(synaptics_img_file)) Aug 02 11:59:32 disregard, I found my answer Aug 02 12:02:21 hello Aug 02 12:03:36 when I activate an it pops up a menu with camera and google drive only, no way to select a file from the filesystem (chrome, 4.4.4) Aug 02 12:04:26 is this intentional or is there a way to fix this behavoir? Aug 02 12:06:38 on another device (tablet with 4.3) there are file managers in the menu Aug 02 12:07:39 O.o Aug 02 12:07:48 if you're talking about document access APIs Aug 02 12:07:59 user must enable advanced mode in the window to get file selection capability Aug 02 12:08:27 I don't recall enabling anything on the tablet Aug 02 12:09:40 so many ways of doing things. Should I be drawing to a bitmap and the blitting that onto a canvas or is drawing direct to a canvas obtained from a surface just as efficient. Aug 02 12:10:38 same behavoir in firefox, so it's not browser specific Aug 02 12:10:44 Thorn, yes. Aug 02 12:10:51 because it's an OS dialog. Aug 02 12:10:52 what is it then, screen size or android version Aug 02 12:10:54 was I unclear? Aug 02 12:11:10 rgr, that really depends on how often do you have to update th eimage Aug 02 12:11:46 Thorn, when researching those things and when you KNOW you have devices with different Android versions, reading those documents is very helpful: https://developer.android.com/about/versions/kitkat.html#44-storage-access Aug 02 12:13:57 not really since I want "fastest" ;) There's a million ways to skin a cat in android graphics it seems and Im trying to minimise allocations etc from the start for obvious reasons. I also wonder if Im better off constructing my own Paint objects for painting backgrounds with a solid colour than calling something Canvas.Draw(color) which I guess probably constructs its own one each time? Aug 02 12:14:21 rgr, you have't answered the real question Aug 02 12:14:47 what's your actual use-case? Are you displaying image once? Does the image change all the time? Is it translating or do you do other processing? Aug 02 12:15:01 Depending on how you handle your rendering there are different ways to achieve it. Aug 02 12:15:44 (e.g. there's no point using ways that agressively cache image in VRAM when you're doing alot of updates because you'll fill up the CPU bus and slow everything down) Aug 02 12:17:14 Mavrik: I'm not sure what you mean by advanced mode, I can't find anything in google Aug 02 12:23:08 https://code.google.com/p/android/issues/detail?id=2519#c310 same problem Aug 02 12:23:16 Hey guys, I've got a non disappearing loading spinner that i don't manually activate anywhere. I've posted a screenshot right here: http://oi62.tinypic.com/2qjdbit.jpg and also posed the question here on SO: http://stackoverflow.com/questions/25063958/automatic-progressdialog-wont-dismiss Aug 02 12:26:04 https://code.google.com/p/android/issues/detail?id=62220 Aug 02 12:28:46 looks like accept="image/*" does the trick Aug 02 12:32:05 ... but only in firefox, not in chrome Aug 02 12:37:57 Mavrik: Im in a tight rendering loop thats throwing bitmaps onto a surface canvas. Sorry, I thought I said that. I'm looking for, simply, the fastest way of wiping the bg with a solid color. Something I would have though straightforward but there seems a thousand way of doing it. Im not sure what you mean by how I handle my rendering : its a thread thats looping, locking a surface then throwing bitmaos onto it, releasing the lock and Aug 02 12:37:57 then doing it all over again. S Aug 02 12:38:34 rgr, OpenGL clear context will be by far the fastest way ever Aug 02 12:39:24 otherwise rendering bitmaps directly to a canvas will probably be fast as well since they will be cached as OGL textures and just copied over when rendering Aug 02 12:39:36 so canvas.drawBitmap Aug 02 12:39:54 it's been awhile since I used a SurfaceView though, so you'll have to measure that :/ Aug 02 12:41:46 https://github.com/walkeriniraq/twitarr/issues/72 Aug 02 12:44:58 ok im not using opengl... and using a bitmap is almost certainly slower than c.drawColor(Color.WHITE); I would have thought. I'll run some tests. Aug 02 12:45:16 rgr, doh yea Aug 02 12:45:27 calling drawColor is certanly faster than using a bitmap :) Aug 02 12:46:55 and then we have stuff like c.drawRect(0, 0, c.getWidth(), c.getHeight(), pausedPaint); or even c.drawColor(Color.argb(0x, 0xff, 0x00, 0x00), PorterDuff.Mode.CLEAR); Aug 02 12:47:03 its endless... Aug 02 12:47:09 very little documentation or guidelines. Aug 02 12:47:43 at one point you will have to check out the source of Android when dealing with high performance stuff Aug 02 12:52:32 well, its not exactly breathtaking high performance but some guidelines would be appreciated. I find checking out out source the worse thing to do because you make assumptions on one implementation. I prefer to program to the API. Anyways , back to google and sorting the good (1%) from the bad in stackoverflow ;) God theres some nonsense in there regarding android programming. Aug 02 12:58:27 Hello Andrudes and Andrulettes. Aug 02 13:06:40 HMMMM Aug 02 13:07:24 I want to prevent my application that uses a databases to no be cleared in the users Application Manager. Aug 02 13:07:46 uh. Aug 02 13:07:47 Why. Aug 02 13:08:03 so users cant clear it unless using the app Aug 02 13:08:05 Why so? Aug 02 13:08:23 But why? Aug 02 13:08:35 basically I only want it to be cleared in the app itselfs, not the users manager, Aug 02 13:08:38 If users want to clear they should be able to. Aug 02 13:08:45 yea in the app though Aug 02 13:08:51 But why? Aug 02 13:09:03 becauses thats just how i want it... Aug 02 13:09:20 byte0x00, it's not possible. Aug 02 13:09:23 Well, good luck then... Aug 02 13:09:27 Hence the questions "why" Aug 02 13:09:32 are u sure Aug 02 13:09:39 hence my answer Aug 02 13:09:39 Yes, thank god. Aug 02 13:09:50 App manager will nuke your datastore. Aug 02 13:10:07 And you can't override that because your application isn't asked a thing. Aug 02 13:11:23 :( Aug 02 13:12:47 That's why we're asking you "why", to see if there's a good reason for your limitation and a way to get around it Aug 02 13:13:06 and "just because I want to" is a crappy excuse for such violation of users expectations Aug 02 13:13:07 well, i keep having this ocd with clearing apps in my manager, and i just thought what if i stored something important in my db app, then it would be gone. Aug 02 13:13:57 mhm, sadly that's up to the user to not fuck up Aug 02 13:14:15 most apps don't store important data locally tho Aug 02 13:14:26 so you just relogin and data gets resynced Aug 02 13:16:26 byte0x00: What 'important data' are you having? Aug 02 13:16:48 a bunch of open source Aug 02 13:16:58 categorizing them by language Aug 02 13:17:28 I highly discourage circumventing the system because it won't be uninstalled with your application. It's also more effort on your side. Aug 02 13:17:33 then ima implement a search query have description match the inserted keywords Aug 02 13:17:48 I don't care what you do with that data! Aug 02 13:18:04 ok Aug 02 13:18:14 ! Aug 02 13:20:34 i ran out of bally Aug 02 13:21:46 flan Aug 02 13:23:19 Show a man a torrent, and you will entertain him for a day, teach a man to torrent and you will entertain him for life. Aug 02 13:23:27 lol nice Aug 02 13:25:04 any ideas why recent tasks on lg g3, galaxy s5 is much less reponsive than the one on htc m8? Aug 02 13:26:11 How do I fix this error: Description Resource Path Location Type com.provider cannot be resolved to a type GmailSender.java /tremail/src/com/example/tremail line 25 Java Problem . Line 25 looks like this: Security.addProvider(new com.provider.JSSEProvider()); Aug 02 13:28:38 help rooting my windows 7? Aug 02 13:29:00 byte0x00: Install GNU/Linux. Aug 02 13:29:05 LOL Aug 02 13:31:17 my next objective is to roo my sons nabi Aug 02 13:31:22 root* Aug 02 13:34:48 hello all, Aug 02 13:34:56 hello Aug 02 13:35:58 what would be the best way to utilize mathematical algorithims which can project the trend of gyro and accelerometer readings using previous samples ? are there any libraries already available for this ? Aug 02 13:36:53 you mean are there any libraries which provide project trends I assume? Not how to utilize them. Aug 02 13:37:05 s/project/projected Aug 02 13:38:06 rgr: yes Aug 02 13:38:34 pardon my bad question framing Aug 02 13:39:48 np, not that I have an answer ;) Aug 02 13:44:49 Can someone help me with my android app with teamviewer Aug 02 13:45:24 bewees: what help are you expecting? Aug 02 13:45:44 bhagi, Getting the app to run, I am stuck on 8 errors Aug 02 13:46:06 i dont think i'll be able to solve, but i can give it a shot Aug 02 13:46:21 Thanks, I'll send you my teamviewer auth in pm Aug 02 13:46:37 ok Aug 02 14:23:09 I use a large bitmap as a background image. It uses a fair bit of memory. Should I be manually recycling it when the activity is stopped, etc., or can I rely on GC to take care of it? Aug 02 14:23:24 GC will do. Aug 02 14:23:46 Let me peek into the code... Aug 02 14:25:17 I just specify the background image in the layout xml Aug 02 14:25:46 It won't create leaks, for sure... Aug 02 14:26:11 are there any libraries which provide project trends of my acceloremeter and gyro with a sample from past ? Aug 02 14:26:42 flan3002, thanks Aug 02 14:31:30 I'm trying to profile memory usage in my app. I've read https://developer.android.com/tools/debugging/debugging-memory.html Aug 02 14:31:40 Using DDMS? Aug 02 14:32:06 but I'm still running into problems. In the Heap view in Monitor, I can see I have a byte array (byte[], boolean[]) that's taking up 13.5 MiB Aug 02 14:32:14 but I can't work out what it is Aug 02 14:32:22 and I can't catch it in the Allocation Tracker Aug 02 14:33:28 I thought it was the background image, but I've removed the bg and it's still there Aug 02 14:34:37 You really tried the tracker? Aug 02 14:35:46 d0de: With filtering for byte[]? Aug 02 14:35:49 I have tried it. Perhaps I'm using it wrong? the largest allocation size of any entry in the tracker is 80,000 Aug 02 14:37:31 Oh, I must have it configured wrong - it's only showing allocations from dalvik.system.NativeStart Aug 02 14:37:58 and org.apache.harmony.dalvik... Aug 02 14:38:03 any idea what I'm doing wrong? Aug 02 14:42:08 anybody tried iosched 2014 app in studio? I'm getting Rendering Problems while opening layout xmls in design tab Aug 02 15:15:59 Do I need MainActivity.java file in my project? When I run my app it stopps and in eclipse LogCat puts out this error: http://sprunge.us/MDff Aug 02 15:17:44 (My class filename is "MailSenderActivity.java" and not "MainAcitivity.java") Aug 02 15:21:34 is it possible to emulate a debit card over nfc? Aug 02 15:22:31 I fixed that error by changing MainAcitivity in the layouts xml file and in the manifest file to MailSenderActivity Aug 02 15:36:10 Now I get this error http://dpaste.com/2FQ58DK though I copied the activiation.jar to my libs folder and then I added it to my path :S It is also checked in my projects configuration Aug 02 15:51:44 (I mean by "checked in my projects configuration", that I set the checkbox in the classpath config) Aug 02 15:55:41 bvye Aug 02 15:59:14 Guys, maybe you know why, findpreference makes int into string ? Aug 02 16:09:46 yo yo yo Aug 02 16:11:02 I fixed that issue by deleting the jars and obtaining the jars from this source: https://code.google.com/p/javamail-android/downloads/list Aug 02 16:27:12 What's the purpose of modules inside an Android app, in IntelliJ IDE? Aug 02 16:27:14 IDEA* Aug 02 16:43:42 Well, if I click the button in my app, no errors appear and it is not sending an email. I checked the debug messages but I could only read that it recognized that the button got pressed. No idea how to proceed here Aug 02 16:44:50 I didn't expect java to have so many pitfalls. I remember that i programmed a simple send mail program in python in under 15 minutes Aug 02 16:45:07 Python is different... Aug 02 16:45:09 A lot. Aug 02 16:45:37 bewees, you can probably do that in java in under 5 minutes... Aug 02 16:45:53 http://www.tutorialspoint.com/java/java_sending_email.htm Aug 02 16:46:01 Google is always your friend Aug 02 16:46:04 Pitfalls? Aug 02 16:46:07 Hah Aug 02 16:50:14 'lo Aug 02 16:50:45 Build tools 20 doesn't work well with IDEA 13.1.4? Aug 02 16:50:55 it's hard to find android programming tutorials! Aug 02 16:51:32 autrilla, Well I'm trying since nearly 6 hours Aug 02 16:51:34 Allen300, it isn't Aug 02 16:51:56 what's a good one to learn how to format the EditTexts? Aug 02 16:53:00 ... Aug 02 16:53:01 http://stackoverflow.com/questions/23533168/android-edittext-input-format Aug 02 16:53:09 autrilla, I used this stackoverflow answer for my app: http://stackoverflow.com/questions/2020088/sending-email-in-android-using-javamail-api-without-using-the-default-built-in-a Aug 02 16:53:31 Allen300: Don't end up addicted to tutorials, we have enough of those. Please. Aug 02 16:53:42 ha Aug 02 16:54:05 Allen300: Instead, read the SDK code, example code, and read the docs. Aug 02 16:56:16 I love getting "This version of the rendering library is more recent than your version of IntelliJ IDEA. Please update IntelliJ IDEA" when I'm using the latest version of IntelliJ IDEA Aug 02 17:08:00 Here I pasted all my code that I use in my android application. Maybe someone can give me a hint what is missing http://paste.ofcode.org/dT97eLc9mHwdbiteb6Xdeh Aug 02 17:09:00 bewees: This is more or less the opposite of a sscce.org ... Aug 02 17:10:38 flan3002, There's no error, nor any lead in the debug messages, thus I don't know what file and code causes the app not malfunction Aug 02 17:10:51 s\not\to Aug 02 17:12:26 flan3002, Maybe you can reproduce the malfunctioning app with that code Aug 02 17:12:47 That would require setting up maildroid... Aug 02 17:13:10 Don't they provide a working example? Aug 02 17:13:25 maildroid is what I called my app Aug 02 17:14:24 Oh... Aug 02 17:14:38 What does it do? Aug 02 17:14:44 s/does/should/ Aug 02 17:15:01 It should simply send a mail when a button is pressed Aug 02 17:15:22 Are you sure about that package name though? Aug 02 17:15:45 Do you mean I should name it differently? Aug 02 17:15:51 * flan3002 nods. Aug 02 17:16:02 Not that that would help, but... Aug 02 17:16:12 How would you recommend to name it? Aug 02 17:16:57 If I understand the package naming correctly, I can choose any name, as long as it is not the same package name as another app is using Aug 02 17:17:27 Please google it, my connection is too slow to google for a link... -.- Aug 02 17:17:39 Something like Aug 02 17:17:57 'Java package naming convention'... Aug 02 17:22:19 flan3002, Mhm, since I don't have a company name I could refer into the package name I could probably name the package: myproject.maildroid? Aug 02 17:22:27 +that Aug 02 17:23:55 bewees: That, or get yourself a domain. People do that. Other also name them after their code hosting: com.googlecode.maildroid, or whereever you host... Aug 02 17:26:14 flan3002, Can you reproduce the malfunctioning? You would also need three jars in your classpath from: https://code.google.com/p/javamail-android/downloads/list Aug 02 17:26:18 lol i hate this Aug 02 17:26:30 No, I can't, bewees. Aug 02 17:26:44 And I don't even want to... -.- Aug 02 17:28:39 How else can I find out why my app isn't doing what it is supposed to do, when Logcat isn't giving any errors/warnings Aug 02 17:30:00 Debugging. Aug 02 17:32:06 Is my button ID named correctly? android:id="@+id/btn_send" I'm not sure about @+id Aug 02 17:34:09 okay Aug 02 17:34:18 where can I learn how to customize Aug 02 17:34:26 in terms of size/ shape, color, etc. etc. Aug 02 17:34:40 google Aug 02 17:35:04 https://www.google.com/search?newwindow=1&client=firefox-a&hs=Tez&rls=org.mozilla%3Aen-US%3Aofficial&channel=sb&q=android+format+input+&oq=android+format+input+&gs_l=serp.3..0i22i30l2.6831.11277.0.11622.13.10.3.0.0.0.110.725.8j1.9.0....0...1c.1.51.serp..2.11.654.5R_SBfUqalI Aug 02 17:35:05 Allen300: Instead, read the SDK code, example code, and read the docs. Aug 02 17:35:21 gives me stupid currency crap Aug 02 17:35:39 No wonder... Aug 02 17:36:31 umm Aug 02 17:40:27 I have a formal request for channel operators. Could you please add "Google stuff first" to the topic? Aug 02 17:41:25 autrilla what makes you think that people who dont google first will read the topic first ? Aug 02 17:41:52 Chainfire, most IRC clients show you the topic when you join a channel.. Aug 02 17:42:01 yes, and most people dont read it :) Aug 02 17:42:23 Sad :( Aug 02 17:42:33 But true... :/ Aug 02 17:42:44 you cant expect someone that you know does not do obvious thing A, to do obvious thing B Aug 02 17:42:58 that's just setting yourself up for failure Aug 02 17:43:49 Allen300: why is your search 'android format input' ? It should be like 'android customize edittext shape color' Aug 02 17:47:15 this firefox OneTab add-on is so awesome Aug 02 17:48:21 g00s, https://www.google.es/search?q=firefox+extension+that+does+the+one+tab+thing&ie=utf-8&oe=utf-8&aq=t Aug 02 17:48:35 g00s, why? Aug 02 17:50:13 shmooz CPU and memory resources. seems like my machine actually goes to sleep too (when everything has been put in a list) Aug 02 17:51:32 i tend to have too many tabs open :) Aug 02 17:53:22 now it would be cool if it used the underlying FF tabgroup APIs Aug 02 17:55:38 ok installed it but I hardly have just 1 tab open Aug 02 17:55:55 * autrilla has 10 tabs open Aug 02 17:56:23 I don't need it though. These shiny 16GBs of RAM and a 4670 are great Aug 02 17:56:28 how does it benefit you if you have multiple tabs ? Aug 02 17:56:48 Hi there, I'm trying to start SubActivity when OnClickListener is triggered, but I can't find a correct way to create Intent do do that. The code is here: http://pastebin.com/CN60N7zr Aug 02 17:56:57 Can someone show me the way please? Aug 02 17:57:40 Chainfire, oh god Aug 02 17:58:02 albru123, https://www.google.es/search?q=android+launch+activity+button Aug 02 17:58:20 Oh, you can even remove the .es and change it for you own country! Aug 02 17:58:52 shmooz if you have one tab open ... it won't help :| Aug 02 17:58:55 hehe Aug 02 17:59:08 if youhave like 100 tabs open, thats when it helps :D Aug 02 17:59:35 also cool you can make groups Aug 02 17:59:44 We should have something like javabot here... it speeds things up Aug 02 17:59:51 autrilla: Thank you! Aug 02 18:00:07 oh ok now I get it Aug 02 18:00:07 I totally understand the "no bots" thing, but having just ONE bot like ##java does would be great Aug 02 18:00:33 autrilla i brought it up ... but since this is google's channel, i got the impression they would have to host it Aug 02 18:00:39 autrilla: You don't have anything like that? :P Aug 02 18:00:59 i mean technically anyone could but, yeah hardly any googlers here any more how would they know :P Aug 02 18:01:50 I don't mind hosting it Aug 02 18:02:20 We could also start moderating the channel like in ##java Aug 02 18:02:40 SimonVT, as in kicking people? Aug 02 18:03:44 Just generally being assholes to everyone Aug 02 18:04:03 autrilla i thought the design of a KM bot was interesting enough i was going to donate my time to set it up Aug 02 18:04:04 I'm definitely not one of the most helpful guys here, but it's a burden to tell everyone to google Aug 02 18:04:18 SimonVT, yep, some of the ops there are like that Aug 02 18:04:47 I've been kicked several times from there for liking a particular web framework because an OP said it was dumb Aug 02 18:04:57 hehe Aug 02 18:05:05 autrilla i'm going to guess PHP ? Aug 02 18:05:17 g00s, no, a Java web framework Aug 02 18:05:18 Vaadin Aug 02 18:05:27 never heard of it Aug 02 18:05:40 It's not huge, based on GWT Aug 02 18:10:22 Do you know some book about Android programming? Something like andbook but up-to-date Aug 02 18:10:51 That would be another nice factoid Aug 02 18:11:37 albru123 most will be out of date soon. use the learning / tuts on d.android.com Aug 02 18:12:21 g00s, huh? Aug 02 18:12:35 The design part might become outdated soon, but the rest? Aug 02 18:12:54 g00S: Ok, I'll give it a chance - last time I tried it, but it was too difficult. But now I know some java xD Aug 02 18:18:12 I'm looking for a big open-source Android app. Aug 02 18:18:17 I can't find much in Google. Aug 02 18:18:23 Does anyone have any links? Aug 02 18:18:36 The source of Firefox Mobile, for example, is very hard to find. Aug 02 18:18:41 hard to find? Aug 02 18:19:15 * autrilla sighs Aug 02 18:19:15 http://lxr.mozilla.org/mozilla-central/source/mobile/android/ Aug 02 18:19:18 you suck at search Aug 02 18:19:52 And which Google query yields that result? Aug 02 18:19:58 BTW, telling someone "you suck at X" is very rude. Aug 02 18:20:00 mozilla mobile source Aug 02 18:20:17 autrilla: Not here, it doesn't. Aug 02 18:20:21 Sorry, firefox mobile source Aug 02 18:20:30 First result: https://wiki.mozilla.org/Mobile/Fennec/Android Aug 02 18:20:42 And the third: http://stackoverflow.com/questions/14335496/firefox-source-code-for-android Aug 02 18:20:56 And where is the link pfn posted? Aug 02 18:21:00 In either of those documents. Aug 02 18:21:20 If the link pfn posted is indexed by Google, it is deeply hidden. Aug 02 18:21:21 I'm not doing research for you Aug 02 18:21:24 Dumbasshttp://gyazo.com/2e1e69badaadcbd559b4c6596badd8b6 Aug 02 18:21:24 but it tells you where it is Aug 02 18:21:27 clearly in that document Aug 02 18:21:30 Dumbass* http://gyazo.com/2e1e69badaadcbd559b4c6596badd8b6 Aug 02 18:21:30 pfn: Shut up. Aug 02 18:21:37 make me Aug 02 18:21:39 haha Aug 02 18:21:41 Children in here. Aug 02 18:21:42 dumbass Aug 02 18:21:45 Great channel, guys. Aug 02 18:21:47 you're stupid, deal Aug 02 18:21:50 SimonVT, what were you saying about moderating the channel? Aug 02 18:21:54 Enjoy your channel. haha Aug 02 18:22:31 autrilla yesh, i wouldn't plunk down $40 for an android 4.0 book now Aug 02 18:22:58 g00s, the code should stay very similar.. Aug 02 18:23:07 autrilla hm, maybe :| Aug 02 18:23:27 sure the usual suspects will still be there, components, etc Aug 02 18:39:14 hello Aug 02 18:40:02 I was looking to have something like this for my screenshots: https://lh3.ggpht.com/aVQ9FT23QRvsFTkLPbEK1nCEzxL0x7trEarsa9N_MINI80vLYbC_Vqufaio2WSGGFXc=h900 Aug 02 18:40:11 Does anyone know where I can find pictures of phones like thiS? Aug 02 18:42:13 Moony22, http://developer.android.com/distribute/tools/promote/device-art.html Aug 02 18:42:57 autrilla: oh, great! thanks, that's really useful! By the way, what's with "Do not use graphics created here in your 1024x500 feature image or screenshots for your Google Play app listing." Aug 02 18:43:04 Will my app get suspended if I do? Aug 02 18:43:21 I don't think so. It isn't recommended to do so Aug 02 18:43:33 because devices get outdated or something? Aug 02 18:43:57 Moony22, because there's generally no point on framing the screenshot Aug 02 18:44:16 autrilla: it gives you the ability to put text to describe what you're seeing Aug 02 18:44:36 Moony22, that's probably a decent use case Aug 02 18:44:43 like yahoo have done here: https://play.google.com/store/apps/details?id=com.yahoo.mobile.client.android.yahoo Aug 02 18:45:04 Moony22, I think what Google tries to tell you not to use just the device frame with the screenshot, but add something to the side Aug 02 18:45:24 Ah, alright. I guess it would be pointless just to have it on it's own Aug 02 18:51:52 heh - "The source of Firefox Mobile, for example, is very hard to find." Aug 02 18:53:55 capella, it is when you one have one neuron Aug 02 18:55:13 there's at least me and one other moz nick i recognize usually hanging around 😁 Aug 02 18:55:46 sometimes 3 or 4 Aug 02 19:03:42 ? Aug 02 19:08:00 What build tools with you use with IntelliJ IDEA? com.android.tools.build:gradle:0.9.+ and buildToolsVersion "20.0.0" gives me com.android.build.gradle.internal.model.ApiVersionImpl cannot be cast to java.lang.Integer Aug 02 19:09:26 Same deal with gradle:0.11.+ Aug 02 19:11:00 how i can i call notifydatasetchanged on my listview's adapter from another, non-activity/fragment class? Aug 02 19:11:23 specifically from onpostexecute of an async task Aug 02 19:11:28 aaearon, with a reference to it Aug 02 19:13:46 Is it possible that Logcat does not display empty lines in logging? Aug 02 19:14:12 Using \n\n in a log message just displays it below each other Aug 02 19:18:28 im unfamiliar autrilla with what you mean by a reference to it Aug 02 19:18:55 Google java reference Aug 02 19:19:16 Or Google programming reference Aug 02 19:20:01 :) Aug 02 19:29:16 I changed my app's layout in the xml file. If I switch to the graphical view it is not showing any changes. How can I update the graphical view, after I edited the app's layout using the xml file Aug 02 20:02:31 beewes it happens automatically did you save the file after you updated the xml file Aug 02 20:13:54 JakeWharton, is there any way for IDEA to be intelligent with Otto? It says methods annotated with @Subscribe are unused Aug 02 20:14:00 no Aug 02 20:15:07 @SuppressWarning("unused") // Used by Otto via reflection. Aug 02 20:15:25 I guess the only way is ignoring that for methods annotated with @Subscribe, but they could still be unused Aug 02 20:25:23 I am having a weird issue.. I am trying to create a table and use with CursorAdapter Aug 02 20:25:29 I get this error upon launch: java.lang.IllegalArgumentException: column '_id' does not exist Aug 02 20:25:37 but I do have a table with that column Aug 02 20:28:12 JakeWharton: do you think EventBus > Otto ? Aug 02 20:28:22 why would I think that? Aug 02 20:29:06 no, i don't think that Aug 02 20:29:13 with EventuBus you can post on main thread very easily Aug 02 20:29:27 and greenrobot says it's faster Aug 02 20:30:05 it's faster to register and unregister which is a stupid thing to optimize for Aug 02 20:30:23 and by making it faster, they have stupid restrictions on how you use it Aug 02 20:33:29 can anyone help me with above error? Aug 02 20:34:10 detachYo what error ? Aug 02 20:35:28 java.lang.IllegalArgumentException: column '_id' does not exist Aug 02 20:36:27 my table has a primary key column with name of _id Aug 02 20:36:36 i am using CursorAdapter Aug 02 20:36:51 i think that is defined in BaseColumns Aug 02 20:37:13 hmm, what do you mean? Aug 02 20:37:17 detachYo, it's trying to tell you that your RESULTS from query you're feeding to the adapter have no _id Aug 02 20:37:34 ;) Aug 02 20:37:59 ah Aug 02 20:38:01 that makes sense Aug 02 20:38:09 the interface I had connected it to didn't have the _ID in projection Aug 02 20:38:30 thanks g00s and Mavrik, it worked. Aug 02 20:38:32 :) Aug 02 20:38:39 Is it necessary to extend BaseColumns? Aug 02 20:38:56 no, but its name is defined there so you may as well use it Aug 02 20:39:04 meh. Aug 02 20:39:05 haha Aug 02 20:39:11 I was using it Aug 02 20:39:14 then I removed Aug 02 20:39:43 anyone here know if xposed can be used to edit the xml layout files of an apk? Aug 02 20:39:51 great; if they rename it all your stuff will break :) Aug 02 20:39:57 not that they would Aug 02 20:39:58 oops Aug 02 20:40:03 didn't think bout that Aug 02 20:40:17 thanks for pointing out, i will actually go back and change it Aug 02 20:40:58 CREATE TABLE fooo ... + BaseColumns.ID + " AS blah" .... Aug 02 20:42:06 yup Aug 02 20:42:09 in my case something like.. Aug 02 20:42:10 db.execSQL("CREATE TABLE " + Tables.MESSAGE + "(" + BaseColumns._ID + " INTEGER PRIMARY KEY AUTOINCREMENT," Aug 02 20:42:28 yeah Aug 02 20:43:09 detachYo i set up my table constants and stuff like iosched does, it stays pretty organized Aug 02 20:47:30 g00s, mine is heavily based on that Aug 02 20:47:55 you will notice they have interfaces for each table, each one implements BaseColumns Aug 02 20:48:28 Yeah, I was wondering while some implement other tables besides BaseColumns Aug 02 20:48:33 is it to use the column names? Aug 02 20:49:22 yeah, they may have some in common Aug 02 20:50:02 i see Aug 02 20:50:13 I am getting ' Aug 02 20:50:42 I am getting 'android.database.sqlite.SQLiteDiskIOException: disk I/O error (code 1802)' but all of the columns are right, and i don't have an open connection locking the db Aug 02 20:50:51 that I know of Aug 02 20:51:18 never saw that , doesn't look good Aug 02 20:52:02 yeah Aug 02 20:52:16 could be pebkac http://stackoverflow.com/questions/21554277/android-sqlite-database-sqlitediskioexception-disk-i-o-error-code-1802 Aug 02 20:53:33 maybe using old HTC device http://stackoverflow.com/questions/4651797/database-handling-stoped-working-on-android-2-2-1-desire-hd-1-72-405-3/4828540#4828540 Aug 02 20:53:36 hehe Aug 02 20:53:43 HTC fucks up quite a bit Aug 02 20:54:11 Actually, i found the error, quite unexpected Aug 02 20:54:13 what was going on Aug 02 20:54:32 was that i was calling getApplicationContext().deleteDatabase("project.db"); Aug 02 20:54:38 which was not closing the db Aug 02 20:54:43 hence the error Aug 02 20:55:53 i removed that function call and everything worked fine Aug 02 20:59:40 nice monologue Aug 02 21:14:41 if i have tableA that has 1 or more tableB's.. do I implement tableB to select based on tableA's primary key column? Aug 02 21:16:41 huh, my string resources are being stripped of whitespace at the beginning and end Aug 02 21:16:58 blah is actually "blah" with no space Aug 02 21:18:36 frankdrey look at this http://stackoverflow.com/questions/10862975/how-to-put-space-character-into-a-string-name-in-xml Aug 02 21:18:54   Aug 02 21:18:56 is whitespace Aug 02 21:19:06 hmm Aug 02 21:19:10 non-breaking space Aug 02 21:19:14 i wonder if that'll cause problems Aug 02 21:19:19 how about just "\ " Aug 02 21:19:42 nope Aug 02 21:19:44 doesn't work Aug 02 21:20:29 \u0020 might work Aug 02 21:20:57 \u0020 should work Aug 02 21:22:57 cool, thanks Aug 02 21:30:09 where in the activity lifecycle callbacks is called when the entire UI is constructed (menus too) but its run for the very first time? Or how to detect that? (Obviously I can hack it with an fInit flag and detect that in onResume or something). Aug 02 21:31:51 rgr hm, well onCreate() except for the optionsMenu Aug 02 21:32:17 thats one of those lovely things; the timin of onCreateOptionsMenu is essentially undefined Aug 02 21:32:54 yup. Thats why I'm asking ;) lol... just had a crash where my "menu item" ref were'nt initialised ;) No worries. I'll fInit it and do it onresume. Aug 02 21:33:10 i just fixed a crash because of that :) the service was bound in onStart(), and the ServiceConnection went to update the optionsMenu ... but onCreateOptionsMenu wasn't called yet so I NPE'd Aug 02 21:33:47 rgr well, the shitty way is lots of defensive (if xxx != null) in each event handler Aug 02 21:33:55 i used RxJava CombineLatest :) Aug 02 21:34:29 arr, its only in one "updateStatus" method where I enable/disable menu items so its no big deal. Aug 02 21:35:01 updateAllTheThings(a,b,c,d) { if a!=null {} if b!= null {} if c!=null {} } Aug 02 21:35:03 yeah Aug 02 21:35:04 horrid Aug 02 21:37:24 nah.... try() catch.... its rarely called.. Aug 02 21:37:38 they are all set or none are Aug 02 21:37:58 but thats interesting what you told me : good to know re menu creation. Aug 02 21:38:49 thats a good interview question :) Aug 02 21:39:03 what gets called first: onActivityResult() or onCreateOptionsMenu() :D Aug 02 21:50:44 g00s, are contentproviders one of the hardest topics in android? Aug 02 21:50:53 please make me feel better haha Aug 02 21:51:14 They are not :/ Aug 02 21:51:28 They aren't the easier either Aug 02 21:52:06 definitely not easy Aug 02 21:52:16 i guess its a little hard to convert web mentality into android Aug 02 21:52:19 but its all Aug 02 21:52:23 things are starting to make more sense now Aug 02 21:52:37 detachYo more boilerplate than anything Aug 02 21:53:10 but as your data model gets more complicated, it becomes tedious querything things with URIs Aug 02 21:58:40 yeah Aug 02 22:09:39 Hi all. I got this weird issue. After installiing and first starting up the app, when you press home and go back to the app, I'm having some weird behaviour. This Only happens that first time running after installation. If i force close the app and restart it, pressing home and coming back works precisely how it should. Same with restarting the phone. Aug 02 22:10:05 what do you mean by weird behaviour? Aug 02 22:10:19 Also this is a version being generated and then downloaded, rather then being build and pushed through USB. Upon running the app straight from the IDE the problem also is not presetn Aug 02 22:10:29 detachYo: I found content providers quite easy.. first android project I worked on, I used content providers and loaders for my local database stuff :) The Google I/O iosched source helped quite a bit. Aug 02 22:11:29 detachYo: The app loads a map fragment. The weird behaviour is that upon coming back from pause, a 2nd map fragment gets added, on Top of the old one. Back removes this fragment, and shows the old one. Aug 02 22:12:04 the fragment gets added in OnCreate, and the code is not being ran in OnResume or OnStart Aug 02 22:12:33 Do you check that the fragment doesn't already exist? Aug 02 22:12:34 also, none of the other actions I perform on the map happen. No markers are being added, etc. Aug 02 22:13:02 Simon: The fragment should already exist. I only want it to be re-added after the activity has been destroyed Aug 02 22:13:04 right? Aug 02 22:13:45 Also, keep in mind that this Only happens when you run the app for the first time after installation through download. It never happens after this point or when pushing the app through USB Aug 02 22:14:49 The backstackpopping might also be a hint; When I add the map fragment, I do not add it to the backstack. But when the bug occurs, the fragment thats added is able to be removed by pressing back, so it's being added to the backstack somewhere Aug 02 22:15:26 ow and btw, this happens after a Clean install (remove old, restart device), as well as a Overwriting install Aug 02 22:18:41 This is how I add the fragment: http://pastebin.com/iMpbJdcA. This is in OnCreate. I dont remove the fragment anywhere Aug 02 22:20:25 Surely there's more than that Aug 02 22:20:32 Like checking that there's no saved state Aug 02 22:20:43 Or some check that the fragment doesn't already exist Aug 02 22:21:51 Trying if (mapFragment == null) check now Aug 02 22:22:09 i don't see how that would work though, since oncreate isn't called upon resuming, correct? Aug 02 22:22:44 When you put your app into the background the system may kill it, and reclaim the memory Aug 02 22:22:55 The FragmentManager will save the state of fragments you've added Aug 02 22:23:09 When the app, and your activity, is re-created, the FragmentManager will create and add those fragments Aug 02 22:23:36 So if you just blindly add the MapFragment every time onCreate is called, you'll end up with multiple instances added to your layout Aug 02 22:23:55 That's why people usually give their fragments a tag, then check that no fragments with that tag exists before adding it Aug 02 22:24:29 i have a StartUpFirstTime check, which only runs on the first OnCreate Aug 02 22:25:04 it also might have something to do with savedinstances, come to think about it. And then seeing as how it only happens after a new installation, probably the fact that there is No savedinstances Aug 02 22:25:26 is there a more efficient or "better" way of achieving loading and scaling of a bitmap? In my code I currently have the following for a background canvas : Bitmap.createScaledBitmap(BitmapFactory.decodeResource(res,R.drawable.green_flower1_01), canvasWidth, canvasHeight, true); Aug 02 22:25:28 Ahh, i could also check it per tag Aug 02 22:29:33 Some of my buttons are disappearing shortly after adding a webview fragment, but they come back as soon as they're invalidated. is this… normal? is there a callback I can use to make sure they don't flicker? Aug 02 22:29:45 (I have a video of it if it would help) Aug 02 22:30:12 well, I dont think it's contained to just the fragment. It looks like a whole new activity is being created. My static vars though still seem to be the ones that are used in the first go around.. Aug 02 22:31:25 So, whats the difference between pushing a App through USB debugging, and generating an APK and download it and install it with a package installer? Aug 02 22:39:43 anyone here? Aug 02 22:40:10 yes Aug 02 22:40:25 Why won't BluetoothChat connect to a RFCOMM bluetooth serial client? Aug 02 22:40:52 ThomQ, one is pushed over a usb cable, one is installed manually :P what are you trying to ask? Aug 02 22:42:27 What is the correct UUID for connecting to a RFCOMM client Aug 02 22:44:29 I am going insane. Aug 02 22:44:30 :( Aug 02 22:44:35 Why won't this work?... Aug 02 22:44:56 is rfcomm same as spp? Aug 02 22:50:15 i get unknown uri in my getType Aug 02 22:50:18 with no other messages Aug 02 22:56:45 the docs say png is best : are there no advantages though to using jpg for "ok quality" backgrounds? smaller, good enough. I see no reason to use a png for them. Aug 02 22:57:02 rgr, #whateverworks Aug 02 22:58:18 rgr: if they're smaller filesize, and you're good with the quality, then they're good for the filesize. it makes no difference in ram use though. Aug 02 22:58:38 how come? larger image== more ram to load. Aug 02 22:59:22 rgr: in ram it's all based on num of pixels and density (ARGB_8888 vs RGB_565, etc). a 100x100 image will take exactly the same amount in memory, regardless of its compressed format, because it's completely uncompressed when in memory. Aug 02 23:00:03 #whatever works isnt really an answer or good advice since there are always reasons to go with one over another. In this case i feel the resource size makes significant enough difference. Aug 02 23:00:25 Groxx: sure. but it still has to get into memory. a png would take significantly more time and processing IMO. but anywayy. Aug 02 23:00:34 cheers. Ill stick with jpg for now. Aug 02 23:00:37 rgr: make sure you run a png compressor on them before comparing resource sizes, but yeah they can save a fair amount. Aug 02 23:01:08 rgr, of course I was joking. But if you don't agree with the docs, then test both and see which one does something better Aug 02 23:01:54 re loading / processing: smaller size is generally better for loading speed, just because bigger files might take longer to pull from disk, but I really don't know about decoding speed between png and jpg. might depend on the device, too. try profiling? Aug 02 23:02:42 detachYo: so you dot know ok. Yes obviously I could "test it and see". But I was asking here in case you actually had experience and something to offer ;) Aug 02 23:02:51 ciao for now. Aug 02 23:03:47 for anyone: my buttons disappear when a webview starts loading (for the first time, only). short video: http://cl.ly/2p183g1w410Q . is there anything I can do / wtf is going on? Aug 02 23:05:13 Hi! Aug 02 23:05:24 is anyone here using osmdroid library? por osm maps? Aug 02 23:06:48 I have a problem when returning from the backstack.. Aug 02 23:06:58 the map stops working.. and i cant solve it :S Aug 02 23:26:15 instead of default: throw new android.database.SQLException(); Aug 02 23:26:21 how can I see the actual exception Aug 02 23:26:22 ? Aug 02 23:29:30 Sorry, what is the actual question here? Aug 02 23:29:56 i am overriding contentprovider's insert method and trying to insert new record in database Aug 02 23:30:02 but I get sqlexception Aug 02 23:30:13 i am trying to see how I can make it more descriptive Aug 02 23:30:35 Do you have your operation in a try...catch block? Aug 02 23:30:49 nope Aug 02 23:30:58 Do so. Aug 02 23:31:08 its in a switch statement Aug 02 23:31:12 which has default of SQLException Aug 02 23:31:23 Right. Aug 02 23:31:42 And you want to do what exactly? Aug 02 23:31:50 Get more information regarding the exception? Aug 02 23:32:09 yeah Aug 02 23:32:22 Beyond Exception.printStackTrace() Aug 02 23:32:34 ?* Aug 02 23:34:04 I don't know how to answer that. Looks like I found the error. Aug 02 23:34:05 Trying. Aug 02 23:34:09 I'll post back Aug 02 23:34:33 Yup, it was lacking a urimatcher Aug 03 00:04:58 Can seomene tell me why can't my class, that extends Fragment have my own specifc methods (public or protected) so i could call them from activity after creating new object of MyFragment? only methods accessible are the ones from Fragment class Aug 03 00:07:33 what's stopping you doing that ? Aug 03 00:07:58 i cannot call them from main activity in which i've created fragment object Aug 03 00:08:26 pastebin the code Aug 03 00:10:15 has anyone ever seen volley call the wrong listener when delivering a response? ive got two fragments making similar requests in a view pager, and it seems like whenever one of the responses gets a cache hit, the listeners in both fragments are used for that response (so one fragment gets the response for the other) Aug 03 00:11:23 bankai_au: http://pastebin.com/jbT2Zb3a - i hope its enough Aug 03 00:12:46 that doesn't explain your problem, so i'm just going to assume when you're calling it you're not casting appropriately Aug 03 00:13:21 lordgreg: because protected Fragment fragmentEvent; Aug 03 00:14:13 sqrrl: i tried with private, tried without preset or public Aug 03 00:14:25 i tried calling it from Main activity class Aug 03 00:14:52 lordgreg: uh.. you are making a variable of type Fragment, so it only behaves like a Fragment Aug 03 00:15:13 if you make if FragmentEvent it will have all the needed methods Aug 03 00:15:22 oh my god Aug 03 00:15:32 what a retarded mistake Aug 03 00:15:42 tee hee Aug 03 00:16:25 i can't believe it... looks like its too much for today- i've been figuring where the problem lies for the past 2 hours -.- Aug 03 00:16:34 hahaha Aug 03 00:19:28 ty again sqrrl Aug 03 00:19:44 that was a fairly easy one Aug 03 00:21:10 :) Aug 03 00:21:13 bb Aug 03 00:41:03 hey guys, anyone knows if it's possible to use std::exception_ptr with the ndk? Aug 03 00:41:29 it says that it's not declared and then i forced included #include which gave me # error This platform does not support exception propagation. Aug 03 00:44:02 hmmm wait... does the ndk support exceptions period? Aug 03 00:45:59 This "Bill The Lizard" has some serious issues. Aug 03 00:48:27 DrBenway: What stdlib? Aug 03 00:48:48 Are you making sure to compile as C++11? Aug 03 00:49:32 gnu-libstdc++ stlport android-ndk-r10 gcc 4.8 Aug 03 00:49:40 let me know if the answer is not there Aug 03 00:49:42 yeah C++11 Aug 03 00:49:51 (just starting thou... so im kind of still figuring things out) Aug 03 00:50:02 Uh, that's two stdlibs Aug 03 00:50:14 I don't think you want to be using two of those Aug 03 00:50:19 sorry just the first one Aug 03 00:50:40 (i have support for both in the build script but im using the default which is gnu-libstdc++ Aug 03 00:50:41 ) Aug 03 00:50:48 At any rate, check the version on it and see if it's had exception_ptr support implemented. Aug 03 00:50:59 Alternatively, use libc++ Aug 03 00:51:00 it's implemented Aug 03 00:51:16 but if i force include the header for it... it throws Aug 03 00:51:16 # error This platform does not support exception propagation. Aug 03 00:51:30 and im wondering if android? supports exception propagation... Aug 03 00:51:38 or if im just doing something wrong Aug 03 00:51:52 If you include exception and it doesn't bring in exception_ptr, it's either unimplemented for that platform or something else. Aug 03 00:52:18 I have a program derived from BluetoothChat that reads binary information over a Bluetooth SPP connection, and then graphs it (most likely GraphView). How do I display the data when a sufficient amount is received and verified? What thread should I do the reading/processing on? Aug 03 00:52:23 well it fails due to this: Aug 03 00:52:23 #if ATOMIC_INT_LOCK_FREE < 2 Aug 03 00:52:23 # error This platform does not support exception propagation. Aug 03 00:52:23 #endif Aug 03 00:52:42 That doesn't really matter Aug 03 00:53:02 well it seems to matter since it won't build because of that :) Aug 03 00:53:12 If you've included the exception header and you don't have exception_ptr, including more stuff could either lead to broken code that compiles or code that won't compile Aug 03 00:53:19 im not sure where atomic int lock free comes from thou Aug 03 00:54:22 Do IRC users usually try to solve old questions or only focus on whatever's being talked about? In other words, is it likely that my question has been forgotten? Aug 03 00:54:23 https://www.mail-archive.com/gcc-bugs@gcc.gnu.org/msg403322.html This might have something to do with it Aug 03 00:54:24 https://code.google.com/p/android/issues/detail?id=62648 here we go Aug 03 00:55:54 nyway there's a bug or it's not supported on the arch that im building for... Aug 03 00:56:02 i should probably start by porting to x86 android first Aug 03 00:56:13 thx for your help Nilium Aug 03 00:56:16 jimbo1qaz: if someone can answer they will. Aug 03 00:56:30 Probably unsupported because there's a bug that they haven't fixed or it's a regression like the mailing list suggests Aug 03 00:57:04 It might be fixed in more recent versions, but my advice would be to look at libc++ as an alternative if you can't live without exception_ptr Aug 03 00:57:52 Since I believe the NDK now includes clang and experimental libc++ support Aug 03 00:57:53 i might do that Aug 03 00:58:05 i used this one just because the example i was using was using that Aug 03 00:58:47 Granted, libc++ might also not support it for whatever configuration the NDK gives it Aug 03 00:59:17 nyway i think i have enough info to keep going Aug 03 00:59:18 thx again Aug 03 01:10:29 hi all. Question about an activity's lifecycle: I've got this (mainly) empty test map, consisting of 2 classes. 1 activity and 1 mapfragment. in Oncreate of the activityi I add the fragment, which works fine. Aug 03 01:11:03 what's a good way to let a user know they are in a view pager and can swipe. Aug 03 01:11:42 But upon first installing the app, and the first time running it, when I press home and then come back to the app, a 2nd activity gets created on top of my normal one. This just happens that first time. If i force close the app or restart the device, no new activies are being openend upon returning to the paused app Aug 03 01:11:57 this Doesnt happen upon pushing this to my device and starting it with the adb command shell am start -n "com.test.tester/com.test.tester.MyActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Aug 03 01:12:59 So, 2 questions: What can I do to prevent this and second, why is this happening just the first time starting the app after installation (not pushed through adb) Aug 03 01:27:01 from http://docs.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html line 4 of the first chart (MMonth in yearMonthJuly; Jul; 07) Aug 03 01:28:05 Does anyone have the link for the talk about what to expect when your app hits Top 100 free? Aug 03 01:28:13 Or any similar good talks. I lost the link :( Aug 03 01:28:53 How do I get the short month name from simpledateformat? Aug 03 01:30:33 answer: MMM Aug 03 01:31:01 detachYo, second monologue I see today Aug 03 01:31:03 autrilla there is such a talk ? hehe :) Aug 03 01:31:22 g00s, there is! It introduced me to Dagger Aug 03 01:31:31 autriall, what does monologue mean? Aug 03 01:31:34 in this context? Aug 03 01:31:50 The same as in every other context Aug 03 01:31:55 its when yo talks to yo, which is yoyo Aug 03 01:32:00 haha Aug 03 01:32:03 oh Aug 03 01:32:07 it makes sense now Aug 03 01:32:38 detachYo earlier pfn said it was a monologue, but he has me on ignore so it really did seem that way to him Aug 03 01:32:55 when we were talking about db stuff Aug 03 01:33:01 PFFffff. So I think I found the problem.. It appears that if you use the package installer, and then press Open from there, it happens. When you press done and open it later, there is no problem at all.. It appears as if the Open function of the package installer causes the process run differently then when started from pressing the icon, which results in unexpected behavior (opening the Aug 03 01:33:01 activity twice) if you pause it and then start it from the home screen Aug 03 01:33:14 g00s, why does pfn have you on ignore? Aug 03 01:33:29 autrilla i don't care Aug 03 01:33:54 This channel is by far one of the most helpful Aug 03 01:34:18 Stack is also pretty handy ^.^ Aug 03 01:34:33 although IRC is even more direct for these kind of things Aug 03 01:34:41 Google should be the first one in helpfulness. But considering you don't seem to use it much... Aug 03 01:34:56 Ouch! shots fired Aug 03 01:35:44 autrilla it actually makes life easier for me :) Aug 03 01:35:56 ThomQ, he just asked for something that is in the very same doc he linked Aug 03 01:36:13 :D Aug 03 01:36:32 well, to be fair, google has some Pretty unclear / clearly wrong docs out there. Aug 03 01:36:42 I find most my answers on 'basic' issues on stack though Aug 03 01:37:42 g00s, AHA! http://vimeo.com/92773940 Aug 03 01:38:23 If I had a penny for each person that came in here and could have just googled the exact question they asked and get the answer... Aug 03 01:38:41 but, while I'm here, i have another question, and I probably will get blasted for this. but I use static vars to hold some information after onDestroy. This is not the correct way to do this, right? Aug 03 01:39:53 I did google on what exactly gets destroyed and what not, but all I found where some pretty vague answers, boiling down to "the os decides".. Aug 03 01:40:03 No, it is not Aug 03 01:40:18 I'm not very sure about this, but those static fields might get GC'd Aug 03 01:40:42 The runtime decides, more or less Aug 03 01:41:29 But when? when the OS needs more memory for other tasks? Aug 03 01:41:34 I do use null checks wheter or not to use them or not btw Aug 03 01:42:08 ThomQ: totally indeterminate. Period. There are "tricks" to force it but that might chance. Aug 03 01:42:13 change Aug 03 01:42:18 ThomQ, more or less. I don't know how the DVM or ART handle garbage collection Aug 03 01:42:28 I don't even know how if ART has GC Aug 03 01:43:20 the one thing that certain texts re Android say is thuis : whenever in time critical loops do not allocate /deallocate since that may well kick off the GC and that will cause your app to stumble. GC sucked when it was "invented" back when and it sucks now. Aug 03 01:45:24 it sucks worse in java than other langs Aug 03 01:45:32 So, what would be a good way to keep certain classes / fields after onDestroy / process being killed? Just cache them? Aug 03 01:46:12 and newer java would make it better Aug 03 01:46:20 true Aug 03 01:46:20 but I dont see androids java version changing Aug 03 01:46:42 hold a reference to them afaik. Thats definitely in google. Aug 03 01:46:44 I guess if you are pushing for art runtime Aug 03 01:46:45 who cares Aug 03 01:46:45 autrilla OH, i thought it was a video about getting to the top 100 :) Aug 03 01:46:50 rgr, it does not suck Aug 03 01:46:53 g00s: omg wtf bbq Aug 03 01:47:00 hey ron_frown ! Aug 03 01:47:09 It is just a more confortable way of doing stuff. And it implies less control Aug 03 01:47:33 You are handing malloc and free over to the runtime Aug 03 01:47:35 rgr just requires certain techniques Aug 03 01:47:35 g00s: I was finally able to explain what I want to do with my ui toolkit and found a kid I know is capable of helping me get it there Aug 03 01:47:40 so sounds like my os is a go Aug 03 01:47:40 all to their own. but yes I think it does suck . badly. You like it great. I dont. I think it encourages lazy approaches to allo/dealloc AND the GC lacking predictability sucks even more. Aug 03 01:47:55 rgr LMAX disruptor is 0-object creation per event, for example Aug 03 01:48:00 but like an editor war, better left unargued. Aug 03 01:48:05 rgr, why should I handle malloc? Aug 03 01:48:11 nice ron_frown :) Aug 03 01:48:14 Memory is cheap Aug 03 01:48:21 bbiab Aug 03 01:48:25 ok Aug 03 01:48:25 for obvious reasons. "memory is cheap" is bullshit. Aug 03 01:48:37 especilly on mobile devices. Aug 03 01:48:56 rgr, is the work of manually allocating and dealloacting memory worth it? Just to save a small % of memory? Aug 03 01:49:05 Hi can someone help Aug 03 01:49:48 I have a listview where each row contains TextViews and ImageViews. Aug 03 01:49:49 Seriously, what are you talking about? Small amount of memory?!?!? Since you dont control the GC you dont know how much is stored. And the the stutter issue. I like to deallocate. But then I programmed C & C++ for years. Aug 03 01:50:01 "the the stutter" lol.. Aug 03 01:50:04 brb Aug 03 01:50:11 How can I store the image views or the bitmaps in a bundle so I can restore them between screen rotations? Aug 03 01:50:40 Or shoudl I not use Bundles for bitmaps? Aug 03 01:50:54 I dont' see any way to add a bitmap to a parcel. Aug 03 01:51:39 My parcel contains few strings and ints and i don't know how to get the bitmap in there. Aug 03 01:51:51 Is there another way I should do this for images? Aug 03 01:52:16 http://stackoverflow.com/questions/4352172/how-do-you-pass-images-bitmaps-between-android-activities-using-bundles Aug 03 01:52:49 autrilla aka the spoonfeeder Aug 03 01:53:48 alrigth sorry man Aug 03 01:54:12 i thought this was the place to ask Aug 03 01:54:19 dont be. Thats his job here apparently ;) Aug 03 01:54:20 thanks for the link Aug 03 01:55:28 AKK9, you should probably look into Picasso though Aug 03 01:55:39 sometimes I'd really like to pique the brains of android engineers that designed osme of this shit Aug 03 01:55:49 def feels like some java engineer shit Aug 03 01:56:02 does anyone know wich android studio version is more stable windors or linux? Which one is better? Aug 03 01:56:19 its about equally solid both places Aug 03 01:56:33 its intellij platform and is pretty well tested on both sides Aug 03 01:56:55 last time i checked AS a few months ago it was still pretty unstable Aug 03 01:56:59 I use intelliJ idea Aug 03 01:57:15 autrilla, wow yeah looks pretty good. it can get a bitmap from the web into a view in one line of code Aug 03 01:57:44 ThomQ, which is not as stable with Android as you'd think Aug 03 01:57:53 I used AS, and it was more that gradle integration was total shit Aug 03 01:57:59 Try rendering an UI using API 20 :P Aug 03 01:58:16 I have android sdk setup on both platforms but only android studio in windows. I'm wondering if I should also install in linux. Low on rom space. Aug 03 01:59:15 ROM? lol Aug 03 01:59:25 there are only two things linux does better than windows for android dev Aug 03 01:59:41 1) the android device drivers typically need no manual adb driver installation Aug 03 01:59:44 windows frequently does Aug 03 01:59:53 autrilla: read only memory Aug 03 01:59:58 2) android google tv (which sounds like its ultimately going to be deprecated anyway) Aug 03 02:00:02 I know what ROM is, thank you Aug 03 02:00:08 requires kvm shit for emulation Aug 03 02:00:26 I'm surprised you intend to install something into a read-only medium Aug 03 02:00:40 autrilla: didn't sound like it. Aug 03 02:00:53 How do you plan to write to it? Aug 03 02:00:57 rom / rom images are actually far from read only these days =0 Aug 03 02:01:21 my android hardware is just EMMC module with yaffs2 filesystem Aug 03 02:01:38 plenty easy to write Aug 03 02:02:02 any ready made libraries available for projecting trends of gyro readings ? Aug 03 02:02:10 ron_from: (which sounds like its ultimately going to be deprecated anyway). really? Aug 03 02:02:14 not enough sales? Aug 03 02:02:16 You code from Android? Aug 03 02:02:28 android tv is taking over Aug 03 02:02:58 sounds like its a hybrid of android and that little hdmi stick thing they got now Aug 03 02:03:10 but googletv as it is right no Aug 03 02:03:11 has anyone ever seen volley call the wrong listener when delivering a response? ive got two fragments making similar requests in a view pager, and it seems like whenever one of the responses gets a cache hit, the listeners in both fragments are used for that response (so one fragment gets the response for the other) Aug 03 02:03:14 seems to be fizzling out Aug 03 02:03:41 autrilla: I have my own hardware based on omap4460 and omap5432 processors Aug 03 02:03:46 and ported android over to it Aug 03 02:03:52 maintain roms for it Aug 03 02:04:00 do platform dev for it Aug 03 02:04:02 not for google Aug 03 02:05:00 didn't even know there was a difference? Aug 03 02:06:00 wasn't android google tv android though? Aug 03 02:06:42 it as android Aug 03 02:06:45 when I do getContext().getContentResolver().notifyChange(url, null); Aug 03 02:06:48 it was just called google tv Aug 03 02:06:50 then return uri Aug 03 02:06:52 now android tv is on its way Aug 03 02:07:01 in Uri insert (overriden implementing ContentProvider) Aug 03 02:07:09 how would I get newly inserted stuff. Aug 03 02:07:16 how would I get newly inserted id Aug 03 02:07:47 dbrosyth: what is volley/ Aug 03 02:07:53 ron_frown: more of a rebranding then? Aug 03 02:08:14 well they are making it a spinoff of android and chromecast as far as I know Aug 03 02:08:23 best I could derive from what I've seen Aug 03 02:08:44 does anyone know how I could achieve the above? Aug 03 02:09:41 any ready made libraries available for projecting trends of gyro readings ? Aug 03 02:11:45 ron_frown: are they getting rid of chromecast? Aug 03 02:15:26 detachYo: its a http/networking lib from google Aug 03 02:16:14 ive used it with a view pager before and its been fine.. i am really stumped Aug 03 02:32:38 oh hmm, it just happened without a cache hit Aug 03 02:34:11 Is there a channel for kernel development? Aug 03 02:52:39 Hi appreciate some help here Aug 03 02:53:08 So I have a listview, each row is a imageview + some text views. Aug 03 02:53:31 and i have a newsitem object which fills each row in the list view Aug 03 02:53:59 So i implemented parcelable so i could keep my data between screen rotations and its working well Aug 03 02:54:18 But here is the bit i dont understand Aug 03 02:54:37 It is remembering the bitmaps in my imageviews somehow? Aug 03 02:54:55 I onyl implemented parcelable for the text strings which are used in the text views Aug 03 02:55:11 So how is it keeping the bitmaps in the image views? Aug 03 02:55:19 After a screen roations? Aug 03 02:56:05 anyone know why my buttons are disappearing when a webview is attached? http://cl.ly/2p183g1w410Q Aug 03 02:57:52 ron_frown when you wonder about picking the engineers brains about android, and why they did things ... i'm guessing initially there was a core group with DH, Dan, Rubin that designed the beginnings around a serious set of constraints that no longer exist today Aug 03 02:58:37 one thing MS does ... is write software for future HW; i get the impression android architects wrote it for current HW Aug 03 02:58:53 honestly Aug 03 02:59:04 I am guessing its a case of what I like to call "bandaids on cancer" Aug 03 02:59:05 anyhow, i think it didn't age so well. during fireside, DH said they extended things easily because it was so well done, i dunno Aug 03 02:59:10 because some of this shit is fairly recent Aug 03 02:59:32 all the managed dialog vs non managed and the fact that its super easy to fuck yourself up with configuration changes on non managed dialogs Aug 03 02:59:52 and super constrained methods of passing data between activities via super rigid bundles and shit **** ENDING LOGGING AT Sun Aug 03 03:00:00 2014