**** BEGIN LOGGING AT Sat Dec 28 02:59:58 2013 Dec 28 03:06:20 Hello Dec 28 03:29:19 GUH Dec 28 03:29:27 ENDLESS INABILITY TO GENERATE THE R.JAVA FILE Dec 28 03:29:37 aapt returning error code 138 Dec 28 03:33:45 fuk Dec 28 03:42:16 explodes, gotta love android tools... Dec 28 03:57:09 Is anyone having issues with the phone app in the latest ADT bundle? Dec 28 04:23:12 read the error... Dec 28 04:45:09 Hey so I had a quick question. I am using a class extending SurfaceView and a class extending Thread for rendering. All of the examples I have seen have the thread in a loop repeatedly rerendering everything in the canvas. This seems inefficient to me. Wouldn't it be better to have it waiting or something and then start again when something actually needs to be changed in the canvas? An example of what I'm talking about is at h Dec 28 05:14:48 symptomitus interruptus Dec 28 05:18:08 capella O.o Dec 28 05:34:43 Anyone know of an app I can edit eggdrop.conf with? Dec 28 05:35:39 * tzak_ can anyone help me implement a listView in my android app? Dec 28 05:36:53 tzak_ first see "world of listview" vide at google i/o by romain ;) Dec 28 05:41:19 gross, MIT press still has their own proprietary one-off ebook system Dec 28 05:42:11 hi all. if i enable "applications from unknown sources" or however it's described, are there any security threats i should be concerned with? (could another application install subsequent applications?) Dec 28 05:43:59 I'm still hating on the scribd thing Dec 28 05:44:32 at first , their ebook reader client was Ipad only :| Dec 28 05:44:48 I what? ;) Dec 28 05:46:10 capella my dad who has never used a computer before was given one as a gift for xmas ; i can't think of a better device for him actually Dec 28 05:46:22 eReaders confuse me ... So I "rent" the book now? And you can after the fact reach into my device and remove content? And I can't pass it to my heirs since it's not my property like a book? Dec 28 05:46:36 yeah, its all suck Dec 28 05:46:48 Yah, my Aunt who is tech-newbie loves her Kindle-thingy Dec 28 05:48:03 capella my friend who works for adobe says mozilla's pdf.js doesn't pass shit in the way of their test suite :D Dec 28 05:48:13 I just spent a couple hours pouring magnesium into my dads Win XP ... it was a lovely bright death Dec 28 05:48:31 ouring Mg ? Dec 28 05:48:44 well, not literally Dec 28 05:48:49 i'm sure i tried lighting it on fire Dec 28 05:48:56 oh heah, Mg burns bright Dec 28 05:49:14 Gave him an E531 for Xmas Dec 28 05:50:05 o nice Dec 28 05:50:52 Weird touchpad ... left/right click buttons integrated with the pad itself ... whole thing rocks Dec 28 05:51:08 its weird tho, that when i was growing up i was hand wiring z80s to 4k ram, but my dad is using his first computer with a gestural interface Dec 28 05:51:37 capella i have to say, i love my MBP touchpad Dec 28 05:52:10 one thing i always scratch my head at - and take for granted - is the MBP magsafe connector; all other power connectors i've seen suck Dec 28 05:52:19 everytime i go to click using it, I move the mouse a 1/4 inch accidentally first and click the wrong things Dec 28 05:52:36 i need something like that with blind dog bumping into stuff :) Dec 28 05:52:54 I'm back on an iPhone again. Dec 28 05:52:55 oh, poor doggie :D Dec 28 05:53:14 the blind one, not nilium Dec 28 05:53:15 Nilium: Using or developing? Dec 28 05:53:24 Turns out I like coding for Android but dislike actually using it Dec 28 05:53:32 Nilium hah, me too ! Dec 28 05:53:33 Using. Dec 28 05:53:35 wtf Dec 28 05:53:56 * capella checks the channel header Dec 28 05:54:23 capella its not FFOS WHY ARE YOU HERE Dec 28 05:54:23 :D briefly lost Dec 28 05:54:33 capella: You don't have to hate iOS to code for Android -_- Dec 28 05:54:59 Ah, don't actually hate IStuff ... ;) Dec 28 05:55:16 google as a company has changed much since i started android dev in 2009, they make me much more nervous now Dec 28 05:55:21 and FFOs I meant to move into but ra nout of time Dec 28 05:55:58 capella ran out of time? Dec 28 05:56:43 I keep thinking I should watch Bubblegum Crisis but can't be bothered to find my headphones to actually watch it. Dec 28 05:58:28 i watched "There will be Blood" yesterday and still dont get the ending where dan plainview kills eli. and then it ended. i think "I am finished" what did that mean ? Dec 28 05:58:46 SPOILER ALERT Dec 28 05:59:11 oh oh, sorry JakeWharton if you're just about to watch :D Dec 28 05:59:22 * Nilium didn't see it. Dec 28 05:59:22 It has Daniel Day-Lewis though, so I guess that means I should. Dec 28 06:06:26 My apps made $500 since Christmas morning Dec 28 06:06:59 nicely done Dec 28 06:07:08 Mine made $0. Lack of marketing is rewarding like that. Dec 28 06:07:21 Ologn: Tell us your secret Dec 28 06:07:36 gavilan2, the scientific method Dec 28 06:07:41 My libraries made $0 Dec 28 06:07:49 time to start charging Dec 28 06:08:00 public class AsyncTaskPro Dec 28 06:08:02 And JakeWharton's Square options will make him $1,000,000,000 Dec 28 06:08:48 I had in the money options set to vest in June 2000 Dec 28 06:08:59 and I'll blow it all on my Nexus Personal Robot or whatever the hell Andy Rubin is making now Dec 28 06:09:09 So I missed getting some nice money by like 2-3 months Dec 28 06:09:11 JakeWharton: Congrats dude... Dec 28 06:09:25 JakeWharton: Buy us a round of beers :p Dec 28 06:09:36 Of course I could have registered shopping.com or whatever back in 1996 and could have made a fortune on that Dec 28 06:09:48 Ologn: Or google.com Dec 28 06:09:49 Or bought Cisco stock, which I was considering in 1991 Dec 28 06:09:56 Ologn: Or apple stock Dec 28 06:10:03 Ologn: It's easy when you know the future... Dec 28 06:10:13 Ologn: That's the reason time travel is banned in the stocks market.... Dec 28 06:10:34 Cisco was the best performing stock in 1992 (or 1991?). What I said to myself was "Oops, I missed the boat!" Dec 28 06:10:45 It proceeded to quadruple every two years until 2000 Dec 28 06:11:18 Oh well, my Android apps are doing OK...If I eventually make $100k a year on them I'll be happy Dec 28 06:11:26 Ologn: The problem is that previous performance is not always a good indicative of future performance.... Dec 28 06:11:33 No need for me to get greedy Dec 28 06:11:44 Oh well, my Android apps are doing OK...If I eventually make $100k a year on them I'll be happy ---> If you start making that kind of money, tell me, and I'll change my job Dec 28 06:12:16 Well I made over $150 today Dec 28 06:12:29 Double that and it is out to $100k a year Dec 28 06:12:37 Of course the days after Christmas tend to be good... Dec 28 06:12:37 Ologn: Yeah, but ppl buy a lot on christmas season... Dec 28 06:12:44 yes Dec 28 06:12:57 Ologn: Only because you weren't a naughty boy.... Dec 28 06:13:35 There's a lot of opportunity still...I think there's still no Polish thesaurus...hopefully mine will be out in January Dec 28 06:13:42 it does some other languages too Dec 28 06:14:03 Ologn: good luck Dec 28 06:14:18 I just learned OpenGL in school and got some basic C++ OpenGL ES stuff running Dec 28 06:14:38 Ologn: How old are you? Dec 28 06:14:42 Old Dec 28 06:14:52 I go to school at night Dec 28 06:14:52 Oldogn? Dec 28 06:15:04 ;) Dec 28 06:15:30 Between 2^5 and 2^6 Dec 28 06:15:56 I owned a 300 baud modem Dec 28 06:16:11 between 32 and 64 Dec 28 06:16:13 Someone on SO has recently decided he hates me and everyone else running the main Android chatroom there. Kind of stalker-ish. Dec 28 06:16:13 //say between $calc(2^5) and $calc(2^6) Dec 28 06:24:11 Ologn i think my first modem was 14k Dec 28 06:24:14 USR Dec 28 06:24:25 2400 baud, just ebcause it was cheap Dec 28 06:24:27 this is like carbon ring dating Dec 28 06:26:13 The first modem I bought for myself was 56k, but had a weird issue where it would always lose its connection after exactly 1 hour. Dec 28 06:26:27 Modems ! Hayes AT Codes! PCAnywhere ! Dec 28 06:26:41 your pots service probably cuts em off lol Dec 28 06:26:42 shotgun Dec 28 06:26:47 zmodem ftw! Dec 28 06:26:48 Which wasn't much of an issue except when playing Tribes, since I couldn't hold up the phone line the entire time. Dec 28 06:27:22 * capella stored his original apps on paper-tape !!! Dec 28 06:27:23 I would've thought that, but another modem worked fine Dec 28 06:27:26 \o/ Dec 28 06:27:53 The only reason I had the second modem was 'cause I was running Linux at the time and the modem in my machine was a winmodem. Dec 28 06:28:10 oh yeah, those sucked Dec 28 06:28:23 And getting that piece of crap to work was unpleasant. Dec 28 06:31:12 Can I use Parse to send push notifications that don't have user-alerts? For example "hey app, start broadcasting your GPS coords over to the server" (#parse is dead) Dec 28 06:33:49 Crrraap Dec 28 06:45:28 Ok, with C2DM, I am totally confused on how to acquire the OAUTH token Dec 28 06:45:40 Does the user need to accept permissions to a google app? Dec 28 06:45:49 C2DM is dead. Long live GCM. Dec 28 06:48:55 Oh Dec 28 06:48:57 Well fuck. Dec 28 06:50:02 just uninstalled everything via the android-sdk-update-manager and am reinstalling now. it defaults to selecting every version of the build tools that are available. do i really need that? Dec 28 06:51:37 how should i go about simulating ScrollView's smoothScroll in a ViewGroup? Dec 28 06:52:17 I440r no, newest is fine … unless newest doesn't work :) Dec 28 06:52:59 so far NOTHING newest is working for me Dec 28 06:53:33 somehow i'm not surprised ! Dec 28 06:53:56 g00s thats why i uninstalled and reinstalled Dec 28 06:54:01 now its working Dec 28 06:56:04 sources are on laptop. intellij idea on laptop compiled sources just fine Dec 28 06:56:08 wait, is GCM free? Dec 28 06:56:21 same source tree is sshfs mounted on desktop - intellij couldnt compile them Dec 28 06:56:24 blargh Dec 28 06:56:27 now it can lol Dec 28 06:57:06 It appears to be free up to a point Dec 28 06:57:10 FYI} Dec 28 06:57:41 I440r sshfs is a little … flaky :) Dec 28 06:57:58 no that wasnt the problem heh Dec 28 06:58:02 sshfs is awesome Dec 28 06:58:09 yeah, when it works Dec 28 07:02:16 guess android avd doesnt like to use the host gpu when its nvidia? :P~ Dec 28 07:03:24 mine worked fine on mac Dec 28 07:03:57 nvidia geforce 9400m Dec 28 07:04:05 old school stuff :) Dec 28 07:04:49 g00s: drivers on mac are about as similar to normal vendor ones as platypus is to sober design Dec 28 07:04:53 afaik Dec 28 07:05:14 how to get the path of an image in assets folder? Dec 28 07:07:09 the only app that crashes on my mac using opengl - you guessed it - is a google app : google earth Dec 28 07:07:18 which still doesn't have native full screen Dec 28 07:07:39 Could I make an sms, from ADB , without waking up phone from sleep ? Dec 28 07:33:59 Hello, anyone know if the CursorJoiner is at all efficient? Dec 28 07:36:41 lasserix look at the source :) Dec 28 07:37:54 ahh yeah good idea just was wondering if anyone had used them and decided they were worthless or not Dec 28 07:38:29 findViewById(R.id.textView).getBackground().setAlpha(0xe0); Dec 28 07:38:38 had to do state comparisons with content provider data, initally used them since can't join tables of CP's with your own sqlite database, but seems faster to find difference by just using add/remove all on a collection of either Dec 28 07:38:41 any idea why thats giving me a null pointer exception? Dec 28 07:39:08 1440r searching on the right view? Dec 28 07:39:59 ie if that is in a getview method inside the main activity, without prefixing findView by id by the view you're returning to getview, will look in mainactivity.xml and crash out Dec 28 07:40:33 anyone here to help me with android coding? Dec 28 07:40:34 :-/ Dec 28 07:41:29 I want to protect my app from cracking, to do this I want to encrypt my app's classes and the call them dynamically after decryption, but I dunnu how to code this Dec 28 07:41:33 if an app crashes and no one is around to use it? did it really crash? Dec 28 07:41:38 hepL3r yeah we're all just waiting for the chance ! Dec 28 07:41:50 you have given my life new meaning :) Dec 28 07:41:51 helper there is no way to garuntee encryption Dec 28 07:42:02 lasserix, this code was not doing that before, i uninstalled all the tools and apis and reinstalled them Dec 28 07:42:27 lasserix: I've seen sth like that in an android malware Dec 28 07:43:09 hepL3r: since you are putting the data on the device, unless the key is coming from a server, there is no garuntee of crack proofability Dec 28 07:43:17 and even then someone can always intercept the key... Dec 28 07:44:09 lasserix: no problem, I've also put server checks, etc, but I just want to know if I can use this technique too or not Dec 28 07:44:57 I440r delete your list of imports at the top readd them make sure to clean your project (assuming you are using eclipse) Dec 28 07:45:10 using intellij Dec 28 07:45:24 but ill try that tomorrow, time to tune out :) Dec 28 07:45:46 good luck! Dec 28 07:46:02 lasserix: look at this: http://www.symantec.com/connect/blogs/obfuscating-embedded-malware-android , I want to use sth like that in my app Dec 28 07:46:29 hepler sure you can use it, just be aware that as soon as your (even encrypted) classes are on the device, they are no longer crack proof. Dec 28 07:46:58 so what's the point of obfuscation then? Dec 28 07:47:05 ok, would you let me know how can I use this? Dec 28 07:47:20 jalcine: It's just hardenning the way of cracking Dec 28 07:47:31 same reason retail stores put up "Shoplifters will be prosecuted to full extent of law signs" Dec 28 07:47:34 With GCM, I'm getting back a 401 when I send a push notification to the GCM endpoint. My "Authorization" header looks like this: 'Authorization': settings.GCM_CLIENT_ID am I doing this right Dec 28 07:48:44 Wait, where do I get the GCM Api key? Dec 28 07:49:08 hepL3r: like lasserix mentioned, all they need is to load it into an emulator or a device and your obfuscation is pointless Dec 28 07:49:25 hepl3r: notice at the end of the article it states norton is not fooled since it is fairly easily to decrypt Dec 28 07:49:36 I know Dec 28 07:49:44 I'm a malware analyzer too :p Dec 28 07:49:46 helper if you are really worried about your code talk to a lawyer Dec 28 07:49:54 ah Dec 28 07:49:56 anybody else find that OnGestureDetector's velocity is unreliable? Dec 28 07:50:00 lol to a lawyer Dec 28 07:50:04 the only thing you can do is get an IP Dec 28 07:50:04 the fling velocity Dec 28 07:50:04 :D Dec 28 07:50:10 hepL3r: you'd probably see interesting stuff everything day Dec 28 07:50:45 ultra: are you correcting for density? set your values as DP then convert them as PX Dec 28 07:51:44 i'm simply returning velocityX/Y Dec 28 07:51:44 Ugh Dec 28 07:51:52 rather, printing that out Dec 28 07:51:53 The screen doesn't match the tutorial for acquiring the API KEY Dec 28 07:52:46 jalcine: sure, but I just want to know how can I do this, it doesn't matter for that It can be bypassed or not, but at least it can protect my app from newbie crackers :p Dec 28 07:53:16 Found it, maybe Dec 28 07:53:18 hepL3r the article you posted explains it pretty clearly Dec 28 07:53:20 help3r newbie crackers are nothing to worry about because as newbie they are not likely to benefit from cracking your code Dec 28 07:53:45 g00s: it does, but it doesn't mention how it loads the code Dec 28 07:53:49 lasserix: i'll look into what you're saying... all i'm doing is printing out velocityX/Y Dec 28 07:53:59 it covers only the encryption/decryption process Dec 28 07:54:08 it seems to give values that don't make sense Dec 28 07:54:31 ultra most of the tutorials are using like SWIPE VELOCITY MAX but they are hardcoding the vallue in PX when in reality you hardcode in DP and then convert to px in constructor Dec 28 07:55:16 tho if you are using a single device, that wouldn't be the problem. in my expirence i find it easier just do ignore gesture listeners and write your own implementation off the touch listener Dec 28 07:55:34 g00s: here it decrypts the class in png file, but how it loads that class? Dec 28 07:55:40 using reflection? Dec 28 07:55:44 i'm sort of doing that.. using GestureDetector for simple stuff Dec 28 07:56:01 post up your values Dec 28 07:56:13 i'm porting over from iOS, where i mostly wrote the gestures Dec 28 07:56:14 hepL3r this wont stop anyone from cracking your app, and only seems to serve nefarious purposes Dec 28 07:56:46 hepl3r: yeah that is the better way to obs code. you could surely do some kind of reflection + server sent key to decrypt but again, wouldn't stop anyone since they can just sniff the key and do it manually Dec 28 07:56:57 hepL3r: of course, makes sense! Dec 28 07:56:59 I know man, but I'm interested on how they applied this to their app, I'm going to download the sample and analyze it :| Dec 28 07:58:22 Can somebody double check why my authentication isn't working, I don't know if I have the correct type of key or not since the tutorials are based off an old interface http://pastie.org/8581976 Dec 28 07:59:44 Linking that key with my app says: Invalid GCM API Key or C2DM Client Login Token (Bad Key). Dec 28 07:59:52 So, its def. not the correct one... Dec 28 08:00:06 lasserix: i don't think any conversions will help... it's just that using distanceX/Y provided by onFling seems to give wild and unpredictable values Dec 28 08:00:17 if i convert from that, i'll still get weird numbers Dec 28 08:00:48 i'll try using historical pointer coords vs current pointer coords Dec 28 08:01:01 guys, is it possible to import gradle project into eclipse somehow? Dec 28 08:02:15 i'm trying to fork a project off bitbucket but it doesn't seem to have project files so eclipse doesn't understand it. if I import it as general project, I can't run it Dec 28 08:02:21 ultra can't you just compare them to values you get in on touch and then compare the values? Dec 28 08:02:57 no because the user could drag slowly and then fling Dec 28 08:03:16 ahhhhhhh fixt Dec 28 08:03:17 yeah you just do minimum drag speed check Dec 28 08:04:02 CaptainFarrell no Dec 28 08:04:06 if delta distance / delta time > whatever value .... anyways that's why i said it is easier to implement reliably ignoring the detector ;p Dec 28 08:04:27 ok then, is it possible to convert general project into android one? Dec 28 08:05:00 I'm not familiar with the internals, making all project files by hand would be to much of a task for me Dec 28 08:05:12 captain worse comes to worse make a new android eclipse project, add each class / etc by hand Dec 28 08:05:12 *too Dec 28 08:05:56 so I won't be able to sync with the remote repo then Dec 28 08:06:05 fml :) Dec 28 08:06:25 shouldn't the remote be ide agnostic? Dec 28 08:06:37 that's how the remote i use it set up Dec 28 08:07:07 it's not my project and they use gradle which is android studio? Dec 28 08:07:39 lasserix: i'm a dumbass... i was printing the Y velocity and expecting the X velocity Dec 28 08:07:42 has no right to complain though since it open source and free Dec 28 08:07:43 it's working great Dec 28 08:07:46 *have Dec 28 08:07:53 time to ptu down the beer and go to bed soon Dec 28 08:07:57 *put Dec 28 08:08:10 hi all.. Dec 28 08:08:16 hi dodobrain Dec 28 08:08:20 how do i set a textview to be medium and bold? Dec 28 08:08:51 probably typeface property, which i haven't figured out how to use yet Dec 28 08:08:51 ultra ha ha yeah ;p Dec 28 08:09:04 android:textAppearance="@android:attr/textAppearanceMedium" is what i use to set medium text appearance. and i use android:textStyle="bold" to enable bold Dec 28 08:09:13 OK Not fixed at all Dec 28 08:09:26 dodobrain: make sure the textAppearance is not overriding the bold Dec 28 08:09:46 you could just look up text size set in textAppearanceMedium then use that for textSie and style for bold Dec 28 08:09:47 specifying both works fine. but i wanted to specify this whole thing as 1 android:textStyle or similar attribute which had items separated by | Dec 28 08:10:04 i wish i was one of these people who could sit here and properly answer questions Dec 28 08:10:07 someday Dec 28 08:11:07 dodobrain you can also in code change the text string to My Text then use setText(Html.fromHtml(getHtmlEncodedText(mytext))) Dec 28 08:11:32 i took a year off of android programming because i figured out it doesn't support network midi, then i wrote an ios version and now back to android since i have a network midi licensing agreement Dec 28 08:11:34 i wanted to do this within the layout xml itself Dec 28 08:11:37 so back to learning something new Dec 28 08:11:42 so just define your own style Dec 28 08:11:54 that has textSize-'whatever mediium is' and textStyle bold Dec 28 08:12:01 and set it to your textviews Dec 28 08:12:13 you can also use inheritance on styles Dec 28 08:15:07 anyone know a reliable way to open an sms by threadid on pre api 14? Dec 28 08:16:28 Hi - I want to get my AppWidget to update from onPostExecute. Would intents be the way to do that? Dec 28 08:20:17 I have the correct key, what is wrong with this header? 'Authorization': "key=%s" % settings.GCM_API_KEY, Dec 28 08:20:34 i'm out, thanks lasserix Dec 28 08:21:08 Bacta, can you not update the view and invalidate it? Dec 28 08:29:31 i have 2 textviews one below the other, both right aligned.. and android:gravity seto to right on both of them to right align the text within. txtview1.setText(String.format("$%6.2f", 11)); txtview2.setText(String.format("$6.2f", 3.5)); Dec 28 08:30:01 now the problem is that the $ from both textviews is ot aligned vertically in a straight line :( Dec 28 08:30:24 is this due to the font? I'm using the standar android font (whatever that is) Dec 28 08:37:27 where do i look at for performing background tasks Dec 28 08:37:44 explodes async task ? Dec 28 08:37:48 dependson what kind Dec 28 08:37:50 if my service "just does it" is that sufficient? Dec 28 08:37:56 no Dec 28 08:38:00 na, background bsackground Dec 28 08:38:01 services run on ui thread Dec 28 08:38:23 what kind of service? a handy service is intent service Dec 28 08:38:25 so just start a new thread from the service? Dec 28 08:38:29 yeah Dec 28 08:38:35 you can use async task Dec 28 08:38:38 k Dec 28 08:38:58 will that task have access to GPS updates? Dec 28 08:39:11 it should Dec 28 08:39:15 lets experiment Dec 28 08:39:16 dodobrain layout_gravity describes where in parent it should go. gravity defines where its content should go relative to itself Dec 28 08:39:25 umm probably not Dec 28 08:39:29 you'd have to pass them in Dec 28 08:39:36 lasserix, you didn;t understand my question Dec 28 08:39:46 i have gravity set to right. so all text within it gets right aligned Dec 28 08:39:54 correct Dec 28 08:40:05 explodes so use a constructor in your thread with the gps coors Dec 28 08:40:22 anyway, the textviews are aligned to the right within their container Dec 28 08:40:32 right right Dec 28 08:40:44 and i have set layout_width="match_parent" to make sure they span the entire width Dec 28 08:40:58 im more asking "is there any reason some bullshit should come my way in this experiment" Dec 28 08:41:13 how are you going to get the information back? Dec 28 08:41:26 so any text i place within the textview should be right aligned. the problem is that 'space' is being interpreted differently to a regular character Dec 28 08:41:43 txtview1.setText(String.format("$%6.2f", 11)); txtview2.setText(String.format("$6.2f", 3.5)); Dec 28 08:42:04 err.. theres a % after the $ obviously in the second format Dec 28 08:42:27 dodobrain just use a split ? Dec 28 08:42:30 the $ in both are not vertically in a straight line, Dec 28 08:42:33 whats a split? Dec 28 08:42:41 hmm Dec 28 08:42:59 well maybe string format doesn't work with textviews so you'd have to do it manually Dec 28 08:43:06 how? Dec 28 08:43:25 you could do it manually by just spliting the decimal to string on the decimal point, then take the subject of the decimal part then put it into the settext Dec 28 08:43:42 I tried txtview1.setText(String.format("$%.2f", 11)); txtview2.setText(String.format("$$%.2f", 3.5)); Dec 28 08:44:21 this produces $11.00 and $$3.50 and the leftmost dollar is perfectly aligned.. the problem happens if i let it introduce spaces by itself Dec 28 08:44:30 dodobrain Dec 28 08:44:31 XXXXX Dec 28 08:44:33 oops Dec 28 08:44:42 mTextView.setTypeface(Typeface.MONOSPACE); Dec 28 08:44:52 http://stackoverflow.com/questions/18678709/why-is-string-format-not-working-on-android-textview Dec 28 08:45:07 *you can set that in xml too Dec 28 08:46:18 yes!! Dec 28 08:46:34 how do i set it in the xml itself? Dec 28 08:47:50 android:typeface="monospace" Dec 28 08:47:53 woo.. thanks Dec 28 08:48:46 uh.. it looks ugly as hell though :( Dec 28 08:55:07 i understand the use of monospace, but i don't understand why $11.00 and $$3.50 can align perfectly while $11.00 and $ 3.50 *cannot* Dec 28 08:55:19 i mean when not usin g a monospace font Dec 28 09:03:02 Is requestLocationUpdates run on a new thread? Dec 28 09:09:41 dodobrain: Do you know what monospace means? Dec 28 09:10:12 yes.. monospace.. evry character occupies the same amount of horizontal space Dec 28 09:10:31 what i meant is that $ and 1 seems to occupy the same space in a non-monospace font Dec 28 09:10:35 the default android font Dec 28 09:10:45 dodobrain: I'd say that $ is wider Dec 28 09:11:10 gavilan2, i know that.. thats why i expressed surprise that $11.00 and $$3.50 align perfectly Dec 28 09:11:29 in the default font Dec 28 09:11:38 dodobrain: I'd say that in your font, all the digits are the same width... Dec 28 09:11:46 dodobrain: yet the letters have wathever width they need Dec 28 09:12:17 $ has the same width as an 8 Dec 28 09:12:21 umm.. thats a possibility i guess. ( i dont set any font). Dec 28 09:12:39 dodobrain: you can easily test it :p Dec 28 09:12:44 anyway, is there a way to set/get widths of specific parts of text within a textview? Dec 28 09:12:57 what? Dec 28 09:13:30 gavilan2, don;t need to. it appears 'space' char most definitely eats up less width than numeric chars Dec 28 09:13:38 thats the issue i am having. Dec 28 09:20:39 Paint has measureText Dec 28 09:35:29 Hi, I want to have the holo dark theme in my actionbaractivity but it only allows me to use themes in "Theme.AppCompat" where there are no dark or holo ones. Any solution to this? Dec 28 09:49:29 does anyone know of a good way to do a trail of an in-app product? Dec 28 09:50:04 Flaiker, you supporting < API 10? Dec 28 09:50:36 does not matter atm Dec 28 09:55:17 JakeWharton, maybe you can help me out here.. I have a listview that shows items purchased. each listitem shows a item price and the option prices (if any) for that item. Dec 28 09:56:19 the problem i have is that i cannot get the $ symbol aligned properly. I am currently only using right aligned and gravity=right textviews to show the $xx.yy amounts within each listitem layout Dec 28 09:58:03 so i was thinking maybe splitting off the $ within its own textview is the way to go. if this is the case then i need to find the maximum width among *all* the prices and then set all the prices textviews to that width.. then the $ on the left of these price textviews will line up correctly Dec 28 10:16:02 top lel Dec 28 10:20:49 hehe, crazy http://tech.slashdot.org/story/13/12/27/2027222/pc-makers-plan-rebellion-against-microsoft-at-ces Dec 28 10:21:05 does the number of items in the list necessitate a ListView? Dec 28 10:21:37 i mean, you can iterate all prices up front, measure the text, and then ensure the dollar sign in aligned properly for all of them Dec 28 10:23:04 JakeWharton, well, its a shopping cart style activity Dec 28 10:25:31 dodobrain why does do all the '$' need to be aligned? seems excessive Dec 28 10:25:57 umm.. looks ugly if the $s are not aligned Dec 28 10:26:13 well, it look sugly if you have $ 1.00 too Dec 28 10:26:32 since you have a $1000 item in your basket :) Dec 28 10:27:21 well, not necessarily.. max price is in the 100s.. so $ 3.50 is still good (for me) Dec 28 10:28:50 my advice is , get the rest of the app to work and then go back to these cosmetic things :) Dec 28 10:29:07 if you really wanted to know whether its worth it, you could set up a usability study Dec 28 10:29:20 if you don't feel like setting that up, its probably not worth it :D Dec 28 10:29:47 Boom Dec 28 10:29:50 Only took 8 hrs Dec 28 10:29:58 amazon doesn't do it; they seem to have this sort of thing nailed Dec 28 10:30:09 This app, when you log in to the corresponding website, will report your devices location on google maps Dec 28 10:30:12 easy as that Dec 28 10:30:13 g00s, i have the rest of the app working Dec 28 10:30:16 :) Dec 28 10:30:36 thats good :) Dec 28 10:30:57 so amazon cart doesn;t align the $ signs? Dec 28 10:31:07 i assume it shows a lot of info about each item though Dec 28 10:31:25 so between $ signs there is a reasonable vertical gap Dec 28 10:32:07 while in my case, it could be 'regular size $ 11.00' immediately followed by 'extra cheese $ 0.50 Dec 28 10:32:12 or something similar Dec 28 10:33:38 no, its flush Dec 28 10:33:42 $2.00 Dec 28 10:34:54 ok.. i can go with flush as well.. but $11.00 immediately followed by $0.50 in the next line would look weird :( Dec 28 10:36:23 don't copy amazon Dec 28 10:36:34 they're extremely metric driven designers Dec 28 10:37:00 what about putting $ in total only? Dec 28 10:38:27 sigh I'm so bad at design. Dec 28 10:38:27 capella, thats a neat idea but management won;t allow it Dec 28 10:38:35 lol Dec 28 10:39:33 oh not for me :D Dec 28 10:44:18 so each line/ detail item needs a $ indicator? Next they're want negative signs for refunds Dec 28 10:45:11 haha.. no refunding on my app :p Dec 28 10:46:38 they can't have a refund, 'cause we'd have to rewrite all the code ! :P Dec 28 10:48:14 btw, guys. are there any ux-related books for android platform? Dec 28 10:48:47 i've read the guides already Dec 28 10:49:17 on the other hand..disregard. i was asking for a silver bullet as I suck at design Dec 28 10:49:30 i feel your pain Dec 28 10:49:47 CaptainFarrell the "UX Book" is good Dec 28 10:49:56 "Designing for the Digital Age" is also good Dec 28 10:50:07 fucking expensive as hell tho Dec 28 10:50:47 but did you mean /design/ ? Dec 28 10:51:01 like typography, space, etc ? Dec 28 10:51:02 i think it's genetic. i can't draw a freaking circle by hand Dec 28 10:51:44 i meant something which would make my apps less ugly :) Dec 28 10:51:53 hm Dec 28 10:52:12 That's! Why I hate CSS :D Dec 28 10:53:24 Why does my fragment need an empty constructor? Dec 28 10:53:51 because Android needs to instantiate it. Dec 28 10:54:13 g00s, i see your confusion. i mixed up design and ux. i'm sorry. for me it's the same thing Dec 28 10:54:13 CaptainFarrell i'm curious about this one, but have not seen it http://www.amazon.com/Design-Software-A-Playbook-Developers/dp/111994290X Dec 28 10:55:15 yeah, so many terms. UX, usability, interaction design ... Dec 28 10:55:22 good books in all those areas Dec 28 10:56:37 So I have to do some disgusting newInstance method? Dec 28 10:56:46 feh.. same thing happened with a webapp last time at work.. Dec 28 10:57:01 i got all the functionality going.. but it looked 'decent' Dec 28 10:57:28 marrrk so the framework can instantiate the fragment itself Dec 28 10:57:35 management wanted to take a shit on it saying it looked like crap and hired an html/css /js guy Dec 28 10:57:41 decent as in eye bleeding? Dec 28 10:57:50 hehe Dec 28 10:58:03 who wasn't up to it.. knew how to design the thing.. wasn;t even sure how/where to integrate my code into, lol Dec 28 10:58:12 yeah, the ios guys always had nice books in this area, like http://www.amazon.com/Learning-iOS-Design-Programmers-Designers/dp/0321887492 Dec 28 10:58:24 for a long time the android books were abysmal Dec 28 10:58:29 Anyone want to make me an icon real quick? Dec 28 10:58:30 they also have like 2 device configurations Dec 28 10:58:33 CaptainFarrell, decent as in functional Dec 28 10:58:50 i.e. it had the right buttons in the right contexts, even had some bootstrap goodness Dec 28 10:59:00 but oh well, it wasn't enough for them Dec 28 10:59:26 well, design is super important Dec 28 11:00:00 why do developers/programmers (mostly) suck at ui? Dec 28 11:00:09 except for corporate software which we all loathe as users Dec 28 11:00:38 not creative enough? Dec 28 11:00:56 they suck because they do not think about it Dec 28 11:01:26 plus design is boring Dec 28 11:01:31 you have to iterate over and over Dec 28 11:01:52 tweak miniscule bits Dec 28 11:01:58 if that's what makes it boring than programming is boring, too Dec 28 11:02:35 i think alan cooper's thesis in "inmates running the asylum" is that devs tend to structure the UI according to how the underlying code is structured Dec 28 11:02:48 'look theres the button you wanted.. its visible is it not? got ahead and click it! oh you wanted it to look like a pony? o.0' Dec 28 11:03:38 I've read a couple of book about Apple. They seem to make engineers angry by doind exactly the opposite: design fist, then engineer Dec 28 11:03:41 I finally found a use for the Apple guys when I realized they were good with the UI Design / Polish stuff ... I'm so not artistic :) Dec 28 11:03:45 marrrk, i think its more the fact that (usually) designers are more freeform Dec 28 11:04:07 i.e. they don't need to think about how clicking on a button/something_else is supposed to take to soewhere else Dec 28 11:04:11 or do something else Dec 28 11:04:22 while the programmer is always thinking about how to achieve that functionality Dec 28 11:04:46 CaptainFarrell, yes.. that pisses me off to no end.. Dec 28 11:05:22 Well the programmer needs to try harder to empathise with the user. Dec 28 11:05:37 Is that even a word? Dec 28 11:06:43 Stockholm syndrome Dec 28 11:07:43 meh- UI guys have a place like Q/A, Security, scheduling, HelpDesk, Proj/Prod Mgmt, etc Dec 28 11:10:20 Anyone know how to handle a singleton sqlite database that is opened in a thread via synchronization, but if the app is closed underneath it it can crash out for various reasons? just use a try / catch ? Dec 28 11:10:39 or is an actual object lock preferable to use synchronized? Dec 28 11:25:44 Are the element positions in the array adapter always the same as the one in the array that I pass it as parameter? Dec 28 11:29:08 on second though, I'm not sure how the adapter really works. does getPosition() return the index in my array therefor being the same as indexOf("") call on the arraylist ? (I'm using an arraylist). Dec 28 11:29:31 Hello world! Dec 28 11:37:37 Hello room Dec 28 11:38:05 nevermind Dec 28 11:39:19 I have a NullPointerException that I would REALLY like some help with Dec 28 11:39:33 ~npe Dec 28 11:39:44 ugh, wrong channel. They're usually easy to combat, though Dec 28 11:40:25 So I am told.. Dec 28 11:40:38 I am a bit of a noob so apologies in advanse Dec 28 11:40:47 hmm I also can't spell Dec 28 11:40:57 So here is ia patebin Dec 28 11:41:00 http://pastebin.com/K1prxBVj Dec 28 11:41:17 You see I am logging out the question and answer on that Dec 28 11:41:44 the two commented out bits are the bits that go boom Dec 28 11:41:49 e.g. //question.setText(item.getQuestion()); Dec 28 11:42:12 however my LogCat tells me ther is something in item.getQuestion() Dec 28 11:42:35 How would I go about solving this? Dec 28 11:42:47 set a breakpoint Dec 28 11:43:15 CaptainFarrell: Hmm good idea... no idea how but I will try Dec 28 11:43:41 also try to double-click on the log message to get to the code Dec 28 11:44:29 How can I get access to an AppWidgets context from inside an AsyncTask (onPostExecute) Dec 28 11:44:41 i think your problem is somewhere in Log lines since you're also calling item methods there Dec 28 11:45:55 CaptainFarrell: Well I was using Log to check item was populated, and it seems as though it is. I just return the value in the object so not removing it Dec 28 12:02:09 CaptainFarrell, wait.. he left? i mean this catharsis dude Dec 28 12:02:17 Is the dp of xxhdpi 400? Dec 28 12:02:25 I can't find anything about it Dec 28 12:02:35 dodobrain, he has Dec 28 12:02:37 the scaling factor for xxhdpi is 3x Dec 28 12:03:05 so 24x24 -> 72x72 Dec 28 12:03:09 what the heck is xxhdpi ? Dec 28 12:03:17 pretty much exactly what it sounds like Dec 28 12:03:31 i just checked tried to create a new avd.. it lists nexus 10 as xhdpi Dec 28 12:03:40 or is that a mistake/bug ? Dec 28 12:03:44 i believe so yeah Dreeass Dec 28 12:03:45 So a notification is 72x72px when it should be 24x24dp Dec 28 12:03:45 android tvs? :) Dec 28 12:03:52 Nexus 5 :) Dec 28 12:03:52 nexus 5 is xxxhdpi iirc? Dec 28 12:04:11 Nexus is 445ppi Dec 28 12:04:11 what the?? nexus 5 is xxxhdpi? Dec 28 12:04:26 not exactly sure where the definition lies Dec 28 12:04:33 Thought nexus 10 was xxhdpi with that crazy 3?? dpi 2550x1600 on a 10 inch screen lol Dec 28 12:04:33 But someone said that a drawable-480dpi folder works Dec 28 12:04:43 Is this true? Dec 28 12:05:09 dblosevn, yeah.. i was surprised too Dec 28 12:05:32 Why isn't there xxhdpi for the standard icons in the icon pack? Dec 28 12:05:58 you can check for yourself if any of you don;t believe me.. try to create a new avd based on a device and see that it lists nexus 10 10.1" 2560x1600 xhdpi Dec 28 12:06:03 what the fish?!? Dec 28 12:06:11 I have one, but I havent seen any apps actually use the extra density so its really just wasted Dec 28 12:06:22 i have a nexus 10 too.. Dec 28 12:06:28 all apps are just bloated up Dec 28 12:06:37 so they are essentially the same, sadly Dec 28 12:06:44 It seems to pick from the xhdpi resources too Dec 28 12:07:02 I tried dropping resources in xxhdpi and they were not pulled Dec 28 12:07:16 i put all my crap in drawable-hdpi Dec 28 12:07:18 * dodobrain hides Dec 28 12:07:26 even though the actual density puts it in the xxhdpi bucket Dec 28 12:08:16 dodobrain: I tried that but it didnt work out so hot on my last project, damn splash logo was like half an inch wide on the nexus 10 vs almost 3 inches on the galaxy tab/note Dec 28 12:08:32 haha Dec 28 12:08:54 and almost full screen on the Note II Dec 28 12:08:56 couldn;t you have just set the width to be a percentage of the screen width? Dec 28 12:09:03 thats what i do on mine Dec 28 12:09:07 spash image Dec 28 12:09:12 *splash Dec 28 12:10:09 twas a phonegap project, lately almost every project I have gotten has been phonegap, CAT doesnt seem to want to pay for native anymore Dec 28 12:10:22 put a horizontal or vertical linear layout.. 3 col or 3 row.. central item has your splash image.. with a layout_weight of 0.5 while the 2 "sides" have simple a textview with nothing inside with layout_weight of 0.25 Dec 28 12:10:30 I'll see whether the icons look better now on my Nexus Dec 28 12:10:32 Well pay twice for native Dec 28 12:10:44 dblosevn, CAT ? Dec 28 12:10:55 ya, I been doing a ton of work for them Dec 28 12:11:03 what is CAT? Dec 28 12:11:07 caterpillar Dec 28 12:11:24 the ones that make huge ass machines ? Dec 28 12:11:26 ya Dec 28 12:11:31 lol, ok. Dec 28 12:11:55 building some pretty kick ass clculators for them now Dec 28 12:12:14 have some screenshots? Dec 28 12:13:11 i'd also like to see what a badass calculator is Dec 28 12:14:23 badass calculator for people that make big ass machinery :D Dec 28 12:14:42 cant post liks but thats the ground work for the compaction calc im working on now its basically the light version of the one were also building in tandem, thats way cooler deals with particle physics to determine optimum compaction based on environment machine and 100's of thosands of soil samples all over the world Dec 28 12:15:50 cool stuff.. real world calculations :) Dec 28 12:30:05 hey, I gave a custom view and I build a path to draw on the canvas. sometimes the path is very big, most of it goes outside of the screen cords, when that happens nothing of the path is drawn even the parts that are inside the screen. this only happens if i use targetSdkVersion = 14 . when I switch it to 8 i dont have that issue. any why that happens? Dec 28 12:31:59 if i disable hardware acceleration on that view, everything works again Dec 28 12:32:28 anyway I can make it work without disabling hardware acceleration? Dec 28 12:40:54 guys.. how do i make a slim button? Dec 28 12:41:05 i want the height to be matching the text height Dec 28 12:53:13 how the heck do you make small buttons? do i simly need to use a textview with an onclick listerner or similar? Dec 28 12:58:10 minimum height? Dec 28 12:59:09 not necessarily minimum height.. Dec 28 12:59:26 but something not as obscenely big as the the standard button Dec 28 12:59:29 max height then? Dec 28 12:59:38 i'm talking about button params Dec 28 12:59:47 oh.. Dec 28 12:59:57 *properties Dec 28 12:59:58 but i don't know or want to set the height in dp Dec 28 13:00:05 i want it to wrap the text height Dec 28 13:00:15 or maybe even textheight + some padding Dec 28 13:00:21 not as big as the standard button though Dec 28 13:01:04 My app creates events using CalendarContract. Later on I need to find the events my app has created. Is there a field that I can use? API v16 does not have the UID field. Dec 28 13:01:23 try min height 0dp Dec 28 13:08:21 CaptainFarrell, /me salutes you el capitano! Dec 28 13:08:31 how did you figure it out? :) Dec 28 13:09:41 I fluked it by trial and error Dec 28 13:11:55 java 8 makes me all gushy Dec 28 13:13:35 storkme, whats new in j8 ? Dec 28 13:14:05 mostly lambdas, but a whole lot of functional improvements got in there too... http://www.techempower.com/blog/2013/03/26/everything-about-java-8/ Dec 28 13:16:27 decent datetime api too Dec 28 13:17:26 leslie, they finally support all of 8601 ? Dec 28 13:17:40 no idea Dec 28 13:17:52 I know it's based loosely on Joda Time though Dec 28 13:18:24 cos iso8601 allows for utc dates to be specified as ....Z but java currently only likes it if theres a +xxxx or +xx:yy or - versions of the same Dec 28 13:22:53 I can check, if you want, dodobrain Dec 28 13:23:06 please do. Dec 28 13:23:56 ok, one sec, just need to wait for vmware Dec 28 13:27:34 leslie, essentially parse this string into a Date object.. "2013-12-17T18:40:21Z" Dec 28 13:28:04 doesn't work in java7, this one will though "2013-12-17T18:40:21+0000" Dec 28 13:31:31 dodobrain ZonedDateTime dt = ZonedDateTime("2013-12-17T18:40:21Z") works Dec 28 13:31:43 thanks leslie Dec 28 13:33:06 er, I mean, ZonedDateTime.parse("2013-12-17T18:40:21Z") Dec 28 13:33:25 leslie, no worries.. either will fail on j7 Dec 28 13:33:42 yeah, but I'm pretty sure it works in Joda Time Dec 28 13:34:05 yeah, but joda time is a third party thingy.. not builtin Dec 28 13:34:28 yeah Dec 28 13:34:38 Android won't be getting Java 8 for a long time anyway Dec 28 13:35:06 lol, ok Dec 28 13:35:22 :( Dec 28 13:35:32 well it still doesn't have even Java 7 Dec 28 13:36:25 it has scala, though Dec 28 13:36:30 haha Dec 28 13:38:43 Scala isn't that great tbh Dec 28 13:43:41 Groovy would be cool to have, but it doesn't work with Android Dec 28 13:59:03 Even Java 8 doesn't have a decent way of creating collections. in Groovy you can do this to make a list: def list = [1,2,3,4] Dec 28 13:59:27 Is an Intent fired when a widget starts? Dec 28 13:59:45 you mean when it's created? Dec 28 14:00:14 Yep Dec 28 14:01:52 Oh, APPWIDGET_UPDATE Dec 28 14:02:14 leslie: Arrays.asList isn't crazy verbose Dec 28 14:02:47 that's true, but I think it creates a fixed size list that you can't later add to, storkme Dec 28 14:03:44 yeah that's probably true Dec 28 14:04:01 and there's no equivalent for maps, groovy can do ["one":1, "two": 2] Dec 28 14:14:43 hi all Dec 28 14:15:05 my device has the screen broken.. is it possible to see the output on the computer ? Dec 28 14:16:43 http://stackoverflow.com/questions/3356095/how-to-bring-android-existing-activity-to-front-via-notification this seems really odd to me. Dec 28 14:17:35 aLeSD, http://playingwithsid.blogspot.com.au/2012/03/how-to-display-your-android-screen-on.html Dec 28 14:17:48 it will be a little bit slow though .. atleast it was the last time i tried Dec 28 14:19:51 dodobrain, thanks Dec 28 14:36:36 Is it possible to have a gradient for the stroke value of a drawable? Dec 28 15:03:46 hello, does anyone know a normal android slider? Dec 28 15:03:59 not an extension of seekbar/progress bar Dec 28 15:07:09 how do I make writing sqlite queries less painful? Is there any support for something like prepared statements ?A Dec 28 15:08:12 bel3atar, create a simple DatabaseHelper of some sort to help you with it. Dec 28 15:10:24 https://github.com/emilsjolander/sprinkles use thisssssss Dec 28 15:10:59 (disclaimer I've never used it but I plan to the next time I write an app with sqlite) Dec 28 15:11:33 leslie, scala is great, tbh, :p Dec 28 15:11:51 groovy is the one that's not Dec 28 15:12:07 i was waiting for you to pop up :3 Dec 28 15:13:23 storkme, it looks like a whole other language haha Dec 28 15:13:39 storkme, I'd like to keep it the plain way though. Dec 28 15:13:40 and for that matter, android-19 supports java7 bytecode just fine Dec 28 15:14:29 I'm not a fan of writing boilerplate, like to avoid it any way I can Dec 28 15:14:30 anybody using onFling for a GestureDetector? i'm wondering what x/y velocity you use as a threshold to perform the action Dec 28 15:28:56 I don't like the syntax really, pfn Dec 28 15:29:18 guys, why is it recommended to couple fragments with dedicated activities for phones? wouldn't it be simpler to simply replace fragments? Dec 28 15:29:44 as per dev docos by google, they show 1 activity with several fragments for tablet Dec 28 15:29:57 but 1 activity per fragment for phone Dec 28 15:33:43 Does it say that it's recommended? Dec 28 15:34:08 Or does it just show one way of doing it? Dec 28 15:34:12 true, it doesn't but that's how they do it in the examples Dec 28 15:36:31 your reply is rhetorical Dec 28 15:37:04 :) Dec 28 15:48:59 Does anyone know a slider widget? Dec 28 15:50:30 vmusr http://developer.android.com/design/building-blocks/seek-bars.html Dec 28 15:50:41 like that? Dec 28 15:50:45 slider like a traditional slider Dec 28 15:51:13 leslie, exactly the opposite Dec 28 15:51:19 Does anyone know how to get the values of the selected entries in the MultiSelectListPreference? Dec 28 15:51:50 I need a slider that could be at the center (seekbar ok) however it has to fill from the center to the outside (I have values from -10 to 10) Dec 28 15:51:53 do you have an example of what you mean, vmusr ? Dec 28 15:52:57 I'm starting to program in android I'm having problems with the google maps api keys with multiple users. Each time one of my group wants to test things in his computer he has do uncomment his key in the manifest and comment mine, for example. How should we manage this? Dec 28 15:57:06 thebloggu: uhm, get a real key or use the developer key while you're developing? Dec 28 15:57:45 thebloggu: or give them a binary signed by you instead of having them compile it Dec 28 15:58:31 leslie, http://tinypic.com/r/30kztp3/5 Dec 28 15:58:57 zinx: what do you mean with get a real key? (I don't know if it was clear that I'm developing in a group, not distributing the application to others) Dec 28 15:59:43 zinx: my key won't work when another person tries to run their version of the project Dec 28 16:00:21 vmusr http://developer.android.com/reference/android/widget/SeekBar.html ? Dec 28 16:00:29 thebloggu: because keys are tied to the signature Dec 28 16:00:35 leslie, it's doing the job Dec 28 16:00:39 it's not* Dec 28 16:01:02 thebloggu: you can either use the developer key, or make sure the binary is signed by a specific key.. Dec 28 16:02:36 vmusr what have you tried? Dec 28 16:03:16 zinx: and how can i make sure the binary is signed by a specific key? Dec 28 16:03:25 leslie, it and http://tinyurl.com/pbvlg79 Dec 28 16:04:09 leslie, the second one is much better, but I need one thumb, not 2. Is there some 3rd party widget, or I have to write mine own like those guys Dec 28 16:05:08 range-seek-bar is specifically for selecting a range, not a value. Dec 28 16:05:25 SeekBar is what you're looking for Dec 28 16:06:06 thebloggu: by using that key to sign it when you build... Dec 28 16:06:42 leslie, yea but I don't need the fill Dec 28 16:07:09 maybe I'll remove it and just add drawable below Dec 28 16:07:11 can't you just use a custom background drawable? Dec 28 16:07:46 splendid, there is a bounty for a question similar to mine on stackoverflow and no difinitive answer Dec 28 16:09:31 zinx: I'm not sure I'm following. can you guide my through the whole process? first i go to the console api of google and generate a key. then i add this (http://pastebin.com/pSrdFS5s) to my manifest. what's next? Dec 28 16:12:30 thebloggu: the maps key is tied to the signature used to sign the apk, i don't know how much more clear i can be on that. Dec 28 16:32:39 can anyone help shed some light on this error: http://pastebin.com/SaPpFQjc, have no idea where to start Dec 28 16:34:05 googled the error, but no Idea which xml file to look in for the parse error Dec 28 16:34:30 Hi guys, please can someone help me ? I am trying to simply erase every character BEFORE the last occurance of "/" (as i have path like storage/sdcard/IMG100/test.jpg and i want to leave in string just test.jpg) What i am doing wrong guys? thanks, here's pastebin : http://pastebin.com/M2Y9NvtR) Dec 28 16:41:02 DOSP: Dec 28 16:41:02 yo Dec 28 16:41:07 I didn't click the link in time Dec 28 16:41:21 split it at "/" Dec 28 16:41:44 so String paths[] = path.Split("/"); Dec 28 16:42:02 then paths[paths.length] should contain your string. Dec 28 16:42:07 IIRC Dec 28 16:43:10 leslie, what precisely about the syntax do you dislike? It's consistent Dec 28 16:43:13 PugWaffle, very interesting idea, thanks Dec 28 16:43:56 e8fhrefuiohreufiohre screen capture why are you not working... Dec 28 16:44:06 the only thing somewhat awkward feeling is parameter lists Dec 28 16:44:22 but it's consistent Dec 28 16:48:17 Hello.. Anyone know of any reason Raw Contacts might contain null for all contact ids? (Assuming there are contacts on the phone) Dec 28 16:50:07 it wouldn't Dec 28 16:50:10 _id is always non-null Dec 28 17:20:12 pfn: contact id Dec 28 17:20:23 not the auto increment primary key Dec 28 17:22:22 do you guys have any tips/advice on writing long sqlite queries that are readable? Dec 28 17:22:58 i was using raw contacts to get some information, works on my dev phone, my personal phone, a couple of other phones but the bosses phone, which i have not been able to examine over the holiday break, does not seem to work (so he says) Dec 28 17:25:32 NameLess-exe my latest theory is you want to use the principle of newsprint Dec 28 17:25:53 ie, use columns, they don't all have to be aligned, but group like statements Dec 28 17:26:00 elaborate? Dec 28 17:26:06 ah Dec 28 17:26:17 apparently human beings read this the fastest Dec 28 17:26:38 but it's much easier than identitying each next line or leaving one long line Dec 28 17:26:45 (imho) Dec 28 17:28:28 but thats for writing in a sql ide, writing that for java makes life a lot harder since you can't have multiline strings and you don't want to make a line too long Dec 28 17:28:33 i also like breaking strings with the trailing + at the end of the previous line, not the beginning of the new line Dec 28 17:29:01 yeah multiple line strings look like: multiPleLineString = "Here is a string on line one " + Dec 28 17:29:07 "and the same string on line two " + Dec 28 17:29:16 "and the same string on line three"; Dec 28 17:29:17 etc Dec 28 17:29:42 well i mean @"line 1"\n"line 2" in like c# Dec 28 17:30:02 also do you hard code the column/table names? or use a variable? Dec 28 17:30:03 use a string.xml Dec 28 17:30:06 you can use + to break lines up Dec 28 17:30:09 and load it as resource Dec 28 17:30:13 variable/constant Dec 28 17:30:17 or a properties file Dec 28 17:30:24 ^^ pfn that's what i wasbout to say :) Dec 28 17:30:34 i thought of that, but you'll have to hardcode everything Dec 28 17:30:38 android still supports getResourceAsStream just fine Dec 28 17:31:04 nameless theoretically you'd want to hardcode everything as you can precompile your statements for efficiency Dec 28 17:31:18 *everything you can Dec 28 17:31:49 doing something like db.rawQuery("SELECT * FROM " + TABLE_NAME) shouldn't take *that* long Dec 28 17:32:16 it shouldn't ;p Dec 28 17:32:29 also if you are doing batch operations make sure to use begin and end transaction, cut down some code i was recently doing by half the milliseconds Dec 28 17:32:54 ah ok Dec 28 17:41:37 Hey guys, I'm trying to get the whole SQLiteOpenHelper, ContentProvider, CursorLoader trinity working, and it all works except for the fact that my SQLiteOpenHelper implementation, while it executes sql, doesn't seem to be creating the tables.... Dec 28 17:41:59 so to test this out, I tried to insert some values in right after I created the tables, and that worked Dec 28 17:42:13 but as soon as the contentprovider queries, I get a SQLiteException: no such table exists. Dec 28 17:44:26 the content provider is the wrapper for your sqlite database? Dec 28 17:45:20 lasserix: yep, don't worry, fixed it... I was too clever for my own good, and I was using a transaction block without calling "setTransactionSuccessful"; Dec 28 17:45:53 aye :) Dec 28 17:46:31 that bug had been slapping me about literally all day :| Dec 28 17:47:23 so, i wrote a simple little thing to schedule notifications using the AlarmManager, which works fine, but doesn't seem to schedule notifications if the app gets shut (i'm planning on scheduling like a birthday reminder), is there some better system I should be using? Dec 28 17:52:44 Hi guys, can someone advise me why when i am trying to send file from android i get the filename error but i really dont know what its wrong with it, can someon help me ? STOR [file:///storage/sdcard1/DCIM/100MEDIA/IMAG0175.jpg] Dec 28 17:53:13 thats the format of how file comes into server and after that it is 550 filename invalid, i am using filezilla server Dec 28 17:53:22 please if someone would help me i would really appreciate it Dec 28 18:07:27 Do we only need to db.close() on writable database objects? Dec 28 18:08:17 I'm doing a close on some getReadableDatabase() objects and i think thats why its erroring... Saying attempt to re-open an already-closed object Dec 28 18:15:47 you need to close all resources Dec 28 18:15:50 if it's closed, create a new instance Dec 28 18:16:02 yeah.. i think i'm looking the wrong place Dec 28 18:16:32 so basically i had some warnings saying that i had a non closed db connection that could be leaked Dec 28 18:16:49 so I went back and db.close()'d all my connections in each method Dec 28 18:17:20 then i started getting this error... so I think i'm closing it somewhere before its done? but i'm doing it at the very end of my methods. so not sure whats up Dec 28 18:19:15 pfn: and yeah I thought that was the case. I should close them all after use... Dec 28 18:19:27 that's right, you're closing before you're done Dec 28 18:19:31 that's easy, look at your stack trace Dec 28 18:19:32 and fix it Dec 28 18:19:44 I've got a few methods that take a db object as an argument so I think thats where it is... Dec 28 18:19:59 I'm looking at the stack trace :). Not as straight forward as I'd like. I've got a lot of cleaning up to do in my codebase Dec 28 18:20:39 that's your fault :p Dec 28 18:21:06 yep :) Dec 28 18:21:15 i'm in the middle of the cleaning... :) Dec 28 18:26:45 I dont' see anywhere before the cursor call that its complaining about in the stacktrace that i'm closing the db... Dec 28 18:27:55 is there a catch to using this.getWritableDatabase(); and getReadableDatabase(); ? Dec 28 18:33:52 could it be that i'm doing a cursor.close() and db.close() ? Dec 28 18:39:23 Ok so I found it but don't quite understand why its not letting me do a db.close()... I do a this.getReadableDatabase() and use a cursor to iterate over it. Dec 28 18:40:14 Any idea why it won't let me close the db or cursor at that point? Dec 28 18:41:27 ok, boys. it's time for night hacking Dec 28 18:41:42 at 10 am? sure Dec 28 18:41:50 it can be... very late night Dec 28 18:42:04 hah Dec 28 18:42:11 1:41, mid day hacking? Dec 28 18:42:27 nono its EXTREMELY late night for you ;) Dec 28 18:42:55 cut it out, gents :) Dec 28 18:45:54 is there an easy way in android to get a 'time since' like on twitter? Dec 28 18:46:26 DateUtils seems lacking :/ Dec 28 18:49:13 * Dreeass is away: I'll be right back or not. Dec 28 18:50:10 nevermind, I am an idiot. getRelativeTimeSpanString(Context,long) produces a different result to getRelativeTimeSpanString(long). Dec 28 18:56:38 hello. can anyone point me to any tutorial on setting up library dependencies for android project *not* from eclipse or any other ide? Dec 28 18:56:48 just cannot find one.. Dec 28 19:02:13 That would depend entirely on what build system you're using.. Dec 28 19:02:38 for ant, you only can drop in jars, or use library projects Dec 28 19:14:33 Does anyone know a way to open an sms (prior to api 14) by address or threadid? Dec 28 19:23:50 * Dreeass is back (gone 00:34:37) Dec 28 19:27:26 pfn: I've added path for the lib to project.properties as android.library.reference.1 and it says that it resolve to a path with no project.properties file for my project Dec 28 19:27:58 I don't quite understand - it surely has its own project.properties file, but the project.properties file for my project is different obviously Dec 28 19:29:00 why does it claims for project.properties file for my project? Dec 28 19:29:03 *claim Dec 28 19:29:31 anyone know why the android tegra 3.10 tree was deleted? Dec 28 19:29:52 dunno maybe because its ancient? Dec 28 19:33:28 hmm, i have an ancient tegra device what kernel should i use now, lol? Dec 28 19:49:05 good question Dec 28 19:49:28 if ram is 514 mb might be able to run 4.4 lol if you can figure how to compile it for your device ;) Dec 28 19:50:26 I'm creating a service. When initializing my service, I need to execute getSystemService(). When I try doing that in my service's constructor, I receive a NullPointerException (I guess because the context hasn't finished being constructed yet?). Does that mean it's usually best to place one-time initialization code inside of onBind() for services? Dec 28 19:51:24 or onCreate Dec 28 19:53:43 hey guys I'm creating a fragment where the user and select date and time and for some reason the pickstart date button picks time and the time button does nothing. can anyone help me pinpoint what's going wrong? Layout: http://pastebin.com/dJuv1pbF Java: http://pastebin.com/Hf1BcyAF Dec 28 19:54:39 SimonVT: Ah, right. Thank you Dec 28 20:14:51 so for some reason my Android Studio has stopped recognizing changes in my resource files so I need to clean the project every time I want to run it even for minor changes, anyone know what might be up? Dec 28 20:19:18 storkme: par for the course Dec 28 20:19:48 annoying, it used to work fine. Dec 28 20:19:56 storkme: then use the version that worked fine for you Dec 28 20:20:08 I haven't changes anything. Dec 28 20:20:32 storkme: then you changed something Dec 28 20:21:11 any idea how I could find out what it is.. ? Dec 28 20:21:33 if i recall correctly there's an auto-clean feature in eclipse... i THINK. don't take that to the bank or anything Dec 28 20:21:45 I believe there is in eclipse yeah Dec 28 20:22:45 hello Dec 28 20:22:54 anybody debugged kik messenger app ? Dec 28 20:25:32 NoobC0der: debuggged kik messenger? what? Dec 28 20:25:36 how can I find the size of the upper part of the screen? I mean if you have an app there is an area where it says the name of the app, I need this offset. Dec 28 20:25:55 hey guys ! :) Dec 28 20:26:02 how are you all ? :D Dec 28 20:26:14 Ahmad96 i cant see kik messenger requests with charles so i can debug the app i want to make an autoresponder Dec 28 20:29:34 is there any freelancers here ? Dec 28 20:31:39 no advertising, jobs or otherwise Dec 28 20:31:54 my bad Dec 28 20:32:47 I'm kinda struggling with the app widgets.. Dec 28 20:34:07 I want to create a timetable for students and therefore a widget, on the normal activity layout i just created a tablelayout and added one row after another.. but I'm really stuck trying to do that at a widget.. Dec 28 20:35:19 Not all views are supported in app widgets https://developer.android.com/guide/topics/appwidgets/index.html#CreatingLayout Dec 28 20:36:06 i know, i'm trying to do the same with a relative layout, but the remoteviews are really confusing me.. Dec 28 20:59:13 how can i add a view to a remoteview? Dec 28 20:59:18 like a row? Dec 28 20:59:30 :/ Dec 28 21:00:03 From glancing at the RemoteView API, I'd guess the addView(int viewId, RemoteViews nestedView) method? Dec 28 21:00:12 hey guys I'm creating a fragment where the user can select date and time and for some reason the pickstart date button picks time and the time button does nothing. can anyone help me pinpoint what's going wrong? Layout: http://pastebin.com/dJuv1pbF Java: http://pastebin.com/Hf1BcyAF Dec 28 21:00:19 tried that.. gives me a "widget failed to load" error.. Dec 28 21:00:37 Is the view being inflated properly? Dec 28 21:02:29 http://pastebin.com/Xd94xaGR Dec 28 21:02:33 that's the code.. Dec 28 21:03:32 se_busca_ayuda Dec 28 21:03:46 It looks like you copy\pasted line 102 without changing the name to pickFinishTime Dec 28 21:04:27 In the java file. Dec 28 21:07:58 LockeWatts: oh crap thanks. drunken copypasta strikes again! Dec 28 21:09:32 Haha, go refactor :P Dec 28 21:10:07 * LockeWatts is bored, someone give him an Android problem to solve. Dec 28 21:10:26 oh umm yeah Dec 28 21:10:40 find way to put kitkat on nook simple touch ;) Dec 28 21:11:16 Boo, Nook. Dec 28 21:11:25 Spent too long on the Kindle teams to ever touch one of those. Dec 28 21:11:26 aw no nookie? lol Dec 28 21:13:40 seriously though nook simple is probably too underpowered for kit Dec 28 21:14:03 its last version is 1.2.1 though I bet can add some more modern android to it Dec 28 21:14:10 Bahahahaha. Dec 28 21:14:14 1.2.1. Dec 28 21:14:16 Dear God. Dec 28 21:15:49 How do I change the code layout in Eclipse? I want function_name( datatype name ); instead of function_name(datatype name);. Dec 28 21:16:25 LockeWatts: wonder ewhat latest android kindle uses. (not tablet but epaper type) Dec 28 21:16:56 Fritiof, type the spaces as you make the method? Or do you mean the auto generated stubs? Dec 28 21:17:57 XXCoder, I'm like 90% sure the Paperwhite guys forked their own version of AOSP for it, but don't quote me on that or anything. Dec 28 21:18:07 lol ok Dec 28 21:18:29 They were in a different building :(. Dec 28 21:24:13 hey guys, i'm noticing that with Loaders, onLoadFinished is being called before initLoaders when I resume my Activity. why is this? Dec 28 21:26:01 Which subclass of Loader are you using? I don't see one that has an onLoadFinished method. Dec 28 21:26:32 onLoadFinished is part of LoaderManager.LoaderCallback Dec 28 21:26:51 I'm using an AsyncTaskLoader Dec 28 21:28:19 How do you know onLoadFinished is being called before initLoaders? Dec 28 21:28:45 LockeWatts because I debugged the app Dec 28 22:07:17 hi guys Dec 28 22:08:44 hey Yatekii Dec 28 22:11:29 can anyone help me with ListViews? is there any nice way I can do something like a list of Folders and when I hit some Item it opens a sub menu? Dec 28 22:11:56 I have some ListActivity that opens on Button hit that displays the list ... can I save it to open it up again later? Dec 28 22:12:12 because now tocreate that list from a db takes fucking enormous amounts of time Dec 28 22:24:04 Yatekii, well depends on what "sub menu" is for you Dec 28 22:24:12 just fire off a new ListActivity and that's it? Dec 28 22:24:16 yap Dec 28 22:24:23 where's the issue? :) Dec 28 22:25:00 well is there like a smooth built in way as that it sidescrolls in the submenu or does it just pop up like any other activity Dec 28 22:25:14 + how can I store and hand back that activities? Dec 28 22:25:21 (I am building an MP3 player Dec 28 22:25:24 ) Dec 28 22:25:43 and when I open some playlist, play a song and open it again it generates the list every time Dec 28 22:25:48 um Dec 28 22:25:53 and for the "ALL" list it takes a long time which sucks Dec 28 22:25:54 define an activity transition? Dec 28 22:26:07 or is it recommended to use Fragments? Dec 28 22:26:11 and are you killing the transition? Dec 28 22:26:15 fragments are probably better yes Dec 28 22:26:22 but fragments won't solve your problems Dec 28 22:26:28 hmmk Dec 28 22:26:40 so, find out why do you always regenerate your list Dec 28 22:26:40 what do you mean by killing the transition? Dec 28 22:26:49 err.... the activity I mean Dec 28 22:26:55 https://gist.github.com/Yatekii/e92ca1c02d8c508fb274 Dec 28 22:27:04 you're doing something very wrong if your activity restarts when you get back to the previous list Dec 28 22:27:08 I dunno how to store the generated list and hand it back in next time Dec 28 22:28:02 why would you hand it "back" Dec 28 22:28:06 when your activity gets cached? Dec 28 22:28:20 and saving instance state is documented on like one of the first docs -_- Dec 28 22:28:21 does it? Dec 28 22:28:25 I do not think so :S Dec 28 22:28:52 look, let's make a deal. You go read relevant documentation to activity lifecycle and stuff you're using. Dec 28 22:29:06 And we'll talk after, I'm not your tutor to teach you basics -_- Dec 28 22:29:23 I get this when trying to import a project from Eclipse: http://i.imgur.com/B5bmS1J.png. I followed everything done here: http://developer.android.com/sdk/installing/migrate.html Dec 28 22:41:15 Anyone? Dec 28 22:43:44 Do you have an ANDROID_HOME environment variable? Dec 28 22:44:59 Nope Dec 28 22:45:16 Where should it point Dec 28 22:45:30 Well.. Dec 28 22:45:51 The error message tells you Dec 28 22:46:45 Oh thx Dec 28 22:51:04 The SDK directory 'C:\Users\User\Rand\workspace\Android SDK;' does not exist. Dec 28 22:51:04 I don't even have that ; in the environment var. -.- Dec 28 23:16:03 any tips for making a TextView (with URLSpans in it) clickable inside a ListView? Nothing I'm doing seems to work. Dec 28 23:26:56 trying to apply a custom URLSpan to my text view and it's not letting me click it at all..... Dec 29 00:38:02 no android facet found in project is the error. why doesn't adding android-gradle work, but simply android does? wouldn't i want android-gradle? or do i need both? Dec 29 00:39:47 http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Simple-build-files Dec 29 00:42:03 SimonVT: is that for me? Dec 29 00:43:04 yep Dec 29 00:43:56 i have a build.gradle in /gitrepo/android/ and another in /gitrepo/android/project1/ which worked fine on my other computer, and have committed them to git and checked out on this computer. i'd rather not change them if it will break the functionality on the other computer Dec 29 00:44:30 i understand a) what is in the file, and b)what can go in the fle, but don't understand what I should put in the file. Dec 29 00:44:48 even if i do decide to change it temporarily so i can work on the road here. Dec 29 00:45:28 And I don't understand what the issue is or what you mean by android-gradle Dec 29 00:49:11 ok, i can explain. i started a project on my workstation, committed to git using a recommended .gitignore from SO. then i cloned to my laptop, and downloaded the latest android studio, but i have been encountering issue after issue. right now, i got th project open (blind luck), but it says there's no android facet. so i add android, and move to the next area, it can't find androidmanifest.xml. i fix that, and then it can't fin Dec 29 00:49:11 d /res, and so on. Dec 29 01:00:05 make any sense SimonVT? Dec 29 01:03:35 Not really. Are you using the latest version of the android gradle plugin, and does it properly build form command line? Dec 29 01:04:13 When using gradle you should never have to mess around in module settings Dec 29 01:05:59 is that only if you stay on one computer? i get the feeling this stuff is not very portable / dvcs compatible (or it takes some work to get it configured correctly) Dec 29 01:06:20 hey guys Dec 29 01:06:37 got a question about intercepting http://myaddy.com Dec 29 01:07:06 SimonVT: i have gradle 17, 19rc3 and 19 Dec 29 01:07:16 my AndroidManifest.xml has been changed...each activity now has an intent-filter with a data Dec 29 01:07:30 No, gradle projects are very portable Dec 29 01:07:32 as well as the VIEW action and DEFAULT and BROWSABLE categories Dec 29 01:07:39 1.7, 1.9, 1.9rc3, sorry Dec 29 01:07:40 I tried without adding the DEFAULT to all Dec 29 01:07:43 it isn't working, though Dec 29 01:07:53 More so if you use gradlew Dec 29 01:07:55 can only one activity have the data thing? Dec 29 01:07:59 Can't have multiples? Dec 29 01:08:35 Well, the latest android gradle plugin requires 1.9 Dec 29 01:08:48 And the latest AS requires the latest android gradle plugin Dec 29 01:09:06 But what you have installed doesn't matter if you use gradlew Dec 29 01:09:10 SimonVT: AS is 0.4.0 Dec 29 01:10:00 how do i "use gradlew", i have gradlew files in my projects directory (parent of the individual projects Dec 29 01:10:30 have gradlew and gradlew.bat Dec 29 01:11:57 Then you make sure it points to 1.9 in gradle-wrapper.properties and that you're using the latest plugin Dec 29 01:12:08 And tell AS to use gradle wrapper when importing Dec 29 01:13:22 And, most importantly, that it actually builds from the command line Dec 29 01:13:30 Confirm these things before trying to import into AS Dec 29 01:31:45 is it possible to adjust this file generically?https://gist.github.com/Yatekii/1ad48b0d399f1f6d1344 Dec 29 01:32:04 I mean I want some TextView to just appear on certain value found :S Dec 29 01:33:59 SimonVT: it points to the http address for 1.7 (probably what I was using on the old computer). Dec 29 01:34:59 and I believe if i change that, and then commit to git, it'll break the build on my workstation because it has 1.9 (so i'd have to go download another version there to make it work) Dec 29 01:38:55 When you use gradle wrapper it doesn't matter what you have installed, it will download and use the one defined in .properties Dec 29 01:40:07 ok, tried to build, with gradle 1.7 in path, and it failed. failed to find build tools revision 18.1.0 Dec 29 01:43:42 Again, AS 0.4 requires the latest android gradle plugin which in turn requires gradle 1.9 Dec 29 01:45:15 SimonVT: so basically, i have to modify my files under vc (the properties file), in order for it to work, which will break it on my other computer. Dec 29 01:46:14 Why would it break it on your other computer Dec 29 01:46:31 If you use gradlew and have downloaded the latest build tools in the sdk it will work Dec 29 01:46:39 And use AS 0.4 of course Dec 29 01:47:16 right, so id have to download new build tools and most likely a new version of AS on my other computer in order for it to work again. Dec 29 01:47:39 because if it was using 1.7, that means i couldn't have as 0.4 on that computer Dec 29 01:48:21 so basically, i have to keep all my computers versions of AS the same (whether that's the latest or 1 month old, they have to stay in sync to work) Dec 29 01:48:51 Compatibility isn't a concern as long as it's beta software Dec 29 01:50:02 SimonVT: compatibility betwen my computers is a concern for me, i want to be able to clone and work from more than one place without needing to check my sw versions before disconnecting from the internet (in the case of my laptop) Dec 29 01:51:25 and it seems that i cannot work with an older project on a newer version of AS / Gradle without modifying VC'd files. Dec 29 01:52:01 That's correct Dec 29 01:53:28 that sucks Dec 29 01:54:33 can i do a non-gradle project and avoid this problem? Dec 29 01:58:40 Doh0 Dec 29 01:58:48 How do I clear the DNS Cache on my device? Dec 29 01:58:57 > I'll check google first Dec 29 02:02:14 Restart the device; Dec 29 02:02:24 Pull out the battery; Dec 29 02:02:29 These methods seem quite unscientific Dec 29 02:07:20 to clear dns cache, just reboot Dec 29 02:07:35 sometimes restarting the app is enough Dec 29 02:08:01 Just factory reset Dec 29 02:15:28 ok, got the correct build tools (1.8) for my project, and tried >gradle build , but now i get a "gradle version 1.6 is required, current version is 1.9" Dec 29 02:15:50 this is from the command line now, not AS Dec 29 02:20:31 hate the gradle, how is this shit so complicated Dec 29 02:20:52 pfn: agreed Dec 29 02:21:30 i just tried to build using gradle 1.9, and it said it needed 1.6, but if i run gradlew.bat, it builds with 1.7 successfully. Dec 29 02:21:57 i guess it auto selects and ignores what "regular gradle" needs Dec 29 02:22:55 just use gradlew Dec 29 02:23:09 It doesn't autoselect.. If you use gradle it uses whatever version you have in path, if you use gradlew it uses whatever you have in .properties Dec 29 02:23:14 There's no magic to it Dec 29 02:23:20 gradlew will select the correct gradle to use Dec 29 02:23:45 ie, do not install a copy of gradle yourself Dec 29 02:24:30 IS anyone in here familiar with getting an image form a url to put into a home screen widget? This is stumping me pretty hard at the moment. Dec 29 02:24:35 SimonVT: then why does a build attempt gradle build say it needs 1.6 but gradlew uses 1.7 Dec 29 02:24:56 my image will not show up Dec 29 02:26:57 what does it matter Dec 29 02:27:07 just use gradlew and ignore the rest Dec 29 02:27:52 pfn: it matters because it seems inconsistent, and I'd like to understand why Dec 29 02:28:08 figure that out on your own Dec 29 02:28:23 ie, ask in #gradle Dec 29 02:29:05 searayman56, what's wrong with setImageUri Dec 29 02:29:09 are there any more specific android dev irc rooms? Dec 29 02:29:48 Checkout AOSP, find the commit for whatever version of the android gradle plugin you're using, find where they check the gradle version and get your answer Dec 29 02:29:50 pfn, I think it has trouble sending to remote views Dec 29 02:30:06 I'd assume they just see that your version is too low or too high and just tell you one that works Dec 29 02:30:35 searayman56, what exactly are you pasaing Dec 29 02:30:50 you can only use a bitmap or a content uri Dec 29 02:31:02 pfn, I am trying this right now in my async task which updates my widget and my image never shows up http://pastebin.com/WHyCMyqB Dec 29 02:31:30 httpis not a content uri Dec 29 02:33:36 pfn, I guess I am confused then on how else to do it. I also tried this: http://pastebin.com/XeaMQsfb Dec 29 02:34:46 should work, did you updateAppWidget? Dec 29 02:37:17 pfn, yes I do the update also. Whats this one does though it seems to stop the whole widget and the text views don't even get filled Dec 29 02:37:48 pfn, so I pretty much just get an empty widget Dec 29 02:48:00 AS import does the same thing. Gradle version 1.6 is required, Curretn version is 1.9. i can't find anywhere in the repository with "1.6" in a file Dec 29 02:48:10 pfn, any other ideas on how I could accomplish this? **** ENDING LOGGING AT Sun Dec 29 02:59:58 2013