**** BEGIN LOGGING AT Tue May 07 02:59:59 2013 May 07 03:01:48 does getWindowManager().getDefaultDisplay().getMetrics(metrics); take into account the action bar? May 07 03:03:48 with regard to layouts, requestLayout does indeed need to re-evaluate everything and it's expensive. you don't want to do this during an animation or anything. rereading your original question you might just want to translate that whole linearlayout. As for getMetrics it will subtract the notification bar and navigation bar, but not the action bar. if you're interested in usable area for your views you should use the size of your top m May 07 03:05:33 just found a snippet using View content = getActivity().getWindow().findViewById(Window.ID_ANDROID_CONTENT); May 07 03:05:47 but dont think that takes into account the action bar.. so need to diff that as well May 07 03:08:22 kevinb "top m" ? May 07 03:08:52 ? maybe it got cut off. top most view. May 07 03:09:40 assign an id to the root view in your xml, then View root = findViewById(R.id.viewroot) and after a layout pass you can use getWidth/getHeight on it May 07 03:09:53 but these will return 0 before the view has been laid out May 07 03:10:25 good idea May 07 03:10:32 I'm doing all this extra crap May 07 03:12:20 oh god, I hate graphics designers... May 07 03:12:30 is there any way to make draw9patch delete extraneous rows/columns? May 07 03:12:31 I hate ios designers May 07 03:13:41 yeah, go to hell, guys who designed ios May 07 03:15:20 why the hate ? May 07 03:15:32 you nerdy fkwits ! May 07 03:15:35 :) May 07 03:15:37 umm 564px May 07 03:15:59 for what ? May 07 03:16:02 eh think I have to wait a frame to get the rootView height May 07 03:16:06 its returning 0 right now May 07 03:16:22 think I'll just go with I have now May 07 03:16:51 got something like this http://pastebin.com/76dfsYvs May 07 03:17:42 2 days to finish this app :/ May 07 03:17:50 hate deadlines May 07 03:22:32 ok next problem.. so I have my views moving just fine for the most part via view.setY .. the problem comes when I try to move the view that also has a ListView on its y axis while it scrolls May 07 03:22:46 it just jumps all over the place and finally goes offscreen and can't get it to come back May 07 03:22:55 everybody is a graphics designer as soon as they add a png to their app; difference is what ability though :D May 07 03:23:17 catch it before it goes out the screen or you'll never see it again! May 07 03:23:18 just like everybody is a philosopher, except some people can't think logically … so ... May 07 03:23:50 "California's Right to Know Act stalls after opposition from tech lobby" … well we all know who are friends are May 07 03:24:10 http://pastebin.com/aGDNm8X6 is what I have now May 07 03:24:27 its running like a crackhead Izhido May 07 03:24:48 eh dumb ass me May 07 03:27:10 g00s, that's the inverse of the problem I'm having :p May 07 03:27:27 the designers gave me completely broken assets... May 07 03:27:42 * pfn doesn't want to spend hours fixing all these broken 9patches May 07 03:28:50 fixing what ? May 07 03:28:54 as in whats wrong ? May 07 03:29:08 the 9patch pixels aren't on the border as specified May 07 03:29:31 so < 10 second fix for each bitmap May 07 03:29:41 how many do you have to make it hours ?? May 07 03:29:42 :) May 07 03:30:11 a few dozen May 07 03:30:15 and it's not <10 seconds for each bitmap May 07 03:30:22 http://android-ui-utils.googlecode.com/hg/asset-studio/dist/nine-patches.html your friend May 07 03:30:35 each one, you need to open up, look how many pixels are off, then process it through something to chop off the extraneous rows/columns May 07 03:30:44 stop whining.. I didn't get 9path files.. had to do them myself :/ May 07 03:30:47 so be happy May 07 03:30:55 *9patch May 07 03:31:00 pfn: ok so zip the May 07 03:31:02 them* May 07 03:31:03 I might as well do it myself, with how broken they are May 07 03:31:15 it's the designer's job to get this right May 07 03:31:17 and if I cant average 10 seconds per image, there is something wrong with me May 07 03:31:24 I may need to see a doctor May 07 03:31:36 how precisely do you average 10 seconds an image? May 07 03:31:44 how do you figure you would edit these images? May 07 03:32:14 the fact that I think I could do it in 3 seconds per image x 3 for unknown, + 1 second ramp-up May 07 03:32:21 and I would use PS May 07 03:32:38 yeah, I doubt it May 07 03:33:07 lucky then that my speed in that is not based on your belief ;) May 07 03:33:45 I'm assuming a few things in that time estimate btw May 07 03:33:54 1. I already have PS open May 07 03:34:25 2. the images are png and already have correct -+xy border sizes May 07 03:34:32 3. the background is transparent May 07 03:34:43 if 1,2 and 3 are all fine, then yes May 07 03:34:53 3-10 seconds per image May 07 03:35:13 actually I lie May 07 03:35:24 anyone knows what this tool is: http://pic002.cnblogs.com/images/2011/324523/2011091612503362.jpg ? May 07 03:35:36 it's 4:35am here, so maybe add another 10 seconds, so 20seconds per image May 07 03:35:59 grrrrrr May 07 03:36:29 is there a way to move a container that has a ListView (on its Y axis) and not have it jumpy as hell while doing so May 07 03:36:49 or any other similar tools that could view the file system of the phone on PC? May 07 03:38:41 pfn: so you fancy giving me the challenge ? :) before I get back to my stuff ? May 07 03:39:44 i think pfn is done :D May 07 03:39:53 he beat you ! May 07 03:40:03 oh well May 07 03:40:09 zhangxaochen http://forum.xda-developers.com/showthread.php?t=1587717 May 07 03:40:18 I like doing little gfx favours every now and then May 07 03:40:22 keeps me sane May 07 03:41:05 when i'm stuck on a part of my app i like to switch to freely drawing icons and things May 07 03:41:13 I it's not my work to give away May 07 03:42:14 g00s: well the oddest thing for me, is I'm doing gfx/design more and more in code rather than PS May 07 03:42:21 for the things I want to do May 07 03:42:29 and I dont like it :) May 07 03:47:36 I am using DownloadManager to download some jpgs off of a website in the background to display in my app. Everything works fine except the images are showing up in the Gallery app. I am saving the files to /sdcard/Android/data/appname/.images and MediaScanner is still adding them as they are being downloaded. Anyone have any ideas how I can prevent MediaScanner for index them as they are downloaded? May 07 03:47:51 .nomedia May 07 03:51:14 Tried that and it doesnt work. If I delete the storage for the Media Storage app the files do not get readded to the Gallery App. I do not have allowScanningByMediaScanner() set. May 07 03:51:35 supposedly .nomedia doesn't consistently work: http://koush.com/post/nomedia . it surprises me (especially as his post barely acknowledges the fact that .nomedia is indeed supposed to work), but Koush is a knowledgable developer so i suspect there is some truth to it. May 07 03:51:53 your app has to opt out rather than opt in to media scanning ? that sounds busted May 07 03:52:30 g00s: it does if it stores media in a public location May 07 03:52:38 i.e. external storage May 07 03:53:11 oh this is a better article that details the issue with nomedia on newer systems: http://anupcowkur.github.io/posts/nomedia-nitpicks/ May 07 03:53:13 how can I stop long press from its parent.. say if I'm scrolling the parent I want to stop the children from accepting longpress events? May 07 03:53:21 i can see it being auto if you use getExternalStoragePublicDirectory May 07 03:53:28 I have never seen .nomedia not work May 07 03:53:47 also make sure you are putting files in the appropriate places May 07 03:53:48 I am using myRequest.setDestinationInExternalFilesDir(myActivity, Environment.DIRECTORY_DOWNLOADS, myFilename); May 07 03:55:30 does anyone know of any good documentation/writing about security with regard to things like sensitive data, banking, etc? May 07 03:55:41 rot13 May 07 03:55:47 ha May 07 03:55:59 i've actually used rot13 May 07 03:56:03 so no? May 07 03:56:04 :) May 07 03:56:12 just in a few places where i wanted to casually obfuscate something May 07 03:56:14 tnzr: maybe http://shop.oreilly.com/product/0636920022596.do May 07 03:56:24 so i wouldn't have a string like "thisIsHowManyDollarsYouGet" May 07 03:56:30 cool g00s May 07 03:56:34 canadiancow: haha May 07 03:57:37 other applications are storing files under /sdcard/Android/data/ and they do not show up in the Gallery app. I must be doing something wrong, but I cannot find any good documentation on DownloadManager since searching Google brings up a thousand apps for managing downloads :/ May 07 03:57:48 JakeWharton already told you how pwns May 07 03:58:28 canadiancow: I think pwns is saying that he didn't need to use .nomedia for stuff in his data directory before May 07 03:59:16 are you setting some flag in DownloadManager that might cause them to be scanned? May 07 03:59:31 hi. how can i show text box for api 11 below and calendar for api above 11. May 07 03:59:44 maybe downloadmanager automatically has things sacnned May 07 03:59:58 I have a .nomedia in the directory and files are still being scanned as they are downloaded. May 07 04:00:01 if (Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB) { /* show text box */ } else { /* show calendar */ } May 07 04:00:45 canadiancow, can i do that in layout fileZ May 07 04:00:46 hmm http://developer.android.com/reference/android/app/DownloadManager.Request.html#setDestinationUri%28android.net.Uri%29 May 07 04:00:56 "The downloaded file is not scanned by MediaScanner." May 07 04:00:57 layout xml file? May 07 04:00:59 layout/something.xml, layout-v11/something.xml May 07 04:01:08 DownloadManager myDownloadManager = (DownloadManager) myActivity.getSystemService(Context.DOWNLOAD_SERVICE); May 07 04:01:08 Request myRequest = new Request(Uri.parse(episodeArtLink)); May 07 04:01:08 myRequest.setNotificationVisibility(Request.VISIBILITY_HIDDEN); May 07 04:01:08 myRequest.setVisibleInDownloadsUi(false); May 07 04:01:08 myRequest.setDestinationInExternalFilesDir(myActivity, Environment.DIRECTORY_DOWNLOADS, myFilename); May 07 04:01:10 myDownloadManager.enqueue(myRequest); May 07 04:01:12 ah geez May 07 04:01:20 that is pretty much all i am doing May 07 04:01:36 hmm May 07 04:01:42 pwns what version of android is this happening on? May 07 04:02:05 there are some stackoverflow questions talking about the same behaviour you're seeing May 07 04:02:27 ok May 07 04:03:00 4.2.2. It is happening on the Emulator , Nexus 4 and Nexus 7 May 07 04:03:38 if the stackoverflow question was from today/yesterday then I posted it May 07 04:03:43 can you write a trivial example where this happens May 07 04:05:21 canadiancown: I guess my next step is to try to recreate it in another simple app. May 07 04:05:51 well if you can do that, it'll really help May 07 04:10:51 hey, quick question. I'm working on an app that talks to a server with a RESTful API over https. There are times however, when that server is borked and responds back using http (not https). This causes the HTTP library (default one) to throw an error and the app Force Closes. Any idea on how to catch this error? May 07 04:11:33 thx xastey May 07 04:14:14 agargiulo: docs don't say which exceptions may be thrown and when ? May 07 04:14:41 I have the traceback, and I realized that as I hit enter on my question. May 07 04:26:19 agargiulo IOException most likely May 07 04:30:27 https://github.com/agargiulo/gatekeeper-android/issues/5 May 07 04:30:36 and now I can't reproduce it at all. May 07 04:30:59 Is there a way to disconnect/reconnect USB via code? May 07 04:31:44 anyone know how to check if a winsock2 connection is still alive? May 07 04:32:32 winWHAT? May 07 04:33:06 I think he's using trumpet winsock May 07 04:33:27 lol May 07 04:33:44 yeah wrong place to ask I know May 07 04:34:38 how can i launch previous activity on back button onclick May 07 04:34:51 An easier question perhaps. Is there a way to restart the ADB service via code? May 07 04:38:15 wabz: omg, i remember that May 07 04:38:37 maybe windows 3 stuff runs unmodified under android 9.9 May 07 04:38:52 lol May 07 04:38:55 ? May 07 04:40:00 hello, how do i make avd changes permanent? May 07 04:40:25 is there a global config for all avds? May 07 04:41:00 arbiter34, can you clarify what you're trying to do? Just tell if a normal TCP socket connection is open. I think winsock is what's throwing everyone since we're talking about Android, not windows dev. May 07 04:41:29 is there a way to disable the longpress of a child from its parent say while you are scrolling May 07 04:42:12 Xonk lol it was a question wholly unrelated to android it's why I stopped May 07 04:42:24 ah ok. May 07 04:44:04 how can i launch previous activity on back button onclick May 07 04:45:06 Abhijit: Activity Redirect? May 07 04:45:19 ok May 07 04:47:05 Abhijit: if you launched activity 2 from activity 1, then it should activity 2 -> activity 1 on Back May 07 04:47:25 yeah May 07 04:47:28 Anyone know why avds are ro? May 07 04:49:27 since when are they RO ? May 07 04:50:00 oh? May 07 04:50:24 avds are rw!?! system image is rw? May 07 04:50:55 well now you're talking about a different thing, which is probably beyond the scope of this channel May 07 04:52:26 .... May 07 04:57:04 anyone know of a reason why a fragment would load slow May 07 04:57:17 what are you doing in that fragment ? May 07 05:00:50 o nvm.. its just when i'm running as debug mode May 07 05:00:58 without linked to adb its fast May 07 05:11:02 xastey: It also could be your device if you're running on a virtual device May 07 05:11:06 they tend to be slow for me May 07 05:11:10 so I prefer live debug May 07 05:11:31 virtual device? nah its on my phone May 07 05:11:43 testing not via "Run Debug" it runs just fine May 07 05:11:43 lol May 07 05:11:55 never tested it like that lol so always though it was just slow hehe May 07 05:13:13 Emu is slow cuz arm is slow on pc xD, gdb step by step is slow too, you're in good place, debugging with device ;), it would be extremely slow otherwise May 07 05:13:29 Are many app developers using google verification for their apps? May 07 05:13:38 O May 07 05:13:44 O May 07 05:13:46 whats that pinlock? May 07 05:13:49 O.o* May 07 05:13:59 lol...? May 07 05:14:51 I think this. May 07 05:14:52 http://developer.android.com/google/play/licensing/index.html May 07 05:42:11 pinlock: i think the consensus was that its was will pretty easy to remove. at least in its default impl May 07 05:42:25 s/will/still May 07 05:45:22 hello guys May 07 05:46:02 does anyone knows why my custom view is not resizing? I just use weight but it has no effect May 07 05:46:21 it's seems like siblings just overlapping the view May 07 05:50:27 hi May 07 05:52:23 hello May 07 07:06:39 Anyone willing to help me with AnimationSet? May 07 07:06:59 I have a set with rotateanimations May 07 07:07:16 Never used an AnimationSet before so I don't thikn I'd be of much help May 07 07:07:49 each animation (rotation) is similar to each other. May 07 07:07:58 pieces029: okay i wrapped it like in your example. i guess i should also include a log level? May 07 07:08:04 FillAfter/FillBefore doesn't seem to work as it should May 07 07:09:17 THe view should animate rotation as decribed in each animation. The rotation should never revert but continue and stay where it is at the end May 07 07:41:51 Hi, how does the new layout (tab navigation) in google play store work? how can you change the with of the line on each tab item? May 07 07:45:15 FrancescoV: https://plus.google.com/108761828584265913206/posts/Cwk7joBV3AC there's also an open source implementation at https://github.com/astuetz/PagerSlidingTabStrip May 07 07:45:46 tnx! May 07 07:46:07 I'm trying to record raw audio in an AsyncTask running in a service. Now i get buffer overflows (AudioFlinger) and my obtainBuffer times out. Ahat is causing this? is asyncTask to slow or are i/o-operations the problem? May 07 07:49:27 now another (maybe stupid) question: if i want to import an existing project with the name "library", but i already have another one with the samen name in my eclipse workspace, what is the best way to use them both? possible to use this library without importing it in my workspace? May 07 07:50:45 FrancescoV: Refactor one and change the name May 07 07:51:35 tnx, i knew it was a stupid question :p May 07 08:05:49 hmm, Calendar on the 4.2 emu won't let me add an account , dafuq ? May 07 08:08:18 oh, i wonder if its because its the x86 image May 07 08:10:01 bthey, btw: what should the Log.d() method for example return? May 07 08:12:07 stephanmg: I'm not sure on what they return May 07 08:12:13 they're for logging to the LogCat May 07 08:13:35 ah okay. May 07 08:14:08 The different types of methods called represent their levels May 07 08:14:13 e.g. Log.v is the debug level log May 07 08:14:16 i mean May 07 08:14:17 log.d May 07 08:14:21 log.v is the verbose log May 07 08:14:36 my favorite is Log.wtf which is the what a terrible failure level log May 07 08:31:54 goodmorning world of Android devs! May 07 08:32:14 top of the morning to you too sir May 07 08:32:43 Apped anything great lately, basilisk ? :) May 07 08:33:05 working for the man May 07 08:33:17 ouch! May 07 08:33:37 get to work on great apps though, so its all good May 07 08:33:47 what kind? if I may ask May 07 08:34:19 https://play.google.com/store/apps/details?id=com.dynamo.android May 07 08:34:22 here's one May 07 08:34:43 basilisk: you did that? very nice May 07 08:34:51 thanks g00s May 07 08:35:04 nice nice :-) May 07 08:35:30 hello all May 07 08:35:34 cortexA9: bay trail is going to kick your ass May 07 08:35:40 :) May 07 08:35:41 hi May 07 08:36:09 what are you working on these days, Sirolf ? May 07 08:36:22 marine navigation May 07 08:36:29 I wish I would get to work on great apps (other than my own of course!) someday :> May 07 08:36:33 woah! May 07 08:36:34 nothing to show in store yet May 07 08:36:53 must be interesting May 07 08:37:00 I received two bug reports from customer QA again, and I can't reproduce either of them -.- May 07 08:37:11 ACRA? May 07 08:37:21 Zharf: ^ May 07 08:37:24 yes it is :-) ... using already developed PC software techniques on Android May 07 08:37:34 basilisk, no idea what acra is May 07 08:37:52 Zharf: http://acra.ch/ May 07 08:38:15 uploads crash reports to your server as an when they happen May 07 08:38:27 hehe May 07 08:38:37 it's not a java app, also it's not written by me (or this company I work for) and it's full of undefined behaviours all over the place May 07 08:39:02 I wanted to rewrite but noo, there's no time or money, we only have 2-3 months to work on this! ... now 8 months later... May 07 08:39:12 it's not possible to make an app, that we can interact each other for android ? May 07 08:39:19 working on buggy code sucks big time May 07 08:39:21 cortexA9, what? May 07 08:39:30 yes i mean an evolution of irc. May 07 08:39:33 for android May 07 08:39:39 basilisk, especially when it's not written by yourself :) May 07 08:39:52 my code never has bugs ;) May 07 08:40:28 we have all android right ? May 07 08:40:30 basilisk, mine doesn't really either, except for the ones that I overlook, but they're really easy to fix once they're found... also you lie :) May 07 08:40:36 :P May 07 08:40:37 cortexA9: there's already an app for that, AndroidIRC May 07 08:40:52 irssi connectbot :> May 07 08:41:14 * Zharf 's kind of involved in that... May 07 08:41:16 connectbot only works well with physical keyboards May 07 08:41:20 Zharf: they are not bugs, but features May 07 08:41:31 basilisk, right May 07 08:41:37 yes but irc is old. May 07 08:41:52 :P May 07 08:41:53 cortexA9: xmpp is less old. join the yaxim team now! May 07 08:41:58 basilisk, at least when it's written by you, you can easily identify the problems May 07 08:42:03 true May 07 08:42:32 also, there's 130kloc in this piece of crap, I could write this in 20kloc easily May 07 08:42:35 :p May 07 08:42:44 i think of a new method of interaction. May 07 08:42:49 *thought May 07 08:42:54 better than irc May 07 08:42:57 cortexA9: like... SMS? WhatsApp? May 07 08:43:11 no.. May 07 08:43:49 how do you even begin to understand 130k loc May 07 08:43:56 basilisk, you don't May 07 08:43:57 basilisk: one line at a time :P May 07 08:44:10 I do hope it has proper comments May 07 08:44:12 it's taken me 8 months and I still don't understand some of it May 07 08:44:15 haha May 07 08:44:30 cortexA9: what about google wave? it was a new form of interaction. kind of. May 07 08:44:36 there's comments alright May 07 08:44:37 lol May 07 08:44:42 commented out old code all over the place May 07 08:44:44 ;) May 07 08:44:48 realtime interaction hehe May 07 08:44:52 :P May 07 08:44:58 I have a problema betwwen eclipse and emulated device May 07 08:44:59 cortexA9: irc is not realtime either May 07 08:45:09 damn, tough life May 07 08:45:23 yes i mean google wave. May 07 08:45:29 often when i try to run the aplication on the emulator on the console i get this and the application don't get started/installed May 07 08:45:30 http://pastebin.com/Li6GqeAW May 07 08:45:46 cortexA9: so, are you going to code something? May 07 08:45:50 sometime closing the emulator and restarting it works but some time no :| May 07 08:46:07 Ge0rG, no i am not good to code. :P May 07 08:46:11 just suggests May 07 08:46:17 cortexA9: why are you here then? May 07 08:46:26 for suggestions. May 07 08:46:36 cortexA9: I suggest you learn to code, then :P May 07 08:46:41 :D May 07 08:46:54 cortexA9: this is a hot problem, money is there waiting to be made May 07 08:47:07 cortexA9: while you are at it, make it secure and anonymous May 07 08:47:07 lol May 07 08:47:25 yes May 07 08:47:34 :P May 07 08:47:35 also, it must allow sending of lolcats. May 07 08:47:49 cortexA9: and I want you to finish it... yesterday! May 07 08:48:12 ? May 07 08:48:16 what u mean May 07 08:48:30 tough deadlines are the best way to make progress fast May 07 08:49:23 i thought google can do more with android. May 07 08:49:38 google can do your mom. May 07 08:49:39 do more than making it completely open you mean? May 07 08:49:48 haha May 07 08:50:34 yes i want a more open and connected network May 07 08:50:46 than now May 07 08:51:12 cortexA9: it is not in google's business interest to make an open and connected network. use xmpp May 07 08:51:37 Ge0rG u think ? :P May 07 08:51:57 cortexA9: you can't insert ads if you don't run the server May 07 08:52:00 google is google :P May 07 08:52:07 Ge0rG: don't they run on XMPP in many places anyway? :P May 07 08:52:26 xmpp is crap May 07 08:52:52 Everything over HTTP is bigger, though :/ May 07 08:53:19 p_l|omoikane: three I know of. gmail (which makes the gmail service a bit more attractive), wave (which they killed) and android push (which is a proprietary mechanism to lock-in device vendors). any questions? May 07 08:53:31 Zharf: but it is the best crap we have May 07 08:53:45 irc is clearly better crap :) May 07 08:53:53 yes May 07 08:54:05 irc is old May 07 08:54:22 Zharf: ... no, IRC is not better. Certain things lead to stuff being built on IRC that works in pleasant ways, but the same can be done on XMPP, better May 07 08:54:24 Zharf: except irc does not allow support things you need today May 07 08:54:26 RetroShare community May 07 08:54:33 is developing a decentralized network May 07 08:54:42 nightweb.net as well May 07 08:54:42 based on PGP web of trust May 07 08:54:46 retroshare is a friend-to-friend community May 07 08:54:50 maybe is too nerdish for common people May 07 08:54:55 Ge0rG, like what May 07 08:55:08 but i think that doing some nice gui it would be very userfriendly May 07 08:55:15 Zharf: message delivery receipts, so you see if the other party got your message May 07 08:55:33 and you need this why? May 07 08:55:40 Zharf: connectivity over network boundaries (what happens to your irc session if you switch from 3g to wifi?) May 07 08:56:07 Ge0rG, nothing May 07 08:56:09 Zharf: you never had miscommunication with real-life people due to lost text messages? May 07 08:56:15 no May 07 08:56:29 Zharf: irc is basically only usable if you have a remote irc client running on a VPS / colo May 07 08:56:36 what about an androidshare network :D May 07 08:57:06 Ge0rG, and that's the best way too, I can't see any gain from any other protocol <.< May 07 08:57:23 connect every android phone into a network. May 07 08:57:30 Zharf: so, how do you send a file to an irc party? scp to your server, dcc, let the other guy scp it down? May 07 08:57:34 Zharf: ...from your smartphone? May 07 08:58:09 multiple options... May 07 08:58:38 Zharf: so, essentially, you're advocating not IRC, but shell server and using your device as terminal to it May 07 08:59:18 p_l|omoikane, I'm also advocating irc, though not to common folk May 07 08:59:28 common folk doesn't need messaging services May 07 08:59:28 i think google can do a better G+ network. May 07 08:59:30 Zharf: what about common folk, then? May 07 08:59:32 they'll just be retarded May 07 08:59:36 heh. May 07 09:00:10 like this particular person; https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-ash3/945345_558302354235841_1537030885_n.jpg May 07 09:01:49 yeah, everybody can be an asshole on the Internet. May 07 09:01:59 yea May 07 09:02:30 :D May 07 09:04:12 what is the best way to send data from a Fragment to a Fragment that's a page inside a viewpager? May 07 09:04:41 what about key lime pie ? May 07 09:05:28 cortexA9: all we know is that its coming … some day … probably before xmas … although maybe not this xmas May 07 09:06:01 damn. May 07 09:06:04 is KLP matching both the "K" and the "L" release cycle? May 07 09:06:20 and android 4.3 ? May 07 09:06:48 i dont' think anyone here has access to master/HEAD so ... May 07 09:07:15 FrancescoV: from personal experience, go through the parent activity May 07 09:09:11 waiting for google i/o May 07 09:10:16 I freaking hate on screen keyboards May 07 09:10:30 +1 May 07 09:10:37 Zharf: that is because you are using irssi-connectbot and not a touch optimized app May 07 09:10:38 the videos will be free and all, and thats great - but i'm kinda amazed they are getting away with 40 minute sessions this year. wtf can you talk about in 40 minutes ? May 07 09:10:49 I typed vmai.com instead of gmail.com a dozen times May 07 09:11:05 sorry, vma.com May 07 09:11:05 g00s: today, I need to present 6 years of work in a 15min time-slot May 07 09:11:16 (v below g, backspace below l) May 07 09:11:35 Ge0rG: but the videos are educational, not elevator pitches May 07 09:11:36 Ge0rG, I also have a real keyboard on my phone May 07 09:11:59 * Ge0rG is using the physical keyboard on the desire-z mostly for ssh May 07 09:12:07 and slideit for most other tasks May 07 09:14:01 basilisk: is there another posibility? because i have one FragmenAcitivy and i put all my fragments (15 - 20) inside that FragmentActivity May 07 09:14:50 you can use an event bus, but it is highly error prone May 07 09:16:47 basilisk: what problems have you experienced ? May 07 09:16:53 is it possible to create an interface (callback / listener) to send the data to the Fragment (singleton fragment) May 07 09:17:43 g00s: the fragment being paused or recreated May 07 09:18:49 the way I implemented it, my fragments would be discarded by the activity and then the getActivity would return null May 07 09:19:38 what about make an app for making new app ? May 07 09:19:55 cortexA9: pfft, make an app that makes an app which makes an app ! May 07 09:20:10 :D May 07 09:20:17 for beginners May 07 09:20:22 make an app that makes ALL our apps :) May 07 09:20:31 but here's the trick May 07 09:20:41 I made one of those but then I realised it'd put me out of work so I had to destroy it. May 07 09:20:42 this part requires hardcore pro May 07 09:20:59 the generated apps have to make money May 07 09:21:09 yes from ads. May 07 09:21:39 not ads, from people paying for worthwhile software May 07 09:21:49 hey capella ! May 07 09:21:55 :) May 07 09:21:59 g00s! May 07 09:22:10 i'm enjoying my FF tab groups before they remove them ;) May 07 09:22:23 they're removing them? :( :( May 07 09:22:23 DOH! - sorry to hear! May 07 09:22:25 do you think that ads can be filtered/removed from every app? May 07 09:23:17 g00s: what you ask for is too close to skynet to acutally implement. May 07 09:24:31 pretty sure there are sanctions on that. May 07 09:24:43 capella: i'm really liking "Self Destrucking Cookies" extension … when it works. May 07 09:26:30 Yah ! I noted that one ... havent tried it yet .... its got like 100k downloads already May 07 09:28:16 please android devs make an app for making new apps May 07 09:28:19 :) May 07 09:29:32 cortexA9: isn't there already one? May 07 09:29:47 why stop at apps? May 07 09:30:52 capella: is there a specific plugin like ghostery / disconnect.me you like ? May 07 09:31:44 Um Ghostery for my desktop ... mobile I only have QuitNow and Adblock May 07 09:31:57 FrancescoV: no i think. May 07 09:32:27 capella: easylist or fanboy for ABP ? May 07 09:32:56 https://play.google.com/store/apps/details?id=com.aide.ui&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5haWRlLnVpIl0. May 07 09:32:57 Both on desktop ... mobile only lets you do one so I do Fanboys May 07 09:33:01 Is it possible that asyncTask is too slow to properly record audio? i'm getting 'AudioFlinger RecordThread: buffer overflow' and 'AudioRecord obtainBuffer timed out'.. May 07 09:33:19 there is a premium version too May 07 09:33:28 freiform: i guess it depends on how you use it ? May 07 09:34:20 AIDE seems like a fun science project … does anybody actually use it :P May 07 09:34:40 you know you're using a toy OS when you can't write apps on that platform for that platform ;) May 07 09:35:11 :) May 07 09:35:22 g00s: here's an example http://pastebin.com/5VjFRNPy May 07 09:35:33 g00s: it throws errors about some of my interface subclassing May 07 09:35:37 so my project wont even compile May 07 09:35:54 FrancescoV: i mean a gui editor for android. not code. May 07 09:35:59 freiform: why not just use a class that extends runnable? May 07 09:36:49 eclipse is written in java. can't we convert its bytecode to dalvik? May 07 09:37:19 Ge0rG: its using the SWT lib for the actual gui, which is a native lib linked to your OS's ui toolkit May 07 09:37:22 lasserix: i chose asynctask so i can easily stop it when the invoking service is stopped. May 07 09:38:07 clever: I'm sure somebody can write an SWT backend for the Android UI May 07 09:38:34 Ge0rG: it would be much less work to just run normal linux in a chroot, and fire up an x11 server app (there are a few) May 07 09:39:00 its been done before May 07 09:39:11 clever: ever tried running x11 apps on a 4" touch screen May 07 09:39:13 +? May 07 09:39:16 hey all! trying to run Android Project connected to local App Engine... doesn't work with local backend.. whats wrong? May 07 09:39:28 Ge0rG: i have trouble using eclipse on a 14" screen May 07 09:39:33 i know you can change your xml layouts but idd no good ui creator May 07 09:39:55 Ge0rG: if you try to just jam the entire thing on a 4" screen, it just wont work :P May 07 09:40:08 clever: pessimist! May 07 09:40:42 Ge0rG: this is also why i started my latest android app for a game, the javascript/html5 ui just doesnt fit on a android screen May 07 09:40:55 it needs a custom ui designed arround a mobile platform May 07 09:41:20 eclipse would need the same thing May 07 09:42:23 IDEA works great on 11" screen ! May 07 09:43:51 I'd get the asus transformer, but you can't just do real work on android May 07 09:44:39 thats why i'm waiting for Windows 8 tablets to get better May 07 09:44:39 * clever goes to bed May 07 09:45:04 * Ge0rG probably should get one of these nifty ultrabooks, install linux and have fun May 07 09:45:09 i would be very excited to use a Windows 8 tablet with Lightroom on it May 07 09:45:26 but this is so much work, and I have a notebook already which is still somehow acceptable May 07 09:45:37 i would get a 7" one maybe, and take it with me on photography trip. i like to keyword and delete on trip May 07 09:45:49 there are android tablets with keyboard ? May 07 09:45:57 cortexA9: asus transformer May 07 09:45:57 transformer May 07 09:45:59 cortexA9: Asus transformers May 07 09:46:03 there are android laptops coming May 07 09:46:12 Intel guy announced that last week i think May 07 09:46:17 yes May 07 09:46:19 i heard. May 07 09:46:23 you can install android-x86 on laptops already. its no fun May 07 09:46:41 but you still can't do any real work on an android :p May 07 09:46:43 i wish they just used C++ and GTK or something May 07 09:46:44 and since some ppl guess chrome OS and android will merge more, there might also be coming more android laptops even from googles side May 07 09:46:49 Java fucks up everything May 07 09:47:15 C++ and Qt ;) May 07 09:47:18 g00s: c++ is still worse May 07 09:47:19 sure May 07 09:47:23 java is a shit :| May 07 09:47:33 but it's only 10". May 07 09:47:36 transformer. May 07 09:47:36 at the begin they supported python too May 07 09:47:43 but they abandoned it quite soon May 07 09:47:43 Ge0rG: its worse, but there is so much sw out there that is C++. and it works on iOS, windows, etc May 07 09:48:02 g00s: ok, ios/win portability is a key value May 07 09:48:11 i dont miss c++ May 07 09:48:32 but putting all this stuff into a java framework was an epic fail May 07 09:48:33 I wish they would provide an offline version of the app inventor May 07 09:48:50 java also works on all platforms... c++ works cross platform if you use libs that are available on all platforms, so you cannot blame java for that, but the android specific libraries May 07 09:48:57 its why, until somebody provides incredible proof of otherwise, i can't see android ever going beyond 'apps for phones' May 07 09:49:19 android alsready went beyond that? May 07 09:49:25 rising in embedded sector May 07 09:49:26 yeah, apps for tablets May 07 09:49:33 car entertainment systems, ebook readers May 07 09:49:40 timroes: ah, yes embedded linux appplications sure May 07 09:49:49 * Ge0rG still wonders how the android based tv player dongles are meant to be controlled May 07 09:49:54 ebook readers are dead :| May 07 09:50:05 ah yeah right :D May 07 09:50:07 so is c++ May 07 09:50:13 at least to the pretty same amount May 07 09:50:53 * Ge0rG now has a bunch of java/scala code he needs to port to iOS... May 07 09:51:06 c++ domain of usefulness is shrinking, but where its good - its good still May 07 09:51:14 systems level stuff May 07 09:51:19 same for ebook reader.. May 07 09:51:26 the layer that SHOULD have all the fuckcrap thats now in the java framework May 07 09:51:28 i would never want to read full books on my tablet May 07 09:51:32 without an eink display May 07 09:51:41 hurt my eyes pretty fast, so for reading stuff its still good May 07 09:51:47 * Ge0rG is reading ebooks on the galaxy nexus amoled May 07 09:51:49 ofc i would never use it to surf the net or watch youtube videos :D May 07 09:51:58 timroes: and Adobe pdfl is c++ XD May 07 09:52:06 it's not possible to have a tablet with a notebook keyboard ? May 07 09:52:16 pretty much every ebook reader out there that renders pdf licenses pdfl May 07 09:52:23 cortexA9: if it has a keyboard, its not a tablet. so no May 07 09:52:24 so? May 07 09:52:39 an hybrid right ? May 07 09:52:50 there are some win 8 products. May 07 09:53:09 Microsoft Surface with the touch cover is pretty cool May 07 09:53:25 wow u guys still talk about c++ vs java :P May 07 09:53:27 i heard touch cover is bad. May 07 09:53:30 cortexA9: the main theses, according to Bill G, is that people hate on screen keyboards … why the surface has that kb May 07 09:53:46 Eh, keyboard would be nice to have May 07 09:54:04 Bill has to toe the party line :) May 07 09:54:29 If it was an Android device, I would have a reason to figure out how to get the NDK working on ARM host May 07 09:55:09 LinuxOnAndroid + Touch Cover + Android development directly on Android device :D May 07 09:55:29 or a ubuntu tablet :) May 07 09:55:38 hehe May 07 09:55:50 i want general purpose computing devices, not these fucking toys :D May 07 09:56:03 Still would need to get the NDK working on a ARM host :P May 07 09:56:05 but atm , its all we have. for now May 07 09:56:52 goos did you see http://www.tuvie.com/you-can-keep-d-roll-laptop-inside-a-tube/ ? May 07 09:57:07 what about a new qwerty phone, something in the performance order of SGS3 May 07 09:57:39 A quad cortex-A9 at 1.6Ghz? :P May 07 09:57:41 lasserix: cool :) May 07 09:57:46 g00s, get a hp elitebook ;) May 07 09:58:03 Ge0rG, Blackberry May 07 09:58:11 Sonicadvance1: android please May 07 09:58:24 mine's the best purchase I made last year, even though it cost 1.5k€ May 07 09:58:32 SOL then Ge0rG :P May 07 09:58:46 Sonicadvance1: SOL? May 07 09:58:50 oh, when i meant general purpose computing device, i meant tablet form factor May 07 09:58:53 Shit out of luck May 07 09:59:05 g00s, meh, tablets suck May 07 09:59:14 ,oO( http://www.9gadjets.org/2013/03/lg-optimus-sol-android-phone-leaked.html#.UYjQPZB8w6I ) May 07 09:59:58 is that from like 2011 or something? May 07 10:00:02 wtf? 2.3.3? May 07 10:00:05 problem here: I have a Fragment with a Viewpager, i get my data from a JSONObject, but how can i send my data from this Fragment to FragmentPageX from the viewpager? (using FragmentPagerAdapter May 07 10:00:15 Terrible is terrible I guess May 07 10:00:18 (i'm using a FragmentPagerAdapter) May 07 10:02:33 it's not possible to use my nexus 7 with keyboard ? May 07 10:03:08 cortexA9, Bluetooth? May 07 10:03:20 there are ? May 07 10:03:35 Yes, there are bluetooth keyboards May 07 10:03:57 mmm i need one.. May 07 10:03:57 Dunno if the N7 supports USB OTG, you could do it that was as well May 07 10:04:05 holy crap, http://www.androidpolice.com/2013/05/06/create-a-killer-retro-lcd-android-theme-with-a-few-quick-downloads/ May 07 10:04:18 that should replace Holo ! May 07 10:04:19 USB OTG works amazingly well on my Galaxy S4 May 07 10:04:25 its inline of what i think about android ;) May 07 10:05:06 u think it's better usb otg or bluetooth keyboard ? May 07 10:07:21 google app egine with gcm - problem... any help? May 07 10:07:37 cortexA9, meh May 07 10:07:53 AA batteries in the bluetooth one? Cable with USB OTG? May 07 10:08:04 SeptDePique don't ask to ask, just ask May 07 10:09:43 can't register to google app engine running locally.. followed this guide: https://developers.google.com/eclipse/docs/endpoints-androidconnected-gae May 07 10:11:15 are the endpoints public already? May 07 10:12:06 is Buddha's b-day next friday? May 07 10:12:41 ehm... i am not very familiar with this topic... when i deploy the app-engine to google, it works May 07 10:14:11 I have an application that uses fragment activities, and in one tab, I have the mainbody act as a search with a edittext and a button that returns result in a listview below. the user can search again and again, however when u press back it exits the app because of a null pointer exception. How can i keep each search iteration as part of the back pressed stack? Or if there is another May 07 10:14:11 way to approach this, I am all ears. May 07 10:14:11 Also another issue I am having is that the edittext even when clicking inside the box does not get focus, but instead focus goes into the fragment tab itself, although I think that has partly to do with it being on the emulator rather than a device, because if I use the soft keyboard it seems to be fine. May 07 10:18:03 smubeth override on back pressed May 07 10:18:52 the problem is however users are expecting back to do certain things, so if you introduce something unfamiliar you are failing to conform to standard design practices May 07 10:19:32 a better way, would be then to have another button something like "undo" or "previous" that goes back in the search iteration and leave the back button behave like it should May 07 10:21:37 can someone help me with this: http://stackoverflow.com/questions/16416630/android-send-data-to-viewpager-page May 07 10:22:04 does anyone who use trello in here know how to see the latest post? May 07 10:22:17 are you the same francesco from #googleapis? May 07 10:23:48 ? May 07 10:23:57 no May 07 10:24:33 lol... ok... then it's accidental May 07 10:27:03 Hello May 07 10:27:20 is it possible to get some advice regarding my device May 07 10:27:34 nothing decisive May 07 10:27:44 ok. May 07 10:27:50 well any help is goood help May 07 10:27:52 i do use a back override, but i mean it seems without switching fragments the back is not accepting the current part as a back element May 07 10:28:33 trying to upgrade my rk device manually May 07 10:28:37 Smubeht: you need to go back to the previous fragment ? May 07 10:28:39 have got a backup with a system.tar May 07 10:28:52 now wish to update to jb May 07 10:30:01 do i have to manually upgrade the system.tar and reflash or can i get a jb rom and config it for my device May 07 10:30:10 r3NdRaG: please... channel topic... read. May 07 10:30:31 FrancescoV: no, I am making an application that has 3 tabs, in one of them is a search, in that search it has below a listview, if i press the button it searches the content and displays in listview, if i search again it does that as well, what i want is for back to go to the previous search, rather than null pointer exception May 07 10:30:58 does it make sense to ask same question more than once here? May 07 10:31:05 Hey May 07 10:31:07 :D May 07 10:31:36 Smubeht: you should let back do what it is supposed to do and add your own button that goes to the previous search May 07 10:31:57 Hey whats the best way to use a dialog? Should I call it from an activity? May 07 10:32:14 or as an activity* May 07 10:32:25 but i feel like most applications let back iterate through the searches, and that this would be a defect in the design May 07 10:32:33 Smubeht which applications? May 07 10:33:23 gmail doesn't do it that way May 07 10:33:25 Smubeht: you can put your list (search result) in a fragment, then you every search action a new fragment to a framelayout (framelayout is under your search), i think that's possible, May 07 10:33:52 what i was trying to say is for instance add a "back" button that when clicks opens a spinner that has recent searches then they can just click one of those and it'll research May 07 10:34:53 FrancescoV: I would somehow need to track that in the edittext as well right to show the results match the search? May 07 10:34:57 ebay, netflix none of them override back to iterate previous search May 07 10:35:14 and for instance the play store, if u search and search and search it just go back to previous searches May 07 10:38:03 heh its actually broken May 07 10:38:09 you are right but i think they fucked up May 07 10:38:29 i have to click back twice (the first time it doesn't do anything) at least on my n7 May 07 10:38:43 the thing to note that the search is inside the action bar May 07 10:38:58 Smubeht: can you put the search value into an arraylist of string? then inside your back override, you can show the previous item inside that arraylist, possible? May 07 10:39:19 and if you press back again it'll go back to home screen or last fragment? May 07 10:40:04 FrancescoV: that might work, but is that intensive to memory to store everything into arraylists? May 07 10:40:36 Smubeht: unless your list is growing factorially May 07 10:40:56 Smubeht: i think that can't be a problem for searching May 07 10:41:00 Smubeht: tbh I think the play store back pressing is kinda broken relative to google's own design patterns / other google standard apps May 07 10:41:02 was there some API to create internal storage/cache management UI for an app, or is this just my mind playing tricks on me? May 07 10:42:54 thanks guys, i will try with the arraylist and if not, maybe reconsider doing it this way and just have back act the normal way May 07 10:43:14 any ideas on my second issue? May 07 10:43:26 Also another issue I am having is that the edittext even when clicking inside the box does not get focus, but instead focus goes into the fragment tab itself, although I think that has partly to do with it being on the emulator rather than a device, because if I use the soft keyboard it seems to be fine. May 07 10:45:31 Hi, I am using malloc in eclipse in a Android JNI/NDK project. I getting "Invalid arguments ' Candidates are: void * malloc(?) '" error in the editor. However, the compilation and application works fine. Any idea what could be wrong? May 07 10:46:28 or maybe a way to make Eclipse ignore this and let me run the project? May 07 10:47:05 Paste the relevant code. May 07 10:47:32 unsigned char* imagedata = (unsigned char*) malloc(count * sizeof(unsigned char)); May 07 10:47:42 Is that C or C++? May 07 10:47:48 C++ May 07 10:47:49 count is int May 07 10:48:00 I see. I don't know about C++. only C, sorry. May 07 10:48:13 Or, not enough about C++. In C you wouldn't cast malloc. May 07 10:48:26 But afaik in C++ you do. Maybe someone else knows. May 07 10:49:51 problem is "void* test = malloc(3);" gives me the same error May 07 10:51:58 erm... "void *test = malloc(3);" maybe? May 07 10:52:30 same error May 07 10:53:03 meh, IDE May 07 10:53:13 sounds like it. May 07 10:54:45 please don't use malloc in c++ May 07 10:54:46 ;_; May 07 10:54:53 you'll kill tons and tons of kittens May 07 10:55:06 new and delete? May 07 10:55:13 preferrably May 07 10:55:27 I do not get an error or warning on that line using clang++ btw. May 07 10:55:35 hey guys, do Gson tries to serialize enums and static final variables too? May 07 10:56:08 I am having a "Forgot to register a type adapter?" error May 07 10:57:12 I really really want to use gson because the class has like 50 fields and would fie if I have to serialize them manually May 07 10:57:31 die* May 07 10:58:05 frog3r, so there's some type in there that it doesn't know what to do with May 07 10:58:32 Zharf, exactly, but I dont know why May 07 10:58:52 doesn't it tell you which type May 07 10:59:04 @Zharf they are all primitives, except for some enums May 07 10:59:11 not really May 07 10:59:16 it's been like a year since I used it May 07 10:59:34 you probably need to write a type adapter for the enums May 07 11:00:36 damn, I rather just move them from the class May 07 11:00:48 type adapters are easy May 07 11:01:12 it just tells gson how to read and write a type to and from json May 07 11:01:30 makes sense but I don't really need the enums in the json May 07 11:01:53 Then don't serialize them. May 07 11:02:06 Does GSON respect the 'transient' modifier? May 07 11:02:27 it's been like a year since I used gson, I can't really remember much of it May 07 11:03:33 I don't really know May 07 11:03:49 im guessing its an option to just ignore something? May 07 11:05:08 frog3r, https://sites.google.com/site/gson/gson-user-guide#TOC-Excluding-Fields-From-Serialization-and-Deserialization May 07 11:07:00 frog3r, make then transient and use that then May 07 11:07:06 thanks!, seems exaclty what I need May 07 11:10:20 mmh May 07 11:10:39 hmmm May 07 11:10:46 nope, didn't work May 07 11:11:09 could it be because some strings contain base64 encoded jpegs? May 07 11:11:18 no May 07 11:11:40 for testing purposes go ahead and try to comment out some of the non-standard types May 07 11:13:15 I don't really have any non standard, only longs, ints, doubles and Strings May 07 11:13:38 maybe the public static final ints? May 07 11:13:42 once again: can't register to google app engine running locally.. followed this guide: https://developers.google.com/eclipse/docs/endpoints-androidconnected-gae May 07 11:14:43 nope, they are not.... May 07 11:15:01 commented them and still not running May 07 11:19:33 Which is a good example app to learn good multithreading and services in Android? May 07 11:24:04 So, anyone when and when not do android acessories (ADK devices) work ?, I've got one that is fine on several devices, but not in others May 07 11:24:08 and I can't tell apart why May 07 11:27:45 Ikarus: have you read the page on usb host and accessorys? http://developer.android.com/guide/topics/connectivity/usb/index.html May 07 11:28:09 Ikarus: you will notice its remarks on the android version May 07 11:29:38 Napalm: or newer platforms May 07 11:29:43 I am using 4.x devices May 07 11:29:50 all of them May 07 11:30:41 Then they should work, perhaps its a problem with the new adb debug protection May 07 11:31:03 Napalm: 4.0.x devices fail aswell May 07 11:31:13 and it's more device dependent then Google version dependend May 07 11:31:23 yes, as i said May 07 11:32:52 Napalm: that's new in 4.x ? May 07 11:32:54 I believe click handlers can be named in either layour or programatically in the Activity, Which one is better/newer approach? May 07 11:33:03 if so, how do I figure out why that happens and how I disable it May 07 11:35:28 because afaik, ADB protection is in 4.2.2 May 07 11:35:30 crised: programatically because it provides a direct linkage, rather than layout/xml based May 07 11:36:51 Ikarus: no idea then May 07 11:37:07 Napalm: :) May 07 11:37:35 anybody from new york? May 07 11:37:43 ;D May 07 11:38:13 Napalm: .... well back to 0 anything to look for in debug messages ? May 07 11:40:32 I mean if I can't tell which will and won't work with ADK type devices and why, I can hardly use them for a course...... May 07 11:43:35 frog3r, figure it out yet? May 07 11:43:55 nope, thanks for checking hehe May 07 11:43:58 Ikarus: well im not a googler so i have no definitive answers for you, hang around and perhaps a googler will reply May 07 11:44:14 frog3r, can you pastebin some code May 07 11:44:16 its too late and figured i would spend less time just doing it manually :( May 07 11:44:30 so I'm on line 50 more or less May 07 11:44:33 of 70 May 07 11:44:50 aha May 07 11:45:02 would've liked to have known the problem though :) May 07 11:46:52 I know.. May 07 11:47:01 I might try and make it work tomorrow May 07 11:54:09 public class ImageProcessor extends HandlerThread implements Handler.Callback { May 07 11:54:21 eclipse complains about Handler.Callback, why? May 07 11:54:39 import android.os.Handler.Callback; May 07 12:02:35 Good evening peeps May 07 12:02:47 im looking for guidance May 07 12:03:03 ChatterBoXv0: write specific question May 07 12:03:16 Is Looper class something specific only to Android? May 07 12:03:31 hello! gcm registration error: "Unable to register your device with your Cloud Endpoints server running at http://10.0.2.2:8888/_ah/api" both on real device and emulator ... can anyone help? May 07 12:04:04 i need help on how to start to develop apps for android, im a total newbie.. so links for good tutorials and for basic java knowledge would be highly appreciated :) May 07 12:04:55 ChatterBoXv0: In my opinion Learn Java first May 07 12:05:01 something good to start of with for some1 who dosent have any app dev experrience or Java codeing May 07 12:05:13 where would be a good place to start ? May 07 12:05:15 ChatterBoXv0: get a book from amazon May 07 12:05:26 any recomendations ? May 07 12:05:42 ChatterBoXv0 May 07 12:05:57 http://www.amazon.com/Thinking-Java-Edition-Bruce-Eckel/dp/0131872486/ref=sr_1_2?ie=UTF8&qid=1367928337&sr=8-2&keywords=java+bruce May 07 12:06:00 ChatterBoXv0: do you know coding in general? May 07 12:06:02 ChatterBoXv0: maybe http://www.androidhive.info ?? May 07 12:06:03 ChatterBoXv0: May 07 12:06:05 any other languages? May 07 12:06:15 nope ... :/ May 07 12:06:23 but really want to learn May 07 12:06:28 I was a total newbie Chatterbox May 07 12:06:31 2 weeks ago May 07 12:06:46 now I'm making my app already feel free to talk to me about "newbie" tips on how to git-r-done quick May 07 12:06:59 i didntk now java only some php May 07 12:07:28 i have no coding experrience at all May 07 12:07:32 then you've got some real learning in front of you May 07 12:07:40 hehee May 07 12:07:45 don't expect to be able to make anything non-trivial for a few months May 07 12:07:46 do you have Skype or email May 07 12:07:53 i can teach you cuz I didn't know any coding either May 07 12:08:04 yea thats what i was expecting.. but any sugestions on where i should start.. May 07 12:08:05 ? May 07 12:08:15 u need to start out with C++ simple projects May 07 12:08:21 or any language May 07 12:08:43 i think c++ is not a good point to start May 07 12:08:55 ... don't go into C++ May 07 12:08:56 php is probably the best way to start May 07 12:09:05 it was for me May 07 12:09:12 Newbieto: no offense, but please... don't May 07 12:09:23 why not java? it's not so bad for beginners May 07 12:09:29 BASIC ! May 07 12:09:31 I don't advocate PHP either. Consider maybe Python or Ruby, and get yourself some "generic" (i.e. not language-fixated) books on programming May 07 12:09:31 it was bad for me ! May 07 12:09:37 php is the modern BASIC May 07 12:09:37 Can someone explain me what a Looper class is? May 07 12:09:55 and I mean that in the worst way May 07 12:09:57 crised: it implements a basic event loop functionality in Android, iirc May 07 12:10:00 ... hmmm.. so should i start headon with java ? May 07 12:10:01 even better, What Messages(Runnables) are? May 07 12:10:12 p_l|omoikane: I don't reckon that May 07 12:10:25 yeah May 07 12:10:27 p_l|omoikane: What is a thread queue? May 07 12:10:31 they're good series May 07 12:11:03 crised: basically, it forms a skeleton for "event processing loop". Thread queue... let me check the source to see the exact use first May 07 12:11:51 p_l|omoikane: still, completely out of context for me... I know a little bit about threading in Java, how to create them. How can I understand Loops/ May 07 12:11:56 ChatterBoXv0: when you understand java and the theory behind it... you will understand all other languanges... May 07 12:12:28 ok so how do i get started with learning the basics of java ? May 07 12:12:38 any sugestions septdepique May 07 12:12:44 crised: think of it as having an "input queue" of events (basically, "something happened", the "input") coming in as "messages", which you handle May 07 12:12:56 it's how, for example, various UI toolkits handle user input May 07 12:13:18 ChatterBoXv0: hmm... i suppose you don't speak german? May 07 12:13:22 p_l|omoikane: only one thread handles them? May 07 12:14:07 crised: no, Looper is an "utility" class to implement such behaviours. It happens that the UI code uses them too in this case, and the application has its "main" looper to process system events IIRC May 07 12:14:38 crised: however, nothing stops you from creating your own threads that use Handlers and Loopers to do background work for you May 07 12:14:53 SeptDePique: nope i speak danish, english and french :) May 07 12:15:25 p_l|omoikane: ok, let me digest May 07 12:17:04 an analogy could be that each Looper thread is a guy in office with an "in" box for various papers (events) who acts on them May 07 12:17:14 ChatterBoXv0: just google for java tutorials for beginners... for example: http://www.freejavaguide.com May 07 12:18:37 ok thanks Septdepique May 07 12:19:48 ChatterBoXv0: I still recommend that you get yourself some proper book. (Some are available for free on the net). Maybe something language agnostic. At least if you want to get good and/or serious May 07 12:20:01 * p_l|omoikane has very bad experience with "googling for tutorials" May 07 12:22:03 Excuse me, I'm trying to get (symbols from) a stack for a crash. The two "pc" addresses are in libc.so. But further down in the LogCat trace, I see "476ade2c 8145b968 /mnt/asec/MyApp-1/lib/libgame.so" May 07 12:22:18 Is there a way to convert that to a symbol/line in code? May 07 12:22:27 progzer: did you compile with debug information? May 07 12:23:22 Probably not. I used the default settings of a helper (cocos2d-x's create-android-project.sh). Let me check, I saw DEBUG=1 in one of the mk files in this or another project. May 07 12:24:12 progzer: still, without *at least* -g in compiler options, you might not get proper symbol mapping May 07 12:24:31 p_l|omoikane: Is the way to do that to set -D_DEBUG=1 for APP_CPPFLAGS? May 07 12:24:55 progzer: that only defines _DEBUG preprocessor macro to be 1 May 07 12:25:02 which probably enables some logging code etc. May 07 12:25:14 in APP_CPPFLAGS, add "-g" May 07 12:28:13 Thanks, will report back after rebuilding (and crashing! :) May 07 12:35:13 are there any good guidelines on how complex server-side computing can be? May 07 12:35:25 or how long a user is willing to wait for results May 07 12:36:15 belgianguy: there's a line of thumb on human reaction, but you are basically always going outside it when you go to external server May 07 12:36:44 p_l|omoikane: yeah, but I'm wondering if I then should split up some info May 07 12:37:01 which would make it speedier, but require multiple requests May 07 12:37:35 belgianguy: "not instant" is perceived around 700ms. Now consider the fact that getting ping of 800ms on 3G network is definitely not unusual May 07 12:37:57 (in general, TCP on 3G sucks latency wise) May 07 12:38:04 any of y'all use holoeverywhere? May 07 12:38:50 belgianguy: instead of using multiple requests, you might want to do better with protocol choices, compression, etc. May 07 12:38:58 belgianguy: also read about Instagram's bag of tricks May 07 12:44:05 little question, how can i get the value of the selected value from an autocomplete textview? May 07 12:50:59 ok, found it May 07 12:52:00 gcm registration error: "Unable to register your device with your Cloud Endpoints server running at http://10.0.2.2:8888/_ah/api" both on real device and emulator ... can anyone help May 07 12:53:37 mmm, do you also get a 200$ request from every android review website or is it just my shitty app? May 07 12:55:21 I've received a few offers of "better marketing/visibility" but never outright requests for money :p May 07 12:55:30 it's just spam that I ignore and delete May 07 12:56:44 I contacted the websites, asking for a review... the reply was sure, just pay 200$ May 07 12:57:08 oh May 07 12:57:16 I never asked for a review, I couldn't care less about those :p May 07 12:58:13 If there a way using shell, or a rooted app, to deactivate the hardware keyboard? May 07 12:58:16 Is* May 07 13:16:10 I'm trying to set the color of the Actionbar using setBackgroundDrawable([Drawable]). This works fine the first time, however any subsequent calls to this function just gives me a white actionbar. May 07 13:16:29 what's the best way of handling this logic? I need to call a function (class method) every X seconds, starting at boot complete. It doesn't have to save the state, as it's already saved in the SQLite database. I've created a broadcast receiver which will run at boot completed to start the "thing". Now, should I start a service via AlarmManager to be sure it's running, or should I do something cleverer, if possible in the Android API? May 07 13:16:29 My concern is about battery saving. May 07 13:17:06 annoia: where did you define the Drawable? The system may have recycled it. May 07 13:18:49 elegos - I create a new one every time - I could try to make it a member var May 07 13:19:52 annoia: are you defining the variable inside the same code block, or outside of it? May 07 13:20:09 annoia: couldn't you just load the drawable ID? May 07 13:20:11 elegos - Inside the same... Making it a member variable fixed it. May 07 13:20:34 If anyone can solve this problem i'll be forever grateful. A few weeks ago I had a working BluetoothService. I would select the device i wanted to connect to and a prompt would pop up asking me to enter the PIN. I stopped testing it and kept on developing. Today I tried again and it seems that my BluetoothService never receives anything about needing to enter PIN and as such it never May 07 13:20:35 connects to the device May 07 13:20:48 elegos - setBackgroundDrawable requires a drawable. If I load the resource I have the same issue. May 07 13:20:56 I found the old revision of the BluetoothService and attempted to use that one instead of the new one IN my new project May 07 13:20:58 same problem May 07 13:21:08 I tried reverting to the old project and everything works fine May 07 13:21:37 elegos - But... Keeping the reference lock seems to fix it. Seems like an odd place not to hold a GC lock. May 07 13:22:30 I'm so frustrated, I can't find a solution for making a config-entry stay at what it is set to. :( May 07 13:22:39 annoia: if it's a fixed resource and you don't have to change it, you could try setting it in th XML file directly... i.e. http://stackoverflow.com/questions/5861870/actionbar-background-image May 07 13:23:13 Multiply: config-entry? May 07 13:23:22 Multiply: do you mean build.prop? May 07 13:23:33 Whenever you plug out a physical keyboard, and plug it back in, it's set to enabled. May 07 13:23:50 I need to disable it, so the on-screen keyboard still works. May 07 13:24:02 it's the plug'n'play concept May 07 13:24:27 I have rooted the tablet, to allow me to change it, or listen for when it happens, to disable it again. May 07 13:24:33 you'd like to plug-in a keyboard and not use it? couldn't you just not plug it at all? May 07 13:24:37 I just can't seem to find a solution. May 07 13:24:44 It's a barcode scanner May 07 13:25:01 ahhhhhhhh I see, so you want to keep both enabled, right? May 07 13:25:06 Well, yes. May 07 13:25:17 Disabling the hardware keyboard, doesn't really disable it. May 07 13:25:19 I think you'll have to ask at #android-root May 07 13:25:20 It still works May 07 13:25:42 this is for android development only :) - that seems to be lower-level thingy May 07 13:25:43 I'll give it a shot. May 07 13:26:28 Multiply: uhm... May 07 13:27:17 Multiply: you could always check for USB plugs (there must be some permission in the Android framework for that) using a BroadcastReceiver and doing the reverse of this: http://stackoverflow.com/questions/1109022/close-hide-the-android-soft-keyboard May 07 13:27:36 i.e. not disabling the hardware keyboard, but enabling the soft keyboard again May 07 13:28:06 btw: how can a barcode scanner cost? just personal curiosity :P May 07 13:28:13 how much* May 07 13:28:44 elegos, I don't know, actually. I'm just trying to fix the issues around our B2B POS :P May 07 13:28:51 But not more than $100 May 07 13:28:53 For sure. May 07 13:29:11 hell, gonna continue using my phone camera :P May 07 13:29:40 I'd even pay $1000 for one, if I had to. May 07 13:29:51 It saves me so much time every day. :P May 07 13:30:33 why not an Android app which scans 2-3d barcodes? I think it's just the same :) click "scan", scan, done :) May 07 13:31:04 Well.. It's easier to have a stationary scanner. May 07 13:31:19 you have to fire it too :P May 07 13:31:27 Put product in front of scanner, BEEP.alotofkeypresses.enter. May 07 13:31:30 Nope. May 07 13:31:37 maybe a custom keyboard with the extra "scan" button? May 07 13:31:48 Fawk the scan button. Just scan all the time :P May 07 13:31:57 lol May 07 13:32:00 btw... May 07 13:32:16 Your above mentioned solution isn't quite good for a WebView-app btw. May 07 13:32:22 And the other answers in there, I already tried. May 07 13:32:22 elegos - Update: It seems like it happens as soon as I use a new drawable May 07 13:32:29 should I use a service or what else to do a job every X seconds/minutes/hours/whatever? May 07 13:33:28 annoia: are you changing the ActionBar drawable, or it's just static? Are you switching between 2? You could use the ActionMode that way and not change the bg every time May 07 13:33:44 ^-- and then using XML to define the BG directly May 07 13:34:14 ... and possibly defining the background for the ActionMode with a custom layout, too.. May 07 13:35:18 elegos - Basically I want to use the actionbar to define a state in the system. Ie, if I'm logged in it's one color, otherwise it's another. May 07 13:35:39 elegos - Actionmode doesn't apply here. Not entirely. May 07 13:36:31 annoia: I see.. well, let's see the code snippet then May 07 13:36:43 and let's see what logcat outputs May 07 13:38:58 elegos - I seem to have fixed it by using a single ColorDrawable that I change colors on (which gives me a small issue on pre-ICS devices), but I can show you the breaking code if you wish. Basically I just call getSupportActionBar().setBackgroundDrawable(..) twice with two different drawables. May 07 13:39:02 No logcat output May 07 13:39:14 Well, lots of logcat output, but nothing relevant May 07 13:39:44 support because I use actionbarsherlock, but since I'm on 4.2 this is bypassed May 07 13:41:06 annoia: can't you define the color in the drawable folder and calling getActionBar().setBackgroundDrawable(getResources().getDrawable(R.drawables.YOUR_COLOR))? May 07 13:41:56 elegos - No, that gives me a new drawable every time, and therefor breaks the 2nd time I call it. May 07 13:43:10 tbh I don't know how getDrawable works, but I'm pretty sure it should recycle - the point is that it shouldn't break at all May 07 13:44:21 elegos - My point is that it doesn't matter if it recycles. As soon as I give it two different drawables it gives up, and just draws white. May 07 13:44:41 annoia: you should try to debug that, not to patch it around :) May 07 13:45:52 elegos - I'm usually reluctant to debug framework code I have no say in (Ie Google's). :P May 07 13:52:21 sigh. another support request from a non-buyer gmail address. May 07 13:57:36 Ge0rG - Well? Aren't those the customers you have fun bullshitting? :) May 07 13:58:48 annoia: it could be just by accident, because they have multiple gmail addresses. in theory, at least May 07 13:59:24 ah, that makes it problematic :/ May 07 14:00:52 gcm registration error: "Unable to register your device with your Cloud Endpoints server running at http://10.0.2.2:8888/_ah/api" both on real device and emulator ... can anyone help May 07 14:01:14 hey there :-) May 07 14:01:23 when is destroyItem of a FragmentStatePager called? May 07 14:01:36 either: when the Item has been removed from the ViewPager May 07 14:01:37 or May 07 14:02:11 when the item is "out of the view", which means it is not one of the "3 Fragments in the foreground" May 07 14:08:42 is there an easy (default) way to get an alphabetical scrollview inside an listview? (without an open source library) May 07 14:09:51 what happens when a service is already started and is being called from a repeating event, inside a pending intent? Which method should I look for to intercept the call? May 07 14:10:07 FrancescoV: do you mean... ordering the adapter? May 07 14:10:53 elegos: something like this: http://i.stack.imgur.com/U7vKi.png May 07 14:11:28 FrancescoV: you should see the Contacts sources then, I think it's already in the std Android framework May 07 14:11:45 nvm May 07 14:11:54 found it out via a lil logcat output May 07 14:14:58 is service's onStartCommand() method being called every time you invoke it from a pending intent? May 07 14:22:50 how can you hide the hints from an autocomplete textview i? May 07 14:24:38 found it :) May 07 14:34:53 Does Android 4.2 support Java 7, or do you still need to stick with java 6? May 07 14:36:01 SuperLag: still 6 May 07 14:37:38 Is it safe to reuse Runnable instance so the run() will be run multiple times. May 07 14:37:41 SuperLag: odds don't look good for the future either, since they're not using Oracle Java May 07 14:37:58 jjnye: what are they using? OpenJDK? May 07 14:38:14 (which is still Oracle Java) May 07 14:38:48 SuperLag: apache harmony May 07 14:39:29 SuperLag: i'm sure they went to town on it, though. probably a fairly different beast now May 07 14:41:14 p_l|omoikane: ah, thanks for that bit earlier, I'm using an nginx webserver, I could perhaps use GZIP for my JSON-service written in PHP (*hides*) May 07 14:43:14 annoia: my warez user answered.... "> Oh. I was looking for a free version !" May 07 14:43:38 Hi May 07 14:44:38 I am a computer scientist and want to do some research on Code Reviews. Who is responsible for your Gerrit instance? May 07 14:47:24 How can I combine animations like an AnimationSet/AnimatorSet but where the animations are applied to two different views? May 07 14:47:32 So is there any reason one model of Android tablet would work with an ADK compliant device, while another model with the same software version fails to even see it May 07 14:47:48 FrancescoV: why should you ever hide hints from an autocomplete textview btw? :P the only difference between it and a normal textview is just that ^_^ May 07 14:49:16 This is my service barebones: http://pastebin.com/i3NkVWYX - the problem is that when I call stopService(Context c), the recurring task isn't being cancelled. May any of you please help me? May 07 14:50:27 you aren't even starting a service... May 07 14:50:51 pfn: yep, with the pending intent (it's in another class the invocation of startService) May 07 14:51:27 pfn: PendingIntent.getService(...) and then manager.setRepeating((...) May 07 14:51:34 anyone having problems using StickyGridHeaders (https://github.com/TonicArtos/StickyGridHeaders)? May 07 14:52:25 what's the point of alreadyrunning? May 07 14:52:47 pfn: if it's already running, stop it May 07 14:53:34 I have an edittext, that if the text in the box is edited, i need to perform calculations, should i set an onfocuschangelistener, and a OnEditorActionListener on the edittext, or is there an easier way to do it? May 07 14:53:34 ahhhhh May 07 14:53:41 elegos: i have a cancel image (X) on the right side of it, if i click on it, the hints must be gone + if i enter on the keyboard, the hinds are still visible ;) May 07 14:53:46 elegos, it'd help if you use getService consistently May 07 14:53:48 pfn: getBroadcast instead of getService May 07 14:54:00 pfn yep exactly - autocomplete issue :P May 07 14:54:10 code-by-IDE fail May 07 14:54:33 pfn: but USUALLY it saves you a lot of time :P May 07 14:54:41 sometimes it messes up everything :P May 07 14:54:49 usually... nope, it saves me no time May 07 14:55:55 the only thing I miss from an IDE is auto-organize imports May 07 14:56:08 I'm somewhat tempted to write a script to do that for me May 07 14:56:35 pfn: TBH I don't have a clue where all the Android classes are, the IDE saves me a lot of time searching them in the Android docs. May 07 14:56:49 doing some research - can anyone recommend a mobile banking app that is notable for either really good security or really bad security? Trying to get a feel for what the state of banking security is on android apps May 07 14:56:56 I have a simple script to search for which packages contain a class May 07 14:57:32 does extending Applcation and setting the contentview override setting a main activity in the manifest? May 07 14:57:44 pfn: substituted getBroadcast with getService, still doesn't stop the recurring task - any idea? May 07 14:57:56 (all of them ofc, total of 4 getService now) May 07 14:58:27 elegos, dunno, and be specific, it's not the service that's not stopping, it's the alarm that's not cancelling May 07 14:58:41 pfn: you're right, sorry :) May 07 14:59:05 wolfehr: may you please be clearer? didn't understand your question May 07 14:59:17 elegos, run through the debugger and check the value of alreadyRunning May 07 14:59:38 or, just log.v it May 07 15:00:05 pfn: I usually log it in the debug channel. May you please link me to the debugger android docs so that I can start using it correctly? May 07 15:00:06 and for that matter, why not just always call alarmmanager.cancel May 07 15:00:15 you're using the ide May 07 15:00:18 press the debug button May 07 15:00:58 elegos, if I extennd the Application class and I run setContentView(), is the MainActivity defined in the manifest file still loaded? Also do I actually have to include a default activity in the manifest? May 07 15:01:47 About Android DDMS, I can see active threads, I believe there is a thread that is created and destroyed very fast, so fast that I won't be able to see it May 07 15:01:55 How can I record threads or similar? May 07 15:02:40 you can't record threads May 07 15:02:47 wolfehr: the main activity is defined in the Manifest file. If you set the content view of that activity, that activity continues running until you call finish(). Usually you always extend the Activity class in order to... well, write activities May 07 15:03:23 pfn: How can I add an event that shows when the thread is destroyed? May 07 15:03:35 pfn: *logs May 07 15:03:55 crised, depends on how the threads are being created, you can specify your own thread factory May 07 15:04:02 and you can log it that way May 07 15:04:13 pfn: I'm learning Handlers May 07 15:04:21 pfn: I think threads are created using this May 07 15:04:22 handlers don't create threads May 07 15:05:55 pfn: I have a class implementing Handler.Callback May 07 15:06:02 and extending Handler.Thread May 07 15:06:17 pfn: Do you think that in this case, Thread is not created? May 07 15:06:19 then logcat when your thread run enters and exit May 07 15:06:30 but usually, no, still May 07 15:06:55 there's no Handler.Thread May 07 15:07:09 HandlerThread, maybe; but just subclassing it doesn't do anything May 07 15:08:09 pfn: https://gist.github.com/crised/5533346 May 07 15:09:22 handlerthreads don't exit quickly, 2, do not extend handlerthread... May 07 15:09:54 pfn: this is an example from a book May 07 15:10:01 pfn: Android Recipes May 07 15:10:07 yay for bad recipes May 07 15:10:13 I just installed ADT fresh from the website. I installed Subversive. It said it failed, then I come back and Eclipse looks different, look under prefs in "Appearance", and it gave an error, and when I tried again, the dropbox of themes is empty. Am I doing something wrong? May 07 15:10:29 I can elaborate if needed, was keeping it short just to get that out there May 07 15:10:41 pfn: What is happenning on this book, Are threads being created? Can you explain me what a Handler is doing here? May 07 15:10:58 crised, start out by reading the book java concurrency in practice May 07 15:11:15 pfn: you killed me there May 07 15:24:37 I have an edittext, that if the text in the box is edited, i need to perform calculations, should i set an onfocuschangelistener, and a OnEditorActionListener on the edittext, or is there an easier way to do it? was also looking into TextWatcher, but it seems like everytime they edit it will trigger afterTextChanged. this would trigger the calculation a few times, which might not be so bad, but asking to see if you guys know a May 07 15:24:37 better way. thanks May 07 15:26:21 Hey guys...I have placed Root CA Cert into my SD Card and after I install the cert, I can see it in my System. I like to know where is this "System Certificates" stored in Android ICS? May 07 15:37:17 Has anyone done stuff with Bluetooth LE? Can't find a list of supported devices. May 07 15:38:29 Estel: it's a mess May 07 15:38:37 different APIs for practically every device May 07 15:38:40 Yeh >.< May 07 15:39:05 Wondering whether to leave this proposal a week and ask them to target 4.3+ only if LE is in there. May 07 15:40:38 4.3+ is likely to be a vanishingly small group for a good few months May 07 15:40:56 All the better to target it >_> May 07 15:49:44 anyone know why a textview whose height is wrap_content would cut the text off on some devices? May 07 15:51:13 useg textAppearanceLarge May 07 16:07:16 I want to put a notification on NotificationManager that activates the app, not start a new activity. what do I set the contentIntent to? May 07 16:07:38 is there any way to run png-crunch on individual files? May 07 16:07:48 I want a good way of validating 9patch files that I can give to gfx designers May 07 16:08:29 aapt crunch wants an input res dir and output res dir May 07 16:08:45 download it and run it May 07 16:09:08 I think it's called pngcrush May 07 16:09:41 pngcrush isn't png-crunch May 07 16:10:33 oh, awesome, there's a aapt singlecrunch command May 07 16:14:03 btw, why are you giving gfx designers graphics and not the other way round? May 07 16:33:42 i am trying to integrate dropbox api into my app but keep getting stuck in loop... the app keeps redirecting to the dropbox website to confirm access May 07 16:34:01 code here -> http://pastebin.com/hCwEdc9N May 07 16:34:50 ask the dropbox people for support May 07 16:57:34 where'd be a good place to find beta testers for a developer-focused app? May 07 16:58:10 here and/or reddit/androiddev May 07 16:58:21 I'm making an action that only contains an imageview May 07 16:58:32 it's just for viewing images at a larger size May 07 16:58:38 is there a better way to do that? May 07 17:00:57 ok, I hope this isn't considered advertisment. I've developed a small app which recorda and replays touchscreen events (system-wide) called "RepetiTouch". A demo is on the Play store. If anyone tests it, I'd be glad for any feedback :) May 07 17:02:52 this is a beta version use at your own risk May 07 17:03:05 doesnt sound too good :> May 07 17:04:25 Hi guys, I´m developing an application to read informations from mobile and one of information that I need to collect is Camera Quality. I found a shared preferences file inside data/data/com..../shared_prefs/file.xml which contains all informations that I need but I can´t get the preferences due a Attempt to read file /data/data/com.... without permission but I have already added the camera permission in manifest. Do any May 07 17:05:40 hi does anyone have experience with using phonegap? May 07 17:06:27 ClaudioLago you can use Camera.Parameters May 07 17:06:47 to get some info on the camera May 07 17:07:54 Camera.Parameters just has the PictureSize and I need the Quality like High, Medium or Low May 07 17:08:08 I can´t get this information from Camera.Parameter May 07 17:08:52 hmm. what does high,medium, low actually mean? May 07 17:09:21 high definition, medium definition and low definition May 07 17:11:45 what constitutes high definitaion? May 07 17:11:45 in the preferences file that I mentioned before contais which index of quality the device is...for example Quality high(0), Quality Medium(1) and so one but it´s complaining about permission May 07 17:11:55 oh ok May 07 17:12:43 sorry I mean definition May 07 17:13:01 does that file reside in the apps package folder? May 07 17:13:29 an app can only read files which reside in its own /data/ folder or the sdcard without root May 07 17:13:54 the file is part of camera application and it is inside /data/data/com.sec.android.app.camera/shared_prefs May 07 17:14:14 then you need root (to my knowledge) May 07 17:14:30 also, not every device has a default camera, so your code wouldnt work everywhere May 07 17:14:50 I have already read another shared preferences from another applition and it works May 07 17:15:46 the way to read that is a little bit different from when we´re reading prefs from our own app...We need to use createPackageContext(another app path) May 07 17:16:08 is the app you are reading WORLD_READABLE ? May 07 17:16:37 How are you gonna find the camera apps package name? And what preference name it uses for quality? May 07 17:16:48 exactly May 07 17:17:27 myb use Camera.Parameters and multiply the height by width to get the 'resolution' May 07 17:17:46 and determine whether its high,medium, low that way May 07 17:18:54 ok, if Imultiply the height by width the total amount and how can I determine if it´s high, medium or low? May 07 17:19:18 just create some table of your own May 07 17:19:54 im not sure high,medium and low correlate to standards you know May 07 17:20:19 ok...thanks for your help guys...I´ll do that! May 07 17:26:24 Hey guys, trying to write an app using VideoView, and the videoview.canPause always returns false, but I am to pause and unpause that same app using the inbuilt video player May 07 17:26:29 (this is on a galaxy nexus) May 07 17:26:41 am able to* May 07 17:26:41 I am developing a custom view with onClick Support to show another intentactivity like IntentChooser. When this activity ends i want to get back the resunt. But from my view I can only do context.startActivity. I can't do context.startActivityForResult. Any suggestion for this kind of design pattern May 07 17:28:30 Hi there. I want to pop up an AlertDialog when a TimerTask has finished, but I can't do that from inside the TimerTask as it doesn't run on the UI thread. I can't seem to use Acitivty.runOnUiThread as there's no way to access an activity from my overidden TimerTask class, so would I just make an IntentService class of my own which runs this AlertDialog, or what should I do? May 07 17:29:00 Manavan: generally the activity would implement the listener and perform the action May 07 17:29:09 Cannot login to developer console on Google Play since account was converted to Google Apps account. Someone here knows how to get in again? May 07 17:30:31 codebutler, I find that if I could have done in my custom view, the code will be more seperated. so this view does all the handling related to it, instead of some logic sitting in parent Activity. May 07 17:32:56 WhereIsMySpoon, post to the UI handler, you can do new Handler(Looper.getMainLooper()).post(new Runnable() { ... AlertDialogBlahblah }) May 07 17:33:32 pfn: oh, that sounds handy and easy :D May 07 17:33:37 * WhereIsMySpoon gets to it May 07 17:34:15 I usually keep a static handler somewhere that points to the main thread May 07 17:34:22 so I can always post to the UI thread if necessary May 07 17:35:13 Too many rows and columns in 9-patch perimeter. May 07 17:35:17 wtf does that mean exactly... May 07 17:35:26 * pfn digs through source May 07 17:37:36 pfn: that does sound like a singularly unhelpful error message May 07 17:37:42 * wbroek is frustrated May 07 17:37:50 pfn: why keep a static handler if you can just do what you said May 07 17:38:08 WhereIsMySpoon, because typing new Handler(Looper.getMainLooper()) all the time is cumbersome and ugly May 07 17:38:20 if (numRows * numCols > 0x7F) { May 07 17:38:21 errorMsg = "Too many rows and columns in 9-patch perimeter"; May 07 17:38:22 indeed May 07 17:38:23 hm, i guess :) May 07 17:38:32 pfn: O.o May 07 17:38:39 dafuq is the hex for May 07 17:38:56 it looks nicer than 127 as a magic number May 07 17:39:09 pfn: >_> May 07 17:39:22 it's clear that it's half of 0xFF May 07 17:39:55 rather, it doesn't have the high bit set May 07 17:40:00 er i guess, would be better to have a variable instead that explains it :P May 07 17:41:26 it's explained in a comment May 07 17:43:15 How do you use background selectors? May 07 17:51:24 I figured it out May 07 17:54:09 whats the resource name for the mail icon? May 07 17:55:00 Is it correct to assume that any secret keys stored in the APK (either in the Java code or in resource/values/) can be easily(?) decompiled and read? May 07 17:55:35 yes May 07 17:56:55 pfn: so, if one still wants to store a key (like the facebook application id) is there a recommended way to obfuscate it to make it harder to access? May 07 17:57:13 there is no recommended way May 07 17:58:50 we are currently obfuscating our FB app id using javax.crypto AES stuff - but the code is fragile (breaks on 2.2 (padding error) used to break on 4.2 (new default value)) May 07 17:59:08 sounds like you're doing something wrong May 07 17:59:11 rather than it being fragile May 07 17:59:39 pfn: very possible May 07 18:05:15 When I launch my app, there is a basic styled view that shows before my first activity renders, how can I change that? May 07 18:05:40 how can I declare a method for a target API and higher (just @TargetApi(...)?) and another one for all the previuos ones? May 07 18:07:51 pfn: found a nice blog entry about it http://nelenkov.blogspot.ru/2012/04/using-password-based-encryption-on.html - seems we're doing it wrong (and non-portable) May 07 18:16:36 My app crashes with a null pointer exception when I set the first activities theme? May 07 18:17:48 https://gist.github.com/KorvinSzanto/103ab710ee608740b938 May 07 18:17:50 any ideas? May 07 18:19:37 pastebin the exception May 07 18:21:44 JakeWharton, updated the gist with the exception May 07 18:22:02 pfn: similar question but kinda different, in my TimerTask I've May 07 18:22:04 ffs May 07 18:22:07 what's on line 20? May 07 18:22:11 in? May 07 18:22:28 MyActivity May 07 18:22:36 pfn: similar question but kinda different, in my TImerTask ive passed down a Button (android.widget) but when i've tried to do myButton.setText I get a calledfromwrongthreadexception...how do I solve this? May 07 18:23:00 Oh god. That was stupid of me May 07 18:23:08 I should've looked at taht May 07 18:23:10 WhereIsMySpoon, you call it from the runnable you post, obviously May 07 18:23:11 thank you jake May 07 18:23:39 herpderp, ofc May 07 18:27:59 has anyone found a decent algorithm to find camera video recording resolution on 2.3_ May 07 18:27:59 ? May 07 18:53:15 I'm trying to figure out the correct math for determining how much to translate a parent view in the y direction, in order to vertically center a child view…can't seem to get it right. Any suggestions? May 07 18:56:31 Not sure I understand what you mean May 07 19:00:27 Hello, if i run an IntentService with START_STICKY, when will it die? should i kill it when i don't need it or the system'll kill it? May 07 19:04:15 uragano2: kill it when you dont need it May 07 19:04:22 oh intent service May 07 19:04:26 i think it stops when everyhting is done May 07 19:04:31 and nothing is bound May 07 19:14:42 I am listening to data that comes off of a microphone in bytes (android). I have to do the polling manually (using a thread and a while loop). what file IO thing should I use to write the data to a file? It seems that a FileOutputStream is causing some very weird behavior where some of the data is not written? May 07 19:15:03 deadmund: are you flushing properly? May 07 19:15:27 p_l|omoikane: probably not. Do I need to flush the audioRecord or the FileOutputStream (FOS) ? May 07 19:15:38 I don't know the extent of java.nio support on android, which could be useful there too May 07 19:15:42 deadmund: file stream May 07 19:16:41 p_l|omoikane: The mini documentation in eclipse says that fos.flush() is implemented as doing nothing... ? May 07 19:17:26 deadmund: hmm... isn't it overriden in the actual method you get? May 07 19:17:52 p_l|omoikane: IDK. I didn't write it certainly. How can I check if it's overridden? May 07 19:18:26 deadmund: well, for once, Android jars that eclipse sees are "empty" placeholder classes, just there for linking May 07 19:18:55 http://developer.android.com/reference/java/io/OutputStream.html#flush%28%29 May 07 19:19:35 " Implementations of this method should ensure that any buffered data is written out." May 07 19:20:11 Yeah, don't know if that's talking to me as an app developer? May 07 19:20:12 java.io.OutputStream is an abstract class May 07 19:20:31 that is, it's an interface. You need to check the class for FileOutputStream May 07 19:20:47 oh, didn't realize I linked the wrong class! :P May 07 19:21:18 According to this: http://developer.android.com/reference/java/io/FileOutputStream.html flush is inherited from OutputStream May 07 19:21:33 deadmund: also note that FOS by itself is unbuffered May 07 19:21:42 so in theory there should be no flushing necessary May 07 19:22:23 p_l|omoikane: Indeed, using the flush method (after writing) did not solve the problem). May 07 19:22:47 deadmund: I suspect you might need to do some plain-old debugging, possibly with tracing ;) May 07 19:23:07 mhmm May 07 19:27:31 Does anyone know why XML files don't support things like @dimen/one + @dimen/two + @dimen/three ? May 07 19:27:53 because they don't implement logic May 07 19:28:00 it's just declarative May 07 19:28:11 Sigh. And my life gets harder May 07 19:30:20 hey guys May 07 19:31:29 question May 07 19:31:39 following these three steps: http://developer.android.com/training/id-auth/identify.html May 07 19:31:46 because I want to user our server's OAuth stuff May 07 19:32:08 (I still need to learn how to pop up a dialog with a web browser and do all the OAuth stuff but I'll get to that in a sec) May 07 19:32:21 however May 07 19:32:41 on the second step, it says I need to add May 07 19:32:45 when I do that I get an error May 07 19:32:57 "Permission is only granted to system apps" May 07 19:34:21 p_l|omoikane: You were right! Turns out I was calling fos.write() and feeding it a byte, one byte at a time. This was I guess, causing a whole lot of overhead. Plus there is only a method that takes an int (interpreted as a byte) and a byte[]. Using the byte[] method seems to have solved the problem. May 07 19:34:34 p_l|omoikane: Thanks for confirming that fos streams work! :) May 07 19:46:23 does apktool have baksmali support built in? May 07 19:56:14 baksmali is the disassembler, right? May 07 19:56:42 if so, yes May 07 20:12:47 tnzr: yes May 07 20:18:06 Anyone know of any good places to buy ads May 07 20:18:52 Need a good site to advertise for http://littlenimbus.com on May 07 20:52:08 My html has non-breaking space characters that aren't properly rendering in the htmlview even with the encoding set to utf-9 May 07 20:52:12 utf-8* May 07 20:52:35 "\u00a0" shows up as Å or something May 07 20:52:36 does   work May 07 20:52:54 It might, but the api serves it as "\u00a0" May 07 20:53:57 and what's the byte string you're generating for that? May 07 20:54:34 I am not sure what that means May 07 20:55:54 how do I create an Intent that will just bring up my app while it's backgrounded? May 07 20:57:11 Korvin: what bytes are you sending to the htmlview May 07 20:57:34 "\u00a0" May 07 20:57:39 exactly like that? May 07 20:57:41 yes May 07 20:57:46 within a

