**** BEGIN LOGGING AT Thu Jul 25 02:59:58 2013 Jul 25 03:00:24 I'm thinking i wanna just set the GridView numColumns property Jul 25 03:00:44 to something that's screen size specific, and not have to hardcode any width or height attributes Jul 25 03:01:04 im having trouble keeping each grid item square shaped though Jul 25 03:14:05 how do i subclass something to promote a protected method to public Jul 25 03:17:34 Has anybody have any luck installing Google maps V2 on Android 2.2 ? Jul 25 03:21:55 What would be involved in making a GLSurfaceView that in its rendering code appears to have a viewport of some given fixed size, but was actually uniformly scaled to fit the screen of the device it was running on? Jul 25 03:27:33 dumb question, is there an easy way to dowload a stacktrace from the console so i can run proguard / retrace on it? Jul 25 03:57:21 I am using an open source library for graphing. When the user pinches or pans on the graph canvas the library redraws the graph. I would like to start an AsyncTask when this happens, using the parameters of that touch event, to will trigger a redraw of the graph (it will load a small amount of data into the graph). I would rather not modify the the library, but I don't know how to accomplish this. Any suggestions? Jul 25 04:03:31 shigeru: you want to maintain a square aspect ratio? Jul 25 04:03:39 yes Jul 25 04:04:00 but i want that square to grow or shrink depending on the gridview column size Jul 25 04:04:10 shigeru: https://github.com/square/picasso/blob/master/picasso-sample/src/main/java/com/example/picasso/SquaredImageView.java Jul 25 04:04:17 just subclass whatever layout you are using and do that Jul 25 04:04:23 oh sick Jul 25 04:04:54 thanks man Jul 25 04:18:25 hey hey hey you android dudes Jul 25 04:18:32 jake and the like Jul 25 04:18:52 its frowning time ! Jul 25 04:19:09 you know what the last days at work for me have been just one gigantic shit storm Jul 25 04:19:16 so... I'm not frowning now Jul 25 04:19:19 just relaxing =) Jul 25 04:19:47 :) Jul 25 04:27:10 to top it off Jul 25 04:27:21 blasting some badass 80s hair metal Jul 25 04:30:12 lol Jul 25 04:30:22 aww, got my first crash report in like 2 years Jul 25 04:30:32 good thing i still have the proguard mapping :| Jul 25 04:30:48 i wish i could afford something like crittercism Jul 25 04:31:13 i'm lucky the app totally crashed and there was a nice stack trace ready for inspection in my console Jul 25 04:31:17 use crashlytics Jul 25 04:31:26 * g00s googles Jul 25 04:32:54 cool i'll check it out, thanks Jul 25 04:33:25 I was tasked to build an android forum from scratch, can anyways point me towards some research I could use please? Jul 25 04:33:33 what Jul 25 04:33:38 android forum? Jul 25 04:33:47 Yeah Jul 25 04:33:47 like an android related forum Jul 25 04:33:52 or like osmething entirely diff Jul 25 04:34:15 No just a forum which connects to open table Jul 25 04:34:25 wrong channel? Jul 25 04:34:53 Could you point me to the correct channel? Jul 25 04:55:12 What pixel format is the "video/raw" i get from MediaCodec(decoder, video/avc) ? Jul 25 04:56:54 Trying to write a small transcode utility to downscale a (mp4/h264) file. I want pass the outputBuffer from the decoder to the "video/avc" encoder. How do i make sure the formats align. Can I pick the input format of the encoder? Jul 25 05:04:50 JakeWharton, one question regarding this... https://gist.github.com/JakeWharton/6002797 Jul 25 05:05:05 yep Jul 25 05:05:07 One what OS does "mktemp -d -t dex" work? Jul 25 05:05:13 OSX Jul 25 05:05:17 Ah, cool Jul 25 05:05:43 it was quick and dirty... didn't really consider any other platforms Jul 25 05:05:47 I'll just change the template for Ubuntu Jul 25 05:06:27 Yes...it's enough to get me 95% of the way there... Jul 25 05:19:49 "mktemp -d -t dex.XXXXXXXXXX" works on Ubuntu. The dex is listing out, cool. Jul 25 05:30:00 did anyones nexus 4 actually update? because mine didn't....... Jul 25 05:30:46 give it a few days Jul 25 05:31:13 or grab the factory images, if you're desperate Jul 25 05:31:37 mdev still banging your head against this ? Jul 25 05:31:53 yeah,give it a few days Jul 25 05:33:15 desperate would be a strong word, unless some change to 4.3 was going to be a catastrophe to a released app :) Jul 25 05:33:58 StingRay_: someone wanting to upgrade their app before 4.3 floods out to the mass public? ;) Jul 25 05:34:20 or, y'know, the very small percentage of the mass public with Nexi Jul 25 05:34:40 even smaller if not confied to carrier Jul 25 05:34:47 so all 5 of us then :) Jul 25 05:35:01 confined* Jul 25 05:35:04 are there flags like singleTop, etc for fragments? like say I want to add a fragment to the fragment stack and I want it to replace any existing fragment of that type Jul 25 05:35:16 removing any fragment that came after it Jul 25 05:39:02 mdev: i updated my manually Jul 25 05:39:14 with the OTA zip, not the factory images Jul 25 05:41:59 Could I feesibly use Ubuntu for ARM devices to encrypt my previously Android device in such a way that Android would be able to decrypt it? Jul 25 05:49:56 hi Jul 25 05:50:34 got a question..? :) Jul 25 05:51:03 yes Jul 25 05:51:14 err no wrong channel Jul 25 05:51:38 ...? why Jul 25 05:52:55 i was in another channel Jul 25 05:53:19 well i have 10 sax parsers connecting to an url one after another in an AsyncTask....is that wrong to do? Jul 25 05:57:04 any opinions? Jul 25 06:01:10 hey whats a good android device for development? Jul 25 06:01:22 small old phones Jul 25 06:01:28 S5300 :) Jul 25 06:01:42 really? Jul 25 06:01:49 so you can check the backward compatability Jul 25 06:01:54 i see Jul 25 06:01:56 right on Jul 25 06:02:02 emulator does fine with bigger screens Jul 25 06:02:14 right right Jul 25 06:02:23 thanks Jul 25 06:02:39 if it wasnt for my s5300 id never catch the UI bugs Jul 25 06:06:00 I'd get anything thats nexus Jul 25 06:06:48 nexus supports all google stuff Jul 25 06:07:00 so developing on that is the same as the emulator Jul 25 06:07:11 plus you generally get updates better than most other hardware Jul 25 06:07:21 bt i do like nexus Jul 25 06:07:29 can you test play services on emu yet? Jul 25 06:07:46 and though I know I'l lbe a hater for putting it out there Jul 25 06:07:53 emu is slow, and resource intensive Jul 25 06:07:57 tho faster than before Jul 25 06:08:06 true Jul 25 06:08:39 u can go into eclipse and copy the apk in the filesystem Jul 25 06:08:53 i have an google play apk downloader Jul 25 06:09:00 and the dissasemblers :) Jul 25 06:09:17 i still want opinions on my question Jul 25 06:10:08 im doing 10 sequential internet connections in an AsyncTask...is that bad or good? Jul 25 06:14:21 are there any advanced developers here? Jul 25 06:27:39 I have a bunch of MediaCodec questions, if anyone is out there Jul 25 06:31:08 ? Jul 25 06:31:15 codecs for media? Jul 25 06:31:24 whats the questions Jul 25 06:49:39 how can i make a DOS like display on android? which View would i use? Jul 25 06:49:47 sorta like the irc display Jul 25 06:49:48 cxo, grief and pain awaits you there. Jul 25 06:50:06 viovu, probably canvas Jul 25 06:50:22 viovu, you could also try it with textview but that would probably be annoying to customize Jul 25 06:50:26 just make your own Jul 25 06:51:35 it seems like most ppl use listview... Jul 25 06:51:44 just hoping there would be a better way Jul 25 06:51:57 well, no, there is no ConsoleView builtin. Jul 25 06:52:19 have u red my question from before? Jul 25 06:52:26 about the asyncthread? Jul 25 06:52:30 asynctask i mean Jul 25 06:57:31 I tired to use the compatibility library v7 because of action bar. so I copied the appcompat directory, run `android update lib-project -p appcompat -t android-16`, then I aded this lib-project to my own project, but now when I run `ant clean debug`, I got this: http://pastebin.com/raw.php?i=Svz2HKmu any idea how to fix it? Jul 25 06:59:04 my project is compiled against android-10 API, which is also minversion in androidmanifest. Jul 25 06:59:41 Pitel_IPEX, for full compatibility of the ActionBar in older versions, I'd recommend using ActionBarSherlock Jul 25 06:59:54 Pitel_IPEX, http://actionbarsherlock.com/ Jul 25 07:00:03 yip Jul 25 07:00:11 i used sherlock in my new project Jul 25 07:00:15 worked well Jul 25 07:00:16 Fantastic isn't it :) Jul 25 07:00:36 plus there isnt compatability in the new support lib Jul 25 07:00:48 Mavrik, i know Jul 25 07:00:51 for actionbar Jul 25 07:01:03 viovu: There is. Jul 25 07:01:06 viovu: it is! http://developer.android.com/reference/android/support/v7/app/ActionBarActivity.html Jul 25 07:01:18 i herd they removed it Jul 25 07:01:20 that's why I try using it Jul 25 07:01:24 Pitel_IPEX: Compile against API 16+ Jul 25 07:01:25 Mavrik, Do you know anything about the decoder/encoders, pixel formats etc...? Jul 25 07:01:37 maybe its coz i have downloaded the 4.2 sdk yet Jul 25 07:01:41 im still on 4.1 Jul 25 07:02:07 Those are different things. Jul 25 07:02:15 JakeWharton: but then I won't be sure it will run on older apis :/ Jul 25 07:02:26 Pitel_IPEX: Use lint. Jul 25 07:03:06 cxo, yeah, short version: it's a SoC-manufacturer specific mess Jul 25 07:03:19 JakeWharton: oh, it also checks this? great! :) Jul 25 07:03:27 http://pastebin.com/Hb7VVz8T Jul 25 07:03:40 Pitel_IPEX: Indeed. It will warn you. Jul 25 07:03:43 is this good practice or bad http://pastebin.com/Hb7VVz8T Jul 25 07:06:26 Mavrik, So if i createDecoderbyType("video/avc"), the output buffers are vendor specific? Jul 25 07:06:35 yep Jul 25 07:06:55 Wow, that sucks.. Jul 25 07:06:55 how do you query the pixel format? Jul 25 07:07:35 cxo, https://vec.io/posts/android-hardware-decoding-with-mediacodec Jul 25 07:08:11 I've seen that. It didnt help Jul 25 07:08:12 you don't, that's the problem. It's a totally useless API because the results are vendor-specific without reliable ways of querying them. Jul 25 07:08:27 The "format" of the output buffer comes up as "video/raw" Jul 25 07:08:38 oh ok Jul 25 07:10:33 If it can paint the frames onto a "Surface", something, somewhere in java should understand the format and it should be queriable Jul 25 07:10:49 true Jul 25 07:11:03 cxo, write a blog post if you manage to get it work ;) Jul 25 07:11:23 I noticed that you can look up the "Capabilities" of the codec, and it lists a bunch colour formats. How do you pick the one you want? Jul 25 07:12:11 i just want to write a quick video transcoder. I really dont want to drag FFMPEG into this just for a simple decode, scale, encode Jul 25 07:12:54 the problem then is in getting the hw codec to paint into memory instead of direct to screen Jul 25 07:13:07 that's not the problem Jul 25 07:13:46 cxo: unless you have that squared, you can't get the decoded video stream, iirc Jul 25 07:13:53 ... or maybe I am looking at it from too low level Jul 25 07:13:58 cxo, usually you always want yuv420p Jul 25 07:14:47 since that's the only format widely supported for most videos Jul 25 07:14:58 http://developer.android.com/reference/android/support/v7/appcompat/R.style.html#Theme_AppCompat_Light_DarkActionBar what should I write a theme="???" to androidmanifest.xml to use this theme? Jul 25 07:15:22 well that would just be an intermediate representation in any case. I really dont care. I just need to know what it Jul 25 07:15:44 So I'm guessing you can't query the input format of the encoder either? Jul 25 07:15:47 cxo, that's your best bet. Jul 25 07:15:59 um… I doubt the encoder will do colorspace conversion for you. Jul 25 07:16:42 I know, that's fine Jul 25 07:17:24 if i can find out what the output of the decoder is and what the encoder wants, then writing a utility to do the colour space conversion is a piece of cake Jul 25 07:20:32 Hmm I think it might be trial and error on the encoder side; mediaFormat.setInteger(MediaFormat.KEY_COLOR_FORMAT, MediaCodecInfo.CodecCapabilities.COLOR_FormatYUV?????); then configure() and start(), if it works, score! Jul 25 07:24:58 i have this xml parser where u just give it an url and it downloads and parses it for u. so ive made 1 thread and i make 10 of those parser and make it connect & parse, one by one all in one thread...should i split it up into multiple threads? or is it fine the way i did it......or should i just http download all 10 files and then use 10 parser threads? Jul 25 07:26:00 1 thread & 10 Parsers, or 10 threads & 10 Parsers, or 1 thread and then 10 threads? Jul 25 07:31:52 hi Jul 25 07:32:06 hi Jul 25 07:37:22 I have 2 layouts with I set in setContentView in activity. Once 1st layout, another time 2nd one layout. The 1st layout have custom widget, can I have any solution to know is my content view is in current time based on 1st layout or 2nd layout. Can I have info is the custom widget is currently on screen ? Jul 25 08:03:30 in the default login (which we create in New activity provided by ADT), the AysncTask class is publicly nested. Now, After verifying, If I want to switch the activity. Where should I write the code for better so that threads are handled well. Jul 25 08:04:47 is it before finish() in the onPostExecute() function of AsyncTask ? Jul 25 08:05:40 should I call a outer class function there which takes the cookie and changes the activity.. Jul 25 08:09:13 every1 busy in looking 4.3 ? :P Jul 25 08:10:40 anyone got the new Nexus 7 tablet yet ? Jul 25 08:11:19 shmooz: it's not actually available until next week Jul 25 08:11:32 so only googlers would have it now Jul 25 08:12:03 I see, and I guess they have to keep it secret Jul 25 08:12:23 not really, it's already been shown etc. - just not yet in hands of "normal people" Jul 25 08:12:38 though I had already seen ChromeCast on ebay Jul 25 08:12:40 no, I don't think so - seen a few comments from googlers saying they've had them for a while and they're awesome, etc. Jul 25 08:12:47 I'm very abnormal if that qualifies me ;) Jul 25 08:12:56 p_l: I've seen people say they bought the chromecast at retail today, yes Jul 25 08:13:58 I'd buy the chromecast if it wasn't made by google. Jul 25 08:14:14 Leeds: regarding people at Google having new N7 - that's a very big difference compared to how it was with N4 :> Jul 25 08:14:36 p_l: really? Jul 25 08:14:54 * p_l recalls a friend from Google going about how N4 is "a mythical device no one had seen", some time after I already got mine :> Jul 25 08:15:15 well, we know there was slightly... constrained supply of those. Jul 25 08:15:30 impression I've got is they're trying not to let that happen with the new N7 Jul 25 08:15:50 Leeds: one of these days Play store might even grow to handle physical goods properly! ;P Jul 25 08:16:15 I'm thinking more than there were about 15 retail launch partners - including Best Buy and Amazon - shown at the event Jul 25 08:16:30 so presumably they think they've got enough supply to handle that Jul 25 08:17:04 i was always thinking of ...drug dealer can get money from clients by them buying his app on gplay Jul 25 08:17:12 R100 and you get the pickup spot Jul 25 08:17:16 lol Jul 25 08:17:26 a lot of money trail Jul 25 08:17:50 just shows a map and where the pickup is Jul 25 08:18:03 in the US at least, you should be able to buy Play Store cards with cash? Jul 25 08:18:15 no mention of drugs....apps called Random map location Jul 25 08:18:30 java.lang.String. have no trim() (adt) :/ Jul 25 08:18:38 purpose .... to explore unfound places.... Jul 25 08:18:53 to baldy go where no man has gone before Jul 25 08:19:17 i think its a good no-transaction way of drug dealing Jul 25 08:19:30 no-transaction, no getting caught Jul 25 08:20:03 Leeds, afaik you can't buy devices with play card credit Jul 25 08:20:13 Mavrik: sure, but you could buy drugs from viovu Jul 25 08:20:18 true. Jul 25 08:20:27 hmm, I think I'll still opt for Nexus 10 rather Jul 25 08:21:35 can't wait for the new version of ASUS Transformer Jul 25 08:21:53 ive got this idea....cheating idea Jul 25 08:23:32 we should have a android-dev-secret-society chatroom, and its a bunch of android app devs, and week theres an app of the week, and all the people have to go download it thats in the society, so that the app can trend.... Jul 25 08:23:56 the docking keyboard making battery last longer is cool, other tablets don't have that Jul 25 08:27:13 i keep getting padding on my imageview when the screens to small....how to fix? Jul 25 08:30:39 viovu: do you set padding on it ? Jul 25 08:30:49 viovu: http://stackoverflow.com/questions/5830503/unwanted-padding-around-an-imageview Jul 25 08:33:41 yes Jul 25 08:33:51 just 8dp Jul 25 08:34:03 but i get like 15dp on smaller screens Jul 25 08:34:20 no you probably still get 8dp Jul 25 08:34:21 actually no, not padding, only margin Jul 25 08:34:37 just it happens to be bigger space Jul 25 08:34:50 or equal space but looks bigger Jul 25 08:34:54 the one take over the divider the other doesnt Jul 25 08:35:11 so ration to the divider is different, so mare paddings been added Jul 25 08:35:23 hard to visualize what you mean Jul 25 08:36:58 im trying the technique on stack, thanks Jul 25 08:37:58 yeah he says he didn't behave until he did android:adjustViewBounds="true" Jul 25 08:38:17 he says *it* didn't ... Jul 25 08:47:23 k cool, got it right Jul 25 08:50:03 my menu is showing text only. my min API level is 11. i have .pngs in res/drawable. and have mantained xml file Jul 25 08:50:07 what could be the reason ? Jul 25 08:53:45 hey fellas Jul 25 08:54:00 what do you think about occassional ping through GCM? Jul 25 08:54:06 would I get banned by google? Jul 25 08:54:16 let's say 10k devices, every 30 seconds Jul 25 08:55:35 try and see and let us know what happens ;) Jul 25 08:56:56 :D Jul 25 08:57:02 does it sound stupid what I just said? Jul 25 08:57:17 it's just that gcm connection is killed all the time Jul 25 08:57:20 no idea, for what purpose are you pinging all that ? Jul 25 08:57:39 I need to get instant updates when required Jul 25 08:57:50 and it's too late to switch from gcm to some other solution Jul 25 08:58:05 so I was thinking about pinging the devices Jul 25 08:58:35 so connections would be kept alive Jul 25 09:02:45 if you can avoid frequent polling you should I suppose Jul 25 09:04:03 zhulikas: horrible idea. it will kill your users' batteries _and_ explode traffic Jul 25 09:04:45 zhulikas: what kind of updates are you talking about? Jul 25 09:05:12 user initiated action in a web application, which causes phone to respond asap Jul 25 09:05:22 my menu is showing text only. my min API level is 11. i have .pngs in res/drawable. and have mantained xml file(with utf-8 encoding attribute) ? Jul 25 09:05:27 any reasons guys.. Jul 25 09:05:43 zhulikas: if it is a web app, aren't there other push mechanisms available? Jul 25 09:05:50 uh Jul 25 09:06:12 web application on desktop, android app on android Jul 25 09:06:14 also my manifest file is using appBase theme Jul 25 09:06:31 not sure what you suggest as alternative push mechanisms Jul 25 09:06:46 O.o Jul 25 09:06:48 pranav: starting with the holo theme, no options menu icons are displayed any more... and you can not have icon+text in the actionbar Jul 25 09:07:33 zhulikas: ah, sorry, misunderstood that. GCM is actually pretty robust, even on bad links... I don't think there is a need in pinging the devices all the time Jul 25 09:07:53 your webserver needs to support push Jul 25 09:07:55 Ge0rG: so, what is the alternative ? Jul 25 09:08:09 is that the reason, I am getting text only. Jul 25 09:08:19 not in my experience... although my perception may be partially altered by me using a cyanogenmod device Jul 25 09:08:24 pranav: go back to pre-holo :P Jul 25 09:08:29 which is known to have connectivity issues with google servers Jul 25 09:08:47 zhulikas: are the known issues specific to your device? mine are working fine... Jul 25 09:08:49 why was sth so useful as menu discarded. :/ Jul 25 09:09:14 zhulikas, are you sure you don't have just bad network connectivity? Jul 25 09:09:20 pinging devices with GCM is insane Jul 25 09:09:26 countless topics on "grey vs blue signal bar" on google Jul 25 09:09:55 which describes the problem I have with bad connectivity Jul 25 09:09:58 which could be just as well caused by dropped ACKs Jul 25 09:10:03 (and SYNs) Jul 25 09:10:04 basically, after some sleep period, gcm stops working Jul 25 09:10:35 zhulikas: then fix that, rather than punishing users ;) Jul 25 09:10:42 maybe adjust the timeout Jul 25 09:10:51 Ge0rG: my manifest line is "android:theme="@style/AppBaseTheme" >" ? Jul 25 09:10:55 zhulikas, fucking up users battery and network just because your wifi doesn't work properly isn't really the way to go yknow ;) Jul 25 09:10:56 fix what? android infrastructure decisions? Jul 25 09:11:14 zhulikas: it is probably a wifi connectivity problem Jul 25 09:11:25 I'm on mobile data network Jul 25 09:11:34 edge/3g Jul 25 09:11:58 zhulikas: if the variable you isolated between two different situations is "Cyanogenmod", that suggests need to fix cyanogenmod, not GCM infrastructure Jul 25 09:12:01 Ge0rG: so, what do post-holo UI design uses menu. by creating fragments, listview, appear ? Jul 25 09:12:26 maybe I rushed to come here with questions... Jul 25 09:12:35 need to test it on wider range of devices first Jul 25 09:12:46 pranav: there is a sliding menu implementation from google somewhere Jul 25 09:13:06 zhulikas, please do, there are known issues with connectivity on some device/network combinations Jul 25 09:13:15 Ge0rG: thank you! so people uses it in place. Jul 25 09:13:31 pranav: or just use the regular menu.xml without icons Jul 25 09:15:03 Ge0rG: yup! i will chose the text for time being. ;) Jul 25 09:15:07 *choose Jul 25 09:15:17 :) Jul 25 09:15:46 pranav: its a PITA, but what is even worse IMHO is that you only can have icon+text in the actionbar on wide screens Jul 25 09:15:58 does anyone wanna get an apk from me and give me some advice? Jul 25 09:16:33 viovu: sure. are you paying 150$/hr? Jul 25 09:16:55 ...no :) Jul 25 09:17:15 i dont have an idea for my UI style of an listview Jul 25 09:17:52 programmer Guild Rule 1: Though Shalt not charge another programmer for advice Jul 25 09:18:32 "does anyone wanna get an apk from me" <--- $150p/h Jul 25 09:18:52 viovu: does it come with drugs? Jul 25 09:19:02 magic mushrooms :) Jul 25 09:25:13 http://i.imgbox.com/acczMmPx.png -> News App - what can i do to that list to make it look better? Jul 25 09:26:22 find an annoying person, give them a crappy phone and convince to use your app on it Jul 25 09:27:16 got tired of waiting for android to update my nexus 4 so did it myself Jul 25 09:27:20 lot of crap Jul 25 09:27:22 viovu: get a designer, cause there is lots you can do Jul 25 09:56:35 Heya folks Jul 25 09:57:09 I am working on an app that has to show non-unicode characters, namely č ć ž đ Jul 25 09:57:38 The issue is not displaying them in the app, but escaping them properly for the server side api to like them. Jul 25 09:58:02 To be more specific I am trying to escape "Braće Begić" into "Braće Begić" Jul 25 09:58:20 That latter being (apparently) utf-8 web encoding. Jul 25 09:59:02 Using java.net.URLEncoder.encode(escapeString, "UTF-8")) gives me Bra%5Cu0107e+Begi%5Cu0107 though Jul 25 10:03:14 Bra%C4%87e%20Begi%C4%87 is what you want Jul 25 10:03:15 i think Jul 25 10:03:56 but im not sure how to get that Jul 25 10:08:42 otiose - I'll give it a try, although I doubt it Jul 25 10:14:32 interestingly, im getting diffrent results than you Jul 25 10:14:40 it gives me Bra%C6%92%C3%A1e+Begi%C6%92%C3%A1 Jul 25 10:15:02 although, thats not running on android, thats on my mac, but still Jul 25 10:17:39 c Jul 25 10:19:24 listen i got a problem regarding using audiostream for two devices, does anyone know about it?? Jul 25 10:22:38 i know this is naive but. My project explorer keeps auto hiding every-time. I need to manually click on the button to show it. Jul 25 10:22:50 *in adt Jul 25 10:23:13 any ideas ? Jul 25 10:24:27 pranav: hi,where do you live in India? Jul 25 10:37:22 aaa: hyderabad, do you know my answer Jul 25 10:37:24 ? Jul 25 10:40:32 pranav: window->show view->project explorer Jul 25 10:42:00 Guest64892: i know that.. anyway thanks. Jul 25 10:42:30 hi :) in eclipse, when building a tabbed interface, can i somehow choose which tab the interface shows to me, so i can edit all the tabs using the UI ? Jul 25 10:43:18 suppose i have 3 different HTTPpost requests and results to be shown in different views. should i separate my activity in each of them or just switch the views ? Jul 25 10:43:46 is it a design decision ? Jul 25 10:48:55 here it only showed first tab,but that wasn't a problem for me since all the tabs contained the same Jul 25 11:01:46 is com.google.android.gms open source? where can i find the sources? Jul 25 11:05:42 yeah it shows first tab, and i have to shuffle the code around to see the one i want in the first tab.. heh Jul 25 11:12:57 hello. someone need to update the topic: 4.3 :) Jul 25 11:22:56 Hey guys what's the most popular category out of the following 3 : Tools, Communicatoin or Social? I'm trying to figure out what I should move my app category to from Tools to either Comm. or Social? Jul 25 11:23:37 o.O Jul 25 11:24:40 :\ Jul 25 11:25:53 anyoneee Jul 25 11:26:18 CocoStorm: maybe you should go to the least-popular category, so you have less competition ;) Jul 25 11:26:34 CocoStorm: or even better, go into the best-fitting category so your users can find you Jul 25 11:26:42 Ge0rG: heh, I'm 11th in Tools category Jul 25 11:26:47 Top New Paid Jul 25 11:26:49 but Jul 25 11:26:50 GeOrG:well said... Jul 25 11:27:06 If I move to social or communications i'd be a lot higher I think Jul 25 11:27:19 cocoStorm: what's your app's name? Jul 25 11:27:25 plus i'm not sure if tools a category for my app Jul 25 11:27:30 NumberSnap Jul 25 11:27:39 www.numbersnap.me Jul 25 11:27:46 allright..will checl it out now...;) Jul 25 11:27:52 *check Jul 25 11:28:10 I think it's part tool part comms part social :D Jul 25 11:28:33 i'm indecisive like that Jul 25 11:29:49 CocoStorm: I suppose tools is alright; but then again, my own app, APRSdroid, is also a mix of tools, comms and social (geolocation for radio amateurs) Jul 25 11:29:57 ...and is placed in tools Jul 25 11:30:05 oh hey CocoStorm Jul 25 11:30:06 hmm Jul 25 11:30:11 oh hey narekb Jul 25 11:30:15 I guess Social will benefit the app Jul 25 11:30:20 yeah? Jul 25 11:30:32 hmm a question Jul 25 11:30:33 social has a positive connotation. yet. Jul 25 11:30:35 whom is the app for? Jul 25 11:30:43 narekb: singletons mainly Jul 25 11:30:49 guys please tell me a book for start with android dev Jul 25 11:31:11 under: head first java Jul 25 11:31:12 under, a book may be good, but personally for me, learn by doing is the best method Jul 25 11:31:17 geOrg:wow you got dood number of downloads...good man. Jul 25 11:31:17 CocoStorm, singletons? Jul 25 11:31:46 narekb: who's my target you mean? Jul 25 11:31:47 *good Jul 25 11:31:57 yes, who is the target audience Jul 25 11:31:58 narekb: I agree but tomorrow I leave for 1 month holiday and I wont have internet access so I need a book. CocoStorm: I know Java Jul 25 11:33:11 narekb: everyone mainly social people Jul 25 11:36:19 Hello Jul 25 11:36:47 narekb: social it is then Jul 25 11:36:48 =] Jul 25 11:36:50 right? Jul 25 11:36:55 Guest64892: yeah, but its a niche product Jul 25 11:37:15 Ge0rG: like mine Jul 25 11:37:17 CocoStorm, I guess so Jul 25 11:37:37 here goesss Jul 25 11:37:42 GeOrg: what's your day job?Android developer? Jul 25 11:37:50 * CocoStorm hopes he doesn't lose his ranking Jul 25 11:38:18 Guest64892: consultant with focus on android dev Jul 25 11:55:25 Hi is there any way when you compile opengl shaders of getting compiler output? Jul 25 11:58:49 hello, is there a way to refer to the camera device in my android using somelike like /dev/video0 ? Jul 25 12:02:23 Nevermind I found my error I was compiling a fragment shader as vertex doh! Jul 25 12:03:42 Smiley_vShader=GPUShader(GLES20.GL_VERTEX_SHADER,"shaders/Smiley_fShader.txt"); (no worky!) Jul 25 12:07:49 I have a weird problem. Jul 25 12:08:21 Making a game Jul 25 12:08:42 When it starts, it fetches a fullscreen ad in the background while the player plays the game. All is fine. 63 fps. Jul 25 12:09:00 When the game is over, the ad is then displayed. So far so good. But here is the weird part: Jul 25 12:09:19 If the player now just skips the ad, returns to the game and clicks "Play again", the next game is now only 47 fps. Jul 25 12:09:53 If however, the player opened the link from the ad, and thus opened his browser, and then click Back to return to the game and click "Play again", then it's 63 fps again. Jul 25 12:09:54 O_o Jul 25 12:10:13 Explain that, and I'll buy you an ice cream. (no sandwich though). Jul 25 12:10:53 This happens on Android 4.0.4 on a Sony Xperia Ray, but seems to be fine on other devices like Xperia Go and Xperia Arc and various HTC models. Jul 25 12:11:37 The ad SDK is Greystripe. Jul 25 12:12:04 I wrote Greystipe about it. They thought it might be hardware acceleration related. Doing a lot of tests revealed that it wasn't. Jul 25 12:13:47 One way I could semi-solve it though, was to increase my Thread.sleep() time from 4ms to 10ms. That would of course produce an overall slightly more chunkyness, but less chunky in the 2nd game. Jul 25 12:15:13 mr_lou is it possible to profile your app? Jul 25 12:15:31 Then you can see where the extra time is being spent Jul 25 12:15:51 My guesses is that the add thingie is adding extra threads to your process Jul 25 12:16:05 or maybe gl errors? Jul 25 12:16:22 Yea, that's my guess too. Looks rather obvious really. adb logcat doesn't say anything about errors. Jul 25 12:16:43 Not using gl. Just plain 2d canvas stuff. And the ad thingy is just a webview. Jul 25 12:16:54 Ah right gotcha Jul 25 12:17:07 Is there any minimum recommendation for Thread.sleep() time for Android? I remember for JavaME, people said minimum 3-4 ms. Jul 25 12:17:24 Anthy, so what's the issue? Jul 25 12:17:40 You mean with compiling shaders? Jul 25 12:17:41 mr_lou: what for? Jul 25 12:17:49 I've solved it thanks :) Jul 25 12:18:05 Anthy, you said "Ah right gotcha" Jul 25 12:18:07 p_l, Game loop Jul 25 12:18:18 was it for mr_lou's issue or your shaders? Jul 25 12:18:24 ah I was refering to mr_lou saying that he isn't using opengl Jul 25 12:18:29 ahh ok then Jul 25 12:18:33 mr_lou: I would rather wait on vsync Jul 25 12:19:33 remember that for "smooth" framerate, you have something along the lines of 16ms per frame Jul 25 12:19:38 mr_lou .. no heavy GC going on? Jul 25 12:20:22 Sirolf, Well, I don't know what Greystripe is doing in their code. But if I don't display the ad, then all my trouble is gone. Jul 25 12:20:38 ....and so is any potential income. :-| Jul 25 12:21:28 haha mr_lou you got to choose Jul 25 12:21:38 money or smooth app ;) Jul 25 12:21:47 why dont you find another ad provider? Jul 25 12:22:05 p_l, This game is as simple as it gets. Even older JavaME devices runs the game with a smooth framerate. As far as I understand, I can't use the vsync approach unless I only want to support Jelly Bean? Jul 25 12:22:10 mr_lou .. isn't it showing up in Allocation Tracker in eclipse? Jul 25 12:22:34 narekb, I might. I just kinda like Greystripe. Had good experience with them with our JavaME stuff years ago. Jul 25 12:22:42 I see Jul 25 12:22:42 Sirolf, Using NetBeans. Jul 25 12:22:48 ah Jul 25 12:22:59 mr_lou: actually vsync was supported earlier, iirc, what Jelly Bean added was various tricks related to vsync, adaptive double/triple buffering, etc. Jul 25 12:23:03 Tried switching to Eclipse twice. Just have to admit I like NetBeans better. Jul 25 12:23:03 does all androids support v4l2? Jul 25 12:23:31 pagios: ... I think it's more like none? Or rather, v4l2 isn't part of Android stack, iirc Jul 25 12:23:56 p_l: if i have /dev/video0 doesnt it mean it got detected by v4l2? Jul 25 12:25:17 mr_lou .. sounds to me that something happens in activity lifecycle that maybe shouldnt happen Jul 25 12:26:13 when you open the browser for the add your game activity is properly cleaned up but if you skip the add it isn't Jul 25 12:26:18 pagios: the deal is that v4l2 is *one* of the ways that video input might be connected to Android framework Jul 25 12:26:50 p_l: what i would like to do is read the raw video/audio from my device into my java program Jul 25 12:26:55 how can i do that Jul 25 12:26:58 Sirolf, Yea, that's what I'm thinking too. But since it seems to only be happening on this one phone, I think I'm just gonna leave it now. Jul 25 12:27:06 pagios: that is, Android framework, iirc, contains an implementation that uses v4l2. But it's just as common, if not more, that there's a special shared library implementing vendor-specific driver Jul 25 12:27:28 pagios: use apropriate Android Framework stuff for recording video? Jul 25 12:27:38 p_l, Isn't vsync only for opengl stuff? This is plain simple 2d canvas stuff. Jul 25 12:27:44 p_l: i needto encode...in my own encoding format :/ Jul 25 12:31:56 hello! how can i root my device please? Jul 25 12:33:04 try #android-root Jul 25 12:33:21 mr_lou: you can look at it as punishment for skipping the ad Jul 25 12:33:34 shmooz, :-> Jul 25 12:34:03 Is it bad to put Thread.sleep(1); in my game-loop? Would it better to put Thread.sleep(5); ? Jul 25 12:34:14 that's how you turn a bug into a feature, by preceiving it like that ;) Jul 25 12:35:47 pagios, in realtime? Jul 25 12:35:55 Mavrik: yes Jul 25 12:36:00 huh. Jul 25 12:36:04 ? Jul 25 12:36:25 pagios, the only thing you can do is grab frames from preview and encode those Jul 25 12:36:35 you won't be able to get access to raw video buffers Jul 25 12:36:37 where would i encode them? Jul 25 12:36:41 because they're never sent to the CPU. Jul 25 12:36:53 pagios, what do you mean "where"? Jul 25 12:36:56 inside the android api? Jul 25 12:37:17 you mean encode them using the android api? Jul 25 12:37:30 hmm Jul 25 12:37:38 :) Jul 25 12:37:45 how would you encode them using Android API if you're encoding into your own format? Jul 25 12:37:55 Anyone has any experience with hardware acceleration? http://developer.android.com/guide/topics/graphics/hardware-accel.html Jul 25 12:37:57 you'll have to provide the encoder yourself. Jul 25 12:38:19 what can i encode in android api? webm/ogg/h264? Jul 25 12:38:47 whatever your hardware encoder supports. Jul 25 12:38:54 which will probably be only H.264 in MP4 container Jul 25 12:39:03 no webm? Jul 25 12:39:11 pagios: you can use some form of ffmpeg like ffmpeg4android Jul 25 12:39:16 if we want to rely on cpu i mean not gpy Jul 25 12:39:18 gpu* Jul 25 12:39:31 ffmpeg works wint v4l2 shmooz Jul 25 12:39:50 probably Jul 25 12:40:01 and v4l2 is not supported on most android devices :) Jul 25 12:40:15 ffmpeg supports everything just about Jul 25 12:40:17 you're mixing things up Jul 25 12:40:23 decided what you want to do first and which formats you need Jul 25 12:40:38 or just use default encoded H.264/MP4 video. Jul 25 12:40:43 lets assume i want to encode with ogg format Jul 25 12:41:02 forget about my external app, if android api can do that in realtime Jul 25 12:41:24 i would need to read raw buffers and send to the encoder using the apis Jul 25 12:41:43 pagios: on newer devices there are more "raw" modes of access Jul 25 12:43:20 which libraries to use p_l Jul 25 12:44:44 I am not sure, but I think you can grab something through OpenMAX in NDK Jul 25 12:45:22 but I can't guarantee anything Jul 25 12:45:31 an option would be to recompress the video after getting it Jul 25 12:45:44 you can't really. Jul 25 12:46:05 since the default container is mp4 which requires trailer Jul 25 12:46:20 and which isn't written until camera stops recording (which is bullshit, but that's how it is) Jul 25 12:46:39 if you can get MPEG2-TS container to work on your devices, that could work Jul 25 12:48:11 Mavrik: actually MP4 doesn't require trailer, iirc, it's just that certain fields are commonly written there Jul 25 12:48:50 pagios: http://my.safaribooksonline.com/book/programming/android/9781849691529/calling-java-back-from-native-code/ch04lvl1sec57 <--- see if you can open this link, it has example of grabbing raw YCbCr 420 SP frames Jul 25 12:49:14 p_l, no. Jul 25 12:49:18 you need a MOOV atom with index. Jul 25 12:49:25 you can't write index until you have written the whole file. Jul 25 12:49:36 you CAN do segmented mp4 but the device encoders don't do that. Jul 25 12:52:14 and you can move MOOV to front of the file after you have written it Jul 25 12:53:27 pagios: anyway, the thing I linked contains example of a bit slow but should-work method of getting raw video (although probably not the highest quality) Jul 25 12:56:35 then i encode in my own program? Jul 25 12:56:49 i need to get the raw video to my prgoram how can i do that Jul 25 12:59:08 pagios: that link contained example. Just read through the code - they bypass normal decoding of raw video stream and decode and paint it on JNI side Jul 25 12:59:17 instead of painting, you can push it into your own codec Jul 25 12:59:33 yea i mean how can i push it to my own codec Jul 25 13:11:20 if i want to background a small network task i can create a thread and pass a Runnable, but is there an easy way to pass the activity instance into the runner? Jul 25 13:11:48 pagios: ... that's a question to whoever wrote your codec Jul 25 13:12:04 you have a byte array with the data, what you do with it is your problem :) Jul 25 13:12:17 since lots of tasks need access to the activity, so far i've had to create a new class that implements runnable and has a constructor that takes the activity Jul 25 13:12:25 but it seems bulky for tiny tasks Jul 25 13:12:33 can i send it as a pipe | to an external program for example p_l ? Jul 25 13:12:47 pagios: possible, but doesn't sound too well Jul 25 13:13:08 but that's a completely different scope, and I've got a date with Cisco ASA coming. brbr Jul 25 13:13:11 *brb Jul 25 13:35:06 Hi I have a shader http://codepad.org/aMGWJCzF I call http://codepad.org/7eMDAO2t Jul 25 13:35:23 It says here: http://developer.android.com/about/dashboards/index.html, that only 3.1% of Androids is Android 2.2. But they only know about access to Google Play, maybe older models (for example, in India/Brazil) don't have Google Play? Jul 25 13:35:27 The vPosition is at 0 but the mTexSTHandle is -1 (invalid) any ideas why? Jul 25 13:36:08 jwalker60: true - but do they matter? Jul 25 13:43:05 Leeds, Actually if they can't go on Google Play, they won't able to install my App Jul 25 13:45:27 yes, that's what I mean Jul 25 13:52:05 Does anyone here know how I would set up a GLSurfaceView such that it behaved like a given fixed-size viewport but in actuality was scaled (with a uniform aspect ration) to best fill the screen? Jul 25 13:56:08 JakeWharton: Did you at some point Force-Push in ABS? I cannot find ActionBarSherlock-071a61c anywhere in the downloads, nor the revision in git. Jul 25 13:56:21 When I check out 071a61c, I _do_ get somewhere, but it's a different revision already. Jul 25 13:57:28 Gotta find out what version a college is working. (yay for '../../../../../../Downloads/JakeWharton-ActionBarSherlock-071a61c'as a dependency path!) Jul 25 13:59:56 Oh god the problem was that the shader compiler decides to remove unused variables.... Jul 25 14:00:05 Nevermind, I was looking at commits. That's the hash of a tag, though. git show-ref --tags to the rescue. Jul 25 14:12:48 is the removal of unused variables a problem? Jul 25 14:20:18 hey guys. I want to parse a 2-million line file in an application and it goes very slow. right now I open the file with a BufferedReader, and parse every line using String.split Jul 25 14:20:23 any idea how I could boost that? Jul 25 14:23:12 qdii well, split uses regex - and yeah, that will be slow Jul 25 14:23:45 write something with ragel? :D Jul 25 14:23:51 hehe Jul 25 14:23:56 g00s: btw, are you happy now that BT4LE is in sdk? :D Jul 25 14:24:07 p_l yeah :D \o/ Jul 25 14:24:19 i hope it works :| Jul 25 14:24:36 splitting with regex was my previous solution Jul 25 14:24:42 splitting with split is a lot faster, Jul 25 14:24:53 but still completely crap to be honest Jul 25 14:25:08 hi Jul 25 14:25:12 can i install apt-get on android? Jul 25 14:25:17 qdii its still rgex Jul 25 14:25:19 rooted android Jul 25 14:25:24 probably compiling once for each String Jul 25 14:25:28 split is implemented in term of regex? Jul 25 14:25:38 ocx try #android-root Jul 25 14:25:51 oh jeez, so the speed up comes from the regex I now use Jul 25 14:26:01 ocx or use ubuntu phone :D Jul 25 14:26:16 honestly, I mustn’t be the only guy trying to parse line in an efficient manner Jul 25 14:26:32 how complicated is the line ? Jul 25 14:26:36 qdii: look up ragel, and implement a fast FSM for splitting :) Jul 25 14:26:49 just looking for delimiteres or something else ? Jul 25 14:26:55 abc 123 blablabla Jul 25 14:27:07 oh jeeese, no ragel required Jul 25 14:27:26 I wished, profiling shows that it spends most of its time on String.split Jul 25 14:27:40 why use split? Jul 25 14:27:47 how can i compile at least the source codes, i dont have make available Jul 25 14:27:50 not even a compiler... Jul 25 14:28:09 pfn because regex.Pattern and regex.Matcher were even slower Jul 25 14:28:20 all those methods use regex Jul 25 14:28:22 ocx: I think you are going to read a bit more about linux in general Jul 25 14:28:26 yea I didn’t know, and I can’t think of any other solution Jul 25 14:28:28 parse manually rather than with any regex method Jul 25 14:28:40 iterate manually and pull your tokens out Jul 25 14:28:44 p_l: i am confy with linux but not android Jul 25 14:28:47 a simple fsm, as p_l mentioned Jul 25 14:29:01 qdii java has a scanner & tokenizer class Jul 25 14:29:15 ocx: can you build a separate chrooted environment? Jul 25 14:29:23 okay I can try to parse manually Jul 25 14:29:30 :) Jul 25 14:29:40 ocx: because that's eseestially what is needed to get Debian on android ;) Jul 25 14:30:08 qdii the old harmony regex impl was total shit Jul 25 14:30:10 p_l: i dont want debian on android Jul 25 14:30:22 no apt-get on android Jul 25 14:30:22 i would like to have all compilation tools on android and just run android... Jul 25 14:30:26 my source files can compile on android Jul 25 14:30:38 hello hello, anyone have any tips on handling orientation changes when using volley on paged queries ? Volley, unlike a Loader, doesn't offer any way to retain the object (over several queries), and onSaveInstanceState() seems like a bad idea since the amount of data could be excessive.. :( Jul 25 14:30:39 well, you asked first about apt-get Jul 25 14:30:49 but the tools cannot be installed.....since no compiler no apt-get Jul 25 14:30:58 ocx: there's a bunch of stuff on Play Market that contains a selection of tools Jul 25 14:31:09 apt-get *is* debian, practically Jul 25 14:32:57 is there any way to see running services through ddms? Jul 25 14:33:10 you don't need apt-get to install a compiler... Jul 25 14:34:14 qdii, do the lines have a set format ? Jul 25 14:35:10 hi does anyone know how to stop the shader compiler from optimising out unused varibles? Jul 25 14:35:31 (If I declare a variable in the vertex shader and it is ununsed I can't get a handle to it) Jul 25 14:35:37 So my code fails Jul 25 14:35:48 qdii, did you try http://developer.android.com/reference/java/util/regex/Pattern.html Jul 25 14:36:52 lol Jul 25 14:38:24 qdii also, if you're scanning 2 million lines, i hope you aren't reading each as a string Jul 25 14:38:34 like readLine() or something Jul 25 14:39:03 g00s, what do you suggest ? Jul 25 14:39:08 g00s, what should he do instead? Jul 25 14:39:15 lol Jul 25 14:39:31 just, allocate like a 16k buffer and let er rip! Jul 25 14:39:37 hmmm Jul 25 14:39:39 why? Jul 25 14:39:47 gc on 2 million strings ? Jul 25 14:39:58 sorry, what's gc? Jul 25 14:40:06 garbagecollector Jul 25 14:40:10 bring in 16k worth of data at a time, should be OK Jul 25 14:40:14 AWW HELL NAW Jul 25 14:41:04 What's the difference between getWindow().addFlags() and getWindow().setFlags() and when to use what? Jul 25 14:41:52 when i say 16 buffer, i mean bringing in 16 chunks at a time. or maybe 8k. you'll have to experiment Jul 25 14:42:22 mr_lou, not looking at the doc here, but telling from the names: addFlags adds flags to the existing flags Jul 25 14:42:29 presumably these 2 million things are going "somewhere", maybe the sink should be another queue / thread Jul 25 14:42:32 setFlags overwrites all existing flags with the ones you specified Jul 25 14:42:58 sonOfRa, That sounds logical yes, but as far as I can see that's not what's happening here. Jul 25 14:43:38 g00s: ragel -G2 -C «file implementing split FSM with 16k buffers» :> Jul 25 14:43:59 hehe Jul 25 14:44:07 FSM? Jul 25 14:44:15 Flying Spaghetti Monster? Jul 25 14:44:16 Finite-State Machine Jul 25 14:44:24 ahh lol Jul 25 14:44:37 may his noodly appendages bless you Jul 25 14:44:40 His* Jul 25 14:44:43 haha Jul 25 14:46:35 asnyone ever thought if Android is possible to use in aerospace engineering Jul 25 14:46:41 like avionics for airplanes Jul 25 14:46:45 just imagines Jul 25 14:46:50 narekb: not for real avionics Jul 25 14:47:04 huh? Jul 25 14:47:08 for what then? Jul 25 14:47:22 drones? Jul 25 14:47:22 narekb: there's an underutilized market for various pilot aids Jul 25 14:47:25 navigation etc. Jul 25 14:47:34 hmm Jul 25 14:47:40 what does the new notification system means Jul 25 14:47:44 Lets land this plane, "has stopped unexpectedly", oh shit :P Jul 25 14:47:45 I saw a video for a protoype drone and it was using a touch screen tablet Jul 25 14:47:53 it means apps won't suck on my nexus 4 now? Jul 25 14:47:54 Anthy: for remote control Jul 25 14:48:08 It was sending back a real time camera view of what the drone was looking at Jul 25 14:48:08 Anthy: not for avionics Jul 25 14:48:16 So drones it is then! Jul 25 14:48:21 Anthy, you mean the parred ar drone Jul 25 14:48:25 *parrot Jul 25 14:48:36 Anthy: "toys" Jul 25 14:48:41 http://www.amazon.com/Parrot-AR-Drone-Quadricopter-Controlled-Android/dp/B007HZLLOK Jul 25 14:48:43 Not sure which it was it was a drone shooting stuff targets with a mounted machine gun Jul 25 14:48:57 mdev do you actually have any *development* related questions? Jul 25 14:48:58 p_l, General Atomics Reaper, USAFs best toy :D Jul 25 14:49:00 Let me see if i can find it Jul 25 14:49:16 It's fun, but its a toy, if you compare it with a "real quadrocopter", the controls are lagging and the range is subpar Jul 25 14:49:18 narekb: it *is* a toy. Expensive, fragile, and damn bugged Jul 25 14:49:31 but bombs the east pretty well ;) Jul 25 14:49:44 there was a near-crash (aka incident) in Germany with another US-made UAV Jul 25 14:49:50 oh Jul 25 14:49:55 they evaded it? Jul 25 14:50:04 darken I dont think it was that specific model of drone it had a machine gun Jul 25 14:50:24 narekb: I think it was a variant of Predator, and it nearly crushed ground crew Jul 25 14:50:40 Anthy, apples/oranges, they all suffer the same issues Jul 25 14:50:43 oh damn :O Jul 25 14:50:51 anyway, the actual avionics on board aren't done with android Jul 25 14:50:57 p_l, it had Windows on it :D Jul 25 14:51:15 narekb: nope. Though WinCE has better chances than Android at fulfilling the requirements Jul 25 14:51:24 whoa Jul 25 14:51:26 how so? Jul 25 14:51:31 darken this was it http://www.youtube.com/watch?v=SNPJMk2fgJU maybe yo can identify the tablet used Jul 25 14:52:11 narekb: WinCE is more of a toolkit to build an OS - you select features, even how many processes it can run etc. and build a customized image Jul 25 14:52:17 Quick question - it feels like I'm missing the forest from all the trees... I need to capture an image with the camera (default DCIM folder storage, nothing fancy) and get the data as a URI in onActivityResult Jul 25 14:52:27 p_l, that sounds interesting Jul 25 14:52:28 Windows Mobile and Windows Phone are just build profiles Jul 25 14:52:30 I am having a hard time finding solutions <100 lines of code. Jul 25 14:52:38 p_l, oh Jul 25 14:52:42 didnt know that Jul 25 14:52:57 I am a total Jon Snow about Windows Phone/Mobile Jul 25 14:53:02 I know nuffin'! Jul 25 14:53:09 "WHOOOOSH" Jul 25 14:53:18 * p_l hears the reference fly over his head Jul 25 14:53:24 :D Jul 25 14:53:45 p_l, you didnt get it? Jul 25 14:53:51 nope Jul 25 14:55:07 http://www.youtube.com/watch?v=aNIWmLC-i-U Jul 25 14:55:20 just googled the name, figured it was something related to GoT Jul 25 14:55:27 yep Jul 25 14:55:27 haven't read, and definitely haven't watched Jul 25 14:55:28 google needs to make object c the language of choice! Jul 25 14:55:30 bring the speed Jul 25 14:55:41 mdev, HELL NO Jul 25 14:55:43 get rid of the the slow java, is not needed Jul 25 14:55:50 ... Speed? You mean Fortran 2005, then? :> Jul 25 14:55:56 #java lol, #java will go on and on about how fast java is these days Jul 25 14:55:56 p_l, neither have I, but the meme is all over the internet Jul 25 14:56:04 java and fast are not words i'd use together Jul 25 14:56:08 mdev: because server java *is* fast Jul 25 14:56:09 is it possible to get IAP prices in local currency? Jul 25 14:56:18 p_l seriously? Jul 25 14:56:28 p_l don't feed the troll Jul 25 14:56:34 mdev: yes, seriously. HotSpot optimizer can do things no C compiler can Jul 25 14:56:35 ahh and here comes the insults Jul 25 14:56:40 mdev - in today's world programming language speed is completely irrelevant outside of specialized scientific areas. Jul 25 14:56:58 Tee_Pee I completely disagree on many levels Jul 25 14:57:05 DO WE GOT DA BANHAMMER? Jul 25 14:57:10 The differences are trivial at best. Jul 25 14:57:12 first off, faster everything = battery life saved Jul 25 14:57:18 Tee_Pee: not fully... but the issues in speed that we have are unrelated to language itself Jul 25 14:57:28 second, games the performance helps frame rates etc... Jul 25 14:57:49 I remember a while ago the video of the HTML5 facebook application working as smoothly as the native app on an iPad. Jul 25 14:57:51 mdev, ok assuming you are right Jul 25 14:57:55 mdev: anyway, server jvm on long running code are in the same order of magnitude as optimized C/C++, sometimes faster Jul 25 14:57:57 you are RELLY late with the suggestion Jul 25 14:58:01 Android is a few years old Jul 25 14:58:07 it is a HUGE platform Jul 25 14:58:20 and no one will agree to rewrite it in ObjC Jul 25 14:58:23 and devs continue to push the limits of mobile devices which are getting more powerful, it's not right to have it bottle necked by the OS, and yeah NDK exists but seems overly complicated/not tied into the main os Jul 25 14:58:35 you have to mix java with ndk to get full experience Jul 25 14:58:40 full access rather Jul 25 14:58:50 *REALLY Jul 25 14:59:05 mdev: what I would like to see is to have a better GC and AS/400 model of native compilation. Both possible without changing anything for devs :) Jul 25 14:59:17 ... well, Facebook's app would probably buy the farm, but that's them Jul 25 14:59:35 narekb you do realize apple app store has over a 50 billion downloads? and when companies go to write an app it typically is an ios one first? Jul 25 14:59:35 I guarantee you - in a normal working environment, normal apps, normal games, on today's high end devices, normal android and your imaginary object C android would perform within a 0.05 difference margin. Jul 25 14:59:52 mdev, so? Jul 25 14:59:55 since it's not bottle-necked by the OS - barely anything today can come close to the boundaries of the hardware Jul 25 15:00:02 we like the platform this way Jul 25 15:00:07 at least that's how it seems to be in projects i've seen listed, sometimes is android first, but usually seems to be ios, so your argument of no rewrite in obj-c I disagree Jul 25 15:00:09 it will be HELL for everyone Jul 25 15:00:09 biggest bottleneck is bad coding Jul 25 15:00:12 people would be open to it Jul 25 15:00:15 1) Google rewrites Android Jul 25 15:00:25 2) developers rewrite ALL apps Jul 25 15:00:31 3) users adopt to new experience Jul 25 15:00:33 why? Jul 25 15:00:48 oh well, 5pm, time to go off work, eating lunch is a more interesting prospect than another iOS vs Android debate. Jul 25 15:00:49 most apps are already written in object c, hence again, the 50 downloads Jul 25 15:01:06 mdev, but iOS and Android are not the same platform Jul 25 15:01:16 mdev: and you wouldn't be able to just "recompile" Jul 25 15:01:18 so devs lose nothing, users however gain more performance with dealing with iphones tiny screens and draconian setup Jul 25 15:01:22 is win all around Jul 25 15:01:31 mdev, piece of advice to you Jul 25 15:01:43 #iOSdev <- hang out here Jul 25 15:02:00 iOS and Android have significantly different approach. Also, we actually have resolution independence to consider, unlike iOS. Jul 25 15:02:02 no one wants to merge Android and iOS Jul 25 15:02:04 narkeb yeah I know they're different but let me put it this way, if blackberry who doesn't have anywhere near the resources of google can rewrite their mobile os to support various languages, even going so far to be able to direct port android apps Jul 25 15:02:14 even though their main language is no longer java, it use to be, not anymore Jul 25 15:02:21 mdev: actually it's easiest to rewrite when you have small market Jul 25 15:02:24 then google who has best engineers in the world, lot of them, can pull it Jul 25 15:02:44 zero interest Jul 25 15:03:02 mdev: that's why Apple could switch to OSX despite having long legacy of MacOS Classic - because they had such small software base it was possible Jul 25 15:03:09 heh, and BB10 has worked out really really well for BB Jul 25 15:03:22 massive developer support, huge device sales... Jul 25 15:03:33 Leeds not from lack of effort, more too little too late, and their price was too high Jul 25 15:03:38 Leeds, becasue BlackBerry treats developers right! Jul 25 15:03:48 they realize that the devs are the platform's strongest bet Jul 25 15:03:53 so they do everything to attract them Jul 25 15:03:58 multi language support Jul 25 15:04:02 free dev registration Jul 25 15:04:03 etc Jul 25 15:04:04 etc Jul 25 15:04:13 oh and device giveaways to good developers Jul 25 15:04:13 actually, I agree with that - everything I've seen from them shows they have done a lot of work for developers - but it doesn't matter when you have near-0 market share Jul 25 15:04:13 mdev: platform is dependant on applications. Cutting off an existing userbase to do a boneheaded rewrite would mean *zero* applications Jul 25 15:04:27 narekb: they gave me a playbook, which was promised a BB10 update... Jul 25 15:04:34 Leeds, oooh Jul 25 15:04:40 again, if it's on android 99% chance it's already on ios too Jul 25 15:04:49 so wouldn't be cutting off any apps Jul 25 15:05:12 not reason android couldn't support both languages anyway, just favor obj-c :) Jul 25 15:05:13 mdev: no, the chances are a complete rewrite is needed unless it's a game or one of the few applications with certain specific designs Jul 25 15:05:15 mdev, from your statement it seems that you know nothing about the Android platform Jul 25 15:05:21 Or OS design Jul 25 15:05:23 wtf should android support objc Jul 25 15:05:27 new ubuntu phone supports ubuntu and their web stuff and it supports android Jul 25 15:05:28 quit talking stupid Jul 25 15:05:32 if you want a native language, you can use C Jul 25 15:05:34 and C++ Jul 25 15:05:42 well, you can even do objc in ndk, if you hack up the ndk a little Jul 25 15:05:43 mixed with java :D Jul 25 15:05:57 pfn: Obj-C is easier than C++ iirc Jul 25 15:05:59 you can do it completely in ndk, you just need to use jni bridges Jul 25 15:06:00 pfn you're really late to the convo so no point repeating my, valid argument :) Jul 25 15:06:05 it isn't valid Jul 25 15:06:14 pfn: since making a basic Obj-C runtime can take someone a weekend Jul 25 15:06:24 (that's from scratch, in C) Jul 25 15:06:46 p_l, well, gcc already supports objc as a flavor Jul 25 15:06:54 it's just shipped disabled in the ndk's gcc Jul 25 15:06:56 obj-c is kinda pointless without the foundation libraries Jul 25 15:06:57 guys Jul 25 15:07:01 can you just cut the c**p?! Jul 25 15:07:18 we're cropping graphics now? Jul 25 15:07:20 this resembles a religious discussion Jul 25 15:07:31 here is an interesting story http://qz.com/107481/all-the-important-and-surprising-trends-in-mobile-web-browsing-in-seven-charts/ Jul 25 15:08:05 I could make another huge point as to why obj-c is such a better choice over java Jul 25 15:08:16 but it'll probably upset, so i'll avoid Jul 25 15:08:17 mdev: but it would be an irrelevant point Jul 25 15:09:05 objc isn't a better choice Jul 25 15:09:14 none of your points are the least bit sizable Jul 25 15:09:35 do we have any awake ops? Jul 25 15:10:03 speed increase is a complete fact, doing something faster also saves battery, another fact, hardware intense apps like games can easily performance better, but my last major fact is this Jul 25 15:10:05 memory. Jul 25 15:10:19 games are all written in c anyway Jul 25 15:10:20 mobile struggles hard with memory, that's a big fact, and java caching helps no one Jul 25 15:10:33 with 2gb of memory, not really, not anymore Jul 25 15:10:34 there's an article I read recently on the difficults of mobile memory Jul 25 15:10:52 http://mobile.slashdot.org/story/13/07/10/2045253/why-javascript-on-mobile-is-slow Jul 25 15:11:05 because Web Jul 25 15:11:10 it's inevitable Jul 25 15:11:10 so you've read it and now you're an expert Jul 25 15:11:22 mdev: you know one of the biggest issues with memory on mobile devices? It's not memory size. It's not something that language chance can impact. It's memory bandwidth. Raw numbers. Jul 25 15:11:22 notice the garbage collection underlining issue? that's something java does as well Jul 25 15:11:25 pfn, hehe Jul 25 15:12:04 p_l, well, that's his argument, more memory heavy frameworks will be more greatly impacted by memory bandwidth Jul 25 15:12:09 mdev: I think you don't know much about GC. Or programming languages Jul 25 15:12:38 you know nuffin, mdev! Jul 25 15:12:41 pfn: actually we hit memory worst because of shared memory between GPU and CPU and having to push pretty big amounts of data when drawing Jul 25 15:13:36 wasn't Tegra2 so fun it didn't have fillrate to draw to screen twice per frame? Jul 25 15:13:48 which relates to all the overdraw issues etc. Jul 25 15:15:24 anyway android 4.3 so far seems to have fixed my notification issues Jul 25 15:15:31 so am happy about that, hope it keeps it up Jul 25 15:15:36 I think romain_guy has said some nasty things about Tegra in the past... Jul 25 15:15:45 will look forward to playing with the listening stuff too Jul 25 15:15:47 Leeds: ctate as well Jul 25 15:17:48 something about Tegra 2 having mem. bandwidth of first gen snapdragon in N1 :> Jul 25 15:20:10 JakeWharton: Did you hear about ActionBarCompat? Jul 25 15:20:24 Yeah. They announced it at I/O 2012 Jul 25 15:20:34 hesperaux: Did you figure out asynctask? I found a minimal example... Jul 25 15:20:36 JakeWharton, 12 Jul 25 15:20:37 ? Jul 25 15:20:51 Hence the jokes about it taking so long Jul 25 15:20:52 narekb: Google can sometimes be a little slow at releasing stuff after they announce it... Jul 25 15:20:58 yeah I see Jul 25 15:21:01 if somebody purchases my app in Play, and i find i a bug, can I send them an .apk via email to be installed over their purchased version ? Jul 25 15:21:14 g00s: yes Jul 25 15:21:19 Dark-Side thanks Jul 25 15:21:19 g00s: sure, if they've got third-party enabled Jul 25 15:21:45 g00s: as Leeds said, and you update the version number accordingly Jul 25 15:21:45 I just saw the DevBytes about it today Jul 25 15:21:50 wasn't sure if the already-purchased thing was a problem. so when i update it in Play, do they still see that update? Jul 25 15:21:54 g00s why not just update your app? Jul 25 15:21:58 g00s: no Jul 25 15:22:05 not if version codes match Jul 25 15:22:21 oh - but as long as i increment version numbers, i should be ok hopefully Jul 25 15:22:31 Sirolf the fix is speculative Jul 25 15:22:59 maybe the beta version system works well for that? Jul 25 15:23:03 g00s: remember that version numbers don't have to be direct increments - you can send out version 16, then publish version 17 Jul 25 15:23:32 Sirolf yeah, they aren't on g+ or groups Jul 25 15:23:39 ok thanks Jul 25 15:29:40 got a problem with supportmapfragment with the orientation Jul 25 15:29:42 Hey, is there a way to find out if my activity is active/on the front? i'm sure i can track it using onResume()/onStart() but is there something in the API ? Jul 25 15:30:01 if i turn my screen i get a fatal exception Jul 25 15:30:14 some one know how to solve this.. Jul 25 15:31:26 Dominee: Do you have a stack trace ? Jul 25 15:32:09 cyrilmottier, yes Jul 25 15:33:04 viran: You have to keep a boolean flag you set/unset in onResume()/onStart() Jul 25 15:37:47 thanks Jul 25 15:37:51 micro-transactions are where it's at Jul 25 15:38:10 freemium nope, free with ads, nope, free with micro is best of both worlds Jul 25 15:38:17 My game has a framerate of 60 and runs really well, but every now and then users experience a hickup, which to me looks like their phone is doing something in the background which causes my game to halt - and then it has to catch up. Is there anything I can do to prevent that? Jul 25 15:41:31 not if it's an external process Jul 25 15:43:17 Sirolf, That's what I thought. Jul 25 15:43:21 you can detect/notify users, or give the option of simply terminating other processes Jul 25 15:44:04 How about setting a priority of my game? Can that be done? Jul 25 15:44:05 would any one happen to know why calling context.startActivity(intent); might cause a run time error / nullpointer exception ? Jul 25 15:44:38 dirtyzero did you initialize intent ? :) Jul 25 15:45:16 yes like " Intent intent = new Intent(mcontext , Getusers.class);" Jul 25 15:45:31 then maybe context is null ? Jul 25 15:45:39 * mr_lou is going out for a while - bbl Jul 25 15:45:41 In my app's main activity, I have a button that onclicked opens a dialog fragment. When the dialogFrag is opened, an intent is made to ACTION_IMAGE_CAPTURE for the user to take a photo. I want the photo that is taken to be placed inside an ImageView in the dialogFrag's layout, where the user will be prompted to add information about the photo before returning to the main activity. Currently, my code crashes after the user ta Jul 25 15:45:49 What am I doing wrong? Jul 25 15:45:55 main activity- http://pastebin.com/KtgcKbKU Jul 25 15:46:03 dialog frag - http://pastebin.com/dHQSgSda Jul 25 15:46:11 dialog frag XML - http://pastebin.com/nbZ7m5UR Jul 25 15:47:10 Also, I'm having troubles getting the image view variable associated with the imageview. The code doesn't auto-complete for R.id.imageView Jul 25 15:48:37 csterling123 .. Project -> Clean .. ? Jul 25 15:48:51 assuming you're using eclipse Jul 25 15:49:41 heh Jul 25 15:49:44 Eclipse is horrible stuff Jul 25 15:49:50 Sirolf- yes im using eclipse Jul 25 15:49:53 and Project -> Clean does miracles Jul 25 15:50:16 csterling123 btw the id in your xml is imageView1 Jul 25 15:50:42 but I guess you ment that ;) Jul 25 15:50:44 sirolf- yeah i was not being specific with the ID Jul 25 15:51:19 try cleaning the project or just restarting freakin eclipse ... helps for me sometimes Jul 25 15:51:42 on the crash ... you didn't finish your sentence on when it crashes ;-) Jul 25 15:52:10 sirolf- it crashes when after the user accepts the photo Jul 25 15:52:24 on the dialog? Jul 25 15:52:27 like, photo is capture, user is prompted to retake or accept, after accepting, it crashes Jul 25 15:52:42 yes Jul 25 15:53:00 BTW english is my first language, i just cant type coherently today Jul 25 15:53:04 =D Jul 25 15:53:12 lol Jul 25 15:53:48 what's the error? Jul 25 15:53:49 for getting a handle on the imageView object in the layout, would i create do that in the onCreate or onCreateView method? Jul 25 15:54:33 Hey guys: I want to have to list views that scroll as if they are one single listview Jul 25 15:54:50 rwo Jul 25 15:54:53 *two Jul 25 15:55:04 whatst the best practice to do this= Jul 25 15:55:06 Sirolf- error is: E/AndroidRuntime(12010): java.lang.RuntimeException: Failure delivering result ResultInfo{who=android:fragment:0, request=0, result=-1, data=Intent { act=inline-data (has extras) }} to activity {com.fuscoe.lidoPenn/com.fuscoe.lidoPenn.LidoPennActivity}: java.lang.NullPointerException Jul 25 15:56:05 csterling123 Jul 25 15:56:21 your onActivityResult method is in the cameraDialog Jul 25 15:56:38 shouldn't that be in your LidoPenn ? Jul 25 15:56:50 oh no sorry Jul 25 15:56:52 lol Jul 25 15:57:02 should it be? i thought it should be in the dialogFrag b/c i want the image displayed in the dFrag Jul 25 15:58:01 no I was reading it wrong Jul 25 15:58:06 it looks fine Jul 25 15:58:18 something's not right :P Jul 25 16:00:12 looks like the camera doesn't return the right result Jul 25 16:01:29 is there any way I can tell if a kernel file is android? Jul 25 16:01:37 goodluck ;-) Jul 25 16:02:12 when I try to do findViewById(R.id.imageView1) it says 'The method findViewById(int) is undefined for the type cameraDialog Jul 25 16:03:10 why cant it use that method? i have another dialogFrag in the same app, launched from the same activity, using the same method Jul 25 16:04:35 Sirolf- the thing is, I am able to return the camera result to an imageView in an Activity Jul 25 16:05:05 but when I try to make the intent and what not in the dialogfragment, it has issues. not to mention it wont even let me get a handle on the imageView Jul 25 16:07:46 uname -a just tells me that it is a Linux, and its version. Is there anyway I can tell if it is an android? Jul 25 16:08:35 gmag: 'cat /proc/cpuinfo' ? Jul 25 16:10:27 gmag: Or at least it works on a Samsung.. Jul 25 16:10:40 Bleeptech, cat /proc/cpuinfo | grep ?? Jul 25 16:10:50 Bleeptech, what should I look for in there Jul 25 16:11:45 gmag: Look at the top of the dump.. Top line should be 'Processor' Jul 25 16:12:53 Bleeptech, this gives me info about the processors, but I cant find any reference to android. What am I missing? Jul 25 16:13:33 gmag: Does it say it's an ARM cpu? Jul 25 16:14:24 gmag: Like this? 'Processor : ARMv7 Processor rev 3 (v7l)' This is from a Galaxy Tab 2 Jul 25 16:14:49 Bleeptech, I know what you mean, but the architecture ARM does not imply and android Jul 25 16:15:14 an* Jul 25 16:15:35 more suggestions? Jul 25 16:16:29 gmag: WTH are you trying to ID?? Jul 25 16:16:37 maybe grep through the build.prop Jul 25 16:17:05 or just see if it exists Jul 25 16:17:10 or something Jul 25 16:17:47 there is no way I can tell just by inspecting the kernel file, right? Jul 25 16:20:58 some way of checking kernel modules built in a specific kernel Jul 25 16:21:07 gmag: The kernel is just going to be cpu specific code.. Are you trying to ID the base system remotely? Jul 25 16:23:40 Bleeptech, my machine runs an ubuntu user mode on an android kernel. I would like to tell if the kernel I am running is really android or an "ordinary" linux Jul 25 16:25:15 gmag: I dunno.. is there an actual device or is this just an emulator? Jul 25 16:25:34 Hello. I am using eclipse ADT. When I insert an imageView using the Graphical Layout, I am not able to resize its width ou height using the mouse. Why? Jul 25 16:25:36 i downloaded the 4.3 system image for my n7, and right before i started to flash i realized i had downloaded the 3g rom, not wifi :/ Jul 25 16:25:41 close call Jul 25 16:26:00 birbeck! Good catch.. :) Jul 25 16:26:27 only caught it because i checked the md5sum, i was about to flash without checking Jul 25 16:27:20 * Bleeptech always checks before he flashes... [ Take that how you will....] LOL Jul 25 16:44:57 Is the googlecast network protocol documented, or is access supposed to be only through one of the provided libraries? Jul 25 16:45:15 I see a mystery reference to something called "Remote Application Media Protocol" Jul 25 16:56:32 I can't find the documentation for android theme styles and options for spinners. I also can't find a link that doesn't reference ActionBarSherlock, which I can't use on this project. Can anyone point me towards comprehensive documentation on andtroid style options for the Spinner Element? Jul 25 16:56:53 is there any way to make actionbarsherlock show the new style overflow menu on <3.0 devices? Jul 25 16:57:05 (when they press the menu button) Jul 25 16:57:14 no Jul 25 16:57:24 bummer after bummer :p Jul 25 16:57:24 unless you want to finish my branch Jul 25 16:57:35 not at the moment :) Jul 25 16:57:46 * pfn has a huge list of OSS stuff he wants to work on as it is Jul 25 16:58:03 neither do I so you get the old options menu Jul 25 16:58:37 Can anyone ELI5 how to add the Android Support Lib v7 appcompat to Android Studio projects? Jul 25 16:58:42 I've never used Gradle/etc before Jul 25 16:59:32 Brian|CB: Not a clue.. I finally got it to stop throwing gradle errors myself.. Jul 25 16:59:55 Brian|CB there is a video Jul 25 17:00:00 g00s: Got the link? Jul 25 17:00:15 https://www.youtube.com/watch?v=6TGgYqfJnyc#at=20 Jul 25 17:00:46 presumable you just do what he does to add it to the gradle file Jul 25 17:00:52 like, add 1 line Jul 25 17:00:56 :) Jul 25 17:01:02 thanks g00s Jul 25 17:01:12 make sure you have the "android support repository" rev2 from sdk manager Jul 25 17:02:03 I updated them all yesterday g00s Jul 25 17:04:09 hmm when I render something using glDrawElements how does it know the format of the index array? Jul 25 17:04:49 Is it dependant on how many glEnableVertexAttribArray(0 you have done? Jul 25 17:05:32 speaking of repositories, I should update my sdk Jul 25 17:09:29 where can i start to develop videogames... Jul 25 17:09:52 for android Jul 25 17:10:02 do you have videogame development experience at all? Jul 25 17:10:10 if the answer is no, by starting with an open source video game Jul 25 17:10:35 yes, my answer is no Jul 25 17:10:47 hey look, a quick search Jul 25 17:10:48 http://www.amazon.com/Beginning-Android-Games-Mario-Zechner/dp/1430246774 Jul 25 17:10:51 I don't know many open source android games, try replica island Jul 25 17:11:19 well, then there's the aspect of hands-on learning vs. book learning, if the former, yeah, try replica island and hack on it and grok it; otherwise, nab a book Jul 25 17:11:37 popers also, gotta decide to use a game engine like unity ; in that case you may want a book on unity Jul 25 17:11:49 (or no game engine) Jul 25 17:12:16 but i'll have to make models and such no? Jul 25 17:13:04 if someone asked me to write a game, i wouldn't have the slightest idea. there is probably an architecture; certain maths, etc Jul 25 17:14:02 ok thanks Jul 25 17:15:31 ii'm amazed the apple dev portal is still down. i can't remember the last time a service has been down for a whole week Jul 25 17:15:37 lol Jul 25 17:15:42 the iOS dev across from me was bitchin about that Jul 25 17:15:44 I think it's hilarious Jul 25 17:15:45 *ALINES GUY* Apple Jul 25 17:18:05 Brian|CB did you say you had a love/hate thing with LinkedIn ? Jul 25 17:18:24 Yeah Jul 25 17:18:30 hmm, putting a Handler in a service to postDelayed every 15 minutes should be pretty reasonable on battery power, right? Jul 25 17:18:45 if the device is asleep, it'll wake up and process whenever after 15 minutes is fine, yes? Jul 25 17:18:48 * pfn imagines so Jul 25 17:18:51 no Jul 25 17:18:52 no Jul 25 17:18:53 :| Jul 25 17:18:57 use AlarmService Jul 25 17:18:58 Brian|CB i'm reading about the Payola thing https://news.ycombinator.com/item?id=6102990 Jul 25 17:18:58 pfn, no Jul 25 17:19:05 anyone know why an ImageView set to width=fill, height=wrap would introduce bars on the top and bottom of the image? Jul 25 17:19:18 pfn: use AlarmManager, a Handler is not meant to be used this way :) Jul 25 17:19:22 now the support lib even has something like Wakeful IntentService or something Jul 25 17:19:24 pfn, your app can even be killed within those 15 minutes Jul 25 17:19:33 guys Jul 25 17:19:34 AlarmManager* :( Jul 25 17:19:43 offtopic but did you see Mark is doing an AMA Jul 25 17:19:43 romainguy, I don't need it to be reliable Jul 25 17:19:53 I just want to refresh a lock every 15 minutes, roughly Jul 25 17:19:56 and I need the service anyway Jul 25 17:20:05 http://developer.android.com/reference/android/support/v4/content/WakefulBroadcastReceiver.html Jul 25 17:20:07 SimonVT, and yes, if it gets killed, that's perfectly acceptable Jul 25 17:20:38 narekb who is Mark ? Jul 25 17:20:42 romainguy, my goal is not to wake the device excessively, while still refreshing my lock Jul 25 17:20:43 Then you're good, but pretty sure it wont wake up the device Jul 25 17:20:45 g00s, Shuttleworth Jul 25 17:20:54 pfn: AlarmManager is the best way to do it Jul 25 17:20:58 Shuttleworth pls Jul 25 17:21:01 (i.e. the lock can be refreshed after the device is awakened for another reason) Jul 25 17:21:41 romainguy, also, it should not run if my app and/or service is not running Jul 25 17:22:27 https://gist.github.com/pfn/6081897 Jul 25 17:22:53 hey guys.. I need to send data (gyro) from my phone to my pc using only usb. How would I do that? Jul 25 17:24:58 only usb? dragorn knows a lot about that i think Jul 25 17:25:14 maybe you can catch him if he swings by Jul 25 17:25:37 ok thx :) Jul 25 17:27:13 narekb pretty cool Shuttleworth is saying future generation specs would be voted on Jul 25 17:27:23 awesome Jul 25 17:27:28 i wish him all good luck; sounds awesome Jul 25 17:27:32 yeah Jul 25 17:27:38 I am so excited about new phones Jul 25 17:27:42 if i had $600 i'd plunk it down Jul 25 17:27:42 I love when many devices come out Jul 25 17:27:47 that makes the older ones cheaper Jul 25 17:28:01 so can eventually get a Galaxy Nexus :D Jul 25 17:28:13 damn Jul 25 17:28:22 :D Jul 25 17:28:25 this more like irt Jul 25 17:28:26 *it Jul 25 17:30:03 narekb "vote for oem skin: yes / no" Jul 25 17:30:17 NO! Jul 25 17:30:18 NEVER Jul 25 17:30:18 "vote for carrier bloatware: yes / no" Jul 25 17:30:21 KILL IT WITH FIRE! Jul 25 17:30:43 I will kill anyone who tries to put a skin on Ubuntu Jul 25 17:30:48 i. will. kill. them! Jul 25 17:30:52 isn't it called unity? Jul 25 17:31:09 Leeds, Unity is a choice Jul 25 17:31:18 TouchWiz is not Jul 25 17:31:27 of course it is Jul 25 17:31:47 anyway, not going to start arguing about throwaway one-liners Jul 25 17:32:04 Leeds, do you have a skin on your device? Jul 25 17:32:17 I use a case when I take it out for a walk, yes Jul 25 17:32:26 Leeds: Damn.. I was about to go make some popcorn and watch the show.. LOL Jul 25 17:32:30 Leeds, I meant a UI skin Jul 25 17:32:37 Bleeptech, NOPE! :D Jul 25 17:33:42 Since most of the android folks seem to be awake (and much as I adore JakeWharton and ABS :-) -- thank you for support.v7.app.* Jul 25 17:34:34 Lol Jul 25 17:34:46 I feel like JakeWharton is probably happy to finally start detaching h imself from ABS Jul 25 17:34:52 hes probably sick of us all associated him with it all the time Jul 25 17:34:57 like, hes probably done way cooler stuff >.> Jul 25 17:35:38 you mean like this: http://jakewharton.com/deprecated-from-inception/ Jul 25 17:35:43 +1 Jul 25 17:36:04 Can change that to just "deprecated" Jul 25 17:36:27 Lol Jul 25 17:36:43 I want to personally apologize to JakeWharton for all the times I asked him about ABS, or fanboyed too hard :P Jul 25 17:37:41 Btw, JakeWharton, do you ever think you'll be back at UIUC? I know you were here once, but if you ever h ave the chance to come out here again, I'm starting to build a series of tutorials on how to do basic android development and I'd love to have you come talk :D Jul 25 17:38:42 hey, anyone have any recommendations for cross platform development? Jul 25 17:38:51 I thought there was one called One or something like that Jul 25 17:38:58 that was supposed to be good Jul 25 17:39:09 lethjakman, Codename One Jul 25 17:39:15 lethjakman: Don't D: Jul 25 17:39:15 narekb: is it nice? Jul 25 17:39:19 Cross platform dev is never worth it :S Jul 25 17:39:20 Brian|CB: why? Jul 25 17:39:32 lethjakman, because every platform has unique elements Jul 25 17:39:42 fair enough. Jul 25 17:39:45 Would you use Visual Studio to build an application for Mac OS X? Jul 25 17:39:45 No Jul 25 17:39:46 so you better take your time and learn all platforms one by one Jul 25 17:39:57 when designing an asset for a particular density bucket, should it be made to the minimum for that bucket or the maximum? Jul 25 17:40:00 protip:start from Android, it's easier Jul 25 17:40:16 Brian|CB: I have no idea. Probably not unless we go to recruit there again Jul 25 17:40:39 Brian|CB: no, I'd use QT with vim :) Jul 25 17:40:41 D: Jul 25 17:40:49 OMG Jul 25 17:41:01 narekb: I know android alright and ios, I jsut wanted to save time. Jul 25 17:41:02 JakeWharton: HOw like is it you guys will come back? Jul 25 17:41:08 ie: if I wanted an image to span the width of the screen but wrap vertically, would I make that the maximum width for that bucket or the minimum? Jul 25 17:41:21 the company will for sure. not sure if I will though Jul 25 17:41:25 hey, any experience on how long a Nexus OTA update cycle will take, until 4.3 should be in on all devices? I haven't gotten an update yet :/ Jul 25 17:41:35 lethjakman, it will cut time, but also quality Jul 25 17:41:38 D: Jul 25 17:41:43 clb, just download the image yourself Jul 25 17:41:51 the native experience for each platform is irreplaceable Jul 25 17:41:52 clb, up to 2 weeks if your device is supported Jul 25 17:41:54 JakeWharton: If I could arrange for some sort of presentation for you to give, could you potentially leverage that to get yourself out here to recruit? :P Jul 25 17:42:05 hrm, alright. Jul 25 17:42:06 pfn: does that need rooting? Jul 25 17:42:09 clb, no Jul 25 17:42:20 oh, interesting Jul 25 17:42:25 clb, juast fastboot oem unlock if you haven't already Jul 25 17:42:26 pfn, clb what's with all the 3 letter nicks? Jul 25 17:42:27 :D Jul 25 17:42:41 * pfn has been using a 3 letter nick for 2 decades on irc... Jul 25 17:43:12 * clb has been using a 3 letter nick before irc was invented Jul 25 17:43:26 * lut4rp is a 3 letter nick Jul 25 17:43:31 lol Jul 25 17:43:36 ok that didn't go so well Jul 25 17:43:41 * narekb is sure lut4rp can't count :D Jul 25 17:43:59 Wtf Jul 25 17:44:04 historically those coin-operated arcade machines only accepted 3-letter highscore nicks Jul 25 17:44:05 I added the support lib to my build.gradle as shown Jul 25 17:44:10 and it wont let me import the ActionBarActivity Jul 25 17:44:10 D: Jul 25 17:44:15 pfn 2 decades? holy crap ! Jul 25 17:44:23 pfn: thanks, I'll look into manual update Jul 25 17:44:59 I've been using this nick for at least 15 years or so Jul 25 17:45:00 g00s, yeah, roughly that long Jul 25 17:45:16 pfn: Thats as long as I've been me Jul 25 17:45:16 D: Jul 25 17:46:16 hi all, when i try to compile apps using eclispe I see that "gen" is not populated, and thus R is not created. Can anyone help me debug? Running eclipse from the official site on Debian testing, using openjdk-7 Jul 25 17:46:17 g00s: So I added the line to build.gradle as the guy said, but it won't let me import the ActionBarActivity still Jul 25 17:46:29 Brian|CB, re-import the gradle file into AS? Jul 25 17:46:29 huh Jul 25 17:46:33 or re-open your project Jul 25 17:46:43 pfn: me? Jul 25 17:46:47 yeah, pfn went to intellij and i went to vim Jul 25 17:46:51 :/ Jul 25 17:46:58 pfn: Will reopening project do anything other than rebuilding? Jul 25 17:47:00 you went to vim? you should use sbt then :p Jul 25 17:47:06 Brian|CB, it refreshes everything in gradle Jul 25 17:47:07 lol Jul 25 17:47:08 or it should Jul 25 17:47:15 wtf Jul 25 17:47:15 lol Jul 25 17:47:17 g00s, seriously, you keep loling Jul 25 17:47:17 dammit pfn, you and your sbt Jul 25 17:47:19 cuco: I'd use the Sun^WOracle JDK, if I were you... I don't know if it's still required, but it certainly used to be Jul 25 17:47:20 why is ther eno option to just refresh gradle? Jul 25 17:47:23 g00s, just go use it already Jul 25 17:47:34 Brian|CB, because it's your entire project definition Jul 25 17:47:42 Pretty sure there is an option to refresh gradle somewhere Jul 25 17:47:46 g00s, you're on a mac, it's even easier, just {port|brew} install sbt Jul 25 17:47:51 g00s, and you're done Jul 25 17:47:55 g00s, why do you resist so hard Jul 25 17:48:00 Think I've heard it mentioned, but never used AS Jul 25 17:48:04 Leeds: for building AOSP yes JDK is needed, but Eclipse runs file using openjdk. Jul 25 17:48:17 i already converted everything over to gradle , its fine Jul 25 17:48:21 Leeds: and when I do set java -> jdk the "android" gui does not start at all Jul 25 17:48:22 cuco: doesn't sound like it's running fine to you... Jul 25 17:48:22 Brian|CB, why's it so hard to reopen your project, just close it, and re-open it Jul 25 17:48:27 g00s, sbt works transparently Jul 25 17:48:34 g00s, and you don't have triggered/continuous builds with gradle Jul 25 17:48:36 but hey, I don't use any IDE, so what do I know Jul 25 17:48:48 * Bleeptech was getting a refresh by altering 1 character / resetting in the build.gradle and re-saving it. Jul 25 17:49:00 pfn: There should be an option to do that without reopening though :S Jul 25 17:49:11 Is an android spinner just retardedly hard to style or am I not seeing something obvious? Jul 25 17:49:15 * pfn shrugs Jul 25 17:49:20 it's a change in your project definition Jul 25 17:49:24 intellij wants to re-load on those Jul 25 17:50:51 Greeting fellow devs! I have a question is it better to use onclicklistener or onClick function? if you have many buttons in a one activity. Jul 25 17:51:29 wouldnt you set a click listener on the button, then define an onclick method inside that? Jul 25 17:51:48 always better to setOnClickListener Jul 25 17:51:53 android:onClick is fragile Jul 25 17:53:07 pfn- what is fragile about it? Jul 25 17:53:57 Hmm. APp is crashing now instead of not ubilding. Ok now I need to change to the new AppCOmpat resources Jul 25 17:53:58 no static checking Jul 25 17:54:27 i see Jul 25 17:54:33 csterling123: Yes, I mean you can also put a function on the button directly at onClick option Jul 25 17:55:29 pfn: puting a function in onClick is fragile? what do you mean? this is no the best approuch? Jul 25 17:55:45 android:onClick also looks in the Activity Jul 25 17:55:48 Useless in modern apps Jul 25 17:55:48 does anyone know how to get the lat/lon returned with more decimals? right now i'm getting XX.0 and -XXX.0 instead of xx.xxxxx, -xxx.xxxxxx Jul 25 17:56:44 SimonVT: so I just avoid making my own onClick function in a button? Jul 25 17:56:59 androidnewb- do it in the java not the xml Jul 25 17:57:05 dunno what that means Jul 25 17:57:32 SimonVT: nvm Jul 25 17:58:26 csterling123: I know what you mean, you setting the button programmaticaly? us onClick on that? Jul 25 17:58:29 *use Jul 25 17:58:35 So actionbaractivity now imports properly but I can't get @style/Theme.AppCompat.Light to be referenced properly... Gradle pls stop Jul 25 17:58:36 you mean* Jul 25 17:59:11 androidnewb- yeah. just do buttonVariable.setOnClickListener(new onClickListner(){ public void onClick(View V){ do stuff }; Jul 25 17:59:26 probably left some parens off but you get the idea Jul 25 18:04:20 heh, changing to appcompat actionbar was painless Jul 25 18:04:21 Hey, anyone who has used Android support lib v7 appcompat with Android Studio, do you know why I wouldn't be able to use Theme.AppCompat.Light? g00s maybe? Jul 25 18:04:47 pfn does it have CAB ? Jul 25 18:04:48 you can use it, it just doesn't resolve properly in the IDE Jul 25 18:04:53 g00s, dunno, I would assume it does Jul 25 18:05:02 i wouldn't assume Jul 25 18:05:07 requires different LV too Jul 25 18:05:11 i think Jul 25 18:05:35 LV? Jul 25 18:05:39 listview Jul 25 18:05:44 pfn: Wait, so it doesn't resolve Theme.AppCompat.Light? Jul 25 18:05:52 anyway, no appcompat.ActionMode or startActionMode Jul 25 18:05:53 * pfn shrugs Jul 25 18:06:01 er, app. Jul 25 18:06:33 ah Jul 25 18:06:35 thats weird Jul 25 18:06:35 lol Jul 25 18:06:44 So it's just a bug with AS then? Jul 25 18:06:47 Brian|CB, the ide doesn't resolve it because it doesn't know how to process R.txt Jul 25 18:06:51 ah Jul 25 18:07:00 SO they'll probablty fix that in the future then I'd guess Jul 25 18:07:08 if it's an issue with an Android library and an Android IDE made by google Jul 25 18:07:08 probably Jul 25 18:07:09 :P Jul 25 18:07:18 it's an issue with aar support Jul 25 18:08:18 I'm hoping intellij adds aar support soon, too Jul 25 18:08:49 http://developer.android.com/reference/android/support/v7/view/ActionMode.Callback.html Jul 25 18:08:55 that seems to indicate that cab is supported Jul 25 18:11:16 pfn nice Jul 25 18:11:38 Best way to remove the action bar icon? If anoyne knows off the top of their head before I google research this Jul 25 18:13:08 android:displayOptions Jul 25 18:13:47 huh, one of my activities isn't showing content now that I switched to appcompat Jul 25 18:14:28 i hope api18 x86 emu isn't broken :| Jul 25 18:14:38 well, working logs :) Jul 25 18:16:00 huh, it only doesn't appear on my emulator for gb Jul 25 18:16:12 it shows up fine on device Jul 25 18:16:55 where's the x86 image for 4.3? I don't see it Jul 25 18:16:59 only armeabi Jul 25 18:19:02 ah, I need to use R.id.action_bar_activity_content Jul 25 18:19:31 Can't use android.R.id.content? Jul 25 18:20:05 Hello. How can I make my content provider restricted to just my app? Jul 25 18:20:26 Don't export it Jul 25 18:22:45 thanks SimonVT Jul 25 18:25:11 pfn yeah, those intel guys are not on the ball Jul 25 18:25:22 i submitted a bug saying "x86 images not updated in timely manner" :D Jul 25 18:26:43 cool, i need this for my phone when that time comes http://www.gizmag.com/nukemap3-interview/28421/ Jul 25 18:38:46 I use Object.wait() and it wakes up before I called notifyAll(), why Jul 25 18:38:47 ? Jul 25 18:39:17 WeeJeWel: cheers Jul 25 18:39:27 yeah I do a fair bit w/ USB. It's a huge pain in the ass. Avoid it if you can. :P Jul 25 18:39:35 heheh Jul 25 18:39:54 how hard would it be to send 3 floats every 200ms to a pc? Jul 25 18:40:22 send TO a pc? erh. A lot harder than you'd think. Jul 25 18:40:34 I'm not even sure you can do it w/out using something wonky like the adb debug channel Jul 25 18:40:37 haha Jul 25 18:40:42 ah crap Jul 25 18:40:57 i found a serial port lib but that didn't work too well.. Jul 25 18:40:58 (some) androids can be a USB host where you can connect sensors to them, and get arbitrary data that way Jul 25 18:41:06 but you can't be an arbitrary client Jul 25 18:41:13 there's another mode, hang on Jul 25 18:41:32 WeeJeWel can you use bluetooth ? Jul 25 18:41:47 g00s in theory, yes Jul 25 18:41:53 but i have 0 experience with bluetooth Jul 25 18:42:01 WeeJeWel if usb turn out to be too much hassle, look at BT + mqtt Jul 25 18:42:03 http://developer.android.com/guide/topics/connectivity/usb/accessory.html Jul 25 18:42:31 You'd have to write up some sort of driver emulator for the PC side Jul 25 18:42:38 for linux it'd be easy, for windows, maybe not so much Jul 25 18:42:55 that's your only option for USB mode. Bluetooth is definitely worth looking at Jul 25 18:43:19 :| Jul 25 18:43:24 ok i think ill go with BT :p Jul 25 18:43:25 basically you just make a serial port and write data to it; the problem there is that I believe you can't anchor the channel on the android side so it's a pain in the ass on the windows side Jul 25 18:43:35 Your other option is just to make a TCP socket Jul 25 18:43:47 if you're talking about tethering with USB I assume you're on the same wifi network Jul 25 18:43:56 (or could be on the same wifi network) Jul 25 18:44:17 well the situation is as follows: android -- laptop -- drone Jul 25 18:44:26 the laptop and drone are connected via wifi ad-hoc Jul 25 18:44:33 how do you right align text in a TextView? Jul 25 18:44:42 WeeJeWel oh, maybe do android ad hoc too Jul 25 18:44:46 gravity="right" Jul 25 18:45:03 adhoc is pretty sketchy. I forget if android can still do it. It couldn't, then it could, then I think they phased it out for wifi direct Jul 25 18:45:05 i thought android could do ad-hoc as of 4.x … ? Jul 25 18:45:16 oh Jul 25 18:46:00 it's just that the drone acts as a router but doesn't support tcp/ip Jul 25 18:46:06 so the wifi of my laptop is useless Jul 25 18:46:18 android should be able to do ad-hoc in the first dang place, wpa supplicant can do it just fine, and its what android uses. of course, its butchered all up now Jul 25 18:46:31 kc8hfi: it's all butchered up is the issue, yeah Jul 25 18:46:52 * kc8hfi grumbles at the idiots who broke wpa supplicant Jul 25 18:46:57 WeeJeWel: Well it's not that it doesn't do tcp, but probably that you don't have a DHCP server. You could run one on your laptop or you could statically assign addresses. It's a pain tho. Jul 25 18:47:01 kc8hfi: don't get me started Jul 25 18:47:20 it has a dhcp server (maybe it isnt ad hoc then?) Jul 25 18:47:30 dragorn: ok, hehe. I don't wanna get started about it either Jul 25 18:47:38 still, sending stuff between clients doesn't work Jul 25 18:47:49 kc8hfi: they finally added an API in 4.3 for configuring EAP programatically Jul 25 18:48:02 so, how do I add a fragment directly to the content view with ActionBarActivity? previously, I was adding to android.R.id.content Jul 25 18:48:31 dragorn: thats a little bit of progress..... Jul 25 18:48:33 WeeJeWel: I suspect something on your tcp layer is misconfigured then. anyhow. those are your options - accessory api where you have to emulate the accessory host on the PC, bluetooth, or network Jul 25 18:48:37 that works on honeycomb and newer but on gb nothing shows Jul 25 18:48:41 kc8hfi: yeah about 3 years too late :P Jul 25 18:48:46 thanks dragorn :) Jul 25 18:50:59 is there a way to build an actionbar using multiple xml layout resource files? -- so far it seems that the menu inflator works with only a single layout Jul 25 18:53:18 meetri I'm just guessing here, but maybe use the xml tag ? Jul 25 18:55:40 Just inflate several times Jul 25 19:04:56 If I want my app to be able to do something when a user arrives at a location, what's the best way to do it, just check location occasionally in the background? Jul 25 19:05:34 With geofences Jul 25 19:05:50 ah alright Jul 25 19:06:21 I swear I Googled for quite a long while and couldn't find anything :/ Jul 25 19:06:26 I'm trying to run an update from the Recovery mode screen under fastboot, but the Volume Up key does nothing on the screen that has the dead android with the red triangle. I'm supposed to see "apply update from ADB" but neither volume key does anything. What does this mean? Jul 25 19:08:46 Forkk: That and decrease the check interval as they get closer? Use accel data to make guesses and correct as you go.. Jul 25 19:11:42 Bleeptech, can you do that with Geofences? It doesn't look like you can... Jul 25 19:13:34 Because you don't need it Jul 25 19:13:55 if i anted to extend the ArrayAdapter class, can you pass it an ArrayList of your own custom objects? Jul 25 19:14:01 That's what I was thinking. Plus it could get sketchy with lots of them. Jul 25 19:14:11 Also, it's extra work and I'm lazy Jul 25 19:14:30 If you need to extend ArrayAdapter, you shouldn't be using ArrayAdapter Jul 25 19:14:49 Wanna use custom fonts in Android? PRepare for pain. Jul 25 19:14:50 Lol Jul 25 19:14:56 I fucking hate custom fonts in android, it's so awful Jul 25 19:15:19 i can do open gl es 2.0 indexed buffers if I use only vertex and an index but if I add another array such as texture mapping it does not work - anyone know why? Jul 25 19:15:51 So basicaly vertex array + index array works but vertex array texture array index array does not Jul 25 19:15:58 basically* Jul 25 19:16:07 SimonVT: isn't it faster to reuse existing view objects instead of making new ones? Jul 25 19:16:17 Yes Jul 25 19:18:47 SimonVT: i have a picture and text together, an ImageView and a TextView all laid out in a ListView. I figured extending the ArrayAdapter and overriding the getView function was the best way to handle this. If its not, how would you suggest handling this? Jul 25 19:19:01 SimonVT: hang on, i post the code Jul 25 19:19:36 Extend BaseAdapter Jul 25 19:21:27 Is it possible to create an Android app that has a browser window(restricted to a specified domain, "google.com") and when the URL has a specified string in it(for example "images") then show a share button allowing the user to share the URL via all of the share methods in android? Jul 25 19:21:59 SimonVT: hmm, i see. thats because ArrayAdapter is backed by an array? and BaseAdapter lets you back it with whatever you want? Jul 25 19:25:31 No, just because ArrayAdapter is a specific adapter implementation Jul 25 19:25:53 Is it possible to have multiple Android apps under one Google Analytics ID? Jul 25 19:26:49 You wouldn't extend ListFragment and display something else than a list either Jul 25 19:28:19 SimonVT: i htink i see where you're going. I'm not gonna pass the ArrayAdapter an array, so don't use ArrayAdapter. if i'm gonna pass it something else, i should extend from the base class instead. in this case, its BaseAdapter Jul 25 19:29:55 ArrayAdapter takes a list as well.. But no, ArrayAdapter just displays a list of strings.. If that's not what you need, don't use ArrayAdapter Jul 25 19:31:47 Do I need to declare my AsyncTask in the Manifest, and if so, how? Jul 25 19:32:28 oO no Jul 25 19:32:43 hmm Jul 25 19:32:56 in that case why is it not working :p Jul 25 19:34:01 Because you're doing it wrong Jul 25 19:34:23 yeah, I'm getting that vibe Jul 25 19:44:45 AsyncTaskkkkkkkkkkkkkkk Jul 25 19:45:03 say hello to my little RejectionExecutionException Jul 25 19:54:06 REJECTION! Jul 25 19:58:02 hey guys i have a question regarding using a laptop for writing apps Jul 25 19:58:17 what do you think about a macbook pro vs air ? Jul 25 19:58:32 16 gigs Jul 25 19:58:55 and a decent processor, don't wanna be sitting long waiting for a build Jul 25 19:59:04 SSD Jul 25 19:59:05 more than 2 min and I'll start pulling my hair out Jul 25 19:59:13 ssd is a must Jul 25 19:59:16 you want SSD over 16, but you want 16gb also Jul 25 20:00:00 macbook pro retina is a sweet machine Jul 25 20:00:03 macbook air too Jul 25 20:00:12 i agree that they are both sweet Jul 25 20:00:26 are the pros not on ssd yet? Jul 25 20:00:35 not sure Jul 25 20:00:40 I think the non retina ones arent Jul 25 20:01:05 Anyone know a horizontally scrolling listview (or grid) library? Jul 25 20:01:13 *know a good Jul 25 20:01:39 damn have i not been reading the specs right? how could i miss that they come with 16 gigs Jul 25 20:02:15 oh right, i ignored the pro that costs 2700 because DAMN Jul 25 20:02:19 thats a lot of money Jul 25 20:05:08 I bought my 16 gig retina pro for 4700 Jul 25 20:05:37 I should have held out for the Dell XPS 15 with ssd Jul 25 20:05:44 identical specs other than the retina Jul 25 20:05:49 a fraction of the price Jul 25 20:10:25 do you think the difference btwn pro and air is that noticeable? Jul 25 20:10:40 if i ask a user to uninstall my app (which he purchased) he should be able to reinstall it again, right (without paying again) Jul 25 20:11:03 g00s: yes Jul 25 20:11:18 evanc thanks Jul 25 20:12:12 SQLiteException: no such column: jimbeamofficial (code 1): , while compiling: SELECT status_id, status_text FROM status_table WHERE (status_screenname = jimbeamofficial) ORDER BY status_id DESC Jul 25 20:12:16 g00s: countless users get a new Android phone, and make a brand new Google account; hence the new account doesn't own the app Jul 25 20:12:46 Ankhwatcher, 'string literal' Jul 25 20:12:55 in quotes Jul 25 20:12:56 oh I get it Jul 25 20:12:58 nseidm1: s/countless/unknown/ and that makes more sense Jul 25 20:12:58 Warning: No file_contextsVerifying current system ... Jul 25 20:13:02 canadiancow: thansk Jul 25 20:13:07 s/thansk/thanks Jul 25 20:14:05 assert failed: apply)patch_check ("system/build.prop", "b14efd4ddb55e476ba46fb51df7a230d829ca1d"Installation aborted. Jul 25 20:15:04 Does that have anything to do with me adding the line "qemu.hw.mainkeys=1" into my build.prop file? Jul 25 20:15:18 Sounds like an #android-root question Jul 25 20:18:19 RIP styles.xml 7/25/2013 - 7/25/2013 Jul 25 20:19:43 Is it possible to create an Android app that has a browser window(restricted to a specified domain, "google.com") and when the URL has a specified string in it(for example "images") then show a share button allowing the user to share the URL via all of the share methods in android? Jul 25 20:22:32 I'm using an AsyncTask to retrieve tweets, should I place them into the Database in 'doInBackground' or in 'onPostExecute'? Jul 25 20:22:53 definitely thread that Jul 25 20:23:57 onPostExecute, what if your context is null :-P Jul 25 20:24:28 Hmm I dont understand this - in opengl 1.x I could specify an array for each vertex, texture,normal and then use draw elements with an index array vi,ti,ni this is not possible in opengl 2.0? Jul 25 20:24:50 Anthy: yes, you can still specify an array for each vertex attribute Jul 25 20:25:05 but note that that is a slow path and not recommended Jul 25 20:25:13 so i can have index buffer vi,ni,ti ? Jul 25 20:25:27 no, you cannot have multiple index buffers in a single draw call Jul 25 20:25:53 hmmh, did GLES1 allow multiple index buffers in a single draw call? Jul 25 20:25:58 Let me show an example Jul 25 20:26:28 you can have a single index buffer and multiple vertex buffers in a draw call in GLES2, but that is not recommended, since it gives suboptimal performance Jul 25 20:26:53 the recommended way is to have a single index and vertex buffer, where the vertex buffer is in interleaved format Jul 25 20:27:33 but what happens if I want to have a shared vertex with 2 colours? Jul 25 20:27:45 I would have to define the vertex twice? Jul 25 20:27:58 yes Jul 25 20:28:20 Ahhhh tnx Jul 25 20:29:20 ok so the best way is to interleave x,y,z,s,t,r,g,b in one buffer right? Jul 25 20:29:51 so you'd have one vertex v1={pos=(1,2,3), color=(1,0,0)} and then v2={pos=(1,2,3), color=(0,1,0)} if you wanted to specify both a red and a green vertex at the same location Jul 25 20:29:54 This is going to be a pain in the butt because face normals will mean I dupe a lot of vertex Jul 25 20:30:10 ok gotcha Jul 25 20:30:18 yeah, in the presence of hard edges, the vertices are duplicated Jul 25 20:30:34 if the edge is smooth, then there's no duplicated vertices in a single location Jul 25 20:31:14 Right I understand now but in my 1.x engine I had an index buffer of vi,ci,ni etc Jul 25 20:31:44 yeah, creating a single buffer that interleaves (x,y,z,s,t,r,g,b, x,y,z,s,t,r,g,b, ...) is best performance, due to coherency in data cache locality Jul 25 20:32:01 ok Jul 25 20:32:13 That means I have to re do a lot of stuff :) Jul 25 20:32:56 tnx for help I was really confused about that :) Jul 25 20:33:09 np Jul 25 20:34:00 how is it possible when i push the home button i get an error fatal exception main Jul 25 20:34:10 in supportmapfragment Jul 25 20:35:07 O.O Jul 25 20:36:47 is there anybody from google awake? i think that there's a huge problem with clipboard listeners breaking copy & paste in 4.3 Jul 25 20:37:39 Hi folks. I'm new to Android development (somewhat new to Java too). Just wondering what the "best" way was in Java (with Eclipse IDE) to create application-wide classes/methods that I can use throughout various activities. Googling reveals so many contradicting suggestions I don't even know what to do Jul 25 20:37:49 veeti best to post a bug Jul 25 20:38:11 already did, https://code.google.com/p/android/issues/detail?id=58043 Jul 25 20:40:14 veeti i would attach your code Jul 25 20:40:36 theres really not much to it Jul 25 20:40:42 that … seems like a big fuckup. i remember when 4.x came along, they changed how provider permissions worked and my app started crashing then Jul 25 20:41:00 are you sure there is no new permission for reading the clipboard ? Jul 25 20:41:11 nope, nothing mentioned in the api changes Jul 25 20:41:18 ruhroh Jul 25 20:41:19 https://gist.github.com/veeti/8aaa4ec4833b8d07c255 Jul 25 20:41:23 this is enough to reproduce Jul 25 20:41:33 well, there is always 4.3.1 :D Jul 25 20:41:40 veeti: just for shits, try adding ? Jul 25 20:41:41 Why does "adb get-state" return known? Phone is plugged in, server-started, debugging enabled. Jul 25 20:42:14 Hey guys, is it possible to ellipsize individual lines in a TextView (e.g, the first line would be "Test" and it wouldn't be ellipsized, and the second line could be "Testtesttesttesttesttestte..." and be ellipsized)? Jul 25 20:44:37 "Fake memory implanted in mice with a beam of light" … Jul 25 20:44:42 * g00s grabs his tinfoil hat Jul 25 20:44:56 is it normal for getContext() to return null in a ContentProvider? Jul 25 20:45:08 before onCreate, i guess Jul 25 20:45:15 quidnunc, sometimes I kill the server and restart it and it works Jul 25 20:45:17 is there a solution for not crashing on home button click? for supportmapfragment? Jul 25 20:45:17 Anybody else getting inflation errors with Google Maps v2 MapViews? I can't seem to find anything that works for this... Jul 25 20:45:17 normally no Jul 25 20:46:30 g00s got an abstract for that? Jul 25 20:46:54 Anthy saw it here http://arstechnica.com/science/2013/07/fake-memory-implanted-in-mice-with-a-beam-of-light/ Jul 25 20:47:01 tnx Jul 25 20:47:06 nope, adding the permission doesn't work Jul 25 20:49:07 Hey guys, I have a fragment that is defined as Fragment frag=new SetsFragment(); and I have some variables from within that fragment's class that I want to access from my Main Acitivy, is there any way to do this? doing frag.variableName doesn't work Jul 25 20:49:23 thankfully it wont work for all mice just one specific one Jul 25 20:49:58 ollienx, are the variables public? If not, do you have getters/setters for them? Jul 25 20:50:13 ollienx if you want global variable in the class declare it as static Jul 25 20:50:28 hello. I just started developing on android phones so my question si probably pretty simple. I'm trying to get all installed applications in a list After a user clicks on one of the entries he shall see more details about that application. What I do so far is sending an intent to a new activity with the package name, but in the new activity I always fail to find the package. Here is the relevant code : http://pastebin.com/Tn8V3uU6 Jul 25 20:50:28 ian_ford: varibale is public, and I can't call methods in the same way Jul 25 20:50:48 Anthy: it is defined as public, but it doesn't show up Jul 25 20:50:57 lovethang_, it depends what you're doing Jul 25 20:50:58 Cast your fragment to SetsFragment Jul 25 20:51:03 hang on Jul 25 20:51:11 Yeah because the public method is instantiated at the class creation time Jul 25 20:51:26 it is in the instance of that class but not the actuall class Jul 25 20:51:27 so can I not do what I'm doing? Jul 25 20:51:28 actual Jul 25 20:51:40 ollienx: you can't store the var as a Fragment but then access SetsFragment properties without casting Jul 25 20:51:49 trying casting now Jul 25 20:51:50 hang on Jul 25 20:52:01 ollienx: so for example, if SetsFragment has a public int property named id Jul 25 20:52:19 ollienx: Do this: int id = ((SetsFragment)fragment).id Jul 25 20:52:21 it's casted now but it still doesn't work Jul 25 20:52:25 hang on then Jul 25 20:52:29 didn't htink of that Jul 25 20:52:47 still doesn't show up Jul 25 20:52:55 lovethang_, Activities are ephemeral and UI related, a Service tends to have more state across Activities Jul 25 20:52:55 (SetsFragment)frag.arrayAdapter Jul 25 20:53:16 frag=(SetsFragment)new SetsFragment(); Jul 25 20:53:20 ollienx: ((SetsFragment)frag).arrayAdapter Jul 25 20:53:31 I'm trying to Insert using this StatusProvider from an AsyncTask: http://pastebin.com/wzBZ8b6V it crashes on line 76 Jul 25 20:53:40 it can't be resolved Jul 25 20:53:48 ollienx: that's not how to do it Jul 25 20:53:56 I just put in what you said Jul 25 20:54:08 ((SetsFragment)frag).arrayAdapter Jul 25 20:54:09 Hey guys, is it possible to ellipsize individual lines in a TextView (e.g, the first line would be "Test" and it wouldn't be ellipsized, and the second line could be "Testtesttesttesttesttestte..." and be ellipsized)? Jul 25 20:57:01 Am I using the wrong name that i'm passing to the new activity? What else should I use? Jul 25 20:57:58 Ologn: I have an application which contains code to work with a BlueTooth device, this is all in a single activity at the moment. I want to move the code out somewhere and in to some entity of its own, but there are lots of people all suggesting the correct way to do this. Problem is there are lots of ways people consider correct Jul 25 20:58:18 Essentially I want to be able to access my BlueTooth code from multiple activities so need some way to externalise the code from the activity Jul 25 21:00:06 lovethang_: sounds like http://developer.android.com/guide/components/services.html Jul 25 21:01:46 This sounds interesting Jul 25 21:02:03 At the moment I am using 4 threads to do the work (there's quite a bit of stuff my app has to do on startup) Jul 25 21:02:16 I think I should put a couple of these as services Jul 25 21:03:18 could this be because I'm making the call from an AsyncTask? Jul 25 21:03:26 #HOLOYOLO Jul 25 21:04:12 ಠ_ಠ Jul 25 21:04:43 how do I direct-attach a fragment to the content view in ActionBarActivity? Jul 25 21:05:02 I can use android.R.id.content in 3.0+, but in gb and older, android.R.id.content isn't available to attach to Jul 25 21:05:33 cant you use setContent ? Jul 25 21:05:38 *View Jul 25 21:05:52 on top of an existing layout? Otherwise you can add a container to your layout for the frags Jul 25 21:05:58 not really great to do I dont think Jul 25 21:06:35 yeah, I can just set a different contentview Jul 25 21:06:39 but that's so lame Jul 25 21:07:44 14+ that'll solve everything :-) Jul 25 21:07:52 heh Jul 25 21:08:07 basically, need to f = new FrameLayout(); f.setId(R.id.content); setContentView(f); beginTransaction().add/replace(R.id.content, ...).commit(); Jul 25 21:08:09 meh Jul 25 21:08:54 or just create the fragment, not attached, and have a method to return it's view Jul 25 21:09:05 setContentView(f.getView()) Jul 25 21:09:17 you bypass the lifecycle that way Jul 25 21:09:22 no good Jul 25 21:09:25 ya Jul 25 21:09:58 then you need to do what nseidm1 said Jul 25 21:10:00 :) Jul 25 21:10:12 some one here who knows how to solve the problem when push the home button i get a fatal exception for supportmapfragment Jul 25 21:10:35 no, I just do what I said and it works Jul 25 21:10:54 thought you said it wont work < 3.0 ? Jul 25 21:10:55 a container Jul 25 21:11:23 Dominee: Got more details on the exception? Jul 25 21:12:03 ian_ford Jul 25 21:12:04 http://pastebin.com/Fcuyr3nN Jul 25 21:12:14 ABS sets its compat content view id to android.R.id.content, and sets another id on the native android.R.id.content.. I doubt Google would do that.. Probably too fragile for them Jul 25 21:12:19 nseidm1, no, I have to create a container Jul 25 21:12:27 SimonVT, indeed Jul 25 21:12:38 but it's annoying that the behavior differs between sdks Jul 25 21:12:48 so you still have to put in defensive code Jul 25 21:12:52 Definitely Jul 25 21:13:04 i.e. a stub content view like I just created Jul 25 21:13:15 I can only imagine the bugs they'll get on ABC that ABS had dealt with over the years Jul 25 21:13:20 or version-checking to use android.R.id.content or v7.appcompat.R.id.whateverthetoplevel is Jul 25 21:13:24 Haha Jul 25 21:13:36 For sure, JakeWharton Jul 25 21:13:38 they probably just copy-pasted a bunch of abs code so that problem is solved ;-) Jul 25 21:13:51 Been some weird ones as well Jul 25 21:13:51 hopefully Jul 25 21:14:22 you should not be wishing bugs on fellow devs Jul 25 21:14:27 thats not good :) Jul 25 21:14:27 Like theme attribute related issues.. Such a hassle.. Probably why they supple their own for most things Jul 25 21:14:52 StingRay_: You mentioned a service and I have been reading on this. From what I understand, a service runs in the UI thread still so some of my intensive operations would block. Would it not be better to stick with the AsyncTask's that I have for this intensive work? Jul 25 21:14:52 Dominee: Not sure if this is required for MapFragment (vs View) but are you manually calling all the lifecycle methods? Jul 25 21:15:04 maybe they'll just get rid of the actionbar in 5.0 Jul 25 21:15:07 \o/ Jul 25 21:15:13 in favor of? Jul 25 21:15:15 fucking wimp crap Jul 25 21:15:17 ian_ford no Jul 25 21:15:41 just a fragment Jul 25 21:15:53 not using mapfragment Jul 25 21:16:08 adding the google class supportmapfragment in xml Jul 25 21:16:25 working fine.. only when i push the home button i get this error Jul 25 21:16:26 pfn: Halo and Pie! Jul 25 21:17:26 i always thought, if you did your UI right, the AB degenerates into a title bar Jul 25 21:17:32 a big Jul 25 21:17:33 fat Jul 25 21:17:34 titlebar Jul 25 21:17:47 Dominee: Can you paste up the code in your MainActivity method? Jul 25 21:18:25 Sounds like your version of right is wrong Jul 25 21:18:33 wo Jul 25 21:18:34 all the code? takes a while to get it work than Jul 25 21:18:41 word Jul 25 21:18:56 i use FragmentActivity and fragments Jul 25 21:19:04 SimonVT sounds like you haven't read anything about HCI gestural interfaces / post wimp Jul 25 21:19:08 kakazza, ? Jul 25 21:19:10 oh Jul 25 21:19:52 Can't say I have Jul 25 21:20:23 Show me an example Jul 25 21:20:35 Dominee: Maybe just MainActivity.onSaveInstanceState() with line numbers? Jul 25 21:22:53 SimonVT plenty of examples and principles in "brave nui world", and "mobile frontier". in general, menus were a pedagogical support vector appropriate /to that medium/ Jul 25 21:23:06 (desktop, wimp) Jul 25 21:23:38 no idea wtf this wimp thing is Jul 25 21:23:59 now that people are becoming used to gestural interfaces, its time to embrace interacting with content - not menus Jul 25 21:24:19 WIMP http://en.wikipedia.org/wiki/WIMP_(computing) Jul 25 21:24:43 where content just becomes a big maze of menus Jul 25 21:25:58 right now mobile UIs are gestural, but even past that, stuff like kinect, etc Jul 25 21:26:48 Just your favorite post wimp app will do Jul 25 21:27:11 http://www.gizmag.com/dextype-leap-motion/28444/ Jul 25 21:27:22 duuuuh Jul 25 21:27:35 I left the screenname field unique Jul 25 21:28:26 SimonVT: you dont see major flaws with reliance on AB ? Jul 25 21:28:32 .. A keyboard? Jul 25 21:28:50 TIL androids keyboard is post wimp Jul 25 21:29:06 as in major design issues Jul 25 21:29:26 StingRay_ I don't Jul 25 21:29:51 SimonVT: if I give you my app to test, and you rotate it, and it doesnt rotate, why is that bad ? Jul 25 21:29:56 It's a great way to give contextual actions in an obvious way Jul 25 21:30:22 It's bad because I want to use it in the other orientation? Jul 25 21:30:44 so cause I am forcing a use on you that you may not like Jul 25 21:30:46 or Jul 25 21:30:53 by the way I got around that context thing by adding a setContext method to my ContentProvider and passing it a valid context to work with. I still don't understand why getContext() isn't working. Jul 25 21:30:56 I'm restricting you in some way Jul 25 21:31:11 If there's no obvious reason to it, I just assume laziness Jul 25 21:31:21 Or cluelessness.. But I'm a Dev, so.. Jul 25 21:31:34 ok, the point is the same Jul 25 21:31:41 now a use case with AB Jul 25 21:31:53 I do not have 5 inch fingers Jul 25 21:32:10 I hold an icecream in 1 hand Jul 25 21:32:15 (or a dildo) Jul 25 21:32:21 dont care, it's in use Jul 25 21:32:26 lol Jul 25 21:32:44 as a user, my phone is in the other hand, what opions do I have for use in most apps Jul 25 21:32:50 back, home ? Jul 25 21:33:05 so thats forcing a use case on me Jul 25 21:33:19 where the design of the app may require something simple and frequent Jul 25 21:33:41 I now have to do a hand jungle, finger stretch, screen obscure Jul 25 21:33:45 or use 2 hands Jul 25 21:34:00 this was less the case with small screens Jul 25 21:34:04 not so now Jul 25 21:34:14 * hesperaux has a 5.5" screen Jul 25 21:34:27 and 14" fingers :) Jul 25 21:34:31 lol Jul 25 21:35:12 I don't see the point Jul 25 21:35:59 you dont see forcing 2 handed use is the same as , port/land ? Jul 25 21:36:28 or forcing you hand to rape the phone and screen attempting to reach a frequent UI component ? Jul 25 21:36:53 i think the Pie concept would be great to add to apps Jul 25 21:36:59 (to solve that problem) Jul 25 21:37:20 that is good, and USED lots in many apps outside of mobile Jul 25 21:37:20 it makes it easier for blind people to use the phone too (not a joke) Jul 25 21:37:26 for contextual functions Jul 25 21:37:45 Usually you're still able to consume the content without ever using the action bar Jul 25 21:38:15 * hesperaux eats his phone and consumes the content Jul 25 21:38:27 i like the word consume Jul 25 21:38:38 SimonVT: in all but the simplest apps, thats not the case Jul 25 21:38:46 on not what I have and use Jul 25 21:38:53 even stock apps Jul 25 21:39:07 It is in pretty much all of googles apps Jul 25 21:39:23 big phone is bad UI anyway :p Jul 25 21:39:26 for single handed use Jul 25 21:39:28 especially for touch Jul 25 21:39:32 just like a tablet Jul 25 21:39:36 friggin' poor ergonomicxs Jul 25 21:39:44 pfn, depends on how you implement the interface Jul 25 21:39:50 if the interface is as big as the screen, then yes Jul 25 21:39:56 pfn: disagree, but oh well Jul 25 21:40:01 but if only the content is as big, and the interface is small and easily reached, then no problem Jul 25 21:40:36 hesperaux, then you have a handed-ness problem Jul 25 21:40:38 imho a platform, shouldn't dictate design patterns so much Jul 25 21:40:52 pfn, a sensor on the device or a preference at worst case can solve that problem Jul 25 21:40:58 as a primary, use/function should Jul 25 21:41:19 Android tried not dictating design patterns, look how that worked out Jul 25 21:41:29 heh Jul 25 21:41:30 SimonVT: agree Jul 25 21:41:37 but… not if you have a designer Jul 25 21:41:51 the problem was, evey dev thought he was one Jul 25 21:41:53 If people would just learn to base their designs on Google's lead and not follow the lead of 3rd party applications, the ecosystem would be better off >.> Jul 25 21:42:20 Brian|CB: thats soo wrong lol Jul 25 21:42:25 i personally think google's design techniques are very intuitive, but i've seen lots of regular people struggle with them Jul 25 21:42:45 StingRay_: No u Jul 25 21:42:48 lol Jul 25 21:43:02 If you don't think the design patterns fit your app, come up with your own.. I just don't see an issue with them Jul 25 21:43:28 SimonVT: open stock message app Jul 25 21:43:49 can you use all feq functions with one hand Jul 25 21:43:56 if not, thats bad design Jul 25 21:44:04 open map app? Jul 25 21:44:11 open 90% of apps Jul 25 21:44:12 Well yeah, the action items are at the bottom Jul 25 21:44:26 Yep, you're right, let's all base our designs off Zynga guysz Jul 25 21:45:02 based your designs of what you want, influenced by what you want Jul 25 21:45:14 I'm just saying that google is not the only influence you should look at Jul 25 21:45:16 :) Jul 25 21:45:58 and matter of fact, look outside mobile to more mature market sectors Jul 25 21:46:33 I can pretty much use Maps with one hand. Jul 25 21:46:50 Ever since they introduced one-finger zoom a couple months ago. Jul 25 21:46:59 one-finger zoom is the best Jul 25 21:47:05 o/ Jul 25 21:47:17 one finger zoom? Jul 25 21:47:21 wat Jul 25 21:47:28 kakazza: how do u search?? Jul 25 21:47:37 tap, touch-down, drag upward/downward Jul 25 21:47:37 you have expanding fingers ? Jul 25 21:47:49 Tap twice, but don't lift your finger after the second tap. Then drag up/down. Jul 25 21:47:51 the second step isn't a tap, it's a tap-and-drag Jul 25 21:48:25 StingRay_: I use my thumb to use the search field. N4 Jul 25 21:48:42 nifty Jul 25 21:49:04 kakazza: see I can reach that without a hand shuffle Jul 25 21:49:08 you freak Jul 25 21:49:14 or I've got girly hands Jul 25 21:49:15 all I wanna do is a zoom zoom zoom and a boom boom ! Jul 25 21:49:18 :D Jul 25 21:49:28 lol Jul 25 21:50:18 StingRay_: I wouldn't be able to do it on a Galaxy Note. But on the N4 it works quite well. But I see your point. But really, ever since they introduced the one-finger zoom, I'm happy. Jul 25 21:50:29 i've got a note 2 Jul 25 21:50:37 Just no one uses it because no one reads the changelogs ;_; Jul 25 21:50:42 the damned bezels are too small Jul 25 21:51:26 kakazza: my point was simply people should not just scream, google is king, do it google way, there are many design elements and choices that make life harder or change the way I would want to use my phone, and I personally dont like that Jul 25 21:51:27 I find on the nexus 7 the bezels are too thick Jul 25 21:51:36 adding a smiley to a sms Jul 25 21:51:40 Yeah, small bezels suck. Keep using my palms :\ Jul 25 21:51:51 i used to have a smile button. NO MORE. :( Jul 25 21:51:56 should not be an exercise in finger stretching on an common screen size phone Jul 25 21:52:13 Doesn't the Keyboard have a smiley button? Jul 25 21:52:13 Any help would be greatly appreciated -- How are my promo & feature graphics (not screenshots) being used by the Google play store? Jul 25 21:52:22 * hesperaux punches swype beta for removing the smile button Jul 25 21:52:28 Does on AOSP, and I don't want it there. Jul 25 21:52:38 All I'm asking for is bilingual swipe prediction! Jul 25 21:52:44 it used to be that you could change that in prefs somewhere Jul 25 21:55:21 StingRay_: I agree. I do like the Bottombar for that. Jul 25 21:55:43 hello Jul 25 21:57:03 Stellenbosch, what's up? Jul 25 21:58:38 by the way, this whole actionbar discussion - i was hoping that apple would have innovated more on their ios7 UI because, for the same reason, people are becoming acquanted with gestural / touch UIs; its time to take the next step. they seemed to have gotten mired into flatness (which i like) but missed the point Jul 25 21:59:51 Well, another 5 years and they'll re-design again ;) Jul 25 22:00:02 the only answer i would be happy with, from google on "why did you guys take so long to give us appcompat" is that "we're getting rid of the damn (actionbar), we're doing something much better in android 5" Jul 25 22:00:14 kakazza :) Jul 25 22:00:48 It took people so long to adopt the Actionbar, it's hard to kick them in the face. Jul 25 22:01:07 Maybe Google is waiting for JakeWharton to have more time, so he can backport whatever is coming in Android 5. ;) Jul 25 22:01:31 i hope we don't need any heros to backport android 5 Jul 25 22:01:54 thats google's responsability to be a steward of their platform and ease migration path Jul 25 22:02:01 * hesperaux doesn't have any interest in using the actionbar Jul 25 22:03:53 Google already began making fragmentation a bit less of a problem by offering their own products as normal Apps instead of only shipping them with the new OS versions. Jul 25 22:04:30 But we'll be stuck with different Android versions for some time. Even GB isn't becoming significantly less. Jul 25 22:04:42 meanwhile … why doesn't the sdk manager just download extras / libraries into a maven compatible structure (i understand, having to click through a license) … then people could (1) copy the .jar into their libs/ (2) use ivy and point to extras/ (3) use maven (4)use gradle Jul 25 22:04:50 ? Jul 25 22:04:59 extras/support and gms both go into m2 structures Jul 25 22:05:00 How can I create a class that I can include in multiple activities? So it's separate source from the activities and how would I then include that in the activities please? Jul 25 22:05:06 what are you talking about? Jul 25 22:05:23 i'm talking about the "android support repository" Jul 25 22:05:27 yes, I know Jul 25 22:05:28 and the other repository Jul 25 22:05:30 they go into m2repository Jul 25 22:05:38 each, it'd be nice if it were a single combined location, sure Jul 25 22:05:40 g00s: I started getting Java exceptions/fc of late, no Java update but updated sdk, you had any probs ? Jul 25 22:06:23 pfn what i'm saying is, the sdk manager should just allow you to click on individual packages, and then download them into a default m2 structured repo Jul 25 22:06:54 StingRay_ not … yet Jul 25 22:07:50 * pfn shrugs Jul 25 22:07:56 just point your resolvers to each one individually Jul 25 22:08:14 or better yet, submit a patch to the gradle plugin to look in those locations automatically Jul 25 22:08:55 some one worked with supportmapfragment before? Jul 25 22:08:58 https://github.com/pfn/android-sdk-plugin/blob/master/src/rules.scala#L329 Jul 25 22:10:20 pfn but still, if you get the analytics lib for example, it just gets tossed into extras Jul 25 22:10:34 not as an m2 repo, indeed Jul 25 22:10:42 google should change everything to have repos Jul 25 22:10:44 what i'm saying, is that each thing should be downloaded into ONE fucking m2 local repo sdk manager owns Jul 25 22:10:51 only the support and gms are m2 repos Jul 25 22:10:58 whether it's one or not is irrelevant Jul 25 22:11:03 although, more convenient for me if it were one Jul 25 22:13:47 so I don't have to add every friggin' one Jul 25 22:15:15 indeed Jul 25 22:19:25 is the dongle and new n7 available in US play store ? Jul 25 22:19:36 or is it not out anytime soon yet ? Jul 25 22:20:56 oh sept 13, thats not good Jul 25 22:23:39 StingRay_ i think even Jacob Nielsen poked at the actionbar in "Mobile Usability" Jul 25 22:24:07 g00s: dont get me wrong, the idea of it is ok Jul 25 22:24:20 the limitations that are imposed are not Jul 25 22:24:39 the point i'm making, is no, the idea of it is not OK. but gotta run :) Jul 25 22:25:37 :) Jul 25 22:28:15 who is jacob nielsen and why should we care? Jul 25 22:28:48 his name was robert paulson Jul 25 22:29:00 his name... was robert paulson Jul 25 22:29:01 pfn: I didnt want to ask that, cause there are soo many names mentioned where I think, wtf :) Jul 25 22:29:17 silly quote Jul 25 22:29:44 I just assumed one of these tech bloggers Jul 25 22:29:51 or an experienced dev Jul 25 22:32:17 I've got a stupid question.. Using the Sun/Oracle JDK, SDK 4.2 and Android Studio... Things that are supposed to play nicely together... I launch the emulator and get all kinds of ' android.app.ServiceConnectionLeaked: Service com.android.exchange.ExchangeService has leaked ServiceConnection com.android.emailcommon.service.ServiceProxy$ProxyConnection@40cdceb0 that was originally bound here Jul 25 22:37:22 Bleeptech, unless it's in your app package, ignore them Jul 25 22:51:11 http://pastebin.com/NBQbCJdz << I keep getting Null Pointers on my Bitmap Array. Not quite sure what's going wrong. Jul 25 22:51:31 but only when I'm trying to paint to the screen Jul 25 22:53:17 resourcedImages.length == 0 ? Jul 25 22:54:00 StingRay_: that'd be indexoutofbounds Jul 25 22:54:05 nope resourcedImages.lenght == 2 Jul 25 22:54:20 AND....I can print the filenames programatically Jul 25 22:54:25 RyanM: good pointer :) Jul 25 22:54:45 but the minute I try to pull the bitmap through the array, she goes null Jul 25 22:54:50 irinix: have you tried setting an exception breakpoint on NullPointerException Jul 25 22:54:53 ? Jul 25 22:54:59 ryan: no? Jul 25 22:55:17 try doing that and seeing if it's not initialized at the time Jul 25 22:58:24 it is initialized Jul 25 22:59:11 and it is storing the filenames at the very least Jul 25 22:59:21 the reference to resourcedImages is the only thing that could cause a null pointer exception on that line Jul 25 22:59:33 it can't be the reference to canvas, because it would have caused an error on the previous line Jul 25 22:59:40 resourcedImages has to be null Jul 25 23:00:27 I would suggest you do a Log.e("blah", "oops", ex), instead of e.printStackTrace() Jul 25 23:00:39 I don't remember if System.out.println goes to logcat or not Jul 25 23:00:49 i believe it does Jul 25 23:00:53 err, stdout (what e.printStackTrace() goes to) Jul 25 23:01:02 it does Jul 25 23:01:29 also, I don't see anywhere where you actually set resourcedImages, at least in the code you provided Jul 25 23:01:35 IIRC it logs with a tag of System.out Jul 25 23:01:48 you assign a value to the array, but you never actually create an array Jul 25 23:02:36 but if that were the case, I would expect an NPE when you try to assign the value in createBitMapArray Jul 25 23:02:45 so either you never get there, or you're creating the array somewhere else Jul 25 23:03:06 wait, which line _exactly_ is crashing? Jul 25 23:03:21 right now it's on line 32. Jul 25 23:03:35 line 32 in your paste is a closing brace Jul 25 23:03:47 sorry Let me look real quick Jul 25 23:03:53 it changed from the ide to paste Jul 25 23:04:14 line 10 in the paste Jul 25 23:04:29 well, what JF said then Jul 25 23:04:55 yeah, you're not initializing the array Jul 25 23:05:05 aka what JF said Jul 25 23:05:33 resourcedImages = new Bitmap[list.length]; Jul 25 23:05:34 :) Jul 25 23:05:41 you need a resourcedImages = new Bitmap[list....damn, too fast :-) Jul 25 23:05:42 before you iterate over list Jul 25 23:06:07 Jesus, thanks. Jul 25 23:08:22 yep, I feel stupid now. =P Thanks again jesus Jul 25 23:25:03 I'm trying to emulate a wi-fi connection on a virtual device in Eclipse but can't get it to work, I can enable wi-fi under dev tools but on Android 2.3 it just says "Error" under wi-fi settings and on Android 4.2 I don't even have any wi-fi options under settings Jul 25 23:28:53 how do you enable wifi.... Jul 25 23:28:56 * pfn nver sees that option Jul 25 23:29:06 under dev tools Jul 25 23:30:17 don't have dv tools, but ok Jul 25 23:34:09 pfn: IIRC on >4.2 you have to sneak up on them.. It's hidden in the 'About' and you have to tap the 'about' 7 or 10 times.. Jul 25 23:34:50 on an emulator? Jul 25 23:35:00 Do I need to do anything special for a web app that allows users to upload photos from their PC so that it will work on a phone? Jul 25 23:35:27 I would like the user to be able to click browser and the gallery pops up Jul 25 23:36:56 picoguy2: not sure this is the correct channel for web stuff Jul 25 23:37:13 there is #phonegap, they may have an idea Jul 25 23:37:17 I figured it was Android-dev so id try Jul 25 23:37:19 ok thanks Jul 25 23:37:40 android app dev is correct Jul 25 23:37:45 web apps, not really Jul 25 23:40:06 FYI, if anyone cares, postimage.org has an image uploader, when I visited it with my phone, it did ask me if i wanted to go to the gallery, drive, camera, to find an image Jul 25 23:57:47 hey guys -- I've used LoaderCallbacks for CursorAdapter, I can't recall if I have to do any ContentObserving on top of that Jul 26 00:06:17 <[Gordio]> Hi. Why? adb devices empty? (Gentoo Linux, Custom kernel, lsusb show Device, ls /dev/android_adb exist) Jul 26 00:07:35 <[Gordio]> Debuging on phone - ON. Jul 26 00:09:44 start/restart adb? Jul 26 00:11:45 shipit not normally Jul 26 00:12:15 g00s: I built a custom adapter for ViewPager Jul 26 00:12:30 but now I want to feed it data from my ContentProvider ie Cursor Jul 26 00:13:02 nom Jul 26 00:14:48 I've been given a crash log that shows a npe on ConnectivityManager cm = (ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE); Jul 26 00:15:05 assuming context isn't null, can anyone think why this might happen? Jul 26 00:20:28 <[Gordio]> shipit, yes Jul 26 00:21:30 <[Gordio]> `adb kill-server; adb start-server;adb devices` - empty :( Jul 26 00:22:04 quick poll, how many of you guys use AsyncTask for basic background stuff? Jul 26 00:22:12 or do you use something else Jul 26 00:24:32 asm: for quick things AsyncTask, for consistent background work Service or IntentService Jul 26 00:29:11 yeah Jul 26 00:29:19 that's my thinking as well Jul 26 00:29:30 just checking if that's the standard pattern Jul 26 00:33:20 StingRay_ this is great ! http://blog.udacity.com/2013/07/new-course-design-of-everyday-things.html Jul 26 00:33:32 i read that book like 10 years ago :| Jul 26 00:33:37 new edition coming out is good news too Jul 26 00:43:26 I'm integrating with Google Play Services (using a Unity plugin). Any clue why, when I log in with an approved test account, it takes me to a "Create a Google+ Account" page, then back to the account selection page less than a second later? Jul 26 00:44:05 from a broadcastreceiver or service or whatever, how do I detect if a user is present? Jul 26 00:44:10 i.e. the screen is on and unlocked Jul 26 00:44:30 I know there's action_user_present, but I want to detect this after the fact Jul 26 00:44:52 store a flag :D Jul 26 00:44:54 heh Jul 26 00:46:22 I guess there's KeyguardManager.inKeyguardRestrictedInputMode() Jul 26 00:46:27 pfn maybe see if inertia is present Jul 26 00:46:32 i mean, movement Jul 26 00:46:42 uh, maybe not Jul 26 00:46:44 Is "HTTP_REFERER " available in a WebView? Do I need to enable somethign? Jul 26 00:46:47 pfn: one sec Jul 26 00:48:15 uh oh http://stackoverflow.com/questions/3924665/how-to-get-an-event-in-a-service-when-the-screen-is-touched Jul 26 00:50:25 pfn: looks like KeyguardViewMediator sends the broadcast but does not provide a way to retrieve said state Jul 26 00:50:44 pfn: why not register a broadcast receiver? Jul 26 00:51:02 pfn: dont you want to also account for ACTION_USER_SWITCHED and ACTION_USER_REMOVED Jul 26 00:51:23 no Jul 26 00:51:36 take a picture with the front camera and do CV ! Jul 26 00:51:41 * g00s runs Jul 26 00:52:00 but inKeyguardRestrictedInputMode() is what I need, I think Jul 26 00:52:23 has anyone noticed that on 4.3 the time in the status-bar disappears when you are on the lockscreen with the clock widget Jul 26 00:53:36 OTA not rolled to my devices yet Jul 26 00:53:48 what devices? Jul 26 00:54:10 any of them Jul 26 00:54:11 n7 Jul 26 00:54:14 got a Nexus 4? Jul 26 00:54:14 gn Jul 26 00:54:18 no Jul 26 00:54:27 i have the OTA url for Nexus 4 Jul 26 00:54:32 which means you can sideload it Jul 26 00:54:34 pfn, how about using the NSA.getAllInfo() ? Jul 26 00:54:39 UK here Jul 26 00:54:47 so maybe we get it next year Jul 26 00:54:49 same Jul 26 00:54:58 ok Jul 26 00:55:01 i have also put 4.3 on my GN Jul 26 00:55:18 used the nexus images site to get the things to flash Jul 26 00:55:25 images Jul 26 00:55:28 thats the word Jul 26 00:55:29 :| Jul 26 00:56:09 pfn, you'd have to first run if(NSA.isAmericanCitizen()) { NSA.denyRights(); } to set that up Jul 26 00:59:58 the latest build tools still comes with proguard 4.7 :| Jul 26 01:00:35 i think they should just leave it out and let us point to our own Jul 26 01:00:50 * g00s realized when dx blew up Jul 26 01:01:06 "i thought i fixed this bug" Jul 26 01:19:29 g00s, whats latest now... 4.9? Jul 26 01:19:39 4.9, almost 4.10 Jul 26 01:20:49 4.9 has better gradle support it seems Jul 26 01:20:52 so im actually surprised Jul 26 01:21:08 also Fixed shrinking of access widening abstract methods, for the Dalvik VM. Jul 26 01:22:02 4.10 looks like it's JUST gradle Jul 26 01:22:15 when i use gradle, is it grabbing 4.9 somehow ? Jul 26 01:22:25 i can see it grabbing the gradle plugin Jul 26 01:22:36 maybe the proguard gradle plugin works with 4.7 ? Jul 26 01:22:57 or maybe android made something custom Jul 26 01:23:15 or maybe the plugin actually depends on a separate proguard jar ? Jul 26 01:23:16 yeah Jul 26 01:23:19 * g00s confused Jul 26 01:26:23 For some reason my optionsmenu isn't appearing. is there somethign I can check to fix it? Jul 26 01:31:18 picoguy2: is this an optionsmenu from a fragment? Jul 26 01:31:33 Napalm: form an activity Jul 26 01:31:38 from* Jul 26 01:32:30 are you returning true from your onCreateOptionsMenu? Jul 26 01:32:35 picoguy2: ^ Jul 26 01:32:36 canadiancow seems so; .gradle/caches has net.sf.proguard.(proguard-base, proguard-gradle, proguard-parent) 4.9 Jul 26 01:34:48 Napalm: oops, fixed it thanks Jul 26 01:38:44 Hey guys, this line throws a NullPointerException and I don't know why. Anyone mind helping? Jul 26 01:38:45 ileInputStream ifs=openFileInput(fileName); Jul 26 01:38:57 *FileInputStream Jul 26 01:39:02 and this also throws one Jul 26 01:39:08 ileInputStream ifs=getApplicationContext.openFileInput(fileName); Jul 26 01:39:14 ileInputStream ifs=getApplicationContext().openFileInput(fileName); rather Jul 26 01:39:45 maybe fileName is null ? Jul 26 01:40:40 I believe it is not, but I can double check Jul 26 01:40:41 moment Jul 26 01:40:59 Nope, it's set as "hi there.txt" Jul 26 01:43:02 Is there a way to make any button a "share" button? Jul 26 01:43:29 picoguy2: I haven't tried this, but this may help Jul 26 01:43:29 http://mobile.tutsplus.com/tutorials/android/android-sdk-implement-a-share-intent/ Jul 26 01:45:54 StingRay_: any other ideas? Jul 26 01:57:10 hi, I have a bit of a vague question but I was hoping someone might have some advice for me. so I'm looking to get into android game development and I'd like to eventually make good quality games. should I go the java route or has html5/js reached a point where it's possible to make high quality games in it? Jul 26 01:58:43 If you're making a game for andorid eindoofus, do java Jul 26 01:59:41 Also, would anyone mind answering my question about the NPE and FileInputStream ifs=openFileInput(fileName); or FileInputStream ifs=getApplicationContext().openFileInput(fileName); Jul 26 02:00:35 has android reached a point where game development is on par with iOS? or is it still lagging a little? Jul 26 02:00:57 Stack trace:http://pastebin.com/fBFs7Ku9 Jul 26 02:01:18 eindoofus: Use Unity! Jul 26 02:01:32 It's possible to create high quality games for either platform. Jul 26 02:01:42 IMO it's a bad idea to restrict yourself to one platform, though. Jul 26 02:02:02 can I use unity with java and android? Jul 26 02:02:20 Not with Java, no. You can use C# and export to Android/iOS more-or-less at the click of a button Jul 26 02:02:41 using unity? Jul 26 02:02:43 Yes. Jul 26 02:02:46 wow Jul 26 02:03:04 Best of all: Unity is free, unless you want to use some really fancy features (which you almost certainly do not need) Jul 26 02:03:23 www.unity3d.com and join us in #unity3d and #unity3d-chat :D Jul 26 02:03:34 are there any high quality games out there on mobile using it? Jul 26 02:04:00 Yes, many — it's a very popular engine and is getting more attention as time goes by Jul 26 02:04:10 Obsidian's Project Eternity is using it, so is Wasteland 2 Jul 26 02:04:18 I thought unity was used with c++ Jul 26 02:04:20 It's immensely popular among indie developers thogh Jul 26 02:04:32 No, with Unity you have your choice of: C#, JavaScript, or Boo (a dialect of Python) Jul 26 02:04:36 erm wtf Jul 26 02:04:46 reading the list of pro vs free Jul 26 02:04:50 that's awesome! Jul 26 02:04:56 there are some essentials you really want Jul 26 02:05:00 Like? Jul 26 02:05:06 unless your making the minimum of game Jul 26 02:05:11 Really not true Jul 26 02:05:17 LOD Jul 26 02:05:18 Some very successful mobile games use Unity free Jul 26 02:05:37 segment streaming Jul 26 02:05:48 asset streaming Jul 26 02:06:04 I don't see how those are eseential Jul 26 02:06:07 essential* Jul 26 02:06:07 proper curve interpolators Jul 26 02:06:17 'curve interpolators'? Jul 26 02:06:43 lightMaps Jul 26 02:06:50 can I create a game for desktop using unity/C# and then port it to android and iOS? Jul 26 02:06:56 omg, culling Jul 26 02:06:57 Yes, eindoofus Jul 26 02:07:01 StingRay_: Calm your shit Jul 26 02:07:08 Those aren't 100% necessary to make a good game Jul 26 02:07:25 If you think they are, then you probably haven't made any games ;) Jul 26 02:07:54 They're helpful for certain types of games for high performance. Jul 26 02:08:05 40+ games thanks Jul 26 02:08:08 or there abouts Jul 26 02:08:22 I haven't but that's probably because I keep switching tools since I haven't found one that satisfies my cross platform desire Jul 26 02:08:23 but you have me on the mobile side, not worked on ANY mobile games Jul 26 02:09:10 eindoofus: I very highly recommend that you use Unity. It's (fairly) easy to learn, and provides a lot of boilerplate code Jul 26 02:09:18 It's a great way to get a game prototype up and running, and on a device Jul 26 02:09:30 Easy to learn but also immensely powerful as you grow into it Jul 26 02:10:07 Also fantastic because of the amazing community surrounding it (great wiki, forum, and active/helpful IRC channels) Jul 26 02:11:09 StingRay_: How is it possible that you've worked on 40+ non-mobile games? Are you like 200 years old or did you just not finish any of them? o_O Jul 26 02:11:11 are more people using c# or JavaScript in that community? Jul 26 02:11:21 C# — and most Unity vets will recommend that you use C# Jul 26 02:11:38 doppio|work: worked ok many games I guess Jul 26 02:11:44 and no, not 200 years old Jul 26 02:11:52 but, not young either Jul 26 02:11:53 can't say i'm a fan of C# Jul 26 02:12:04 and you don't want to go C# for Android/iOS anyway. Jul 26 02:12:18 how come? Jul 26 02:12:18 Why's that? Jul 26 02:12:42 .. because it's from MS, and the only ARM support you'll get is in the form of mono Jul 26 02:12:42 doppio|work: not done mobile games, just console games Jul 26 02:12:50 Been working in Unity with C# professionally at a mobile game studio for over a year and my experiences have been a billion times better than writing native Java and Obj-C Jul 26 02:13:00 it's a really bad idea for Android devices, it's going to be incredibly bloated and inefficient Jul 26 02:13:11 (as far as the C# portion is concerned) Jul 26 02:13:38 doppio|work: what are you using to compile/interpret the C# portion? Jul 26 02:13:53 zinx: We use Unity (www.unity3d.com) — deals with it for us Jul 26 02:14:11 unless they made their own C# compiler, that doesn't help me much :X Jul 26 02:14:22 I don't know what compiler they use Jul 26 02:14:57 is it possible to create 2d games in unity3d ? Jul 26 02:15:23 Yes. It's a little trickier but it's possible… Unity's strong suit is 3D Jul 26 02:15:37 It's pretty easy with a plugin someone made called 2D Toolkit, but that costs like $65 Jul 26 02:16:13 Unity Android supports two .NET API compatibility levels: .NET 2.0 and a subset of .NET 2.0 You can select the appropriate level in the Player Settings. Jul 26 02:16:19 sounds like it's using mono, then. Jul 26 02:16:26 Yep Jul 26 02:16:47 which again, is highly inefficient in terms of bloat, and in any code you write in C# Jul 26 02:17:02 (obviously, the performance intensive code is USUALLY going to not be in C#, though) Jul 26 02:17:05 Hey, I want to view my sqlite database schema, is there a gui to do this or should I just continue to do it through the adb shell sqlite3 commands? Jul 26 02:17:08 Maybe. But if it's bloated, it's enormously worth the time that Unity will save you. Jul 26 02:17:10 but, with mobile devices, that stuff matters. Jul 26 02:17:21 doppio|work: not worth it to the users, though ;P Jul 26 02:17:33 I really don't think people care as long as it's under 50 MB. Jul 26 02:17:41 *shrug* Jul 26 02:18:07 Like, ask your average family member or friend if they look at the app size before downloading :P Jul 26 02:18:23 The only time they'll ever notice is if it pops up and says, "You need to connect to wifi to download that!" Jul 26 02:18:27 you don't want me to ask my average family member Jul 26 02:18:34 haha Jul 26 02:18:36 they're not average people Jul 26 02:18:39 :) Jul 26 02:18:40 That's what I was just thinking. Jul 26 02:18:50 Fine :P Ask someone on the street with a smartphone hah Jul 26 02:20:10 Anyway I've never experienced any sort of tremendous bloat with Unity. I'm sure there's some, but not enough to care. Jul 26 02:20:11 so anyway, does anyone know if there is a GUI for viewing Android sqlite databases or should I just use the adb shell? Jul 26 02:20:23 from my experience you either have a decent connection or you don't. if you going to download a large game, well... you figure out when you'll have a good connection and download it then. the in between doesn't matter much Jul 26 02:20:34 doppio|work: including mono is pretty tremendous to me :/ Jul 26 02:20:55 eindoofus: it's not even about the download times Jul 26 02:21:09 eindoofus: it's about memory usage and battery life, which is pretty important to mobile devices :/ Jul 26 02:21:36 are you arguing against c# and unity or just c#? Jul 26 02:21:39 zinx: Quite a few of the top trending/grossing iOS/Android games are written in Unity Jul 26 02:21:41 just C# Jul 26 02:21:43 on Android Jul 26 02:22:00 I agree that bloat isn't pleasant, but if it helps you create a better product in less time, I don't really care Jul 26 02:22:04 (i'm sure Windows Phone already includes a C# compiler/interpreter/whatever) Jul 26 02:22:06 what do you think about JavaScript and unity on android? Jul 26 02:22:24 javascript isn't as bloated a language, if it's precompiled it COULD be ok for non-performance intensive code Jul 26 02:22:26 how big is the mono portion? Jul 26 02:22:40 C# is on the order of Java in terms of bloatedness Jul 26 02:22:45 eindoofus: IIRC Unity actually compiles JavaScript (technically "UnityScript".. not true JS) into C# Jul 26 02:23:03 Unity does provide a cut down version of C#, i have no idea if people like doppio|work use that though. Jul 26 02:23:04 Or rather, it somehow piggybacks off of C# Jul 26 02:23:19 interesting Jul 26 02:23:37 doppio|work: if it does that for real, i can't recommend using its javascript functionality either Jul 26 02:23:55 seems pretty roundabout, there are much more direct javascript compilers available Jul 26 02:24:03 (and likely much more efficient) Jul 26 02:24:14 All I'm saying is that it's an enormously popular engine, which has produced enormously popular games on Android/iOS. :P Jul 26 02:24:33 is the much 2d for unity3d resources? or is the community almost all about 3d? Jul 26 02:24:40 doppio|work: i'm not saying it isn't o_O Jul 26 02:25:08 Also I am using Android Studio, not Eclipse. Jul 26 02:25:09 doppio|work: i'm saying using C# on Android is a great way to make your app take 10+MB more disk space, probably on the order of 100MB or more memory, and run slower Jul 26 02:25:14 there* Jul 26 02:25:27 eindoofus: Not really a whole lot of resources on 2D compared to 3D. But 2D games in Unity are kind of "faking it". They're just planes, in 3D space, with a side-view camera. Jul 26 02:25:51 zinx: It's true Jul 26 02:26:12 https://github.com/pfn/advanced-keyguard-manager Jul 26 02:26:13 weeee Jul 26 02:26:25 But if it saves me hundreds of hours on a project, and helps me make a better game… I'll take that extra memory usage Jul 26 02:26:39 Especially since the end user probably will not notice at all. Jul 26 02:26:49 * pfn waits for google play to update his page as well Jul 26 02:26:54 As a developer, it irks me a bit, but at the end of the day, I just want to make good games. :) Jul 26 02:26:55 is there anything that is better suited for 2d that is cross platform? Jul 26 02:26:55 doppio|work: *shrug*, i can't see how it would ever save me even a few hours, but i'm fairly experienced with a large number of programming/scripting languages and techniques for saving time :/ Jul 26 02:27:10 actually if it is to be believed; dvm is not as performant as mono Jul 26 02:27:36 xamarin translated android from java to c# and said it actually ran faster Jul 26 02:27:38 zinx: I suggest you give it a shot some time. I can guarantee it will save you time, no matter how great your coding abilities are. Jul 26 02:28:06 That is, if you're doing game dev. Jul 26 02:28:11 doppio|work: i don't have or plan to have unity, i've heard of it and considered it in the past, but it's not a project i'll be making use of (not because it isn't good) Jul 26 02:28:41 pfn: you mean your icon ? Jul 26 02:28:41 g00s: some of that can be measuring methodology Jul 26 02:28:51 StingRay_, no, the whole app Jul 26 02:28:57 StingRay_, apk hasn't updated yet Jul 26 02:29:05 is there a chill list/url of android devices and the width/height in pixels of the space an app can generally take up Jul 26 02:29:08 pfn: that icon is a bit special Jul 26 02:29:10 g00s: e.g., a lot of people seem to think running System.out.println() in a loop is a good test of speed, or running functions that get tail-call optimized in one compiler but not the other Jul 26 02:29:28 well, i was reading http://blog.xamarin.com/android-in-c-sharp/ Jul 26 02:29:29 g00s: both are abysmal tests for relative speed of the interpreter Jul 26 02:29:55 they translated the java framework to c# via sharpen Jul 26 02:30:02 seems like an interesting experiment to me Jul 26 02:30:08 wtf is this shite g00s Jul 26 02:30:12 C SHARP Jul 26 02:30:42 lol ios Jul 26 02:30:43 acidjazz i'm not a c# dev, but it looks like a nice language. thats all i'll say Jul 26 02:30:45 anotehr phoengap Jul 26 02:31:36 is there any good 2d cross platform libraries? I don't believe I need the 3d aspect of unity3d Jul 26 02:31:59 * pfn has a small personal project with 50k users in c# Jul 26 02:32:06 ok, so lets assume there is no GUI for sqlite3 on Android. What is the best method for building the schema? Currnetly I am doing "sql = String.format()" and "runSQL(db, sql);" for each table. Jul 26 02:33:00 g00s: those benchmark programs have massively different java/C# code, functionally Jul 26 02:33:54 oh wait nevermind Jul 26 02:34:03 Snicers-Home yeah, basically Jul 26 02:34:09 just some dumbshit :/ Jul 26 02:34:17 gotta love embedding another language in java strings :D Jul 26 02:34:31 g00s, so I am following best practices? Jul 26 02:34:42 Snicers-Home: isn't there a db helper class for that? Jul 26 02:34:43 Snicers-Home take a look at the source code for iosched Jul 26 02:34:56 look at the database stuff there, its bretty well done Jul 26 02:35:00 g00s will do, I will look up the db helper Jul 26 02:35:59 so I take it that if your not doing 3d you are shit out of luck? Jul 26 02:36:08 so now that appcpompat is out, iosched 2013 sources should be out too Jul 26 02:36:15 or soon Jul 26 02:36:34 eindoofus dunno Jul 26 02:36:40 Snicers-Home: look at http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html (the stuff for interacting with the sqlite db), and at http://developer.android.com/reference/android/database/sqlite/SQLiteOpenHelper.html (the stuff for helping with creation/versioning) Jul 26 02:37:13 eindoofus: there's probably 2d stuff, it's probably most efficient to use OpenGL for 2d though, so it probably doesn't matter a whole lot what engine you use, as long as it has somewhat easy tools to do what you want Jul 26 02:37:21 erh, EGL i should say Jul 26 02:37:23 thanks zinx Jul 26 02:38:23 I thought the unity engine is what allows games to be compiled on different platforms Jul 26 02:39:02 no, the unity engine is a cross-platform game engine Jul 26 02:39:17 the fact that it's cross-platform is what lets it run on different platforms Jul 26 02:39:42 didn't they demo unity and gl es 3 at this week's google event ? Jul 26 02:39:56 i thought that motorcycle thing was unity Jul 26 02:40:07 so I would use something like c#/mono/OpenGL instead? Jul 26 02:40:07 ??? i don't know, what does that have to do with anything? >_< Jul 26 02:40:10 is there a chill list/url of android devices and the width/height in pixels of the space an app can generally take up Jul 26 02:40:43 eindoofus: uhm, you can use anything you like, Java/C++/EGL are Android's native things, anything you use is going to use those Jul 26 02:40:45 zinx what is has to do with things is, maybe its pretty good if they used it to demo android 4.3 features Jul 26 02:40:54 christ Jul 26 02:41:07 g00s: ? Jul 26 02:41:24 I'm looking for something that can easily be ported to iOS as well Jul 26 02:41:40 g00s: unity is pretty good, i don't think anyone's said anything contrary :/ Jul 26 02:42:25 eindoofus: then you definitely want a cross-platform library/engine Jul 26 02:42:50 sounds like all that exist are made for 3d Jul 26 02:43:03 eindoofus: 2d is a special case of 3d these days Jul 26 02:43:37 zinx: but unreal is the man.... Jul 26 02:43:38 eindoofus: EGL is "3d", but it's also the most efficient way to do most 2d drawing/transforms on modern embedded platforms Jul 26 02:44:04 gavilan2: sure, unreal is good too Jul 26 02:44:32 i think unreal may be significantly more expensive though, not really sure Jul 26 02:45:45 are egl and unreal cross platform? Jul 26 02:46:26 EGL is a low level thing Jul 26 02:46:40 unreal's cross platform, but i don't know how well it performs on mobile devices Jul 26 02:46:55 it's no less 3d than unity Jul 26 02:47:08 zinx: Have you seen infinity blade 2? Jul 26 02:47:21 sounds like unity3d being used for 2d is my best bet? Jul 26 02:47:48 eindoofus: i don't know what libraries/engines are out there for you, so i can't really answer :/ Jul 26 02:48:33 thanks for the help guys. gotta take off. Jul 26 02:48:45 bye Jul 26 02:51:28 damn! LoaderManager does no refresh CursorLoader when the uri is changed -- Jul 26 02:51:32 how to solve this? Jul 26 02:52:26 hmm, I must not be notifying the uri on insert() Jul 26 02:53:31 I have a fragment question - why isn't my TextView text retained on orientation change? The TextView is inside a fragment. I thought fragments weren't recreated? Jul 26 02:53:44 I programmatically change the TextView text Jul 26 02:53:57 that was it, ContentProvider wasn't notifying the uri :/ Jul 26 02:54:10 And then on orientation change it goes back to what it was when it started - but for EditTexts, they retain the text I add in them Jul 26 02:59:18 Is there a program like NaturalDocs that can turn source code comments into documentation? Jul 26 02:59:46 Or would natural docs work since it supports java **** ENDING LOGGING AT Fri Jul 26 02:59:57 2013