**** BEGIN LOGGING AT Wed Nov 14 03:00:00 2012 Nov 14 03:04:36 I'm handle a custom URL scheme and I'm trying to make sure the intent gets handled by an existing instance of my activity. My current attempt is to use isTaskRoot() to detect if I'm in my own task, and if not, fire off another intent to my main activity, and finish() the current activity immediately. However this seems to move the new activity into the background… any ideas why that is? Nov 14 03:11:13 xastey: no problem Nov 14 03:33:45 anyone of u guys experinced when u select and drag or click the text in a xml starts to change around on u :/ Nov 14 03:33:47 so strange Nov 14 03:35:02 yes Nov 14 03:35:07 are you on the latest adt? Nov 14 03:35:19 i thought tor or xav said it was fixed Nov 14 03:37:47 I've got a lot of data to load when my app starts… it's a 2-3 second delay that i'm running in a thread via a handler. I thought I should show an animation during that time, but the first time the app is loaded the animation is extremely choppy. has anyone encountered that? Nov 14 03:41:15 if you do work on the Ui thread it will be choppy. also if you're creating/releasing a bunch of garbage, then the garbage collector can cause choppiness Nov 14 03:42:04 work on the UI thread like loading something from disk. garbage like if you're loading an image at full size, then scaling it down and need to free the original full size image before loading the next one. Nov 14 03:43:36 ok, so i've got my separate activity that's responsible for handling custom URLs (primarily from the browser). in onCreate() I call startActivity() with NEW_TASK and SINGLE_TOP to launch my MainActivity and then call finish(). This brings the existing task of the app into the foreground as desired, and calls onNewIntent() on the existing activity _but only if it's on top of the stack_. If there's another activity on top, it seems to simp Nov 14 03:46:24 i'm starting to think that having an app that consists of more than one activity is just asking for trouble... Nov 14 03:47:44 spifff, wat Nov 14 03:53:35 I'm using a BroadcastReceiver with requestLocationUpdates for periodic location updating, but I only really need one location update each time. Is there a way to accomplish this without requiring requestSingleUpdate? Nov 14 03:55:35 there is a lot of garbage collection going on… I'm parsing a file of json data… each 5 letter word in the dictionary and it's valid conversions for my game… Since I need that data, is there no way to prevent that animation then from being choppy? while the map populates? Nov 14 03:55:53 canadiancow: ? Nov 14 03:56:08 more than one activity... Nov 14 03:56:12 lol Nov 14 03:56:20 to be fair though, with fragments, you can do a lot in one activity Nov 14 03:57:31 it's annoying that the app has so little control over the task stack… If the intent could simply be delivered to the Application object, which could look at the current activities and do the right thing, live would be so easy Nov 14 03:57:55 but noo, the system has to try to be clever and everybody spend days and days working around 3 year old bugs Nov 14 03:58:25 any good cases for the nexus 4 yet? Nov 14 04:00:23 ahh that problem gone just update all the sdk stuff :P Nov 14 04:00:24 bliynd, i havent seen any Nov 14 04:00:27 and eclipse ;P Nov 14 04:01:13 canadiancow i was afraid of that, i havent seen anything either Nov 14 04:01:30 the bumpers are sold out too :( Nov 14 04:07:24 who was telling me about lenovo laptop recently Nov 14 04:08:11 so if I can't rely on onNewIntent working, the only workaround I can think of is storing the intent information in the Application object before resuming my task, and then in onResume() of every activity check if there is an intent stored in the application that I should be reacting to Nov 14 04:22:38 <\monster\> hi, I have a simple Fragment with a spinner, when a spinner is item is selected a new fragment replaces current one ..now when I hit back the previous fragment spinner onItemSelected gets called twice ..whats causing this? Nov 14 04:22:49 <\monster\> is that android trying to recreate the state? Nov 14 04:23:59 <\monster\> the first call is normal when spinner is created, I ignore this one, but the second call causes the spinner to trigger creation of the fragment I'm coming back from ..endless loop Nov 14 04:42:37 wow lol when complete update of sdk etc i got like 40 errors and warning :P Nov 14 04:42:38 lol Nov 14 04:45:30 JakeWharton, do you know if there is an online project using the menu sliding drawer you linked yesterday? Nov 14 04:50:03 JakeWharton_: oo, what sliding drawer did you link yesterday? :) (Been fighting w /it and am not thrilled w/ what I came up with) Nov 14 04:50:11 https://github.com/SimonVT/android-menudrawer Nov 14 04:52:04 lasserix: thanks Nov 14 04:52:15 lasserix: there's some samples in there; are they not good? Nov 14 04:54:38 Haha no I'm just an idiot Nov 14 04:55:02 I was up too late I guess, totally blanked on the fact samples existed. Nov 14 04:55:48 lasserix: heh Nov 14 04:55:59 lasserix: I'm too wiped out (andin themiddle of other stuff) to compile them to see how it performs Nov 14 04:56:01 but i'm intrigued Nov 14 04:57:18 its perfect if that's what you are looking for Nov 14 04:57:30 I am just trying to figure out a way to have a little tab on the side, so it is obvious it is there Nov 14 04:58:00 Yikes! 4.2 is surprisingly different from 4.1. Nov 14 04:58:08 offby1: really? Nov 14 04:58:32 yep Nov 14 04:58:38 how so? Nov 14 04:58:54 swiping down from the top of the screen, e.g., brings up a -very- different screen Nov 14 04:59:15 depending where you started swiping, you either see a 3x3 grid of settings-stuff ... Nov 14 04:59:20 nope, swiping down from the top-right gives a different screen Nov 14 04:59:23 ... or the usual stuff Nov 14 04:59:25 well, yes. Nov 14 04:59:30 That's what I was trying to say. Nov 14 04:59:44 I wonder if Google gets ideas from Cyanogen. Nov 14 05:00:13 probably, i'm willing to bet theres more of a few gooogle employees in here right now Nov 14 05:01:20 if that's the depth of difference, I'm not concerned Nov 14 05:01:58 they added this: http://developer.android.com/reference/android/os/UserManager.html#isUserAGoat() Nov 14 05:02:44 i have frequently though my code would be much simpler if i could just programmatically query if the user was a goat or not Nov 14 05:03:13 kevinb: to be fair, you've been able to test for monkey-ness forever Nov 14 05:03:16 lasserix: The normal method of indicating it is to set the 'up' arrow on your app icon in your action bar Nov 14 05:03:34 lasserix: which is a broken paradigm since it's inconsistent, but it's what G+ and YouTube do Nov 14 05:04:26 lasserix: if you want to start getting nutty, play "spot the shitty ui inconsistencies". The 'up' arrow in play goes up, the up arrow in G+ opens a sidebar that displaces the actionbar, and the up arrow in youtube makes a sidebar that DOESN'T displace the actionbar. Nov 14 05:05:45 Ahh well I am using it to hold the configuration buttons for an app widget, so I can put the preview in the content view, hence I want it to "stick" out a little on the side. When they click a config button, it'll pop up a dialog, close the drawer... All the navigation handled by the action bar independently (the drawer is JUST for the app widget config (at this point...)) Nov 14 05:06:06 Leeds: it's all I've noticed in two minutes of fiddling around. Nov 14 05:06:42 where I work, if you leave your computer unattended and unlocked, someone will send an email from it saying "I love goats". Nov 14 05:08:20 anyone willing to give some design tips? would it be a good idea to add a side pane for landscape on a phone? Nov 14 05:08:32 or would that look out of place with the notification bar? Nov 14 05:08:46 this is a Bible app I am working on Nov 14 05:09:50 not fixing that right now :P Nov 14 05:10:32 drey_fixingthing depends on what the side panel purpose is Nov 14 05:11:54 can someone help me read this stacktrace i don't get whats wrong i update sdk etc and now the app just crash's on me if anyone can point me where the problem might be it would be great thx in adv, --> http://pastebin.com/9fkEvZiY Nov 14 05:12:13 lasserix, it'll let you choose version, chapter, verse Nov 14 05:12:40 in portrait, it's gonna be in the action bar Nov 14 05:13:20 so essentially, the action bar turns into a side panel Nov 14 05:13:28 for normal screens id just do action bar to keep it consistent, for larger screens i would add the side panel Nov 14 05:14:03 EVX somewhere in your xml something is floating causing the exception Nov 14 05:14:26 lasserix, what i'm worried about is the text height becoming very small because of the action bar in landscape Nov 14 05:14:34 in what xml if i may ask.. Nov 14 05:14:40 i have so many :( Nov 14 05:14:58 crap should not have updated sdk and stuff :( Nov 14 05:15:09 EVX something your view pager is inflating Nov 14 05:16:11 frankdrey you can control that, just set a different height property in res*-land mode folder Nov 14 05:17:14 lasserix, that'll make the action bar thinner? Nov 14 05:17:47 which text are you refering too about the height? Nov 14 05:20:14 lasserix, mate could u please be more specific please.. Nov 14 05:21:04 Android support library v11. Time to update again. Nov 14 05:21:20 lasserix, http://i.imgur.com/vxiS8.png sorry about the lame mouse drawing skills :P Nov 14 05:21:21 rev. 11 I should say (includes v4, v11 and v13) Nov 14 05:21:57 so i fear that #3, the text is too vertically squished Nov 14 05:22:14 which is why i'm considering a side pane like in #2 Nov 14 05:22:27 Does anyone know of a changelog for the support library? (else I guess I'll look at git) Nov 14 05:22:46 frankdrey: i don't believe the action bar natively allows putting it on it's side like in (2), but the default launcher on the Nexus 7 does this (it's not an ActionBar though, it's a custom view) and i think early Google TV did this. for (3) an option would be to hide the action bar until the user taps the screen like the Play Books app does Nov 14 05:23:21 i see Nov 14 05:23:52 I guess I should go with hiding the action bar... Nov 14 05:24:51 alright, that's my decision for now :P if anything, i'll mess with that one later Nov 14 05:25:07 thanks kevinb and lasserix Nov 14 05:25:41 yay, android-4.2_r1 is tagged Nov 14 05:26:00 evx no idea sorry Nov 14 05:26:52 it started when i updated sdk and stuff so maybe the code needs changing or something but not getting any problems so i don't know awwwww man :'( Nov 14 05:27:22 EVX: if you really think you haven't changed anything except the SDK try cleaning the project and rebuilding. you can get weird resource errors if things get out of sync. Also clean any library projects you have (if any) Nov 14 05:35:50 I've got robolectric working with ant and testing a modern android project with several android libs!! :) Nov 14 05:35:59 no maven! nada! Nov 14 05:36:55 http://developer.android.com/reference/android/service/dreams/DreamService.html Nov 14 05:37:02 hmmm, i wonder what this does Nov 14 05:37:09 DreamService? haha Nov 14 05:37:14 Screensavers Nov 14 05:37:23 mrenouf: ah, neat Nov 14 05:37:24 "Dreams" was the original name Nov 14 05:37:31 'Extend this class to implement a custom Dream (displayed to the user as a "Sleep Mode"). ' Nov 14 05:37:44 Now called "Daydream" Nov 14 05:37:59 live wallpaper wrapper? Nov 14 05:38:14 lasserix: 'Dreams are interactive screensavers launched when a charging device is idle, or docked in a desk dock. Dreams provide another modality for apps to express themselves, tailored for an exhibition/lean-back experience.' Nov 14 05:38:18 acording to the docs Nov 14 05:38:26 it's basically full screen live wallpaper that shows when the phone is docked and/or charging, with nothing else showing Nov 14 05:38:30 clever: um, where's the dropdown so I can change to api 17? Nov 14 05:38:34 cool Nov 14 05:38:35 I get a popup Nov 14 05:38:43 tdignan_: top left corner Nov 14 05:38:52 guess it has to do with the R pack Nov 14 05:38:52 ah man they hid that good Nov 14 05:38:59 it used to be more obvious when it was less stylish Nov 14 05:39:00 Think "expensive LCD photo frame"... but you can do obviously tons more than that Nov 14 05:39:03 it wan't me to start using it or so Nov 14 05:39:07 i just noticed api 17 myself, so i looked for changes Nov 14 05:39:08 awww don't get it :P Nov 14 05:39:15 mrenouf: except it can be fully interactive, unlike live wallpapers Nov 14 05:39:23 Howdy Nov 14 05:39:41 Leeds, wallpapers can respond to touch. but yeah, agree. The Currents app has a nice one Nov 14 05:39:45 ah so a Dream is a screensaver. Google is quite the master of rebranding, eh? Nov 14 05:39:48 Leeds: the live wallpaper i have can yeah, what mrenouf said Nov 14 05:39:52 Google Docs -> Google Drive Nov 14 05:40:01 Screen saver -> DreamService Nov 14 05:40:05 Android -> Dream ? you obviously miss the reference Nov 14 05:40:13 it's a great name Nov 14 05:40:21 I don't see when I said it wasn't Nov 14 05:40:26 Are they available already? Nov 14 05:40:27 I was complementing their choice Nov 14 05:40:43 sorry, interpreted as sarcastic ;-) Nov 14 05:40:47 I'm really hoping to use Eclipse instead of Xcode at work, but we've everything setup to compile with Xcode (iOS and Android development using a homebrew C++ engine). I've installed Eclipse and the Android plugins on my work Mac and now I'm trying to figure out how I can get at building our project. It finds the project if I "Create Android project from existing source" but doesn't actually bring in the Nov 14 05:40:49 CPP files and doesn't allow me to build. Can I load the project files based on the Android.mk files in the project? What's the best way to approach this? Nov 14 05:41:10 mrenouf: for future ref, i'm never sarcastic. it's a common misconception people make about me Nov 14 05:41:15 We generally just compile Android using a build script. Nov 14 05:41:30 lasserix: 4.2 comes with a couple of samples... unlikely to be many in the market yet, 12 hours after SDK support was released Nov 14 05:42:04 Leeds: hmm, seems they removed this in api 17! public final deprecated class CacheManager Nov 14 05:42:17 oh but you'd need a 4.2 device, wonder when the nexus will get the upgrade Nov 14 05:42:41 lasserix: i wonder when the galaxy S3 would get an official upgrade to 17 Nov 14 05:42:51 I'm trying to make a View type that remembers some values when the screen rotates and it looks like the view gets completely remade. Is there a 'right' way of saving values between layouts like that? Nov 14 05:42:58 lasserix: N7 and gnex OTA is in progress, you can pull it from Google and install manually if you want/need Nov 14 05:43:09 ahh thanks! Nov 14 05:43:55 is there a special attribute that makes TextView scrollable? Nov 14 05:44:10 Leeds: any idea why LocationProvider was changed from abstract to an actual class? Nov 14 05:44:10 clever: it was apparently deprecated in API 11 Nov 14 05:44:12 frank you drop it into a scrollview Nov 14 05:44:43 absolutely no idea about LocationProvider Nov 14 05:45:06 Leeds: was just skimming thru a diff of api 16 and 17 Nov 14 05:45:24 lasserix, so far that's made my text disappear :P Nov 14 05:46:48 My tablet -- it's daydreaming! It used to be able to focus, but now ... Nov 14 05:47:19 frankdrey: http://pastebin.com/Qqf9fwhn Nov 14 05:47:39 the extra linearlayout is because I had more textviews in there Nov 14 05:48:27 ah, lasserix, thanks, yeah...i needed to put the TextView inside ScrollView. ScrollView doesn't show text xD Nov 14 05:49:18 im very new to this xD Nov 14 05:49:49 works beautifully. Nov 14 05:50:08 now for the next question :P is there a way to keep track of the position of the scrolling? Nov 14 05:50:23 i want the verse box to update dynamically to show the range of verses being displayed Nov 14 05:50:49 i think there is onscrollchangedlistener Nov 14 05:52:18 i see that for listview Nov 14 05:52:22 maybe i should use a listview Nov 14 05:52:26 split it up into verses Nov 14 05:52:45 Hello! Nov 14 05:52:53 I have one question Nov 14 05:53:00 just one? Nov 14 05:53:19 yes, listview will be perfect :) firstVisibleItem, visibleItemCount Nov 14 05:54:05 I need call getSupportFragmentManager() from my class Nov 14 05:54:08 It extends from RelativeLayout Nov 14 05:54:13 no you dont Nov 14 05:54:15 that's poor design Nov 14 05:55:25 canadiancow: Thanks Nov 14 06:01:21 ooh, yay, getting into fun stuff now xD need to figure out a way to convert this bible text file into a useful file :P Nov 14 06:01:52 frankdrey you probably want to use a sqlite database Nov 14 06:01:52 God bless 'em, they added a countdown timer to the clock app. Now it's almost as nice as the original iPhone! Nov 14 06:01:53 * offby1 glances around nervously. Nov 14 06:02:12 anyone know how to configure the jdk intellij compiles with? i have an issue here. on the command line, I've configured JAVA_HOME to point at jdk1.6.0_37 and configured my PATH to reference those binaries as well. I would expect intellij to use this. But, I don't think it is. Because when I build with intellij I get a different class version: 51 vs 50. Nov 14 06:02:26 I believe I have compiler compliance set to 1.6 in both cases Nov 14 06:03:48 tdignan_, it's a project level setting Nov 14 06:04:03 ah Nov 14 06:05:13 gutano: project language level? I am almost certain that I have that set to the same when I'm building with ant. Nov 14 06:05:31 does scrollviews remember how far they are scrolled when the orientation changes? Nov 14 06:05:56 tdignan_, no get out of modules, use the "project" section Nov 14 06:05:56 you don't happen to know how to test whether I'm using 1.6 compiler compliance (as intellij calls it, 6.0 @Override in interfaces) with ant? I'm assuming I am, since my code compiles and doesn't blow up when it finds an @Override on an interface method. Nov 14 06:05:59 stupid question, i have a run() method and I have a HTTPGET in an Asynctask how can i make it so the run method executes the asynctask and then waits for a response and then continues to run? the run() method is only called once Nov 14 06:06:13 cconstantine, doesn't seem like it Nov 14 06:06:28 tdignan_, "Project SDK" Nov 14 06:06:42 frankdrey, :/ I'm attempting to make something of a 2d scrollview and I want it to remember where it was on layout change Nov 14 06:07:09 frankdrey, and I'd rather not force the parent Activity to remember it Nov 14 06:08:00 when running hardcore debug on my app the breakingpoints are ->http://pastebin.com/tgD0peAa && http://pastebin.com/DxFJjGUK can anyone see something that could make stuff crash ???? (thx)! Nov 14 06:09:10 gutano: I don't think that's the setting I'm looking for. Nov 14 06:09:13 cconstantine, i don't know then. i'm new at this :P Nov 14 06:09:23 because, I'm building from ant within intellij Nov 14 06:09:30 and I'm not even building against android Nov 14 06:09:45 frankdrey, awe, :( maybe you can become an expert and teach me? ;) Nov 14 06:09:56 plus, does the android sdk provide a java compiler? I didn't think it did Nov 14 06:10:07 cconstantine, working on it xD Nov 14 06:10:13 w00t Nov 14 06:10:19 cconstantine, views have onSaveInstanceState too Nov 14 06:10:25 but it's a pain to implement Nov 14 06:10:28 tdignan_, things you should have mentioned in your initial question... imho, building from cli is the only "legitimate" way Nov 14 06:10:38 gutano: well yeah -- that's what I'm doing Nov 14 06:10:39 alex_PP, I'm making a MapView replacement... I expect pain Nov 14 06:10:51 however I'd like if I could build in intellij and make the UI work for the tests Nov 14 06:11:05 I've got some real weird setup going on to run robolectric with ant. Nov 14 06:11:09 but it works Nov 14 06:11:27 however, there is one drawback Nov 14 06:11:52 If I build my main project in intellij, then I try to link to it from the command line ant build I have set up for my weird test project, I get a class version mismatch. Nov 14 06:12:04 the only way it works is if I manually rebuild the main project with ant as wel Nov 14 06:12:15 which takes up valuable time, because it's not that quick of a compile. Nov 14 06:14:59 any tipe to improve image download speed in apps other than running it in separate thread Nov 14 06:16:54 this makes no sense :( intellij must be building with 1.7 Nov 14 06:17:03 but why Nov 14 06:17:15 I'm really hoping to use Eclipse instead of Xcode at work, but we've everything setup to compile with Xcode (iOS and Android development using a homebrew C++ engine). I've installed Eclipse and the Android plugins on my work Mac and now I'm trying to figure out how I can get at building our project. It finds the project if I "Create Android project from existing source" but doesn't actually bring in the Nov 14 06:17:17 CPP files and doesn't allow me to build. Can I load the project files based on the Android.mk files in the project? What's the best way to approach this? Nov 14 06:17:21 We generally just compile Android using a build script. Nov 14 06:18:14 if you havent I would try installing eclipse cdt and seeing if that has any effect Nov 14 06:23:57 Loonacy, find some fast wifi? Nov 14 06:37:33 what's up canadiancow Nov 14 06:39:58 i would like to see canadiancow give an interview with Barbara Moo Nov 14 06:40:26 I'm crawling the top apps on Google Play. I haven't done this since July of last year. Nov 14 06:40:44 Ologn: what are your findings? Nov 14 06:42:04 g00s: Still crawling...I should get the results in 36 hours, if my crawl is allowed. I have an 11 second delay. Nov 14 06:44:08 How exactly are you doing that? Is it an android or desktop app? Did you write it? Nov 14 06:44:27 turb1ne247, Perl scripts mostly Nov 14 06:45:32 Im not too familiar with perl. Are you just running it off your webserver? Nov 14 06:46:09 turb1ne247, yes I'm running it off my web server. I could run it off my Ubuntu desktop as well, but I try these things in different places. Nov 14 06:46:57 Interesting Nov 14 06:47:10 what is it crawling for? Nov 14 06:47:28 if I alter something ina library project, do I have to do anything special for the effects to be changed in the project that uses the library as a dependency, or can I just build/run? Nov 14 06:48:08 gutano: i believe I see it now. It was in the box you referred me to, the thing is that JSDK and Android SDK are in the same dropdown, so that threw me off completely. Nov 14 06:48:09 speakingcode, it's looking for the top apps in terms of downloads. I sort by how many downloads it says, and then by how many ratings when the downloads are the same. Nov 14 06:48:24 gutano: i had 1.7 in there. Got rid of it and replaced with 1.6... Lets see if the class version is fixed now :) Nov 14 06:48:49 ah ok. google doesn't provide that? are you just crawling the page content, category by category? Nov 14 06:48:55 Ologn: did you write a script? Nov 14 06:49:02 tdignan_, yes. Nov 14 06:49:09 proprietary or.. :) Nov 14 06:49:19 share it for max street cred Nov 14 06:49:46 crawlers are fun Nov 14 06:49:54 tdignan_, yeah, that language level is just for highlighting/validation Nov 14 06:49:54 tdignan_, I'll send it to you if you want. It probably should be more automated. Nov 14 06:50:09 Ologn: sure Nov 14 06:50:26 tdignan_, honestly, I'm not sure how/if it relates to execution through ant Nov 14 06:51:02 gutano: I don't think it does. I think my issue was that my main project was being built according to intellij's config. My other project wasn't being built by intelij, I was just using the ant build runner Nov 14 06:51:09 so when they linked they had different class versions Nov 14 06:51:17 *nod* Nov 14 06:51:23 anyway thanks Nov 14 06:51:32 happy to hear you got it working =D Nov 14 06:51:46 cool idea http://www.gizmag.com/rapid-rehab-smart-insole/24999/ Nov 14 06:52:49 goos: they should make those for professional dancers Nov 14 06:53:02 lasserix: thats your startup :) Nov 14 06:53:21 anyone using vim for android dev? Nov 14 06:53:31 Leeds does Nov 14 06:53:39 i think he is the only one in the world Nov 14 06:53:39 i wouldn't mind for running actually, learn how to optomize pace and posture Nov 14 06:54:05 I would love to subcribe to Leeds mailing list :D Nov 14 06:54:05 lasserix: yeah; like fix your gait before going barefoot or something Nov 14 06:54:35 Titanius-Smith, I do sometimes Nov 14 06:55:34 users are a feature of 4.2, right? Nov 14 06:55:41 *user accounts/profiles Nov 14 06:56:06 yeah Nov 14 06:56:21 just need an easy way to delete all the apps i d/l just for "research purposes" Nov 14 06:56:23 i use vim Nov 14 06:57:00 speakingcode Ologn … you guys all sound embarrassed Nov 14 06:57:04 :D Nov 14 06:57:15 lasserix, http://ow.ly/fgXDl Nov 14 06:57:16 the reason i ask is that i can't find a way to get intelligent autocompletion (introspection etc etc) Nov 14 06:57:22 nah i'm just not the type to get terdy nerdy and brag about what editor i prefer Nov 14 06:57:34 and was planning on making a droiddraw version for android Nov 14 06:58:00 so i can code remotly and push changes and apks to my device from a crappy thinclient Nov 14 06:58:02 http://www.vim.org/scripts/script.php?script_id=1785 Nov 14 06:58:33 i use windows notepad to make android app Nov 14 06:58:43 bare metal bro Nov 14 06:58:46 sometimes i use ed Nov 14 06:58:49 ahh, I saw that and was wondering if it played nicely with android Nov 14 06:58:49 daydream seems like a great in-app purchase mechanism Nov 14 06:59:52 i vacillate between butterflies / cosmic rays and using a hex editor Nov 14 07:00:15 ed!? pfft your doing it wrong! xxd and cat is all you need my friend Nov 14 07:00:48 http://www.vim.org/scripts/script.php?script_id=1213 also this Titanius-Smith Nov 14 07:00:54 Titanius-Smith: maybe eclim Nov 14 07:01:54 eclipse is decent for android Nov 14 07:02:30 Does anyone know the best way to get a single update from requestLocationUpdates? Nov 14 07:02:37 are you guys playing with the new sdk? Nov 14 07:02:55 yeah...doing it on Visual Studio is awesome! Nov 14 07:03:23 :O Nov 14 07:03:53 Eclipse is just a bit clubsy Nov 14 07:04:04 even clumbsy Nov 14 07:05:05 Is renderscript basically an opengl wrapper? Nov 14 07:05:11 I love eclipse :) Nov 14 07:05:21 * Looney thinks that "just a bit" is bad choice Nov 14 07:05:23 ron_frown is going to love the nested fragments Nov 14 07:05:33 should be way too clumsy Nov 14 07:06:22 What makes you guys say that? Whaf issues have you had with eclipse? Nov 14 07:06:37 thet paintbrush doesn't make the artist Nov 14 07:06:40 all the problems i have had were with the adt :) Nov 14 07:06:41 Eclipse has always been slow and kinda buggy for me Nov 14 07:07:19 just not so realestae friendly Nov 14 07:07:19 real estate Nov 14 07:07:20 not to mention the millions of androids who internal circuits were cut from their chasis and offered to appease the gods of eclipse Nov 14 07:07:53 lasserix: the android emu god is far more harsh Nov 14 07:08:09 it demands baby droid as sacrifices Nov 14 07:08:49 Hahha Nov 14 07:10:16 "Shift work sleep disorder" Nov 14 07:10:18 Do other IDEs like visual studio have an android plugin/setup? Nov 14 07:10:26 lasserix: it's real man. Nov 14 07:10:32 not visual studio, lol Nov 14 07:10:43 Oh yeah I know, just didn't know it was a bonafid disorder Nov 14 07:10:46 thanks for the advice guys Nov 14 07:10:48 intellij mite Nov 14 07:10:57 turb1ne247: yes//..i do Android in Visual Studio Nov 14 07:10:59 lasserix: i have something way worse now: coder sleep disorder Nov 14 07:11:05 :) Nov 14 07:11:34 oh, i stand corrected Nov 14 07:12:04 lasserix: basically, disorders are fancy terms for things that society deems unacceptable. Some of them are more severe than others .... :) Nov 14 07:12:14 on the inverse, there are tools to write .net applications and run on anroid and iOS Nov 14 07:12:31 Is there a charge for visual studio? Nov 14 07:12:34 though the plug in i not so eay to get..it helps tohave a .EDU email addy Nov 14 07:12:38 depends on the version Nov 14 07:12:56 the visual stuido one is free Nov 14 07:13:04 knerd what state do you live in? Nov 14 07:13:19 Visual Studio is not free...though it helps again to have a .EDU email; addy\ Nov 14 07:13:21 tdignan_: some disorders are real disorders (i.e. they go against not just cultural makeup, but brain architecture, and are caused by various subsystems being broken) Nov 14 07:13:23 I live in Texas Nov 14 07:13:32 oh ok nm. thought u might be someonei know for a sec Nov 14 07:13:42 p_l|work: i agree Nov 14 07:13:57 p_l|work: but, society must deem such brain structure to be wrong Nov 14 07:14:14 I mean, in an alternate reality, they could look at it completely differently. Nov 14 07:14:14 i think gadgets exacerbate the sleep issues; blue light messes you up Nov 14 07:14:17 there's a great interview on the daily show about how pharm do cultural history research and tailor their marketing campaigns to match Nov 14 07:14:23 tdignan_: and belogn to different species Nov 14 07:14:29 *belong Nov 14 07:14:36 And vs doesnt run on linux. Is there a better android IDE for linux? Nov 14 07:14:45 p_l|work: that's an interesting point -- do veterinarians have a DSM-IV? Nov 14 07:14:53 turb1ne247 eclipse Nov 14 07:14:57 I don't know of one, but I'm certain animals could have disorders too Nov 14 07:15:26 tdignan_: afaik no, but animal psychology is less branched into "practical" among normal people Nov 14 07:15:29 animals have disorders yes Nov 14 07:15:37 they prescribe drugs for dogs and cats Nov 14 07:15:39 I already use eclipse, but is there anything better for linux? Nov 14 07:15:46 anti-depressants, anxiety medicines, et Nov 14 07:15:51 I find eclipse to be very good Nov 14 07:15:56 i assume you're talking about behavorial disorders Nov 14 07:15:59 I'd like some of its features in my VS :[ Nov 14 07:16:35 turb1ne247: Netbeans? ;-) Nov 14 07:16:39 I like eclipse too. But others were complaining. Nov 14 07:16:50 turb1ne247: consider IntelliJ Nov 14 07:16:52 oph yeah netbeans woops, forgot about that Nov 14 07:17:23 speakingcode: I think Borland makes Kylix? A pay for IDE..if it is still around Nov 14 07:17:28 Netbeans is nice too. Idk how well it integrates with android development though Nov 14 07:17:31 speakingcode: I know animals have disorders, I just don't know how *proper* psychiatric care, not hacks and hoaxes, is common there :) Nov 14 07:18:07 psychology had huge quality jump within last 100 years Nov 14 07:18:49 p_l|work ah, yeah, i would guess there is some legit psch on animals, but more in reseach and academia than in industry/market Nov 14 07:18:55 Kylix is dead/.ioh well Nov 14 07:19:27 speakingcode: I went through first two years of psychology major :) Nov 14 07:19:35 ah ok Nov 14 07:19:52 did you change or drop out? either way you wised up ;-p Nov 14 07:19:58 is there a way to grab a screenshot of the user's home screen background? Nov 14 07:20:38 speakingcode: Artificial Intelligence is my degree, and as such it required Introductory Psychology (i.e. first year of psychology degree), and I tried doing second year of psych as well :) Nov 14 07:20:52 psychology is the beauty school of upper ducation..."OPh what the hell do I do with my life? psychology!" Nov 14 07:20:57 (failed the second year psychology, though) Nov 14 07:21:04 ah. cool. i just dropped a free online course for nueral network machine leaning Nov 14 07:21:12 lasserix: WallpaperManager.getDrawable(), only works for static (not live) wallpapers though Nov 14 07:21:25 KNERD: nope, that's the source of most lost students in psych dept. They either wise up or drop out :) Nov 14 07:21:30 learning*.. got busy for a few weeks and fell way behind, i'll retakei t next go round Nov 14 07:21:35 p_l: did you ever read? http://www.goodreads.com/book/show/1980469.Artificial_Intelligence_Natural_Man Nov 14 07:21:38 if you just want your activity to appear on the wallpaper you can use Theme.Wallpaper though Nov 14 07:21:44 kevinb: thanks! Nov 14 07:21:52 ha-ha Nov 14 07:21:56 lasserix: hmm.. haven't seen that one Nov 14 07:22:38 ahh it's a little dated but the first few chapters are about an AI that a pysh developed that use basic defense mechanisms in a trainer for new pysch students to practice on Nov 14 07:22:52 KNERD: when I got my student's handbook for introductory psychology, after being rather sceptical about it... I spent few minutes laughing out loud about all those poor misguided fools who went from liberal arts track in HS to psychology degree track in uni :> Nov 14 07:23:32 buwhahaha! Nov 14 07:23:36 yeah i dunno, a ton of people take psychology but i don't see too many psychologists around, nuff said Nov 14 07:24:50 speakingcode: I wonder how many have their ideas crushed by modern's psych reliance on hardcore detailed math-based experiments :> Nov 14 07:25:19 haha yeah, same with sociology n statistics-- whoooops Nov 14 07:25:33 statistics? thats a great degree to have Nov 14 07:25:39 "you mean, surveying people at the mall isn't valid research anymore?!?" Nov 14 07:25:48 is there any way to get the current width and height of a resizable app widget? Nov 14 07:26:11 yeah ther is a Psy PHD who has a freaking tenure in a CS department! Nov 14 07:26:23 yeah statistics is great ni comp sci field right now Nov 14 07:26:25 Nate Silver might disagree with you there goos Nov 14 07:26:28 speakingcode: my favourite, so far, was a girl that fainted in one of first lectures for economy degree at a university in warsaw... because the wizened old professor started writing math formulas on blackboard Nov 14 07:26:54 is that on youtube? Nov 14 07:26:57 where have i heard nate silver before Nov 14 07:26:58 unfortunately not Nov 14 07:27:08 i don't like people who "don't get math" Nov 14 07:27:22 he predicted the election turn out in the US to within one state district, i believe: actually he has his degree in econ ;p Nov 14 07:27:32 you don'th ave to be an expert, but i mean, shit. modern society entirely operates on numbers Nov 14 07:27:35 KNERD: but the professor was so astonished the story spread like fire Nov 14 07:28:02 maybe she was pregnant ;-) Nov 14 07:28:17 KNERD: nope Nov 14 07:28:37 straight out of HS, and here it's not that common to forget contraception ;) Nov 14 07:30:03 is there a way to get the measured width/height of a remoteview or resizable app widget? Nov 14 07:31:07 why is instagram listview so super smooth? Nov 14 07:31:22 because its powered by hipsters Nov 14 07:31:41 ?? Nov 14 07:31:57 lasserix: on Android 4.1 there's an bundle that contains the min and max heights (depending on rotation) Nov 14 07:32:23 kevinb: yeah, I was looking for actual so I can appropiatly size my configuration's preview Nov 14 07:32:46 like If I can get it from the remoteviews I'll update the app widget db settings info Nov 14 07:33:41 yeah, sadly there is no way to get actual Nov 14 07:35:10 I guess that's okay I'll just put a rearview mirror disclaimer Nov 14 07:41:25 sudarshan: it's fueled by the anguish of apple hipsters Nov 14 07:42:40 no really instagram's listview algorithm is actually crowd sourced, a huge factory full of hipsters using abacusses to calculate interpolation... Nov 14 07:42:57 p_l|work: But i find it amazingly good on android. Something I couldn't reproduce with my app no matter how many optimizations i make. Nov 14 07:43:26 sudarshan: so grab instagram, dump it from device, run disassembler and learn from it? Nov 14 07:44:14 p_l|work: was being lazy :P will try this and come back in some minutes :) Nov 14 07:44:33 just check the laws on RE locally Nov 14 07:44:35 Would anybdoy be so kind to tell me how a google apps zip is built? Nov 14 07:44:44 http://www.guardian.co.uk/science/alexs-adventures-in-numberland/2012/oct/29/mathematics Nov 14 07:44:48 pclov3r: #android-root will know Nov 14 07:45:09 sudarshan: though there's just as well a chance that instagram people forgot to make you agree to an EULA with "no RE" clause :P Nov 14 07:46:50 No re? Just wondering, don't know much about agreements Nov 14 07:47:26 p_l|work: OK! I will mail the developers first ;) Let's see if anyone could help. What are my chances? Nov 14 07:48:54 Doesn't seem anybody can answer my question there or it's dead Nov 14 07:49:08 You think I could get away with 4.1 apps on 4.2 and then just update them? Nov 14 07:50:04 sudarshan: I'm in the comfortable condition that it's *always* legal for me to reverse engineer :) Nov 14 07:50:53 (well, *where* I am it is) Nov 14 07:52:31 p_l|work: how is it legal to RE? Nov 14 07:54:35 sudarshan: Polish copyright law asserts that RE is legal right of everyone. Nov 14 07:54:59 lasserix: looked up nate silver … cant recall why you mentioned him. did you read his new book ? Nov 14 07:55:07 of course, *copying* resulting code into your own is a copyright violation Nov 14 07:55:49 p_l|work: that's good :) I ll be polish for a while ;) Nov 14 07:55:54 goos: ahh no i haven't yet, but you said statistics is a "great" major Nov 14 07:56:08 :) Nov 14 07:58:38 i'm happy i upgraded to 16gb of ram lol Nov 14 07:58:53 his book looks interesting. i was also thinking about reading 'the joy of x' Nov 14 08:00:11 oh yeah euler's equation is mind boggling Nov 14 08:00:26 i love the new toString() for views in Android 4.2 . much more useful to output a view to logcat now Nov 14 08:00:46 com.android.launcher2.Workspace{419f70e0 V.EDH... ........ 0,0-720,1134 #7f0d0063 app:id/workspace} Nov 14 08:01:11 but to be honest haven't met too many pure mathematicians that are postively joyful people :P Nov 14 08:01:13 class, java id, size, and resource id and resource name Nov 14 08:01:42 i'm kinda surprised that google dropped the nexus s from this update already though. this is discouraging; ok a nexus gets you fast updates but not even google wants to support it for > 18 mos Nov 14 08:02:19 Mem: total 16068 used 15596 Nov 14 08:02:26 looks like aosp is caching most of my ram Nov 14 08:07:34 how can I search for a specific string in a package (eclipse) ? Nov 14 08:09:14 hm I think JB update might be ready for my phone here... Nov 14 08:09:57 how does i android? Nov 14 08:11:55 any hints for an eclipse UML tool? Nov 14 08:14:47 monsti: curious what you are using uml for :) Nov 14 08:17:09 g00s: stroking egos of architecture astronauts? Nov 14 08:17:22 ah, the architecture astronauts Nov 14 08:17:38 can't stand them, can't shoot them? ;) Nov 14 08:17:41 suffocating on abstractions in vacuums Nov 14 08:17:50 g00s: thx for your judgement, i really like it Nov 14 08:17:55 D Nov 14 08:18:02 ahahah uml Nov 14 08:18:11 monsti: do you know what p_l|work and i were referring to ? Nov 14 08:18:16 its a joel spolsky blog Nov 14 08:18:28 monsti: note that we didn't say you were the astronaut. Just that *someone* might force you to :) Nov 14 08:18:37 g00s: yeah :) Nov 14 08:18:39 anyhow, in all seriousness, what were you using UML for ? Nov 14 08:18:52 p_l|work: i am willing to pay 1000 euros for a decent UML tool Nov 14 08:18:56 i never found a good 'uml as a sketch' tool Nov 14 08:18:59 mind you UML actually is quite fine tool... as long as you never get the "bright" idea of matching 1:1 between code and class diagrams Nov 14 08:19:01 i remember being forced to do uml diagrams Nov 14 08:19:15 and being threatened with failing a class Nov 14 08:19:18 the best parts of UML are the stuff that isn't class diagrams Nov 14 08:19:30 p_l|work: i don't want paint 2.0 - i'd like to have full roundtrip - it's 2012 Nov 14 08:19:35 but things like process/interaction diagrams Nov 14 08:19:45 fuck, i remember the days when there was the booch notation, the rumbough notation, and i think peter coad had one ... Nov 14 08:19:46 monsti: get yourself MS Visio Nov 14 08:20:11 it's a good diagramming tool Nov 14 08:20:16 then there was ivar jacobson with his bubbles Nov 14 08:20:19 it's paint 2.0 Nov 14 08:20:23 and then came along OLC Nov 14 08:20:26 *OCL Nov 14 08:21:01 also ibm rational Nov 14 08:21:13 holy shit man, nate silver's book is > 500 pages Nov 14 08:21:14 its pretty neat Nov 14 08:21:25 fuck i hated the rational tools Nov 14 08:21:46 RUP stuff seems like a great way to swindle people out of money, most of the time Nov 14 08:21:48 clearcase, rose, soda, etc Nov 14 08:23:02 also if your feeling especially verbose dot-->graphviz :D Nov 14 08:23:22 sequence diagrams were useful; use cases were mostly text anyhow; class diagrams were less useful and could be reversed Nov 14 08:23:43 there is a DSL for specifying some diagrams Nov 14 08:24:51 i guess the statechart stuff is useful Nov 14 08:25:35 g00s: some people suggested using class diagrams... but without linking them to code. i.e. make class diagram "conceptual", but not 1:1 Nov 14 08:25:50 yeah, sounds like 'pragmatic modeling' Nov 14 08:25:59 or what fowler calls 'uml as sketch' Nov 14 08:26:26 though I agree that I wouldn't like Paint 2.0 - I'd like something akin to autocad coupled with graphviz ;) Nov 14 08:27:17 my last workplace was forcing everyone to get UML certification Nov 14 08:27:25 i was pushing back hard ... Nov 14 08:28:36 I think UML is still better than nothing. Or maybe I'm just scared of opening the pile of .docx I have as docs Nov 14 08:28:37 wow, that sucks Nov 14 08:32:16 p_l|work: uml is fine; its when its misapplied that causes problems … like anything else Nov 14 08:32:27 the spec did get pretty fucking complicated though Nov 14 08:32:41 i didn't understand it or the metamodel any more Nov 14 08:33:00 head to learn the subset needed through the popular uml books Nov 14 08:33:25 its way better than somebody giving you a booch diagram, and you only know OMT or something Nov 14 08:33:38 neither of those 2 are used any more btw :) Nov 14 08:34:35 ah yes, http://umlgraph.org/ Nov 14 08:36:06 what attribute does one have to override to change the selector used for a Button. I want to set as an application theme Nov 14 08:37:02 ali background points to a drawable with selector states pointing to renderable drawables Nov 14 08:37:09 Heya Nov 14 08:37:36 how are you fine folks on this beautiful, ass-freezing day Nov 14 08:38:03 It's 90°F here. Freezing? Nov 14 08:38:12 lasserix: how does that help. I need a application level theme Nov 14 08:38:12 Chris where are you? Nov 14 08:38:16 Kuala Lumpur. Nov 14 08:38:24 by background i mean button=background Nov 14 08:38:24 I want to translate the contents of a textview, ie kep the textview is the saem paosition but translate the contents. I could do this by extending textview and implementing the functionality, any other ideas? Nov 14 08:39:00 my phone is rooted but why can't i see the download dir were stuff is directly d/l to from pc Nov 14 08:39:02 8°C here, Bosnia Nov 14 08:39:02 you set up a reference attribute in attrs in res/values set background of button to ?attr= and then set the attribute value in your theme style to point to drawable Nov 14 08:39:52 450 °C on the surface of Mercury, stop whining. Nov 14 08:39:58 23°C, South Africa! :) Nov 14 08:40:06 Tee_Pee, you ever get those images to laod nicely in the listview? Nov 14 08:40:13 it will be 75 and sunny here :) Nov 14 08:40:19 hmm... drawable-ldpi / mdpi / hdpi /xhdpi exists, but is it possible to have other dpi specific resource folders? Nov 14 08:40:33 yeah I did Nov 14 08:41:01 lasserix: that would mean for every button I'd have to set the backgroud Nov 14 08:41:07 there's tvdpi and xxhdpi as well Nov 14 08:41:09 I pretty much solved any and all bugs related to image loading and displaying... currently fixing the layout, as the homescreen breaks on small screens Nov 14 08:41:11 lasserix: isnt there a more global approach Nov 14 08:41:11 and you can pretty much ignore ldpi Nov 14 08:41:33 oh in your theme style you find android:button style or something and that points to a style that uses button as parent and change the background Nov 14 08:41:42 Tee_Pee, could you post the source somewhere, i'd really like to see how you did it Nov 14 08:41:43 just google themeing all buttons on google Nov 14 08:41:47 could someone please answer my question Nov 14 08:41:57 i was reading last week that some new gingerbread phones which were LDPI were ooming with ABS :| Nov 14 08:42:01 reble goto android-root Nov 14 08:42:12 k Nov 14 08:42:13 the solution was to scale assets for LDPI Nov 14 08:42:31 j0hnsm1th - I've had several issues with loading imags nicely in several listviews... do you recall which issue we talked about? :< Nov 14 08:42:33 Or at least when? :D Nov 14 08:43:45 i can't get into android-root i get "Cannot join channel (+r) - you need to be identified with services" Nov 14 08:44:07 lasserix: https://gist.github.com/4071024 Nov 14 08:44:24 lasserix: still doesn't work. I see the holo blue color Nov 14 08:44:38 what does that meen? Nov 14 08:44:43 Tee_Pee, hehe it was a late last week I think, I had suggested you use a asynctask to load the images, I'm about to implement images in my listview now and i'd like to see how you went about it if possible Nov 14 08:45:00 aaah yes I recall now Nov 14 08:45:12 hold on Nov 14 08:45:40 i mean i'd just like to see what you did, from the viewholder to image loading :) it would make my work go a ton quicker Nov 14 08:47:00 I'll add some comments to the code so you can see what's going on Nov 14 08:47:39 how can i set the alpha of a view on froyo phones? Nov 14 08:47:50 ali_ dunno try setting the theme programatically? Nov 14 08:48:29 lasserix: I think its something to do with the alert dialog. The buttons there use some other theme I guess Nov 14 08:48:47 yeah dialogs use their own themes you have to set Nov 14 08:49:12 lasserix: any ideas where I can find these? Nov 14 08:49:19 same way you do a button Nov 14 08:49:36 err Nov 14 08:49:37 activity Nov 14 08:49:50 set up a theme, ovverride what you need to and then point the dialog to that theme Nov 14 08:50:28 lasserix: thanks Nov 14 08:50:36 lasserix: will try this Nov 14 08:51:33 lasserix: have you read any of Taleb's stuff ? Nov 14 08:52:25 ? Nov 14 08:52:36 you mentioned nate silver ... Nov 14 08:53:03 ahh too long ago with an math prof i recall that name Nov 14 08:53:08 http://www.amazon.com/Nassim-Nicholas-Taleb/e/B000APVZ7W/ref=ntt_athr_dp_pel_1 Nov 14 08:53:55 says that he used trading to attain independence and freedom from authority Nov 14 08:53:58 ha ha ha Nov 14 08:54:11 lol, only germans would put a purple swan on a book called 'the black swan' http://www.amazon.com/Schwarze-Schwan-Nassim-N-Taleb/dp/3446415688 Nov 14 08:54:39 j0hnsm1th - http://pastebin.com/kmWZsvAU Nov 14 08:54:39 lasserix: heh, some friends tried that … didnt work out in the end Nov 14 08:54:43 hope that makes sense Nov 14 08:54:48 I only copied the relevant code Nov 14 08:55:39 seems like you need an original philosophy that turns the system upside down before you can be a trading maverick (eg soros) Nov 14 08:56:03 that or some good algorithms and supercomputers ;p Nov 14 08:56:33 but i guess since you can rent computation from amazon all you need is the algorithsm Nov 14 08:57:37 So... I need to set an integer to a different value depending on whether the device is ldpi, mdpi, hdpi or xhdpi... do I need to do that programatically via a switch statement or is it possible to have e.g. values-ldpi, values-mdpi etc Nov 14 08:57:39 did yoy see? http://www.wired.com/threatlevel/2012/10/dkim-vulnerability-widespread/ Nov 14 08:57:58 with a different xml in them Nov 14 08:58:04 Tee_Pee: yeah, you can have values Nov 14 08:58:49 hi. in Admob, I have some understandings confusion . who is the publisher and who is the advertiser, if i want to put admob on my android application? Nov 14 08:59:16 i didn't know Admob works in china Nov 14 08:59:31 lasserix: yeah, saw that Nov 14 08:59:35 what should i select? Nov 14 09:00:04 i live in lebanon whomp Nov 14 09:01:15 Tee_Pee, thanks, i'm heading out for a bit now, i'll let you know how it goes and if i come up with some extra tweaks i'll pass it on. Nov 14 09:01:55 same difference Nov 14 09:05:47 hi Nov 14 09:05:57 can someone guide me how to use ADB sync Nov 14 09:06:15 i want to sync a folder from my PC to the /sdcard/ of the device Nov 14 09:06:36 but adb sync doesnt work Nov 14 09:13:32 gah! http://pixus-ru.blogspot.ru/2012/11/hack-any-skype-account-in-6-easy-steps.html Nov 14 09:18:32 alright time to make some prank calls from my relatives Nov 14 09:18:57 lasserix, hahaha! Nov 14 09:20:16 Hello, i've created a DialogFragment with a list and some buttons. when a button is clicked i respond with the onDialogPos/Neg functions. but how do i respond to a list selection ? Nov 14 09:21:02 exit Nov 14 09:21:12 lol oops Nov 14 09:21:33 hi anyone know anything about adb sync? Nov 14 09:22:54 praveenmarkandu: it probably doesn't do what you think it does Nov 14 09:24:58 it's meant for updating the OS to match a local build Nov 14 09:26:26 Leeds, not for data transfer aat all? Nov 14 09:26:38 Leeds, so i can only rely on adb push? Nov 14 09:26:45 it's easier Nov 14 09:27:20 hmmm but I have quite a lot of data, and I want to make it as efficient as possible by only transfering diffs Nov 14 09:27:41 what are you trying to transfer? Nov 14 09:27:49 movies. but a lot Nov 14 09:27:55 this is not for personal consumption Nov 14 09:28:03 building a solution for someone Nov 14 09:28:32 so this company loads a lot of movies on the tabs Nov 14 09:28:37 don't use adb for that Nov 14 09:28:41 the next month, he would update half of them. Nov 14 09:28:49 i have tried MTP Nov 14 09:28:56 but it is SLOW AS HELL Nov 14 09:29:19 on ubuntu anyway using the default mtp implementation Nov 14 09:30:25 Leeds, any suggestions? Nov 14 09:30:40 not off the top of my head Nov 14 09:31:56 ok. Thanks. Nov 14 09:33:40 Leeds, you know something about dialogs? Nov 14 09:34:21 viran you set up your click listener like you normally would Nov 14 09:35:06 lasserix: i need the info passed to the host activity. how does it get there like that? Nov 14 09:35:22 if i implement a onClick inside setItems Nov 14 09:35:35 i believe an interface Nov 14 09:35:44 like you would do for a regular fragment Nov 14 09:35:59 thanks i will try Nov 14 09:36:16 there's an example of how to do that on the dev site under fragments Nov 14 09:58:15 lasserix: I've been beating my head over this Nov 14 09:58:22 lasserix: still doesn't work https://gist.github.com/4071289 Nov 14 10:00:12 ali__, I think you need to use attributes for @styles references Nov 14 10:01:15 mastro: works for all other styles except for dialog buttons. I've done the same for action bar, list view etc etc Nov 14 10:01:43 mastro: I want all my dialogs to use one theme especially the buttons on the dialog Nov 14 10:03:01 ali i got to work, I have a style in themes for the dialog, but I set it in code Nov 14 10:04:04 ali__, what exactly doesn't work, it doesn't use your style? it crash? it give an error? Nov 14 10:04:43 mastro: it uses the default holo light style Nov 14 10:05:16 Hi folks, does anybody know where I can snag a copy of Broadcom's "wl" binary for devices that use the bcm43xx wifi chips? Nov 14 10:06:26 is there any way to manually tell roboguice 2.0 where the roboguice.xml file is? Nov 14 10:07:04 i'm building multiple applications in one project using maven, and it's having a conflict with roboguice Nov 14 10:07:30 roboguice doesn't seem to know where the roboguice.xml file is Nov 14 10:08:32 ali__, meaning it doesn't override the background I suppose... and I suppose other override you have for the themes are visible Nov 14 10:08:46 (in the same activity) Nov 14 10:09:51 http://stackoverflow.com/questions/13375357/android-usermanager-isuseragoat Nov 14 10:10:53 hmmf, i've got a java LinkedList that i'd like to save for the next run of the application. i'd like to avoid formatting it into some text and saving it. do you have any suggestion on how to do it? Nov 14 10:11:57 viran: a LinkedList of what? Nov 14 10:12:32 viran: if it's not too big, serialize as json (with jackson or gson, 2-3 lines to serialize) and put in sharedpreferences. Nov 14 10:12:47 the linked list holds object of one of my classes Nov 14 10:13:18 mastro: yup Nov 14 10:13:50 viran: is your class serializable? Nov 14 10:14:52 alibss: no Nov 14 10:14:54 viran: also, roughly how long is the list? hundreds? thousands? millions? See this page for some options: http://developer.android.com/guide/topics/data/data-storage.html Nov 14 10:15:14 it's about 5-10K byte size i assume Nov 14 10:16:46 i think i can make it impelement serializeable, thanks Nov 14 10:17:30 viran: be forewarned, java Serialization is a mess. every time I have tried to use Serializable I have eventually regretted it Nov 14 10:18:25 ali__, have you tried looking here? https://github.com/android/platform_frameworks_base/blob/master/core/res/res/layout/alert_dialog_holo.xml Nov 14 10:18:41 hello, I need a getting started link :) Nov 14 10:18:52 what to download etc Nov 14 10:19:00 ali__, maybe your style is used but overridden / covered by something else Nov 14 10:19:45 this is what i keep in the list: http://pastebin.com/uGD02S95 Nov 14 10:19:54 mastro: I wish there was an easier way to debug this Nov 14 10:20:00 squ: getting started on what? if you mean 'android development', head over to http://developer.android.com/ Nov 14 10:20:28 ali__, yes, me too.. when it comes to overriding themes you always need to reverse engeneer sources Nov 14 10:21:07 ali__: i usually break down and copy/paste before i manage to make overriding themes work right :( Nov 14 10:21:34 ali__, try putting android:visibility gone in your style and see if the button bar is gone... this will rule out the question: "does it read my style?" Nov 14 10:21:39 oh, i think i found it, needed to inject it manually on an Application class Nov 14 10:21:40 RoboGuice.setBaseApplicationInjector( Nov 14 10:21:40 this, Nov 14 10:21:41 RoboGuice.DEFAULT_STAGE, Nov 14 10:21:41 Modules.override(RoboGuice.newDefaultRoboModule(this)).with( Nov 14 10:21:41 new LobangClubModule())); Nov 14 10:21:50 for those who were wondering Nov 14 10:21:52 hey guys, why is only API14 included in the latest NDK?? Nov 14 10:22:04 input.h is missing a bunch of stuff :S which I see @ http://dxr.mozilla.org/mozilla-central/widget/gonk/libui/android_input.h.html Nov 14 10:22:13 mastro: the buttons are using my selector now but the background of the alert dialog has a weird background Nov 14 10:22:35 ali__, ohh... maybe you have to set a color hint too Nov 14 10:23:20 ali__, the default one is @null Nov 14 10:24:06 ali__, start by setting it @transparent to force it to process the actual color Nov 14 10:27:33 NDK / API > 14, impossible? Nov 14 10:27:56 mastro: it works!! Nov 14 10:28:05 mastro: 2 hours to set a bloody theme Nov 14 10:29:48 whatd you do ali? Nov 14 10:31:23 lasserix: https://gist.github.com/4071429 Nov 14 10:32:15 ahh Nov 14 10:33:45 ali__, @android:color/transparent ? Nov 14 10:34:19 mastro: without that it sets the background of the dialog as the selector Nov 14 10:34:26 mastro: why! I have no idea! Nov 14 10:34:37 ali__, I think you could have done the same thing by setting android:colorBackgroundCacheHint tu @transparent Nov 14 10:34:52 ali__, not sure tough Nov 14 10:35:05 mastro: I shall try Nov 14 10:35:08 How do I use AMotionEvent_getAxisValue with the NDK :| Nov 14 10:35:11 ali__, in the Theme.Holo.Light.Dialog Nov 14 10:35:15 why no API16 in the NDK? Nov 14 10:35:22 ali__, https://github.com/android/platform_frameworks_base/blob/master/core/res/res/values/themes.xml line 1717 Nov 14 10:35:57 ali__, if color hint works too then I think I know why windowBackground make it work :) Nov 14 10:36:11 mastro: doesnt work Nov 14 10:36:13 ali__, if not... I can't explain :D Nov 14 10:36:24 mastro: I'm happy its working :p Nov 14 10:38:56 ali__, weird anyway... :) Nov 14 10:40:05 ali__, windowBackground should be the background of the activity... dunno what's going on but I'll remember it if I have an issue like that Nov 14 10:40:28 mastro: fragment/activity Nov 14 10:43:40 ESphynx: sorry to say, if you want a nice c/c++ env, windows phone might be better for your eC porting work Nov 14 10:44:35 I'm a little perplexed. The Jelly Bean 4.2 overview talks about "Always-on VPN", but from what I can see, the API Level 17 has absolutely nothing about it. Nov 14 10:45:04 if I want to use eclipse for android-dev, should I take eclipse for mobile or java? Nov 14 10:45:09 g00s: I don't care much for Windows phone =) Nov 14 10:45:16 o/ Nov 14 10:45:27 g00s: I pulled the libandroid.so from the emulator, it had the function there :P Nov 14 10:45:32 Will the "Always-on VPN" be leveragable for developers using VpnService to create a vpn solution? Nov 14 10:46:11 modowd: jeff sharkey seems to know this area well, maybe you can ask him (jsharkey) Nov 14 10:46:39 g00s: Will do, thank you Nov 14 10:47:21 squ: iirc you just have to follow this http://developer.android.com/sdk/index.html Nov 14 10:47:59 ah I see Nov 14 10:50:11 hop, morning graph: http://imageshack.us/f/5/androiddevcurrent.png/ Nov 14 10:50:51 adq what is this? Nov 14 10:51:11 that is cool. i was thinking about some similar ideas Nov 14 10:52:47 but i think the graph is misleading Nov 14 10:53:20 also makes me feel slightly violated ;p Nov 14 10:53:48 heh, all it seems to be doing is taking who responds to who and making a graph Nov 14 10:54:05 but what this looks like, and is totally not, is an affinity group Nov 14 10:54:14 which would be far more interesting Nov 14 10:54:45 * g00s remembers his group dynamics class from years ago Nov 14 10:55:37 yep :-) i was thinking of forking/extending it based on few languages rules, resulting in red for ppl who "hates" each other, and "blue or green" for ppl who likes each other :-) Nov 14 10:55:56 adq how whould you guess that? Nov 14 10:56:05 NLP Nov 14 10:56:22 natural language processing would help, but maybe it's too complex for me ATM :) Nov 14 10:56:48 anyway, it's just fun, imho :-) hope you enjoyed it Nov 14 10:56:51 oh ok Nov 14 10:56:57 adq: :) Nov 14 10:57:30 adq: after a few weeks you will have something like... the universe :D Nov 14 10:57:38 but t'hat's fun Nov 14 10:57:45 s/t'h/th Nov 14 10:57:57 yeah but persistence factor is kinda low Nov 14 10:58:06 link will disappear after few days if nobody would be talking Nov 14 10:58:10 links* Nov 14 10:58:22 but it's an active chan, I'm not worried :D Nov 14 10:59:00 you should try this on a 'debat' chan links will explode Nov 14 10:59:51 it's based on highlight only? Nov 14 11:00:08 yes Nov 14 11:00:25 as said g00s, it can be misleading Nov 14 11:00:58 yes but it's a nice start Nov 14 11:00:59 it's not even directional (it could be) Nov 14 11:01:11 Does the emulator recognize mouse wheel events at all? Nov 14 11:01:33 no clue ESphynx Nov 14 11:01:35 TTYL! Nov 14 11:01:38 adq cool NLP project though! Nov 14 11:02:12 ESphynx: afaik scroll work only where menu exist (on launcher for example) Nov 14 11:02:30 s/work/works Nov 14 11:02:55 baptistem I'm trying to get some event notifications somehow :P Nov 14 11:03:00 (adq please don't include a stamina for spelling with counting s/*/* :p ) Nov 14 11:03:27 Oh :) I got something now! ! :) Nov 14 11:04:43 oh it's giving me a key Nov 14 11:06:16 if I have a checkbox inside a listview row where do I set up the click listener for the checkview? Nov 14 11:13:35 lasserix, look for it in stackoverflow website Nov 14 11:13:47 i bet you'll find it Nov 14 11:13:58 i mean i am sure Nov 14 11:17:14 does anyone else have problems with building a library project with the new sdk tools 21? Nov 14 11:28:03 hello all! anyone can help figure out how to make something like this https://lh5.ggpht.com/Gugd10iVzrj9UpiNb0b2RVBR_4tI0i5H2tfdORdr_u2i9nIVMS9EVVn4EgeHCYmPzg with news coming from my blog? Nov 14 11:30:05 vascobnunes: get your blog to publish what you want to display as rss or just plain xml or json, make an asynctask or a loader to grab it, put the results in a listview. That's it in a nutshell. Nov 14 11:30:57 Some details to overcome, like fetching the images and converting your blog's data to java objects, but that's the bottomline. Nov 14 11:32:31 HDroid: ok, so for a newbie... getting the blog to publish in rss - done; but make an asynctask or loader to grab it... hmm, harder... Nov 14 11:32:55 Plenty of examples on developer.android.com or various blogs. Nov 14 11:33:25 HDroid: i'll try to follow this Android Application Development Tutorial - 101 - Async Task class to load stuff Nov 14 11:33:33 in youtube Nov 14 11:37:05 i have the ic_launcher icon is not showing in the emulator. what could be the reason? Nov 14 11:37:10 so... fuck. Nov 14 11:37:21 anyone here had the pleasure of dealing with SSL Exceptions? Nov 14 11:37:41 not me yet Nov 14 11:38:06 anyone had the pleasure of working with http://loopj.com/android-async-http/ then? :p Nov 14 11:41:55 [2012-11-14 13:39:29 - MyListActivity] Unable to resolve target 'Google Inc.:Google APIs:8' Nov 14 11:42:16 I have a Handler to which I dispatch runnables. But now I need a way to dispatch a certain job synchronously. Is that possible? Nov 14 11:43:11 my app was designed for 2.2 platform, what should I click in eclipse to run it? Nov 14 11:43:34 HDroid: is this close? http://pastebin.com/NR7YazLX Nov 14 11:50:53 HDroid: is this close http://pastebin.com/RT9KSXLe ? Nov 14 11:51:18 where do I get android api level 2.2 avd? Nov 14 11:52:49 ho boi.... anyone here able to help me with a simple post request? Nov 14 11:53:30 I have everything set up, I got the URL, RequestParams, a responsehandler... it's just... how do I now... you know, fire the request? Nov 14 11:53:36 I have a DefaultHttpClient as well Nov 14 11:54:20 thing is... the execute comman doesn't take params, does it? Nov 14 11:54:55 command* Nov 14 11:57:19 vascobnunes: partially... though to populate the listview you have to use an adapter, either one of the built-in ones (which are pretty barebone 1 or 2 lines of text) or roll your own. Nov 14 11:58:04 vascobnunes: populating the listview (or rather, setting its adapter) is done in the onPostExecute method of the asynctask. Nov 14 11:58:43 HDroid: hmm, not sure I got it...but let me try Nov 14 12:01:20 Tee_Pee: client.execute(httpGet), where httpGet is an HttpGet object Nov 14 12:02:57 I have a text view with android:gravity set to bottom. and the text is aligned to the bottom but there's quite a lot of margin or padding from the actuall bottom of the TextView. i tried setting android:paddingBottom/android:layout_marginBottom to 0dp but that doesnt help. any idea if that's normal? Nov 14 12:07:39 HDroid: something like this: http://pastebin.com/KNSwhpVe ? Nov 14 12:08:46 On the right track Nov 14 12:09:10 Just don't use object for the header (what's that anyway?) Nov 14 12:09:38 HDroid: eclipse suggestions... Nov 14 12:09:51 what shall I use then? Nov 14 12:10:02 A.. view :) Nov 14 12:10:14 why doesn't eclipse handle constructors well? Nov 14 12:10:35 Assuming you want a header... you probably want to make it in XML and use a LayoutInflater to inflate it, then add it with addHeaderView like you're doing now. Nov 14 12:10:38 lasserix: huh? Nov 14 12:11:51 HDroid: how do I make it in xml? Nov 14 12:11:59 everytime I change a constructor (ie add a arg), where some instances are already using it, even if I change those instances, I have to right-click-> create constructor, swap over the constructor code and delete the old (changed) constructor Nov 14 12:13:12 vascobnunes: check the tutorials, lots of info available. Nov 14 12:14:32 HDroid: I will. Right now, with changing the header from Object to View gets me a fatal exception Nov 14 12:15:57 HDroid: i'm not doing anything with the URL, am I? Nov 14 12:16:20 Hello, is it possible to add a Button to a ListFragment? Nov 14 12:16:35 can someone fixme? websocket use udp or tcp? Nov 14 12:17:03 (or both) Nov 14 12:23:48 vascobnunes: no, you're not :) Nov 14 12:29:17 can I use HttpParams as a generic object to hold request parameters, casting it later to HttpPost or HttpGet depending on which request I need? Nov 14 12:29:24 Or do I need to use name / value pairs? Nov 14 12:31:52 Hey, this is my textView (brown) inside a horizontal scrollview (white), the gravity is set to bottom. http://s14.postimage.org/b7l0nm25r/Text_View.png is it possible to lose the bottom margin in the textview? Nov 14 12:31:54 Tee_Pee: You cannot cast HttpParams to HttpGet/Post Nov 14 12:32:11 gein - thought as much... so I need a List of name value pairs instead? Nov 14 12:32:25 or is there some other object I can use? Nov 14 12:32:26 Tee_Pee: Not sure what you want to do. But you could store parameters in List, yes Nov 14 12:32:36 Then later add them to a HttpPost or HttpGet before firing the request Nov 14 12:33:00 Tee_Pee: for instance: httpPost.setEntity(new UrlEncodedFormEntity(nameValuePairs)); Nov 14 12:33:11 I just want to have a generic type for parameters... Nov 14 12:33:15 Resources, The manifest file, and Assets from one app can be accessed by any other app on a normal unrooted device? Nov 14 12:33:16 so yeah, I guess I'll do the list. Nov 14 12:33:41 I guess List is quite generic Nov 14 12:33:50 It's not bound to a request in any way Nov 14 12:34:09 timroes, only in specific non recommanded case (like using the same signature iirc) Nov 14 12:34:47 adq: okay so i can consider the resources of an application as private stuff, and can safely store configuration files with passwords in there? Nov 14 12:35:02 safely, no. but private stuff yes :=) Nov 14 12:35:35 also remember to not publish your app as debuggable, otherwise it's possible to retrieve few things outside of the app scope Nov 14 12:35:57 is there any better place to store private configuration files inside an app, but outside the code :) Nov 14 12:36:12 configuration file must be readable at runtime Nov 14 12:36:41 best would be that you use authtoken mecanisms if "on the other side" it's compatible/supported Nov 14 12:36:50 so no need of login/password credential store on your device Nov 14 12:37:12 yeah I dont really want to store user/password files in it Nov 14 12:37:17 Anyone know the preference activity listview header / title / subtitle text sizes? Nov 14 12:37:26 to be honnest, i boycot application asking me for login/password ;( Nov 14 12:37:32 i'm totally afraid of giving them Nov 14 12:37:56 i would just save an url of a server and an application token in it Nov 14 12:37:59 and its nothing user specific Nov 14 12:38:01 but app specific Nov 14 12:38:50 so the developer of an app have to store a configuration file with the app id, and this app id should best be unreadable by the rest of the world Nov 14 12:39:01 lasserix, in android-sdk\platforms\android-16\data\res\layout you may search more than me and found preference_header_item.xml and related style/info/size Nov 14 12:39:12 i didn't dig more than that :p Nov 14 12:40:07 seems driven by android:textAppearance="?android:attr/textAppearanceMedium" Nov 14 12:40:07 for the title Nov 14 12:40:17 and small for the summary Nov 14 12:41:29 thanks Nov 14 12:42:08 adq: meta-data from the manifest file is also only accessible for apps from the same developer, or can any app access the meta-data of a manifest file via the packagemanager? Nov 14 12:44:17 via packagemanager you can have many info, indeed Nov 14 12:44:25 but nothing sensible should be present in the manifest at all Nov 14 12:44:43 yeah thats why I search another place to store the configuration stuff :) Nov 14 12:45:08 and I read somewhere that resrouces and assets are also accessible via package manager Nov 14 12:45:20 from another app Nov 14 12:45:23 oh! I did not know that Nov 14 12:45:28 sounds evil lol Nov 14 12:45:33 me netiher, and i am not so sure, if its right :D Nov 14 12:45:44 and i lost the tab, where i had the page opened :D Nov 14 12:46:29 hmm if i do "ZipInputStream zin = new ZipInputStream(urlConnection.getInputStream())" does that get the entire zip before it iterates or does it iterate as the data streams in? seems AWFULLY slow to go through the while loop for each image, but then if its downloading and interating in real time its understandable.. i presume it is given the name ZipInputStream Nov 14 12:46:33 again, I strongly recommend OAuth or OpenID stuff Nov 14 12:46:41 or anything using same mechanisms Nov 14 12:46:51 (so no login/pwd stored) Nov 14 12:47:33 and still I won't have any login/pwd of any user :) its just app specific configuration file, like an app id to use when communicating with the server, so it know for which app it should store something, and that app id should be kept secret :) Nov 14 12:48:07 http://stackoverflow.com/questions/4593046/is-it-possible-to-access-resources-in-another-apk-without-using-content-provider damn why are my resources not safe :D Nov 14 12:48:14 thx i read :) Nov 14 12:53:19 the ic_launcher icon is not being displayed on the phones of older API's . like i tried on API 10 : not displayed. on API 16: is displayed. Nov 14 12:53:26 so what should be done? Nov 14 12:53:38 my icon is called ic_launcher Nov 14 12:54:15 you have set the icon in the manifest file for your application (or at least your launcher activity)? Nov 14 12:54:38 yes Nov 14 12:54:43 do you have a launcher icon for every screen density (or something in drawable) Nov 14 12:54:45 timroes, yes i did Nov 14 12:55:14 i made one folder named drawable, and one icon only Nov 14 12:55:29 it's 36x36 Nov 14 12:55:39 okay Nov 14 12:55:48 sounds strange Nov 14 12:56:20 this is my application tag: Nov 14 12:56:43 isn't that correct? Nov 14 12:56:47 that sounds correct Nov 14 12:57:11 and if you have the icon in res/drawable/ic_launcher.png it should be recognized on every device Nov 14 12:57:29 ah! Nov 14 12:57:35 so it must be PNG? Nov 14 12:57:40 whats your format? Nov 14 12:57:44 timroes, gif? Nov 14 12:57:53 and i wanted an animated one Nov 14 12:57:59 :D Nov 14 12:58:11 okay a) I highly doubt, that gifs can be used at launcher icons Nov 14 12:58:52 and be sure, that your app will piss of a lot of users, if you would have an animated icon Nov 14 13:07:18 HDroid: so how do I call (read) it? Nov 14 13:09:10 vascobnunes: geez man, I appreciate your efforts but I'm not your personal google. Nov 14 13:09:27 There's lots and lots of documentation about these things. Nov 14 13:09:34 HDroid: eheh. You're right.. i'm sorry Nov 14 13:09:54 i wont bug you more Nov 14 13:11:03 You can bug me (and others) if you have problems bending the examples to your personal code, but until then, just read some stuff :) Nov 14 13:13:25 what's the default linearlayout orientation? Nov 14 13:13:47 horizontal Nov 14 13:14:30 i'd like to get horizonta.. it's too early for these jokes Nov 14 13:18:32 Hi, I use android.os.SystemProperties.set("key", "value"), but I cannot find it by using adb shell getprop Nov 14 13:18:56 Do use the wrong way to setprop? Nov 14 13:21:08 How to write java code to set properties just like adb shell setprop? Nov 14 13:21:27 Ok... this is driving me nuts. Nov 14 13:21:38 javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x1ed0f8: Failure in SSL library, usually a protocol error Nov 14 13:21:46 happens only on this Gingerbread device Nov 14 13:21:52 goddamn it Nov 14 13:22:11 I already set it up in such a way that it trusts all certificates Nov 14 13:22:14 doesn't help Nov 14 13:23:04 if I have some final static variables in a class, will a service be able to read those values? Nov 14 13:23:33 I mean if that class hasn't been instantiated (ie there is no current activity holdering those values) Nov 14 13:23:50 yes Nov 14 13:24:29 the class you're using it in will have to import it obviously, which ought to handle the "instantiating" Nov 14 13:25:51 oh glorious Nov 14 13:26:16 How many listings are in a typical app package? 20? 40? Nov 14 13:26:18 ;p Nov 14 13:36:42 Oh god, this error is going to haunt me for a very very long time I think Nov 14 13:44:47 can someone help me please with geo location? I have the google maps come up but it always centers my location just off the coast of Africa.. my loction update gets called but still seem to be in Africa.. can someone help? Nov 14 13:44:59 http://stackoverflow.com/questions/5666693/add-button-to-a-slidingdrawer-handle <-- I'm using the code example on the very bottom and I basically have two views in the handle, one aligned to the left and one to the right... for some reason the button on the right never makes it into the "if (mHitRect.contains(clickX, clickY)) {...}... I know it's a shot in the dark, but would anyone happen to have any advice on something like this? Nov 14 13:45:29 http://pastebin.com/FZNw50nN Nov 14 13:46:06 i was thinking about a TouchDelegate but I don't know enough to know if that's the right approach or not Nov 14 14:03:41 can anyone help with geolocation? Nov 14 14:07:46 Just curious, by why are view holders which are declared as static classes not prone to leaks when used in the getview method of an adapter for a view which is associated with a context? Nov 14 14:07:50 *but why Nov 14 14:13:16 I need help with SSL Exceptions... no solution I've found works for me, and it's driving me insane. Nov 14 14:14:56 Sooo... I managed to use an ActionBar. That's neat. Except it basically kills my compatability with the majority of devices. Nov 14 14:15:13 Is there anyway outside of maintaining two separate apps to do ActionBar & Menu? Nov 14 14:15:24 aoclown: use ActionBarSherlock, if you want compatibility with older devices and actionbar Nov 14 14:15:45 Oh, is it a self-downgrading thing? Nov 14 14:16:27 kind of yeah, it gives you the actionbar pattern on all devices. From 4.0 on it will use the native bar below, it will draw it Nov 14 14:16:46 Quite nice sounding.. Nov 14 14:17:01 I really love the action bar. Nov 14 14:17:07 <3 Jellybeans. Nov 14 14:18:08 Getting ready to Analytics & AdMob my app. Turns out I devved this whole time with minSDK=15 Nov 14 14:18:12 Who knew. Nov 14 14:18:13 :D Nov 14 14:21:57 wow Nov 14 14:22:02 Also, does anyone know what a good replacement for API 11's dividerHorizontal is? Nov 14 14:22:10 just make one with a view? Nov 14 14:22:14 thats what I did Nov 14 14:22:36 well depends on what dividerhorizontal is Nov 14 14:22:37 Just like Tada? Nov 14 14:22:43 pretty much Nov 14 14:22:49 and then a drawable or image bg Nov 14 14:22:52 It's just a little line that provides separation between two layouts. Nov 14 14:22:57 yeah Nov 14 14:23:01 Oh, do you actually need to do that? Nov 14 14:23:05 Image/drawable I mean? Nov 14 14:23:07 no Nov 14 14:23:15 but then you wont be able to SEE anything Nov 14 14:23:19 lol. Nov 14 14:23:24 view has no inherent appearance =) Nov 14 14:23:26 Well, I thought the bgcolor in the view would be enough. Nov 14 14:23:31 When I call onSearchRequest do I have to be on the root view of the layout. I'm assuming I do because right now my onSearchRequest wont show the search dialog Nov 14 14:23:32 yeah that should be fine Nov 14 14:23:42 I'll test it out. Nov 14 14:24:01 Maybe next week when my emulator starts... Nov 14 14:25:20 hehe Nov 14 14:32:07 weird my convert view is sticking Nov 14 14:50:26 if I start an activity for result and then try to call onSearchRequest in that activity will it work? Nov 14 14:50:44 Hey people! Nov 14 14:51:16 I'm trying to use the right tool for the job, but I'm not sure that I'm succeeding with that. Nov 14 14:52:00 See, my app has several components that do things and other components have to react to this. So I thought I'd use localbroadcasts so that each component anounces what happened and the other components can react to it. Nov 14 14:52:35 Now I read the "intent" documentation again and it says that those are meant for more direct commands (instead of a passive description where the receiver decides what action to take). Nov 14 14:53:27 Are intents the right choice for what I'm trying to do? Or what would be the best way to "something happened in that one component and some other components react to it appropriately"? Nov 14 14:54:09 To be more specific, it's about audioservice, downloadservice, GUI, notifications, bluetooth-headset and maybe widgets and lockscreen controls. Nov 14 14:55:03 Is it a good idea to have the download service do a local broadcast for "all downloads finish" so that the "downloading..." notification can delete itself? Or what's the right way to do this? Nov 14 14:55:48 is there a way to avoid my app opening, when i receive a push msg ? Nov 14 14:56:08 can y avoid the app from launching, even if an intent is fired ? Nov 14 14:56:18 can "I" Nov 14 14:56:19 UnbertKant: The download service can own the notification Nov 14 14:57:45 UnbertKant: I always let the service hold the notifications since it's the one changing them. You can point the notification intent at your activity so when they're selected it launches the UI,and you can use intent extras to tell the UI what file is done Nov 14 14:57:56 ddreamer0: are you not listening for GCM messages using a broadcast receiver? Nov 14 14:58:54 Okay, thanks. Nov 14 14:59:44 UnbertKant: I don't see anything wrong w/ localbroadcast, but I don't think you need it Nov 14 15:01:48 That's nice. Nov 14 15:02:01 ddreamer0: yes, i followed this tutorial: http://www.pushwoosh.com/programming-push-notification/android-push-notification-sdk-configuration-guide/ Nov 14 15:02:09 Work a while to get ActionBarSherlock working. Find out that SearchWidget is not supported with suggestions. Nov 14 15:02:12 Fail. Nov 14 15:02:33 i'd like to open the app only when i clicked on the push notification, not when i receive the message Nov 14 15:04:46 ddreamer0: receive them in a service and put a notification up that launches your activity? Nov 14 15:05:52 ddreamer0: why not follow the official docs? http://developer.android.com/guide/google/gcm/index.html Nov 14 15:06:24 Hello colleagues. Can I use the PASSIVE_PROVIDER with the getLastKnownLocation()? Nov 14 15:07:26 I'm really disappointed that Miracast wasn't included in the Nexus 7 4.2 update. :( I'm wondering, if it'll be possible to somehow enable it? Because I know the hardware is capable.ú Nov 14 15:08:38 Why would a convertview come back as NOT null when it should be coming back as null? Nov 14 15:12:33 lasserix: I have no idea what you mean. Nov 14 15:13:43 my listview is crashing in getview because the convertview != null, meaning it's reusing a previous layout which doesn't have the appropiate textview that I need to set Nov 14 15:14:13 Tee_Pee, (from yesterday) the mistake was so stupid I didn't noticed it :D Nov 14 15:14:33 Tee_Pee, setting the new url BEFORE checking it it was changed :P Nov 14 15:14:37 i'm not sure why it is passing a non null convert view (i only have 10 items in this list) Nov 14 15:15:19 lasserix: ok. Nov 14 15:15:26 you realize that this is expected behavior, right? Nov 14 15:15:32 convertview CAN be non-null Nov 14 15:15:44 if you have multiple layouts that you could be using, you need to check which one you're using Nov 14 15:15:53 if it's the wrong type, you'll need to re-create your layout. Nov 14 15:15:56 lasserix, you are supposed to choose if you want to re-use (recycle) a layout or not... convert view is supposed to be non-null if the system is giving you the chance to reuse a view Nov 14 15:16:16 the idea is that inflating views is expensive, so you're given the opportunity to recycle if possible. Nov 14 15:16:29 does that mean I need to set getViewTypeCount to the number of different layouts I'll inflate in getView? Nov 14 15:16:37 >_< Nov 14 15:16:39 what do you think? Nov 14 15:16:44 lasserix, if you have different layout... yes :D Nov 14 15:17:00 oi Nov 14 15:17:01 I'd strongly recommend that you read the documentation for the adapter base class. Nov 14 15:17:06 well I have no idea. I had a header and a option row, but I have three option rows I need to layout Nov 14 15:17:14 alright thanks Nov 14 15:17:14 lasserix, I associate to lov read the doc Nov 14 15:17:19 holy mother of god... rode my motorcycle in to work today Nov 14 15:17:28 32f outside now =( Nov 14 15:17:37 org.joda.money.format.MoneyPrinter Nov 14 15:17:41 great name! Nov 14 15:17:51 lasserix, and make sure you REALLY need different layouts Nov 14 15:17:55 joda does money stuff now too? Nov 14 15:17:57 mrenouf: don't I wish. Nov 14 15:18:05 joda-money Nov 14 15:18:10 ahh Nov 14 15:18:15 mastro: yeah i do i need checkboxes in some, arbitrary views in some others, and some with noen Nov 14 15:18:17 ron_frown, the one from joda-time ? Nov 14 15:18:34 but in this case I have only 10 items Nov 14 15:18:39 lasserix, I wander if this really need to be a list view Nov 14 15:18:58 money is right below dates on my list of crap I wish I never had to deal with in code. Nov 14 15:19:05 I am putting a preference style listview inside a sliding panel Nov 14 15:19:37 ajva date and calendar are just garbage Nov 14 15:19:38 calculations are fine, it's the formatting and l10n thats insnae Nov 14 15:19:39 (this is for options of an appwidget, so I can preview the widget in the main content) Nov 14 15:19:43 I guess I am just spoiled with .net dates Nov 14 15:19:53 mrenouf, what about charsets / encoding or locales? :D Nov 14 15:20:09 mastro, UTF-8 for all ;-) Nov 14 15:20:37 mrenouf, eheh.. if you have control on everything ... of course Nov 14 15:21:24 lov thanks for the help Nov 14 15:21:43 So whats the best way to track the Play store page for N4 availability? I don't trust getting an email now to be much help. Nov 14 15:22:50 mastro - aye.... unfortunately, I WISH I had yesterday's problems now Q_Q Nov 14 15:25:37 hrmm.. home screen widgets seem like a good diea, wish you didnt have to pan through them (vs putting a few on top of one another) Nov 14 15:27:24 is this code correct, the onNewIntent part? Nov 14 15:27:24 http://www.pushwoosh.com/programming-push-notification/android-push-notification-sdk-configuration-guide/ Nov 14 15:27:33 ron_frown: Hmmm... Here's an idea: create a home screen widget, that hosts other widgets, and one can flip between them :) Nov 14 15:27:59 I havent done shit with widgets, but I'd think you wouldnt be able to do that Nov 14 15:28:10 i'm trying to handle push messages correctly and don't want the push message to wake up my app when it arrives, i want it sleeping until i click the msg Nov 14 15:28:12 ron_frown: Or as an alternative: make a better Home Screen... Damn... Too bad I don't have tons of spare time. Nov 14 15:28:23 haha it wouldnt take that much time Nov 14 15:28:39 I just dont care that much lOL Nov 14 15:29:05 ron_frown: It would, if it's supposed to do what you want it to... Ref: Chameleon Home Screen (or something like that) on Kickstarter. Nov 14 15:29:19 people are retarded for paying money to that project Nov 14 15:29:30 not to be an ass, but that shit would have been cake to build Nov 14 15:30:14 ron_frown: Untill you do build it... You are not allowed to speak bad about that project. In all honesty: I've seen no good Tablet Home Screen. Nov 14 15:30:45 ron_frown: But that's my Very-Very-Humble-Opinion. Nov 14 15:30:49 the hardware I deal with that has form factor of a tablet doesnt need a lock screen so I dont really care mcuh Nov 14 15:30:56 I dont have a tablet that I use on a regular basis Nov 14 15:31:06 ron_frown: Nova launcher is almost the stock launcher Nov 14 15:31:11 ron_frown: and allows overlapping widgets Nov 14 15:31:11 I've got about 8-10 iconias/xoom/whatever Nov 14 15:31:21 ron_frown: and is free. and is from a fairly known developer. Nov 14 15:31:21 overlapping widgets seem like an odd idea Nov 14 15:31:24 yeah nova is pretty good Nov 14 15:31:31 dragorn: we are talking about the lockscreen tho Nov 14 15:31:32 but yeah Nov 14 15:31:35 ron_frown: oh Nov 14 15:31:38 ron_frown: missed that part Nov 14 15:31:41 ron_frown: HTC has a Home-Screen widget for SMS messges. One can scroll between the messages by flicking up and down. I suppose a similar method may be applied to host multiple widgets in one spot. Nov 14 15:32:08 thats what 4.2 does now, cept you flip left to right Nov 14 15:32:19 oh I see what you are saying Nov 14 15:32:55 ron_frown: I mean: A new widget, that can host other widgets, and one can switch between them by flicking up or down. Nov 14 15:33:13 ron_frown: That would be an universal (blah-blah) solution. Nov 14 15:33:40 ron_frown: Still a way for the Lock Screen though... Nov 14 15:34:32 I seriously doubt anyone will be able to assist me with this but... what is called after the constructor of a X509TrustManager? Nov 14 15:34:54 I get a javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x1eac20: Failure in SSL library, usually a protocol error right after my constructor finishes (last log entry) Nov 14 15:35:08 but there is no log for the checkClientTrusted and checkServerTrusted Nov 14 15:35:14 i.e. no certificates are actually processed Nov 14 15:35:39 Tee_Pee: Are you sure you're connecting to an SSL enabled service? I've had similar problems attempting SSL on a non-ssl port :-/ Nov 14 15:35:40 there's a rise in the stack size right before the exception so I imagine the certificates do get received Nov 14 15:36:57 Tee_Pee: what if you dump the stackon the exception to logcat? Nov 14 15:39:09 Lachezar - yes, because this works under normal circumstances, Android 2.3 is being a bitch about it. Nov 14 15:40:07 dragorn - you mean the stacktrace? http://pastebin.com/d2dcv9eM Nov 14 15:41:34 my application has the black theme. i'd like to display the white themes dialog fragment. hdf.setStyle(DialogFragment.STYLE_NORMAL, android.R.style.Theme_Holo); doesnt do the trick, what am i doing wrong? Nov 14 15:41:48 Tee_Pee: that almost definitely looks like what lachezar said - that you're not connecting to a ssl port Nov 14 15:42:31 again - it's an SSL port, this poses absolutely no issues in android 3.0+ Nov 14 15:43:26 Tee_Pee: I've only seen that when not connecting to a ssl port, so, good luck. Sure nothing is intercepting that devices traffic? Nov 14 15:43:35 ie a captive portal or something causing a redirect Nov 14 15:43:54 your next step is to throw a packet capture on the router and see what data is coming back. Nov 14 15:43:59 Definitely... I'm sitting next to the server on the company's wifi... it works perfectly on my android 4.1 device Nov 14 15:44:07 but this 2.3 one is giving me a headache Nov 14 15:44:27 viran: isn't holo the dark theme? Try Theme_Holo_Light ? Nov 14 15:44:32 I keep rotating between this handshake aborted error, no peer certificate error and broken pipe error Nov 14 15:44:39 depending on the stuff I try to do pull off Nov 14 15:45:29 Tee_Pee: I'm actually working on a trustmanager right now to bypass cert chain validation entirely and keep a cached hash list of all the certs in a chain for a connection. But I haven't seen that outside of "not a ssl port". Nov 14 15:47:54 Hey. What's the easiest way to update the UI (listview) once the thread has finished its work on line 69? http://pastebin.com/UUs03UVN Nov 14 15:48:09 dragorn - I just tried it with a 4.1 device, worked like a charm. Nov 14 15:48:17 dumped the certificates, everything Nov 14 15:50:02 Tee_Pee: Well... Usually when I hit such a snag I try running a nano server ('nc -l'), and then upgrade to a nano-ssl server (openssl s_server). Nov 14 15:50:34 Tee_Pee: just to see that it *seems* to work as expected. Nov 14 15:50:35 Good morning people! Nov 14 15:50:46 but 2.3.6... it's a known issue, but one of the project requirements is 2.2 support. Nov 14 15:50:52 So I can't just go "upgrade if you wanna log in lol" Nov 14 15:50:54 <\monster\> hey guys, I have a simple Fragment with a Spinner, the spinner selection triggers another fragment replacing the current one ..when that happens and I hit back the Spinner gets onItemSelected gets triggered twice ..is the second call Android trying to restore state? Nov 14 15:51:22 Tee_Pee: Well... I use HTTP Client on 2.1-update1 devices and has a HTTPS server, and it works. Nov 14 15:51:41 Tee_Pee: Apache Commons HTTP Client that is. Nov 14 15:52:34 Lachezar - I'll try and trace the code manually, and see if I can manually fix whatever is wrong. Nov 14 15:53:11 hmpf... I use the same client Nov 14 15:54:23 Is there any way to give my app access to tail? Nov 14 15:54:31 org.apache.http.client.HttpClient; Nov 14 15:54:43 that one Lachezar? Nov 14 15:55:00 AndreasBR, tail? Nov 14 15:55:05 yes tail Nov 14 15:55:21 tail: permission denied Nov 14 15:55:31 probably not then Nov 14 15:55:37 sayu what? Nov 14 15:55:51 says the fact you got a permission denied error Nov 14 15:55:58 Missing permissions will do that ;P Nov 14 15:56:06 I don't see why you'd need it anyway, what's it for? Nov 14 15:56:58 You dont know what tail is? hah Nov 14 15:57:08 Tail is for logchecking on *nix systems Nov 14 15:57:09 I know what tail is. why do you need it in your app? Nov 14 15:57:14 Not in my app Nov 14 15:57:16 in my cmd window :) Nov 14 15:57:30 oh, then I don't see why it wouldn't work Nov 14 15:57:48 because android is fubar on permissions :D Nov 14 15:57:52 but then again, I've only used it on systems I've rooted (and installed busy box on) Nov 14 15:57:59 aha Nov 14 15:58:03 I tried to root my desire hd Nov 14 15:58:03 do anybody know where I can find an history of the sources for the support library? (v1, v2, v3, ... v11) Nov 14 15:58:04 didnt work Nov 14 15:58:06 :-/ Nov 14 15:58:53 oh ok Nov 14 15:59:32 Do you know why adb shell always says my command first? Nov 14 15:59:38 $ echo d Nov 14 15:59:38 echo d Nov 14 15:59:45 then "d" below that Nov 14 15:59:50 nope Nov 14 15:59:57 lemme see if mine does it Nov 14 16:00:22 mine doesn't Nov 14 16:00:35 o.O Nov 14 16:00:46 mastro, isn't the code in a git repository? Nov 14 16:01:23 Tee_Pee: org.apache.http.impl.client.DefaultHttpClient Nov 14 16:02:22 hi guys Nov 14 16:02:44 can someone explain to me how you configure the colour hyperlinks go when you tap them when Linkify has made them clickable in a textview? Nov 14 16:02:47 Tee_Pee: I've added the http_mime.jar to my project though, since I'm doing uploads, but other than that I use the Http Client pretty straight-forward. Nov 14 16:03:03 (p.s. the textview is in a ListView) Nov 14 16:03:03 (p.s. the TextView is in a ListView) Nov 14 16:03:21 anyone build android apps using ant Nov 14 16:03:30 yeah, I got the mime as well.... gonna try using the apache httpclient 4.2.2 now, out of desperation mostly lol Nov 14 16:03:34 how can I add a new activity through the GUI, not through typing in xml? Nov 14 16:03:53 Tee_Pee: Actually OI Nov 14 16:03:55 i know my question looks silly but i just could not figure it out Nov 14 16:04:07 Tee_Pee: Actually I use the HTTP Client that comes with Android. Nov 14 16:04:34 UnbertKant, hum... link? Nov 14 16:04:35 superlinux: Activities MUST be registered in the Manifest. No way around it AFAIK. Nov 14 16:04:53 i'm using the PayPal MPL lib to let my users make payments, but sometimes the lib crashes with a NullPointerException. I'm trying to catch it with a UncaughtExceptionHandler, but the UI thread dies and the screen turns black. am i doing something wrong or is this the epected behaviour? Nov 14 16:04:57 superlinux: open the xml, then click on "graphical layout" on the bottom Nov 14 16:05:21 mastro: I forgot the link, sorry. Nov 14 16:05:24 UnbertKant, i am talking about the manifest Nov 14 16:05:36 not the layout editor Nov 14 16:05:37 mastro - aye.... unfortunately, I WISH I had yesterday's problems now Q_Q why? Nov 14 16:06:10 oh i found it! Nov 14 16:06:11 Open Manifest, click on "Application" Nov 14 16:06:12 thanks Nov 14 16:06:17 Tee_Pee, I meant to ask "why?" Nov 14 16:07:43 mastro - because I just spent 6 hours trying to get my 2.3 android to like my SSL certificates. Nov 14 16:07:45 WIthout any success. Nov 14 16:08:21 I am working on getting the integration going with my CI server, and its acting like its trying to run ant in my root checkout directory Nov 14 16:09:16 Tee_Pee, wow.. for a personal service? Nov 14 16:09:23 Tee_Pee, I mean: http call? Nov 14 16:09:41 https api call to my server, yea Nov 14 16:11:19 Tee_Pee, I think you already googled and found something like this: http://stackoverflow.com/questions/995514/https-connection-android Nov 14 16:11:47 ayup Nov 14 16:11:50 :( Nov 14 16:12:02 I am trying to understand activities, I have a menu with a button called settings. Nov 14 16:12:19 Instead of just changing the content, should I create it in its own activity? Nov 14 16:12:34 Tee_Pee, actually more like this: http://stackoverflow.com/questions/2642777/trusting-all-certificates-using-httpclient-over-https Nov 14 16:13:32 yup, tried that as well :( Nov 14 16:13:42 Tee_Pee, that actually accept *any* certificate, which may not be a good idea depending on your case, but it is a starting point if it works Nov 14 16:13:52 Tee_Pee, weird, are you sure you didn't got something wrong? Nov 14 16:14:16 Hey. Can anyone suggest an alternative to line 68 while(!(isThreadFinished))? http://pastebin.com/zFuKPFni Nov 14 16:14:24 It works on anything above 2.3 Nov 14 16:14:28 but 2.3 and lower Nov 14 16:14:30 it crashes and burns Nov 14 16:14:34 it's a known issue on that android version Nov 14 16:14:42 but I gotta get it to work Nov 14 16:14:48 Tee_Pee, oh.. interesting -- do you also know why? Nov 14 16:15:27 Tee_Pee: Are you using an Untrusted Certificate? Nov 14 16:15:37 how can I set also the launcher/1st activity to run in the GUI? Nov 14 16:15:43 mastro - because http://static.fjcdn.com/pictures/Alpaca_bef223_328999.jpg Nov 14 16:15:45 or Using GUI? Nov 14 16:15:54 Tee_Pee, are you using HttpClient? Nov 14 16:16:04 Lachezar - Thawte Nov 14 16:16:23 Tee_Pee: Hmmm... And opening the target URL in the browser? Does it work? Nov 14 16:16:28 Tee_Pee, :D Nov 14 16:16:48 using the DefaultHttpClient from org.apache.http.imple.client.DefaultHttpClient Nov 14 16:17:09 Lachezar - yes it does... as I said, it works normally on my other device as well, it's just an issue with the 2.3 device Nov 14 16:17:38 Hell, I didn't even know there was an issue until a co-worker gave me his 2.3 phone to test it out today. Nov 14 16:18:10 Tee_Pee, are you trying on the emulator? be aware the emulator may fail where the actual device don't Nov 14 16:18:20 nope, all on devices Nov 14 16:18:24 and apparently ssl on 2.2 emulator is one of this black holes Nov 14 16:18:36 Tee_Pee, according to this: http://myandroidsolutions.blogspot.it/2012/05/android-ssl-self-signed-certificate.html Nov 14 16:18:44 Tee_Pee, it works on 2.2 device too Nov 14 16:19:47 hi, I am interested in improving the latency of the image downloaded by my app. I am using new thread (runnable) to speed up, can I do better? Nov 14 16:19:52 yeah I know, many people got it to work... I think 2.3 devices just don't like my server... It's a heroku based server with a thawte certificate... I'll see tomorrow if I can get anything done on that side. Nov 14 16:19:59 do anyone know where to find source code archive for the android support library? (r1, r2, .. r11) Nov 14 16:20:10 Looney - AsyncTask + THREAD_POOL_EXECUTOR Nov 14 16:20:25 i'm using the PayPal MPL lib to let my users make payments, but sometimes the lib crashes with a NullPointerException. I'm trying to catch it with a UncaughtExceptionHandler, but the UI thread dies and the screen turns black. am i doing something wrong or is this the epected behaviour? Nov 14 16:20:30 why isn't this working? http://pastebin.com/Cd3JmmFR Nov 14 16:20:32 mastro: grep code :):) Nov 14 16:20:46 I followd this: http://android-er.blogspot.pt/2010/04/simple-rss-reader-in-listview.html Nov 14 16:21:05 Lachezar, I was hoping on something more "downloadable" :D Nov 14 16:21:28 I updraded adt, and my android sdk. Now i'm getting this error [2012-11-14 11:18:36 - Unified] ERROR: Unknown option '--output-text-symbols' when running aapt Nov 14 16:21:31 what gives? Nov 14 16:21:53 well... my work hours finish in 30m anyway, and I got a headache Nov 14 16:21:57 I'll think about this tomorrow Nov 14 16:22:06 Thanks for the assistance folks Nov 14 16:22:18 good luck teepee Nov 14 16:22:22 if I want to send a build to my partner, do I send her the ".apk" in the /build folder ? Nov 14 16:22:28 I'll clean up my code in the morning and just build up from the start Nov 14 16:22:30 and she installs with android file transfer app ? Nov 14 16:22:55 Tee_Pee: I was reading that AsyncTask executes thread in series (or perhaps I am mixing it with something else) Nov 14 16:23:03 in the *bin folder, not build Nov 14 16:23:29 HDroid: can you give it a look now? Nov 14 16:23:32 pls Nov 14 16:23:50 Looney - it does, unless you do task.executeOnExecutor(ImageTask.THREAD_POOL_EXECUTOR); Nov 14 16:24:03 what? Nov 14 16:24:05 :p Nov 14 16:24:33 somiah: Nov 14 16:24:36 [17:24] -somiah- Hey Tee_Pee ! don't say bullshit on #android-dev please, thanks <----- wat? :p Nov 14 16:25:22 heh that's funny my caliper is able to trigger touch events Nov 14 16:26:12 anyone have experience with SMS BroadcastReceivers? or SMS App dev at all? Nov 14 16:26:12 Man yesterday I went down the stables and stepped in the biggest pile of bull shit. Nov 14 16:26:20 . Nov 14 16:26:28 Hey leeds you here? Nov 14 16:26:31 Tee_Pee, you're welcome Nov 14 16:27:16 Can someone with the power kick somiah for auto messaging at every chat line? Nov 14 16:27:40 lasserix: ? Nov 14 16:28:00 everytime i hit enter i get : -somiah- Hey lasserix ! don't say bullshit on #android-dev please, thanks Nov 14 16:28:01 QcMat_, (supposing you're using Eclipse) the one you find in bin/ folder is an APK signed with a debug certificate, which is automatically generated by android sdk OR manually from you -- not suited for production / market release -- fine for testing Nov 14 16:28:27 Have you ever wondered if your user was a goat? Worry no more. http://developer.android.com/reference/android/os/UserManager.html#isUserAGoat() Nov 14 16:28:29 mastro, fine for testing by a non debugger, my artist partner ? Nov 14 16:28:34 alright, time to go home. Nov 14 16:28:38 Talk to you fellas tomorrow Nov 14 16:28:42 Tee_Pee: somiah still annoying? Nov 14 16:28:46 yup Nov 14 16:28:52 ha, just did it to me Nov 14 16:28:55 peace out, homie Nov 14 16:29:00 but I'm off now so .!. to him :P Nov 14 16:29:14 How do you stop android from vibrating the phone when it incouters and error. The is single handed the most annoying "feature" ever Nov 14 16:29:27 thank you evancharlton Nov 14 16:29:34 no problem Nov 14 16:29:43 sounds like he should be reported in #freenode, though Nov 14 16:29:46 vascobnunes: http://developer.android.com/tools/help/logcat.html Nov 14 16:29:58 QcMat_, that's fine as long as you teach him how to install on his device Nov 14 16:29:58 they can k-line him; that's almost certainly a network policy violation Nov 14 16:30:07 what did he do? Nov 14 16:31:01 snooplsm: every time you sent a message, he would /ctcp -somiah(~somiah@146.185.24.207)- Hey evancharlton ! don't say bullshit on #android-dev please, thanks Nov 14 16:31:16 Should the last row of a list view have a divider? Nov 14 16:32:02 oh Nov 14 16:32:40 I just reported somiah to #freenode, it is bothering in other channel too Nov 14 16:32:48 great, thanks! Nov 14 16:33:06 the things people choose to do with their time ... Nov 14 16:33:20 I have the graphical Layout editor in eclipse on Linux, does not render the Arabic correctly. Arabic is not correctly displayed. what should i do? Nov 14 16:33:25 mastro, yep, going to learn as she does it hehe Nov 14 16:33:54 hahah Nov 14 16:34:20 evancharlton, :) I always wandered.... WHY? Nov 14 16:36:17 i'm using the PayPal MPL lib to let my users make payments, but sometimes the lib crashes with a NullPointerException. I'm trying to catch it with a UncaughtExceptionHandler, but the UI thread dies and the screen turns black. am i doing something wrong or is this the epected behaviour? Nov 14 16:36:25 mastro: It seems the source is in /extras/android/compatibility/v13/src Nov 14 16:37:10 mastro: Or whatever version of the support library you want the source for. Nov 14 16:37:16 HDroid: http://pastebin.com/VUXdLnxS Nov 14 16:37:54 zorzar: that's an interesting technique, never tried that. I wonder if it's too late -- ie, I wonder if the framework is catching the NPE before your handler kicks in. Nov 14 16:38:34 vascobnunes: Please show the code where you're creating the URL. I'm wondering if you're not supplying 'feeds.feedburner.com:80' as Host. Nov 14 16:38:44 is the library api itself synchronous? Ie, are you able to simply wrap the offending calls in a try/catch block? Nov 14 16:39:28 Lachezar, /extras/android/compatibility/v13/src is for support-library-v13 (last version), I need support-library-v4 (ALL VERSIONS) Nov 14 16:40:05 Lachezar: hold on... now I tried with the phone data connection on and it worked... before I was with the wifi on Nov 14 16:40:12 Lachezar, v4 == SDK API v4, v13 = SDK API v13 --- I'm asking for v4 revision 1, revision 2, .. 11 Nov 14 16:40:13 HDroid: hold on... now I tried with the phone data connection on and it worked... before I was with the wifi on Nov 14 16:40:14 mastro: I have /extras/android/compatibility/v4/src Nov 14 16:40:39 mastro: Ahh... You need the source for different revisions... Nov 14 16:40:48 hey, any solution for SDK17 not showing up in SDK Manager? Only get Google APIs 17 Nov 14 16:40:49 Lachezar, again, that's the last one (r11) I want to have all the old ones back to revision 1.. the ones matching this list: http://developer.android.com/tools/extras/support-library.html Nov 14 16:40:58 Lachezar, exactly Nov 14 16:41:03 mastro: Sorry... Didn't get that part... Nov 14 16:41:25 kbs: i guess so Nov 14 16:41:32 kbs: what would your solution be instead? Nov 14 16:41:56 zorzar: as above -- are the library api calls synchronous? If so, is it feasible to simply wrap the call into a try/catch block? Nov 14 16:41:57 ansgarm: packages->reload? Nov 14 16:42:05 Lachezar, no problem ;) Nov 14 16:42:12 kbs: the library starts an activity Nov 14 16:42:27 zorzar: aah... screwed ;-) Nov 14 16:42:32 kbs: i tried wrapping that in try/catch :) Nov 14 16:42:44 kbs: as you might guess it didn't work ;) Nov 14 16:42:58 Lachezar: i'm using this: http://pastebin.com/Cd3JmmFR Nov 14 16:43:07 Leeds: doesn't work.. Nov 14 16:43:24 zorzar: to try a stupid idea, are you able to subclass the library activity? Nov 14 16:43:26 ansgarm: doesn't do anything, doesn't show API17 after? Nov 14 16:44:16 zorzar: you may be able to call the subclassed activity instead; delegate everything of interest to the real code while trapping exceptions and handling it appropriately Nov 14 16:44:17 got it. Started from Eclipse -> big nope. Start it using terminal for example Nov 14 16:44:40 kbs: hmmm nice idea Nov 14 16:45:14 Leeds: From Eclipse only showed the GApis in 17, but via Terminal worked. Thansk Nov 14 16:45:19 kbs: but i think this will be a lot of work Nov 14 16:45:42 ansgarm: good enough :) Nov 14 16:45:49 vascobnunes: Then I think the problem is your network settings when connected to WiFi. Check that after connecting you get DNS Servers set up correclty: try opening any site in the browser. Nov 14 16:46:22 Lachezar: do I have to set permissions for wifi in the manifest? Nov 14 16:47:53 Lachezar: cause I can connect to other web sites Nov 14 16:47:53 zorzar: not familiar with the paypal library, so you'll know best of course :-) if the NPE's are always happening in specific method call, may only need to override that one method in the subclass. have a feeling that any non-paypal fix will be some form of an ugly hack. good luck :) Nov 14 16:48:13 vascobnunes: No, that's typically bad cofiguration of your WiFi access point/router, and has nothing to do with Android. Nov 14 16:48:56 mastro: Other than using GIT to pull the support library from AOSP I don't really see any way. Nov 14 16:49:03 kbs: i hoped there might be a general fix for this Nov 14 16:49:04 ok, weird, cause now it is working fine... Nov 14 16:49:49 Lachezar, AOSP ? Nov 14 16:50:32 mastro: Android Open Source Project: AOSP for short: the Android source. Nov 14 16:51:27 Lachezar, I already have cloned the Android source... but can't find the support library source there Nov 14 16:51:29 thank you Lachezar and HDroid Nov 14 16:51:52 Lachezar, that's a very big code base, so I may have simply missed it Nov 14 16:51:58 finally made something work in my app...lol Nov 14 16:52:11 mastro: GIT this: https://android.googlesource.com/platform/frameworks/support/ Nov 14 16:53:01 Lachezar, sweet that's new, it wasn't there when I cloned the first time -- thank you Nov 14 16:53:44 mastro: You will have to find a way to check out specific releases though, I am *NOT* proficient with GIT. Nov 14 16:55:08 Lachezar, I know git very well ;) if the source is there it want be an issue Nov 14 16:55:21 mastro: GL, HF :) Nov 14 16:56:45 tee_pee gone or around Nov 14 16:56:49 Lachezar, ah.. google folks do not like tagging apparently :P they didn't tagged the support library releases... eh-- I'll have to guess.. but at least the code is there Nov 14 16:57:11 Looney: Tee_Pee said s/he was going home... Nov 14 16:57:39 * Lachezar hates trying to figure out gender for proper polite references. Nov 14 16:58:21 frankly, you can assume male unless you know otherwise, or the nick strongly suggests Nov 14 16:59:45 Leeds: I *can* assume, but it negates trying to be polite. :) Nov 14 17:00:07 mastro: https://android.googlesource.com/platform/frameworks/support/ This has some tags, although I find them cryptic. Nov 14 17:01:00 * Lachezar has to learn GIT. So different than SVN and CVS. Nov 14 17:02:49 ok, well I wanted to ask him about his suggestion Nov 14 17:02:56 well I will ask you people Nov 14 17:02:58 Lachezar, yes they are tags but they do not match support revisions Nov 14 17:03:23 so, the suggestion which I asked about image downloads Nov 14 17:03:51 I have to display an image when a listview item is selected Nov 14 17:04:01 just to confirm, as long as the package namespace is the same, i can change the app name/label after release right? Nov 14 17:04:18 as long as i keep the main activity name the same for shortcuts too Nov 14 17:04:45 so, wouldn't using asynctask + threadpoolexecutor combo be an overkill for one single image Nov 14 17:10:58 DR01D-Engineer: Labels can be changed, no harm will come. Class-Names can be changed, as long as you have appropriate Intent Filters and do not use Class Name from outside the application. Nov 14 17:12:26 Looney: In my book it's not an overkill, although I only use an async task, that downloads the image into the applicaiton cache. Nov 14 17:13:21 presently I am only using runnable to make thread for downloading the png Nov 14 17:14:09 Looney: Async Task is probably better, as long as it does not hold on to the activity. Nov 14 17:14:09 rest of the app which does UI, download & parse XML is in other Nov 14 17:14:13 "You’ll need to create a new Activity for every screen you want to display" This isnt 100% true? Nov 14 17:14:41 AndreasBR: Correct, but in practice you end up creating a new Activity for every screen. Nov 14 17:14:42 so, asynctask is better than runnable ? ? Nov 14 17:14:50 AndreasBR: not entirely true, and fragments can change that, but it's a good rule of thumb Nov 14 17:15:02 cool thanks. im making a game which will be free first called "game demo", if it becomes popular ill rename it "game lite" when i then have built and released a paid version "game". i think if it is called "lite" at first, people will expect there to be a "full" version already out, where as "demo" means more just a prototype. Nov 14 17:15:11 Leeds: So I should want another activity for my settings screen? Nov 14 17:15:13 Looney: Well... AsyncTask has its problems, but it does the job of separating background stuff and UI interaction. Nov 14 17:15:19 and not just change the contentviewthingy? Nov 14 17:15:27 AndreasBR: you might want to look into a preference(s?)activity for that anyway Nov 14 17:15:40 Ok Nov 14 17:16:02 and on what basis we differentiate between runnable and asynctask Nov 14 17:16:27 is asynctask, like improved form of runnable Nov 14 17:16:33 Hey guys, trying to make a layout for a side nag (ala Facebook, google+, etc). I have a ScrollView with a list view in it (for the nav items)), but the list view keeps wanted to put in it's own scrollbars to fit in the height of the ScrollView. Anyway to tell list view not to scroll, which will then force the height of ScrolView to Grow? Nov 14 17:16:44 Looney: Ugh... Not that easy to answer. The AsyncTask actually runs on two threads: an UI thread, and a background thread. Nov 14 17:17:35 Looney: You can send events from the background thread, that will affect the UI, something that is not easy to achieve with Runnable and Thread. Nov 14 17:17:52 side nav* Nov 14 17:18:03 now you just made the case for asynctask Nov 14 17:18:09 all hail the AsyncTask Nov 14 17:18:16 HAIL ASYNCTASK! Nov 14 17:18:29 * fakingfantastic initiates weird salute gesture Nov 14 17:18:32 Looney: Well... It was designed for a reason... Nov 14 17:18:34 yea... Runnable is just an interface... it really doesnt do anything except let you encapsulate code to run at some point in the future Nov 14 17:19:16 Leeds: might you remember who was recommending Lenovo to me the other day ('scuse off topic) Nov 14 17:19:23 Leeds: was it you? Nov 14 17:19:28 regedit: I doubt it Nov 14 17:19:56 I think I was the one who was saying I didn't understand how anyone could do development work on a laptop, rather than a desktop/'workstation' Nov 14 17:20:15 haz logs? Nov 14 17:20:25 I am developing on a Lenovo ThinkPad. Nov 14 17:20:50 maybe it was you Lachezar Nov 14 17:20:52 i just ordered one of those .. lenovo is slow :( Nov 14 17:21:12 oGMo: shipping you mean? Nov 14 17:21:34 regedit: I have not been in this channel for a while, and don't recall recomending Lenovo, but I *do* recommend Lenovo T5?? and W5?? if you can aford it. Nov 14 17:21:46 regedit: everything .. took forever just to process to shipping .. like 7 business days Nov 14 17:22:08 oGMo: I got mine 3 and half hours after I ordered. I live in Bulgaria. Nov 14 17:22:34 Actually I have a new Lenovo T530 from this Friday. Nov 14 17:22:34 the w530 is their "workstation" one which can power like 4 monitors or soemthing and supports like 32GB of ram so it's pretty close to a desktop Nov 14 17:22:50 Lachezar: hah, nice Nov 14 17:22:55 I had ordered this promising-looking affordable mac-air-imitation http://www.microsoftstore.com/store/msstore/en_US/pd/ThemeID.27509700/productID.252852900 Nov 14 17:23:08 i had never heard of vizio before Nov 14 17:23:15 and whadyou know? it was DOA Nov 14 17:23:34 er yes never buy that crap Nov 14 17:23:48 What's DOA? Nov 14 17:24:00 dead on arrival Nov 14 17:24:01 if you want a sexy ultrabook, sony or samsung or maybe asus, but expect issues Nov 14 17:24:12 so now M$ is shipping me this http://www.microsoftstore.com/store/msstore/en_US/pd/ThemeID.27509700/Lenovo-IdeaPad-U4104376/productID.250640400 Nov 14 17:24:24 i like 8 GB of ram Nov 14 17:24:42 * ron_frown sighs Nov 14 17:24:48 I have to admit, that the three things I do with a new Lenovo are: 1. Create Recovery Disks, 2. Wipe-Out HDD, 3. Install Xubuntu Nov 14 17:24:54 1366x768 ;/ Nov 14 17:25:05 I wish eclipse+adt didnt get significantly worse with each subsequent release Nov 14 17:25:09 that's cutting edge high res for 1995 Nov 14 17:25:10 not so sure about the whole SSD+5400 hybrid intel thingy, anyone know if it's any good? Nov 14 17:25:16 ron_frown: how many bugs have you filed about it? Nov 14 17:25:17 though, $600, hey Nov 14 17:25:22 I can get a few builds in before basically appearing to deadlock Nov 14 17:25:31 waiting for background tasks to complete Nov 14 17:25:42 evancharlton: none, but the bugs are already reported Nov 14 17:26:17 I am not explicitly blaming adt team, as I've had plenty of problems with eclipse outside of android dev Nov 14 17:28:12 * Lachezar bids everyone farewell: 19:30, work ended an hpour ago, time to go play with the kid. Nov 14 17:29:06 any experience with hybrid SSD+5400RPM config? (Intel Smart Response) Nov 14 17:29:49 It's great in my Nexus 4! Wait, what? Nov 14 17:32:08 * regedit slaps a trout around with a large TheTrash Nov 14 17:33:57 are there any apps that can test my cell phones data connection to the tower? (note: not to the net, to the cell tower) Nov 14 17:34:13 i haev a crappy connection here with my 4g bars PEGGED yet i cant download shit Nov 14 17:37:16 cd /join #android Nov 14 17:37:16 Hey. I'm trying to pass an object to Asynctask, but I'm not completely sure how to do it. Here's the onclick method that starts the task http://pastebin.com/TevSFES3 and here's the actual asynctask http://pastebin.com/PXRFUWUW Nov 14 17:37:23 ugh lol Nov 14 17:40:59 can anyone help me with ant release Nov 14 17:45:01 vekexasia: just ask your question Nov 14 17:45:12 ant release does not work due to an error Nov 14 17:45:14 eclipse just crashes Nov 14 17:45:18 that is of no help Nov 14 17:45:18 when building for release Nov 14 17:45:22 :( Nov 14 17:45:27 The following error occurred while executing this line: Nov 14 17:45:30 Target "nodeps" does not exist in the project "null". Nov 14 17:45:33 vekexasia, this might not be what you want to hear but DELETE eclipse Nov 14 17:45:45 ecliopse is a horrible IDE, probably the worst one i ever saw Nov 14 17:45:49 get intellij idea Nov 14 17:45:53 you will NOT regret it Nov 14 17:45:59 ok i'll after this :P Nov 14 17:46:10 or you'll regret it Nov 14 17:46:12 i just need to issue the command "ant release" Nov 14 17:46:42 personally i hate code editors that do everything except make my coffee for me, i consider them bloated beheamothes. IJ however im very VERY impressed witj Nov 14 17:46:55 in Android 1.6 i had to have a large list of widget sizes for my app, but they've changed it to where you can choose the widget size at the end. how do I remove the custom widget providers so they do not show up on Android 3 and later? Nov 14 17:51:28 Ok, even after reading a damn tutorial book on android im kinda "WTF'ed" about how they update the damn gui Nov 14 17:51:47 "updateGUI();" They cant be serious about redrawing the entire gui every time? Nov 14 17:54:07 they probably dont intend it to be used every time... and that call might know what does and does not need to be redrawn Nov 14 17:54:27 <-- knows alot about nothing and nothing about alot! Nov 14 17:54:54 AndreasBR: what on earth are you talking about? Nov 14 17:57:12 lol Nov 14 17:57:40 <\monster\> when automatic state restore is done on a Spinner ..is onItemSelected called on that change? Nov 14 18:03:21 If I move an audiotrack loop from a thread in an activity to a thread in a service, will I gain any benefit? (per example, if GC pops for a long time in the activity, the audiotrack loop in the service might not be disturbed as if it would be in the activity) Nov 14 18:04:41 evancharlton: Android seems REALLY messy when it comes to updating a single gui Nov 14 18:04:47 from a different thread. Nov 14 18:05:02 there is only one thread for UI, AndreasBR Nov 14 18:05:12 adq: I havent stated otherwise Nov 14 18:05:26 The main thread is the UI thread. Nov 14 18:06:33 AndreasBR: It doenst redraw every thing Nov 14 18:07:13 AndreasBR: it's not Nov 14 18:08:16 In the example it does "updateGUI();" Nov 14 18:08:22 How does that know what to update4? Nov 14 18:08:26 if not everything? Nov 14 18:09:04 via tracking dirty part(s), and only redrawing them maybe Nov 14 18:09:53 :S Nov 14 18:10:05 Thank God I dont have a shotgun or a gun Nov 14 18:10:11 Android would make me suicide Nov 14 18:10:13 *.* Nov 14 18:10:35 Whats up with all the fubar userhosts here? Nov 14 18:10:36 so, anybody have an idea when we can enable lockscreen appwidgets for our apps? Nov 14 18:10:52 AndreasBR: the reason you think this is so insane is because you have no idea what you're doing Nov 14 18:11:01 ^ Nov 14 18:11:05 shreesh: API 17, which was released yesterday Nov 14 18:11:10 That is 120% frikkin true Nov 14 18:11:22 so keep your shotgun unloaded :) Nov 14 18:11:28 I dont own one Nov 14 18:12:10 i used the latest sdk, and enabled the "keyguard" in appwidget xml layout. but my app did not show up in the list of available widgets. Nov 14 18:12:46 Is my htc desire hd too old for the newest API? Nov 14 18:13:16 i've got an htc desire hd Nov 14 18:13:20 i believe google has to release an update to the sdk to enable custom lockscreen widgets. Nov 14 18:13:21 rooted? Nov 14 18:13:22 it cannot run well latest OS, so yes Nov 14 18:13:25 rooted, yes. Nov 14 18:13:29 so i stick on 2.3* Nov 14 18:13:41 ah, I tried rooting mine, didnt work :-/ Nov 14 18:13:49 it's not the good place to talk about that here Nov 14 18:13:52 Lost all my sms's and mms's due to me being an idiot Nov 14 18:13:53 my desire HD runs JB Nov 14 18:14:00 Why? They gonna sue me? Nov 14 18:14:02 ahmedammar, how smoothly lol? :) Nov 14 18:14:09 Its my device, I can do whatever I want to it :) Nov 14 18:14:21 AndreasBR, you're ... how to say that... a bit insolent :) Nov 14 18:14:23 Im not under american law ;P Nov 14 18:14:32 neither do I Nov 14 18:14:33 adq: the MIUI rom works really smoothly Nov 14 18:14:40 AndreasBR: no, because that's what #android-root is for. No one in here gives a shit if you flash a custom ROM Nov 14 18:14:41 ahmedammar, thanks I will have a look Nov 14 18:14:52 evancharlton: I havent said that anyone does :D Nov 14 18:15:02 I was just stating a fact :) Nov 14 18:15:41 dont suppose anyone here knows why I could read a few bytes from a file, then get this: Nov 14 18:15:42 W/System.err( 2908): java.io.IOException: Bad file number W/System.err( 2908): at org.apache.harmony.luni.platform.OSFileSystem.read(Native Method) Nov 14 18:15:49 o_O Nov 14 18:15:55 hi, how can I update an ArrayAdapter when the arraylist it was created with changes? Nov 14 18:16:01 ron_frown: no, can't say I do. Nov 14 18:16:18 ron_frown, problem in your FS maybe? Nov 14 18:16:24 Yes! Lets all answer when we cant answer, instead of when we can! Nov 14 18:16:30 could be the "file" is a device Nov 14 18:16:43 ah in /dev, it's not regular file Nov 14 18:16:52 I didnt want to complicate the question more than I needed to Nov 14 18:16:56 adq: yessir Nov 14 18:17:17 I know its not, but I've been able to read/write form it pretty reliably on diff hardware, sometimes on this hardware Nov 14 18:17:25 dont see any differences, cept os version Nov 14 18:17:40 AndreasBR: please be kind. Nov 14 18:17:59 I think he redirects his own frustration on us :D Nov 14 18:18:01 I was. Nov 14 18:18:03 * adq deflects Nov 14 18:18:07 ron_frown: have any more information? Have you tried digging into OSFileSystem.read ? Nov 14 18:18:58 adq: Not really.. At an old company I worked at, whenever you asked someone "Has anyone talked to " atleast 3 to 5 people would reply "Not me" Nov 14 18:19:12 What is the deal? You dont have to respond when it ISNT you. You respond if it IS you. Nov 14 18:19:37 No answer means no. Nov 14 18:19:50 what is the proper way to update a custom Notification (which uses RemoteViews) Nov 14 18:21:15 regsvr32, that's your own choice and your own philosophy of life :-) Nov 14 18:21:25 But dont you agree? Nov 14 18:21:31 not really, it depends. Nov 14 18:21:36 anyway!!! Nov 14 18:21:48 Wow, you are being serious o.O Nov 14 18:22:35 Because it takes one to know one, I can recognize idiots everywhere :D Nov 14 18:22:44 adq: were you perhaps talking to me Nov 14 18:23:00 regedit: obv not Nov 14 18:23:07 regedit, nop lol sorry for the confusion Nov 14 18:23:23 Hi, quick question: I can handle the system volume from my application, but if the system volume is muted, then I can't, is it ok to happend that way? Nov 14 18:23:41 weird, regsvr32 wasn't chatting anything at and suddenly -- nvm Nov 14 18:23:56 LuigiBairesDev, it should unmute it if in your application, you raise the volume, iirc Nov 14 18:24:02 say what? at and? Nov 14 18:24:15 *al all and Nov 14 18:24:22 regedit, he changed his nick from AndreasBR to regsvr32 Nov 14 18:24:27 probably attempting a joke on your nick :) Nov 14 18:24:28 Ahh, yeah :D Nov 14 18:24:34 WErr Nov 14 18:24:40 regedit, he changed his nick from AndreasBR to regsvr32 Nov 14 18:25:22 weird Nov 14 18:25:27 What is? Nov 14 18:25:53 i have to reask, until I got at least a no :-) If I move an audiotrack loop from a thread in an activity to a thread in a service, will I gain any benefit? (per example, if GC pops for a long time in the activity, the audiotrack loop in the service might not be disturbed as if it would be in the activity) Nov 14 18:26:19 : I tried to call mAudioManager.setStreamVolume(AudioManager.STREAM_SYSTEM, arg1, 0) unsuccessfully. I also tried to use STREAM_MUSIC Nov 14 18:27:01 I think I'm gonna stop caring if the UI is unresponsive and just go singlethread where I can :S Nov 14 18:27:05 I'm using android 4.0.4 Nov 14 18:27:14 Atleast that way I can update the UI whenever I want to. Nov 14 18:27:21 LuigiBairesDev, i'm also using audio.setStreamVolume(AudioManager.STREAM_MUSIC, progress, 0); Nov 14 18:27:33 which works on 2.3, but iirc there might be a permission which is required Nov 14 18:28:04 thanks! I'll look into that Nov 14 18:28:06 Nov 14 18:28:11 adq: A thread is a thread, it wont make any difference Nov 14 18:28:13 probably this one, but not sure it's related to your issue Nov 14 18:28:16 The gc runs in your process Nov 14 18:28:34 SimonVT, thank you, yes as I thought, i needed confirmation before moving (or not) so much code Nov 14 18:28:45 i can stay lazy :-) Nov 14 18:29:30 Lazyness was invented by a genious Nov 14 18:29:36 Why do it now when it can wait Nov 14 18:29:44 short path, maybe. Nov 14 18:31:44 well shit Nov 14 18:31:46 http://developer.android.com/reference/android/os/UserManager.html#isUserAGoat%28%29 :D Nov 14 18:31:54 isUserAGoat() Nov 14 18:31:55 I figured it out, I told it to open file then read/write too fast Nov 14 18:32:03 shakesoda, old :) Nov 14 18:32:06 is it? Nov 14 18:32:08 awwww Nov 14 18:32:33 ron_frown, but opening a file is not a blocking operation?? Nov 14 18:33:02 new vERY VERY interesting symptom.... reading from device driver in another place is returning a metric shitton of html which is nowhere Nov 14 18:33:06 based on the result, you know if it was opened correctly, and if you can "play" with it, or close it, afaik Nov 14 18:33:11 adq, It didn't work. The funny thing is that if the volume is not completely muted from the system (from the system I mean, when I press the home button and then the volume keys), I can change it from the app. But if it is completely muted, then I can't Nov 14 18:33:24 LuigiBairesDev, :( Nov 14 18:33:27 adq: basically I fire up a thread to handle communication back and forth... sounds like it wasnt ready for communication Nov 14 18:33:33 LuigiBairesDev: I wouldn't want random apps to be able to unmute my device Nov 14 18:33:38 I can implement some syncrhonization shit to handle taht Nov 14 18:33:51 Respect system volume Nov 14 18:34:06 ah make sense, now you said it SimonVT Nov 14 18:34:13 this is why i only touch AudioManager.STREAM_MUSIC, Nov 14 18:34:16 and not the system one Nov 14 18:34:39 any cell phone engineers in here? Nov 14 18:35:13 That's a good point, thanks Nov 14 18:35:27 perhaps you should ask, though I suspect its a question better asked in android-root Nov 14 18:38:45 me? Nov 14 18:39:00 i ned to know if a cell phones connection to the tower istime sliced Nov 14 18:39:02 yes Nov 14 18:39:15 i see my connection peg drop peg drop peg drop constantly Nov 14 18:39:23 and it pegs and drops to about the same rates Nov 14 18:39:44 depends on the technology I am sure, but I dont have the answers here Nov 14 18:39:48 k Nov 14 18:44:01 Why is my BroadcastReceiver sending Toast messages, but not Log messages? Nov 14 18:44:32 check your log verbosity Nov 14 18:44:37 and log filters Nov 14 18:44:58 make sure that logging is enabled for your log tag Nov 14 18:46:10 Okay, hi guys, someone else have problem with the new SDK ?? my avd cant launch, and if it does(if i somehow manage to make it run) my app, even when it is basic app without erros.. always crashes Nov 14 18:46:48 I've filterred it to only my application, tried all applications by tag, all applications by message... can't get anything reported except errors and the KeyCharacterMap warning > 3> Nov 14 18:47:16 It's always set on Verbose just in case something pops up that I might need to look into Nov 14 18:47:45 Log.d("SMS","GetSMS.onReceive()"); Nov 14 18:49:53 Hi, please Help, i upgradet on new SDK, an whenever i crate virtual device with any parameters, it fails to launch , anyone please ? Nov 14 18:55:26 resuming an activity with a surfaceView, the surfaceView is total yblack Nov 14 18:59:26 why event.values[0] gives a different value in two different apps? Nov 14 18:59:42 azimuth Nov 14 18:59:55 same device Nov 14 18:59:57 same orientation Nov 14 19:00:05 different azimuth Nov 14 19:01:46 doesnt make sense to me :| Nov 14 19:02:02 can someone help me with API Demos camera preview? Nov 14 19:03:12 Guys is there a way to modify the fastboot protocol ? let's say I want to add some fastboot commands is it possible ? Nov 14 19:07:36 I have four arrows - left, right, up, down, aligned in a relative layout in their respective locations, and I want a table to fill in the rest of the space between them. How do I do this? Nov 14 19:09:54 The layout is here, for reference: http://pastebin.com/1CagJS05. Nov 14 19:10:20 why is my 3 gig download at a negative percentage and climing? Nov 14 19:10:27 started at 0% and got to about 45% Nov 14 19:10:40 now im at -37% Nov 14 19:15:41 if i'm understanding http://developer.android.com/reference/android/database/sqlite/SQLiteOpenHelper.html#getReadableDatabase%28%29 correctly, does this mean that under normal circumstances, getReadableDatabase() will actually return a writable database? Nov 14 19:17:25 can anyone help me find the intent to launch deskclock? Nov 14 19:17:56 okay, anyone ,please , can you tell me why i cant launch AVD after updating SDK , even when my AVD has 2.1 android ? Nov 14 19:18:49 nevermind my question about event values. i was handling an acceleration sensor as a orientation sensor Nov 14 19:19:08 but there might be other problems too Nov 14 19:19:30 why i didnt debug earlier!!! Nov 14 19:20:02 always trying to brute force myself out of problems Nov 14 19:27:33 Hey, how would you go about writing to 'disk' 20Kbytes of data. im guessing it's too big for shared preferences Nov 14 19:30:10 bnicholson: the source code shows that db handles generally tend towards being read/write; if that makes any sense :-) Nov 14 19:31:01 [look at comments surrounding SQLiteOpenHelper.DEBUG_STRICT_READONLY for more info.] Nov 14 19:31:35 i stopped using sqlite for my game. WAY too fscking complicated Nov 14 19:32:35 hmm...so my problem is that i got a "Can't upgrade read-only database from version X to Y" when the first access to my database was via getReadableDatabase (basically, the same question as this one: http://stackoverflow.com/questions/8376457/android-cannot-upgrade-my-database-when-first-query-is-using-readonly-database) Nov 14 19:32:36 whats an intent i can broadcast that wont do anything Nov 14 19:33:12 the answers in that question suggest that the problem would be fixed by always using getWritableDatabase() Nov 14 19:33:13 howdyyy Nov 14 19:33:21 .########; ;####### Nov 14 19:33:21 #########. .########` Nov 14 19:33:22 bnicholson: right. That's one reason I find using readonly dbs to be kinda pointless mot of the time. Nov 14 19:33:52 but it sounds like getReadableDatabase() would try to use getWritableDatabase() under the covers anyway, or am i misunderstanding something? Nov 14 19:34:14 in which case, getWritableDatabase() wouldn't help either (and the reason that a read-only database was given was because of some other failure) Nov 14 19:34:16 When creating an app that requires a username and password, would you create the password layout as the launcher layout? (If you know what I mean) Nov 14 19:34:16 I440r: sqlite is complicated? =P Nov 14 19:34:16 Doesnt look complicated, but hey.. I havent tried it there yet =P Nov 14 19:34:16 Only used it in minecraft Nov 14 19:34:43 bnicholson: it would be reasonable for the onCreate*() or onUpgrade() to upgrade the permission to be writeable, but that's not how the code behaves. It simply checks and throws an exception instead. Nov 14 19:35:04 i think 99% of all OOP is over complicated Nov 14 19:35:20 like i said -- that's why I find the getReadable() to be pointless much of the time, as I can get unexpectedly bumped into the onCreate() or onUpgrade() path. Nov 14 19:35:21 regsvr32: depends. if there is non-secure content available i would create a log in option Nov 14 19:35:47 Please, can someone help me ? i cant launch Android virtual device after updating android SDK to 4.2.3 , The problem is my android virtual devic wont start on any parameters, on android 2.1 or 4.1 never.. please help me Nov 14 19:35:56 if it's entirely secure content, goign right to authentication is ok but it may be ambiguous/confusing for users if they don't know to expect it Nov 14 19:36:19 bnicholson: I've found much help in just direcly looking at the source, it makes understanding what it does that much less confusing :-) Nov 14 19:36:44 DOSP: are you getting any error messages? Nov 14 19:37:45 kbs: yeah i did - i'm looking at this: http://www.netmite.com/android/mydroid/1.5/frameworks/base/core/java/android/database/sqlite/SQLiteOpenHelper.java Nov 14 19:37:54 nope, when it starting to launch, it crash with classical windows - report -> Dont send , window .. and if i set it up without more than 512 RAM, it starts, but the screen is black, and even after 10 minutes nothing happens i Nov 14 19:38:04 it looks like getReadableDatabase() explicitly calls getWritableDatabase() before it even does an upgrade check Nov 14 19:38:15 ah, never had tha13:35 -!- socket [~a@unaffiliated/socket] has left #android-dev [] Nov 14 19:38:26 and if getWritableDatabase() succeeds, it returns the writable database Nov 14 19:38:32 never had that issue* , but i don't really use windows Nov 14 19:38:33 i was debbugging on AVD since June, so it isnt in my laptop specs.. just it currently updated the SDK , and this happens Nov 14 19:38:48 could try rolling back Nov 14 19:39:03 gotta run, good luck to ya Nov 14 19:39:10 so isn't getReadableDatabase() essentially equivalent to getWritableDatabase()? assuming there were no failures calling getWritableDatabase() Nov 14 19:39:26 how to roll back ? i unninstalled the 4.2.3 SDK, but it stayed on the updated state, just without some features Nov 14 19:41:26 bnicholson, just because something can write to something doesn't mean they can read from it. Nov 14 19:41:34 bnicholson: the code I have looks like this: https://gist.github.com/4074271 Lines 242-247 indicate how it behaves. Nov 14 19:42:04 the getDatabaseLocked() method is called with false, for a readable db. Nov 14 19:42:31 calling getWriteable() after calling getReadable() magically bumps the db to be writeable Nov 14 19:42:59 however, if you are unlucky enough to call getReadable() and not have a db yet (or need an upgrade), *and* your code hasn't called getWriteable(), you get bumped into that block of code Nov 14 19:43:29 in other words, what getReadable() can be (at least for most 'typical' code) unpredictable Nov 14 19:47:30 kbs: thanks - that mostly makes sense, except the condition that would open a read-only database is "if (DEBUG_STRICT_READONLY && !writable)" Nov 14 19:47:59 and it looks like DEBUG_STRICT_READONLY is always false Nov 14 19:48:29 so wouldn't that always result in a writable database either way? Nov 14 19:49:09 bnicholson: nope :-) that's why I said it "tends" towards being read/write, but not always. If you call getReadable(), it in fact puts that flag in there Nov 14 19:49:19 "that flag" == read-only Nov 14 19:49:30 ie, if this is the only call to create the db instance. Nov 14 19:50:05 my personal take-away from looking at that code is that someone once thought it would be cool to have a read and a read/write instance; but it quickly became a clusterfuck and it's now baked into the API. Nov 14 19:50:36 I just avoid the whole mess and use writeable instances throughout, as that is predictable Nov 14 19:50:38 kbs: by "that flag", are you referring to the writable flag? Nov 14 19:50:54 (boolean writable given to the method)? Nov 14 19:51:14 bnicholson: right -- ie, it makes db.isReadOnly() return true Nov 14 19:51:21 i'm wondering about the other boolean used in that condition - DEBUG_STRICT_READONLY Nov 14 19:51:32 has anyone worked with custom Notifications (i.e. through RemoteViews) ? Nov 14 19:51:44 that's always set to false, which mean that condition will always be false Nov 14 19:56:41 bnicholson: agreed :-) however, actual evidence seems to indicate otherwise. So, there's probably more to the story than this. Nov 14 19:58:01 kbs: well a read-only database *is* returned in the following try/catch block if there was a problem opening a writable database Nov 14 19:58:39 i'm assuming that's what was happening as i don't see any other way a read-only database would be created Nov 14 19:59:12 in which case i *think* that getWritableDatabase() wouldn't have been any more useful, because it would have failed for the same reason Nov 14 19:59:23 bnicholson: two things. a) you'd see a message in the log, and b) typically there won't be a problem opening a db in read-only mode Nov 14 20:00:01 kbs: not sure about a) (someone copy/pasted the exception to me, so i didn't get any other context) Nov 14 20:00:04 bnicholson: if I were to take a wild guess, I'd suspect that the debug flag is actually not set. This would reproduce all the symptoms at hand Nov 14 20:00:19 agree with b) - i'm not sure how often this actually happens Nov 14 20:00:29 i suppose it wouldn't be difficult to test this Nov 14 20:00:43 bnicholson: :-) simplest way indeed. Nov 14 20:00:44 i'll create a build now that does an upgrade and makes sure getReadableDatabase() is called first Nov 14 20:00:47 i'll let you know what happens :) Nov 14 20:01:17 looks like there is going to have to be a quick update to 4.2 to fix google voice :/ Nov 14 20:03:04 bnicholson: what I fear is that some version of that code doesn't have that check in it; or is written differently. I think that class has had a bunch of changes in it. So, you may have different behaviour on different versions. Nov 14 20:03:08 hi all, I'm drawing to a canvas and I want to draw a circle filled in one color but with a different color outline - do I need to do that as two seperate calls to drawCircle() or is there some way to do it as one? Nov 14 20:04:54 marsilainen: you'd need two paint instances for that right? don't think there's a way to set a paint to do both a stroke and a fill with different colors. Nov 14 20:05:22 I've never tried using shadows; but that probably won't givet he right effect anyway Nov 14 20:06:29 kbs: yeah, I couldn't see a way to do it either but I thought I might be missing something Nov 14 20:06:42 I guess I'll try drawing one circle inside the other Nov 14 20:07:05 you can just use a stroke and a fill paint with the same circle measurements Nov 14 20:12:10 I'm using startActivity with flags NEW_TASK | SINGLE_TOP | CLEAR_TOP. The activity that's starting the intent is in a different task. Now when this intent causes an existing task to be resumed, the CLEAR_TOP seems to take effect as intended, and I can see onNewIntent being called on the existing instance of the target activity. but the task stays in the background! Nov 14 20:12:57 Hey guys, trying to get a mp4 to load in a VideoView and I'm getting the "Sorry, this video cannot be played." But If I open up the file via dropbox, it play just fine. Any advice? Nov 14 20:15:00 fakingfantastic: try copying the file to sdcard and see if the normal gallery / video player will play it Nov 14 20:15:07 how to make azimuth value stable in spite of changing pitch value? Nov 14 20:15:23 why does this code not work: http://pastebin.com/p81tXHJC The only thing that should the if statement not to execte is if parentID != 0 yet for some reason parentID or 4, 55 and a few other also just don't get passed Nov 14 20:18:44 any pointers on where to find the source for the whole ActivityManager part of the OS? I've found ActivitManager.java on grepcode but most of it seems to be native... Nov 14 20:18:49 kbs: fwiw, it looks like getReadableDatabase() in fact call getWritableDatabase() directly (on my phone): http://pastebin.com/MsPBhcms Nov 14 20:19:00 Why Android requires Java 6? Nov 14 20:19:00 s/in fact/does in fact/ Nov 14 20:19:05 Why cant Java 7 or Java 8 be used? Nov 14 20:19:06 :( :( Nov 14 20:19:08 shit android Nov 14 20:19:21 bnicholson: yep -- seems like it. What version of android? Nov 14 20:21:24 bnicholson: It calls getWriteableDatabase if the database doesn't exist, or it needs to be upgraded Nov 14 20:21:32 in your case, it needs to be updated Nov 14 20:22:43 SimonVT: context is that lines 241-244 at https://android.googlesource.com/platform/frameworks/base/+/47847f3f4dcf2a0dbea0bc0e4f02528e21d37a88/core/java/android/database/sqlite/SQLiteOpenHelper.java is being called in some situations. [actual android/code version being used is not clear.] Nov 14 20:23:19 fakingfantastic: saved to the internal storage, plays just fine Nov 14 20:24:08 as bnicholson already pointed out, that particular version of the code always seems to open the code in writeable mode no matter what. Nov 14 20:25:02 kbs: this is on ICS (droid razr) Nov 14 20:25:58 i remember having huge problems with getReadableDatabase on HTC Desire Nov 14 20:26:34 (and some others) Nov 14 20:27:02 g00s: because of shipping sqlite files? :) Nov 14 20:27:34 Is it possible to use a gridview to get a "shitload" of buttons? Nov 14 20:27:35 p_l: no, HTC enabled WAL - WAL isnot enabled by default on android. you cant open a db read only with WAL enabled on sqlite Nov 14 20:28:44 well, i havent checked if WAL is still not enabled on 4.2 Nov 14 20:28:49 g00s: heh. Didn't it got changed for default? Nov 14 20:28:57 lemme check :) Nov 14 20:29:06 mind you, I find WAL to be very,very useful Nov 14 20:30:37 p_l: i dont see it compiled in on 4.1 Nov 14 20:31:03 hmm, android on github seems maybe it a little old; i guess i need to use repo again Nov 14 20:31:17 get fresh 4.2 stuff Nov 14 20:31:20 I'm new to Android. When using a socket to listen for incoming messages, do you typically run it in a thread separate from the UI thread and ... sleep in between checking if there's data? Nov 14 20:31:27 bnicholson: beats me :-) what I do find is much extensive change for that code; and never know what any given implemention in the wild actually does. I go with the simplest approach and always open in writeable mode. Nov 14 20:31:44 AndreasL: you *have* to use separate thread Nov 14 20:31:46 AndreasL: thread : yes; but i think it would block typically Nov 14 20:31:52 (no need for sleep) Nov 14 20:31:54 oh, it's blocking Nov 14 20:32:06 but as for blocking, it depends on how you access network Nov 14 20:32:13 I think there's java.nio Nov 14 20:32:16 and remember, the way to stop that thread is to close the socket which will interrupt it Nov 14 20:32:25 dont try Thread.interrupt() or something Nov 14 20:32:37 well, I'll need one that continously listens for incoming UDP broadcasts, and then a TCP socket for communication. Would prefer to have both on the same thread Nov 14 20:33:02 well, hopefully you dont plan on getting UDP over 3G :) Nov 14 20:33:08 hehe, no Nov 14 20:33:12 service discovery over wifi Nov 14 20:33:15 ;) Nov 14 20:33:16 g00s: stfu Nov 14 20:33:55 What is the quickest way to get informed when the width of my view is calculated? Nov 14 20:34:07 Quickest meaning, when can I know? Nov 14 20:34:08 OK, I can understand how I'd do it if I only had one socket (simply blocking), but I'm a bit unsure how to proceed when I want to have multiple sockets on the same thread Nov 14 20:34:28 im considering to use my activity onDestroy() for calling my save-stuff-to-disk function. is that a bad idea? Nov 14 20:34:40 yeah Nov 14 20:34:50 g00s... Nov 14 20:34:55 commit important stuff in onPause () Nov 14 20:34:57 socket: hmm... onPause()? Nov 14 20:35:03 explodes: there may be better ways, I usually subclass the onMeasure() on the view of interest. Nov 14 20:35:22 ok, thanks, will try :) Nov 14 20:35:32 Ok. There is also an onSizeChanged thing.. Nov 14 20:35:35 Reading about them both Nov 14 20:35:49 kbs: yeah. though given the ICS source here: http://androidxref.com/4.0.4/xref/frameworks/base/core/java/android/database/sqlite/SQLiteOpenHelper.java#231, it looks like the upgrade exception will only happen when there was an error calling getWritableDatabase() (which would have otherwise returned on line 231) Nov 14 20:38:10 bnicholson: yep, seems like it. Do you know the version used by whoever sent you the stack trace in the first place? Nov 14 20:38:33 kbs: SGSIII, 4.0.4 Nov 14 20:38:51 bnicholson: oh wait... re-reading that code, one sec. Nov 14 20:40:06 bnicholson: nope -- thought I saw a gotcha there, but wasn't the case. 4.0.4 and that exception is indeed a mystery to me as well then. Nov 14 20:40:19 ie, outside of the possibility you've already considered Nov 14 20:41:54 I wonder if there's a schema creation error :-) that would cause a sqliteexception during the getWriteableDatabase() call, and then fall into the weird exception. Nov 14 20:42:35 I guess if and when you have a fuller logcat, you'll know what's going on. Nov 14 20:43:21 i cant believe i'm considering the 'manga guide to linear algebra' Nov 14 20:43:26 >.> Nov 14 20:43:29 kbs: onMeasure takes two int parameters, are those bitmasks? Nov 14 20:43:39 kbs: They dont appear to be actual widths and heights. Nov 14 20:43:42 ctate: recommend any good linear algebra books ? :) Nov 14 20:43:55 kbs: yeah, oh well. thanks for helping to look into this :) Nov 14 20:44:03 Yes, they are masks of the measure mode and size Nov 14 20:44:11 explodes: yeah. Look at the inner View.MeasureSpec class for helpers to unpack the actual measurements. Nov 14 20:44:27 MeasureSpec#getSize/Mode Nov 14 20:45:17 Ah I see Nov 14 20:45:53 bnicholson: :-) fun bug to chase down, curious to hear the results if you track it down Nov 14 20:47:13 how can an application discover what languages are available on the device it's running on? I don't mean available locale information, as that may be a larger set, I mean the UI translations that appear in settings. anyone know? Nov 14 20:47:39 I want to pass the name of activity 1 to activity 2, so that when I click a button in activity 2, it'll take me back to activity 1. However, I'm having trouble putting the activity name into a bundle because in activity two. There is no values.getActivity(x) option... Nov 14 20:48:02 kbs: I think you have the proper solution. Nov 14 20:48:10 kbs: Using onMeasure, I mean. Nov 14 20:48:52 there might be a way to do it without subclassing, but I haven't tried it myself. teh View.OnLayoutChangeListener looks interesting, but dunno much about it. Nov 14 20:50:19 http://developer.android.com/reference/java/util/Locale.html#getAvailableLocales%28%29 seems to be what I want, but it returns locales that the phone UI does not support. Nov 14 20:53:06 p_l: http://www.eecs.berkeley.edu/~bh/sicp.html Nov 14 20:55:02 When I use tab navigation in my action bar and load a url into a web view that contains links I can't seem to click the links, is that normal? Nov 14 20:56:49 g00s: fwiw, the best linear algebra lectures I've heard are from Gilbert Strang, if you can get past some of his mannerisms. http://ocw.mit.edu/courses/mathematics/18-06-linear-algebra-spring-2010/video-lectures/ Nov 14 20:57:39 it's slow and steady progress; so if you give yourself the time to go through all 34 lectures -- you'll be pretty much on top of it.. Nov 14 20:59:14 when my app loses internet connection, I want it to present a message box saying "no connection, please tap screen to retry". I want the activity to be blurred so that all that's clear is the message box. What's the best way to do this? Nov 14 21:00:16 I basically want it to pause the activity while the message box appears Nov 14 21:03:58 anyone know of any play store api (official or non) that I can query number of downloads / upgrades for a given application for a given time range? Nov 14 21:05:09 dont the stats have that? Nov 14 21:06:59 canadiancow: they do- but I need to automate some things Nov 14 21:07:11 play store doesnt have an api Nov 14 21:07:16 public* Nov 14 21:07:29 That's what I was afraid of Nov 14 21:07:44 i need someone english to check my app description :) someone willing to try ? Nov 14 21:08:04 i wonder if someonw with a clue and a recent version of IDA pro could reverse engineer the play store app :) Nov 14 21:08:17 which counts me out on 2 counts lol Nov 14 21:08:34 Guys, please have had someone problems with updating android SDK , and his Android virtual device wont launching or crashing Nov 14 21:13:06 I440r, probably best not to talk about that in here Nov 14 21:13:20 I have an Activity that uses a WebView, and that in turn uses a JavaScript interface. I can get a callback to my Javascript class from the html code, so I can launch a Toast from my webpage. Nov 14 21:13:38 canadiancow, it wasnt a suggeston or something i plan lol Nov 14 21:13:48 it was a "what if" thing lol Nov 14 21:14:00 However, I really want to use the javascript on the page to change from my webview layout to a different layout, like a menu page. Nov 14 21:14:01 still, probably best not to ;) Nov 14 21:14:50 man I was taking a power nap. Then, an interviewer called me a little bit late.. say an hour, in the middle of it. So I woke up from the nap and started getting asked questions about agile... Needless to say I answered honestly :P Nov 14 21:15:49 surprisingly enough he agreed. he liked my opinion on it... Nov 14 21:16:07 I passed the activity context into my Javascript Interface, but when I tried to do something like a = (Activity) mContext; a.setContentView(R.layout.videoview); it said that all WebView methods must be called on the UI thread. Nov 14 21:16:42 Does anyone know how I could get the callback to do something on the UI thread? Nov 14 21:16:52 just create a handler on the UI thread Nov 14 21:17:03 new Handler(Looper.getMainLooper).post(yourRunnable); Nov 14 21:17:06 the in your callback post a runnable to that handler with the code you want to run Nov 14 21:17:46 browser must have its own thread for js or something Nov 14 21:17:55 hmm, okay Nov 14 21:20:21 when I click on an alert dialog button, I want it to refresh the current activity. Is there a command for this? Nov 14 21:22:57 yes, you add a listener to your positiveButton that calls some refresh method in your activity Nov 14 21:23:03 note: you should be using a DialogFragment Nov 14 21:23:41 in which case it's a tiny bit more work, but will function better when you decide you need a new 10 inch layout Nov 14 21:23:53 ok thanks Nov 14 21:24:01 how come the battery / wifi icon in the status bar get to be colored instead of bland white/grey? i want a blinking red dot on my status-bar icon to denote something actively happening / in progress Nov 14 21:24:04 canadiancow: tried polaris at all? Nov 14 21:24:12 no? Nov 14 21:24:21 it's a new map api wrapper Nov 14 21:24:44 iirc, you wrote a pretty nice coverage mapping app Nov 14 21:25:01 oh yeah i saw polaris Nov 14 21:25:07 and yes i did, tyvm :) Nov 14 21:25:23 yeah -- did you ever use my icons? Nov 14 21:25:34 let me know if you need me to fix them or something Nov 14 21:25:42 still debugging my activity stack/task problems. Can anybody shed some light on what the "front door" of a task is? as in "If set, and this activity is either being started in a new task or bringing to the top an existing task, then it will be launched as the front door of the task" From reading ActivityManagerService.java it also seems to relate to the concept of the "root of a task being reset"... Nov 14 21:25:52 i absolutely did use them Nov 14 21:25:57 clearly you havent downloaded the app :P Nov 14 21:26:05 ron_frown: see the recursive fragment support :P Nov 14 21:26:24 fragments inside of fragments? Nov 14 21:26:28 yeah Nov 14 21:26:34 that ought to be nice Nov 14 21:26:42 yo dawg Nov 14 21:26:44 considering I've had to brew my own support for that, and it was SHITTAY Nov 14 21:26:51 no dawgs Nov 14 21:26:56 what circumstances would require fragments in fragments though? Nov 14 21:27:09 ron_frown: if course it was SHITTAY Nov 14 21:27:11 :) Nov 14 21:27:15 ive never personally come across a case where it would have been useful Nov 14 21:27:19 in my case imagine something like a dock flipping through views Nov 14 21:27:21 canadiancow: i'll have to check it out. I haven't had much of a need for it yet Nov 14 21:27:26 viewpager caused me to do fragments in fragemtns before Nov 14 21:27:27 I live in a fairly covered area Nov 14 21:27:30 the fragments in viewpager thing happens a lot Nov 14 21:27:33 and naturally the contents of the view is better off using fragments Nov 14 21:27:35 ah viewpager...ok Nov 14 21:27:42 precisely Nov 14 21:27:51 well i think the old suggestion there was put the viewpager in an activity Nov 14 21:27:56 and then it can host fragments Nov 14 21:28:08 is that a support lib thing, or only in new platform Nov 14 21:28:09 yeah, that was lame :) Nov 14 21:28:41 whats so bad about fragments in a viewpager? Nov 14 21:28:43 ron_frown: 4.2 and support lib; not sure what the support lib does on 3.x/4.x for that though Nov 14 21:28:47 works for me :) Nov 14 21:28:56 nothing. the workaround was lame Nov 14 21:28:57 Is there a way to set the orientation of my Activity to landscape, but also specify which landscape direction (ie. normally landscape will still rotate to be the 'right' way up when you flip the phone - I don't want this)? Nov 14 21:28:58 sweet Nov 14 21:28:58 fragments confuse me :P Nov 14 21:29:17 for the record I had 0 problems with nested fragments. but all my fragments were very simple views Nov 14 21:29:29 I wish they'd figure out a better way to handle fragment lifecycle automatically... if you use the whole setParameters(bundle) you re ok Nov 14 21:29:38 the one time I tried a nested fragment I broke it Nov 14 21:29:40 but lots of documentation doesnt emphasize that as much as it should Nov 14 21:29:48 nested fragments are not supported and totally not a good idea Nov 14 21:29:55 well, I heard they're supported now... Nov 14 21:30:41 i also heard you can detect if the user's a goat Nov 14 21:30:57 that should always return true anyhow Nov 14 21:31:04 unless you are a cow :) Nov 14 21:31:21 so it probably breaks for canadiancow but works for everyone else Nov 14 21:31:28 what Nov 14 21:31:49 canadiancow: http://stackoverflow.com/questions/13375357/proper-use-cases-for-android-usermanager-isuseragoat Nov 14 21:33:05 ohg od Nov 14 21:33:32 got away all these years without anyone knowing I was a goat. Nov 14 21:33:35 now everyone knows Nov 14 21:35:00 check out my new android device http://goo.gl/xHYkf Nov 14 21:36:20 I wonder who Dan Morrill is. Nov 14 21:37:34 kbs, is that a joke? Nov 14 21:38:07 too dumb for that :-) just an honest question based on "git blame UserManager.java" Nov 14 21:38:17 he's in this channel Nov 14 21:38:32 https://plus.google.com/112413860260589530492/posts Nov 14 21:38:56 i wonder who kbs is Nov 14 21:39:10 is there a way to resume my app's main task from another task, and to communicate some information to the activity that's on top at the same time? Nov 14 21:39:23 just an ancient dinosaur Nov 14 21:39:39 I started coding on the ibm 1130 :-) Nov 14 21:40:07 one day I'll tell kids "I started coding on Android" Nov 14 21:40:12 what do you guys use as ORM? Nov 14 21:40:25 nothing :) Nov 14 21:40:38 why nothing, g00s? Nov 14 21:40:51 ormlite Nov 14 21:41:01 but honestly g00s approach is nice Nov 14 21:41:12 when i looked a while back, the orms available were producing unnecessary garbage on the heap Nov 14 21:41:13 I like execSQL(), rawQuery() :) Nov 14 21:41:27 s/unecessary/excessive Nov 14 21:41:32 I see Nov 14 21:41:36 not sure nowadays Nov 14 21:41:56 ormlite needs an upgrade to work nice in a fragment based app, potentially one that uses sherlock Nov 14 21:42:06 otherwise you count your own references. pain. Nov 14 21:42:06 orm? Nov 14 21:42:18 grr Nov 14 21:42:32 I'm trying to get my app to be unified across web and mobile, so that I won't have to go around changing/adding fields to the schemas everywhere Nov 14 21:43:31 ah Nov 14 21:43:43 sqlalchemy can handle sqlite, you might look into using that to generate a schema. Nov 14 21:43:52 isn't that for Python? Nov 14 21:43:59 yeah, but it can still generate a schema for you. Nov 14 21:44:19 ORMLite and GreenDAO can as well Nov 14 21:44:21 and it can do all sorts of reflection stuff, to the point where you could use it to write a simple code generator for your android app Nov 14 21:44:32 Sicp: yah, but is your remote server a sqlite db? Nov 14 21:44:43 no Nov 14 21:44:44 i doubt it, it's probably postgre or mysql or mssql Nov 14 21:44:58 this is why we're trying to use associations instead of direct queries Nov 14 21:45:00 and with sqlalchemy, you could have one set of models to generate both schemas Nov 14 21:45:03 presto-chango Nov 14 21:45:14 hey no magic spells here, this is a dev channel Nov 14 21:45:46 I wrote some sqlalchemy code that reflects the schema and creates a JSON representation of it with foriegn key relationships then graphs it with some javascript Nov 14 21:45:57 it could easily be changed to just create code Nov 14 21:46:17 but that's just my thought. it's a huge undertaking Nov 14 21:46:26 of course Nov 14 21:46:35 it's a sweet api :) Nov 14 21:46:50 I came up empty-handed with "SQLAlchemy for Android" Nov 14 21:46:57 of course, it doesn't exist Nov 14 21:47:04 ;) Nov 14 21:47:04 its almost enticing to use something like xtext to create a DSL which gens code for your content provider or something; its all very repetitive Nov 14 21:47:05 wat. Nov 14 21:47:08 you just said.. Nov 14 21:47:24 too high level, g00s Nov 14 21:47:25 Sicp: I was suggesting you use sqlalchemy to write yourself an active code generator Nov 14 21:47:39 i think tim bray was going to do something along those lines but they talked him out of it :) Nov 14 21:47:42 that way you can resolve the discrepancies between your two schemas by having one set of models Nov 14 21:48:34 anyone know the status of the jdbc stuff in android? Nov 14 21:48:53 maybe I'll make my own sqlachemy for android :)O Nov 14 21:49:04 ormlite is pretty good already though Nov 14 21:49:21 greenDAO is better as I am seeing from code samples Nov 14 21:49:26 much clearer Nov 14 21:49:32 to me, at least Nov 14 21:50:01 I haven't tried it Nov 14 21:50:06 I'll give it a whirl Nov 14 21:50:14 I'll give you a whirl Nov 14 21:50:21 :O Nov 14 21:50:29 yea I done and said it Nov 14 21:50:30 i'm not that kind of guy Nov 14 21:50:42 alright well thanks guys Nov 14 21:50:49 I will get back when I start doing things and nothing works. Nov 14 21:50:59 remember: rawQuery() Nov 14 21:59:11 i having problems with custom linearlayout Nov 14 21:59:13 http://pastebin.com/8ZR5HdpP Nov 14 21:59:25 its just not showing up. Nov 14 21:59:46 it's because you overrode onLayout Nov 14 21:59:49 to do nothing Nov 14 22:00:00 err. Nov 14 22:01:11 canadiancow: ouch. thanks for the catch. I feel dumb. :-/ Nov 14 22:02:26 anyone able to help with this? http://stackoverflow.com/questions/13254758/edittext-cursor-overlapping-last-letter Nov 14 22:04:39 uggghhh Nov 14 22:05:10 teamcity looks freaking amazing, but really doesnt want to have anything to do with library dependencies or proper ant building in a relative path Nov 14 22:05:25 I am sure some of that is that I am ETARDED Nov 14 22:05:34 'proper' and 'ant' in the same sentence, hmmm ;-) Nov 14 22:09:46 tabwidget. sigh. Nov 14 22:16:57 Hi all, anyone have experience using the Facebook SDK for Android apps? Specifically with enabling frictionless requests to send app requests? Nov 14 22:20:50 shreesh, i have an eclipse warning turned on for "empty blocks" for just that reason :P Nov 14 22:22:14 hi Nov 14 22:22:34 ttl: 7400 ftw :) Nov 14 22:22:43 :D Nov 14 22:24:30 guys what would the best way be if you wan't to have a lot of diff code snippets but want to be able to call a return on all of the code not parts of it what would be the best way to go about doing this? Nov 14 22:25:02 let's joke a bit more: ttl=0 time to leave forever :) Nov 14 22:25:30 EVX: are you asking about one ormultiple return paths from a method ? Nov 14 22:25:31 EVX: the best thing to do at that point would be to stop and clearly redefine your problem, then ask again. Nov 14 22:26:15 adq: i hope you won't regret it :) Nov 14 22:26:31 no offense, mate :) ttl=infinte Nov 14 22:26:35 infinite* Nov 14 22:26:55 "Texas Instruments to lay off 1,700 employees in cost-cutting move as it exits the smartphone processor market" oh noes; TI WAT DA FUQ Nov 14 22:27:25 why werent the omaps competitive? was it the GPUs or something else ? Nov 14 22:27:31 systemic slaugher has just begun Nov 14 22:28:02 after OMAP 3 their performance roadmap was clearly uncompetitive Nov 14 22:28:03 could someone help me with implementing custom view which extends LinearLayout? Nov 14 22:29:15 ctate: http://www.gizmag.com/smartphone-infrared-thermometer/25012/ Nov 14 22:29:30 we need infrared and ozone sensor support :) Nov 14 22:29:35 MAKE IT SO Nov 14 22:29:43 oh, and BLE :) Nov 14 22:29:47 OK, thx Nov 14 22:30:34 * ctate read that as a BILE sensor Nov 14 22:30:37 tdignan, well this is how i have it now ->http://pastebin.com/V5RBHWET but what i am after is the ability to run textviews and what not and also return a textview or maybe just grab everything in one spot and just return that so that way everything is included, so as i said my question what is the best way to go about doing this does that explain it better? Nov 14 22:30:43 for measuring outrage, say Nov 14 22:30:43 poor baby brain ~~~(wave wave wave)~~~ phone Nov 14 22:30:52 hehe Nov 14 22:30:56 but nice idea :) Nov 14 22:31:20 g00s: Nov 14 22:31:33 but with IR thermometers already … i dont see how he could have a patent just because its in a phone Nov 14 22:31:39 ^ Nov 14 22:32:01 you really haven't grokked our patent system yet, have you. Nov 14 22:32:09 i dont think i can Nov 14 22:32:13 honestly Nov 14 22:32:18 yeah i don't recommend trying Nov 14 22:32:34 Got a question for anyone feeling up to it. I'm really new to this but either way I have an app I've built to play a shoutcast server just fine but when I add '' in the manifest it no longer plays the music Nov 14 22:32:46 anyideas ? Nov 14 22:32:48 Better the patent system than the IRS code. Nov 14 22:33:09 Bryden: you might think that, but not at *all*. Nov 14 22:33:10 Try a different minimum version? Nov 14 22:33:13 blah3d might be some code that is not valid for that.. Nov 14 22:33:14 srsly Nov 14 22:33:16 nr.. Nov 14 22:33:16 https://play.google.com/store/apps/details?id=com.ookapi.sencare <- this app is using a smart method to detect your blood pulse/bpm | coupling light against your finger and camera to measure the delta in real-time Nov 14 22:33:22 number** Nov 14 22:33:43 I've tried 10 which my phone is on but no go.. if I remove it and run it it works.. but that doesn't help if I want to publish it Nov 14 22:33:50 so he patented it, and THEN he wants smartphone manufacturer's to put it in? Nov 14 22:33:52 adq: the down side is, now you've got goddamn fingerprints on the lens :) Nov 14 22:34:05 yup and also need to not be overexposed to light Nov 14 22:34:12 since it is using the torch led Nov 14 22:34:18 but seriously, i found it smart :) Nov 14 22:34:22 and enough accurate Nov 14 22:34:37 ugh I think just handling self-signed SSL is more code than my entire existing app logic Nov 14 22:34:58 really kinda stumped on it I've been googlign it out all day without any luck Nov 14 22:35:00 hm, the simplest reliable way to resume my app from another task and communicate something to the topmost activity seems to be to simply throw it into an instance field on the Application object and pick it up in onResume()… not exactly elegant but seems to work Nov 14 22:35:10 * adq think dragorn loves to parse ASN.1 :-) Nov 14 22:35:30 g00s, did u see what i was trying to do any thougts? Nov 14 22:35:38 adq: Nah. I did cert hash pinning instead. Nov 14 22:36:19 adq: pin the whole chain on first connect and bypass the whole CA trust model from then on. Nov 14 22:36:34 adq: Most of the time I'll be dealing with self-signed anyhow Nov 14 22:37:59 anyone have any ideas? Nov 14 22:38:03 Yep Nov 14 22:38:04 Go to bed Nov 14 22:38:08 I know I am gonna :D Nov 14 22:39:26 blah3d, have you verified that it comes from minsdk version by using a higher one and not having your issue? Nov 14 22:39:44 I wish lol I really don't get it though if I don't reference API level at all it works perfect and I can listen to the stream but when I put one in the manifest it wont play at all Nov 14 22:39:45 cause if not, it is somewhere else (debug and log should help you) Nov 14 22:40:05 app still runs but no music nada Nov 14 22:41:46 yea I've been diggin around and cant find anythign in the log Nov 14 22:42:47 blah3d, if you are using eclipse, a clean is really needed sometimes, for obscure reasons to me Nov 14 22:43:24 Lemme give that whirl Nov 14 22:43:30 * a whirl Nov 14 22:43:49 i can only make assumption without more info, could be an error which is not visible (like in lint you can disable some error preventing the compilation), etc... Nov 14 22:44:37 is there any specific reason why people use mContext instead of just context as a variable name? Nov 14 22:44:47 nett spliittttt Nov 14 22:44:47 old code naming convention KaiKai Nov 14 22:44:49 mContext is a field Nov 14 22:44:51 what did I do today? modify android to interface with another ultrasound device Nov 14 22:44:53 context is a local variable Nov 14 22:46:06 eheh ron_frown, you're pushing Android in hospital(s) at this rate :-) Nov 14 22:46:08 adq: nope ifI remove it I get red text saying no API level speficied and it the plays the music.. If i specify it lol i get no alerts Nov 14 22:46:10 adq: so if im passing context over should I be naming the variable context and just instantiate it by this.context or mContext? I'd believe they are the same besides personal preference right? Nov 14 22:46:27 blah3d, weird :| Nov 14 22:46:33 adq: industrial applications Nov 14 22:46:35 http://static.olympus-ims.com/data/Image/thickness-gages-s/auto-echo.jpg?rev=B639 Nov 14 22:46:37 shit like that Nov 14 22:46:50 KaiKai, you don't know it but i'm the latest one to ask about code naming convention and taxonomy :-) Nov 14 22:47:04 i know how to adapt to an existing one, but when i code for myself, welcome to chaos Nov 14 22:48:10 KaiKai, according to what canadiancow, imagine you have a field for context, it should be mContext and if you have a function parameter it should be context, resulting in this.mContext = context; Nov 14 22:48:17 +said Nov 14 22:48:23 or just mContext = context; Nov 14 22:48:37 yup this is too explicit, pedagogic Nov 14 22:49:14 adq: min level 1 works but then google play on upload gives 'The new apk's versionCode (1) already exists.' Nov 14 22:49:18 evancharlton, i know a guy who puts this. on everything Nov 14 22:49:20 ron_frown: nice; usb? Nov 14 22:49:21 oO blah3d Nov 14 22:49:25 ron_frown, : Nov 14 22:49:26 :) Nov 14 22:49:27 basic shit is erial atm Nov 14 22:49:30 serial Nov 14 22:49:32 canadiancow: that's a good way to do it Nov 14 22:49:38 adq: correct, but this.context = context would yield the same results. So i'm just going to assume that the "m" is there for less confusion Nov 14 22:49:42 I'm going to reverse engineer the usb if necessary Nov 14 22:49:44 I used to use mFoo but here's why that sucks Nov 14 22:49:46 https://github.com/nicolasgramlich/AndEngine/blob/GLES2/src/org/andengine/engine/Engine.java Nov 14 22:49:50 it breaks your IDE's code gen Nov 14 22:50:06 for refactoring sometimes it is also helping :/ Nov 14 22:50:07 this.foo is awesome, because it's explicit Nov 14 22:50:14 it says exactly what you mean Nov 14 22:50:59 this should only have a mFoo Nov 14 22:51:00 :P Nov 14 22:51:03 Some time ago, in a dark history, we cared about the extra lookup caused by using this.*. Nowadays, with quad cores in our pockets and vm optimizations, it's not really an issue anymore, in fact, it's a quirky pattern. Nov 14 22:51:04 KaiKai, yes but it can lead to ambiguity easily (and also the rename/refactor function might fail depending your tools) Nov 14 22:51:18 better avoid ambiguity, for you or any other working on your code Nov 14 22:51:56 * adq sees that canadiancow is following like a student pointing the fault on the board of its teacher :D Nov 14 22:52:16 huh? Nov 14 22:52:27 hard to traduce, sorry again my french english :/ Nov 14 22:52:29 im following the android style guidelines Nov 14 22:52:36 because im an android dev Nov 14 22:52:46 I have inAppBilling working but i'm trying to refine it a little bit. I noticed that when I try in app billing in Angry Birds it opens directly on top of the application but my application pulls in app billing to the foreground/desktop. I read the docs and it states that singleTop must be off and reflection must be used as well with an activity context given and NOT an application context. Nov 14 22:52:46 I have verified that I have all of those things done but its still pulling to the foreground. Any ideas? Nov 14 22:53:50 awwwww lol Nov 14 22:54:13 perhaps one of the flaws of the java language is that the 'this' keyword is not required to access instance members. Nov 14 22:54:25 tdignan: just like C++! Nov 14 22:54:29 in CPP too Nov 14 22:54:45 * tdignan shudders Nov 14 22:55:52 hey guys is there a way too make the loading of an app to android emu~ go faster?? Nov 14 22:56:05 hardware accel with intel haxm etc Nov 14 22:56:12 search/read/understand Nov 14 22:56:56 EVX: use the time to meditate on what you will do once its started Nov 14 22:57:23 g00s true ;) Nov 14 22:57:29 :) Nov 14 22:58:14 now that i think about it i have been coding for hours and everytime i restart i get 2-3 min breaks so yeah i will keep it like that now that i think about it ;) Nov 14 22:58:15 hahah Nov 14 22:58:23 uhh restart app or emu Nov 14 22:58:31 you know you dont have to restart emu every app launch right? Nov 14 22:59:06 ron_frown say what? Nov 14 22:59:26 you dont have to restart the emu every time you launch the app Nov 14 22:59:30 ohh yeah that i know i don't restart the emu Nov 14 22:59:40 "HP famously brought in breakfast every morning so its engineers would remember to eat." O.o Nov 14 22:59:44 adq: thanx I figured it out ;) Nov 14 22:59:44 but i mean uploading the update of app is what is taking time Nov 14 22:59:53 blah3d, cool but what was it? :) Nov 14 23:00:02 g00s: definitely not the way things work here Nov 14 23:00:37 if they brought in breakfast, everyone would be fat, because they eat a lot and are fat already,and fat + food = fat++ Nov 14 23:00:50 ;) Nov 14 23:00:53 I sync'd up with the latest source from AOSP Nov 14 23:00:57 and now I get a kernel panic Nov 14 23:01:01 I could see people like myself missing meals beacuse I'm so caught up in shit Nov 14 23:01:07 sleepster: need more information Nov 14 23:01:29 oh, I just though maybe someone knew about this... I haven't made any changes at all to the source Nov 14 23:01:40 just did a repo sync; make Nov 14 23:01:44 kernel panic? fix yo kernel :) Nov 14 23:01:45 incredibly vague error Nov 14 23:01:49 but missing meals is not that big of a deal so long u drink a lot of healty drinks while coding Nov 14 23:01:55 and then when I run the emulator, I get: Kernel panic - not syncing: Attempted to kill init! Nov 14 23:01:57 honestly by default aosp doesnt build kernels Nov 14 23:01:58 sooo Nov 14 23:02:09 you pick the right option at the lunch menu? Nov 14 23:02:10 yeah, the kernels are all prebuilts in AOSP Nov 14 23:02:43 I was so absorbed for so many years, that i was diagnosed as "starvation" (cachexia) Nov 14 23:02:45 evx I drink redbull and lots of it Nov 14 23:02:47 so don't forgot to eat lol ! Nov 14 23:02:49 lots of vitamins and minerals Nov 14 23:03:01 and by that I mean sugar and caffeine Nov 14 23:03:03 adq: happens to me some days Nov 14 23:03:05 ron_frown hahaha epic u said that just as i was about to take a sip from a readbull ;) Nov 14 23:03:36 now i have same problem as fat ppl but in the reverse side, it takes monthes for me to gain few kilograms lol Nov 14 23:05:54 i'll send you a few of my extra kilograms thx HTH Nov 14 23:05:59 adq: eat more gingerbread, ice cream sandwiches, and jellybeans. Nov 14 23:06:08 avoid old donuts though. Nov 14 23:06:18 god damn it ice cream sandwiches are a thing of beauty Nov 14 23:06:19 I do now, thx :-) Nov 14 23:06:37 what matters is to be happy anyway :) Nov 14 23:08:26 I can't seem to find out how to force sync stuff using repo Nov 14 23:08:32 is this possible? Nov 14 23:09:00 maek clean Nov 14 23:09:06 one way Nov 14 23:09:20 well I delete some files Nov 14 23:09:27 on accident Nov 14 23:09:33 and when I do: repo sync Nov 14 23:09:38 it doesn't sync those files at all Nov 14 23:12:18 Chainfire: ping, check pm :) Nov 14 23:12:44 sleepster: it does, but it considers your deletion to be a change you have in progress Nov 14 23:12:50 git reset --hard Nov 14 23:13:09 will wipe all your changes and bring back the current HEAD state to your working file set Nov 14 23:13:51 thanks ctate .. I am using "repo" though.. from my understanding, it looks like repo is just a python wrapper around git Nov 14 23:13:57 yes Nov 14 23:13:58 so would this be. repo reset --hard Nov 14 23:14:00 no Nov 14 23:14:35 repo is a wrapper for dealing with the multiple-project aspects of Gerrit, and certain kinds of things that rely on knowing what upstream master you're working with, etc Nov 14 23:14:45 what you're describing isn't a repo issue, it's straight git Nov 14 23:14:54 so you use git commands to get it back Nov 14 23:15:00 ah I see Nov 14 23:15:07 thanks Nov 14 23:15:08 there are almost no repo commands that do "just what git does" because that's not the purpose Nov 14 23:15:15 the one big exception is "repo rebase" Nov 14 23:15:50 so when I use git though, it can't seem to find the git files in the repository Nov 14 23:15:52 which exists because if you use raw git rebase but forget which upstream master you're currently supposed to be working with, you will cause MAJOR havoc when you ultimately push a CL that, say, rebased master on top of ICS. Nov 14 23:16:04 sleepster: how are you using git? Nov 14 23:16:18 like i said, as long as it's okay to just wipe your current branch's state and start over, try this: Nov 14 23:16:18 gi Nov 14 23:16:19 t Nov 14 23:16:20 oh I am just in the root directory where the main .repo file is Nov 14 23:16:29 oh, no; you have to be in the affected git package Nov 14 23:16:35 the src of the root tree Nov 14 23:16:55 can you give an example of a file you mistakenly deleted? Nov 14 23:17:23 sure, I accidently deleted $ROOT/build/core/main.mk Nov 14 23:17:35 I wanted to output it and accidently removed it Nov 14 23:17:35 so: cd build Nov 14 23:17:35 hah Nov 14 23:17:43 if I put my app in the Google Play store, and I sell items in the app, do I have to use Google's in-app billing? Or could I use PayPal's api? Nov 14 23:17:48 git show Nov 14 23:17:49 Recuva... Nov 14 23:17:58 that should tell you "hey you've deleted this file, still not committed" Nov 14 23:18:01 git reset --hard Nov 14 23:18:05 that should put it back Nov 14 23:18:24 thanks ctate Nov 14 23:26:26 hmm. the file comes back but it still does a kernel panic.. I guess I will just wipe and reload Nov 14 23:30:24 oreilly statistics in a nutshell 2e 50% off :) Nov 14 23:31:06 I don't need a book to tell me how to make up numbers Nov 14 23:31:27 lies, damned lies, and ORA daily deals! Nov 14 23:31:36 :) Nov 14 23:39:08 ctate: totally OT to your discussion and probably even this channel.. but have there been any discussions about using git-submodule instead of repo? i know most of google is probably pretty entrenched in the repo workflow.. but it seems (naively) like git-submodule does the same ultimate task as repo... but in a less confusing manner Nov 14 23:39:35 sorry if that's actually a common "not this again" question Nov 15 00:01:04 =) Nov 15 00:08:03 I need to fix my activity orientation to landscape, but not allow it to flip vertically (as in this mockup: https://dl.dropbox.com/u/29027386/tmp/orientation.png). Is this possible? Any ideas much appreciated! Nov 15 00:15:00 Maybe android:screenOrientation="reverseLandscape" is what I'm looking for? Nov 15 00:15:41 why on earth would you want to prevent 180 flips in landscape? Nov 15 00:16:13 (it's very hostile to people with other dominant handness than you expect) Nov 15 00:16:58 maybe for a game Nov 15 00:17:07 no Nov 15 00:17:20 if they have a wired headset plugged in, you'll piss them off Nov 15 00:17:22 guaranteed Nov 15 00:18:01 oh he only wants it landscaped one way Nov 15 00:18:14 or if they have, as pictured, a hard trackball Nov 15 00:18:37 thats silly as there are so many different device designs Nov 15 00:18:55 ctate, lol Nov 15 00:19:01 i just looked at the image Nov 15 00:19:14 It must suck to own a HTC ChaCha Nov 15 00:20:04 ctate: It's not exactly user facing (https://dl.dropbox.com/u/29027386/tmp/nexus.png). Nov 15 00:24:31 bah, I feel so guilty that the Android version I did is much worse than the iOS version :( Nov 15 00:24:52 ejcweb, even if it is completly silly and depending on the device you might want the "other landscape", it's possible via android:screenOrientation Nov 15 00:25:25 landscape should not allow any rotation Nov 15 00:26:12 s/want/have/ Nov 15 00:27:58 adq: Thanks, I've discovered that reverseLandscape does what I want. Nov 15 00:27:59 landscape or reverseLandscape as you said, but you have not guaranty that on a device the reverseLandscape will not be the landscape on another one Nov 15 00:28:13 Yeah, it's only this particular device, so that's no concern. Nov 15 00:29:14 * adq is thinking ejcweb will put his device in a space-lab centrifuge :D Nov 15 00:33:38 adq: Pretty much. Nov 15 00:38:36 argh, I hate eclipse :( Nov 15 00:41:02 is there a better way to close the notification drawer than Intent.ACTION_CLOSE_SYSTEM_DIALOGS Nov 15 00:47:03 in my database open helper class, there are quite a few tables to create. Nov 15 00:47:16 how can I store the sql file in the project and run that? Nov 15 00:52:09 you can package it as a raw asset and then copy it out at first runtime Nov 15 00:57:59 got a quick question that's been driving me crazy. maybe i just can't figure out the correct terms for google. where can i find the hardware requirements for each android version? Nov 15 01:01:04 meltybits: hm, that is an interesting question. is that in the CDD? Nov 15 01:03:05 yeah just found that bout 20 seconds after my question. Nov 15 01:03:08 i'm not actually sure there are stated minimum requirements Nov 15 01:03:24 340 MB RAM is my answer Nov 15 01:03:26 but yes, the CDD is relevant Nov 15 01:03:30 ok where'd you find that? Nov 15 01:03:36 CDD Nov 15 01:03:49 ah, 7.6. got it, thanks! Nov 15 01:04:08 should i know what CDD is Nov 15 01:04:51 I'm using ScaleType.CENTER_INSIDE for an ImageView, but also want it to scale up images that are smaller than the view dimensions. I'm having difficulty working out how. Any thoughts? Nov 15 01:04:53 Compatibility Definition Document Nov 15 01:05:07 not relevant for app development, really Nov 15 01:05:11 http://source.android.com/compatibility/index.html Nov 15 01:05:15 ctate: thanks. do you know if the sqlite class can take a full sql dump file Nov 15 01:05:39 ahh i seee thanks Nov 15 01:05:45 i am not a person to ask about SQL, Anoia :) Nov 15 01:05:48 it is if you're rooting your device to upgrade to a newer android version Nov 15 01:05:56 ok, thanks :) Nov 15 01:15:52 ctate, if only all devices adhered to the cdd... Nov 15 01:15:59 even the galaxy nexus doesn't :) Nov 15 01:19:15 what part of the CCD does the GN violate? Nov 15 01:19:24 CDD* Nov 15 01:19:33 well, depends on how you interpret, a little bit Nov 15 01:19:48 specifications are created so manufacturers have something they can ignore Nov 15 01:19:51 samsung devices "implement" the APIs to provide neighboring cell information by returning an empty list Nov 15 01:20:03 whether this counts as "implementing the API" is then subject to debate Nov 15 01:20:11 cdd? Nov 15 01:20:42 scroll back 20 minutes :) http://source.android.com/compatibility/index.html Nov 15 01:20:46 oh, read above :) Nov 15 01:21:06 the formal compatibility definition document that a vendor has to comply with in order to brand as "Android" and ship the Play Store and so on Nov 15 01:21:38 ive skimmed the entire doc before Nov 15 01:24:07 Anoia: in theory, if you save the ".dump" output from within sqlite, you should be able to replay it back to recreate a new db elsewhere. Nov 15 01:24:44 that's what i'm thinking Nov 15 01:24:57 so a full dump to create the initial db Nov 15 01:25:14 then smaller "upgrade" dumps for each version change Nov 15 01:26:09 interesting. Does anything in the db change based on user actions? Nov 15 01:26:12 the docs aren't clear whether i can just feed the entire dump into execsql Nov 15 01:26:26 oh, contents will Nov 15 01:26:46 but the upgrades will only chnage the structure Nov 15 01:26:58 which is a fixed set of commands Nov 15 01:27:01 oh, so you want to do a schema dump, not the entire data Nov 15 01:27:27 yeah, sorry Nov 15 01:28:04 no - just clarifying for myself :) '.schema' should work, as long as you don't do too much sqlite version specific stuff. Nov 15 01:28:07 a schema dump on my dev machine and embed them into the apk rather than long lists of sql statements Nov 15 01:28:36 ok, i'm not hot on java so i'll do some playing Nov 15 01:28:40 thanks Nov 15 01:29:23 most people do it 'by hand', because at some point they need various table/field-name constants in order to actually refer to data returned from selects and so forth Nov 15 01:29:58 but .schema should work as well -- it doesn't do much more than what you miht otherwise encounter using sqlite from the command line Nov 15 01:30:30 that's all it need mostly Nov 15 01:30:53 I just hate writing long lists of statements in the sql code Nov 15 01:31:12 when the schema is already defined in a dump file (for easy source control) Nov 15 01:31:32 gotcha. Upgrades might be a bit tricky - you'll need to 'diff' the schema, or if you add new columns and so forth, it won't run correctly -- but that's not specific to java of course; as i'm sure you have probalby already considered. Nov 15 01:31:49 yeah Nov 15 01:32:06 just again, it'll just be a series of alter tables or update queries Nov 15 01:32:24 *nod* good chance it will work if it works on the command line :-) Nov 15 01:32:58 I need to figure out assets now and if i can feed a full dump to execsql Nov 15 01:32:59 I'll report back if I remember :) Nov 15 01:33:00 thanks Nov 15 01:47:52 Anoia: oh, one thing I just realized is that you'll need to separate the individual statements from the dump. execSQL() won't let you run semi-colon separated statements. Nov 15 02:47:10 http://joshuawise.com/horndis Nov 15 02:47:35 USB tethering driver for Mac OS X Nov 15 02:51:43 guys where is getUnicodeChar in the NDK :S Nov 15 02:54:46 is there a way to create a secure channel between two apps that cannot be tampered with even with root access Nov 15 02:54:54 I've got an Activity which shows a preview from the camera on a SurfaceView. If I set the orientation of my activity to reverseLandscape (instead of just landscape), the camera preview appears flipped vertically. Nov 15 02:55:03 Is there a way to stop this? Nov 15 02:55:31 sleepster: not really, from a determined attacker Nov 15 02:57:05 sleepster: If you have root, you can debug the data and either 1) Examine the data before it's encrypted/sent, or 2) Pull out the key from memory and then decrypt the traffic **** ENDING LOGGING AT Thu Nov 15 02:59:58 2012