element May 07 20:57:47 it doesn't parse \ characters May 07 20:58:05 it shows up as a unicode glyph though? May 07 20:58:15 then you're not sending it "\u00a0" exactly. May 07 20:58:40 hmm May 07 20:58:46 give me the values of each byte in the string you're actually sending :X May 07 20:58:48 It might be the json parser that is doing it May 07 20:59:25 and don't escape stuff yourself May 07 20:59:47 what do you mean? May 07 20:59:50 for all i know \u00a0 could be the same as \x00a0 to you May 07 21:00:41 http://developer.android.com/reference/android/view/MotionEvent.html — « Motion events are always delivered to views as a consistent stream of events. What constitutes a consistent stream varies depending on the type of device. For touch events, consistency implies that pointers go down one at a time, move around as a group and then go up one at a time or are canceled. While the framework tries to deliver consistent streams of motion events to… May 07 21:00:47 … views, it cannot guarantee it. » May 07 21:00:54 the reality is \u00a0 is equivilant to \302\240 (aka \xc2\xa0), when encoded in UTF-8 May 07 21:01:13 that is, it's two bytes May 07 21:01:14 So a) what happens when a pointer moves independently of another pointer (i.e. not ‘as a group’), and b) are the motion events guaranteed to be consistent or not? May 07 21:01:43 First it says that the events are always consistent, and then it says that they may not be consistent. May 07 21:01:58 Twey: they're intended to be consistent, but some device manufacturers may skimp May 07 21:02:17 Twey: when one moves and the others do not, you simply do not get motion events May 07 21:02:23 for the stuff that didn't move May 07 21:02:36 zinx: What about when one moves e.g. in the opposite direction (pinch-to-zoom, maybe)? May 07 21:02:49 Twey: direction doesn't matter, you get the events in the same order every time May 07 21:03:11 Oh, right, that's what's meant by ‘in a group’, not physical location May 07 21:03:14 Okay, thanks ☺ May 07 21:03:42 interesting! May 07 21:03:50 zinx, jsonobject is decoding it correctly, May 07 21:04:08 but when that decoded bit is pushed into the webview it's getting turned into a different glyph May 07 21:04:14 Korvin: in to \302\240? May 07 21:04:28 I'm not sure how to find that out May 07 21:04:53 It's showing up as an A with a ^ over it May 07 21:05:34 Korvin: it's actually showing as that plus a non-breaking space May 07 21:05:35 looks like U+00C2 May 07 21:05:39 yes May 07 21:05:50 hmm May 07 21:06:02 so what can I do other than stripping them? May 07 21:06:03 so, it's decoding it to \302\240, and htmlview is taking ucs-2 or ucs-16 as input most likely (this is java) May 07 21:06:34 Korvin: either have your json thing output ucs-2/utf-16 or convert it to something htmlview likes more :/ May 07 21:07:19 htmlview should be accepting UTF-8 properly though, idk May 07 21:07:59 maybe you should just use a WebView instead :P May 07 21:08:18 webview character encoding is b0rked... you need to have the exactly right parameters for it to work May 07 21:08:33 oh sorry about the confusion, I am using a webview May 07 21:09:24 Ge0rG: in generally, you need to tell the computer the right thing before it will do what you want :P May 07 21:09:47 Korvin: how are you passing your data to the WebView? May 07 21:09:47 Let me show you what I'm using to render this one sec May 07 21:10:47 content.loadDataWithBaseURL(app.base_uri, ""+art.contents+"", "text/html", "utf-8", null); May 07 21:11:07 art.contents would be the raw html May 07 21:12:15 Korvin: hmm May 07 21:12:38 zinx, looks like there are other wrong characters aswell :/ May 07 21:15:31 got it zinx! May 07 21:15:36 http://stackoverflow.com/questions/4933069/android-webview-with-garbled-utf-8-characters May 07 21:15:39 Korvin: try webview.getSettings().setDefaultTextEncodingName("utf-8"); May 07 21:15:45 hehe May 07 21:16:32 Thank you for the help May 07 21:18:04 Can I make a transparent View that passes on its input events to whatever happens to be underneath? Just returning false from the event handler doesn't seem to do the trick. May 07 21:21:43 codebutler: finally got around to TapChat, 6 months later May 07 21:22:02 JakeWharton: ah cool! working ok? May 07 21:22:15 yeah. VPI sucks with long titles May 07 21:22:42 if you're using irccloud, their official app is also very well done (and more complete than tapchat, currently) May 07 21:22:54 I am, and I didn't know they had one May 07 21:23:36 Hey, someone here who has coded or used a shake-to-wake app? May 07 21:24:25 Or just someone who uses the accelerometer? May 07 21:24:40 we have a shake detection library May 07 21:25:12 that's about as far as I've used it May 07 21:25:31 That does detect shakes when the device is asleep? May 07 21:25:43 I was wondering if the framework allows to do that... May 07 21:25:54 it detects shakes given the accelerometer data May 07 21:26:00 integration is up to you May 07 21:28:29 what are people here using for their irc client May 07 21:29:00 I use xchat May 07 21:29:09 Yes, but is that relying on sensor events? I just had a look at the different sensors in the field and saw that most of them support on-sensor shake detection and would be able to send interrupts... But I also get the impression that Android won't be able to receive those signals most of the time, because of power management related shutdowns of the CPU. May 07 21:31:11 I use Empathy May 07 21:31:15 How do I make an activity like the settings app on an android tablet? I'm talking about the split view. May 07 21:31:35 preference fragments May 07 21:31:58 Ok. Thank you. May 07 21:32:10 I'm looking for a good nfc example that doesn't use ndef. I've googled around, and they all use ndef. May 07 21:32:19 bhundven: check out farebot May 07 21:32:29 codebutler: thanks May 07 21:36:15 codebutler: oh interesting, I think I just got the 'ah ha' for intent-filter from your code May 07 21:37:02 so thanks! May 07 21:37:52 whats that standard-ish looking widget called that simply has "Accept | Decline" buttons on the top of a form in many apps? May 07 21:39:16 codebutler: heh, I'm gonna have to install this now ;) it supports orca May 07 21:39:44 ah, you're in Seattle? May 07 21:39:48 yes May 07 21:39:58 near lcw/lake washington May 07 21:40:18 ah. i'm on capitol hill. May 07 21:40:48 nice! I used to live at the olive tower on boren and olive when I first moved to seattle in 2006 May 07 21:40:54 love capitol hill May 07 21:41:00 anyways, ot ;) May 07 21:41:16 codebutler: pm if you want to chat May 07 21:41:30 Facebook makes it very hard to advertise your app on it May 07 21:41:37 Screw it...I'll advertise elsewhere... May 07 21:44:04 anyway, yes, install farebot! its amazing! :) May 07 21:45:18 will do! May 07 21:52:34 oh, the Cancel / Done buttons are custom actionbar in calendar :| May 07 21:56:41 i wonder why they did it that way; seems like a lot of runnaround for 2 buttons May 07 22:08:09 Is it possible to use separate icons for launcher and activity icon? May 07 22:09:34 I realize that you can use the setIcon method and apply the icon in code, but when the activity starts of the first time, the launcher icon is first used which yields an undesirable effect. May 07 22:09:55 Is there a way in the Android standard libraries to draw the same thing on my View no matter the orientation? So if the user draws a line from the top to the bottom of the device, then rotates it, that line doesn't change direction? May 07 22:10:52 Or do I have to transform all the points myself? May 07 22:13:54 anyone familiar with parse+facebook login ? May 07 22:35:24 Hello :) May 07 22:36:26 is it the case that once you make an app free, you cannot make it paid? May 07 22:36:39 What is a better choice for communication between android and some server that will process http GET/POST request ? The AsyncTask or Service ? May 07 22:36:49 but, if you release it as a paid app, you can reduce the price to 0, then increase it later? May 07 22:36:51 Can you use the 9 patch method with a drawable which is a circle? May 07 22:39:04 hwrd|work: only if you want to turn it into a rectangle with rounded corners :) May 07 22:39:31 JesusFreke: Sigh. That's what my intuition told me, but I wasn't 100% sure. May 07 22:40:12 hwrd|work: you might look into creating an xml-basedrawable instead May 07 22:40:16 err May 07 22:40:19 xml-based drawable May 07 22:40:41 Yeah, that's what I have now. I just want more designer work and less developer work. :-) May 07 22:42:08 speakingcode-wor, dunno about now, but previously, a free app cannot become a paid app, in the market May 07 22:42:23 ios allows this, but market didn't allow setting the price to 0, unless you never wanted to raise the price again May 07 22:42:38 pfn thanks, and oh. :( May 07 22:42:55 makes it hard to promo an app because there's no promo code option or anything either May 07 22:42:59 kinda dumb imo May 07 22:44:14 hetii: probably IntentService May 07 22:44:54 what ways are there to insure that ONLY my android app is submitting/talking to my server side application? May 07 22:46:31 codebutler: thanks again for your help! ttyl May 07 22:48:14 …is there an in-app purchase demo app in the API demos? May 07 22:48:20 hey y'all May 07 22:48:57 ipsifendus i believe so, if not many around google May 07 22:48:57 I'm trying to make a lazyloading listview but when I try to postDelayed on to the rows I'm creating, the whole list gets created (as opposed to the 6 or so that show up on the screen) May 07 22:49:04 is that a documented behavior in android? May 07 22:49:52 probably doing it wrong lol May 07 22:49:59 jug6ernaut_: kindo f hard to gaurantee i think May 07 22:50:24 you can try to make it a pain for someone to mimic tho May 07 22:50:42 speakingcode-wor yea i know, its technically impossible, I'm just looking for deterrents really lol May 07 22:52:14 hide a key in the code somwehre, send it in an http request to server May 07 22:52:29 maybe even do some back nforth handshake process May 07 22:52:50 anyone familiar with Parse's facebook login? May 07 22:56:28 XXHDPI is a thing now, right? So like, we need resources for it? May 07 22:56:49 you don't _need_ resources for it May 07 22:57:17 at most you should have a launcher icon in xxhdpi (xhdpi tablets pull the launcher icon from xxhdpi for the extra resolution) May 07 22:58:11 or u can be gangster n keep it strictly low res with ldpi May 07 22:58:46 evancharlton: I see. I saw Nick's post: https://plus.google.com/118292708268361843293/posts/ePQya3KsTjW but then I saw https://github.com/petrnohejl/Android-Cheatsheet-For-Graphic-Designers/pull/2 which seemed like Android uses the xxhdpi stuff May 07 22:59:55 can't wait for xxxdpi that'll be a game changer May 07 23:00:04 speakingcode-wor: haha May 07 23:00:22 i propose {n}dpi for arbitrary number n May 07 23:00:49 1 million dpi May 07 23:00:51 where n=1 = x , n=2 is xx, n=3 i xxx May 07 23:00:52 69dpi then May 07 23:00:52 :D May 07 23:04:38 hwrd|work: it does use xxhdpi stuff, but it's not like all of your assets need to also be in xxhdpi or anything. Though, I guess there are probably xxhdpi devices on the market May 07 23:04:43 like those 1080p phones May 07 23:05:11 I approve of your longer name. May 07 23:05:18 Much more dignified. May 07 23:06:01 people with "work" (or worse, "wor") in their names are insipid! May 07 23:08:40 pragma-: evanc is still here, (though apparently not in -dev). I'm just trying out irccloud.com, haha May 07 23:09:25 Ok, is there some nice REST client implementation that i could use and will handle all job in background ? May 07 23:31:02 http://www.afr.com/p/technology/nokia_investors_tell_ceo_their_patience_h1IvIAKcR3h3UUFL9BnHuK wonder if this means Nokia is finally adopt Android.... May 07 23:31:30 anyone use the http retrofit library? May 07 23:31:38 I do May 07 23:31:40 can't figure out how to add headers to a request.. May 07 23:31:57 setHeaders on the RestAdapter May 07 23:31:57 bankai_: nope. May 07 23:32:00 it gets called for each request May 07 23:32:11 How do I create a Headers object? May 07 23:32:21 it's in interface May 07 23:32:27 funkbox: didn't think so, but i remain hopeful :) May 07 23:32:35 implement it on an object and pass that objeect to the RestAdapter.Builder May 07 23:32:38 bankai_: nexus 5 is all you'll need May 07 23:33:11 ah ok May 07 23:33:20 has anyone cut support for devices not running ICS+ and how did it go? i'm >| |< this close to pulling the trigger. the cost of maintaining compatibility is painful May 07 23:33:24 so theres no default implementation that is just a list of Header objects/ May 07 23:34:34 no May 07 23:35:19 was the intention that the Headers interface be implemented inline when calling setHeaders(…)? May 07 23:39:00 bankai_: yeah, they are in a tight spot. all their eggs in one OS (fuck, not even Samsung does that - remember Tizen) … but if they adopt android, it doesn't mean they are going to become a Samsung May 07 23:39:44 no one really makes any money on android except samsung, and nokia *really* doesn't want to be just another hardware manufacturer. plus the whole cash infusion thing from msft May 07 23:39:59 there was a good article in the wsj i think May 07 23:40:42 anyway cool that got it working jakewharton thanks May 07 23:40:47 yeah, i don't think it would be good for them to go android either. unless they had some special services that android/wp phones tapped into - some value add, sticky ecosystem - but those things are hard to sell May 07 23:41:30 they might be able to actually make android additions that don't suck balls and aren't basically poop smudged over a perfectly good os May 07 23:43:40 i always saw nokia going with android and making some really nice android-qt blend. I realise android isn't a save-all for them - pity coz i really did like nokia phones May 07 23:43:58 i got a lumia at build last year and it's actually a pretty decent phone May 07 23:46:11 funkbox: yeah, it was nice. but as a customer, you have to choose who you want to be a customer of. for Android, there are mostly 2 options: Google, or the Carrier. once you add shit to the phone and the carrier has the keys, you are no longer a Nokia customer - but a customer of the carrier May 07 23:46:29 you are only a google customer if you have a nexus device May 07 23:46:35 nah, i'm fine with a carrier locked phone. i'm not fine with things like touchwiz May 07 23:47:02 i'm more concerned with security updates, which the carriers are failing to push out May 07 23:47:19 oh god, i can't wait until i can set min api level to something reasonable May 07 23:47:30 i'm going to drink so many beers May 07 23:48:04 funkbox: so root it and get a sensible rom May 07 23:48:15 pragma-: yeah, i'm running an S3 wih CM10 May 07 23:48:35 i hope there'll be a nexus 5 or something like that at io; otherwise i'll get a regular nexus 4 May 07 23:49:23 shigeru: no that wasn't the intent. the idea is that it's an object which you can hold onto long after you create the RestAdapter to modify the headers May 07 23:49:29 e.g., add an authorization header for login May 07 23:50:20 why not have it just be a List

