**** BEGIN LOGGING AT Tue Mar 26 02:59:58 2013 Mar 26 02:59:59 but I'm not going for the standard android app look Mar 26 03:00:04 StingRay_: you mean like its not a drawable and that like you use the standard switch so it can be changed automaticly with the new versions of android? Mar 26 03:00:10 it's getting a bit boring to me now Mar 26 03:00:20 Ohh no I like doing the standard app look Mar 26 03:00:37 yeah, same as everyone else :) Mar 26 03:00:50 but I like the actual "Design" part Mar 26 03:01:05 StingRay_: Well Yeah but won't it be harder for users to navigate because of the new look? I mean I like to keep mine with the Android Flow so it feels more like home to the user. Mar 26 03:01:30 flow != look Mar 26 03:01:38 flow != design Mar 26 03:01:54 my design and look are/can be different Mar 26 03:02:05 the flow is just like …well….android Mar 26 03:02:46 StingRay_: Sorry I meant arrangement of things. Like the actionbar and where things are placed. Mar 26 03:03:04 oh no…well I have my own menubar Mar 26 03:03:10 and you can choose where it is Mar 26 03:03:35 cause in design, doing a menu with buttons at the top of a 5" screen and expecting 1 handed operation is silly Mar 26 03:04:25 StingRay_: yeah I can see where your coming from. That would take longer to make though. Mar 26 03:18:18 Is this better than Action Bar Sherlock ? https://github.com/ChristopheVersieux/HoloEverywhere#screenshots Mar 26 03:21:58 subjective Mar 26 03:25:18 I'm trying to import a project a friend of mine created. I can't get rid of the "android.support cannot be resolved". I feel like i've tried adding the files into my buildpath every possible way I can think of. Any help would be appreciated. Mar 26 03:26:25 add the support lib ? Mar 26 03:27:21 StingRay_: I thought say. Could you give me some direction? I tried doing it through configure buildpath and adding a new external class folder which pointed to my extras/android/support folder Mar 26 03:28:26 where is android.support* used ? Mar 26 03:28:29 and for what ? Mar 26 03:29:59 import android.support.v4.app.NavUtils; is being used in an Activity. I'm just trying to get a colleagues project to build and it's saying it cannot resolve that class - specifically android.support. I'm thinking it has something to do with me importing his project, versus it being a new android project. But I'm not sure. Mar 26 03:31:44 I've found NavUtils.java here: /opt/adt/sdk/extras/android/support/v4/src/java/android/support/v4/app/NavUtils.java, but I'm not sure the proper way to put it on the buildpath in android Mar 26 03:31:55 erm Mar 26 03:32:04 have you done any basics of android dev ? Mar 26 03:33:08 StingRay_: Not in a really long time :-/ Sorry. Mar 26 03:33:31 out of interest what are you attempting to do with this project ? Mar 26 03:33:31 StingRay_: That's why I'm just trying to get this project running before digging back into it. Mar 26 03:33:46 StingRay_: Build it and run it in the emulator. Mar 26 03:33:49 well if I were you I would start at training at d.android.com Mar 26 03:33:58 it's quite good Mar 26 03:35:57 StingRay_: Thank you. I'll look more into that when I'm doing more coding and building more features. But right now I'm just trying to get something running that should be running. It seems I have the libraries it needs. It's also an imported project from someone running a similar setup. I've done a bunch of searches and have yet to come up with why it's not importing the classes I have and need. That's why I came here. Mar 26 03:36:27 well just add the supportV4 lib Mar 26 03:36:50 but me saying that is not really gonna help unless you gone through the tutorials and know a bit Mar 26 03:37:03 and getting this working is not really gonna help you learn Mar 26 03:37:16 but those tutorials on d.android.com will Mar 26 03:37:43 StingRay_: Thank you very much. Trying that now. And yes, I fully believe in running though the tutorials. Mar 26 03:39:28 hi, how could I get the UI objects displayed on a given app screen without having the apk sources? E.g. have it tell me there are 2 editboxes and 2 buttons and their id/strings. Mar 26 03:40:04 basically I want to inspect the UI hierarchy Mar 26 03:40:47 of some1 else's app ? Mar 26 03:41:07 yes, the purpose is to help me write some robotium tests for apks Mar 26 03:47:52 StingRay_: Thanks. Found it. Special Android Tools menu for "Add Support Library...". According to git it doesn't look like it's modified anything inside of the project. Why is that not stored... or where is it stored. Anyways, it's now running. Thank you very much for lending an ear to a dumb question that someone would only ever ask once. Mar 26 04:10:14 fallout the tool is called 'monitor' Mar 26 04:10:28 thank you! Mar 26 04:23:53 Is there a way to make the stroke width different on each edge of a gradient drawable? Mar 26 04:24:25 you mean a shapeDrawable ? Mar 26 04:25:01 Yes Mar 26 04:25:08 no :) Mar 26 04:25:17 or rather not that I'm aware of Mar 26 04:25:48 crap Mar 26 04:27:01 hi. what could be the reason for a fragment's onSaveInstanceState() not being called? Mar 26 04:27:49 tinloaf: setting it to retianInstance(true) Mar 26 04:27:54 that would do it Mar 26 04:28:41 StingRay_: but then onCreate should not be called, too, right? Mar 26 04:29:12 well not after the 1st creation Mar 26 04:29:15 I think Mar 26 04:29:49 hum.. but it is. :-/ .. when I rotate my screen, onCreate() is called with a non-null argument Mar 26 04:29:58 but before that, onSaveInstanceState() is not being called... Mar 26 04:32:53 well onCreate may get called if your act/frag gets shunted Mar 26 04:36:09 Any recommended way to be able to use your own custom view in a list fragment despite this bug https://code.google.com/p/android/issues/detail?id=21742 Mar 26 04:36:09 ? Mar 26 04:36:48 fragmentList is screwed Mar 26 04:36:57 just use fragment + listView Mar 26 04:38:47 I guess, using ListFragment just makes showing an inline progress dialog easier :( Mar 26 04:40:00 a what ? Mar 26 04:40:04 inline ? Mar 26 04:40:59 StingRay_: wait a second. ListFragment is broken? Mar 26 04:41:18 That's exactly the fragment that is missing its call to onSaveInstanceState() :-/ Mar 26 04:41:19 well was when I wanted it Mar 26 04:41:29 and there seems to be little point to it Mar 26 04:41:36 and most people in here say don't use it Mar 26 04:41:57 and a few people in here that are quite the sh*t say it's the spawn of the devil Mar 26 04:42:02 and should be killed Mar 26 04:42:04 :) Mar 26 04:42:39 StingRay_: https://plus.google.com/113735310430199015092/posts/eSCfnyTzFUx, Mar 26 04:43:01 It's not htat hard do it yourself, just more conveneient using the ListFragment one that's built int Mar 26 04:43:26 , , your layout, done. Mar 26 04:44:31 yeah that's what I was thinking, thanks Mar 26 04:53:42 it really does seem like there are lots of opposing strong opinions on encryption Mar 26 04:53:54 not good for someone wanting to learn/implement Mar 26 04:55:52 StingRay_: that is mutually exclusive ;-) Mar 26 04:56:01 ("learn" / "implement", i mean) Mar 26 04:56:17 as long as you are still learning, you should not implement crypto stuff. That what I think. ;) Mar 26 04:56:54 well yes/no, it's not something I really want to learn Mar 26 04:57:05 I just want an implementation that suits me Mar 26 04:58:01 see something like this http://www.ravenblast.com/index.php/blog/android-password-text-encryption/ Mar 26 04:58:17 is rem, dunno, bit odd Mar 26 04:59:15 are you encrypting for obfuscation purposes? Google's licensing code has a wrapper for shared preferences that obfuscates the keys and values. might be a good sample to work from Mar 26 04:59:40 no Mar 26 05:00:09 for string and image content Mar 26 05:01:00 just password > encrypt String + int[] both outputs of same length of input Mar 26 05:02:25 if you are decrypting it locally then it's just obfuscation. someone could reverse engineer your code, root the device to grab the saved encrypted string, then decrypt it. this is generally acceptable if you need to use passwords, just good to be aware of Mar 26 05:03:15 yeah tis just key (user input) that will be used to encrypt string / images etc Mar 26 05:04:59 for strings the google example could work, but it might be a pain to translate it for images Mar 26 05:05:43 you got a link, I will take a look Mar 26 05:05:53 hi android-dev, i've got a bash script that uses adb to take a screenshot. i was using /system/bin/screencap -p /sdcard/shot.png to take the shot. this works ok. but the problem is that ti'd like to not write to /sdcard each time i do this. i'd rather write to /tmp or some other RAM so as not to wear out the sdcard. any advice? Mar 26 05:05:54 surprised there are not solid examples Mar 26 05:06:09 and it does seem like there are way too many opinions Mar 26 05:07:02 http://developer.android.com/google/play/licensing/adding-licensing.html#impl-Obfuscator the AESObfuscator comes with the sdk, sdk/extras/google/play_licensing/library/src/com/google/android/vending/licensing/AESObfuscator.java Mar 26 05:07:13 I tried using redirect to save the output to a file on the computer running adb like this 'adb shell /system/bin/screencap -p > shot.png'. this *seemed* to work, because the file was saved and has contents, however i can't open it as png, it seems to be corrupted. Mar 26 05:09:40 aristoteles: AOSP includes a "screenshot2" tool which can grab an image directly over ddms/adb from the command line on the computer. i don't know why it's not included/compiled by default Mar 26 05:10:24 i have a bash shortcut "adbtopsd" which uses it to take the screenshot and opens it with photoshop Mar 26 05:41:53 Setting a view to visible/gone takes 1 vsync cycle, right? Mar 26 05:42:16 Does someone have a good article that explains vsync and drawing windows and stuff like that> Mar 26 05:44:29 kevinb: thanks i'll see if my device includes 'screenshot2' i'm running cm10. Mar 26 05:44:32 :wq Mar 26 05:44:40 (sorry, wrong window) Mar 26 05:45:02 aristoteles: it's part of the sdk, not the rom, so you need the screenshot2.jar on your computer Mar 26 05:45:45 kevinb: oh i see. so it's a java program. i will look in the sdk files i've downloaded Mar 26 05:48:30 hwrd|work: visible/gone requires a relayout, if that takes too long you can miss the vsync. a good resource for how frames are rendered is http://www.curious-creature.org/2012/12/01/android-performance-case-study/ (and anything else written by Romain Guy) Mar 26 05:49:08 kevinb: i don't see it in the sdk files i have so far. let me know if you can tell me which 'component' i should download. also, are you sure there's no way to use the tmpfs on the device? Mar 26 05:50:14 aristoteles: i've just compiled it, i'm not sure why it's not included by default, i don't know if they include it anywhere. hrm i guess it should be portable, i can send the jar and wrapper script. i have no idea about using tmpfs on the device Mar 26 05:50:32 kevinb: Thanks! Mar 26 05:51:07 kevinb: don't worry for now about sending it. i will look around a bit more first. thanks for the info. i will ask again in a few days if i don't get anywhere. Mar 26 06:14:14 How do I include another maven project (local, paths relative) to my project Mar 26 06:22:20 ok thats 8 failed attempts at examples and walkthroughs of encryption Mar 26 06:22:49 * StingRay_ not happy Mar 26 06:41:17 it seems 80% of people use the same code snippet that fails Mar 26 06:41:30 getting a bit frustrated with this now Mar 26 06:42:12 anyone here know of any good tutorials to encrypt a string to a same length output using and user entered key ? Mar 26 06:49:18 xastey: that's not really how Maven works Mar 26 06:49:44 you either have to have a module be part of your project or install it into your local repo and depend on its artifacts (think jars) Mar 26 07:01:03 I seem to be having a problem with the Eclipse UI editor. What I see on the editor screen doesn't match whats on my screen. buttons and checkboxes are off the mark…. Mar 26 07:01:27 is there a way to fix this ? Mar 26 07:03:12 on screen ? Mar 26 07:03:33 well what i see in the ui editor isn't what shows up on my device Mar 26 07:03:45 well do you have the editor set to exactly you device ? Mar 26 07:03:51 your* Mar 26 07:03:57 hang on, meeting. AFK Mar 26 07:17:05 ok, back Mar 26 07:17:23 so the editor can be set per device if needed then ? Mar 26 07:17:59 StingRay_ Mar 26 07:21:31 it has pre-sets and can also match ave refs. Mar 26 07:21:40 avd refs. * Mar 26 07:23:04 ok, i just found the presets thing Mar 26 07:23:44 it has a preview all screens feature that lets me see how it will look on all screen types Mar 26 07:24:13 now my question is, how do you get your ui layout equal across all of these ? Mar 26 07:24:27 equal ? Mar 26 07:24:50 my ui looks ok on a few of the screens, but is off on the others Mar 26 07:24:58 off? Mar 26 07:25:16 these are visual terms that only apply in the context of your mind Mar 26 07:25:18 :) Mar 26 07:25:23 oh noes.... Mar 26 07:26:27 like I have bg image with a box on it. I place some ui so that it is displayed above the box. Mar 26 07:26:47 on some screens the ui is inside the box, not above it Mar 26 07:26:53 like that Mar 26 07:27:15 the positions of the ui objects are different per screen Mar 26 07:27:15 screen shot would help :) Mar 26 07:27:50 yeah i know, but i can't cause its for work Mar 26 07:28:48 so the placement and positions of my UI is not consistent across all screen types Mar 26 07:29:20 and i want it to be consistent Mar 26 07:32:31 well use dp/sp/spacers/relation layouts etc Mar 26 07:32:35 hard to say Mar 26 07:32:56 there is no clear, press this button, depends on what it is and where, maybe even how too :) Mar 26 07:33:20 its easier on the iphone Mar 26 07:33:21 use of dimension resources etc Mar 26 07:33:32 you mean with 2 screen sizes Mar 26 07:33:35 yeah Mar 26 07:33:37 yeah Mar 26 07:33:38 it will be Mar 26 07:33:54 not compared to the nexus 1 screen size Mar 26 07:34:01 ok Mar 26 07:34:09 guess it can't be helped Mar 26 07:34:18 well yeah it can Mar 26 07:34:28 you plan and design it that way Mar 26 07:34:42 then it's trivial to accommodate most screens Mar 26 07:34:45 inc. tablets Mar 26 07:39:53 well, lets see. I have a relative layout with a bg set. inside of the RL are 3 ui objects. I place the ui objects so they are lined up with imagery from the bg. When I look at my device, the ui is not where I want them. Not the same as where they are in the editor. Mar 26 07:40:15 its a pretty simple layout. Mar 26 07:40:46 but your positioning them based of pixels on the background ? Mar 26 07:41:20 cause those image pixels to screen pixels are not constants Mar 26 07:42:43 you can do it in interface builder for iOS apps. its a WYSIWYG editor. Mar 26 07:43:13 not the same Mar 26 07:43:27 iOS is limited Mar 26 07:43:50 new iPhone, with bigger screen, EVERYTHING needs updating Mar 26 07:43:55 not so with android Mar 26 07:44:04 can have a 50ft screen if you want Mar 26 07:44:17 as long as you have done your work, it will be fine Mar 26 07:44:19 ;) Mar 26 07:45:59 is everything supposed to be encapsulated in its own layout object ? Mar 26 07:46:26 can have a 50ft screen if you want, erm what? Mar 26 07:46:47 I have 1 layout with 3 ui objects, and thats not good enough apparently Mar 26 07:47:10 not good enough ? Mar 26 07:47:14 for what ? Mar 26 07:47:15 Graphics have to fit aswell. You can't put a 50ft graphic in drawable for a drawable-ldpi screen Mar 26 07:47:38 mobydev: i guess you have read this: http://developer.android.com/guide/topics/ui/overview.html ? Mar 26 07:47:40 depends what your drawable is Mar 26 07:48:33 with bitmaps yeah, 50ft would be a bit too much to do sets for Mar 26 07:48:38 but shapeDrawables fine Mar 26 07:48:41 let me try something..... Mar 26 07:48:42 buttons Mar 26 07:48:44 AFK Mar 26 07:49:43 By the way.. did anyone handle subscriptions yet? Mar 26 08:02:21 and absolute layout saves the day Mar 26 08:02:31 screw you relative layout.. Mar 26 08:03:48 yup it all relative :P Mar 26 08:04:46 absolute was dep. for relative no ? Mar 26 08:05:18 LinearLayout ftw. Mar 26 08:06:48 deprecated ? Mar 26 08:06:55 don't know Mar 26 08:07:02 but everything is where i want it Mar 26 08:08:07 relative layout in most cases the most reasonnable layout. absolute layout is deprecated for a good reason Mar 26 08:08:13 never ever palce anything absolute Mar 26 08:08:22 it won't work well and doesnt make even sense Mar 26 08:14:14 I still can't figure how to reset my iap from my testing account, any ideas? Mar 26 08:14:48 relative didn't work, so i went absolute. what i see on the editor screen now matches what i see on my devices. Mar 26 08:21:58 don't see why relativeLayout would not work in proper use Mar 26 08:23:50 what happens after a 1 month subscription expired? It will be extended automatically but will the user be informed about that? Mar 26 09:29:06 hmm, who was i talking to the other day about Nik plugins. maybe Chainfire ? http://www.theverge.com/2013/3/26/4147764/google-drops-price-of-nik-photography-plugin-collection-to-149 Mar 26 09:32:49 wasnt me Mar 26 09:32:55 but I have lots of trash to talk about it ;) Mar 26 09:33:05 trash talk about Nik plugins :) Mar 26 09:33:18 well not the plugins, they're great, I own them Mar 26 09:33:26 but I can't say I'm happy about Google purchasing Nik Mar 26 09:33:44 get ready for these plugins to disappear. Mar 26 09:33:46 oh yeah, i'm wondering if this is the move before they just cancel everything Mar 26 09:33:58 I was trashing it Mar 26 09:34:01 :) Mar 26 09:34:11 and contrary to what the average lurker will probably interpret, I am not thinking that in response to Reader Mar 26 09:34:24 but rather, Photoshop plugins have no connection with ... anything ... Google does Mar 26 09:34:32 yeah , exactly Mar 26 09:34:40 so either Google is coming out with a Photoshop competitor, or these plugins are being ditched Mar 26 09:34:54 g00s, im sure youve seen that people are finding lte in the valley Mar 26 09:34:56 Chainfire: Google Docs but for drawing? Mar 26 09:35:00 someone in nw phoenix posted Mar 26 09:35:05 someone at the 101 and university did too Mar 26 09:35:10 or, Google will do something completely out of character and not be evil, which would be doubtful at best Mar 26 09:35:16 havent seen anything myself though :( Mar 26 09:35:19 MorkBork: cool :) btw, i don't even have a cell phone any more ;) Mar 26 09:35:28 i mean, i have my droid-1, but no service Mar 26 09:35:30 I wouldn't bless any company with either good or evil Mar 26 09:35:48 ah bummer Mar 26 09:36:01 MorkBork: you're up late for phoenix time :) Mar 26 09:36:07 yea Mar 26 09:36:22 i rerolled this n4 to have lte earlier in the afternoon Mar 26 09:36:26 was kind of looking forward to testing it Mar 26 09:36:30 either way, I think there are some real Nik fans inside Google (like Romain ?) but I doubt it'll be enough to keep it alive. Shall we place bets on them still being around in 5 years? :) Mar 26 09:36:31 but i think ill just be heading to bed Mar 26 09:36:32 Any of you guys know how to reset in app purchases in google play for my test account so I can buy the item again - as if for the first time. Mar 26 09:36:59 Chainfire: yeah, google would piss off a lot of pro photographers too Mar 26 09:37:15 and it also sort of sucks because they used these plugins to sort-of decimate the photo-editing market on Android Mar 26 09:37:21 Chainfire: I think Google mainly works on Google products, so I probably expect it to be rolled into G+ Mar 26 09:37:30 or a standalone service Mar 26 09:37:31 appel1, if you figurd that out let me know how.. :-) Mar 26 09:38:05 belgianguy its already integrated into G+, they used Nik technology as base for the new photo editing features, I think Mar 26 09:38:16 that's the whole reason they bought Nik, if I had to guess Mar 26 09:39:02 Chainfire: then it's likely they wish to expand upon those features, but perhaps the Photoshop realm is so far from Google's core business that they'll let it be? Mar 26 09:39:29 so... is it time to start using Butter Knife in every android project I write yet? Mar 26 09:39:34 maybe. but it seems doubtful we'll see further development on the PS plugings Mar 26 09:40:02 Chainfire: yeah, as a user of their products that must indeed be a grim outlook Mar 26 09:40:14 on the other hand, if Nik's previous owner was a real photo buff I can hardly imagine them selling the company without some guarantees regarding this kind of stuff Mar 26 09:40:25 but for me it makes sense that Google meshes all their talent into their own products Mar 26 09:40:31 then again, wave enough money at somebody, and maybe the owners were businessmen, not techies Mar 26 09:41:05 belgianguy sounds an awful lot like why everybody bashed Microsoft 10 years ago. Mar 26 09:41:06 Chainfire: dunno why google can't give a roadmap for fucking anything, especially something like this Mar 26 09:41:45 anyhow, oreilly 50% of some android books today http://shop.oreilly.com/category/deals/android-owo.do?code=WKANDRD Mar 26 09:42:48 "CyanogenMod founder Steve Kondik leaves Samsung, criticizes TouchWiz on way out" : "TOUCHWIZ FEELS LIKE IT HAS BEEN SENT A FEW YEARS BACK IN TIME TO THE FROYO DAYS." Mar 26 09:43:01 has ever felt any different ? Mar 26 09:43:04 ha Mar 26 09:43:05 oops, didn't mean to shout :) Mar 26 09:43:07 I feel froyo when I use my S3 Mar 26 09:43:25 feel the froyo ! Mar 26 09:43:30 they really did their best porting the Android 2.x theme to 4.x Mar 26 09:43:42 no wonder he founded cyanogen after working for samsung Mar 26 09:43:59 for funsies, try 2.3 on an S2, then update to 4.0 ... they look exactly the same Mar 26 09:44:22 iirc that was a deliberate move on their part because they "didn't want to confuse users" Mar 26 09:44:32 that is the sole reason I went from supporting DeviceDefault on 4.x to HoloDamnit Mar 26 09:45:01 I don't like the Samsung omens as of lately Mar 26 09:45:04 consistent user experience my ass, you'll get a gazillion 5* comments on your app just for restricting it to Holo on a Samsung device. Everybody hates Samsung theme :) Mar 26 09:45:22 are they getting the upper hand in the Android - Samsung relation? Mar 26 09:45:36 storkme Steve Kondik started CyanogenMod years before he started working for Samsung Mar 26 09:45:57 belgianguy: i thought one of the samsung guys thought Andy Rubin was hard to work with Mar 26 09:46:13 i thought he might have done i just thought it made a nice joke Mar 26 09:46:58 g00s: haha try working with Samsung :') I've done so repeatedly over the years across various platforms. Different levels of engineers, managers and other contacts. Samsung is very difficult to work with. Mar 26 09:47:12 g00s: ah, didn't know that, but Rubin's no longer head of Android, right? Mar 26 09:47:25 the Chrome lead took over IIRC Mar 26 09:47:25 yeah Mar 26 09:47:52 I wonder how long Samsung will keep Android around if Tizen takes off Mar 26 09:47:55 hello if i keep a singleton instance in Application Context does this prevent it from garbage collection? Mar 26 09:48:02 a reference Mar 26 09:48:24 "Once Rubin took a position, “you weren’t going to get him to deviate from that position,” Samsung chief product officer Kevin Packingham said" Mar 26 09:48:40 but hey, it could have been the better good for us Mar 26 09:48:45 * g00s doesn't trust samsung either ;) Mar 26 09:48:52 does anyone? Mar 26 09:49:05 How do you query a providers methods Mar 26 09:49:32 * StingRay_ loves samsung Mar 26 09:49:41 droidbuster: i'm sure in the past 5 years someone has put up a tut on how to do that Mar 26 09:49:49 they fixed my microwave in 1 day, even though I had it for 2 years Mar 26 09:50:09 one of the problems with Samsung is that the guys making the decisions really don't care about Android at all. They don't even like Google. It's the engineers one level below that who care, but have little to say Mar 26 09:50:16 * Chainfire knows a couple of engineers at that level Mar 26 09:50:44 and contrary to a well-run western company, feedback going up might as well go to /dev/null Mar 26 09:52:05 (at least that's what they tell me, shrug) Mar 26 09:54:15 Goos can u put a link im mobile and it is easier to just open a link tuan to google ll Mar 26 09:56:12 .. Mar 26 09:56:39 Problem with samsung is it's state run Mar 26 09:56:41 :) Mar 26 09:56:54 Chainfire: yeah, there's all sorts of odd issues with their in-house apps Mar 26 09:56:57 oh yeah, its huge - hard to understand the structure of it Mar 26 09:57:11 the IR TV app only works with US settop boxes it appears Mar 26 09:57:32 Peel or what's it called Mar 26 10:00:04 What I'd like to know is why some of the apps from Samsung's app store have additional, and highly invasive permissions, when the very same apps on Google Play or Amazon's app store don't have those same invasive permissions Mar 26 10:00:22 #1 culprit the Galaga app Mar 26 10:01:38 I love my note II, but I'm totally tinhattedly convinced it's spying on me due to a variety of little indicators I've come across that can only be attributed to Samsung chicanery Mar 26 10:01:39 ;) Mar 26 10:01:50 hrm. animating expandable list view.. Mar 26 10:03:31 i have a question about publishing.. i'm currently setting up a system that build my app nightly from a git repos. This works. Now when the times comes i want to tag a version for release. It then builds a signed apk (works).. i'm currently searching for a way to automaticly publish it from command line (is this possible?!?!) Mar 26 10:04:25 How does a Subscription acually work? Ive a Subscription and received my PurchaseID and ORderID. I stored it on a Server. But what happens after the month is over? Does the user get informed again to extend the Subscription or does it work without any confirmation? How do i check this serverside? Mar 26 10:11:48 capella: http://www.computerworld.com/s/article/9237847/Ad_industry_threatens_Firefox_users_with_more_ads_if_Mozilla_moves_on_tracking_plans Mar 26 10:11:51 \o/ Mar 26 10:12:33 Oh that is juicy ! Mar 26 10:13:13 i'm so proud of you guys ;) Mar 26 10:13:43 You love us !!! You really love us !!!!! Mar 26 10:14:16 alright, i need advice, badly :( Mar 26 10:14:28 i can give bad advice Mar 26 10:14:42 i can give fair advice badly Mar 26 10:14:46 * g00s can give wrong advice Mar 26 10:14:56 capella and g00s have balls2thewall covered Mar 26 10:15:20 im in the middle of rolling my on graphs since the existing graphing engines on android are like, not very good :/ . and i need a way to label the grid in the background (think values along each axis) Mar 26 10:16:03 no i really dont want to render text with opengl since that would add an extra week on getting it right. and moving around textView is abysmally slow Mar 26 10:16:52 the question is. is moving views around intended to be horrifically bad or theres a trick to it Mar 26 10:17:16 g00s: Ad people are cracking up over this .... here's another Ad group with the right attitude http://www.digiday.com/publishers/are-third-party-cookies-worth-saving/ Mar 26 10:17:17 Best quote: “The argument that third-party cookies are needed for self-regulation to prevent third-party cookies is insane” Mar 26 10:20:06 AHAHAHAHA .... another guy quotes: "If Mozilla follows through on its plan ... the disruption will disenfranchise /every single Internet user/" Mar 26 10:20:29 We own Browsing !!!!!!! Mar 26 10:22:18 lol Mar 26 10:23:20 I have a question : http://pthree.org/2012/02/17/ecb-vs-cbc-encryption/ : that ubuntu logo, using both forms of enc. they seem to end up with same length data (presumed since it's an image), is that just a faked example or is that somewhat true ? Mar 26 10:24:43 where is that faggot operator who use to be here? Mar 26 10:25:27 capella: could they use localstorage instead ? Mar 26 10:25:45 supercookies you mean? Mar 26 10:26:18 not sure … html5 local storage Mar 26 10:26:33 Im not real familiar with that stuff but I supposed thats the next natural overreach on their part Mar 26 10:27:47 https://bugzilla.mozilla.org/show_bug.cgi?id=536509 Mar 26 10:29:00 * capella reads... Mar 26 10:29:14 another good quote: "The Internet was created on the foundations of advertising," said Jaffe. Mar 26 10:29:22 bwahahaha Mar 26 10:29:42 hey, dont piss off the goog ;) Mar 26 10:33:07 hmmm that bug looks like it went silent ... references another superseding effort that will address the issue .... trying to locate it Mar 26 10:35:56 StingRay_: AES output in 128bit (=16 Byte) has fixed block lengths. So not just 'somewhat' true. Mar 26 10:36:06 The blocksize doesn't change, only the way of encryption. Mar 26 10:37:21 kakazza: so if i rip header info etc, and use AES CBC on the image data, I would get it like that ? (if I re-attach headers) ? Mar 26 10:37:29 cause that just looks cool :) Mar 26 10:37:51 maybe quicker to generate random colour noise to represent it though :) Mar 26 10:38:13 Yeah, random colour noise would do the trick, too. Mar 26 10:38:22 AES-CBC-FTW! Mar 26 10:38:42 i thought though that it outputs in chunks of length of encrypt key ? Mar 26 10:38:49 128 Mar 26 10:38:57 192, 256 ? Mar 26 10:39:15 but the data is not guaranteed to fit that acheme ? Mar 26 10:39:19 scheme * Mar 26 10:39:20 StingRay_: yes, you need a padding algorithm to make the data a multiple of the block size Mar 26 10:39:24 128bit, 192bit, 256bit. So 16, 24 and 32byte blocksize. +padding. Mar 26 10:39:30 StingRay_: and the typical padding algorithms are reversible Mar 26 10:39:36 https://en.wikipedia.org/wiki/Padding_%28cryptography%29 Mar 26 10:39:47 PKCS5 pading Mar 26 10:40:20 well for my purposes I'm using a user entered pass key Mar 26 10:40:33 so I kinda need the key to be non-random Mar 26 10:40:34 :) Mar 26 10:40:52 You can use PBKDF2 to get a somewhat better key out of the password. Mar 26 10:41:02 or XKCD538 padding Mar 26 10:41:17 You're new to cryptography it seems. You're not doing any security critical work, are you? Mar 26 10:41:29 fk no Mar 26 10:41:38 5 hours fresh into enc. Mar 26 10:42:07 what are you encrypting? are you aware of the CipherOutputStream class? Mar 26 10:43:15 string data Mar 26 10:43:18 messages Mar 26 10:43:31 that outputstream is great for that Mar 26 10:43:49 so using SecretKeyFactory with PBKDF2 and fixed iterations salt and key length would produce same keySpec ? Mar 26 10:43:51 capella: curious; what ff extensions do you use ? Mar 26 10:44:37 ugh, running in circles here, I have raw sensor data (gyro, accellero, magneto) but wish to extract from them the orientation of the device Mar 26 10:44:43 this is NDK btw Mar 26 10:44:45 On mobile I only use two: adblock and quitnow (I wrote the last one when we took away the main menu |Quit| item) Mar 26 10:45:00 belgianguy: isn't the accelerometer enough? Mar 26 10:45:19 capella: what about desktop? Mar 26 10:45:36 Xabster: I've read many sources that use a complementary filter or a Kalman filter Mar 26 10:45:46 and combine accelero and gyro Mar 26 10:45:53 and sometimes even magnetometer readings Mar 26 10:45:56 for orientation? Mar 26 10:46:00 Xabster: yes Mar 26 10:46:02 why? Mar 26 10:46:03 belgianguy: i think there are a few sensor fusion libraries available Mar 26 10:46:09 g00s: on desktop I have a bunch: adblock plus, chatzilla, firebug, dom inspector, flashblock, ghostery, scriptish, web developer, xpcomviewer, Mar 26 10:46:37 Xabster: because one is vulnerable to vibrations and the other is vulnerable to drift Mar 26 10:46:40 capella: hm, you prefer ghostery over DoNotTrackMe? Mar 26 10:46:45 and a filter cancels that out Mar 26 10:46:59 Never tried that one Mar 26 10:47:13 right, when I did this my accelerometer sensor had built-in filter so I didn't need any of that Mar 26 10:47:17 StingRay_: As in, same output for same input with other parameters staying the same? Yes, that's the whole point. But try it for yourself too. Mar 26 10:47:19 my accelerometer doesn't drift Mar 26 10:47:30 Xabster: afaik, the gyro drifts Mar 26 10:47:42 I just initialized the accelerometer with a sample rate (low pass filter) Mar 26 10:47:49 and the accelerometer is vulnerable to vibration (spikes if you tab on the screen etc) Mar 26 10:47:50 belgianguy: gyro not needed for orientation Mar 26 10:47:56 i had filter on acc Mar 26 10:47:59 just wrote it :p Mar 26 10:48:25 yeah low pass filter can help to mitigate the spikes Mar 26 10:49:06 well, do you have non-filtered results now? Mar 26 10:49:12 cause you might want to add a filter later Mar 26 10:49:23 just to split up the problem into 2 sup parts Mar 26 10:49:34 Xabster: yeah, I have the raw results now, and was thinking of implementing a FilterFactory of some sort Mar 26 10:49:45 and have a 'null' filter in it that just functions as pass through Mar 26 10:50:04 are these standards devices? is there no way to configure it to use some low pass filter? Mar 26 10:50:05 and then I could experiment with a LPF, or a complementary filter etc Mar 26 10:50:05 capella: thx Mar 26 10:50:09 it was more than fine for me Mar 26 10:50:13 sure :) Mar 26 10:50:40 Xabster: getting the acc to work probably would be my first target Mar 26 10:50:50 I have the data it outputs, and I have a 3D scene Mar 26 10:50:53 well, didn't you just say you had results? Mar 26 10:51:02 and I just want it to do something when I tilt my device Mar 26 10:51:09 okay, so you need to convert the acc results to a vector of sorts Mar 26 10:51:19 that points to the ground Mar 26 10:51:41 or rather, a set of angles for your device Mar 26 10:51:49 on all axis Mar 26 10:53:01 Xabster: atm, I have this as output http://pastebin.com/31kBnMw0 Mar 26 10:53:33 I switched the signs and divided it by ASENSOR_STANDARD_GRAVITY Mar 26 10:54:03 the e->acceleration.x, y and z are the raw values Mar 26 10:54:32 yes, i understand Mar 26 10:54:42 now you'd like those values to be the devices angles, right? Mar 26 10:54:49 in degrees or radians Mar 26 10:56:16 Xabster: doesn't matter, whatever my physics engine will lap up :) Mar 26 10:56:27 then what is your question/problem? Mar 26 10:56:51 Xabster: the rendering of my item Mar 26 10:57:01 I want it to slide if I tilt my device Mar 26 10:57:13 (it's a 3D scene Mar 26 10:57:44 hmm, my problem might be Physics 101 Mar 26 10:58:16 well, your first problem is converting the raw accelerometer results to an angles Mar 26 10:58:41 there's no physics engine (i think) that will just work off of a 3D-vector with 1/GRAVITY values Mar 26 10:59:51 Xabster: correct, Mar 26 11:00:30 Xabster: but I believe I did that division to get a value expressed in 'g' Mar 26 11:00:41 yes Mar 26 11:00:51 that's good, it will rule out the device's setting Mar 26 11:01:06 some devices can be configured to measure 1,2,4,8,16 g's and provide results in that Mar 26 11:01:06 anyone have any experience with Scaloid? :P Mar 26 11:01:19 belgianguy, this is how you calculate the angles: http://biosport.ucdavis.edu/blog/how-to-calculate-static-lean-and-pitch-angles-from-accelerometer-measurements Mar 26 11:02:06 note that the article appears to be using m/s^2 units, and not 1/g Mar 26 11:02:19 so you need to multiply by 9.82 or whatever Mar 26 11:02:36 they use 9.77, but in denmark it's 9.82! Mar 26 11:02:47 kakazza: just so I'm clear, if I want messages that are secure and I reply on user input password and AES CBC, the password never being stored thats ok ? (this is more for me to look into rather than definitive answer) Mar 26 11:03:07 never being stored? Mar 26 11:03:19 cause there is soooo much info on encryption, and so many apposing views Mar 26 11:03:26 Xabster: yes Mar 26 11:03:33 it is stored, somehow Mar 26 11:03:37 do you mean never written to a file? Mar 26 11:03:43 indeed yes Mar 26 11:04:00 okay, and is it a preshared key? ie do both sender and receiver know it forehand? Mar 26 11:04:08 yes Mar 26 11:04:12 verbally Mar 26 11:04:19 good old verbally :) Mar 26 11:04:26 or bit of paper :) Mar 26 11:04:27 then there's no reason to store it persitently, unless you wanna save the user from entering over and over again Mar 26 11:04:38 the good old morse-signal way of sharing a key is good! Mar 26 11:04:41 or smoke signals Mar 26 11:04:50 or combination! Mar 26 11:04:53 those card lookup things are good Mar 26 11:05:05 whatever they are called Mar 26 11:05:10 that have a key table Mar 26 11:05:29 StingRay_, when you use CBC you need an initialization vector, that initialization vector is public knowledge Mar 26 11:05:33 and safe to share with anyone Mar 26 11:06:06 ok cool so that can be static in my app Mar 26 11:06:20 can I build iv from password ? Mar 26 11:06:32 thats just a byte[] too ? Mar 26 11:06:41 http://pastebin.com/EHLL8FBj Mar 26 11:06:46 look at that, it's one of my methods Mar 26 11:06:59 I deleted a string i don't want to share, and ignore the time parameters Mar 26 11:07:23 this is the IV: http://pastebin.com/LDnCJiGB Mar 26 11:07:34 you should not make it from the password, no Mar 26 11:07:45 that's unsecure for the password, and it voids the idea of an IV Mar 26 11:07:47 it should be random Mar 26 11:07:55 insecure* Mar 26 11:08:02 ok now I'm a little confused Mar 26 11:08:10 the iv would change every time ? Mar 26 11:08:24 more often is better, yes Mar 26 11:08:27 how would that produce the same result ? Mar 26 11:08:30 but once for each package is fine Mar 26 11:08:39 it doesn't exactly, that's the idea Mar 26 11:08:46 do you understand the reason for using CBC? Mar 26 11:09:18 well from what I read in the last 5 hours, length is my main reason Mar 26 11:09:27 that's not true at all Mar 26 11:09:56 consider a hypothetical: you're encrypting something with a byte blocksize (8 bit) and you want to send "hello" Mar 26 11:10:06 the h becomes v (or whatever) Mar 26 11:10:19 e becomes u, l becomes p, o becomes q Mar 26 11:10:31 that would give vuppq Mar 26 11:10:44 the p's are the same, so the intruder can see that you sent 2 identical chars in a row Mar 26 11:10:44 StingRay_: basically, you need a stable way of creating "initial state" of the cryptosystem, which includes key and various other initial values. So, to decrypt something with AES-CBC, you need to have key *and* IV Mar 26 11:10:46 vupoq yeah Mar 26 11:10:54 vuppq* Mar 26 11:10:59 ll = pp Mar 26 11:11:11 and the malicious user gained information that you sent the same char twice in that word Mar 26 11:11:42 on longer sentences you could use a dictionary and cross reference it to see which words fit that, and with enough data you could crack it Mar 26 11:11:48 cause each char is the same each time Mar 26 11:12:04 wikipedia got great example of why ECB mode of AES is broken (i.e., just applying AES directly on data with single key) Mar 26 11:12:06 ok understood Mar 26 11:12:21 you know for instance that you didn't send "world" cause world doesn't have 2 repeating chars at location 3 and 4 Mar 26 11:12:55 StingRay_: http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation#Electronic_codebook_.28ECB.29 <--- look at the comparison image Mar 26 11:13:10 ECB is "encrypt each block with crypto directly" Mar 26 11:13:33 this is where CBC comes in handy, it chains each block of encrypted data, basicly meaning that it will both use the output from last block, the new block and the cipher, and not just the new block and the cipher Mar 26 11:13:40 making each block dependent on the former Mar 26 11:13:47 except, the first block has no former block Mar 26 11:14:01 so you create a random one, and gives it out publicly Mar 26 11:14:19 downside being that if you want to decrypt something in the end, you have to decrypt everything Mar 26 11:14:32 yes, and tampering screws up all of it Mar 26 11:14:38 this is where a MAC comes in handy :) Mar 26 11:14:51 hmm Mar 26 11:15:10 so tis pref to have random IV Mar 26 11:15:19 but.. Mar 26 11:15:26 you should *never* base the IV on the password Mar 26 11:15:28 ever ever Mar 26 11:15:37 i posted a method to make a random IV Mar 26 11:15:56 but as you say, need the password/key and iv at both ends Mar 26 11:16:06 no, the IV is public Mar 26 11:16:12 if you go to the other code i posted Mar 26 11:16:24 Xabster: in disk encryption, you don't have much choice. The best method is ESSIV which is based on sector number + password hashed together Mar 26 11:16:31 i first write the IV to the filestream, then I write the ciphertext to the CipherOutputStream Mar 26 11:16:45 it's still susceptible to watermarking if you are writing the same data to the same sector Mar 26 11:16:47 flodin, indeed, but he's not Mar 26 11:17:11 writing directly to filestream is not encrypted Mar 26 11:17:21 and writing to the cipheroutputstream encrypts the data Mar 26 11:17:33 so the first 16 bytes are freely available to anyone reading the file/stream/whatever Mar 26 11:17:39 well actually I guess there is a choice of storing the IV in the sector and losing some disk space Mar 26 11:18:03 flodin, yeah, if you don't care about the overhead you can do it Mar 26 11:18:13 I do Mar 26 11:18:15 or compromise and have an IV for many blocks Mar 26 11:18:19 physical sectors are like 8 KB anyway Mar 26 11:18:22 this is just a simple messenger app Mar 26 11:19:31 i'm still at a loss as to how an encrypted string sent from a to b doesn't need the same IV at both ends ? Mar 26 11:20:40 has to be the same IV Mar 26 11:20:53 StingRay_, is this easier to read? http://pastebin.com/c9XZ1Ew8 Mar 26 11:21:00 StingRay_, it does the same IV Mar 26 11:21:11 you'll write it at the start of the message without encrypting it Mar 26 11:21:24 oh now that makes sense Mar 26 11:21:26 :) Mar 26 11:21:34 or exchange it via asymetric encryption Mar 26 11:23:09 does this channel have an eval bot? one that runs code and posts result? Mar 26 11:23:15 so basically I could write the bytes of the IV anyplace in the byte[] that I'm sending ? maybe even positioned by some of the password values? Mar 26 11:23:28 there's no need to try and hide it Mar 26 11:23:30 it's secure Mar 26 11:23:37 oh, ok Mar 26 11:24:00 it only has the purpose to make your ciphertext not repeat blocks with same input Mar 26 11:24:14 so that "ll" does not become "pp" like before Mar 26 11:24:41 yip so the result will be harder to be recognized and rainbowtabled Mar 26 11:24:53 what's this channels policy on bots? Mar 26 11:24:56 so does it use the iv like an index offset or something ? Mar 26 11:25:09 that wraps Mar 26 11:25:20 StingRay_, the IV is used along with the very first block of your data Mar 26 11:25:25 then it's no longer used Mar 26 11:25:55 for the next block it uses the output of the last "mix" from the first block as a V (not IV, cause I is initial) Mar 26 11:25:55 oh yeah, cause each block uses the one b4 Mar 26 11:26:02 yes, hence chained Mar 26 11:26:14 quite clever stuff this Mar 26 11:26:16 :) Mar 26 11:26:27 indeed, whoever came up with it many years ago was not stupid Mar 26 11:26:34 i bet he never starred on reality TV Mar 26 11:26:36 http://pastebin.com/MXi61v78 any help for google maps for android v2? Mar 26 11:26:42 if you try to encrypt let's say "abc" and this abc repeats a couple of times... odds are that "abc" becomes "#$%" encrypted so we then know #$% === abc so we can serach for that in all the encrypted strings and know if you use the IV abc becomes #$% the first time and the second time it becomes %&* so we can't match it Mar 26 11:26:48 it's normal this situation? Mar 26 11:27:23 thanks for the explanation guys Mar 26 11:28:01 if I have to use the encrypted byte[] in a limited char context, hexing it is the best way ? Mar 26 11:28:53 oh and if you ever want to know anything about 3d/cgi/vfx etc. I here for ya btw ;) Mar 26 11:29:00 limited char context? Mar 26 11:29:37 well I take it the encrypted data converted back to a char based thing is going to look a mess Mar 26 11:29:49 hey timroes are you here? Mar 26 11:30:18 StingRay_, it will look like the data before it was encrypted... Mar 26 11:30:29 oh, you mean output the ciphertext Mar 26 11:30:33 ya Mar 26 11:30:35 yeah i guess hex is good Mar 26 11:30:39 you String.format() Mar 26 11:30:42 use* Mar 26 11:56:12 squ: more or less Mar 26 11:57:07 lets say more less :) Mar 26 12:09:52 any channel ops around? Mar 26 12:12:49 My first activity disables a button and then starts the next one. How do I make the button enabled again after pressing back? Mar 26 12:13:01 (starts the next activity) Mar 26 12:13:42 when I check if it's enabled in oncreate and then enable if it's not doesn't work. Mar 26 12:17:58 Xabster: any reason to using cipherOutputStream if your not writing to files ? Mar 26 12:18:17 It works on a socket's stream too, if you do network Mar 26 12:18:33 it's just easier than to loop over your resulting byte array and write each of it yourself Mar 26 12:19:58 whywhywhy: because onCreate is not called when you go back to your acitivty Mar 26 12:20:14 http://developer.android.com/training/basics/activity-lifecycle/index.html work through the getting statrte tutorials, to see how android works Mar 26 12:20:28 but for me I would just append the enc byte[] to ivbytes[] ? Mar 26 12:20:35 and that would be fine? Mar 26 12:20:48 it would probably be fine Mar 26 12:21:20 StingRay_ aside from possibly being easier than using a byte array, streams also allow you to (omg) stream stuff on-the-go instead of doing operations one-by-one. Imagine running data through compression, encryption, a protocol stream, and finally a socket ... Mar 26 12:24:46 okay. Just gave up with the crappy crappy subscriptions.. -_- Never seen something crapshit like that. -_- Mar 26 12:28:16 Chainfire: suppose, but atm I don't really need that, this is going back to hex Mar 26 12:28:25 suppose I could use ByteArrayOutputStream Mar 26 12:32:10 isn't that the one that insists on creating its own byte[] buffer Mar 26 12:32:26 totally kills GC Mar 26 12:32:35 really? Mar 26 12:32:50 when you say 'kills gc' what do you mean by that Mar 26 12:33:09 myeah I'm pretty sure I made a basic subclass so I can pass it a buffer to use myself Mar 26 12:33:14 somehwer ... Mar 26 12:33:49 storkme> if you'd need to use it a lot in tight loops, the creation and deletion of that internal byte[] buffer will start triggering the garbage collector Mar 26 12:33:58 which in turn will significantly decrease your app's performance Mar 26 12:34:37 so initialize it with a large enough buffer? Mar 26 12:35:13 Chainfire: I would need a BAOS to getBytes[] from a FOS new ays ? Mar 26 12:35:17 the standard class doesn't allow you to ;) Mar 26 12:35:32 anyway* Mar 26 12:35:34 https://developer.android.com/reference/java/io/ByteArrayOutputStream.html#ByteArrayOutputStream(int) Mar 26 12:36:03 storkme you're missing the point Mar 26 12:36:23 certainly, perhaps you should elucidate on what your point actually is :p Mar 26 12:36:40 the size of the buffer doesn't matter Mar 26 12:36:45 that it needs to be allocated is Mar 26 12:37:04 in practice when you want to work with a BAOS you already have the data in some buffer, or already have the buffer the data needs to go into Mar 26 12:37:25 BAOS wanting to allocate it's own buffer, and returning a copy of that when you need it as byte[]'s, is the problem Mar 26 12:37:37 as a lot of the time it simply isn't needed, and can trigger the GC Mar 26 12:38:10 StingRay_ getBytes[] from a FOS ? Mar 26 12:38:14 can't you just read ? Mar 26 12:38:19 can I ? Mar 26 12:38:27 not an output stream Mar 26 12:38:32 there's a toByteArray method.. Mar 26 12:38:43 then I am blind Mar 26 12:38:56 or my eclipse is Mar 26 12:38:59 storkme ffs are you intentionally not reading what I write ? that allocates ANOTHER buffer and copies the data into it Mar 26 12:39:04 also, you said you were worried about it creating/deleting a lot of new buffers inside a tight loop - the solution to that is to create it with an appropriate buffer size so it doesn't have to keep creating new buffers Mar 26 12:39:55 thats why you want to pass it your own buffer, so it doesnt need to do that Mar 26 12:40:22 StingRay_ eh.. why are you trying to read from an outputstream ? Mar 26 12:41:08 using CipherOS Mar 26 12:41:20 encode IV + data Mar 26 12:41:26 option to write to file Mar 26 12:41:35 but need result as hex atm Mar 26 12:41:42 StingRay_ Mar 26 12:41:44 -exec String b = "Xabster1Xabster1"; javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding"); c.init(javax.crypto.Cipher.ENCRYPT_MODE, new javax.crypto.spec.SecretKeySpec(b.getBytes(), "AES"), new javax.crypto.spec.IvParameterSpec(b.getBytes())); javax.crypto.CipherOutputStream cos = new javax.crypto.CipherOutputStream(System.err, c); cos.write(b.getBytes()); Mar 26 12:41:44 cos.close(); Mar 26 12:41:45 ÐÓ�ÞŒïh¼Ô{Ú±�{Žä Mar 26 12:42:21 wtf.... Mar 26 12:42:26 how did you do that ? Mar 26 12:42:30 also, Mar 26 12:42:30 -exec for (byte b : "hello".getBytes()) System.out.print(String.format("%02X ", b)); Mar 26 12:42:31 68 65 6C 6C 6F Mar 26 12:42:40 thats fkin amazing Mar 26 12:42:40 StingRay_ you want to read the encrypted data? you're doing it wrong in that case. the encrypted data goes to the outputstream you pass in the constructor of CipherOS ? Mar 26 12:42:42 :) Mar 26 12:43:31 afk shower :) Mar 26 12:43:32 StingRay_ oh.. now I get it indeed. You pass a BAOS to CipherOS and then use getBytes to read it. Didn't understand the question I guess :D Mar 26 12:44:02 I'm still shocked at Botster Mar 26 12:44:15 Wonder how long it'll be before Botster gets Xabster banned Mar 26 12:44:36 it accepts, compiles and runs code and outputs result here Mar 26 12:44:44 SimonVT, that's fine, if the ops don't want it Mar 26 12:45:04 i asked if you already had an eval bot, for your bot policy, and if an channel ops were around Mar 26 12:45:36 any of you guys javascripters? is there a way to force a paste from javascript? Mar 26 12:45:39 the -exec / -sysout command works in private too, so don't spam the channel Mar 26 12:47:31 Chainfire: yeah in my case allocation would be once Mar 26 12:47:51 why does having ScrollView morph my layout after it has been triggered? Mar 26 12:48:02 StingRay_, why not a bytebuffer? Mar 26 12:48:30 as in: No need for ScrollView, layout is fine. Need for scrollView (keyboard pops up for example) > ScrollView is triggered, layout changes and doesnt change back when keyboard goes away Mar 26 12:58:02 mornin Mar 26 13:00:46 Sicp: what do you mean changes? Mar 26 13:08:01 timroes|afk, my app is on google play! :) Mar 26 13:08:14 grats link Mar 26 13:08:24 'latvenergo' Mar 26 13:08:59 https://play.google.com/store/apps/details?id=lv.dot44.latvenergo this? Mar 26 13:09:03 yep Mar 26 13:09:16 unfortunately it doesn't have english version :-) Mar 26 13:09:24 yeah and a good design :D Mar 26 13:09:30 but both things that can be worked on Mar 26 13:09:46 take a look :) Mar 26 13:10:42 i did Mar 26 13:10:45 even downloaded it :) Mar 26 13:11:35 looks nice Mar 26 13:11:37 how can i properly create a touchdelegate in a fragment? Mar 26 13:11:56 you helped to make these first 4 buttons, such that they can be clicked and also a row can be highlighted Mar 26 13:11:56 Squ you reallly really really should get some app designers in your ocmpany :) Mar 26 13:12:10 and vice versa Mar 26 13:13:00 timroes|afk, if you click on button (i) you get black info balloon Mar 26 13:13:14 I still have no idea how to position its center relative to button Mar 26 13:13:27 Xabster: question about key length, is there a good way to up or down the string to 128/256 ? Mar 26 13:13:41 what string? Mar 26 13:14:00 well bytes from the password Mar 26 13:14:50 cause SecretKeySpec throws me a key length not exception Mar 26 13:15:03 timroes|afk, you add kilowatts once per month only, so if you want charts you need to switch dates and relaunch app Mar 26 13:15:23 okay beside the crappy alyout even functional problems Mar 26 13:15:30 :( Mar 26 13:15:33 but if you have it stable running , you should take the time and redesign it Mar 26 13:15:36 to make it an android app Mar 26 13:15:42 this looks sooo displaced on my phone Mar 26 13:15:51 what phone do you have? Mar 26 13:15:56 samsung galaxy nexus Mar 26 13:15:56 so what i mean to say was, what if a pass key don't have 16 chars Mar 26 13:16:03 but do make it short: an android phone Mar 26 13:16:10 yea, we designed it for xperia Mar 26 13:16:24 no you designed it for iOS Mar 26 13:16:26 pixelperfect = terribad for android, just fyi. Mar 26 13:16:35 you fake the iOS bar no actionbar Mar 26 13:16:38 StingRay_: huh? Mar 26 13:16:45 :) Mar 26 13:16:49 there is nothing to see for holo style in that app Mar 26 13:17:05 the content in fact is even more windows phone like, than iOS Mar 26 13:17:05 one thing, click response is original blueish Mar 26 13:17:10 on actionbar :) Mar 26 13:17:12 StingRay_: I'm not exactly sure what you mean. You can always pad keys that are too short with empty values. Mar 26 13:17:26 its not about color, blue actionbar no problem: Mar 26 13:17:33 e.g. if you require 16+ characters, and the user only gives you 12, append " " to the end or something. Mar 26 13:17:38 you have icons on the left, you create an back icon in the actionbar, center the title Mar 26 13:17:50 i could imagine this app look wonderful in android design Mar 26 13:18:38 love : cheers Mar 26 13:18:39 I remember you were telling it me from the very beginning Mar 26 13:18:40 * kaneda^ pads lov Mar 26 13:18:44 :) Mar 26 13:18:48 if you want a very good example, what you can get out from holo see this app https://play.google.com/store/apps/details?id=at.markushi.expensemanager (yeah it has its quirks, but beside them this is a very good designed app) Mar 26 13:19:03 i would like to give this app the holo price of the year Mar 26 13:19:09 I just assumed that SecretKeySpec would do that for me since you pass it AES so it knows what it needs to be Mar 26 13:19:44 timroes|afk, will tell your point to the designers Mar 26 13:19:59 StingRay_: yeah, it's kind of surprising that it wouldn't. Mar 26 13:20:22 squ: sit your designers down, give them each an android phone, and make sure they each get a different android phone. Mar 26 13:20:40 give one of them a tablet too. Then tell them "Make me a design that works for all of these. Also, use these phones as personal devices for a month." Mar 26 13:20:57 if they only know or care about iOS, that's all you're going to get, and you're going to get shitty iOS ports. Mar 26 13:21:23 actually I personally find green/white balance too bright Mar 26 13:21:26 Squ some poitns; actionbar, don't fake windwos phone text fields, use more android like icons and not windows phone icons, (next/previous), don't toally fake buttons (e.g. second screen) Mar 26 13:21:40 yeah green white really depends on the screen you have i guess, how good you can read it Mar 26 13:22:30 I hope that those color schemes are ones that you've trademarked and have to use, because otherwise holy shit fire your designers. Mar 26 13:22:35 also app should choose colors according to current theme: dark/light Mar 26 13:22:49 you have "unhealthy lemon/lime" as your main color Mar 26 13:22:59 holo offers you dark/light theme, there is no user choice anymore in android for that theme stuff Mar 26 13:23:01 because if you drive a car during night time, turning on this app might be harmful :-) Mar 26 13:23:45 car navigators do change colors by night they become darker Mar 26 13:24:05 holo is a myth! Mar 26 13:24:20 storkme: https://play.google.com/store/apps/details?id=at.markushi.expensemanager luckily NOT Mar 26 13:24:42 Squ if you enter kwH once you h ave an infinite horizontal swiping amount of these barcode like boxes Mar 26 13:24:49 why i have entered only one? Mar 26 13:24:58 yep Mar 26 13:25:00 I hate it Mar 26 13:25:03 and there seem to be no difference, since nothing on the screen changes (like month) when switping them Mar 26 13:25:05 argued against it Mar 26 13:25:13 our client has said they don't want holo because they want a "consistent user experience across platforms" aka 'the Twitter delusion' Mar 26 13:25:16 against infinity swipe Mar 26 13:25:46 storkme: i would laugh, turn around and walk away Mar 26 13:25:52 forcing people to stick to holo is just as silly as forcing people to have a consistent look across platforms Mar 26 13:26:27 storkme: ask them if they'd like you to disable the back button and menu key too. Mar 26 13:26:31 timroes|afk, they have infinity swipe on iphone and wanted it on android too :) Mar 26 13:26:48 just beacause they have some crap on some other crappy platform doesn't mean they should port it Mar 26 13:27:16 I just grin and bear it. Work on real projects in my spare time. Mar 26 13:27:50 i prefere doing the real projects as main work, makes more fun if you get paid for it ;) Mar 26 13:28:03 ^^ Mar 26 13:28:14 storkme: unless you're a contractor or something, look for a new place to work. Mar 26 13:28:28 storkme: come work here Mar 26 13:28:55 don't work for mikedg unless you want to be a contractor working on turd polishing Mar 26 13:29:05 you'll actually be polishing mikedg's turds; he needs an executive poo handler. Mar 26 13:29:19 You have to pay for your own gloves so I wouldn't go too crazy Mar 26 13:29:32 timroes|afk, did you get to charts? Mar 26 13:30:27 yeah i'm actually really bad at android dev Mar 26 13:30:40 me too storkme, me too Mar 26 13:31:15 so i'm wary about leaving my job :D Mar 26 13:33:01 Squ didn't tried further :) Mar 26 13:33:07 :( Mar 26 13:33:23 it is most awesome part of app Mar 26 13:33:28 with crossfade Mar 26 13:33:29 ! Mar 26 13:33:43 storkme: it's ok Mar 26 13:34:30 storkme: there's no reason not to interview around. the worst that happens is someone says no. don't get stuck in a rut. Mar 26 13:34:44 lov, true that :) Mar 26 13:35:12 sage advice Mar 26 13:38:46 storkme: what if you interview at a place and they ask you to do the interview at a hotel Mar 26 13:38:49 and then rape you? Mar 26 13:38:59 i would sue the shit out of lov Mar 26 13:40:48 maybe you shouldn't interview with Rapists, Inc. ? Mar 26 13:41:05 I know that you read it as Therapists, but it's really The Rapists. Mar 26 13:41:59 do they pay well? Mar 26 13:42:25 yes, but they pay it in rape dollars so I'm not sure it's worth it. Mar 26 13:42:37 really I'd just advise you to stay away. Mar 26 13:42:38 butt dollahs? Mar 26 13:43:33 storkme: yes! Mar 26 13:43:37 (from like 6 hours ago) Mar 26 13:45:05 next project i promise. Mar 26 13:47:13 :| Mar 26 13:47:21 is this what normally happens before the pacific time people wake up Mar 26 13:48:21 dang ..... day crew's here Mar 26 13:48:26 butter, knives, and rape. Mar 26 13:48:33 moo Mar 26 13:49:00 JakeWharton: can you answer this in 6 hours too? Mar 26 13:49:36 JakeWharton, why are you up? Mar 26 13:49:37 :P Mar 26 13:49:44 i didn't pay for priority responses. Mar 26 13:50:57 JakeWharton is up because someone was in trouble and needs a library Mar 26 13:51:05 makes sense Mar 26 13:51:48 dude needs a cape. Mar 26 13:51:55 NO CAPES! Mar 26 13:53:46 he's needs a mask Mar 26 13:54:07 moooooooooooooo Mar 26 13:54:18 he needs a good reinforced coat and a fedora ;) Mar 26 13:54:40 a badass longcoat Mar 26 13:55:54 he needs a Fauxdora Mar 26 14:06:11 i need some annual goals for work Mar 26 14:06:13 any suggestions Mar 26 14:07:56 eh nevermind Mar 26 14:08:13 it's better to be aimless and find something to do than to have goals and flop Mar 26 14:08:13 no goals then? Mar 26 14:08:14 right? Mar 26 14:08:20 what are you working on these days Mar 26 14:08:39 personally? windows phone stuff and javascript crap here and there Mar 26 14:08:42 at work, financial apps Mar 26 14:09:27 although my windows phone app has been put on hold from updates because i can not have push and it together in my url for windows account login Mar 26 14:09:48 and they are taking forever to give me an exception Mar 26 14:10:18 "push" and "it"?? Mar 26 14:10:22 oh Mar 26 14:10:23 i get it Mar 26 14:10:32 they dont want any therapistfinder apps Mar 26 14:10:56 yup Mar 26 14:11:12 can you write a financial app that gives me money? Mar 26 14:11:14 i could see if it was named poosh it Mar 26 14:11:24 lol Mar 26 14:11:29 sure, whats your account and routing number and ill do direct deposit Mar 26 14:11:38 :D Mar 26 14:13:34 I have a sound that I play with soundpool, the sound plays in an infinite loop until I launch a new activity in my TimerTask. I stop the sound in onPause. The problem is that when I go back to the first activity and launch it again the sound never stops even when the second activity is launched. Any ideas? Mar 26 14:16:18 hello dudes Mar 26 14:16:54 i have a singleton in java via ENUM. I store the instance at Application object Mar 26 14:17:14 private Service service=Service.Instance; Mar 26 14:17:41 but i dont use this object from application but i use Service.Instance. It seems that it gets garbage collected Mar 26 14:17:54 probably i should use the one from application ? Mar 26 14:22:38 Parhs: Are you playing keyword bingo? I think you won./ Mar 26 14:26:44 if service.instance is garage colelcted, so is application.instance Mar 26 14:26:51 applications.service Mar 26 14:27:15 you cant make a singleton service :| Mar 26 14:29:09 it isnt a service exactly it is a custom class i call service Mar 26 14:29:25 you should PROBABLY call it something else. Mar 26 14:29:32 ok Mar 26 14:30:16 i put some logging stuff. It seems that when resuming activity it gets recreated. (put log at private constructor) Mar 26 14:30:36 if i resume activity after a while Mar 26 14:30:55 is it, and this is just a thought, possible that your application has been killed and recreated by the device as per the application lifecycle? Mar 26 14:31:06 canadiancow: east coast Mar 26 14:31:09 perhaps you wish to use an actual android service? Mar 26 14:31:14 ah... me too :) Mar 26 14:31:27 probably a diff country though :P Mar 26 14:33:44 maybe i should try to use application object Mar 26 14:34:53 Or just read up on android application lifecycle Mar 26 14:35:56 if my phone was bit by a zombie, will android still kill my activities? Mar 26 14:37:02 mikedg, yes, but they'll restart, and attack your other activities Mar 26 14:39:42 fortunately android uses Git as the version control system, so you can just detach the HEAD. Mar 26 14:41:39 for some reason I'm reminded of psDoom. Mar 26 14:42:16 psDoom, lol Mar 26 14:42:42 best way to kill processes ever :) Mar 26 14:44:29 was it possible to kill things like X, or even init in psdoom? Mar 26 14:44:31 I have not heard about psDoom until now, and now I wish I knew about it a long time ago. Mar 26 14:44:32 <[maTa]> i have bla.xml with two fragments (class=com.apps.fragment1 and class=com.apps.fragment2). when first time i do setContentView(R.layout.bla) everything is ok but when i secont time call setContentView i got error Binary XML file line #6: Error inflating class fragment... how to avoid that i mean how to"destroy" all fragment so i can call em again via setContentView(R.layout.bla) Mar 26 14:45:28 you shouldn't call setContentView more than once Mar 26 14:45:35 that's a strange thing to do Mar 26 14:45:43 canadiancow, perhaps onOrientationChanged? Mar 26 14:45:59 <[maTa]> canadiancow: how to show thata layout again then? Mar 26 14:46:11 why did you remove it? Mar 26 14:46:17 good question Mar 26 14:46:43 <[maTa]> canadiancow: coz i set anatoher view Mar 26 14:46:46 why Mar 26 14:46:56 why arent you displaying another fragment or activity? Mar 26 14:47:21 mmm, usually your fragmentactivity controls the fragments, it doesnt swap out views Mar 26 14:47:21 if you just remove fragments from layouts, i could see the fragment manager getting confused, but this is unfamiliar territory for me Mar 26 15:04:08 how long is the timeout until user get ANR dialog? or, how long should I set the timeout here http://developer.android.com/reference/android/os/AsyncTask.html#get(long, java.util.concurrent.TimeUnit) Mar 26 15:04:55 Eh, don't block the main thread Mar 26 15:05:21 hey hi guys. anyone could explain why i must rename a activity in order to delete the intent bundle data? How can i update? Mar 26 15:16:04 <[maTa]> canadiancow: how can i "destroy" fragment not to get duplicated id? Mar 26 15:16:48 why would this function not have correct data: Mar 26 15:16:50 http://pastebin.com/q42ZkAUZ Mar 26 15:16:52 anyone? Mar 26 15:26:41 I have a weird/silly question. I have a website that I am logging into and i want it so that when the user closes the app, they are logged out or their session to the site is gone. I have removed the cookies, I have cleared the cache, I have destroyed the webview. None of the above is working on the s3 to consistently get the user to not be logged in if they reopen the app. Mar 26 15:26:53 anyone have an idea Mar 26 15:27:31 wordToDaBird, not really android, but you need a way of knowing when they close the page, then you can terminate the server-side session info Mar 26 15:28:21 how can I terminate server-side sesion info though? I am sorry I should have specified that I am logging into this site using a webview. Mar 26 15:28:29 depends on the platform... Mar 26 15:28:44 in J2EE you'd invalidate the session by calling logout, same sort of thing with Django auth Mar 26 15:28:52 wordToDaBird: define "close the app" Mar 26 15:29:07 lov, i think he means if the webview is gone, for any reason Mar 26 15:29:11 wordToDaBird: It's important to note that Android has a very unusual lifecycle. Mar 26 15:29:19 navigate away from the Activity that I am presenting to them. Mar 26 15:29:31 Lov, I know I call the close-app work on onPause Mar 26 15:29:32 wordToDaBird: OK. That means that if the user gets a call and then returns back from that call, they're logged out. Mar 26 15:29:38 correct Mar 26 15:29:39 er Mar 26 15:29:40 wordToDaBird, then onFinish or onPause you should probably make a restful call to the webapp to invalidate the session Mar 26 15:29:44 you should probably use onStop... Mar 26 15:29:48 or onStop Mar 26 15:30:03 onPause just means that your activity is no longer in the foreground, such as when a transparent dialog from another application is present. Mar 26 15:30:10 onStop means that your activity is no longer visible at all. Mar 26 15:30:18 on stop means your whacktivity isnt visible at all Mar 26 15:30:27 users getting text messages shouldn't kill your app :P Mar 26 15:30:35 I don't think the transparent dialog does it. I think it has to literally have been placed in background. ie... keyboard doesn't call onpause Mar 26 15:30:47 ugh, why did the ndk just drop the index for std::vector?? Mar 26 15:30:58 what did i do to this thing??????????????????///??/??/?? Mar 26 15:31:12 vector graphics are so old school, i dont understand why everyone wants the web to look like asteroids Mar 26 15:31:16 wordToDaBird: ... onPause won't be called for the OSK. It WILL be called for other activities, INCLUDING transparent ones. Mar 26 15:31:31 mikedg, that's not what vector means :) Mar 26 15:31:55 yea, while that is all important and all. I don't really care too much about that right now. The entire not logging out issue is just a little more important. Mar 26 15:32:24 If you have a suggestion as to how I could terminate the login ty, but if you want to nit-pick as most people on the net do. Then I have some research I need to do. Mar 26 15:32:25 wordToDaBird, again, the logging out happens on the server end Mar 26 15:32:27 wordToDaBird: There's a couple of things you can do. One is to invalidate the user's session altogether. Mar 26 15:32:44 wordToDaBird: another is to figure out how your session is being stored and invalidate that client side. Mar 26 15:32:48 overwrite the cookie, etc. Mar 26 15:32:49 wordToDaBird: what do you do if the user loses internet connection then leaves the app Mar 26 15:33:01 the client side isn't all that important, you need to invalidate the server side session Mar 26 15:33:19 mikedg, you set a reasonable time limit on the session validity Mar 26 15:33:27 if you never invalidate on the server side, you get collisions Mar 26 15:33:32 for secure stuff i allow no more than 15 minutes of inactivity Mar 26 15:33:35 and then two users are logged in and see both of their datas! Mar 26 15:33:39 and everything gets deleted Mar 26 15:33:51 kaneda 5 mins. Mar 26 15:33:58 wordToDaBird, then you dont have much to worry about Mar 26 15:34:05 no thats not what happens, but you would care more if that was the case Mar 26 15:34:18 yea, but my client doesn't want you to be able to re-open the app and still be logged in. Mar 26 15:34:33 wordToDaBird, it should make a call to invalidate the session onPause, onStop, or whatever Mar 26 15:34:36 ie... the trying to remove the cookies etc... which works on most devices... just having an issue on samsung phones Mar 26 15:34:47 wordToDaBird, first figure out WHERE it should stop, then just make a call to logout service of your web app Mar 26 15:34:59 wordToDaBird, i GUARANTEE your platform provides a logout service that will invalidate the session for you Mar 26 15:35:35 yea, I didn't want to do that for one reason. If the user has a bad connection then the account will persist. But, meh. I had it setup earlier... might as well reset Mar 26 15:36:22 11:34:44 < wordToDaBird> ie... the trying to remove the cookies etc... which works on most devices... just having an issue on samsung phones Mar 26 15:36:32 manufacturer specific issues due to "customizations"? why I never Mar 26 15:37:15 wordToDaBird, if they have a bad connection no matter what you do it will persist... Mar 26 15:37:23 wordToDaBird, on the server side, until timeout, that is Mar 26 15:38:12 wordToDaBird: again, figure out what method is being used, and clobber it via overwrite. That might be the simplest solution. Mar 26 15:38:21 kaneda, but I was thinking if I removed the cookies then you shouldn't be able to get back to the server. Mar 26 15:38:33 that's true, and that should be the case. Mar 26 15:38:38 Buuuut it sounds like sammy broke that code path Mar 26 15:38:44 soooo you have to fall back on an alternate route. Mar 26 15:39:21 wordToDaBird, that would be true, you can invalidate the session id stored on the client end AS WELL Mar 26 15:39:31 but the server side is what's truly important here Mar 26 15:40:54 again, with J2EE it might be the jsessionid, with php the phpsessionid, with django the somethingerotherid Mar 26 15:44:08 thinking of buying a dell xps 13 - predominantly as a portable dev machine.. Mar 26 15:56:59 storkme: I have this as a portable dev machine; no real complaints: http://www.amazon.com/dp/B00863L2PK Mar 26 15:57:16 super thin, light, and I get like 5+ hours of battery (6 if I push it) Mar 26 15:58:55 aye i've heard they are pretty good Mar 26 15:59:16 what is the best way to map a returned cursor to an instance of a class? Mar 26 16:01:42 i do not want to call every setter of that instance Mar 26 16:06:09 why not a surface pro ? Mar 26 16:11:27 i'm thinking of getting a surface pro... Mar 26 16:11:34 * kaneda^ waits for the stones to be hurled Mar 26 16:16:30 kaneda^: why :p ? Mar 26 16:17:29 it has excellent design, it's quite powerful, and it's a tablet pc essentially Mar 26 16:17:43 fair enough Mar 26 16:20:43 Is it bad to extend android.util.Pair? I need a tuple which has semantic meaning, but I also want to be able to do .equals() and such without lots of boilerplate. Mar 26 16:21:16 sounds reasonable enough.. Mar 26 16:21:34 Shishire, sure, why not? Mar 26 16:21:44 Shishire, but do you need a Pair, or do you need your class to BE a pair Mar 26 16:21:51 has-a is preferred to is-a generally Mar 26 16:21:54 Shishire: you could also just make a custom object, which is exactly as hard Mar 26 16:24:06 It's a two piece identifier (greater location and lesser location) that needs to be passed around a lot. I'm not quite sure how to build it. Mar 26 16:25:02 Shishire: public class Identifier implements Comparable { public final greaterLocation; public final lesserLocation; ... } Mar 26 16:26:50 evanc, Comparable gets me a good chunk closer. Thank you. Mar 26 16:28:16 can anyone help me spot why my code is only sending info from one sensor to the sensor but serial printing all of them http://pastebin.com/6Q2YuuhZ. I've been changing the header but to no avail. maybe it's a loop somewhere? Mar 26 16:28:35 but if can't be the loop, since hte serial is printing as it should :... so has to be the header? ... Mar 26 16:32:00 woops Mar 26 16:32:04 wrong channel Mar 26 16:45:41 I am trying to reuse port in my android app. the port is in CLOSE_WAIT state but for some reason i get EADDRINUSE exception (ServerSocket s = new ServerSocket(); s.setReuseAddress(true); s.bind(new InetSocketAddress(port);) Mar 26 16:50:14 How do you get a viewPager to return to the page it came from when you come back from an activity? Say I pressed a button on page 2 of a viewPager and I'm coming back from whatever activity it originally sent me to. How do I get the viewPager to go back to page 2 instead of re-initializing to the first page? Mar 26 16:50:47 viewPager.setCurrentItem(curretPage) seems to have no effect, even though the value of currentPage is changing and correct. (I've checked in debug mode and print statements) Mar 26 16:50:59 i'm trying to create a custom dialogfragment, how would i get the buttons to look like the buttons that are created when you use setPositiveButton setNegativeButton when using AlertDialog.builder? Mar 26 16:51:52 is there a style i can add to the buttons? Mar 26 16:52:28 jdawes: if your using viewPager, isnt it just switching fragments of the same activity? Mar 26 16:53:31 Just use an alertdialog in your dialogfragment Mar 26 16:54:12 the problem i'm having is that i need to validate what was entered in the view, and when the positive button is pressed, the dialogbox disapears. Mar 26 16:55:03 so what i've read is that i need to create a custom dialogfragment, and set the onclick listener for the button to do the validation. Mar 26 16:55:10 Eppo: there are ways around that; one second Mar 26 16:56:10 Eppo: first code block here: http://stackoverflow.com/questions/2620444/how-to-prevent-a-dialog-from-closing-when-a-button-is-clicked/15619098#15619098 Mar 26 16:56:30 Eppo: What do you mean? I think so, if I understand you correctly. But I'm not sure. Mar 26 16:57:05 jdawes: by using the standard DialogInterface.OnClickListener, there's no way to prevent the dialog from dismissing (if they provided bad input, for example) Mar 26 16:57:42 yay new app published Mar 26 16:57:58 evanc: Prevent dialog from dismissing what? Is this meant for Eppo? Mar 26 16:58:29 xorgate: What is it called? Mar 26 16:59:19 jdawes: I was explaining (to you) what Eppo was asking for Mar 26 16:59:22 jdawes: reread what you said... can you keep a variable that is set to whatever page your on, and use that? Mar 26 16:59:28 jdawes it's not visible in market yet but https://dl.dropbox.com/u/3222087/wordsearchplus.apk Mar 26 16:59:50 xorgate: i'll definitly take a look. Mar 26 17:00:10 it's a word search puzzle that takes any topic from wikipedia to make a puzzle Mar 26 17:00:40 thanks evanc, i'll give that a try. Mar 26 17:01:28 Eppo: I'm using startActivity to send the page number I want to start at dynamically. So if I pass it 1 the ViewPager should show up focused on the second page. Mar 26 17:02:01 What seed can I use on android devices for my Random() class? Mar 26 17:02:14 whywhywhy System.currentMillis or sth Mar 26 17:03:02 ty Mar 26 17:03:21 isnt random automatically seeded with the current time in the java implementation? Mar 26 17:04:08 Eppo: Does that make sense to you? Normally when you come back from an activity to an Activity with a ViewPager in it, the ViewPager starts on the first page, I want to change that dynamically depending on when I'm coming from. Mar 26 17:04:31 Where* I'm coming from. Mar 26 17:04:54 kaneda^: I think it is Mar 26 17:05:51 kaneda^: yes: https://android.googlesource.com/platform/libcore/+/master/luni/src/main/java/java/util/Random.java Mar 26 17:06:13 hello people, does anyone know anything about this issue? http://stackoverflow.com/questions/15581187/android-camera-preview-mapping-to-final-picture Mar 26 17:06:43 hooray, go memory go Mar 26 17:06:51 i'm on fire today ;) Mar 26 17:07:07 i have also been trying to post my question on the official android-dev mailing list but my post won't show up (have tried twice and have waited ~5 days) Mar 26 17:07:18 https://groups.google.com/forum/?fromgroups#!forum/android-developers Mar 26 17:07:20 I'm sorry to bug everyone, but does anyone know why ViewPager.setCurrentItem(num) wouldn't be working, or changing the displayed fragment? Mar 26 17:07:24 jdawes, i'm building an app right now that uses viewPager... let me take a look. I'm still pretty new to java/android development. Mar 26 17:07:38 K thanks. Mar 26 17:08:22 jtrp, it seems to me that you should be taking the ratio as the min(actualwidth/width,actualheight/height) Mar 26 17:08:37 if you arent then it explains why it's cropped incorrectly sometimes Mar 26 17:09:14 Eppo: That means we're both newbies, like the blind leading the blind but I appreciate the help. Mar 26 17:09:29 jtrp, i can tell yuo there's no direct relation, you request the preview size and then it fills the screen with an overlay or something Mar 26 17:09:39 so it's most likely your math that's right Mar 26 17:09:42 kaneda^: i have actually tried various combinations but nothing is consistent Mar 26 17:09:49 jtrp, then your math is wrong Mar 26 17:10:05 jtrp, i can tell you that i do mappings across screen sizes with a camera overlay without issue Mar 26 17:10:15 well i have tried it on 2 phones, on one it is right, on the other it is not Mar 26 17:10:26 using the same formula Mar 26 17:10:29 jtrp, again, you are probably taking the ratio of widths instead of the min of the ratio of widths vs height Mar 26 17:10:56 lunchtime, bbiaf Mar 26 17:10:57 the one that doesn't work correctly is the one that the screen dimensions are quite different from the actual preview dimensions Mar 26 17:11:02 ok i will try taking the min Mar 26 17:11:03 thanks Mar 26 17:11:31 jtrp, take the min of screenwidth/previewwidth and screenheight/previewheight and then use that to do your multiplicative mapping Mar 26 17:12:20 will try it in a few minutes, thanks Mar 26 17:12:21 Eppo: setCurrentItem seems to work if I set up a button to call it, strange. Mar 26 17:13:12 jdawes: that just means (well, implies) that something is calling setCurrentItem(int) with a bad value womewhere Mar 26 17:13:15 somewhere, too* Mar 26 17:13:18 jtrp, if you didnt do this already then just rotating the phone should screw up the ratio i think Mar 26 17:13:24 maybe not though Mar 26 17:14:29 kaneda^: I have tried to take this into account - we are always doing the crop in landscape mode Mar 26 17:14:39 jtrp, it actually doesnt matter, on further thought Mar 26 17:14:42 evanc: Well I assume that it gets called by default because ViewPager's always initialize to the first page. So when am I supposed to call it? Mar 26 17:14:43 you just need to take the min of the ratios Mar 26 17:14:54 ok, lunchies! Mar 26 17:21:39 I'm a bit confused about the expectations surrounding the ACTION_SEND Intent. Is there a "standard" way to let the apps agree upon (say) the name of a binary blob being exchanged via the intent? The only truly available thing seem to be the mime-type -- are there other "standard" meta-data values that I'm missing? Mar 26 17:25:09 romainguy: has google every communicated a roadmap for the Nik plugins? i see they reduced their price, but still - not worth it if they are going to be discontinued. Mar 26 17:28:30 http://i0.simplest-image-hosting.net/picture/gz3531.png Mar 26 17:28:42 why is the CPU/ABI disabled? Mar 26 17:29:05 Because there's only ARM for api8 Mar 26 17:29:10 I want to use the x86 image that comes with the SDK Mar 26 17:29:28 never mind -.- Mar 26 17:29:30 when Im swiping/switching between fragments in a viewpager, will the first state in their activity cycle be onResume? Mar 26 17:29:33 dumb question Mar 26 17:29:37 :P Mar 26 17:31:50 Eppo: I found the error. When I'm coming back from an activity I reset the ViewPager adapter because I may need to update some of the icons displayed in the fragments, this is where everything went sideways. I need to find a way to update icons and keep the page number the same. When I remove the adapter resetting everything works as expected. Mar 26 17:32:17 is that the real Romain Guy? Mar 26 17:33:17 the very same. Mar 26 17:33:37 That's really cool, he was helping me the other day. Very cool. Mar 26 17:33:56 Are there a lot of Google employees on this chat? Mar 26 17:34:26 jdawes: glad you found the error. Mar 26 17:35:04 Anyway, new issue is how to update fragments without changing the ViewPager currently showing page Mar 26 17:35:10 jdawes: a few Mar 26 17:35:22 g00s: it's totally worth it Mar 26 17:35:26 romainguy: Very cool, again. Glad to have you all. Mar 26 17:41:35 romainguy: which is your favorite plugin? Mar 26 17:41:47 Hello friends Mar 26 17:41:48 Color Efex and Silver Efex Mar 26 17:41:54 I don't find the other ones useful Mar 26 17:42:03 and in Color Efex most filters are meh Mar 26 17:42:24 but a few are awesome Mar 26 17:43:58 romainguy: thanks Mar 26 17:46:40 If I call CustomPagerAdapter.notifyDataSetChanged() in the onResume of my activity, what is the reason that the data doesn't change, is there another call I need to make in order to update my fragments? Mar 26 17:47:04 Okay guys, so I've read quite a bit on SQLite being a good way of connecting your app to a database. But what if one wants a database on a remote server? Mar 26 17:47:51 coco89, you can use server:port syntax when connecting to a db with jdbc drivers, or whatever Mar 26 17:48:04 that sounds like a terrible idea, kaneda^ Mar 26 17:48:05 haha Mar 26 17:48:05 i'd probably provide a restful webservice Mar 26 17:48:05 kaneda^: noooo Mar 26 17:48:15 hey, i didnt say he SHOULD do that :D Mar 26 17:48:19 :) Mar 26 17:48:21 * coco89 doesn't know who to believe :P Mar 26 17:48:25 kaneda^: you just made the interwebs sigh Mar 26 17:48:35 I'm confused, so what's the best option? Mar 26 17:48:36 * kaneda^ hangs head Mar 26 17:48:51 coco89: expose an (authenticated) way to get/update the data; don't connect to the database directly Mar 26 17:48:58 kaneda^: how? I've been trying to write some javascript to connecct to my sql server Mar 26 17:49:12 javascript eh? Mar 26 17:49:18 evanc, why can't i connect to the database directly like on a website? Mar 26 17:49:34 coco89: because i will steal your password and delete all your data Mar 26 17:49:48 :D Mar 26 17:49:52 pretty much that Mar 26 17:50:07 coco89: what mikedg said Mar 26 17:50:33 except it's not really stealing the password if you're already giving it to the user Mar 26 17:50:57 you could give that user read only privilege Mar 26 17:51:17 so what do I do to connect an android to a remote database Mar 26 17:51:37 coco89: you read what we said 5 minutes ago :) Mar 26 17:51:55 evanc, I'm new to this all so i'm not quiet sure what you meant Mar 26 17:52:46 * capella interwebs are sad :D ? Mar 26 17:53:01 coco89: sounds like you should try Azure Mobile Services Mar 26 17:53:07 they generate an app and remote database for you Mar 26 17:53:39 mikedg, but I wanna learn how to do it properly Mar 26 17:53:59 this is properly, it cuts down development time Mar 26 17:54:06 and makes it easy to port to iOS Mar 26 17:54:09 and Windows 8 Mar 26 17:54:16 this is properly? :D Mar 26 17:54:26 ask yourself what would Guy Kawasaki do? Mar 26 17:54:35 mikedg, hostile takeover Mar 26 17:54:46 i ask myself, idly, if someone has actually done the horrendous hack of using Awake sql on android. Mar 26 17:54:48 or Brian Boytano Mar 26 17:55:19 mikedg, I'll have a look into what azure mobile services is Mar 26 17:55:33 mikedg, what are the other alternatives? Mar 26 17:56:56 I mean, I wanna learn how to hook up an remote database to an android app and claim that I can :D Mar 26 17:57:06 coco89: how much learning time do you have ? Mar 26 17:57:13 g00s, not long, maybe a week? Mar 26 17:57:31 coco89: hooking up a remote database is pretty silly Mar 26 17:57:34 g00s, but I know how to SQL Mar 26 17:57:40 you should be whitelisting the ip's that can access your db Mar 26 17:57:40 oh bummer. well the trick is really know how to design a nice service; only part of that has to do with poking apis Mar 26 17:57:58 i use django Mar 26 17:58:06 the d is silent Mar 26 17:58:14 ^^ Mar 26 17:58:27 coco89: knowing how to SQL is not the same as making an android app on a cell phone talk directly to a database on a remote server ಠ_ಠ Mar 26 17:58:41 coco89: would recommend http://www.amazon.com/REST-Practice-Hypermedia-Systems-Architecture/dp/0596805829 Mar 26 17:59:02 and http://www.amazon.com/Service-Design-Patterns-Fundamental-Solutions/dp/032154420X Mar 26 17:59:08 if you had the time :) Mar 26 17:59:32 oreilly has a few more low level api-poking books if you want Mar 26 17:59:35 damn, didn't know it was so complicated? :S Hooking a website to a database seems to be pretty easy no? Mar 26 17:59:53 there's a thousand and one ways to do that too Mar 26 17:59:55 technologically, it is Mar 26 18:00:07 but if you design it wrong - like anything else, it becomes another world of hurt Mar 26 18:00:31 there are many advantages to using a rest api to get to your database; a significant one is that the android lifecycle is pretty antithetical to keeping a socket open unless you jump through a lot of other hoops, and you'll still have problems w/ roaming between cell and wifi and such. Mar 26 18:00:32 g00s, it is what complicated? Mar 26 18:02:19 coco89: you can check out the iosched app for basic android side mechanics on how to read http in a IntentService Mar 26 18:03:03 dragorn: the android lifecycle is antithetical towards getting /any shit done/ :D Mar 26 18:03:40 g00s, thanks for the links for the recommended reading Mar 26 18:03:54 my lifecycle is in total opposition towards getting any shit done. Mar 26 18:04:13 Okay so, I'm guessing Azure mobile services is the most likely option to be able to do this within a week? Mar 26 18:05:02 I thought hooking up a database wood be as trivial as doing it from a website using php Mar 26 18:05:08 *would Mar 26 18:05:22 * coco89 is shocked at that typo O.O Mar 26 18:06:07 mikedg, you said hooking up a remote database is pretty silly? isn't it how a lot of apps do it :S Mar 26 18:06:12 coco89: a web implementation a) has back-end access to the database which you should never expose to untrusted end devices and b) doesn't care about socket lifecycle Mar 26 18:06:25 coco89: no most go through a web api that hooks up to a database Mar 26 18:06:45 if nothing else you really really want to broker your access control and not give remote devices direct access Mar 26 18:06:47 dragorn, ah i see Mar 26 18:06:51 coco89: I look forward to your server shitting out spam within a week Mar 26 18:07:00 lol Mar 26 18:07:27 mikedg, like azure mobile services? Mar 26 18:07:39 coco89: even if it was that simple, you shouldn't do it Mar 26 18:07:49 evanc, shuoldn't do what Mar 26 18:08:02 connect directly to a remote database Mar 26 18:08:05 live Mar 26 18:08:08 [to make a pedantic peanut gallery comment and derail all the helpful advice ;-) SQL != direct-access to database, it's perfectly usable as a data manipulation language.] Mar 26 18:08:16 kbs: get out. Mar 26 18:08:21 database access lets you do a lot, even if you have read only and limited permissions Mar 26 18:08:26 it's angry pile-up time, we don't need pedantry here. Mar 26 18:08:31 its much easier to manage a web api to only let you do xyz Mar 26 18:08:34 we have flamingto do. Mar 26 18:08:58 * kbs ducks the peanuts flung back from the arena Mar 26 18:08:58 mikedg, as in azure services? Mar 26 18:08:59 you're also assuming that there's no underlying database exploits that can be used. Mar 26 18:09:14 priv. escalation to higher permissions and/or even arbitrary code exec Mar 26 18:09:44 in short, if you make a database visible to the internet you entirely deserve whatever happens next. Mar 26 18:09:45 I'm not that concerned about security as it's a university project but then again if I don't do it properly as in make it secure they might mark me down right Mar 26 18:10:10 I'm sure that your university's security team is very happy to hear that. Mar 26 18:10:20 surely an attack vector into their network wouldn't bother them. Mar 26 18:10:35 coco89: it also just makes your code super complicated and hard to work with because then your client code is directly tied to a schema on a another server Mar 26 18:11:54 I see Mar 26 18:12:10 if it's a school project, i'd just use azure mobile services Mar 26 18:12:11 there we go (shameless plug) https://play.google.com/store/apps/details?id=com.codestare.wordsearch Mar 26 18:12:17 i'm in love with it lately Mar 26 18:12:27 mikedg, yeah will look into it :) Mar 26 18:12:57 your other alternative is to not use a sql database and just use the twitter API Mar 26 18:13:03 write your data as tweets Mar 26 18:13:11 and just do searches to get the data back Mar 26 18:13:22 I think this is what they call TSQL Mar 26 18:14:17 every once in a while, i wonder if mikedg is saying something legit; then i realize : no Mar 26 18:14:25 once in a while Mar 26 18:14:39 the azure mobile services stuff was totally legit Mar 26 18:14:56 or were you questioning TSQL? Mar 26 18:14:57 I see, so what I've gathered today is I can't connect directly to a database _like you can do on webites_ from mobile devices and instead I wouldh ave to use a web API? Mar 26 18:15:39 and I'm totally looking forward to using azure as it probably is the most realistic option to do under week? Mar 26 18:17:56 am i right? Mar 26 18:18:15 You can, you just shouldn't Mar 26 18:18:26 coco89: for the record, mikedg is just being a jackass Mar 26 18:18:34 evanc, why? Mar 26 18:18:35 coco89: that's pretty much his normal state Mar 26 18:18:52 coco89: Is this some sort of school project? Why the emphasis on databases specifically? Or is it just about SQL? Mar 26 18:18:53 see his comments about "TSQL", for example Mar 26 18:18:53 yeah, it's pretty much what he does. Mar 26 18:18:59 SimonVT, I see but it's totally fine to connect directly from a website/ Mar 26 18:19:11 that said, I'd love to see an actual twitter SQL. Mar 26 18:19:34 http://www.windowsazure.com/en-us/develop/mobile/tutorials/get-started-android/ <--- amazingly simple Mar 26 18:19:34 coco89: the website and the server are typically on the same machine, and if not they're certainly within the same network. Mar 26 18:19:47 coco89: The server can be configured so that database access is NOT available externally; the ports just aren't opened. Mar 26 18:20:04 (well, not typically, but for the sake of a school project yes) Mar 26 18:20:12 yahoo had a pretty neat idea with yql -- makes some weird sense as a glue language. http://developer.yahoo.com/yql/ Mar 26 18:20:30 coco89: when you connect from a website you are not connecting from the user. You are connecting from the webserver, which handles security. You can't just give people direct dbase access. it won't go well. Mar 26 18:20:45 kbs, it's a university project, I need a server populated with fake student accounts so I can create a log in page and modify the database Mar 26 18:21:07 that is an example of something horrifically bad to do directly from an android device Mar 26 18:21:09 coco89: do you really need a sevrer or could you just do everything locally? Mar 26 18:21:10 lov, Ah I see Mar 26 18:21:25 as a project was the assignment, use a database? Mar 26 18:21:30 or use a remote database? Mar 26 18:21:47 lov: and this is why edu needs to f'ing teach security :P Mar 26 18:22:26 then professors couldnt do security research as their research gig Mar 26 18:22:28 dragorn: when I was at rutgers a decade ago, there was no discussion of source control. For all I know there still isn't. Mar 26 18:22:48 at my university we learned to use CVS, this is why you dont go to public universities Mar 26 18:22:52 dragorn: the sad thing is that most unis will teach Computer Science, which isn't Software Engineering, which is what people really want to learn. Mar 26 18:22:56 lov: doesn't surprise me Mar 26 18:23:10 lov: when I worked for an edu the "security class" professor taught his class that I, personally, invented SSH Mar 26 18:23:11 Well, I could use a local database but the point of the app is to connect to a university's registering system, would access their database. I'm not actually going to use the universities database, but I wanted to show that you could. if that makes senes Mar 26 18:23:12 *sense Mar 26 18:23:19 lov: that's because all the job interviews aks computer science questions Mar 26 18:23:22 lov: because i was too too stupid to follow his directions and set up telnet Mar 26 18:23:28 dragorn: and I'm sure you did nothing to disabuse him of the notions :> Mar 26 18:23:29 lov: so I made this inferior ssh thing they were forced to use Mar 26 18:23:53 lov: just... think about that logic for moment... There's so much wrong on so many levels. :p Mar 26 18:24:13 personally I call that "living the BOFH dream" Mar 26 18:24:16 lov: then again it wasn't until the final month of his course that he got phished and found out from us (IT dept) what a virus was Mar 26 18:24:27 lov: it's really not b/c i wasn't allowed to, say, run him over with my station wagon Mar 26 18:24:37 whats the standard resolution of most phones? Mar 26 18:24:43 lov: tho telling our director that I planned to do this the next time I saw him meant I didn't have to go to any meetings with him for a long time Mar 26 18:24:51 ha Mar 26 18:24:58 bitgod: define most. define standard. Mar 26 18:25:09 4" = 5" Mar 26 18:25:19 THERE ARE FOUR LIGHTS Mar 26 18:25:28 ok picard Mar 26 18:25:30 lol Mar 26 18:25:52 so i'm gonna look into azure mobile services and when this project is done I'm going to look into REST whatever that is :) Mar 26 18:26:19 coco89: so what was your project exactly? Mar 26 18:26:29 bitgod: seriously though, http://developer.android.com/about/dashboards/index.html may be useful/relevant. Mar 26 18:26:33 i'm slowly gettign the feeling you are heading down the wrong path Mar 26 18:26:37 thx Mar 26 18:27:15 you'll want to note the definitions for the screen sizes/densities at http://developer.android.com/guide/practices/screens_support.html Mar 26 18:28:01 mikedg, the wrong path? why :P Mar 26 18:28:07 Hi Mar 26 18:28:10 cool, this got an eclipse community award http://wireframesketcher.com/ … but its $99/single user :( Mar 26 18:28:24 * g00s will have to keep on drawing on napkins Mar 26 18:28:57 My project is to create an android app that will make use of NFC to automatically sign students into their lectures Mar 26 18:29:09 I need help understanding the realtion of the views in an arrayadapter for a listview i made https://gist.github.com/stubb/6c8dbbe8a54c590e8d32 Mar 26 18:29:09 I call the constructor of my custom adapter with a textview, is this view a container for all views that represent a single entry of the list? Mar 26 18:29:18 * pragma- bursts into the room and frantically siezes the nearest napkin in which he unleashes a wet soppy sneeze. Mar 26 18:29:25 hey all! Mar 26 18:29:50 Can anybody Mar 26 18:29:54 i guess size doesnt matter Mar 26 18:29:54 Help me implementing music as a service? Mar 26 18:29:58 all phons have diff res Mar 26 18:30:00 I can't find any examples for streaming . . . Mar 26 18:30:09 i'm guessing a login page wuold require a remote database rather than a local one too Mar 26 18:31:40 coco89: if you're tracking students with NFC; this is a big provacy thing - better know how to secure your project Mar 26 18:31:46 *privacy Mar 26 18:31:49 tracking? Mar 26 18:31:55 Kilian] That's the resource ID for the view be populated by the adapter. Mar 26 18:31:58 g00s, no just signing the register Mar 26 18:32:07 coco89: yeah, tracking ? Mar 26 18:32:21 not realtime everywhere, but Mar 26 18:32:21 If I store a variable in another object from inside a broadcast receiver, then use a pending intent from inside that same broadcast receiver to call itself again, will I be able to retrieve the object, or is that considered a new instance? Mar 26 18:32:45 Eric_Loves_You: thanks! Mar 26 18:32:45 g00s, so a student taps on a tag and it calls a method to update the database Mar 26 18:33:25 yeah, but your solution knows who the student is and where the tag is; its all privacy related Mar 26 18:33:27 coco89: are you really sure someone needs that data? I would avoid to programm such a student tracker ... Mar 26 18:33:45 Kilian], it's a register.... Mar 26 18:33:58 like a checkpoint :) Mar 26 18:33:58 a register is for the univeristy to check attendance Mar 26 18:34:07 * coco89 facepalms Mar 26 18:34:35 coco89: so every student has a nfc compatile android device? Mar 26 18:34:57 Kilian], it's a university project so it's not giong to be used ever but it's a concept Mar 26 18:35:12 maybe in the future it could be implemented when every phone is NFC capable Mar 26 18:36:11 Next semester someone is gonna make an app that games the system. Lets students save several id's on the device, and check all of them with a single click Mar 26 18:36:38 SimonVT: that was my thought too Mar 26 18:36:51 the system is insecure by design Mar 26 18:37:16 But it's a school project, so that doesn't really matter Mar 26 18:37:22 because all students need to trust one student and give him their private id, and the system fails Mar 26 18:38:32 a large number of production systems emerge from school projects Mar 26 18:40:31 pragma-: i didnt said he shouldt do the app, but i thought it should be mentioned Mar 26 18:41:50 what about this Mar 26 18:41:57 your phone is the reader, it has a local database Mar 26 18:42:10 you give students NFC stickers Mar 26 18:42:18 they slap the nfc sticker against the device Mar 26 18:42:31 wut.. Mar 26 18:42:34 periodically someone comes and grabs the device to check tracking data Mar 26 18:42:45 people cant game the system as easily, you avoid the remote db issue Mar 26 18:43:00 and you get to nail the prom queen Mar 26 18:43:10 yes but you'd need to program each sticker so that it's assigned to a student Mar 26 18:43:12 NFC tags in university ID cards is becoming popular i believe, so students may already be 'tagged' Mar 26 18:43:18 instead of having one sticker for the whole room and have different accounts Mar 26 18:43:24 and noone needs an nfc enabled phone Mar 26 18:43:50 I mean I guess that could work too Mar 26 18:44:25 yeah, it is possible that students already have nfc in their id's Mar 26 18:44:30 if the device wasn't a mobile phone i.e like a london underground oyster card system Mar 26 18:44:37 I'm only asking again because I still haven't found out how to fix this. How can I update an imageView's alpha value in a fragment that is already loaded in a ViewPager? Mar 26 18:44:58 wow! people translate my app into languages which are not supported by Android, like Ligurian (lij). What am I supposed to do with "invalid resource directory name: res/values-lij" now? Mar 26 18:45:42 or with res/values-nan? Mar 26 18:45:43 mikedg, but yeah I still don't understand how people could 'game' the system? Mar 26 18:46:25 coco89: if you trust the client to send an id number to the server, I can write an app that sends 'DEADBEEF', '122345', and '12345432' Mar 26 18:47:18 if you give someone a read only nfc tag, they can only send '12345' without giving up their nfc tag Mar 26 18:47:31 or physically dismantling your device Mar 26 18:49:18 Never mind, it works now. Mar 26 18:49:52 mikedg, but the tags will contain a URI so that only MY app will be opened when read. Mar 26 18:50:42 i uninstall your app and install mine Mar 26 18:50:43 until I write an app that uses the same URI Mar 26 18:50:49 but anyway, hopefully this azure thing works :) Mar 26 18:51:20 even disregarding the security implications, local db wins for ease of creation Mar 26 18:51:35 mikedg, but it wont simulate an actualy university database Mar 26 18:51:43 on a remote server Mar 26 18:51:55 periodically dump the info onto twitter Mar 26 18:52:20 .dump mydb.db > twitter Mar 26 18:52:28 I have a RelativeLayout derived class, and I move it around by catching onTouchEvent and setting its layout params. What I want to do now is "fling" it, give it some velocity and have it slow down on its own over several frames. How can I accomplish this? Mar 26 18:52:40 setup a chronic job for every 20 ms Mar 26 18:53:07 but anyway, what's read from the tag is only a URI Mar 26 18:53:20 it has no hints on to connect to a database Mar 26 18:53:34 so you can't really take advantage of that Mar 26 18:53:42 if one would want to write something to a database Mar 26 18:53:50 they'd write an app to do it anyway Mar 26 18:54:11 right? Mar 26 18:57:08 capella: this is pretty damn cool https://addons.mozilla.org/en-US/firefox/addon/tile-tabs/ Mar 26 18:58:31 "hey is that the iWatch" to my metawatch strata :| Mar 26 19:03:10 Any good tutorials Mar 26 19:03:14 For services plus music? Mar 26 19:03:29 probably. Mar 26 19:03:40 it's too bad that no one's built a search engine for the internet :( Mar 26 19:03:50 lov: bing! Mar 26 19:06:23 bing wins it again! Mar 26 19:06:55 isn't bing that thing old people play Mar 26 19:07:03 you're thinking of keni Mar 26 19:07:06 *keno Mar 26 19:07:24 bingo? Mar 26 19:07:52 hi, anyone does webview has android:visibility? Mar 26 19:08:08 setting it will crash? Mar 26 19:09:02 g00s, I haven't been on honeycomb for a while, been running cm on my p4wifi for a long time now Mar 26 19:09:30 pfn: well then, that settles it … everybody has moved on from hc Mar 26 19:09:35 :) Mar 26 19:09:54 yeah, I can't imagine being among the few still on hc Mar 26 19:10:09 real hipsters use hc Mar 26 19:10:23 :( Mar 26 19:11:55 * pfn twiddles thumbs while cm 10.1 downloads Mar 26 19:12:06 will they ever put out an actual release for the p4wifi rather than nightlies... Mar 26 19:12:40 * pfn still uses the p4wifi daily, on the train Mar 26 19:14:34 * pfn still so disappointed at google-io Mar 26 19:15:23 SimonVT: What controls the width of the menu in the Content Sample example in Menu Drawer? Mar 26 19:16:12 pfn: I've got a p4wifi beside me here Mar 26 19:16:29 battery life isn't as good as it used to be Mar 26 19:16:33 or it's because I use vlc constantly Mar 26 19:16:35 it doesn't seem to want to be a debug device today, I've been using the Nexus 7 Mar 26 19:16:36 that's my primary use for it Mar 26 19:16:43 pfn: it doesn't appear that I/O even has established what sessions will be; kinda strange Mar 26 19:16:49 vlc must stink at battery usage Mar 26 19:19:13 pfn: can we use the Tegra2 chipset directly under CM? Mar 26 19:19:23 we should talk about this in #cyanogenmod Mar 26 19:20:53 pfn: well anyway, you might get better battery life with something made for the Tegra 2, like Diceplayer with the Tegra 2 plugin Mar 26 19:28:57 Ankhwatcher, sure, if you use the native op codes, why not Mar 26 19:30:28 ugh, cm10.1 is broken on p4wifi, it gives a phone UI Mar 26 19:30:43 does anyone know if you need the analytics.xml if you aren't using EasyTracker with Google Analytics? Mar 26 19:31:03 hey Mar 26 19:31:22 hey is for horses Mar 26 19:31:37 no, that's hay Mar 26 19:31:50 man…the android MTP client for OSX drives me crazy Mar 26 19:31:53 pfn: I'm using cm-10.1-20130324-NIGHTLY and it looks fine to me. Mar 26 19:31:55 wish it was open source Mar 26 19:32:04 g00s: you just got schooled Mar 26 19:32:32 Ankhwatcher: i know the difference between hey and hey; we have horses :D Mar 26 19:32:34 Ankhwatcher, it's giving me the phone UI right now in the latest nightly Mar 26 19:32:49 zhobbs, it's so stupid that it only understands one device at a time Mar 26 19:32:52 *hey and hay, ugh Mar 26 19:33:09 pfn: also, it doesn't have a "don't automatically launch when you plug in a device" feature Mar 26 19:33:24 zhobbs, that's annoying, too, yes Mar 26 19:33:26 I only need it open 1% of the time I plug in my phone Mar 26 19:33:37 zhobbs, I hate the popup I get because I have it lock-screened Mar 26 19:33:39 most of the time I plug in for adb or charging Mar 26 19:33:43 ditto Mar 26 19:34:35 huh, so going-forward, new tablet ui = giant phone ui? Mar 26 19:34:36 that's lame Mar 26 19:35:03 hrm Android FIle Transfer doesn't popup for me when i plug in but works when i open it manually. not sure if i had to do something to get that behavior. Mar 26 19:35:36 pfn: https://play.google.com/store/search?q=%22tegra+2%22+video&c=apps Mar 26 19:35:40 kevinb: I tried to figure out a way to do that, couldn't figure it out. Mar 26 19:36:07 I'm going to go walk the dog Mar 26 19:36:43 zhobbs: maybe remove it from login items? (System Settings > Accounts > Login Items > minus button) Mar 26 19:37:32 kevinb: genius :) Mar 26 19:38:08 zhobbs: if that doesn't work, I just noticed I have Android File Transfer.app/Contents/Resources/Android File Transfer Agent.app renamed to Android File Transfer Agent_DISABLED.app Mar 26 19:38:37 Ankhwatcher, vlc has tegra2 optimizations, supposedly Mar 26 19:39:18 kevinb: awesome, worked Mar 26 19:39:29 cool Mar 26 19:41:00 hey guys, is there any easy way to play a radio FM from my android app? Mar 26 19:41:43 BulleTime, what do you mean Mar 26 19:41:48 well Mar 26 19:42:30 i was thinking im making a appointment app and i want to enable the radio on speakers instead of playing a mp3 sound Mar 26 19:45:08 so im looking for a way to play FM radio in eclipse Mar 26 19:45:20 oh i dunno man im a noob Mar 26 19:45:25 haha :D Mar 26 19:45:51 anyone? Mar 26 19:48:07 if you mean actual FM radio then not all devices have the hardware and i don't believe the android API includes support for it, so each device implementation is different and likely undocumented. if you mean streaming from some web service it'd depend on the service's API Mar 26 19:50:12 hooray! pushed out a giant update where i changed a humongous part of the codebase and we have had very small number of bug reports :) Mar 26 19:54:39 pfn: tegra2 optimisations in vlc? How did that turn out? Mar 26 19:54:49 dunno, not great, apparently Mar 26 19:55:07 yes kevinb i think i would go for webradio Mar 26 19:55:15 Yeah. As I understand it it's mostly about detecting the lack of features (despite being ARMv7) and disabling code. Mar 26 19:55:21 ugh, lil wayne on the landing page of play store :| Mar 26 19:55:38 Unless by "optimisations" you mean "avoidance of illegal instruction exceptions". Mar 26 19:56:09 Gumboot, well, I thought they'd implement the specific tegra2 instructions, guess not Mar 26 19:56:38 any advise how to stream web radio? Mar 26 19:56:41 Tegra2 is ARMv7 minus NEON, and minus half the VFP register file. The pre-existing optimisations had to either be rewritten or disabled. Mar 26 19:57:26 (strictly everything else is ARMv7 _plus_ NEON and full VFPv3 -- but nobody thinks that way) Mar 26 19:57:42 interesting Mar 26 19:59:01 The most gory part is that if you want to use the full floating-point register file then you have to parse the CPU features and detect that vfp-d16 (or somesuch) is _absent_ from the list. If it's present then you have to use a restricted feature set. Mar 26 19:59:31 Hello, i have a listview and for each i have a Imageview. I have an issue, when i invalidate a imageview, all imageview contain the same image. Mar 26 20:02:42 ok, not all but random imageview are affected and while i scroll the listview the images blink.. Mar 26 20:03:47 Example: i have 2 items and each one have a imageview. I call iv.setImageBitmap(bmImage.getProfileImage()); Mar 26 20:04:18 Gumboot, how nice of nvidia to make tegra2 so awesome Mar 26 20:04:20 exit Mar 26 20:04:28 oops :) Mar 26 20:05:12 They only produced a product which ARM sold them the rights to produce. That option should never have been put on the market. Mar 26 20:05:18 and iv.invalidate(); one imageview in item 1, also imageview in item 2 changes!! why? Mar 26 20:07:16 uragano2 how can we tell without code? Mar 26 20:09:34 How can I reset my iap for my test account so its as if I'm buying the item for the first time? Mar 26 20:11:53 xorgate: here http://pastebin.com/64g0Wh9U :D Mar 26 20:15:18 new android phones support framebuffer manipulation or OpenGL is always the way to go when doing interactive media? Mar 26 20:16:25 uragano2 i dont think you need to call invalidate but i don't know the answer Mar 26 20:18:59 how can I capture my android traffic in my local wifi network (uses wpa-psk) using wireshark? Mar 26 20:22:47 Hi, I installed the android sdk, but it is 6.4G! Are there some parts that I can remove? Mar 26 20:23:40 like system-images? Mar 26 20:25:25 Somelauw: you probably won't need all the emulator images Mar 26 20:27:17 Hey, I have a question Mar 26 20:27:24 I have an activity that has two or more buttons on it Mar 26 20:27:37 the buttons have an onclicklistener that starts an activity Mar 26 20:27:49 however, it's possible to button-mash and start more than one activity at a time Mar 26 20:28:35 what's the question? :0 Mar 26 20:28:40 um Mar 26 20:28:54 I don't want to be able to start a bunch of activities when only one should pop up Mar 26 20:29:26 so disable the others Mar 26 20:29:27 you coul Mar 26 20:29:29 yes that Mar 26 20:30:06 that's an enormous amount of work for something so basic :\ Mar 26 20:31:10 and they'd all have to be re-enabled, I suppose, when the activity becomes visible again Mar 26 20:31:19 just set a flag Mar 26 20:31:32 onClick() { if (!mFlag) { launchSomething(); } Mar 26 20:31:38 then clear the flag in onresume Mar 26 20:32:01 can I disable all user interaction for an activity until the new activity is launched? Mar 26 20:33:38 lol Mar 26 20:33:45 some of these buttons are in adapter code Mar 26 20:37:20 Can I remove some of the folder in platforms and system-images? Mar 26 20:37:49 Somelauw: why? Mar 26 20:38:25 vovkab: because the android sdk is 6.4 gig! Mar 26 20:38:54 open android manager and just uncheck what you don't need Mar 26 20:39:10 Did you download each and every platform? :D Mar 26 20:40:00 kakazza: I did tools/android update sdk --no-ui and yes it installed everything. Mar 26 20:40:15 Somelauw: why you need everything? Mar 26 20:41:10 vovkab: I don't Mar 26 20:41:23 you basically need only 2, Mar 26 20:41:23 api 7 or 8 and one latest api 17 Mar 26 20:42:08 ok, open tools/android and check everything except 2 and click delete packages... and your problem is solved Mar 26 20:42:34 oh well, at least phone ui on tablets brings one much-needed enhancement: a way to hide that stupid status bar Mar 26 20:42:41 if at least only for some use-cases Mar 26 20:42:52 it doesn't enable a full kiosk mode, but that's ok, for now Mar 26 20:43:07 should I keep api 7 or 8? Mar 26 20:43:18 pfn: kiosk mode - is launcher Mar 26 20:43:35 Somelauw: it depends what is min api you support, so you can check it with emulator Mar 26 20:44:25 or if you support 2.x in your app, maybe you are not... Mar 26 20:45:02 vovkab, ? Mar 26 20:45:05 kiosk mode isn't launcher Mar 26 20:45:11 I made two emulators with versions 3 and 14, so I think I'll keep api 3, 8, 14 and 17. Mar 26 20:45:44 pfn: in android, kiosk mode will be exactly launcher mode Mar 26 20:45:51 vovkab, but it isn't Mar 26 20:46:06 ok "kios mode" :) Mar 26 20:46:16 launcher doesn't disable the status bar, notifications, and access to settings Mar 26 20:46:26 you can hide them Mar 26 20:46:36 I suppose that's true Mar 26 20:46:48 just monitor open activities and show luncher when you don't want, i.e. settings to be shown Mar 26 20:47:02 still not completely convenient, but workable Mar 26 20:47:08 this is a hack, but still possible Mar 26 20:48:48 one of the apps doing this is https://play.google.com/store/apps/details?id=com.famigo.sandbox.full Mar 26 20:50:55 vovkab: thanks, that's better. Only 2.6 gig now. Mar 26 20:52:04 Somelauw: you also can go inside each api, in android maanager and delete sdk samples and google apis, if you don't need them Mar 26 20:52:10 You're developing for API 3? Wow Mar 26 20:52:49 kakazza: Smallest common divisor. Mar 26 20:53:55 also, api 17 emulator is a bit slow Mar 26 20:56:39 Somelauw: smallest common divisor in what way? Mar 26 20:57:08 all the other apis divide evenly by api3 Mar 26 20:58:50 lol Mar 26 20:59:55 Somelauw: If you have an Intel CPU, try installing the Intel Kernel Extensions or whatever is necessary for your OS and use the x86 image, maybe in addition with GPU acceleration. Mar 26 21:00:02 It's _very_ fast here that way. Mar 26 21:00:14 Also, what do you mean with smallest common divisor? Mar 26 21:06:00 kakazza: looks like haxm is only supported in win/mac Mar 26 21:08:59 There's a guide for Linux too: https://developer.android.com/tools/devices/emulator.html#accel-vm Mar 26 21:09:46 Using the KVM software package. Never tried that myself, though. Mar 26 21:12:02 hi Mar 26 21:13:01 kakazza: oh, thanks, missed this manual. Will definitely try it today... just need to recompile the kernel and build kvm Mar 26 21:15:29 I can't think straight. Why is appWidgetId showing the correct ID of the widget instance, but not appWidgetId2? http://pastebin.com/hSv1mqvJ Mar 26 21:20:17 appWidgetId2 is always 0 Mar 26 21:20:34 while appWidgetId counts up one for each widget instance made Mar 26 21:21:01 appWidgetId and appWidgetId2 are member variables, not local variables. I'm betting when you have ACTION_WIDGET_BUTTON1 your extras are either null or don't contain EXTRA_APPWIDGET_ID Mar 26 21:22:30 Quacked: kevinb is right, your intent you send on button click just don't have widget id... Mar 26 21:23:16 I see Mar 26 21:24:21 What would be the proper location to store temporary files in an android application? Mar 26 21:24:33 e.g., Environment.getExternalStorageDirectory(); Mar 26 21:25:10 rburton-: it depends on how much and what you want to store Mar 26 21:25:16 here is all options: http://developer.android.com/guide/topics/data/data-storage.html Mar 26 21:25:33 Basically a few items, images captured for transfer, video, and lastly a small configuration Mar 26 21:25:46 if it's like.. a cache, then http://developer.android.com/reference/android/content/Context.html#getExternalCacheDir() Mar 26 21:25:53 rburton-: https://developer.android.com/guide/topics/data/data-storage.html#InternalCache Mar 26 21:26:05 Yeah, internal or external cahce. Mar 26 21:26:49 Okay any restrictions I should be aware of? Going to read those links Mar 26 21:27:40 cant I get the widget id somehow when button is clicked? atm buttons on every widget instance do the same Mar 26 21:30:00 you can add the current widget id to the pending intent when setting the pending intent Mar 26 21:30:45 good idea I think Mar 26 21:30:51 Ill try Mar 26 21:34:15 Hi, I have a UI activity, this activity implements a Listener interface. There is another instance that have a list of the listeners (one is my activity) at each second call my activity override listener method. The problem is that the application crashes. Mar 26 21:41:27 g00s: Ooooooooooooh! MUST HAZ!! Mar 26 21:44:51 capella: hehe; there was a plugin i hearda bout a long time ago - can't find it now - that visualized your history for a session as a DAG. wish i could find that (how did i get here?) sometimes the path is just as important Mar 26 21:46:04 My mom wants that so she can put two recipe sites side by side and scroll the contents to compare :P Mar 26 21:46:56 how can I find out local socket port which is used in HttpUrlConnection? Mar 26 21:47:04 Hiya! I need help to decode a JSON (from PHP to Android), the JSON example code is http://pastebin.com/n5wbeGXE but I dunno how to decode to output the strings on AlertDialog Mar 26 21:50:04 capella: could be good for reading the android docs too :) Mar 26 21:51:15 after they fix that touchpad bug :P Mar 26 21:55:57 g00s .... feel free to ping them on the touchpad bug add another comment asking re:status ? Mar 26 22:00:00 capella: there was another extension which paused js on background tabs; it was pretty cool. but even better, i'd like to see FF unload tabs with something like a LRU policy. Mar 26 22:00:35 What arou you guys talking about? Mar 26 22:00:47 Came out of nowhere Mar 26 22:01:00 hmmmm .... unload tabs? we've got devs in the habit of leaving hundreds of active tabs Mar 26 22:01:32 i thought they might add that to 22 or somewhere ; tentative Mar 26 22:02:45 capella: p_l pointed out the excellent tree style tabs the other day; its been great Mar 26 22:04:02 So I read some teenager from london got his app bought for millions. I wanna be the next teenage millionaire Mar 26 22:04:23 I'm 23 but a teengaer at heart Mar 26 22:04:28 see I can't even spell Mar 26 22:04:31 *teenager Mar 26 22:04:42 i'm rich at heart Mar 26 22:04:50 coco89: sometimes, people just get lucky :) Mar 26 22:05:05 but luck = hard work * networking i think Mar 26 22:05:09 g00s, lol I know right. I wanna be lucky sometimes :P Mar 26 22:05:26 I'm working hard Mar 26 22:07:05 which reminds me, i need to finish "the drunkard's walk" by mlodinow Mar 26 22:07:47 the what Mar 26 22:07:51 oh it's a book Mar 26 22:11:21 it's how he gets to work every morning Mar 26 22:12:21 :P Mar 26 22:12:36 storkme: work? wut work :P Mar 26 22:14:56 kevinb: when you said add current widget id to the pending intent, did you mean something like "active.putExtra("zeId", "3");" before "active.setAction(ACTION_WIDGET_BUTTON1);"? I did that and I tried with "intent.getStringExtra("zeId"));" on click of button, but it returned null Mar 26 22:16:07 i am coming to the conclusion that writing a radio streaming service is more difficult than i'd first anticipated Mar 26 22:17:02 lota threading involved. Mar 26 22:17:51 here is the class: http://pastebin.com/1MmEM45L Mar 26 22:18:44 i have a viewpager and for every page I'm trying to display another view inside the relativeview with some images in it. i populate that view 'onpageselected', but it seems to hold everything i put in it as i change pages. is there an easy way to reset it? Mar 26 22:18:52 line 35 returns null :/ Mar 26 22:20:17 kakazza: gpu acceleration simply shows a black screen for me Mar 26 22:39:46 http://stackoverflow.com/questions/15627574/gson-graphadapterbuilder-fails-with-interfaces Mar 26 22:49:02 jug6ernaut_: will forward Mar 26 22:49:41 JakeWharton much appreciated :) Mar 26 22:53:34 Hi, I have a UI activity, this activity implements a Listener interface. There is another instance that have a list of the listeners (one is my activity) at each second call my activity override listener method. The problem is that the application crashes. Mar 26 22:54:17 joker_89: http://imgur.com/jacoj (its in the topic) Mar 26 22:54:58 asynctask Mar 26 22:56:17 hey guys Mar 26 22:56:51 is there anyway I can use ActionSherlock theme for normal tabs? Mar 26 23:00:13 use a sherlockactivity and a tabhost Mar 26 23:02:41 meetoman: you can reference the styles directly Mar 26 23:03:09 they're just state-list 9-patches used for the background Mar 26 23:03:12 shouldn't be too hard Mar 26 23:05:59 where did this file go? Mar 26 23:06:11 JakeWharton, I am trying to, but some stuff got deprecated Mar 26 23:06:12 https://code.google.com/p/moloko/source/browse/libs/ActionBarSherlock/res/layout/abs__action_bar_tab_layout.xml?r=504 Mar 26 23:06:13 like this one Mar 26 23:08:08 JakeWharton, https://gist.github.com/JakeWharton/1126843 Mar 26 23:08:19 that's from ABS 3, not 4 Mar 26 23:08:48 (the gist) Mar 26 23:09:29 what do I do for ABS 4? Mar 26 23:09:39 i don't know. never tried it. Mar 26 23:09:49 it's probably similar Mar 26 23:10:02 just use the tab 9-patches for the background and the tab text style for the text Mar 26 23:11:34 hmm, it's a lot more different =( Mar 26 23:11:49 how can i sync 2 diferent threads? Mar 26 23:12:46 finally got my app working on n4 Mar 26 23:12:53 runs really fast zomgg¬! Mar 26 23:13:32 i have an activity that is modified throwght another class Mar 26 23:13:55 but if i want to modify by another class then my app hangs Mar 26 23:19:05 I have an activity "mainActivity" that implements MyListener interface. In this activity i create a Foo class which have a set of MyListener instances and I add "this" to the list. After i call a Foo method wich make an action to all elements of MyListener interface. and then my app hangs Mar 26 23:19:20 why in android this is not possible? and in pure java yes Mar 26 23:20:10 i got it JakeWharton Mar 26 23:29:04 I'm a bit stumped on broadcastreceivers and services. I've read a bunch, but just can't seem to wrap my head around it. Thought I'd ask here. Mar 26 23:29:33 A broadcastreceiver can only 'receive' when the device in not sleeping. Correct? Mar 26 23:30:00 it would depend a bit on how you define it Mar 26 23:30:31 generally one either places it in manifest, or registers it in onResume and unregisters in onPause Mar 26 23:30:41 so if a device is sleeping and I have a pendingintent to the receiver, it can still receive the intent? Mar 26 23:31:43 i'm not sure Mar 26 23:32:13 me either. :-P Mar 26 23:33:35 Well, yes and no.. For a broadcast to be sent, the device would have to be woken up Mar 26 23:33:52 what if it's sent through alarmmanager? Mar 26 23:34:05 So if the device is asleep, you wont receive a broadcast no.. Cus the broadcast wont be sent at all Mar 26 23:34:13 AlarmManager wakes up the device to deliver its alarm Mar 26 23:34:50 So you'll receive the broadcast, but the device will go back to sleep unless you hold a wakelock Mar 26 23:35:04 Aaaaaah..... ok. Mar 26 23:36:00 Ok... the question is where do I hold the wakelock? in the broadcastreceiver? Mar 26 23:36:45 or in the activity that calls the alarmmanager code? Mar 26 23:40:57 In your receiver Mar 26 23:41:04 let me backup because I really don't want to set a wakelock unless I have to. Mar 26 23:42:01 if the broadcastreceiver gets the intent and executes the code, will this execution be completed before the device goes back to sleep, or will the device sleep immediately after receiving the pending intent? Mar 26 23:42:28 It can potentially go back to sleep once onReceive returns Mar 26 23:42:58 so then it would be best for me to set a wakelock, execute the code, then release the wakelock after the code is executed? Mar 26 23:43:03 broadcast don't stay alive for very long anyways Mar 26 23:43:15 idk what the set time is Mar 26 23:44:47 Basically, yeah Mar 26 23:47:28 ok... I'm following so far. If the code between the wakelock sets another alarmreceiver pendingintent to the same class, the device will once again wake, obtain wakelock, execute code again, release wakelock, then follow through the same regiment? If this is correct, is there anything I need to consider as far as multiple intents, or releasing anything (still kindof new on releasing holds). Mar 26 23:47:39 the device should stay awake as long as the thread is alive, if u are doing enough work that u need to keep the device awake you should start a new thread/asynctask. Mar 26 23:47:53 Hello, i have a static Hashtable. When i try to parcelable it i receive this error ClassNotFoundException when unmarshalling:com.util.custom Mar 26 23:48:12 custom is parcelable and it is in the same package. Mar 26 23:48:44 What should i do to pass it correctly? Mar 26 23:49:33 why if i call a method taht uses Thread.sleep(), hangs my activity? Mar 26 23:49:35 jug6ernaut_: the device needs to stay awake long enough to Toast, or play a simple sound, then sleep again. Mar 26 23:50:09 You don't need to show a toast if the device is asleep Mar 26 23:50:10 Toast is fine, for the sound i would definitely do that in a separate thread Mar 26 23:50:22 SimonVT hehe true Mar 26 23:50:53 Rescue9 if i may ask what is the broadcast? Mar 26 23:51:10 SimonVT: the whole point of waking the device is to show the toast to the user... actually, what I mean is that I need to wake the device to show a notification to the user. I just using Toast now for testing as I'll have to do more research on notifications. Mar 26 23:51:33 Notification sounds reasonable Mar 26 23:51:40 agreed Mar 26 23:51:47 Toast will never be seen by the user if the device is asleep Mar 26 23:52:10 I may be going about this completely wrong... if so please offer any alternatives. This is what I'm trying to achieve.... Mar 26 23:52:26 Rescue9 what is the broadcast for/sent by Mar 26 23:52:47 I want to set a time, wake the device at that time and send a notification, set a new time, wake the device at the new time & notify, set a new time.... etc all without user interaction. Mar 26 23:53:08 are the times periodic Mar 26 23:53:33 yes. I will have to write code to randomize the time based on various settings. Mar 26 23:53:48 so it isn't periodic? Mar 26 23:54:06 or is it periodic based based on a random interval Mar 26 23:54:15 periodic based upon a random interval Mar 26 23:54:30 k Mar 26 23:55:02 what u want to use is the AlarmManager to schedule a periodic notification Mar 26 23:55:14 yes. I have that down so far. Mar 26 23:55:32 well thats all u should need Mar 26 23:55:51 I can do that and log sysout's while the device is awake. I'm just having problems waking the device & sending the notification. Mar 26 23:56:10 AlarmManager will wake up the device Mar 26 23:56:24 something like RTM_WAKEUP or smt Mar 26 23:56:49 but then I'll need to set the wakelock inside the intent display the notification and run the randomization prior to going back to sleep. Correct? Mar 26 23:57:03 'inside the intent to display' Mar 26 23:57:21 u randomize the interval after each notification? Mar 26 23:57:25 so its not periodic lol Mar 26 23:57:26 yes Mar 26 23:57:42 it happens periodically, just not at the same interval. Mar 26 23:57:52 lol Mar 26 23:57:55 thats not periodic :P Mar 26 23:58:16 but yea, u need to go to a broadcast, schedule the new broadcast, and send a notification. Mar 26 23:58:18 I want to die! Develop for Android is hard! Mar 26 23:58:23 u shouldn't need a wake lock for htat Mar 26 23:59:30 Now i need to create a table with 5 columns and xxx rows Mar 26 23:59:47 I guess since I was trying to Toast, the device wasn't turning on and showing anything. however, using notifications I shouldn't have any problem right? Mar 27 00:00:01 This app will be a client of my website, to register, load data, etc Mar 27 00:01:00 Rescue9 right Mar 27 00:01:11 thanks jug6ernaut_ Mar 27 00:01:23 you too SimonVT... thanks! Mar 27 00:02:10 how can i update a UI from another Thread in java? Mar 27 00:03:45 activity.runOnUiThread Mar 27 00:03:51 handler from UI thread Mar 27 00:03:58 callback Mar 27 00:05:28 joker_89 no pm Mar 27 00:07:15 i don't know waht exactly i need for update my UI with the class that my ui activity create and execute the method that runs for a long period and call the listener of my UI Mar 27 00:07:36 like a gps and a class that returns coordenates Mar 27 00:07:37 AsyncTask Mar 27 00:07:43 oh Mar 27 00:07:52 i read that asyntask is for periods of max 3 seconds Mar 27 00:08:02 well the gps doesn't need to run in a separate thread Mar 27 00:08:10 asynctask fan run for how ever long u want Mar 27 00:08:24 it's a simulated gps, is not a real gps Mar 27 00:08:53 so is this a service? Mar 27 00:08:55 my class reads a xml file and every second return the values and call the listener of my gui Mar 27 00:09:10 no, for the moment Mar 27 00:09:37 so ur just reading the file in the background? Mar 27 00:10:04 yes in another class, which this class has a list of listeners, and one listener is my UI activity Mar 27 00:10:42 and then call the method overrided for update the values of my UI Mar 27 00:10:46 use a callback to a handler, or runOnUiThread Mar 27 00:11:02 not AsyncTask? Mar 27 00:11:05 callback=ur listener Mar 27 00:11:09 no not asynctask Mar 27 00:11:29 i mean, i guess u could, but it would not be the right way Mar 27 00:11:39 so callback to a handler Mar 27 00:11:56 yup Mar 27 00:12:07 or runOnUiThread Mar 27 00:12:28 Handler.Callback? Mar 27 00:13:07 and i am doing this on the onCreate() of my ui activity (main activity) Mar 27 00:13:26 no Mar 27 00:13:31 create a handler Mar 27 00:14:00 then in ur listener on the activity call handler.post(runnable) inside the runnable do what u want with the UI Mar 27 00:14:12 same u could do activity.runOnUiThread(runnable) Mar 27 00:14:35 i going to try Mar 27 00:22:15 ok with runOnUiThread works :) Mar 27 00:22:18 thanks jug6ernaut_ Mar 27 00:22:28 np Mar 27 00:27:10 jug6ernaut_ when there are listeners is good to use runOnUiThread, but why no AsyncTask? Mar 27 00:29:03 asyntask is for when you have something u need run in the background and then on the UI thread Mar 27 00:30:00 ok Mar 27 00:30:04 ARGH! I've been trying to figure out all night why my device wasn't executing when waking. Thought it was due to needing a wakelock as discussed above. Turns out the receiver wasn't in the manifest. Kindof just takes the wind out of the sails ya know. Mar 27 00:30:25 Mar 27 00:31:24 …. Mar 27 00:31:30 Rescue9 always long to logcat... Mar 27 00:31:54 apparently I'm not using logcat correctly... Mar 27 00:31:56 (we have all been there tho hehe) Mar 27 00:32:13 I never saw anything about it in the cat. Mar 27 00:32:31 lol Mar 27 00:32:34 doing something wrong then Mar 27 00:33:41 I'm on verbose. I see the sysout messages that I put in ther efor testing. nothing else. Mar 27 00:34:10 .... Mar 27 00:34:25 afaik i know its impossible to screw up logcat Mar 27 00:35:00 Log.i(TAG, "catnip") <-- watch out Mar 27 00:35:11 oooo shit Mar 27 00:36:09 let me break it again and see if I'm just missing something. I'm watching the logcat inside eclipse. Mar 27 00:36:42 don't do any filtering Mar 27 00:40:02 a general question. I need to put some squares in raw with text information inside. What will be more custumizable: webView using Html to draw squares and information or images and text inside? Mar 27 00:40:39 the problem is to adapt the squares with the screen Mar 27 00:41:01 How come the theme Widget.Holo.Light.CompoundButton.Switch gives me Widget.Holo.CompoundButton.Switch Mar 27 00:41:03 web view for drawing? Mar 27 00:41:12 sounds like a backwards solution... Mar 27 00:41:50 if not webview, the only other solution are images Mar 27 00:41:57 not? Mar 27 00:42:09 I'm using a backport for the switch. Mar 27 00:44:12 joker_89 what are u wanting to do exactly Mar 27 00:46:04 trying to understand some of these API's. Is there a specific reason why the flags are listed twice? For example: http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#FLAG_HARDWARE_ACCELERATED Mar 27 00:46:05 mm in the bottom of the screen (in landscape) put a raw of squares like traffic information boards with the name of the next point, km and time Mar 27 00:46:38 why wouldn't u just theme a textview Mar 27 00:46:40 can be 2 panels or 10 with the slide efect Mar 27 00:47:09 can be good themed a textview? Mar 27 00:48:20 i am seeing that yes in google Mar 27 00:52:29 Is HoloEverywhere good? Mar 27 00:53:00 no Mar 27 00:54:03 SimonVT: I assume you meant "you shouldn't use it, because it breaks user experience" not "the code is bad" Mar 27 00:54:36 How does it break the user experience? Mar 27 00:54:37 Right? Mar 27 00:54:59 agy2154: Holo did not exist on 2.x devices and still doesn't. Mar 27 00:55:24 Compared to the other apps it will not have the look and feel people are used to on their device. Mar 27 00:55:45 kakazza: True but the AB wasn't on 2.x devices either but people still put it. Mar 27 00:55:46 There's nothing wrong with using a holo-like style on older platforms Mar 27 00:55:53 It's just styling Mar 27 00:56:04 The concept that you need "holo everywhere" is wrong tho Mar 27 00:56:16 And no, that's not what I meant Mar 27 00:56:23 The library is an abomination Mar 27 00:56:29 Howso? Mar 27 00:56:30 SimonVT: I'm good. I don't want to use the whole thing. I just want to use the switch was introduced in 4.x Mar 27 00:57:38 It does too much Mar 27 00:57:58 agy2154: Pick out the parts you need, don't add a dependency on the entire library Mar 27 00:58:32 It's like the guy is trying to backport the entire framework Mar 27 00:59:02 SimonVT: I got a individual library for that but it turns out that I can't override the styles in the XML. Mar 27 00:59:52 Rescue9: Yes, look up setFlags .. the mask is which bits will be reset/set, flags are which bits are set Mar 27 01:00:17 Thanks SimonVT. will look that up. Mar 27 01:00:31 There are also just an addFlags method Mar 27 01:00:37 Depending on your needs, that might be enough Mar 27 01:00:48 I just need to add flags that turn the screen on. Mar 27 01:01:24 SimonVT: Do all Libraries use the current code if your API version is high enough? Mar 27 01:01:25 because it doesn't seem that alarmmanager does that for me. I just have to figure out how to set those flags from a broadcastreceiver. Mar 27 01:02:15 You don't set window flags from an alarmmanager broadcast.. There might not even be a window Mar 27 01:02:20 agy2154: That made no sense to me Mar 27 01:03:11 okay, then is there another method, other than notifications, to turn on the screen from a broadcast? Mar 27 01:03:23 SimonVT: Like do you know how ABS doesn't use its own code for devices who can support the AB by themselves? Do all other support library do that too? Mar 27 01:03:39 Why do you need to turn the screen on? Mar 27 01:04:18 agy2154: No, ABS code is made to use the native implementation when available. Depending on the library, that's just not feasible or necessary Mar 27 01:04:19 to be able to see it Mar 27 01:04:20 duh Mar 27 01:04:28 well.... lol. I need to notify the users of something. :-P Just looking for other alternatives as the program I'm writing targets api 10 which doesn't have the notificationmanager built in it. Mar 27 01:04:38 * SimonVT slaps canadiancow Mar 27 01:04:41 :D Mar 27 01:04:48 ROFL... well. .now that you mention it Mar 27 01:04:57 What if the device is asleep, screen off, in my pocket Mar 27 01:05:18 I'll have it vibrate and give a sound as well. Mar 27 01:05:31 s/as well/instead of turning on the screen/ Mar 27 01:05:35 I'm guessing that you're trying to tell me that a notification is the best way to handle this. Mar 27 01:05:54 Yes Mar 27 01:06:12 * Rescue9 is hardheaded Mar 27 01:06:36 notifications is a bit beyond my scope of learning... course broadcastreceivers was earlier today as well. Mar 27 01:06:48 must break out google-foo Mar 27 01:07:09 Also, notificationmanager was since api10 Mar 27 01:07:10 1 Mar 27 01:07:11 1 Mar 27 01:07:14 Not 10 Mar 27 01:07:19 Not 11 either, 1 Mar 27 01:09:01 well... I don't know how I missed that. I looked at the APi and thought I saw 11. thanks! makes it easier on me. Mar 27 01:09:35 Might be thinking of Notification.Builder Mar 27 01:09:57 Which was added later, but has been backported in the support library Mar 27 01:10:16 wonderful. so much easier. Mar 27 01:18:50 I'm making an app that is carrying out data-logging over a long period of time (~12 hrs, with measurements at 1 minute intervals) through a USB accessory. It reports data back by Wifi. What do I need to do to make sure the phone doesn't go to sleep, close the Wifi connection, etc? Mar 27 01:19:31 wakelock ? Mar 27 01:22:01 is onResume() called when the user returns to the activity after clicking the back button? Mar 27 01:22:43 agy2154 http://developer.android.com/images/activity_lifecycle.png Mar 27 01:24:20 jug6ernaut_: hmm is returning from multitasking considered "Returning to the activity"? Mar 27 01:24:39 from multitasking? Mar 27 01:25:05 lol Mar 27 01:25:27 agy2154 gonna say no, not really knowing what ur talking about. Mar 27 01:25:45 that life cycle is for an activity, or the UI really. Mar 27 01:25:59 jug6ernaut_: ohh so switching between apps doesn't count Mar 27 01:26:06 multitasking emplies threading, which is not directly related to that ifecycle Mar 27 01:26:41 how do i set background color #FFE? Mar 27 01:26:52 when u say apps do you mean between activities or other applications on the phone Mar 27 01:26:56 * jug6ernaut_ really hates "apps" Mar 27 01:27:11 zhej #FFE is not a color Mar 27 01:27:24 jug6ernaut_: #FFFFEE Mar 27 01:27:44 xml or java? Mar 27 01:27:49 java Mar 27 01:27:59 setBackgroud Mar 27 01:27:59 StingRay_: What sorts of wakelock? I currently get a WifiLock. Mar 27 01:28:25 ejcweb: http://developer.android.com/reference/android/os/PowerManager.WakeLock.html Mar 27 01:28:39 wifilock != wakelock Mar 27 01:28:41 jug6ernaut_: u mean just Background Mar 27 01:29:04 no Mar 27 01:29:12 are we talking a view, activity what? Mar 27 01:30:13 jug6ernaut_: nvm, found it, ty Mar 27 01:30:20 np Mar 27 01:33:16 Xabster: just wanted to say thanks again… for my encryption lecture, all implemented and working now :) Mar 27 01:50:40 wise men of Android dominion, how do you write a design spec for your designer? Mar 27 01:51:56 25s no answer? I'm out of here! Mar 27 01:52:11 How come i keep getting this problem by using a view from a library in my preferences layout http://pastebin.com/6iFBqnvB ? Mar 27 01:52:20 jug6ernaut_: lmao Mar 27 01:52:41 agy2154 u need to make a custom preference Mar 27 01:52:50 u can not use a view in place of a preference Mar 27 01:53:05 shipit_: you want an answer to that ? Mar 27 01:53:11 StingRay_: yes please! Mar 27 01:53:23 sorry got disconnected Mar 27 01:53:29 cause I'm more of a designer/vfx artist/game artists etc than a programmer Mar 27 01:53:43 I would really appreciate your input Mar 27 01:53:52 I came up with a cool analogy in console games dev once Mar 27 01:54:33 and artist thinks of Pegasus , bolts of lighting out the arse and can break the sound barrier Mar 27 01:54:47 designer and producers thing stallion, the fastest ever Mar 27 01:55:02 programmers think weight efficient bearing donkey/mule Mar 27 01:55:20 lolz! this is so much wisdom :) Mar 27 01:55:38 the point to get all on the same page starts with programmers Mar 27 01:55:39 I've been one of those but not at the same time Mar 27 01:55:50 tech doc Mar 27 01:55:54 well in console game dev Mar 27 01:56:09 tech doc + concept doc = start of a design doc Mar 27 01:56:58 programmers need to eval the main concept doc and outline problems and just whats possible and not in the time Mar 27 01:57:25 so your 1st task could be to educate on limitations Mar 27 01:57:36 no this is not possible cause of x Mar 27 01:58:04 designers are floaty Mar 27 01:58:13 they need grousing sometimes Mar 27 01:58:15 :) Mar 27 01:58:22 :) Mar 27 01:58:49 but you main goal I would say, it make sure their dreams and concepts are realistic in terms of production time and capability Mar 27 01:58:54 * jug6ernaut_ wishes he was professional enough to actually make designs Mar 27 01:58:58 how you do that depends on project platform Mar 27 01:59:26 hm Mar 27 01:59:33 too many programmers in my time wait to get the concept/design docs Mar 27 01:59:54 that should never be the case, cause if you have to say, no we can't do this cause of time/capability Mar 27 02:00:04 then YOU have just wasted project time Mar 27 02:00:15 well, I speak from years in console game dev Mar 27 02:00:21 not really mobile Mar 27 02:00:34 * shipit_ nodding Mar 27 02:00:45 StingRay_ what games u worked on? Mar 27 02:00:47 StingRay_: what plat.? Mar 27 02:01:19 n64,ps, --- pc ----- xbox360,ps3,wii Mar 27 02:01:35 any big names? Mar 27 02:01:42 StingRay_: the games are actually signed? Mar 27 02:01:51 the what ? Mar 27 02:02:15 ofc they are signed Mar 27 02:02:47 ooo Mar 27 02:02:50 shipit_: Mar 27 02:02:50 i doubt unsigned games will even run on production hardware Mar 27 02:02:53 good example Mar 27 02:03:02 motorstorm Mar 27 02:03:05 jug6ernaut_: unless its hacked Mar 27 02:03:13 needed to be release title for ps3 Mar 27 02:03:17 or as close as Mar 27 02:03:20 StingRay_: lmao that came free with my ps3 Mar 27 02:03:26 agy2154 playing hacked games is for the weak Mar 27 02:03:36 StingRay_ nice Mar 27 02:03:36 StingRay_: you were imparting wisdom on writing specs for designers Mar 27 02:03:37 there was a problem though that was identified Mar 27 02:03:44 the size of levels Mar 27 02:03:53 jug6ernaut_: honesn't i don't play a lot of games anymore other than CSS Mar 27 02:03:56 StingRay_: would love for you to finish that thought when you get a chance :) Mar 27 02:04:00 and the fact that artists would need to be able to work Mar 27 02:04:04 css is a game? Mar 27 02:04:09 is it not possible to use the bluetooth API with the emulator? Mar 27 02:04:09 shipit_: I am now Mar 27 02:04:14 this is a real example Mar 27 02:04:25 not the design ... counter strike source Mar 27 02:04:34 oh Mar 27 02:04:37 * jug6ernaut_ only plays halo Mar 27 02:04:52 and the game I'm deving/porting for android hehe Mar 27 02:04:56 so getting the programmers in a room, and just discussing production Mar 27 02:05:02 with artists/designers Mar 27 02:05:11 lmao.... game.style { font-size:66px} YAY I WON!!! Mar 27 02:05:25 * jug6ernaut_ hates UI design Mar 27 02:05:32 i would rather do backend 100x > UI Mar 27 02:05:48 i second that, except for web gui Mar 27 02:05:53 that allowed a possibles list Mar 27 02:06:19 cause at the point the ps3 was a huge server rack module and not finished Mar 27 02:06:25 hesperaux web UI is the worst by far! Mar 27 02:06:31 so it just put everyone on the same page Mar 27 02:06:34 jug6ernaut_: Would this work on a preference screen https://github.com/ankri/SwitchCompatLibrary ? Mar 27 02:07:22 agy2154 no idea Mar 27 02:07:38 not even sure what I'm looking at Mar 27 02:07:54 shipit_: another good analogy, you don't want to start a f1 race with no car, and having to run round the track building it and making decisions Mar 27 02:08:08 so does anyone know if the emulator is incapable of handling bluetooth API calls? Mar 27 02:08:16 I have worked at and seen many places that do that Mar 27 02:08:30 shipit_: Mar 27 02:08:33 :) Mar 27 02:08:34 StingRay_: :) Mar 27 02:09:02 StingRay_: so, I'm working with a remote designer who is actually better at iOS Mar 27 02:09:22 you mean has knowledge of Mar 27 02:09:26 not better Mar 27 02:09:29 :) Mar 27 02:09:31 StingRay_: yes :) Mar 27 02:09:35 StingRay_: good one :) Mar 27 02:10:02 your paying him ? Mar 27 02:10:12 StingRay_: so thinking how to communicate with him, a spreadsheet with dimensions for ldpi, mdpi, hdpi .. ? Mar 27 02:10:35 just point him to the relevant urls to learn that Mar 27 02:10:41 StingRay_: no, but the co. I'm consulting for is, he is their resident designer Mar 27 02:10:57 StingRay_: yes, I've been sending him to Android Design Guidelines site Mar 27 02:11:08 another thing and it sounds silly Mar 27 02:11:14 mood board Mar 27 02:11:19 StingRay_: but I think he needs specific direction - Mar 27 02:11:28 mood board? (googling) Mar 27 02:11:33 now that sounds like a flakey designer thing, and mood just sounds a bit silly Mar 27 02:11:48 but it's a quick way to add and rule out ideas Mar 27 02:12:01 with everyone contributing Mar 27 02:12:16 you rule them out, but do not remove them from the reference board Mar 27 02:12:31 you just note why they are not appicalble Mar 27 02:12:39 applicable* Mar 27 02:12:57 is this it http://www.moodboard.com/ ? Mar 27 02:13:03 hm Mar 27 02:13:18 I've seen 30ft mood boards for games, and on a side note a DAM DESIGNER always sticks a dam iPhone on there!!! Mar 27 02:13:34 hehe Mar 27 02:13:35 it's a 1st person shooter, wtf is an iPhone doing there!!!!!! Mar 27 02:13:40 dam designers Mar 27 02:14:23 iPhone is the promised land, everyone wants to put out a runaway success app Mar 27 02:14:25 shipit_: well mood board is quite simply an ideas resource, shows ideas, intents etc Mar 27 02:14:41 StingRay_: y, getting the idea now Mar 27 02:14:44 the medium can be a physical whiteboard Mar 27 02:14:51 StingRay_: I will use that for my next project Mar 27 02:14:51 or a shared cloud doc Mar 27 02:15:05 but lets say, to ground this designer Mar 27 02:15:16 StingRay_: basically stick bunch of ideas on a board ... Mar 27 02:15:21 you send a doc/moodboard with reference to app videos Mar 27 02:15:27 hm Mar 27 02:15:28 this is what we can do etc Mar 27 02:15:43 it's that kinda thing, cause it also help communication Mar 27 02:15:58 when you walk up and put a cross on something and a note why it's not poss Mar 27 02:16:06 although normally thats producers job Mar 27 02:16:20 StingRay_: exactly! I am not seeing a color palette from him etc so the app looks unhinged Mar 27 02:16:41 hmm Mar 27 02:16:42 ah see thats another thing Mar 27 02:16:46 you don't need to Mar 27 02:16:58 but with a mood board ideas would have been there Mar 27 02:17:06 yup Mar 27 02:17:16 makes perfect sense Mar 27 02:17:23 I've seen some weird sh*t on mood boards in my time Mar 27 02:17:25 :) Mar 27 02:17:26 right now the project is in every direction Mar 27 02:17:39 except for forward and a shipping timeline Mar 27 02:17:47 hehe Mar 27 02:17:51 thats a producer problem Mar 27 02:18:02 crazy comes out when ppl start competing on ideas Mar 27 02:18:08 I've seen 1 maybe 2 good producers in my time :) Mar 27 02:18:16 yeah, that's the other thing Mar 27 02:18:34 17 years, involved with 20+ games studios, 1 or 2 Mar 27 02:18:38 not a good figure Mar 27 02:18:42 the producer is "shallow", make like that app or 3 other different ones every other day Mar 27 02:18:47 wow ... Mar 27 02:18:58 I'm so screwed Mar 27 02:19:18 if this app is to ship, I have to get everyone on page Mar 27 02:20:17 so basically, force people to make decisions: in or out - features, artwork Mar 27 02:20:50 well I'm an artist/td Mar 27 02:21:05 and I would expect from you…(assuming I didn't know the platform) Mar 27 02:21:33 a full list of capabilities and you outlining what is DONE, and what is POSSIBLE in the time Mar 27 02:21:59 hmm Mar 27 02:22:22 well I would expect that from a R&D dept. but in a mobile sense I would expect that from lead prog. dev. Mar 27 02:23:12 I just woke up, so off for a ciggy and coffee :) Mar 27 02:23:21 thanks a lot StingRay_! Mar 27 02:23:34 you've given me a lot to think on Mar 27 02:24:06 if you think those 3 visions are off, do or say something about it! Mar 27 02:24:21 pegasus, stallion donkey Mar 27 02:24:23 :) Mar 27 02:24:29 :) Mar 27 02:24:34 that's pure gold :) Mar 27 02:24:54 @ Dean Wray : 2001 ;) Mar 27 02:32:16 I have a bug, that I can't re-produce that has happened in my app, I only get it twice in a week and never at a time where I'm next to a computer (sods law) but it's where a method in getView on a baseAdapter must not be called, resulting in my listView data looking raw rather than treated, I do cache data, but obviously I never stop the getView stuff from populating, so an example is changing 0,1 to be sent/receiv Mar 27 02:32:38 I don't understand how that could happen, and at a loss as to how to track it down Mar 27 02:33:57 it's like the listView recycled the view, and did none of the conditional stuff ... Mar 27 02:34:16 could it be data related? Mar 27 02:34:51 well the odd thing is I cache the conditioned data Mar 27 02:35:07 so I'm not checking every call to the view Mar 27 02:35:08 basically there is a conditional path that is or isn't getting executerd Mar 27 02:35:37 poss…there must be a way for me to re-produce this though Mar 27 02:35:39 somehow Mar 27 02:36:20 pastebin? Mar 27 02:38:00 maybe but need to know if it;s the adapter, the resolver or whatever 1st Mar 27 02:38:12 adapter is simple, so don't think it can be that Mar 27 02:38:38 you're plugging data from a ContentResolver? Mar 27 02:38:53 no Mar 27 02:38:58 my value resolver Mar 27 02:39:05 ah Mar 27 02:39:15 does values/visual changes Mar 27 02:39:19 is it a network fetch? Mar 27 02:39:27 no Mar 27 02:39:30 oh Mar 27 02:39:30 cursor Mar 27 02:39:32 ah Mar 27 02:40:00 appears to be a corner case w/ the data being returned from the cursor Mar 27 02:40:23 something is blank or doesn't eval to a true/false Mar 27 02:40:44 well thats the thing, besides visual changes the view is correct Mar 27 02:40:51 well visual and value mapping Mar 27 02:41:02 things that don't change are correct Mar 27 02:41:10 hm Mar 27 02:41:33 I'll wait till it happens again Mar 27 02:41:46 and run to nearest computer Mar 27 02:41:53 download dab Mar 27 02:41:57 adb* Mar 27 02:42:01 :) Mar 27 02:42:06 :) Mar 27 02:42:14 wondering if you can log to file Mar 27 02:43:02 maybe, just one of those annoying once a week type bugs Mar 27 02:43:37 haha -- there's always a reason :) Mar 27 02:43:39 shipit_: are you the remote dev for that project ? working for a studio ? Mar 27 02:44:00 no it's a local company but their resources are all over the map Mar 27 02:45:00 ooo another thing to point out to your designer/s api target considerations Mar 27 02:45:17 things like attrib animations etc Mar 27 02:45:25 if it's <10 Mar 27 02:45:26 hmm ... like Android 2.3? Mar 27 02:45:42 y, I'm targeting API 11 Mar 27 02:45:55 min sdk ? Mar 27 02:46:00 yeah Mar 27 02:46:23 initially they didn't have ActionBar in their design at all Mar 27 02:46:32 dont set minSdkVersion to 11 Mar 27 02:46:35 that serves like no purpose Mar 27 02:46:40 and they figured that Google may not highlight their app Mar 27 02:46:40 10 or 15 Mar 27 02:46:43 11-14 are pointless Mar 27 02:46:46 so now following rules Mar 27 02:46:48 oh Mar 27 02:46:51 hey I have honeycomb !!! Mar 27 02:46:58 well ok Mar 27 02:47:04 :) Mar 27 02:47:05 if there is NOTHING from ics you need, fine Mar 27 02:47:15 but there are like three users of honeycomb Mar 27 02:47:17 and two of them are in here Mar 27 02:47:22 hehe Mar 27 02:47:33 just checked manifest, set to 11 Mar 27 02:47:43 * StingRay_ is proud to be 50% of hc users!! Mar 27 02:47:45 minSdkVersion is 11, I mean Mar 27 02:47:52 lolz Mar 27 02:49:24 shipit_: is it a good app ? Mar 27 02:49:45 it is okaaay, messaging app Mar 27 02:50:02 what kind ? Mar 27 02:50:18 I built one few years back for giggles, it took off but I wasn't very interested in building a Whatsapp clone Mar 27 02:50:27 like WhatsApp, Line etc Mar 27 02:50:34 ugh Mar 27 02:50:38 I know Mar 27 02:50:41 steal my info you mean Mar 27 02:50:45 lolz Mar 27 02:50:46 you bastards Mar 27 02:50:58 paying the bills, man, paying the bills .. Mar 27 02:51:07 did they not get sued in canada for that ? Mar 27 02:51:18 I unpublished my app btw Mar 27 02:52:05 well I'm doing a messaging app as we speak :) Mar 27 02:52:10 omg! Mar 27 02:52:12 which kind? Mar 27 02:52:14 but not a whatsApp Mar 27 02:52:46 and my target is not 13-16 socialite girls/metrosexual men Mar 27 02:53:03 ah Mar 27 02:54:21 my interest is in building custom android hardware Mar 27 02:54:35 ground up Mar 27 02:54:54 nice Mar 27 02:56:54 using an A13 with android in nand to develope with Mar 27 02:57:33 have you seen the phillips android sdk for their new lights system Mar 27 02:57:45 I meant to look at that, I like the idea Mar 27 02:58:17 y, hue is pretty sweet Mar 27 02:58:31 7! Mar 27 02:59:00 now if I could just have all that crap, in my kitchen apl. too, like now I want another coffee Mar 27 02:59:11 be nice to have the kettle boiled b4 i get there Mar 27 02:59:12 :) Mar 27 02:59:37 If I up my API will my old applicaion still be visable for those other people? **** ENDING LOGGING AT Wed Mar 27 02:59:58 2013