**** BEGIN LOGGING AT Mon Oct 29 03:00:01 2012 Oct 29 03:01:43 then it's not XML Oct 29 03:33:21 If I have a an app that is largely for viewing text, and I'd like the user to be able to chose between black-on-white or white-on-black, this would be a thing to do with themes? Oct 29 03:39:52 yes Oct 29 03:40:18 make two themes, call setTheme as the very first thing in your onCreate Oct 29 03:41:33 Ahh okay. thanks! Oct 29 03:48:10 i want to send a report of each exception that occurs on any of my end-users phones when they use my app. how can i catch all of the exceptions that occur within my app, perform an action, and send them on? Oct 29 03:52:05 you can create an uncaught exception handler Oct 29 03:52:54 or just use one of the million third-party services Oct 29 03:57:34 If I am setting the actionbar to be transparent, is there something else I have to add to the styles theme (I have android:background / background = @androidtransparent)? Right now there appears to be a tearing issue so that the actionbar is split into two bars, with the top bar tearing and the bottom part blending fine. Oct 29 03:58:50 the action bar is transparent by default in the Holo theme Oct 29 03:59:12 tearing issue? Oct 29 03:59:16 pics or gtfo Oct 29 03:59:21 Heh Oct 29 04:00:33 Well it appears to be appearing on the n7 only Oct 29 04:03:54 Is there a way to get the vertical divider to appear without using "withText" in the action bar sherlock? Oct 29 04:20:58 I've got the GSM Galaxy Nexus from the Google Play store. Does anyone know where I get the USB drivers for it from for Windows 7? Oct 29 04:21:24 It doesn't show up under adb. Oct 29 04:22:52 http://lmgtfy.com/?q=galaxy+nexus+windows+7+driver Oct 29 04:32:52 hey guys Oct 29 04:33:51 so I've a problem with view pager, my tab basically has a listfragment which is listing a directory structure and he can browse deeper Oct 29 04:34:10 on tabreselected I show the top level folder, basically I'm using reselected as tab level home Oct 29 04:34:30 but when the user rotate the device the on tabreselected gets called Oct 29 04:43:36 Don't know if anyone is on right now but I'm having an odd memory issue. I'm using an LRU cache with bitmaps and it seems to work great on most phones but I decided to test with a Motorola RAZR and was getting OOM errors, even though there was plenty of free space in the heap. Has anyone seen this? How should I go about debugging this? Oct 29 05:13:18 jayd16: are you using fragments? Oct 29 05:17:49 in some parts of the app, yes Oct 29 05:18:19 I'm using the support package fragments though Oct 29 05:18:55 brickhead: try setting configChanges on your activity Oct 29 05:19:50 Well, I can get it to crash but flipping back and forth between two activities and they happen to be protrait only Oct 29 05:21:11 jayd16: so I had a similar issue, apparently when fragment was stopped the bitmaps were not reclaimed Oct 29 05:21:28 on destroy of your fragment try mBitmap.recycle() Oct 29 05:21:44 see if that helps Oct 29 05:22:59 I have the bitmaps in an LRU cache so its not easy to predict when they're out of scope Oct 29 05:23:49 I'll have to play with it but its really weird that this only seems to happen on a RAZR. The several other test devices I've played with all work fine. Oct 29 05:24:32 jayd16: so android allocates only certain amount of heap size for bitmaps, so maybe you're exceeding it Oct 29 05:25:27 codebutler: yeah I don't want to handle orientation changes by myself Oct 29 05:26:17 Accordding to the DDMS the heap has plenty of space Oct 29 05:26:56 jayd16: like I said android constraint amount of heap bitmaps can use Oct 29 05:27:57 jayd16: http://stackoverflow.com/questions/6681988/bitmap-image-out-of-memory Oct 29 06:01:48 can someone explain to me the reason why you would want to use a ScrollView? Oct 29 06:01:49 ladies and ladies? Oct 29 06:01:57 hello Oct 29 06:02:07 so you can toss your layout in there, set physical dimensions, and then let the scroll view handle panning around Oct 29 06:03:03 ron_frown: ahh ok..so if I just have a vertical arrangement of elements, if I didn't use a ScrollView, and the size of all the elements exceeded that of the vertical screen dimension, could I still scroll it up/down? Oct 29 06:03:30 yep Oct 29 06:03:43 im thinking I should ditch the ScrollView Oct 29 06:04:04 i don't think it's needed here and actually cuases a limitation in that it can only have one child Oct 29 06:05:18 thats not really a limitation Oct 29 06:05:23 just makes you think about how its gonna be used Oct 29 06:05:29 that one view could be a linear layout Oct 29 06:06:00 I dunno why its here honestly Oct 29 06:06:50 tnzr perhaps multi device compatibility Oct 29 06:07:33 would my earlier question apply to any device? Oct 29 06:07:52 i guess I shoudl ask that if you can scroll a non-scrolview on 4.0+ can you do it on 2.3 as well? Oct 29 06:08:18 i should also add that horizontal scrolling should not be an issue here (in case that's one of the advantages to using a ScrollView) Oct 29 06:08:37 yes Oct 29 06:08:43 I meant more screensize than anything else Oct 29 06:10:37 oh damn ok Oct 29 06:10:38 I see Oct 29 06:51:24 Guys is there a backward compatibility for roboto Oct 29 07:06:54 My app is using OpenGl on the native side. But the CPU is only 400mHz. Sometimes when app need to draw many details, CPU consumption is 100%. Is it possible to limit CPU usage of whole application process? (e.g. my app couldn't use more than 40% of CPU ) Thanks. Oct 29 07:07:03 hi.. can i retrieve a pendingIntent after a restart or do i have to save my stuff in sharePreference and create a pendingIntent again after the restart . ? Oct 29 07:13:22 pindziukou: about all i can think of, is to get the clock when you enter the paint function, and then if the time spent exceeds a certain number, exit early and delay things, but that may leave frames half rendered Oct 29 07:13:43 pindziukou: you may also need to adjust that number, to hold an avg of 40% Oct 29 07:15:12 thanks. i will try it. Oct 29 07:18:49 Hello, anyone have experience with web authentication? I'd like my app to connect to a webserver and get the user profile and stuff. I'm not sure how to implement the authentication part. anyone ever done this before? Oct 29 07:19:59 ron_frown: still there ? Oct 29 07:20:06 yessir\ Oct 29 07:20:28 see any problems running windows 8 in latest virtualbox, but on an older MBP (cure 2 duo) Oct 29 07:21:17 the os itself, probably not... but the problem is wpf stuff Oct 29 07:22:34 hardware accelerated gfx stuff specifically for dx is balls Oct 29 07:22:49 i was just wondering if my core 2s had the required virtualization instructions required Oct 29 07:23:02 have to do more digging Oct 29 07:23:29 I am running a 2008 mbp Oct 29 07:23:44 it runs win7 pretty damn well Oct 29 07:23:54 win8 so far seems like a lot of win7 with fluffy bits plopped on top Oct 29 07:25:18 ok thx :) Oct 29 08:54:12 viran: you can use like, Basic authentication Oct 29 08:54:28 viran: you'll want to store your credentials using the AccountManager Oct 29 08:54:52 read up on http basicauth, accountmanager, and consult the docs for your http library of choice. Oct 29 08:55:16 * clever looks for accountmanager docs Oct 29 08:55:32 alternatively, you can just stick the username and password in the URL. Not a real big deal if you're using https, but HTTP has things for this. Oct 29 09:20:47 Is the notification bar always 25dip high? Oct 29 09:28:12 Ok, question - In my app I hide the notification bar via getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); Oct 29 09:28:58 The problem with this is that my entire layout gets shifted up and down as I hide and show the notification bar... I however want to replicate the behavior of the android gallery application, where the notification bar is hidden, but the layout isn't shifted. Oct 29 09:29:22 In truth, the notification bar in the native gallery app is still there, the top area of the screen is unusable, but the content of the notification bar gets hidden. Oct 29 09:38:22 hello i am learning adobe flex air for android. where can i found some sample codes? thanks Oct 29 09:42:35 xyy: adobe.com probably Oct 29 09:58:12 well, this is different for sure :) http://www.gizmag.com/adzero-bamboo-smartphone-spec/24762/ Oct 29 10:26:14 I've got a HorizontalScrollView with a TextView and an ImageView. when i run hsv.fullScroll(HorizontalScrollView.FOCUS_RIGHT); it scroll to the right up to the edge of the TextView but does not include the ImageView. why is that? Oct 29 10:26:27 how do i scroll the view to the maximum right? Oct 29 10:35:16 Hey fellas. Oct 29 10:35:52 I have the weirdest problem with actionbarsherlock. After I updated it to the new version, the up button no longer works correctly on devices < Android 3. Oct 29 10:36:18 Tapping it does nothing, but if I then click another action item, the up action gets performed. What is going on here? Oct 29 10:36:49 Is this a known bug or am I doing something wrong? Does anyone have a working up button in the latest ABS on Android 2? Oct 29 10:50:23 guys, my app allows my web users to log into their web account. how should i do the user authentication part? the more i read about OAuth i think it's the wrong solution Oct 29 10:51:43 it depends on what you want Oct 29 10:51:59 if you want simplicity, OAuth is definitely not the way to go Oct 29 10:53:05 simple is good, what is the way to go? Oct 29 10:53:35 you could simply do the same thing as a browser would Oct 29 10:53:58 post with username/password, store cookie that's returned Oct 29 10:55:01 how secure is that? Oct 29 10:55:14 are any informations out for the nexus 10? Oct 29 10:55:34 viran: define 'secure'? Oct 29 10:55:52 well, posting user/password could be sniffed easily i guess Oct 29 10:55:56 viran: you shouldn't post the password in plaintext Oct 29 10:56:20 monsti: well, the manual. Oct 29 10:56:22 and you should probably use https just to be sure Oct 29 10:57:34 the bezel on the n10 looked ugly as hell, almost like samsung went waaay out of the way to not look like apple. good thing they stopped short of making the thing ovular Oct 29 10:58:03 g00s: it's the same as the modified bevel on the modified galaxy tab 10.1 Oct 29 10:58:14 g00s: after they had to change it due to the apple lawsuit in germany Oct 29 10:58:40 MDijkstra: i was asking about the 4.2 model Oct 29 10:59:41 why not just google it? Oct 29 11:00:28 MDijkstra: thx Oct 29 11:01:23 g00s: advantage though is that you can't block the speakers with your fingers Oct 29 11:08:49 Hello Oct 29 11:09:13 I have problem with AdapterView Oct 29 11:09:34 can anybody help me? Oct 29 11:09:34 what was the magic again to push menu items to the secondary (bottom) status/menu bar, even if there is enough place in the primary one? Oct 29 11:10:16 ...using ABS Oct 29 11:13:19 ah, it was android:uiOptions="splitActionBarWhenNarrow" Oct 29 11:37:16 meh. why you can't have text _and_ icon for each item in the actionbar? Oct 29 11:38:58 I think you can, at least on large screens. Oct 29 11:39:29 Ge0rG, does ABS up button work for you on Android 2 devices? With the latest ABS release? Oct 29 11:39:37 UnbertKant: didnt test it yet Oct 29 11:40:01 I have only three items which I want to put into the secondary actionbar in portrait mode on a phone. there is plenty of room for it, but the actionbar ignores "withText" :( Oct 29 11:40:23 there are some workarounds discussed on SO, but they all suck Oct 29 11:40:36 I do not want to create a view layout for every individual button Oct 29 11:40:49 maybe I need some monkey coders to do such stuff for me... Oct 29 11:41:33 Just call doWhatIWant() Oct 29 11:41:45 It's only available in Jelly bean though. Oct 29 11:51:18 sigh. they have an example with icon _and_ text in http://android-developers.blogspot.de/2011/04/customizing-action-bar.html but do not describe how it was created Oct 29 11:52:30 i want to show this unicode symbol on a button, http://www.fileformat.info/info/unicode/char/212f/index.htm but i get a blank button instead. any way around that? Oct 29 11:53:00 Maybe it's lacking in Android's default font? Oct 29 11:53:35 You can include fonts into your project to get that character. Oct 29 11:53:57 either that or simply include it as a png Oct 29 11:55:14 meh. $customer demands the action bar to look like on iphone. Oct 29 11:55:29 why oh why don't people get platform-specific design guidelines Oct 29 11:56:26 i have a custom cursortreeadapter... newGroupView and bindGroupView are called. Oct 29 11:56:41 but getChildrenCursor and newChildView are never called Oct 29 11:57:13 also the list is shown correctly, but not expanded Oct 29 11:57:57 what could be the reason? simplecursortreeadapter works perfect. Oct 29 11:58:35 I'm on OSX 10.8.2. I just downloaded the sdk and launched `android sdk'. the "Install packages" button is grayed out so I'm pretty sure I can't install anything Oct 29 11:58:52 when I run android update sdk --no-ui I get two instances of "Error: null" Oct 29 11:59:01 so I feel like that might have something to do with it Oct 29 12:06:55 I'd like to copy the gallery app basically exactly as is except for using my own data source and only having a single row. What's a good way to do that? Oct 29 12:14:31 how can I add a onitemclick function to a custom arrayadapter? Oct 29 12:19:59 Mikevin: adapters don't implement onclick behavior Oct 29 12:21:51 Can I get a reference to the application context without already having a reference to a context? Oct 29 12:22:14 Mikevin: have your activity/fragment implement OnItemClickListener Oct 29 12:22:35 I see but i'm looking for a similar use, I want to save/load checkbox positions when filtering a listview Oct 29 12:22:46 someone suggested making a custom arrayadapter Oct 29 12:23:30 MDijkstra thanks, any way to implement something like this in only an adapter? Oct 29 12:23:57 Mikevin: not that I know of, but you can simply delegate the behavior to the adapter Oct 29 12:24:20 Mikevin: ie, make your custom adapter implement OnItemClickListener Oct 29 12:24:32 and set it as the onitemclicklistener of the listview Oct 29 12:24:45 ah that makes sense Oct 29 12:25:15 Mikevin: in general an adapter is only concerned with formatting views though Oct 29 12:25:18 not with behavior Oct 29 12:25:23 was trying to make it easily reusable so hence trying to keep it to a single class Oct 29 12:25:36 MDijkstra ah thanks, still getting a feel for how they interact Oct 29 12:25:51 Mikevin: well, imo the proper way to do this is simply store a reference to the adapter in your fragment Oct 29 12:26:26 really surprised that I couldn't find this kind of functionality somewhere Oct 29 12:26:27 and expose the data the fragment needs to handle a click by adding methods on the custom adapter subclass Oct 29 12:27:01 so instead of letting the adapter handle the event, the fragment handles it but asks the adapter for specific information that only it knows Oct 29 12:27:19 ah yes, thanks a lot =) Oct 29 12:27:22 (in my case a row -> (section, row) mapping) Oct 29 12:44:19 is there any way to set style programmatically ? Oct 29 12:51:26 partially, you can set a style programmatically that you defined in XML. Oct 29 12:52:55 UnbertKant: i have extended EditText class, and i would set for it the same style as TextView Oct 29 13:04:41 Is there a new google announcement day? Oct 29 13:11:07 anyone here use AndEngine? Oct 29 13:14:12 Hi, I get the error message "Only the original thread that created a view hierarchy can touch its views" when I am trying to hide some layout like something.setVisibility(View.INVISIBLE); in timertask. what is the right way of doing it? Oct 29 13:14:35 I need something to disappear after 5 second Oct 29 13:16:19 here is the code http://pastebin.com/EVSmHK3K Oct 29 13:17:37 torniker: http://stackoverflow.com/questions/3072173/how-to-call-a-method-after-a-delay Oct 29 13:17:43 see answer by kontinuity Oct 29 13:18:06 torniker: the reason this doesn't work is because you're trying to touch the UI from a background thread Oct 29 13:18:10 which you should never do Oct 29 13:20:52 MDijkstra, thank you :) Oct 29 13:21:16 MDijkstra, it works Oct 29 13:26:49 stupid question... how does one save a matrix in a Bundle? Oct 29 13:36:56 you can put any object in a bundle Oct 29 13:37:04 use the method that takes an object. Oct 29 13:37:37 you mean putParcelable? Oct 29 13:37:41 I get a cast error Oct 29 13:37:43 android.graphics.Matrix cannot be cast to android.os.Parcelable Oct 29 13:38:26 You can save any objects to bundle which implements Parcleable interface Oct 29 13:38:38 and apparently android.graphics.Matrix doesn't Oct 29 13:39:59 you can simply get the 9 values out as floats using getValues Oct 29 13:40:09 that's what I figured... but I still somehow have to retain that matrix between saved states, so I need to put it into that bundle. Oct 29 13:40:16 put them in a bundle, and later recreate the matrix using setValues Oct 29 13:41:05 either that or put the arguments used to create the matrix in the bundle Oct 29 13:41:09 instead of the matrix itself Oct 29 13:47:37 MDijkstra - this is weird... getValues() doesn't return anything, but takes an array as an argument Oct 29 13:47:48 so I pass it the array of floats in which I want to save the values? Oct 29 13:49:18 hey guys Oct 29 13:49:38 any tips on webview security best practices in terms of caching and the DB? Oct 29 13:53:24 Tee_Pee: yep Oct 29 13:54:29 Hello Oct 29 13:55:24 hai Oct 29 13:57:22 Is there anybody from Russia? Oct 29 13:57:31 lots of people Oct 29 13:59:25 I need some help, but can't formulate problem in English. Oct 29 14:00:57 is an InputMethodService by definition always a system-wide available facility, or can I make an IME just for a specific app of mine? Oct 29 14:05:42 log cat text is to small for my output any way to make it bigger ? Oct 29 14:23:36 tagrudev: http://wiki.cyanogenmod.com/wiki/Logcat Oct 29 14:24:18 tried the file output same thing Oct 29 14:24:33 nvm I will debug it manually Oct 29 14:24:53 Oh too long Oct 29 14:25:03 Not sure if you can do anything about that. Oct 29 14:36:24 so, my imageview ignores its layout_width and layout_height (both set to fill_parent) after I set scaleType=matrix Oct 29 14:36:31 is there a way to avoid that? Oct 29 14:39:41 anyone know... if I have res/values/foo.xml, is there any way to iterate over R.foo.*? Oct 29 14:42:37 Leeds: look at LibSlideMenu Oct 29 14:42:46 Leeds: they implemented a sidebar menu that parses a menu xml resource Oct 29 14:43:05 Leeds: bet that has code that'll do something similar to what you want Oct 29 14:54:44 man that lib has some ugly examples Oct 29 15:05:54 Can I have multiple mainfest statements in a AndroidManifest.xml file Oct 29 15:06:50 docmur: that wouldn't really make sense... Oct 29 15:07:14 Okay but if I have multiple packages in my app then how do I link them all in the one mainfest? Oct 29 15:07:30 dragorn: sorry, thanks, had a look at that, not really what I was after - but I guess that might mean there is no easy way :) Oct 29 15:07:32 The manifest takes the pakeage Oct 29 15:07:35 *package Oct 29 15:07:39 I have two packages Oct 29 15:08:05 you can refer to non-default packages by their full 'path', I think Oct 29 15:11:07 http://developer.android.com/guide/topics/manifest/manifest-element.html#package Oct 29 15:11:55 are any of you devs targeting android 4.0 and above? Oct 29 15:12:22 I think I just looked at that page Oct 29 15:13:26 Okay so I have Leeds: you could also reflect and get all the fields in R Oct 29 15:15:48 Leeds: a real ugly way would be to get r.id.* and then getview on your layout Oct 29 15:15:53 Leeds: er, findviewbyid Oct 29 15:15:56 Leeds: if null, continue Oct 29 15:16:02 http://stackoverflow.com/questions/3935443/android-including-multiple-java-packages-to-manifest This is the answer Oct 29 15:18:05 dragorn: at the moment, I'm just listing the R.foo values in an array in the code - not clean, but it works Oct 29 15:26:21 Anyone who ever has to do mockups: balsamiq is amazing <3 Oct 29 15:26:45 hi guys Oct 29 15:26:51 anyone is available here? Oct 29 15:27:10 phong_: there are almost 700 people in the channel Oct 29 15:27:46 ok Oct 29 15:27:53 sup Leeds Oct 29 15:27:58 i love Sandy Oct 29 15:28:25 Sandy is amazing Oct 29 15:29:17 she's cute enough... wait, which Sandy do you mean? Oct 29 15:30:18 hmm, I lose my network connection on orientation change Oct 29 15:30:32 while the fragment it's declared in has retainInstance set to true Oct 29 15:41:48 hi all. a gerrit upload just consists in one commit with possibile patches (commit --amend) right? Oct 29 15:42:37 sup lorenx Oct 29 15:42:42 how are you fuking doing? Oct 29 15:57:24 phong_: pardon? Oct 29 15:57:28 anyone here use AndEngine? Oct 29 16:05:13 using a linear / relative layout can I move a searchbar down from the top of the screen, I want to put a button in the titlebar but when I call onSearchRequest the searchbar covers the titlebar Oct 29 16:08:52 hi, I have a videoview. when I try to getCurrentPosition I recieve 0, I have seekto method used so this is not be correct. but if i do it in 2-3 seconds I get the right answer, I think there should be some listener after which i can get correct current position Oct 29 16:08:54 phong_: pardon? Oct 29 16:11:20 here is a code: http://pastebin.com/9WZc6vRa Oct 29 16:11:40 when can I call getCurrentPosition() to get correct answer Oct 29 16:20:07 I tried padding top and margin top but nothing Oct 29 16:20:36 anyone ordered a nexus 4 yet? :) Oct 29 16:28:55 is there any common/recommended way to simulate/duplicate the action bar functionality and look for api < 11? Oct 29 16:29:36 damn, nm, it was the next paragraph in the docs :-) Oct 29 16:32:39 is there a way to aviod tabs from scrolling horizontally ? Oct 29 16:32:44 JakeWharton are you around ? Oct 29 16:32:53 not until about 11am Oct 29 16:32:56 PST Oct 29 16:32:57 tabs in ActionBarSherlock , i mean Oct 29 16:33:06 what about them? Oct 29 16:33:22 can i avoud them from scrolling horizontally ? Oct 29 16:33:39 they just started addin 1 white pixel to the left or right Oct 29 16:33:56 there's a bug filed about it Oct 29 16:33:59 and i realized i could drag this pixel: which means they are trying to scroll Oct 29 16:34:49 JakeWharton that's a bug? crap! Oct 29 16:34:57 any known workaround? Oct 29 16:35:29 JakeWharton i wasn't getting this before and i havent changed nothing related to it Oct 29 16:37:57 did you update ABS? Oct 29 16:38:06 ah, knew the name sounded familiar. its the nineoldandroids guy :) Oct 29 16:39:15 thanks for your work! Oct 29 16:41:25 haha. you're welcome Oct 29 16:51:10 I have an integer (0x7f0c0072) being changed into a string via ((TextView) findViewById(R.id.notification)).setText(R.string.foo); where foo is equal to that integer. Where would I find the location where the integer is defined to convert to that string? Oct 29 16:52:49 the integer value is generated at compile-time and stored in R.java Oct 29 16:53:51 You mean the number? Oct 29 16:54:05 yes Oct 29 16:54:41 mostly you want to treat it as an opaque identifier - you *definitely* don't want to hard-code the value anywhere, because it can and will change between different compiles Oct 29 16:54:59 Okay. Is there a way to find the string it's referring to? Oct 29 16:55:38 that's in res/values/strings.xml, of course. Oct 29 16:55:39 yes, by looking it up in your resources Oct 29 16:56:01 i hope you don't want to find the compiled string. if you do you're probably missing the point of high level programming. Oct 29 16:56:50 Excellent! Oct 29 16:56:53 Thank you. Oct 29 16:57:01 Well, really, what I'd like to do is correct a spelling mistake in the string. Oct 29 16:57:31 oh, good Oct 29 16:57:51 surely you wrote the string? Oct 29 16:57:55 Nope. Oct 29 16:57:57 or one of your colleagues? Oct 29 16:58:02 Former colleague. Oct 29 16:58:15 Didn't know how to spell 'available', apparently. Oct 29 16:58:17 hmm... Oct 29 16:58:48 I'm a co-op student. We replace each other after four months. I didn't write this code, but now I must debug it. Oct 29 16:59:43 Map: The real world sucks :( Oct 29 17:00:13 Stupid question, but how can I use an 'up arrow' on a samsung galaxy tablet 7, which doesn't have a hardware up button? Is this even possible? Oct 29 17:00:16 Does it? Oct 29 17:00:32 Map: inheriting code is one of the "shitty jobs" the newbie at a job gets Oct 29 17:00:39 Ah. Oct 29 17:00:45 I don't mind. I just need to learn Android/Java. Oct 29 17:01:00 inherited code, *always* sucks. even if it's good code Oct 29 17:01:10 maslen: very few Android devices have had hardware navigation in the past couple of years Oct 29 17:01:21 maslen you can use action bar up navigation Oct 29 17:01:21 Leeds: I'm a complete android nub. Oct 29 17:01:24 Oh. I'll be unhappy, then. Oct 29 17:01:27 How do I do that? Oct 29 17:01:28 but the 'up arrow' could mean the arrow on the action bar Oct 29 17:03:48 Is there any word yet on whether 4.2 ships with a new API level? Oct 29 17:04:37 I would guess it will Oct 29 17:04:45 4.2 is a new API level Oct 29 17:04:46 Hey guys, I'm using ImageViewTouch to pan/zoom an image. However, I need to added pins at locations on my image, and they need to pan / zoom with the image. How do i do this? Oct 29 17:05:19 hi, I'm getting " threadid=11: thread exiting with uncaught exception (group=0x40a9a300)" Oct 29 17:05:27 how do I find out which thread it is? Oct 29 17:05:41 as it's not the one I create myself, would that just be the main thread? Oct 29 17:05:49 so, everyone watching the WP8 release event then? Oct 29 17:06:00 That's today? I assumed it was last week. Oct 29 17:06:16 IIRC that was in the news yesterday, no? Oct 29 17:06:17 Leeds, is it viewable somewhere? supposedly they're demoing our game... Oct 29 17:06:19 Estel: why would it not ship w/new api level? Oct 29 17:06:28 Zharf: just liveblogs, AFAIK Oct 29 17:06:32 ah Oct 29 17:06:41 tophyr: well, there's no guaruntee. Though sure, suggested by precedent. Oct 29 17:06:52 Estel: Windows 8 was last week, WP8 is this week - carefully named to guarantee maximum consumer confusion Oct 29 17:07:07 Ahh, I guess I assumed they rolled into one. Oct 29 17:07:18 well, yeah Oct 29 17:07:50 tophyr: But it's entirely possible that all of the changes are elsewhere in the UI and don't have anything to do with app dev. Oct 29 17:07:55 Leeds: why didnt they just stick with windows mobile?! Oct 29 17:08:20 hi all. a gerrit upload just consists in one commit with possibile patches (commit --amend), is this right? Oct 29 17:08:21 unifying their platform Oct 29 17:08:44 but IMO they should not have called their phones Windows Oct 29 17:08:45 Windows mobile was awful Oct 29 17:09:00 I understand why they wanted a clean break, and WP7 was good Oct 29 17:09:04 WP8 has potential, more so in the short term than W8 Oct 29 17:10:37 I'm still torn on Android's abandonment of the unified navigation/system bar on tablets. Oct 29 17:11:41 ah, didn't notice that yet, I have a 10.1 Note, which is heavily customised by Samsung Oct 29 17:12:19 Hi Oct 29 17:12:38 I have a problem with the Intent Flag FLAG_ACTIVITY_REORDER_TO_FRONT Oct 29 17:12:53 There was a bit of discussion when the Nexus 7 came out, but they said they thought the screen was too small for it, which I can understand. But the Nexus 10 doesn't have it either :( Oct 29 17:13:24 and the 10 comes with 4.2? Oct 29 17:13:30 yes Oct 29 17:13:30 belgianguy: yes Oct 29 17:13:43 When I press a button I call an activity, giving him an argument via the Intent, but When I press an other button I would like to call the same activity giving an other argument. Oct 29 17:14:25 But that don't work :( because on the second button press, he doesn't call the onCreate (It's normal) Oct 29 17:14:49 * clever checks doc Oct 29 17:14:52 Titi: onNewIntent? Oct 29 17:15:11 that's why I would like to know if it's possible ;) if any call-back or event its call when you startActivity with this flag Oct 29 17:15:49 evancharlton: ah,thats what i was trying to lookup Oct 29 17:15:51 Leeds: I'm keeping an eye on the Verge blog, but has anything been announced that wasn't in WP7? Oct 29 17:16:01 Titi: http://developer.android.com/reference/android/app/Activity.html#onNewIntent(android.content.Intent) Oct 29 17:16:12 Estel: bits and pieces, but this isn't the place Oct 29 17:17:21 True, but you started it :P Oct 29 17:17:56 thank you clever. I will see that :) Oct 29 17:19:29 and thx evancharlton too Oct 29 17:20:34 Gang, I have my computer hooked up to an HTC Amaze and a Google Nexus 7. I have an activity with a fragment that is just a RelLayout with an Image. The image shows up on the Amaze, but not the Nexus 7. Any ideas why? Oct 29 17:21:07 fakingfantastic: anything at all in logcat? Oct 29 17:21:59 i wanna buy a good tablet Oct 29 17:22:02 anyone know which? Oct 29 17:22:06 good = fastest Oct 29 17:22:17 fakingfantastic, maybe the Amaze has an Android < 3.0? Oct 29 17:22:29 clever: oh wow, 10-29 13:21:02.746: W/OpenGLRenderer(3646): Bitmap too large to be uploaded into a texture (2467x1022, max=2048x2048) Oct 29 17:23:12 cum on Oct 29 17:23:14 phong_: Fastest for what? Nexus 7 makes a lot of sense... Oct 29 17:23:18 Amaze = 4.0.3, Nexus 7 = 4.1.2 Oct 29 17:23:34 nexus 7 no sd slo Oct 29 17:23:36 phong_: Nexus 7 is awesome, highly recommended Oct 29 17:23:37 slot Oct 29 17:23:45 Who cares? 16GB... Oct 29 17:23:48 u can't do much with 16GB Oct 29 17:23:50 phong_: wrong channel Oct 29 17:24:02 fakingfantastic: sounds like you need to scale i down to something more reasonable, like the max= field said Oct 29 17:24:06 phong_: agree w\ Leeds Oct 29 17:24:29 what Oct 29 17:24:34 i'm asking a question Oct 29 17:24:43 and its only 7" screen Oct 29 17:24:49 clever: funny that the 4.0.3 software doesn't care but the 4.1.2 does. Anyway, thanks for the heads up with LogCat Oct 29 17:24:52 a question, that is not related to android-dev at all Oct 29 17:24:59 phong_: ^^ Oct 29 17:25:20 fakingfantastic: i think its more likely to do with the gpu drivers (made by htc/google) then the android os itself Oct 29 17:25:30 ahh Oct 29 17:25:31 posibly even to do with the limits of the video chip itself Oct 29 17:25:32 makes sense Oct 29 17:25:46 i love sandy Oct 29 17:26:04 phong_: use #android Oct 29 17:26:30 fakingfantastic: sounds like its copying that image into a texture in the video ram, so the GPU can then use the 3d rendering stuff to 'instantly' draw it anywhere Oct 29 17:29:28 do you think there is winodws 8 for android phones? Oct 29 17:29:35 possible? Oct 29 17:30:26 phong_: #android-root Oct 29 17:33:24 hi! Oct 29 17:34:56 Hate when an arbitrary call fixes a crash. Oct 29 17:35:49 lasserix: probably wan't so arbitrary :P Oct 29 17:36:21 * g00s throws lasserix a copy of http://www.amazon.com/Why-Programs-Fail-Systematic-ebook/dp/B0092L8LCW Oct 29 17:36:33 All I'm doing is edittext . toString() and it prevents the crash error I was getting Oct 29 17:37:30 I have an edittext as a search function in a fragment, was causing fragment not attached when I rotated it w/ text, but if I simply but log.d(tag, 'edit text was ' + s.tostring) it doesn't crash Oct 29 17:37:54 *in the text changed watcher Oct 29 17:38:14 Yeah exactly Oct 29 17:39:50 "And they all run Android 4.2, a new flavor of Jelly Bean" … did they do this just to confuse everybody ? Oct 29 17:40:18 Does anyone know why I can't have a dimen that references ?android:attr/listPreferredItemHeight ? Oct 29 17:40:36 hwrd|work: that … should work, i do that :| Oct 29 17:40:56 g00s: And you use that as a layout_height attribute? Oct 29 17:41:04 yeah Oct 29 17:41:45 if you look at the layout that is often used by listview, it does too Oct 29 17:42:06 althought it might use minimum height; but i think i have used both Oct 29 17:43:11 so are they calling 4.2 Jelly Bean also … because its the same API level as 4.1.x ? Oct 29 17:44:34 g00s: IIRC if the changes are small and mostly under the hood, the name doesn't change Oct 29 17:44:43 as it happened with 3.0,3.1,3.2 Oct 29 17:45:22 and I am super stupid, that thread stopped because I told it to Oct 29 17:45:53 g00s: 4.2 is a new API level Oct 29 17:46:13 so it will be 17 then Oct 29 17:47:05 can shape drawables have color selector states as their solid colors? Oct 29 17:47:07 heya Oct 29 17:49:02 Is there a list of all standard widgets for when setting up a theme? Oct 29 17:49:15 can anyone help with this error please Oct 29 17:49:16 http://pastebin.com/MtFsn02T Oct 29 17:49:31 I keep recieving java.io.IOException: open failed: ENOENT (No such file or directory) when trying to write to internal storage Oct 29 17:50:19 RichardS: One thing that always screws me over: have you requested that permission? Oct 29 17:50:42 i had tried to write to external storage first, i requested that permission and got the same erro Oct 29 17:51:02 im now trying internal (i didnt know there was a permission for that ) but still getting the exact same error Oct 29 17:51:55 hm, so i wonder - if i walk on over the walmart or staples, will i be able to identify the newest n7 coming with 4.2 ? Oct 29 17:52:37 thinking about picking one up Oct 29 17:53:29 it is file.createNewFile() which is throwing the exception, I cant understand why thought because it is supposed to create it, so ofcourse it cant find it yet O_o Oct 29 17:54:09 does a button have a default action to close or switch the current activity? I added a button to my interface but when I press it the current activity closes. This is the code: http://pastebin.com/0dDdBTXw Oct 29 17:54:15 RichardS I can't find my old code but I never had to use createNewFile, I thought it was done for you? Oct 29 17:54:25 (as soon as you write it) Oct 29 17:54:58 how do you write it though? Oct 29 17:55:05 i thought it was createNewFile() Oct 29 17:55:07 just comment out that line and it should write Oct 29 17:55:18 trying Oct 29 17:55:20 FileOutputStream fo = new FileOutputStream(output); fo.write(bytes.toByteArray()); Oct 29 17:55:25 does the actual writing Oct 29 17:55:55 ah ok i thought there had to be a "shell" there first for it to write into Oct 29 17:56:15 java.io.FileNotFoundException: /mnt/sdcard/Navigate Pain/rick/test.jpg: open failed: ENOENT (No such file or directory) Oct 29 17:56:22 getting that when i did what you said Oct 29 17:57:27 docmur: are you sure the app isn't crashing? have you checked logcat for a stacktrace? Oct 29 17:59:21 hey, I'm trying to launch an app from the shell....but I can't seem to get it. does this format look about right? Oct 29 17:59:51 am start -a android.intent.action.BOOT_COMPLETED -n com.alexkardos.restart2-1/.MainActivity Oct 29 18:00:12 I just cleared the log and I'm going to run it again to grab fresh runtime data Oct 29 18:00:13 I'm getting this error Oct 29 18:00:21 https://gist.github.com/a328e8cecbd4a508c261 Oct 29 18:05:12 This is the end of the log file after I click the button: http://pastebin.com/pQfR8HCk Oct 29 18:06:23 waitaminute... is Gesture Typing not pretty much exactly Swype? Oct 29 18:07:10 tophyr: what they really need to make is drawsome typingp. Oct 29 18:07:17 draw a picture of a car, and it types the word car Oct 29 18:07:43 that'd be quite the trick Oct 29 18:08:06 the Pictionary™ IME? Oct 29 18:08:07 extremely useful too Oct 29 18:08:13 lol Oct 29 18:08:21 i'm just surprised swype doesn't hold some sort of patent on their mechanism. they were certainly protective enough of which devices they released to. Oct 29 18:08:46 they probably do. patents are hard to uphold in a lot of cases Oct 29 18:08:56 unless you're apple...in which case yuo can sue over rounded corners. Oct 29 18:08:57 4.1's keyboard had some strong swiftkey elements in too Oct 29 18:12:42 hello ;) Oct 29 18:13:00 i've problem with my frirst widget size Oct 29 18:13:22 i want to have a one cell widget Oct 29 18:14:15 tophyr: remember during I/O someone asking about Swype and Google was coy :) Oct 29 18:14:30 think it was the fireside chat Oct 29 18:14:55 i set width and height 72dp Oct 29 18:15:03 fot appwidgetprovider Oct 29 18:15:10 for* Oct 29 18:15:21 but is still in two colls Oct 29 18:16:33 http://developer.android.com/guide/practices/ui_guidelines/widget_design.html Oct 29 18:16:43 what should i set to have a one cell widget? Oct 29 18:20:18 lmfao. just saw this in logcat: bool WebCore::SQLiteDatabase::open(const WTF::String&, bool) Oct 29 18:21:02 tophyr: you know logcat has a What a Terrible Failure log level? Oct 29 18:22:53 And the SensorManager constants Oct 29 18:24:09 question - so with 4.2, do all users see all apps, or can one user install an app another user doesn't see ? Oct 29 18:25:05 the latter Oct 29 18:25:47 the report is that if another user then 'installs' it, it'll get copied (or linked?) rather than redownloaded Oct 29 18:26:36 since apks are inviolate, they should be linkable - shouldn't need multiple copies Oct 29 18:27:38 what if one user updates and the other user doesn't want to Oct 29 18:27:44 oauth2 tokens are passable right? the device can get one and pass it over ssl to a server/other device using it? Oct 29 18:28:23 wouldn't it be possible then for the owner of the app to modify the executable to be malicious? Oct 29 18:28:29 ok, i cant find anything …. does 4.2 support BT 4 / BLE Blueooth Low Energy ? Oct 29 18:28:41 why don't you just wait until the APIs are outlined Oct 29 18:32:30 JakeWharton: when do you think that would be? Oct 29 18:32:48 i don't know. sometime this week Oct 29 18:32:49 i was expecting that already Oct 29 18:33:18 it's not like there's just a single button that they press and the entire internet gets updated with every piece of information you could ever want Oct 29 18:33:32 it's two buttons Oct 29 18:33:36 Frankly I'm shocked. What is Google for if they can't do that? Oct 29 18:33:37 heh Oct 29 18:34:07 * g00s shrugs … apple does. they announce, store shows it, xcode available for dl right away, and api docs are right there Oct 29 18:34:48 well, last time I checked Google != Apple Oct 29 18:34:49 They take the store down for about a day beforehand Oct 29 18:34:58 true dat Oct 29 18:35:06 If I have two sets of icons (for black/white backgrounds) what's the easiest way to change all my action bar icons? Oct 29 18:35:35 define them in your theme, load from there Oct 29 18:35:57 Could you show me an example, not sure how to define the menu icon in the theme? Oct 29 18:36:26 like if I have menu item with id of menu_rate how do I link that via the theme style to an icon? Oct 29 18:36:27 you have to create an attribute for ecah icon in attrs.xml Oct 29 18:36:35 ahhok Oct 29 18:36:48 and then you reference it in the xml with android:icon="?attr/myCoolRefreshIcon" Oct 29 18:37:37 Uh that last part., this goes in the theme styles? android:icon="?attr/myCoolRefreshIcon" Oct 29 18:38:06 that goes in the menu XML Oct 29 18:38:18 in the theme you'd do @drawble/my_cool_refresh_icon_dark Oct 29 18:38:42 ahh okay thanks! Oct 29 18:42:04 are you using Light.DarkActionBar? Oct 29 18:43:10 Not sure what I'll end up using, but I'm using ABS. The dark version will be black background with the white icons like holo dark; the light version will be using white background (not the grey) with black icons / text Oct 29 18:43:16 *oh so no Oct 29 18:43:43 ok good. that would require some extra work since it uses a ContextThemeWrapper to inflate its widgets that exist in the action bar Oct 29 18:47:00 Anyone here interested in trying out an indie game we made with my brother? Oct 29 18:48:45 who's we, bugbyte Oct 29 18:48:59 i'd try it Oct 29 18:49:09 but be ware i will murderyou if its got crapware on it Oct 29 18:49:12 bugbyte, #android @ efnet - you can ask there as well Oct 29 18:49:20 loads of users there Oct 29 18:49:26 347 Oct 29 18:49:30 BugByte is the name of an early 1980s computer games company; be warned, they might still exist! Oct 29 18:49:31 Oh it's the real deal Oct 29 18:49:43 We are Bugbyte Productions Oct 29 18:49:45 ;) Oct 29 18:49:47 i'd try it Oct 29 18:49:51 https://play.google.com/store/apps/details?id=fi.bugbyte.daredogs Oct 29 18:49:52 sure, me three Oct 29 18:50:27 THE Bugbyte? Oct 29 18:50:53 no, A Bugbyte - haven't you heard, they come in 6-packs Oct 29 18:51:10 no Oct 29 18:51:38 bugbyte: I haven't downloaded the app yet, but you should consider changing the feature graphic to make the title more prominent Oct 29 18:51:46 (cue h2g2 reference going over people's heads) Oct 29 18:52:07 Estel, ok! Will consider that, thanks! Oct 29 18:52:36 And have you submitted it for consideration by the Friday games review? Oct 29 18:52:36 hey, quick question: say that i have a sqlite table that represents a log of activities that i want to upload Oct 29 18:52:53 uploading takes a while, so it's possible that the table will have more entries in it during uploading than when i started Oct 29 18:53:09 Estel, no. It's a site? Oct 29 18:53:32 actually, this is a silly question, i guess; the cursor that i get back from my initial query won't change if entries are added to the table, i assume Oct 29 18:54:06 can i change the table (updating existing records, for instance) as i'm iterating over it, by the way? Oct 29 18:54:30 (using a ContentProvider to interface with my sqlite database, by the way) Oct 29 18:54:32 Thank you sculptor! Will head over there. Oct 29 18:54:38 bugbyte: Oh, it was something that Google did on G+, but apparently last week was the last one Oct 29 18:55:02 Oh, that figures! Oct 29 18:55:07 nice little game bugbyte Oct 29 18:55:13 looks very much a Altitude Oct 29 18:55:20 This really seems like a brutal market! Oct 29 18:55:30 Thank you Ravenheart! Oct 29 19:04:57 meh, it'd be nice if the SQLiteQueryBuilder allowed you to take an existing 'where' clause and 'whereArgs' (e.g. from the params) and add your own clauses and arguments to that Oct 29 19:05:13 if anyone happens to know of a nice way to merge two String[] arrays, i'm all ears Oct 29 19:06:31 BugByte: it's pretty fun. I find the text-appearance speed a bit slow, and there could be better explanation of levels/powerups Oct 29 19:07:51 Escherial: Make your own querybuilder Oct 29 19:08:06 It's pretty simple Oct 29 19:08:31 SimonVT: i'd imagine so, but i dislike reinventing the wheel Oct 29 19:08:40 Thanks sampullman! More explanations roll out in the character select main window, but I suppose many doesn't wait too long there :) Oct 29 19:09:03 i just never know what i'm supposed to do when the user provides a URI for a specific element in a contentprovider update() call Oct 29 19:09:11 bugbyte, bad audience in #android. sorry Oct 29 19:09:20 am i supposed to update only that element even if they didn't specify a where clause that narrows it down to just that one? Oct 29 19:09:41 Well critique is always good! Oct 29 19:09:55 Maybe not always Oct 29 19:11:36 is it possible to have different layout files for the 90° landscape orientation and the 270° landscape orientation? Oct 29 19:12:34 oO no Oct 29 19:13:15 i'm not sure why my pretty simple project is taking an inordinate amount of time to build Oct 29 19:13:20 Why would you want that Oct 29 19:13:51 i want a special UI element of my application to be always near the hardware buttons. Oct 29 19:13:51 well there is a reverseLandscape/reversePortrait option for what orientations you allow Oct 29 19:14:03 what if there arent hardware buttons Oct 29 19:14:10 and do buttons have to be at the bottom? Oct 29 19:15:11 well, that UI elemenet should just stay at the same position, no matter what the screen orientation might be Oct 29 19:15:20 why Oct 29 19:15:34 How can I make a custom subclass of View that has other elements contained inside of it> Oct 29 19:15:49 Subclass ViewGroup Oct 29 19:15:57 http://developer.android.com/guide/topics/ui/custom-components.html#compound Oct 29 19:16:07 interesting. Oct 29 19:16:40 I was looking at the Snake sample, and it hadn't used that at all Oct 29 19:16:59 Elements as in views, or just random stuff you draw? Oct 29 19:18:13 bugbyte, not a bad gameplay. Oct 29 19:21:48 Does that make all the difference? The snake example appears to use onDraw, and only a single element. Oct 29 19:28:39 hey, I have an intent on an app that worked on GB, but not on ICS Oct 29 19:28:48 it had an intent that started on boot...but it doesn't seem to be running. Oct 29 19:28:49 any ideas? Oct 29 19:28:56 is there any way I can see if it ever started? Oct 29 19:29:12 I don't know what's changed with the update Oct 29 19:30:41 You have to start an activity once before you'll get system broadcasts Oct 29 19:30:52 once ever, or once per boot? Oct 29 19:30:58 Once ever Oct 29 19:31:02 Until the app is force stopped Oct 29 19:31:13 Or uninstalled.. Oct 29 19:31:28 alright, that definitely helps Oct 29 19:31:29 thank you Oct 29 19:31:42 um...in that case I'll go back to trying to start it from the command line, I've been having problems with that Oct 29 19:31:48 that is intentional behavior Oct 29 19:34:50 would any of you be able to tell me what's wrong with this? I have an activity called MainActivity Oct 29 19:34:53 am start -a android.intent.action.MAIN -n com.alexkardos.restart2/.MainActivity Oct 29 19:35:56 it says this: Oct 29 19:36:11 Error: Activity class {com.alexkardos.restart2/com.alexkardos.restart2.MainActivity} does not exist. Oct 29 19:40:37 Whats a good icon symbol for source or reference? Oct 29 19:41:18 the noun project has some nice stuff Oct 29 19:41:29 a book, i'd say Oct 29 19:41:41 e.g.: http://www.iconfinder.com/icondetails/62016/48/book_bookmark_read_study_icon Oct 29 19:41:51 the bookmark might be distracting, on second thought Oct 29 19:42:00 i've used some from here, they are svg also http://www.yay.se/resources/android-native-icons Oct 29 19:42:05 Thanks for the leads Oct 29 19:42:45 there are a few that sell like http://www.glyphish.com/ Oct 29 19:42:57 lethjakman_work: does that activity actually exist, and is it properly declared & exported etc in the manifest? Oct 29 19:43:33 seen glyphish before but this is the first project to come to completion so trying to do it on no budget ;p Oct 29 19:43:36 ctate: I have the activity in my com.alexkardos.restart2 package. How would I export that in my manifest? Oct 29 19:43:38 g00s: that first set is awesome :D i just bought an icon pack for $25 this morning (androidicons), somewhat regretting it now Oct 29 19:43:53 glyphish is nice, but they don't look much like stock android and they only come in two sizes Oct 29 19:44:02 ah Oct 29 19:44:23 i think its totally worth it to learn inkscape at a basic level to produce simple flat icons Oct 29 19:44:26 lethjakman_work: in an tag of course. Oct 29 19:44:40 goos: yeah Oct 29 19:47:04 What is "Android Pro Widgets" exactly? Oct 29 19:47:14 hi there Oct 29 19:47:26 It just provides widgets? Oct 29 19:47:31 It's an app right? Oct 29 19:47:38 I have no idea what that is Oct 29 19:47:48 sounds like an app like HD Widget Oct 29 19:47:51 yeah, no relationship to android or google in general -- it's an app that restyles the built-in widgets Oct 29 19:48:11 i personally dislike it Oct 29 19:48:15 I'm trying to build a NDK project... and I'm getting a bunch of "Symbol 'ANDROID_LOG_DEBUG' could not be resolved" when I renamed my .cpp to .c . Does anyone know how to fix this ? Oct 29 19:49:08 * ctate . o O ( oh look GPU compute via Renderscript! ) Oct 29 19:49:25 xroberx: rename it back to .cpp? :) Oct 29 19:49:50 ctate: yeah, but then ffmpeg complains about another issue :S Oct 29 19:49:52 Hello everyone. Im new to the Android plattform, trying to sort all the information on the internet. But, what are you guys opinion in the subject of programming in C for android. Is it as functional as programming in Java. Oct 29 19:50:09 drobban: absolutely not Oct 29 19:50:16 the Android APIs are in java. Oct 29 19:50:22 Why I even consider C instead of Java, is that very fimiliar with C Oct 29 19:50:32 there is limited support, via the NDK, for porting game-type apps to Android Oct 29 19:50:45 ctate: okey, well. That is argument enough for me. Oct 29 19:50:49 drobban: I'm getting into it, and I'm about to get crazy :O Oct 29 19:51:25 if you're already an accomplished programmer then it'll be IMO a lot less hassle to learn Java than to try to bash out a good Android app in C Oct 29 19:51:33 xroberx: okey. Well, glad that you guys responded or I would perhaps be in the same position as you xroberx Oct 29 19:52:19 drobban: unfortunately you need it for some things like interfacing with ffmpeg :( Oct 29 19:52:53 and if you're not an accomplished programmer it will be hard either way :) Oct 29 19:53:06 there's always app inventor :) Oct 29 19:53:34 ctate: well, the whole OOP idea is no problem. Im not familiar with the NDK or the Android API or the rest of java methods and such. ctate any good literature that you can recomend. Oct 29 19:53:50 http://d.android.com Oct 29 19:54:46 canadiancow: looked at it. And to be honest, didnt like that site at all. messy and for me hard to get a overview of things, perhaps it will come easier after a while Oct 29 19:54:48 i'm told that htere are solid java tutorials / intros out there for people who are already comfortable with OOP Oct 29 19:54:55 but i don't know offhand what/where they are Oct 29 19:55:11 oracle has a java tutorial Oct 29 19:55:20 ctate: thank you. Oct 29 19:55:45 g00s: found it just a moment ago, looked like a realy good place to start. Oct 29 19:56:05 well, again. Got all the answers i needed. thank you for your time Oct 29 19:56:21 I looked all over d.android.com, and googled ad nauseum, but can't find anything definitive about what kind of HDMI information I can gather from within Android (at any API level)... Oct 29 19:56:42 anybody know where I can find this information? or am I just asking the wrong question? Oct 29 19:57:06 ctate: thank you for your help, that's exactly what I needed! Oct 29 19:57:16 hdmi information? Oct 29 19:57:36 mr_bono: what are you trying to find out? Oct 29 19:57:49 for example, on a TV (running Android) with multiple HDMI inputs, what is connected to each input, and what is its state, etc Oct 29 19:58:41 a tv running android? Oct 29 19:59:06 I had heard that GoogleTV had been merged back together with "vanilla" Android -- is this not true? Oct 29 19:59:08 Android per se does not presently have any support for video inputs. Oct 29 19:59:23 oh........... Oct 29 19:59:47 protip: android-related rumors are very often wrong. Oct 29 19:59:47 that would explain why I am unable to find such information :) Oct 29 19:59:54 we laugh a lot. :) Oct 29 19:59:58 hehe.. duly noted Oct 29 20:00:13 oh, here's one, then: Oct 29 20:00:20 but usually ctate can confirm or deny rumors Oct 29 20:00:21 [i mean seriously; where do people come UP with this shit? i mean, why would people even think these things? sigh....] Oct 29 20:00:28 ctate, +1 Oct 29 20:00:30 :) Oct 29 20:00:39 yes, i *could* confirm or deny the rumours Oct 29 20:00:41 BUT I WON'T Oct 29 20:00:45 * ctate la la la Oct 29 20:01:01 supposedly, somebody had one too many drinks (or they liked the "iPad, iPad 2, The New iPad" naming debacle) and decided to keep Jelly Bean as the codename for Android 4.2.. Oct 29 20:01:02 and more importantly, why are they bothering if they have no stake at all concerning this or that information :-) Oct 29 20:01:04 :) Oct 29 20:01:16 mr_bono, what? Oct 29 20:01:21 err, what? Oct 29 20:01:22 that one can't be true, right, ctate?! Oct 29 20:01:30 eclair 2.0, 2.1 Oct 29 20:01:33 4.2 is a JB release because it's a minor platform update to JB. Oct 29 20:01:36 honeycomb 3.0, 3.1, 3.2 Oct 29 20:01:46 this isnt even the first time... Oct 29 20:01:50 there are no patterns. Oct 29 20:01:54 ^^ Oct 29 20:01:56 or there is no pattern :) Oct 29 20:02:05 so only 5.0 will be called Key Lime Pie? Oct 29 20:02:19 now you're really stretching the rumor mill Oct 29 20:02:21 there is no connection between version numbering and codename Oct 29 20:02:24 Sometimes you just have to go with the "Rule of Cool" Oct 29 20:02:31 human brain tends to fall easily in what we call "coincidence" Oct 29 20:02:40 note that ICS to JB was a .1 version bump. Oct 29 20:02:47 so.. there really is no scheme? Oct 29 20:02:47 despite being a major platform rev Oct 29 20:02:57 let me repeat Oct 29 20:03:03 the Sony Nexus story was fun to read Oct 29 20:03:03 Paypal $50 to ctate@android.com and he'll confirm/deny your rumors Oct 29 20:03:06 there is no connection between version numbering and codename Oct 29 20:03:12 hmmm Oct 29 20:03:14 lol SimonVT ! Oct 29 20:03:27 Quick question, how do you find the name of a layout? I'd thought it'd be just in the xml setting it up, but strangely neither of the names indicated there work for setContentView(R.layout.NAME); Oct 29 20:03:28 and it's especially important to remember that version numbers are essentially fictions of *marketing* Oct 29 20:03:30 what will happen when we run out of esserts, or someone dies from high blood sugar Oct 29 20:03:51 diabetic release Ravenheart ? :-) Oct 29 20:03:52 the canonical example of this is sort of before most peoples' time here, i bet, but is the old legendary DOS word processor WordPerfect Oct 29 20:04:03 My mainy layout FILE is named activity_thin_btclient.xml but that name (Minus the .xml) doesn't work Oct 29 20:04:07 5.0 to 5.1 was a HUGE jump, tremendously more useful / powerful / etc Oct 29 20:04:15 but was a teeny little .1 version number bump Oct 29 20:04:15 another good example is how firefox and chrome do not bother user anymore with versioning Oct 29 20:04:22 Under manifest there's android:name=".ThinBTClient" Oct 29 20:04:23 android:label="@string/title_activity_thin_btclient" > Oct 29 20:04:32 But neither of those names work Oct 29 20:04:38 Any ideas? Oct 29 20:04:56 5.1, ctate ?!?! Oct 29 20:05:02 (Name I had used being "ThinBTclient" and "activity_thin_btclient" Oct 29 20:05:04 is there a latest.android.com ;) Oct 29 20:05:05 Striker121: you're confusing the names of classes and the names of string declarations with filenames Oct 29 20:05:13 wordperfect 5.1 Oct 29 20:05:25 android:name=".ThinBTClient" is telling the OS what class name your activity [or whatever] has, in java Oct 29 20:06:03 android:label="@string/title_activity_thin_btclient" tells the OS that the label to use in Launcher is found in a string resource line that declares it under that name Oct 29 20:06:09 neither of those things states a filename Oct 29 20:06:26 mr_bono: WordPerfect 5.1 Oct 29 20:06:29 look it up. :) Oct 29 20:06:37 * ctate . o O ( teenyboppers, i tell you... ) Oct 29 20:06:48 Ah thanks, any idea where'd a find it? Oct 29 20:07:00 Or is the name of the XML file for the layout supposed to be the layout name automatically? Oct 29 20:07:04 ohhhhh... ok sorry missed the WP reference :) but I will google it Oct 29 20:07:13 In which case I'd be very confused as to why that didn't work Oct 29 20:07:47 R.layout.NAME references /res/layout/NAME.xml Oct 29 20:08:08 can you use uppercase? Oct 29 20:08:21 Because your mom Oct 29 20:08:25 :( Oct 29 20:08:29 i dont think so, it threw me errors when i tried to use camelCase Oct 29 20:08:35 SimonVT, how's the car? Oct 29 20:08:42 Very broken Oct 29 20:08:47 Probably have to buy a new one Oct 29 20:08:59 sux Oct 29 20:09:03 :( Oct 29 20:09:03 i had to do that last year Oct 29 20:09:05 Yep Oct 29 20:09:09 Managed to have it for 3 weeks Oct 29 20:09:12 and then i sold my brand new car a year later when i moved Oct 29 20:09:20 it was only 3 weeks old?!?! Oct 29 20:09:21 Mine is all lowercase, odd Oct 29 20:09:31 The car is from 99 Oct 29 20:09:34 I bought it 3 weeks ago Oct 29 20:09:39 ah Oct 29 20:09:53 The name is "activity_thin_btclient.xml" but setContentView(R.layout.activity_thin_btclient); says it can-not be resolved Oct 29 20:09:57 ctate: I'm not *that* young.. I used 5.25" floppies back in the day, I'll have you know! Oct 29 20:09:59 my car is from 99 and still working like a charm (but it's a german car :p) Oct 29 20:10:00 So it's not worth a lot Oct 29 20:10:05 And not worth repairing Oct 29 20:10:08 mr_bono: good, good Oct 29 20:10:08 is there anything in ICS that would stop this from working right? Oct 29 20:10:12 sure, not the punch cards you guys were using, but sheesh.. ;) Oct 29 20:10:16 i'm used to being the only *grownup* around... ;) Oct 29 20:10:23 haha Oct 29 20:10:24 https://gist.github.com/511491991e87f3b77ad6 Oct 29 20:10:40 it's just an intent to start an app, but it's a different app than the one that it's running from Oct 29 20:10:42 Striker121: did you import the wrong R? Oct 29 20:10:50 android.r? Oct 29 20:11:00 adq: Mine worked like a charm until https://dl.dropbox.com/u/100261/IMG_20121025_082844.jpg https://dl.dropbox.com/u/100261/IMG_20121025_082833.jpg Oct 29 20:11:06 ctate, for the record, i used 5.25" floppies too Oct 29 20:11:08 lethjakman_work: well, line 2 is superfluous Oct 29 20:11:09 and you know how old i am Oct 29 20:11:11 Rather, the R I imported IS android.R Oct 29 20:11:21 because you immediately overwrite that new Intent with the one you get from the package manager Oct 29 20:11:55 SimonVT, ahhh frontal :/ if calender is twisted, I can imagine it's too costly to fix it Oct 29 20:11:58 Striker121: that's the wrong one. You want com.whatever.your.package.is.R Oct 29 20:12:04 Oh... Oct 29 20:12:11 That explains a lot Oct 29 20:12:21 ctate: What's that about Renderscript, now? Oct 29 20:12:26 Are we finally there? Oct 29 20:12:40 Oh hey, thank you very much Oct 29 20:12:40 Workboot: gpu compute support in RS, in 4.2 Oct 29 20:12:47 ctate: are you sure? it's stored into a different variable name, it was working before. Oct 29 20:13:05 lethjakman_work: no, they both assign to 'i' Oct 29 20:13:09 as you posted it Oct 29 20:13:10 * Striker121 finally found a bluetooth script that wasn't a bunch of sample code spread across four threads that he couldn't find anyway to connect correctly Oct 29 20:13:12 4.2 you say? I have been sleeping. Oct 29 20:13:21 Workboot: APPARENTLY Oct 29 20:13:22 :) Oct 29 20:13:26 adq: Yeah.. Got rear ended and pushed into another car Oct 29 20:13:27 Once I get this working it should be easy to make a basic app for SPP stuff Oct 29 20:13:30 SimonVT, http://www.skennedy.ca/2012civicsi/2000sir/ Oct 29 20:13:41 Oh, it's the same letter? Oct 29 20:13:45 canadiancow: lovely Oct 29 20:13:50 OH Oct 29 20:13:52 I see what you're saying Oct 29 20:14:02 pileup :| Oct 29 20:14:06 it wasnt a pileup Oct 29 20:14:08 it was two cars Oct 29 20:14:09 ooh Oct 29 20:14:12 canadiancow: Did he run a red light? Oct 29 20:14:12 one of them was going straight on a road (me) Oct 29 20:14:16 the othe rpulled out of a fucking parking lot Oct 29 20:14:25 * Workboot did not expect that announcement to come out in a same-letter release. Oct 29 20:14:25 there were no lights Oct 29 20:14:29 oO Oct 29 20:14:32 How fast was he going Oct 29 20:14:36 he was going like 5 Oct 29 20:14:38 i was going 50-60 Oct 29 20:14:43 ah Oct 29 20:14:44 probably down to 30 at time of impact Oct 29 20:14:50 ctate: Which hardware? The one I would have expected, or something which might surprise me? Oct 29 20:15:00 any hardware that runs 4.2+ Oct 29 20:15:02 Is there anyway to rotate a lsider? Oct 29 20:15:03 luckily i swerved and only clipped him Oct 29 20:15:08 ctate: thank you, I don't know why I did that....dumb move, but still, I'm not sure why this all of the sudden stopped working. Oct 29 20:15:15 *slider Oct 29 20:15:20 car time \o/ https://picasaweb.google.com/115462329892247078112/Cars#5258671747951960850 <- old french car i don't own anymore... at max with wind behind and little slope Oct 29 20:15:30 In the graphical layout generator on eclipse Oct 29 20:15:30 Striker121 you can make your own custom view, there's a few guides online how to do this Oct 29 20:15:37 lethjakman_work: well, as alwayas you need to look in the log to see what sort of errors are logged when you attempt to start the activity Oct 29 20:15:38 i NEVER drove 180 <.< >.> Oct 29 20:15:38 *custom view slider Oct 29 20:15:46 i've ridden in a car doing 180 Oct 29 20:15:47 Alright, i'll take a look. Oct 29 20:15:48 but we're talking about broken cars right now :P Oct 29 20:15:49 (km/hr) Oct 29 20:15:55 true :p Oct 29 20:16:01 ctate, obviously km/h...who uses miles :P Oct 29 20:16:14 Pssh, km/hr. Need moar engine Oct 29 20:16:16 I think I can run 180 km/hr Oct 29 20:16:20 the fastest i've ever driven myself was ~ 160 km/hr Oct 29 20:16:21 ctate: that's the thing, there are no errors....at least not being logged to logcat Oct 29 20:16:26 JakeWharton: haha Oct 29 20:16:26 atlantic wall | farenheit/celcius & miles/kilometers :p Oct 29 20:16:32 That's a lie Oct 29 20:16:37 England tends to use miles/hr Oct 29 20:16:39 ctate: I haven't been sleeping at all, have I. Half the web pages aren't even up to date. Oct 29 20:16:43 lethjakman_work: it should be logging the fact that the activity is being launched, then Oct 29 20:16:45 So do most common-wealth nations Oct 29 20:16:45 i was doing like 170, then i slowed down, then a NY state trooper pulled me over Oct 29 20:16:49 luckily he only caught me at 110 Oct 29 20:16:53 I think miles in general too for some things Oct 29 20:16:55 haha Oct 29 20:16:57 since then i dont drive nearly as fast Oct 29 20:16:57 lol!! Oct 29 20:17:13 (100 mph) Oct 29 20:17:22 on tires rated only to 90 :) Oct 29 20:17:22 canadiancow, my father almost lost his license for something similar to that Oct 29 20:17:28 i have no concept of a mile Oct 29 20:17:33 like i know it's ~1.6km Oct 29 20:17:37 but when someone says like "30mph" Oct 29 20:17:39 i have no idea Oct 29 20:17:43 and i have to pull out a calculator Oct 29 20:17:46 * Workboot would have thought Americans would drive faster than they do. Oct 29 20:17:47 maths maths uhh Oct 29 20:17:48 Except, it was 80 dropping to 50 (Speed limit) then getting pulled over by a completely random guy who hadn't seen him for doing 75) Oct 29 20:18:03 canadiancow: that's normal Oct 29 20:18:08 Workboot: http://googleblog.blogspot.com/2012/10/nexus-best-of-google-now-in-three-sizes.html Oct 29 20:18:10 100mph is unexceptional in the UK. You wouldn't want to do it in front of a cop, but it wouldn't surprise anybody. Oct 29 20:18:17 So I've got in attrs.xml... In my menu I use android:icon="?attrs/icon_search" to reference it and I set which icon to use in theme style right? Oct 29 20:18:20 canadiancow: Just estimate it at 1.5km Oct 29 20:18:20 and http://www.android.com/whatsnew/ Oct 29 20:18:27 So 30 mph is 55km/h Oct 29 20:18:28 Workboot, most people treat speedlimits like a "suggestion" Oct 29 20:18:33 android runs fast ;-) Oct 29 20:18:43 In that it's common for the flow of traffic on a high-way to be going 5-10mph faster Oct 29 20:18:56 Striker121: I've noticed that. Oct 29 20:19:02 ah, thanks ctate! Oct 29 20:19:06 Striker121, never had a fine for speed, but always capping the limit + a bit more above Oct 29 20:19:07 still trying to run a sample android app with eclipse/avd etc, but all i get is emulator-arm using 100% cpu, something i'm forgetting or is it just broken? Oct 29 20:19:10 it's safe! Oct 29 20:19:18 no android 4.2 sdk release yet, be patient :) Oct 29 20:19:19 what your cars says its speed is is not what the actual speed is Oct 29 20:19:22 Well, I usually do speedlimit + 5mph is the real speed limit Oct 29 20:19:27 there's a 10% error rate Oct 29 20:19:34 Snuffel, I call bull on that Oct 29 20:19:35 it is not 10% Oct 29 20:19:35 yup Snuffel best is to look at gps Oct 29 20:19:35 everyone knows that Oct 29 20:19:36 Most cars show 5-10% too much Oct 29 20:19:38 1m/s of precision Oct 29 20:19:41 in ontario, canada, if you're under 130 (i.e. <= 129) in a 100 zone, you're good Oct 29 20:19:46 unless there are no other cars around Oct 29 20:19:47 (real gps ofc) Oct 29 20:19:47 there's about 5% change due to tire wear Oct 29 20:19:55 but modern speedometers are *not* 5% off Oct 29 20:19:58 Your car doesn't use GPS for speed Oct 29 20:20:01 same in quebec canadiancow , I go usually arround 128 in 100km/h zones Oct 29 20:20:03 ctate i had to use a gps in my old car for speed Oct 29 20:20:10 the speedo overreported by like 15% Oct 29 20:20:12 It uses a speedometer hooked to your driveshaft/wheels Oct 29 20:20:20 but i found my new car was exceptionally accurate Oct 29 20:20:22 yeah, older ones are dodgier Oct 29 20:20:25 and digital too (yay civic!) Oct 29 20:20:26 my gps always says I'm slower than the car says I go Oct 29 20:20:31 talking about car in #android-dev, I already saw autoradio powered by Android Oct 29 20:20:32 Snuffel, yes Oct 29 20:20:36 also if people have put different size wheels+tires on, it'll be systematically wrong Oct 29 20:20:40 some application might come handy, better than playing mp3 Oct 29 20:20:41 canadiancow: even my civic Oct 29 20:20:42 Even then, short of changing tires to a wider or thinner one it should be pretty accurate Oct 29 20:20:53 Damn, ctate beat me to it Oct 29 20:21:03 adq, that reminds me of the Android powered camera Oct 29 20:21:10 That was litearlly a sony cellphone or something in a camera Oct 29 20:21:16 Makes me just :( Oct 29 20:21:18 lol Oct 29 20:21:22 Also :headbang: Oct 29 20:21:27 I had a car once where the speedometer broke.. It occasionally worked.. So I'd have to "calculate" the speed based on gear and rpm Oct 29 20:21:32 As in, bang into desk. Oct 29 20:21:38 2k rpm in 4th was about 55-60 km/h :p Oct 29 20:21:50 SimonVT: that couldn't have been an automatic thwen Oct 29 20:21:50 then Oct 29 20:21:57 how to get a fine :D the next tutorial from SimonVT ^^ Oct 29 20:22:01 thats about 70 in my car Oct 29 20:22:16 Noone here drives automatic :P Oct 29 20:22:20 not much automatic car in europe Oct 29 20:22:27 s/much/many Oct 29 20:22:32 ctate: So, like, three different lead partners for this one? Oct 29 20:22:44 SimonVT: where's here Oct 29 20:22:52 Denmark Oct 29 20:22:58 you have hybrid cars Oct 29 20:23:03 they are automatic Oct 29 20:23:20 so are elbils Oct 29 20:23:21 in france, not much hybrid, not much automatic Oct 29 20:23:21 Snuffel: yes, but you have to do your test on manual Oct 29 20:23:29 ERRR many damn! Oct 29 20:23:43 p_l: ok agreed Oct 29 20:23:44 only UK has a license for people who "don't drive stick" Oct 29 20:23:51 There's hardly any of those tho Oct 29 20:23:52 or at least I only know of that in UK Oct 29 20:23:53 NL has that too Oct 29 20:24:03 still, it's very rare Oct 29 20:24:14 automatic was more of a luxury option Oct 29 20:24:24 you guys are going to piss off JakeWharton , this is waaay off topic Oct 29 20:24:26 i like driving automatic Oct 29 20:24:26 it's not fun, but better for consumption Oct 29 20:24:29 and many people explicitly want manual Oct 29 20:24:32 I doubt any driving schools here teach students to just drive automatic Oct 29 20:24:34 Driving stick? Jeese Oct 29 20:24:35 That'd be bad Oct 29 20:24:51 g00s, this is why i tried to recentered everyone with autoradio powered by Android, but I failed miserably ;) Oct 29 20:24:58 i drive a manual every now and then, my husband has one Oct 29 20:24:59 Only people I know who drive shift (Or want to anyway) or those crazy students who like to think they're drag-racers Oct 29 20:25:17 or anyone in europe Oct 29 20:26:05 Driving stick is more fun but will become like owning vinyl records in the future Oct 29 20:26:19 drifting like hell is good. period. Oct 29 20:26:20 Hey, Vinyl sounds awesome Oct 29 20:26:22 Shut your mouth' Oct 29 20:26:34 I mean with self driving cars. Oct 29 20:27:01 i'm watching the hurt locker Oct 29 20:27:08 at least the good thing is you won't be able to get pulled over for "swerving" or some other bs Oct 29 20:27:09 this got an oscar? Oct 29 20:27:15 wat is dat? oO Oct 29 20:27:19 Maybe there'll be a robot arm that moves around a stick that doesn't do anything in the UK. So people don't feel like they're wasting fuel with an automatic. Oct 29 20:27:29 Snuffel, that seems to be a general consensus Oct 29 20:27:45 i am waiting for a story here Oct 29 20:27:51 Quite often in random watchers and from everyone I've spoken to, 100% of the reaction from anyone in the military Oct 29 20:27:56 so far all I see is an idiot playing with bombs Oct 29 20:28:06 i'm 45 minutes in Oct 29 20:29:02 * Workboot doesn't own any of his renderscript code, now, and can't see how it runs. Oct 29 20:30:14 hi guys, is asus FT700 good? Oct 29 20:30:21 that is what i wanna buy it Oct 29 20:30:35 anyone can give me suggestion on that one? Oct 29 20:30:45 no clue, but why not a nexus? Oct 29 20:30:51 why nexus? Oct 29 20:30:56 phong you should really goto best buy and handle them and see what you like Oct 29 20:30:56 it's only 7 Oct 29 20:30:59 7" Oct 29 20:31:00 affordable and will be updated Oct 29 20:31:15 bedtime Oct 29 20:31:16 also 10" soon Oct 29 20:31:22 nini everyone Oct 29 20:31:27 lasserix, well...i would love too. but maybe you guys know the answer up front Oct 29 20:31:30 goed avond Snuffel ;) Oct 29 20:31:38 depends what you want out of it Oct 29 20:31:42 adq: doei! Oct 29 20:31:43 Snuffel: hurtl locker made you sleepy ? :P Oct 29 20:31:43 best! Oct 29 20:31:47 i dont care about price Oct 29 20:31:59 as long it is best! Oct 29 20:32:00 g00s: busy workday did :) and a busy weekend before that Oct 29 20:32:07 like speed, graphic, bla bla Oct 29 20:32:13 i have a asus transformer which is nice with the keyboard, but I don't nearly use it as much as the n7 i have becomes the n7 is easier to carry etc Oct 29 20:32:43 lasserix, what about reading it? Oct 29 20:32:49 the n7? Oct 29 20:32:49 hard or easy to read book? Oct 29 20:32:50 ctate: I don't see any Imagination hardware. Am I missing it, or are they not in quite the position they need to be right now? Oct 29 20:32:51 yeah Oct 29 20:32:59 like reading pdf file Oct 29 20:33:02 "Imagination"? Oct 29 20:33:04 I thought it would be harder but it is not Oct 29 20:33:08 oh, IMG gpus? Oct 29 20:33:08 IMGTEC Oct 29 20:33:11 like I said you should goto best buy and try it out Oct 29 20:33:18 cause i will be using for reading pdf book Oct 29 20:33:22 Yeah. Oct 29 20:33:25 what I really want is a pdf reader that will form fit the text Oct 29 20:33:31 nobody has any particularly performant ones other htan Apple, who shells out for custom Oct 29 20:33:46 phong_ seriousily try the 10' and 7' i thought the 7 would be too small but it wasn't Oct 29 20:33:55 certainly they were totally out of the running for the Nexus 10 Oct 29 20:34:05 plus if you are moving around all day the 7 is lighter and easier to carry / handle Oct 29 20:34:11 Apple aren't offering compute, though, are they? Oct 29 20:34:16 lasserix, ok tell me 1 thing Oct 29 20:34:21 i assume not Oct 29 20:34:32 So it's not performance so much as functionality which is in question. Oct 29 20:34:35 lasserix, if you browser web with overall view page...can u see text at all? Oct 29 20:34:40 Well, they might both be. Oct 29 20:34:48 yeah for the most part, Oct 29 20:34:56 cause some tablet require a bit zoom to get the text Oct 29 20:35:06 i always zoom Oct 29 20:35:11 even with my 10' Oct 29 20:35:17 true Oct 29 20:35:24 currently i have galaxy tab 10.8 Oct 29 20:35:26 10.1 Oct 29 20:35:31 make sure you get a stand too Oct 29 20:35:42 Well, at least I know why I kept running into my ex-colleagues in Sunnyvale, now. Oct 29 20:35:43 so you're sure i get nexus 7? Oct 29 20:35:48 all the vertical stands i've seen kinda suck so far Oct 29 20:35:53 does it has sd slot? Oct 29 20:35:59 its general consesus it's a good tablet Oct 29 20:36:06 no sd slot but that's what the cloud is for Oct 29 20:36:20 no way, i dont want to store stuff on other site Oct 29 20:36:26 not trusty Oct 29 20:36:28 even google Oct 29 20:36:37 i agree but mine was a gift ;p Oct 29 20:36:55 encrypt it locally before sending it to the cloud and problem solved :-) Oct 29 20:36:55 gift is diff..u have to love it Oct 29 20:36:56 phong_: if you want one for reading pdf's I'd get a bigger one. I think the samsungs are the best right now Oct 29 20:37:00 except when you cannot control that Oct 29 20:37:11 and with an external sd card Oct 29 20:37:26 lethjakman_work, galaxy tab 2 is good? Oct 29 20:37:29 the best one in my opinion would be the galaxy note 10.1, but that might be overkill for you Oct 29 20:37:30 fantastic Oct 29 20:37:32 i'm looking to create a popupmenu like the com.cooliris.media.PopupMenu. i'd use android's own PopupMenu but this app needs to run in API 4. is there an alternative i could use on this old device? Oct 29 20:37:41 good price too Oct 29 20:37:52 ok 1 more thing, is nexus 7 quad hardcore? Oct 29 20:37:52 muhoo you can just use a customized popupwindow Oct 29 20:37:53 350 at my local best buy Oct 29 20:37:56 I believe so Oct 29 20:37:59 but the screen is small Oct 29 20:38:08 quad hardcore? Oct 29 20:38:19 lol Oct 29 20:38:20 i know galaxy tab 2 is still duo cores Oct 29 20:38:26 I think he meant hardware Oct 29 20:38:29 why not get the nexus 10 Oct 29 20:38:38 for reading pdf's you don't need more than a dual core Oct 29 20:38:41 a dual core is super fast Oct 29 20:38:45 architecture also matters, not only Ghz & core numbers Oct 29 20:38:47 quad core is for games at this point Oct 29 20:38:50 lasserix: meaning, write my own? the android.widget.PopupMenu is api 11, i'm on api 4 Oct 29 20:38:52 number of cores != speed Oct 29 20:38:54 speed != performance Oct 29 20:38:57 adq++ Oct 29 20:39:02 is nexus 10 out yet? Oct 29 20:39:09 not yet; just announced today Oct 29 20:39:10 not to my knowledge Oct 29 20:39:10 u know i dont care about money Oct 29 20:39:10 it was announced Oct 29 20:39:14 i care about speed and best Oct 29 20:39:16 but if you can wait two weeks... Oct 29 20:39:17 will it have a wacom? Oct 29 20:39:18 i got the money to spend Oct 29 20:39:26 nexus 10 is pretty cheap Oct 29 20:39:29 and pretty awesome Oct 29 20:39:29 phong_: if you want best go galaxy note 10.1, it comes iwth a nice tablet Oct 29 20:39:33 phong_, best is you find benchmarks against product you might buy and then choose based on your criteria Oct 29 20:39:37 because it will be endless :) Oct 29 20:39:46 ofc there are no decent benchmarks out there generally available Oct 29 20:39:50 caveat emptor Oct 29 20:39:55 think longevity also, my htc desire hd is still good but old Oct 29 20:40:00 nexus 10 has 4.2 and will likely get updates quicker than galaxy note Oct 29 20:40:02 best = gaming, graphic, speedy, sd slot. Oct 29 20:40:09 if it has a wacom in it I'll get it...anyone know if the nexus 10 has a wacom like the samsung notes? Oct 29 20:40:12 something related to asus ft700 Oct 29 20:40:24 i know asus has the best model ft 700 Oct 29 20:40:37 Is there a way to reference an attribute in code, ie, if I need to set an icon dynamically but want to rely on the theme/attributes? Oct 29 20:40:40 no Nexus device has had an sd slot since the N1. get over that. ;) Oct 29 20:41:10 phong_ really you should go down to your local best buy or whatever and handle them physically see what you prefer Oct 29 20:41:11 ctate, bad google nexus, why aren't they include it? Oct 29 20:41:15 ssd slot is so simple Oct 29 20:41:22 it's felt to be (very) bad UX. Oct 29 20:41:24 "speedy" and "sd slot" don't belong in the same sentence Oct 29 20:41:30 defeats the point of the cloud Oct 29 20:41:33 hardly anyone needs a sd slot Oct 29 20:41:34 id be fine with no SD if nexus had more than 16GB Oct 29 20:41:43 16 is enough for ME, but i dont have big things Oct 29 20:41:51 lolol Oct 29 20:41:53 err Oct 29 20:41:55 sigh Oct 29 20:41:55 Is there a way to reference an attribute in code, ie, if I need to set an icon dynamically but want to rely on the theme/attributes? Oct 29 20:42:02 canadiancow, i understand ..that is for you. Oct 29 20:42:11 canadiancow, should speak for all other users Oct 29 20:42:13 im on your side here phong_ :P Oct 29 20:42:58 but yea its annoying that i can get like a 64GB sd card for $5, but i cant even buy a larger nexus Oct 29 20:43:08 one day amazon had a sale a few months ago and i bought a 32 Oct 29 20:43:15 thinking "oh awesome i can put this in my galaxy nexus" Oct 29 20:43:16 it arrived Oct 29 20:43:18 i opened it up Oct 29 20:43:22 then realized the GN had no sd slot Oct 29 20:43:29 facepalm :D Oct 29 20:43:34 yea... Oct 29 20:44:02 fortunatley you were only out the price of a cup of coffee Oct 29 20:44:21 modulo the shipping price higher than the sd itself :p Oct 29 20:45:00 for a 64gb card, s/5/60/ Oct 29 20:45:07 looks like $60 and up is the going rate Oct 29 20:45:18 ctate: why is the sd slot felt to be bad ux ? Oct 29 20:45:24 ask matias Oct 29 20:45:45 i mean, in general it's clear that card swapping etc is just not ideal Oct 29 20:45:45 is there no tactical reason for "forcing" user to use some Google services too? Oct 29 20:45:46 canadiancow, is it that hard to have sd slot for a tab or phone? Oct 29 20:45:47 Will .setIcon(R.attr.mymenuicon) properly use the correct drawable if the attribute is linked to the drawable in the theme style? Oct 29 20:45:49 (or pure parano maybe) Oct 29 20:46:00 ctate: ever have a digital camera :P Oct 29 20:46:13 i mean, try transferring 10g of raw files over usb 2 Oct 29 20:46:16 g00s: yes, and they were a big improvement over film because of much less media swapping :) Oct 29 20:46:33 ctate i think it was a 32, and it was an awesome sale at amazon. it was under $30, free shipping Oct 29 20:46:47 is Galaxy tab 2 and tab 1 any faster in performance? Oct 29 20:46:52 phong_, then you get into the issue of "where should this file go" Oct 29 20:46:55 plus the core problem of spreading data across them is quite complex Oct 29 20:47:14 and if you put essential data on the external storage, what happens if hte user upgrades it? Oct 29 20:47:16 do apps break? Oct 29 20:47:19 what happens when the user swaps a different disk in palce and suddenly the app has different data available than it used to? that's a mess. Oct 29 20:47:27 * canadiancow high fives ctate Oct 29 20:47:31 pff Oct 29 20:47:35 good to read Google again decided to skip my country for the new Nexus releases Oct 29 20:47:36 canadiancow, i dont want to store any files on any site Oct 29 20:47:39 period! Oct 29 20:47:47 making the devving much easier. Oct 29 20:47:56 and how does it interact with internal storage? the API design is not there Oct 29 20:47:57 etc etc Oct 29 20:48:02 Chainfire, it's only getting better though :) Oct 29 20:48:03 chainfire dont work on android 4.1.1 Oct 29 20:48:04 My 64gb asus tf700 has a sd slot.. That just seems pointless.. How much shit do I need on my device Oct 29 20:48:16 phong_, 4.1.1 is so old. it's all about 4.1.2 Oct 29 20:48:35 so, chainfire still don't work Oct 29 20:48:44 SimonVT, why? Oct 29 20:48:53 SimonVT, i love storing movies Oct 29 20:48:59 SimonVT, and any files i want Oct 29 20:49:00 something mixed up oO Oct 29 20:49:04 I'd find an sd-card pointless probably with 64gb as well Oct 29 20:49:06 You are the 1% Oct 29 20:49:10 i think it's probably a fair bet that Google actually *wants* to be able to ship product on the entire planet Oct 29 20:49:10 as it is, all these 16gb devices though ... Oct 29 20:49:21 SimonVT, dont use it Oct 29 20:49:25 i remember seeing a list somewhere of all the intents that the hardware buttons on devices issue, i.e. home, menu, etc. where is that? Oct 29 20:49:33 SimonVT, you have the option not to use..rather then no option at all Oct 29 20:49:44 the Home key does not issue an Intent Oct 29 20:49:46 nor does the Menu key Oct 29 20:49:47 or Back Oct 29 20:49:50 I don't have to option not to pay for it Oct 29 20:49:51 SimonVT, let say nexus 7 has sd slot and without...is it hurt to have sd slot? Oct 29 20:49:52 or indeed any of the hard keys Oct 29 20:50:11 it would be too easy to spoof maybe Oct 29 20:50:26 phong_, yes Oct 29 20:50:27 SimonVT, having more options are always better Oct 29 20:50:36 becuase if only 5 people buy the one with the slot, its a huge loss Oct 29 20:50:43 and then the software has to be designed to handle that Oct 29 20:50:45 don't use it if u dont like it......and if u want to use it..it's there Oct 29 20:50:59 ok, i'll call up asus and have them make one with a slot Oct 29 20:51:05 you'll go write all the code to support it? :P Oct 29 20:51:06 ok thanks Oct 29 20:51:12 i'm trying to spoof a menu key being pressed, to launch a... menu. this is old-skool, no actionbar Oct 29 20:51:15 adding a slot doesnt mean it will "work" Oct 29 20:51:15 phong_, it's not so simple, too many options confuse the lambda user Oct 29 20:51:18 it's like information & noise Oct 29 20:51:28 you know what Oct 29 20:51:28 and also no hardware menu button either :-( Oct 29 20:51:31 canadiancow, sd slot is not new... Oct 29 20:51:35 remember the maylong ,150? i think it swallowed the card forever Oct 29 20:51:42 sd slot ....even old 10 years old phoen can handle it Oct 29 20:51:45 if you'd add a non-functional SD card slot, probably enough extra people would buy it "just cause" ;) Oct 29 20:51:46 once you inserted it, that was the end … Oct 29 20:51:51 (and never miss it actually working) Oct 29 20:51:56 muhoo you can't necessarily know if there is a physical hardware menu button, ABS just uses API version tho Oct 29 20:52:12 so what is the bottom line for me? Oct 29 20:52:20 goto best buy and try them out Oct 29 20:52:22 nexus7 or asus 700 or galaxy tab 2 ? Oct 29 20:52:36 i can spend the money Oct 29 20:52:37 phong_, but what goes on the sd, and what goes internally? Oct 29 20:52:42 nexus 10 Oct 29 20:52:43 where an sdcard is still usefull, (but not for lambda user), it's when your phone operator locks everything in your phone and you have to bypass (censorrred) in order to take control of your device to remove their (censored) Oct 29 20:52:44 dont care if it is 1000 dollars Oct 29 20:52:45 IMO the nexus7 is the best of those but if you really need an sdcard then you lump it with one of the others Oct 29 20:52:59 the gtab2 is 10 inch Oct 29 20:53:02 n7 is 7 inches Oct 29 20:53:04 movies sdcard Oct 29 20:53:06 in france, we have orange.. they lock everything :( Oct 29 20:53:08 files Oct 29 20:53:09 you need to decide hwat you want before you buy anything Oct 29 20:53:10 apps Oct 29 20:53:12 games Oct 29 20:53:18 I'd probably buy a nexus 10 Oct 29 20:53:24 is it out yet? Oct 29 20:53:25 so you want the whole data partition on the sdcard, and system internally? Oct 29 20:53:31 phong_, wait like two weeks Oct 29 20:53:36 soon? Oct 29 20:53:37 wow Oct 29 20:53:45 seriously? Oct 29 20:53:51 i can wait 1 month Oct 29 20:53:51 Just because I prefer 10" tablets to 7" Oct 29 20:53:57 sdcards are typically FAT still, right? that does suck ... Oct 29 20:53:58 2 weeks is no problemo Oct 29 20:54:04 http://officialandroid.blogspot.com/ Oct 29 20:54:07 yeah bad FS. Oct 29 20:54:10 yep Oct 29 20:54:14 g00s Samsung devices can use exFAT Oct 29 20:54:25 Nexus 10: 16GB for $399; 32GB for $499; available on 11/13 in the Google Play Store in the U.S., U.K., Australia, France, Germany, Spain, Canada and Japan. You'll also be able to purchase the 32GB version in over 2,000 Walmart stores in the U.S. Oct 29 20:54:32 sure android could format them as ext4 or whatever, but at that point bad things happen if you happen to put one into a camera Oct 29 20:54:36 i get 32gb then Oct 29 20:54:49 is there sd slot though? Oct 29 20:54:53 Is there a way to force the overflow menu on the action bar to include the icons and not just the text? Oct 29 20:54:54 if it is i get 16GB Oct 29 20:55:01 i dont think so, but i havent actually played with a n10 yet :( Oct 29 20:55:14 * canadiancow wants all the devices Oct 29 20:55:15 No Nexus * device since the Nexus One has had an sd card. Oct 29 20:55:16 no sd slot forget it ...rather stick to nexus 7 Oct 29 20:55:22 n7 doesnt have one either... Oct 29 20:55:29 why $100 for 16 extra GB? Oct 29 20:55:41 does anyone ever complain to google? Oct 29 20:55:41 it's always such overpriced bullshit Oct 29 20:55:43 ctate: So you say all current 4.2 platforms support GPU Renderscript acceleration. Is that expected to carry on into the future, or is CPU fallback going to be acceptable for other hardware wanting to run 4.2? Oct 29 20:55:46 seriously Oct 29 20:55:50 phong_, you seem to be doing a pretty good job of it Oct 29 20:56:00 haha Oct 29 20:56:03 and then they probably say it's because most go for the 16 GB model Oct 29 20:56:06 i really want to write a letter to google Oct 29 20:56:10 well just leave that model out completely Oct 29 20:56:13 Xerion: cause they can? Oct 29 20:56:14 complaining about the sd slot thing Oct 29 20:56:14 drop in an ocean :-) Oct 29 20:56:17 just start with the 32GB one :/ Oct 29 20:56:24 ok next year the nexus will be $800 with your precious 64GB and SD slot Oct 29 20:56:27 and no one will buy it Oct 29 20:56:30 well what I find the worst about this SD card situation Oct 29 20:56:34 Workboot: i haven't played iwth it much but i *believe* RS will dynamically choose where to schedule work based on what is available and performant Oct 29 20:56:45 is that even though OEMs will add sd-card support, Google will never fix the API now they're not using it anymore ;) Oct 29 20:56:49 remember that the cpu is likely to be much more performant than the gpu in almost all workloads Oct 29 20:57:00 do you think someone out there already complain about sd slot situation to google? Oct 29 20:57:04 but when parallelization is beneficial you'll get offloading as well Oct 29 20:57:13 ctate: Oh. Well that suggests a lot of development for nothing... Oct 29 20:57:30 phong_ I think if you Google "nexus sd-card", you will find there are enough people complaining. Oct 29 20:57:34 OpenCL soon for Android ^^ Oct 29 20:57:38 Workboot: ? Oct 29 20:57:50 ok i get nexus 7 Oct 29 20:57:54 thanks guys Oct 29 20:57:57 adq: ew, whyh downgrade? Oct 29 20:58:01 Well, the work put into getting Renderscript GPU accelerated, and then the decision to not bother with it because it's not the fast option. Oct 29 20:58:02 wait it is 4 cores right? Oct 29 20:58:05 is it? Oct 29 20:58:08 yes Oct 29 20:58:11 Is there a way to force the overflow menu on the action bar to include the icons and not just the text? Oct 29 20:58:11 nexus 7 is a REALLY nice device Oct 29 20:58:13 don't know, but if it follows like in our desktops, gpu might come handy Oct 29 20:58:15 phong_, you've been complaining for like an hour. if you dont think there are any googlers in here listening to you... Oct 29 20:58:15 tbh I don't think I need that much space for apps, sd reader on usb should work for just data if need be... Oct 29 20:58:25 Workboot: so you want your code to run *slower*, just so you can say it's running on the gpu? Oct 29 20:58:28 ok...as long i can read pdf ...i'm goo Oct 29 20:58:29 good Oct 29 20:58:30 lasserix: i know there is no hardware button. this is an app designed to run on one specific peice of hardware only Oct 29 20:58:32 thanks guys Oct 29 20:58:35 seriously i think we're talking across each other here Oct 29 20:58:42 RS will use hte gpu if it's faster to do so Oct 29 20:58:47 the hardware runs api4 because it runs api 4. i can't do anything about that. Oct 29 20:58:56 if you're doing a lot of parallel things, then using the gpu will definitely be a win Oct 29 20:58:56 But if you're asserting that that's rarely the case, then what was the point? Oct 29 20:58:59 it also has no menu button. Oct 29 20:59:14 if your'e doing one compute-intensive thing, then the gpu is likely to be slower than the cpu, so why bother scheduling the gpu for that? Oct 29 20:59:15 muhoo: oh you can force a legacy menu button by setting min sdk to less than 11 or something Oct 29 20:59:27 i'm sayign it's likely to *prefer* the cpu, when it has the choice Oct 29 20:59:31 lasserix, i'll buy nexus 7 on craiglist then Oct 29 20:59:34 *target 14 set min to 11 or something Oct 29 20:59:37 an expeecting otherwise is frankly nuts Oct 29 20:59:40 i can get it fast Oct 29 20:59:43 because see above; mobile GPUs are dog-slow Oct 29 20:59:48 agreed! Oct 29 20:59:49 ctate: Do you mean most cases where someone would bother to write the code in renderscript, or most cases in general? Oct 29 20:59:54 phong_ good luck make sure the screen is not fucked Oct 29 20:59:56 most cases in general Oct 29 21:00:06 that said Oct 29 21:00:21 if you're writing a task that is not parallelizable, then i question why you'd want to run it on the gpu anyway Oct 29 21:00:36 on desktops sure; desktop GPUs are studly Oct 29 21:00:38 but not mobile GPUs. Oct 29 21:00:54 agreed also :-) but looking mobile evolution, it tends to be a computer and a gaming station like our computers became Oct 29 21:01:05 they'll get there Oct 29 21:01:07 i took a perf course in school, where we had to do some gpu stuff. it was like a million times faster than the cpu for certain tasks Oct 29 21:01:09 blew my mind Oct 29 21:01:16 but power + heat are much bigger issues for mobile than they were/are for desktops Oct 29 21:01:20 There is a class of operations which don't benefit from conventional high-clocked CPU cores, but that's probably still not a reason to bother the GPU with the task. Oct 29 21:01:20 so it might follow this scheme, but choosing between cpu & gpu is definitively close to an "expert-system" Oct 29 21:01:54 (remember that a current-gen mobile SoC is likely to be clocking the cpu at 10x or more the gpu's clock rate) Oct 29 21:02:20 with very different memory-access constraints etc Oct 29 21:02:27 What I'm not getting is what one might write in Renderscript which isn't fit for GPU. Oct 29 21:02:30 quantum semiconductor will change everything, but I speculate too much Oct 29 21:02:36 Scalar compute-intensive tasks? Oct 29 21:02:39 "fit for"? Oct 29 21:02:41 future will tell us :-) Oct 29 21:02:42 lasserix, screen is not fucked? what is that supposed to mean? Oct 29 21:02:46 any root experts Oct 29 21:02:46 floating point, maybe? :) Oct 29 21:02:49 tell me something about it!!!! Oct 29 21:02:51 i just need a quick hint Oct 29 21:03:00 * adq avoid double on Android because same as float but twice the memory Oct 29 21:03:09 adq: uh, what? Oct 29 21:03:15 ctate: I'm not sure if I'm able to comment on that. Oct 29 21:03:16 i read that in perf guidelines iirc Oct 29 21:03:28 double is not the "same as" float Oct 29 21:03:30 so i tend to use float everywhere (if i don't have to cast too) Oct 29 21:03:31 oh, if you don't need the resolution Oct 29 21:03:35 it's ... twice the precision Oct 29 21:03:37 i know mantisse & exponent. Oct 29 21:03:44 so indeed it's not the same. Oct 29 21:03:46 canadiancow, can android connnect to sql server stuff? Oct 29 21:03:49 phone_ there is not a lot of light bleeding or some kind of scratches / broken pixels? Oct 29 21:03:55 phong_, yes? Oct 29 21:03:58 and yes on ARM SoCs float operations are likely to be comparable speed to double Oct 29 21:04:00 I never really got the levels example and why it used floating-point. Oct 29 21:04:08 but i don't need so much precision, yet Oct 29 21:04:10 (on some platforms float is slower than double, on some it's faster, on some it's the same) Oct 29 21:04:21 canadiancow, i meant can android sdk stuff...be program to connnect to sql server database? Oct 29 21:04:25 raa good now, makes me afraid :| Oct 29 21:04:37 Workboot: anyway, once the actual docs etc are out i imagine you'll have a lot more useful info Oct 29 21:04:39 You're not always allowed to approximate a float with a double, are you. Is it implicitly allowed in Renderscript? Oct 29 21:04:42 no, get a java lib from the people who make the server Oct 29 21:04:47 same as for any other platform Oct 29 21:04:57 ctate: "Useful" as in "am allowed to talk about it"? Oct 29 21:05:00 phong_ the mono for android stuff should :) Oct 29 21:05:02 oh ...so the java lib will support sql server connection? Oct 29 21:05:06 why would you not be allowed to approximate a float with a double? doubles can exactly represent anything representable as a float Oct 29 21:05:11 i see. Oct 29 21:05:12 btw, are we getting 4.2 for the GalNex any time soon ? Oct 29 21:05:19 Workboot: useful as in written by someone who actually knows a lot about it :) Oct 29 21:05:21 ctate: They don't round the same. Oct 29 21:05:28 android is java thing anyway :) Oct 29 21:05:32 oh, fair enough Oct 29 21:05:34 ctate, i played with DSP and audiotrack, i really thought i would "gain" (or not lose) something, but I did not run any tests to compare Oct 29 21:05:35 floating point is hard Oct 29 21:05:48 ctate: Don't forget I've been following the same development from the underside. Oct 29 21:05:50 i have my own Fastmath lib and i tend to use FloatMath when possible Oct 29 21:05:51 yeah Oct 29 21:05:54 (because not always possible :/) Oct 29 21:06:03 FloatMath isnt even faster than Math anymore Oct 29 21:06:15 there was a bug filed against it Oct 29 21:06:29 ew just use java.lang.Math Oct 29 21:06:38 also for low device and memory, reading the perf guidelines as i said, i really thought I would benefit of something... but now the world just fallen appart lol Oct 29 21:06:46 it is the superior option in all cases nowadays Oct 29 21:06:47 http://code.google.com/p/android/issues/detail?id=36199 Oct 29 21:07:08 thx for the advice! I will look into it Oct 29 21:07:22 we should @Deprecate FloatMath Oct 29 21:07:44 yes please, I really thought it was better :| Oct 29 21:08:18 canadiancow, any good book for beginner android dev? Oct 29 21:08:24 i dont know Oct 29 21:08:28 android for dummy? Oct 29 21:08:34 sounds about right Oct 29 21:10:05 ok sir Oct 29 21:10:17 I also need to look the impact of cast (because sometimes I believed it was better to avoid a cast).. all theses things leaded me to float lol :| omg Oct 29 21:10:22 canadiancow, you seem to be so knowledgeable Oct 29 21:10:31 thanks :P Oct 29 21:10:37 but if you read everything on d.android.com, that will help Oct 29 21:10:39 it has a lot of basic info Oct 29 21:10:45 and its more up to date than a book Oct 29 21:11:05 dude, u must know...it's need to be step-by-step Oct 29 21:11:11 example: click file. open. then save Oct 29 21:11:12 i think a book is good for advanced user, pedagogic approach like school, or if you don't have a screen near you Oct 29 21:11:12 ;) Oct 29 21:11:22 heh progress, emulated droid telling me to connect charger, how to get around this? Oct 29 21:11:28 otherwise for d.android.com is great for starting Oct 29 21:11:32 s/for// Oct 29 21:11:33 phong_ if you actually went to the site he tells you to go to, you would find TUTORIALS. Oct 29 21:11:48 d.android.com is good enough for everybody having any experience programming Oct 29 21:12:01 Chainfire, seroiusly, are u related to the program call chainfire 3d? Oct 29 21:12:53 yes, I am. Before you continue, please consider that the app (as stated in the description) is for Gingerbread. If you have anything to say about Chainfire3D on Honeycomb, Ice Cream Sandwich, or Jelly Bean, you might as well not say it :) Oct 29 21:13:12 I lol'd Oct 29 21:13:12 why not? Oct 29 21:13:23 you should make it works for all Oct 29 21:13:25 .... Oct 29 21:13:48 Is there a way to force the overflow menu on the action bar to include the icons and not just the text? Oct 29 21:14:17 Yes, but I'm not gonna tell you cus you shouldn't be doing that ;d Oct 29 21:14:32 canadiancow, anwyay, i'll buy nexus 7 Oct 29 21:14:39 And it's a horrible hack that's likely to break Oct 29 21:14:40 1GB ram is good right? Oct 29 21:14:43 but no sd slot? :-) Oct 29 21:14:50 oh god Oct 29 21:14:52 please dont start this again Oct 29 21:14:53 i dont care he said it's good Oct 29 21:14:54 * adq hides Oct 29 21:14:55 SimonVT, ahh okay, why is it that the icon shouldn't be there? Oct 29 21:15:07 phong_ you should really take this discussion to #android Oct 29 21:15:12 canadiancow, was joking sorry :p Oct 29 21:15:13 * ctate gestures meaningfully with the banhammer. Oct 29 21:15:19 ok let me go there Oct 29 21:15:20 brb Oct 29 21:15:36 * Chainfire whistles at said banhammer, nods agreeingly Oct 29 21:15:41 Because there's no icons in the overflow menu .. that's how android works now Oct 29 21:15:42 :P Oct 29 21:15:58 ABS has icons there Oct 29 21:16:13 *I am using ABS but Oct 29 21:16:19 im actually not serious Oct 29 21:16:22 Not in the overflow menu Oct 29 21:16:30 i wouldnt mind icons there i think Oct 29 21:16:33 could be useful Oct 29 21:16:33 can't you put custom views there, like chrome does for the back/forward buttons? Oct 29 21:16:44 I like it that there's no icons Oct 29 21:16:46 chrome's is almost certainly an entirely custom actionbar Oct 29 21:16:57 is there a book for learning android for the experienced developer? something that goes into the internals and all of the technical details as well? (I imagine "Windows Internals" or as a parallel title) Oct 29 21:17:08 http://d.android.com Oct 29 21:17:10 Much cleaner Oct 29 21:17:22 eh i like the look of them kinda Oct 29 21:17:26 like in ShareActionProvider Oct 29 21:17:49 That's different Oct 29 21:17:53 jondot> what sort of internals? down low its just a linux system, on top its a Java VM. Oct 29 21:17:54 The icon tells you the app Oct 29 21:17:56 well other than the official documents and api actually. Oct 29 21:17:57 jondot: dunno, but you can watch the google i/o talks about advanced subjects Oct 29 21:18:01 The text can be anything.. Like "add document" Oct 29 21:18:04 those are usually very informative Oct 29 21:19:07 MDijkstra: thanks i'll check it out. however I was looking for a reference book to keep on my desk (or searchable on my desktop). I think i saw "Wireless Android Application Development" and had a good impression but i was judging by the cover Oct 29 21:19:27 jondot: problem is those books are usually quickly out of date Oct 29 21:19:58 maybe a book related to the NDK because it's a lever lower than the SDK? (despite using the NDK is controversial nowadays) Oct 29 21:20:14 I bought an OS X internals book a couple of years ago that's now completely useless Oct 29 21:20:17 again it all depends what sort of internals he's looking for Oct 29 21:20:20 is there a good "ipod touch" style device for exploring android dev lite? Oct 29 21:20:20 why is using the NDK controversial? Oct 29 21:20:33 sampullman: because it adds a lot of complexity Oct 29 21:20:46 MDijkstra: you're right. When I read Windows Internals, it was a very hard read and was'nt that up to date. but it did give me all of the reasons Windows' programmable API was designed the way it was, all of the software constructs and low-level constructs. I was able to later completely understand even higher-level frameworks such as .NET. I think it was the best way to learn a system to high-degrees of expertise. Oct 29 21:20:50 obviously, but how is that controversial? Oct 29 21:20:58 pro & cons Oct 29 21:21:06 Now, i'm looking for that kind of book for Android. It'll be a hard read but i'm willing to invest the time Oct 29 21:21:09 sampullman: I don't know whether that's controversial, but it's often not worth it Oct 29 21:21:09 there are correct and incorrect situations for it, that's all... Oct 29 21:22:00 and of course it prevents your app from working on new architectures that may be added down the road Oct 29 21:22:04 ie, MIPS, x86 Oct 29 21:22:05 How do I use setIcon if I need to to point to an attribute that is linked to the proper drawable through the theme style? Oct 29 21:22:16 re: NDK: so C is the new ASM in Android land? Oct 29 21:22:38 MDijkstra: in a sense, I don't want to jump on the App developent wagon. I want to learn the android SDK. To understand why everything was build the way it was and how it got there. Oct 29 21:22:38 not really Oct 29 21:22:53 no joke but I have begining to like Java because of Android.. I'm/was a C/C++ guy Oct 29 21:22:54 you can't really port ASM... supporting a new architecture with the NDK will be quite a bit easier :P Oct 29 21:23:04 oh, okay :p Oct 29 21:23:04 jondot: thats kinda why i read linux kernel source in my off-time Oct 29 21:23:14 Chainfire, are you the guy behind the winmo and Android drivers? Oct 29 21:23:20 it is what it is. a lower level of abstraction, meant for performance intensive apps Oct 29 21:23:21 EdLin> yes Oct 29 21:23:22 jondot: i know exactly how small chunks work, every function call right down to the register pokes Oct 29 21:23:23 and a few other things Oct 29 21:23:28 clever: thats a bit lower level I guess. I'd like to study the Java SDK first. Oct 29 21:23:30 Chainfire, thanks. :) Oct 29 21:23:49 and if you want a custom sqlite ;) Oct 29 21:23:53 jondot: i also studied how android added sqlite to the java env Oct 29 21:24:06 jondot: and i found out, you can kinda escape the java vm 'jail' Oct 29 21:24:22 clever: i see. so i'm guessing there is no "Android SDK Annotated" of sorts yet? Oct 29 21:24:27 yeah escaping the vm :( Oct 29 21:24:28 jondot: the sqlite lib has private functions that take bare points, and it stores bare pointers in private java variables Oct 29 21:24:45 evading* to be more close to the lexical field Oct 29 21:24:45 jondot: using reflection, i think i can fudge those pointers, and call functions with 'invalid' pointers Oct 29 21:24:49 lasserix: Probably through Context.getTheme().obtainStyledAttributes .. just do it in xml Oct 29 21:24:55 clever: could that be used in a standard android app? Oct 29 21:24:58 jondot: so i can posibly, with work, run shellcode and escape the vm Oct 29 21:24:58 adq: but why? Oct 29 21:25:10 there is no dvm "jail" in Android Oct 29 21:25:11 lethjakman_work: posibly, but why bother, NDK makes it easy and proper Oct 29 21:25:12 SimonVT: i can't because i switch the theme at runtime depending if user wants black on white or white on black Oct 29 21:25:28 ctate: yeah, with NDK being open, its not really a jail Oct 29 21:25:32 lasserix: Restart your activities when that happens Oct 29 21:25:50 oh I can't because it's a rating icon Oct 29 21:25:51 ctate: but its still a 'hack' if your using reflection to force sqlite libs to run shellcode Oct 29 21:26:00 needs to swap between axed/starred/nuetral Oct 29 21:26:02 just totaly useless Oct 29 21:26:06 oh well Oct 29 21:26:17 clever: i have no idea what you're talking about Oct 29 21:26:24 what is "shellcode"? Oct 29 21:26:32 ctate: pre-compiled assembly Oct 29 21:26:36 in the past it was possible to run anything in bionic without permissions like in dalvik (maybe 2 years ago), friends showed me (they work in security but I did not yet even own an Android) Oct 29 21:26:37 you want to run native code, just run native code. Oct 29 21:26:39 ctate: generated used with buffer overflow attacks Oct 29 21:26:42 JNI -> boom. Oct 29 21:26:45 ctate: prepared bit of code to be executed by unwilling lib Oct 29 21:26:47 i know, thats why i said the hack is pointless Oct 29 21:26:50 clever: again, why? what are you trying to accomplish? Oct 29 21:26:54 JNI lets you do it without jumping thru hoops Oct 29 21:27:05 its just something i stumbled upon by chance while looking at other stuff Oct 29 21:27:13 but tbh, i don't master this subject right now. Oct 29 21:27:24 adq: that is not true Oct 29 21:27:37 i dunno what you are remembering, but that has never been true Oct 29 21:27:47 also, VM sandboxing has never been part of the Android security model. Oct 29 21:27:49 like a fake vuln?? Oct 29 21:27:49 *EVER* Oct 29 21:27:53 * Workboot thinks he might be interested if he hadn't just peered in halfway through. Oct 29 21:28:00 also, you just said "run anything in libc" Oct 29 21:28:03 effectiely Oct 29 21:28:05 which is nonsensical Oct 29 21:28:28 ctate: yeah, with all permsisions done properly at the kernel level, theres no need to lock the app into a java vm Oct 29 21:28:41 even if they break out (the door isnt locked), they cant do any more harm then before Oct 29 21:28:53 it's more like "sandbox-based permissions do not and have never worked, we won't even pretend otherwise" Oct 29 21:29:08 yeah but SE-Android is still experimental, no grsec or lids policies or whatever yet, from what I know Oct 29 21:29:10 pity that 4.2 seems to have gone with SELinux Oct 29 21:29:23 adq: there was some impressive early work by TOMOYO people Oct 29 21:29:29 ctate: i think java applets are the only time sandbox permisions really 'work' Oct 29 21:29:35 i really need to look on this topic Oct 29 21:29:43 and even then, if i simply sign an applet, the default policy unlocks all the doors Oct 29 21:29:49 SimonVT should I use that getTheme.obtainedattributes and just throw all the various icon states in my state object and reference that? Oct 29 21:30:16 sandbox can run, assuming it's properly done (hint - most OSes, without using obscure features or weird tricks, lack necessary functions) Oct 29 21:30:20 should i set android:exported="false" on my BroadcastReceivers? Oct 29 21:30:27 (run securely, that is) Oct 29 21:30:39 clever: java sandboxing has had its share of problems Oct 29 21:30:47 MDijkstra: such as? Oct 29 21:30:56 also, is there any way to determine when an sms is sent? i didn't see anything obvious in the permissions about it Oct 29 21:31:04 clever: vulnerabilities allowing reading outside the sandbox Oct 29 21:31:05 I'm not an expert on this field so i prefer to back-up :p Oct 29 21:31:10 errr back-off Oct 29 21:31:15 MDijkstra: ah, just not doing its job Oct 29 21:31:16 a couple of months ago there was a string of critical java vulnerabilities Oct 29 21:31:28 *java applet Oct 29 21:31:45 where you could exploit the classloader, iirc Oct 29 21:31:53 the thing i dont like about java applets, you cant define your permisions like you do in android Oct 29 21:31:55 MDijkstra: Did these apply to Dalvik? Oct 29 21:32:03 Does anyone know how to override the 'show' command on mediaPlayer when using it to play HTML5 video? Oct 29 21:32:04 either you get nothing (unsigned), or you get everythng (self-signed) Oct 29 21:32:05 no, in-browser stuff only, I think Oct 29 21:32:28 Hodapp: like i keep saying, VM sandboxing is *not* relevant for Android's security & permissions model. Oct 29 21:33:17 The WebChromeClient override onShowCustomView has many example that have this line... super.onShowCustomView(view, callback); Oct 29 21:33:17 if (view instanceof FrameLayout) { Oct 29 21:33:17 FrameLayout frame = (FrameLayout) view; Oct 29 21:33:17 if (frame.getFocusedChild() instanceof VideoView) { Oct 29 21:33:35 Is there an outline of Android's security model, somewhere? Oct 29 21:33:42 However, I never see the frame have an instance of VideoView. Oct 29 21:33:53 I know what I have to go through to install an app, but I know that it doesn't represent any kind of security to me as a user. Oct 29 21:34:01 Even if I set autoRequery=false in CursorAdapter, getView is called. Do you know why? Oct 29 21:34:04 Workboot: ive seen it on the dev site before, *looks* Oct 29 21:34:31 Workboot: http://developer.android.com/guide/faq/security.html Oct 29 21:34:37 Workboot: http://source.android.com/tech/security/index.html Oct 29 21:34:42 I did not remember how updates are done though the Google play market (except protobuff and android id, etc..) but I think with evil-grade it's possible to compromise the user-land Oct 29 21:35:15 how long should i expect a contentobserver to stick around? if i wanted to, say, capture and log outgoing texts, would i have to create the contentobserver inside of a service? Oct 29 21:35:17 but it's still the oldschool ManIntheMiddle attack concept, nothing new Oct 29 21:35:33 iirc you have to be able to compromise ssl to do that Oct 29 21:35:42 ah true, now it's encrypted Oct 29 21:35:43 (i'm using a contentobserver in the first place because that's apparently the only way you can detect when an sms is sent) Oct 29 21:35:43 and if you can compromise ssl you have an awful lot of targets to choose from Oct 29 21:35:55 (cause i played with android-market-api long time ago, not official api ofc) Oct 29 21:36:07 do most rooting methids require usb and a desktop system, or are there any that can be done fully from the android device? Oct 29 21:36:09 ctate, totally agreed Oct 29 21:36:23 most rooting methods are "fastboot oem unlock; fastboot flashall" :) Oct 29 21:36:28 just wondering, could an evil app use such methods, to gain root and hijack the whole system Oct 29 21:36:34 recently I discovered dsploit too Oct 29 21:36:39 ("rooting" is such a stupid term re Android) Oct 29 21:36:41 but still have not played (legally ofc) with it Oct 29 21:36:49 you just need to compromise an authority of the android keystore Oct 29 21:36:50 it's like a powerfull dsniff Oct 29 21:36:53 whooo savy ! Oct 29 21:36:56 ctate> if by "most" you mean "a small number", then yes, absolutely! Oct 29 21:37:04 ctate: i dont remember having to use fastboot to actualy root it, i managed to do it without rebooting the device, i think Oct 29 21:37:09 Chainfire: we're working on that :) Oct 29 21:37:27 we are? Oct 29 21:37:33 but its been a while Oct 29 21:37:45 be that as it may, most rooting methods are not "fastboot oem unlock; fastboot flashall" right now. Oct 29 21:37:49 clever: there have been ways to root a device from the device in the past. I believe it's completely possible. Last I checked you could access the console through an application in android. Oct 29 21:37:54 canadiancow: it often feels rather Sisyphean Oct 29 21:37:57 which is how most of t he rooting seems to take place Oct 29 21:38:12 lethjakman_work: yeah, i saw a priv escalation hack mentioned on a blog recently Oct 29 21:38:28 lethjakman_work: and rooting is pretty much always gaining root when you shouldnt, then just replacing the su binary Oct 29 21:38:40 s/replacing/adding/ Oct 29 21:38:48 (retail builds don't ship with 'su') Oct 29 21:39:05 Too much talk about evil apps. That's not how you want to do it. What you want to do is turn good apps evil. Oct 29 21:39:10 would it be impossible to access the raw file system? Oct 29 21:39:10 i tried su on a non-rooted phone a while back and it said i lacked permision Oct 29 21:39:20 which would imply it was there, and simply locked Oct 29 21:39:26 clever: that's the boilerplate response for trying to run a nonexistent app Oct 29 21:39:28 :) Oct 29 21:39:39 I've changed permissions on android while rooted, then unrooted it before Oct 29 21:39:40 oh, *kicks shell* Oct 29 21:39:42 (srsly) Oct 29 21:39:43 Let the user make their trust decision and then ride on those privileges doing evil things. Oct 29 21:40:12 anyway, #android-root is the channel for this stuff; take it there Oct 29 21:41:09 does anyone know why a view having alignParentRight inside a RelativeView prevents layout_marginRight from working on that view? Meanwhile, if something is alignParentLeft, layout_marginLeft seems to work just fine. Oct 29 21:45:11 * Jug6ernaut wants android 4.2 kb Oct 29 21:45:35 google implemented one of my app ideas in 4.2 :( Oct 29 21:45:53 what, multiple users? Oct 29 21:45:59 lol naa Oct 29 21:46:10 oh? Oct 29 21:46:24 screen magnification, tho i havent seen it its on http://www.android.com/whatsnew/ Oct 29 21:47:03 aha Oct 29 21:47:07 yeah, accessibility FTW Oct 29 21:47:08 will be interested to see how they went about it once source is out Oct 29 21:49:42 oh, glad magnification is in. Oct 29 21:49:58 yup Oct 29 21:50:00 There was a session at Droidcon with the RNIB and they were moaning a bit about the lack of that Oct 29 21:50:21 i wonder how it works...like is it system wide, for textviews...ect Oct 29 21:50:49 Does anyone here have experience overriding the controls in mediaplayer when using it with HTML5??? Oct 29 21:51:17 my only experince with html5 is avoiding it lol Oct 29 21:51:25 I tried using Talkback the other day. It's harddd Oct 29 21:51:34 haha Oct 29 21:51:41 I will never again bemoan the contentDescription: linter warnings Oct 29 21:52:13 never ignore the lint! Oct 29 21:53:18 psht Oct 29 21:53:24 unless you're doing Android Development Oct 29 21:53:53 lol no fan of lint Chainfire? Oct 29 21:54:17 I wish lint was smart enough to catch: if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.XXXX) { foo(); } else { bar(); } Oct 29 21:54:28 its nice enough if you're writing new code Oct 29 21:54:55 if they suddenly introduce it when your code is full of (if android_version == cool then dosomething) it is an absolute nightmare Oct 29 21:55:09 haha Oct 29 21:55:11 yea Oct 29 21:55:22 of course, you could just do a file-wide supress Oct 29 21:55:27 but that makes my skin crawl Oct 29 21:55:42 ctate would probably have a heart-attack if he saw you do it Oct 29 21:55:52 lol Oct 29 21:56:47 and of course there's the weirdness that I have "cleaned" all my projects a gazillion times, and still, out of the blue, lint will sometimes break my compile showing a new error on old code. Oct 29 21:57:15 * Workboot wonders if he wants to re-code something from scratch to try out shiny new Renderscript. Oct 29 21:57:37 It could never possibly be a bad idea to recode everything from scratch. Not at all >_> Oct 29 21:57:40 I hated the structure of my old demos, anyway. I didn't know Java when I started. I didn't know it when I finished either, but I'd still do it differently. Oct 29 21:57:41 build it all into a proxy class Oct 29 21:57:46 Yea lint can be weird at times Oct 29 21:57:53 instantiate the right one once at setup time based on the platform Oct 29 21:57:54 boom Oct 29 21:58:17 I don't even know what a proxy class is. Oct 29 21:58:23 lol @ people who don't get why pre-release phones get lost in public... Oct 29 21:58:24 How would I know if I'd attended one? Oct 29 21:58:39 hush you Oct 29 21:58:42 lol @ people Oct 29 21:58:45 * Oct 29 21:58:46 I guess because someone else would have sent me there. Oct 29 21:58:59 p_l: because nobody's ever accidentally left small personal items at the bar after a few drinks before? Oct 29 21:59:11 never! Oct 29 21:59:25 ctate: if a platform (such as Nexus 7) supports MHL at the hardware level, could my application leverage that to query HDMI-attached devices for metadata? Oct 29 21:59:36 no clue! Oct 29 21:59:42 AFAICT, from d.android.com there is no support for MHL at all Oct 29 21:59:47 protip: N7 does not support MHL Oct 29 21:59:56 Galaxy Nexus does Oct 29 22:00:05 N10 has an HDMI port Oct 29 22:00:11 yet.. people claim to have attached their N7s (etc) to their HDTVs successfully with a converter cable Oct 29 22:00:11 mini? Oct 29 22:00:15 arg Oct 29 22:00:19 * Jug6ernaut wants a n10 Oct 29 22:00:24 but i already have 3 tablets :S Oct 29 22:00:27 ctate: they seem to think that those devices shouldn't be taken out in public then... ofc "field testing" never enter their brain Oct 29 22:00:29 and barely use any of them lol Oct 29 22:00:31 mr_bono: *some* prototype N7 devices had MHL support in hw, for demo purposes Oct 29 22:00:33 final hw does not Oct 29 22:00:42 ok, sorry, not N7, I think it was GXNX that I was reading about Oct 29 22:00:43 p_l: yeah. silliness. Oct 29 22:01:02 GXNX? heh, never seen that abbrev b4 Oct 29 22:01:06 did you pull some kind of Apple-style gaffe (RE: leaving phone @ bar) ctate? Oct 29 22:01:10 i did not Oct 29 22:01:12 ctate: I'm not sure that development hardware is a personal item, is it? Oct 29 22:01:17 How are people getting confused about that? Oct 29 22:01:22 hehe.. me either.. my boss uses it :/ Oct 29 22:01:24 ctate: we actually had a real HDMI port :) Oct 29 22:01:32 mr_bono: someone else did Oct 29 22:01:35 a cellphone you've got for "dogfood" testing is still your phone, y'know? Oct 29 22:01:38 we aren't apple Oct 29 22:01:45 :) Oct 29 22:01:46 we don't lock this shit up in sealed rooms and so on Oct 29 22:01:52 lol Oct 29 22:02:04 Well that works great, doesn't it. Oct 29 22:02:29 Workboot: Well, carphonewarehouse spilled the beans earlier anyway Oct 29 22:02:39 where is an appropriate place to put a contentobserver that i want to run whenever what it's observing changes? Oct 29 22:02:44 *Google* actually has quite a good track record about leaking new android hw Oct 29 22:02:52 our partners, not so much.... Oct 29 22:02:59 * Jug6ernaut personally hates leaks Oct 29 22:03:21 ctate: I suspect that the culture simply makes people invested in keeping things close Oct 29 22:03:22 got some flaky ODMs, ctate? Oct 29 22:03:24 Your parnters are as paranoid as Apple. Oct 29 22:03:36 mr_bono: OEMs, retailers Oct 29 22:03:42 ah, ok Oct 29 22:03:52 SimonVT, thanks for pointing out how to do that, got it working Oct 29 22:03:55 remember that we're in a very different position from Apple on this front Oct 29 22:03:57 (at least given the few people I know personally at google) Oct 29 22:03:59 Apple is the OEM. Oct 29 22:04:00 we aren't. Oct 29 22:04:15 I guess the people at, say, carphone warehouse uploading details of a new device to the website are a lot less invested in any secrecy Oct 29 22:04:33 * mr_bono blames any stupid questions on the Southern Tier 2X Stout he may or may not be consuming currently Oct 29 22:04:33 i was not exactly amused by the CPWH leak. Oct 29 22:04:37 but why does a retailer get that kind of information so far in advance of launch? Oct 29 22:04:56 What was their leak, anyway? Oct 29 22:04:57 ctate: don't forget that Apple loves "elite" label in their marketing (nothing wrong with that, tbh), so making the process shrouded in mystery works great fro them Oct 29 22:04:59 canadiancow: they have to have time to familiarize the floor staff, actually stock boxed items, set up displays, etc. Oct 29 22:05:00 *for Oct 29 22:05:15 and that takes a month? Oct 29 22:05:20 p_l: they're just like this, though, and have been for a very long time Oct 29 22:05:22 canadiancow: actually, yes Oct 29 22:05:24 canadiancow: sounds about right Oct 29 22:05:25 like they knew the name of the device before i did Oct 29 22:05:39 distribution logistics being what they are Oct 29 22:06:06 seems that most people stick their contentobserver in an activity, which means it'll only be running so long as the activity is... Oct 29 22:06:19 there's something sexy about the simple "4" / "7" / "10" designations for those models Oct 29 22:06:23 canadiancow: you need make promo materials for your specific company, training manual, make the people properly knowledgeable about the device so they can pitch it to customers, etc. Oct 29 22:06:27 having "Galaxy" in the name was kind of lame Oct 29 22:06:27 it'd be nice if there were some way to register a broadcastreceiver that would somehow be called when some contentprovider changed... Oct 29 22:06:36 having "Galaxy" in the name was because Samsung. Oct 29 22:06:39 4/7/10 wokrs great until next year :P Oct 29 22:06:40 Clearly the next Nexus device will be the Nexus 5 with a 5" screen. Oct 29 22:06:40 like you're some Voltron fan who is stuck in the 80s or something.. Oct 29 22:06:45 Nexus 4 2! Oct 29 22:06:47 yeah, I know Oct 29 22:06:49 :) Oct 29 22:06:51 canadiancow haha Oct 29 22:07:01 nexus 4.2 :o Oct 29 22:07:01 \asian_dad{Nexus 4 2?}{Why not Nexus 4:20?} Oct 29 22:07:04 The Nexus Note. Oct 29 22:07:08 just make it 4^2 ;) Oct 29 22:07:18 p_l: with sharp corners, natch Oct 29 22:07:21 ah, beat me to it, p_l Oct 29 22:07:31 but is that the same as the nexus 16? Oct 29 22:07:39 some1 find me a copy of 4.2 kb already! Oct 29 22:07:49 ctate: give me sharp corners and qwerty keyboard slideout, and I'm sold ;) Oct 29 22:07:51 If I am trying to do something like holo dark with ABS do I just use the theme Theme.Sherlock? Oct 29 22:08:19 I want all these retina screens to come to 24" monitors already. Oct 29 22:08:29 lol retina Oct 29 22:08:35 i want the whole "retina" crap naming to stop Oct 29 22:08:38 yes Oct 29 22:08:38 marketing is cute Oct 29 22:08:39 Estel: ++ Oct 29 22:08:40 me too Oct 29 22:08:40 gosh its rediculous Oct 29 22:08:41 lasserix: works for me, yes Oct 29 22:08:42 ==Jug6ernaut Oct 29 22:08:45 *1000 Oct 29 22:08:49 Jug6ernaut, i second that Oct 29 22:08:57 Estel: Nexus 10 has the same resolution as my 30" display :)) Oct 29 22:08:58 every single "retina" screen is actually different resolution, with iphone 4 having the highest Oct 29 22:09:01 If it says Retina I want to be non-invasively implanted into my skull Oct 29 22:09:01 iirc Oct 29 22:09:05 140d DPI even would be. ce Oct 29 22:09:12 p_l, not quite Oct 29 22:09:17 Engineers want marketing BS to stop. News at 11. Oct 29 22:09:22 :D Oct 29 22:09:24 lol Oct 29 22:09:43 Sculptor: did they make a display with higher than 346 dpi (or was it 326 in iphone4?) Oct 29 22:09:53 yes, Oct 29 22:09:55 500 dpi Oct 29 22:09:58 IIRC the iPad is <300 Oct 29 22:10:04 hey guys, im sort of confused about mipmaps Oct 29 22:10:04 ipad is <300 Oct 29 22:10:04 it is Oct 29 22:10:05 Sculptor: where? Oct 29 22:10:07 260~ Oct 29 22:10:19 KaiKai: what confuses you? Oct 29 22:10:25 I know of some manufacturers having such screens, but they aren't sold to Apple ;) Oct 29 22:10:45 Fine, I just want a monitor with quadruple the pixel density ^.^ Oct 29 22:10:58 Estel: IBM BigBertha? :P Oct 29 22:11:10 Chainfire: WORD. Oct 29 22:11:30 p_l, who cares about apple Oct 29 22:11:43 I find 1920x1200 is fine for me @ 24"... don't really need higher. What I do need, is for my next screen to still be 16:10, while 16:9 seems to be the only thing on the market right now for some reason. Oct 29 22:11:47 Chainfire: well, stop, or start interesting marketing. Marketing doesn't need to be bullshit Oct 29 22:11:52 I have textures in 1024x800 sizes and that would be perfect for HD on tablet but for devices with smaller resolutions such a huge texture wouldn't be needed. Is mipmaps used to pre-scale the big textures down and reverse or are they used to create extra textures for scaling? Oct 29 22:11:53 no Oct 29 22:11:57 marketing is always bullshit Oct 29 22:12:01 else it would just be a factlist Oct 29 22:12:10 Chainfire: factlist is also marketing, actually Oct 29 22:12:15 That depends how you define marketing. Oct 29 22:12:17 Chainfire, cheap 16:10 24" with some sort of ips panel is dell ultrasharp u2412 Oct 29 22:12:37 Sculptor: the problem is getting 16:10 in laptop :/ Oct 29 22:12:42 The U2412 is really good at its price. Oct 29 22:12:46 romainguy: basically i'm wondering if I would decrease FPS drastically if I used different texture sizes and placed them in their respect dpi folders or can the same FPS decrease be done with mipmaps? Oct 29 22:12:47 Chainfire, $260 Oct 29 22:13:09 * p_l needs to buy a new laptop, but thanks to blasted Apple following it's getting harder and harder every year Oct 29 22:13:14 there's that 27" 16:10 display if someone's interested Oct 29 22:13:18 for $380 iirc Oct 29 22:13:33 p_l> yeah I get what you mean, but its still usually BS though ;) Oct 29 22:13:52 KaiKai: i don't even understand hte question. if you have different variants per density, the platform will just load the most density-appropriate one at runtime and give you that. Oct 29 22:13:55 for my followup I'm looking for 27"-ers, indeed. Not yet though. Oct 29 22:13:59 Chainfire: now, marketing *departments* in many places are full of bullshit :P Oct 29 22:14:24 the basic rules for fast drawing always apply: don't scale at draw time, don't use translucency / overdraw Oct 29 22:14:31 Chainfire, check this out http://www.anandtech.com/show/5885/the-achieva-shimian-qh270-a-350-27inch-wqhd-sips-display Oct 29 22:15:03 KaiKai> as I understand it (maybe romainguy will correct) mipmaps are used by the GPU itself when you render an object "far" when it needs less detail then the large texture. When selecting different textures to use per-device, you would use the different dpi folders instead Oct 29 22:15:04 ctate: so what does mipmap do? it just increases quality and decreases FPS when you do scale? Oct 29 22:15:15 Chainfire: he's talking about a different kind of mipmaps Oct 29 22:15:20 i'm not a graphics guy really; i don't even know what a mipmap is :) Oct 29 22:15:23 actually nope Oct 29 22:15:26 chainfire got it right Oct 29 22:15:30 how can i make a contentobserver always be active? Oct 29 22:15:37 ask romainguy_ :) Oct 29 22:15:40 thats what i thought too just needed verification Oct 29 22:15:47 sorry for the lousy explaination Oct 29 22:15:51 Escherial: it's active as long as its process is running and it's registered. Oct 29 22:16:00 well we have drawable-mipmap Oct 29 22:16:03 but why would you need a content observer to be active even when your app isn't running? Oct 29 22:16:06 which is related to resources Oct 29 22:16:12 actually, now that i think about it, i guess i could just have my uploading service poll the contentprovider i'm interested in uploading rather than locally caching things to my own db Oct 29 22:16:18 anyway, I wouldn't expect any "fps decrease" from using mipmaps Oct 29 22:16:19 *uploading from Oct 29 22:16:19 romainguy_ oh, what does drawable-mipmap do? Oct 29 22:16:33 they are just a little more expensive to generate when you upload textures Oct 29 22:16:53 ctate: i want to capture a log of incoming and outgoing texts...incoming is easy, since an intent is broadcast when one's received, but for outgoing you apparently have to read from a contentprovider Oct 29 22:16:59 romainguy_ : but by using the devices dpi folder's resources instead of using assets which contains the default 1024x800 texture it would increase fpscorrect? Oct 29 22:17:21 KaiKai: not necessarily Oct 29 22:17:38 but it's better to use properly sized textures to avoid resizing artifacts Oct 29 22:17:49 romainguy_: If you don't want an switchover artefact between the different levels of detail then you have to use linear blending between levels, and that'll set you back some performanec. Oct 29 22:18:18 Workboot: which is why I said "not necessarily" Oct 29 22:18:20 Sculptor how's the color reproduction on that ? Oct 29 22:18:26 but if the rest of the app doesn't do much... Oct 29 22:18:36 trilinear filtering is not a big deal on newer GPUs Oct 29 22:18:38 romainguy_: I type too slowly. Oct 29 22:18:49 Chainfire, donno. read reviews Oct 29 22:19:07 Sculptor> oh, I thought you had one, sorry Oct 29 22:19:16 It's not a big deal, but it is more data that needs to be fetched. Oct 29 22:19:17 nah, no Oct 29 22:21:05 ah, great news Forstall is leaving apple. phew Oct 29 22:21:20 "is leaving" Oct 29 22:21:20 heh. Oct 29 22:21:22 Brain pick: there's a local currency around here that allows people to transfer money using SMS (recepient, amount, PIN). Anything I should particularly be concerned about with an Android wrapper around this? Oct 29 22:21:37 ctate: yeah, Siri and maps tool their toll :D Oct 29 22:21:42 why are we happy somebody got fired Oct 29 22:21:55 because he was an asshole Oct 29 22:22:06 * Workboot never met him Oct 29 22:22:08 most engineers are, next ? Oct 29 22:22:11 lol Oct 29 22:22:19 Chainfire: i hope not ! Oct 29 22:22:23 lol Oct 29 22:22:29 hey im not an asshole... Oct 29 22:22:31 only irl Oct 29 22:22:34 and on irc Oct 29 22:22:38 Chainfire: where /do/ you work :( :D Oct 29 22:23:14 anyhow, he always disagreed with ives on skeuomorphism - maybe that shit will be gone too Oct 29 22:23:32 you mean no more sliding toggle switches? :) Oct 29 22:23:57 well, i mean stuff like fake leather backgrounds etc Oct 29 22:24:11 how is it fake leather? Oct 29 22:24:14 * Jug6ernaut stops Oct 29 22:24:20 hehe Oct 29 22:25:17 who was of what opinion ? Oct 29 22:25:36 * Jug6ernaut is of the right opinion Oct 29 22:27:41 so last night i ordered a new wireless router, and some ink for my printer Oct 29 22:27:44 guess which cost more :( Oct 29 22:27:45 How do I restart an activity if I need to change the theme? Oct 29 22:27:57 the obvious answer would be ink Oct 29 22:28:00 so I'm going for router Oct 29 22:28:06 why is that obvious :( Oct 29 22:28:11 your printer uses ink? Oct 29 22:28:12 sucker. Oct 29 22:28:13 because ink is expensive Oct 29 22:28:19 stupid expensive Oct 29 22:28:22 and wireless routers are as worthless as their price indicates Oct 29 22:28:34 inkjet printers are infamously superexpensive per page Oct 29 22:28:38 http://theoatmeal.com/comics/printers Oct 29 22:28:43 THAT. Oct 29 22:28:46 ctate, any recommendations on printers then? Oct 29 22:28:49 laser Oct 29 22:28:51 i really need an all in one scanner/printer Oct 29 22:28:58 3d printer Oct 29 22:29:03 that doesnt cost $1500 Oct 29 22:29:06 * ctate is still using his ~ 2000 HP laser printer Oct 29 22:29:09 well, he could have bought a $5 router and $10 in ink, we don't know how bad it was :P Oct 29 22:29:11 i've had to change the toner cartridge *once* Oct 29 22:29:19 it was a bit over $100 Oct 29 22:29:23 for > 50,000 pages Oct 29 22:29:24 router was $100 on sale for $35 Oct 29 22:29:26 ink was $40 Oct 29 22:29:37 it's easy to pay $100 in a *year* with inkjets Oct 29 22:29:41 canadiancow: if you installed the 600MB CrapPrinterBundle.exe , you would have noticed a 1% off coupon on your next 10th ink cartridge Oct 29 22:29:50 lol g00s Oct 29 22:30:23 my printer always just works Oct 29 22:30:39 my printer has been moved too many times...somethings brokenish Oct 29 22:30:46 i'll probably replace it the next time i need ink Oct 29 22:30:47 certainly more reliable than the ones I had years ago Oct 29 22:30:55 My printer always just works, because I installed Cloud Print on my boss' printer. Oct 29 22:30:59 and I use it every month. Oct 29 22:31:00 I heard Apple's gonna do printers Oct 29 22:31:01 If I am using static DialogFragment newInstance() { return new DialogFragment(); } do I need to clean up this instance somehow after I'm done with it/ ie the user click okays/cancel? Oct 29 22:31:08 * Jug6ernaut lives in the digital age and has no printer Oct 29 22:31:29 dbro: sounds like a fools market, it's only going to shrink Oct 29 22:31:30 I need to have a 7-year papertrial neatly organised each month for mr tax man inc Oct 29 22:31:34 * Workboot remembers a wax-based printer which came with unlimited black ink, but found ways of getting colour onto practically every page. Oct 29 22:32:03 estel: http://www.theonion.com/articles/new-apple-ceo-tim-cook-im-thinking-printers,21207/ :) Oct 29 22:32:36 I have a printer... somewhere Oct 29 22:32:54 I wonder if going into printers is as deadly as embedding a mail client was Oct 29 22:33:09 i'm starting to wonder if all this work i did to capture call direction and duration is for naught, as i could've just read it from the call log... Oct 29 22:33:13 I was about to say with wireless Cloud Print you don't need to know where it is... but then I realised the problem Oct 29 22:33:41 they can email a copy of the printed document to you Oct 29 22:33:44 lol Oct 29 22:33:47 * p_l would actually like a standard API for printing in Android. And external screen support ;) Oct 29 22:34:08 can we please get multiple storage location api first Oct 29 22:34:13 I keep hitting reload on the sdk manager looking for api level 17 Oct 29 22:34:47 or before anything happens in any api, please make play store reliable and save me half the support work every day Oct 29 22:34:56 :P Oct 29 22:34:57 p_l: do you think API17 will have full external screen support? Oct 29 22:35:24 I guess you mean something similar to Apple's AirPlay (and AirPrint) APIs Oct 29 22:36:57 anybody know about debugging native code in a mixed Java/C Android project? I'm having a hell of a time and would kiss anybody with help Oct 29 22:37:03 should be a simple solution... Oct 29 22:37:22 who here works for man kisses? Oct 29 22:38:01 i work for the man Oct 29 22:38:09 and he doesn't do kisses Oct 29 22:38:10 I could me a woman. Do you even have the courtesy to a/s/l Oct 29 22:38:13 *be a woman Oct 29 22:38:37 s better be for *size* not *sex* Oct 29 22:38:39 :P Oct 29 22:38:45 * ahmedammar goes back to lurking Oct 29 22:38:49 dbro: asl? Oct 29 22:38:50 d bro hmm Oct 29 22:39:15 size isn't a better metric Oct 29 22:39:24 Frigolit: whatever/you/want Oct 29 22:39:27 ;) Oct 29 22:39:27 14/f/FBI Oct 29 22:39:29 kind of adds to the dirtyness of the topic Oct 29 22:39:41 randomblame: size would be very good to know these days though Oct 29 22:39:50 a/s/s/l Oct 29 22:39:53 Whats the best way to restart an activity if I change the theme? Oct 29 22:39:56 a/w/h please Oct 29 22:40:11 oh right, s/size/weight/ :P Oct 29 22:42:55 Chainfire: what problems are you having with the play store? Oct 29 22:45:10 g00s it not giving people the app download when they pay for it Oct 29 22:45:18 so, at a high level, if i want to record a user's call and texting behavior to some external place for analysis, should i be capturing intents and logging them in my own app for upload, or should i just iterate through the call/text logs via their respective contentproviders and upload that? Oct 29 22:45:33 g00s or my apps no longer being available for download (only repurchase) when signing into a different phone with the same account Oct 29 22:45:45 i'm going to be kind of sad if it comes to that, as i've wasted a lot of time writing a contentprovider for locally storing activity logs Oct 29 22:45:48 g00s or some vague error Oct 29 22:45:56 the problem is that people always think its the developer's fault Oct 29 22:45:57 oh man Oct 29 22:46:03 not Google's Oct 29 22:46:07 hi yall Oct 29 22:46:12 payment failures? email the dev whose app your viewing Oct 29 22:46:25 seriously, this kind of stuff is over half the support emails I get Oct 29 22:46:47 that could be a good feature for google to add to play; if something like that goes wrong they can have a channel for communication right there Oct 29 22:46:49 for the 30% cut Google takes, at least they can fix these tiny issues on their side Oct 29 22:47:06 (the play app, that is) Oct 29 22:47:09 heres my personal favorite Oct 29 22:47:16 apps randomly not being compatible with some devices Oct 29 22:47:27 according to Play Oct 29 22:47:41 for apparently no reason. Oct 29 22:48:29 hmm. i think it would be good if, when you go to list your apps, there is a 'i have a problem' link or something and it lets the user communicate to google 'i paid, but didn't get it', major stuff like that Oct 29 22:48:43 but yeah its Google, so stuff will never be fixed. I once managed to get a response from a Google support email, which came down to "the problems you are reporting dont exist, fuck you and goodbye" Oct 29 22:48:51 lol Oct 29 22:49:28 can you blame them though - it's easier tyo ignore a problem than to fix it Oct 29 22:49:40 it's my favorite thing to do when someone reports an issue Oct 29 22:49:44 I say you Oct 29 22:49:52 are doing it wrong and you're dumb go away Oct 29 22:49:52 its like when somebody asks for a refund, I get an email from google with a link to the report online on wallet, and that link doesn't work. replace the wallet portion of the url with checkout, and it does work. I report this problem, and all I get back is that checkout doesn't work because its deprecated. WTF. Oct 29 22:50:42 and while we're on the refund subject, let everybody refund if they want please, even for an entire week would be better than this 15 minutes crap Oct 29 22:51:21 im on the fence with refunds Oct 29 22:51:34 there are many apps i've paid for because i needed them right now for 20 minutes, and then i never used them again Oct 29 22:51:44 but if i could refund it... Oct 29 22:51:55 like where else can you refund software Oct 29 22:52:02 ^^this Oct 29 22:52:07 but at the same time, id rather see apps with ads, and an in-app option to remove them Oct 29 22:52:07 I can go on and on about Google Play ... there's just no end to the problems. And it wouldn't be so bad, if I had a feeling somebody was actually working on actually fixing at least one of the problems. But last time I heard, the people responsible were all fired and a completely new team having 0 experience with the product was assigned. Oct 29 22:52:09 or something like that Oct 29 22:52:20 why not let the dev set refund time? Oct 29 22:52:20 really? Oct 29 22:52:30 sampullman, i like that, except then it confuses users Oct 29 22:52:40 not if it's prominently displayed Oct 29 22:52:59 like a popup on download: Warning, you have x minutes to refund this app Oct 29 22:53:29 i guess Oct 29 22:53:30 canadiancow: again, that could appear in the list of apps you have (you have xx days left for trial) Oct 29 22:53:45 oh while we are on that Oct 29 22:53:52 apply for a job at google and you could fix it! :) Oct 29 22:53:56 the list with all the apps you have paid for does not exist anymore Oct 29 22:54:02 I'll give them a unlimited lifetime guarantee Oct 29 22:54:02 o.O Oct 29 22:54:07 its has just gone away. Oct 29 22:54:10 and that's just a half-assed solution i just came up with, I'm sure an employee paid to think about this stuff could do much better Oct 29 22:54:16 you only now have the list of what apps you have on your device. Oct 29 22:54:20 and maybe configurable notification like 'notify me when i have less than 24 hours left for eval on any app i dl' Oct 29 22:54:26 hah you're right Chainfire Oct 29 22:54:33 less than 24 hours Oct 29 22:54:33 wow Oct 29 22:54:54 hi Oct 29 22:54:54 as I said... if I had the feelign somebody was actually working on improvements... instead it feels like it gets only worse. Oct 29 22:55:20 is it possible to make my android device accept a self-signed SSL certificate? Oct 29 22:55:40 I am currently running cm7.2 stable for htc evo shift (sprint); and was running into the problem of receiving "ghost voicemail" notifications when I didnt have any; I fixed that problem and am happy it's fixed! But now I am running into the issue everytime I receive I voicemessage, I get a text message from number "9016" telling me to call a certain number in order to listen to the message; Oct 29 22:55:40 I tried sending a text "block 9016" to 9999 as seen on multiple sites, but I am still receiving the notification..any ideas? Oct 29 22:55:45 i actually only need this for some xmpp client, but actually it would be cool if anything using SSL would use my selfsigned cert Oct 29 22:56:30 Quagmire3: how many times do we have to tell you this crap is for #android-root Oct 29 22:56:46 Chainfire: that is not true, there is a list of all the apps you've bought and downloaded Oct 29 22:57:02 it still pertains to android right? evo running a stock rom I have read others encounter the same problem. Oct 29 22:57:15 Quagmire3: no, read the topic Oct 29 22:58:09 romainguy_ don't try to convince me, try to convince my phone. Oct 29 22:58:15 romainguy, i cant find that list either Oct 29 22:58:21 i can see "all apps" but not "all purchased apps" Oct 29 22:58:30 so … yeah, 2 good improvements (1) allow devs to select eval time and show time left in market app and (2) create a short taxonomy of major fuck ups that decimate UX like billing issues and allow users to signal that from market , hopefully with resolution Oct 29 22:58:51 canadiancow: it's part of all apps Oct 29 23:00:21 but i think we're both saying we'd like a list of just purchased apps Oct 29 23:04:22 What if you got an app for free through some promotional opportunity, but now it costs money? Should that be on the list? Oct 29 23:05:14 not possible Oct 29 23:05:18 once free, always free Oct 29 23:05:26 you can make a paid app free, but you cant make a free app paid Oct 29 23:05:38 huh really? Oct 29 23:05:43 inneresting Oct 29 23:05:55 it warns you when you try to publish... Oct 29 23:06:12 yeah Oct 29 23:06:39 cos THE MAN CAN'T KEEP YOU DOWN Oct 29 23:07:08 Can you make it more expensive? Oct 29 23:07:33 yes Oct 29 23:08:27 if theres one thing i hate more than apps with splash screens, its apps with splashscreen activities that start a timer, then launch another activity Oct 29 23:08:49 i don't mind a splashcreen if it shows me it's loading something Oct 29 23:09:34 Quagmire3: short story - I don't remember if there's any form of portable, standard voicemail notification than the SMS you get :) Oct 29 23:09:37 even if they use canadian seconds for the delay? Oct 29 23:09:53 ... canadian second? Oct 29 23:09:54 whut Oct 29 23:09:55 Has anyone looked at the time to decompress against the time to read from mass storage to find the fastest algorithm? Oct 29 23:10:10 JakeWharton, stop hating Oct 29 23:10:16 /nick americancow Oct 29 23:10:23 Workboot: it's heavily related to actual storage involved, afaik Oct 29 23:10:24 mikedg already registered that Oct 29 23:10:34 why am I not surprised Oct 29 23:10:41 because mikedg? Oct 29 23:10:45 Workboot: but there indeed have been such comparisons, or at least "easy to calculate" ones Oct 29 23:10:52 p_l: It may be. Or one or other factor may already be in saturation. Oct 29 23:11:27 Things like lz4 are potentially faster than memcpy() and the compression's decent. Oct 29 23:11:37 Workboot: you basically take "how fast the algorithm is on already loaded data" then check how well can you feed its pipeline Oct 29 23:12:18 * p_l is personaly itching to test the "three pointers in one word and a bit" technique Oct 29 23:13:52 aka how to pack stupidly high amounts of data in a tree index Oct 29 23:28:08 If I have a settings fragment, and then a dialog fragment to switch the theme. When I am restarting the activity to swap the theme is there any easy way to reload the whole backstack / take it back to that dialog fragment? Oct 29 23:28:59 how are you restarting? Oct 29 23:29:12 Activity#recreate() should do that all for you Oct 29 23:29:16 I don't know yet, Oct 29 23:29:31 oh I can just call getSherlockActivity().recreate()? Oct 29 23:30:01 *thanks i saw different ways to start it Oct 29 23:30:03 *restart it Oct 29 23:30:14 ahh perfect! thanks Oct 29 23:30:51 well that's API 11+ only Oct 29 23:31:02 oh Oct 29 23:31:18 Do you know the way for froyo and up? Oct 29 23:32:55 Hmm I guess the real deal is whether I want to restore the backstack or just jump to the settings fragment Oct 29 23:34:34 Does android provide an API for accessing the notifications "queue"? I'd like to create an app that pushes android notifications out to my desktop... Oct 29 23:35:47 you could try triggering a configuration change somehow Oct 29 23:35:56 that should cause the activity to recreate itself Oct 29 23:36:11 Thanks Jake Oct 29 23:37:30 savid: no, your app cannot see other apps' notifications Oct 29 23:38:08 p_l: What is that technique? Oct 29 23:38:32 savid: I probably shouldn't tell you this, but you can get most of the data via accessibility events Oct 29 23:38:37 ctate: errr.. unless.. you register as an accessibility service. This is how we do it in IntelliRing. Oct 29 23:39:17 wow that's scary Oct 29 23:39:26 i dont' think i'd trust random apps to be accessibility services Oct 29 23:39:27 why? Oct 29 23:39:33 well that's why it's a permission Oct 29 23:39:38 yeah i guess Oct 29 23:39:47 and i guess being an IME is pretty scary too Oct 29 23:39:51 yeah Oct 29 23:39:53 well, we didnt like asking for those permissions either, but there was no other way. Oct 29 23:40:17 note to self: never install an accessibility service Oct 29 23:40:30 can you have more than one accessibility service installed & active at a time? Oct 29 23:40:37 no. jjust one. Oct 29 23:40:59 multiple installed yes, active only one. Oct 29 23:41:58 * Jug6ernaut 's app is an accessibility service Oct 29 23:42:08 one of them is at least Oct 29 23:42:29 you can have more then one accessability service activiated at once... Oct 29 23:44:14 hmm. I thought not. Enabling one disables the other on my nexus.. or is there some more granuality to the accessibility service? Oct 29 23:48:16 * Chainfire really needs to look into this accessability thing then :P Oct 29 23:48:21 how would you get the DPI of an application? Oct 29 23:48:27 i mean a phone through an application Oct 29 23:49:11 getResources().getDisplayMetrics().something Oct 29 23:49:22 google "android get dpi", first result. Oct 29 23:49:24 where someting is quite likely "density" Oct 29 23:49:31 ping JakeWharton Oct 29 23:49:37 pong tophyr Oct 29 23:50:12 we're finally getting around to adding ABS to our project and we're running into some probs with our build and its various dependencies Oct 29 23:50:16 something i know you've ranted about Oct 29 23:50:43 loads of Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget. common prob? Oct 29 23:50:54 are you compiling with Android 4.0+? Oct 29 23:51:16 ABS is targeted to 4.1, the app consuming the ABS library is on HTC's OpenSense (3.1) library Oct 29 23:51:38 fwiw this is eclipse failing.. in process of getting an ant build going locally right now Oct 29 23:51:43 the app still needs to be on 4.0+ as well Oct 29 23:51:53 gruh, kk Oct 29 23:51:56 that'd be it then Oct 29 23:52:25 will upgrade htc's target to their 4.0.3 latest then. gracias señor Oct 30 00:02:50 exit Oct 30 00:04:00 What's the best way to detect the menuItem selected in onMenuItemClick(MenuItem menuItem)? I do 'menu.add(R.string.new_flashcard_action_bar_text).setOnMenuItemClickListener(this).setShowAsAction(MenuItem.SHOW...);'; Oct 30 00:04:20 I don't want to have to do menuItem.getTitle.equals(getString(R.string.new_flashcard_action_bar_text)) Oct 30 00:04:40 I've got data in a database that I want to bind to a ListView Oct 30 00:04:45 achuinard: use the item ID Oct 30 00:04:51 apparantly some functions in here are deprecated http://developer.android.com/reference/android/app/ListActivity.html Oct 30 00:05:01 achuinard: add an item ID and use that Oct 30 00:05:13 or just keep a MenuItem reference around and compare instances directly Oct 30 00:05:31 ==JakeWharton Oct 30 00:05:42 but Jake, how do I set the ID? Oct 30 00:05:46 in the xml, no? Oct 30 00:05:53 i just instantiate my menus in code Oct 30 00:05:57 you can use XML or there's a four-argument .add method Oct 30 00:08:11 xml ftew Oct 30 00:08:13 ftw* Oct 30 00:08:17 how do i set the activity itself to the onclicklistener Oct 30 00:08:30 i override onMenuItemClick myself Oct 30 00:08:43 you override onOptionsItemSelected Oct 30 00:08:53 which will be called by default Oct 30 00:18:28 Workboot: google "XOR linked list" and now imagine that there's more than two pointers stored in one field, with extra bits for tagging :) Oct 30 00:18:46 http://c2.com/cgi/wiki?ThreePointersInOneWordAndOneBit <--- description with information where it's used Oct 30 00:23:56 <[7]> just fyi, I've just added some more debugging data to my wifi roaming bug report at https://code.google.com/p/android/issues/detail?id=38830 Oct 30 00:24:05 <[7]> along with a hacky workaround patch that actually works :P Oct 30 00:27:12 how can I populate a listview from an sqlite database? Oct 30 00:27:28 ListAdapter Oct 30 00:27:48 my searches all suggest a ContentProvider, but I don't need to share my data Oct 30 00:28:10 why in the world would google go with 1280x768 vs 1280x800? 1280x768 is about half-way between 16:10 and 16:9 Oct 30 00:28:23 the new hawtness is loaders Oct 30 00:28:27 i could understand if the nav bar was always visible, but its hidden in fullscreen Oct 30 00:29:01 it's 702p with a nav bar Oct 30 00:29:06 err, 720p Oct 30 00:29:26 in fullscreen the nav bar is *dimmed* but is still present and interactable; it's just in "lights out" Oct 30 00:30:06 so there is no fullscreen any more, just lights out? Oct 30 00:30:59 depends on the screen size Oct 30 00:31:12 etc Oct 30 00:32:55 i think the idea is that if it's exactly 720p, you can hide the whole bar Oct 30 00:33:07 if you're 720p+bar size (1280x800), you only go lights out Oct 30 00:33:17 basically that Oct 30 00:33:21 so you always get a good movie experience Oct 30 00:34:11 Is this where things degrade into one of thes debates where people regard it as wasted screen space if there are pixels there, but if the same area is consumed by blank plastic with a button in the middle then it's not wasted screen space? Oct 30 00:34:16 except for the three dots below the movie display Oct 30 00:34:21 birbeck, how big is the bar on the n4? is it 48pixels? Oct 30 00:34:24 Workboot: Precisely. Oct 30 00:34:31 canadiancow: ITYM dps :) Oct 30 00:34:40 but you don't Oct 30 00:34:40 so yeah Oct 30 00:34:42 What if you put _opaque_ plastic over the top of those pixels? Oct 30 00:34:44 lol Oct 30 00:34:59 Workboot: then you're gonna have a bad time Oct 30 00:35:11 I was in here yesterday asking similar things - I have a ListView, and I'm trying to measure the height of elements in it. I've gotten getMeasuredHeight to not return 0, but now it changes even though the ListView elements aren't changing. Does anyone know what I can do to a ListView to calculate the size of all elements in it? Oct 30 00:35:19 I've seen it done with a keypad backlight. Oct 30 00:35:24 why are you doing that mdkess Oct 30 00:35:34 No attempt at all at using translucent plastics, so they just cranked up the power. Oct 30 00:36:09 canadiancow, I'm trying to make a ListView with a background texture that scrolls with it. So I need to know where the elements are relative to the first item. I'm so close, but just can't figure this part out. Oct 30 00:36:27 Right now my implementation works if you scroll to the bottom of the list then scroll back up to the top. Oct 30 00:36:54 ctate do you know how the system bar behaves on the n4 for movie watching? Oct 30 00:37:23 i do not Oct 30 00:37:38 it's basically an N7 in a smaller form factor, right? Oct 30 00:37:53 the n7 is 16:10 though Oct 30 00:37:55 ok yea it totally disappears in youtube Oct 30 00:38:02 yeah Oct 30 00:38:03 so it behaves the same as the n7 Oct 30 00:38:14 * SpeedEvil isghs at retarded YouTube app Oct 30 00:38:19 youtube uses the "no really hide it hard" Oct 30 00:38:19 i would guess not Oct 30 00:38:22 flag Oct 30 00:38:27 and then if you touch iirc the nav bar comes back Oct 30 00:38:34 yea Oct 30 00:38:40 so there you go Oct 30 00:38:40 but you cant hide it on, say, the xoom Oct 30 00:38:44 regardless of what you request Oct 30 00:38:50 yeah but hte xoom doesn't run 4.2 Oct 30 00:39:01 (does it run 4.1?) Oct 30 00:39:05 yes Oct 30 00:39:05 can you totally hide it on the n10? Oct 30 00:39:05 * ctate forgets Oct 30 00:39:11 canadiancow: probably Oct 30 00:39:15 oh Oct 30 00:39:17 WELL THEN Oct 30 00:39:20 the hidden-all-the-way tthing is a window flag Oct 30 00:39:25 you can't draw in those pixels, but you can black them out Oct 30 00:39:26 yea but that's been there since ICS Oct 30 00:39:29 ive never understood lights out mode Oct 30 00:39:31 until the user interacts with the device Oct 30 00:39:32 but you could never hide it all the way on xlarge Oct 30 00:39:37 It does. Oct 30 00:39:38 (i think) Oct 30 00:39:53 i wont it totally gone for full screen, i dont like the dots Oct 30 00:39:54 ctate if you have an n10 sitting in front of you... :P Oct 30 00:40:00 hehe Oct 30 00:40:01 Either that or someone did a man-in-the-middle on me and installed something dodgy on the one I had. Oct 30 00:40:07 i ... might :) Oct 30 00:40:09 canadiancow: why dont you? Oct 30 00:40:20 im not special like ctate Oct 30 00:40:34 okay, so Oct 30 00:40:37 How's the compute looking? Is it mind-blowing? Oct 30 00:40:41 youtube does a lights-out thing Oct 30 00:40:45 the nav bar buttons animate away Oct 30 00:40:46 meh Oct 30 00:40:52 bu tthe nav bar itself is still present, blacked out Oct 30 00:41:01 with the faint dots? Oct 30 00:41:07 touch anywhere and the buttons animate back in and the decor reappears and so on Oct 30 00:41:10 no dots Oct 30 00:41:14 oh cool Oct 30 00:41:23 ok, so thats not quite as bad Oct 30 00:41:43 its letterboxed and uncentered though if i am imagining it right Oct 30 00:42:00 but its better than 3 faint white dots Oct 30 00:42:30 i could see the animation being a little less distracting than resizing the viewport however Oct 30 00:42:55 I usually put up with the distraction for a bigger viewport on the GNexus Oct 30 00:43:37 oh well i doubt i will get a n10 anyhow, unless they are free at i/o next year (and i get in) Oct 30 00:43:51 im absolutely done with samsung devices, nexus or not Oct 30 00:44:11 ... Oct 30 00:44:56 i have a tab, tab 10.7, sgs3, note, nexus s and galaxy nexus. ive hated every single one of them Oct 30 00:45:07 10.1* Oct 30 00:45:07 .02/0o,86y-------------------------------------+++++++----+++---++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------------------------------------*-+-----************************************************************************************************************************************************************ Oct 30 00:45:13 poor rim; pentagon replaces aging BB devices with android/ios (162,500) total Oct 30 00:45:17 -+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+g vhh Oct 30 00:46:20 birbeck, really? Oct 30 00:46:27 ive had no issues with GN Oct 30 00:46:38 So does anyone know? Basically - given a ListView and an adapter, I want to build an ArrayList of the height of each element (ie. row) in the ListView. No matter what I do, getHeight and getMeasuredHeight seems to return 0. So I figure that I have to measure the listview in some way, but I haven't figured out how yet. Oct 30 00:46:50 my galaxy nexus with stock jellybean (no roms) always thinks im in vegas Oct 30 00:47:09 I really wish that the Nexus 10 was the rumored 11.6" Samsung tablet - I basically just want a tablet for reading PDFs, the Nexus 7 isn't a great size for that (although it's a great device for what it is). Oct 30 00:47:30 mdkess: yeah! i would love a big tablet for reading pdfs Oct 30 00:47:41 and the signal on it isnt as good as other phone. i totally despise the cheap plastic. the only reason i put up with nexus s and galaxy nexus were for dev phones, but i would never carry one in my pocket as a daily driver Oct 30 00:47:45 the nexus 10 looks like a fucking egg Oct 30 00:47:49 thats what htc + cyanogenmod is for Oct 30 00:48:41 but CM takes so long to get new versions of android Oct 30 00:49:02 my tab 10.1 is running 4.1.2 Oct 30 00:49:16 i dont consider 0.0.1 to be a big change Oct 30 00:49:25 since its a i/o version, it never got upgraded past 3.1 Oct 30 00:49:33 yea my i/o verison...fuck Oct 30 00:49:36 i cnat even get it to boot Oct 30 00:49:44 i get a ton of errors that /data is readonly Oct 30 00:49:51 ive tried reflashing and everything Oct 30 00:50:14 speaking of which, you still owe me a beer :) Oct 30 00:50:42 my evo 4g lte is still 4.1.1 though, but xoom, nexus 7, galaxy nexus have all had official updates Oct 30 00:50:45 yep Oct 30 00:50:53 bring your n4 :) Oct 30 00:51:05 you're assuming i have one Oct 30 00:51:36 too bad you live in the city and work in mv Oct 30 00:51:48 we have completely opposite commutes Oct 30 00:52:16 heh Oct 30 00:52:56 Wondering if it's possible to upgrade my Tab without stupid Kies Oct 30 00:52:57 g00s: see, i have no idea why peope are hating on the N10's visuals Oct 30 00:53:02 in person it looks perfectly lovely Oct 30 00:53:07 "like an egg"? wtf? Oct 30 00:53:13 you hate the curvy corners or something? Oct 30 00:53:16 yea i dont get the egg part Oct 30 00:53:19 it looks fine Oct 30 00:53:19 people need things to complain about Oct 30 00:53:27 OMG THE DENSITY IS TOO BIG Oct 30 00:53:28 ctate: I think people don't realize the size of the device Oct 30 00:53:29 ctate: i would have to see one, i think it looks sleek even if the bezels are a little large Oct 30 00:53:31 ITS GOING TO HURT MY EYES Oct 30 00:53:41 Looked a bit Xoom to me. Initially I thought that one must have come from Motorola. Oct 30 00:53:42 birbeck: the bezel isn't that big Oct 30 00:53:43 its thinner and lighter than an ipad as has a better screen Oct 30 00:53:52 birbeck: at least you can hold the device without putting your fingers on screen Oct 30 00:53:53 but its made by samsung, so im out Oct 30 00:53:56 the bezels or the dead screen margins? Oct 30 00:53:58 Oh, hang on... am I looking at the wrong thing? Oct 30 00:53:59 the bezels are *tiny* Oct 30 00:54:10 sure there's some black margin but it's actually rather trim, not huge Oct 30 00:54:25 romainguy, never had a probly on the tab, xoom, tab 10.1 or n7, but im not complaining about the looks as ive never seen one Oct 30 00:54:26 i mean, you need to have room for your thumbs at the edges or there are usability problems Oct 30 00:54:30 seen an iPad lately? huge margins. Oct 30 00:54:34 [ba dum tish] Oct 30 00:54:46 ctate, seen an ipad mini, lol? Oct 30 00:54:51 i have not Oct 30 00:54:56 Google play isn't choosing my language by my IP address is it? Oct 30 00:55:06 Google keeps speaking German to me. Oct 30 00:55:13 ctate: well those will need to come with a healthy dose of sandpaper for sure Oct 30 00:55:13 Stop that! Oct 30 00:55:14 konnte sein, Workboot Oct 30 00:55:22 ctate: You stop that too! Oct 30 00:55:27 :D Oct 30 00:55:40 play was all spanish for me for a while Oct 30 00:55:43 never figured it out Oct 30 00:56:00 canadianvaca Oct 30 00:56:29 They speak that in Canada, right? One of those weird continental languages, anyway... Oct 30 00:56:32 ¡hola! Oct 30 00:56:35 no Oct 30 00:56:39 canada is english and french Oct 30 00:56:43 vachecanadien Oct 30 00:56:54 ITYM "canada is english and french, eh" Oct 30 00:56:55 Yeah. One of those continental languages. Oct 30 00:56:58 lol Oct 30 00:57:28 4.2 looks like a nice upgrade though Oct 30 00:57:41 what parts of it do you like? Oct 30 00:58:03 all of it! :-) Oct 30 00:58:04 EVERYTHING Oct 30 00:58:06 \o/ Oct 30 00:58:09 nice Oct 30 00:58:17 Ooh... front-speakers.. there's an innovation. Oct 30 00:58:32 im more impressed with the front nfc Oct 30 00:58:44 ah yes Oct 30 00:58:45 nfc Oct 30 00:58:52 im excited for the new keyboard, im been off swipe for a while, and really like swiftkey, having a predictive keyboard with gestures will be nice Oct 30 00:58:58 no stereo nfc. i'm out Oct 30 00:59:02 beaming to my n7 from my gn was always a pain Oct 30 00:59:12 birbeck, im still not sold Oct 30 00:59:13 ctate: I like the miro integration Oct 30 00:59:16 since we have a bunch of tablets, i dont care about the sharing, but thats a nice to have Oct 30 00:59:19 i like swiftkey a lot Oct 30 00:59:20 I wish my wdtv supported it Oct 30 00:59:35 is that an open protocol, btw ? Oct 30 00:59:35 i think photo and video beam should have never been left out of 4 Oct 30 00:59:52 "miro"? Oct 30 01:00:02 birbeck, it is kinda nice lol Oct 30 01:00:04 oh yeah native dlna in 4.2 is nice Oct 30 01:00:05 Jean Mirò ? Oct 30 01:00:07 Chainfire: more like an implmentation standard Oct 30 01:00:32 are you talking about the wifi display stuff? Oct 30 01:00:40 now all isheeps will say google copied airplay Oct 30 01:00:46 basically its just a good overall refinement of ics and jb Oct 30 01:00:52 ctate yes Oct 30 01:00:53 ctate: yeah. is that not dlna? Oct 30 01:00:56 ctate: yeah, Oct 30 01:01:00 i dunno acronyms Oct 30 01:01:00 birbeck: nope Oct 30 01:01:17 it's on another layer Oct 30 01:01:26 ah. well nice feature, but i would have rather google stick to standards unless there was good reason Oct 30 01:01:38 I would have preferred DLNA as well Oct 30 01:01:42 its a crappy standard Oct 30 01:01:45 but lots of stuff supports it Oct 30 01:01:45 ctate: miro is not an acro. it's the company name of who first(?) tried to set a way to doing it Oct 30 01:02:05 my tv supports it :) Oct 30 01:02:11 canadiancow: dlna? Oct 30 01:02:11 I have huge problems with DLNA and flaky wifi networks Oct 30 01:02:15 dlna, yea Oct 30 01:02:27 it's Miracast Oct 30 01:02:27 FernandoMiguel, i had to wire everything to stream anything hd :P Oct 30 01:02:29 canadiancow: DLNA != miro Oct 30 01:02:32 Hang about... the words are in German, but the price is in pounds. Oct 30 01:02:32 but if FernandoMiguel is right, it wont be compatible without the adapter Oct 30 01:02:36 I have huge problems with flaky wiki networks in general. Oct 30 01:02:38 i think my tv also supports miracast Oct 30 01:02:40 i should try that out Oct 30 01:02:42 This same computer used at home doesn't behave like this. Oct 30 01:02:45 wifi, it just never really works, and you always end up pulling cables. Oct 30 01:02:50 Miro is an audio app iirc Oct 30 01:03:02 anyone here have any success using the LMAX distruptor concurrency library on android? Oct 30 01:03:15 crazy-ass internet. Oct 30 01:03:22 *disruptor Oct 30 01:03:25 no, but I once read a great article about it ! Oct 30 01:03:29 it's funny that's easier for me to vpn into my home NAS, stream a movie over dlna to a friend TVs that is ehterner Oct 30 01:03:39 than to do it from a movie on local disk to any tv Oct 30 01:03:44 Chainfire, i ordered a new wireless router, becuase 2.4GHz is just so useless in my new place Oct 30 01:03:55 canadiancow: I want AC wifi now Oct 30 01:04:02 i opted not for AC Oct 30 01:04:06 :( Oct 30 01:04:08 because i was able to get a non-AC router for $35 Oct 30 01:04:13 and its pretty kickass Oct 30 01:04:14 yeah Oct 30 01:04:16 AC would have been like $110 Oct 30 01:04:21 more Oct 30 01:04:23 no Oct 30 01:04:25 refurb :) Oct 30 01:04:27 ok, well im gonna head home Oct 30 01:04:36 have a good night all Oct 30 01:05:15 bye Oct 30 01:09:25 "10-30 01:02:30.527: E/AndroidRuntime(898): Caused by: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list'" Oct 30 01:10:19 sounds legit Oct 30 01:10:32 in the layout i have : Oct 30 01:10:49 i don't understand whats wrong here Oct 30 01:11:51 you're giving it a newly-minted ID that has the symbolic name yourpackagename.R.id.list Oct 30 01:12:15 (note the "+" in the id assignment) Oct 30 01:12:22 RustyShackleford, not @android:id/list Oct 30 01:12:52 err.. pardon my mixed response, I went my editor to grab the correct id, didn't type out the start Oct 30 01:13:17 take out the + Oct 30 01:13:50 note that the sample code is full of: I will try this, but I added the + because autocorrect wasn't finding the id Oct 30 01:14:02 i never actually tried compiling Oct 30 01:14:48 R.id.list doesn't refer to this ListView now Oct 30 01:15:04 there are two different classes called R Oct 30 01:15:11 there's the one your app defines, packagename.R Oct 30 01:15:16 and the Android framework provided one, android.R Oct 30 01:15:25 do not confuse the namespaces, lest ye die Oct 30 01:15:39 at runtime of thrown exceptions Oct 30 01:15:53 Guys.. how many markers can you realistically add to a MapView before you run into trouble/slugging of the map? Oct 30 01:16:07 I was not aware that there were to different classes Oct 30 01:16:19 that seems confusing and non-obvious, no? Oct 30 01:16:21 there can be more than two... Oct 30 01:16:25 no, it does not Oct 30 01:17:56 any news on 4.2 and BTLE support? Oct 30 01:18:09 heh Oct 30 01:18:14 is this a better way to get the id of my ListView? getListView().getId(); Oct 30 01:18:32 i was trying to figure that out voso … didn't see anything though Oct 30 01:18:52 neither did I so far. I really hope its there though.. Oct 30 01:19:09 otherwise, there will be blood!! ;) Oct 30 01:19:29 Any idea when 4.2 is released to AOSP? Oct 30 01:19:41 RustyShackleford, why are you trying to get the id of the ListView? are you using a ListActivity/ListFragment? Oct 30 01:19:52 pclov3r, no Oct 30 01:20:05 how long was it before? Oct 30 01:20:11 when they annoucned 4.1 did it get relased to AOSP Oct 30 01:20:19 i think it was when devices started shipping Oct 30 01:20:35 going to build it for my NS4G lol Oct 30 01:20:44 I wonder when a CDMA Nexus 4 will show up Oct 30 01:20:55 When do you think? Oct 30 01:22:08 gutano: yes, a ListActivity. I want to populate a ListView with data from an SQLite database Oct 30 01:23:24 RustyShackleford, you prob want create an adapter (my favorite is ResourceCursorAdapter), and simply call setListAdapter(cursorAdapter); Oct 30 01:24:00 What exactly is an adapter? Oct 30 01:24:11 * maslen saw them mentioned, but didn't fully understand Oct 30 01:24:21 BitmapDrawable: this has been deprecated... is there a new alternative? Oct 30 01:25:09 maslen, in this case, it handles the conversion of cursor (data) to a view Oct 30 01:25:33 gutano: SimpleCursorAdapter? Oct 30 01:26:14 RustyShackleford, that's fine Oct 30 01:27:27 RustyShackleford, that takes an array of columns and view id's... the resource version is a little more flexible, gives you the 'item' layout and a cursor and you can do things like conditional logic Oct 30 01:28:07 no it's complaining that column _id does not exist Oct 30 01:28:09 mAdapter = new SimpleCursorAdapter(this, Oct 30 01:28:10 android.R.layout.simple_list_item_1, Oct 30 01:28:10 mCursor, Oct 30 01:28:10 new String[] { TrainStopDBHelper.STATION_NAME, "_id" }, Oct 30 01:28:10 new int[] { getListView().getId() }, Oct 30 01:28:10 0); Oct 30 01:28:37 I meant to remove the newlines, I apologize Oct 30 01:28:41 does that column exist? Oct 30 01:28:41 RustyShackleford please use pastebin or smt Oct 30 01:28:46 because it's mandatory Oct 30 01:28:47 you don't want the listview id.. you want the id of the specific views Oct 30 01:28:50 to use that adapter Oct 30 01:29:08 but note gutano's comment Oct 30 01:29:25 and ctate's ; ) your query needs to retrieve _id Oct 30 01:29:27 "_id INTEGER PRIMARY KEY AUTOINCREMENT, " Oct 30 01:29:39 good, good Oct 30 01:29:46 are you querying a specific set of columns? Oct 30 01:30:17 new String[] { TrainStopDBHelper.STATION_NAME, "_id" } - I think this is what I'm querying for Oct 30 01:30:47 does anything there look incorrect? Oct 30 01:31:36 just to be clear, your query 'columns' match your adapter 'from' Oct 30 01:31:55 you have 2 columns and only 1 view id Oct 30 01:32:22 you don't want your "ListView" id, but the layout entries for each item of hte list's individual views Oct 30 01:32:52 gutano: AHA! Oct 30 01:33:03 i had to add _id to the query Oct 30 01:33:09 forgot to go back and add that Oct 30 01:33:17 thank you! Oct 30 01:33:35 go team! Oct 30 01:46:07 nexus 10 is coming out 11/13 Oct 30 01:46:14 why is it still dual core lol Oct 30 01:46:22 while nexus 7 is in quad Oct 30 01:46:33 it's going to be slower then nexus 7 then Oct 30 01:47:19 am i right? Oct 30 01:49:48 phong_: no you're not :) Oct 30 01:49:57 phong_: it's a faster CPU Oct 30 01:50:08 and not all apps benefit from having multiple cores Oct 30 01:50:12 (let alone 4) Oct 30 01:50:16 both devices are plenty fast :) Oct 30 01:50:40 whats up with zero docs on SyncStatusObserver? http://developer.android.com/reference/android/content/SyncStatusObserver.html Oct 30 01:52:26 looking for a simple reference project showing manual sync request + status in action bar (from refresh icon, to indeterminate status and back) Oct 30 01:56:55 gutano: so i lied when I said my problem was fixed. My app doesn't crash, but no text is showing up in elements of the ListView Oct 30 01:58:15 RustyShackleford, that "layout" you use.. is that a predefined list layout? Oct 30 01:58:56 RustyShackleford, I hate to say things in certainties, there are often ways to use this stuff I am not familiar with... but that aside.. Oct 30 01:59:01 gutano: yep. Do I need to define my own style for items? Oct 30 01:59:24 RustyShackleford, create a layout with your desired "item"... use the sub-views id's in your to[] Oct 30 01:59:25 currently I'm using android.R.layout.simple_list_item_1 Oct 30 01:59:33 for the sake of testing, define one Oct 30 01:59:48 getListView().getId() strikes me as totally wrong Oct 30 02:00:36 what would you suggest instead? Oct 30 02:00:50 you only have 1 text field? Oct 30 02:00:55 it seems to work Oct 30 02:01:04 if it works, don't fight it ;) Oct 30 02:01:17 but I thought it didn't work Oct 30 02:01:40 well a listview is created and there are elements in it. They are blank (no text) Oct 30 02:01:43 that is the problem Oct 30 02:02:07 I want to display just one text field Oct 30 02:02:18 there are views within the simple_list_item_1 I imagine (not familiar with this layout, not particularly interested in searching for the def) Oct 30 02:02:29 mdkess you have to do getmeasuredwidth using a measurespec ("exactly” if i recall correctly) Oct 30 02:02:42 you need to provide the id of the TextView within that and provide taht as your new String[] { R.id.myTextView } Oct 30 02:03:27 in the to[] of your adapter params Oct 30 02:04:46 gutano: well won't each item have a different TextView? Oct 30 02:04:52 no Oct 30 02:05:05 each element gets it's own "layout" Oct 30 02:05:32 and the to[] refers to the id's of the sub-views within that specific elements layout Oct 30 02:07:37 gutano: got it! android.R.id.text1 Oct 30 02:07:52 that sounds right Oct 30 02:07:56 Themes should go into themes.xml not styles correct? Oct 30 02:08:19 gutano: it works! thanks again Oct 30 02:08:23 np =D Oct 30 02:18:23 How can I call a constructor dynamically, instead of having a huge amount of if/elses ? Oct 30 02:19:23 I think you might need to re-word that Oct 30 02:19:38 maslen you can overload your constructor parameter lists Oct 30 02:19:55 also, see Builder pattern Oct 30 02:21:34 err, sure. I have a string that represents the type of the object I'd like to create. I want to create one of those. I know it inherits from a class Parent. Ideally, I'd want something like Parent instance = (Parent)new ClassFromString("class name") Oct 30 02:22:25 In python, I could do this with metaclasses or using type(); I think it Java it might require Reflection, but I've never used that. Oct 30 02:24:51 maslen: reflection, though it might not be best idea to do something like that most of the time... but reflection is slow on Dalvik, and there are IMO possibly better ways Oct 30 02:25:06 is the selection of classes limited? Oct 30 02:25:41 p_l: A large amount of the time, they'll be from a small subset, and those I can hardcode in. Otherwise... it could be a bit more complex to generate in advance. Oct 30 02:26:04 Also, this wouldn't need to be done too often, since I cache the results from this, so it shouldn't be required too often. Oct 30 02:26:36 This is for a research paper - if performance is bad, we can always go back and optimize the CPU usage. Oct 30 02:26:54 maslen: I was thinking more of having a static initializer in the classes you want to make "callable", which would register with the class implementing the Factory Pattern (as I believe this is called in java) which would have a hashtable storing the references with string keys Oct 30 02:27:19 p_l: That would be just as much work for me to implement, unfortunately. Oct 30 02:27:29 then reflection it is Oct 30 02:27:52 :( Oct 30 02:28:08 Do you know how to do that? I doubt it would be as easy as it is in Python. Oct 30 02:28:58 not very hard, though at the same time java's objects aren't ugly hacks like Python's.. ;) Oct 30 02:30:26 thats most languages implementations of oo stuff Oct 30 02:30:37 php is half assed at best imo Oct 30 02:30:42 The other thing that would be great to have is a magic method that given an object, returns a String representing the name :( Oct 30 02:30:55 ron_frown: Don't compare anything to PHP. It's embarassing to the other language. Oct 30 02:31:56 ron_frown: everything in PHP is half assed. Including function calls. I wish I was joking. Oct 30 02:32:55 hi, im looking to talk to some people about building/installing plain-jane android, or as close to that as possible. would this be the place? Oct 30 02:33:11 giantpune: seems you want #android-root Oct 30 02:33:26 thanks Oct 30 02:34:28 at least Python's OO was semi-coherent (i.e. dicts full of magic keys) Oct 30 02:45:09 is it just me or does the -s (subprojects) in "android update project" not work? shouldn't that update the used library projects as well? Oct 30 02:51:29 I have a themes.xml but if I am looking them up they show up as R.styles. ? Oct 30 02:53:15 Because the R.(name) depends on the XML element you're using, I think. Oct 30 02:53:25 Your element is probably