? May 08 00:04:39 how would you change the headers? May 08 00:04:42 mutate the list? May 08 00:04:51 that's pretty gross and magical behavior May 08 00:06:19 anyone have any decent examples of socket async send/recv? May 08 00:06:51 sorry its not clear to me why mutating the list would be a bad thing May 08 00:07:10 JakeWharton: just wondering, what's the deal with this issue? I noticed it with my project too. https://github.com/JakeWharton/ActionBarSherlock/issues/302 May 08 00:08:46 "Error in an XML file: aborting build." thanks, which one :/ May 08 00:09:35 cooldman224: they use the wrong context when inflating the done button so it has the wrong text color May 08 00:09:38 nothing I can do about it May 08 00:10:23 shigeru: because that's bad design May 08 00:10:54 you give a List to an object that does something and then randomly mutate the list and just assume it picks up the changes? May 08 00:11:21 I see May 08 00:15:07 JakeWharton: which context was incorrect? May 08 00:15:19 Isn't that kind of what is already happening with Headers though? Every request calls get() for the new headers to send over. I could see the RestAdapter doing the same with it's stored List
, iterating over that list for each request May 08 00:15:44 getSherlockActivity instead of getActivity i presume May 08 00:16:22 cooldman224: they should use the action bar context but they use the activity context May 08 00:16:32 i don't think they even fixed it natively yet May 08 00:16:38 would be a good submission to AOSP if you're interested May 08 00:16:52 it actually was submitted, i saw but nothing came from it May 08 00:17:32 shigeru: it's exactly the same. the problem is the API through which RestAdapter gets the new data. You can keep your own List in your object that implements the Headers interface May 08 00:18:11 APIs that take a list should almost always make copies so that external mutations cannot affect it May 08 00:18:19 having an API which relied on that is just bad design May 08 00:20:34 anyone know how to get the ADT graphical preview to update, when i make changes to res/values referenced by say TextViews , they are not updated unless i close the file and re-open it. May 08 00:21:09 g00s: intellij? May 08 00:21:21 someone mind looking at this and telling me what R is supposed to be? http://pastebin.com/XGfMpbu4 May 08 00:21:52 I'm just using someone's example to try and understand how it works but it's listing problems in May 08 00:21:59 good to know May 08 00:22:04 ADT, R cannot be resolved to a variable May 08 00:23:02 'Running Lint has encountered a problem. Failed.' Details : 'String index out of range: 0' god damn, these tools absolutely fucking SUCK May 08 00:27:13 JakeWharton: what you mean action bar's context? May 08 00:27:30 the action bar has it's own context (via ContextThemeWrapper) May 08 00:27:35 this is how the light/darkactionbar theme works May 08 00:27:37 I hate it when ant build suddenly decides to start crashing inside ant itself for no reason until I reinstall the sdk May 08 00:27:40 wiggity whack May 08 00:28:08 the action bar uses a different theme (white on black) than the activity (black on white) May 08 00:28:12 so wiggity whack that a paddy mack couldn't get a piggy back May 08 00:28:58 pragma-: there was a new release of ant; that happens like every 20 years or so May 08 00:29:02 JakeWharton: right. what is the correct way to reference that and not the activity's context? May 08 00:29:14 getSupportActionBar().getThemedContext() May 08 00:32:03 ok so how do I get the action mode to use the correct context? May 08 00:42:03 you can't May 08 00:42:05 it's a platform bug May 08 00:42:49 It's present on API 14-16, not sure about 17 May 08 00:59:21 very intredasting, thanks May 08 01:00:50 yeah it's sad, there's all kinds of quirks like this with the native action bar the ABS has to mirror to maintain consistency May 08 01:02:08 JakeWharton: Field fieldContext = getWindow().getClass().getDeclaredField('mContext'); fieldContext.setAccessible(true); fieldContext.set(getWindow(), getSupportActionBar().getThemedContext()); May 08 01:02:11 that should do it May 08 01:02:17 dodgy May 08 01:02:27 well ABS is the savior of android atm May 08 01:02:41 but it should set the context used by the actionmode to the themed one May 08 01:02:44 ABS needs to be bundled with something like holo everywhere May 08 01:02:52 funkbox: NONONONONONO May 08 01:02:59 JakeWharton: how do i get holo, everywhere ? May 08 01:03:07 night people May 08 01:03:09 make your own theme May 08 01:03:16 sounds like a lot of work May 08 01:03:28 i did it for a spinner today and by the end i had lost all will to live May 08 01:03:38 not a single person in the world wants stock Holo backported to all devices May 08 01:03:54 i kept thinking that there's gotta be more to life than fixing spinners for people with old phones May 08 01:04:01 ha May 08 01:04:09 JakeWharton: i personally wouldn't mind that May 08 01:05:06 there's a massive difference between using a theme that's based on Holo for all API levels than using a stock Holo theme on all API levels May 08 01:05:57 agreed, but even stock holo everywhere would make things easier.. it's almost like the whole IE thing right now May 08 01:06:36 yeah but stock holo is ugly and boring May 08 01:06:53 it's like primer paint May 08 01:06:57 or unfinished wood May 08 01:07:08 or celebrities without make-up May 08 01:07:12 some day I will catch JakeWharton saying someting nice :) May 08 01:07:34 it's still better than dealing with earlier versions plus things like touchwiz and sense May 08 01:07:41 I'm filled with strong opinions and rage :( May 08 01:07:58 JakeWharton: I hadn't noticed May 08 01:08:12 funkbox: I agree which is why I highly recommend using holo as a base for your theme May 08 01:08:35 you should try to create a branded look with a color May 08 01:08:45 JakeWharton: we already do sorta do that already, it's just we use some stock controls and boy are they garish sometimes May 08 01:08:58 i kind of want to pull a google keep and just ditch old devices May 08 01:09:24 most of them can be wrangled with proper theming but there's some inconsistency across the great ICS divide with regards to default padding and such that you have to be careful about on certain widgets May 08 01:09:38 I actually like holo, weirdly enough. May 08 01:09:54 minSdkVersion=14 is certainly looking appealing. any new app I was writing would be 14+ May 08 01:10:20 saying screw you to 30% of people does give pause May 08 01:10:34 but is it 30% of people who would be using your app? May 08 01:10:43 romainguy: do you know the rationale behind google keep being 14+? May 08 01:10:45 100% of play store users is not your market May 08 01:11:01 yeah it's 25-30% for the app May 08 01:11:08 funkbox: they needed APIs available in 14+? May 08 01:11:31 or maybe it allowed them to make a better app more quickly May 08 01:11:35 ask them, not me :) May 08 01:11:51 romainguy: you're the closest person to android that i can ask May 08 01:12:14 JakeWharton: actually it's lower, 18% May 08 01:12:42 do you think you'd develop 18% faster by having minSdkVersion=14? If so, drop it :) May 08 01:12:42 well then, this may be the last release that will be compatible with 9+, especially now that we're going to do a proper tablet version May 08 01:13:00 maybe not 18% faster, but definitely way more than 18% happier May 08 01:14:45 haha May 08 01:15:04 right after i convert the build to maven i'll change that line and then high five everyone May 08 01:15:06 <[deXter]> Anyone here uses the Ultimate version of IntelliJ for making apps? If so, is it worth it? May 08 01:15:15 [deXter]: not worth it May 08 01:15:26 if they do that crazy sale again, then worth it May 08 01:15:38 <[deXter]> JakeWharton, Thanks May 08 01:15:38 yes, it's worth it to support them because it's an awesome product May 08 01:15:41 only thing i saw that was cool was UML, but many other tools for that already May 08 01:15:49 but I haven't used the Ultimate features once May 08 01:18:01 It's useful if you do a lot of Java EE development May 08 01:18:11 But for Android it's not really worth it May 08 01:18:37 <[deXter]> cool, that's what I figured as well May 08 01:18:38 * dexter just uses eclipse. May 08 01:18:59 eclipse was painful, especially coming from VS May 08 01:19:24 I had some adjustment pains, think I got over them. :o we'll see. May 08 01:21:27 I have to figure out how to make it not hilight me when people hilight [deXter] :o May 08 01:22:18 <[deXter]> Same, but a lot of people just call me dexter or dex, so I'll have to leave it on. :/ May 08 01:22:33 XD May 08 01:22:47 My phone buzzes every time someone mentions you, and I'm like wut :o May 08 01:23:27 <[deXter]> Well this even happens when someone's talking about the TV show .. and with Season 8 coming soon, there's always someone talking about it in some channel or the other. >_> May 08 01:24:06 Pretty sure I already know the end to season 8. o.o May 08 01:24:25 <[deXter]> Heh, well it is a bit obvious May 08 01:24:45 hey all.. gonna use google auth for signing in to my android and web app.. going through the docs for the web side i cant decide on php (server-side) or javascript (client). any suggestions? May 08 01:25:13 javascript. :| May 08 01:25:15 acidjazz: you need to validate the client tokens from android somehow on the server May 08 01:25:34 funkbox: well thats for my route of authing on the phone right? May 08 01:25:39 yes May 08 01:25:48 im just talking about authing on the website May 08 01:25:53 and the google auth on web is different from google auth on the androids May 08 01:26:00 to link and access data the apps going to pass May 08 01:26:15 dexter: how come? faster? May 08 01:26:31 acidjazz: Just biased against php. :( May 08 01:26:40 acidjazz: you want the web and the app to have same user auth info right ? May 08 01:26:52 dexter: i mean general server-side May 08 01:26:58 funkbox: yes May 08 01:27:32 acidjazz: you need to have a server side component that will validate andriod oauth2 tokens May 08 01:27:36 and manage it that way May 08 01:27:53 funkbox: so you think going serverside all the way is bset? May 08 01:27:54 best* May 08 01:27:55 or both? May 08 01:28:11 oh funkbox i see what you're saying May 08 01:28:11 kind of required if you want both android and web.. i mean.. where does the data get stored ? May 08 01:28:32 funkbox: id send it all to a db server afterwards May 08 01:28:45 so how does it make it into the the db originalyl ? May 08 01:29:06 google would tell me May 08 01:29:14 are you using google app engine? May 08 01:29:20 looks like i have to for this May 08 01:29:31 well not their hosting part May 08 01:29:36 i have a semi-similar setup and don't use google app engine May 08 01:29:36 but the api for google+ May 08 01:29:55 for auth it told me to go to google apis and turn on google+ api May 08 01:30:01 you have to write some more code, and maybe sacrifice your firstborn to cthulu, but in the end it does all work May 08 01:30:05 as far as the app engine goes do you mean their hosting? May 08 01:30:19 well ive done a crapload of facebook oauth2 stuff May 08 01:30:24 and i even have my own libs May 08 01:30:35 read this: http://android-developers.blogspot.ca/2013/01/verifying-back-end-calls-from-android.html May 08 01:30:48 i found w/ that route to start off w/ js to verify auth and then eventually use php to double check and store the session data May 08 01:31:01 cool thanks funkbox May 08 01:31:12 you really really need to treat the clients as potentially malicious May 08 01:31:16 don't trust the client May 08 01:34:11 i see May 08 01:34:17 so 2 different cliend ids May 08 01:34:50 funkbox: any link like this for another part that goes more into detail on the web part? May 08 01:35:05 ah i see the ruby example May 08 01:35:41 that's pretty much all you need, study it May 08 01:37:35 hi.. I'm getting "undefined reference to main" when I compile the arm .so on OSX, any idea what that means? May 08 02:01:08 hey guise May 08 02:01:35 does android have an equivilant to udev? May 08 02:01:40 I'm making apps in AIDE, but also want to compile a c++ library for inclusion in my project May 08 02:02:28 so far, I've managed to make other things in my ubuntu ROM, built for arm on arm May 08 02:03:06 and can run them in a debian instance I have on my android side May 08 02:03:47 so that is great, but when I want to include them in an app, I want to involve the NDK, so I don't have to statically link all those libraries May 08 02:04:03 also, the optimizations are attractive May 08 02:04:48 so, my question is: is there an NDK for ubuntu on arm? May 08 02:05:47 why wouldn't there be? May 08 02:05:50 I use the terminal IDE for very limited cpp compilation--it uses the NDK and so does not support cpp headers May 08 02:06:05 yes pfn, why wouldn't there be indeed May 08 02:07:56 that last limitation is puzzling to me, as I was able to compile plenty of cpp libraries using the x86 linux ndk on an old machine May 08 02:24:15 hi, adb stoped recognizing my phone and my tablet after the last update. Running it as root didn't help. Anyone has an idea? May 08 02:26:39 i'm thinking about switching to IntelliJ for real now; not because eclipse sucks, but because the ADT sucks so damn bad. How can such a piece of crap see the light of day May 08 02:28:44 don't think , just do ! :) May 08 02:29:40 i never really figured out the intellij UI. guess i'll have to double down May 08 02:30:27 the only thing i miss in intellij is the mouse over definitions May 08 02:30:29 I just submitted a new app to the play store. How can I get a URL to this app so I can tell for sure if it is in the play store or not. May 08 02:30:48 https://play.google.com/store/apps/details?id= + package name May 08 02:31:14 package name is the reverse fully qualified domain name? May 08 02:31:29 what ever you have set in your android manifest May 08 02:31:45 ok... May 08 02:32:33 the ADT needs to be taken outback and shot execution style May 08 02:34:13 Thanks, the developer console web page says it takes a few hours. Is this true? May 08 02:34:44 yes May 08 02:35:00 the uploaded apk goes through some checks, etc May 08 02:35:30 k May 08 02:35:31 thanks May 08 02:43:59 * DataTracer waves May 08 02:47:14 Anyone good with RecognizerIntent? I'm looking for a way to either record audio in a file, then pass it to RecognizerIntent or use the audio buffer from RecognizerIntent and save it to a file. So far I can't find any documentation that would lead me to a way to do this :-/ May 08 02:50:28 DataTracer: What is recognizerIntent for? Seems to me, if you write the audio data to a file, you can just read that file (from any activity) whenever you want. May 08 02:51:13 It's google's api for doing speech to text May 08 02:56:14 ok, guess I'll keep digging :-/ Thanks! **** ENDING LOGGING AT Wed May 08 02:59:58 2013