**** BEGIN LOGGING AT Mon Jul 29 02:59:58 2013 Jul 29 03:16:27 which do you guys think is preferable using gradle; local.properties or ANDROID_HOME ? Jul 29 03:32:13 g00s, the latter Jul 29 03:54:08 pfn ok; cool - less stuff to check in Jul 29 04:00:54 anybod have experience compiling wpa_supplicant with nl80211 support? Jul 29 04:01:33 the one on the phone uses the nl80211 interface with android, but by default when I compile the source, CONFIG_DRIVER_NL80211=y is commented out in android.config Jul 29 04:01:53 if I uncomment it, get undefined references to wpa_driver_nl80211_driver_cmd and other symbols Jul 29 04:13:17 I'm running the Android Studio with 1.7.0 JDK on linux ubuntu (latest) on my macbook pro... 16GB ram SSD drive, and it's running really slowly, is there a way to troubleshoot/speed up the virtual device ? Jul 29 04:26:47 g00s, you should never check in local.properties Jul 29 04:27:12 even if you set your path in there, it's called local for a reason Jul 29 04:27:37 sup guys Jul 29 04:28:43 pfn i made a local.properties.sample; you could make a configuration branch too Jul 29 04:28:57 eaxxae, would say use haxm, but I don't think it's supported on linux Jul 29 04:29:41 g00s_, you could, and I often do that, but only because some o'er asshole checked it in Jul 29 04:30:04 haxm has hung my machine a few times and jeopardized the integrity of HFS as a result Jul 29 04:30:23 (os x 10.7) Jul 29 04:30:28 shitty mac Jul 29 04:30:32 :p Jul 29 04:30:42 shitty kernel exetnsions man Jul 29 04:30:50 *extensions Jul 29 04:31:00 i trashed ext3/4 too Jul 29 04:31:09 hasn't crashed my mbp Jul 29 04:31:16 nor my windows box Jul 29 04:35:13 by buffalo linkstation came with XFS; they swore it was the most reliable. dunno; never had a problem with the thing even though power went out a few times (no UPS) Jul 29 04:36:30 hmm, so, i tried buying a nexus 7 tonight, all the local best buys are sold out... Jul 29 04:36:35 I'll try walmart and gamestops tomorrow Jul 29 04:36:36 wow Jul 29 04:42:42 pfn: what area u from ? Jul 29 04:43:00 eaxxae, california Jul 29 04:44:55 wow, crazy... what's so great about it ? Jul 29 04:45:16 it's cheap Jul 29 04:45:18 and it's great Jul 29 04:45:19 what else Jul 29 04:46:20 I'm getting fed up with apple... Have ipad mini/iphone5 (since first one) work phone is android.... Might pick one up. Jul 29 04:46:39 eaxxae what changed that upset you ? Jul 29 04:46:42 (fed up) Jul 29 04:47:03 * pfn has never enjoyed anything ios :-/ Jul 29 04:47:10 * pfn is an early ios adopter as well Jul 29 04:47:18 iTunes match... is complete bullshit, 25$/year... it expired, all of my music went poof... and there is no way to remove it (from reminding you to resubscribe) Jul 29 04:47:43 they're too capitalist... I'm a linux/hacker/coder... I'm just sick of getting ripped off honestly Jul 29 04:47:59 oh, k. yeah - even though i like my MBP, i dont have shit on iTunes. never got into that ecosystem. so my experience is not full apple i guess Jul 29 04:48:11 i know somebody that has 10k worth of movies and songs in iTunes Jul 29 04:48:16 that is just ... Jul 29 04:48:19 fucking insane Jul 29 04:48:22 not missing anything... But I am.... thousands of dollars in iTunes Jul 29 04:48:32 yeah, exactly ...... Jul 29 04:48:53 sick of paying out the ass... I think they're too shrewd... Jul 29 04:49:19 not letting you copy music between devices/etc.... it's all so you give up and pay. I was just being lazy, now I'm phasing out all of their shit Jul 29 04:49:54 put ubuntu on my macbook pro ... dual boot for now, moving all of my media to google& private cloud Jul 29 04:49:57 which reminds me, i have my whole music collection on CD still; have to do something about that before CD players go extinct Jul 29 04:50:04 from college days :/ Jul 29 04:50:21 there is an awesome app on windows called EAC Jul 29 04:50:31 need to rip that stuff soon ... Jul 29 04:51:11 me too.. and all of my movies, have apple tvs and xbmc with no content (other than what I bought in itunes) Jul 29 04:51:14 itunes match... you should have a local copy in that case... Jul 29 04:51:27 and yeah, I dislike the closed itunes ecosystem as well Jul 29 04:51:30 I never bought in for that reason Jul 29 04:51:41 * pfn has been enjoying google music all access immensely Jul 29 04:51:44 they have so much content Jul 29 04:52:19 pfn: yeah, some of it is local... most was in cloud, but the really annoying part.... is now it REMINDS me on every device (macbook/iphone/ipad) and all of my music just went POOF* ... no early reminder to redownload my media/etc before it expired Jul 29 04:53:06 I reinstalled my macbook so most of the music is just gone. Unless I cave and pay the 25$, but I think I have it on a removable hdd somewhere Jul 29 04:53:39 when I find it.. it's getting burned to bluray Jul 29 04:54:30 fuck the cloud :) Jul 29 04:57:07 eaxxae torrent sync your music to your android phone :) Jul 29 04:57:20 i think the android port is ready Jul 29 04:58:43 hm, maybe not yet Jul 29 05:05:28 meh, I wish intel would hurry up and release an x86 4.3 image Jul 29 05:06:08 wait... shit, the nexus 4 is 299 w/o contract? Jul 29 05:06:10 damn Jul 29 05:06:49 isn't that pretty good ? Jul 29 05:07:42 yeah.. but I just paid 120$ on ebay for a droid4 Jul 29 05:07:50 lol... oh well. Jul 29 05:07:55 i still have my droid-1 :D Jul 29 05:08:04 using it right now :D Jul 29 05:08:14 me too... two of em, thats why I got the droid4, I <3 hardware keyboards Jul 29 05:08:22 have my bluetooth tests going to the phone, the rest i do on the x86 emu Jul 29 05:14:15 of course, you buy the google phones for cheap Jul 29 05:14:25 I'm hoping the moto x on vzw will be a winner Jul 29 05:14:30 considering google controls the entire hardware platform Jul 29 05:14:42 hopefully it'll fix the update problems that the vzw google devices have... Jul 29 05:15:51 didn't the vzw nexus miss updates or get them late ? Jul 29 05:15:59 wtf, Cipher.getParameters is broken Jul 29 05:16:01 it had one vz app on it Jul 29 05:16:04 apart from the fact that the nexus 4 is subsidised, has there actually been any evidence that the motox will be sold below market rate? Jul 29 05:16:04 g00s_, get them extremely late Jul 29 05:16:11 Leeds, yes Jul 29 05:16:27 Leeds, some rumors are circulating that moto x will sell for $299 off-contract Jul 29 05:16:36 that's not any concrete evidence, I suppose Jul 29 05:16:38 pfn: yes, that's why I asked for evidence Jul 29 05:16:47 we'll find out on the first, I suppose Jul 29 05:16:54 * pfn headscratches Jul 29 05:17:00 how the hell did android 4.3 break javax.security :-/ Jul 29 05:17:14 just wondering if it's all people assuming that because the n4 is cheap, the motox will be too Jul 29 05:17:19 er, javax.crypto Jul 29 05:17:53 http://bgr.com/2013/07/23/moto-x-price-leak/ Jul 29 05:17:59 no hard evidence, but there's always that for hope Jul 29 05:21:58 i thought the most interesting part of that link was " it will apparently have several exciting new features that may never be available to Google’s Android vendor partners." Jul 29 05:22:00 damnit, somehow Cipher.getParameters is broken Jul 29 05:22:17 for no friggin' good reason Jul 29 05:22:26 NSA is the reason Jul 29 05:22:28 XD Jul 29 05:22:41 there's a lot of hype to live up to right now... Jul 29 05:23:43 loads of hype Jul 29 05:23:52 oh well, I guess I can manage the cipher parameters (iv) out of band Jul 29 05:23:56 but still, that's total lameshit Jul 29 05:38:40 https://gist.github.com/pfn/6102324 Jul 29 05:38:42 heh, this is fun Jul 29 05:53:28 Hello… does anyone know anything about the follow exception? it exception came back from a production version that is active in the market. Seems like a rare crash, but nonetheless, if anyone knows please help: Thread: main Exception: java.lang.RuntimeException: createWindowSurface failed EGL_BAD_ALLOC at android.view.HardwareRenderer$GlRenderer.createSurface(HardwareRenderer.java:1064)... Jul 29 05:54:51 btw.. it contains only system stack… none points to any code on our end.. Jul 29 06:14:37 probably requested a bad gl surface size Jul 29 06:56:46 SimonVT: ping Jul 29 07:05:25 wat Jul 29 07:07:09 sliding drawer, is there a way to set the touch intercept to be "only" x view in the activity area ? and if not, would that be a good idea ? Jul 29 07:08:40 also thought if that were possible, you could have different drawer content areas for each x view slide (if you wanted) Jul 29 07:08:59 I can think of a number of ways that would be rather wicked in use in apps Jul 29 07:09:10 Nope, that's not possible:) Jul 29 07:09:48 you not think it's a good idea ? Jul 29 07:10:11 I think it's outside the scope of my library, really Jul 29 07:10:35 really ? I find that suprising Jul 29 07:11:00 you mean outside the intended use ? or outside the capability of the way it currently works ? Jul 29 07:11:40 or both :) Jul 29 07:13:55 I mean, the pattern is pretty well defined.. Intercepting only over view x could be added, but I kind of dropped that idea a long time ago Jul 29 07:14:10 I was going to let the user pass in a Rect or Region of the touch area Jul 29 07:14:27 you know and see the use cases where it would be amazing right ? Jul 29 07:14:40 like any organisational app Jul 29 07:15:06 and having a context sensative content in it per, area Jul 29 07:15:33 Different drawers for different views, not gonna happen.. I'm sure there are lots of optimizations you should do if you made it a single view Jul 29 07:17:24 Anyway, I usually don't add stuff that doesn't fit my narrow view of the pattern :p Jul 29 07:22:11 I just see lots of potential benefits in the design and implementation of context sensative items from a user POV Jul 29 07:30:37 why call of peekLast raises error 'Call requires API level 9 (current min is 8): java.util.LinkedList#peekLast', isn't it a method from java 1.6? Jul 29 07:35:18 If you're looking for opening the drawer with a single view, I don't really think it fits the pattern.. You could try and add it, then I'll consider it. The best way would be to have the user pass a Region. If you're trying to have several drawers for several views, it might make more sense to tailor a viewgroup to that usecase Jul 29 07:37:38 crap examples, but off the top of my head, think of 3 areas, red = top action bar, green = content area, blue = bottom tool bar (you could also think of 3 equal views like that for something like a product showcase app) Jul 29 07:38:29 swipes to open the draw red = app wide navigation, green = content stats, info of some kind, blue = data manip tools Jul 29 07:38:59 Wow, the update checks in Android Studio are f... up. In the "new project" dialog, if I check for updates, I'm taken to the download web page. If I do not do that, open any old project, and then check for updates, I'm told there are no updates. Since they do not provide "tag" version numbers in the about dialog, I have to check the build number myself. Guess what, there IS an updated available that it Jul 29 07:39:02 isn't picking up. Oh well, a clean download again I guess... Jul 29 07:39:33 kjeldahl: do the release notes link from AS actually take you to anything useful yet ? Jul 29 07:39:39 ... taken to the download page because there is an update available (from the "New project" dialog). Jul 29 07:39:44 rather than , download here :) Jul 29 07:40:13 Which release notes link? Jul 29 07:40:34 Or rather, WHAT release notes link? Jul 29 07:40:45 Can't find any (inside AS). Jul 29 07:40:58 cant remember where it is, but I just remember clicking it twice Jul 29 07:41:11 and it takes me to start page for AS download Jul 29 07:41:26 Did you mean "What's new in Android Studio"? That works, and takes you here: http://tools.android.com/recent Jul 29 07:41:45 ooh no I didn't mean that Jul 29 07:42:15 It's very annoying that they are unable to show you a version number such as "0.2.2" inside the "About" dialog though. How useful is AI-130.12312.12 something to most people? Jul 29 07:45:25 Ok, the welcome screen (AS without any project active) DOES show the version number and detects that an upgrade is available, and takes me to the download page. I think it's because I'm on 1.9, which requires a full download, that the "Check update" with a project active fails, because a "simple upgrade" isn't available. Jul 29 07:45:57 Scratch that. Now the welcome screen tells me there are no updates available. Screw that, I'm installing from scratch again. Jul 29 08:08:36 With a clean download I get 0.2.0. Latest version is 0.2.2. Check for updates finds nothing. Impressive. Jul 29 08:11:34 weird, I just updated 0.2.1 -> 0.2.2 without any issue Jul 29 08:12:36 All the download links are to 130.737825 which is 0.2.0. And it does not find any upgrades. :-/ Jul 29 08:19:47 for which platform? Jul 29 08:20:01 Linux, but it shows me the same build numbers for windows and mac. Jul 29 08:20:34 I recently Installed for Linux and I got a small automatic update (afair from 0.2.1) Jul 29 08:20:40 What build numbers do you get on http://developer.android.com/sdk/installing/studio.html#Updating ? Click the "Download for other platforms" and it shows you files with the build number embedded in the package names. Jul 29 08:20:55 0.2.0 is 130.737825 Jul 29 08:21:29 exactly this Jul 29 08:21:36 dunno... Jul 29 08:22:20 Could be they chose to package 0.2.0 and make people use incremental upgrades, but their upgrade service may be down. Weird. Jul 29 08:22:29 hello, anyone have tried to boot android via nfs after JB? Jul 29 08:23:52 Hello there, I'm having trouble playing video files in my app. I'm kinda new to android development and it's probably the codec I'm using. Does anyone know the setting for handbrake that'll do the trick? Is there a screen size limitation? Jul 29 08:24:39 I used the H264 codec according to the google dev page with 3gpp or mp4 but haven't figured out what went wrong Jul 29 08:25:10 just use one of the iOS profiles Jul 29 08:25:50 like -Z "Universal" probably works fine Jul 29 08:27:22 Anyway, here's what AS does to check for updates. Get from http://dl-sdk.appspot.com/as/updates.xml, which redirects to http://dl.google.com/android/studio/patches/updates.xml, which returns an xml which says 0.2.2 is available with the build number 130.754168. Why AS does not ACT on that info at my end I do not understand. Jul 29 08:29:44 The xml contains a download link, which at least now simply redirect to the "traditional" download page (for informing users). Could be that download link is currently broken. Jul 29 08:34:07 Ok, bitched about it in an official Google channel: https://plus.google.com/107657528816470202239/posts/gi6iwgXKQSt Jul 29 08:38:47 hi, anybody knows how to propagate touch event ACTION_MOVE to another view when it's outside bounds of the view that had ACTION_DOWN? many thanks Jul 29 08:41:32 you looked AND read http://developer.android.com/training/gestures/viewgroup.html Jul 29 08:44:46 Hello. Has anybody used android:sharedUserId in the manifest to access the same data from two different apps? Jul 29 08:47:16 @StingRay yes I did but I can't see how it would solve my problem Jul 29 08:52:14 I have table with 4x4 squares (custom views), the first touched view gets all touch events even when it should occur on the next views Jul 29 08:53:30 headsvk I'm not sure but can't you put another containerview under it ? Jul 29 08:57:29 under it? the only thing I have in mind is intercepting touch event for the whole table and deciding what view they belong to, more info here http://stackoverflow.com/questions/17909167/propagating-touch-movement-to-next-by-views Jul 29 09:12:32 headsvk just use grid view Jul 29 09:13:25 but if you really want to use table Jul 29 09:13:47 make sure android:clickable="true" is in table xml, then set touch event listener on table Jul 29 09:14:18 lasserix: ok I'll try gridview Jul 29 09:15:17 oh okay well i was going to say for each view inside each table row you have to set a tag when you create it via setTag Jul 29 09:15:27 which i believe is view method Jul 29 09:15:46 then in the touch event listener you switch on the tag Jul 29 09:16:29 i actually haven't ever used table because grid was easier with the adapter Jul 29 09:16:40 but you can figure it out if you combine http://stackoverflow.com/questions/6579811/how-to-handle-click-event-on-each-cell-of-a-table-layout http://stackoverflow.com/questions/11088701/how-do-i-inflate-single-cells-in-a-tablelayout Jul 29 09:17:21 you might have to use a loop for table rows, if you setting the touch event listener on the table doesn't propogate its children touch events Jul 29 09:17:28 wil they be clicked even if the user doesn't lift their finger? Jul 29 09:17:34 depends Jul 29 09:17:40 do you want a click or a touch event Jul 29 09:17:59 click is like a button, touch event has all the data of the motion event such as action up down move cancel Jul 29 09:18:23 I want to select multiple squares in a table with single finger flowing through them Jul 29 09:18:40 I'm creating the game of Boggle or Scramble Jul 29 09:18:49 this is for a game? Jul 29 09:19:08 yeah I'm porting my game from win8 Jul 29 09:19:13 well Jul 29 09:19:26 and it was truly easy there Jul 29 09:19:32 technically i would tell you to subclass a view group to do the layout of the subclassed views Jul 29 09:19:55 depending on how fancy you wanted it Jul 29 09:20:28 but if you are going for expendiency, hmm you could either just draw to a canvas Jul 29 09:20:44 ie use your own model to represent the data Jul 29 09:21:01 and end up having to draw lines of different tiles and the text in them, which isn't that hard Jul 29 09:21:03 I just wanted to make it simple Jul 29 09:21:38 then you could probably get away with grid view or table view Jul 29 09:21:49 you want to look up touch event handling Jul 29 09:23:10 it will probably go something like touch event handler gets ACTION_DOWN which tells your code to start turning on tiles for which ACTION_MOVE is true Jul 29 09:23:23 ok, I thought I will get ACTION_DOWN on the first touched square and then ACTION_MOVE on the next squares and finally ACTION_UP when the user lifts finger Jul 29 09:23:31 then on ACTION_UP the code stops telling tiles to turn on or off Jul 29 09:23:39 yeah you will Jul 29 09:23:48 but essentially on action down is just a click Jul 29 09:24:07 so if you want the user to have to swipe across, turn them on with action move Jul 29 09:24:31 yeah that's what I thought, but when I set up touch listener on square, it will get ACTION_DOWN and then all ACTION_MOVEs event on other tiles Jul 29 09:24:53 action down happens at 100, 100 say Jul 29 09:25:03 action move will immediatly fire for any dx / dy != 0 Jul 29 09:25:19 err dx, dy != 0 Jul 29 09:25:36 if the user so much as trembles or something Jul 29 09:25:42 yeah I know, that's not a problem Jul 29 09:25:49 so unless the user touches a tile at the edge Jul 29 09:25:57 action move will capture the same tile the action down catches Jul 29 09:26:08 i was just saying that to make life simpler Jul 29 09:26:36 the problem is that the other tiles won't get the touch event, the first tile consumes them all Jul 29 09:26:39 since all you have to watch for is getting the ids of tiles (while DOWN_HAS_BEEN set to true) for which action_move is true until action up Jul 29 09:26:46 oh Jul 29 09:26:50 i can't remember Jul 29 09:26:55 but you either have to return true or false Jul 29 09:27:04 I tried all combinations Jul 29 09:27:05 on the touch event listener Jul 29 09:27:09 umm Jul 29 09:27:11 well post your code Jul 29 09:27:22 ok Jul 29 09:27:29 could be a lot of different things, i am guessing just a clerical error in setting up the listener Jul 29 09:27:52 does action down report true for different tiles? Jul 29 09:28:06 the listener is on all tiles, like in win8, or should it be on the table? Jul 29 09:28:39 I don't know that, other tiles won't get anthing Jul 29 09:29:15 umm Jul 29 09:29:25 there's an easy way to do this lets see the code Jul 29 09:29:43 basically you want to assign the same touch listener to each tile, Jul 29 09:29:44 i don Jul 29 09:29:50 tt know how you are instancing your tiles so Jul 29 09:29:58 i can't quite tell you how to do that without the code Jul 29 09:30:29 then you use a switch or something on the tag or id of your views (which you can set in code or xml) in the touch listener to get the active tile Jul 29 09:30:41 active = "current" Jul 29 09:31:25 I'm subclassing a linearlayout so I'm overriding onTouchEvent Jul 29 09:33:13 are your tiles defined in XML ? Jul 29 09:33:17 or are you doing this in code? Jul 29 09:34:01 my code http://pastebin.com/JWFPPP0k Jul 29 09:34:12 yeah they are defined in xml Jul 29 09:35:01 do you have a predefined number of them or is the number dynamic? Jul 29 09:35:09 well either way Jul 29 09:35:12 what you can do Jul 29 09:35:55 it's predefined 4x4 Jul 29 09:36:08 is for (int i = 0; i < linearlayout.getChildCount(); i++) { linearlayout.getChildAt(i).setOnTouchListener(mytouch listener); } Jul 29 09:36:15 to do it for a dynamic Jul 29 09:36:34 otherwise you can also just give each tile an id (android:id="@+id/myid) Jul 29 09:36:44 and then set the touch listener for each Jul 29 09:37:03 ie find the tiles in oncreate and set it Jul 29 09:37:15 I got an array of tiles in my activity Jul 29 09:37:28 so I shouldn't override onTouchEvent directly? Jul 29 09:37:33 oh just set the same touch listener for them iterating thru that Jul 29 09:37:56 understood Jul 29 09:38:03 umm Jul 29 09:38:06 let me check if there is simpler way Jul 29 09:38:59 I like one listener for all of them, good idea, I'll try that Jul 29 09:39:26 yeah looks like you can't go down from the table layout to the individual tile since motion events dont have getOriginatingView or whatever Jul 29 09:41:59 that's disapointing Jul 29 09:45:09 makes sense tho Jul 29 09:51:18 so I changed my code with only one listener and it still behaves the same Jul 29 09:52:34 umm Jul 29 09:52:38 can you post more of the code Jul 29 09:52:58 you don't have to worry i doubt anyone here is going to rip it off, this is fairly standard stuff :) Jul 29 09:53:18 basically where you set up listeners and listener itself Jul 29 09:54:58 sorry connection problems, updated code here http://pastebin.com/JWFPPP0k Jul 29 09:56:29 I still get MOVE just from the first touched tile, I don't understate this behavior, isn't there an option to turn it off? Jul 29 09:59:43 Is there a list of the widgets which are allowed in a custom notification? Jul 29 09:59:56 A checkbox doesn't seem to be. Jul 29 10:00:31 Hello. Jul 29 10:00:41 So I just started reading this tutorial: http://developer.android.com/training/run-background-service/create-service.html Jul 29 10:02:04 And it says I should define a new class that extends IntentService. My question is: should I define the class in the same file as my main activity .java file, or should I make a new .java file? Jul 29 10:04:30 Rashad: Make a new file. Jul 29 10:04:53 In most cases you will have each class in one file in Java. Jul 29 10:05:55 Aha. Jul 29 10:08:02 What kind of silly shit is that? Buttons are allowed but checkboxes aren't? Jul 29 10:08:43 not all that silly Jul 29 10:09:05 Why not? Jul 29 10:09:19 erm, one fits with the design and use patterns Jul 29 10:09:22 the other does not Jul 29 10:10:04 Oh, yeah I see. Jul 29 10:10:12 if that were not true, then the drop down notification area would be an app :) Jul 29 10:11:00 Do you know if classes which extend Button are allowed? Jul 29 10:11:24 no idea, I would think so, you looking for a switch/toggle or something ? Jul 29 10:11:57 Yes Jul 29 10:12:09 I would extend Image Button to fake it. Jul 29 10:12:23 Or just the normal button with a glyph font. Jul 29 10:13:39 headsvk can you just do bounds check method for your tiles and then just the ontouch to the table? Jul 29 10:14:01 When I render a 3d object and in the mesh I set the z to be 10 it renders but when I set the z in the mesh data to -1 it doesnt display. Any ideas why? (I alter the world position to a far distance also). Jul 29 10:14:27 anthy where is your view matrix translated too? Jul 29 10:14:28 It seems if there's any z <-1 in the mesh then the mesh will not render Jul 29 10:14:42 View matrix as in Projection? Jul 29 10:14:45 no Jul 29 10:14:50 view matrix as in view matrix Jul 29 10:14:58 modelView? Jul 29 10:15:03 it goes projection * view * model * verts Jul 29 10:15:05 yeah Jul 29 10:15:09 Good so ToggleButton is disallowed, too. Jul 29 10:15:10 i set this to workpos Jul 29 10:15:14 worldpos Jul 29 10:15:23 but if you are using es 2.0 view and model are distinct Jul 29 10:15:37 Ill paste my shader sec Jul 29 10:15:39 anyways my guess is anything <0 for z is behind the eye point Jul 29 10:15:55 which you've left at the origin (where the default would be) Jul 29 10:16:44 http://codepad.org/fYNQTU5i that is my shader Jul 29 10:16:56 (and my proj matrix is left handed) Jul 29 10:16:59 headsvk: in onTouch you are saying view.getId is constant when you move across from one tile to the next? Jul 29 10:17:35 http://codepad.org/WazTSBYh Jul 29 10:17:42 anthy typically your view matrix is distinct from your model matrix in es 2.0 Jul 29 10:17:57 lasserix yeah it's the first tile always and always, I'm logging x,y position in the table http://pastebin.com/JWFPPP0k Jul 29 10:18:42 What;'s the view matrix? Jul 29 10:18:46 Is that the model view Jul 29 10:19:00 projection is lense, view is eye/camera, model is to bring verts into world space Jul 29 10:19:08 they were the same in 1.0 Jul 29 10:19:08 I reall just set the model view to identity then mul that by world pos Jul 29 10:19:11 now they are distinct Jul 29 10:19:24 Ah right so I need to create 3 matrix Jul 29 10:19:24 right so you'll want to translate it backwards Jul 29 10:19:32 no 4 Jul 29 10:19:40 you want translation components (usually) Jul 29 10:19:49 and you can't concatinate them? Jul 29 10:19:57 yeah you do Jul 29 10:20:13 as P * V * M (verts) or the other way around Jul 29 10:21:07 Hang on thinking Jul 29 10:21:10 http://solarianprogrammer.com/2013/05/22/opengl-101-matrices-projection-view-model/ Jul 29 10:22:50 right tnx ill read this up do a little tinker and see if I still have my problem :) Jul 29 10:23:32 headsvk: i believe its because the event action chain goes DOWN MOVE UP (typically) so if it originates in tile 1 (DOWN) moving outside of tile 1 will still have the originating view be tile 1 Jul 29 10:23:50 lasserix I figured out the only way will be to calculate which tile was selected by myself but I can't get why it's working like that and how to prevent it or propagate the event Jul 29 10:24:05 headsvk: this looks like what you wanted (first comment) http://stackoverflow.com/questions/4222528/ontouchevent-how-to-get-curret-view-under-finger Jul 29 10:25:35 (answer by Garry) note that you might want to cache those linearlayout view and rect Jul 29 10:25:44 *err reuse the same class scoped ones Jul 29 10:25:50 Suppose I used this: http://developer.android.com/guide/components/services.html, would the service still run even when my app is running in the background? Jul 29 10:26:07 since everytime ontouch gets called it'll create them, which could be a lot of garbage and you'll get a gc during your game Jul 29 10:26:10 lasserix: ok thanks :) Jul 29 10:26:30 Oh it is discussed later in that page. Jul 29 10:26:38 Never mind my question. Jul 29 10:27:29 Does anyone know a good library compatible with opengl es to load Collada / FBX model? (C, C++, ...) Jul 29 10:27:53 gee i'm away for a week and look what happens - a new SDK, how exciting :) Jul 29 10:29:26 Why the ActionMode of an ActionBar not kept active if setRetainInstance(true) is set ? Jul 29 10:30:05 If someone gets hold of my app's GCM Sender ID, presumably they can register themselves on GCM to my account, without having my app? Jul 29 10:32:47 lasserix I dont understand how this would make a bug Jul 29 10:32:57 I mean if I assume the camera is at 0,0,0 Jul 29 10:33:15 and my object is at x,y,z relative to the camera I should not need these matrices yet Jul 29 10:33:43 (I know I have to use them eventually but at the moment I am making assumptions about where the camera is and that the model is relative to the camera) Jul 29 10:34:07 if you're camera is at the origin Jul 29 10:34:21 At the moment it is yeah Jul 29 10:34:21 by default it looks down the negative z axis Jul 29 10:34:29 or positive z i can't remember Jul 29 10:34:31 Mine looks along the positive z axis :) Jul 29 10:34:46 but anyways then any vert with a <0 z component will be clipped Jul 29 10:34:54 camera space is left handed Jul 29 10:35:04 since you can't see your own ass looking forward :) Jul 29 10:35:05 yeah but my big is that when I move the object to say 0,0,10 Jul 29 10:35:09 the z shoudl not be negative Jul 29 10:35:14 and depending on engine and methods, an entire atomic could be clipped Jul 29 10:35:16 my bug* Jul 29 10:35:26 but it gets clipped Jul 29 10:35:30 that's my problem Jul 29 10:35:51 that's because your combined your model view and a camera transformation is the inverse of the transformation of the model Jul 29 10:36:01 *err view and model Jul 29 10:36:07 (i believe) Jul 29 10:36:36 ie rotating a can of coke in front of you pos 90 degrees is same as rotating yourself around the can - 90 degrees Jul 29 10:37:35 does it work if you move the camera to 0 0 -10? Jul 29 10:37:39 err Jul 29 10:37:41 If I multiply them lke this [Proj]*v(x,y,z,1) it does not draw anything Jul 29 10:37:42 move the model Jul 29 10:38:27 Tried moving the model but having -ve z seems to mess it up Jul 29 10:38:45 I cant move the camera *yet* it is fixed at 0,0,0 Jul 29 10:39:38 what's your near and far planes? Jul 29 10:39:49 1 & 1024 Jul 29 10:40:04 hi, i am trying to setup appcompat to be able to use actionbar in android 2.1 > Jul 29 10:40:40 i added the appcompat as libary but i have aapt errors, anyone done this before? Jul 29 10:40:43 Say if I setup object in space at 0,0,200 (and there's co ordinate in the mesh with z=-1) then it gets clipped Jul 29 10:41:03 but if there's no -1 in the mesh it doesn't get clipped Jul 29 10:41:25 I'll reprogramme it with all the matrix in and see if the bug goes away is probably best option Jul 29 10:46:59 hmm yeah Jul 29 10:48:19 anthy shouldn't it go gl_Position=tmp*ModelMatrix*ProjMatrix*; Jul 29 10:48:38 if model and proj are left handed? Jul 29 10:48:59 I really dont know that's the only way I could get it to work Jul 29 10:49:18 also from what i hear you want to preform proj * model * view in cpu not shader, since that is an expensive operation you technically only need to do once not once per vertex Jul 29 10:49:18 ive always done math with [m1].[m2].[vec] Jul 29 10:49:36 Yeah Jul 29 10:49:39 oh Jul 29 10:50:05 so basically the order would be m2.vec then the output of this .m1 Jul 29 10:50:51 ahh i thought that was how opengl did it Jul 29 10:51:39 matrix multiplication is fcn composition Jul 29 10:51:43 I would have thought gl_Position = matrix*vec Jul 29 10:52:43 Do y ou know if there's a gl emulator or something that can debug the gpu? Jul 29 10:52:56 So you can see what is in your matrix/vertex etc Jul 29 10:53:10 (in the shaders) Jul 29 10:54:34 http://codedstructure.net/projects/webgl_shader_lab/ Jul 29 10:54:44 https://www.shadertoy.com/ Jul 29 10:54:55 http://glsl.heroku.com/ Jul 29 10:55:24 oo nice! tnx Jul 29 10:56:08 down the road you can do as malexander says: http://www.opengl.org/discussion_boards/showthread.php/179241-debugging-GLSL-shaders Jul 29 10:56:19 tho i dunno if webgl == es 2.0 Jul 29 10:56:22 in syntax Jul 29 10:56:25 hi there. I have (i think) a easy question, but .. Jul 29 10:56:30 like if they use in / out versus varrying and such Jul 29 10:56:45 CommonActivity extends FragmentActivity how can i also extend ActionBarActivity (in same class) ? Jul 29 10:56:58 but also hold the fragments Jul 29 11:01:28 BulleTTime: no multiple inheritance in java Jul 29 11:01:56 you can play around with delegation and interfaces, but only when there are interfaces to use Jul 29 11:01:58 we also have a shitty generics implementation ;) Jul 29 11:05:49 everything "mostly works" Jul 29 11:05:51 so its cool Jul 29 11:06:23 heeh sweet write to texture object Jul 29 11:06:30 thats the linux credo ;) "you can fix it if it sucks" Jul 29 11:06:34 "... and it will suck" ;) Jul 29 11:07:07 "and then it will suck more under the name of integration!" Jul 29 11:08:11 welll because it sucks i get paid ;))) Jul 29 11:08:44 And who doesn't like money Jul 29 11:09:38 well i would never code awt/swing for money Jul 29 11:28:09 heya Jul 29 11:37:20 hello i am using android studio and i want to create a custom button. how can i do this?i create an xml file in drawable-mdpi but when i put it as background i get the message "rendering problem" and nothing happens Jul 29 11:38:55 why the dialog doesn't dismiss automatically if i set the OnClickListener this way: http://codepad.org/UdHRMU5y ? Jul 29 11:39:31 i have to add dlg.dismiss() manually, and that looks stupid Jul 29 11:39:41 it's hilarious watching the internet try to figure what ChromeCast is/does Jul 29 11:39:49 so much misinformation Jul 29 11:40:10 the magic of "tech journalism" Jul 29 11:40:23 the magic of tl;dr Jul 29 11:40:40 just like how I was fucking ecstatic when I/O 2013 didn't bring "Key Lime Pie" :> Jul 29 11:40:43 @eisbehr it's not just the jornalists, with the internet anyone can say something stupid Jul 29 11:40:51 *journalists Jul 29 11:40:56 sabton: and have people who back him up Jul 29 11:41:06 right, in comments, on twitter, etc. Jul 29 11:41:13 sure, but most people don't have an audience :D Jul 29 11:41:25 eisbehr: fair :) Jul 29 11:41:44 eisbehr: you'd be surprised Jul 29 11:42:27 Hello everyone! I have a question regarding the application I am developing. Jul 29 11:42:28 once, village idiots and charlatans who preyed on them had much smaller impact overall, especially given... *gasp!*... investigative journalism Jul 29 11:42:41 zhangxaochen: If you use an AlertDialog you can set positive, negative and neutral buttons and the dialog will dismiss. Jul 29 11:43:04 eisbehr, yes my 'dlg' is an AlertDialog Jul 29 11:43:05 But I'd imagine it just calls dismiss() for you Jul 29 11:43:21 then use dlg.setPositiveButton() Jul 29 11:43:36 questions whilst I'm here... comments/advice regarding dropping ActionBarSherlock in exchange for new ActionBar support lib? Jul 29 11:43:38 iirc Jul 29 11:44:09 My application must display japanese fonts. It can already display the hiragana, katakana, kanji. But some specific characters cannot be displayed. I noticed that the codepoint of these characters contains 6 numbers while the displayed characters codepoints conteains only 5 numbers. I think it is a problem of font that cannot display the high codepoint characters on the device. Do you have any idea? Jul 29 11:44:39 I read on many websites that there is a unicode full character set issue on android... Jul 29 11:45:46 I try to display this character: đ ‚Š Jul 29 11:45:54 the device displays a square instead Jul 29 11:46:23 eisbehr, you mean setButton? Jul 29 11:46:25 sounds like lack of font Jul 29 11:47:01 it looks like a font issue, yes. I tried to load other fonts while using TypeFont, but I cannot display the character neither Jul 29 11:47:25 I also tried using the Ubuntu font that cas display this character correctly on my laptop, but not on the android device Jul 29 11:47:26 did you check first if the font contained the character you wanted to display? Jul 29 11:47:35 yes Jul 29 11:47:43 zhangxaochen: You use AlertDialog.Builder to build your dialog Jul 29 11:47:52 eisbehr, yes Jul 29 11:48:29 and this class has setPositiveButton(), which is what you'd want to use Jul 29 11:49:12 but i didn't set the listener when create the dialog, my code is builder.setPositiveButton("xxx", null), i hope to set the listener later Jul 29 11:49:54 if you pass null it will just dismiss the dialog and do nothing else Jul 29 11:50:10 well, it will display the button, and the button will just dismiss Jul 29 11:51:05 Why do you want to set the listener after creating the dialog? Jul 29 11:51:33 Sounds like something you'd probably be better off avoiding Jul 29 11:51:40 shibakaneki: ... somehow, I think your character got really, really mangled in transit Jul 29 11:51:50 can you please tell me its unicode codepoint? Jul 29 11:52:39 yes, the unicode codepoint is u2008a Jul 29 11:52:48 http://glyphwiki.org/wiki/u2008a Jul 29 11:53:18 shibakaneki: just use English "h", looks very similar Jul 29 11:53:23 cursive Jul 29 11:53:26 lol Jul 29 11:53:28 italics i mean Jul 29 11:53:55 It's odd, doesn't get displayed properly on my pc as well Jul 29 11:54:03 lol, thank you for the answer sabton but I cannot do that ;) Jul 29 11:54:15 shibakaneki: ok ;) Jul 29 11:54:40 eisbehr, because the the widgets i wanna deal with in the listener is not ready when creating the alert dialog Jul 29 11:54:52 I do an application for learning the structure of the japanese characters and this particular character is a small part of some ideogram ( kanji ). So it is important to display them correctly for a good understanding Jul 29 11:54:58 wowzers. I thought I had unicode symbol database loaded, and still I got just the number Jul 29 11:55:43 p_I, when I was storing all the characters in my sqlite database, I notice that this characters, and some other ones, are using 2 chars to be stored Jul 29 11:55:52 it means they use more bytes to be stores Jul 29 11:56:04 *stored Jul 29 11:56:38 shibakaneki: this one actually uses 4 Jul 29 11:56:42 in UTF-8 Jul 29 11:58:22 zhangxaochen: Can't really help you with that any further, sorry. Jul 29 11:58:56 ok :) Jul 29 11:59:50 looks very strange indeed. I noticed that other applications on google play that are doing something similar just don't display these characters ( but it means these applications don't give the correct information to the user ) Jul 29 12:00:47 shibakaneki: I am pretty sure that to display that one, you need the correct font, and most applications don't load fonts with radicals Jul 29 12:00:52 (and use default ones) Jul 29 12:01:01 I am pretty sure of that too Jul 29 12:01:12 using Typeface shuld be ok Jul 29 12:01:20 to load the font dynamically Jul 29 12:01:22 also, trying to find a font containing that one character, my third result was "manual for court-martial" :> Jul 29 12:01:40 haha Jul 29 12:05:10 ... oh right, I forgot. You're in shit dealing with this character in java in general :D Jul 29 12:05:19 i just found some information on this website: http://aoking.hatenablog.jp/entry/20120820/1345460364 Jul 29 12:05:34 yes it looks like the same issue in java also Jul 29 12:05:55 shibakaneki: many runtimes in many languages will barf on it, because it's waaay outside UCS-2 Jul 29 12:06:01 "it is easy to just display a character", yeah yeah... ;) Jul 29 12:06:33 enjoy someone thinking that 16bit characters are fine ;) Jul 29 12:06:35 * p_l enjoys his 21bit ones Jul 29 12:07:02 in fact my question is more: do you think the problem is just to get the proper font, or do you think there is a more 'deep' problem related to the way android render the glyphs? Jul 29 12:07:42 shibakaneki: I think you have a) problem of the font b) problem of dealing with UTF-16 compound character Jul 29 12:08:03 ouh yeah, now you made my day, haha Jul 29 12:08:17 hmm Jul 29 12:08:27 I'm looking for a bug tracker & crash reporter, i've looked at ACRA, GoogleAnalytics, Crittercism, I'm looking for some opinions and possible alternatives. Jul 29 12:09:07 darken, depends on what exactly do you need and how much are you willing to pay Jul 29 12:09:14 darken there is BugSense too, no opinions here on it though Jul 29 12:09:40 p_l, hmm, isn't Java supposed to support 32-bit utf signs as well? :) Jul 29 12:09:45 Mavrik: no Jul 29 12:09:54 Java char is 16bit-wide Jul 29 12:10:01 last I checked the implementation is UTF-16, not UCS-2 Jul 29 12:10:28 Mavrik: UTF-16 is a dirty hack when some people woke with one hand in the potty Jul 29 12:10:35 yep Jul 29 12:10:38 still ;) Jul 29 12:10:55 surrugate pair support is there, ugly as it is Jul 29 12:11:10 Mavrik: still, to handle full 21bit unicode space, you have to aware of surrogate pairs, which can mean !FUN! Jul 29 12:11:28 but for that I can use the Character class, right? Jul 29 12:11:30 * p_l is very, very happy that most of the time he codes with 21bit characters Jul 29 12:11:36 I'm looking for a free option, and preferably something that doesn't require me to host my users crash data on a third party (excluding Google) server. I could host this on my own server too. I want stack traces of my apps crashes and the option to extra info if it crashes at certain Jul 29 12:12:02 darken, we've had rather good success with Crashlytics here Jul 29 12:12:03 shibakaneki: I don't think it will work out that easy Jul 29 12:12:15 Mavrik, googling it sec :) Jul 29 12:12:18 darken, ACRA with HockeyApp gives more data, but the interface is less elegant Jul 29 12:12:35 yes I have some doubt about it too Jul 29 12:12:39 darken, on the other hand our primary good part of Crashlytics was that we have a single system for iOS and Android Jul 29 12:13:07 Mavrik, isn't hockey something like bugsense ? where you can send your crash data (i.e. via acra) and they present it stylishly Jul 29 12:13:30 Hockey is more like testflight + bugsense Jul 29 12:13:40 so apk distribution, crash data collection system Jul 29 12:14:10 Hm i think what i want is a free framework like bugsense to host on my server :D Jul 29 12:14:35 ah, you want self-hosted? Jul 29 12:14:39 g'luck then Jul 29 12:14:47 darken, I've seen ACRA people make a server solution as well Jul 29 12:14:49 check that. Jul 29 12:15:19 yeah i have my own ACRA receiver Jul 29 12:15:37 you just need to build a web app to receive HTTP POST data Jul 29 12:15:39 Well I'm scared of choosing something like crashlytics or bugsense or crittercism, but then somewhere along the line they do something i don't like, or some pricing stuff and im stuck with a version that uses these services on a couple of hundred thousand devices Jul 29 12:15:44 this one: https://github.com/ACRA/acralyzer Jul 29 12:15:47 it takes ages to replace something like that Jul 29 12:15:51 hope someone could help me with this http://stackoverflow.com/questions/17923662/alertdialog-is-not-dismissed-automatically-if-getbutton-and-setonclicklistener Jul 29 12:15:56 some people don't update -_- Jul 29 12:15:58 Anyone else tried the Moto X camera? Jul 29 12:16:11 anyway, thx for your help guys Jul 29 12:16:20 anyone uses acralyzer ? Jul 29 12:16:23 at least your messages confirm my thoughts Jul 29 12:17:03 The google apps analytics, isn't it free ? and an google apps engine is more undermy control too Jul 29 12:17:21 though people on SO say the crash reports aren't as good as acra Jul 29 12:17:54 Mavrik, ty for help Jul 29 12:18:04 sabton, can you give me some feedback on your custom acra receiver ? Jul 29 12:18:16 it's not this acralyzer framework is it ? Jul 29 12:21:05 darken no i was an early ACRA adopter, they didn't have a front end back then Jul 29 12:21:35 i built something simple for ASP.NET (my hosting environemnt) that receives ACRA reports and writes to database, then a simple web page to view Jul 29 12:22:41 Find any pitfals with ACRA yet ? Jul 29 12:25:21 I think I'm gonna setup acralyzer and do a test run :) Jul 29 12:25:29 Wonder how much traffic it will use Jul 29 12:29:09 darken ACRA used to be able to capture logcat but not anymore, that' Jul 29 12:29:14 that's not ACRA's fault tho Jul 29 12:29:22 yeah i know Jul 29 12:29:29 otherise i have no complaints Jul 29 12:29:30 requires root now Jul 29 12:29:40 jup Jul 29 12:29:46 i have root, but stacktraces probably suffice Jul 29 12:32:45 logcats really help sometimes Jul 29 12:32:51 especially when dealing with media or camera Jul 29 12:38:46 * p_l just stumbled on the apple insider story. Lol, not opening xD Jul 29 12:40:46 is there any app which will encrypt my sd card and only app can unlock SD card ... (I wanna learn how to build such app so I will need source code :) ) Jul 29 12:44:08 Hi Jul 29 12:44:34 anyone knows ABS (ActionBarSherlock) ? Jul 29 12:44:42 i have a question about that Jul 29 12:47:42 ABS Jul 29 12:47:48 is awesome Jul 29 12:47:57 yeah:) Jul 29 12:48:04 im pretty new to it Jul 29 12:48:12 it works almost Jul 29 12:48:41 but i have some Dialogs in my app, when i enable them the app will crash Jul 29 12:48:52 is "The Busy Coder's Guide to Android Development" a good investment? Jul 29 12:49:12 what dialog theme should i use? Jul 29 12:49:20 logcat Jul 29 12:49:40 yeah its about the theme Jul 29 12:50:09 i used to have my dialogs use : Jul 29 12:50:09 @android:style/Theme.Dialog Jul 29 12:50:42 but that will crash after i started using ABS Jul 29 12:51:03 but ive read that ABS has no dialog theme anymore? Jul 29 12:53:06 EPG: yes, I think so Jul 29 12:54:16 Leeds, also as an experienced developer? Jul 29 12:54:29 Android experienced? Jul 29 12:54:37 yes Jul 29 12:54:52 then it's up to you if you think you need it Jul 29 12:55:03 oh nono, i meant you with experienced :D Jul 29 12:55:49 any idea DarkSlay3r? Jul 29 12:56:44 EPG, the book is a nice overview of what Android has Jul 29 12:56:49 but it's still very basic Jul 29 12:57:02 no advanced tricks there on how to make you app really nice :) Jul 29 12:58:17 i mean DarkSlay3r Jul 29 12:58:40 Mavrik, ok, do you have a recommendation for a more advanced book? Jul 29 12:59:20 I haven't found one. Jul 29 12:59:39 Google I/O talks, Android dev blogs, etc. Jul 29 13:00:05 Theme.Sherlock.Dialog Jul 29 13:05:29 BulleTTime: Have you solved the dialog issue? Jul 29 13:06:36 Mavrik, don't forget stackoverflow ;) Jul 29 13:08:21 heya folks, quick question Jul 29 13:08:29 I have a font asset in my app that I essentially use for icons Jul 29 13:08:50 all characters in the font look like this:  Jul 29 13:08:50 etc Jul 29 13:09:06 thing is, I have that value in a String in code Jul 29 13:09:20 I put it onto my custom text view that utlizies that font (and properly displays it if it's loaded off of a resource) Jul 29 13:09:38 but showing it off of a String just displays those exact characters Jul 29 13:10:02 DarkSlay3r : well if i use a ABS theme it works, but that aint a dialog .. Jul 29 13:10:48 Theme.Sherlock.Dialog Jul 29 13:11:35 no that theme is obsolete Jul 29 13:11:56 its removed since dialogs dont have a actionbar anyhow.. Jul 29 13:22:57 well fuck this, why can't this be simple Jul 29 13:23:06 I have a font with defined characters via html numbers Jul 29 13:23:14 I need to represent that in a textview. Jul 29 13:23:23 If I load a predefined html text via resources, it works Jul 29 13:23:37 but displaying it from a string doesn't, it literally displays the given characters. Jul 29 13:23:50 Converting the string to a char doesn't work out too well... Jul 29 13:24:15 Tee_Pee, textView.setText(Html.fromHtml(yourString)) ? Jul 29 13:24:56 Lemme try, although I doubt it Jul 29 13:25:20 well I be damned, it worked :P Jul 29 13:25:22 thanks Jul 29 13:34:37 I keep getting this error when I open up a project in the latest vesion of Android Studio... even on newly created projects. I have uninstalled and reinstalled with no avail... http://pastie.org/8186715 Jul 29 13:35:28 I'm on Windows 7 x64 with Java SDK 7 update 25 x64 Jul 29 13:39:25 Hello Jul 29 13:39:36 I am Japanese Jul 29 13:39:51 I live in Japan Jul 29 13:40:44 amazon site I want to add adv Jul 29 13:40:53 But it has error Jul 29 13:41:33 https://developer.amazon.com Jul 29 13:53:44 How would i prevent button spamming in my application? This is not working for some reason: http://pastebin.com/UDJnJ2ff Jul 29 13:54:08 Basicly i dont want you to be able to click again before the voteUp(); or voteDown(); is done.. Jul 29 13:56:00 hey guys, any way to join 2 strings defined in XML using only XML? Jul 29 14:01:41 Snoxie: are your vote*() methods doing the job asynchronously? Jul 29 14:02:21 No Jul 29 14:02:27 Should they? Jul 29 14:02:56 well that would mean they block the ui thread Jul 29 14:03:01 are those some kind of http requests? Jul 29 14:03:39 Yeah, its webservice requests Jul 29 14:04:37 but it doesn't explain why the flag doesn't work then Jul 29 14:04:51 also network on main thread should cause exception Jul 29 14:05:57 Yeah, but i "fixed" that with a little hacking: if (android.os.Build.VERSION.SDK_INT > 9) { ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder() .permitAll().build(); StrictMode.setThreadPolicy(policy); } Jul 29 14:09:06 I just added a new activity and now I get an error http://cl.ly/image/1C402c441h1C any ideas? Jul 29 14:11:41 Any ideas karlo? Jul 29 14:20:27 sup Jul 29 14:21:08 i would really really appreciate some help on the question im about to ask Jul 29 14:21:37 javaDon, yes? Jul 29 14:22:14 http://pastebin.com/5h20da7r Jul 29 14:22:18 ok Jul 29 14:22:30 ok im adding an animation to that view Jul 29 14:22:45 with Jul 29 14:22:46 layout.addView(interstitialAd, adParams_bigAdd); Jul 29 14:23:01 on my nexus 7 evrything works perfectly Jul 29 14:23:34 but with mytouch4g and s2 the animation only occures inside of a square box Jul 29 14:23:54 is there something im doing wrong in those params? Jul 29 14:24:31 Is there a way to create an intent that calls a function on my service? Jul 29 14:24:50 the intent won't call any arbitrary function Jul 29 14:25:00 your onStartCommand processes the intent to choose which function to call Jul 29 14:25:16 ok Jul 29 14:25:39 im guessing no one knows what the deal is with that? Jul 29 14:26:09 javaDon, I don't use relative layouts in my code. Jul 29 14:26:24 I even never did Jul 29 14:26:37 I always use linear layouts Jul 29 14:26:56 what type of linear layout params should i use for tht then? Jul 29 14:27:13 it's the same Jul 29 14:27:26 What I wanted to do was have my service's workers be able to have arbitrary intents call something on the service that would pass the call to the worker Jul 29 14:27:28 javaDon, not enough context in your paste Jul 29 14:27:42 because the workers themselves can't recieve those calls Jul 29 14:27:54 and yes like pfn said, not enough context Jul 29 14:27:58 ok 1 sec Jul 29 14:28:11 Forkk, onStartCommand will let you do that Jul 29 14:28:29 http://pastebin.com/cyqzHTGq Jul 29 14:28:33 So I'll just have them make calls to start the service every time? Jul 29 14:28:35 javaDon, use hierarchyviewer to see why your components don't size correctly Jul 29 14:28:39 Forkk, yes Jul 29 14:28:48 seems kinda silly Jul 29 14:28:54 but ok Jul 29 14:28:57 it's not silly Jul 29 14:29:11 how else do you send an intent without "startService" Jul 29 14:29:14 or "bindService" Jul 29 14:29:30 I suppose you could use a broadcastreceiver but that's not targeted specifically to a service Jul 29 14:29:31 what do you mean? Jul 29 14:30:08 i use a framework for games development not really that big knowladged on the android side Jul 29 14:30:26 just trying to add custome code to the adds Jul 29 14:30:32 ok Jul 29 14:30:51 i've got a problem to update Android SDK Tools Jul 29 14:30:55 i've got this error: Jul 29 14:30:59 Failed to rename directory C:\adt-bundle-windows-x86\sdk\tools to C:\adt-bundl Jul 29 14:30:59 e-windows-x86\sdk\temp\ToolPackage.old04. Jul 29 14:30:59 [find_lock] Directory locked by java.exe Jul 29 14:31:32 Hey guys, I have a CheckedTextView within a listview but setItemChecked(i,true); does nothing. NOr does toggle(); What should I do in order to get it checked? Jul 29 14:31:53 i tried to copy the 'tools' folder and create 'tools2' folder and then run: Jul 29 14:31:53 C:\adt-bundle-windows-x86\sdk>tools2\android.bat update sdk --no-ui --force Jul 29 14:32:02 and it still didn't worked.... Jul 29 14:32:16 So then I could make a hashmap or something that maps URLs to intent listeners and when a start command comes in, it could find the key with that intent's data in the map and call the lietener it's mapped to Jul 29 14:35:21 I wonder if this behavior is documented somewhere? : Jul 29 14:35:49 when I run my NDK app/activity in an Android device, and then let it close, it will automatically restart itself Jul 29 14:35:52 in an infinite loop Jul 29 14:36:03 but only if the lock screen/screen saver is active Jul 29 14:36:10 How do I "fully initialize a SurfaceHolder" to pass to Camera.setPreviewDisplay()? "SurfaceHolder mSurfaceHolder" doesn't appear to work (Unknown class mSurfaceHolder) Jul 29 14:36:27 if I manually tap the lock screen away, the app won't keep restarting itself Jul 29 14:36:39 what is this all about? how do I disable that behavior? Jul 29 14:37:05 elichai2, use sdk manager, not android to update Jul 29 14:37:24 when i use sdk manager i get the same error Jul 29 14:37:44 kill java.exe first Jul 29 14:38:00 windows' exclusive/mandatory locks bullshit screws up so much stuff Jul 29 14:38:04 * pfn hates Jul 29 14:38:21 if i kill java.exe the SDK manager quit Jul 29 14:38:29 kill all java.exe first Jul 29 14:38:32 then run sdk manager.exe Jul 29 14:38:39 already tried Jul 29 14:38:46 run it from somewhere above the android home Jul 29 14:38:49 are you in the commandline? Jul 29 14:38:50 pfn what would be the best way to creat a layout through code? Jul 29 14:38:56 javaDon, generally, don't Jul 29 14:38:59 inflate from xml and add Jul 29 14:39:00 so that i can animate it Jul 29 14:39:10 i dont use xml fo my layout Jul 29 14:39:10 i saw a solution here: (the one i tried and didn't worked too) Jul 29 14:39:14 https://code.google.com/p/android/issues/detail?id=4410#c38 Jul 29 14:39:15 its 1 class Jul 29 14:39:19 on android Jul 29 14:43:08 what min sdk version do you all write for? Jul 29 14:43:11 any1 else? Jul 29 14:43:21 i just redownloaded the SDK and copy the tools folder Jul 29 14:44:36 https://code.google.com/p/android/issues/detail?id=58191 Jul 29 14:44:38 * pfn kicks 4.3 Jul 29 14:44:44 Linkandzelda me 8 Jul 29 14:44:58 i see Jul 29 14:45:22 im wondered whats the use in supporting lower than 4.1/4.0 if you program in stuff for the action bar Jul 29 14:45:32 appcompat-v7 Jul 29 14:46:43 There's no use, stop supporting GB Jul 29 14:47:07 "“If code doesn’t receive constant love it turns to shit,” Fitzpatrick said." http://www.wired.com/wiredenterprise/2013/07/gopher/ Jul 29 14:47:17 wasn't Fitz on the Android team ? Jul 29 14:47:29 i think i remember him doing an i/o talk in 2010 Jul 29 14:48:45 i kind of want to support GB as i guess a lot of people still use it Jul 29 14:48:51 pfn damn, thats huge Jul 29 14:50:00 o-o Jul 29 14:50:14 ? Jul 29 14:50:14 i hate seeing stuff like " Cipher.getInstance("AES/CBC/PKCS5Padding");" Jul 29 14:50:27 g00s, it's a string for the purpose of sample code Jul 29 14:50:31 possible the string is wrong ? Jul 29 14:50:35 ok Jul 29 14:50:48 and no, it's not wrong Jul 29 14:50:48 i mean, not saying you did it wrong, its just like getting the Cahrsets Jul 29 14:50:55 *Charsets Jul 29 14:51:12 and yeah, jsse sucks Jul 29 14:51:18 too many magic strings Jul 29 14:51:25 yeah, that sucks ass Jul 29 14:51:50 could probably use bc directly instead of going through jsse Jul 29 14:51:57 but still, general contract stuff shouldn't be violated Jul 29 14:52:22 well, look slike it was assiged to jbq Jul 29 14:52:53 that was a fast triage Jul 29 14:52:54 good for them Jul 29 15:03:05 anyone know how to adopt Luke's answer to android? it'm trying to create a gradle task to generate code before compilation. http://forums.gradle.org/gradle/topics/source_code_generation Jul 29 15:03:50 specifically, i get this" Could not find property 'compileJava' " Jul 29 15:04:00 but i thought the android stuff used that task ? Jul 29 15:06:09 confusing, because "Important: You should only apply the android plugin. Applying the java plugin as well will result in a build error." Jul 29 15:06:39 and then "According to the Gradle documentation, reconfiguring the sourceSets for a Java project can be done with the following:" Jul 29 15:06:45 seem to be contradictory to me Jul 29 15:07:05 because the android plugin builds atop the java plugin Jul 29 15:07:55 ok, so its not depending on it, it built on it so it has some of the same conventions Jul 29 15:09:02 hi, how can i extract one field of the cookie that was returned by httpget? Jul 29 15:10:46 it'd be nice if apps in playstore could be purchased/given away with voucher codes... Jul 29 15:10:54 I hate the idea of having to pay for my own app Jul 29 15:10:57 that's so stupid Jul 29 15:16:25 anyone? Jul 29 15:18:08 omid8bimo, do you really think this is an Android question? Jul 29 15:18:18 pfn thats been a feature request since … Jul 29 15:18:24 mastro: yup Jul 29 15:19:12 im getting the cookie after my GET request, i wanna know how can i get/extract only one value of that cookie and then send it during POST Jul 29 15:19:43 purely using android defaulthttpclient Jul 29 15:26:29 anyone used navigateUpFromSameTask()? Jul 29 15:27:44 parentheses are optional for method calls in groovy? i mean, wtf add some syntactic acid-sugar to make things more confusing Jul 29 15:28:10 i'm glad groovy never seemed to go anywhere Jul 29 15:28:14 :) Jul 29 15:40:25 Ah, a gradle bashing party! I want in! Jul 29 15:40:43 1. The android plugin and java plugin in gradle are INCOMPATIBLE and can not be used together. Jul 29 15:41:49 Any similarities between the two are just because the Android devs decided to make it so. Jul 29 15:42:28 It also means that if you try to combine another plugin in gradle that happens to "inherit" from the java plugin, the android plugin will barf and say you can not. Jul 29 15:42:41 Sad, but true. Jul 29 15:43:25 * kjeldahl isn't always late to parties. Jul 29 15:46:12 heh kjeldahl Jul 29 15:46:22 kjeldahl quick q, were you working on kawa ? Jul 29 15:46:29 Yes. Jul 29 15:46:29 string.indexOf("&") isn't working, do I need an escape character or something? Jul 29 15:46:45 kjeldahl whats the status of it on android ? Jul 29 15:47:28 yeah, i can't believe i'm saying this, but i'd rather use maven than gradle. to much assumed bs Jul 29 15:47:40 /me sticks with ant. Jul 29 15:47:44 Works fine. The build stuff is the tricky part, because there is zero documentation on it. Jul 29 15:48:18 is the handling of string resources at least better in android studio, compared to eclipse? Jul 29 15:48:22 kjeldahl ok, so i wasn't looking to write whole apps in kawa, but entertained the idea of using it as a scripting extension like lua Jul 29 15:48:32 I've built mixed mode (java+kawa in same project, ability to call eachother) support for buildr, see https://github.com/mariusk/buildr-kawa with examples at https://github.com/mariusk/kawa-android-examples Jul 29 15:48:44 oh sweet, thanks Jul 29 15:48:51 g00s: I think that's a good approach. Jul 29 15:49:11 You could even build all your kawa stuff into jars and avoid all the building trouble alltogether. It interops fine with java. Jul 29 15:49:27 ok, nice to know Jul 29 15:50:00 I'm hoping Google devs will add support for mixed language development with their android plugin though. If not I might have to revisit the topic one day. Jul 29 15:50:25 There are so many nice jvm languages now that interops fine with java/jvm stuff, so there really is no reason not to. Jul 29 15:51:42 g00s: I briefly looked into building maven support as well, until I saw that maven uses java for the plugins as well. Not saying it's hard, it's just the level of abstractions that java programmers use that just kill the joy sometimes. Jul 29 15:54:00 g00s: Just keep in mind that kawa "native" code generation wouldn't work on the device. Kawa generates jvm bytecodes, which devices do not run. It can interpret just fine though. At least as far as I've understood so far. Jul 29 15:54:01 Can I somehow create a gift ticket for my paid apps, and send to friends? So they can get my app without paying? Jul 29 15:54:26 kjeldahl yeah, luaj is like that too . thanks Jul 29 15:54:35 g00s: At least until "bytecode" support for dalvik gets added... Jul 29 15:54:47 Ge0rG, handling in what manner? and intellij's handling is far more convenient, I think Jul 29 15:55:22 you can generate dex bytecode and load it Jul 29 15:55:34 pfn: you can't refactor a verbatim string from xml into strings.xml, only from java source; also, adding strings using the "frontend" is a pain in the ass, it is easier to c&p lines in the xml file Jul 29 15:55:47 Ge0rG, intellij and android studio both do that Jul 29 15:56:01 pfn: cool. then I finally need to switch Jul 29 15:56:12 Ge0rG, I'd prefer intellij over android studio, though Jul 29 15:56:16 what is the RAM footprint of android studio vs. eclipse? Jul 29 15:56:21 Ge0rG, particularly if you have any interest in continuing with scala Jul 29 15:56:26 or that of intellij, for that matter Jul 29 15:56:37 does it matter? Jul 29 15:56:38 heh Jul 29 15:56:49 jvm heap is about 650mb for 64bit instance Jul 29 15:57:08 actual resident is about 900mb for mr Jul 29 15:57:09 pfn: Not on the device I think. But sure, feed it dex bytecode across the wire and devices can execute it. Jul 29 15:57:09 me Jul 29 15:57:20 kjeldahl, sure, on-device Jul 29 15:57:30 kjeldahl, you just need to store it to disk and load it with a classloader a la java Jul 29 15:57:35 pfn: From jvm bytecode? Jul 29 15:57:40 no, dex bytecode Jul 29 15:57:44 pfn: Ah, that's something different. Jul 29 15:57:49 but dexers are already opensource Jul 29 15:57:50 :p Jul 29 15:58:00 and bytecode to dex is a direct translation Jul 29 15:58:03 if you want it, it's there... Jul 29 15:58:08 just so incredibly slow Jul 29 15:58:16 I think there's a googlecode project for doing just that Jul 29 15:58:23 pfn: Ok, thanks. Jul 29 15:58:43 didn't square have one ? Jul 29 15:58:45 pfn: my laptop has only 4gb, and chrome+eclipse are really killing it. I need some mitigation before I can upgrade hardware Jul 29 15:58:51 i thought they used it for Mockito Jul 29 15:59:18 Ge0rG me too, 4G. i went to firefox + unloadTab Jul 29 15:59:24 any people here who develop Android NDK on Ubunut Linux? Jul 29 15:59:31 *Ubuntu Jul 29 16:00:09 Ubuntu Linux, yes, NDK, no, not much. What's your question? Jul 29 16:00:14 Ge0rG, well, you'll find they have a roughly similar memory footprint, I'm sure Jul 29 16:00:23 Ge0rG, the 32bit idea is less than the 64bit of course Jul 29 16:00:26 so ymmv Jul 29 16:00:27 clb, just ask your question Jul 29 16:00:28 Ge0rG out of the ides; eclipse 3.8.2 platform runtime + adt performed the best for me, taking up between 350-450mb Jul 29 16:00:43 I'm thinking if the preferred/common setup is to download the SDK and NDK .tgz from the google websites, unzip them, run tools/android to update to newest, and add the relevant binary dirs to PATH? Jul 29 16:00:48 my idea with 2 projects open has about 900mb resident Jul 29 16:00:59 clb, sure Jul 29 16:00:59 shit Jul 29 16:01:46 and then the gradle daemon is taking about 300mb Jul 29 16:01:47 I guess what I was doubting is, if instead there would be some automated apt-get procedure to stay up to date with the latest SDK and NDK install. But there is no such thing? Jul 29 16:02:00 clb, doubting = question/asking Jul 29 16:02:02 != Jul 29 16:02:15 why is it that most every non-native english speaker seem to think that doubt = question Jul 29 16:02:22 pfn: huh? Jul 29 16:02:43 clb, android update sdk Jul 29 16:03:01 for ndk, no Jul 29 16:03:01 Regarding the ndk stuff; wouldn't you just develop your native modules independently, and package the libs inside the normal apk, mostly like any other (non-native) libs. Jul 29 16:03:04 just download and unpack Jul 29 16:03:17 kjeldahl, it'd be nice to work on it all in one cohesive project... Jul 29 16:03:42 kjeldahl, oh yeah, iirc you can write maven plugins with groovy Jul 29 16:04:03 pfn: AS+gradle can barely compile java projects. I think you're asking a lot! Jul 29 16:04:28 * pfn just avoids gradle and maven altogether Jul 29 16:04:30 * pfn shrugs Jul 29 16:04:32 and ant, for that matter Jul 29 16:04:35 pfn: groovy and java are about the same abstraction level, with different syntax. Not my idea of fun, but YMMV. Jul 29 16:04:41 maven <3 Jul 29 16:05:15 does anybody like the new gradle system :P Jul 29 16:05:24 i like the build flavors thing Jul 29 16:05:27 about it Jul 29 16:05:32 I never tried it Jul 29 16:05:47 With the effort google is putting into the gradle plugin, I think it will be hard to avoid. But I did notice sbt (the scala build tool) is already able to pull stuff out of the android plugin and use it directly (support for incremental dexing for instance). Jul 29 16:05:49 what about build flavors do you like, that you can change your package name? Jul 29 16:05:54 that's about the only useful thing I see in it Jul 29 16:06:10 pfn different source sets ? Jul 29 16:06:23 g00s, that sounds entirely terrible Jul 29 16:06:29 hmmh, I unzipped to ~/android-sdk-linux and added to .bashrc export PATH=~/android-sdk-linux/tools:~/android-sdk-linux/platform-tools:$PATH Jul 29 16:06:32 * pfn tries to figure out where the hell vst is located Jul 29 16:06:55 but when I run 'adb devices', I get 'bash: ~/android-sdk-linux/platform-tools/adb: No such file or directory' Jul 29 16:07:35 clb, wrong 64 vs. 32 bit sdk Jul 29 16:08:55 I have 64-bit ubuntu, so I should download 64-bit SDK, right? Jul 29 16:09:14 Hello. Generic programming question: given a number, how can I divide the screen in the fairest and non wasting space manner? Jul 29 16:09:26 there is a 64bit android sdk now? Jul 29 16:09:30 kjeldahl do you know what gradle task i should make my custom task dependOn so that source code generation goes before assembleDebug/Release ? Jul 29 16:09:42 usually the no such file or directory was an error that you're missing some 32bit libraries Jul 29 16:11:29 sonOfRa: the SDK download seems to be same for 32-bit and 64-bit, NDK download is separate for 32-bit and 64-bit Jul 29 16:11:30 well, if there's no 64bit sdk, then yes, you're missing the 32bit userspace on a 64bit system Jul 29 16:11:38 clb, then you're missing the 32bit userspace Jul 29 16:11:59 thanks, looking into that now Jul 29 16:13:13 g00s: Unfortunately, I do not. That was part of my criticism that the build process is entirely un-documented, and since it doesn't follow the "regular" build process either, what you are trying to do might not be possible. Jul 29 16:13:55 yeah, i can't figure out the order of things, its like a magic pile of mush Jul 29 16:14:42 g00s: I tried to go that route for adding kawa support initially, and ended up writing a gradle plugin for kawa, inheriting from the java plugin, and when I was all done, the android plugin spit me in the face and said I was not allowed to build on the java plugin. Not fun. The plugin I wrote was like 1k of java code lines. Just for a simple compilation step. Jul 29 16:14:51 * kjeldahl throws up Jul 29 16:15:11 kjeldahl, and yes, sbt for android building is far superior Jul 29 16:15:14 * g00s cries Jul 29 16:15:40 I can tell you where to look though... The build tools in the Google repositories. There's a module named AndroidBuilder, and a few more. Jul 29 16:15:56 kjeldahl ok, thanks. i'll have a look Jul 29 16:15:59 androidbuilder is so poorly documented :-/ Jul 29 16:16:03 But it has it's own conventions and processes, again, totally undocumented. Jul 29 16:16:07 * pfn uses androidbuilder extensively in his plugin Jul 29 16:16:16 * kjeldahl applauds Jul 29 16:16:21 pfn so are you using sbt, or your own thing ? Jul 29 16:16:27 I use sbt Jul 29 16:16:31 but I have my own plugin Jul 29 16:16:37 https://github.com/pfn/android-sdk-plugin/blob/master/src/tasks.scala Jul 29 16:17:24 ah, ok so this works with sbt Jul 29 16:17:29 yes Jul 29 16:17:36 pfn: I may very well have bumped into your plugin when I've looked at the build process, so my references to sbt and AndroidBuilder may actually be to your plugin. I only looked at it briefly. Jul 29 16:17:55 pfn: Good job by the way! Jul 29 16:18:32 thanks Jul 29 16:18:45 ") Jul 29 16:19:24 pfn: If you ever abstract out the scala part to be any jvm language by simple configuration, please let me know, you'll have another "customer". Jul 29 16:19:46 kjeldahl, should be easily applied by using some plugin, I think Jul 29 16:20:12 kjeldahl, what languages were you interested in? Jul 29 16:21:06 pfn: Kawa (Scheme). It's as simple as calling "kawa -C source1.scm source2.scm", and it creates regular class files which can be lumped in with the rest of class files. Jul 29 16:21:47 pfn: At least before dependencies are taken into consideration (which many java build tools seem to get wrong anyway). Jul 29 16:23:29 kjeldahl, dunno how simple it is to write a plugin just for compile; shouldn't be super painful.... Jul 29 16:25:01 pfn: That's what I though as well, but it seems the age of "simple" has passed. At least from my experience with gradle and maven... I may give it a try later, at least now knowing what you're doing with AndroidBuilder... Jul 29 16:26:35 pfn: buildr was kind of simple, based on Ruby (which I did not know prior to using it in buildr), but I've only briefly started looking into incremental build support (which was when I bumped into your plugin probably). Jul 29 16:28:02 g00s: Regarding your questions in #gradle, just keep in mind that the Android plugin is not a regular plugin in gradle... Jul 29 16:28:16 oh god Jul 29 16:28:29 nothing about android is "regular" Jul 29 16:28:43 :) Jul 29 16:29:16 * kjeldahl nods Jul 29 16:29:42 gradle gradle gradle Jul 29 16:29:46 made it out of clay Jul 29 16:30:05 But at least using ANY separate build tool now makes it a lot easier to skip most of the IDEs, and use Emacs/VIM or whatever! Jul 29 16:30:40 i was using an + ivy for a while and that worked fine :| Jul 29 16:30:43 *ant Jul 29 16:30:52 * kjeldahl pimps https://github.com/mariusk/android-with-emacs to anybody considering using emacs Jul 29 16:31:46 kjeldahl heh, i was looking at this too http://roupam.github.io/ Jul 29 16:31:57 but for ios, i think i will stick to xcode Jul 29 16:32:39 Maybe I'll look into yasnippet. Jul 29 16:33:16 man, why are all the local stores sold out of the nexus 7 already... Jul 29 16:33:30 .. and auto-complete. I already tried CEDET/Semantic which I did not like. Jul 29 16:34:03 g00s: Yeah, iOS is even more "special" than Android. Dangerous to stray away from the well-trodden path. Jul 29 16:34:07 if I use emacs, I do it in viper-mode, so I mighjt as well use intellij, heh Jul 29 16:34:41 you mean vim? ;-) Jul 29 16:35:30 clb, did someone replied to you already? Jul 29 16:35:31 well, I don't really use any vim features Jul 29 16:35:39 but yeah, I use intellij+ideavim Jul 29 16:35:53 clb, first: unzipping the NDK inside the SDK is a bad idea, better to keep them separated Jul 29 16:36:13 clb, or at least inside a directory called NDK within the SDK directory Jul 29 16:36:14 pfn: .. and gradle for building? What's left of Intellij? GUI editors? Jul 29 16:36:23 I use sbt for building Jul 29 16:36:33 pfn: Question still applies! Jul 29 16:36:43 clb, then: adding it to .bashrc is a bad idea also. it's not the proper place to put your environment variables Jul 29 16:36:43 intellij for project navigation Jul 29 16:36:57 oh Jul 29 16:36:59 yeah, project navigation is always a nice thing :| Jul 29 16:37:17 mastro: I did not unzip NDK inside SDK Jul 29 16:37:20 vim is great until you have 60 java files flying around Jul 29 16:37:26 You're pulling AndroidBuilder out of the google repos for your own sbt plugin and need an IDE for "project navigation"?? *lol* Jul 29 16:37:28 it'd be nice if the googleplex had a store onsite Jul 29 16:37:30 mastro: what is the proper place to put environment variables into? Jul 29 16:37:51 kjeldahl, it's nice, all sorts of java-based niceties, autocomplete, doc navigation, etc. Jul 29 16:38:14 no offense, btw! Yeah, I can imagine. Sounds great. Jul 29 16:38:19 clb, you should write it into the .profile file in your home folder, create it if needed. And write something like: export PATH="${PATH}:${ANDROID_SDK}/tools:${ANDROID_SDK}/platform-tools:${ANDROID_NDK_HOME}" Jul 29 16:38:37 clb, of course you should export ANDROID_SDK and ANDROID_NDK_HOME before that Jul 29 16:38:41 hehe http://www.theverge.com/2013/7/29/4567046/nokia-frustrated-by-microsoft-windows-phone-slow-progress Jul 29 16:38:51 clb: I would definitively keep the ndk and sdk separate, or you need to do work every time the sdk updates. Jul 29 16:39:06 mastro: thanks Jul 29 16:39:08 clb: Which is quite often these days! Jul 29 16:39:18 clb, setting them into .profile will grant you it loaded in the graphical interface too, meaning that those variables will be available in Eclipse / Android Studio too Jul 29 16:39:47 clb, finally, be aware that bash will look for a .bash_profile and ONLY IF there isn't one will go for .profile! Jul 29 16:40:05 clb, so if you have a .bash_profile file either delete it or duplicate the export there Jul 29 16:40:46 clb, ah... remember that any modification you do in .profile will not be visible until you re-login Jul 29 16:40:53 hmm, frys.com claims they have the 16gb nexus7 in stock Jul 29 16:41:11 clb, good luck Jul 29 16:42:44 Can I somehow create a gift ticket for my paid apps, and send to friends? So they can get my app without paying? Jul 29 16:42:54 mr_lou, no Jul 29 16:43:11 I was hoping alpha/beta testers would get that as a perk, but no.... Jul 29 16:43:57 Yes, that makes it hard to get any decent amount of testers... Jul 29 16:44:26 yea Jul 29 16:44:39 mastro: thanks Jul 29 16:44:44 kjeldahl this makes me shiver http://stackoverflow.com/questions/17144878/assemblerelease-task-dependency-ask-for-keystore-password Jul 29 16:45:13 just seems like terrible design Jul 29 16:45:21 pfn: Btw, do you have an estimate of the apk size of a minimal "one activity with a simple view" post-proguard when written in scala? In kawa I get it down to around 180kb, but it can be reduced further (half the compiler is still in the jar). Jul 29 16:45:48 clb, if you want to try it out without keeping logging out and in again just execute the .profile in your terminal and then try it out from within the terminal you executed it Jul 29 16:46:17 180kb seems big Jul 29 16:46:22 i remember makign 20kb apps Jul 29 16:46:35 clb, you do that by issuing this command in the terminal: . ~/.profile # (dot) ~/.profile Jul 29 16:46:46 lets see Jul 29 16:46:55 mastro: thanks, looks like it's working ok Jul 29 16:46:56 g00s: Most of the tools I've seen are designed to make java compile fast, not to make the build process simple and logical. That may be the problem... Jul 29 16:47:02 clb, it's not exactly the same of logging out and re-logging in :) cause every time you do that you append to PATH (in this case) Jul 29 16:47:06 kjeldahl, -rw-r--r-- 1 pfnguyen Administ 343440 Jun 26 16:13 src/timewidgets/bin/time-widgets-debug.apk Jul 29 16:47:20 pfn: Debug, that's before proguard, right? Jul 29 16:47:27 kjeldahl, after, always after Jul 29 16:47:41 -rw-r--r-- 1 pfnguyen Administ 570760 Jun 26 16:13 src/timewidgets/bin/classes.dex Jul 29 16:47:45 pfn: Ok, thanks. Nice to know. Clojure, last time I checked, was around 1mb. Jul 29 16:47:54 better to check dex sizes Jul 29 16:48:27 True, but for simple apps it's mostly libs/runtime code anyway I think. Jul 29 16:48:35 kjeldahl, anyway, yeah, compiling new languages in sbt is easy, you just can't do mixed-language dependencies (kawa -> java -> kawa, or vice versa) Jul 29 16:48:55 and you have to do the dependency crap yourself... Jul 29 16:49:09 pfn: Ok, thanks. Jul 29 16:49:16 I'm creating a widget with a customview, where would be the best place to save a reference to that view? I'm trying to save it to my MainActivity class, but some times i'm getting a nullpointerexception.. not sure why. Jul 29 16:49:31 Eppo, everything must be done after onCreate Jul 29 16:49:47 you cannot do anything with a context in the constructor or initializer Jul 29 16:49:57 gotta eat, laters! Jul 29 16:50:10 see ya kjeldahl Jul 29 16:50:21 thanks for the tip/help Jul 29 16:50:39 * pfn wonders how satisfying 16gb will be Jul 29 16:51:25 realistically, 75% of that right ? Jul 29 16:51:34 oh, flash size or memory ? Jul 29 16:51:39 nm Jul 29 16:51:56 Brian|CB: same boat. got my N7 on Friday, Chromecast shipped today Jul 29 16:51:59 on my old tab 10.1 I have 12gb free Jul 29 16:52:39 oh, lol, my scrollback buffer was pretty far back, you said that last week :) Jul 29 16:52:50 birbeck, 32 or 16gb? Jul 29 16:52:57 frys has some 16's in stock, I'm tempted to go buy Jul 29 16:53:03 16, my 8gb n7 was still doing me fine Jul 29 16:53:23 indeed Jul 29 16:54:05 i need to order a dozen more chromecasts though :) Jul 29 16:54:35 why so many? Jul 29 16:54:38 Yeah, I got my nN7 on Friday Jul 29 16:54:41 * pfn doesn't have a use for the chromecast at home Jul 29 16:54:43 Brian|CB, 16 or 32? Jul 29 16:54:44 And the post office has my Chromecast now Jul 29 16:54:45 D: Jul 29 16:54:49 all the best buys here sold out :( Jul 29 16:54:50 pfn: Do I look like a bitch? Jul 29 16:55:07 one for the living room, bedroom, second monitor at home and replace my Q at work Jul 29 16:55:10 I assume that means you got the 16 Jul 29 16:55:13 then a bunch for xmas gifts Jul 29 16:55:39 pfn: You assume wrong Jul 29 16:55:47 I guess you look like a bitch then Jul 29 16:55:47 birbeck: You got a Q?I Jul 29 16:55:48 :p Jul 29 16:55:49 I'm jelly Jul 29 16:55:53 woops Jul 29 16:55:54 wrong ping Jul 29 16:55:57 wait Jul 29 16:55:58 no Jul 29 16:55:59 right ping Jul 29 16:55:59 lol Jul 29 16:56:14 Brian|CB: yeah, it WAS cool, but google killed it with the latest google music and youtube Jul 29 16:56:23 Can you even use Q anymore? Didn't they remove it from pretty much everything? Jul 29 16:56:50 i have it on my desk at worked hooked up to a monitor and sound system. my team all has nexus devices so we pair to it and stream music while drinking beers on friday Jul 29 16:57:17 how do you stream music collaboratively with google music? Jul 29 16:57:20 that's one thing I'd like to have Jul 29 16:57:20 but now since its dead, im using my gtab 10.1 with 4.2.2 on it so we each have our own profiles... not as cool but gets the job done Jul 29 16:57:35 pfn: I'm actually working on an app for that Jul 29 16:57:35 :D Jul 29 16:57:43 pfn: everyone can add music from their own library to the queue Jul 29 16:57:44 Brian|CB, third party, you mean Jul 29 16:57:48 pfn: Yeah Jul 29 16:57:59 birbeck, so the chromecast has its own queue? (like the Q?) Jul 29 16:58:01 chromecast works the same way Jul 29 16:58:05 interesting Jul 29 16:58:07 pfn: It's based on https://github.com/simon-weber/Unofficial-Google-Music-API Jul 29 16:58:33 I wonder if there are any hdmi -> spdif converters Jul 29 16:58:36 since I don't have an hdmi receiver Jul 29 16:58:39 I just want it for music Jul 29 17:00:05 birbeck: You can play chromecast roulette (tm) on fridays then. All select a song then count down and click at the same time. The guy whose song starts playing has to drink.. But at least he got to select the music Jul 29 17:00:37 SimonVT: good idea, i bet i can make a drinking game based on that Jul 29 17:00:55 heh, i should have read your whole message Jul 29 17:01:03 good guys think alike ;-) Jul 29 17:01:05 Better game, everyone plays a song, and everyone drinks Jul 29 17:01:23 In addition to sending the audio output on the HDMI® channel, the converter also sends it simultaneously to an Optical Digital (Toslink) output, so you can send the audio to both your AV receiver over Toslink and your TV over the HDMI® cable. Jul 29 17:01:25 hmm, $60 Jul 29 17:04:44 pfn: link? Jul 29 17:05:46 http://www.monoprice.com/products/product.asp?c_id=101&cp_id=10110&cs_id=1011008&p_id=8145&seq=1&format=2 Jul 29 17:08:11 Anyone got any advice on implementing drop shadows in ANdroid? Jul 29 17:08:20 drop shadows for what? Jul 29 17:08:23 text? Jul 29 17:09:12 pfn https://code.google.com/p/android/issues/detail?id=39723 ; i think its lame this was reported in Nov 2012 and the api 17 x86 image still hasn't been fixed Jul 29 17:09:20 Buttons Jul 29 17:09:24 g00s, yes, I know, I starred it Jul 29 17:09:29 Brian|CB, use a 9patch with a drop shadow Jul 29 17:09:30 or if I could add it directly to the drawable shape xml I created for my background image Jul 29 17:09:31 that would also work Jul 29 17:09:40 but i filed a separate bug on x86 images not getting updated in a timely manner; err - never getting updated Jul 29 17:09:48 Brian|CB, could probably add it as a layer drawable Jul 29 17:10:03 Add it to the button drawable Jul 29 17:10:12 Also, fucking fuck fonts in Android Jul 29 17:10:19 Messing around with several drawables is probably going to be a hassle Jul 29 17:10:21 just use the standard fonts Jul 29 17:10:26 hmm, new release of ASB coming? Jul 29 17:10:28 I see 4.4 was tagged 'an hour ago' Jul 29 17:10:31 D: Jul 29 17:10:43 SimonVT: Thats what I figured. I just don't know enough about shape xmls Jul 29 17:10:46 I guess I'll have to read up Jul 29 17:10:52 YuviPanda, probably should start migrating to appcompat-v7 Jul 29 17:11:13 pfn: I have a patch in our repo for that, debating on wether we should move or not. Jul 29 17:11:13 I <3 appcompat Jul 29 17:11:13 So gud Jul 29 17:11:28 appcompat is nice Jul 29 17:11:29 I heard appcompat has a bug with toggling actionbar items to be enabled/disabled Jul 29 17:11:31 minor, but still Jul 29 17:11:34 overflow menu actually looks good on <3.0 Jul 29 17:14:48 got a solid reference to that? Jul 29 17:15:23 I guess I'm gonna go to frys and nab a 16gb nexus7 Jul 29 17:15:50 pfn: No balls Jul 29 17:15:53 go for the 32 Jul 29 17:15:55 D: Jul 29 17:16:54 pfn: What do you think of this implemenation: http://stackoverflow.com/a/15333015 Jul 29 17:16:57 Just curious Jul 29 17:16:59 It seems pretty solid Jul 29 17:20:42 frys doesn't have the 32 Jul 29 17:20:47 pfn: SUcks to suck Jul 29 17:20:50 at least you have a frys Jul 29 17:20:50 >.> Jul 29 17:20:56 it's sold out everywhere, and realistically, I don't need 32 Jul 29 17:20:57 pfn: Did you check best buy? Jul 29 17:20:57 O.o Jul 29 17:21:05 they're sold out, except in the boonies Jul 29 17:21:09 and I'm not gonna drive >1hr to get it Jul 29 17:21:10 Also, if you're gonna get a 16GB, why not go to Staples? Jul 29 17:21:14 THey have that $30 off deal Jul 29 17:21:23 pft, get the 64gb -- be a man. Jul 29 17:21:25 staples doesn't have them either Jul 29 17:21:35 Brian|CB, yeah, layer drawable is what I was suggesting, and that works Jul 29 17:21:35 pfn: Where do you live? It sounds like hell Jul 29 17:21:36 price match Jul 29 17:21:39 Brian|CB, california Jul 29 17:21:45 pfn: Oh god Jul 29 17:21:46 Nooo Jul 29 17:21:47 Brian|CB, $30 off also expired yesterday Jul 29 17:21:47 my future Jul 29 17:21:49 it hurts Jul 29 17:22:01 seems all the local nerds bought them all Jul 29 17:22:08 oh, yuck, you're talking about buying a nexus, not a sdcard. Jul 29 17:22:09 I wonder if the googleplex has an on-campus store Jul 29 17:22:13 get a real device. Jul 29 17:23:01 nexus is just a crippled dev-toy/demonstration device. Jul 29 17:23:02 looks like no Jul 29 17:23:45 crippled? Jul 29 17:23:51 especially the nexus 4. Jul 29 17:24:03 no otg, no sdcard, multitudes of issues. Jul 29 17:24:53 here we go again, pragma- ranting about lack of sdcard Jul 29 17:24:54 * pfn hasn't found a use for otg, or sdcards Jul 29 17:24:56 Jul 29 17:25:15 evanc, the campus should open a store so people can drop by and buy, damnit :p Jul 29 17:25:24 all the silicon valley nerds have bought everything up already Jul 29 17:25:32 pfn: there is a store, but you still can't come by unescorted, haha Jul 29 17:25:43 pfn: or do you mean a store for devices? Jul 29 17:25:48 evanc, devices Jul 29 17:26:08 ah, right. I was talking about the on-site version of http://googlestore.com/ Jul 29 17:27:51 evanc: there is a google store on campus? ive never seen it Jul 29 17:29:31 but yeah, they should open a beta nexus/chrome store in the lobby of building 44, get rid of the arcade :) Jul 29 17:31:09 birbeck: get rid of an arcade? you just pissed off a ton of coders Jul 29 17:31:24 birbeck, swag shop Jul 29 17:31:36 Napalm: i dont think anyone ever uses it Jul 29 17:32:09 fastest way to add 10,00,000 contacts to android phonebook? Jul 29 17:32:29 pragma- the weird thing is, i get the impression the n7 is one of the (only?) really successful android tablets Jul 29 17:32:37 if its just a toy Jul 29 17:32:54 a successful toy Jul 29 17:32:58 like barbie Jul 29 17:33:03 :) Jul 29 17:33:40 does ListFragments automatically restore the list and it's content using the saveinstancestate bundle? Jul 29 17:34:08 no Jul 29 17:36:24 JakeWharton: I see you've tagged 4.4 on the repo, but no push to maven central yet? Jul 29 17:36:30 (For ASB) Jul 29 17:36:41 (ABS, I mean) Jul 29 17:38:04 evanc are you familiar with the gradle stuff ? Jul 29 17:38:20 would you know what task i need to dependOn for java code generation? Jul 29 17:38:35 (this needs to happen before assembleDebug/Release) Jul 29 17:39:10 g00s: tft/galaxy tab is very popular too. Jul 29 17:39:51 g00s: Gradle is Satan Jul 29 17:39:52 I think tablets are silly though -- I'd rather just get a laptop (which can run an android emulator if you wanted to) Jul 29 17:40:09 pragma-: Tablets are not silly Jul 29 17:40:13 Tablets are silly. Jul 29 17:40:15 They have very applicable use cases Jul 29 17:40:16 >.> Jul 29 17:40:22 Just because you don't need it, doesn't make it silly Jul 29 17:40:28 Silly, says I. Jul 29 17:41:06 g00s: not at all Jul 29 17:42:23 ok, thx Jul 29 17:43:13 YuviPanda Jul 29 17:43:19 shreesh: Jul 29 17:43:22 ? Jul 29 17:44:24 pfn: hm strange. I have a ListFragment where onDestroyView(..) is called and it's added to the backtask. Later onCreateView(..) / onActivityCreated(..) / onResume(..) is called on it again. And the list is already there nice and populated. So some sort of caching is happening. Jul 29 17:44:34 s/backtask/backstack Jul 29 17:45:04 but onSaveInstanceState(..) hasn't always been called Jul 29 17:45:36 pfn no bestbuys in phoenix have the n7 either; i wonder if they even really got them ? Jul 29 17:45:54 g00s: U jelly of my Nexus7 32GB? >:D Jul 29 17:45:59 ship to store: 3-5 days for every store Jul 29 17:46:21 Brian|CB no, i was going to let you beta test the first batch for me Jul 29 17:46:31 Lolololol Jul 29 17:46:38 i'm always happy waiting a few months to hear the verdict Jul 29 17:47:20 i remember the first batch of n7 had a display problem Jul 29 17:47:25 g00s: It's beautiful Jul 29 17:47:28 the screen is so pretty it makes me cry Jul 29 17:47:39 Also the changes in form factor go a long way Jul 29 17:47:49 I'm definitely more impressed by the impact that change had than I expected Jul 29 17:47:54 gradle has been making my cry enough, i dont want to cry any more Jul 29 17:48:02 I'm getting my 16gb right now Jul 29 17:48:10 pfn: Congrats Jul 29 17:48:14 pfn: Welcome to the good life Jul 29 17:48:21 pfn oh yeah, and the Fry's here in az is run by vigilantes Jul 29 17:48:27 no way i'd buy anything there Jul 29 17:48:48 I don't think you understand what vigilantes means Jul 29 17:49:06 no i threw that out Jul 29 17:49:13 Unless you're a thief or something... Jul 29 17:49:23 snowpong, maybe, I wouldn't expect it to, but I suppose it might save the list for you if it's simple Jul 29 17:52:09 pfn google is doing that same day delivery Jul 29 17:52:21 http://www.google.com/shopping/express/about/ Jul 29 17:52:28 become a tester ! Jul 29 17:53:26 g00s: My friend has that already Jul 29 17:53:27 in cali Jul 29 17:53:28 it's so nice Jul 29 17:54:01 but the stuff is often more expensive than amazon Jul 29 17:54:12 so if you have prime, it's a matter of "can i wait two days" Jul 29 17:54:23 (to save some money) Jul 29 17:54:33 but whenever i want something, i comparison shop. whichever site has it cheaper gets my business Jul 29 17:54:40 unless it's like a saturday and i want it that day Jul 29 17:55:25 amazon customer service is pretty good "oh, my $300 camera didn't show up" … "ok, we just sent you a new one overnight!" Jul 29 17:55:32 $3000 Jul 29 17:55:37 really? :| Jul 29 17:55:44 well i guess they could confirm that with tracking numbers Jul 29 17:56:57 but realistically, it's rare i need something the same day Jul 29 17:57:16 so im not sure i'd pay the premium for shopping express over prime (which i also use for free video content) Jul 29 17:57:16 food is all you /need/ Jul 29 17:57:23 :) Jul 29 17:57:24 i get my food at work :P Jul 29 17:57:31 I get your food at work Jul 29 17:57:33 Hue Jul 29 17:57:41 most of my orders are like "im running low on soap" Jul 29 17:57:57 so ican wait a few days Jul 29 17:58:23 don't you have the soap app :P Jul 29 17:58:31 Your mom is a soap app Jul 29 17:58:37 I'm gonna make a soap request to order more soap Jul 29 18:00:59 alright, home at last Jul 29 18:01:16 SimonVT: hey, just wanted to say thanks for helping me out yesterday, i knew that a bound service is not kept after the app closes, just didnt realize I used bindService :D you know every once in a while you just look at your code and think: "Where the heck is that mistake I made?" and then someone tells you and you are like "Oh shit I feel stupid now" Jul 29 18:10:44 weee, fastboot oem unlock Jul 29 18:10:58 YuviPanda: it's there Jul 29 18:12:24 https://plus.google.com/photos/111751695436781052143/albums/5906101823385278273/5906101821614007794?pid=5906101821614007794&oid=111751695436781052143 Jul 29 18:12:27 :) Jul 29 18:13:14 need a matte screencover Jul 29 18:13:18 glossy is so damn overrated Jul 29 18:15:50 pfn: sweet droid Jul 29 18:15:58 JakeWharton: http://search.maven.org/#search%7Cga%7C1%7Cactionbarsherlock doesn't agree, but I guess that's just slow Jul 29 18:16:06 that's a solr index Jul 29 18:16:16 http://repo1.maven.org/maven2/com/actionbarsherlock/actionbarsherlock/4.4.0/ Jul 29 18:16:22 right Jul 29 18:16:22 * pfn twiddles thumbs for first boot Jul 29 18:16:24 ty, JakeWharton Jul 29 18:16:26 so slow since I unlocked Jul 29 18:16:40 evanc, I know, it's all nicked up and silvered Jul 29 18:17:17 evanc, all it does is show a clock all day, I should use it more Jul 29 18:19:14 wow, this firstboot is so slow Jul 29 18:19:25 I wish I could actually connect and logcat but no..... Jul 29 18:23:41 pfn just get the 2013 n7 ? Jul 29 18:24:07 yes Jul 29 18:24:14 oh well, restarted it again and it's fine Jul 29 18:25:24 probably should have turned off after unlocking Jul 29 18:26:56 Anyone know how to doa linear gradient with multiple "points" along the gradient? Jul 29 18:28:37 If I use stlport_static, at runtime I get a Zdlpv symbol could not be found. If I use gnustl_port, at compile I get undefined reference to _M_allocate/deallocate. What's going on? Jul 29 18:30:56 Brian|CB: whats the prob ? Jul 29 18:31:14 a simple linearGradient takes an array of colors Jul 29 18:31:23 kr...@android.com = kroot? Jul 29 18:31:28 you mean you want to define the unit distance of those colors ? Jul 29 18:31:47 StingRay_: Like, in XML, when you define a shape witha linear gradiant. YOu have start color and end color attributes Jul 29 18:31:53 how do you define a list of colors for that? Jul 29 18:32:05 in xml ? Jul 29 18:32:25 yeah Jul 29 18:32:28 is there a way to conditionally specify one view versus another within a layout? Jul 29 18:32:47 What I am trying to do is either use a MapView (from google) or an ImageView within a ListView item Jul 29 18:32:54 savant: You can use layouts that are in the buckets? Idk what your use case is though Jul 29 18:33:15 essentially i have a ListView being populated from an autocomplete resultset Jul 29 18:33:21 Brian|CB: long time since i used them that way Jul 29 18:33:32 not sure you can in xml, easy in code though Jul 29 18:33:34 and each item in the listview has some text and an image (image on the left, text on the right) Jul 29 18:33:40 StingRay_: So any ideas though? Cause I have the android:startColor and android:endColor, but idk how to do in betweens Jul 29 18:33:40 :S Jul 29 18:33:52 centerColor Jul 29 18:33:54 I'm not sure it's really the best idea to use code for this if it can be done in XML Jul 29 18:33:56 but then your done Jul 29 18:34:06 yeah, I saw center color, but I want more than 1 possibly Jul 29 18:34:15 your screwed then Jul 29 18:34:20 unless you use 2 Jul 29 18:34:24 :) Jul 29 18:34:26 Brian|CB: anything else I can clarify? Jul 29 18:34:27 Does anyone know a lot about the new nexus 7? Are there any new resource qualifiers necessary for it (is it still xhdpi and what not)? Jul 29 18:34:28 in shapes Jul 29 18:35:36 savant: I'm not sure I see what you're triyng to do yet, please expalin from start to finish maybe what the idea of your problem is Jul 29 18:35:42 e.g. what you are trying to implement Jul 29 18:36:04 I am trying to create a ListView where the items within the listview have an image and some text Jul 29 18:36:21 the image may be an image from somewhere on the internet or a google map of a location Jul 29 18:36:51 what I have so far is a ListView whose items are composed of an ImageView and a TextView Jul 29 18:37:13 so I'd like some of the items to have MapViews instead of an ImageView Jul 29 18:37:26 savant: So have the list view populate its children with two different items, one type of item being maps and one type being images? Jul 29 18:37:26 depending upon the data held within the item Jul 29 18:37:46 lol Jul 29 18:38:13 sorry, im fairly new to android dev! Jul 29 18:38:34 so i guess my next thing is that I'm using an adapter for the listview Jul 29 18:38:38 AutocompleteAdapter (woot!) Jul 29 18:38:51 and it has a method called getNewView which returns AutocompleteItemView Jul 29 18:38:59 there is no way at that point to know the data incoming Jul 29 18:39:09 i haven't looked at android developers on google groups for a loooong time; this is the first post i see https://groups.google.com/forum/#!topic/android-developers/abBQIjt-v6g Jul 29 18:39:20 so I dont know that I should be returning a different type of item (one with maps, for example) Jul 29 18:39:40 the AutocompleteItemView is the layout that contains the TextView/ImageView Jul 29 18:40:51 the getNewView() method is something I use within an overriden getView (in a parent class) that handles getting a new view or not Jul 29 18:40:52 hmmm Jul 29 18:41:30 i'll just override both I guess. Jul 29 18:42:04 savant: it really sounds like your just chatting to yourself, in your head, but typing it out too, are you meaning to do that ? :) Jul 29 18:42:16 StingRay_: yeah i do that a lot Jul 29 18:42:21 im bouncing ideas of you guys! Jul 29 18:42:42 thats gotta be better than me saying "show me da codez, i kno u haz dem" Jul 29 18:42:49 better to ask direct Jul 29 18:43:07 thats what I was doing, then i read through my code and realized i could just do something slightly differently here Jul 29 18:43:20 I need to do x,y and z, I'm thinking a or b, what do you think ? Jul 29 18:43:27 i asked Jul 29 18:43:32 some1 may say hey, how about c :) Jul 29 18:43:37 "hi guys, im trying to do x, here is what i did and what I tried, any ideas?" Jul 29 18:43:39 oh musta missed it Jul 29 18:43:51 nah its probs my fault Jul 29 18:43:52 my bad Jul 29 18:43:54 im a noob Jul 29 18:44:08 ok so question Jul 29 18:44:11 wtf do I know, i used to write php code all day before moving into ops :P Jul 29 18:44:15 does it need to be a mapView ? Jul 29 18:44:27 or an image of that location that happens to be a map ? Jul 29 18:44:32 I'd imagine a MapView is the best thing to do here Jul 29 18:44:41 in terms of google not changing their api or something funny Jul 29 18:44:46 heavy Jul 29 18:44:50 true Jul 29 18:44:54 i could just construct the images Jul 29 18:45:00 better :) Jul 29 18:45:01 image urls Jul 29 18:45:13 im basically porting an internal ios app to android Jul 29 18:45:20 and looking for analogues Jul 29 18:45:34 ok so now your describing and requiring the functionality of about 99% of listViews in use Jul 29 18:45:34 and learning android at the same time Jul 29 18:45:42 and about 80% of all the guides and tutorials Jul 29 18:45:47 Fuckin Android, why you no let me use alignment/gravity for Shape drawables? Jul 29 18:46:01 StingRay_: :D Jul 29 18:46:16 Brian|CB: did you read my reply Jul 29 18:46:43 StingRay_: actually, the only docs that were of any use are the official docs, and even then they werent meant for the absolute beginner like me Jul 29 18:47:09 if you know of better places for me to learn (by example even!) I would appreciate being pointed towards them. Paid is fine, my company is paying for me to learn on the job Jul 29 18:47:20 I've got a few books already Jul 29 18:47:43 savant: key to learning is really simple Jul 29 18:47:55 learn enough so you can ask an informed question :) Jul 29 18:48:13 StingRay_: Reply re what? Jul 29 18:48:26 Brian|CB: your gradient question Jul 29 18:48:45 yes well thats awesome but eventually I have to ask noob questions to get to the part where I ask informed questions Jul 29 18:48:49 * capella loves this channel :p it has attitude Jul 29 18:48:53 meh Jul 29 18:48:58 im the channel troll in #cakephp Jul 29 18:49:21 its great, this channel has had way better responses than there Jul 29 18:49:32 well, at least the questions are better said Jul 29 18:49:42 the answers there are informed, just the questions leave something to be desired. Jul 29 18:49:47 savant: what do you have working atm ? Jul 29 18:49:51 StingRay_: I think so? idk lol Jul 29 18:49:56 oh i have most of an app working Jul 29 18:50:20 savant: you mean to tell me the ios version has actual active map views in this list ? Jul 29 18:50:25 yeah Jul 29 18:50:26 if so what app ? Jul 29 18:50:30 SeatGeek. Jul 29 18:50:30 I gotta see this Jul 29 18:50:43 download it Jul 29 18:50:44 install it Jul 29 18:50:46 its awesome Jul 29 18:51:00 * StingRay_ looks for closest ios device Jul 29 18:51:07 i didnt have anything to do with it. maybe i updated some docs for our devs, but thats it Jul 29 18:51:22 dam, it's turned off, that 10 minutes to go make a coffee Jul 29 18:51:39 Got mah chromecast. Woot. Jul 29 18:51:45 while it sucks in all the ambient "amazing" "magic" and "fantastic" so it boots Jul 29 18:52:02 yea im an android user Jul 29 18:52:07 probs the only one left at my company Jul 29 18:52:09 it rulez Jul 29 18:52:23 oh no, it booted quite quick…cool Jul 29 18:52:54 what the hell do I need to download for addon-google_apis-google-14 Jul 29 18:53:04 maven-android-sdk-deployer sucks Jul 29 18:53:37 no ipad version, tut tut Jul 29 18:53:43 oh Jul 29 18:53:46 thats released today! Jul 29 18:53:53 oh ffs Jul 29 18:53:56 apple dev stuff got hacked last week Jul 29 18:54:00 1st screen a search Jul 29 18:54:02 so we held off on that Jul 29 18:54:11 its better on ios Jul 29 18:54:13 ipad* Jul 29 18:54:20 I dont know any performers or events or locations Jul 29 18:54:24 lady gaga Jul 29 18:54:25 give me one :) Jul 29 18:54:32 yankees Jul 29 18:54:32 who's he ? Jul 29 18:54:39 the mars volta Jul 29 18:54:44 madison square garden Jul 29 18:54:46 zimbabwe Jul 29 18:55:08 so where are these maps ? Jul 29 18:55:24 in the autocomplete Jul 29 18:55:30 oh wait maybe thats only on the new app Jul 29 18:55:35 idk its def there for my ipad Jul 29 18:55:39 let me get a screenshot! Jul 29 18:55:45 not here Jul 29 18:55:49 and these are images neways Jul 29 18:55:55 not map views Jul 29 18:56:08 oh hang on Jul 29 18:56:16 maybe I should have shared my location :) Jul 29 18:56:18 ha Jul 29 18:56:44 ha, not asking me now Jul 29 18:56:50 shouldn't made a diff really Jul 29 18:56:59 I wish devices would choose one orientation for their micro use port Jul 29 18:57:44 usb Jul 29 18:58:13 savant: but neways, that autocompleteList view thing, they are not real maps Jul 29 18:58:26 cant be, they are not functional Jul 29 18:58:35 so it would be a big waste Jul 29 18:58:39 oh they are small maps Jul 29 18:58:42 use the ios sdk Jul 29 18:58:57 na, cant be Jul 29 18:59:04 you may give it a location Jul 29 18:59:06 i mean i can try and ask the ios devs Jul 29 18:59:10 >Change nothing Jul 29 18:59:12 >get null pointer Jul 29 18:59:15 but it will give you a static bitmap back Jul 29 18:59:15 but those bros are in australia or something Jul 29 18:59:17 GOod game google. Jul 29 18:59:18 GOogle game. Jul 29 18:59:23 yeah it uses a static bitmap Jul 29 18:59:40 savant: ok so my point is Jul 29 18:59:43 they are not mapViews Jul 29 18:59:47 they are just imageViews Jul 29 18:59:49 :) Jul 29 19:00:29 well they are whatever the iphone uses for mapviews Jul 29 19:00:36 only it generates a small thumbnail Jul 29 19:00:56 a mapView is something that you interact with Jul 29 19:01:14 http://cl.ly/image/3d1w1F2t2a2G Jul 29 19:01:14 ^ picture of it in action on my ios device, probably a few dev builds old Jul 29 19:01:28 well thats what they use in the ios code im looking at Jul 29 19:01:36 in any case, thats not what I use on android then, huh? Jul 29 19:01:58 I would assume not, very much not…but never used maps tbh Jul 29 19:02:18 >Comment out code Jul 29 19:02:19 I would look at asking maps api for thumbnails Jul 29 19:02:21 >Still get error on the line Jul 29 19:02:21 Wut Jul 29 19:08:12 My Android studio is just going apeshit righ tnow Jul 29 19:08:14 and throwing bogus errors Jul 29 19:08:20 and breaking all of my code Jul 29 19:08:22 Wtf Google Jul 29 19:08:23 What the fuck Jul 29 19:08:25 fft android studio Jul 29 19:08:30 just use sublime text and the cli Jul 29 19:09:29 Brian|CB, just clean build, usually the answer to everything Jul 29 19:09:47 savant: are you teh same savant from #quake back in the day? Jul 29 19:09:52 nah Jul 29 19:09:59 dont think so Jul 29 19:09:59 cool Jul 29 19:10:04 i cant remember playing quake Jul 29 19:10:10 pfn: Did that already Jul 29 19:10:12 im probs too young for that Jul 29 19:10:12 even rebooted studio Jul 29 19:10:16 still juts throwing bogus errors Jul 29 19:10:17 >. Jul 29 19:10:22 Now my app istelf is crashing Jul 29 19:10:23 for like Jul 29 19:10:25 wtf reasons Jul 29 19:10:25 D: Jul 29 19:10:41 Brian|CB: In project root, just "./gradlew clean assembleDebug". Jul 29 19:10:46 Doesn't involve AS at all. Jul 29 19:10:58 Ok Jul 29 19:11:04 so now I have a weird bug where I can't se the size of a shape Jul 29 19:11:05 O.o Jul 29 19:11:32 gradlew doesn't get generated automatically... Jul 29 19:11:55 If the project was started from AS, it does, right? Jul 29 19:12:00 If not, just copy it in. Jul 29 19:12:11 android create and update project should be updated to handle the new project layouts already Jul 29 19:12:35 i think that would bust the ADT Jul 29 19:12:52 i had to do some major wackery getting the gradle dir structure working in plain intellij Jul 29 19:13:01 as an option, of course Jul 29 19:13:14 but yeah, they are hopefully on it :| Jul 29 19:13:34 yeah, really, don't bother with gradle yet, it's so far from prime now Jul 29 19:13:39 I think "cp -Rv /opt/android-studio/sdk/tools/templates/gradle/wrapper/* ." when in project root brings it in at least. That's what I've done for "new projects" outside of AS at least. Jul 29 19:14:01 kjeldahl, interesting... Jul 29 19:14:20 didn't really there's a project template in the sdk Jul 29 19:14:27 that's kinda useful Jul 29 19:14:34 realize Jul 29 19:14:34 lol, trust me, it is. Jul 29 19:15:43 build faster damnit Jul 29 19:15:49 ha Jul 29 19:18:17 hello peeps, in android studio 0.2 how can I add a Maven dependency Jul 29 19:20:08 tagrudev, add it to your build.gradle and reopen the project Jul 29 19:20:40 maven as in maven central, I assume, and not an arbitrary pom project Jul 29 19:20:50 tagrudev pfn: No need to reopen, just press the "gradle sync" button (usually the leftmost android button, next to download button I think). Jul 29 19:21:17 indeed, I don't use studio to know Jul 29 19:21:22 StingRay_: Any bright ideas on how to align a shape to a "wall" Jul 29 19:23:18 pfn, https://github.com/nostra13/Android-Universal-Image-Loader I am trying Jul 29 19:23:25 to add this one in my project Jul 29 19:24:12 Brian|CB: a what ? Jul 29 19:24:22 I get the shape bit Jul 29 19:24:30 well I presume shapeDrawable Jul 29 19:24:36 wallView ? Jul 29 19:24:38 Like, if I want to have the rectangle only take up 10% of the image for example, and then I want that 10% to be the "bottom" Jul 29 19:24:39 wallAdapter Jul 29 19:24:41 :) Jul 29 19:24:45 if that makes sense Jul 29 19:24:45 tagrudev: That one is easy, just add the compiled jar, in dependencies "compile files('libs/universal...jar')" Jul 29 19:24:46 :S Jul 29 19:25:25 kjeldahl, well isn't it better to add it from maven dependency Jul 29 19:25:29 ? Jul 29 19:25:30 Brian|CB: well the dimensions are only known at runtime right ? Jul 29 19:25:50 but alignment in a frameLayout would be easy enough Jul 29 19:25:58 tagrudev: If a proper version is in a maven repository, probably yes. If not... Jul 29 19:26:15 gravity, bottom etc :) Jul 29 19:26:29 I'm just trying to use the layer-list Jul 29 19:26:35 and have one list be aligned to the bottom of the overall drawable Jul 29 19:26:36 D: Jul 29 19:26:37 well I guess I would add it as a jar then ty kjeldahl Jul 29 19:26:41 tagrudev: for maven, you need "buildscript { repositories { mavenCentral() } .. }} Jul 29 19:27:05 kjeldahl, yeah that's the default I think in 0.2 Jul 29 19:27:18 Then in dependencies: "compile 'some.namespace.:universal-v-1:1.0.0'" Jul 29 19:27:38 If you can figure out the exact package names and versions etc. If it's not on the Github page, I'm not sure it will be easy. Jul 29 19:27:41 that's what I am looking for let me try it out Jul 29 19:27:43 (the maven dependency, I mean) Jul 29 19:28:05 Brian|CB: in all honesty sounds like you should go customDrawable and do what you want in onDraw Jul 29 19:28:21 you can get view bounds there and do what you want Jul 29 19:28:21 Just include it like the android support library, I think that is pulled from a custom local maven repo from the sdk. Jul 29 19:28:31 StingRay_: But it's just a bunch of simple shapes :S Jul 29 19:28:38 So I'd rather not override drawables if not entirely necessary Jul 29 19:28:39 D: Jul 29 19:32:35 is there a directory on Android filesystem that I can use for temp data storage for an application (NDK)? Jul 29 19:32:56 something where I can create directories and files, and they'd persist at least until I close the app, no need to persist between runs Jul 29 19:33:59 clb, your app data folder Jul 29 19:34:32 clb: Environment.getExternalStorageDirectory() Jul 29 19:34:38 that annoying moment when you realize that the "right" way to do something requires extensive refactor Jul 29 19:34:55 kjeldahl, external storage isn't executable. Jul 29 19:34:55 http://developer.android.com/reference/android/os/Environment.html#getExternalStorageDirectory() Jul 29 19:35:04 at least it shouldn't be on most devices Jul 29 19:35:11 Mavrik: "Temp data storage"? Jul 29 19:35:28 doh, misread Jul 29 19:35:41 and, no, you shouldn't use external storage for that either Jul 29 19:35:51 there's a reason why you have getCacheDir() and getExternalCacheDir() Jul 29 19:36:02 which is meant for temporary storage and can be cleaned up by Android when running out of space Jul 29 19:36:29 Agree, if persistence is not a requirement. Jul 29 19:37:18 But it may typically be more for stuff that should be accessible from a computer as well, according to the docs. Jul 29 19:37:35 Mavrik: kjeldahl: thanks, I think those will get me going Jul 29 19:38:03 Is the cache stuff available across apps/ids? If not, that's something to keep in mind as well. Jul 29 19:38:40 internal cache dir isn't (since usually defaults to something like /data/data//cache) Jul 29 19:38:48 external is, but it's not really meant to be user visible Jul 29 19:39:02 (usually defaults to something like .android/cache/ on SD card) Jul 29 19:39:35 ok thanks Jul 29 19:44:09 sabton https://www.facebook.com/notes/kent-beck/when-worse-is-better-incrementally-escaping-local-maxima/498576730175196 Jul 29 19:47:47 hi all i need some help i'm new and im trying to make an app that store the weights that i use for my different exercise, so my first obstacle is, that when i press a button i want that start another activity but it doesn't work if i use this http://pastebin.com/L8nW3McY it doesn't work i really don't know why i put null, the fact is that i used to put "this" but if i put this eclipse show me error message so i apprec Jul 29 19:47:47 iate Jul 29 19:47:56 appreciate any help Jul 29 19:47:58 :) Jul 29 19:48:54 demonio: is this a school project ? Jul 29 19:49:24 demonio, uh, you're supposed to pass a context there (e.g. your activity object) not null Jul 29 19:49:30 passing null won't work. Jul 29 19:50:07 hellow? Jul 29 19:50:16 anyone here? Jul 29 19:50:37 nope. Jul 29 19:50:42 oh...:( Jul 29 19:51:27 Mavrik, thank's i'll try Jul 29 20:03:43 Mavrik, thanks it works properly :) Jul 29 20:05:14 kjeldahl, Could not find class 'com.nostra13.universalimageloader.core.DisplayImageOptions$Builder', referenced from method ... Jul 29 20:05:16 any idea Jul 29 20:05:32 in my build.gradle i have dependencies { Jul 29 20:05:33 compile files('libs/universal-image-loader-1.8.6-with-sources.jar') Jul 29 20:05:33 compile 'com.android.support:support-v4:13.0.+' Jul 29 20:05:33 } Jul 29 20:06:40 hold on Jul 29 20:09:13 tagrudev: Can you paste the source line where you get the error? Jul 29 20:10:08 protected ImageLoader imageLoader = ImageLoader.getInstance(); Jul 29 20:11:02 No, that's not it. Jul 29 20:11:12 kjeldahl, should I do something else for the dependency / Jul 29 20:11:16 Where you do DisplayImageOptions opts = new DisplayImageOptions.Builder() Jul 29 20:11:19 DisplayImageOptions options; Jul 29 20:11:32 DisplayImageOptions opts = new DisplayImageOptions.Builder() Jul 29 20:11:35 .showStubImage(placeholderid) Jul 29 20:11:37 .showImageForEmptyUri(placeholderid) Jul 29 20:11:38 ... Jul 29 20:12:40 i have this a class member and then in the onCreate Jul 29 20:12:41 I do Jul 29 20:12:41 options = new DisplayImageOptions.Builder().showImageForEmptyUri(R.drawable.ic_launcher).showImageOnFail(R.drawable.ic_launcher).resetViewBeforeLoading(true).cacheOnDisc(true).imageScaleType(ImageScaleType.EXACTLY).bitmapConfig(Bitmap.Config.RGB_565).displayer(new FadeInBitmapDisplayer(300)).build(); Jul 29 20:12:50 but I don't think that's the problem Jul 29 20:13:00 I think it can't find the lib classes Jul 29 20:13:47 yeah, I pasted the wrong lines. Yours look more correct. Same way that I do it. Jul 29 20:13:59 import com.nostra13.universalimageloader.core.DisplayImageOptions; Jul 29 20:14:06 You've got that one in, right? Jul 29 20:14:22 yep Jul 29 20:14:30 kjeldahl: is he not getting a build error ? or a runtime error ? Jul 29 20:14:59 StingRay_: I assumed build. tagrudev, build error, right? Jul 29 20:15:09 java.lang.NoClassDefFoundError: com.nostra13.universalimageloader.core.ImageLoader Jul 29 20:15:20 Yeah, or else would be classnotfoundexception etc. Jul 29 20:15:27 oh. Jul 29 20:15:54 ok so runtime then ? Jul 29 20:16:05 Runtime. Jul 29 20:16:13 so his build is not working Jul 29 20:16:15 You're using the wrong jar file. It ONLY has the sources. Jul 29 20:16:17 should I do something more than just add the dependency in the build.gradle Jul 29 20:16:24 maybe the order is wrong Jul 29 20:16:25 really? Jul 29 20:16:29 Use this one: universal-image-loader-1.8.6.jar Jul 29 20:16:39 Hi, is there somebody here programming on a macbook in eclipse by any chance? i'm having a stupid problem Jul 29 20:16:45 let me try Jul 29 20:16:55 sry, it says with-sources, that one should work. Jul 29 20:17:06 but shouldn't try to hurt. ;-) Jul 29 20:17:53 But assuming the jar file is ok, WHERE is your libs dir. Are you sure it gets picked up? You should get a compile error if not but... Jul 29 20:18:45 dependencies { Jul 29 20:18:45 compile files('libs/universal-image-loader-1.8.6.jar') Jul 29 20:18:45 compile 'com.android.support:support-v4:13.0.+' Jul 29 20:18:45 } Jul 29 20:18:45 Yay, OTA 4.3 just arrived. Jul 29 20:18:51 same thing Jul 29 20:19:24 yay, me too! Jul 29 20:19:24 Could you link to a paste with the whole build.gradle (minus keystore passwords..)? Jul 29 20:19:59 https://gist.github.com/tagrudev/0e5c0d0c45b7f299b66f Jul 29 20:20:05 that's my build.gradle Jul 29 20:20:53 Your "libs" is in same directory as build.gradle? Jul 29 20:21:15 yes Jul 29 20:22:00 Well, that's pretty much my exact setup (only I'm on 1.8.4, but that shouldn't matter). Jul 29 20:22:23 and it works ? Jul 29 20:23:44 Could you paste a link to the whole error message/logcat output as well? Must be something we're not seeing. Jul 29 20:23:48 Yes, it works. Jul 29 20:24:08 In fact it works great, never had any trouble with it. Jul 29 20:24:51 Just to be sure, you could unzip the generated apk and check that the proper class files are there as well. Jul 29 20:25:19 Eh, sry, you need to undex as well. It's a bit more trouble. Jul 29 20:25:20 Hey, I've got two activities which both have the same superactivity. Now Activity A starts B. If I close B then the superactivity of A is resumed. Only if i override the onButtonClick method in the child activity though. Why does this happen? WHat i want is to close the whole application from Activity B. Any idea? Jul 29 20:26:18 kjeldahl, https://gist.github.com/tagrudev/9781a2cc632afd46ebf5 Jul 29 20:26:18 tagrudev: You're using AS? And made sure your project is "sync'ed"? Jul 29 20:26:30 Andan, make B clear the task then Jul 29 20:26:47 Andan, or finish superactivity and activity A after invoking the next one Jul 29 20:26:53 kjeldahl, reload the link Jul 29 20:27:50 i might still need the activity. i will try your first suggestion Jul 29 20:28:03 tagrudev: That paste does not say what you said. Jul 29 20:28:30 In fact, it's running fine. But you're not using it correctly. Jul 29 20:28:31 Mavrik, can i clear the task without an intent flag? Jul 29 20:28:58 Andan, uh what Jul 29 20:29:05 Andan, you can't have your cake and eat it Jul 29 20:29:13 if you want the app to exit with back, then finish activities Jul 29 20:29:16 if you need them, keep them Jul 29 20:29:20 you can't have both. Jul 29 20:29:45 now, sit down, rethink how your UX layout works so you'll certanly know WHEN you need your activities Jul 29 20:30:14 tagrudev: Here's what I'm doing in the Application onCreate method: https://gist.github.com/mariusk/6107538 Jul 29 20:32:02 Mavrik, i totally agree, but what i want to do is to kill the whole application when it crashes. Currently it starts an Activity which is still in the stack. Jul 29 20:32:25 kjeldahl, and where do you initialize the imgLoader Jul 29 20:32:57 imgLoader = ImageLoader.getInstance(); Jul 29 20:33:14 But I declare it as a member variable, ImageLoader imgLoader = null; Jul 29 20:33:27 in the class. Yeah, intialize to null is probably not necessary. Jul 29 20:34:01 ImageLoader is a "singleton". Jul 29 20:35:57 kjeldahl, (phew) working like a charm Jul 29 20:35:59 :) Jul 29 20:36:09 thank you mate Jul 29 20:36:33 tagrudev: Goodie! GL! Jul 29 20:38:57 hrm, I can still su from adb shell in 4.3 right? Jul 29 20:40:12 is there a nexus 7 recovery yet? Jul 29 20:40:29 pfn, depends Jul 29 20:40:38 if you have the version when they disabled all the security again yes Jul 29 20:40:49 ? again? Jul 29 20:41:02 and as far as I understand, the nosuid mount is only for zygote-forked apps Jul 29 20:41:06 adbd isn't forked from zygote Jul 29 20:41:19 so adb shell should be unaffected by su limitations Jul 29 20:42:59 * pfn tries booting a toro cwm for shits and giggles Jul 29 20:43:04 since I'm too lazy to find the correct recovery Jul 29 20:46:07 yes pfn you can do it Jul 29 20:46:19 but not from the user builds Jul 29 20:46:30 so even adbd is forked from zygote? Jul 29 20:46:31 suck Jul 29 20:47:21 why is fastboot boot hanging at downloading Jul 29 20:47:26 C:\Users\pfnguyen\Downloads>fastboot boot recovery-clockwork-touch-6.0.3.4-group Jul 29 20:47:26 er.img Jul 29 20:47:26 downloading 'boot.img'... Jul 29 20:47:43 probably because this is flo and not grouper... Jul 29 20:48:54 no its just not allowed on user builds afaik Jul 29 20:49:13 you cant buy adevice, plug it in, and adb root, can you? Jul 29 20:49:20 no Jul 29 20:49:27 man, xavd...grr Jul 29 20:49:28 huh? this has nothing to do with adb root Jul 29 20:49:40 merged a diff that trampled on my perf optimization to sdklib.jar Jul 29 20:49:54 adb has to be running as root to su, doesnt it? Jul 29 20:50:00 Scumbag XML shapes, autoscale even if you set parameters Jul 29 20:50:00 >.> Jul 29 20:50:11 canadiancow, I don't think so, as long as you have a setuid su.... Jul 29 20:50:15 unless adbd forked from zygote Jul 29 20:50:33 only zygote remounted /system nosuid, I thought Jul 29 20:50:46 damnit, why is fastboot boot hanging for me Jul 29 20:50:53 oh cool, GLES3 doesn't really require Android 4.3 Jul 29 20:51:13 I mean, after the 4.3 update, apps that target a lower Android version can still initialize a GLES3 context Jul 29 20:51:34 that'll make deployment simpler Jul 29 20:53:31 what do you mean "target" Jul 29 20:53:46 oh, I guess it's friggin' slow Jul 29 20:54:18 hey y'all Jul 29 20:54:26 do I need a new version of fastboot for flo or something? Jul 29 20:54:37 it just hangs on fastboot boot Jul 29 20:55:03 how do I disable the next focus-ability of a view in android? Jul 29 20:55:51 I want android to not jump to another view when I click on the dpad Jul 29 20:56:27 mheld: Maybe override dpad callbacks? Jul 29 20:56:51 ian_ford: I do Jul 29 20:57:17 ian_ford: well, for the rest of the state in the fragment it works great Jul 29 20:57:53 mheld: How about overriding OnEditorActionLIstener for each input? Jul 29 20:59:12 I believe android:focusable="false" would achieve that result Jul 29 20:59:25 the problem is that I'm expecting onKeyUp to be callled, and it's not Jul 29 20:59:38 but I'm unsure of the side effects without actually trying it Jul 29 20:59:39 RyanM: I want the edittext to be focusable Jul 29 20:59:42 I'll try it Jul 29 21:00:06 you could also checkout out focusableInTouchMode Jul 29 21:00:06 hmm, apparently my version of fastboot.exe is busted or something Jul 29 21:00:15 but I've never used that at all Jul 29 21:00:20 canadiancow do you know, by any chance, who the intel contact is for the x86 image - so i can strangle them> Jul 29 21:00:30 RyanM: this is a googletv thing, so sadly I don't have touch mode Jul 29 21:00:37 no o_O Jul 29 21:01:00 i'll find out Jul 29 21:01:14 * pfn tries building a new fastboot.exe Jul 29 21:01:18 I hope make -j4 fastboot does it Jul 29 21:02:11 RyanM: yeah, focusable isn't what I want Jul 29 21:02:12 \m ? Jul 29 21:02:51 RyanM: when I hit left and I'm in an edittext, focus is supposed to follow the view tree to another view Jul 29 21:02:51 what's 'secure boot' in the bootloader? Jul 29 21:02:55 mine is still green/enabled Jul 29 21:02:55 RyanM: I don't want that Jul 29 21:06:50 it also irritates me that android:capitalize doesn't do what I would expect it to Jul 29 21:07:17 if I have android:text="STUFF" android:capitalize="sentences", I'd expect to see "Stuff" not "STUFF" Jul 29 21:08:12 from the docs: Jul 29 21:08:13 "should automatically capitalize what the user types" Jul 29 21:08:19 emphasis on "what the user types" :) Jul 29 21:09:12 yeah, I know Jul 29 21:09:24 but I feel like that should be a different key :-P Jul 29 21:09:31 like capitalizeInput Jul 29 21:09:40 even better, capitalizeUserInput Jul 29 21:09:59 I suppose it assumes you have control over any inital values ;) Jul 29 21:15:53 ugh, fuck HN and reddit Jul 29 21:16:05 woah, this isn't #startups Jul 29 21:16:06 sorry Jul 29 21:16:33 yeah, I think this crowd isn't really liked on HN :P Jul 29 21:16:45 Mavrik: why not? Jul 29 21:16:51 Mavrik what happened ? Jul 29 21:17:07 ;) Jul 29 21:17:33 I guess my computer is stupid, it's just not detecting the device for running fastboot] Jul 29 21:18:46 that can happen if you haven't got the right drivers installed Jul 29 21:19:15 is it correct that I may not do network stuff in a Service's main thread? That doesn't sound reasonable... Jul 29 21:19:47 that is correct Jul 29 21:19:51 tinloaf: a service doesn't have it's own thread, by default Jul 29 21:20:24 it will be running on the same thread as your activities, etc. Jul 29 21:21:05 JesusFreke: hum, I thought "android:process=":remote"" would take care of that.. Jul 29 21:21:32 tinloaf: if it's a different process, then yeah, that shouldn't be a problem. Jul 29 21:22:02 but putting it in a different process just for that reason is way overboard :) Jul 29 21:22:24 You can look at using, e.g. IntentService Jul 29 21:25:04 JesusFreke: well, basically i want a background service that holds open a connection and does things when packets arrive Jul 29 21:25:36 i thought it would be a good idea to have a service in a separate thread for this, and thought that this would mean that I can do network related stuff in there... Jul 29 21:25:56 tinloaf: but you're putting it in a separate process, not a separate thread :) Jul 29 21:26:03 God I hate waiting for projects to build just to see if some small change took place Jul 29 21:27:01 but yes, you would want to use a thread to listen for new input on the open connection Jul 29 21:27:03 Why would BitmapFactory.decodeStream return null for some images? For images taken by the camera it works fine, but for images from other sources (web, real camera, etc) it return null. Jul 29 21:28:56 JesusFreke: uhh.. I see. so in that process, I again have to spawn a new thread? Even though that process does not have any UI that could freeze? Jul 29 21:29:46 no, I'm saying that you probably don't want to use a separate process. and assuming you don't use a separate process, you'll want to spawn a thread for it (in the normal application process) Jul 29 21:30:19 A process is much heavier weight than a thread :) Jul 29 21:30:59 JesusFreke: well, I want it to run persistently in the background Jul 29 21:31:04 like... always, if possible. Jul 29 21:31:12 isn't an own process the correct choice there? Jul 29 21:31:24 not particularly Jul 29 21:31:50 using a separate process won't make it any less likely to be killed Jul 29 21:31:59 * pfn hacks his nexus 7's email to ignore device policy manager Jul 29 21:32:04 yay Jul 29 21:32:19 uhm, ok.. I thought I'd use a lightweight process for the UI that can be killed all the tim Jul 29 21:32:20 e Jul 29 21:32:27 and one process that I hope stays in memory... Jul 29 21:33:38 stay in one process if you can; otherwise you're dealing with parcelables / aidl / and extra overhead Jul 29 21:33:48 since each process takes some ram Jul 29 21:34:19 tinloaf: by using 2 processes, you're increasing the resources that your application needs, thus decreasing the resources available on the phone, increasing the general memory pressure and making it more likely your process will get killed** Jul 29 21:34:21 that's true Jul 29 21:34:35 so.. would an IntentService be the better choice? Jul 29 21:34:36 (**crass generalization here, but you get the idea :)) Jul 29 21:34:58 I don't think an IntentService would work well for the use case you described Jul 29 21:34:59 That's a Service on an own thread then, right? Jul 29 21:35:07 It's more for processing a queue of work Jul 29 21:35:48 just start your own thread when the service starts, and do your blocking network stuff on that thread Jul 29 21:36:02 yeah, ok.. I'll try that, thanks. :) Jul 29 21:36:03 JesusFreke is there a unit for memory pressure, like millbars/byte or something :P Jul 29 21:36:36 g00s: bitbars. Jul 29 21:36:40 :p Jul 29 21:36:42 :O Jul 29 21:36:54 pounds-force per megabyte Jul 29 21:40:47 weee, my new nexus 7 is all happy and stuff Jul 29 21:40:57 I should have seen if I could have installed su, but nah, it's ok Jul 29 21:41:03 don't need root 99% of the time Jul 29 21:44:37 I have a framealayout with several views added to it, and I want to position one of them partly off screen by changing its leftmargin from its layout params. But doing this, it animates to the side instead of just instantly snapping there. How do I make it snap to the location instantly? Jul 29 21:46:14 wtf, where is google wallet Jul 29 21:52:58 >Spend forever trying to make native drop shadows in Android [16:52] >End up just asking designer for 9patch image with dropshadow Jul 29 21:53:43 Brian|CB, that's what I said you should have done from the beginning :p Jul 29 21:53:49 make a 9patch with a dropshadow Jul 29 21:53:50 I know Jul 29 21:53:51 lol Jul 29 21:53:53 Well Jul 29 21:53:55 now I know that Jul 29 21:54:01 but I wanted to not bother the designer as much as possible Jul 29 21:54:03 cause hes busy and suchb Jul 29 21:54:14 but I can never get the native shadow effect to look as good as he wants it Jul 29 21:54:20 so I'm just asking for a 9 patch now Jul 29 21:58:12 anybody uses a macbook + eclipse for android? Jul 29 21:58:34 i used to Jul 29 21:58:38 (eclipse) Jul 29 21:58:50 wow, google groups / android developers has died Jul 29 21:59:12 did u have problems with typing pipelines aswel by anychance? Jul 29 21:59:24 O.o Jul 29 21:59:29 | ? Jul 29 21:59:56 yeah i know how to on mac. but if i want to do the shortcut in eclipse.. instead of writing a pipeline it tries to refactor... Jul 29 22:00:21 thats weird Jul 29 22:00:24 never saw that Jul 29 22:01:21 fix your keybindings Jul 29 22:01:25 you probably bound | to do something Jul 29 22:01:46 If I have a custom view that I'm using in code that extends from a view group like "LinearLayout" how can I inflate XML with the root group as a LInearLayout so that the result in the view hierarchy is one LinearLayout, not two? Jul 29 22:01:52 hmm yeah i'll give that a look, thanks Jul 29 22:01:53 hwrd|work, Jul 29 22:02:02 pfn: As the root tag of my XML layout? Jul 29 22:02:21 yes Jul 29 22:02:29 pfn: Thanks! Jul 29 22:02:34 I'll test that out Jul 29 22:02:57 imagine having your meta-key messed up in emacs Jul 29 22:03:08 you can still use esc Jul 29 22:03:38 sp pfn , what did you do to your new n7 Jul 29 22:03:40 *so Jul 29 22:03:48 I have 7 projects based on a base project, and they are all basically the same code. I opened my Eclipse today and one of them is giving me the error The type java.lang.Object cannot be resolved. I noticed that in that project the "directory" that shows Android 4.2.2 is missing. Can someone help me fix this. Here is a image file that shows what's missing: http://tinypic.com/view.php?pic=4h44yo&s=5 Jul 29 22:04:16 g00s, unlocked the bootloader and removed the device policy admin requirement from the email app Jul 29 22:04:38 and installed my advanced keyguard manager app, of course Jul 29 22:04:40 That directory isn't a real directory, so I can't copy it in. How do I get that back? Jul 29 22:09:10 It's bedtime here, but for any emacs users, if you haven't figured it out already, I found a great setup for auto complete and ggtags (GNU Global support in emacs). It doesn't write up the auto import for you, but jumps straight to the spot in the Android SDK source. Very useful. I'll write it up in my android emacs page tomorrow. Jul 29 22:12:18 Hello, is anybody knowledgeable in music instrument apps? Jul 29 22:13:38 Hey, anyone good at actionbar font changes? I changed the font of the title, which works well. But sometimes if the activity is resumed/started, the actionbar is shown for a brief second with roboto font. Any ideas on how to fix it? Jul 29 22:20:16 newbieto sounds like the next victim of android's high latency audio Jul 29 22:20:35 ive heard about it Jul 29 22:21:10 im buying an android in a few hours and test my instrument myself Jul 29 22:47:30 Does anyone know why BitmapFactory.Options outHeight and outWidth would return -1 for large images? I made a StackOverflow post with more details here: http://stackoverflow.com/questions/17935491/bitmapfactory-options-outheight-and-outwidth-returning-1-for-large-images Jul 29 22:56:15 people outside of the US can at least see this page right? https://play.google.com/store/apps/details?id=com.yahoo.mobile.client.android.y7tvguide&hl=en Jul 29 22:56:41 wabz: i can confirm Jul 29 22:56:44 thanks Jul 29 22:56:48 This app is incompatible with all of your devices. Jul 29 22:57:52 probably because it's only available in AU Jul 29 22:57:57 yeah :) Jul 29 22:58:23 wanted to mention how the "outside of us" will be shown to me Jul 29 22:58:29 heh Jul 29 22:59:29 is there any way to download an older version of the android SDK? (specifically r21) Jul 29 23:03:53 good evening Jul 29 23:09:42 has anyone created a sucessful file chooser before? Jul 29 23:10:14 sup linkandzelda im playing twiilight right now lol Jul 29 23:10:29 epic lol Jul 29 23:10:34 werd Jul 29 23:20:39 RyanM: the sdk downloader thing will let you download all sdks, so yes Jul 29 23:24:58 wtf dopesn't google wallet show up on the nexus 7 Jul 29 23:26:17 pfn http://www.androidpolice.com/2013/07/28/weekend-poll-does-the-nexus-7s-lack-of-google-wallet-support-actually-matter/ Jul 29 23:27:53 seriously, google has got to get their act together with wallet Jul 29 23:29:27 http://i.imgur.com/4CfNN9d.gif Jul 29 23:29:47 nfc transactions reaally shouldn't be getting into consumer hands for a few more years at least Jul 29 23:29:53 why the hell do not update his sample layout xml file? Jul 29 23:29:54 old stuff Jul 29 23:29:54 it's so easily hackable Jul 29 23:31:34 as I may have mentioned before... to a first approximation, everyone in Hong Kong uses contactless payments - NFC-style, with a payment card - every day Jul 29 23:31:47 and has been doing for years Jul 29 23:32:14 well I wouldn't, and won't for many more years to come, probably never Jul 29 23:32:17 osxorgate: how do you do that? Jul 29 23:32:48 and are you sure you're not confusing the API levels with the SDK tools version? Jul 29 23:33:44 credit cards are way worse from a security perspective. It's a static code that can be read with <$2 of hardware. Jul 29 23:34:18 RyanM: you gotta start the sdk manager.. in intellij it's under Tools>Android Jul 29 23:34:34 right, got that Jul 29 23:34:38 RyanM, I don't really use credit cards either ;) Jul 29 23:34:45 and then you see a giant list Jul 29 23:34:45 then how do I download an old version of the SDK tools? Jul 29 23:35:09 frankly the problem is that people don't are until it's proven broken and then it's too late to fix because everyone's using it Jul 29 23:35:21 like with everything security related Jul 29 23:35:36 right. one of the things in the list is the SDK tools. How do I download an old version of that? Jul 29 23:35:37 RyanM: right you were, i guess.. Jul 29 23:35:42 ah, alright Jul 29 23:35:53 why would you want an old version Jul 29 23:36:01 'cause the new one's broken. Jul 29 23:36:27 https://code.google.com/p/android/issues/detail?id=56006 Jul 29 23:36:47 * g00s remembers RFID passports being hacked Jul 29 23:42:21 anyone can help me make a file chooser dialog? :) Jul 29 23:49:52 perhaps if you ask a concrete question Jul 29 23:50:55 Linkandzelda: http://stackoverflow.com/questions/3592717/choose-file-dialog Jul 29 23:51:44 well, my concrete question would be, I cant figure out how to import any of the given libs, and all the examples show me errors i'm not able to figure out yet Jul 29 23:52:06 actually thats not concrete and not a question Jul 29 23:52:08 that said...if you want the user to supply something like a picture, you might want something more like http://stackoverflow.com/questions/2169649/get-pick-an-image-from-androids-built-in-gallery-app-programmatically Jul 29 23:52:40 well thats nice, and I considered using action_get_content intent but if the user has no file browser it doesnt work out Jul 29 23:52:43 Does anyone know why neither invalidate() nor postInvalidate() would be working for an onClick()? http://stackoverflow.com/questions/17936131/invalidating-an-imageview-after-an-onclick Jul 29 23:52:53 I need to get specific files such as .dat or .bin Jul 29 23:53:31 RyanM thanks for that though Jul 29 23:53:48 I was looking at the librbary aFileDialog Jul 29 23:54:10 cheese1756: you'll need to post way more code than that. For example, where are image and imageViewProfile set? Jul 29 23:54:27 i'm still miffed android doesn't have a basic file picker widget Jul 29 23:54:34 lamesauce Jul 29 23:54:46 i guess they want everybody to do it differently Jul 29 23:54:58 agreed g00s you would of thought by now they would have something Jul 29 23:55:07 isn't the point that - iOS! - you're not meant to expose 'files' to the user? Jul 29 23:55:27 I think so Jul 29 23:55:29 ==Leeds Jul 29 23:55:34 I wish they would, as a power user, but I understand why they don't. Jul 29 23:55:37 you should be dealing with documents and data, not files Jul 29 23:56:03 you should be able to deal with whatever you want Jul 29 23:56:22 yes, yes, freedom, whatever - but there are platform standards and best practices Jul 29 23:56:23 You can, they just won't help you :D Jul 29 23:56:24 Linkandzelda: you could always point them to a file browser on the play store :-) though I realize that's not great UX Jul 29 23:56:48 (if they don't have one, that is) Jul 29 23:56:59 RyanM: I've added the complete method. Does that help? Jul 29 23:57:04 i think its a regression that files are to be hidden Jul 29 23:57:13 in particular, if you don't expect to share files with other apps, you should present a list of choices - even if each choice happens to correspond to a file on storage Jul 29 23:57:28 think I liekw ith action_get_content is picking from Drive and Dropbox, something a normal file chooser wouldnt allow Jul 29 23:57:43 why oh why, it would be so perfect if they put a little file chooser in there Jul 29 23:58:09 cheese1756: Have you checked that image really isn't null? Jul 29 23:58:29 eisbehr: Yup, I made sure of that. When I tap again it refreshes, it just won't refresh automatically Jul 29 23:59:49 I don't see an immediate issue. invalidate() should work... Jul 30 00:01:07 is the some tool to design ui? I have to design a list element and I dont very love xml Jul 30 00:01:18 hey. im having issues with the android emulator on windows, it simply wont boot. just has the android logo forever (and I mean forever I let it try for almost 30 minutes) ddms shows multiple errors every few seconds, it has worked in the past so im lost on what could have broken it. I also have tried multiple images, from api 14-18 arm intel and mips all do the same thing. My machine is Jul 30 00:01:19 more then powerful enough, core i7 quad 32gb ram 4 gb ddr5 video ram so im not thinking its a proformance issue, any help would be awesome Jul 30 00:01:41 Ah, I found the solution. let me update the StackOverflow post Jul 30 00:02:11 under: The eclipse plugin has tools Jul 30 00:03:25 the only real thing I can think of I have done since the last time it worked was replace my hard drive with an ssd Jul 30 00:03:36 RyanM and eisbehr: I moved it down into onActivityResult. Thanks for your help! Jul 30 00:28:25 dblosevn: Did you use 768MB of RAM or less? Jul 30 00:32:06 the emulator is super finicky on Windows in my experience Jul 30 00:32:36 sometimes smaller screens or less resources helps Jul 30 00:32:46 it's dumb; I wish it worked properly Jul 30 00:33:03 if you have a powerful enough computer, you could run it in a linux VM Jul 30 00:33:12 hello! i'm getting The resource R.layout.activity_main appears to be unused and when i run my app no buttons are on the screen. any idea? Jul 30 00:33:22 i tried to remove the R.java file but no luck Jul 30 00:34:15 can somone tell me why all my class stuff cant be used without having static there, and all the stuff I see online has no mention of static? Jul 30 00:37:00 vvu: My psychic debugger says you forgot to call setContentView Jul 30 00:37:44 vvu, try setContentView(R.layout.activity_main) ? Jul 30 00:38:04 (in onCreate for your Activity) Jul 30 00:38:16 oh i didnt even notice you had said that RyanM Jul 30 00:38:28 hx Jul 30 00:38:31 thx ! Jul 30 00:38:31 i'll go back to not paying attention to irc :) Jul 30 00:39:48 haha. in your defense, you spelled it out a little more thoroughly :-) Jul 30 00:46:49 my friend just tested my app on a new n7 and it works :) glad to see the new BT stack didn't cause any problems Jul 30 00:47:52 what's your app dude? Jul 30 01:08:43 cheese1756: I saw the warining about that and tried 768 then I dropped it to 512 Jul 30 01:14:32 i want to create a fragmentlist that show news parsed from xml file. I was wondering if the parsing function is ok if it will be implemented in the in the adapter class where I have my ArrayList Jul 30 01:16:10 http://stackoverflow.com/questions/17936835/android-studio-how-to-import-android-library-project if anyone could help, that would be great Jul 30 01:19:29 *listfragment , lol Jul 30 01:21:15 under: you should probably parse them as they come in, the adapter will attempt to parse them every time the user brings it on the screen Jul 30 01:27:21 deleet, is it a yes? Jul 30 01:27:40 that's a no. Jul 30 01:27:51 parse them when you read the xml, then add it tot he adapter Jul 30 01:27:52 Hi! Is there a way to show Notification message ticker (SMS Message preview like) when the screen is locked. I'm already acquiring wakelock Jul 30 01:30:35 deleet, and how can I pass data between listfragment and the adapter? is there a way? Jul 30 01:40:21 night Jul 30 01:57:43 Anybody see anything wrong with this ?? 'JSONObject json = jsonParser.makeHttpRequest(REGISTER_URL, "POST", params); ' ?? It dies silently.. Jul 30 02:00:35 it never dies silently Jul 30 02:07:21 excellent, dropping in /system/bin/su works no problem Jul 30 02:07:29 can only su from adb shell, though Jul 30 02:07:32 somewhat of a bummer Jul 30 02:09:51 gah is it me or is Android Studio too buggy to be used Jul 30 02:10:05 im probably just too stupid Jul 30 02:10:28 yeah lets go with that :P Jul 30 02:10:37 my project cant resolve R Jul 30 02:11:04 clean and rebuild Jul 30 02:11:06 ive cleaned the project with ./gradlew clean && ./gradlew build Jul 30 02:11:10 assuming you're referencing the correct R Jul 30 02:11:11 build fails Jul 30 02:11:19 i didnt change a thing Jul 30 02:11:31 then I went and imported a package, and bam the project dies Jul 30 02:11:33 then you have a resource error Jul 30 02:11:38 gradlew clean build Jul 30 02:11:42 pastebin output Jul 30 02:11:56 "imported a package" Jul 30 02:11:58 you did what Jul 30 02:12:17 I copied a com/blah/blahh folder into my java folder Jul 30 02:12:30 pastebin as directed Jul 30 02:12:35 with --info? Jul 30 02:13:13 now the erro changed and it cant find any of my layouts Jul 30 02:14:19 Is there an IRC room for Android Studio yet? Jul 30 02:14:24 no Jul 30 02:14:27 more info the better I guess Jul 30 02:14:28 http://pastebin.com/gwUbUAn6 Jul 30 02:15:14 location: class android.R.layout Jul 30 02:15:16 yeah, you're just dumb Jul 30 02:15:19 don't import android.R Jul 30 02:15:29 http://www.youtube.com/watch?v=D1sXuHnf_lo oh god I'm laughing so hard Jul 30 02:16:12 pfn what should I do, I didnt make any edits to imports Jul 30 02:16:28 yes, you did Jul 30 02:16:32 pfn is blunt, but correct about android.R.layout Jul 30 02:16:53 i have it set to automaticlly handle imports Jul 30 02:17:52 so, i still dont know what happened there xD Jul 30 02:18:47 is it possible to create a custom unlock screen app for Android? Jul 30 02:19:13 instead of the pattern or password entry to unlock the screen, I mean. Jul 30 02:19:36 Hiraghm, no Jul 30 02:19:45 Hiraghm, not unless you build your own custom rom Jul 30 02:19:57 Hiraghm, only with custom ROM. Jul 30 02:20:03 canadiancow, and yes, I'm able to su just fine on 4.3 with su from an emulator; must be from adb shell, of course Jul 30 02:20:04 What pfn said. Jul 30 02:20:05 well crap Jul 30 02:21:12 pfn: if android studio automatically imports android.R then does that make it wrong? Jul 30 02:21:21 I was toying with a new idea for an unlock screen that might be a little harder for others to figure out by watching Jul 30 02:21:38 killin me.. what is wrong w/ this drawer.getDrawerLayout().closeDrawer(drawer.getLeftLayout()); Jul 30 02:21:52 any1 familir w/ android navdrawers Jul 30 02:22:20 Linkandzelda, it doesn't Jul 30 02:22:27 Linkandzelda, you told it to import android.R Jul 30 02:22:47 Hiraghm, why not do a pattern without showing the lines? Jul 30 02:22:54 pfn: i told it to import nothing, I set it to handle imports on the fly Jul 30 02:23:08 I didn't know you can do that Jul 30 02:23:08 ive never written an import statement once in this project Jul 30 02:23:08 and when it's ambiguous, it asks you which to import Jul 30 02:23:13 you told it to use the wrong import Jul 30 02:23:48 tried to import not com.package.app.R, cant resolve symbol R Jul 30 02:23:56 i still dont get why this happend out of the blue Jul 30 02:24:06 because you *changed* it Jul 30 02:25:40 my other projects have no R imports Jul 30 02:25:57 because you don't need to import R if you're in the same package Jul 30 02:26:09 if you're in a different package, you must import, or use a fully-qualified name Jul 30 02:26:17 Hiraghm, I just lost my phone the other day but I am fairly sure you can through the lock screen settings. I do have a custom CM10 rom though so it might just be that, I would check your phone. I was running 4.2 Jul 30 02:26:24 im in the same package, so I could simply remove any R imports? Jul 30 02:26:38 yes Jul 30 02:27:27 well, thanks for the info, anyways. Jul 30 02:28:08 i wish it really was that easy Jul 30 02:28:29 i have no import R now, still the same problem Jul 30 02:28:35 but it isn't Jul 30 02:28:40 you say it's the same problem, but it's not Jul 30 02:29:43 you know, if you copy and paste code in, you probably have to put a package statement at the top of said code Jul 30 02:29:59 already said I removed all the code I added Jul 30 02:30:27 this project is how I left it before adding anything to it Jul 30 02:31:07 location: class android.R.string Jul 30 02:31:22 still cant comprihend this in the slightest Jul 30 02:31:40 it would be quicker just to make a new project and copy my stuff in Jul 30 02:31:59 but no, I just want to understand whats going on Jul 30 02:35:28 pfn anything else you can tell me? Jul 30 02:39:26 you should learn java better Jul 30 02:40:49 Linkandzelda, and what you say does not match what you observe Jul 30 02:41:05 so you should simply pastebin and learn what is actually going on Jul 30 02:42:13 well i just made a second project, that didnt fix the problem, so w/e Jul 30 02:43:03 http://pastebin.com/5Ccrtyi8 the latest build and clean Jul 30 02:44:09 android.R.string.app_name Jul 30 02:44:12 why do you think this would work Jul 30 02:44:58 pfn: thats not in my code xD Jul 30 02:45:10 but it is in your code Jul 30 02:45:25 /Users/Linkandzelda/Dropbox/Documents/Google Drive/Evercrest Studios/Apps/IPS Patcher/Project/PowerPatcherProject/PowerPatcher/src/main/java/com/evercrest/powerpatcher/AboutScreen.java:29 Jul 30 02:46:27 100% is not Jul 30 02:46:42 app_version_text.setText(getString(R.string.app_name) + " Version " + getString(R.string.app_version)); Jul 30 02:46:53 and if you think I just changed it, I 100% didnt lol Jul 30 02:47:24 the fact that you're doing some messed up stuff with dropbox or google drive doesn't inspire confidence in what you think is actually there Jul 30 02:47:38 im at freelancer.com ----- Shit place Jul 30 02:47:54 its simple enough, dropbox keeps backups of my google drive folder Jul 30 02:47:59 all the jobs there seems to be from 18 year old irani people Jul 30 02:48:06 Linkandzelda, then it's in your source, but your sync is making you not see it Jul 30 02:48:14 viovu, a race to the bottom is never bound to be a utopia Jul 30 02:48:27 then let me move the project to find out Jul 30 02:49:15 bottom of what Jul 30 02:49:28 viovu, bottom of the payscale Jul 30 02:49:44 viovu, places like freelancer.com, rentacoder, etc. are all about hiring the lowest bidder Jul 30 02:51:18 http://pastebin.com/s2Mh7sMt project moved Jul 30 02:53:05 android.R import again Jul 30 02:53:21 dude it adds them automatically on every compile Jul 30 02:53:26 no, it doesn't Jul 30 02:53:31 Hey guys, is there a way to pause an activity? Jul 30 02:53:33 ive removed it 10+ times now Jul 30 02:53:35 like, this.pause()? Jul 30 02:53:39 i only have 2 class files Jul 30 02:53:45 unless you don't have com.evercrest.powerpatcher.R Jul 30 02:53:49 in which case, you fucked up anyway Jul 30 02:54:01 i dont have that Jul 30 02:54:25 then you need to import the correct R Jul 30 02:54:26 .... Jul 30 02:54:42 Doesn't R get generated? Jul 30 02:54:50 and auto imported? Jul 30 02:54:52 it gets generated in the package you specify in your manifest Jul 30 02:54:56 ah ok Jul 30 02:54:57 and it doesn't get auto-imported Jul 30 02:55:08 stuff in the same package is always in scope Jul 30 02:55:13 ah right, forgot Jul 30 02:55:18 if you're not in the same package, you must import Jul 30 02:55:43 added it and its showing as an unused import Jul 30 02:56:17 let me clarify my question Jul 30 02:56:29 if I want to do something like finish(), but have it be paused for multitasting Jul 30 02:56:35 so i can still multitask over it it Jul 30 02:56:50 Gradle: com.evercrest.powerpatcher.R is already defined in a single-type import Jul 30 02:57:30 and what does it do, it adds another android.R import on its own Jul 30 02:57:46 am I really being stupid here or something? ;/ Jul 30 02:58:41 What does R do? Jul 30 02:58:50 R links your code to your XML/drawable recources\ Jul 30 02:58:55 not just XML and drawable either Jul 30 02:58:58 but all recources really Jul 30 02:59:57 right **** ENDING LOGGING AT Tue Jul 30 02:59:58 2013