**** BEGIN LOGGING AT Mon Jan 04 02:59:58 2016 Jan 04 03:22:29 anyone see a list of SAF (Storage access framework) providers ? Jan 04 03:27:52 looks like dropbox still doesn't support it? losers, they only had a few years ... Jan 04 03:28:21 maybe nobody suggested it? Jan 04 03:29:30 they have a native app, unless their devs are totally sleeping Jan 04 03:33:03 if you were working on dropbox native android app, when kitkat came out, priority #1 would be : implement SAF Jan 04 03:41:18 lol Jan 04 03:41:33 unless they are asleep at the wheel Jan 04 03:42:42 if(foo != bar); { } why the f doent IJ tell me my nubness here? Jan 04 03:46:58 press alt-enter? Jan 04 03:47:44 no wrigly red line? hm Jan 04 03:47:48 wriggly* Jan 04 03:48:02 no there want, not that i remember seeing lol Jan 04 03:48:11 the statement is valid. the code is stupid Jan 04 03:49:11 IJ helps you so much that you'd think it can make a sandwich for you :P Jan 04 03:51:42 sammich meh. when it can make my coffee for me, then ill be impressed Jan 04 03:51:45 :P Jan 04 03:53:00 it usually tells you that you have an empty body there Jan 04 03:53:15 yellowish squiggly under the semicolon or the if condition Jan 04 03:53:35 g00s, yeah, f Dropbox Jan 04 03:53:41 they don't care about Android Jan 04 03:54:18 even Microsoft is a better android citizen Jan 04 03:55:11 and saf support has been requested to Dropbox a number of times Jan 04 03:55:19 they don't care Jan 04 03:56:18 then f e Jan 04 03:56:21 m Jan 04 03:56:22 speaking of, I was at the mall and Samsung has a kiosk setup giving away $25 if you setup Samsung pay Jan 04 03:58:40 i was never fan of dropbox Jan 04 03:58:50 eh, I though SAF worked with dropbox... or at least it looked to me like I have used it recently this way Jan 04 03:58:54 I want to write annotation that will add function some functionallity to annotated kotlin class Jan 04 03:59:07 can anyone point me to how to do this? Jan 04 03:59:33 i dont use any remmote storage unless i can encrypt at my end, its 100% free and guaranteed to be intat 50 years from now Jan 04 03:59:53 with no access between now and then Jan 04 04:00:01 I440r: so... no remote storage ever? Jan 04 04:00:06 including your own? Jan 04 04:00:11 correct Jan 04 04:00:28 i dont have a remote storage server Jan 04 04:00:32 I've been using Android pay every chance I get too, I like it a lot Jan 04 04:00:51 so much better than old google wallet, and better than plugging in a chip card Jan 04 04:06:24 p_l, nope, no saf on Dropbox unless it changed very recently, I get emails about it relatively often Jan 04 04:06:35 http://gradle.org/feature-spotlight-continuous-build/ Jan 04 04:06:47 didnt know gradle have this feature Jan 04 04:09:43 Well, my solution to l440rs problem is simple, Jan 04 04:09:58 I use the open source mega client, skimmed the code myself, Jan 04 04:10:10 And use it as simple rsync implementation between my PCs Jan 04 04:10:30 oh and it's working Jan 04 04:10:32 nice Jan 04 04:10:41 will use that guard from now :D Jan 04 04:11:30 pfn: ah, right, you guys first experience with wireless emv is Android / Apple Pay and the like xD Jan 04 04:12:17 I haven't had as many problems with cards as in US since I stopped using my ancient Visa Electron that required cheating to make payments at times Jan 04 04:12:43 Android Pay. The thing that's gonna hurt us all. Jan 04 04:12:55 Not available in countries where NFC is everywhere, Jan 04 04:13:06 Led to Google to introduce secuNet Jan 04 04:13:09 it's gonna make stores support wireless EMV in USA, which is great for me Jan 04 04:13:17 (Which is evil in every way of definition) Jan 04 04:13:30 Well, p_l, Trader Joe's also had NFC before it ;) Jan 04 04:13:36 (Via wireless emv) Jan 04 04:14:01 Their parent company, ALDI North, rolled the payment system out globally at the same time. Jan 04 04:14:06 Last February. Jan 04 04:14:58 justJanne: my experience in Silicon Valley was that when you had a card that didn't remember dinosaurs, you had to hand-hold cashiers at time so they didn't by mistake put it as debit or something Jan 04 04:15:17 also, lol @ last february Jan 04 04:15:31 if they only rolled that globally last february, they were really, really behind the curve Jan 04 04:16:07 seems like USA has bad credit card infra Jan 04 04:16:26 p_l: they didn't support credit cards at all until last February. Jan 04 04:16:27 * p_l had to replace his card for an EMV/NFCEMV one in 2012 because cashiers would see lack of chip and try to use it contactless... Jan 04 04:16:38 justJanne: that's a sensible explanation Jan 04 04:16:43 But MasterCard refused to certify them for EC anymore unless they take credit cards. Jan 04 04:17:00 They wanted to continue only supporting contactless EC Jan 04 04:17:06 (The E in EMV) Jan 04 04:17:23 (EuroCheque, MasterCard, VISA) Jan 04 04:17:48 ah, EC. I think it's one card I've seen even less than JCB Jan 04 04:18:21 but I'm from Poland, we managed to build faster clearinghouse with floppies and FTP than americans have now... in 1992 or so Jan 04 04:18:23 MasterCard and VISA get in the end multiple percent of every payment. AMEX is even up to 12%. Worst case VISA or MasterCard is 5% Jan 04 04:18:35 EC is... Worst case 1.25%, average case 0.3% Jan 04 04:19:20 EC is the only one really accepted in Germany, it's surprising they got so much power globally despite being only in one country. Jan 04 04:19:54 They designed the whole EMV system (which got completely taken apart and proven as completely unsane last week) Jan 04 04:20:08 I think EC is only holdout in germany and maybe france Jan 04 04:20:11 Funny thing, EMV is no more safer than pure credit card numbers. Jan 04 04:20:17 Since last week. Jan 04 04:20:26 Should've seen the talk at 32c3. Jan 04 04:20:44 justJanne: the only somewhat safe system involved stamping, and that's pretty crap Jan 04 04:21:00 The researchers exploited several bugs live on stage to steal money (from another fake company they set up) Jan 04 04:21:13 Overall cost for exploit and applying it: 7$ hardware. Jan 04 04:21:35 EMV in theory is safe, Jan 04 04:21:42 The issue is just convenience. Jan 04 04:21:50 All devices use the same private key Jan 04 04:21:53 so? Generally, all CC systems are pretty insecure, though I know about EMV issues for some time. Jan 04 04:21:54 And the same password. Jan 04 04:22:06 That's the issue with EMV today. Jan 04 04:22:08 justJanne: isn't that issuer problem more so than tech problem? Jan 04 04:22:28 Well, the protocol nowadays has this written into it. Jan 04 04:22:41 All devices connected to one backend server shall use the same authentication key. Jan 04 04:22:59 All devices shall use incremental Id numbers. Jan 04 04:23:14 For authentication only the Id number and the common auth key shall be known. Jan 04 04:23:27 It's fixable, by replacing the hardware on merchant side. Jan 04 04:23:38 About 10 million devices right now. Jan 04 04:23:48 The card to device standard would also be secure... Jan 04 04:23:58 except they used symmetric cryptography, Jan 04 04:24:05 And the key is in every single reader. Jan 04 04:25:05 But it was designed in a time when telling people outside of the US that public/private key crypti existed was considered treason and a felony. Jan 04 04:26:59 justJanne: dunno about specific readers, but a lot of base components used for NFC readers include addition slots for keying Jan 04 04:27:32 this would make it a dual "update firmware" and "put a smartcard with key into internal slot" Jan 04 04:27:45 Yes, but the EMV protocol used for existing cards, and also for NFC, uses today still symmetric cryptography. Simple AES. Jan 04 04:28:28 The new devices just rolled out by ALDI, for example, though, are, as you said, probably able to upgrade easily. Jan 04 04:29:02 But you can imagine that Android Pay, which is supposed to operate on phones with no secure enclave, has to keep the symmetric keys locked away. Jan 04 04:29:08 Which is why secunet exists. Jan 04 04:29:12 Stupid Jan 04 04:29:54 ehh, the second gen of NFC support in android supported keys on off-chip storage Jan 04 04:30:20 of course, that means embedding certain firmware on all Android Pay-compatible devices Jan 04 04:31:43 key store on android is. protected Jan 04 04:31:49 Not everywhere. Jan 04 04:31:56 depending on device Jan 04 04:32:00 Android Pay supports devices without hardware enclave. Jan 04 04:32:03 it is protected by hardware Jan 04 04:32:11 It could, yes. Jan 04 04:32:18 I don't care about those devices Jan 04 04:32:24 You should. Jan 04 04:32:28 I don't Jan 04 04:32:35 They are the reason why you can't use your rights. Jan 04 04:32:40 banks and Google should Jan 04 04:32:44 They are the reasons why Google violates laws. Jan 04 04:33:02 On devices with hardware enclave, secunet should not exist at all. Jan 04 04:33:27 It is a disgrace that Google hasn't been instantly suspended for this obvious violation of laws. Jan 04 04:34:21 * pfn doesn't know which device doesn't have hardware key storage Jan 04 04:34:33 A device that the customer bought belongs to the customer, to no one else. Google has, in no way, the right to even check what the user did with the device, even if the user wants to install apps from Google. Jan 04 04:34:51 seems like every device I've seen since 4.0 has it Jan 04 04:34:55 eh, pfn, the question is more, which devices have no hardware enclave, but NFC Jan 04 04:35:00 That should be approx. 0 Jan 04 04:35:03 link to secunet description? Jan 04 04:35:03 Hello, what is the best way to retrieve metadata for sent & recieved SMS/MMS messages? Jan 04 04:35:10 But SAMSUNG has quite a few Jan 04 04:35:13 then not a problem Jan 04 04:35:13 because the only thing I can find is the vanilla kernel pcrypt Jan 04 04:35:56 I assume justJanne means gms securitynet Jan 04 04:36:05 Yup Jan 04 04:36:11 which aims to guarantee a minimum level of device compliance Jan 04 04:36:14 that is all Jan 04 04:36:26 Which prevents you from modifying /system Jan 04 04:36:35 Which is illegal. Jan 04 04:36:41 it doesn't prevent anything Jan 04 04:36:49 you are free to do whatever you want Jan 04 04:37:02 you are barred from services if you do Jan 04 04:37:12 there is absolutely nothing illegal about that Jan 04 04:37:13 If an advertised functionality — Android Pay — doesn't run when you use your rights — to modify the system — then it is a crime. Jan 04 04:37:20 That is illegal. Jan 04 04:37:30 The functionality is advertised as part of the system, Jan 04 04:37:36 But is, for no technical reason, Jan 04 04:37:43 Bound to the integrity of /system. Jan 04 04:38:00 not if it's advertised only for unmodified phones Jan 04 04:38:11 The fact that it can be circumvented easily shows that it is purely a way to prevent people from using their rights. Jan 04 04:38:25 ah, crime - that's a good word Jan 04 04:38:33 Well, p_l, the law in Europe assumes that the whole Android situation doesn't even exist. Jan 04 04:38:43 The whole "rooting" situation shouldn't exist. Jan 04 04:39:15 justJanne: Law in EU would probably stop verizon-like posturing, but not this Jan 04 04:39:17 The law specifically and directly specifies that every user should have the right and ability to decompile, understand, and modify any software he or she has legal access to. Jan 04 04:39:42 And that the company shall not limit access to users using these rights, unless necessary for technical reasons. Jan 04 04:39:42 justJanne: yes, but it doesn't guarantee that the application has to work with it Jan 04 04:39:54 Which is not given here. Jan 04 04:40:03 nope, all of those are given Jan 04 04:40:04 sounds silly, ring your lawyer Jan 04 04:40:09 There are no technical reasons to limit access just when I change the boot logo. Jan 04 04:40:11 not illegal Jan 04 04:40:19 justJanne: that's not "limit access" Jan 04 04:40:25 hello? Jan 04 04:40:25 Yes, it is. Jan 04 04:40:39 android pay isn't an advertised part of the system Jan 04 04:40:48 Yes, it is. Jan 04 04:40:48 justJanne: nope. Been there, done that, got crappy t-shirt Jan 04 04:40:55 it's not basic functionality of your phone Jan 04 04:40:57 Android Pay is on the box of the latest devices. Jan 04 04:41:02 nope Jan 04 04:41:09 Therefore it is advertised as basic functionality. Jan 04 04:41:10 not on the box of my 6p Jan 04 04:41:18 and that's a latest phone Jan 04 04:41:30 vendors can put whatever they want Jan 04 04:41:39 Google Nexus devices only. Jan 04 04:41:42 justJanne: even if it were, it's legal for something to not work once you start modifying it - i.e. the onus on making it work falls down on the person doing the modification Jan 04 04:41:43 google has their discretion to limit access to their own service Jan 04 04:41:45 Vendors are a more complex thing. Jan 04 04:41:59 No, they have not. Jan 04 04:42:04 That's the thing. Jan 04 04:42:09 yes, they do Jan 04 04:42:30 they are not the ones selling phones advertising a feature as working if you fuck with your phone Jan 04 04:42:30 you're saying that if they offer access to one product/system, they must include access to others? Jan 04 04:42:58 doesn't that sound a little like exactly the opposite of what all the anti-trust type stuff is about? Jan 04 04:43:08 ... Jan 04 04:43:19 Modifying your system is a basic functionality of the device Jan 04 04:43:31 (There was an ECJ trial, Apple tried to go against Jailbreaks) Jan 04 04:43:46 justJanne: however, onus on keeping the functionality working is on the person who modifies it Jan 04 04:43:57 The vendor may not restrict access to such modified devices, unless there is a technical reason (also ECJ trial with Apple) Jan 04 04:44:05 If I modify the boot logo, Jan 04 04:44:19 They can not block me out from Android Pay Jan 04 04:44:29 If I modify the NFC software, they can. Jan 04 04:44:34 i.e. Apple is not liable if you end up modifying something in a way that breaks the functionality - they are only liable if they purposefully prevent you from modifying it in first place Jan 04 04:44:46 Again, the liability is more specific. Jan 04 04:44:57 I can take my phone, install another OS on it, Jan 04 04:45:03 And warranty still applies. Jan 04 04:45:20 if you want, go with this to court. Seriously, if it can get us a landmark case for better ruling on that, I'll be happy Jan 04 04:45:28 Why? Jan 04 04:45:36 but as it is, I do not think your opinion has much stock in practice Jan 04 04:45:37 The landmark case happened over 6 years ago. Jan 04 04:45:42 ... unless you go to court over that Jan 04 04:45:46 It has been tested in court over and over again. Jan 04 04:45:52 justJanne: then force them to recognize that ruling in this case as well Jan 04 04:45:55 It's standard legal opinion by now. Jan 04 04:45:57 that's what civil law is for Jan 04 04:46:09 I'm just complaining why the fuck Google is doing this shit again. Jan 04 04:46:14 because this is civil law, not criminal, and thus no crimes are involved Jan 04 04:46:15 Same shit with their Nexus phones. Jan 04 04:46:30 Yes, they have to fix security critical bugs in 18 months old phones. Jan 04 04:46:35 The law is clear on that. Jan 04 04:46:49 2 years mandatory warranty and fixing of all manufacturer caused issues. Jan 04 04:47:33 Google is intentionally breaking every law that might cost them money, and no one does anything. And I can't fight this shit myself. Jan 04 04:48:17 And we customers and devs are fucked over by Google slowly turning this shit into a no-update walled garden. Jan 04 04:48:40 We can't even use OpenGL 4.4 at all. Jan 04 04:48:52 As it's only available via Google Play Services™®© Jan 04 04:49:12 justJanne: iirc things right, either the warranty applies to software (which it usually doesn't as part of the EULA because software is fucky like that) and you can't complain about secunet or any modification, or software is not part of the device and thus a replaceable component and then it's not under warranty... Jan 04 04:49:34 p_l: you don't understand it, do you? Jan 04 04:49:42 Software and hardware are separate pieces. Jan 04 04:49:52 In fact, the law considers every piece of it separate. Jan 04 04:50:00 The bootlogo shit? One piece of software. Jan 04 04:50:07 YouTube app? Another piece of software. Jan 04 04:50:13 The phone? Another thing. Jan 04 04:50:23 When you but an Android Phone, you buy a hundred components Jan 04 04:50:31 All separately under separate warranty. Jan 04 04:50:42 You can lose warranty for some parts, Jan 04 04:50:55 But losing warranty for one part doesn't void it for the other parts. Jan 04 04:51:05 If I buy from IKEA a table and a spoon, Jan 04 04:51:16 Then when I work on the table, Jan 04 04:51:26 The warranty of the spoon still stays intact. Jan 04 04:51:28 Same here. Jan 04 04:51:40 You buy a bundle of products, but each product is separate. Jan 04 04:52:08 They can't restrict your access or warranty to one product based on what you did to the other products in the bundle, except for technical reasons. Jan 04 04:52:25 then please, seriously, go to court with this, especially if as you say it's standard legal interpretation now Jan 04 04:52:39 That's what I said before, multiple did, too Jan 04 04:52:40 because companies, any company, will keep breaking *civil* law till it's caught Jan 04 04:52:56 I just, as student, don't have the money to do so myself. But I'll hope someone else will. Jan 04 04:53:07 And that's the annoying thing. Jan 04 04:53:24 Google constantly breaks laws. They behave almost as evil as Uber. Jan 04 04:53:27 it leads to funny stand-offs in Poland, where EULA says one thing, but nobody is going to enforce that, because then they will have to rewrite the EULA to not say it anymore Jan 04 04:53:53 Yeah, half the EULA of products are nonenforceable in EU anyway. Jan 04 04:54:12 ECJ ruled 2009 that "you may not decompile" is null and void as statement. Jan 04 04:54:27 As decompilation is a human right. (I posted sources the last few dozen times) Jan 04 04:54:45 someone is getting rather over-ranty Jan 04 04:55:52 they cant be enforced here either. a contract requires equal consideration too Jan 04 04:55:59 not just full desclosure Jan 04 04:56:03 Well, when a bunch of rich people, trying to get even richer, decide to take away your legally granted rights, then you have all reason to be angry. When then others defend them in doing so... Jan 04 04:56:04 disclosure Jan 04 04:56:06 also, OpenGL was afaik never part of Android ABI, despite being available on some devices because the driver developer said so Jan 04 04:56:54 Yes, but the whole move towards more closed source apps from Google is shitty. Jan 04 04:57:01 It's just unfair competition. Jan 04 04:58:21 We already lost the Dialer, the music app, the search app, the launcher, the file manager, the web browser, etc. Jan 04 05:00:28 Now we're losing the ability to even modify the system at all. The whole custom rom scene, XPosed, a lot of the root stuff. Jan 04 05:00:42 someone should really round up a bunch of heavily-armed mates and occupy a Google building or two until they return the God-given rights to fuck up their phone to users Jan 04 05:00:50 could call it a 'militia' Jan 04 05:00:51 Every launcher out there today can trace its roots to the AOSP version. Jan 04 05:01:10 No, Leeds, not god given. Jan 04 05:01:17 yes, god given Jan 04 05:01:19 But written down in laws, which apply today. Jan 04 05:01:23 in the constitution, as written by JESUS! Jan 04 05:01:31 What the people believe in doesn't matter, Jan 04 05:01:47 What matters is that the customers rights always trump the company's rights. Jan 04 05:02:01 that's not what JESUS wrote in the constitution Jan 04 05:02:22 Last case where the EU forced a company to finally accept the legal situation and change was Steam. Jan 04 05:02:29 And finally Steam got refunds. Jan 04 05:02:38 And it provided an awesome result for customers. Jan 04 05:02:49 (See the Batman game for why refunds were useful) Jan 04 05:02:54 JESUS! Jan 04 05:02:59 (And why those laws were written with reason) Jan 04 05:03:06 constitution! Jan 04 05:03:11 GUNS! Jan 04 05:03:33 Eh, I'm on the opposite side of the political spectrum. Jan 04 05:03:50 open carried in tx for first time today Jan 04 05:04:44 I'm on the side of "no guns for citizen", " no religion outside of homes or religious buildings", and on the side of "hail Marx! Down with the capitalists!" Jan 04 05:04:45 FOUNDING FATHERS! Jan 04 05:04:46 and JESUS! Jan 04 05:05:13 the only thing which stops a rant is an even dumber rant Jan 04 05:05:28 Or maybe considering how the rant started. Jan 04 05:05:42 Which was that I got angry about GMS securitynet. Jan 04 05:05:50 JESUS! Jan 04 05:05:54 SNOWDEN! Jan 04 05:05:55 Which I still have to advise against using in your own app. Jan 04 05:06:06 REAGAN! Jan 04 05:06:16 (I will find you, and will send you a legal letter.) Jan 04 05:06:18 OBAMUSLIM! Jan 04 05:06:24 Lol! Jan 04 05:06:30 Is that a real insult? Jan 04 05:06:31 lol Jan 04 05:06:34 BARACK O'KENYAN! Jan 04 05:07:01 Yup. Jan 04 05:07:04 helllllllllllllllllooooooooooooooooooooooooooooooooo Jan 04 05:07:18 Next you gonna day "Google isn't evil, haven't you seen their slogan?" Jan 04 05:07:20 lol @ rant result Jan 04 05:07:21 I just have a quick question Jan 04 05:07:27 mission accomplished Jan 04 05:07:34 we are no longer a nation of laws. we are a nation of lawyers Jan 04 05:07:35 hiyo: ask it quickly then! :) Jan 04 05:07:54 I440r: I blame the Jews Jan 04 05:07:56 What is the best way to extract metadata from SMS/MMS messages Jan 04 05:08:00 and the Irish Jan 04 05:08:07 both sent & recieved Jan 04 05:08:20 Leeds: the only thing you accomplished is showing that you are unable to talk differently than a toddler that I have to take care of in kindergarten. Jan 04 05:08:35 But that was not really a success Jan 04 05:09:21 hiyo: how are you getting the messages? Jan 04 05:09:41 Leeds: just regular SMS/MMS Jan 04 05:10:48 are you using the Telephony.Sms provider? Jan 04 05:11:48 I was trying to do a Broadcast Reciever with the SMS Recieved but that didn't really work Jan 04 05:13:19 Leeds: I use android.telephony.SmsManager Jan 04 05:14:05 http://pastebin.com/JT23mtGG Jan 04 05:32:38 Leeds: well I gotta bounce now, bye Jan 04 05:35:42 why do i get this error: "A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks. Jan 04 05:35:42 java.lang.Throwable: Explicit termination method 'close' not called", from this code: http://pastebin.com/5sJSCWF4 Jan 04 05:42:50 nvm solved it Jan 04 05:43:06 thornekey: What was the issue? Jan 04 05:43:29 turns out it was actually just a malformed url exception and i forgot to put the right protocol Jan 04 05:43:59 ah ok Jan 04 05:44:03 :) Jan 04 05:49:08 ive made my app get a JSON string now how do i break it up, etc? Jan 04 05:49:22 using keys, etc Jan 04 05:49:40 gson lib Jan 04 05:50:20 ill take a look thanks Jan 04 06:00:10 is it possible to convert a duration of time in one unit (say, ms) to something in the format of mm:ss? Jan 04 06:00:27 jsav: sure is Jan 04 06:01:03 java.util.concurrent.TimeUnit Jan 04 06:02:02 or alternatively, basic maths Jan 04 06:02:17 yea :P Jan 04 06:05:15 with an arrayList can i use put(index) to modify a spcific element within the array? Jan 04 06:05:18 Does proguard automatically remove logging (i.e. Log.d) from release builds? or do I need to add a line to my proguard file Jan 04 06:09:08 I know, but I was wondering if there was a method or class that anyone knows off the top of their head instead of diving into google. But I have since dived into Google and found answers Jan 04 06:09:37 I440r you get .get(index) and you have your object to in the list to modify it, unless you mean add a new element at a specified position Jan 04 06:11:26 liuwenhao: http://stackoverflow.com/questions/13218772/removing-log-call-using-proguard Jan 04 06:12:51 its .get() and .set() not .put Jan 04 06:13:02 i think i can modify the item with .set. testing now Jan 04 06:13:20 add() always adds to the end Jan 04 06:13:59 Thanks @zzxx Jan 04 06:16:36 I440r, you can add(index,object) to add at a position. you can use get(index) to return the object associated at that index. and when using Object object = list.get(index); you can do object.objMethod(); or you can simply do (Object)list.get(index).objMethod(); Jan 04 06:17:22 an list.set(index, object) i thin modifiess Jan 04 06:18:35 can onDraw() be called during onDraw() if it takes too long? Jan 04 06:18:54 huh Jan 04 06:18:57 im single stepping thru my ondraw and part way throu i get bumped to the start of ondraw Jan 04 06:20:29 yup, happens every time Jan 04 06:32:17 how do you set intellij idea to infinite undo and what mmoron would set anything other than infinite undo as the freeking default Jan 04 06:32:20 stupid ppl Jan 04 06:37:46 fk intellij ha NO undo limit setting Jan 04 06:37:53 b fh20<20555p+ Jan 04 06:38:12 sorry was trying to swipe stuff off my kbd there Jan 04 06:40:24 I'm using bindings and ViewModels Jan 04 06:40:49 I need to pop up a Twitter auth dialog in one of the ViewModels outside of MainActivity Jan 04 06:41:00 however Twitter requires MainActivity.this Jan 04 06:41:12 anyone know a solution to this Jan 04 07:09:30 can ViewTreeObserver be used to measure the dimensions of an actual image after its drawn into an imageview? Jan 04 07:26:27 Leeds lol wth Jan 04 07:26:56 g00s: ? Jan 04 07:27:06 I440r you going to join the bundy militia in oregon ? Jan 04 07:27:15 Leeds reading the logs haha Jan 04 07:27:20 ah Jan 04 07:30:31 g00s probably not Jan 04 07:45:07 Hi, anyone using the built in Translation Editor in AS? I have 1.5.1 and its unresponsive, whatever i do it cant be used (13 languages) Jan 04 07:49:06 I440r i hear they need a few good men to come FORTH Jan 04 08:21:31 Its annoying: each second time i run debug i get: Unable to open debugger port java.net.ConnectException . Any idea? Jan 04 08:21:48 Ive already tried to create a new AVD Jan 04 09:14:42 Hey sort of broad question was hoping someone could point me in the right direction, need to develop something that takes in input and plays off video, and has a borderless/UI less video playback sort of. From what I can tell there is MediaPlayer which I guess is sort of just an embedded player, and then MediaCodec/Extractor which is more complicated to use but gives full customizability and then ExoPlayer which is something inbetween? is ExoPlayer Jan 04 09:14:42 what I want to be looking further at? Jan 04 09:27:13 pokEarl, input from where? Jan 04 09:30:31 ah like Touch input over the video? Jan 04 09:32:28 pokEarl: that could be a part of a custom MediaController Jan 04 09:35:55 Yeah, but I can get there by extending ExoPlayer too right? or do I need to/would it be better or easier just creating own custom player? Jan 04 10:30:00 If I pass a notification in my app does it need the app remain running to be up there? Jan 04 10:34:38 mohsen_1: i don't think so. you may want to pass an intent along to the notification so the app shows the right activity when the user presses the notification Jan 04 10:37:51 fps:I'm very very new to android programming and I'm just running code snippets for special purposes, now I tell you my scenario you tell me I'm wrong in anything in it? Jan 04 10:38:57 I want a service pass a notification then when user clicks on that notification a dialogbox(?) pup up and get an input process it and show the result in a new dialogbox? Jan 04 10:40:33 mohsen_1: ok, so your service shows a notification, right? Jan 04 10:41:16 Is it safe a common practice to pass a context to a non ui thread ? how do you update a variable in a fragment from a non ui thread ? Jan 04 10:41:22 mohsen_1: that notification should have an associated intent and your application should be setup such that it shows the right activity for this intent. i'm a little shabby on the details, since i'm pretty new myself Jan 04 10:42:08 Yes I get it, so how can I show an alert as an Intent? Jan 04 10:44:00 mohsen_1: https://developer.android.com/reference/android/app/Notification.Builder.html#setContentIntent%28android.app.PendingIntent%29 Jan 04 11:02:38 hi Jan 04 11:08:15 i am using retrofit and rxjava, how i can do the loaders and syncAdapter? Jan 04 11:21:26 hi Jan 04 11:21:32 happy new year droidsters Jan 04 11:21:46 do android 4.X have a ogg vorbis decoder? Jan 04 11:22:55 yes Jan 04 11:23:15 oh great timing Jan 04 11:32:30 Android Studio says NotificationCompat cannot be resolved to a type Jan 04 11:33:56 And there is no import option Jan 04 11:35:59 mohsen_1, do you have the support lib in your build.gradle? Jan 04 11:59:40 ok, i'm still a little bit confused. let's say i have an IntentService and an Activity. i want to use a ResultReceiver to get notofied when the intent has been processed. Jan 04 12:00:17 in between the activity might get destroyed and recreated. The result receiver gets instantiated with a handler that refers to the old activity Jan 04 12:02:00 Hello, sometimes after a crash, my application restart by itself, and sometimes not, do you know why ? And sometimes when it restart, some static booleans keep their values. Jan 04 12:02:53 kinda weird Jan 04 12:03:59 I would like to stabilize that behavior Jan 04 12:08:40 try making your app not crash Jan 04 12:11:28 hi all Jan 04 12:11:42 how i can read the ID from the GCM? Jan 04 12:21:27 Hey, does anyone have experience with problems with the rate limit on Google Play Game Services, specifically the per second rate of requests? Jan 04 12:22:10 basically I'm trying running a thread that tried to refresh the leaderboard rank of the user for each level in a game, and despite staggering the requests I'm sending to one each .5 seconds it keeps giving me "rate exceeded" Jan 04 12:22:23 but the console tells me I'm supposed to have five requests per user per second Jan 04 12:48:16 Hi, I have dumped the memory of my app in order to learn the ram representation of variables. First, I stored a MainActivity-private String "I hope this string will be found." and was able to locate its UTF-16 representation (\0I\0 \0h\0o\0p\0e...) in memory. Jan 04 12:49:07 Then, I stored a MainActivity-private int 0x5b424ab4 and failed to locate its representation. I tried searching for [0x5B, 0x42, 0x4A, 0xB4]. Do you know any other search phrases I might try? Jan 04 12:50:14 joel135: the little-endian version maybe? Jan 04 12:50:29 I'll try. Jan 04 12:51:11 Nice! But I thought things were big-endian in java... Jan 04 12:52:55 how i became an string from an asynctask and doinbackground to an public variable? Jan 04 12:53:12 joel135: they are, but the vm may use a different representation internally. Jan 04 12:55:34 Ok, thanks for your help! (For those interested, here's an excerpt from my code & ram http://pastebin.com/ztTWvPBL.) Jan 04 13:04:39 hello i copied database file from device to my pc.. but why db file is empty? Jan 04 13:04:55 i am not able to see any tables inside it.. Jan 04 13:07:43 what is the file size Jan 04 13:08:44 oops kb Jan 04 13:08:55 @ccup 0 kb Jan 04 13:09:26 but there are tables in it.. Jan 04 13:09:30 min2: ? Jan 04 13:11:17 actually i want to see all DB structure with data inside application Jan 04 13:12:05 @ccup So i followed this URL http://stackoverflow.com/questions/19194576/how-to-view-the-sqlite-database-in-device-android Jan 04 13:13:34 min2: who are you talking to Jan 04 13:13:43 you keep using my nickname Jan 04 13:14:23 ccup: are you not canvs2321? Jan 04 13:14:54 my nickname is ccup I don't see how that could be confused with that Jan 04 13:15:28 and no, I am not whoever that is Jan 04 13:15:33 well, min2 seems to be confusing you :) Jan 04 13:15:43 apparently Jan 04 13:15:51 min2: you followed the instructions in the top answer? Jan 04 13:15:57 yes Jan 04 13:17:53 how big is the copy of the sqlite file in /sdcard? Jan 04 13:18:46 Leeds: 0 kb Jan 04 13:18:58 so that'd be the problem then, huh? Jan 04 13:23:09 Leeds: whenerve m trying to copy that file into sdcard its giving me 0kb file Jan 04 13:24:08 Hello everyone Jan 04 13:42:21 the android app model is amazing: everything can get destroyed anytime. that makes life really a breeze /sarcasm :) Jan 04 13:44:26 destroy life Jan 04 13:46:12 don't forget to serialize your soul though, in case you get restarted Jan 04 13:46:59 fps, not anytime Jan 04 13:47:27 if you're visible to the user, you're protected until system is (pretty much) completely out of resources Jan 04 13:47:46 so in summary: not protected :) Jan 04 13:48:19 life is a joke => lolcycle Jan 04 13:48:43 on any system that runs out of resources, user applications are free hunting ground for the kernel Jan 04 13:49:08 on android it's just a lot easier to handle, imo Jan 04 13:49:50 At least we know what kind of developers make desktop apps that corrupt your data when something unexpected happens :P Jan 04 13:50:04 true, there are at least defined life cycle methods for central components.. :) Jan 04 13:50:57 morning Jan 04 13:51:15 Mavrik, what kind? :o Jan 04 13:51:22 i created custom view in lib Jan 04 13:51:30 i'm still pondering the best solution to get the results of a startService back to the activity keeping in mind that there might be configuration changes, or the user changing to another app, or etc.. Jan 04 13:51:36 with custom attributes Jan 04 13:51:47 fps, event bus is a rather nice pattern for that. Jan 04 13:51:54 ^ Jan 04 13:51:58 In single-process apps. Jan 04 13:52:11 then i try to use this view in app and set that attributes in xml. But view in lib, can see it. it see only null Jan 04 13:52:32 I'm getting an error while trying to compile a demo project : 'Your APP_BUILD_SCRIPT points to an unknown file: ./jni/Android.mk'. I've searched for the error on goolge but couldn't find anything relevant to my case. The project I'm building is a library and doesn't have a jni folder. Any ideas how to go about this? Jan 04 13:52:35 why this can be? Jan 04 13:53:51 Mavrik: ooh, thanks. this: https://github.com/greenrobot/EventBus, for example? Jan 04 13:54:01 yp Jan 04 13:54:09 Register in onResume, unregister in onPause. Jan 04 13:54:37 and it guarantees to deliver events even if they occured between onPause and onResume? so i won't miss any? Jan 04 13:56:33 No it doesn't. Jan 04 13:56:41 Sticky events will be delivered, non-sticky will disappear. Jan 04 13:56:43 I'm trying to port an application from the desktop to android. It runs a web service on jetty but it doesn't seem like recent versions of jetty have been made to work on recent versions of android. Is there a good way to run a web service as a background android service? Jan 04 13:57:11 Mavrik: ok, will read up on it some more. thanks for the pointer.. Jan 04 14:07:22 47k that might have saved me days of hassles :) Jan 04 14:07:24 awesome Jan 04 14:26:55 Mavrik: i guess i can save myself the hassle of using an intentservice, too.. just create a thread that performs the web request and which posts the result using eventbus when done? Jan 04 14:36:29 Hello, sometimes after a crash, my application restart by itself, and sometimes not, do you know why ? And sometimes when it restart, some static booleans keep their values. I would like to stabilize that behavior. Jan 04 14:37:27 mtR_: do you maybe have fired off intents somewhere? Jan 04 14:37:36 that might result in the restart? Jan 04 14:38:54 fps: what do you mean ? I use intents to go from an activity to another. Not more not less Jan 04 14:40:32 fps, I'd still use an intent service and then post results with eventbus Jan 04 14:40:39 this way the service still does it's thing even if user closes the app Jan 04 14:40:53 Unless the point of requests is only to do UI updates Jan 04 14:44:22 Mavrik: ok. and if i see that right, simple worker threads fired off in an activity might get destroyed, too, while the intent service's onHandleIntent() has a greater chance to survive, right? Jan 04 14:44:58 The intents will be cached and service restarted later Jan 04 14:45:05 i can live with marshalling my requests through intents if it buys me some sanity :) Jan 04 14:45:27 While your worker threads won't survive a killed process and won't be restarted later Jan 04 14:45:42 Mavrik: ok.. thanks again.. Jan 04 14:49:12 Hiw I can scan Device if it's have sim card or more ? Jan 04 14:49:21 How* ^ Jan 04 14:52:28 Hello people, is the Jackson + okhttp still best combination? Jan 04 14:53:37 For? Jan 04 14:54:29 Getting and parsing JSON Jan 04 15:01:40 Gson? Jan 04 15:02:30 I don't know for sure but back in the day, Jackson + okhttp seemed optimal Jan 04 15:03:03 Now, searching latest benchmark online Jan 04 15:03:59 https://code.google.com/p/json-benchmark/ dillonb Jan 04 15:04:01 back in da day is long gone... Jan 04 15:04:11 Thus the question :-) Jan 04 15:04:23 heading underground Jan 04 15:10:14 hey all Jan 04 15:11:36 LoganSquare claims more speed Jan 04 15:27:01 Is it just me or the benchmark actually seems fishy https://github.com/bluelinelabs/LoganSquare/blob/master/docs/benchmarks.jpg Jan 04 15:27:16 I mean, seriously GSON beating Jackson Jan 04 15:28:27 I'm sure all of them could fabricate cases they handle 400% faster than the other libraries Jan 04 15:29:14 Yeah, but most of the benchmarks I came across said Jackson is better than GSON and this seems to be only one saying otherwise Jan 04 15:29:38 In the real world I doubt there's much difference Jan 04 15:29:46 Iirc gson beats jackson especially for small files Jan 04 15:29:47 Look at what is easiest to implement/use instead Jan 04 15:30:03 where jackson is much faster if your json hold multiple mb of data Jan 04 15:30:16 That's a nice perspective danijoo Jan 04 15:30:19 thanks Jan 04 15:30:37 You have a 5 second network request in front of all the parsing, 90 vs 100 ms hardly makes a difference Jan 04 15:30:40 i'd question the api that returns multiple meg of data in json format :P Jan 04 15:30:51 ^ what Simon said Jan 04 15:31:06 SimonVT, but optimizing the wrong thing is a long-standing traditioN! Jan 04 15:31:19 You can question it all you want but I just re-did an API Jan 04 15:31:26 What's the easiest way to get a background thread that will survive the app being closed? Jan 04 15:31:32 Merely because of that very reason dragorn Jan 04 15:31:37 SleepyPikachu, a service Jan 04 15:32:04 danijoo: That's what I thought, do you know if I can launch a service from an activity? Jan 04 15:32:11 Looney, ugh. yeah I don't know why you'd encode a huge blob like that into json instead of returning a reference to it w/out having to worry about the encoding/parsing. i guess people do weird stuff. Jan 04 15:32:14 yes you can Jan 04 15:32:53 The API I re-did would dump like 6700 JSON items Jan 04 15:32:54 and where I can find documentation on how to do that? Jan 04 15:33:03 That would be like 2-4 MB on a good day Jan 04 15:33:13 SleepyPikachu, d.android.com Jan 04 15:33:48 Looney, at once or in parts Jan 04 15:34:08 Once Jan 04 15:34:23 Looney, ok, so it was a non-windowed dump... that's... more forgiveable Jan 04 15:34:38 Looney, I was envisioning someone throwing a 10 meg data file into an array in json :P Jan 04 15:34:47 (which i've seen, sadly) Jan 04 15:34:49 That is stupid Jan 04 15:35:10 Pagination comes for free in REST Jan 04 15:35:20 At least in Django REST Framework Jan 04 15:35:45 The previous developer designed models very oddly that It gave me nightmares Jan 04 15:36:29 I think that I will stick with familiar Jackson+okhttp combo Jan 04 15:51:44 only reason I never used Jackson was because it pulled in a billion dependencies and I used to build with ant. back in the day Jan 04 16:05:25 pfn: I also used it with ant Jan 04 16:05:32 how can i get rid of the action bar title bar whatever it is I have chenged the theme nothing works please help Jan 04 16:05:37 I downloaded the jars and worked like a charm Jan 04 16:05:53 is there a seeting somwher in android studio i cannot find? Jan 04 16:06:32 I have 3 jar files sitting in an old project which was started and built using terminal Jan 04 16:06:44 Looney, yeah, just didn't want to deal with managing them while gson had roughly the same performance, a single jar distribution, while smaller for the same functionality Jan 04 16:08:02 does anyone know how I can remove the bar that shows the title of my project at the top of the screen in my android project in android dtudio Jan 04 16:08:15 studio Jan 04 16:10:42 I have the theme set to no titlebar, it does not show it in the preview but when i run execute the app it pops right back in Jan 04 16:12:12 hello, i have a google developer account and published some apps. another developer invited me as administrator and accepted the invitation. does all my apps on previous(1st account) gets terminated? Jan 04 16:13:21 Try #android-dev possibly, not sure if they'll have the answer for you but that's the app dev channel. Jan 04 16:13:59 i thought this was the android-dev channel is it not? Jan 04 16:14:42 gwbread: that question is extremely googleable Jan 04 16:14:55 i have been trying like crazy Jan 04 16:15:12 is there a setting or do I have to put code somewhere Jan 04 16:15:14 what did you google Jan 04 16:15:15 Hello Guys. I am trying to develop simple app that will compare the last known location of the user with the database list of coffee bars and give the nearest one. The check need to run every two minutes. I am trying to do this with background service. Is IntentService good for this? Jan 04 16:15:32 remove titple bar from android studio project Jan 04 16:16:08 It keeps senjding me places so I can edit the menu parts in the studio and stuff not to remove the action bar or whatever from my actual project Jan 04 16:17:03 I have changed the theme it does not change when i actually run the project in the emulator or on my tablet Jan 04 16:17:13 what is your theme Jan 04 16:17:57 I think Tranclucent.NoTitleBar Jan 04 16:18:28 nut that only affects the preview Jan 04 16:18:31 but Jan 04 16:18:47 Okay, risking it and got my own answer. After accepting there is an account to choose which dev account to use at the top. Jan 04 16:19:24 thank you for your halp by the way I am new and have been up all night with this Jan 04 16:21:19 sooo, tapping into the tribal android knowledge again: the two official options to do http requests are apache's http client and HttpUrlConnection. are there any nifty little libs that hide some more complexity? :) Jan 04 16:21:20 gwbread: read this: https://github.com/codepath/android_guides/wiki/Using-the-App-ToolBar Jan 04 16:22:01 fps: are you just doing rest calls? if so, use retrofit Jan 04 16:22:25 thankyou I get it to go away on the preview and the emulator but not the real device i really needed some help i hope this works thanks again Jan 04 16:22:33 orbyt_: thanks, yes, i do. will take a look :) Jan 04 16:23:13 apache httpc lient is not "official" Jan 04 16:23:20 fps: https://github.com/codepath/android_guides/wiki/Consuming-APIs-with-Retrofit will be your friend Jan 04 16:23:24 Does the domain for android studio can be something like this cmp.cmp ? Jan 04 16:23:45 i've been having issues getting the port forwarding to work lately. I'm on Windows 7 and using the Chrome browser to do it but the green circle isn't showing up anymore Jan 04 16:24:56 orbyt_: ty again Jan 04 16:25:32 is it because I used the icecreamsandwich api? Jan 04 16:26:42 Is it not possible to have the MainActivity.java to just extend ActionBarActivity and implement callbacks in their respective fragments? Jan 04 16:27:02 More saner and read-able code this way Jan 04 16:32:11 ^ somehow fixed it myself by running adb forward --list and then adb reverse --list Jan 04 16:32:26 strange fix... Jan 04 16:34:38 anyone around Jan 04 16:35:06 i just set a new pin to my phone but i forgot the pin? is there anyway to remove the pin without going into recovery and wipeing everything Jan 04 16:36:10 Rp4k: This channel is for app dev, try #android Jan 04 16:36:15 Rp4k: a) "Android application development"? b) I *think* if you get it wrong enough times it'll ask for your google password instead, but don't quote me on that Jan 04 16:37:40 sadly google doesn't work here. (i am in china) and my vpn isn't turned on. so it wont do much good. Jan 04 16:38:05 1) move to a less fucked up country 2) try again Jan 04 16:38:05 Guys im overlaying Views on top of an ImageView. I know theres ways to zoom in and scale an ImageView, but would it be possible to overlay the other Views and zoom in and out on the whole thing? Jan 04 16:39:50 Hello Guys. I am trying to develop simple app that will compare the last known location of the user with the database list of coffee bars and give the nearest one. The check need to run every two minutes. I am trying to do this with background service. Is IntentService good for this? Jan 04 16:42:44 Rp4k: If you registered the device with your Google account you should be able to unlock it from https://www.google.com/android/devicemanager Jan 04 16:44:20 Rp4k: If you didn't register your device you'll probably have to do a wipe Jan 04 16:45:16 Rp4k: Just saw that you don't have access to Google... I think your out of luck Jan 04 16:50:59 12-31 14:57:41.421 W/Activity( 7046): Can reqeust only one set of permissions at a time Jan 04 16:51:00 huh Jan 04 16:51:07 am I somehow requesting permissions overlapping... Jan 04 16:53:41 http://hanhuy-acra.appspot.com/public/com.hanhuy.android.keepshare/19d5124401b6db70a143653e0ca2380cc691d31f Jan 04 16:53:45 heh, that's a weird looking crash log Jan 04 17:05:13 How everyone doing? Jan 04 17:05:55 When I run functional tests on Android (via Gradle) I find that my sync adapters run in my app, just as if it was a real production app, but they often clash with the tests. Jan 04 17:06:26 E.g. the tests are creating accounts and databases and if the sync adapter runs at the wrong time, this trips it up (e.g. when an account is deleted) and the app crashes, which causes the tests to fail. Jan 04 17:06:31 Which leads to brittle tests, which is bad. Jan 04 17:06:41 Any ideas how to avoid this? Jan 04 17:07:04 If I could tell at runtime in my app that it is under test, it could skip running the sync adapters, but I can't see if that's posible. Jan 04 17:07:44 I get the impression that when functional tests are run, the app is the exact same debug APK and it cannot tell that it is being tested. Jan 04 17:08:23 I can't be the first person to run into this class of problem. Jan 04 17:08:28 I'm wondering how others solved it. Jan 04 17:08:41 If I want a quick overlay screen, should I use Activity, Dialog, DialogFragment or what? Jan 04 17:09:09 Activity, I would have thought. Jan 04 17:10:13 codepete Jan 04 17:10:46 adb shell removed the locksettings.db FTW :) got my phone unlocked without having to reset Jan 04 17:11:31 samhartland, detect when running in test mode and disable sync adapters Jan 04 17:11:44 pfn: but how to detect when running in test mode? Jan 04 17:11:54 That's the bit I'm stumped on. Jan 04 17:11:57 samhartland, you can see how to detect running in test by looking at multidexapplication.java (google multidex support lib sources) Jan 04 17:12:20 Rp4k: Nice! I'll have to write that down somewhere lol Jan 04 17:12:37 Rp4k: Thanks for returning with your findings Jan 04 17:12:45 pfn: the multidexapplication.java that I find from Android Studio only has two lines of code in it. Jan 04 17:12:51 Should I be looking somewhere else? Jan 04 17:13:25 samhartland, look at what it calls, DexLoader or whatever Jan 04 17:13:39 https://android.googlesource.com/platform/frameworks/multidex/+/master/library/src/android/support/multidex/MultiDexApplication.java# Jan 04 17:13:42 This file? Jan 04 17:14:49 Ah - getApplicationInfo() == null in MultiDex.java might be what you're thinking of then. Jan 04 17:15:36 The sync adapters themselves are not launched by the tests though, so surely the content they will see is a perfectly normal one? Jan 04 17:15:41 ^context Jan 04 17:15:52 pfn and duboisj, The /proc reading I was talking about some days ago seems to work. I dumped some files and actually found where the playback position was stored as a long int. (But the location changes if the app is closed.) Now I need to do this in java + bash on my phone: read a large sparse pseudo file which requires root access (already done; see Jan 04 17:15:53 http://pastebin.com/X6Fc7pRt) into some nice buffered java object so that I can search it in my app (not done). Jan 04 17:16:23 yecch Jan 04 17:16:27 joel135: ? ha! Jan 04 17:17:52 well, the reading part would need to be done from a cli app Jan 04 17:17:54 this is on a rooted device and you’re reading from a different app that you don’t control Jan 04 17:17:57 and then handed over to your java app, etc. Jan 04 17:17:58 ? Jan 04 17:18:07 still, yecch Jan 04 17:18:15 and don't count on it working with different android versions, etc. Jan 04 17:18:32 That's what I think too. Jan 04 17:22:04 pfn: I just tried that approach but I'm afraid it sees a regular context. Jan 04 17:22:24 Probably because the sync adapter is not launched by the tests, but as part of the normal running of the app under test. Jan 04 17:22:41 still, it won't be your applicationcontext unless you injected it... Jan 04 17:22:54 I'm thinking right now that I should keep using dd, but only read small (say 4k) chunks at a time. /proc -> dd running in su -> stdout -> java. I'll be back later. Jan 04 17:23:44 samhartland, and for that matter, multidex.java checks context classloader, not context Jan 04 17:24:22 to be clear, my sync adpaters are running as scheduled sync. Jan 04 17:24:30 So they fire up all by themselves as part of my app. Jan 04 17:24:35 But I want to stop them doing that, Jan 04 17:25:11 But my app is oblivious to the fact that it's being tested and has no way of telling, as far as I can see. Jan 04 17:25:13 do what multidex.java does for detecting test Jan 04 17:25:28 I tried that, in my Application class, but it doesn't work. Jan 04 17:25:40 Because the context it has is just the normal context. Jan 04 17:25:44 joel135: if you really want to keep track of that in a java app in real time, I’d think you wouldn’t want to use a cli app or bash if you can avoid it. although I still doubt that will be your biggest problem. Jan 04 17:25:51 huh? what are you talking about Jan 04 17:25:55 you tried /what/ Jan 04 17:26:06 duboisj, cannot be avoided, needs to be run via root Jan 04 17:26:23 you can exec a daemon process and figure out some method of ipc Jan 04 17:26:25 painful either way Jan 04 17:26:28 pfn: ah, crud :( Jan 04 17:27:02 pfn: My sync adapter's performSync() wants to check whether it should run or not. I tried executing the MultiDex approach at that point, but the only context I have access to is the application context. Jan 04 17:27:22 It just so happens the code it calls (shouldSync()) was static in my Applicaiton class, but that's a red herring. Jan 04 17:27:27 Hey all. If I let the user pick an image from the android galley and add it to the application. What should I do about the image format? Is there a standard procedure to convert whatever image type is is to something like .png or how is dealing with multiple types done? Jan 04 17:27:56 samhartland, you did what to check Jan 04 17:28:28 All image does is get loaded from gallery, saved to disk and then displayed at various places in the app Jan 04 17:28:38 saved to internal storage for app Jan 04 17:28:46 Added a copy/paste version of getApplicationInfo(), called it with Application context. If I get back null, assume in test mode. Jan 04 17:28:58 That seems to be what Multidex does. Jan 04 17:29:01 samhartland, getApplicationInfo isn't the only thing done to check for being in test mode Jan 04 17:29:01 why would you save it to internal storage for the app, if it’s already on the phone? Jan 04 17:29:07 samhartland, read further Jan 04 17:30:36 http://stackoverflow.com/questions/30981565/logansquare-parsing-android-library-feedback-benchmarks-pros-cons Jan 04 17:30:58 Interesting benchmark regarding parsing library quest I am onto Jan 04 17:31:00 because im having a hard time figuring out how to just load/store to internal memory so why would i make things harder for myself and try to handle images in other directories Jan 04 17:31:32 because now you’re essentially halving the user’s storage Jan 04 17:32:04 the images are more or less profile pictures... i doubt they are going to eat away that much space. Jan 04 17:32:07 pfn just trying class loader approach. Jan 04 17:33:15 pfn: Still doesn't make any difference. Jan 04 17:33:42 And I don't see why it would. The context and class loader are surely perfectly ordinary ones that are no different than when not running under test. Jan 04 17:34:08 The app is running on the device as normal, oblivious to the fact it is also being tested, no? Jan 04 17:34:23 * pfn shrugs Jan 04 17:34:27 multidex does that and works Jan 04 17:34:32 you must be checking incorrectly somehow Jan 04 17:34:35 and not only that but i don't see it being a fun task to try and handle images should they get deleted from their original folder. Jan 04 17:34:56 I can see that it would work where the thing doing the check was invoked *by* the test, in a test context. Jan 04 17:34:58 the user probably deleted the image for a reason Jan 04 17:35:13 But my tests are not invoking the sync adapter. Jan 04 17:35:25 Thanks for your suggestions. I have to head home now. Jan 04 17:36:43 shouldn't matter if tests invoke it, it should behave the same way Jan 04 17:37:17 ultimately it would be nice to let the user just add a photo via weblink or camera. the images are supposed to get scaled down to like 500 x 500 at most. and having a bunch of items in my app each point to an image location on the device that could get deleted at anytime just sounds stupid. Jan 04 17:39:48 the images the user adds would most likely be downloaded/added exclusively for stuff in the app and no others so it doesn't make sense to not keep them all within the app or in a single directory. if they delete them out of gallery later fine, it wouldn't effect stuff in the app. Jan 04 17:51:11 can I save a list of objects in a shared preference? Jan 04 17:52:15 yes Jan 04 17:52:17 anyone here integrate IFTTT into their own project? just looking at this, seems (1) you can't create custom channels and (2) their Android apps have no APIs - so its just http calls to their server Jan 04 17:52:26 if object is serializable and list is arraylist Jan 04 17:52:28 gordon_, got a link or a tutorial? Jan 04 17:53:05 I am running into a problem with an app, where I am not sure where to save a list of objects and thought shared preferences could be one Jan 04 17:53:08 http://stackoverflow.com/questions/7057845/save-arraylist-to-sharedpreferences Jan 04 17:53:18 thanks! Jan 04 17:53:31 how big is this list? Jan 04 17:53:46 usually 3 to 5 items Jan 04 17:53:51 3 to 5 objects Jan 04 17:57:49 gordon_, are you suggesting to convert it into a json string? Jan 04 17:58:39 brb Jan 04 17:59:30 gson Jan 04 18:26:01 why is this conditional not true? https://gist.github.com/morenoh149/f3129be9d929e25f1f71#file-android-src-main-java-com-rt2zz-reactnativecontacts-contactsmanager-java-L39 Jan 04 18:26:21 I'm seeing: `01-04 13:24:37.651 2754 2786 I react native contacts:: Cursor count: 0` in the log Jan 04 18:27:05 You never return Jan 04 18:27:32 Retrofit devs - 401 status code might not need be classified as IOException. It would have made more sense if routed to Kind.HTTP... Just saying... Jan 04 18:28:38 SimonVT: does that also mean I must return after line 108? Jan 04 18:29:15 napster: https://github.com/square/retrofit/issues/1012 Jan 04 18:30:14 oh! Was it actually the http client?! thanks yiati ... Jan 04 18:30:48 morenoh149: Uh, no.. Jan 04 18:30:57 Helo, I can't download android studio for linux Jan 04 18:30:59 Java 101 Jan 04 18:31:14 the download does not start in browser Jan 04 18:32:20 https://dl.google.com/dl/android/studio/ide-zips/1.5.1.0/android-studio-ide-141.2456560-linux.zip does not start :-( Jan 04 18:32:45 SimonVT: okay. I need java 101. why wouldn't I want a return at the end of my method? Jan 04 18:32:47 ubik123: works for me Jan 04 18:32:57 hmm, maybe I have to reconnect my router Jan 04 18:33:02 I'll try this out Jan 04 18:33:25 because it's void? Jan 04 18:34:12 yep Jan 04 18:45:36 posted this a bit ago but didnt get an answer: I know that you can get an ImageView to zoom in/out, but im overlaying Views on top of an ImageView. Would it be possible to zoom in and out on the entire group of views? Jan 04 18:47:52 is there a way to get VPN information about the device without having to resort to getRuntime().exec? Jan 04 18:53:18 java.lang.IllegalStateException: An anchor may not be changed after CoordinatorLayout measurement begins before layout is complete. Jan 04 18:53:46 https://gist.github.com/mRokita/32b2055d2f92fdc98998 Jan 04 18:53:57 does anybody know why it happens? Jan 04 18:54:25 mFab is a floating action button Jan 04 18:56:12 because you're doing what it says you can't Jan 04 18:57:12 you're changing the anchor mid layout Jan 04 18:57:56 Hello Jan 04 18:58:53 Phone lcd broken but phone works Jan 04 18:59:15 has pattern lock Jan 04 18:59:26 How to see screen in pc? Jan 04 18:59:57 I have adk Jan 04 19:00:46 Wifi not on so cant google control Jan 04 19:01:55 How to see screen onpc Jan 04 19:02:37 Turougalsar: try #android, this channel is for app dev Jan 04 19:02:38 Have screen mirroring app installed but cant open read iscooneat etc Jan 04 19:02:52 Nothing there Jan 04 19:09:40 <_biff> have anybodry ever installed cygwin? Jan 04 19:10:24 <_biff> with android ndk Jan 04 19:22:32 reto meier is asking on twitter where app devs hang out - isn't he supposed to be dev advocacy ? :P Jan 04 19:22:45 would think he knew that ;) Jan 04 19:24:29 yo all Jan 04 19:24:38 anyone have issue with html5/ogg with android 4.X? Jan 04 19:24:47 I hang out at the Port Authority Jan 04 19:25:49 somebody said a lot are on slack Jan 04 19:26:11 Slack sucks for this kind of use case :/ Jan 04 19:27:05 slack has its pros and cons Jan 04 19:27:34 It's great for company communication, it's just not all that great for public type of communities :/ Jan 04 19:27:40 Since there's no discoverability. Jan 04 19:28:28 i’d say there’s about as much discoverability as there are for random IRC channels Jan 04 19:29:06 yeah Jan 04 19:29:11 don't you need an invite for slack though ? Jan 04 19:29:17 or at least a channel? Jan 04 19:29:33 Yeah, you need to be approved to join a "company" / community Jan 04 19:29:50 doesn't sound very egalitarian to me Jan 04 19:29:51 It's like Freenode would be invite only and without any kind of advertising :) Jan 04 19:29:55 inviting is the pita here Jan 04 19:30:02 It's great for company chat. Jan 04 19:30:07 there is an android dev slack channel Jan 04 19:30:16 or someone tried to make it Jan 04 19:30:25 It's actually pretty nice since you can keep different rooms for different topics Jan 04 19:30:28 But Freenode works way better for language / oss project channels. Jan 04 19:30:30 guys help me:P Jan 04 19:30:51 DelphiWorld: Nope noone has ever had that issue Jan 04 19:31:07 yiati: see Jan 04 19:31:21 yiati: i am runing it inside of cordova app Jan 04 19:31:37 android 5.X work prettywell but 4.X no Jan 04 19:31:51 DelphiWorld: Dunno anything about cordova Jan 04 19:31:59 :/ Jan 04 19:32:04 I guess it's a webkit issue. Jan 04 19:32:29 Mavrik: i guess its a path issue, rather Jan 04 19:40:21 everyone can helped me with my notification? Jan 04 19:40:53 i can receive notification, but when i click on the notification the activity open but i dont becam the data from the notification Jan 04 19:43:23 you passed the data into the intent? Jan 04 19:43:49 i hope Jan 04 19:43:57 can i paste the code Jan 04 19:44:11 not in here; use something like pastie or pastebin or something Jan 04 19:44:22 http://nopaste.linux-dev.org/?920270 Jan 04 19:45:08 i don’t see you passing any info into your pending intent Jan 04 19:45:34 i mean, you create an intent to launch the activity (assuming Filedownload is the activity), but you don’t give it any extras Jan 04 19:45:38 msg and titel i have in the notification Jan 04 19:45:49 right, in the notification. not the intent Jan 04 19:46:09 and how i becam it into the intent? Jan 04 19:46:18 same way you’d pass it into any other intent Jan 04 19:46:39 this is the notification Jan 04 19:46:53 doesn’t matter Jan 04 19:46:54 how i must write the intent for the "click" ? Jan 04 19:47:11 you have things set up right for the notification. now you just need to add extras to your intent Jan 04 19:48:49 i dont know Jan 04 19:49:06 you add extras to other intents in your app, right? Jan 04 19:49:13 no Jan 04 19:49:36 http://developer.android.com/reference/android/content/Intent.html Jan 04 19:50:05 hmm, i wonder what could influence the appearance of a progress dialog such that the spinning wheel isn't shown.. compat themes? Jan 04 19:50:15 i want the "message" when i click on the notification share to the Filedownload.class Jan 04 19:50:48 yes, and to do that, you have to pass whatever it is as an extra into the intent Jan 04 19:50:55 so that the activity receiving it will get it Jan 04 19:51:08 and the link I gave you should tell you how to do that Jan 04 19:53:46 i cant add extras Jan 04 19:53:53 yes you can Jan 04 19:54:22 take the creation of the intent out of the creation of the PendingIntent, and then you can add all the extras you want Jan 04 19:56:12 no Jan 04 19:56:39 that’s how you’d do it Jan 04 19:57:37 Will logcat output logs if ran from IntentService? Jan 04 19:59:35 i dont understand Jan 04 20:00:13 vol4ko, yes. Jan 04 20:00:30 snooky: the only way to pass information to an activity is to do so with Intent Extras Jan 04 20:01:06 so in order to do what you want, you need to add the stuff from your message into the Intent Jan 04 20:01:50 so in order to do that, instead of creating the intent inline, you need to move it’s creation to the lines above, so you can manipulate the intent before giving it to the PendingIntent Jan 04 20:02:02 yes. but when i write "extends IntentService" to my Filedownload.class it dont runs Jan 04 20:02:25 that’s a completely different issue Jan 04 20:02:36 was Filedownload an activity before? Jan 04 20:03:00 no Jan 04 20:03:21 what was it? Jan 04 20:03:55 when i click on the notification the Filedownload activity open and the Filedownload.class Jan 04 20:04:08 so it was an activity Jan 04 20:04:47 in the Filedownload.class i have write setContentView(R.layout.filedownload); Jan 04 20:05:17 and in the Filedownload.class i need the message from the notification Jan 04 20:05:39 and you never had ‘extends Activity’ anywhere in that class’s declaration? Jan 04 20:05:53 show the declaration for the class Jan 04 20:06:17 http://nopaste.linux-dev.org/?920318 Jan 04 20:06:29 THAT’S AN ACTIVITY Jan 04 20:08:07 http://silberkristall.ovh/owncloud/public.php?service=files&t=afb51c1aec014070da9db8237a1517d5 Jan 04 20:08:08 so go do what I said, including reading the thing I pasted on intents Jan 04 20:08:15 there all my files from my application Jan 04 20:08:23 i don’t need that Jan 04 20:08:29 i told you how to do it Jan 04 20:10:14 pass extras into the intent for the information you want the Activity to have. Then in the Activity, look for the extras, and if they’re there, use them Jan 04 20:10:33 i cant add extras Jan 04 20:10:37 it dont runs Jan 04 20:10:46 yes, you can Jan 04 20:10:56 no Jan 04 20:11:06 than i became an NullPointerEx......... Jan 04 20:11:12 how are you adding the extra Jan 04 20:11:43 Intent intent = new Intent(this, DisplayMessageActivity.class); Jan 04 20:11:56 intent.putExtra("message", msg); Jan 04 20:13:48 and where is the NPE happening? Jan 04 20:15:20 and why did you change the class? Jan 04 20:17:10 Intent intent1 = new Intent(this, Filedownload.class); intent1.putExtra("message", message); Jan 04 20:17:36 why do you have intent1 now? Jan 04 20:18:00 post your stack trace, and what your sendNotification method looks like Jan 04 20:18:09 ^^ Jan 04 20:19:05 http://nopaste.linux-dev.org/?920337 Jan 04 20:19:06 this? Jan 04 20:19:31 i meant the new one. the one that you have now Jan 04 20:20:41 i'm again severely confused :) Jan 04 20:20:49 i dont know Jan 04 20:21:17 showing a dialog with a spinning wheel is quite hard it seems :) Jan 04 20:21:35 after you’ve made the changes i told you to do, the one that you say is causing a null pointer exception. post that Jan 04 20:21:49 and post the stack trace that you get when it does crash Jan 04 20:22:52 fps, new ProgressDialog(this).setProgressStyle(STYLE_SPINNER) Jan 04 20:22:54 you mean the log from android studio at the bottom? Jan 04 20:22:55 and then show :p Jan 04 20:23:25 snooky: that’s one thing that I want, yes. But not the whole thing, only the part where it gives the stack trace after it crashes Jan 04 20:23:51 s73v3r, its a trap.. Jan 04 20:23:57 the other thing i want is the version of your sendNotification method which has you attempting to pass extras into the intent Jan 04 20:24:06 danijoo: you’re probably right Jan 04 20:24:59 hes the hydra of debugging. you chop one head off and another one appears ^^ Jan 04 20:26:01 that i cant post Jan 04 20:26:19 then we can’t help Jan 04 20:27:37 it was 4 / 5 hours Jan 04 20:28:31 you said it JUST gave you a NPE. the stack trace can’t be that deep in your log Jan 04 20:28:43 if anything, clear the log, run it again Jan 04 20:29:26 filter for Log.e Jan 04 20:29:31 that will clear all but the errors Jan 04 20:29:40 * danijoo flies away Jan 04 20:29:40 ^^ Jan 04 20:30:02 danijoo: that's basically what i do. although STYLE_SPINNER should be the default.. Jan 04 20:32:28 * fps 's pretty sure he just doesn't understand something very basic about android again :) Jan 04 20:34:24 for some reason i only get chinese pages in the android references now.. Jan 04 20:34:27 wtflolbbq :) Jan 04 20:35:06 opening this http://developer.android.com/guide/topics/ui/dialogs.html#ProgressDialog Jan 04 20:35:18 gives me this: http://developer.android.com/intl/zh-cn/guide/topics/ui/dialogs.html#ProgressDialog Jan 04 20:35:27 what have i done? Jan 04 20:36:08 switch back to english Jan 04 20:36:20 i write all new Jan 04 20:36:21 -.- Jan 04 20:37:00 pfn: oh wow, i must have somehow focussed that combo box selecting the language :) Jan 04 20:37:09 * fps sinks into the ground Jan 04 20:37:09 all shit Jan 04 20:37:36 fps, no, random google links Jan 04 20:39:39 If I have many alertdialogs in my app, can I use a class or more to organize them all or is it a bad pattern? Jan 04 20:41:36 why yes you can Jan 04 21:08:33 yes Jan 04 21:08:35 it runs :) Jan 04 21:16:32 Where is the RotationVectorDemo mentioned here? I can't seem to find it in the sample list in Android Studio. http://developer.android.com/guide/topics/sensors/sensors_motion.html#sensors-motion-rotate Jan 04 21:24:36 Hi! I can't test my app on my device. It says "No target device foun". I have enabled USB Debugging on my Phone. Jan 04 21:25:48 cwek: what does "adb devices" tell you? Jan 04 21:26:03 No listed devices Jan 04 21:26:23 plug in as mtp or ptp device Jan 04 21:26:46 you must also authorize the computer running adb on some devices.. Jan 04 21:26:51 check the developer options Jan 04 21:26:58 on the device Jan 04 21:29:45 Authorize computer? Jan 04 21:29:50 How can I do that? Jan 04 21:31:30 How is 'export TERM=dumb' being set here without being described in the project .travis.yml file? https://travis-ci.org/JakeWharton/u2020/builds/100109212 Jan 04 21:32:57 if you're on windows you'll need drivers dependent on the manufacturer (or the hw) of your phone. if you're on linux, you'll need to install the udev rules. in all situations, you'll need to make sure you're using a data cable (many phones ship with charge-only cables). Jan 04 21:33:38 Well, I'm sure that I'm using data cable. I can see my phone's storage. Jan 04 21:33:58 Will check drivers now Jan 04 21:34:35 yiati: It's a default thing (see lib/travis/build/script/jdk.rb if terminally curious) -- note how setting TERM happens after the jdk_switcher stuff and all. Jan 04 21:36:03 Hey anyone know how to run `adb shell somecommand` and get color on the output? It always gets stripped, but works when run within the shell. Jan 04 21:37:41 yiati: awesome thanks Jan 04 21:41:41 still not working.. restarted adb server and device Jan 04 21:45:22 aaahhahaha, this cost me ca. 8 hours now :) the spinning wheel depends on transition settings.. ugh.. Jan 04 21:46:09 hnnnngggg... Jan 04 21:47:51 cwek: check in the developer settings of your device. i had to authorize my computer there iirc Jan 04 21:48:50 Authorize your computer in developer settings? I checked all my settings and I can't find that. I'm using 5.1.1 lollipop Jan 04 21:48:51 fizzie: Looks like it was triggering for me since I have my gradle files down a directory in my repo. Thanks for the source. Never would have figured that out Jan 04 21:52:22 hello guys Jan 04 21:53:43 unplug from usb. plug it in. fire up adb / android studio / whatever. If you don't see the debugging icon in the status bar and don't get prompted to allow the computer, then you probably don't have something installed correctly on the computer side Jan 04 21:54:05 (or you don't have debugging actually enabled on the phone, but I'm assuming you've done tht) Jan 04 21:54:14 i have google map and markers on it, when i click on it, i assume that it is selected and then i have a menu button on Appbar, with that button i will add the info of that place to DB. I created DB, i have map and markers, how i will know that place selected and send its information to db ? Jan 04 21:55:20 dragorn: what could actually not be installed correctly on my computer? Jan 04 21:55:31 cwek, I've never done android dev on windows, so no clue Jan 04 21:57:02 LOL Jan 04 21:57:16 I know what's wrong :D Jan 04 21:57:31 I didn't have API22 installed Jan 04 21:57:39 well my phone is updated to it.. Jan 04 21:57:45 maybe that's it Jan 04 21:57:50 https://code.google.com/p/android/issues/detail?id=197719#c7 Jan 04 21:57:52 hmm, that's helpful Jan 04 21:59:15 Does DBFlow work well with multiple databases? Jan 04 22:06:29 Hello. I have mod apk for old version of the game. Is anybody can help me to make mod for new updated version? Jan 04 22:08:25 no Jan 04 22:17:02 hi. how expensive is it to listen for physical taps onto the phone? Jan 04 22:17:23 like, accelerometer events? Jan 04 22:17:26 yes Jan 04 22:17:49 needs a wakelock, which is relatively expensive battery wise, right :/ ? Jan 04 22:18:11 kinda, yeah. how long do you need to listen for? Jan 04 22:18:23 I'd want it to stay alert all the time... Jan 04 22:18:30 why? Jan 04 22:19:14 It's about fast reaction time. I want a random generator that quickly makes decisions for me: tap 3 times: get random(3) vibrations back Jan 04 22:19:49 but maybe I can live with using the physical buttons Jan 04 22:20:24 is it only when your app is active? Jan 04 22:20:51 not really. especially when the phone is off and in your pocket Jan 04 22:20:56 i mean, screen off Jan 04 22:21:26 so you’d want it as a service, running in the background? Jan 04 22:21:35 ideally, yes. Jan 04 22:22:15 code it up and run tests on the impact to battery life, I guess Jan 04 22:22:28 hehe.. ok Jan 04 22:22:36 Hi, I'm trying to create an overlay window to be shown over other apps. Please see my code http://pastebin.com/DUWwGt44 based on this SO thread http://goo.gl/ntS4ci. I manage to start the service (the toasts appear, text is logged) but I don't see anything on screen. Am I not supposed to see "Hello World" in red? Jan 04 22:23:11 I once did permanent audio recording and it was surprisingly cheap (used wav, sd-cards wake and sleep fast to dump the chunks it turns out) Jan 04 22:25:12 disregarding this horrible app i'm working on that goes against all android design guidelines: what is the recommended way of an application storing and presenting login credentials if needed for an api to fetch data from? Jan 04 22:25:44 I have the latest Android Studio Preview 4, with SDK 23, but a sample app I'm trying to import has compile sdk set to 19 in the gradle build. Do I have to download SDK 19? or can I just change the gradle build file to point to the SDK I have (23)? btw, min sdk is 16.. Jan 04 22:25:54 there’s the Accounts Manager. There’s also always sharedpreferences Jan 04 22:28:37 i have google map and markers on it, when i click on it, i assume that it is selected and then i have a menu button on Appbar, with that button i will add the info of that place to DB. I created DB, i have map and markers, how i will know that place selected and send its information to db ? Jan 04 22:29:46 s73v3r: yeah, i thought about sharedpreferences and a settings page, but the accountmanager sounds interesting, too Jan 04 22:32:51 fps, i wonder if i get away with just using a cookie in my hybrid app. I think I am. Jan 04 22:33:33 anotheryou: your nick reminds me of that chet baker interpretation of "there will never be another you". great tune.. Jan 04 22:33:41 hi under what circumstance could the virtual keyboard be gone after coming back to the app? Jan 04 22:34:21 panda81: not calling super.onSaveInstanceState in onSaveInstanceState()? :) Jan 04 22:35:20 fps, oh yes, indeed a great tune :) quite possible I was unknowingly inspired by it. But actually I forgot how I came to the name. One day I found an account I read as ano-therme and thought someone got something wrong. Than I realised it was spelling another-me and indeed a dusty account of mine XD. Now I switched to anotheryou... Jan 04 22:36:32 lost my connection.. in case I missed an answer.. Jan 04 22:36:35 :) Jan 04 22:36:38 fps:I should clarify that I can see the thin input field and a cursor inside after coming back to the app, but the rest of the alpha-numeric keyboard doesn't appear. It's like the keyboard isn't lifted up to be visible Jan 04 22:36:50 panda81: then i have no clue Jan 04 22:37:04 https://www.youtube.com/watch?v=FWrz9-iLjmc pls don't ban me :) Jan 04 22:41:51 if a user uses titanium backup to freeze an app, is it still visible via app info? or is it completely hidden? Jan 04 22:42:09 hidden i think Jan 04 22:42:19 but not sure Jan 04 22:42:24 very annoying if the latter Jan 04 22:42:29 why? Jan 04 22:42:35 oh well, another instance of fuck the user if they do something stupid Jan 04 22:42:52 hehe. it's a mighty tool with a horrible UI, not for noobs Jan 04 22:43:14 anyone have any experience with google play games services complaining about exceeding rates on requests? dev console tells me I should have 5 requests per user per second but even spacing out requests five seconds apart still tells me "rate exceeded" a lot of the time Jan 04 22:43:17 because you can't prompt the user to enable it easily Jan 04 22:43:45 hello Jan 04 22:43:56 i have a problem with my asynctask Jan 04 22:44:02 01-04 23:43:36.842 5422-6164/ovh.silberkristall.myapplication E/Error:: length=1; index=1 Jan 04 22:44:06 but sometimes it runs Jan 04 22:44:14 sometimes i became this error Jan 04 22:45:57 anyone know where to read about build.gradle file and sdk versions? I am wondering what is best practice when importing sample code with an older sdk Jan 04 22:49:52 http://hanhuy-acra.appspot.com/public/com.hanhuy.android.keepshare.lite/8349e180bb41a1fe71acf3c8dd71aa401efcff5d Jan 04 22:49:54 weird crash report... Jan 04 22:54:53 snooky: If you’re going to post an error like that, it’s best to put the entire stack trace Jan 04 22:58:29 snapfractalpop: what sort of questions do you have exactly? I’m a complete gradle noobie, but I did just switch over to it, so what little I’ve done is fresh. Jan 04 23:01:21 snapfractalpop, duboisj. Are the sdks backwards compatible? (I'm a noob) can i just change the sdk in the manifest to something higher? Jan 04 23:02:51 they should be backwards compatible, so if you have a newer sdk in general I think things will work. conflicts are possible. Jan 04 23:03:07 for using mutiple projects with different requirements, you can just install multiple versions of the sdk. Jan 04 23:03:27 sure. I'm just trying to fork some older app Jan 04 23:03:49 I use the ‘android’ command-line tool to do that when I need to, so this is where my advice may become less-than-useful, since most people (incl. you, I assume) are using Android Studio. Jan 04 23:03:51 and thought i could get arround waiting for the sdk manager to download and install XD Jan 04 23:04:34 you can generally set compile target to anything you want, as long as your app builds Jan 04 23:04:49 ok :) doesn't though XD Jan 04 23:04:50 targetSdkVersion in manifest can change y our app behavior depending on what you set it to Jan 04 23:05:00 if you're targetting an older version you'll need the sdk for that version, but generally good behavior is to set your target sdk to the latest, and set the minimum sdk accordingly. Jan 04 23:05:04 you generally want to set the highest version available, except for a few cases Jan 04 23:05:33 makes sense Jan 04 23:05:56 setting targetSdkVersion=23 is generally a good thing, except for dealing with permissions Jan 04 23:05:56 hi, does anyone know why getFileDescriptor is not available for MemoryFile with Android Studio? Jan 04 23:06:15 mrec, because there's no such api Jan 04 23:06:25 hi ! Jan 04 23:06:51 I try to make an app where I can change the number of items in a ScrollView. Jan 04 23:06:52 pfn: hmm if I open MemoryFile.java it shows up getFileDescriptor as public Jan 04 23:07:01 mrec, @hide Jan 04 23:07:05 Does anyone know good example codes for this ? Jan 04 23:07:06 so no, it's not public Jan 04 23:07:41 mrec, alternatively, javap -classpath android.jar android.os.MemoryFile -- it is not there Jan 04 23:07:48 mrec: https://developer.android.com/reference/android/os/MemoryFile.html Jan 04 23:08:12 hmm is there any way to forward the fd to another android application? Jan 04 23:08:27 ashmem is identified by name, is it not Jan 04 23:09:08 well it didn't work when I opened the MemoryFile by name with another application Jan 04 23:09:50 do the applications share the same userid? Jan 04 23:10:05 if android didn't disable it, you can pass file descriptors between processes using unix sockets and sendmsg... now, can apps talk to eachother cross-uid with unix domain sockets? I don't know :P Jan 04 23:10:09 duboisj, anotheryou thanks for your input Jan 04 23:10:18 what about the build tools version? Jan 04 23:10:27 how do I go about determining which version I have? Jan 04 23:10:28 and you'd almost certainly be into jni land Jan 04 23:11:01 pfn: yes Jan 04 23:11:05 it seems like I have api version 23, and sdk tools version 24.4.1.. but I'm not sure if that makes sense Jan 04 23:11:20 it still complained that I don't have the "build tools version" Jan 04 23:11:25 are these different things? Jan 04 23:11:29 snapfractalpop: if you’re managing the sdk from the command-line, just run ‘android’ . your versions sound sensible to me. Jan 04 23:11:42 yes, you need to define the build tools version. Jan 04 23:12:01 duboisj: I'm using the Android Studio Preview 4 Jan 04 23:12:06 which I think is the latest stable Jan 04 23:12:21 and yes, all those are different things. the sdk / api version is the android version. the sdk tools version is tools for building stuff. the build tools are other tools for building stuff (like gradle, etc) Jan 04 23:12:25 I don’t use Android Studio, unfortunately Jan 04 23:12:44 hm.. Jan 04 23:12:55 ok, I'll tinker with the numbers in build.gradle Jan 04 23:14:19 pfn: hmm is a normal android user allowed to create a shared memory segment? Jan 04 23:14:31 or does this require root access? Jan 04 23:14:32 mrec, supposed to Jan 04 23:15:02 I have no idea how to get that work .. however I need that shared memory segment in order to get my application work with it Jan 04 23:16:06 I'd be surprised if you're allowed to communicate cross-app via shmem Jan 04 23:16:13 that would be a pretty major hole Jan 04 23:16:46 so Jan 04 23:17:00 now it runs. but i cant play the downloaded file Jan 04 23:17:07 i want download an mp3 Jan 04 23:18:05 snapfractalpop, i just set the build tools to something vague and it worked :) "1.+" i said Jan 04 23:18:34 snapfractalpop, at least it finaly builds and runs Jan 04 23:18:57 anotheryou: haha I wonder what happens if you just remove that line Jan 04 23:19:10 snapfractalpop, would have been my 2nd attemt, haha Jan 04 23:19:10 I wish I knew if/where the documentation for this stuff was Jan 04 23:20:33 http://developer.android.com/tools/building/configuring-gradle.html Jan 04 23:20:37 I think I found it.. Jan 04 23:20:39 reading now Jan 04 23:25:34 I got my gradle sync to finally work Jan 04 23:25:42 oddly, the build tools info I had was wrong.. Jan 04 23:25:52 pfn: do you know any documentation which deals about sharing memory segments with android? Jan 04 23:26:01 I had to go into the standalone sdk manager to find the correct version of the sdk build tools Jan 04 23:26:05 it was 23.0.2 Jan 04 23:26:12 not 24.4.1 Jan 04 23:35:11 My RecyclerView is not working. I set the adapter and there is no error, but the place where it is suppsoed to be is blank. Jan 04 23:35:18 so, now runs all :) but i need help in one thing Jan 04 23:35:57 http://nopaste.linux-dev.org/?920571 Jan 04 23:35:59 line 109 Jan 04 23:36:40 how i became there the variable from line 56 as savename? Jan 04 23:37:27 i have no idea what you just said Jan 04 23:37:48 on line 109 is the savename from the downloaded file Jan 04 23:38:04 OutputStream output = new FileOutputStream("/sdcard/test.mp3"); <<--- test.mp3 Jan 04 23:38:09 on line 109 is the saving of the file Jan 04 23:38:37 dragorn, shouldn't be a hole if it's same-user though Jan 04 23:38:40 yes, with the filename Jan 04 23:39:05 snooky: just pass the name into the asynctask used for saving Jan 04 23:39:37 snapfractalpop, indeed, 24.4.1 is sdk/platform tools Jan 04 23:39:39 snapfractalpop, not build tools Jan 04 23:39:41 yes, and how i do this? Jan 04 23:40:11 http://stackoverflow.com/questions/9900834/how-to-pass-variables-in-and-out-of-asynctasks Jan 04 23:40:30 ok got it it's possible to access those hidden methods Jan 04 23:42:30 s73v3r: do you have links of german? *g* Jan 04 23:43:07 i don’t, sorry Jan 04 23:43:45 you’d pass the name in as a second parameter to the asynctask’s execute method Jan 04 23:44:18 and then it’d be the second element in the doInBackground parameter array Jan 04 23:45:05 aaahh i understand Jan 04 23:45:43 if you wanted to, you could override the constructor, and pass it in there Jan 04 23:45:57 i write new DownloadFileFromURL().execute(mp4link, mp34name); and then i have in the doInBackground ...[0] and ...[1]. in [0] is the link, in [1] the name Jan 04 23:46:05 My RecyclerView is not working. I set the adapter and there is no error, but the place where it is suppsoed to be is blank. Jan 04 23:47:17 yes, nice Jan 04 23:47:21 thanks s73v3r Jan 04 23:48:05 and now i need a "feinheit" ^^ Jan 04 23:48:06 for the future, you’d probably be better off creating an object that represents the data you’re using, so you don’t have to remember what 0 and 1 are Jan 04 23:50:16 snooky, what is a feinheit? Jan 04 23:50:29 snooky, (I'm german) Jan 04 23:50:30 moment Jan 04 23:50:42 "feinheit", "verbesserung" Jan 04 23:50:55 ah... Jan 04 23:51:13 i have this code Jan 04 23:51:15 http://nopaste.linux-dev.org/?920581 Jan 04 23:52:10 i write kayef, so i tip k a y e f Jan 04 23:52:14 now see my server log Jan 04 23:52:16 http://nopaste.linux-dev.org/?920582 Jan 04 23:52:18 why? Jan 04 23:52:46 line 4 is full, on line 5 the f is clear Jan 04 23:53:05 but f ist the last Jan 04 23:57:38 I've got an Honor (Che2-UL00), rooted. Do I need to have the bootloader unlocked to flash a non-stock ROM onto it? Jan 04 23:58:39 twisted_x___ read topic Jan 04 23:59:00 Noted Jan 04 23:59:36 yeah Jan 04 23:59:53 my app runs and can uploaded to the appstore :) Jan 05 00:02:31 how many devices have you tested on? Jan 05 00:03:15 noob question: i want to use vibration and the example calls for "context". how do I make some context :) ? Jan 05 00:03:27 two Jan 05 00:03:39 that’s not nearly enough Jan 05 00:03:44 why? Jan 05 00:04:03 i dont get it. looking through the resources for support-preferences, the preference categories are styled using ?android:attr/listSeparatorTextViewStyle - but they look different Jan 05 00:04:08 cause OEMs are terrible at having device specific bugs, and different screen sizes can wreak havok on your layout Jan 05 00:04:16 how i can change the project name in Android Studio? or i must all files editable? Jan 05 00:04:26 is at least one of the devices a Samsung? Jan 05 00:04:34 no Jan 05 00:04:37 all Sony Jan 05 00:04:40 was about to say, if you test on a samsung you're probably fine haha Jan 05 00:04:46 yeah, you’re not ready for upload Jan 05 00:05:20 damien5314 you also have to test on on a working device though :D Jan 05 00:05:34 i hate samsung :-P Jan 05 00:05:40 my app dont for samsung Jan 05 00:05:41 samsung is the worst offender. test on one of their phones from the past couple of years Jan 05 00:05:47 my app only for sony :) Jan 05 00:06:09 like it or not, they are the 800lb gorilla in the room. your app doesn’t work on Samsung? Then you’re not going to be successful Jan 05 00:06:33 unless you’re actually working for Sony, in which case you can write just for Sony phones Jan 05 00:06:50 *shrug* Jan 05 00:07:00 I don't test on samsungs :P Jan 05 00:07:35 screen size testing is a bigger deal imo, depends on your layouts though Jan 05 00:07:53 i don't test on samsung because i don't have any devices but you can always emulate screen sizes Jan 05 00:07:54 yeah, but that can be done with the simulator/genymotion Jan 05 00:08:06 what do you guys think of this layout? video has bit of jank runs smooth on device. https://youtu.be/GhEPhTgvs18 Jan 05 00:11:10 what’s the FAB for? Jan 05 00:11:43 the layout looks interesting, other than the fact that I have no idea what any of the buttons do Jan 05 00:11:45 it's there right now just to bring in the add new item text Jan 05 00:12:08 is it going to have an action related to that text? Jan 05 00:12:45 the end product is gonna be adding colors for words, then in the app if it finds a match to those added filter terms it'll highlight with the selected color in the text span Jan 05 00:13:19 that layout is a color picker option for another part of app Jan 05 00:13:39 and you wanted something other than the standard color pickers Jan 05 00:14:05 yeah, just a limited amount right now Jan 05 00:15:02 i like the idea, just seems to take up a lot of space right now Jan 05 00:15:38 thanks, still has tweakin todo for sure, but it's fun playin with it Jan 05 00:19:30 god... did i really just kill my usb connector? Jan 05 00:21:28 can i read the "telephone owner" over my android app? Jan 05 00:22:46 pfew, just the cable plug broke Jan 05 00:23:04 cheapy verizon usb cable? Jan 05 00:23:44 no idea. something that was lying arround. but I actually dropped my phone on the connector... Jan 05 00:31:52 * g00s keeps typing android:layout_gravity instead of app:layout_gravity, would have spent all week fixing without AS flagging Jan 05 00:33:18 huh, why would it be app:layout_gravity Jan 05 00:33:21 that sounds fucked up Jan 05 00:33:31 it should absolutely be android:layout_gravity.... Jan 05 00:33:45 there's no reason for appcompat to use the wrong layout_gravity attribute like that Jan 05 00:34:49 yeah, GridLayout does that :D Jan 05 00:39:55 do annotation processor changes source or bytecode? Jan 05 00:40:20 kinda new ground, don't understand much Jan 05 00:42:20 so Jan 05 00:42:22 publish Jan 05 00:46:59 so im watching my apps memory usage while idle and its a sawtooth looking thing.. memory usage climbs to a max and then the GC kicks in and it drops back down again.. Jan 05 00:47:12 should i be striving to make that as flatline as possible? Jan 05 00:47:53 i am already caching a bunch of classes i use a lot Jan 05 00:48:42 i seem to be throwing away a hell of alot of string classes. does anyone here use pools of Strings ?? Jan 05 00:49:11 i pool Rect/Paint etc instead of constantly garbaging them Jan 05 00:53:12 i thought this was sarcasm, but apparently not the onion http://www.theverge.com/2016/1/4/10708590/facebook-google-android-app-crash-tests Jan 05 00:54:27 "The tests were reportedly part of a larger effort on Facebook's part to prepare for a future conflict with Google that would force its apps out of the Play Store." Jan 05 00:54:39 can't imagine what that future conflict would be though ... Jan 05 00:54:59 oh i know, EXEMPTION FROM BATTERY OPTIMIZATIONS :D Jan 05 01:02:08 not sure if I missed any messages.. my computer locked up on me.. Jan 05 01:06:53 g00s: well, it's already an issue today. Jan 05 01:07:36 Google's badly implemented doze solution led to issues with many alarm apps, made gmail unable to sync to IMAP or Exchange, led to issues with other apps, etc. Jan 05 01:08:03 And there's no opt out, no fix, and the first OEMs are rolling out 6.0 on their devices. Jan 05 01:08:12 This is gonna take a long time to recover from. Jan 05 01:09:26 justJanne oh, i was referring to apps getting banned with REQUEST_IGNORE_BATTERY_OPTIMIZATIONS debacle Jan 05 01:10:40 Oh, that's interesting. But doze is gonna lead to Facebook writing a hack for it. Jan 05 01:11:09 I'm calling it, in half a year or so we'll see another proud post of them having solved doze by sending wakeup messages via GSM every 15min Jan 05 01:12:00 so nobody answered lol. would it be worthwhile caching Strings in a pool so im not constantly garbaging them? Jan 05 01:12:14 probably not Jan 05 01:12:19 l440r: Strings are pooled anyway Jan 05 01:12:21 i know java strings are immutable but i assume thats just the "xyzzy" not the String s; item Jan 05 01:12:26 aha Jan 05 01:12:26 You don't actually garbage them. Jan 05 01:12:38 did not know that... useful info :) Jan 05 01:12:42 you could try using more things like StringBuilders if needed Jan 05 01:12:43 Under a specific length, at least. Jan 05 01:13:11 so im looking at my apps memory usage and its |..--``|..--``| very sawtooth Jan 05 01:13:24 im assuming thats items being allocated and garbaged later Jan 05 01:13:33 g00s: I don't see Google banning FB, though, because they very well know that if they ban FB due to that, the EU antitrust commission will slice them lengthwise, as Google's own apps do the same. Jan 05 01:14:21 l440r, that's weird. You don't presume that... They didn't... Did Google turn off the string pool in dex or ART? That would be one likely explanation... Jan 05 01:14:31 But it would also imply some horrifying things. Jan 05 01:15:38 im probably garbaging a huge number of Bitmap's tho :/ Jan 05 01:15:53 but i dont think pooling those would be useful Jan 05 01:16:22 Ah, yeah, bitmaps. The bane of every system. Jan 05 01:17:15 necessary evil.. cant not use them but... can i reduce the constant garbaging of their memory use? Jan 05 01:17:43 you can recycle them Jan 05 01:18:01 i do that Jan 05 01:18:30 thats just a "garbage collect this NOW not later" Jan 05 01:18:51 no, recycling bitmaps means that the memory is reused Jan 05 01:19:00 although bitmaps have a separate heap they pull from Jan 05 01:19:14 what does your memory analysis show you’re actually using? Jan 05 01:19:50 not sure how to do a mem analysys in intellij idea. and while i would love to switch to AS it would take me a long time to do the project conversion :( Jan 05 01:20:20 why? Wouldn’t you just import the project? Jan 05 01:20:31 you canbt Jan 05 01:20:32 cant Jan 05 01:21:13 what are the implications of android using openjdk now? Jan 05 01:21:22 there is no automated conversion from IJ project to gradle Jan 05 01:21:41 wait. android is abandoning oracle java ? Jan 05 01:21:41 ! Jan 05 01:21:51 No. Jan 05 01:22:08 Android is moving from a fork of Apache Harmony to OpenJDK Jan 05 01:22:13 android never used oracle java. it used apache harmony Jan 05 01:22:24 OpenJDK contains a patent grant, which would fix the issues with the oracle lawsuit. Jan 05 01:22:37 and would bring them in line with the full JDK Jan 05 01:22:49 And might give us invokedynamic Jan 05 01:22:50 although they only brought in version 7 Jan 05 01:23:10 not likely, unless they go with a higher version Jan 05 01:24:06 Well, JDK 7 had invokedynamic. Jan 05 01:25:08 JVM 7 had invokedynamic Jan 05 01:25:13 JVM != JDK Jan 05 01:25:31 JDK7's bytecode definition had it, too. Jan 05 01:25:48 So every compliant JVM should have it, not just oracles. Jan 05 01:25:54 oh we gotta wait for the next version of android anyway (at the very least) Jan 05 01:26:12 and then another 5 years after it, for the older phones to die off Jan 05 01:26:28 Surprisingly, it's more in the range of 3 years. Jan 05 01:26:44 What format is this color in? 1912602624 Jan 05 01:26:45 Every 3 years, 96% of the phones on Google Play are replaced. Jan 05 01:26:59 drose379: that's a resource ID? Jan 05 01:27:17 how would you make a textview stay within the bounds of its parent? My textviews are all going outside the parent and are getting cut off Jan 05 01:27:17 Thats from Palette.Swatch.getTitleTextColor Jan 05 01:27:32 Method says it returns a color, not sure how to read that justJanne Jan 05 01:28:26 what does the documentation say about the format? Jan 05 01:28:50 Nothing Jan 05 01:28:56 Returns an appropriate color to use for any 'title' text which is displayed over this Palette.Swatch's color. This color is guaranteed to have sufficient contrast. Jan 05 01:29:04 it's the int value of the color Jan 05 01:29:28 How do I convert it to a color? Jan 05 01:29:38 Like hex or rgb or something Jan 05 01:29:39 that is the color Jan 05 01:30:02 Can I get it to hex format Jan 05 01:30:04 or rgb Jan 05 01:30:10 sure Jan 05 01:30:22 That is RGB Jan 05 01:30:26 72 00 00 00 Jan 05 01:30:40 How do you know justJanne Jan 05 01:30:57 Well, brute force. Jan 05 01:31:08 Howd you do it? Jan 05 01:31:15 I tried every possible way of interpreting it, in hex its 0x72000000 Jan 05 01:31:26 0x72000000 is 1912602624 Jan 05 01:31:32 It's the same number. Jan 05 01:31:41 should be able to pass the color int to Color class and get the rgba values Jan 05 01:32:37 Hmm through method or constructor? Jan 05 01:32:46 Maybe the Color(int rgb) ? Jan 05 01:32:48 maybe a static method, i'd have to check Jan 05 01:33:07 yea whereever you can pass the int for your color Jan 05 01:33:30 that long 191260264 is just the decimal representation of the color value Jan 05 01:35:09 Maybe Color.parseColo Jan 05 01:35:15 but that accpets a string Jan 05 01:37:17 http://stackoverflow.com/a/9716960 couple ways of getting your values Jan 05 01:38:00 Thanks Jan 05 01:39:49 BTW, drose379, your color is a 50% transparent black. Jan 05 01:40:03 Hmm Jan 05 01:40:08 Doesnt seem right.... Jan 05 01:40:36 what is invokedynamic? Jan 05 01:42:03 canvs2321, justJanne I got R: 0 G: 0 B: 0 A 114 Jan 05 01:42:03 Hmm Jan 05 01:42:11 yeah Jan 05 01:42:16 Yup, as I said, drose379 Jan 05 01:42:27 50% alpha (actual 50% is 127), black. Jan 05 01:42:45 Thats what its giving me as the "title color" for this image Jan 05 01:42:45 72 is hex, 2*1 = 2 , 7*16 = 112, 2+112 = 114 Jan 05 01:43:01 wow would invokedynamic simplify JNI code? Jan 05 01:43:01 https://snap-photos.s3.amazonaws.com/img-thumbs/960w/ZJE4KHCDWE.jpg Jan 05 01:43:13 Would that color work as a title on that image? Jan 05 01:43:30 l440r: for example. It would also allow you to generate and call code at runtime — Lambdas, curried functions, etc. Jan 05 01:43:34 it's be an alpha'd black, so maybe up higher Jan 05 01:43:58 Hmm lemme try with another pic Jan 05 01:44:01 its an I not an L but i already have exactly that via my forth library Jan 05 01:44:18 in fact. i dont just generate the call at run time i compile the code thats to be called.. at run time! Jan 05 01:44:45 Well, I440r, you don't actually do that in Java on Android today. Most Java on Android today uses fucking helper classes for every lambda. Jan 05 01:45:00 Also, I440r, you might wanna look into JNA, the more useful brother of JNI Jan 05 01:45:57 justJanne, doing JNI with my forth is now trivial for my application code.. the behind the scenes is still a nightmare tho Jan 05 01:46:05 i think i did look at jna before Jan 05 01:46:47 yea im basically doing the same thing JNA does but i have a specific use case being my forth compiler and im probably only scratching the surface of what jna can do Jan 05 01:47:02 canvs2321, justJanne every photo I try no matter if its dark or light its giving me r:0g:0:b:0 Jan 05 01:47:05 (Also, I should finally package a monospace font with this irc app that takes less space, I always turn on proportional to save space, and then read I = l) Jan 05 01:47:05 Just a different hex Jan 05 01:47:07 Doesnt make sense Jan 05 01:47:27 drose379: sure you are doing the photo loading and palletting right? Jan 05 01:47:56 Wanna see code? Jan 05 01:47:58 Only a few lines Jan 05 01:50:33 is there a limit to how often i can call vibration in a given time? Jan 05 01:51:23 anotheryou: yes, a physical one. No, I don't know the limit, sorry, but yes, I've tried it. No, not with every phone, yes, with some Nexus and Motorola devices. Jan 05 01:51:46 And yes, the limit is on system level. Jan 05 01:52:06 driving me mad XD ... Jan 05 01:52:17 justJanne, Im using getVibrantColor from the Pallete class Jan 05 01:52:21 Do you think thats what I want Jan 05 01:53:17 drose379: sorry, I don't know, I haven't worked with pallette yet. Jan 05 01:53:33 (I know, I should, but I had no use case yet) Jan 05 01:53:40 No prob Jan 05 01:53:46 I have an image with text on it Jan 05 01:54:04 And sometimes the text color gets washed away by the image colors Jan 05 01:54:09 Trying to fix that with this Jan 05 01:55:08 drose379 also check out plaid app ColorUtils class, has some useful thing Jan 05 01:55:26 Good idea g00s Jan 05 01:55:30 Have you ever worked with pallete? Jan 05 01:55:36 nope Jan 05 01:55:52 Hmm Jan 05 01:57:48 Looks like I can find the most popular swatch in the pallete, then get the title color from that Jan 05 02:01:18 Just hope I can dynamically set the text color of my toolbar and toolbar aciton buttons Jan 05 02:07:14 anyone know the default layout parameters for a textview? Jan 05 02:07:55 "Lanier told his 8-year-old daughter recently: “In our society there are two paths to success: One is to be good at computers and the other is to be a sociopath.” Jan 05 02:09:02 if i have sub pixle enabled on a paint is anti alias a redundancy? Jan 05 02:09:08 pixel even meh Jan 05 02:09:17 no idea why i keep transposing the e and l lol Jan 05 02:10:08 g00s, what about both Jan 05 02:13:52 justJanne, how come my Alpha goes up to 86 but it looks like the a scale in rgba only goes from 0.0 to 1.0? Jan 05 02:15:01 or anyone else who knows :P Jan 05 02:15:27 drose379: because 1.0 = 255, 0.0 = 0 Jan 05 02:15:33 Ohhh Jan 05 02:15:40 The difference is if you want to represent the values as float or int. Jan 05 02:15:46 So 86 = like 0.6 Jan 05 02:15:53 Here it makes no sense to use a float when we have only 256 values. Jan 05 02:15:55 Yes. Jan 05 02:16:16 justJanne, do you know if I can dynamically set the color of my toolbar items Jan 05 02:17:02 alpha is traditionally (in most drawing apis, opengl, etc) a float from 0.0f to 1.0f Jan 05 02:17:24 i imagine the rbga packed representation makes it a single byte to pack the whole value into a uint32 Jan 05 02:17:45 Yup. Especially as rgba supports only 256 values per channel anyway. Jan 05 02:17:46 Is there a calculation to get my 86 alpha to something betwee 0.0 and 1.0 Jan 05 02:17:50 *rgba32 Jan 05 02:18:12 drose379, float a = (float) intval / (float) 255 Jan 05 02:18:22 ^ Jan 05 02:18:32 want to do some type safety, (float) (intval & 0xFF) / (float) 255 Jan 05 02:18:43 or whatever java does for bitwise and, I forget if it gets crappy about that syntax Jan 05 02:18:46 If I fell you it's a linear representation, then it should just work like that. Jan 05 02:19:00 Nope, it uses that syntax, dragorn Jan 05 02:19:04 So 86 is about 0.3 alpha Jan 05 02:19:07 But Java has no unsigned bytes. Jan 05 02:19:12 Eh, that's wrong. Jan 05 02:19:19 What is? Jan 05 02:19:25 86 being 0?3 Jan 05 02:19:33 Oh why wrong? Jan 05 02:20:05 Let's estimate in our heads: we get 86, maximum FF. 8 is 50% of F, so it should be 0.49 or 0.48 Jan 05 02:20:31 you thinking hex 86 or int 86 Jan 05 02:20:42 'cause int 86 is around 0.3 Jan 05 02:20:59 http://online.sfsu.edu/chrism/hexval.html :p Jan 05 02:21:05 I always think hex, sorry Jan 05 02:21:31 i assume he meant int 86, instead of 0x86 Jan 05 02:21:37 After first semester we had some "design a DLX from ground up", my mind thinks in hex, binary and so on. Jan 05 02:21:47 drose379: Becasue char is an unsigned type in Java Jan 05 02:21:50 Yeah, decimal 86 would be around 0.3 Jan 05 02:21:54 86 decimal = 56 hex = 34 % Jan 05 02:22:13 Yeah, 56 makes sense as 0.3 Jan 05 02:22:15 Sorry Jan 05 02:22:48 So if I pass 85 as the alpha in Color.argb it should be right Jan 05 02:25:27 Sorry for all the seemingly novice questions :P Jan 05 02:28:02 Don't worry, when Zuckerberg stole the photos of hundreds of students and started Facebook to get even more he also was an inexperienced developer — everyone starts as a novice. Jan 05 02:28:51 Well, I've been doing android for a bit, just never had a reason to really care about the complexities of colors Jan 05 02:29:25 If that makes any sense justJanne Jan 05 02:31:04 Oh, indeed it does. I've used, for example, SQL for years. Only yesterday I learnt it has case statements and has trinary logic Jan 05 02:31:40 Hm, interesting Jan 05 02:34:49 justJanne: "SQL" doesn't have that. Certain dialects of SQL does. Jan 05 02:35:17 loke: The original SQL definition has it. Jan 05 02:35:22 DB2 has it. Jan 05 02:35:32 Even MSSQL implements it standard compliant. Jan 05 02:35:35 justJanne: Which original definition of SQL? Jan 05 02:36:36 loke: ISO standard from '87 Jan 05 02:37:04 Which is based on the suggestions for SEQUEL from IBM from the previous years. Jan 05 02:37:34 (I'm taking a databases and information structuring class this semester) Jan 05 02:37:51 justJanne: That's news to me. I was certain the spec didn't include that. However, I am going to trust you about that since I can't be bothered to look at the actual spec. :-) Jan 05 02:38:08 And I trust my professor, because I'm too lazy, too. Jan 05 02:38:21 And in the end he'll see he just added it to check who read the spec Jan 05 02:38:39 justJanne: I've seen too many students being fed outright wrong information by teachers, so I better check now. :-) Jan 05 02:39:22 At least by SQL:2003 it should be in the standard, though. Jan 05 02:40:42 Can't find the actual spec, but the Wikipedia page on SQL-92 says CASE was a new feature in that version. Jan 05 02:41:20 Yeah, just checked. Was 92, not 87 Jan 05 02:41:43 So it was already in the spec when I first learned SQL (in 1994, abouts) Jan 05 02:41:54 What matters is that today every system implements SQL:2003 to spec, so we don't have to really care about which vendor has it or not. Jan 05 02:42:54 justJanne: There is so much platform-specific stuff in all the databases that just writing conforming code does not guarantee much. You always have to test everything whenever switching database. Jan 05 02:42:58 Luckily most profs at my uni have actual experience IRL with what they're teaching, except obviously the math profs. Jan 05 02:43:21 justJanne: Be _very_ wary of the ones that don't. Jan 05 02:43:27 And yes, of course, but it's always problematic when different systems support different syntax even. Jan 05 02:43:36 And for the ones that do, make sure you know _why_ decided to go into teaching. Jan 05 02:43:39 I cry every time I see a system without UPSERT Jan 05 02:44:24 Well, multiple of them had their own business, then came the dotcom crash, they went from multimillionaires to bankruptcy, and started teaching. Jan 05 02:45:28 Hmm... I lived through the dotcom bubble (worked at Sun at the time). I'm not sure that that having had a company then is any indication of actual technical skills. Jan 05 02:45:46 Most skilled people never got a part of the money anyway. Jan 05 02:45:57 Well, some people were successful with good things. Jan 05 02:46:16 Those who just made a scam then afterwards went on to the next bubble. Jan 05 02:46:49 As we see now, the amount of startups with literally no business plan is insane. Twitter doesn't make any profit, nor has it ever, nor do they even know how to monetize. Jan 05 02:47:15 Well yeah, we've seen the before. In 2000. Jan 05 02:47:27 And a lot of the quality code we see on Android is from people working at such companies writing libs. Jan 05 02:47:47 Well, "quality code". Jan 05 02:48:13 I wouldn't use them in railway control systems, tbh. Jan 05 02:48:38 Anyway, yeah. I'm lucky that my uni provides decent quality courses, and a decent curriculum. Jan 05 02:48:50 However, the crash won't be as bad, because the money mainly comes from seed investors. Back in the day, these companies went public very quickly and a lot of the money came from individual investor. Everybody and their cat was a day-trader. Jan 05 02:49:01 Yeah. Jan 05 02:49:16 Kim Dotcom will remind my city for the next decades of that... Jan 05 02:49:39 And I will give you an anecdote to illustrate this. Jan 05 02:49:47 He started here, made a startup in the 200s with literally no model, raked in cash, startup crashed, lots of people had invested in it privately. Jan 05 02:50:18 In the end, even a local ISP which had invested got into liquidity issues, and had to stop building some of their infrastructure and buildings, Jan 05 02:50:24 Which led to even more issues. Jan 05 02:50:46 Sorry, your anecdote? Jan 05 02:52:03 Around 2000 I was working at a trade show, setting up the infrastructure for the demo machines at the Sun booth. I was behind a panel messing with some hardware while they had the former finance minister of Sweden doing a talk right next to me. I vividly recall him talking about the fact that very few (if any?) of the dotcom companies actually made any profits, "but it doesn't matter, because this is the 'new economy' and it works in a different way". I r Jan 05 02:52:04 emember shaking my head and at that time I came to the realisation that everybody were certiiably insane. Jan 05 02:52:25 The. Goddamn. Finance. Minister. Jan 05 02:53:08 Yup. And a lot of people still believe that today, even in politics. Jan 05 02:53:19 That is also why I'm somewhat certain that the current situation won't result in as bad a crash. People aren't _that_ insane. Jan 05 02:53:33 At least not everyone is. Jan 05 02:53:48 The 2006 crisis helped us get some healthy paranoia back. Jan 05 02:53:54 Damn, this is not working properly at all Jan 05 02:53:57 justJanne: I don't think you'd see a finance minister (former or otherwise) say that these days. Jan 05 02:54:01 Anyone up to check out the code im trying? Jan 05 02:54:07 justJanne: 2006? You mean 2008? Jan 05 02:54:15 2006. Jan 05 02:54:22 It started in December 2006. Jan 05 02:54:40 I had it as one of my finals in economy and politics for Abitur. Jan 05 02:55:23 Subprime mortgage crisis, then investment banking crisis, then savings bank crisis, then financial crisis, by 2012 a global economic crisis. Jan 05 02:55:25 I got started in the finance idustry in 2005, and I'm pretty sure banks didn't feel this until 2008. Jan 05 02:55:35 The crash happened in 2008. Jan 05 02:55:45 The big crash did, yeah. Jan 05 02:56:06 The subprime stuff was brewing for a long time before, but not really visible, and up until 2008 people were still saying it's all good. Jan 05 02:56:09 But it really started in 2096 when the fed increased the interests for the first time since '01 again. Jan 05 02:56:35 And the first people started feeling that their credits for their houses would become unpayable. Jan 05 02:56:44 Loans? Jan 05 02:56:51 English is hard. Jan 05 02:59:53 justJanne: Well, that's the problem with the subprime structure. People's subprime loans would pretty much always fail (they were structured based on assumption of future income increases, for example). **** ENDING LOGGING AT Tue Jan 05 02:59:58 2016