**** BEGIN LOGGING AT Mon Mar 25 02:59:59 2013 Mar 25 03:05:26 anyone good at themeing in here Mar 25 03:07:09 oh Mar 25 03:07:12 Dorky: just ask whatever question you have Mar 25 03:07:27 anyone good at NFC in here? Mar 25 03:07:39 :P Mar 25 03:07:48 good at ? Mar 25 03:07:50 lol Mar 25 03:07:58 lolol Mar 25 03:08:53 coco89: tis all in the docs Mar 25 03:09:07 seems quite direct and straight forward Mar 25 03:09:11 StingRay_, I've read the docs thoroughly twice since Mar 25 03:09:20 compare that to the gdrive api Mar 25 03:09:27 totally different Mar 25 03:09:33 StingRay_, they explain things fairly well apart from reading from a tag Mar 25 03:09:40 coco89: yeah but you have not started at the begining Mar 25 03:09:46 you jumped and missed lots Mar 25 03:09:50 NFC basics Mar 25 03:09:54 no Mar 25 03:09:56 android Mar 25 03:10:10 but I know android :) AMA Mar 25 03:10:17 okay not everything Mar 25 03:10:18 but Mar 25 03:10:21 the basics Mar 25 03:10:36 so ask a direct question Mar 25 03:10:43 rather than I don't know how to do "x" Mar 25 03:11:02 how do I meet ladies? Mar 25 03:11:11 find them Mar 25 03:11:15 anyone else ? Mar 25 03:11:16 I am just kidding Mar 25 03:11:20 I got no problems in that dept Mar 25 03:11:22 :) Mar 25 03:11:26 on the default holo light theme the editexts dont have any borders backgronds how can i add that with theme...and what is the best way to do rounded corners still 9 batch or is there a better way? Mar 25 03:11:44 9patch Mar 25 03:11:58 StingRay_, So I'm reading from the tag which gas a string called 'marco' but instead it says 'enmarco' http://pastebin.com/KbhKEDAM I'm not sure why? Mar 25 03:12:01 override the state list, 9patch or shapeDrawable Mar 25 03:12:02 you can draw shapes with xml drawables Mar 25 03:12:04 also is there a theme browser of all the themes somewhere so I can see them at once? ok and what the ansser to theming eittext Mar 25 03:12:11 but its not as efficient as just using a 9patch Mar 25 03:12:15 if I'm putting a 3rd party page in a webview, how can I best debug javascript? I don't seem to be getting anything out of WebChromeClient.onConsoleMessage Mar 25 03:12:29 StingRay_, I'm guessing it has something to do with the Locale maybe but I don't know what Mar 25 03:12:36 i wish there was a Native version of the DOjo widgets for android is there or only web? Mar 25 03:13:25 douschebag chat room. Is quiet for 20 minutes, decides to ask question. 5 others join in Mar 25 03:13:27 :P Mar 25 03:14:20 ok this java heap spae thing is pissing me off whenever i have a background that has a bitmap then eclipse runs out of ram allocated 1500mb to it so far how do I fix that or do I have to go 64 eclipse and sdk and all that? Mar 25 03:17:56 coco89: http://stackoverflow.com/questions/14518695/android-nfc-development-using-fragment Mar 25 03:18:10 forget the title and points about fragments Mar 25 03:18:16 but read a look Mar 25 03:20:54 StingRay_, okay Mar 25 03:22:38 StingRay_, I'm guessing what I should be looking at is the BuildTagViews method from List records = NdefMessageParser.parse(msgs[0]); Mar 25 03:22:38 this line onwards Mar 25 03:23:18 except NdefMessageParser cannot be resolve toa type Mar 25 03:45:19 so i asked a lot of qs and noone answered..if you have time thatd be great Mar 25 03:45:46 i think you did get answers Mar 25 03:46:08 no i didnt aoll you did was say ask whatever and then i asked and got no answers Mar 25 03:46:15 who answered? Mar 25 03:47:48 oh, me and ron Mar 25 03:48:44 only about the 9 patch not anything else Mar 25 03:49:06 about theme text thing Mar 25 03:49:13 9patch and shape Mar 25 03:49:14 etc Mar 25 03:49:35 i dont see anything about the theme text at all Mar 25 03:49:42 or the java heap thing in eclipse Mar 25 03:49:46 ask single questions again Mar 25 03:49:49 and the 9patch you just said to use it Mar 25 03:49:55 cause I cleared the text Mar 25 03:49:59 thanks anyway Mar 25 03:50:04 well cleared the buffer Mar 25 03:50:20 I think the answers in order were Mar 25 03:50:36 override the state list for it in the style Mar 25 03:50:46 9patch or shapeDrawable Mar 25 03:50:54 and ron said 9patch would be better Mar 25 03:50:58 yes i got that far ok Mar 25 03:50:58 and then something else Mar 25 03:51:19 oh, I thought you only asked 2 questions Mar 25 03:51:29 or 3, can't remember Mar 25 03:52:42 so when you say you got no answers, not sure what you mean Mar 25 03:53:34 this java heap spae thing is pissing me off whenever i have a background that has a bitmap then eclipse runs out of ram allocated 1500mb to it so far how do I fix that or do I have to go 64 eclipse and sdk and all that? Mar 25 03:54:09 oh, didn't see that, and no, never run into that myself Mar 25 03:54:32 can increase in eclipse ini Mar 25 03:54:37 mem allocation Mar 25 03:55:42 i did all the way up to the 1500 mb supposed limit Mar 25 03:56:06 must be some hell of a bitmap Mar 25 03:56:11 it isnt Mar 25 03:56:18 its obviously a bug in the plugin etc Mar 25 03:56:30 what's your ini file look like ? Mar 25 03:56:51 plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar Mar 25 03:56:51 --launcher.library Mar 25 03:56:51 plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120913-144807 Mar 25 03:56:51 -showsplash Mar 25 03:56:51 org.eclipse.platform Mar 25 03:56:51 --launcher.XXMaxPermSize Mar 25 03:56:52 256m Mar 25 03:56:52 --launcher.defaultAction Mar 25 03:56:53 openFile Mar 25 03:56:53 -vmargs Mar 25 03:56:54 -Dcom.ibm.icu.util.TimeZone.DefaultTimeZoneType=ICU Mar 25 03:56:54 -Xms40m Mar 25 03:56:55 -Xmx1400m Mar 25 03:56:56 yeah thanks :S idiot ... Mar 25 03:57:58 http://pastebin.com/sUbcX4KA mine if you wanna try something similar Mar 25 03:59:18 ok for whatever rason it doesnt display on my browser Mar 25 03:59:29 it just puts everything in the title which i cant read Mar 25 03:59:39 enable java ? Mar 25 04:00:35 are you running 64 bit java on that bankai? whenever i use Xmx sizes that big i get an error that the vm wont start Mar 25 04:01:00 if you're 32bit you've got a 2gb limit Mar 25 04:01:19 well actually its 1500mb from what I understand not even 2gb Mar 25 04:01:30 so you are using 64 bit eclipse right? do you just run the normal adt plugin or what? Mar 25 04:03:11 for some reason whenever I scroll with my listview, i cant stop midscroll when i tap...my listview has selectable items in each row. Is there anyway to catch this scroll? Mar 25 04:03:22 do you not have a 64 bit system ? Mar 25 04:03:31 yes I have a 64 bit system! Mar 25 04:03:47 why don't you use 64bit apps when you can then ? :S seems silly Mar 25 04:04:03 oi io Mar 25 04:04:26 thanks for being an asshole Mar 25 04:05:25 dorky chill the hell out, this is a place for professional software development and intellectual stimulation. Mar 25 04:05:45 that's right and so..... ] Mar 25 04:06:11 1) I did not originally know that eclipse required a "32 or 64" bit version considering that it's java Mar 25 04:06:31 2) By the time I did realize that I had installed eclipse 32 since that was the default Mar 25 04:06:55 3) so now I ask if android EVEN SUPPORTS 64 bit eclipse (adt plugin) and I get a real snarky statement like wtf cant you install 64 bit applz dood! Mar 25 04:07:04 but thanks you guys are like, really professional Mar 25 04:07:10 http://lmgtfy.com/?q=eclipse+64+bit Mar 25 04:10:25 Dorky brings out the best in us, i guess :) Mar 25 04:11:10 i'd just put him on ignore, but then the conversations get wacky when people are replying to him Mar 25 04:11:49 very rude and ungrateful Mar 25 04:12:02 you average programmer maybe ? :) Mar 25 04:12:48 ron_frown: screw the fancy motorcycles man, you need to do this http://geckodesigns.kinja.com/so-i-bought-a-firetruck-252516685 Mar 25 04:13:34 pretty easy subject for serial photography :) Mar 25 04:14:13 StingRay_: another day of aweful pictures; and man i worked my ass of (hiked 14 miles) Mar 25 04:14:31 for the most part, flowers weren't so dramatic and the light was way to harsh Mar 25 04:14:34 m8 I already said Mar 25 04:14:41 what is m8 ? Mar 25 04:14:49 g00s trust me dude Mar 25 04:14:51 I would do that Mar 25 04:14:52 oh :) Mar 25 04:14:55 not so much a firertuck Mar 25 04:14:56 very few people do it thought eyepiece Mar 25 04:15:01 but army truck shit yeah Mar 25 04:15:37 ron_frown: yeah, but with a firetruck people will get out of your way :) Mar 25 04:15:51 its illegal to use lights like taht Mar 25 04:15:56 and more so to impersonate people Mar 25 04:16:08 g00s built my first tizen app Mar 25 04:16:08 yeah but without lights i bet its still impressibe Mar 25 04:16:09 hah Mar 25 04:16:20 ron_frown: Hello! Mar 25 04:16:23 XD Mar 25 04:16:26 native c Mar 25 04:17:03 ah, cool. there was a thread on osnews about Samsung ditching android for Tizen; but they suck so bad i doubt they could pull it off Mar 25 04:17:41 but then again, Tizen is intel + whoever , not just samsung. Mar 25 04:18:12 ron_frown: how do you like it so far? Mar 25 04:18:25 its eclipse Mar 25 04:18:29 there are goos and bad Mar 25 04:18:33 goods Mar 25 04:18:39 honestly it was just a hello wordl Mar 25 04:18:49 kinda funny... a lot is modeled after android Mar 25 04:18:55 there are Tdk's Mar 25 04:19:01 and tizenmanifest.xml Mar 25 04:19:17 er manifest.xml Mar 25 04:19:40 jar files have manifests too; i guess android copied sun there also XD Mar 25 04:19:59 I like the idea of a ui designer but a c/c++ app Mar 25 04:20:20 what is the UI layer that binds to the c? Mar 25 04:20:25 (qt, etc) Mar 25 04:20:46 that I am nto sure about Mar 25 04:20:52 its xml layout Mar 25 04:21:06 qt usually uses qml Mar 25 04:22:17 Mar 25 04:22:18 720 Mar 25 04:22:18
Mar 25 04:22:30 I know meebo was qt Mar 25 04:22:42 meeboo, youboo Mar 25 04:24:25 hey :) Mar 25 04:25:02 would would be the best way to create a php session like variable, for example a user id after they log in? Mar 25 04:25:22 should I just use getApplicationContext(0 to pass the variable through every activity? Mar 25 04:25:40 just an observation, php users ask the craziest questions Mar 25 04:25:56 craziness seems over represented in the php group Mar 25 04:26:01 g00slooks like it could be EFL Mar 25 04:26:22 thanks ;D Mar 25 04:26:23 never heard of EFL >.> Mar 25 04:26:28 riccoski: :) Mar 25 04:26:49 obviously we're used to working a certain way that we then try repli=cate in another thing :p Mar 25 04:27:06 enlightenment foundation library Mar 25 04:27:10 working a crazy way, yeah Mar 25 04:28:09 ron_frown: the hell? that looks aweful Mar 25 04:28:13 is my question not a fair one? :p Mar 25 04:28:55 riccoski: you can stuff your cookie in a static of some class Mar 25 04:29:13 g00s looks like it can b styled however you want to do it Mar 25 04:29:38 efl looks like its from the 80s Mar 25 04:30:22 http://www.sammobile.com/2013/02/18/tizen-sdk-2-0-screenshots/ Mar 25 04:30:26 I dont think thas too terrible Mar 25 04:30:44 cool thanks,is using thw sqlite a bad idea? Mar 25 04:30:45 e17 looks cool though Mar 25 04:48:28 ron_frown: the Tizen guys @ Intel are on the other side of town :) Mar 25 04:48:43 ? Mar 25 04:48:53 here in Chandler, AZ. Mar 25 04:48:55 the os still needs some polish Mar 25 04:49:04 but I already think they've got the right idea Mar 25 04:49:09 and it wouldnt take much Mar 25 04:49:20 it would probably have polish if Nokia didn't bail :) Mar 25 04:50:03 dont get me wrong Mar 25 04:50:13 I think in some aspects... its better than android Mar 25 04:51:01 just the little things Mar 25 04:52:04 emulator is already faster Mar 25 04:52:13 but I dont know what the controls are supposed to be Mar 25 04:52:54 since afaik there arent any phones running tizen 2 Mar 25 04:53:32 documentation is already leaps and bounds better Mar 25 04:53:50 I dont know if they've worked out all the power management / services etc etc etc Mar 25 04:53:59 but I;d honestly consider it for my hardware Mar 25 04:55:18 g00s, if you're in the valley, then im sure you saw the tmo announcement Mar 25 04:55:34 phoenix is one in their first lte batch Mar 25 04:55:35 MorkBork: in Phoenix ? Mar 25 04:55:37 yea Mar 25 04:55:48 ah, thx Mar 25 04:55:49 for? Mar 25 04:55:52 lte Mar 25 04:56:02 I've had lte for over a year Mar 25 04:56:07 http://www.tmonews.com/2013/03/t-mobile-3/ Mar 25 04:56:22 im up by the 202/101 Mar 25 04:56:31 i dont know if that means ev cities will see it too, but id hope so Mar 25 04:58:46 MorkBork: i was in the McDowells today looking for flowers ;) Mar 25 04:59:23 i can see them from house Mar 25 04:59:36 me too :) Mar 25 04:59:57 well yea i guess that doesnt say much Mar 25 04:59:59 but they are close Mar 25 04:59:59 haha Mar 25 05:01:20 the mountains keep me sane. i spend a lot of time there Mar 25 05:01:56 i like the bush highway area Mar 25 05:02:00 its just so busy sometimes Mar 25 05:02:09 have you ever been up to bear canyon lake? Mar 25 05:02:14 MorkBork: are there flowers there now ? Mar 25 05:02:17 little ways east of payson Mar 25 05:02:25 yeah, been there Mar 25 05:02:34 i dunno i havent driven down there in a while Mar 25 05:04:21 its definitely a nice place to live Mar 25 05:09:00 anyone used google drive api ? I have questions that are just not answered in the docs Mar 25 05:09:06 seems a bit like a mess Mar 25 05:09:45 StingRay_: did you switch from dropbox to gdrive? Mar 25 05:09:56 well I intend to Mar 25 05:10:11 if google drive will become …. easier Mar 25 05:10:17 but have you looked at docs ? Mar 25 05:10:52 I aint no programmer, but looks like a weby thing wrapped in crap, surrounded by backwards magic Mar 25 05:11:17 and no android api doc/ref use/examples etc Mar 25 05:11:53 you would think something like a direct share link and file permissions walkthrough to do so would be quite popular Mar 25 05:12:43 dropbox api was easy, well documented, nice examples Mar 25 05:12:50 just lacked a major feature Mar 25 05:13:03 sharing without the handler/branding page Mar 25 05:13:03 StingRay_: oh no, what feature ? Mar 25 05:13:19 as in you can't share direct links Mar 25 05:13:25 so thats bollox Mar 25 05:13:29 i was going to point this out http://www.engadget.com/2013/03/21/strategy-analytics-cloud-media-market-share/ Mar 25 05:13:42 google drive is 4th Mar 25 05:13:54 have to know what your users are wanting, i guess Mar 25 05:14:00 well thing is, google/android/acction = gdrive Mar 25 05:14:15 and some1 here told me it can share direct Mar 25 05:14:37 thats a little misleading too Mar 25 05:14:45 if they posed that question on a survey and had checkboxes or something Mar 25 05:14:58 since itunes really isnt the same type of market as something like dropbox or google drive Mar 25 05:15:26 LG has their own cloud O.o Mar 25 05:15:48 and wheres skydrive on that list? Mar 25 05:15:57 microsofts doesnt count all of the sudden? Mar 25 05:16:00 isnt that one super popular? Mar 25 05:16:12 dunno, never heard of it :) Mar 25 05:17:03 for all the shit coming out of ms Mar 25 05:17:18 theres a lot of decent overlooked stuff Mar 25 05:17:27 i.e. their native vpn client supports ikev2 Mar 25 05:17:49 (thankfully strongswan has an android package) Mar 25 05:18:01 g00s: you gonna be using dropbox ? Mar 25 05:18:07 rather than drive api ? Mar 25 05:18:18 StingRay_: possibly Mar 25 05:18:41 i may have to support both though Mar 25 05:19:00 well hopefully you don't need direct links ? Mar 25 05:19:30 StingRay_: can you explain the direct links thing again? i didn't understand Mar 25 05:19:45 as in a url that points to the file Mar 25 05:19:49 whatever it is Mar 25 05:20:33 sounds like filepicker.io Mar 25 05:38:43 well loosing heart a bit with this Mar 25 05:39:18 1.2 days digging and attempting to convert the web examples to android … pissing me of Mar 25 05:39:22 off Mar 25 05:40:08 should i use a listener or an observer on a listview to watch for changes? Mar 25 05:40:21 what changes? Mar 25 05:40:36 they both apply to different things Mar 25 05:40:54 something might get removed or added to the list Mar 25 05:41:35 then you probably want an observer Mar 25 05:41:56 Im not using a database, is that fine? Mar 25 05:42:03 absolutely Mar 25 05:43:56 JakeWharton, ever put fragments in a tab? they lose the ability to update themselves dont they? Mar 25 05:44:17 they shouldn't, no Mar 25 05:45:15 well anyways Im going to try this out, thanks Mar 25 06:00:25 my listview isnt receiving touch events for some reason....i have clickable items inside of it. When i scroll the listview, it wont stop when i tap it. Mar 25 06:00:29 Any suggestions? Mar 25 06:06:21 are the clickable items causing it ? Mar 25 06:15:58 i dont think so...i tested the listview's detection of touch events and it registers them. I just don't know why i cant stop mid scroll Mar 25 06:16:32 no i mean have you taken out your clickable items and tried it with just 1 view that isn't clickable Mar 25 06:16:44 and when you say clickable do you mean they can take focus also ? Mar 25 06:17:03 like a button or a checkbox can Mar 25 06:21:57 i havnt taken out my clickables but i think im going to try that next. And by clickable, yes they can take focus since there are buttons, but i set them to clickable false Mar 25 06:22:17 now that i think about it though Mar 25 06:22:37 im using an expandable Listview with the same child items in my listview, and im able to stop midscroll on touch with that..hmm Mar 25 06:27:10 ugh ill figure it out later, I have class in 8 hours. Thank you very much anyway. Mar 25 06:46:50 eclipse is so annoying Mar 25 07:14:50 "Oracle has lost money every quarter since it acquired Sun for $5.6 billion." \o/ Mar 25 07:22:35 couldn't happen to a nicer company Mar 25 07:25:02 ;) someone once said "don't anthropomorphize larry ellison" Mar 25 07:52:53 MorkBork: i thought the tmo uncarrier plans were more interesting than their lte roll out, actually Mar 25 07:54:16 yea in some ways Mar 25 07:54:27 but there are decent mvno options that still beat it if you dont need tons of data anyway Mar 25 07:54:40 i.e. simplemobile is 40 and then theres a 5% coupon from callingmart Mar 25 07:54:42 500mb though, ho hum Mar 25 07:55:20 i use the 30 monthly4g plan Mar 25 07:55:37 even if i set my n4 to 2g only i can pull 200kbit most places Mar 25 07:56:44 isn't it $30 monthly 5G ? Mar 25 07:57:01 java! the language where you can not get the current IV from a Cipher *facepalm* Mar 25 07:57:35 oh g/G ;) Mar 25 08:01:49 I want to test my iap(with a test account I setup) but its says I need to add a credit card does this mean it going to charge me? Mar 25 08:06:04 does it say it will charge you ? Mar 25 08:06:16 and you will already have a cc with play ? Mar 25 08:08:23 StingRay_: Hey, it gives the impression it will but I'm not sure. Not on this device just got my n7 Mar 25 08:10:40 I guess I'll just chance it and see how it goes. Mar 25 08:13:06 well if it's not live on the market don't see how it could Mar 25 08:13:20 or it may do 0.01 and refund you Mar 25 08:13:38 good point thanks StingRay_ Mar 25 08:19:01 Any ideas on why my eCPM spiked yesterday? - http://screencast.com/t/bPBX7Bs9 Mar 25 08:19:04 (different app) Mar 25 08:19:14 Still low compared to normal people lol Mar 25 08:20:15 what app is that for ? Mar 25 08:20:46 Its a fact app that I made for a friend/client Mar 25 08:20:58 no i mean link Mar 25 08:22:41 sorry lol two secs, my computers playing up Mar 25 08:27:01 I think she's taken it off StingRay_ , something about it keeps crashing I'll need to check my email Mar 25 08:27:23 was just interested, what other apps you released ? Mar 25 08:29:48 Yeah she's taken it off, it kept crashing but I think I know how to fix it. Only apps for other people StingRay_ , this one I'm doing know will be my first on the play store. Mar 25 08:30:10 *now Mar 25 08:30:10 Its a puzzle app Mar 25 08:33:50 anyone got god tutorial for renderscript? Mar 25 08:33:55 *good Mar 25 08:34:03 it may not come from god himself Mar 25 08:35:36 StingRay_: So was it just luck? Some advertising paying a little too much compared to previous days? Mar 25 08:36:00 no idea Mar 25 08:38:37 ah ok no problem StingRay_ :) Mar 25 09:24:24 here is a curly question hopefully someone can point me in the right direction to look. I currently have a toneGenerator.startTone(toneGenerator.TONE_DTMF_1,100); But what i was hoping is that i could do String blah = "TONE_DTMF_" + x; then have a toneGenerator.startTone(toneGenerator.eval(blah),100); Mar 25 09:25:14 obviously eval doesnt work like that here, but im unsure what to search for. anyhelp greatly appreciated. Mar 25 09:34:37 ozeraser: if you really need to pass in the x as a string (what in most cases is pretty bad), store all tones in a Map, so you can just use Mar 25 09:35:00 toneGenerator.startTone(mAllTones.get(x), 100); Mar 25 09:35:31 and also to your above mentioned, don't use toneGenerator.TONE_DTMF_1 but ToneGenerator.TONE_DTMF_1 (call the constant on the class and NOT the object) Mar 25 09:37:05 but most of the times you can fix, that you don't get an String x in there, but already the right integer Mar 25 09:42:52 timroes: only 294 people in here … soon its going to be just you, me, and a few others :) Mar 25 09:44:05 has it been more already? :D Mar 25 09:44:18 used to be 600-700 Mar 25 09:44:28 its been going down steadily though Mar 25 09:45:04 perhaps ppl are getting better? :D Mar 25 09:45:15 perhaps Mar 25 09:45:44 which can only mean: iphone devs never get better XD Mar 25 09:47:30 na don't know but perhaps bad time at the moment for devs being online? Mar 25 09:47:33 its night in US? Mar 25 09:47:48 and still pretty morning in most around europe Mar 25 09:47:50 quarter to 6am EST Mar 25 09:48:33 10:45 here (GMT+1) Mar 25 09:48:43 so MET Mar 25 09:48:49 or whatever the name of this timezone is :D Mar 25 09:49:01 CET* Mar 25 09:56:15 thx for that timroes Mar 25 10:07:32 Hello guys! Can anyone suggest good architecture for module of android application which should work with web api (rest api) and interaction with this module? Mar 25 10:09:50 how do I take a picture with the emulator? I've created a basic camera app, launched the intent with ActionImageCapture and the built-in camera app opens - all fine there. But the camera button seems to be inactive and nothing happens when I click it. Tried other buttons as well with no luck. Any ideas what's wrong? Mar 25 10:11:32 anyone around who has developed an app that uses the camera? Mar 25 10:17:32 hi, how can i get the current api level? i use this code "int ver = android.provider.Settings.System.getInt(this.getContentResolver(), android.provider.Settings.System.SYS_PROP_SETTING_VERSION);" but get "SettingsNotFoundException" Mar 25 10:18:13 Build.VERSION.SDK_INT? Mar 25 10:19:08 http://developer.android.com/reference/android/os/Build.VERSION.html#SDK_INT Mar 25 10:19:46 and please compare against Build.VERSION_CODES and not integers by hand Mar 25 10:20:31 thx timroes ~ lemme try Mar 25 10:21:06 After I've added widget to home screen onReceive is not reached. If I launch the app again from Eclipse the already made widget starts working. Any ideas? AppWidgetProvider here: http://pastebin.com/aXsB9sbq and the configure class here: http://pastebin.com/Ps36pVFY Mar 25 10:23:26 hi Mar 25 10:24:08 any idea why a background (via xml drawable) can't be match the width of a child elment? Mar 25 10:24:25 it's always as big as the png from the drawable (repeat bitmap) Mar 25 10:25:09 how do I take a picture with the emulator? I've created a basic camera app, launched the intent with ActionImageCapture and the built-in camera app opens - all fine there. But the camera button seems to be inactive and nothing happens when I click it. Tried other buttons as well with no luck. Running the API level 14 emulator. Any ideas what's wrong? Mar 25 10:31:29 hm, works fine with API level 12 emulator... Mar 25 10:39:33 Hi, does anyone have some knowledge of sending UDP packets? Mar 25 10:41:13 Need to send a UDP packet via eth0 to broadcast mac FF:FF:FF:FF:FF:FF, but DatagramPacket doesn't allow me to choose the macaddress or the interface Mar 25 10:42:12 osteenbergen: because UDP is layer 4 Mar 25 10:42:15 based on ip Mar 25 10:42:33 so ofc you specify IP adress and not mac address Mar 25 10:43:07 So I would need the NDK so send a message on layer 2/3? Mar 25 10:44:58 osteenbergen: i don';t know of an SDK version to send ethernet packages directly (at least not without root) Mar 25 10:45:33 root isn't a problem :) Mar 25 10:46:06 then you have anregular linux system. somethign inside proc will give you access to the network directly Mar 25 10:46:37 timroes, thanks will google for some low-level information Mar 25 10:47:13 http://stackoverflow.com/questions/3574036/java-library-for-raw-ethernet might be a help Mar 25 10:47:17 perhaps this works for android Mar 25 10:50:27 timroes, thanks Mar 25 10:50:34 looks like onUpdate isnt called when I do saveWidgetButtons on line 36 here: http://pastebin.com/Ps36pVFY Mar 25 10:50:37 Any ideas? Mar 25 10:50:53 onReceive is Mar 25 10:56:38 I think maybe this is the same problem: http://stackoverflow.com/questions/3818545/how-do-i-force-an-update-in-a-configuration-activity Mar 25 11:06:09 Hello guys! Can anyone suggest good architecture for module of android application which should work with web api (rest api) and interaction with this module? Mar 25 11:11:18 so the new android contextual listview paradigm is to have a button on the end of each list item that spawns a context menu, is that right? Mar 25 11:12:30 anyone got tutorial for renderscript? Mar 25 11:25:47 Are there any good examples of turning a spinner into an edittext for search? I'm looking for a way to select a location in my app, and I was thinking that the currently set location could be shown in a spinner together with previously used locations. Clicking a search icon would have a similar effect as the ActionBar search which "fills out" when started. Mar 25 11:27:56 Generally interested in if there are good examples on how to select a location in an app (searching and setting a fixed location or selecting GPS). Google Maps works pretty good, but they aren't showing an "already set" location (as it would appear in a configuration screen). Using an EditText directly to show a set location seems a bit too "mutable". Mar 25 11:44:34 Hi Everybody! Mar 25 11:49:59 Hi Dr. Nick! Mar 25 11:51:12 anyone got any experience with rendersript? Mar 25 11:52:39 capella:-) Mar 25 11:53:15 heh ... Can't get that Simpsons voice out of my head :D Mar 25 11:53:56 does anyone have any links to resources for the new ics style context menus? (e.g. the context menu that appears in the new music player app) Mar 25 11:58:19 Hello guys! Can anyone suggest good architecture for module of android application which should work with web api (rest api) and interaction with this module? Mar 25 11:58:49 i am not sure if I understand your question right, but you want some REST library? Mar 25 12:01:03 Anyone has an idea why my samsung galaxy s2 dropping calls altought i changed few ROMS ? Mar 25 12:04:05 Nighthawk``: go ask in #android-root Mar 25 12:04:17 thank you. Mar 25 12:05:21 np gl Mar 25 12:24:22 timroes: no, architecture to use it Mar 25 12:24:51 have you looked at that: https://www.youtube.com/watch?v=xHXn3Kg2IQE ? Mar 25 12:25:15 no :( Mar 25 12:25:29 might help you :) Mar 25 12:25:35 (and maybe not, you never know) Mar 25 12:26:16 thanks, i think it is what i need. Mar 25 12:31:28 timroes, it still says 'enmarco' instead of 'marco' i'm not sure why could it be to do with the 'Locale'? http://pastebin.com/KbhKEDAM Mar 25 12:31:40 coco89: could be Mar 25 12:31:58 don't know what exactly createString creates Mar 25 12:32:09 i just wonder why there is no opposite method to read it back Mar 25 12:32:33 yh Mar 25 12:33:09 eh what method exactly did you use? Mar 25 12:33:14 to create it Mar 25 12:33:20 createMime? Mar 25 12:35:07 timroes, I used the create record example they had in the documents http://pastebin.com/usnLbV8z Mar 25 12:35:40 ah yeah ofc you write the language to the record so yeah it will be there ofc :) Mar 25 12:35:59 line 107 you copy over the language string (as bytes) Mar 25 12:36:13 just modify that method so you won't copy the language to it, if you don't need it Mar 25 12:36:55 ah okay so delete it right Mar 25 12:37:22 okay will write another tag and test it out :) Mar 25 12:37:31 yeah and look that the byte length fit Mar 25 12:37:36 so not just delte 107 Mar 25 12:37:59 but modify the whole method that it only will write the string Mar 25 12:38:11 and still, if you don't really need messages, just identifiers or such, i would consider using an url :) Mar 25 12:38:43 e.g. i use for my tests myapp://1231-asd123-1-23123 (where the url is an UUID that i need. I actually don't need text on the nfc tag itself) Mar 25 12:39:00 but you can also do stuff like Mar 25 12:39:14 myapp://text/A%20Message%20Url%20Encoded Mar 25 12:39:22 and urls are somewhat easier to handle Mar 25 12:40:27 timroes, I will definitely use a URL. What do you tell android to do with it once it gets the URL? As in does it already know to open 'myapp'? Mar 25 12:40:45 hello dudes Mar 25 12:40:59 if i leave my application for a long time and resume it , it crashes Mar 25 12:41:18 how can i catch the error? Mar 25 12:42:35 coco89: use intent filters like for normal urls Mar 25 12:42:51 ah okay Mar 25 12:43:36 http://developer.android.com/guide/topics/connectivity/nfc/nfc.html#filtering-intents Mar 25 12:43:53 use the one under ACTION_NDEF_DSICVOERED described and put in an to the intent filter Mar 25 12:44:43 you can also add an Android Application Record to the tag, that descibes the package name of your app Mar 25 12:44:58 so on newer android devices it will alwsays start this app, or open the play store for that app if not installed Mar 25 12:45:06 its an addition to the url Mar 25 12:45:19 old devices will jut filter the URL, newer once also if its not installed Mar 25 12:48:04 timroes, got it thanks! :D I will definitely be using a URI as it's what I'd need rather than a string but I just wanted to be able to get a string to show so I know what's going on exactly Mar 25 12:48:44 I'm still not sure how to modify that method because i dont' know what is happening to be honest, what do I keep and take out etc Mar 25 12:49:09 i'm guessing this line should be taken out too byte[] langBytes = locale.getLanguage().getBytes(Charset.forName("US-ASCII")); Mar 25 12:49:09 ? Mar 25 12:49:26 coco89: that is really more a java question, that method doesn't contain anythin android specific Mar 25 12:49:31 (or more or less not) Mar 25 12:49:38 timroes, ah okay Mar 25 12:49:39 ;) Mar 25 12:49:40 cool Mar 25 12:49:42 so thats more a question of learning basic java :P Mar 25 12:49:49 and i am now away, meeting here :) Mar 25 12:50:05 timroes|afk, thanks for your help! Mar 25 12:50:12 you're welcome Mar 25 13:01:05 hi guys, hopefully you can help, or direct my somewhere else. Someone bought my app and has emailed asking if I can refund it. When I go into my checkout account, the order status is at chargeable, so the option to refund money is greyed out just now. Will the "Cancel entire order" button do the same thing as refunding them, will it stop them from being charged, or is it going to cause... Mar 25 13:01:06 ...problems as the order isn't complete yet? Mar 25 13:11:53 Amphoras: assumption(!): i would say cancel while its still chargeable won't charge it, as soon as it has been charged you can refund it Mar 25 13:13:09 timroes|afk: thanks, I'll give it a try Mar 25 13:13:41 i guess that process has already tested enough, so you won't bring the system in some inconsistent states :) Mar 25 13:13:57 stardard CC practice is it takes 3 days to settle, io you cancle before that time then the CC is not charged Mar 25 13:18:13 ok that seems to have worked ok, thanks again Mar 25 13:18:58 hi. how can i keep the option menu items stacking on top of each other? Mar 25 13:22:08 anyone have the february payout report yet ? Mar 25 13:37:18 When i enable gps on device and start google maps - Search for GPS appears in title bar. When i start my test app which just read last known location this "Search for GPS" not appears. What should i do to force it? Mar 25 13:38:25 xgear: request location updates. Mar 25 13:38:34 xgear: understand what is happening. You're not "forcing it." Mar 25 13:38:57 xgear: calling getLastKnownLocation just asks the location manager to give you the last known location that it reported to ANYONE. Since boot. Which may be nothing/nobody and thus may be null. Mar 25 13:39:38 if you're trying to figure out the user's location, I'd recommend using getLastKnownLocation and checking the date (if it's not null) to see if it's still reasonably valid. If not, fetch the location yourself (with valid timeout logic, etc) Mar 25 13:40:26 Can you suggest normal time delay for requestLocationUpdates ? Mar 25 13:41:35 personally, i woudl be bored and woudl swap to other application after 15 seconds Mar 25 13:41:42 *would Mar 25 13:42:22 yeah, give it no more than 30 seconds at most, and only if having a location is actually required for the operation of your app. Also give the user to specify their location manually. Mar 25 13:42:34 *give the user a chance to specify Mar 25 13:42:50 yawn Mar 25 13:43:09 and suggest locations based on outdated previous known locations Mar 25 13:43:20 there is big chance user is still in same place Mar 25 13:43:24 i just want to know user current location Mar 25 13:44:06 xgear: you've read http://developer.android.com/guide/topics/location/strategies.html ? Mar 25 13:44:12 yes Mar 25 13:45:09 so i just need current location for nearby search Mar 25 13:45:30 how nearby is nearby? Mar 25 13:45:46 you are searching stores around a user (or similiar stuff like that)? Mar 25 13:46:08 Has anyone in here used ABS with a searchview? When I try to implement it, I get build errors. Mar 25 13:47:02 around the user Mar 25 13:47:34 xgear: because if its like searching a store in near distance, I wouldn't even bother with turning on GPS but take last known position and approximate distance Mar 25 13:47:48 would be enough and don't bother the user with an icon and doesn't consume so much power Mar 25 13:48:05 09:45:36 < timroes|afk> how nearby is nearby? Mar 25 13:48:08 09:47:07 < xgear> around the user Mar 25 13:48:11 >_< Mar 25 13:48:23 yes, we're pretty sure you want something near the user. the question is HOW NEAR. Mar 25 13:48:25 for that kind of bad questions i asked, that answer was valid :D Mar 25 13:48:58 is it battery save turn on request Location Update in on resume and turn off in om pause? Mar 25 13:49:08 .... what? Mar 25 13:49:19 wow that sentense Mar 25 13:49:24 :D Mar 25 13:49:38 .... yes, request location updates when necessary in onStart and abandon it in onStop. Mar 25 13:50:01 also, only request location updates until you have a location of appropriate accuracy. Don't just run the GPS continuously. Mar 25 13:51:04 Here is what i have now: http://pastebin.com/vxtEiiaQ Mar 25 13:59:51 ah nvm, it was the drawable Mar 25 14:00:11 stupid vague error messages Mar 25 14:09:39 morning Mar 25 14:11:28 morning? it 15:11! Mar 25 14:12:29 Expro: don't be silly it's only 14:12 Mar 25 14:12:37 kaneda^: good morning Mar 25 14:12:44 good morning Ankhwatcher Mar 25 14:12:57 it's 10:12 here ;p Mar 25 14:13:33 then im lucky, its only 1 hour till 16:00 Mar 25 14:14:30 not sure how that makes you lucky ;p Mar 25 14:15:48 1 hour of work more and im free... Mar 25 14:15:59 you could quit and be free now Mar 25 14:16:02 to go back to university of technology to sit here -_- Mar 25 14:16:07 Chainfire, dont think i dont consider it Mar 25 14:16:46 its healthy attitude Mar 25 14:18:53 well, let me renew my question from some time ago: does anyone got any experience/good tutorials for renderscript? Mar 25 14:27:36 Hello Mar 25 14:27:37 I've a device connected to my computer that is being detected by adb. now, I want to deploy an application I'm doing directly from eclipse, and it says "Installing foo.apk...", "Success!", "/Foo/bin/foo.apk installed on device", "Done!" Mar 25 14:27:42 but nothing is installed.. Mar 25 14:27:49 (at least it doesn't appear in the dashboard) Mar 25 14:27:50 any idea? Mar 25 14:28:21 are you an ios user? Mar 25 14:28:32 nop, Linux Mar 25 14:28:33 it's installed. You didn't actually put anything in your manifest that makes it show up for the launcher Mar 25 14:28:45 lov, or he doenst realize that you dont get a launcher shortcut Mar 25 14:28:51 Mattx, have you checked the app drawer? Mar 25 14:28:59 let me see Mar 25 14:29:10 canadiancow: $5 on 'fucked up the manifest' Mar 25 14:29:15 no Mar 25 14:29:25 launcher != app drawer Mar 25 14:29:25 lol Mar 25 14:29:33 * lov rolls his eyes Mar 25 14:29:51 thanks for the info, i never knew that :) Mar 25 14:29:53 the manifest is auto-generated by adt Mar 25 14:30:14 ive seen too many ios users not realize that it doesnt just show up on one of their launcher screens Mar 25 14:30:38 canadiancow: I'm aware. I also know that users can mess that up and then "WHERE SI TEH PROGRM!?" Mar 25 14:30:48 i guess Mar 25 14:31:05 especially if they're "following" "a tutorial" from "somewhere on the internet I guess" Mar 25 14:31:20 oh god Mar 25 14:32:00 mooooooooooooo Mar 25 14:32:04 morning lov Mar 25 14:32:13 ok, the android manifest is pretty... empty u.u Mar 25 14:32:24 * canadiancow sends lov $5 Mar 25 14:32:34 but!! Mar 25 14:32:40 sw8 Mar 25 14:32:47 good morning kaneda^ Mar 25 14:33:00 I don't know what it should have... here is what was autogenerated: http://paste.kde.org/706832 Mar 25 14:33:05 it's probably wrong :) Mar 25 14:33:09 i cant decide if i should read that a sweight or swinfinity Mar 25 14:33:15 yep! Mar 25 14:33:24 Mattx: you need an intent filter. Mar 25 14:33:46 Mattx: add an intent filter with ACTION_MAIN and CATEGORY_LAUNCHER Mar 25 14:34:08 any idea when spring framework 1.0.2 arrives? Mar 25 14:34:09 why on Earth doesn't it create one automatically? Mar 25 14:34:16 there is an issue with the httpclient and the rest template Mar 25 14:34:33 Mattx: it generally does for your 'hello world' app, if you tell it to make an activity. Mar 25 14:34:51 if you make an activity later on, that won't necessarily happen. Mar 25 14:35:17 :) Mar 25 14:37:26 ok, it works! thanks guys Mar 25 14:37:33 np Mar 25 14:38:20 btw, have you managed to use android from virtualbox instead of the sdk's emulators? Mar 25 14:38:56 I've downloaded a live-cd (or whatever it's called) x86 android image but it's not detected by adb Mar 25 14:54:02 is there any way to figure out if a device supports ENCODING_PCM_8BIT Mar 25 15:23:02 Hello guys, is there a way to open external SD card for all devices? HTC seems to follow the right android path design, but LG and Samsung has external_sd for removable sd card. Thank you. Mar 25 15:27:09 It would be rediculous to create special functions for each brand to open the real SD card, so I was hoping someone else wrote a function openSdForAllDevices()... Mar 25 15:32:06 Number5: Environment.getExternalStorageDirectory() Mar 25 15:32:32 hard coded paths are always bad idea Mar 25 15:32:51 Environment.getExternalStorageDirectory() Mar 25 15:32:57 bakingbread, that's exactly the problem, for samsung and lg it refers to internal flash memory and not the external removable SD card. Mar 25 15:32:58 ooops beat me Mar 25 15:34:35 My app downloads images from my website, which will be temporarely saved on the device, but depending on how much items it will be downloaded, the storage could be full and that's not nice to the users... Mar 25 15:34:40 for hard coded I use |/storage| ... on my GS3 it gives me sdcard, extSdCard, and my USB drives Mar 25 15:34:54 how do you prevent proguard from nuking a method that's only used by an animator? Mar 25 15:34:58 i.e. through reflection :( Mar 25 15:35:15 Use getExternalStorageDirectory.. Mar 25 15:35:22 You don't have to worry about whether or not it's removable Mar 25 15:35:40 SimonVT, why? Mar 25 15:35:53 Why do you? Mar 25 15:36:51 getExternalStorageDirectory() gets me to my SdCard, but won't include mu removable extSdCard Mar 25 15:37:02 SimonVT, my philosophy is that internal flash memory are for the installed apps, downloaded images are for external SD leaving internal flash without rubbish Mar 25 15:37:31 My device has no sd card at all.. Kind of ruins your philosophy Mar 25 15:37:47 SimonVT, that's a good one. Mar 25 15:38:01 neither does mine Mar 25 15:38:30 +1 Mar 25 15:38:59 the nexus devices have not had one since... did the S have one? Mar 25 15:39:04 Maybe if the user wants the images to be saved on a SD card, he/she has to do it through the settings. I think that's a better idea, what do you think? Mar 25 15:39:08 If it has both external storage and an additional sd card, you can assume the internal flash has enough space to actually be used as external storage Mar 25 15:39:08 i have one of them fancy internal XD cards Mar 25 15:39:51 This way I get the path from a file explorer. Mar 25 15:39:55 tl;dr use getExternalStorageDirectory Mar 25 15:40:28 Number5: I think you will not find an easy solution which will handle Samsung crapware Mar 25 15:40:38 Ok, getExternalStorageDirectory() with an extra setting option seems to be the solution. Mar 25 15:40:57 For simple image caching, you don't have a case worth spending time trying to figure out how many types of external storage a device has Mar 25 15:41:00 Number5: you can try checking if card is removable and even parse /proc/mounts Mar 25 15:41:37 bakingbread, that's a hacking method I don't like. Mar 25 15:41:55 That's pretty much the way to do it Mar 25 15:41:57 SimonVT, thnx for your advise, I take it with me. Mar 25 15:42:22 bakingbread, you too thank you. Mar 25 15:43:17 Number5: well it's hacking but if /proc/mount has /mnt/sdcard then we can be pretty sure where sdcard is Mar 25 15:44:00 No necessarily Mar 25 15:44:50 On a gnexus the external storage is still /mnt/sdcard Mar 25 15:47:06 My asus tablet also has its external storage on /sdcard.. It has a slot for an sd card as well, dunno where that would be mounted Mar 25 15:53:14 sup SimonVT Mar 25 15:56:46 I have few apps and they all need same jars. how can I make them available without adding to all apks ? Mar 25 15:56:54 I feel uses-library should let apk developer share their shared libraries (jars). it seems google is controlling what can be shared. is that right ? Mar 25 15:58:03 like java classpath is there equivalent on android ? Mar 25 15:58:26 Not much :) Mar 25 15:58:31 your life will be much simpler if you just duplicate them Mar 25 15:58:51 mms_: what happens if you put the jars into the libs folder of a library project and add that? Mar 25 15:59:10 You don't necessarily want all apps to use the same version of a library Mar 25 15:59:24 Ankhwatcher: I want to share jars between apks without having to redundantly add jar to each apk Mar 25 15:59:39 SimonVT: but what if I want to ? Mar 25 15:59:52 mms_: if that's really what you want to do then try what I just suggested Mar 25 16:00:04 google maps can release things at its will Mar 25 16:00:10 use DexClassLoader Mar 25 16:00:40 Then use the same version in your app Mar 25 16:00:43 Don't force it on others Mar 25 16:00:53 Ankhwatcher: I am not sure what you mean libs folder of library project. can you point me to url ? it seems you suggesting that for each apk in its libs folder add the jar. Mar 25 16:01:22 mms_: he's not solving your problem, you'll still end up with every jar in every apk Mar 25 16:02:19 JakeWharton: exactly. what you suggesting probably will need me to code my android components to load the shared classes via DexClassLoader ? can it be specified in manifest instead ? Mar 25 16:02:30 no, you have to do it all yourself Mar 25 16:03:13 JakeWharton: thats not ideal...google has not given way for us. Its distributing its google maps but not letting developer do similar things. why ? Mar 25 16:03:44 google maps updates through the play store Mar 25 16:04:01 My apks also i want to distribute through playstore Mar 25 16:04:38 but I would like to keep the framework separate Mar 25 16:05:36 If I have 10 customers to whom I install framework manually and then tell them to go ahead and get apps from appstore I want that option Mar 25 16:05:40 How do I update my widget from a configuration activity? I think maybe this guy got the same problem, but Im not sure thats a good solution: http://stackoverflow.com/questions/3818545/how-do-i-force-an-update-in-a-configuration-activity Mar 25 16:05:43 so distribute two apks and pull in classes from the other one using DexClassLoader Mar 25 16:06:23 while we're on DexClassLoader, I've never used it, but say you manually load class A from package, and that class refers to class B from the same package, will that work ? (I assume so, but ...) Mar 25 16:06:34 JakeWharton: again its programtic usage Mar 25 16:06:48 Chainfire: I think so, since it loads the whole dex Mar 25 16:06:49 Chainfire: nope, you have to load B yourself first Mar 25 16:06:54 oh maybe not Mar 25 16:07:00 Bascially there should have java classpath facility Mar 25 16:07:03 period Mar 25 16:07:08 well if they're in the same dex it should work, yeah Mar 25 16:07:21 so all apks can refer to it as fallback if it cannot find it in its apk Mar 25 16:07:29 mms_: sounds like a great way to introduce security vulnerabilities Mar 25 16:07:46 yay! Mar 25 16:07:48 JakeWharton: is java classpath vulnerability ? Mar 25 16:07:49 Shouldnt line 36 here be enough to update the widget? http://pastebin.com/Ps36pVFY Mar 25 16:07:50 innovation Mar 25 16:08:07 wouldn't all classes from the same apk be in the same dex? or is that a 99% assumption Mar 25 16:08:13 java classpath or path concept has been around for ages now Mar 25 16:08:22 mms_: yes. that's why applications ship shaded jars that have all their dependencies embedded Mar 25 16:08:40 JakeWharton: I am talking fallback Mar 25 16:08:53 JakeWharton: if one is worried he can ship it in apk Mar 25 16:09:23 some are worried about framework blotting the size of apks Mar 25 16:09:25 mms_: which means you still always have to ship it in the apk Mar 25 16:09:29 to be on the safe size Mar 25 16:09:34 *side Mar 25 16:09:41 MDijkstra: no man you not getting the point Mar 25 16:09:44 the only people worried about the size of apks is Facebook Mar 25 16:09:50 and they just hack dalvik to get around it Mar 25 16:09:58 MDijkstra: just refer to uses-library from google site Mar 25 16:10:43 JakeWharton: Every one is worried its just they curently are not shipping serious enough apps which has loads of size of off Mar 25 16:10:53 of app I mean Mar 25 16:11:35 mms_: I'm perfectly getting the point, is currently not nearly enough to prevent dependency hell when provided to third-party developers Mar 25 16:11:38 If I am building app which is 30 to 50 MB in size which is basically framework and then I have apks dependent on them why would I make each apk 50zmb Mar 25 16:12:24 MDijkstra: just cannot accept that google did not provide classpath facility Mar 25 16:12:40 need their reasoning for it Mar 25 16:12:46 Hey guys, I'm running into a weird error. On my device, my surfaceView scales properly Mar 25 16:12:57 But on devices running versions < 3.0, it scales to full screen Mar 25 16:12:59 all of the vms and earlier languages have this concept Mar 25 16:13:36 No idea why it is doing this though Mar 25 16:13:45 mms_: because the classpath does not solve fundamental problems with things like versioning and sharing libraries between multiple third parties Mar 25 16:13:56 MDijkstra: so you think some how some one needs to pay google to let developer use the facility that it uses for its distribution of things like google maps framework ? Mar 25 16:14:18 MDijkstra: classpath is fallback Mar 25 16:14:48 mms_: that doesn't make sense, if your app won't work if the fallback fails, noone is going to use it Mar 25 16:14:51 MDijkstra: like javascript which has its scoping like inline, script ,external etc....same things can be easily be done Mar 25 16:15:40 MDijkstra: if your apk libs do not work it can fall back to shared lib if that fails you already failed in first chance at least you had secound chace and also this can be made optionsal Mar 25 16:16:00 you can mark the apk to strictly fail if apk libs fails and not fallback Mar 25 16:16:01 mms_: 'if your apk libs do not work', ie if they're too big to provide? Mar 25 16:16:20 MDijkstra: yes they are big Mar 25 16:16:22 then you should just gamble with the fallback? Mar 25 16:16:35 I'd rather have a user download 50mb than to have the app maybe fail Mar 25 16:16:36 MDijkstra: its not gambling...you missing the point... Mar 25 16:17:08 mms_: no, the 'fallback' you are mentioning will only work when everyone plays along perfectly Mar 25 16:17:10 :/ Mar 25 16:17:20 MDijkstra: its an option you can use it if you like ...if it were gamble other vms and languages would not have used it Mar 25 16:17:30 mms_: the tag will completely and utterly fail in a real-world scenario in its current form Mar 25 16:17:44 just like the classpath will without versioning and the like Mar 25 16:18:07 and library verification using some kind of hashing scheme Mar 25 16:18:20 MDijkstra: I am not talking about just uses-library ...I am talking about classpath....uses-library is currently closest to we can get to feature like classpath Mar 25 16:18:44 MDijkstra: all that can be in manifest Mar 25 16:19:12 java already has such features using java web start Mar 25 16:19:16 sure, it can all be implemented, but you're making it out to be Mar 25 16:19:18 some thing like that Mar 25 16:19:25 'just use classpath and all will be fine' Mar 25 16:19:28 which is just not true Mar 25 16:19:49 MDijkstra: classpath is basic requirement if you want to get sophisticated then go ahead and build those too Mar 25 16:20:03 Hey guys, has anyone found a fix to this issue (without touching the sdk)? http://code.google.com/p/android/issues/detail?id=30730 Mar 25 16:20:06 I am not mixing classpath with versioning Mar 25 16:20:09 mms_: it's not a matter of sophistication, it's a matter of having something that actually works Mar 25 16:20:27 mms_: without the things I mentioned you will have real security problems, and real compatibility problems Mar 25 16:20:32 MDijkstra: java actually work well and older languages too Mar 25 16:20:36 making the thing effectively useless Mar 25 16:20:54 mms_: ie, in your example I could provide a malicious library and inject code in your app Mar 25 16:20:57 trivially Mar 25 16:21:05 I just do not agree since java, c# all solve same stuff Mar 25 16:21:34 MDijkstra: you cannot...if you mark your code to be strick then you are all set Mar 25 16:22:16 if you implement all security features like hashing and all you mentioned then even classpath route can be secured accordintly Mar 25 16:23:02 point it classpath is basic things that google has just missed out and I do not see any reason like security vulnerablity knowing its trusted mechanism over years in all languages Mar 25 16:23:57 same thing can happen to google maps code then Mar 25 16:23:58 Anybody? Mar 25 16:24:15 why distribute that framework as shared lib ? Mar 25 16:24:50 MDijkstra: you getting my argument ? Mar 25 16:27:41 mms_: yes, I just think it's nonsense, you've also just changed position from 'oh, we could add verification if we want to have a sophisticated implementation' to 'we need verification' Mar 25 16:28:24 and the way java does dependency management in jars is pretty much 'let the programmer figure it out' Mar 25 16:28:29 MDijkstra: No have not...I said I want fallback as basic feature...if you need more security implement on top. Mar 25 16:28:59 MDijkstra: java has nice tool like maven then helps in dependency management Mar 25 16:29:28 mms_: yes, which is a hell of a lot more complicated than 'the classpath' you keep talking about Mar 25 16:29:53 MDijkstra: point is make a simple start first....which google android has not... Mar 25 16:30:11 MDijkstra: we can address complex issues with complex things.... Mar 25 16:30:42 mms_: again, and I'm going back to work after this, you can't have a half-broken implementation that just doesn't work because you want to start simple Mar 25 16:31:09 MDijkstra: is java half broken,,,,is c half broken ? Mar 25 16:31:34 they all evolved to address problems... Mar 25 16:31:49 mms_: java does not have to worry about a number of things an android implementation of dependency loading would have to worry about Mar 25 16:31:51 android is just not making note of this simple problem Mar 25 16:32:44 MDijkstra: I agree there might be things I do not know and you either but I do not see why would they block uses-library feature to be used by developers Mar 25 16:33:11 they can use it but developers cannot ! Mar 25 16:33:52 Mar 25 16:34:00 and that's the last I'll say about it :p Mar 25 16:34:58 well google can do it yeah ! Mar 25 16:35:33 android is open source of google play store property ? Mar 25 16:35:39 that's because google are a trusted party and we are not :] Mar 25 16:35:59 I have two android smartphones. I am playing the same 18k tone using the audio API on each of them. When I play the tone on one (a samsung galaxy sII) there is a extra ~1k tone present. When I play the tone on the other phone (an lg-c800) this extra 1k tone is not present (only the 18k tone is there). Why is this? Mar 25 16:36:03 well how about I pay to become trusted party then ? Mar 25 16:36:15 have they made that provision ? Mar 25 16:36:22 Also, is there an android-dev forum? Mar 25 16:37:08 only way out they left is to build custom rom and then use the uses-library feature Mar 25 16:37:37 why is not that way to inject evil then ? Mar 25 16:37:44 why allow custom rom then ? Mar 25 16:38:43 I am going to end here now...cannot take this android limitations.... Mar 25 16:39:09 I lol'd Mar 25 16:40:48 que? Mar 25 16:41:00 * kaneda^ passes out Mar 25 16:42:58 shit Mar 25 16:43:07 we should have offered to let him pay to be a trusted party Mar 25 16:43:16 lol Mar 25 16:44:01 * capella coulda used 'bout tree-fiddy Mar 25 16:44:17 ... what Mar 25 16:44:27 I wonder how the uses-library system works now though Mar 25 16:44:54 are the libraries provided in an apk? Mar 25 16:45:13 should probably check the manifest file of googleservices.apk or something Mar 25 16:53:07 What is the most common practice in regards to start activities and using the activity "stack". Do you guys always call finish() after you start an activity, then overriding onBackPressed? Or do you prefer to let Android make the decisions for onBackPressed by not calling finish() after starting an activity? Mar 25 16:53:36 jdawes: er, what? Mar 25 16:54:27 jdawes, you'd only override that portino of the lifecycle if you need to Mar 25 16:54:36 or that action, rather Mar 25 16:54:44 When you call startActivity(intent), do you call finish() right after it so that the first activity can't be gone back to? Mar 25 16:55:00 jdawes: it depends, but you can also manage the activity stack through intent flags Mar 25 16:55:00 kaneda^: So the default it to not call finish() I suppose? Mar 25 16:55:05 jdawes, no, you can remove it from the stack by using different intent flags Mar 25 16:55:09 jdawes: which is usually more sane Mar 25 16:55:09 what MDijkstra said Mar 25 16:55:31 jdawes, there's no reason to call finish() unless you want your activity to close forever Mar 25 16:55:34 Well I only ask because I go into a bit of a loop when I play around in my app for a bit but then go to the home screen. Mar 25 16:55:38 usually the current activity Mar 25 16:55:48 jdawes, it sounds you need to clear the intent stack at some point Mar 25 16:55:57 or more to the point, use the stack correctly Mar 25 16:56:29 jdawes: you can set a flag that tells android to return to a previous instance of your activity in the stack instead of pushing a new one on top of the stack Mar 25 16:56:31 Fair enough. Mar 25 16:56:40 which is usually how you avoid these problems Mar 25 16:56:54 yeh Mar 25 16:57:09 if you're using something like tabhost/fragments then it's a bit different IIRC Mar 25 16:57:16 I think it's FLAG_CLEAR_TOP Mar 25 16:57:19 but not 100% sure Mar 25 16:57:22 sounds about right Mar 25 16:57:32 So, how does that look when creating the intent? Mar 25 16:57:52 new Intent(this, SomeActivityClass.class, FLAG_CLEAR_TOP) ?? Mar 25 16:58:34 jdawes, Intent t = new Intent(context, class); t.addFlags(flags); Mar 25 16:58:42 something like that Mar 25 16:58:46 intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP) Mar 25 16:58:46 kaneda^: seems to be FLAG_ACTIVITY_CLEAR_TOP Mar 25 16:58:47 btw Mar 25 16:58:52 sure Mar 25 16:58:58 there's a list of ENUMs for you to explore Mar 25 16:59:14 So this stops new activities from creating separate instances of the previous activity? Mar 25 16:59:20 yep Mar 25 16:59:33 Good to know, thank you to you both. Mar 25 16:59:37 np Mar 25 17:00:03 i'm tired of pixel descriptors Mar 25 17:00:06 * kaneda^ goes to sleep Mar 25 17:00:09 helo Mar 25 17:00:13 afternoon Mar 25 17:00:27 i eat null pointer exception if i leave the for some minutes inactive and reopen it Mar 25 17:00:54 ... Mar 25 17:01:14 Parhs, i'm afraid to ask but, what does the stack trace say? Mar 25 17:01:14 tasty, no? Mar 25 17:01:27 why are you afraid? Mar 25 17:02:23 i used adb logcat to see Mar 25 17:02:25 http://pastebin.com/6aeWY8Wc Mar 25 17:02:27 Parhs: you ever see inception? Mar 25 17:02:30 it's kind of like that. Mar 25 17:02:33 He'd have to go deeper, you see. Mar 25 17:02:41 *bwaaaaah* Mar 25 17:02:52 Anyhoo, at gr.com.simple.android.TablesActivity.onCreate(TablesActivity.java:52) Mar 25 17:02:57 there's your problem hoss. Mar 25 17:03:38 i am afraid if line 52 is the method Mar 25 17:03:40 Does anybody know why my SurfaceView is fullscreen on < 3.0 devices, but normal sized on Honeycomb anode above? Mar 25 17:03:42 * kaneda^ presses the android inception button Mar 25 17:03:44 not where it crashes Mar 25 17:03:45 bwaaaaaaaaaaaaaaaaaaah Mar 25 17:03:51 what is inception ? Mar 25 17:04:07 http://www.imdb.com/title/tt1375666/ Mar 25 17:04:18 and yes, that is in fact exactly where it crashes according to the stacktrace Mar 25 17:04:22 what has the movie to do with my case?:) Mar 25 17:04:25 ._. Mar 25 17:04:38 i am going to check it . i have abandoned this project for a month heeh Mar 25 17:04:41 nevermind. Mar 25 17:06:45 for (MyClass clas : classList) { does this crash if classList is nullo ? Mar 25 17:07:07 yes Mar 25 17:07:12 Parhs: Yup. Mar 25 17:07:14 Parhs, probably, given it's a wrapper for an iterator Mar 25 17:07:30 so there should be an extra check ? Mar 25 17:07:34 * lov sighs Mar 25 17:07:36 Parhs: Just initialize it beforehand. classList = new List Mar 25 17:07:44 indeed Mar 25 17:07:51 Parhs: this isn't a problem, you've just had the idea that this is a problem suggested to your subconcious. Mar 25 17:07:55 If it has a size of 0, it won't iterate over it. Mar 25 17:07:58 initialize it ONLY IF IT IS NULL. Mar 25 17:08:35 dudes this list comes from a LruCache . so android kills this cache after a while? Mar 25 17:08:53 probably Mar 25 17:09:24 Does sh.setFixedSize(width, newHeight); not work in Android 2.1-2.3? Mar 25 17:10:15 i'm going to do something horrid. Someone wants me to put a full screen 'loading' dialog in this app.. I'm thinking of just employing some Theme magic to make a DialogFragment appear full-screen.. thoughts? Mar 25 17:10:20 it seems that the problem is there though Mar 25 17:10:50 maybe connection is ? Mar 25 17:10:57 storkme: Just use a regular spinner . . . Mar 25 17:11:15 storkme: Just hearing the words "Fullscreen Loading Dialog" made me cringe Mar 25 17:11:15 is a regular spinner akin to a full screen dialog Mar 25 17:12:12 storkme: Read this article: https://plus.google.com/113735310430199015092/posts/eSCfnyTzFUx Mar 25 17:12:36 Please help people :S. I have this problem where very time I have an orientation change, every fragment in my backstack gets called via onSaveInstanceState. Is this normal? My app ends up crashing because my member variables no longer exist and onSaveInstanceState uses them. Mar 25 17:13:01 i'm well aware that using dialogs is frowned upon, thanks very much for the non-advice. Mar 25 17:13:02 I think it might be related to this issue: http://code.google.com/p/android/issues/detail?id=30730 Mar 25 17:14:36 storkme: Fine, to answer your original question, you could be able to customize a Dialog to be fullscreen Mar 25 17:15:02 storkme: For example, this line: Dialog dialog=new Dialog(this,R.style.Theme_Dark_NoTitleBar_FullScreen) Mar 25 17:16:28 hi ppl Mar 25 17:16:33 xmlns:android="http://schemas.android.com/apk/res/android" Mar 25 17:17:01 my question was why do people put this in RelativeLayouts and such Mar 25 17:20:28 xml namespace they put it in the top node Mar 25 17:20:37 otherwise android:blah does not work Mar 25 17:21:28 what does namespace actualy mean in fact? im not english sorry Mar 25 17:21:49 i know space and name ofcource, but namespace is like string int etc? Mar 25 17:23:05 namespace is like a package Mar 25 17:23:23 I want to send live sound (from microphone) of a device to another device (and to play it on the other), what would be the easiest way to do so? Mar 25 17:23:27 Hi every body Mar 25 17:25:09 Hey guys, does sh.setFixedSize(width, newHeight); Mar 25 17:25:09 not work in Android versions prior to 4.0? Mar 25 17:25:39 what's sh? Mar 25 17:26:05 yeah i seed kaneda Mar 25 17:26:13 seen* Mar 25 17:26:27 Surface HOlder. Mar 25 17:26:33 evanc: Surface Holder, sorry. Mar 25 17:26:35 hmm? Mar 25 17:26:39 BulleTime, you rang? Mar 25 17:26:52 rang? Mar 25 17:26:55 viiralvx: the docs say "Added in API level 1" Mar 25 17:27:05 so I would assume it works prior to 4.0 Mar 25 17:27:18 yeah i seed kaneda Mar 25 17:27:20 evanc: Hmmm, the weird thing is, it's working in 4.0, but people who run my app in 2.3 don't get the correct sized video. Mar 25 17:27:23 haha Mar 25 17:27:34 noo i mean seeN lol Mar 25 17:27:43 im not seed haha Mar 25 17:28:32 I'm going to retry it using DisplayMetrics Mar 25 17:31:26 Could someone please just tell me if every fragment in the FragmentManager back stack will have onSaveInstanceState called when the activity is destroyed? Is this behaviour normal? Mar 25 17:40:14 did anyone successfully used google play subscriptions yet? Mar 25 17:42:39 when using an ObjectAnimator, are the property names the same as the XML properties of the view? Mar 25 17:45:03 jdawes: they're the names of the get/set methods Mar 25 17:45:13 so if a View has a setAlpha() and a getAlpha(), the name of the property is "alpha" Mar 25 17:45:18 Anyone here using the new gradle android plugin? It's having some issues with DX. Dex emmit warnings regarding log4j classes that were compiled for an old .class file format, and because it prints the warning to stderr, the plugin think it's an error and abort. Recompiling log4j would solve, but I would avoid that Mar 25 17:45:44 Hello. Any hints on how to write live video streaming app? Mar 25 17:46:10 romainguy: There is a setLayoutParams, I figure it's a bit more complicated with that though, am I correct? Mar 25 17:46:28 romainguy: I want to change the height of a layout in an animation. Mar 25 17:46:32 you could write a custom evaluator for that Mar 25 17:46:37 but do *not* animate layout params Mar 25 17:46:40 it's way too expensive Mar 25 17:47:04 Yeah, that was something I was looking into as well. Mar 25 17:47:10 Pricey stuff. Mar 25 17:52:45 Hello, how can i draw the "symbol of enter" in a button? Mar 25 17:53:55 uragano2: yes Mar 25 17:54:00 oh, you asked "how" Mar 25 17:59:52 evanc: yes, google isn't helping :S Mar 25 18:01:24 romainguy: Could you give me some info on the evaluators you suggested earlier? I tried implementing one now but it doesn't seem to work at all. Mar 25 18:02:03 romainguy: Here's the class, I'm only trying to change the height of the layout. http://pastebin.com/gY7Tn0HK Mar 25 18:02:16 Hey guys, any idea why swiping right doesn't work for me? I'm using http://pastebin.com/SFwFxHab and I'm setting the ontouchlistener with this and overriding the swipe method Mar 25 18:02:23 any swiping to be exact* Mar 25 18:02:48 romainguy: Here's the call for the animation, http://pastebin.com/7QFG8mvb. Mar 25 18:03:28 Of course, the - keyboardHeight is changed to "+ keyboardHeight" apporpriately when needed. Mar 25 18:05:34 Does anyone have experience with ValueAnimators and custom evaluators? Mar 25 18:12:08 New question, is there a generic way to change the height of any view? Does ViewGroup.LayoutParams do the trick for everything? Mar 25 18:12:24 Hey guys. I'm watching the newboston videos and I'm not 100% sure what Intent is supposed to be Mar 25 18:12:31 I understand Activities Mar 25 18:12:39 they're basically just what is displayed Mar 25 18:13:01 the activity that the user is doing Mar 25 18:13:08 but how does intent tie into that? Mar 25 18:13:54 Some code I'm supposed to maintain seems to be using intents as a sort of async callback for a http call Mar 25 18:14:23 there is more to it than this, but you could think of an intent as a link between two activities. like a hyperlink between two web servers. Mar 25 18:14:33 usually they are meant to start other activities or services Mar 25 18:16:13 so maybe the first activity fires of this intent, gets a result from the server, and then starts up a second activity based on that result? Mar 25 18:16:33 I have button.setOnClickListener(new OnClickListener() { Intent n = new Intent(this, Spr.class); it won't work because it treats this as View.OnClickListener. Anyway around this? Mar 25 18:16:36 no, that was just an analogy, servers are not involved Mar 25 18:16:49 well, don't have to be...but might be in my case? Mar 25 18:16:50 An intent describes an action/operation Mar 25 18:17:07 ProgramMax: but you could make a network request using an AsyncTask then launch a second activity by firing off an intent Mar 25 18:17:53 so maybe a better way for me to understand intent is...the user is doing some activity Mar 25 18:17:56 they interact with it Mar 25 18:18:06 and when they do, they intend to do something Mar 25 18:18:22 like I'm intending to save my game or I'm intending to view the submenu Mar 25 18:18:26 is that closer? Mar 25 18:18:57 they are like messages between activities and services Mar 25 18:19:26 k Mar 25 18:19:28 if you needed to use a service for some reason to save a game you might comminucate with this service by an intent Mar 25 18:19:28 http://developer.android.com/guide/components/intents-filters.html Mar 25 18:19:29 Read this Mar 25 18:19:30 services? Mar 25 18:19:33 What's up with SurfaceHolders not being consistent throughout Android versions? Mar 25 18:19:34 thank you, Simon Mar 25 18:21:05 so I'm using monkeyrunner to test my app…Its so brutal. If you want to feel like your app is full of bugs, use monkeyrunner. Anyway, its mostly fragment lifecycle stuff. If fragment.getActivity() returns null, does that mean I'm call it after the fragment was detached or are there other reasons that can happen? Mar 25 18:21:41 After it's detached or before it's attached Mar 25 18:22:36 I'm pretty sure I dont call anything before createView(), it would be attached before createView gets called, right? Mar 25 18:23:10 Yes Mar 25 18:23:43 Might also just be some strangeness about monkeyrunner, it's known to cause non-existent bugs Mar 25 18:24:14 wow really? Well that greatly diminishes its usefulness... Mar 25 18:24:33 My app uses a WebView and when I test it in the emulator I get a "Web page not available" error message...as if the emulated device cannot access the web. I tested this yesterday and it was working fine. My internet connection is fine. Any ideas on what could be causing this? Mar 25 18:25:15 williehurl9: can you use the emulator browser app to hit the endpoint? Mar 25 18:25:38 jayd16: i'll try that now Mar 25 18:26:42 jayd16: yes Mar 25 18:27:21 Hey guys, so I'm having some trouble. When I'm converting from bytes to a string the Toast.makeText outputs the Locale or whatever it is so if the string was 'marco' it would instead show 'enmarco'. Here is the code. http://pastebin.com/hX7MffNB . I've attempted to modify it by taking away anything relevant to 'langBytes' and now it's complaining about the System.arraycopy() because I've obviously Mar 25 18:27:21 taken away an argument. Here is the modified method http://pastebin.com/yZJnQBFL . Could someone please help figure out how I could fix this problem? Mar 25 18:27:35 williehurl9: anything interesting in logcat? Mar 25 18:28:00 jayd16: i'll look now Mar 25 18:31:25 jayd16: the only thing that looks negative is: "NOTE: attach of thread 'Binder Thread #3' failed" Mar 25 18:31:53 anyone? Mar 25 18:33:00 jayd16: hmmm, now a new message popped up: "request time failed: java.net.SocketException: Address family not supported by protocol" But I'm using a normal "http://" request Mar 25 18:35:20 williehurl9: weird…never seen that. Not really sure what to say besides try googling around Mar 25 18:35:34 anyone? Mar 25 18:37:34 what's the complain in your changed version? Mar 25 18:37:49 Is it possible that getIntent() is storing static data? and everytime i end up with the same extras? Mar 25 18:37:58 (btw you will still have one char in front of your string, since you still put a char if the text is utf-8 or urf-16 encoded in front of it) Mar 25 18:37:58 because that seems like what's happening :$ Mar 25 18:38:08 you really need to take everything out of the byte array when reading again, what you put into it Mar 25 18:39:32 Bear10: no. What problems are you seeing? Mar 25 18:39:59 evanc, I'm doing a getIntent().getExtras("MY_VARIABLE");, and its always showing the same info, even though the data is changing Mar 25 18:40:16 timroes, forgive me i'm severly confused Mar 25 18:40:17 evanc, what i do is i set a notification with some given extras, and then my activity when fired up with the extras should handle it, but for some reason its always the same value Mar 25 18:40:18 Then you're not changing the data Mar 25 18:40:23 even though when setting it in the data i am Mar 25 18:40:57 SimonVT, I am... which is why im asking if its possible for there to be some static info or something which is causing this weird issue Mar 25 18:41:00 Bear10: ah yes, you need to pore over the PendingIntent docs. Or just believe me when I say that you need to set a unique Uri on each intent when you're making the updated PendingIntent Mar 25 18:41:32 Bear10: when the system checks whether to reuse an existing PendingIntent or make a new one, Intent extras are not considered. Look at Intent#filterEquals if you want to know more Mar 25 18:42:37 evanc, ah... so i have to manually overwrite somehow? Mar 25 18:42:58 not sure what i'm supposed to do Mar 25 18:43:01 Bear10: just set a unique data (Uri) or action or category Mar 25 18:43:18 evanc, i already have a unique action though Mar 25 18:43:19 one which isn't read but which makes the system recognize it as a new intent Mar 25 18:43:28 Bear10: per-intent? Mar 25 18:43:33 evanc, yep Mar 25 18:43:39 are you sure? Mar 25 18:43:40 let me pastebin Mar 25 18:43:42 thanks Mar 25 18:44:22 evanc, http://pastebin.com/rssGR4eU Mar 25 18:44:36 here the pGameId is just fine, but when i load it up in my MainActivity, it grabs the old info Mar 25 18:45:03 Bear10: you're not setting any action there Mar 25 18:45:15 He is, but it's not very unique Mar 25 18:45:20 evanc, yes i am MainActivity.ACTION_LOAD_LEVEL Mar 25 18:45:25 that's not unique Mar 25 18:45:29 and sorry, missed that line Mar 25 18:45:32 ah Mar 25 18:45:38 evanc, so how would i make it unique? a timestamp? Mar 25 18:45:46 Bear10: if you want to, yeah Mar 25 18:45:51 timroes, Okay so I added a 1 as the destination position in the System.arraycopy argument and I don't know why it works but it works. Now the 'en' is gone. Of course I used a different tag to try this out so it works with that but reading from the other tags still have 'en' infront of the strings I'm guessing because the NDEF stored in it still has the langByte aray? Mar 25 18:46:02 I'd set a unique data in this case, though (since you're not using it anyway) Mar 25 18:46:35 notificationIntent.setData(Uri.parse("content://fuck-pendingintent/rage/" + System.currentTimeMillis())); Mar 25 18:47:07 Bear10: though it's also possible that you might want to use the PendingIntent flag UPDATE_CURRENT (or something like that) Mar 25 18:47:25 PendingIntent.FLAG_UPDATE_CURRENT Mar 25 18:47:26 evanc, will give both a shot, let's see how it goes with the URI Mar 25 18:47:35 I'm not familiar with your exact use case so I don't know which one is right Mar 25 18:48:43 well the first one worked (URI) it seems Mar 25 18:48:56 so worse comes to worse we can do that Mar 25 18:49:18 trying the UPDATE_CURRENT now Mar 25 18:50:04 woo that works to evanc Mar 25 18:50:05 awesome Mar 25 18:50:07 thank you :) Mar 25 18:50:13 excellent :) Mar 25 18:50:18 use UPDATE_CURRENT Mar 25 18:50:37 PendingIntent is a strange beast Mar 25 18:51:14 hehe Mar 25 18:51:18 yeah looks like it Mar 25 18:59:50 Anyone know how to properly scale an ImageView using an animation created with nine-old-androids library? Mar 25 19:11:26 OK, simpler question. Can you pass in fractions for scaling an imageView? Mar 25 19:11:32 (5/3) for example Mar 25 19:13:32 dw Mar 25 19:20:25 g'night all Mar 25 19:21:01 hello dudes Mar 25 19:21:37 i have a class for my service call that does some caching Mar 25 19:21:54 however after a while it gets garbage collected Mar 25 19:22:02 Parhs, so you arent preserving a reference to it Mar 25 19:22:06 otherwise it wouldnt be GCed Mar 25 19:22:22 if i leave it deactivated.. (running other app) Mar 25 19:22:33 for some minutes.. Mar 25 19:22:50 i mean that within 10min if i restore it it is fine Mar 25 19:23:06 but then i get a nice crash Mar 25 19:23:20 stacktrace? Mar 25 19:23:23 the problem recreating the connection is that i dont have access to preferences Mar 25 19:23:25 he gets a NPE Mar 25 19:23:37 because nothing has a reference to the object he created previously Mar 25 19:24:01 kaneda^: that doesn't make much sense Mar 25 19:24:07 the object is kind of singleton Mar 25 19:24:15 Parhs, either it is a singletone or it isnt Mar 25 19:24:21 it is Mar 25 19:24:31 then it exists for the lifetime of the application, no longer Mar 25 19:24:41 but the problem is that it holds a reference to a connection. So when singleton dies connection dies too Mar 25 19:24:50 you might consider serializing it Mar 25 19:24:58 or running that part as a background service Mar 25 19:25:12 i dont need to preserve any data though Mar 25 19:25:31 my only problem is how to recreate the connection as i dont have access to this Mar 25 19:25:33 SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this); Mar 25 19:25:41 to get host / post settings Mar 25 19:25:49 Parhs, why dont you have access to the prefs? Mar 25 19:26:10 because i would have add at 50 places code at each activity to provide them .. Mar 25 19:26:26 i cant get them within class as it is a class doesnt have context Mar 25 19:26:40 my class is a service class with calls.. like getX() ... Mar 25 19:26:42 pass in the application context to your singleton Mar 25 19:26:45 Parhs, it seems you should have made an abstract class or a class that provides the serialization functionality to all activities Mar 25 19:26:48 a service *is* a context Mar 25 19:27:28 i dont need service like that.. i mean it calls a webservice Mar 25 19:27:42 data access layer or whatever it is called Mar 25 19:29:09 probably the only solution is to place it at application context? Mar 25 19:29:45 http://stackoverflow.com/questions/3826905/singletons-vs-application-context-in-android Mar 25 19:29:52 i see two approaches there Mar 25 19:29:53 If your singleton disappears, that means your entire process has been reclaimed Mar 25 19:29:58 Nothing is kept Mar 25 19:30:11 Android may do that at any time Mar 25 19:30:20 It's your responsibility to handle that Mar 25 19:30:46 If you have a service running, that might be started again later.. Depends how you set it up Mar 25 19:30:49 does anyone know how to test if a subscription works? android.app.purchased does not work with subscriptions.. and buying my own app doesnt seems to be a very good idea :-) Mar 25 19:32:05 SimonVT what do you define as service? Mar 25 19:32:21 A class that extends Service Mar 25 19:32:48 misterli, there must be a sandbox for this Mar 25 19:32:52 so you can test purchases Mar 25 20:01:29 hi all Mar 25 20:03:03 How do i change the ICS holo theme colours like the dropbox app has? Mar 25 20:04:13 or the skydrive app Mar 25 20:04:59 is it possible as serveradmin to check all subscriptions (and if they are still valid? I found the GET Request with subscriptionName and OrderID but i get a "Login Required" error. And then i found the oAuth stuff but it looks like that only the google account itself who ordered can check the subscriptionstatus? Mar 25 20:05:54 why are using get for that? Mar 25 20:06:10 https://developers.google.com/android-publisher/v1/purchases/get Mar 25 20:06:37 just want to check on serverside if the subscription is valid Mar 25 20:13:42 i have create 3 animation on 3 different view, i would that each animation to begin when the precendete ended… What would you advise me to do? Mar 25 20:15:10 OnCompletionListener? Mar 25 20:15:32 for each animation ? Mar 25 20:19:51 In all my Activities I check sharedpreferences for what theme to use (based on user setting). How should I get my widget to do the same? Mar 25 20:21:16 Nevermind Mar 25 20:26:36 Is it too much data in the sharedPreferences if I'm saving 208 booleans? 1 for every question in my quiz app? Mar 25 20:27:22 it's not "too much data" but you should probably use a database or something Mar 25 20:27:39 Yeah, I guess I worded that incorrectly. But seems like you got the idea. Mar 25 20:27:52 I figured it was a bit much to be handling it in SharedPreferences. Mar 25 20:27:56 yeah, use a database, and then generalize your data concepts. Mar 25 20:27:57 Just making sure, thanks. Mar 25 20:28:09 this way you can just add new questions into your DB without having to know what they're called, etc. Mar 25 20:28:15 What do you mean "generalize your data concepts? Mar 25 20:29:14 i draw one box, tehre's a line connecting it to another box Mar 25 20:29:20 i now have a two-tiered architecture Mar 25 20:29:21 Isn't it possible to do something like this on a linearlayout in layout/widget.xml? android:theme="@style/MyAppTheme.Light" Mar 25 20:29:43 jdawes: it means create abstractions for your abstractions Mar 25 20:30:12 g00s: I'm sorry, I don't follow. Mar 25 20:31:09 For some reason the widget is created with the MyAppTheme style Mar 25 20:31:30 g00s: Do you mean like creating a class to interface directly with the database, a class to deal with each separate table in the database, etc.? Mar 25 20:32:18 jdawes: i dont think you will have any issues storing 208 booleans in sharedPreferences. if you are going to switch to a more complicated solution like a sqlite database make sure you have a good reason to do so. Mar 25 20:32:21 jdawes: layers or separation of concerns, sure. maybe you decide to use sqlite for now and then something like jdbm4 later Mar 25 20:32:37 because if you don't have a good reason, then you'd just be adding complexity for the sake of complexity Mar 25 20:32:41 jdawes: meaning that you structure your database so that you don't actually have to know what the content is in your tables ahead of time; you can just say "give me all of the questions in QUESTIONS" and then you can present said questions. Mar 25 20:32:54 If you're using stored prefs to store your data, you have to actually know what the names of the prefs are to look up the content. Mar 25 20:33:05 lov: understood Mar 25 20:33:07 similarly, you can just store the user's answers in the database as a char or whatever Mar 25 20:33:14 you don't have to store 'answer_1' Mar 25 20:33:27 you can just do "insert into tablet ANSWERS ('abc', '1'); Mar 25 20:33:34 fforde: I will be using a database for other purposes in this app so I may as well have a "questions answered" table. Mar 25 20:33:43 :) Mar 25 20:33:51 yeah, normalization can be a good thing. Mar 25 20:33:56 mhm Mar 25 20:33:58 The important thing is that you decouple your data and your structures Mar 25 20:34:08 this way, you don't have to do any programming changes when you change your data. Mar 25 20:34:12 Now that I can understand. Mar 25 20:40:57 Does anyone know if its possible to get a list of all app store reviews to analyze them in depth? Mar 25 20:41:16 Like what if I want to search for how many words contain "break" or something? Mar 25 20:42:14 Is line 7 here enough to make the layout (for the widget) to use MyAppTheme.Light? http://pastebin.com/6KkSQEbx Mar 25 20:42:25 I don't know, is it? Mar 25 20:43:40 Quacked: why don't you try it and see? Mar 25 20:43:49 I doubt it will work Mar 25 20:43:55 style only applies to the view you set it on Mar 25 20:43:58 Yeah, I have, and it doesnt :P Mar 25 20:44:10 Quacked: then why ask? :) Mar 25 20:44:18 I don't believe you can apply a theme to an appwidget other than through the manifest application tag Mar 25 20:44:22 Cause it could be something else I had done :) Mar 25 20:45:59 Hmm. How can I have different widget themes then? Mar 25 20:46:49 Manually call methods in your provider that sets the styleable stuff Mar 25 20:47:25 Or provide different layouts with different styles based on some preference Mar 25 20:47:41 PO-TA-TOES... Mar 25 20:47:55 Or that Mar 25 20:48:10 boil 'em, mash 'em, stick 'em in a stew.. Mar 25 20:48:30 anyone know how to break the "permission" link between an app and a system account? Mar 25 20:48:46 SimonVT: but I cannot set a whole theme on each layout? Mar 25 20:49:01 i have a google drive integration that i'm testing and uninstalling/reinstalling fresh doesn't seem to require me to re-authorize the app to use my google account Mar 25 20:49:36 tophyr: I've been idly trying to find out how to re-force that for like a month now. Please let me know if you figure it out. Mar 25 20:49:43 evanc: heh kk Mar 25 20:50:28 I was trying to to do new RemoteViews(packagename, R.layout.) Mar 25 20:52:36 No, I don't believe you can do that Mar 25 20:53:17 layouts can specify styles but not themes as far as i know Mar 25 20:54:01 in some cases you can use a ContextThemeWrapper to change the theme before you inflate something, but as the launcher creates the context and does the inflation by itself you can't change that Mar 25 20:54:14 you should be able to create a layout that specifies the desired style for each element though Mar 25 20:54:31 urhh Mar 25 20:55:01 sounds tiresom Mar 25 20:59:06 Quacked: you should be used to tiresome programming (since you're already making a widget) Mar 25 20:59:26 * Quacked nods Mar 25 21:02:40 evanc: found it. go to your google account's Settings -> Security, Connected applications and sites, and revoke your app's OAuth access Mar 25 21:03:13 wait a few, retry in app, and it will ask you to re-authenticate Mar 25 21:04:58 Is there documentation on using HoloEverywhere anywhere? Mar 25 21:06:40 I've installed the library and i have it running in gingerbread but its crashing with 4.2 Mar 25 21:08:22 do0ob: i thought it was considered a bad idea to use that library Mar 25 21:08:27 Documentation: Don't use it, learn to apply your own themes where appropriate Mar 25 21:08:54 g00s: i don't know i just want to make my app look the same everywhere Mar 25 21:09:11 do0ob: but your doing android developmenbt Mar 25 21:16:34 g00s: and i want my app to look nice Mar 25 21:17:05 do0ob: is it a new app ? Mar 25 21:17:33 yup Mar 25 21:17:47 minSdk = 15; problem solved ! \o/ Mar 25 21:17:55 :D Mar 25 21:18:10 lol Mar 25 21:18:21 but gb is still the most popular version: http://developer.android.com/about/dashboards/index.html Mar 25 21:18:38 an app I'm working on is minSdkVersion="14" because it's easier to develop quickly for. Considering not changing that... Mar 25 21:18:40 and with holo everywhere i should be able to easily migrate away from gb Mar 25 21:19:03 evanc: i noticed Keep was 15; presumably 14 had enough bugs and not enough people are using it Mar 25 21:19:11 evanc: it took me one day to add holoeverywhere, surely it can't be that must extra effort to support api 8 Mar 25 21:19:20 (wasn't worth the effort) Mar 25 21:20:04 14 isn't even listed on the distribution Mar 25 21:22:11 that's because basically 100% of API 14 users are API 15 now Mar 25 21:22:47 don't google apps impersonate halo on older devices? Mar 25 21:22:58 ? Mar 25 21:23:05 like the play store Mar 25 21:23:09 for play music Mar 25 21:23:11 or* Mar 25 21:24:33 They apply a holo-style theme to certain ui elements Mar 25 21:24:47 It's surprisingly little you need to do to make a gb ui look holo-like Mar 25 21:43:59 does anyone know if there’s a reason why there wasn't a CM 10.1 toro nightly build for last friday and sunday? Mar 25 21:44:16 i doubt anyone here cares, rpk .... Mar 25 21:44:21 Might want to ask cyanogenmod Mar 25 21:44:38 SimonVT: no channel for it? Mar 25 21:44:48 rpk: it's hidden under #cyanogenmod Mar 25 21:45:02 evanc: ah ok, thanks :) Mar 25 21:47:19 Action bar Sherlock is giving me a headache. For some reason, it works perfectly on my tablet but it works kinda oddly on the emulator. On the emulator the action bar is visible on all the activities except for the main one. Mar 25 21:47:28 lulz @ evanc Mar 25 21:48:19 The only thing different with the main main activity is that it has " public boolean onOptionsItemSelected(MenuItem item) { "... What could be the problem? Mar 25 21:48:59 You didn't properly set themes? Mar 25 21:49:00 tophyr: swear I tried to join the channel first before trying here... not sure what happened Mar 25 21:50:06 My main theme is android:theme="@style/Theme.Sherlock.Light" Mar 25 21:52:33 What api level is your tablet, and what api level is the emulator Mar 25 21:53:26 I tried 7 - 10 on the emulators and then my device is 4.2.2 Mar 25 21:53:44 want me to take snapshots? Mar 25 21:53:48 Works on none of them? Mar 25 21:53:53 nope Mar 25 21:54:08 It works on none of them Mar 25 21:55:19 Probably extending the wrong activity then Mar 25 21:55:48 SimonVT: thanks... lmao Mar 25 21:56:14 was that it? Mar 25 21:56:32 yeah I feel like an idot Mar 25 21:56:47 but I just ran into another problem which I think I solved my changing it to activity before... Mar 25 21:56:49 iDot is patented Mar 25 21:57:23 Is it possible to keep a phone on without having the battery inserted? Mar 25 21:57:35 do0ob: er Mar 25 21:57:41 "Cannot override the final method from SherlockActivity" Mar 25 21:57:49 I don't want to wreck my battery by having it constantly on the charger Mar 25 21:58:03 Fix your imports, agy2154 Mar 25 21:58:18 do0ob: in any good device it shouldn't .. whether it will run without is probably dependent on the device Mar 25 21:59:58 :( Mar 25 22:00:52 Anyone know of a twitter client example that works? All the ones I've found either still use http for the oauth, or I get a server replied 401. Mar 25 22:00:53 laters Mar 25 22:01:34 I've found that if I change my callback to out of bounds, that the auth login page pops up, but having the user enter a pin isn't a valid solution Mar 25 22:06:21 do0ob: you can prolong the life of your battery by discharghing it to 40% which is around 3.6v i think, and taking that out and leaving it Mar 25 22:06:41 i would turn the phone off, take the battery out, plug it int to usb, and see if it powers up :) Mar 25 22:07:08 It won't power on Mar 25 22:07:17 oh bummer :( Mar 25 22:07:38 well, some devices i think when they are on can draw more current than usb 2 allows Mar 25 22:07:48 especially with heavy workload Mar 25 22:08:03 like a n10 maybe Mar 25 22:08:36 the 3rd gen ipad actually uses more juice than the charger provides Mar 25 22:08:56 birbeck: the wall charger ? Mar 25 22:08:58 so if youre using it while charging it just gets hot and very slowly drains Mar 25 22:09:06 g00s: yeah Mar 25 22:09:26 birbeck: i have a usb hub backed with a 5A 5V charger Mar 25 22:09:43 if youre watching videos or playing games, something stressing the cpu and gpu Mar 25 22:10:26 the lightning port charger in the 4th gen might be better, but that is still usb 2 Mar 25 22:12:56 How many development handsets have you guys acquired over the years? Mar 25 22:15:01 do0ob: i have about 15. lost count tbh Mar 25 22:15:23 Do you have them all hooked up to a rack? Mar 25 22:15:26 Question with fragments, so I have it where I can switch fragments out, however when i use the back button the activities seem to get stacked and looks like a mess, any idea why this is and or how to resolve? Mar 25 22:15:37 do0ob: i can hook up 5 at a time Mar 25 22:15:54 Which have you got on now? Mar 25 22:16:10 only thing plugged in right now is a ecig Mar 25 22:16:23 try a proper one Mar 25 22:16:29 rather than an "e" Mar 25 22:16:33 i just did Mar 25 22:16:35 * StingRay_ goes for a smoke Mar 25 22:16:51 i "scrum" at 3pm daily Mar 25 22:17:05 for 4 hours ? Mar 25 22:17:07 :) Mar 25 22:17:15 pst Mar 25 22:17:15 Smubeht: use .replace in your fragmenttransaction? Mar 25 22:20:00 I want to send a generic binary blob for ACTION_VIEW by other installed activities. Two questions. 1) Are there any best practices for letting that app know the "name" of the blob via my ContentProvider? (ie: a human-readable title for that blob?) 2) Does dynamically giving grant_uri_permissions to a chained activity? (eg: system-resolver -> chosen viewer, or chosen viewer shows data in a sub-activity.) If yes, is there a practical way Mar 25 22:20:00 to offer temporary read permissions? Mar 25 22:20:56 er -- by #2 I mean -- does the temporary grant "chain" past the system resolver (for example.) Mar 25 22:21:20 g00s: I solve my gdrive stuff, and although it don't have direct/direct linking, it has a single resolve that gets to the file, rather than dropbox, fyi Mar 25 22:24:26 evanc: i do use .replace Mar 25 22:25:10 but i also do .addToBackStack(null); Mar 25 22:29:28 Smubeht: so why are they being stacked on top of each other? doesn't popping the backstack have the top one removed? Mar 25 22:31:25 I found some used batteries on ebay, i'll use those Mar 25 22:31:51 that is what i would expect but for some reason it doesnt Mar 25 22:35:36 What is the best way to keep track of whether or not a database should be open or closed from ANY activity? Mar 25 22:36:09 global stuff in Application? Mar 25 22:37:18 So, extend application in a Singleton class and just keep track of lifecycle? ie. onResume, onPause, etc.? Mar 25 22:38:34 fyi, extending Application IS a singleton Mar 25 22:39:02 I read that somewhere, i've never done it myself Mar 25 22:39:18 Duh, of course. Mar 25 22:39:22 my mistake Mar 25 22:39:43 you just create a class that extends Application, then in your tag, set android:name="my.applicationclass" Mar 25 22:39:52 birbeck: Would just extending my already existing singleton with Application work? Mar 25 22:40:36 birbeck: So in the app to get access to the class you would just go: "(SingletonClass) getApplcation" ? Mar 25 22:40:39 you would not compose a singleton with an Application instance if thats what youre asking Mar 25 22:40:53 yes Mar 25 22:41:08 jdawes: http://stackoverflow.com/questions/708012/android-how-to-declare-global-variables Mar 25 22:41:11 Not really, I've already got just a basic singleton class working and it now uses a database so I need to control it properly. Mar 25 22:41:32 any time you need access to your application class, you cast .getApplication() or .getApplicationContext() to MyApplication Mar 25 22:41:37 And by basic I mean, doesn't extend anything. Mar 25 22:42:23 i would be careful with a singleton holding a reference to a db. just use a loader in your activities Mar 25 22:43:05 Yeah, this is the issue so I guess I just re-write my singleton as a class that extends Application, making changes where necessary? Mar 25 22:43:37 yeah. your application class should be a subclass of Application, not a member Mar 25 22:44:23 Yeah I was never going to use a member. Well thanks, this kind of sucks I was hoping I wouldn't have to re-write. Mar 25 22:44:25 Application is already a singleton, so it doesnt make sense to create a new singleton and pass it the application context Mar 25 22:45:38 What did you mean use a loader in my activities? Mar 25 22:46:09 http://developer.android.com/guide/components/loaders.html Mar 25 22:46:35 I'm trying to support 2.2 + so I guess that's no go for me. Mar 25 22:46:54 its in the support lib Mar 25 22:56:40 Cool. Mar 25 23:01:50 fwiw, I moved my db access within an IntentService, which then publishes its results on a queue that all UI (activities) attach/detach onPause/onResume... thas sort of seems to reduce my temptation to do db work directly from an activity/asynctask/etc... It also allows a few "global" things (status messages, exceptions/etc) to be managed from any activity, whether or not it started the actual work. Mar 25 23:02:13 but i'm sure there are other/better ways to do it.. just my 0.02 Mar 25 23:02:19 Why phones need 2GB of ram? Mar 25 23:02:33 do0ob: sales Mar 25 23:02:54 well and probably screen density increases Mar 25 23:03:19 as in src graphic elements need more of the pixel things Mar 25 23:04:13 I want to get a galaxy s2, i don't like the s3, its too round Mar 25 23:05:42 i like the design of htc one, I just don't like the non-google stockiness of it Mar 25 23:07:14 I like it too, but i want a removable battery, a micro sdcard before i consider a purchase Mar 25 23:11:55 cant.. stop.. being amazed by shazam.. Mar 25 23:13:21 xorgate: sound hound is better Mar 25 23:13:34 how so? Mar 25 23:13:53 Works with international music and better recognition algorithm Mar 25 23:14:46 What do you guys think about the android switch backport? Is it safe to use? Mar 25 23:16:04 which one would me more reliable to use? https://github.com/BoD/android-switch-backport or http://www.androidviews.net/2012/12/switch-compat/ ? Mar 25 23:29:42 one thing i noticed is that edittexts dont get focused but the fragment tab gets the focus when trying to type Mar 25 23:29:48 any idea how to remedy that? Mar 25 23:31:26 yeah Mar 25 23:32:34 Wouldn't it be requestFocus()? Mar 25 23:33:20 Set the edittext.requestFocus() when the fragment tab is clicked Mar 25 23:34:58 even if i click the edittext it doesnt keep focus Mar 25 23:35:44 Smubeht: Maybe your requesting a focus in the XML? Mar 25 23:45:09 Is it possible to change the text size in a PreferenceScreen? Mar 25 23:49:42 agy2154 anything is possible Mar 25 23:49:50 Hey guys Mar 25 23:50:05 I'm running into a weird error . . . SetFixedSize on my surfaceView is not working. Mar 25 23:50:36 ron_frown: Would I have to style my whole prefrence screen or the individual things within it? Mar 25 23:50:40 Well, it's more of a bug than an error, because surfaceHolder.setFixedSize always makes it full screen on Android devices < 3.0, but works normally on Android 3.0 and above. Mar 25 23:57:06 :) Mar 26 00:12:44 Why do I keep on getting the exception/error the surface has been released? Mar 26 00:14:44 viiralvx: post your log Mar 26 00:15:26 agy2154: http://pastebin.com/kiQLL8PH Mar 26 00:17:01 viiralvx: http://stackoverflow.com/a/9979191/2109184 Mar 26 00:17:18 agy2154: Seen that example already. Mar 26 00:17:26 agy2154: And I fixed it, still crashes though. Mar 26 00:17:37 Same error? Mar 26 00:18:13 Yup. Mar 26 00:21:48 viiralvx: When do you get this error? are you trying to obtain a media source? Mar 26 00:22:19 agy2154: I'm unable to reduplicate this error. It happens on random devices, this is an error that some users are getting while alpha testing my application. Mar 26 00:22:55 viiralvx: Yeah but what are you trying to do on PlaylistActivity.java:528 ? Mar 26 00:23:18 It's fetching a stream URL and starting to play it. Mar 26 00:23:51 agy2154: Normally it's when the next song starts to play for them . . . Mar 26 00:23:53 viiralvx: Could it be timing out? Maybe can't be optained? Unsupported? Did you try putting it in a try catch? Mar 26 00:24:23 agy2154: Everythign is surrounded in a try catch, I've been unable to duplicate the error, normally if it fails to stream a URL, it fosse sit out and plays the next song in the palylist. Mar 26 00:24:25 playlist* Mar 26 00:24:28 viiralvx: Can this be your soluition? http://stackoverflow.com/questions/10060021/can-surfaceview-be-reused-after-mediaplayer-release Mar 26 00:24:46 viiralvx: Nvm you said it works sometimes. Mar 26 00:24:49 agy2154: Tried that one as well, hahaha. Mar 26 00:27:31 viiralvx: http://stackoverflow.com/a/12675358/2109184 ? Other than that I can't find anything. Mar 26 00:27:40 Tried all of these Mar 26 00:27:41 :( Mar 26 00:31:44 trying to make buttons like so: http://developer.android.com/images/ui/dialogs_regions.png but when i set the style to something like @android:style/Widget.Holo.Light.Button.Borderless.Small the y appear transparent. Do i need to draw those little lines around them myself? Mar 26 00:36:00 agy2154: I dont have any focus request in the xml Mar 26 00:38:06 1 thing i should point out, if i use the soft keyboard it works, but its only when i use the laptop keyboard for inputs that focus drifts to the tabs Mar 26 00:40:03 Smubeht: I have problems with my laptops keyboard too. I make something that checks for values after pressing certain keys and it worked on everything except the laptop's keyboard so you might be okay unless a qwerty keyboard isn't considered a software keyboard. Mar 26 00:40:49 the weird thing is that prior to shifting from tabactivities to fragments it was working perfectly Mar 26 00:54:27 whats the best way to encrypt a string using a password ? Mar 26 00:54:44 would anyone mind giving me some advice/help finding the right link to adding in a log view to my app? I want to add a text box so that I can display information to the user within the app, not using logcat. Mar 26 00:54:50 * StingRay_ knows nothing about encryption Mar 26 00:55:31 Zeode: just write debug into to a text file Mar 26 00:55:38 and read/display that Mar 26 00:55:38 StingRay_: MD5 + salt Mar 26 00:56:00 Can i update it live? Mar 26 00:56:07 without re-reading the file that is Mar 26 00:56:22 ok, sqlite table and cursor Mar 26 00:56:27 would prob be better Mar 26 00:56:54 cool, ill look into that. Thanks for the advice Mar 26 00:59:14 agy2154: hmm not sure about that Mar 26 00:59:17 StingRay_: I don't know if you can in java... but in PHP you can use crypt which would take in the string and the salt Mar 26 00:59:25 another requirement is same length Mar 26 00:59:57 StingRay_: Can you use php in android anyway? Mar 26 01:00:03 also need to do the same thing to int[] Mar 26 01:00:13 agy2154: well no Mar 26 01:00:21 although some apps do silly things Mar 26 01:00:38 int[0].toString and then back to int Mar 26 01:00:42 like store php local and use server to run Mar 26 01:00:47 seen that a few times Mar 26 01:01:02 looking at this Mar 26 01:01:03 http://developer.android.com/reference/javax/crypto/package-summary.html Mar 26 01:02:40 dam I love OSX Mar 26 01:03:12 os wide versioning and Time Machine save me sometimes :) Mar 26 01:03:47 StingRay_: What did you do? Also Im reading this http://www.motorola.com/sites/motodev/resources/best_practices_for_android_encryption.pdf .... Lol'ed at page 2 "government-grade encryption " Mar 26 01:04:26 any one here use GraphAdapterBuilder? Mar 26 01:05:35 see reading this http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation#Cipher-block_chaining_.28CBC.29 Mar 26 01:05:42 just makes me want to cry dammit Mar 26 01:05:44 :) Mar 26 01:15:36 StingRay_, I know everything about computer security :D Mar 26 01:15:50 no....... Mar 26 01:15:55 yes Mar 26 01:16:17 is there a way to animate the color of a view ? I want to have a danger screen that flashes red (not solid red. Still able to see the UI)….. Mar 26 01:16:19 your in school right ? Mar 26 01:16:22 StingRay_, uni Mar 26 01:16:26 oh Mar 26 01:16:29 maybe you do then Mar 26 01:16:30 :) Mar 26 01:16:34 uni is for the weak Mar 26 01:16:37 lol okay not everything but i did a course on ti lol Mar 26 01:16:38 *it Mar 26 01:16:52 jug6ernaut_, oh really? good because i'm failling it anyway Mar 26 01:16:53 jk Mar 26 01:17:01 http://stackoverflow.com/questions/15627574/gson-graphadapterbuilder-fails-with-interfaces for anyone interested Mar 26 01:17:05 AES CBC can produce same length in/output Mar 26 01:17:37 that was a question Mar 26 01:17:46 most i know about security is from the Security Now podcast hehe Mar 26 01:17:50 I just omitted the "?" for some reason Mar 26 01:18:13 well same length +/- padding Mar 26 01:18:48 jug6ernaut_: why is uni weak? Mar 26 01:18:59 well Mar 26 01:19:04 at least in my case it was Mar 26 01:19:06 oh boy Mar 26 01:19:10 * jug6ernaut_ learned nothing in uni really Mar 26 01:19:14 just spent a lot of $$ Mar 26 01:19:35 jug6ernaut_: Do you have a degree? Job? Mar 26 01:19:49 CS & yea Mar 26 01:20:49 i mean, granted i would have not gotten my job with my degree, but i didn't get my job bc of my degree, if that makes any sense lol Mar 26 01:21:30 without my degree* Mar 26 01:21:31 To be honest. I am struck. I am debating if I should do CS or Electrical Engineering. I don't know... I keep switching. I love math and love making real stuff. I don't know I think programming is like a kids thing. Anyone can learn. You don't need to go to a uni to learn. Mar 26 01:22:19 jug6ernaut_, did you do well? what do you do now? Mar 26 01:22:24 imo, go EE, u can do CS without a CS degree, u could not do EE without an EE degree lol Mar 26 01:22:48 coco89 i suppose, i work for Accenture as a "Java Development Analysis" lol Mar 26 01:23:15 jug6ernaut_, nice! Mar 26 01:23:29 not really sure what I'm analyzing tho hehe Mar 26 01:23:32 jug6ernaut_: I know but I heard EE can give you a headache. lmao at least I can freaken actually see whats happening in front of me. Mar 26 01:23:47 agy2154 o yea, EE is stupid hard lol. Mar 26 01:24:15 my degree was a hybrid, like 60% cs 40% EE Mar 26 01:24:45 jug6ernaut_: Question is... lets say I learn some languages on the side and I get an EE degree. Will jobs recognize my other abilities even though the job I'm applying for isn't related to EE? Mar 26 01:24:49 i hated EE classes lol "random signals" remains the only class i ever took where i have no idea what was going on and no idea at the end haha Mar 26 01:25:14 agy2154 its a lot easier to demonstrate CS skills then it is EE Mar 26 01:25:21 so if you have something to show? Yes. Mar 26 01:25:32 Where can i get an example of a translated strings xml? Mar 26 01:25:51 translated strings xml? Mar 26 01:25:59 do0ob: google translate ? Mar 26 01:26:19 jug6ernaut_: Do my android apps count? Lmao? I heard that some companies like google expect you to have contributed to projects, not that I'm ever going to apply there. Mar 26 01:26:41 absolutely they do Mar 26 01:26:55 coding history is coding history Mar 26 01:27:21 alright, im having a hell of a time trying to get this options menu to show up. got a new activity class with all the appropriate functions, the xml file with the stuff and a burning headache… Mar 26 01:27:45 StingRay_: i'm wondering what one looks like, i want to set my strings up so that its easily translated Mar 26 01:28:02 well it's just another strings.xml Mar 26 01:28:17 in values-"qualifier" folder ? Mar 26 01:28:38 oh ok, thats good Mar 26 01:28:45 have a look at folders and source for some of googles os apps Mar 26 01:29:32 question with fragments and addtobackstack Mar 26 01:29:44 so it seems i have it all working in terms of back, except the tab doesnt shift Mar 26 01:30:35 like lets say im on tab1, i click tab 2, tab 3, in tab 3 go to tab3a, then press back it goes to tab3, back the content goes to tab2 but the highlighted tab stays on tab3, then back again content is tab1, but highlighted tab is still tab3 Mar 26 01:30:43 what would be the simple or proper way to handle that Mar 26 01:31:29 not use tabs ? Mar 26 01:31:32 :) Mar 26 01:32:02 so are there any easy/examples of AES CBC anroid/java ? Mar 26 01:32:05 android* Mar 26 01:32:31 using fragments Mar 26 01:33:08 well I have to do a milt-page view shortly Mar 26 01:33:16 and I think better to use viewPager Mar 26 01:33:23 or fragmentPager etc Mar 26 01:33:31 whatever the heck it's called/used Mar 26 01:33:31 in my style extending @android:style/Holo.Light.ButtonBar, how can i set the color of the space between the buttons? Mar 26 01:34:22 osxorgate: how would you set color of "space" ? Mar 26 01:34:31 as in colour of "nothing" ? Mar 26 01:34:36 StingRay_: i think it's a drawable Mar 26 01:34:47 the "space" is a drawable ? Mar 26 01:34:51 but i'm really at a loss Mar 26 01:35:01 maybe it's not space Mar 26 01:35:15 actually there is a new view "space" in later sdk's Mar 26 02:17:50 How can I reset my test acccount Mar 26 02:17:55 so I can redo my iap Mar 26 02:24:00 anyone? Mar 26 02:26:51 any way to force an optimus g into debug mode without the touchscreen, or access the external storage? Mar 26 02:27:29 Do I have to make a new IAP to test again? Mar 26 02:29:25 So I thought connecting android to a database was going to be simple? Mar 26 02:32:14 thats like saying I though altering timing on an engine was going to be simple Mar 26 02:32:43 depends, is it a normal run of the mill car ? or a huge turbo diesel tractor unit Mar 26 02:32:46 lol Mar 26 02:33:38 :P Mar 26 02:33:41 i guess Mar 26 02:35:19 Is it possible to remove iap from my test account? Mar 26 02:35:27 So I can test them again? Mar 26 02:36:20 apple741: I would think so, and I would also think that is a very "googled" thing Mar 26 02:42:57 hmf my project has about as many lines xml as java code Mar 26 02:44:14 mine has a kinda elements/lib of xml things that I reuse Mar 26 02:44:24 so mine is about 100:1 ratio Mar 26 02:49:23 although that could just mean my code is 100x more bloated Mar 26 02:49:26 :) Mar 26 02:57:30 Are there switches in the android support library. I found a backport but the problem is that It won't work with the light theme. Somehow the dark always overrides the light and there is another for 2.2 but I kinda want to try to get it to work with api level 7 Mar 26 02:58:23 I just made a rough one myself Mar 26 02:58:26 cause I like neither Mar 26 02:58:46 a switch should have some visual change "over time" to it Mar 26 02:59:19 StingRay_: thats true. You mean like it would get updated with the new versions right? Mar 26 02:59:32 huh? Mar 26 02:59:33 no Mar 26 02:59:40 i mean I made a customView **** ENDING LOGGING AT Tue Mar 26 02:59:58 2013