**** BEGIN LOGGING AT Wed May 08 02:59:58 2013 May 08 03:02:22 derp derp May 08 03:04:43 http://pastebin.com/yVVCgbL5 <----can someone tell me why that doesn't work? May 08 03:04:54 it seems to think that tempbyte isn't a byte[] May 08 03:05:41 get rid of the [] May 08 03:05:47 in the String constructor May 08 03:06:01 also, pass a charset or monkeys will eat your face May 08 03:06:04 JakeWharton, otto and dagger are really cool May 08 03:06:06 thanks May 08 03:08:09 sweet. glad you like them. many more people other than me contributed to them May 08 03:10:18 pass on my praise :) May 08 03:10:51 JakeWharton thank you May 08 03:11:04 I feel silly May 08 03:20:13 Okay, so I got that going now but in logcat is just shows diamonds with ?'s in them May 08 03:20:18 in place of the output May 08 03:20:20 length seems right May 08 03:23:06 arbiter: that means your app is so good you'll get rich enough to buy diamonds... and your fortune will be incalculable (hence the ? sign) May 08 03:23:13 probably because they're zero May 08 03:23:18 you're not putting any data in May 08 03:23:54 it outputs for a second on the tablet the proper value May 08 03:35:27 arbiter34, can we seee the whole method? getting read set without creating the array first seems weird May 08 03:37:55 sorry, yeah.... May 08 03:38:39 http://pastebin.com/CSPrTCsi May 08 03:38:53 it's not my code, I'm just trying to understand it and then eventually adapt it May 08 03:40:40 I'm trying to see everything it gets back then I'll figure out how to delimit so I get the back and forth I want May 08 03:41:03 unless there is already something built in for sockets that allows me to delimit received data May 08 03:46:26 arbiter34, looks ok May 08 03:46:28 hmm May 08 03:46:54 so, I always regarded irc as a waste of time May 08 03:46:58 yeah I changed the location of the Log.i and it worked, I switched it to after the System.arraycopy May 08 03:47:16 I'm still figuring out what it does :) May 08 03:47:56 given the paucity of persistence and the chance of coincidence May 08 03:48:41 but I came here to figure out something like an answer; is there a better place to ask? May 08 03:54:03 seems to be quite a few file chooser libraries out there; anyone have a preference ? May 08 03:54:59 ACTION_PICK May 08 03:55:02 or whatever it is :p May 08 03:55:19 canadiancow: :O really? May 08 03:55:32 does that let you pick from the sdcard ? May 08 03:55:45 if you have an app installed for it May 08 03:55:53 it's like the same thing as ACTION_VIEW, but in reverse May 08 03:55:53 :| May 08 04:11:58 does anyone know a good way to go about debugging a forced close issue? May 08 04:13:04 having issue changing my minsdk version to allow me to use string.isEmpty() May 08 04:21:51 foursquare for WP looks like an android app :| May 08 04:22:53 get rid of chrome, go flat, content becomes UI -- everything converges on some platonic ideal :) May 08 04:28:42 How can I recreate the gmail image attachment view? May 08 04:31:02 the what what ? May 08 04:37:03 foursquare is still around May 08 04:39:21 would anyone be able to help me with socket stuff, more specifically figuring out how to send/recv May 08 04:39:34 ron_frown: yeah, they are … decided that in order to survive, they needed to start selling more information May 08 04:39:45 arbiter34: no doubt someone will if you ask the question May 08 04:39:54 thats the amazing things about all these social bits May 08 04:39:55 I'm not entirely sure how to even ask it May 08 04:40:04 no REAL revenue plan/stream May 08 04:40:13 people want to dick aroudn with them May 08 04:40:57 http://pastebin.com/By5amUW4 May 08 04:40:59 dont want to pay. May 08 04:41:14 that's what i have right now, I'm trying to figure out how to create a send command that returns the socket reponse May 08 04:42:10 ron_frown: not just foursquare. http://www.theverge.com/2013/5/3/4294108/square-sets-its-sights-on-foursquare-we-can-do-something-better May 08 04:42:19 pretty much everybody May 08 04:42:27 arbiter34: http://docs.oracle.com/javase/tutorial/networking/sockets/readingWriting.html May 08 04:43:19 see square actually has a revenue stream May 08 04:43:30 I dont get WHY you'd want to be a foursquare May 08 04:43:38 yeah you croudsource a bunch of data May 08 04:43:48 doesnt seem like a very legit business May 08 04:43:54 I'm receiving data fine, I'm not sure how to get it going circular so that my send method returns it May 08 04:46:23 bankai_, It's an action that only has an image within it May 08 04:46:40 you can zoom in and out with pinch and what not May 08 04:46:55 ron_frown: i wonder if anything good can come out of silicon valley any more May 08 04:46:57 I see it in a lot of apps, but I can't find how to implement i May 08 04:47:33 g00s I think everyone just go too extreme with everything May 08 04:47:37 everything had to be social May 08 04:47:44 seems like social IMO is in a huge decline May 08 04:47:46 I could be wrong May 08 04:48:23 its not social; i dont care about that. you can decide whether to be social or antisocial. seems like everything coming out of silicon valley is some way to erode a person's privacy May 08 04:48:36 oh def =) May 08 04:48:49 i wish cali would just slide into the ocean May 08 04:48:51 :D May 08 04:48:55 g00s I dont May 08 04:49:11 oh, not before you escape :D May 08 04:49:21 and the bovines, etc May 08 04:50:01 doInBackground() calls onProgressUpdate when data has been received, but I don't know how to get that data back through my SendDataToNetwork() function May 08 04:50:04 *method May 08 04:50:45 along those lines, I think every software venture, tech company these days sole purpose to rape the living shit out of anyone within 20ft May 08 04:52:10 its nauseating listening to these startups describe their visions for making the world a better more connected place … May 08 04:52:54 oh god, or "disrupting X" May 08 04:53:19 disrupting x? May 08 04:53:39 everybody these days is disrupting something, whether healthcare, hunger, evil, etc ... May 08 04:54:17 ok, back to this fragment bs May 08 04:57:10 i'm in a bad mood today. the android tooling has definitely gotten me pretty mad May 08 04:57:23 haha May 08 04:57:31 sad thing is 've noticed its actually gotten better May 08 04:57:40 FragmentStatePagerAdapter's destroyItem got deprecated. is there an alternative? May 08 04:57:44 its just stil annoying enough to almost be too little too late May 08 04:58:56 what cant fragments just act like a control structure like... EVERY OTHER GUI TOOLKIT has May 08 04:58:56 yeah, google has had a lot of time to get this right May 08 04:59:09 fragments could have a fragment that could have a fragment May 08 04:59:19 since a fragment could effectively be a view with its own lifecycle events May 08 04:59:39 lets not learn from the millions of people who have done this before us May 08 05:00:16 getchildfragment May 08 05:00:29 i have't used recursive fragments yet May 08 05:01:09 i'm surprised the flat ones even work, i shudder to think of the weird corner cases i would run into with fragments containing others May 08 05:01:11 true_techie you have get fragment manager and get childfragmentmanager or something dont you? May 08 05:01:32 i was using it before, yes May 08 05:01:40 http://pastebin.com/9rJTfVxM <----I'm wondering if that is the right/wrong way to send/receive May 08 05:02:00 but realised that i didnt need it to simply stack fragments on top of each other May 08 05:02:51 where can i look for confirmation that code has been deprecated? May 08 05:04:32 Hey guys. Can you guys point me to how to make a sort of modal dialog that has a web browser widget in it so I can do some OAuth 2 stuff? I'm new to UI on Android May 08 05:43:33 I need something that would generate a catchy name on a whim May 08 05:43:42 I can build shit left and right but can never name it something clever May 08 05:54:58 ron_frown: did you see this? http://www.theverge.com/2013/5/6/4306896/california-right-to-know-act-stalls-after-opposition-from-tech-lobby May 08 05:55:46 I dont know May 08 05:56:06 its not so much what a company KNOWS about me so much as what that company is telling other people about me May 08 05:56:38 I know google knows lots about me... and if they use that to serve up ads that are more appropriate for me May 08 05:56:42 I dont mind May 08 05:56:45 what if a company knows more about you, than you do ? May 08 05:56:46 ProgramMax, just use an Activity with Theme.Holo.Dialog or whatever it is May 08 05:56:50 g00s, awesome May 08 05:56:50 g00s like/ May 08 05:56:56 i recently did the whole 23andme.com thing May 08 05:57:01 so now a company has my dna May 08 05:57:05 and it's awesome May 08 05:57:23 i want companies to analyze me and tell me cool shit May 08 05:57:25 are they going to sell your dna information ? May 08 05:57:28 offer me better products, etc May 08 05:57:31 no May 08 05:58:01 i thought they changed their business model; where they share your dna with affiliates "for research" May 08 05:58:20 yeah that shit I care about May 08 05:58:29 oh sure May 08 05:58:32 but its anonymous May 08 05:58:55 while I think most companies have terrible intentions May 08 05:59:10 I'm not generally super paranoid about that shit May 08 05:59:13 ron_frown: consider the eye tracking feature on the SGS4; this also seems like a huge privacy nighmare, are your gaze map could indicate subconscious processing beyond your knowledge May 08 05:59:19 I dont get those vibes from people like google May 08 05:59:37 like what May 08 05:59:44 this person has jacked up eyes? May 08 05:59:54 the truth is, most companies have NO IDEA how the data they collect from you is really used by their affiliates May 08 06:00:00 yeah thats my point May 08 06:00:08 I dnt want people selling my info to other people May 08 06:00:24 I don tmind if they say people who watch this show tend to watch that show May 08 06:05:02 canadiancow: http://www.theverge.com/2012/12/12/3759198/23andme-genetics-testing-50-million-data-mining May 08 06:05:26 dont be surprised if after a test, you suddenly have a problem getting a loan :| May 08 06:05:43 oh healthcare coverage, or whatever May 08 06:05:50 #android-offtopic May 08 06:06:09 #android-dev police patrolling! May 08 06:06:16 * ron_frown runs away May 08 06:06:23 walk, sir May 08 06:06:40 lol May 08 06:06:43 ron_frown gets arrested for j-walking :P May 08 06:06:51 g00s, there's no way they'd share that May 08 06:07:04 and having seen my results, i'd actually think it would be easier for me to get that stuff :) May 08 06:07:47 nobody knows what all the genes do yet :D May 08 06:08:14 i keep getting mail like "A relative would like to make contact with you." May 08 06:08:18 "5th Cousin" May 08 06:08:32 in france... that's actually interesting May 08 06:08:39 my great grandfatehr was adopted from france May 08 06:10:31 dna happens to have information about lineage, but dont be surprised when they realize dna contains ancient knowlege May 08 06:10:41 * ron_frown watches ancient aliens god damn it May 08 06:11:20 we all descended from cows May 08 06:11:46 lol May 08 06:12:00 * ron_frown has the reptillian blood May 08 06:12:28 canadiancow I'm not sure I follow May 08 06:12:45 wat May 08 06:13:54 I need to popup a dialog with a webview to navigate to our site, do the oauth login / signup stuff May 08 06:14:19 ok May 08 06:14:20 and then I need to catch it redirecting to a result page and read the hash on that redirect May 08 06:14:25 and close the popup May 08 06:14:28 use create a new activity for that May 08 06:14:30 use a dialog them May 08 06:14:32 put a webview in it May 08 06:14:45 that's what I'm reading up on right now :) May 08 06:18:30 anyway, gnight all May 08 06:20:52 gnight canadiancow May 08 06:23:13 goodnight frenchcow May 08 06:33:19 is there a way to pass two strings to one string parameter and just have them concatenate? May 08 06:34:02 say function is myString(String stuff){return stuff} can I call it like newString = myString("this" . "plus this"); May 08 06:35:56 arbiter34 as an unusual quirk, Java departed from its stance on operator overloading to allow concat with "+" May 08 06:38:06 hrmmm I added a .xml file inside my res/layout May 08 06:38:15 but I can't get to it in code by R.layout. May 08 06:42:58 oh, just had to rebuild the project May 08 06:50:32 hrmmm got a popup window May 08 06:51:07 not sure how to pick a good size for it...guess I can get the screen size and just do like some percentage, like 90% of the screen size May 08 06:51:13 also, while the popup is active, I can't press back? May 08 06:51:25 How can I tell the WebView inside the popup to navigate to a certain url? May 08 06:57:25 oh shi...guess I have to make a fragment May 08 06:59:28 now you're screwed ! May 08 07:12:17 Did Admob change its reporting software in the last few days? I had a huge jump in clicks (3-6 times more), but revenue stayed exactly the same. Or is that a known bug? May 08 07:12:40 [probably rather OT, sry] May 08 07:19:59 anyone know a reason why if I setup an imagebutton in a setEmptyListView in an appwidget, it doesnt seem to setup work? Setting it up the same as my other widget buttons. May 08 07:21:16 Can someone explain to me why UUID.randomUUID() does not work as argument for listenUsingRfcommWithServiceRecord(String , UUID) May 08 07:21:17 ? May 08 07:23:13 lite_, there are different versions of the UUID spec might be a reason. May 08 07:24:29 lite_: also, you should not use random UUIDs in rfcomm May 08 07:29:58 Ge0rG how come? Ive written the code in a way so that the first time the app is started it checks to see if an UUID is saved in SharedPRefernces. If not it uses randomUUID and saves it May 08 07:30:27 So the generated UUID is saved and reused on any subsequent connections May 08 07:30:52 lite_: because you need to know the uuid on the other device, the one you want to talk with May 08 07:31:47 Ge0rG are you sure? It works if I use the static UUID from tjhe BluetoothChat example May 08 07:31:52 private static final UUID MY_UUID_SECURE = UUID.fromString("00001101-0000-1000-8000-00805F9B34FB"); May 08 07:32:22 lite_: did you read the android bluetooth docs? there are specific recommendations for UUID handling. May 08 07:33:21 Admittedly I did not May 08 07:34:00 lite_: do it now. come back if you still have questions. May 08 07:34:28 lets hope i/o announces BLE May 08 07:34:46 noticed they had one bt session May 08 07:35:14 Ge0rG, the docs suggest using online uuid generators(ie using a static UUID in your BT service) May 08 07:35:20 *sigh* May 08 07:35:42 would that not cause potential problems if another app nearby had the same service running ? May 08 07:36:05 lite_: define service May 08 07:36:35 android.app.Service May 08 07:36:52 lite_: why should another app run the same service? May 08 07:37:27 I mean, aren't you the one writing that service? May 08 07:38:14 yes May 08 07:38:49 I must really suck at explaining my issue. Im simply asking if there is a problem with having the UUID defined statically May 08 07:38:55 or if that is the way to go May 08 07:40:08 lite_: define the uuid statically. May 08 07:40:56 thank you May 08 07:49:23 Hello! May 08 07:56:07 Wow, what an active chat room! :-) May 08 08:02:42 ... someone had to be new to IRC ;) May 08 08:02:59 ;) May 08 08:04:00 * p_l|omoikane recalls a log which showed question answered 3 days later. And *zero* talk between question and answer May 08 08:04:06 p_l|omoikane, they do that after a few years of irc too May 08 08:04:19 on this channe; ? May 08 08:04:19 Zharf: maybe if they never stay in one place for long? May 08 08:04:34 g00s, in general May 08 08:04:40 p_l|omoikane, possibly May 08 08:07:25 omg pizza-compass.com ! May 08 08:14:03 So, is it me or is the the protection of APK files completely broken? If one uses APK Downloader (crhome extension) , then dex2jar and then jd-gui - you essentially have re-created the project and can recompile into your own APK if you want to? Even with Proguard enabled? May 08 08:14:44 snowpong: Welcome to Reality. Now you know why copy protection and DRM tends to fail :> May 08 08:15:09 p_l|omoikane: Well, it was never this easy with C/C++ ;) May 08 08:15:27 snowpong: you'd be surprised ;> May 08 08:15:43 p_l|omoikane: not really, I worked on Qt for 8 years ;) May 08 08:16:11 anyone tried dexguard, is it worth it? May 08 08:16:20 snowpong, sorry? what protection? May 08 08:16:25 and why would you care :p May 08 08:17:05 Zharf: hehe May 08 08:18:05 * snowpong is wondering how many apps now "borrow" code from other projects May 08 08:20:00 dexguard is pretty pricey May 08 08:20:27 i think google should license it for all of us :D May 08 08:20:35 ya know, since they didn't do their homework to begin with May 08 08:20:40 yeah May 08 08:20:55 i use dexguard. my apps are pirated but any popular app will be pirated. i have an annoy competitor who lifts things from my APKs so dexguard is nice to slow them down. May 08 08:21:13 Eric, the guy who does dexguard and proguard is really responsive too May 08 08:21:27 kevinb: aww, that sucks. do they lift code / assets or both ? May 08 08:21:41 g00s: either is grounds for legal action May 08 08:21:51 kevinb: wow May 08 08:22:06 both. assets is easiest to call them on because it's more blatant. a stern letter got them to more or less remove them though. May 08 08:22:08 I often "look", but I don't copy code May 08 08:23:04 yeah, there is some stuff where like i'd figure out a way of doing something and they'd copy it, but i don't think they copied the code. but there is one more complex thing that their implementation almost perfectly matches mine and they wouldn't have the reason to implement it that way, at least not initially May 08 08:23:21 * p_l|omoikane does not have to worry about licenses forbidding reverse engineering, because such clauses are forbidden by law :D May 08 08:23:45 snowpong: anyhow, android is like sparta May 08 08:23:56 g00s: how so? May 08 08:24:08 you will dine in hell May 08 08:24:13 for a while the competitor was using screenshots of my apps as previews in their settings for their app. super annoying but kind of funny. May 08 08:24:34 kevinb: thats crazy May 08 08:24:57 this was a good reality check for me at least May 08 08:25:34 its probably better putting your effort into something else May 08 08:25:41 p_l|omoikane: and proguard don't slow you down when looking at the code? May 08 08:25:51 snowpong: ... HA HA HA May 08 08:25:55 sorry May 08 08:25:58 couldn't help iot May 08 08:25:59 *it May 08 08:26:23 * Ge0rG once DMCAed an app from google play that used code copied from my paid app May 08 08:26:33 in reality it depends on what exactly I'm reading May 08 08:26:39 g00s: yeah, I guess iit's better to assume all the code is public and work from there May 08 08:26:48 just remember that anything that has to be externally linked can't be really obfuscated :3 May 08 08:27:09 I couldn't care less about code copying, my apps are 100% free and even the code is out there, so just have a bite ;) May 08 08:27:15 p_l|omoikane: right - and also with ACRA (crash logger) more needs to be non-obfuscated to give OK backtraces May 08 08:27:36 so, ehm. does anyone here have experience with dexguard? May 08 08:27:36 snowpong: or you need to implement a good method of decrypting backtraces May 08 08:27:46 where the piracy hurts is when they are using your app to hit infrastructure you are paying for May 08 08:27:49 Ge0rG: yes May 08 08:28:09 g00s, like third party service? May 08 08:28:09 kevinb: is it significantly better than proguard, wrt optimization / obfuscation? May 08 08:28:25 g00s: that's why I often consider it safer to put the "payment" point on the access to said infrastructure May 08 08:28:26 / isuse debugging support May 08 08:28:30 Zharf: yeah, like you have Azure / AWS services you are paying for May 08 08:28:31 in-app billing makes it much easier May 08 08:28:36 g00s, yeah I suppose May 08 08:28:43 Ge0rG: yeah, we just talked about it May 08 08:29:04 Ge0rG: the extra optimizations is mostly that it can fully strip logging, normally if you do Log.v(TAG, "Foo " + expensiveStringGettingFunction() + " " + rect.toString()); and use proguard to strip the Log.v calls, you still have the work of calling those functions and building the string May 08 08:29:11 but dexguard can figure that out and strip them May 08 08:29:49 also dexguard comes with a more tuned default configuration, even if a fair amount of those config options would work with proguard if you spent the time to configure it that way May 08 08:30:03 kevinb: wow. that sounds really great. I suppose I'll just replace all Log.X calls with an internal function storing logs in an sqlcipher db May 08 08:30:32 i have to admit, when you start using 3rd party libs - tweaking proguard can be kinda hassle / black magic May 08 08:30:35 I've tried using proguard in a couple of apps just for the optimizations (always disabled obfuscation) but I could never get it working properly with my native code stuff May 08 08:30:41 for obfuscation again some is just more advanced proguard configuration, like by default it renames everything into chinese characters rather than the aA aB type stuff. but it also has the ability to encrypt classes or strings May 08 08:30:53 or have it automatically generate calls for reflection (and encrypt their method names) out of code May 08 08:31:04 Zharf: I have proguard in my larger projects. it is really needed if you code in scala, to strip down the scala library May 08 08:31:19 Ge0rG, I can imagine, though I never used scala :) May 08 08:31:24 chinese? utf8 variable names? May 08 08:31:34 i would hate using proguard for every build, even debug. christ that is slow ! May 08 08:31:35 most of my android code is actually native... May 08 08:31:37 Zharf: in yaxim, I'm using proguard to strip down the smack XMPP library, with pretty good results May 08 08:32:15 my APK is still smaller than smack.jar, despite using ABS and more and more features from smack May 08 08:32:47 I always end up with something removed from the apk that's not supposed to be removed when I try using proguard :P May 08 08:33:27 g00s: yeah, it is... but you need to thoroughly test proguarded builds, or all your users will miss a reflected function call some day... May 08 08:33:35 some example stacktraces: https://gist.github.com/teslacoil/66d4fe27417a8426c922 . the "com.teslacoilsw.launcher.proguard" part is fake, i was having issues with HockeyApp organizing things wrong because it didn't see my package name so i added that in there and then have it stripped out in my retrace script May 08 08:34:06 which steps should I follow to create push notification mechanism not using gcm? May 08 08:34:22 * p_l|omoikane ponders using zalgotext for obfuscation May 08 08:34:27 with retrace the obfuscated stacktraces work fine. due to optimizations sometimes the line number is way off (as things have been inlined heavily) so i do sometimes end up checking the smali manually to see how far it's going. the chinese characters for class names make that a pain as you have to copy/paste the filename, so i'm moving away from those for class names May 08 08:34:27 suleymancelik use mqtt May 08 08:34:43 proguard build time of aprsdroid (scala + some java): ant debug 117.99s user 1.44s system 123% cpu 1:36.91 total May 08 08:34:55 g00s: why mqtt and not gcm? May 08 08:34:59 hello all May 08 08:35:11 Ge0rG: oh, he said not gcm. thats what i would recommend then May 08 08:35:16 kevinb, do your files really have > 2k lines? :( May 08 08:35:22 or is that fake too May 08 08:35:33 :( that's not fake May 08 08:35:38 g00s I want to use my push notification server May 08 08:35:52 I start splitting my files when they get over 250 lines <.< May 08 08:36:03 I like to refactor stuff :p May 08 08:36:17 g00s: oh, sorry May 08 08:36:39 250 lines in java can barely accomplish anything. but yeah that 2k long file is in need of refactoring May 08 08:36:46 is there some shell magic to get a histogram of file sizes? May 08 08:37:38 I wonder how reliable / battery-consuming an MQTT solution would be on android, and what latency it would add May 08 08:38:02 als, security?! May 08 08:38:48 kevinb, I have 43 java files in my xmmsclient right now and 2 of them have slightly over 250 lines :) May 08 08:39:00 most are around 100-150 May 08 08:39:02 Ge0rG: FB uses mqtt for their messenger functionality May 08 08:39:19 well, last i heard heh May 08 08:39:24 kevinb, but that doesn't actually count the library I wrote for it... May 08 08:40:58 kevinb, library has 75 java files... with 1 file at over 250 lines :) May 08 08:41:22 I don't do much javadoc, ever, really though, so that's part of it May 08 08:41:41 g00s: I know. but FB messenger is also said to be horrible (or at least their XMPP server implementation) May 08 08:41:51 you're more disciplined than I :P. how do you organize the namespace? I tend to use several packages, but then it means i have to make more things public rather than package private May 08 08:42:45 hm... 11 files > 250loc in yaxim, longest one having 1098 loc May 08 08:43:09 kevinb, I don't really think about it much, it just tends to form like that for me -.- May 08 08:43:42 hm, apparently there's almost 10kloc written by me in playground... May 08 08:44:23 If I am receiving data from a socket and want to do a check for end of receive by checking for prompt how would I do it? I am trying if(buffer.matches("repl\\d?>")); break; but it doesn't seem to be matching my regex May 08 08:45:36 g00s is there any example push notification client example not using gcm? May 08 08:45:48 suleymancelik: you'll have to google, i think so. May 08 08:46:10 Ge0rG: i dunno … i read their blog and data on performance and was pretty impressed May 08 08:46:56 arbiter34: if it's a stream, there's no such thing as "end of receive" other than closing the socket, afaik May 08 08:47:34 you can check for the specific codes for CRLF (well, classic protocols use CRLF sequence, not just LF) May 08 08:47:35 Ge0rG, i use wc -l `find -f src/` | sort -n May 08 08:47:48 kevinb, I did have one large (some 800-900 loc) file for my IPC code at one point when I was just testing stuff, but then it started to feel nauseating to look at so I split the file into "submodules" kind of, where there was main connection, status handling, playlist handling, control and metadata handling classes :) (if you didn't guess it yet, it's a music player with server-client arch) May 08 08:48:09 thanks g00s. I have searched in google. but android push notification mechanism is not complex with gcm. However when I want to use remote server, mechanism is more complex. May 08 08:48:44 p_l|omoikane I nkow there is no "end of receive" but I'm trying to get a clean return for each send May 08 08:48:54 which is doable when seperating by prompt May 08 08:48:59 Ge0rG, wc -l `find src/ -type f` | sort -n May 08 08:49:00 sorry May 08 08:49:01 it's just a telnet session May 08 08:49:08 alex_PP: yeah, I did that as well now; but I wanted something with binning, like "N files >250 loc" May 08 08:49:10 I'm just having trouble with regex May 08 08:49:17 arbiter34: I recommend not using regexes for this, then May 08 08:49:18 Good morning boys, I have an AutoCompleteTextView that shows a suggestions drop-down, and it works fine. BUT when I click "done" or one of the suggestions it disappears, I want it to show again, but can't seem to force it to show... Any suggestions? May 08 08:49:20 alex_PP: find src res -type f -exec wc -l {} \; | sort -n May 08 08:49:34 Zharf: interesting. My activity, main custom views, and model are the big ones. But i've started breaking the model into sub-models which is helping May 08 08:49:43 if you do it my way, you get the total too :D May 08 08:49:44 Hi, I'm wondering if I can limit the keyboard to a certain InputType without the option to switch to input in other languages. I've set the attribute android:inputType="textUri", but I was able to switch to a different mode of input after the keyboard is inflated.. pls help May 08 08:49:57 arbiter34: also, you don't seem to be checking exactly where in buffer you are in that code... May 08 08:50:06 Ge0rG: https://github.com/visionmedia/histo May 08 08:50:29 gnuplot with dumb console ftw http://filipivianna.blogspot.co.uk/2011/11/plotting-memory-usage-on-console.html May 08 08:50:40 kevinb, my way of working often doesn't work for tight schedule companies though :) May 08 08:50:47 why u not make an app all together? May 08 08:50:49 p_l|omoikane where i am isn't too important, I know that until I do another send, repl\d?> will be the last thing I receive May 08 08:51:34 * Ge0rG just also found http://www.smallmeans.com/notes/shell-history/ which draws ascii charts May 08 08:52:24 g00s: histo looks like a plot tool, not a histogram tool May 08 08:52:36 oops May 08 08:52:48 gnuplot then :D May 08 08:53:04 gnuplot can not do binning... just plotting :( May 08 08:53:32 owait, it can. May 08 08:53:39 p_l|omoikane so what would you recommend? May 08 08:54:09 Ge0rG: fuck it, go mathematica ! May 08 08:54:15 * g00s runs May 08 08:54:32 g00s: eh... yeah. May 08 08:55:21 Ge0rG, http://stackoverflow.com/questions/2471884/histogram-using-gnuplot May 08 08:57:10 I am right in saying that ".*repl\\d>.*" would match "repl>" or "repl1>" is that correct? May 08 08:57:51 huh, didn't realize ack 2 was out May 08 08:58:16 alex_PP: thanks May 08 09:00:15 g00s: you should check out ag and sack if you haven't already May 08 09:01:18 Hey guys, does anyone know how I can limit the keyboard to a certain InputType without the option to switch to input in other languages? I've set the attribute android:inputType="textUri", but I was able to switch to a different mode of input after the keyboard is inflated.. pls help May 08 09:03:18 for anybody interested: http://op-co.de/tmp/yaxim-loc.png May 08 09:03:23 is it even possible? or Android by default let's the user change to other inputTypes regardless of the setting in the attribute of the edittext? May 08 09:03:43 dimsumlab: it's more what the current IME allows May 08 09:04:24 dimsumlab: some keyboards even ignore the input type and always show the same keyboard layout May 08 09:05:01 so how would i disable the switching between different inputs... this cannot be done through the app then correct? May 08 09:06:08 dimsumlab: afaik no, inputType is more of a hint so an IME can be helpful and show a relevant layout May 08 09:07:26 appel1: ahh... i see... thanks for clarifying May 08 09:10:45 I open a pad if anyone want to contribute with others for make an app or share code: http://qikpad.co.uk/p/Android-dev May 08 09:11:24 anyone mind helping me? May 08 09:16:07 Good morning boys, I have an AutoCompleteTextView that shows a suggestions drop-down, and it works fine. BUT when I click "done" or one of the suggestions it disappears, I want it to show again, but can't seem to force it to show... Any suggestions? May 08 09:30:43 what would cause this( https://dl.dropboxusercontent.com/u/11917448/whyyy.png ) at this location ? : https://gist.github.com/anonymous/5539356 May 08 09:31:31 is there nothing in terms of asynchronous sockets in android? May 08 09:37:17 what are aysnchronous sockets? May 08 09:44:22 SeptDePique where I open a socket and it lets me know via a function when there is data coming back May 08 09:44:25 more or less May 08 09:44:32 it allows such a connection that is May 08 09:45:28 arbiter34: apparently google knows the answer to your question May 08 09:47:25 weird ;) May 08 09:47:33 I'm not that dickish most of the time May 08 10:05:03 Heya guys May 08 10:05:16 I have a quick 9patch related question May 08 10:05:48 I drew a 9patch, it appears good in the draw9patch tool (no bad patches, no nothing), it appears even good in the graphical representation of the layout in eclipse May 08 10:05:57 but when I run the app, it just gets stretched like a normal png May 08 10:06:57 It's just a fullscreen splash image May 08 10:07:09 Hello guys, i am having an issue with facebook session, has somebody experience with it? May 08 10:07:20 I tried setting it as background to the root view, or as src for an imageview inside of the root view May 08 10:07:22 nothing helps May 08 10:09:17 I am trying to show screenshots but my work PC is being a bitch May 08 10:10:28 Tee_Pee: check out your build log, one reason could be your edge pixels are not fully opaque / transparent May 08 10:11:28 another problem iirc could be padding set in xml while the 9patch has padding already defined, I had some problems with it May 08 10:11:56 http://imgur.com/a/BbHKW May 08 10:11:57 There May 08 10:12:11 That's the 9patch, that's how eclipse shows it in the editor, and that's how it appears on the phone May 08 10:21:42 Hey, I'm not much into debugging nor do I know the Android system good enough to know how to find out, where an ArrayIndexOutOfBounds exception comes from. The traceback doesn't refer to any file of my project. I don't know how to use the Eclipse debugger to find out where this comes from. Can you give me any tips? May 08 10:21:44 Tee_Pee: if I open that png in the draw9patch tool it also shows up incorrectly May 08 10:21:59 Tee_Pee: as in the logo is stretched May 08 10:22:04 Why does it show up correctly for me =/ May 08 10:24:00 Maybe I should add that it seems to occur right after a click event. May 08 10:24:13 But I've no idea how to debug such events. May 08 10:25:18 http://imgur.com/a/wc3Kf May 08 10:25:27 There, that's how the 9patch tool shows it May 08 10:25:32 and a slightly edited 9patch May 08 10:27:31 maybe you have old sdk or something? in my draw9patch the black pixels are also interpreted as normal pixels May 08 10:28:15 It even shows up properly when using http://www.roundrect.kr/en/desktop/better-9-patch/#Download May 08 10:28:19 Well, this is driving me insane... May 08 10:50:41 Ok so, for future adventurers - There is an inconsistency in android's draw9patch tool and the actual android rendering of 9patch bitmaps May 08 10:51:23 The bottom line is - 9 patches will fail if either of the content guidelines (right or bottom) are fragmented May 08 10:51:31 i.e. you can only have ONE line on those two sides May 08 10:51:47 the draw9patch tool will happily ignore that, as will eclipse's preview May 08 10:51:58 but android doesn't like that... not, one, bit. May 08 10:56:33 what's the convention observed for package naming in cases where a company's domain name begins with a digit? May 08 10:59:45 Tee_Pee: could it be that we have different versions of the sdk tools? May 08 11:00:17 how do you pass classes into and out of threads? May 08 11:03:13 arbiter34: references to instances? as usual, but you have to think about concurrency issues. May 08 11:03:52 appel1 I'm having trouble finding an example May 08 11:04:28 arbiter34: there are plenty of tutorials on multithreaded java May 08 11:05:01 I'm not seeing one that shows how to do this May 08 11:05:20 if you aren't gonna help, just say it May 08 11:05:23 arbiter34: haven't read through it all, but might be a good plae to start http://docs.oracle.com/javase/tutorial/essential/concurrency/sync.html May 08 11:05:35 arbiter34: first hit I got when I googled May 08 11:07:07 appel1 I've been google for 1hour+, one doesn't always know the right thing to google for May 08 11:07:35 arbiter34: I googled for: java threads May 08 11:07:47 for future reference :) May 08 11:07:58 k May 08 11:08:00 thank you May 08 11:10:04 Hi, does someone know how to post a message on a friends wall with facebook api? May 08 11:11:23 appel1 in case you are wondering why I'm even messing with threads, I am doing some basic socket interaction but of course I'm getting an excpetioni when trying to do networkonmainuithread May 08 11:12:48 arbiter34: then perhaps just using the AsyncTask helper is enough if all you need to do is download something on a worker thread and hand the result over to the gui thread May 08 11:12:55 arbiter34: http://developer.android.com/guide/components/processes-and-threads.html#Threads May 08 11:14:31 appel1 I figured AsyncTask would be overkill for this at first cause it's a (i thought) simple send/recv May 08 11:14:55 I guess I'm confused on where to even use threading May 08 11:15:39 arbiter34: doubt you can do it much more lightweight May 08 11:15:50 One class creates the connection and does the basic send receive, then another class actually does the interpretation and manipulation of those send/recv's May 08 11:16:30 arbiter34: what class contains the implementation doesn't matter, what matters is what thread is executing the code :) May 08 11:16:50 arbiter34: a class isn't tied to a specific thread May 08 11:17:13 arbiter34: although the gui framework in android enforces that you must always use the main thread when interacting with instances May 08 11:17:25 a common pattern May 08 11:19:41 I don't get what the design would look like then.... May 08 11:20:24 when my program launches it does networktask = new NetworkTask(url); May 08 11:20:45 which is a class with socket, outputstream, and inputstream May 08 11:21:18 then on button press I create stuff = new FF(networktask); May 08 11:21:26 which is then further manipulated May 08 11:21:35 stuff.Navigate(url); May 08 11:24:52 The surprised keep on coming... I start the locationmanager, request updates, and both the gps and the network provider get disabled right away May 08 11:27:20 which Activity's method is being called when it's started with a PendingIntent.getActivity with flag FLAG_UPDATE_CURRENT? May 08 11:30:32 Atm I take a random int from an ArrayList, handle it and then remove that value from the list. But how can I make sure the random only grabs from the existing values of LIST_ENTRIES here? http://pastebin.com/A8veHrFk May 08 11:34:15 Quacked: the random? May 08 11:35:10 well, the variable 'joke' needs to be from the remaining values in the numberlist May 08 11:36:39 elegos: the flag is just for controlling what getActivity will do, with update current it will update an existing pending intent if there is one May 08 11:37:19 appel1: ah, I thought it was standing for "don't destroy the actual activity" :) May 08 11:37:43 elegos: http://developer.android.com/reference/android/app/PendingIntent.html#FLAG_UPDATE_CURRENT May 08 11:37:45 appel1: btw is it safe to call getIntent from onResume? May 08 11:38:12 say numberList is 1,3,7,9 atm randomPosition obviously returns an int between 0-4, then the last value in numberList is removed so the current is 1,3,7.. then randomPosition is an int between 0-3, etc May 08 11:38:56 elegos: safe? May 08 11:39:04 appel1: right? May 08 11:39:07 Is there a way, in eclipse, to debug by "listening" to an object and when/if it ever changes value and where that happens? May 08 11:39:26 lite_: you can use breakpoints May 08 11:39:46 elegos: afaik you can call it whenever you like May 08 11:40:06 appel1: AFAIK onCreate is being called only once, when the activity doesn't exist May 08 11:40:11 (for example) May 08 11:40:27 elegos: and? May 08 11:40:43 elegos: you can create pending intents in onCreate if you want too May 08 11:40:51 so, in connection with the pending intent thing, I should call it in a method which is executed every time I resume the activity - or it's being created May 08 11:41:15 appel1: the pending intent is in another object (a notification from a service, which calls the activity on touch) May 08 11:41:38 elegos: so create it when you add the notification May 08 11:42:12 appel1: I already create it when I add the notification <.< the question was where to put the getIntent to retrieve the action May 08 11:42:46 Quacked: sorry, I read getIntent as getActivity ;) May 08 11:42:56 :) May 08 11:43:00 you mean elegos :P May 08 11:43:06 that too :( May 08 11:43:10 lol May 08 11:43:13 perhaps it is time for coffee May 08 11:43:27 coffee kills the brain! Go have some sex instead ahahah May 08 11:45:56 I modified the paste a bit, http://pastebin.com/ZbHBN36N May 08 11:46:28 elegos: anyways, you can call getIntent in onResume, but if you use singleTop it will always be the "first" intent used to launch the activity as stated on http://developer.android.com/reference/android/app/Activity.html#onNewIntent(android.content.Intent) May 08 11:46:59 I'm trying to fetch random jokes from the numberList and then remove the shown joke, store the progress so it wont show the next time the app is launched May 08 11:47:34 hence the joining of the numberList to a string to put in sharedprefs May 08 11:47:35 appel1: thanks :) May 08 11:47:35 what do you think, from a battery saving point of view, if a service checks and eventually saves the new entries in a sqlite database every 16 minutes a JSON remote object? May 08 11:48:12 elegos: not possible to push changes to the device? May 08 11:48:34 Quacked: so where do you run into trouble? saving the list or reading it back or? May 08 11:48:34 appel1: unfortunately no, it's a public API with no push services May 08 11:48:47 appel1: obviously I run it via AlarmManager May 08 11:49:25 elegos: the less frequently you wake the device up and do network communication the better for batterylife May 08 11:49:59 appel1: yep I know... well, I'm gonna run the app today and see this evening the battery and internet consumption May 08 11:50:35 appel1: the list decreases for each time, so I am deleting from it, however, I don't get unique jokes May 08 11:51:03 for testing purposes the database is just 8 rows with different jokes May 08 11:51:38 Quacked: have you ever thought about a database to store "jokes" and mark them as "already viewed" once you show them... and call a random call from the "not already viewed" set? May 08 11:51:46 Quacked: for example using SQLite May 08 11:51:52 elegos: I think it is better to use inexact repeats if possible but perhaps you already do? May 08 11:52:05 appel1: inexact repeats? May 08 11:52:22 elegos: http://developer.android.com/reference/android/app/AlarmManager.html#setInexactRepeating(int, long, long, android.app.PendingIntent) May 08 11:52:25 elegos: I did think about it May 08 11:52:29 Hello guys, I bindService() my Activity to my service in onCreate() and than unbindService() in onDestroy(), when destroying my Activity I get a leaked ServiceConnection, while it's not true. This happens after I switch to another app and than come back (so my Activity was only called onStop() and than onStart()). The service was started by another Activity with startService(). May 08 11:52:44 elegos: what do you mean mark as already viewed? May 08 11:52:59 Quacked: an extra bit column to mark them as already shown May 08 11:53:05 Number5: onDestroy is not guaranteed to get called May 08 11:53:07 so that you'll always show new jokes May 08 11:53:25 appel1, that's no problem. May 08 11:53:28 appel1: well, users start the AlarmManager repeating task randomly (at boot time), so I don't see any problem making it non-random May 08 11:54:10 if my Activity gets killed, bind connection with the Service gets cleaned up by the system May 08 11:54:11 elegos: I'm gonna try getting this to work first, but thanks for the tip May 08 11:54:44 Hi all! Need help with Eclipse + Google App Engine + GCM May 08 11:54:47 appel1: at least server side... client side if you make random calls, at a long time, the mean will always be 16 minutes, thus making the battery consumption equal to the non-random timers May 08 11:55:13 appel1: any ideas? May 08 11:55:23 SeptDePique: have you tried with the Google App Engine support channels? May 08 11:55:49 elegos: the advantage of the inexact alarms is that the system can schedule multiple alarms from multiple apps at the same time so it only has to wake the device once for all of them May 08 11:56:05 appel1: cool! gonna do that then! May 08 11:56:05 elegos: no... how do i join? May 08 11:56:27 I'm totally confused, because of lack of documentation and understanding. I don't get that message if I do bindService() and unbindService() in onStart() and onStop(). But when doing it in onCreate() and onDestroy() I get that leak message. May 08 11:56:52 SeptDePique: I mean, this is the android development channel, where we discuss about android "vanilla" coding... Google App Engine is something else, and GCM... well, I don't even know what it is :P May 08 11:56:56 Number5: that depends on the service, is this a local service (same process as the activity)? May 08 11:57:21 elegos: GCM is the push message system in android May 08 11:57:25 appel1, yes, it's in the same process running on the same thread. May 08 11:57:39 appel1: thanks :) May 08 11:58:00 SeptDePique: btw, you should ask GCM here and eventual Google App Engine API elsewhere :) May 08 11:58:11 Number5: then I don't know what happens in your case.. May 08 11:58:24 elegos: oh sorry.. i am totally new to android... i don't even know what "vanilla" coding is... somebody told me i should ask in #android-dev May 08 11:58:48 SeptDePique: writing apps using the Android SDK May 08 11:59:26 hiho guys. anyone have experience in public relations?:< May 08 11:59:36 my android-app should be connected to a google app engine backend May 08 11:59:37 i mean i would like to know how to make my app moar popular May 08 11:59:47 SeptDePique: if you write apps using the Android SDK _only_ - that's "vanilla" writing. If you start using external libraries, you're using external API and that's not "vanilla". You should ask for "base" Android development here and external APIs to the relative channels May 08 12:00:27 When switching to another app and than go back, my Activity is not killed, just stopped. So when going back to my Activity my ServiceConnection object still exists, but when unbindService() with this same ServiceConnection object, an Exception occured saying that this object was not registered. While I unbindService in onDestroy() and not in onStop(). May 08 12:00:43 oh ok then... thx anyway! May 08 12:00:49 SeptDePique: have you looked at https://developers.google.com/eclipse/docs/endpoints-androidconnected-gae? May 08 12:01:36 appel1: yes my test app works May 08 12:03:18 SeptDePique: for more app engine specific stuff https://developers.google.com/eclipse/community points to #appengine May 08 12:03:27 SeptDePique: no idea how active it is though May 08 12:04:14 TBH I haven't understood the why of AppEngine... May 08 12:04:31 appel1: thx! i'll try my luck May 08 12:23:36 i have a string with german symbols how i can convert it to url? May 08 12:23:57 german symbols? May 08 12:24:20 Schönbrunner Straße 67, Wien ------- to -------- Schönbrunner%20StraÃ%20e%2067 May 08 12:24:26 for example May 08 12:24:43 Hi folks May 08 12:25:03 Is there a way to set the ImageFormat for the camera preview frames to NV12? May 08 12:25:08 xgear http://developer.android.com/reference/java/net/URLEncoder.html May 08 12:25:10 xgear: URLEncoder perhaps May 08 12:25:13 i have tried UrlEncoder.encode()s, "UTF-8") and Html.toHtml May 08 12:25:38 url encoder converts to Sch6nbrunner+Stra%9Fe+47%2C+Wien May 08 12:25:57 with utf8 May 08 12:27:56 so 'ö' is encoded at '6' ? May 08 12:28:07 *lol* that MQTT protocol is really welldesigned... "everything is big endian", except the length fields *facepalm* May 08 12:31:19 i have no idea how to encode May 08 12:31:56 URLEncoder.encode(topic, "utf-8"); works for me May 08 12:32:04 but after URLEncoder result is not suitable May 08 12:32:06 appel1: channel #appengine is full, but no reply May 08 12:32:12 ok May 08 12:32:16 #appengine is dead really May 08 12:33:51 someone experience with facebook api here? May 08 12:35:37 FrancescoV: best bet is to check the Facebook's API page: https://developers.facebook.com/docs/getting-started/facebook-sdk-for-android/3.0/ and see the examples May 08 12:36:04 hi May 08 12:36:22 elegos: i know but i'm confused about something with open graph story May 08 12:36:44 sometimes my videoview is not show video, only sound of video is coming but no display May 08 12:37:33 my media format mp4 May 08 12:39:34 FrancescoV: never done before, but here is all the docs about it: https://developers.facebook.com/docs/opengraph/getting-started/ May 08 12:40:00 elegos: i know but always examples for the web ... May 08 12:41:12 FrancescoV: this is about Android -> https://developers.facebook.com/docs/tutorials/androidsdk/3.0/scrumptious/publish-open-graph-story/ May 08 12:49:55 hello guys May 08 12:50:14 am having a problem when creating client-server socket on android May 08 12:51:24 Anyone? May 08 12:51:46 my question is: Socket client = new Socket("10.0.0.169", 6006); valid? May 08 12:52:01 where 10.0.0.169 is the ip address of my computer May 08 12:52:16 and this socket resides on the android app May 08 12:52:23 For encoding I have to use the 420SP profile and using NV21 as the pixel format for the preview frames show the color inverted May 08 12:52:41 NV12 is what I need, but Android does not support that May 08 12:55:16 any one familiar with android socket programming [just only intro part] May 08 12:55:25 help please May 08 12:56:36 in the play store can i have one APK for < api level less than 14 and another for API level 14+ ? May 08 12:57:15 funkbox yes but you can also just make 1 May 08 12:57:47 okay, as long as i can differentiate it, thanks! May 08 12:59:23 Can you guys PLEASE set a +R so idiots who can't figure out they need to register at least get redirected to a channel with a topic that maybe makes it more obvious? :) May 08 13:04:01 any body familiar with android socket programming? May 08 13:04:27 shadej this question will probably not help you. ask a concrete programming question May 08 13:04:55 ok May 08 13:05:15 shall patebin my code then? May 08 13:05:29 hi there, I'm trying to connect from a win7x64 pc to a xperia z via adb. adb devices does not list the xz. developermode and debugging are turned on. I've also installed seus and pc companion to be sure i've got the drivers... can someone help to get adb working? May 08 13:05:48 gneerally use the form 'i am trying to do x, why does it not work, heres my code: ' May 08 13:06:00 shadej: if needed, but people are less likely to answer if they have to analyze some code to understand the problem May 08 13:06:26 appel1: no it is not complicated! May 08 13:06:40 it is bassically hello world in socket programming May 08 13:07:27 i have a string with german symbols how i can convert it to url? May 08 13:07:33 can anyone help May 08 13:07:41 URLEncoder doesn't help May 08 13:07:57 Schönbrunner Straße 67, Wien ------- to -------- Schönbrunner%20StraÃ%20e%2067 May 08 13:07:58 repeat your question xgear ? May 08 13:09:41 xgear: that is a perfectly valid string to put in a URL. there's no need to mutilate it. May 08 13:10:00 also à is not a URL encoding of ö. May 08 13:11:34 xgear: so you want to use the HTML defined named entity references for some characters and %nn encoding for some? May 08 13:11:36 Sch%C3%B6nbrunner+Stra%C3%9Fe+67%2C+Wien May 08 13:11:39 is what i get May 08 13:12:54 https://gist.github.com/anonymous/5540330 May 08 13:13:27 hey guys here is my code: May 08 13:13:29 http://pastebin.com/52y4zp4R May 08 13:13:58 don't network on main thread. what's the error May 08 13:14:30 also, wow: int port = Integer.parseInt("6006"); May 08 13:15:25 xorgate: ok i am just testing May 08 13:15:40 hehe May 08 13:15:43 now the problem is: May 08 13:15:50 newer androids will error when you try to network on main thread May 08 13:16:06 xorgate: but am not getting any error May 08 13:16:44 xorgate: I think when you google the error you get you will first find two lines to override the error May 08 13:17:36 xorgate: but is my code semantically correct? May 08 13:17:41 you have to skip that to see the "no network on main thread" part :P May 08 13:18:04 Quacked: help please May 08 13:18:27 you realize what you do with the int port = Integer.parseInt? May 08 13:19:18 shadej did you get the permission to do networking in the manifest May 08 13:19:20 yeah, wht problem doest it have May 08 13:19:32 appell: i won to convert Schönbrunner Straße 67, Wien ------- to -------- Schönbrunner%20StraÃ%20e%2067 May 08 13:19:41 but i don't know how May 08 13:19:55 xorgate: this one :? May 08 13:19:59 yes May 08 13:20:10 no May 08 13:20:15 shadej: you parse a String that is really an int May 08 13:20:26 May 08 13:20:30 shadej: you can just do int port = 6006; May 08 13:21:00 that goes in the tag May 08 13:21:09 Quacked: yeah, sorry i did that because i was acutally receving the port number from command argument but thank u May 08 13:22:29 xorgate: oh u gave an important point May 08 13:22:40 shadej uses-feature is so you can filter out devices in the market May 08 13:23:06 but now am getting an error from the virtuall: May 08 13:23:09 device May 08 13:23:10 xgear why do you want to convert ö to à ? May 08 13:23:54 xorgate:it says: unfortunately testproject has stopped? May 08 13:24:15 shadej you must be doing something wrong then.. look at logcat May 08 13:24:30 where is it? May 08 13:24:39 ok May 08 13:25:17 xorgate: i want to convert it to ö May 08 13:25:49 xgear really? or do you want to take a string and make it work with urls May 08 13:27:16 yes, i want to make it works with urls May 08 13:27:49 but URLEncoder and Uri.parse and Html.toHtml doesn't help May 08 13:28:03 you only need urlencoder May 08 13:31:16 xorgate: but is it possible to use java.net on android? am not sure abt it May 08 13:31:57 does it compile? May 08 13:32:54 yeah, because java.net is there [on eclipse] May 08 13:33:23 java.net is in either the java sdk or the android sdk May 08 13:33:25 done May 08 13:33:27 how will the device locate the library once the app is loaded to the device? May 08 13:33:36 that's not your concern May 08 13:35:00 ok i just thought it could be library issue May 08 13:35:15 my logcat output: May 08 13:35:16 http://pastebin.com/k4k5TVtY May 08 13:35:25 no you need to be certain. logcat will tell you what you're doing wrong. if not, write log messages to inform you when things don't do what you expect them to do May 08 13:35:41 android.os.NetworkOnMainThreadException May 08 13:35:46 that's what i said earlier May 08 13:35:55 android will not let you do networking on main thread anymore May 08 13:36:10 onCreate = main thread May 08 13:36:40 Is there a way to link from a webpage directly to the play store app page? That is, so on android devices the link opens the google play store on goes to my apps page? May 08 13:37:07 Please ignore the typos. I am more tired than I thought! May 08 13:37:21 deadmund i think the play app has a hook for urls that start with play.google.com/blah. try it out May 08 13:37:32 xorgate: how can i create a new thread? May 08 13:37:41 help or reference? May 08 13:37:44 shadej AsyncTask May 08 13:38:05 what is that? May 08 13:38:16 that's something to google May 08 13:38:46 http://developer.android.com/reference/android/os/AsyncTask.html May 08 13:39:10 xorgate: It doesn't seem to work from firefox mobile... May 08 13:39:49 deadmund ok then d.android.com has some article about linking to your store May 08 13:40:07 found it: http://developer.android.com/distribute/googleplay/promote/linking.html May 08 13:40:08 reading... May 08 13:40:24 ahh, seems to depend on the browser app I'm using May 08 13:42:48 xorgate: Ahh, you can link to "market://" and it will force the use of an app. May 08 13:43:37 please, can someone help me to get adb running with xperia z? May 08 13:43:59 hi there May 08 13:44:17 I've tried a lot of drivers and magic. but nothing works... adb devices doesn't list it May 08 13:44:37 I'm on win7 x64 May 08 13:45:06 does anyone know if its possible to record the screen on an i9300 ? May 08 13:45:16 im trying to make a little video of a live wallpaper i made May 08 13:46:57 encountering a weird bbug when reading from a bluetoothsocket. https://gist.github.com/anonymous/5540514 <-- Its supposed read data into the buffer untill 16 bytes(16 bytes = 1 package) have been read. It seems however that unless I set a breakpoint inside at the read() I receive an extra '0' which messes up my package May 08 13:50:43 xorgate: thank u very much bro!!!!!!!!!!! May 08 13:50:56 using that class worked! May 08 13:51:43 shadej that's fast, nice May 08 13:52:06 try rotating the device when the task is running :) May 08 13:52:40 xorgate: am actually working on the emulator now May 08 13:52:44 what will happen? May 08 13:53:19 hopefully it will still work :0 May 08 13:53:27 hah.. May 08 13:58:45 is the sdk manager not included in eclipse anymore? May 08 14:00:06 DarsVaeda, what i know is that you have to install it as plugins or addons May 08 14:00:25 the sdk manager specifically or ADT? May 08 14:01:07 as far as i know it was never packaged with eclipse May 08 14:01:16 DarsVaeda, both! May 08 14:01:45 previously I just installed ADT and got the sdk and emulator and everything on board May 08 14:02:01 now it is missing, I wonder if the installer failed or it is not included anymore May 08 14:02:03 DarsVaeda, which version? May 08 14:02:13 ADT current, eclipse Juno May 08 14:02:15 I am using Eclipse Juno /Linux May 08 14:02:46 yes! you have to install them. they don't just come like that May 08 14:03:09 ..not out of the box i mean May 08 14:03:25 I'm not sure if we are on the same page :) May 08 14:03:48 previously I just installed ADT from eclipse with https://dl-ssl.google.com/android/eclipse/ May 08 14:04:05 DarsVaeda, what i know is that the ADT and the SDK tools you have to get their plugins. May 08 14:04:09 that included buttons in eclipse to start the sdk manager and such May 08 14:04:27 if ypu cannot see them switch to Java perspective May 08 14:05:01 HA! May 08 14:05:04 thanks ^^ May 08 14:05:09 welcome.. May 08 14:05:14 see them now? May 08 14:05:27 yes May 08 14:05:27 DarsVaeda, see them? May 08 14:05:30 great May 08 14:05:38 i had the same trouble before May 08 14:06:28 hell with eclipse! it should be defaulting to Netbeans cos it's faster and less resource hungry May 08 14:06:57 actually I could not like any java ide May 08 14:07:03 ☺ May 08 14:07:18 and when I tried netbeans it forced me to choose a project layout May 08 14:07:25 or I did not set it up the right way May 08 14:07:57 eclipse is good but i just cannot open so many files. and the perspective is so tiny May 08 14:08:21 guys guys you're both wrong May 08 14:08:25 you should use intellij :) May 08 14:08:47 yaji May 08 14:08:48 xorgate, what is inellij? May 08 14:08:52 yet another java ide May 08 14:09:05 and? is't fast? May 08 14:09:36 i mean can it open heaps of files without too much file cache? May 08 14:09:54 I had to mess with my ulimit with linux May 08 14:14:09 Hello, is it possible to force the software keyboard to appear for certain edit fields even if a physical keyboard is attached (ie barcode scanner) ? May 08 14:24:01 is it possible to code an action when the user clicks on a notification? i.e. do this and proceed with super(args) May 08 14:24:27 if yes, where should I write that code? I can't find any candidate in the Notification class May 08 14:26:16 what would you like to do? notification click sends intent so you can handle it whichever way you want May 08 14:27:18 karlo|w: I'd like to reset a variable in the service May 08 14:28:30 karlo|w: I'm actually using a portion of code I don't like (I rely on broadcast messages not directly connected to the activity I'm running with the pending intent) May 08 14:31:30 someone experience with google plus api? May 08 14:32:25 FrancescoV: did you resolve with open graph? May 08 14:32:28 i can share something (using an intent) but the user must select friend(s) to share with, is it possible to choose the friends dynamically so the user only need to write the message? May 08 14:33:11 elegos: basic it works but currently i'm working on a google + functionality May 08 14:33:26 (: May 08 14:35:20 i hope that google is working on their g+ api because there isn't a lot possible right now May 08 14:36:18 after removing a fragment with fragmenttransaction how can i reinitialize the view that was also removed? May 08 14:39:03 how can i get keypress event on my simulator? May 08 14:41:32 i want to build a program that will say "hey a is pressed b is pressed..." May 08 14:41:43 true_techie, is it possible to use the singleton pattern? then you can hold your view May 08 14:42:17 O.o May 08 14:48:25 how can i get keypress event on my simulator? May 08 14:48:37 help! May 08 14:48:52 i want to build a program that will say "hey a is pressed b is pressed..." May 08 14:52:17 Hello there guys does anyone here have some experience with the Motorola ET1 device May 08 14:52:40 i can't make adb detect it i setup the appropriate udev rules and the id entries in the adb_usb.ini May 08 14:52:46 but still no connection from device :( May 08 15:00:47 is there an irc channel for google plus api? May 08 15:00:59 realy need one little think but i don't know if it's possible May 08 15:06:10 Is there a way to get a Canvas to be a drawable? Or can I load a view with a Canvas? May 08 15:18:48 hi! has somebody in here a functional adb connection to a xperia z from windows 7 x64? May 08 15:19:03 get the .inf for the usb drivers May 08 15:19:09 or hack up the google usb .inf May 08 15:19:38 I've tried several drivers and none is working so far. pfn, do you have a working adb connection to a xperia z? May 08 15:19:50 hack up the .inf May 08 15:19:56 look up the vid/pid in device manager May 08 15:20:02 edit the inf to have it May 08 15:20:06 reinstall driver, connect May 08 15:20:27 reboot randomly! May 08 15:20:34 yeah, I've got a inf from sony, i've got one from flashtool... and i've already edited the inf May 08 15:20:45 then enable usb debugging May 08 15:20:49 ;) May 08 15:21:04 its enabled and working on my linux laptop May 08 15:21:19 then what does it show up as in device manager in windows May 08 15:21:23 but i cannot get it running under win7 May 08 15:21:28 if it shows up as unknown, you edited the inf incorrectly May 08 15:21:47 what's the canonical way to have multiple ethernet devices come up with dhcp on android? modify init.rc? May 08 15:21:58 it shows up as: Sony sa0107 ADB Interface Driver May 08 15:22:08 then it's running May 08 15:22:11 adb kill-server May 08 15:22:14 adb start-server May 08 15:22:19 if i use the driver provided by sony... did that May 08 15:22:21 no success May 08 15:22:31 also rebooted phone and pc May 08 15:23:03 still, no device listed if i issue adb devices May 08 15:23:35 same if i edit and install the device driver provided by flashtool May 08 15:23:39 do you have the debug notification on the phone? are you using an original (or at least decent) cable? do you have a hub in the way? May 08 15:24:22 its the original cable (the same one which is working on my laptop with linux), there is no usb hub in between May 08 15:24:35 yes, there is a debug notification on the phone May 08 15:24:55 stating "usb debugging connected" May 08 15:25:06 but adb tells something different ;) May 08 15:25:13 good - then it's definitely a windows problem, and therefore not mine :) May 08 15:25:32 any idea how to debug? May 08 15:26:40 randomly reboot! May 08 15:26:54 Change places everyone! May 08 15:26:54 i did several reboots May 08 15:27:19 Randomly try a different USB port! May 08 15:27:49 also did that May 08 15:28:11 Try a different PC! May 08 15:28:39 (seriously I've had problems with drivers on one windows x64 pc and had it work perfectly on another) May 08 15:28:55 I haven't got another client pc running with win 7... i could try a vm ;) May 08 15:29:43 win5hit: it seems like it's impossible to get rid of shitty driver once you've installed it in Windows May 08 15:29:56 it will tell you that it has uninstalled it, but it's lying May 08 15:30:27 maybe you could restore the PC back to it's state before you installed the first thing you tried and then try the second thing again May 08 15:31:20 basically all of the drivers should be fine i've tried. one is the official sony one and the other is "highly recommended" inside the xda-dev forum. May 08 15:31:40 but, i've just "found" another test rig May 08 15:32:05 will the people who "lost" it miss it? May 08 15:32:49 I have a triangle created in a path and drawn on a canvas, how do I get it into a view? May 08 15:35:44 Ankhwatcher: have you read http://developer.android.com/guide/topics/graphics/2d-graphics.html May 08 15:36:14 I have not May 08 15:36:17 * pfn kicks google some more May 08 15:36:19 I will do so May 08 15:36:27 no codejam for the opportunity to buy IO tickets, what kinda crap is that? :( May 08 15:38:19 pfn: no freebie-package for you! May 08 15:38:43 I'm just plain disappointed altogether, whole thing was handled like shit :( May 08 15:39:02 worst ticketing system ever May 08 15:39:18 Leeds: so drawing this triangle to screen over and over will have a negative impact on framerate. I might be better off creating images and adding them to the project May 08 15:39:33 Ankhwatcher: all depends on context May 08 15:41:57 Leeds: yeah, and in this context I don't think it's worth it. This listview already gets a little twitchy when it's updating it's info May 08 15:47:10 Why fields are prepended with an m in android? May 08 15:47:14 e.g. ArrayList mItems; May 08 15:47:22 GridView mGridView; May 08 15:47:37 Just convention May 08 15:47:43 It's member variables May 08 15:47:49 SimonVT: got it :) May 08 15:47:50 s for static May 08 15:47:58 LARGE LETTERS FOR STATIC FINAL May 08 15:48:33 SimonVT: member, as class member variables? May 08 15:48:46 http://source.android.com/source/code-style.html#follow-field-naming-conventions May 08 15:48:47 Yeah May 08 15:49:23 SimonVT: cool thx May 08 15:53:38 hmm, I never really gotten the reason for the "mSomething" convention May 08 15:53:48 it reminds me of terrible microsoft hungarian notation in WINAPI May 08 15:54:18 that's exactly the reason May 08 15:54:32 I try to avoid it when possible May 08 15:54:36 but it's standard android convention May 08 15:54:58 IDEs automatically tell you whether something is local, member or static May 08 15:55:06 and color it properly :) May 08 15:55:54 is it not possible to load a FragmentActivty from a SectionsPageAdapter? Seems only Fragments can be loaded? May 08 15:57:05 that's the point May 08 16:04:59 hey May 08 16:09:52 can any body tell me what this is doing? May 08 16:09:56 public boolean onKeyDown(int keyCode, KeyEvent event) { switch (keyCode) { case KeyEvent.KEYCODE_A: { //your Action code return true; } } return super.onKeyDown(keyCode, event); } May 08 16:10:12 you can load an activity via intents, however can you create an activity object, then load this via an intent, or is another mechanism required? May 08 16:12:08 in other words, can an activity be instantiated then loaded within android? May 08 16:12:16 no May 08 16:13:07 well that's a pile of crap….. indirect passing of data to activities via intents the only way to get information to them? May 08 16:13:43 do not create an activity object yourself May 08 16:13:46 that's just asking for trouble May 08 16:14:00 oh, no, do I *have* to use the data-passing mechanism which is at the absolute heart of Android? May 08 16:14:11 you can pass data in different ways May 08 16:14:14 besides those provided by the framework May 08 16:14:20 specifically, use what is provided by the language May 08 16:14:30 in the form of singletons and scoping mechanisms outside the lifecycle of activities May 08 16:14:41 beware of any issues that may accompany them May 08 16:14:46 I can't access the activity past the point of it being loaded via the intent though, I've only passed it a class name, there's nothing to reference it by May 08 16:15:06 the activity pulls data in itself May 08 16:15:10 you don't push data to it May 08 16:15:28 unless you want to use intents May 08 16:15:51 can any body tell me how to capture key press events on android phone? May 08 16:17:52 pfn, please advise how else can I initiate another activity without using intents? May 08 16:18:05 who said anything about not using intents to initiate? May 08 16:18:13 the goddamn android documentation May 08 16:18:22 the documentation has never said that May 08 16:18:40 The Intent represents an app’s "intent to do something." You can use intents for a wide variety of tasks, but most often they’re used to start another activity. May 08 16:18:52 most often would imply it's the preferred method... May 08 16:18:56 and that says you can start an activity without an intent? May 08 16:19:08 no, it doesn't advise how else an activity can be started May 08 16:19:09 most often implies that intents have uses beyond starting activities May 08 16:19:09 you need to practice reading comprehension if english is your first language May 08 16:19:22 which it also blatantly says May 08 16:19:27 about four words earlier May 08 16:20:27 of copurse they have other uses, that makes perfect sense, but saying most often they're used to start another activity implies that intents are used mainly for that purpose May 08 16:20:49 Exactly May 08 16:20:52 fair point it doesn't necessarily mean it's the main way to start an activity, but the docs aren't providing an alternative May 08 16:21:06 yeah, it also has no implication that there are other methods of starting activities May 08 16:21:27 no, the way that's worded says nothing about other ways to start activities May 08 16:21:28 so why would you think there is any way to start an activity outside of firing an intent? May 08 16:25:42 Anyone here using an x86 emulator on a rMBP? May 08 16:27:47 LuxuryMode: only if I enjoy kernel panics May 08 16:27:57 JakeWharton, haha exactly May 08 16:28:03 cannot get the damn thing to work May 08 16:28:10 any workarounds? May 08 16:28:37 I just use the normal emulator with HVGA and GPU acceleration May 08 16:28:54 or, you know, a real device May 08 16:29:10 sometimes you don't want to fuck with your real device :P May 08 16:29:12 JakeWharton, gotcha May 08 16:29:45 JakeWharton, for gpu you just check "use host GPU"? May 08 16:29:52 yeah May 08 16:30:20 also, why HVGA? May 08 16:30:35 because there's fewer pixels for it to render May 08 16:30:50 gotcha May 08 16:35:12 hey guys can any body tell me how to detect what key is pressed in my android app May 08 16:35:13 ? May 08 16:35:52 I have a mainactivity that invokes a method in another class that it invokes startActivityForResult (intent, int) This gives an IllegalStateException (could not execute method of the activity) May 08 16:37:33 What we are trying to acomplish is to enable bluetooth device by means of intent but have no idea why this is not working. The Blueetooth class extends the activity... May 08 16:40:03 so fix the illegal state exception May 08 16:40:07 read further May 08 16:40:31 shadej, override onKeyDown in your activity May 08 16:41:22 i did but am not getting any thing! May 08 16:41:53 shadej: have you tried logging the arguments? May 08 16:42:32 yeah May 08 16:42:35 here is the code May 08 16:42:39 public boolean onKeyDown(int keyCode, KeyEvent event) { May 08 16:42:39 Button b=(Button)findViewById(R.id.button1); May 08 16:42:39 b.setText("test"); May 08 16:42:41 } May 08 16:43:39 pfn: http://pastebin.ubuntu.com/5645197/ second class http://pastebin.ubuntu.com/5645200/ and the error = http://pastebin.ubuntu.com/5645209/ May 08 16:44:04 pfn: we are kinda new to Android development, so if you know what we need to investigate or point would be aweosome May 08 16:44:43 elegos: can u see any error? May 08 16:44:58 shadej: you're not logging it. Try using Log.d("MyApp", "keyCode: "+keyCode+" event: "+event); May 08 16:45:33 he tried log.d May 08 16:45:54 brx_: I don't see it from the method he wrote May 08 16:46:18 i was helping him earlier May 08 16:46:34 brx_: and it logs nothing? May 08 16:46:40 Justice, are you manually instantiating an activity? You can't do that May 08 16:46:44 logs nothing May 08 16:49:26 * Ge0rG braucht _dringend_ ein aprsdroid blog. May 08 16:49:47 SimonVT: We are trying to start the activity that will ask the user to turn on the bluetooth adapter. This is working if the method is placed in the main activity. However, the main activity is right now invoking a method that is placed in another class called BlueController and this class needs to extend Activity so that we can invoke startActivityForResult(intent, int, int) May 08 16:50:17 Justice: You can't invoke startActivityForResult in an Activity not started by startActivity/startACtivityForResult May 08 16:50:33 elegos: nothing is logged May 08 16:50:46 You can't do new Activity().startActivityForResult May 08 16:50:52 i mean except some other garbage messsage May 08 16:52:09 I get that now. Our goal is to have all methods controlling the behaviour of the adapter in one class and let every other activity use that. May 08 16:52:13 hello May 08 16:53:03 SimonVT: is there another way of doing this? May 08 16:53:44 Pass an activity if you need activity methods May 08 16:53:49 Or just handle it in your activity May 08 16:55:26 SimonVT: How do we pass an activity correctly? May 08 16:56:38 elegos: btw i am using emulator May 08 16:56:50 shadej: maybe that's the problem May 08 16:56:57 shadej: you could mess around with DDMS May 08 16:57:18 Justice: Pass the activity you're calling the method from May 08 16:58:30 elegos: what is DDMS? May 08 17:00:58 where can i find it? May 08 17:01:08 In the sdk May 08 17:01:20 how ? the procedure May 08 17:02:20 hey SimonVT May 08 17:02:37 heyo May 08 17:02:51 Justice, simple, don't pass in nulls to startactivityforresult May 08 17:02:55 i just went for an interview May 08 17:03:07 got a block on a stupid question May 08 17:03:12 hmm, I'm wondering how to display 2 sets of data below each other May 08 17:03:25 seems 2 ListViews is not possible May 08 17:03:33 (below each other) May 08 17:03:39 SimonVT: Thank you. We have passed in "this" to the method and then used that intance called, "mainActivity" to run this = mainActivity.startActivityForResult(Intent, int) - and it worked! May 08 17:04:34 lets say you have start ActivityB from ActivityA.. what order does the lifecycle routines of both activities happen in. for example ActivityB gets onCreate then ActivityA gets onPause or whatever.. May 08 17:04:41 bugged if i could remember May 08 17:05:15 Napalm: why not build said example, and Log.w() in each lifecycle event May 08 17:05:16 Isn't that inconsistent? May 08 17:05:37 Or is that when finishing ActivityA May 08 17:06:08 im trying to think of one situation where that has been really relevant.. but if your dealing with logic of the lifecycle routines 'between' activities being called in a specific order then your probably doing something wrong since the SDK only guarantees lifecycle function order of a single Activity May 08 17:07:01 How would I display my two data sets? Or is this just a sign that I need another activity to display my results? May 08 17:07:12 belgianguy: this was a interview question, and yes I could do that, but i really dont care May 08 17:07:17 2 ListViews below each other I can't seem to get to work May 08 17:07:33 Napalm: yeah, sorry to hear that, I'm still looking for a job as well May 08 17:07:51 interviews can be annoying :/ May 08 17:08:16 Napalm, if they cared that you immediately knew it off the top of your head, I would say they're not really worth working with? May 08 17:08:30 SimonVT: well May 08 17:08:40 i got a job, i just went for some interview pratice May 08 17:10:52 Napalm: http://developer.android.com/guide/components/activities.html#CoordinatingActivities May 08 17:11:27 TIL ^_^ May 08 17:11:33 ffs May 08 17:11:39 they just made the question exactly from that May 08 17:11:47 this is all the new docs May 08 17:11:48 meh May 08 17:11:52 who cares May 08 17:12:02 elegos: how about emulator type? May 08 17:12:23 could there be any problem on my emulator choice? May 08 17:12:28 SimonVT: We are starting the startActivityForResult when the application starts and want user confirmation to acticate bluetooth. The method exits quickly back to mainactivity. May 08 17:12:35 We don' May 08 17:12:52 shadej: if you're using the built-in one, I would never think it's an emulator fail May 08 17:13:18 SimonVT: We don't know if that is inconsistent or if this would mean that the main activity will hang till this method has finished. May 08 17:13:50 elegos: yeah i created my own emulator from the emulator manager May 08 17:14:01 (speaking of lifecycle) you're starting a new activity, the old one is paused May 08 17:14:09 It doesn't "hangle" May 08 17:14:12 err May 08 17:14:13 hang May 08 17:14:53 And yes, startActivityForResult returns immediately. The new activity is started later May 08 17:16:14 SimonVT: we are new to Android development as you may hav noticed =) We have another question. Do you know a way to keep a backgroundThread running across activities?? May 08 17:16:19 elegos: it seems very simple app, but annoying!!!!!!!!!!!!!! May 08 17:16:33 SimonVT: or is the only correct way to have a backgroudn service? May 08 17:17:17 What do you mean by keep it running across activities? That several activities have a reference to it? May 08 17:17:19 http://www.youtube.com/watch?v=WPkByAkAdZs < lol May 08 17:19:49 have you guys ever noticed that sometimes when an app's launcher icon gets updated, if you had that icon on your home screen, it turns into that little green default Android robot icon? May 08 17:20:03 I think I saw this happen with the linkedin app recently when they updated their launcher icon May 08 17:20:20 shigeru: its because they changed the resource name May 08 17:20:21 SimonVT: We need to route data between a bluetooth device to the internet and this should not be interrupted or our inputStream being garbage collected while we go from one activity to another. We are consirned that when an activity is destroyed, all the instances it has create will go down with it. May 08 17:20:39 shigeru: the shortcut keeps the resId of the launcher icon May 08 17:20:45 ah.. May 08 17:20:50 is there any way to rename a resource and get aroudn that? May 08 17:20:57 yes May 08 17:21:01 assign it an ide May 08 17:21:02 id May 08 17:21:19 or just don't rename the resource May 08 17:21:20 sorry i dont think i understand what you mean by that May 08 17:21:26 ok ideally i wouldnt May 08 17:21:31 but the current launcher icon im working with has the naem May 08 17:21:34 you can assign your own resource id's May 08 17:21:39 launcher_icon_48x48.png May 08 17:21:44 so pfn, hows it going May 08 17:21:45 so i really want to rename it... May 08 17:22:08 can any body refer me into a code that handles keypress on android emulator? May 08 17:22:13 the resId is got again when the launcher loads May 08 17:22:47 so what am i assigning an id? May 08 17:23:00 shigeru: go into R.java grab the id then make a ids.xml and add this May 08 17:23:14 ooh... May 08 17:23:27 its something like that.. should work May 08 17:24:17 so basically i would have to lookup the current resid of the existing launcher icon in R.java May 08 17:24:25 yes May 08 17:24:31 shigeru: can u help please May 08 17:24:44 and then create that ids.xml file and add that item element May 08 17:24:49 yup yup May 08 17:25:14 so "launcher_icon" in name="launcher_icon" is the new icon? May 08 17:25:19 yes May 08 17:26:17 would that be in the form of R.drawable.launcher_icon May 08 17:26:24 or literally just somethiong like "launcher_icon" May 08 17:26:44 just the name May 08 17:26:51 Napalm, busy, usual May 08 17:26:59 shadej sorry give me a sec May 08 17:27:37 napalm alright ill try that out thanks May 08 17:27:46 The icon resource id changes all the time, that's not the issue May 08 17:27:56 shigeru: ok May 08 17:28:07 If it was, apps would get the default icon every time they added a resource May 08 17:28:17 oh? May 08 17:28:19 Sounds more like a launcher caching issue or something May 08 17:28:28 Yeah it does seem like a bug May 08 17:28:28 yes May 08 17:28:34 it caches the resId May 08 17:29:14 shadej http://stackoverflow.com/questions/2261914/catch-keypress-with-android ? May 08 17:29:16 and doesnt reget the launcher icon on PACKAGE_REPLACED intent May 08 17:29:46 We need to route data between a bluetooth device to the internet and this should not be interrupted or our inputStream being garbage collected while we go from one activity to another. We are trying to use a backgroundThread to acomplish this. We are concerned that when an activity is destroyed, all the instances it has create will go down with it. How can we avoid this or use a better method?? Thanks May 08 17:29:54 If it does indeed cache the res id, it has to get the new res id every time the app is updated May 08 17:30:13 Since simply adding a completely unrelated drawable will change it May 08 17:30:48 shigeru: i did see that May 08 17:30:58 and it is very simple May 08 17:31:06 but it is not working May 08 17:33:03 shigeru: do u think the code will work on an emulator? May 08 17:42:03 hmm, would it be more feasible to combine 2 datasets into a single ListView? May 08 17:42:27 as I can't seem to be able to display 2 below each other (only the first one shows up) May 08 17:45:33 shadej yeah i thnk so May 08 17:45:43 i don't see why it wouldn't May 08 17:46:40 u hv done an app that will handle key presses , yeah? May 08 17:46:56 because it is very basic May 08 17:47:22 belgianguy: ive compiled 3 datasets into a single adapter May 08 17:47:48 clever: ah, good to know, how do you distinguish between them? May 08 17:47:55 belgianguy: you just need to add some if's to getItem, getItemId to pick from the right array, and offset things properly, and getCount returns the total May 08 17:47:56 (when in the UI) May 08 17:48:36 belgianguy: the getItem function can return a different object, based on what it is, and then getView can check to see which object its displaying May 08 17:48:42 and use different layout files May 08 17:49:04 clever: ahh, thanks, I'll look into that, but that looks like that'll solve it May 08 17:49:09 shigeru: what is this message:Unexpected value from nativeGetEnabledTags: 0 May 08 17:49:33 if i remember correctly that can probably be ignored May 08 17:49:44 i think its an emulator thing, idk May 08 17:55:55 belgianguy: if you are using convertView properly, you will also want to implement getItemType and its count method May 08 17:57:19 belgianguy: Just put one below the other? Vertical linearlayout, weight May 08 17:57:19 shigeru: what about this one:Received deviceId from Email app: null May 08 17:57:49 !!! deviceId unknown; stopping self and retrying May 08 17:58:06 SimonVT: they will scroll seperately, not as one unit May 08 17:58:38 shadej idk man, if theyre just random messages on logcat that aren't affecting your program i wouldn't worry about em May 08 17:58:59 shigeru: this is an error:Service com.android.exchange.ExchangeService has leaked ServiceConnection com.android.emailcommon.service.ServiceProxy$ProxyConnection@40cee920 that was originally bound here May 08 17:59:01 shigeru: is it from your process, or a different app? May 08 17:59:16 that looks like it wasnt your app May 08 18:00:10 Can someone explain to me why removing randomPosition 2 from 0,1,2,4,5 returns 0,1,3,4 and then removing 1 return 0,2,3? http://pastebin.com/ZbHBN36N May 08 18:00:44 Quacked, because you're removing by index, not by value May 08 18:01:02 how do I remove by value? May 08 18:01:09 new Integer(2) May 08 18:01:30 clever: Well, yeah May 08 18:01:38 pfn: what do you mean? May 08 18:01:51 remove(new Integer(2)) May 08 18:02:01 SimonVT: i'm not sure if thats what belgianguy wanted, and when i did something similar, i wanted the user to pick a single item from a spinner May 08 18:02:07 what exactly is your question here? May 08 18:03:20 Quacked, in your case, it's ambiguous what you want as well as what the behavior is May 08 18:04:04 I need to remove from numberList so I get unique jokes each run May 08 18:04:23 and then select a new joke randomly from the existing ones May 08 18:06:35 make sense? :) May 08 18:08:13 Line 4 is wrong May 08 18:08:36 You're not adding the values from moddedList to numberList, you're adding 0,1,2 .. modderList.size() May 08 18:09:07 Gah, you're right May 08 18:10:00 clever: SimonVT yeah I want one spinner, from which the user can pick an item May 08 18:10:57 belgianguy: let me pastebin a piece of my code May 08 18:11:38 clever: ah, that'd be great, as I haven't used an Adapter is this way yet May 08 18:11:55 belgianguy: now that i think of it, things may be simpler to just make a single array May 08 18:12:08 belgianguy: like Object[] containing both types of data May 08 18:12:31 getView can just do Object x = getItem(position); if (x instanceof ClassFoo) { ... } May 08 18:12:38 Hey, I've seen in several apps a fullscreen image viewer that allows you to zoom in on an image May 08 18:12:59 it has a transparent top bar that goes away after a few seconds May 08 18:13:04 clever: and would you be able to insert separators ? May 08 18:13:06 SimonVT: if I'm not mistaken, numberList.add(Integer.parseInt(moddedList.get(i))); should fix it May 08 18:13:15 thanks for the help May 08 18:13:21 Hi all May 08 18:13:27 belgianguy: make an extra item type+class to act as a seperator May 08 18:13:47 clever: ah, thanks, will try that! May 08 18:13:47 I have problem with emulator from sdk on 64-bit ubuntu May 08 18:13:55 belgianguy: http://privatepaste.com/402235c9ce is the other way i'm doing it, but a single array would be simpler May 08 18:14:12 it seems "emulator" is selected instead of "emulator64-arm" May 08 18:14:40 it stops launching since emulator crashes May 08 18:15:14 when I do workaround: "emulator" as symbolic link to "emulator64-arm" it works fine May 08 18:15:38 but why id doesnt take proper emulator: emulator64-arm in my case>? May 08 18:15:58 is there any way to force emulator used ? May 08 18:16:21 becuase it seem it always takes "emulator" binary May 08 18:16:27 please for help May 08 18:16:41 I want to avoid workaround with symbolic link May 08 18:17:01 why aren't all viewparents viewgroups, explicitly? (i.e. by interface) May 08 18:17:11 are there any situations in which a viewparent is not a viewgroup? May 08 18:18:14 in general it ends up with logs as here http://stackoverflow.com/questions/5799997/android-emulator-not-launching May 08 18:18:20 and not stops May 08 18:18:29 and stops May 08 18:18:41 emulator does not appead May 08 18:18:52 not appear May 08 18:19:07 looks like 32-bit binary "emulator" May 08 18:19:33 64-bit "emulator64-arm" should be taken May 08 18:20:22 any ide why it is not taken ? of course I'm using ARM target sdk May 08 18:28:39 Is there a library that adds a nice fullscreen image viewer that allows pinch zoom and stuff? May 08 18:29:07 Korvin: https://github.com/chrisbanes/PhotoView May 08 18:29:21 Thank you May 08 18:30:24 pfn: i think its because the ViewRootImpl is only a ViewParent and not a ViewGroup May 08 18:34:18 It COULD have just returned null when there's no more ViewGroups May 08 18:35:05 Like ViewParent returns null when there's no more viewparents May 08 18:39:03 pfn: the view root is not a ViewGroup May 08 18:39:11 and an app could create its own ViewParent May 08 18:42:35 say i want to add a fragment progammatically to a linearlayout that has a 3 text boxes on it already. what will happen to these text boxes if i do? May 08 18:42:59 Nothing May 08 18:43:19 where will the fragment appear? below them? May 08 18:43:33 On top, since it was the last added view May 08 18:44:03 what if i wanted the fragment to appear below them. do i have to add the textboxes programmatically as well? May 08 18:44:20 Add a viewgroup below the textviews that you add your fragment to May 08 18:48:49 Hmm, IntelliJ doesn't seem to have support for the Android api level lint check... May 08 18:49:26 Luckily lint is a stand-alone tool May 08 18:52:03 SimonVT, how do i run it? just call the command line tool on my project? May 08 18:52:25 It should tell you if you type lint in a console May 08 18:52:49 I am invoking Camera Intent and passing a file for MediaStore.EXTRA_OUTPUT. Either I need to make this local file WORLD_WRITABLE so the camera app can write to it. Or use SD Card External Storage to use a temp file then copy that file to local file. Which option is best? May 08 18:53:03 thanks SimonVT May 08 18:54:00 SimonVT, any idea how to specify a list of things to check? May 08 18:54:06 e.g. lint --check May 08 18:55:42 http://tools.android.com/tips/lint May 08 18:58:23 what is the recommended way to authenticate a user once a day May 08 18:58:56 https post ? ? May 08 19:02:52 hrmm May 08 19:03:04 one place in this project, R.layout.oauth_fragment is found May 08 19:03:14 but in a different file, same project, it is giving an error saying it can't be found May 08 19:03:38 And in one class you import your.project.R, and in the other you import android.R May 08 19:03:49 thank you :D May 08 19:11:22 rather, I have an app for which I need to save username and password once at start and use it everytime May 08 19:11:43 what should I do to keep the username and password save May 08 19:15:11 When using Camera to get picture in local file system, there is permission issues. Do you guys use External Storage file as output for Camera then copy that temp file to local. Or give local file WORLD_WRITABLE permission. May 08 19:28:40 can anyone help me how to reuse the same dimens.xml in more "values" folders ? May 08 19:28:45 like in values-large and values-xlarge May 08 19:30:43 tibbi: if you only some value defined once, it'll always be used regardless of qualifiers May 08 19:31:39 i have different values at the default "values" May 08 19:31:46 different numbers :p May 08 19:34:32 tibbi: http://developer.android.com/guide/topics/resources/providing-resources.html#AliasResources May 08 19:35:28 been there but its pretty confusing, ill recheck it May 08 19:35:28 thx May 08 19:35:37 tibbi: yeah it's not the most elegant thing , is it? May 08 19:36:21 still better than copypasting dimens.xml everywhere i need May 08 19:36:31 at least i hope so May 08 19:36:43 tibbi: yeah, the goal would be to avoid that May 08 19:37:03 Hello :) May 08 19:37:12 thats my goal too so its worth a try May 08 19:38:37 tibbi: like if you want -large and -xlarge to have the same values, you'd make both of those have the same dimens.xml file, which would contain references to a third file that contains the set but with unique IDs May 08 19:39:04 Please Help, i try play Robospice project: https://github.com/octo-online/robospice/wiki/Setup-for-Non-Maven-users, i grap jars files and add them like it is described in http://stackoverflow.com/questions/3642928/adding-a-library-jar-to-an-eclipse-android-project (second tip). When i try tyo use new SpiceManager() Eclipse report me that is undefined. May 08 19:39:26 Pressing CTRL+shift+o don`t solved it. May 08 19:41:10 SimonVT: you read my code earlier, so I was wondering if you see why I often get one 'joke' repeated going through my table of 8 jokes: http://pastebin.com/yk2WMP2g May 08 19:41:32 the placement and the joke varies but one is usually repeated for some reason May 08 19:42:01 which means it takes the place of another joke May 08 19:47:57 Or if anyone else can see it I'd appreciate it :) May 08 19:49:53 Question for cm10 themers in an xml, how do i define a transparent black with an html color code? May 08 19:50:44 romainguy, for what practical reasons? May 08 19:50:51 romainguy, would an app want to create its own view parent May 08 19:50:59 without wanting it to also be a viewgroup May 08 19:56:13 hi guys, what is the service that compiles html5/js apps into ios/android May 08 19:58:07 phonegap May 08 19:58:31 anyone? :) May 08 19:59:55 Quacked, write unit tests to verify your logic May 08 20:01:05 Hey, quick question, in the topic it says Root/custom ROMs head to android-root, does that mean if I am trying to develop for android and my phone is rooted I should head to android-root? May 08 20:01:29 no May 08 20:01:44 Oh ok, thanks, then i can proceed with my real question May 08 20:01:58 no, it just means we're not the right people to ask about how to root phones, etc May 08 20:02:13 mishugana: continue with your app dev question May 08 20:02:16 I am unable to get anything to compile onto my phone... May 08 20:02:24 lol May 08 20:02:31 * Napalm watches everyones eye's roll May 08 20:02:34 I used to be able to compile things onto my phone May 08 20:02:55 update your ADT and SDK May 08 20:02:55 I have read the tutorials again because its been about a year since i last did any developing May 08 20:02:55 so fix it May 08 20:03:02 i updated ADT and SDK May 08 20:03:12 are you sure... May 08 20:03:12 it didnt work so i uninstalled and reinstalled it all May 08 20:03:22 including the drivers May 08 20:03:33 I also tried using a sample app just to be sure May 08 20:03:37 what isn't working: compiling, or running with the device as a target May 08 20:03:53 really i dont think either is working May 08 20:03:54 mishugana: open a terminal/command-prompt and type adb devices -l May 08 20:03:59 get anything? May 08 20:04:11 Hold on let me do adb again May 08 20:04:22 I tried it yesterday and it was showing up as a device May 08 20:04:31 well targetting a device won't work if you can't compile anything. That would be indicated by errors in eclipse (in its console or on source files, etc) May 08 20:04:48 Certainly the later isnt working (device as target) and eclipse is throwing errors, so is logcat though May 08 20:04:59 what does -l do May 08 20:05:16 give you more info about the device May 08 20:05:22 any cm10 theme makers here? May 08 20:05:40 not in this channel May 08 20:05:43 Delvien, #android-root May 08 20:06:01 It shows up still May 08 20:06:03 cm have their own channel on freenode, i think #cyanogen or #cyanogenmod May 08 20:06:15 pfn its not a root question, its a dev question. May 08 20:06:24 themes are a root question May 08 20:06:36 or rom question May 08 20:06:37 it says SH258VP04261 device May 08 20:06:41 that makes little sense. but ok May 08 20:06:56 and i have also tried restarting the phone and turning debugging on and off and plugging it in and out many times May 08 20:07:18 i cant really get it to work for emulator either, but i never had much luck with the emulator anyway, it was always slow May 08 20:07:44 x86 image + intelhaxm = fast May 08 20:07:48 faster than on-device May 08 20:08:18 mishugana, #1 rule of development, or asking for help for anything, "doesn't work" is the most useless problem description May 08 20:08:33 you waste everyone's time by saying it "doesn't work" May 08 20:09:26 oops sorry May 08 20:10:07 what should I try to do, I will pastebin any error messages or describe what happens in that case May 08 20:10:42 describe what are doing, and the precise results observed May 08 20:11:13 and what your expectations were May 08 20:13:02 android.support.v4.app.NotificationCompat cannot be resolved? May 08 20:13:11 add android-support-v4.jar May 08 20:13:25 It's in there May 08 20:13:47 oh May 08 20:13:50 pfn: unit tests? May 08 20:13:50 some how it got removed May 08 20:14:07 Quacked, yes, test your own logic, not ask people to test for you May 08 20:14:13 jar mismatch * May 08 20:14:29 I tried, hehe May 08 20:14:55 I couldn't figure out where the problem is May 08 20:16:12 huh, what happened to com.android.sdklib.SdkConstants May 08 20:18:02 there are like...5 different ways to mimic C#'s regions it seems May 08 20:18:06 each IDE has its own way May 08 20:18:09 what a bummer May 08 20:18:41 how do you do that in java/eclipse? May 08 20:18:44 Ok May 08 20:18:46 oh, it moved into com.android May 08 20:18:56 I only found a way in eclipse that uses a plugin May 08 20:19:33 In eclipse i import the sample android-15 application Spinner May 08 20:19:36 NetBeans uses // // May 08 20:19:40 i get this: http://pastebin.com/KHU3cBgs May 08 20:19:45 nothing happens May 08 20:19:49 Jet Brains uses //region blah //endregion May 08 20:21:09 Logcat shows 3 fatal 11s when i try to compile May 08 20:22:24 so is #android-dev for rom developers, or apk too? May 08 20:23:24 * SimonVT looks at the topic May 08 20:23:30 Yep, still says what this channel is about May 08 20:26:04 simonVT im in a webclient, sadly it doesnt have a topic line :P May 08 20:26:13 Delvien: /topic May 08 20:28:09 I forgot how IRC is full of sarcastic neckbeards. My mistake :) May 08 20:28:23 Are there device specific emulators? May 08 20:28:29 specifically sony xperia t May 08 20:28:36 are values in dimens.xml substituted into xmls when the apk is built? May 08 20:28:42 no May 08 20:28:50 thx May 08 20:28:55 pfn was that to me or tnzr May 08 20:28:59 Korvin, May 08 20:29:04 Both May 08 20:29:15 hehe May 08 20:29:18 2 birds, 1 stone May 08 20:30:34 sony has some developer program where you can borrow a device from them. maybe you have to pay shipping though May 08 20:34:38 btw, x86 image + intelhaxm still very slow May 08 20:34:49 very slow? May 08 20:34:53 not really May 08 20:34:59 for me? May 08 20:35:05 are you actually running with haxm enabled? May 08 20:35:08 yes May 08 20:35:09 and an x86 image? May 08 20:35:11 yes May 08 20:35:22 what exactly are you doing that you are observing slowness? May 08 20:35:30 animation? enable host gpu May 08 20:35:44 im just observing general slowness May 08 20:35:56 you call it general slowness May 08 20:35:58 and i still have the issue that no app will work May 08 20:35:59 but it isn't May 08 20:36:09 why cant it just be general slowness? May 08 20:36:15 because it isn't May 08 20:36:23 what has caused you to rule that out? May 08 20:36:34 unless you're running a cpu benchmark and it's responding slower than devices or otherwise May 08 20:37:53 what you're describing as general slowness is probably graphics, and if so, then enable host gpu May 08 20:38:23 for me, the x86 image is running about as fast as current generation physical devices May 08 20:38:41 if it doesn't say haxm is enabled when starting the avd, then it isn't May 08 20:39:01 it says haxm is enabled when starting the avd. i wouldnt have said it was enabled if it werent May 08 20:39:13 you might just think it's enabled because you installed it May 08 20:39:21 in the sdk manager May 08 20:39:33 that is true, one might think that May 08 20:39:51 you're giving too little information to go on, so all I can do is assume the worst May 08 20:40:03 you know what happens when you assume May 08 20:40:15 *all I can do is assume* May 08 20:40:26 When you are assuming you are making an ass our of u and some guy named Ming May 08 20:40:26 because you're giving too little information to go on May 08 20:40:48 *out May 08 20:40:58 lol max May 08 20:41:45 host gpu enabled caused the program not to work May 08 20:42:08 *emulator May 08 20:42:37 wipe user data May 08 20:43:13 I've found that to be necessary when flipping the host gpu flag May 08 20:44:38 I really hope Google announced some new Android API's for a GroupedListAdapter May 08 20:44:52 announces at google IO* May 08 20:47:18 Wut? May 08 20:47:44 I have a dialog fragment popping up correctly now May 08 20:47:50 it contains just a WebView May 08 20:48:03 a WebWiew? May 08 20:48:08 is there any way I can 1.) set its url, and 2.) detect when the url changes...like when the user submits the form? May 08 20:48:12 Hm thanks pfn, That seemed to get it working, and the animations were certainly fast/er/ May 08 20:48:48 but the whole system was generally pretty slow, almost certainly because nothing will work unless i do less than 768 mb of ram May 08 20:49:14 and there is still the biggest problem of not being able to get a single program to work May 08 20:51:09 SimonVT: Android needs the equivalent of an NSIndexPath May 08 20:51:31 Doing all this adapter logic for views of different types is too much to handle May 08 20:52:06 hwrd|work: it was probably a joke, but years ago romain said something about rewriting ListView, or ListView 2.0. i think 2010 May 08 20:52:14 surely a joke ;) May 08 20:52:30 put for how much it used, its nototriously a pita May 08 20:52:34 I really hope that isn't a joke. I just think the Adapter stuff needs to be better. May 08 20:53:07 hwrd|work: there is a CWAC-MergeAdapter thing May 08 20:53:23 it has some limitations, like the # of adapters is set once and for all May 08 20:53:31 GridView is worse. it's like a forgotten version of listview May 08 20:54:17 g00s: I mean, MergeAdapter is fine. But the fact that Android calls getViewTypeCount once and doesn't have any distinction between different types, or views of different sizes etc etc…. also scrolltoindex sucking. May 08 20:54:37 I agree with your earlier sentiment, for the amount it's used its a pita May 08 20:55:20 it would be nice if google put more cool UI elements in the support library or something May 08 20:55:57 actually, it would be nice if there were better docs for the custom / advanced UIs. its 2013, no excuses now May 08 20:56:32 lol yeah ;) May 08 20:56:42 the docs for style is "read the code" May 08 20:56:46 or some non 80-style support for animations May 08 20:56:46 haha May 08 20:56:49 or MVVM May 08 20:57:08 or a google IDE instead of fscking eclipse May 08 20:57:27 monsti: intellij May 08 20:57:34 there's a custom views talk scheduled for IO. Romain Guy and Adam Powell. Should be pretty good. May 08 20:57:50 kevinb: yeah, looking forward to that May 08 20:57:56 wish it was all day long, not 40 minutes :D May 08 20:58:00 haha May 08 20:58:05 kevinb: I'm going to be that guy that asks about a grouped table view May 08 20:58:36 Does programmer who create service, could read the ID of sim Card ? May 08 20:58:47 Really I've been trying to follow PinnedHeaderListView… but its very difficult May 08 20:59:34 my biggest struggle, with android, is not Java, the tools, the undocumented APIS … is that the whole res/ system is an API for a machine not a human; and jumping into some complex code base (like any AOSP app … Calendar for example) … its VERY difficult to determine the flow or visual architecture of the thing May 08 20:59:35 pinned headers are really annoying May 08 21:00:06 its like i'm expected to juggle all thes alternate layouts and configurations in my head May 08 21:00:09 and flows May 08 21:00:45 i remember looking at the iosched 2010 source code and thinking - wow , this is beautiful ! May 08 21:00:55 so well done, so easy to deconstruct the app May 08 21:01:00 yeah i wish res was organized like icon.xhdpi.png rather than xhdpi/icon.png or something May 08 21:01:09 and allowed subdirectories May 08 21:01:17 then 2011 version came along, with fragments, and i could not tell, WTF was happening any more May 08 21:01:53 and of course its worse if you manage your fragments in code rather than layouts - it all becomes a bit inscrutable May 08 21:02:49 hrmmm I think maybe I can set an id on the webview widget, and onDialogCreate maybe I can find that view and cast it to a webview and then send it to the url I need it to go to? May 08 21:04:51 i guess we'll see the iosched 2013 app pretty soon :) May 08 21:06:18 To be fair, g00s, you don't exactly keep up with the android api.. You'll be confused no matter what they do May 08 21:06:45 i need to finish up and release my update before IO comes. I've seen crash reports from Android 4.3 so I know I'm in trouble if I don't get it out by then ;). May 08 21:07:14 Hmm, trying to build an existing app (the owncloud client sync) for 2.1, but ant is choking on Holo theming; other than changing the build target (which I've already done), what do I have to do in general to build for older targets? May 08 21:07:36 SimonVT: the only thing i didn't keep up with, is the ActionBar. my app is fully fragmentized all the way back to 2011. I also didn't create a tablet optimized app, i'm still not sure if the ROI is there or not May 08 21:08:05 i even used Loaders in 2011 :) May 08 21:08:30 but i'm not so up on the newer graphical idioms used in apps these days; since i don't have a newer phone May 08 21:08:42 i'm pretty limited to what is run on the x86 emu; and that doesn't even have email May 08 21:08:53 and calendar doesn't seem to work - maybe b/c no google apis ? May 08 21:09:07 still, on a droid1 May 08 21:09:11 why are you torturing yourself? May 08 21:09:16 i use the emu now May 08 21:09:18 you could have gotten 2 cheap phones on-contract by now May 08 21:09:30 g00s, how can you even develop good apps without a new phone O.o May 08 21:09:32 emus are good for eating and riding to the local pub, not much else May 08 21:09:37 i hope they announce the emu having BT support at I/O D: May 08 21:09:39 Mavrik, emu is good enough these days May 08 21:09:44 well not its not May 08 21:09:50 actually, it is May 08 21:09:53 its like a pedestrian doing car interface design May 08 21:09:59 the x86 emu is speedy enough May 08 21:10:03 x86 image is surprisingly good May 08 21:10:11 i don't make it very big tho May 08 21:10:11 you have no idea how those interfaces actually work in hands and what patterns users expect May 08 21:10:15 unless you're interfacing with hardware, or have specific requirements May 08 21:10:26 to *develop on* May 08 21:10:29 pfn, or you know… need to know modern UX trends to make good experience. May 08 21:10:48 there's plenty of ways to be up on modern UX other than developing on a phone all day long May 08 21:10:53 Mavrik: yeah, i agree. its a bit opaque not having a *real* phone right now. its a money thing. May 08 21:11:03 g00s get your shit in gear May 08 21:11:08 haha May 08 21:11:09 pfn, right :) May 08 21:11:11 get that mq crap ironed out and come out ot cali May 08 21:11:17 I can make you/us money May 08 21:11:18 mq? May 08 21:11:26 :) May 08 21:11:42 goos: do a kickstarter i bet you could raise enough for a newer phone ;p May 08 21:12:01 i'm going to be standing on the street corner soon … maybe that will work May 08 21:12:03 g00s - I'd be wiling to bet some of the ideas I've got could be funded by us govt May 08 21:12:32 or rather, granted to people we'd sell the shit to May 08 21:12:36 ron_frown: is this the pigeon with lasers ? May 08 21:12:42 yes May 08 21:12:45 yes it is May 08 21:12:50 thats a slam dunk man, go for it May 08 21:13:05 and they have to have neural implants so you can control them like a swarm May 08 21:13:59 pfn: does qicr support SSL ? May 08 21:14:13 pigeons too big, you should focus on cockroaches May 08 21:14:33 Hey guys. How do I set the url of my webview widget? May 08 21:14:59 i tune out anything about webview,its terrible May 08 21:15:14 well, was May 08 21:15:40 I think I have to use it :( May 08 21:16:12 hmmmm my dialog is popping up with a webview widget in it...but the dialog is very thing May 08 21:16:15 *thin May 08 21:16:20 do I need to set a fixed height on it or something May 08 21:16:44 ProgramMax, em… that's right there on 3rd paragraf of WebView doc -_- May 08 21:16:53 huh, Pixelmator 2.2 has more vector stuff. now i wonder what is better for making my app icons; PixelMator / Sketch / Inkscape May 08 21:17:41 lasserix: cockroaches have power density and dissipation problems May 08 21:18:09 one guy comments on the proliferation of image editors for OS X is because of Core Image, and Windows doesn't have anything like that. See what happens when the OS has great apis ... May 08 21:18:31 p_l|omoikane: yeah , but they can survive anything :| May 08 21:18:58 g00s, hmm, that seems more like an observation bias :) May 08 21:19:08 possibly May 08 21:19:14 I think the real reason is quite different May 08 21:19:39 Pixelmator, Acorn, Sketch, etc May 08 21:19:43 Paint.net … can't remember other win drawing apps in that space May 08 21:20:13 g00s, PSP? Corel stuff? GIMP? Adobe stuff? There was even an attempt by Microsoft :) May 08 21:20:22 I think discoverability is bigger issue - there just so many of windows apps that fall for some degree in image editing that you can't know of them all May 08 21:20:23 and that's without googling >( May 08 21:20:25 :) May 08 21:20:27 some are quite obscure May 08 21:20:32 mhm May 08 21:20:38 oh, I used Corel like 15 years ago, heh they are still around :D May 08 21:20:40 lots of obscure specific software for Windows May 08 21:20:46 like various Painter-like applications May 08 21:20:48 still use GIMP May 08 21:21:07 Adobe is lazy man, i think they are still using cocoa on OS X May 08 21:21:21 also, Mac enjoys certain following because AppleScript was what made poor GUI-based DTP program users automate anything May 08 21:21:22 they need to go down ;) May 08 21:21:27 g00s: you meant carbon May 08 21:21:33 yeah, duh May 08 21:21:36 * g00s headdesk May 08 21:24:48 i'm excluding big stuff like AutoDesk / Adobe, anything is possible when you have a huge team and charge thousands for your stuff; but PixelMator / Acorn … these apps are inexpensive and from very small teams leveraging a lot of the good APIS on OSX i think May 08 21:24:57 hrmmm so, Dialogs aren't supported before Android 3.0 so I have some detecting... boolean IsAndroid3_0OrLater = Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB; May 08 21:25:14 then if Dialogs are supported, I use them. If not, I just use a full screen fragment like normal May 08 21:25:18 older android has dialogs :| May 08 21:25:29 the docs say it is new to 3.0? May 08 21:25:33 maybe I misread it May 08 21:25:35 support library has dialogFragments May 08 21:25:42 ProgramMax, yeah, you're mixing Dialogs with DialogFragments May 08 21:25:47 oh May 08 21:25:51 Dialogs are in Android since… 1.0? :P May 08 21:25:52 Bird Blazer versus Pigeons with Lasers http://www.bird-x.com/laser-bird-control-pages-201.php May 08 21:26:04 I need DialogFragments May 08 21:26:09 I need a custom dialog May 08 21:26:13 with a webview in it May 08 21:26:26 I think that is more correct, right? May 08 21:26:34 ProgramMax: you may also try a regular activity with a webview themed as a dialog May 08 21:26:53 hrmm will look into that May 08 21:27:05 but anyway, right now I am focing it down the full screen activity path May 08 21:27:14 and it is setting the url correctly and navigating to it just fine May 08 21:27:19 but when I use my dialogfragment route May 08 21:27:28 it pops up a very thin dialog...like there is no height/width set May 08 21:27:33 not sure the correct way to set it May 08 21:27:47 sounds like maybe try putting any custom view in there first May 08 21:27:57 once you get that to work, put in the webview May 08 21:28:13 k May 08 21:28:25 never tried webview in dialog; kinda skeptical about that for some reason May 08 21:28:43 I really don't like the idea. But it is being forced down upon high May 08 21:28:55 to do our OAuth login and make it a consistent feel between all platforms May 08 21:29:01 just theme an activity as a dialog, nobody will notice :D May 08 21:29:03 rather than have a native-for-that-platform feel May 08 21:29:07 no matter what i try i cant get the javadoc tooltips to work again. how can i reset eclipse? May 08 21:29:33 mHide = false :D May 08 21:30:15 g00s: someone with more sanity will come to my rescue May 08 21:32:16 ProgramMax: you might be able to get away with new AlertDialog.Builder(this).setView(webView).show(); you might need to set layout params for the webview width/height May 08 21:32:59 hrmmm I tried some other premade layout thing I have May 08 21:33:09 ProgramMax: I've done AlertDialog with a view pager that hosts webviews (this an about dialog with pages for about, translators and open source licensing, it's really simple). May 08 21:33:11 one of them is basically a header bar with a list May 08 21:33:31 the list I guess grows as needed? Because it displayed the header fine, but no list items (it was empty) May 08 21:33:48 ProgramMax does the webview size itself well enough? it may be the problem that the webview has almost no w/h because it is not initially loaded (html) so the dialog around it is thin, so you have to find the screen size, then manually set the dialog to be like screensize(w,h)*.9 and have the webview fill the dialog May 08 21:33:56 I started with the alert dialog thing but it didn't seem to gray out the background, nor the back button going back May 08 21:34:04 I think the webview doesn't size itself, right May 08 21:35:34 so if the dialog is measuring it to size itself, it'll come back thin as you say May 08 21:35:42 so you have to set the w/h explicility in code May 08 21:35:58 kk...trying to figure out how to do that May 08 21:36:12 as a quick test just try match_parent May 08 21:36:20 there is a View.getHeight but no View.setHeight May 08 21:36:28 find the screen size, pick a factor to shrink it by, i think you can use layoutparams in oncreateview May 08 21:36:31 I can try match_parent, one sec May 08 21:37:05 there is no setHeight, you do it via in layout params May 08 21:37:41 match_parent was no good May 08 21:37:55 where do I set the layout params? May 08 21:38:30 how are you creating the dialog? AlertDialog.Builder? May 08 21:39:19 no alert dialog stuff May 08 21:39:28 http://developer.android.com/guide/topics/ui/dialogs.html May 08 21:39:40 the second to last code chunk there May 08 21:39:44 CustomDialogFragment May 08 21:40:48 ProgramMax I can't remember how to do it exactly but one way is to load an empy framelayout that contains the webview May 08 21:41:02 then do: (sorry for lines of code) May 08 21:41:17 final AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); View view = getActivity().getLayoutInflater().inflate(R.layout.dialog_widget_textcolor, null); builder.setView(view); May 08 21:41:36 and use LayoutParams on the framelayout to the defined w/h you want May 08 21:41:41 if you're using onCreateView in your DialogFragment then you can set the layout params there. i think just use a generic ViewGroup.LayoutParams May 08 21:41:43 all this goes in oncreatedialog May 08 21:42:06 view = ...inflate; view.setLayoutParams (new ViewGroup.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT); return view; May 08 21:42:36 kevinb: can you oncreatedialog and oncreateview ? May 08 21:42:59 IIRC the default implementation of onCreateDialog calls onCreateView May 08 21:43:08 ahh cool May 08 21:43:12 lasserix: You should use Dialog#getContext instead of getActivity.. Or Builder#getContext if api11+ May 08 21:43:19 I've got a problem to execute an AlarmManager task at boot time - it won't fire (standing to logcat and subsequent messages that never fire)... what's wrong? First part is the manifest file, second part the BroadcastReceiver: http://pastebin.com/eHY2aBEk May 08 21:43:32 SimonVT: ahh thanks for the point, that was from an old project May 08 21:44:18 and this is the method being called: http://pastebin.com/kaYyBe4u May 08 21:44:54 hey, I seem to be having an issue with wifi location updates on HTC devices. onLocationChanged doesn't seem to get called and getLastKnown is wrong (15+ minutes old). Has anyone experienced this? May 08 21:45:48 question about play store. if i publish an app, and people download it, then i unpublish that app... after some time i republish with a new apk... will the users who initially got it be able to receive updates? assuming same package name and keyfile May 08 21:47:38 Hey May 08 21:48:54 speakingcode-wor: yep May 08 21:51:22 SimonVT: cool, thanks. May 08 21:52:45 anyone using OSM in lieu of google maps APIs? May 08 21:53:27 any hint on my issue? May 08 21:53:50 startRepeatingTask works if called within the app's activity May 08 21:54:07 and the BroadcastReceiver never fires the log May 08 21:55:13 Your receiver is not exported May 08 21:55:39 Components outside your app can't invoke it May 08 21:56:14 SimonVT: is that executed outside the app? May 08 21:56:29 Well yeah, boot_completed is sent by the system May 08 21:56:46 SimonVT: thanks for the tip :) will try May 08 21:57:23 If you left out that property, it'd default to true and probably work just fine May 08 21:58:02 rebooting phone May 08 21:58:46 btw "am broadcast android.intent.action.BOOT_COMPLETED" makes the phone reboot May 08 21:59:00 hi, with remote bugging, is it possible to debug a browser js/dom/css in an emulator like with IOS on the simulator? May 08 21:59:19 SimonVT: thanks, works like a charm :) May 08 21:59:20 anybody here? May 08 21:59:45 Ilhami: just ask your question ^.^ May 08 22:01:12 lbod: are you talking about Chrome remote debugging? If so, you can run it on Android devices only May 08 22:01:17 lbod: https://developers.google.com/chrome-developer-tools/docs/remote-debugging May 08 22:01:22 I will ask later dude May 08 22:02:20 elegos: yeh i dont mean usb/device debugging. Actually debugging an android emulator (with a chrome browser) using chrome dev tools May 08 22:03:06 ios does that quite easily with the simulator though it's needed because that's all it is. May 08 22:03:22 (though on safari 6) May 08 22:05:16 lbod: the emulator is virtually connected via USB May 08 22:06:05 So you could sideload the chrome adk? May 08 22:06:15 elegos: is there docs on how to proxy connect the debugger? May 08 22:06:25 for an emulator May 08 22:08:37 hrmmm inside onCreateDialog I am getting the dialog's window and then setting that window's layout May 08 22:08:46 window.setLayout(500, 500); seems a tiny amount taller May 08 22:08:50 still not 500 pixels tall May 08 22:12:36 ProgramMax: could be the style you set or not set that shows title ? May 08 22:12:52 maybe May 08 22:13:48 ProgramMax what are you trying to do?= May 08 22:14:46 ProgramMax: I'm doing a dialog at the moment and needing control and blank canvas…so setting STYLE_NO_TITLE and STYLE_NORMAL May 08 22:15:05 I am trying to show a dialog fragment which contains a webview May 08 22:15:18 but when the dialog fragment shows up, it is not very tall May 08 22:15:30 I suspect the dialog fragment grows in height to match its container or something May 08 22:15:43 and the container itself only grows based on the minimum heights of its elements? May 08 22:15:48 so like a textbox might have a minimum height May 08 22:15:52 but the webview might not? May 08 22:17:15 dunno, why you using webview ? May 08 22:17:28 seems…. a bit … out of design context for an app May 08 22:19:08 I have to (not my choice, unless this really, truly cannot ever work) pop up a dialog that has a webview showing out website's login / signup May 08 22:19:25 the goal being to reuse the work that is already done and also to have a consistent, trustable feeling May 08 22:19:40 like "You are indeed logging into the website, not logging into some hacker's hacky thing" May 08 22:19:51 whether that is a good decision or not is not mine to make May 08 22:20:06 so I just need to pop up this dialog and have it present the website May 08 22:20:21 only for the login. Then when it gets redirected I hide the popup and return May 08 22:22:54 so given all that description, I hope this seems reasonable May 08 22:30:54 I'm trying now to do View test = inflater.inflate(blah blah); May 08 22:31:07 final LayoutParams params = test.getLayoutParams(); May 08 22:31:10 params.height = 100; May 08 22:31:16 test.setLayoutParams(params); May 08 22:31:21 however, params is null May 08 22:33:26 params = new LayoutParams(100, 100); May 08 22:33:31 interesting; Canonical is working on their own package manager for Ubuntu Phone May 08 22:33:43 inflating just the view won't create layout params. inflating it with a parent will May 08 22:33:55 seems like a bundle installer, everything gets chucked into the same directory May 08 22:34:11 hrmmm k May 08 22:34:55 hrmmm setting that does nothing...still a very narrow bar :( May 08 22:38:17 hrmmm so May 08 22:38:34 I added a TextView to this fragment May 08 22:38:41 textSize="24dp" May 08 22:38:52 suddenly the fragment is visible...with that height May 08 22:39:05 also the thin thing I've been seeing this whole time seems to be the title bar with not text set May 08 22:39:09 any way to remove that title bar? May 08 22:39:34 https://developers.google.com/appengine/docs/java/users/overview under "Authentication Options" it says an option is "An account on your Google Apps domain" Could someone elaborate on this, i have no idea what its referring to May 08 22:40:11 ProgramMax there is some method option to turn off the bar May 08 22:40:14 jug6ernaut_: if you have a domain that's managed by google apps (google.com/apps), this is a special type of Google Account May 08 22:40:49 instead of using that TextView use a framelayout at the root of your dialog xml to inflate, and find it by id then set layout params on teh framelayout May 08 22:40:55 General question regarding super: When overriding a superclass, does it matter if my custom code is called before or after I override the superclass? In my case I'm overriding dispatchDraw for a MapView object to ensure the map does not render beyond a particular zoom level. My instinct is to code my limitor before calling super.dispatchDraw, but I'm unclear if it matters. Testing both before and after doesn't appear to make a difference to the UX. May 08 22:40:56 it will take up the right amount of space May 08 22:41:03 Estel but basically its just another type of google account? May 08 22:41:09 can you make fragments inside fragments?? May 08 22:41:11 SimonVT: exporting the broadcast receiver works - it fires, but the service isn't launched. This is the log: http://pastebin.com/tLxaLsDB May 08 22:41:28 SimonVT: I tried to set "exported" to the service, too, without making it work May 08 22:41:31 jug6ernaut_: yes. They make the distinction because there are some different restrictions that apply to apps accounts, I think May 08 22:41:44 Illhami: that was added in 4.2 i believe but it it means your ui could be simplified May 08 22:41:48 Estel ah ok, thanks. May 08 22:42:15 lasserix May 08 22:42:19 got the title bar gone May 08 22:42:20 let me tell you about my plan May 08 22:44:24 anyone here used Parse's facebook login? May 08 22:45:03 or understands in facebook sessions etc May 08 22:45:44 oh god May 08 22:45:48 I found the most ghetto solution May 08 22:46:03 I have a textview with android:textSize="240dp" May 08 22:46:06 and android:text="" May 08 22:46:09 and that gives me height May 08 22:46:31 ProgramMax just use a viewgroup at the root of the xml May 08 22:46:46 What does that do? May 08 22:48:39 what you're trying to do but without being hackish? May 08 22:48:58 I'm not sure I understand how it accomplishes that May 08 22:48:59 use a viewgroup at the root (like a framelayout or whatever) then set its dimensions May 08 22:49:07 with the layout params May 08 22:49:11 oh k May 08 22:49:13 will try that May 08 22:57:34 hrmmm so I can make my fragment extent LinearLayout May 08 22:57:40 then have the xml reference that fragment May 08 22:58:03 then you are saying inside the onCreateView or something, set the layout params? May 08 23:03:19 oh hey...setting the height/width of the WebView works just fine as soon as I use wrap_content and its contents load May 08 23:04:08 ProgramMax: have you thought of ditching webview ? and just wrapping what it does using a nice standard android UI ? May 08 23:04:48 That would 1.) involve a lot of work since there is a lot that happens on the webpage, 2.) not be something we could update server-side, and 3.) go against the dictated ruling May 08 23:04:58 but I have, yes May 08 23:05:03 there is a back door we made available May 08 23:05:12 in case the platform doesn't have a webview-type-thing May 08 23:05:20 well I assume it's a login and password ? May 08 23:05:26 but I was basically told not to use it unless I really cannot do otherwise May 08 23:05:29 yeah May 08 23:05:37 and also a create account May 08 23:05:42 read ToS (which can change) May 08 23:05:46 ok May 08 23:05:50 there is a lot there May 08 23:05:50 all of that is fine May 08 23:06:00 3 elements to parse/account May 08 23:06:07 in a nice native android UI May 08 23:06:19 just a thought and what I would choose …. but thats me May 08 23:06:25 I would choose it too May 08 23:06:28 I started down that path May 08 23:06:31 and was told not to May 08 23:12:54 Is anyone familiar with the MediaExtractor classes? Anyone know how I can provide a custom data source (really just a byte buffer managed by myself) as the MediaExtractor datasource? May 08 23:19:48 yey, made another content provide. i /feel/ so productive copying / pasting hundreds of lines of code ! May 08 23:22:57 i'm surprised nobody has made a nice DSL / modeling tool to gen all that stuff yet May 08 23:23:31 StingRay_: pixelmator 2.2 came out with new vector-y thingies May 08 23:23:45 yeah dont use May 08 23:23:50 as in I dont use May 08 23:23:59 but I now have that sketch May 08 23:28:44 g00s: single window ? May 08 23:29:13 funkbox_: what single window ? May 08 23:29:28 g00s: does it have a single window mode where it doesn't create like 30 tool windows May 08 23:29:50 oh, its kinda like Ps like that i guess with palettes everywhere May 08 23:30:30 not sure if they are dockable May 08 23:33:51 Hey, the menu in sherlock has a background, how can I make the background transparent? May 08 23:34:11 the overflow menu ? May 08 23:34:30 I think so? May 08 23:34:36 I'm creating it with menuinflater May 08 23:34:48 Not the dropdown menu itself, just the button May 08 23:34:53 with the three vertical dots May 08 23:35:00 why would you make it transparent May 08 23:35:53 I have a custom view for my actionbar, previously the overflow menu button either had a transparent background or the same background as the custom view May 08 23:35:58 pretty sure it's the former May 08 23:36:20 when I installed sherlock, I had to use the sherlock light theme, and now the buttons background is solid gray May 08 23:36:34 so it looks funky with my blue top bar background May 08 23:44:18 In android developer there is this = Note: In some cases, the Android system will show your action bar tabs as a drop-down list in order to ensure the best fit in the action bar. May 08 23:44:24 is there a way to avoid this ? May 08 23:45:05 you can split the action bar May 08 23:45:15 some of it will show on the top May 08 23:45:19 the rest on the bottom... May 08 23:45:37 if you enable it, android wil do it automatically, depending on the widht of the screen May 08 23:46:07 The way to avoid this is to not use action bar tabs May 08 23:53:20 For an app I'm working on i want to have a user login system. What is the best way to go about this? Everything i can fine is stupidly complicated, oauth, opened ect. May 09 00:02:07 jug6ernaut_, OAuth 2.0 is pretty much the best right now May 09 00:02:11 not really that complicated May 09 00:02:19 and fits nicely with Androids AccountManager May 09 00:03:28 Mavrik any examples you can point me to? May 09 00:03:46 uh. May 09 00:03:50 depends on what your backend is May 09 00:03:59 right now looking at app engine May 09 00:05:24 client side guide is here: http://developer.android.com/training/id-auth/index.html May 09 00:05:42 afaik you also have java libs for GAE that make this process pretty painless :) May 09 00:06:41 that would be awesome, bc everything I've seen is painful xD May 09 00:07:39 At oscon, intel was showing off some not horribly slow android emulator May 09 00:07:45 is that released? May 09 00:07:58 Korvin, x86 android images are available for awhile now May 09 00:08:04 they can be faster than devices :) May 09 00:08:10 especially with GPU accel on May 09 00:08:22 where is the downside? May 09 00:08:23 idk about that :P May 09 00:08:29 maybe i have a crappy gpu May 09 00:08:34 a hot device May 09 00:08:34 Korvin, um, in SDK Manager :) May 09 00:08:43 not the download May 09 00:08:45 the downside haha May 09 00:08:50 no cons? May 09 00:08:51 Korvin, downside? May 09 00:08:59 the x86 images dont have Google APIs May 09 00:09:01 i told you May 09 00:09:06 you cant test x86 native libs May 09 00:09:06 a hot device lol May 09 00:09:07 aka computer May 09 00:09:10 (obviously) May 09 00:09:21 :/ May 09 00:09:22 Korvin, and GPU accel can be buggy at times especially in combination with surface view May 09 00:09:31 Korvin, sorry, cant test ARM native libs :D May 09 00:09:38 you need x86 versions of course :P May 09 00:09:43 lemme find a blog post I wrote on that May 09 00:09:50 https://www.virag.si/2012/10/speeding-up-android-emulator/ May 09 00:09:51 try it out. May 09 00:10:17 haxm is the best May 09 00:10:36 yeah, and they actually fixed the kernel panic bug on OS X 10.8 ;) May 09 00:42:18 how do you detect if a device has a menu button May 09 00:45:42 canadiancow: maybe get the sys property and see the value of hw.mainkeys ? May 09 00:45:46 guessing btw May 09 00:46:05 maybe in build.prop May 09 00:50:37 hey jakewharton, why does retrofit not allow specifying path params with @Name and specifying an @SingleEntity object for the request body at the same time? May 09 00:50:42 or am i doing it wrong May 09 00:52:00 I'm going to clear that up tonight May 09 00:52:31 is it a misunderstanding on my part or a limitation of retrofit? May 09 00:52:38 what are you trying to do May 09 00:52:58 im trying to send an image to a url like /photos/{sha256} May 09 00:53:28 so the method looks like void upload(@Name String sha256, @SingleEntity TypedFile file) May 09 00:53:29 StingRay_, apparently it's ViewConfiguration.get(context).hasPermanentMenuKey() May 09 00:53:44 with the @PUT("/photos/{sha256}") annotation above it May 09 00:53:51 ooo…nice to know May 09 00:54:20 Ugh, I was just about to say that ;/ May 09 00:54:28 Way to ruin my moment, canadiancow May 09 00:54:56 blame evanc May 09 00:55:07 SimonVT, you coming to i/o? May 09 00:55:33 If you give me a ticket and pay for the flight May 09 00:55:40 So that's a no :p May 09 00:55:50 @PUT("/photos/{sha256}") foo(@Name("sha256") String sha, @SingleEntity TypedFile file) May 09 00:55:52 i'd pay for the flight, but i can't get you a ticket May 09 00:55:53 that should work May 09 00:55:58 haha May 09 00:57:18 I'm getting a `java.lang.IllegalStateException: Non-path params can only be used in multipart request` May 09 01:00:00 are you sure your annotation value is present in your path between { and }? May 09 01:03:52 this is my interface declaration https://gist.github.com/matthewmichihara/5544830 May 09 01:04:17 I wish endomondo would document how they try to figure out what music is playing on the device... all they say is "it only works with apps using MediaPlayer API" but I can't really find any API that would tell me what song is being played using mediaplayer May 09 01:04:21 tips? May 09 01:17:07 jakewharton yes i have the annotation value in between the '{}'s May 09 01:18:15 jakewharton lol is sha256 a reserved keyword or something? May 09 01:18:26 there are no reserved words May 09 01:18:32 i'll try later May 09 01:18:48 or you can submit a failing test case if oyu want May 09 01:19:43 yeah ill do that May 09 01:19:58 hmm i isuspect the 256 at the end of sha256 is causing this May 09 01:20:02 when i removed it the problem went away May 09 01:28:22 Hi May 09 01:31:09 http://stackoverflow.com/questions/16452880/use-bytebuffer-in-mediaextractor May 09 01:31:16 Halp! May 09 01:31:16 hi May 09 01:31:39 hwrd|work May 09 01:31:40 " I see here that there is a setDataSource(DataSource) method, but I am not sure how to access that since it is hidden. " May 09 01:31:43 wat do you mean by hidden May 09 01:31:46 @hid May 09 01:32:07 *its @hide, so it doesn't show up in the source May 09 01:32:11 or the docs May 09 01:33:09 there is no setDataSource method btw May 09 01:33:27 hwrd|work, https://developer.android.com/reference/android/os/ParcelFileDescriptor.html#createPipe() May 09 01:33:56 that will give you a FIFO with a filedescriptor. mediaextractor can use one end and toy can use the other May 09 01:34:02 *you May 09 01:34:59 shit May 09 01:35:01 that's brilliant May 09 01:35:12 (assuming it works after i try it) May 09 01:35:24 :) May 09 01:53:45 if an Activity requires certain information in the Intent Bundle in order to work, how should it deal with the case of that information not being present? May 09 01:54:14 with what I know of the platform, the best would seem to be redirecting to an error Activity to display an error message May 09 02:12:08 Android ImageView setimageuri sometimes causes exception due to stream not close. So it seems best bet is to get inputstream from uri and setInputStream? May 09 02:13:53 setImageUri is also synchronize and leads to jank. it makes sense for appwidgets but not much else. you can use BitmapFactory.decodeStream in a background thread to create the bitmap, then use setImageBitmap or create a BitmapDrawable yourself May 09 02:19:30 kevinb, Thanks. In such case of doing it in background which is the best choice? An AsyncTask or Thread. I guess both objects can only be used once but Thread with post(runnable) might be lightweight. What you think May 09 02:20:20 probably an asynctask. if you're doing this in a listview or something where you might be loading lots of images you might want a threadpool or some kind of task manager or something. but for basically one image just use an async task May 09 02:20:46 new Thread() is actually potentially more expensive than new AsyncTask() as spawning a thread has a fixed cost but asynctasks use an existing thread pool May 09 02:21:39 ok cool thanks May 09 02:51:23 ant install *was* installing an apk while the app is running (it was killing the app). but now, it's not May 09 02:58:27 any1 here have good experience w/ google accounts and oauth2 ? **** ENDING LOGGING AT Thu May 09 02:59:58 2013