**** BEGIN LOGGING AT Tue Jan 28 02:59:59 2014 Jan 28 03:02:32 Hello, I have a relative layout with a textview and an imageview inside it. The relativelayout is one component of a larger page. What I want is the relativelayout to be centered vertically, such that the textview and imageview will be centered in the available space at the top of the page. Generally speaking it is doing this correctly. Jan 28 03:02:38 However, I have found that if I have both the text and image, the imageview is overlapping the textview Jan 28 03:14:19 Hi friends, I've got this line ImageView image = (ImageView) findViewById(R.id.image_thumbnail); in my code... and I have an imageview with that id, yet I get a class cast exception saying android.widget.LinearLayout cannot be cast to android.widget.ImageView. what would cause that? why would it perceive it as a linearlayout? Jan 28 03:20:02 ir7466, post your xml in pastebin Jan 28 03:21:12 Thanks alex_PP, it's at: http://pastebin.ca/2593267 Jan 28 03:21:19 I was experimenting with a linearlayout as well Jan 28 03:21:39 But that code above is as close as I can get to the thing working Jan 28 03:22:11 are you using eclipse? Jan 28 03:22:16 yes Jan 28 03:22:22 clean your project Jan 28 03:22:23 clean & rebuild Jan 28 03:22:43 is this for the linearlayout/class cast bit? Jan 28 03:22:56 eclipse gets easily confused Jan 28 03:23:11 your xml looks fine Jan 28 03:23:51 I have what's probably a simple question also Jan 28 03:23:59 Whenever I build, I just build and open in the emulator Jan 28 03:24:10 is there any way to just rebuild by itself? Jan 28 03:24:25 "Build All" is not available to me (greyed out) Jan 28 03:24:39 that's coz you have auto build on Jan 28 03:25:03 Oh okay Jan 28 03:25:09 is there any benefit to leaving it on? Jan 28 03:25:29 it's "supposed" to make building faster, but tends to leave a dirty cache behind and causes a few problems with android code Jan 28 03:25:39 %s/android/reall any kind of/ Jan 28 03:25:48 so if I untick that, whenever I run the emulator from now on I need to manually build first? Jan 28 03:32:43 bankai_ / alex_PP - on that XML code I pastebin'd, is there anything in there I can do to make the imageview expand to the full amount of space it can take up? Jan 28 03:33:42 as you can see the textview and imageview both have a height of wrap_content. If I set the imageview to fill_parent it will overlap the text though Jan 28 03:36:44 ir7466, do some googleing for layout weights Jan 28 03:37:03 I've been looking at this for days Jan 28 03:37:10 I've tried so many different things Jan 28 03:37:19 Problem with weights was that it seemed to be percentage based Jan 28 03:37:31 I don't want percentages, I just want it to take up as much space as possible Jan 28 03:37:51 And when I tried setting one weight to 1 and the other to 0, it overlapped Jan 28 03:39:50 make the parent a linear layout Jan 28 03:39:58 the text wrap_content Jan 28 03:40:10 the image height 0dp Jan 28 03:40:16 the image weight 1 Jan 28 03:42:15 that will make everything like "android:layout_alignWithParentIfMissing="true"" redundant wouldn't it? Jan 28 03:42:26 so I may lose the ability to have everything centred? Jan 28 04:12:39 How does one create a menu/option to save the settings in an app? Jan 28 04:13:07 hi all Jan 28 05:22:38 oi, it was nice while it lasted http://phandroid.com/2014/01/27/nexus-google-play-edition-rumor/ Jan 28 05:22:48 oh yeah, rumor :) Jan 28 05:23:12 I thought it was a red N5 Jan 28 05:25:50 but then http://www.theverge.com/2013/5/30/4379936/google-will-keep-making-nexus-hardware-says-sundar-pichai Jan 28 05:26:24 well, that was may 30 2013 Jan 28 05:43:19 What should I look into if I want to keep threads running after my Activity has been suspended? Jan 28 05:43:44 And do stuff like have the back stack removal turn into a suspension, instead of a close. Jan 28 05:52:27 R0b0t1 you look at the docs, of course Jan 28 05:52:37 specifically the Service docs Jan 28 05:53:55 Thanks, was looking for the name of a class. Jan 28 06:04:29 do Callback(s) and Listener interfaces have an underlying difference in convention for android? Jan 28 06:04:42 or is it kind of arbitrary Jan 28 06:05:04 (developer A uses Callbacks, dev B uses Listener) Jan 28 06:11:55 * JesusFreke uses a CallbackListener Jan 28 06:13:42 I'm prefer calling them Listeners myself, but google results suggest in other environments a Listener is a bit different Jan 28 06:13:48 I* Jan 28 06:16:48 * g00s uses ListenerCallback Jan 28 06:16:56 BUT! Jan 28 06:17:15 you need ListsnerCallbackFactory.createListenerCallback() Jan 28 06:18:39 rdnt maybe a listener implies any number of calls, but a callback implies the result of an async computation Jan 28 06:18:53 * g00s ponders - dunno really Jan 28 06:20:42 seems similar to http://programmers.stackexchange.com/questions/84732/what-is-the-difference-between-callbacks-and-listeners Jan 28 06:22:42 http://blog.danieldee.com/2009/06/callback-vs-listener.html Jan 28 06:22:59 that makes most sense Jan 28 06:25:32 * rdnt considers refactoring... Jan 28 07:10:09 good mornings Jan 28 07:13:01 I usually use listener for something that will occur more than one time Jan 28 07:13:26 Good morning lemonxah! Jan 28 07:13:26 And callback for more of a one shot thing Jan 28 07:13:42 but listeners are really just a variation of callback Jan 28 07:13:43 morning ir7466, will get to you soon just have some meetings this morning Jan 28 07:14:53 pfn agreed listeners and callbacks are essentially the same mechanic "here is a method i would like for you to call at the right time"\ Jan 28 07:18:43 hi, anybody with experience w/ phonegap build? my config.xml file's access tag does not seem to be respected https://gist.github.com/hayksaakian/deaceffd7656be8a35ad Jan 28 07:19:05 W/IceCreamCordovaWebViewClient(11103): URL blocked by whitelist: https://www.extempengine.com/papers.json Jan 28 07:19:43 hephaestus_rg we frown on phonegap Jan 28 07:20:01 i know the pros/cons g00s: Jan 28 07:20:19 but this project made sense with phonegap Jan 28 07:20:23 hephaestus_rg i guess more clearly, people don't help with it here Jan 28 07:20:33 ok, well thanks anyways Jan 28 07:24:14 Hi lemonxah, when you have a moment would you mind messaging me - regarding centre alignment of imageviews that we talked about on friday? thanks Jan 28 07:24:50 sure Jan 28 07:24:56 just finnished the first meeting Jan 28 07:24:57 thank you Jan 28 07:25:01 good morning lemonxah Jan 28 07:25:05 morning g00s Jan 28 07:30:18 rdnt, the thing that is invoked when a callback occurs is a Listener. Jan 28 07:32:54 ir7466, are you close to a fix? Jan 28 07:33:00 what are you still having issues with? Jan 28 07:35:24 I am close Jan 28 07:36:14 using layouts? Jan 28 07:36:15 :) Jan 28 07:37:52 is it possible to have the parent not clip its child (a child several levels deep). like have a view thats several steps down the hierarchy and have it cover all of its parents Jan 28 07:49:00 rhcake, https://developer.android.com/reference/android/view/ViewGroup.html#attr_android:clipChildren Jan 28 07:49:04 might be what you want Jan 28 07:50:16 yeah i tried that but it seems it only disables clipping for the immediate children, not those more than 1 step down Jan 28 07:56:57 life advice: don't use phonegap unless you're 100% certain it can do exactly what you need it to Jan 28 07:57:17 amen Jan 28 07:57:22 i'm kicking myself becuase android before 4.4 didn't have indexed db in the webview Jan 28 07:59:56 rhcake, so use it on all of them? Jan 28 08:11:18 Has anyone succeeded in sharing an image through the facebook App/SDK using the Android shareActionProvider? Jan 28 08:11:46 * napster thinks shareActionProvider is the most flawed feature in Android framework. Jan 28 08:13:45 napster: Yes. Jan 28 08:15:56 kjeldahl: You did make it work? Jan 28 08:16:21 napster: Yes. What's your real question? Jan 28 08:17:10 kjeldahl: Specifically how did you do it? You were able to share it through the native facebook App using ShareActionProvider? Jan 28 08:20:01 Ok, maybe I didn't, not sure. What I do however is just create an intent ACTION_SEND with an image and call startActivity(Intent.createChooser(...)). Is that what you're trying to do? Jan 28 08:20:39 Intent share = new Intent(Intent.ACTION_SEND); Jan 28 08:20:41 share.setType("image/png"); Jan 28 08:20:43 share.putExtra(Intent.EXTRA_STREAM, Jan 28 08:20:45 shareUri); Jan 28 08:20:47 startActivity(Intent.createChooser(share, "Share Image")); Jan 28 08:20:56 kjeldahl: no, this ^^ wont work. ShareActionProvider seems to take a single intent for all "sharing" apps. Jan 28 08:21:32 Facebook native app has a known bug I think, because I see some SOF questions regarding that. Jan 28 08:22:09 EXTRA_STREAM doesn't work Jan 28 08:22:14 Well, i know THIS works, what's your usecase? I'm sharing images through Facebook all the time and the Facebook part of it looks pretty native, allowing me to select friends, tag places etc. Jan 28 08:22:47 kjeldahl: What version are you on? Jan 28 08:22:54 android version I mean Jan 28 08:24:50 ok, I passed the exact intent to shareActionProvider, and it does not attach the image to the share screen. Facebook just complains, failed to attach image. Jan 28 08:25:13 The app is min API 14, target 16. I've run it on 4.2, 4.3, 4.4, but it's on Play Store with many users on anything 4 and above, never heard a complain about it. https://play.google.com/store/apps/details?id=net.kjeldahl.tournman&hl=en Jan 28 08:25:42 kjeldahl: ok let me try out this app on my phone now. Jan 28 08:26:00 Good idea! Jan 28 08:27:06 napster: The "trick" of course is that the stream has to be accessible to the receiving app (Facebook in this case), so you can't keep it inside your own app for sharing (unless you create a public contentprovider for it). Jan 28 08:27:59 I cheat and write it to "external" storage before sharing using the MediaStore services, because I'm lazy. Jan 28 08:28:03 kjeldahl: ok, that pointer is good. Let me fiddle with it. Jan 28 08:28:14 kjeldahl: ok Jan 28 08:28:50 kjeldahl: ok your app works good. Jan 28 08:29:02 Thanks (pheew..). Jan 28 08:29:16 :) Jan 28 08:32:36 kjeldahl: What will be best solution instead of copying the image to the external storage? Jan 28 08:32:52 napster: Writing your own contentprovider. Jan 28 08:32:58 ok Jan 28 08:33:02 (providing images to other apps) Jan 28 08:34:10 Was it access to the image that got you? Jan 28 08:34:33 kjeldahl: hmm, kind of. Jan 28 08:34:39 the images comes from the web. Jan 28 08:35:18 Ok, and sharing the URI directly did not work? Jan 28 08:35:29 kjeldahl: yes, it didn't Jan 28 08:36:11 napster: In theory that could actually be up to the receiver, supporting only certain schemes and content types. But I'm speculating. Jan 28 08:36:30 ok Jan 28 08:38:26 Just used AS for the first time in a long time for setting up a new project. My god that beast is getting slow. Good thing it's easy to swich to emacs after it has done it's app template thingy. Jan 28 08:49:45 huh... all the text in my app turned into solid blocks suddenly Jan 28 08:50:14 managed to reproduce it twice, only killing the process fixed it... Jan 28 08:56:20 Ha, that sounds exactly like libgdx losing it's fonts from texture memory, but this may be the wrong channel for this.. ;-) Jan 28 08:59:40 http://eclipser.xmms2.org/device-2014-01-28-105800.png Jan 28 08:59:50 kjeldahl, would it look like that Jan 28 08:59:51 :) Jan 28 09:01:35 Exactly like that; looks very much like textures gone missing due to a lost context or something. Test it with the dev option "don't keep activities". Jan 28 09:02:57 how do I test it with that? Jan 28 09:03:00 what would happen Jan 28 09:04:51 Maybe not as efficient any longer as the proper fixes have been applied to libgdx already (a couple of months back after I started bitching), but it caught errors related to static initialization of some resources which really should not be statically instantiated. Jan 28 09:05:17 I don't use libgdx though :) Jan 28 09:05:24 Any static initializers in your code? Jan 28 09:06:13 not in anything that's related to this activity that causes this... Jan 28 09:06:32 actually, no static initializers at all... Jan 28 09:06:36 But you're using something which stuffs fonts into textures right? Which libs? Jan 28 09:06:43 no Jan 28 09:06:47 just pure android Jan 28 09:06:56 not rendering text myself Jan 28 09:06:57 oh Jan 28 09:07:00 it's even standard font Jan 28 09:07:33 That screen looked so much like a typical gaming screen! ;-) Jan 28 09:08:15 Could you be running out of texture memory? Jan 28 09:08:41 it's a possibility... Jan 28 09:09:20 I've seen reports of the same issue on libgdx, unity, corona... It's always either losing the gl context or running out of texture memory it seems. Jan 28 09:10:01 I'm triggering this by rotating my app a bunch of times while rendering a video on a surfaceview with mediacodec api Jan 28 09:10:46 Sounds like something isn't cleaning up after itself. Jan 28 09:20:10 Hi all. I'm trying to instantiate BluetoothGattServer (as a peripheral device), but the documentation is very incomplete and getProfileProxy returns false, and does not call callback method. Any ideas? I'm using BluetoothProfile.GATT_SERVER Jan 28 09:47:42 Are we allowed to insert our owned message through the facebook sdk (3.5, 3.6) in order to push to the facebook wall? Some posts from StackOverflow say that we cannot; however, this library (https://github.com/sromku/android-simple-facebook) claims that it can (though I cannot run the examples successfully) Jan 28 09:54:21 aloah Jan 28 09:56:30 kjeldahl did you write killer match using kawa ? Jan 28 10:01:24 Hi, I get following error message in LogCat when I try to run a test on an emulator: java.io.FileNotFoundException: /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq: open failed: ENOENT (No such file or directory) Jan 28 10:01:53 Google isn't very helpful. Does anybody have an idea what could be the cause of this? Jan 28 10:01:58 g00s: No, it was my first real Android app. Needed to learn the basics first. Jan 28 10:02:17 kjeldahl looks very nice :) Jan 28 10:02:28 fancy42 like error said you try access one file that not exists Jan 28 10:02:49 g00s: Thanks, I'm pretty pleased with it, even though it isn't taking over the world yet. But I'm the king of dogfooding and love it, which is a good sign! Jan 28 10:03:09 kjeldahl btw, what did you use for the graph ? Jan 28 10:03:29 fBirD: I figured that, but I don't try to read it manually. It runs great on a physical device. Jan 28 10:03:54 g00s: canvas.drawLine ;-) Jan 28 10:04:05 :O Jan 28 10:05:47 you only get that error in emulator? Jan 28 10:05:54 yes Jan 28 10:05:57 so Jan 28 10:06:49 Ah ok. I just found I'm using a 3rd party library which tries to access that file with: new RandomAccessFile("/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq", "r"); Jan 28 10:06:51 i don't know what kind app you are developer but i think you try use some info from phone related with cpu info and the emulator dont have that information and this is expected Jan 28 10:07:09 because you only get this information from real phone Jan 28 10:07:30 make sense? Jan 28 10:07:45 why doesn't the emulator emulate this information? Jan 28 10:09:29 so because emulator like the name said's "emulate" a phone, isn't a real one Jan 28 10:09:39 and some functionalites aren't avaliable Jan 28 10:11:38 this kind of tests you need to use a real phone Jan 28 10:16:31 does anybody here have experience using roboelectric+dagger for testing android stuff? Jan 28 10:17:40 because i'm still trying to get instrument tests working and having a really hitty time :) Jan 28 10:17:52 with what specifically Jan 28 10:22:52 fBird: ok, it seems like i just have to live with that. thanks for your help. Jan 28 10:23:26 well for a start I'm trying to test some fragments but none of the dagger/butterknife injections seem to be available in the apk.. Jan 28 10:23:39 the emulator isn't good for stuff that you need to use hardware Jan 28 10:23:40 gps Jan 28 10:23:42 cpu ram Jan 28 10:23:56 that kind off stuff Jan 28 10:24:59 fancy42 but try with http://www.genymotion.com/# maybe you can use that info :) Jan 28 10:25:56 thanks i'll look into that Jan 28 10:26:00 is there a way in volley to get the request object from the response? Jan 28 10:26:05 Hi guys, how should be Service correctly implemented in manifest ? It should be inside tab AND inside the activity which calls it ? or how ? this is my setup and it doesnt work, says it cannot find ".service" http://pastebin.com/5gG3TAEA Jan 28 10:26:06 thanks Jan 28 10:30:11 storkme: doesn't sound like you've included the libs properly Jan 28 10:31:16 Is there a View that is uhm, a list with expandable elements under an item? Jan 28 10:31:42 I am thinking of having a ListView and inserting elements to the list when a parent element is clicked Jan 28 10:36:26 R0b0t1: http://developer.android.com/reference/android/widget/ExpandableListAdapter.html Jan 28 10:37:00 does the 'instrumentTestCompile' source set not extend from 'compile' ? Jan 28 10:42:52 is AS better than eclipse at handling dependencies and libraries? Jan 28 10:48:00 otiose it comes down to gradle, yeah i guess Jan 28 10:49:32 We have a stupid amount of dependencies in this project of ourse Jan 28 10:49:53 and its annoying to every single time try and get the project configured on git clone Jan 28 10:50:03 gradle-plugin is pretty slow lately, though Jan 28 10:50:16 make a gradle build file and try it out Jan 28 10:53:12 g00s: yeah i might have to give that a shot Jan 28 10:53:30 it can't be worse than adding libraries, closing the window, and then being told they dont exist Jan 28 10:53:33 CallumTaylor: Thanks, I'm having terrible luck with my keyword use today :> Jan 28 10:54:27 so if anyone has managed to get instrumentation testing to work with dagger/butterknife could I see your build.gradle please? Jan 28 10:57:07 hehe, i just cleaned a knife with butter on it Jan 28 11:12:56 hey there! Jan 28 11:14:47 hey ;) Jan 28 11:15:33 lo, anyone got expirience with google game services? Jan 28 11:18:28 so i'm just trying to get my head around dealing with different screen sizes, i get the fact that you can have different image sizes automatically for different dpi's, but how do you deal with screen sizes? like here's my current layout, if i want the icons bigger on tablets, does that mean i need different layouts for size as well as different dpi images? http://imgur.com/h86ip0a Jan 28 11:19:21 you need to have different scale images for different densities, drawable-hdpi, drawable-xhdpi, drawable-xxhdpi etc Jan 28 11:19:23 erdos yes Jan 28 11:19:52 see this article may help you http://petrnohejl.github.io/Android-Cheatsheet-For-Graphic-Designers/ Jan 28 11:20:24 oh perfect :) thank you! Jan 28 11:20:37 but like CallumTaylor said you will need different sizes for diferent densities Jan 28 11:20:43 http://developer.android.com/guide/practices/screens_support.html Jan 28 11:20:54 i will literally pay money if someone can get my instrumentation tests working for me i'm so done being stuck on this... here's my gradle file http://pastie.org/8675003 and these are the logcat errors i'm getting http://pastie.org/pastes/8675012/text Jan 28 11:20:57 got the densities sorted, and just read that link CallumTaylor Jan 28 11:21:20 it would be simple if every screen was the same in device independent pixels Jan 28 11:21:40 obviously not because then the images would be the same scale on each device density Jan 28 11:21:44 my confusion is making a hdpi tab and a hdpi phone look the same Jan 28 11:21:47 unless you're forcing dp sizes on the views Jan 28 11:22:29 they're images though Jan 28 11:22:38 storkme "ClassNotFoundException" you try reference 1 class tha dont exist in your project review the code Jan 28 11:22:44 so i dunno, can you make them scale? Jan 28 11:23:03 fBirD: only when running tests, though - it works fine when I run the app :/ Jan 28 11:23:10 what is the image size for the take photo image in your drawable-xhdpi folder Jan 28 11:24:17 storkme you have this class butterknife.internal.InjectViewProcesso? Jan 28 11:24:33 the problem is with this class Jan 28 11:24:40 well as you can see it's in my dependencies as a compile directive Jan 28 11:25:02 it's not in there yet, but when i compare the nexus 4 vs nexus 10 (which are same dpi), that's where my problem is Jan 28 11:25:35 right ok Jan 28 11:26:00 so i guess the large layout (which would be used for nexus 10) would reference bigger copies of images in each dpi folder Jan 28 11:26:12 so make a folder called drawable-large-xhdpi Jan 28 11:26:32 any idea why Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK Jan 28 11:26:33 that way it will match the same density, but for larger screen sizes Jan 28 11:26:37 doesnt work on nexus 5 Jan 28 11:26:48 storkme dunno, the compiler for some reason dont find some classes Jan 28 11:26:49 :S Jan 28 11:30:29 ohhhhh Jan 28 11:30:31 gotcha Jan 28 11:30:33 thanks :) Jan 28 11:30:42 which attributes do i have to set to make the tabs smaller? something like wrap content: http://unterschicht.tv/img/andro-20140128-122826.jpg Jan 28 11:31:13 i want the tab to be as small as possible Jan 28 11:32:07 mrhanky http://stackoverflow.com/questions/5801825/how-can-we-specify-width-for-each-tab-in-tabhost Jan 28 11:35:15 fBirD, thanks, but i have no tabhost Jan 28 11:36:36 i'm using actioBar.NAVIGATION_MODE_TABS + TabListener Jan 28 11:41:52 mrhanky this example is for max width Jan 28 11:41:52 http://stackoverflow.com/questions/16590869/android-actionbar-set-width-to-the-tabs Jan 28 11:41:58 but try for your case Jan 28 11:48:00 argh. Jan 28 11:57:25 Hello Jan 28 11:58:31 kafor7: hello Jan 28 11:59:14 I have a list view and each item contains 2 textviews and WebView but webview is gone and is showed after we click on it. The problem is that after we click an item and scroll the listview it seems like scrolled item inherit style (I mean I expect webview should be gone but is visible) Jan 28 11:59:27 how to solve that ? Jan 28 12:03:07 no Jan 28 12:10:53 Does anybody have idea how to fix it ? Jan 28 12:22:34 Guys, i want to create ftp connection in service, does that mean that i must have create service and NEW thread / runnable inside it ? beause when i create new service and in onStartCommand execute ftp connection i get error about running network on main thread Jan 28 12:23:20 The Exception is pretty specific. Don't run Network I/O on the main thread. So yes, run it in a different Thread. Jan 28 12:23:45 aha so create service Jan 28 12:23:50 and inside a new Thread Jan 28 12:26:10 DOSP, usually have a service that creates a thread Jan 28 12:26:32 maybe with a ThreadPool Jan 28 12:27:04 okay so i create new thread inside the onStartCommand method? Jan 28 12:27:13 is it possible to debug instrument tests..? Jan 28 12:31:14 DOSP: if you want to. but it is cleaner to create a method for that and call this method. but remember, onStartCommand() is called everytime you call startService(), so be carefull. if you call startService() multiple times the service will run only once but the onStartCommand() will be called everytime. Jan 28 12:40:48 i am programatically fetching the contacts using content resolver. what if the user has like 10000 contacts? should i take measures for this? Jan 28 12:40:57 as the device could run low on memory? Jan 28 12:41:40 brx_: do you need all of the contacts at once? Jan 28 12:41:49 brx_ maybe yes Jan 28 12:41:58 p_l, i want to email them out Jan 28 12:41:58 that is a lot of information Jan 28 12:42:10 fBirD, whats a sensible way to approach this? Jan 28 12:42:37 brx_: all of them? Jan 28 12:42:43 yes Jan 28 12:42:47 not hard, then Jan 28 12:43:27 brx_: create a temporary file, then process contacts by iterating over them (with cursor?), writing the data to temporary file, then email the file Jan 28 12:43:43 you do not need full copy of contacts in memory Jan 28 12:43:57 so create file on sdcard? Jan 28 12:44:11 brx_: or in application's private space Jan 28 12:44:22 ok Jan 28 12:45:00 ? Jan 28 12:45:40 thanks p_l Jan 28 12:46:36 brx_ yes create a background task that will store all info in a temp file, then send that file in email and after delete the file Jan 28 12:47:05 roger than fBirD Jan 28 13:07:34 anyone have experience with widgets? Jan 28 13:07:41 this contentloadingprogressbar doesn't seem to work very well -.- Jan 28 13:08:48 lemonxah depend what you need? Jan 28 13:12:36 fBirD, is it possible to put a fragment in a widget? Jan 28 13:12:54 like i have a newsfeed fragment and that is a perfect thing to be a widget Jan 28 13:14:09 lemonxah: no, its not possible, widgets are RemoteViews Jan 28 13:14:29 ok thnx :( Jan 28 13:15:14 And since Widget's are not backed by Activity's you dont have a FragmentManger Jan 28 13:15:24 so no Fragments Jan 28 13:18:27 thats ok .. was just hoping to kill 2 birds with 1 stone Jan 28 13:18:32 no worries though Jan 28 13:39:11 Hi. I'm trying to import a project with AS previously exported with Eclipse. Till 0.4.2 all worked fine: import -> AS read gradle.build and create a copy of original project -> open new projet. With now updated 0.4.3 import don't works, not create a new project clone but open what used in import. After that all is in error.... do you have same issue ? Jan 28 13:39:49 Try saving it again Jan 28 13:40:12 Just a ctrl+s solves it for me Jan 28 13:41:28 I have to save project after to have imported ? Jan 28 13:41:38 I'm trying Jan 28 13:42:00 Yes Jan 28 13:44:13 anyone got expirience with implementing google game services into their games? Jan 28 13:50:47 do not works... damned me when I've clicked UPDATE Jan 28 13:51:19 Just restart eclipse Jan 28 13:51:26 Then use debug Jan 28 13:56:57 A problem occurred evaluating root project 'omerliftmanager_test'. Jan 28 13:56:57 > Gradle version 1.6 is required. Current version is 1.9 Jan 28 13:56:59 is incredible. an AS hint invited me to upgrade gradle to 1.9 in gradle-wrapper.proprerties from actual 1.6 (seem the reason of some issues). OK, done and after that: Jan 28 13:57:19 !! bad stacked messages upon !!! Jan 28 13:57:40 is it possible to receive a delegate on notification removal? Jan 28 13:58:11 I guess I will "left" AS at least till it reach v2.0 Jan 28 13:59:20 i mean like Notification.setOnRemoveHandler or something Jan 28 14:03:40 so i have a drawerlayout with 2 drawers in it Jan 28 14:03:45 left and right Jan 28 14:04:05 how do i open the right hand side one with button? Jan 28 14:06:08 Morning Jan 28 14:06:14 Hi Jan 28 14:32:37 can someone point me at a good primer for gradle / maven? I want to separate out some reusable code into a library but it's pretty confusing. Jan 28 14:33:26 I've got an aar from my library project I set up, but I don't know how to either install it in the local maven repository or reference it from the using project's build.gradle Jan 28 14:37:00 has anyone here used Espresso? Jan 28 14:54:18 I've been struggling with this error message for quite a while now. Can someone help me? It says some kind of syntax error, but I can't see the error. Screenshot --> http://i.snag.gy/Ud6Ox.jpg Jan 28 14:55:00 what does the error say exactly Jan 28 14:55:43 CallumTaylor: I couldn't have the error in the screenshot because it's tooltip. Hold on. Jan 28 14:55:46 also for intent bundles its just intent.getExtras() Jan 28 14:56:34 1) Description Resource Path Location Type Jan 28 14:56:34 Syntax error on token(s), misplaced construct(s) ActivityA.java /app2/src/com/example/app2 line 32 Java Problem Jan 28 14:57:02 Description Resource Path Location Type Jan 28 14:57:02 Syntax error on token ""bla"", delete this token ActivityA.java /app2/src/com/example/app2 line 32 Java Problem Jan 28 14:57:19 You sure it for textview,not edittext? Jan 28 14:57:29 its* Jan 28 14:57:39 strange Jan 28 14:57:45 razor-: hold on Jan 28 14:57:48 textview doest accept setText(CharSequence) Jan 28 14:58:00 try saving and then doing a clear Jan 28 14:58:03 project->clean Jan 28 14:58:04 EditText does Jan 28 14:58:24 edit text is a subclass of textview Jan 28 14:59:14 oh i know what it is Jan 28 14:59:30 your syntax is wrong in the on click listener Jan 28 14:59:49 all the lines from intent = get intent to the text view should be above the b.setOnClickListener line Jan 28 15:02:31 wut, scan-build doesn't work for directories with dashes in them Jan 28 15:09:21 can I use a weakreference for a Bitmap going into an Imageview? Jan 28 15:11:07 Mornin'! Jan 28 15:11:11 Morning Jan 28 15:11:29 jonc-1: sure Jan 28 15:12:38 and that means an LruCache would be capable of removing it from the cache even if the imageview still had a weakreference to the bitmap? Jan 28 15:13:14 that's the idea of a weak reference Jan 28 15:13:41 yeah, just making sure what I am thinking aligns with the LruCache Jan 28 15:14:01 just make sure you do your null checks when calling weakReference.get() Jan 28 15:14:48 will the imageview properly handle the bitmap turning null if collected? Jan 28 15:15:16 CallumTaylor: what's wrong with the syntax of the onClick listener? Is it the closing brace? I tried to add one, but the error is still on the same line. Jan 28 15:15:28 if its still being displayed it shouldn't be GC, but if (for e.g its in a list view) it should get cleaned up once scrolled away Jan 28 15:15:48 the issue is you're trying to set a property of an object from outside a method Jan 28 15:15:58 paste your code into paste bin and i'll reformat it Jan 28 15:16:05 this is why code formatting is very important Jan 28 15:16:42 It's for a ViewPager, only 2 images will ever be shown at a given time but even with the offscreen page limit set to 1 I run out of heap space (not sure why or how since my images are only about 1/2 screen size for an S4) Jan 28 15:16:56 how big is the image? Jan 28 15:17:02 900x 500 ish Jan 28 15:17:12 don't forget when a bitmap is loaded, it loads the pixel data, ignore compression Jan 28 15:17:17 yeah Jan 28 15:17:32 but not being able to load more than 3 half screen size images Jan 28 15:17:38 so thats 900*500*8 channels if you're using ARGB8888 Jan 28 15:17:51 *4 Jan 28 15:17:57 900*500*4 Jan 28 15:18:00 *4 Jan 28 15:18:03 CallumTaylor: http://pastebin.com/T5Nkvbaf Jan 28 15:18:11 try using RGB_565 instead, and doing a sample Jan 28 15:18:12 4 1 byte channels Jan 28 15:18:24 but yeah if all those images are that size it should load them fine Jan 28 15:18:37 i'd look at the rest of the app incase you have a leak somewhere preventing the allocations from happening i nthe first place Jan 28 15:18:41 it loads 3 fine, but as soon as it tries a 4th I run out of heap space Jan 28 15:18:55 this can be the first thing I do, it still runs out Jan 28 15:19:19 I even recycle the bitmap onPause and load it again in onResume Jan 28 15:19:41 in onPause* Jan 28 15:20:44 doge_wow2: http://pastebin.com/dNzhA9Pp Jan 28 15:21:05 CallumTaylor: ok thnx, lemme have a look :) Jan 28 15:21:26 recycle doesn't clean up memory, it just frees it up so the GC can collect it AFAIK Jan 28 15:21:54 recycle means release it now Jan 28 15:22:18 what's your offset page limit for the view pager? it shouldn't ever load 4 pages by default Jan 28 15:22:26 it is 1 Jan 28 15:22:26 it should only load one either side of the current Jan 28 15:23:02 does it start loading the 4th one as I scroll to the next page? Jan 28 15:23:30 it should load the 4th only when you scroll to page 3 Jan 28 15:23:38 but it should also destroy page 1 Jan 28 15:23:46 when do you call to load your bitmap? Jan 28 15:24:01 onResume Jan 28 15:24:47 is it possible that the other fragments are also re-loading their images when you scroll to the next page? Jan 28 15:25:10 shouldn't be, I use BitmapFactory.decodeResource and it is only in onResume() Jan 28 15:28:20 hm not too sure, i hate dealing with bitmaps which is why i use the universal image loader library, it deals with OOM for me Jan 28 15:30:08 CallumTaylor, I will look into that Jan 28 15:30:48 what's logcat say Jan 28 15:30:51 in dalvikvm messages Jan 28 15:30:56 it'll tell you how big everything is... Jan 28 15:31:10 4 images at 900x500 will not cause an oome unless you have something else going on Jan 28 15:31:11 also that Jan 28 15:33:15 there is also a video loaded in another fragment, but I would hope the Videoview would stream that as it plays Jan 28 15:34:02 01-28 10:32:35.225 7781-7781/com.di.mCALM E/dalvikvm-heap? Out of memory on a 16200016-byte allocation. Jan 28 15:34:10 when it tries to load the last image before it crashes Jan 28 15:34:59 and yes, they are all 500x900 images Jan 28 15:35:49 which should only be 1.7mb each at argb8 Jan 28 15:36:31 and some how it is trying to allocate 15.5 MB Jan 28 15:38:06 unless it uses the dpi to convert the size and it thinks it should be 4x the pixels Jan 28 15:38:29 they are all set at 72 dpi Jan 28 15:39:26 i want to change from Theme.Holo only the color from background, not the color of the action bar or the fonts. I use item name="android:windowBackground" but this also changes the color of action bar. How can i do this? Jan 28 15:41:24 setting inScaled = false in the options fixes it Jan 28 15:41:45 so does the BitmapFactory adjust the size of the image based on the dpi set for a jpg? Jan 28 15:41:57 it would also be worth looking around incase you have a memory leak somewhere Jan 28 15:42:53 that's a 16mb allocation Jan 28 15:42:57 pfn I know Jan 28 15:43:01 and I am saying it is wrong Jan 28 15:43:02 16mb is not 900x500 Jan 28 15:43:10 I know Jan 28 15:43:22 but there are no images larger than 900x500 in my entire project Jan 28 15:43:29 so you think... Jan 28 15:43:30 and the images I am loading are only 900x500 Jan 28 15:43:33 I know Jan 28 15:43:40 I believe it was scaling them to much larger Jan 28 15:43:41 you don't have a memory leak on a 16mb allocation Jan 28 15:43:50 that's a bad allocation, period Jan 28 15:44:03 because as soon as I added options inScale = false, it doesn't have an issue Jan 28 15:44:18 ok Jan 28 15:44:29 anyway, so if inScaled=false fixes it, then you're done Jan 28 15:44:44 so I believe the BitmapFactory takes the DPI that is set in the actual jpg itself and then will scale the image based off that and the device Jan 28 15:45:04 maybe Jan 28 15:45:06 if you don't tell it to not do that Jan 28 15:46:40 to verify I am going to check the bytecount of the bitmap after it has been loaded with inScale = false and not set Jan 28 15:47:29 with not set size: 15.449mB Jan 28 15:48:22 with set: 1.716mB Jan 28 15:48:27 learn something new everyday Jan 28 15:48:37 the bitmap factory will scale the image based on the images set dpi Jan 28 15:49:01 are you reading the image from resources? Jan 28 15:49:08 yes, from drawable Jan 28 15:49:30 Just drawable/ ? Jan 28 15:49:46 fuck this shit Jan 28 15:49:47 http://www.jn.pt/PaginaInicial/Tecnologia/Interior.aspx?content_id=3655724 Jan 28 15:49:50 Not drawable-nodpi ? Jan 28 15:49:55 yeah, don't have anything except icons in any of the ldpi, mdpi etc Jan 28 15:49:57 please translate the page and read Jan 28 15:50:05 drawable/ is mdpi Jan 28 15:50:11 ok Jan 28 15:50:15 did not know that Jan 28 15:50:22 so put it in drawable-nodpi Jan 28 15:50:23 that's interesting, didn't know that Jan 28 15:50:32 does it still apply if you have a drawable-mdpi folder? Jan 28 15:50:38 Yes Jan 28 15:50:43 i've always used drawable/ for all my XML definitions Jan 28 15:50:54 CallumTaylor me2 :) Jan 28 15:51:39 Image files in drawable/ are treated as mdpi.. If you load it on a higher density device, multiply its dimensions by that density Jan 28 15:52:15 again, learn something every day Jan 28 15:52:47 http://www.jn.pt/PaginaInicial/Tecnologia/Interior.aspx?content_id=3655724 USA spying people through angry birds, google maps, and other app for mobile xD Jan 28 15:58:14 Thanks CallumTaylor, pfn, and SimonVT Jan 28 15:59:34 i have an editText and when I enter something into it the word gets underlined until I enter a word delimiter... what is this? i just want a plain text field to enter text Jan 28 16:02:05 ohcibi, turn off spellcheck Jan 28 16:03:10 pfn: its not spellcheck but suggestions... Jan 28 16:04:08 turn off suggestions Jan 28 16:09:45 I've got a very vocal complainer whining that my app won't work on his $49 tablet from walmart. The tablet actually runs android 4.2. Sorry to ask a noob question, but what else might be preventing my app from running on his hardware? Jan 28 16:10:07 do you use any sensors? Jan 28 16:10:23 it may not have a lot of memory Jan 28 16:10:33 I stream audio Jan 28 16:10:43 that's about it Jan 28 16:10:48 It crashes on startup? Jan 28 16:12:15 no, it won't let him download from the play store at all Jan 28 16:12:19 says his device isn't compatible Jan 28 16:12:26 plenty of other 7" tables have no issue Jan 28 16:12:35 Well, problem solved then :p Jan 28 16:12:37 but his crappy $49 RCA tablet isn't allowed to download it Jan 28 16:12:41 and I'm stumped as to why Jan 28 16:12:53 then I'd imagine it's something that is in your app that his does not support Jan 28 16:12:58 SimonVT: yeah, as soon as I understand why he is inexplicably blocked, I can forget about it Jan 28 16:13:23 jonc-1: absolutely, I'm sure that's the case. I can't figure out what though. I was hoping that some of yall might have ideas about pitfalls here Jan 28 16:13:30 I don't know how google makes that decision for me Jan 28 16:13:54 RCA probably registered their device with it's capabilities to google Jan 28 16:14:25 check https://support.google.com/googleplay/answer/1727131?hl=en if its listed Jan 28 16:14:48 http://lifehacker.com/google-play-shows-you-why-an-app-is-incompatible-with-y-496328577 Jan 28 16:15:20 if they go to the webbased play store and log in with their account they can see why an app is not supported Jan 28 16:15:39 potentially see why* Jan 28 16:16:55 jonc-1: thanks! Jan 28 16:17:18 CallumTaylor: thnx 4 ur help, now I can compile the software, but the application keeps crashing on the phone at startup. I'm working on that now. Jan 28 16:27:03 serialization libraries recommendations that handle cyclic references Jan 28 16:27:08 go Jan 28 16:28:13 jackson Jan 28 16:29:19 don't have cycles in your object graph... Jan 28 16:29:36 pfn if i designed it it wouldnt have :\ Jan 28 16:29:37 externalizable Jan 28 16:30:11 sonOfRa: does it handle them automatically? Jan 28 16:30:21 json cannot have cycles... Jan 28 16:30:23 CallumTaylor: ill look into it thx Jan 28 16:30:36 jug6-mbl, you tell it with annotations Jan 28 16:30:39 I don't remember how, though Jan 28 16:30:51 ok Jan 28 16:30:55 the json jackson produces for these graphs isn't strictly valid json Jan 28 16:31:25 rephrase. It's still valid json, but only jackson will understand Jan 28 16:32:33 May just bite the bullet and redesign the object graph and use GSON Jan 28 16:33:06 i got it to serialize with XStream, but its results are huge and it takes for ever. But it doesnt work all the time. Jan 28 16:33:42 Is it just a reference to the parent? Jan 28 16:34:13 no not strictly, its a real mess Jan 28 16:34:46 Are there any norms regarding background services that keeps running even after an application is closed? Like, always give the user an option to turn it off? Any other options? Jan 28 16:36:16 Does it run indefinitely? Does it really need to do that? Jan 28 16:37:56 The plan was to use alarmmanager to launch it once or twice per day, to quicken application startup by keeping data from server up to date. Jan 28 16:38:04 Guys. I can haz design tips? Jan 28 16:38:39 Thorbear: you dont need a service to use the AlarmManager Jan 28 16:38:40 I mean, the internals are fine but it looks like the bastard child of mary shelley and gary busey. Jan 28 16:39:01 Immaterial: screenshot? Jan 28 16:39:09 Sure thing buddy. Jan 28 16:39:31 jug6-mbl: I know, but alarmmanager needs to launch something, in this case a background service Jan 28 16:39:45 Thorbear: IntentService Jan 28 16:39:58 IntentService is still a service Jan 28 16:39:59 Immaterial: show it to friend and ask for criticism Jan 28 16:40:05 But yeah, just offer a setting Jan 28 16:40:33 Man I wish I had friends. Jan 28 16:40:34 http://postimg.org/image/rbezx8y9p/ Jan 28 16:41:00 I had like a week and a half to make everything work, and no time to make it pretty. Jan 28 16:41:28 SimonVT: Alright, thanks Jan 28 16:42:44 Immaterial: get rid of the darkest greens, have columns so the column titles don't overlap eachother Jan 28 16:43:01 Ah. Jan 28 16:43:02 Thanks man. Jan 28 16:43:23 its hard to read the text over the darkest green areas Jan 28 16:43:31 I was thinking about boxing up the tezt. Jan 28 16:43:32 very Jan 28 16:43:37 Drawables. Jan 28 16:43:48 is that large text box absolutely required to be displayed? Jan 28 16:43:56 Sadly yes. Jan 28 16:44:33 and this display size is the intended display size? Jan 28 16:45:02 I could probably make it a hell of a lot smaller and throw it in a scrollview. Jan 28 16:45:04 Should I do that? Jan 28 16:45:16 Depends what its intended for lol Jan 28 16:45:29 Is that background really required? :p Jan 28 16:45:39 xD Jan 28 16:45:47 I KNOW, it's terrible. Jan 28 16:45:59 I am in no way artsy, I normally rely on other people to make it pretty. Jan 28 16:46:49 Just a plain background (e.g. standard Holo.Light background) would already help a lot Jan 28 16:46:55 Make flat graphics and use simple colors, then all you need is to find 2-3 colors that look good together, and use shapes that work Jan 28 16:46:57 Put some headers in there Jan 28 16:47:09 if it was for phones/7" tablets i woudl recommend using something like this https://github.com/romannurik/Android-WizardPager to break up the information. Jan 28 16:47:13 Like Personal information, awesome deals, .. Jan 28 16:47:26 Actually, design's for a 10.1 Jan 28 16:47:45 ok Jan 28 16:47:53 SimonVT, I kinda wanted to add holo textboxes. Jan 28 16:48:17 Ah see, take some hints from WizardPager Jan 28 16:48:29 And do some drawables for the textviews+ checkbox combinations so they have segregated rounded boxes. Jan 28 16:48:32 Headers, lines between items Jan 28 16:49:11 Immaterial: you need a holo ish interface, but more it needs structure, and to get rid of that background Jan 28 16:49:29 Just ditched the background. Jan 28 16:49:31 Lol. Jan 28 16:49:47 The guy who wants it said it was too white, I was like. Jan 28 16:49:56 U wot m8. Jan 28 16:50:20 Put some padding in the wall of text Jan 28 16:50:41 And make it.. uh.. less visible Jan 28 16:50:44 A lighter shade Jan 28 16:50:56 Or I guess I could make it pop up? Jan 28 16:50:58 Like ?android:attr/textColorSecondary or whatever it is Jan 28 16:51:19 Or scrollable. Jan 28 16:51:33 So I'll make the wall smaller, scrollable, and add a white rounded box. Jan 28 16:51:40 To hold everything in. Jan 28 16:52:13 for that size screen i wouldnt go scrollable, you already have a lot of wasted space Jan 28 16:53:01 Ah, there's way too much text to not go scrollable. Jan 28 16:53:21 is there more then what is in the screen shot? Jan 28 16:53:27 Indeed. Jan 28 16:53:44 is it acceptable to put a buttion "Click here to see blah blah"? Jan 28 16:54:11 Probably, but I haven't really asked. Jan 28 16:54:57 depending on how hard it is to find out i would find out. Having that much static text at least from a design stand point is very unappealing Jan 28 16:55:09 IANADer Jan 28 16:55:13 This is true. Jan 28 16:55:50 you can do if text is longer than whatever characters attach a [...] button to see the rest at the end of it Jan 28 16:56:51 Strive for clean lines, that all line up with each other, the mis aligned columns look bad for example. Also make ur layouts take up the full width of the screen, not strictly aligned to one side. Make sure the buttons also are aligned Jan 28 16:59:57 Mmm. Jan 28 17:00:26 I'll make revision, if you're here when I get back, could you comment again? Jan 28 17:00:35 sure Jan 28 17:00:50 also, ninjamock is a great UI mockup tool Jan 28 17:03:21 Yeah? Jan 28 17:04:57 yup Jan 28 17:21:59 jadule is back with a full stack of challenging Qs Jan 28 17:22:23 do i hear some .pops ? Jan 28 17:23:38 ok ok :P:Could not find class 'org.achartengine.model.XYMultipleSeriesDataset', referenced from method graph.AScreen.drawChart Jan 28 17:23:52 it sounds straight forward... but what exactly is this error telling me :> Jan 28 17:24:40 it sounds like something should have been even detected by my editor? Jan 28 17:32:11 Is it possible to animate a single ImageView from one image to another, or do I need to do it from one ImageView to another Jan 28 17:34:58 yiati: setImageResource() will change your image Jan 28 17:35:22 just make an animationlistener for whatever animation you were going to go with and use that Jan 28 17:36:44 burmat: yeah setImageResource() is one of many functions I can use to change the image, I was just wondering about the animating part rather than it jumping straight to being the new image. I guess that will be the AnimationListener Jan 28 17:37:01 what kind of animation? Jan 28 17:38:01 Hey. I am reading about android's "internals", and I've found out that an activity can save its state into the "system process" using those onSave... and onRestore... methods, using those given bundles, right? Jan 28 17:38:21 I have a couple for example a hardcut, and a cardflip Jan 28 17:38:23 What if I open so many activities that there is not enough memory for the system process to keep all that? Jan 28 17:38:34 all of that saved state* Jan 28 17:39:20 yiati: yeah. look into AnimationListener http://developer.android.com/reference/android/view/animation/Animation.AnimationListener.html Jan 28 17:39:47 burmat: hmm okay thanks Jan 28 17:41:08 phao: If you are working with something that big then you should probably be storing it on disk Jan 28 17:41:40 phao: There are size limits to individual Bundles though, something like 500kb Jan 28 17:41:49 yiati, ok Jan 28 17:41:56 This is mostly out of curiosity. Jan 28 17:42:01 yeah Jan 28 17:42:12 So if I actually were opening lots and lots of activities Jan 28 17:42:16 I'd get some out of memory error? Jan 28 17:42:45 unless the activities themselves do this disk saving scheme* Jan 28 17:43:06 I am assuming they'll make use of those bundles, always. (simple case here =D) Jan 28 17:44:17 Btw, I am not really sure if my question was clear enough. Jan 28 17:44:21 Can anyone recommend a pattern for dealing with a situation where I will need to nearly constantly update items in a listview? Something like data binding? Jan 28 17:44:37 phao: I understand just not too sure I've been searching Jan 28 17:45:34 phao: Typically Bundle is used for very small amounts of data and shouldn't be used with large amounts of data so that's probably why this issue isn't answered too well anywhere Jan 28 17:45:57 I see. Jan 28 17:46:03 phao: Theoretically speaking though yeah you could possibly get OOM Jan 28 17:46:06 These devices are just too big, right? Jan 28 17:46:09 I am sorry Jan 28 17:46:18 the memory* on these devices are usually too big for 500kb bundles. Jan 28 17:46:40 Any articles on android design patterns would be helpful Jan 28 17:46:42 you probably can easily get hundreds of those, right? Assuming a worse case situation in which all activities fill up the 500k Jan 28 17:46:53 which doesn't seem to be the rule. In fact the rule seem to be a lot less than that. Jan 28 17:49:51 I don't think memory can ever be too big to fit something smaller than it Jan 28 17:50:06 I started a new project, then it created an icon... now I want make new icon, can I do that? Jan 28 17:50:21 I want some bevel or border or something Jan 28 17:50:38 I have a logo, but I'm shit at make app icon, how I get pretty? Jan 28 17:50:50 I want put the logo in a pretty box or circle Jan 28 17:51:37 yiati, what do you mean? Jan 28 17:51:47 my app have a shit ugly icon Jan 28 17:51:50 i want a pretty icon Jan 28 17:52:01 can I tell Android Studio to make a new icon for me? Jan 28 17:52:02 phao: "the memory* on these devices are usually too big for 500kb" Jan 28 17:52:13 or is there any website where i upload an image, and it make it pretty for me? Jan 28 17:52:22 hehe, that came out wrong. Jan 28 17:52:44 smallfoot-: i think the people who do pretty graphics are called "graphics designers" Jan 28 17:52:49 smallfoot-: try fiverr or something Jan 28 17:52:51 yiati, what I was trying to say is that it seems it'd take too many 100% filled up bundles to cause memory problems. Jan 28 17:52:53 smallfoot-: http://android-ui-utils.googlecode.com/hg/asset-studio/dist/icons-generic.html#source.space.trim=1&source.space.pad=0&size=24&padding=8&color=33b5e5%2C100&name=ic_example Jan 28 17:53:10 yiati, thanks Jan 28 17:53:14 kline, whats fiverr? Jan 28 17:53:27 smallfoot-: http://fiverr.com/ Jan 28 17:53:51 thx Jan 28 17:54:01 $5 fk that lol Jan 28 17:54:12 yiati, specially given that, I imagine, lots of activities (most?) won't fill up that much space in its bundles. Jan 28 17:54:42 phao: Yeah probably not Jan 28 17:56:43 yiati, this made me think that there could be some disk swap space involved... http://stackoverflow.com/questions/10775687/how-to-force-a-paused-process-memory-into-swap Jan 28 17:58:53 phao: Sure I considered that also but given the premise of your question I assumed that we want to know what happens when swap space fills up as well Jan 28 17:59:06 I see. Jan 28 17:59:07 Which would be even more ridiculous Jan 28 17:59:08 lol Jan 28 17:59:11 =D Jan 28 17:59:16 I wasn't considering swap space. Jan 28 17:59:23 Just main memory. Jan 28 17:59:39 if main memory filled up. Jan 28 17:59:54 Throw some corsair dominators in that phone then you're set Jan 28 17:59:58 issue solved Jan 28 18:00:09 64GB Jan 28 18:00:14 All the bundles you want Jan 28 18:00:29 Hehehe. Jan 28 18:00:40 I am asking this mostly out of curiosity. I don't even have an android myself. Jan 28 18:00:58 I am writing an article about process management on android for my OS classes. Jan 28 18:01:31 The explanation we've had about saving an activity state involves receiving this bundle and saving to this "system process". Jan 28 18:01:52 So we (group members) were wondering "what if that fills up?". Jan 28 18:03:40 "Android does not offer swap spaaaaaace for memory, but it does use paging and memory-mapping (mmapping) to manage memory." Jan 28 18:03:44 http://developer.android.com/training/articles/memory.html Jan 28 18:04:06 That article is a good read about memory in Android Jan 28 18:04:31 thanks Jan 28 18:05:35 I haven't read it all, but it seems then that the actual aplication has to do its own saving to the disk and releasing memory. Jan 28 18:07:54 any ideas what I need to tweak in intellij so that S-F1 opens the external docs in the browser for getSupportFragmentManager ? Jan 28 18:08:13 yiati, is there any other similar sites? Jan 28 18:09:13 smallfoot-: For icons? That's the one I use so I don't really know any others Jan 28 18:14:13 Hey guys, I've designed my layout for the s3 using only dp. But testing it on a nexus 4 the height is an issue. Probably to do with the soft keys at the bottom? here's a pic http://oi40.tinypic.com/1zmo9jc.jpg how can I avoid it? Jan 28 18:14:19 yiati, do you know if this "system process", which hands an activity a bundle is the "zygote process"? Jan 28 18:14:33 yiati, yes. I see. Thanks Jan 28 18:14:52 these things seems a lot hard to find... Jan 28 18:17:44 phao: Sounds right to me, but I'm not sure Jan 28 18:17:51 There's always the source code :D Jan 28 18:17:52 https://android.googlesource.com/ Jan 28 18:18:25 =( Jan 28 18:19:43 anyone? Jan 28 18:19:45 Hey you are in an OS class lol Jan 28 18:20:20 yiati, hehehe yeah, but there is A LOT of code in there Jan 28 18:20:25 Yours sounds easy. I had to do every pintOS assignment in a semester and build an OS http://www.scs.stanford.edu/12au-cs140/pintos/pintos.html Jan 28 18:20:31 lol Jan 28 18:20:32 :D Jan 28 18:21:20 Sounds harder. Jan 28 18:21:43 My issue here is mostly time to do this. I got some other things to do too. Unfortunately I cannot focus on this very much Jan 28 18:22:35 Yeah I had to put ~40hours/week to get through my OS class Jan 28 18:22:49 it's not easy but you'll appreciate it after it's over Jan 28 18:23:01 Things are way lighter here. Jan 28 18:23:34 the OS class in here is mostly to see some concepts of process management, memory management, file systems, implementation of certain services of the OS. Jan 28 18:23:42 But all somewhat superficially. Jan 28 18:25:58 Hey guys, I've designed my layout for the s3 using only dp. But testing it on a nexus 4 the height is an issue. Probably to do with the soft keys at the bottom? here's a pic http://oi40.tinypic.com/1zmo9jc.jpg how can I avoid it? Jan 28 18:26:31 could anyone tell me what is needed to add a View object (some graph class extending view) to a Fragment? I cannot get it to work for hours :< addView() on the layout of getActivity() does not work :( Jan 28 18:27:33 yiati, there is also Genode, which is an OS framework http://genode.org/ Jan 28 18:31:44 Hey guys Jan 28 18:32:10 I am opening the my app for custom link like appname:// when user click on it in the browser. Jan 28 18:32:31 If user do not have app that open appname:// then how to fallback to market if app is not installed. Jan 28 18:33:08 yiati, I kind of always wanted to build an OS for myown Jan 28 18:33:12 but never got to it. Jan 28 18:34:35 Just take a small one and work with small features Jan 28 18:34:48 set smaller goals Jan 28 18:35:10 how do I mark my app "designed for tablets" ? Jan 28 18:35:11 I'd do that. My problem is that there is too much I'd like to do. Jan 28 18:35:33 At the same time I'd like to build an OS, I'd like to build some cool RPG isometric-ish game =D like baldur's gate Jan 28 18:35:43 and also would like to build a dbms, and so forht. Jan 28 18:35:49 should I add in the build.gradle compile 'com.android.support:support-v4:13.0.+' and compile 'com.android.support:appcompat-v7:18.0.+', or just one? Jan 28 18:37:56 smallfoot-: you need to have tablet specific layouts at the very least Jan 28 18:37:57 phao: when are yo going to build a time machine? You seem to have everything else covered or on your todo list... Jan 28 18:38:16 smallfoot-: https://developer.android.com/distribute/googleplay/quality/tablet.html#use-extra-space Jan 28 18:38:17 f2prateek, what does that mean? It means I use fragment? Jan 28 18:38:23 thanks Jan 28 18:38:32 rgr, =D Jan 28 18:40:40 no it means yo uconsider the layout more for both types. Fragments are but one component of that which may make it easier. Jan 28 18:41:13 Shouldn't targetSdkVersion always be $LATEST ? Jan 28 18:41:48 rgr, lots of interesting stuff out there. Jan 28 18:42:10 Sometimes it's kind of frustrating that most jobs out ther are about constructing business management software Jan 28 18:42:30 providing a web interface to that a server which does the "heavy lifting" Jan 28 18:42:43 smallfoot-: youve designed and built an app and you dont know how to tag your app via the manifest file? http://developer.android.com/guide/topics/manifest/supports-screens-element.html Jan 28 18:42:53 Hey guys, I've designed my layout for the s3 using only dp. But testing it on a nexus 4 the height is an issue. Probably to do with the soft keys at the bottom? here's a pic http://oi40.tinypic.com/1zmo9jc.jpg how can I avoid it? Jan 28 18:43:38 phao: thats nonsense. Its one section of the industry. How many apps in the appstore are "business apps"? Very few. Jan 28 18:44:11 rgr, I said that because most jobs I see are about that Jan 28 18:44:13 Look around more and try to specialise your skills in the area yo uare interested in. "I would like to build my own OS" is akin to me wanting to turn lead into gold. Jan 28 18:44:19 BUt what you've said makes lots of sense indeed. Jan 28 18:44:21 then you're looking in the wrong places. Jan 28 18:46:37 moin Jan 28 18:46:44 does cwm also backup the efs folder? Jan 28 18:47:03 yiati, are you a college student/ Jan 28 18:47:25 finished last semester Jan 28 18:47:42 rgr, i haven't build it yet.. its barerly working :D Jan 28 18:48:08 smallfoot-, he left Jan 28 18:48:14 yiati, got a job already/ Jan 28 18:48:16 ?* Jan 28 18:48:23 yep Jan 28 18:48:24 CocoStorm: You can't have everything on screen on every device Jan 28 18:48:42 yiati, not to be too intrusive, but what do you do? Jan 28 18:48:43 is the question to difficult? Jan 28 18:48:52 SimonVT, I see, so I should leave it as it is? Jan 28 18:49:02 Yes Jan 28 18:49:05 phao: Android Jan 28 18:49:07 I assume it's scrollable Jan 28 18:49:35 SimonVT, nope, but I guess that's one solutoin Jan 28 18:49:36 *solution Jan 28 18:49:38 Phones can be everywhere form 3" to 6".. They don't all have the same screen real estate Jan 28 18:49:50 mpc87: The question is offtopic, #android-root Jan 28 18:50:01 yiati, I see. I need to get an android device for me. It seems there are lots of cool stuff you can do with it. My mother has and I don't =( hehehhee Jan 28 18:50:11 and I am supposed to be the geek in the family Jan 28 18:51:18 I use my girlfriends phone and my tablet for testing for personal apps, and work has a few S4's and Nexus 5s around Jan 28 18:52:26 jonc-1, heheheheh sneaky =D Jan 28 18:53:03 After originally developing for older android and trying to get things to work between many versions, I hated android, so I got an iphone Jan 28 18:53:29 but not sure what I will get next, don't like the trend of phones being much larger now Jan 28 18:54:18 It allows for some weird things, like using your android as a joystick to play games on a desktop =) I got amazed when I saw a friend of mine doing that. Jan 28 18:58:30 These views that are animated around disappear… They're in a custom view that is in a fragment that is in a container that is in an activity… When i swap the fragment with one and swap the original back in, those animated views disappear Jan 28 18:59:45 Shouldn't targetSdkVersion always be $LATEST ? Jan 28 18:59:58 They usually come back when I minimize and reopen, but they didnt when i recorded the upcoming screencast: Jan 28 19:00:09 yiati, thanks for helping Jan 28 19:00:13 https://mega.co.nz/#!VR8kgTrY!j-pta6Akfi7Ipwb5s86oD5zDUekcycuky147zWPkjEU Jan 28 19:03:23 Anyone watch it? I've dealt with some bugs in animations, but that was from SDK 9 or something lesser. Jan 28 19:04:34 When I switch from one fragment to another, I want it to slide to the left, how do I animate it to it slides to the left, and the new fragment slides in from the right and the current fragment slides out to the left? Jan 28 19:06:02 smallfoot check out fragmentmanager.setCustomAnimations Jan 28 19:06:44 set the enter to be a translation from 100% to 0 and the ext to be 0 to -100% Jan 28 19:06:52 I see Jan 28 19:06:55 what is the default animation? Jan 28 19:07:32 don't believe there is one Jan 28 19:11:05 I see Jan 28 19:14:58 Android Studio + Gradle : getting "[installDebug]: Unable to open debugger port : java.net.SocketException "Socket closed"" when trying to run, what may be the reason? Jan 28 19:15:11 jonc-1, so basically FragmentTransaction.setCustomAnimations(100, 0, 0, 100) Jan 28 19:18:03 hi, ubuntu is hanging at boot. running mac os under virtualbox. fresh install loads fine, after initializing android environment, restart hangs. happened twice with fresh installs. this problem has never occured before. initialized environment same way multiple times. any suggestions? Jan 28 19:20:05 no idea Jan 28 19:20:38 Get windows Jan 28 19:22:43 yes, if you want to work with your system and not on your system, then get windows, yes Jan 28 19:22:49 otherwise take linux Jan 28 19:23:12 strangest thing. the same vb everytime suddenly hangs at boot after initializing. i dl'd source yesterday and wouldnt start today. i initialized today after fresh install and was going to clone just in case but hangs again, obviously the problem Jan 28 19:23:49 Anyone here use calabash? I'm having an issue signing an app on OS X Jan 28 19:23:58 the fresh install was booting fine before initializing. rebooted a few times Jan 28 19:24:57 mac os. ubuntu under virtualbox Jan 28 19:28:58 I'm getting INSTALL_FAILED_CONTAINER_ERROR when installing to my emulator. I've set installLocation to 'auto', but it hasn't helped. Any ideas? Jan 28 19:30:23 Create a new emulator Jan 28 19:30:56 I *just* create this one. Jan 28 19:31:01 But I'll try again Jan 28 19:35:32 SimonVT: That worked. Jan 28 19:35:36 Any idea why? Jan 28 19:36:19 Nope :) Jan 28 19:36:19 There is a SeekBar widget in Android, but is there anything similar for preferences? Jan 28 19:36:32 where is the save folder of installed apk from the google marketplace? Jan 28 19:36:53 where are this files saved in android? Jan 28 19:37:30 hi Jan 28 19:37:44 SimonVT: Well, thanks! Jan 28 19:37:58 what's a good library for parsing urls? like /x/:param, /something/else/:param2 (i need match these patterns and get param, param2 after the matching) Jan 28 19:38:18 Hi guys, what does this error dod ? I generated a Getter for uris (Arraylist) for calling it elsewhere with all its objects and i get this error : Cannot evaluate android.net.Uri$HierachicalUri.toString() android Jan 28 19:38:26 ok, honestly now. are there any dev tools for android that don't suck? I tried android studio and it's totally alpha (hope it will be fine when it's done), eclipse is slow as hell Jan 28 19:38:28 like for routing Jan 28 19:38:50 not to mention the horrible emulator Jan 28 19:38:57 what do you guys use? Jan 28 19:39:21 I used to use Eclipse ADT, but then everyone in here told me it sucks, and to get Android Studio Jan 28 19:39:24 so now I am using Android Studio Jan 28 19:39:32 it's fine for you? Jan 28 19:39:45 Yeah, it's alright Jan 28 19:39:59 It's not great, its not like Visual Studio, but it works Jan 28 19:40:29 The only thing I hate about VS is the keyboard shortcuts are trash Jan 28 19:40:37 no comment toggle Jan 28 19:40:48 I don't believe they have a duplicate line shortcut Jan 28 19:41:04 I think VS have great keyboard shortcuts, but in Eclipse and Android Studio, I am confused, I know no keyboard shortcuts Jan 28 19:41:14 Ctrl+K+C is comment out code Jan 28 19:41:19 in Visual Studio Jan 28 19:41:30 yes and in android studio it is ctrl+/ Jan 28 19:41:34 and that will comment and uncomment Jan 28 19:41:40 I see Jan 28 19:41:41 depending on your selection Jan 28 19:41:49 but VS have shortcut for comment too Jan 28 19:42:03 which I much prefer to having 2 separate shortcuts Jan 28 19:42:05 I don't know if has comment toggle thogh, but there definitly is comment and comment out Jan 28 19:42:14 VS doesn't support toggle Jan 28 19:42:16 which I hate Jan 28 19:42:28 what about the emulator? do you guys use it or do you prefer the physical devise? I like the emu because it's on screen but unfortunately it's slow as hell Jan 28 19:42:28 oh :( Jan 28 19:42:37 but using the device is quite unhandy imho Jan 28 19:42:52 I do everything on real devices Jan 28 19:42:56 corp_, the emulator on ARM image is slow as hell! If you get the x86 image, its just as slow! but if you get Intel HAXM, then run the x86 image, then its pretty fast Jan 28 19:42:57 Physical device, or an x86 based image / emulator (virtual box + android x86) Jan 28 19:43:18 I use Intel HAXM with x86 image Jan 28 19:43:21 but I haven't used an emulator in months, physical device Jan 28 19:43:36 ok, thanks for the hints Jan 28 19:44:03 but if you use Windows 8.1 be sure to get latest Intel HAXM hotfix prerelease, else it blue screens Jan 28 19:44:25 I'm on ubuntu so I hope I will never see any blue screen here Jan 28 19:44:30 anybody running the android x86 emulator in macos 10.9 ? Jan 28 19:44:30 I don't know how to use VirtualBox and android x86 Jan 28 19:44:55 Genymotion.com Jan 28 19:45:00 I've been using Genymotion Jan 28 19:45:11 Genymotion is proprietary software :( Jan 28 19:45:24 fk dat Jan 28 19:45:27 http://www.howtogeek.com/164570/how-to-install-android-in-virtualbox/ Jan 28 19:45:34 thanks Jan 28 19:45:47 I hate it when I have to sign up to get a piece of software Jan 28 19:46:13 wow android in virtualbox Jan 28 19:46:16 that's neat Jan 28 19:46:33 but you can run accelerated x86 emulators from eclipse Jan 28 19:46:50 both in windows and linux Jan 28 19:46:50 corp_, word! I boycott that, I refuse to submit! Jan 28 19:46:54 and mac i guess Jan 28 19:47:46 smallfoot-, yeah Jan 28 19:48:34 who's working on android studio btw? is it google's? Jan 28 19:49:47 yeah Jan 28 19:49:58 Android Studio is a modified version of IntelliJ IDEA by Google Jan 28 19:50:05 IntelliJ IDEA is developed by JetBrains Jan 28 19:50:16 then Google make a modified version of it, with Android branding and SDK tools Jan 28 19:50:22 I see Jan 28 19:50:33 I once used intellij, quite a time ago Jan 28 19:50:38 but not for android stuff Jan 28 19:51:12 Nvidia made an Android plugin for Visual Studio, but they are jerks, it only works with Nvidia Tegra devices, and its only available to Tegra developers who are registered Jan 28 19:52:02 one day we will be free of all corporations Jan 28 19:52:05 damn them Jan 28 19:52:28 ya ya, join us now and share the software, you'll be free hacker, you'll be free ;) Jan 28 19:52:41 yeahhh!! :D Jan 28 19:53:50 jonc-1, that only shows how to install Android in VirtualBox, not how to install/push apps (.apk) to it Jan 28 19:54:00 or connect to it via ADB Jan 28 19:54:58 wtf Jan 28 19:55:13 genymotion stuff needs my login even to use that software? Jan 28 19:55:20 sorry, but that definitely sucks Jan 28 19:55:29 cloud based android emulator, eh? Jan 28 19:55:35 lol Jan 28 19:55:39 fk proprietary software! Jan 28 19:55:44 don't bend over! Jan 28 19:55:56 refuse to sign up, refuse to submit, refuse to bend over! Jan 28 19:56:01 lol Jan 28 19:56:03 only open source can set you free! Jan 28 19:56:29 only the code can set you free! Jan 28 19:56:39 Is there a way to wrap the SeekBar in a preference, and display it on the Settings page (not in a dialog)? Jan 28 19:57:21 :p Jan 28 19:57:22 :o Jan 28 19:57:26 interesting question! Jan 28 19:57:35 open source also forces them from sticking NSA backdoors in there Jan 28 19:57:42 yeah Jan 28 19:57:53 you read lately that NSA use popular mobile apps to spy on people? Jan 28 19:58:05 yes, but I knew that for a long time Jan 28 19:58:12 Edward Snowden says Angry Birds is NSA backdoored Jan 28 19:58:14 assange had mentioned it years ago Jan 28 19:58:16 or something Jan 28 19:58:25 was it in the app itself or did they spy on the backend applications? Jan 28 19:58:40 they try both Jan 28 19:58:56 if they can't bribe they threaten, if those don't work, they remotely hack Jan 28 20:00:14 they paid RSA 10 million dollars to have them use a weak elliptic curve and RSA took the bribe Jan 28 20:01:46 Greetings, this may be slightly off topic but please bear with me :) While developing an app that users log in with their google+ account I want to ensure that their google account has an associated verified mobile phone number Jan 28 20:02:16 if not I want to redirect them to mobile phone verification screen Jan 28 20:02:30 is there a way? Jan 28 20:02:31 do you really need that? Jan 28 20:02:38 I could not find in oauth doc Jan 28 20:02:41 yep Jan 28 20:03:09 I or we want to associate some content with mobile phones Jan 28 20:03:13 of users Jan 28 20:03:20 jerks Jan 28 20:03:30 also your shit wont work with tablets Jan 28 20:03:42 ??? Jan 28 20:03:48 yeah, tablets dont have phone number Jan 28 20:04:02 A galaxy tab does Jan 28 20:04:03 and i would never use some shit app that require me to have phone number Jan 28 20:04:12 also not everyone have google+ Jan 28 20:04:18 I have Google, and I say fuck Google+ Jan 28 20:04:21 nice trolling :) Jan 28 20:04:23 good for you Jan 28 20:04:30 keep the opinion to yourself, because we don't care Jan 28 20:04:38 you guys are googlelovers? Jan 28 20:04:42 who love everything they do? Jan 28 20:04:52 you love google+? you love gettin spied on? you love gettin assfucked? Jan 28 20:04:57 no, but your comments are inappropriate and non-sequitur for the channel Jan 28 20:05:01 offtopic and do not belong Jan 28 20:05:03 so if someone willing to answer, I will be around Jan 28 20:05:03 I see Jan 28 20:05:03 don't care Jan 28 20:05:13 you want to chat about random shit, try #offtopic Jan 28 20:07:38 qbeec: why do you have to have them with a verified phone # ? Jan 28 20:07:54 is anyone der? Jan 28 20:08:32 actually our legal team wants it for "legal purposes" Jan 28 20:08:33 i am working with BLE Android API and wanted to know how to cancel the pending request to the device.. Jan 28 20:08:43 like avoiding child porn etc Jan 28 20:09:05 I see, but its not crucial for the app the function ? Jan 28 20:09:17 * app to function Jan 28 20:09:29 if there happens to be a legal problem we would like to link it Jan 28 20:09:38 hmmm from point of CS yeah Jan 28 20:09:41 l2cap keeps on saying the request is pending.. is anyone aware of how to cancel l2cap pending request.. (BLE Android API) Jan 28 20:09:58 but otherwise, we could not market it Jan 28 20:10:00 :) Jan 28 20:10:15 so I'd say it is necessary Jan 28 20:14:24 how can I specify match_parent in a value? Jan 28 20:14:32 With open source, everyone can market it! Jan 28 20:14:46 And if you're not open source, then why are you on freenode? Go buy commercial payed Android support! Jan 28 20:14:54 Stop leeching of the free software community Jan 28 20:15:42 quite a hardliner, hm? ;) Jan 28 20:16:29 smallfoot-: Settle down Jan 28 20:16:56 yupp Jan 28 20:16:58 I prefer the BSD attitude, where they don't care if you take and close it Jan 28 20:17:06 source or gtfo, never surrender, never retreat, no backin down Jan 28 20:17:11 -1px Jan 28 20:17:12 indeed Jan 28 20:17:35 Well if he wanna close it, then he should get commercial payed support, instead of leeching of the free software community Jan 28 20:17:46 free software - for us, by us! Jan 28 20:18:07 calm down, smallfoot- Jan 28 20:18:09 Noone wants to listen to your preaching Jan 28 20:18:23 Most here does closed source software Jan 28 20:18:30 traitors! Jan 28 20:19:15 freenode is for the free software community, it is not for proprietary developers to get free support, if they want support, there are companies providing commercial support Jan 28 20:19:36 get a job, hippy. Jan 28 20:19:37 why am I a traitor? I code for money, that's how I pay my bills Jan 28 20:19:39 smallfoot-: you're dreaming Jan 28 20:19:56 I do what I like and we make parts of our software open source Jan 28 20:20:07 parts that are not business related Jan 28 20:20:12 that's ok I'd say Jan 28 20:20:32 storkme, I have one Jan 28 20:20:44 I have a question regarding my close source project at work (don't tell smallfoot-).... For preferences, Is there a way to put the slider directly on the page? I've seen several posts about putting it in a dialog box. Jan 28 20:20:44 corp_, yes, that's okay Jan 28 20:20:48 flipping burgers doesn't count small fry. Jan 28 20:20:56 anyone here working on BLE Android API?? Jan 28 20:21:17 smallfoot-, but I'm using open source software to produce mostly closed software Jan 28 20:21:23 storkme: Don't egg him on Jan 28 20:21:34 Be civil, stop preaching, code stuff Jan 28 20:21:37 sorry. Jan 28 20:21:45 corp_, well you're open source as much as possible Jan 28 20:21:56 corp_, if you can open source it, you do it Jan 28 20:22:22 how old are you, smallfoot-? Jan 28 20:22:47 you sound like you need a lot of experience in life to understand things like that Jan 28 20:23:38 corp_, 29 Jan 28 20:23:56 and I work as a software developer Jan 28 20:23:58 ok, well, then you really are quite hard lined ;) Jan 28 20:24:03 yes Jan 28 20:24:13 and i tell my boss, i intend to release this code open source Jan 28 20:24:52 smallfoot-: you can't force others to do the same Jan 28 20:25:20 well if they don't want to open source, then they should pay for commercial support, instead of leeching of the free software community Jan 28 20:25:59 this is freenode, not free-support-for-proprietary-developers-who-are-too-cheap-to-pay-for-support Jan 28 20:26:42 I'm having an issue with gradle, it is not finding artifacts in my local maven repo. is there some docs I can look towards? I just don't know how to debug this issue Jan 28 20:35:26 I'm trying to use "repo" script Jan 28 20:35:36 and download some code from android soruces Jan 28 20:35:54 but I have error Jan 28 20:35:59 error.NoManifestException: /cygdrive/D/Developer/Android/android-accessories/.repo/manifests/.git/HEAD Jan 28 20:38:52 hi , i am using HttpURLConnection as con , with con.getResponseCode() i am getting a response code which is 200 and con.getResponseMessage() i am getting OK , i have echoed some character from PHP page how can i display that with con ? Jan 28 20:39:28 h Jan 28 20:41:13 <|0xD34D|> con.getInputStream() will give you an InputStream which you can read from Jan 28 20:44:53 smallfoot-, put your money where your mouth is, how many free projects have you in your stable Jan 28 20:51:09 |0xD34D|: Thanks mate Jan 28 20:52:09 Can anyone make recommendation about design patterns to use in android apps? MVC, etc Jan 28 21:00:20 ejb: http://parleys.com/play/529cb762e4b039ad2298ca27/chapter0/about Jan 28 21:00:29 Trying to test out the HoloIRC project: https://github.com/tilal6991/HoloIRC.git using Android Studio 0.4.3. Project won't build, throwing the error: A problem occurred configuring project ':HoloIRC'. Jan 28 21:00:36 > Configuration with name 'default' not found. Jan 28 21:00:40 Go nuts :p Jan 28 21:01:34 f2prateek: anything android specific? Jan 28 21:01:57 Which design pattern depends on what your making, but MVC matches up pretty well to how android views/layouts work Jan 28 21:02:06 f2prateek: It seems like you can end up fighting the system if you don't do things the android way Jan 28 21:02:32 Googling around seems to point at a missing build.gradle file somewhere Jan 28 21:02:36 dont bite the hand that feeds you Jan 28 21:03:25 ejb: depends on how experienced you are in android development. Jan 28 21:03:58 ejb: if you're starting out, don't worry about patterns or stick to ones you're familiar with Jan 28 21:04:04 f2prateek: I'm on the cusp of intermediate Jan 28 21:04:13 f2prateek: but I'm familiar with design patterns in general Jan 28 21:05:10 f2prateek: It seems like you run into problems quickly without some decent patterns. For example, I have a ListView that I want to keep in sync with the underlying data. e.g. data binding Jan 28 21:05:25 er, i.e. Jan 28 21:06:12 f2prateek: I went down the path of observing the models and automatically updating the view. But I used java.util.Observable/Observer and they blow. Jan 28 21:06:40 * jug6-mbl needs to try JavaRx Jan 28 21:07:21 ejb: i would recommend you look up the patten when you run into the issue. Jan 28 21:07:51 little planning goes a long way :P Jan 28 21:07:52 f2prateek: what patterns do you use? Jan 28 21:08:10 ejb: I use cursors for lists like that, which need to be synced with the databse Jan 28 21:08:41 f2prateek: I was looking at cursors but I'm hitting an API to get my data Jan 28 21:08:59 f2prateek: I will eventually cache it in a local DB but not yet Jan 28 21:09:36 ejb: well you can just swap the list backing your adapter Jan 28 21:10:19 seems inefficient Jan 28 21:10:55 its not to difficult to create/swap out/modify adapters to accommodate to how you are getting your data Jan 28 21:11:34 jug6-mbl: yes but what if you need your view to reflect a change in one item in your adapter list Jan 28 21:11:50 does it do that automatically? Jan 28 21:11:56 no Jan 28 21:12:26 unless the view is monitoring the object Jan 28 21:12:31 you can do w/e u want Jan 28 21:12:40 How do you achieve that? Jan 28 21:13:04 listeners, callbacks ect Jan 28 21:13:11 heh Jan 28 21:13:28 Are there android constructs for helping with that? Jan 28 21:13:48 LocalBroadcastListener is something that I found in my search Jan 28 21:14:18 no, all of the examples for listviews the rows are pretty static Jan 28 21:15:49 listviews are there views are generally reactive to user input, not data input. So most of the examples will reflect that. Jan 28 21:16:35 it gets a little complicated with dynamic objects for the rows since the rows will go in and out of being in memory/focus what have you Jan 28 21:16:49 do you have an example of what you are expecting to happen? Jan 28 21:17:33 I think notifyDataSetInvalidated/Changed can take more of most cases Jan 28 21:18:00 That's on the adapter, right? Jan 28 21:18:34 jug6-mbl: I have a list of items with an associate distance that will change as the user's location changes. Jan 28 21:18:40 associated* Jan 28 21:18:49 f2prateek: yeah it will Jan 28 21:18:56 it should cause the view to be redrawed Jan 28 21:20:32 f2prateek: using notifyDataSetChanged is a good option. Ideally, I'd like calls to my model's setters to call notifyDataSetChanged, but the model shouldn't be tied to a specific view Jan 28 21:20:38 er, specific adapter Jan 28 21:23:35 ejb: well you could easily register an observer with the model. Model pings the observer and the observer updates the views Jan 28 21:23:40 i would...have a listener/callback attached to each row, that gets reused when not null, that gets set to get the update when the data for that object changes, then updates the view accordingly. Jan 28 21:24:08 f2prateek: That's what I did but I need to move away from java.util* Jan 28 21:24:13 notifyDataSetInvalidated/Changed would require the getView to get called again, which isnt really ideal. Jan 28 21:24:52 the only thing you would need to make sure is you dont allocate a lot of listeners, and that your callback to update the view gets run on the UI thread Jan 28 21:24:54 jug6-mbl: you should be recycling views so shouldn't be an issue abyways Jan 28 21:26:12 recycling views yeah, but not the callbacks. Depending on how the callbacks are coded they could easily not be recycled Jan 28 21:26:15 I'm using a call to getChildAt(idx) to refresh the specific list item view Jan 28 21:26:23 if it's visible Jan 28 21:26:50 wanna make sure that a new one isnt allocated every getView and u have callbacks going to views that are no longer visable/focus/valid Jan 28 21:28:44 that should work fine Jan 28 21:29:47 depending on how you are looking up the views Jan 28 21:40:02 So it seems like an observer pattern isn't horrible but I need a better, more generic interface than what's in java.util. Because this comes down to messaging between the model and the adapter. Jan 28 21:41:36 use an eventbus Jan 28 21:41:42 use a broadcast Jan 28 21:41:47 use a handler Jan 28 21:41:49 take your pick Jan 28 21:42:26 ok, so my animated view "goes offscreen" when its containing fragment is removed and the-added Jan 28 21:42:40 video: https://mega.co.nz/#!VR8kgTrY!j-pta6Akfi7Ipwb5s86oD5zDUekcycuky147zWPkjEU Jan 28 21:47:02 if i want to show some information in a fragment which needs some computation before.. is it best practise to do the computation inside the fragment class? Jan 28 21:49:03 is there a way to link pure java functions/operators api help into intellij eg lookup "instanceof" and similar? Jan 28 21:54:43 <_genuser_> guys, is renaming a project in eclipse really that complicated? I renamed a proj in proj explorer. Jan 28 21:54:46 <_genuser_> but now it won't build. Jan 28 21:54:51 <_genuser_> but it shows no errors. Jan 28 21:55:13 <_genuser_> the down arrow in next to the "play" run button doesn't show the project in the list either. Jan 28 21:56:07 if you right-click the project and do run as… -> android application does it work? Jan 28 21:56:10 can an activity still get results if it has noHistory set? Jan 28 21:57:05 _genuser_: its as bad in intellif. Unbelievingly fraught with danger especially with the gradle configs. Jan 28 21:57:37 <_genuser_> explodes: it's launchign the android emulator. so let's assume it will work. Jan 28 21:57:56 ejb: check out JavaRx Jan 28 21:58:00 <_genuser_> explodes: and now it shows in teh drop down list next to the run button. Jan 28 21:58:25 RxJava? Jan 28 21:58:33 ....maybe Jan 28 21:58:34 yes Jan 28 21:58:35 lol Jan 28 21:58:39 netflix lib Jan 28 21:58:45 yeah Jan 28 21:59:45 <_genuser_> explodes: that worked, thx. :) Jan 28 22:00:01 jug6-mbl: looks heavy. I'll keep that in mind for down the road Jan 28 22:01:27 i havent found an opportunity to use it yet, but im trying to lol Jan 28 22:15:22 whyyyy Jan 28 22:17:39 why what? Jan 28 22:17:57 this Jan 28 22:18:03 video: https://mega.co.nz/#!VR8kgTrY!j-pta6Akfi7Ipwb5s86oD5zDUekcycuky147zWPkjEU Jan 28 22:19:01 question: I am receiving an Intent from a searchview and I want to respond to the Intent in a fragment. How best to achieve this? Handling it in the parent activity is something I'd like to avoid if possible. Jan 28 22:20:26 Why use bluetooth? Does it have higher data transfer than Zigbee or 6lowpan? Or why wnot use there protocols that uses less power? zigbee/6lowpan would be unsuited for file transfers? Jan 28 22:23:14 hello Jan 28 22:23:47 can Intents be sent to a single application directly? Jan 28 22:26:45 XspeedPL: i believe they can; google it tho first Jan 28 22:28:34 explodes "android send intent single application" gave me nothing Jan 28 22:31:09 An http://developer.android.com/reference/android/content/Intent.html can be explicit in order to start a specific component (a specific http://developer.android.com/reference/android/app/Activity.html instance) or implicit in order to start any component that can handle the intended action (such as "capture a photo"). Jan 28 22:31:17 gah links suddenly Jan 28 22:31:49 You generally do so with an explicit intent, which defines the exact class name of the component you want to start. Jan 28 22:32:39 actually this doesn't help, XspeedPL: http://developer.android.com/guide/components/intents-filters.html#ExampleExplicit Jan 28 22:32:41 but its a start. Jan 28 22:32:53 The term they are using is "Explicit Intent" Jan 28 22:36:18 is there a sane way to build a .jar from an android-library gradle project? Jan 28 22:36:19 Ok i'm going to redo this view because it has problems. Jan 28 22:36:22 oh Jan 28 22:37:11 Ok, I'm going to re-create this view because my implementation is having some problems. The view itself is just the three words at the top that slide https://mega.co.nz/#!1Y1izKCI!xELm9oAFsGpzXLseY6CvDwnEABvhq2-bRj3kvFTXpwg What would YOU do to implement this view? :) Jan 28 22:39:22 someone anyone Jan 28 22:39:34 so - Ive no fragment manager jdoc or external help linked in intellij. anyone know how? Jan 28 22:40:31 Hello, all. Anyone here happen to know where the "/init" binary comes from? Jan 28 22:40:41 Sorry, that's "/boot/init" Jan 28 22:40:58 Not the .rc files, but the binary itself. Jan 28 22:41:08 rgr "ANYONE KNOW HOW" is a *terrible* question - i cannot believe that happend Jan 28 22:41:29 you need to know how what Jan 28 22:41:57 I'm building a WebView that is having a CSS overflow problem. It's also occurring in the stock browser. If you have a few minutes, please see the details at http://stackoverflow.com/q/21344015 Jan 28 22:45:45 explodes: I came to ask for some help with someting specific, not to be lectured on what you deem theproper way to ask thanks. Jan 28 22:46:11 sorry Jan 28 22:46:11 but Jan 28 22:46:34 you asked "anyone know how" without explaining what you want to know how to do. Jan 28 22:46:59 after reading it 3 times, i cannot figure out if you want to link to the docs, or learn how to use fragment managers Jan 28 22:47:03 I have no idea what you're talking about. Did my whole Q not print out or what? Jan 28 22:47:43 Ive just rearead it. It could possibly be clearer. However you dont need to be einstein to understand it either. Thanks for your input. Jan 28 22:48:45 I need a app to run a irc bot thats php Jan 28 22:48:56 Is there any? Jan 28 23:03:03 My LoginActivity performs a remote login and gets back a access token (like a hash), which needs to be available from other Activities and Fragments. How do I make it available? Jan 28 23:03:31 Should I save it to Preferences, then read it from preferences from other fragments? Jan 28 23:03:35 or should I use some singleton? Jan 28 23:03:45 or pass it with intents as an Intent.EXTRA? Jan 28 23:04:02 smallfoot-: You can either store in a static variable Jan 28 23:04:15 actually shit Jan 28 23:04:21 all of those ideas are valid options IMO Jan 28 23:04:27 I see Jan 28 23:04:37 Is there any preferred way? Jan 28 23:04:47 I've storing things in static vars, and if they're missing, go back to login Jan 28 23:04:54 I see Jan 28 23:04:59 how do I make a static variable? Jan 28 23:05:06 I think the Intent.EXTRA is probably the most correct way, but idk Jan 28 23:05:15 I see Jan 28 23:05:20 <|0xD34D|> easy to use a shared preference to store the value Jan 28 23:05:34 <|0xD34D|> and maybe one to store the timestamp so you can check if you should login again Jan 28 23:05:38 |0xD34D|, yeah, but then I have to read it all the time, maybe thats I/O Jan 28 23:06:08 so, i have a fragment that shows a ListFragment. Now I want the same fragment to be shown in a dialog.. what's the best approach for this? Jan 28 23:06:08 In some class, maybe BaseAppActivity that all of your Activities are inheriting from, could have protected static String LOGIN_HASH; Jan 28 23:06:27 i have a fragment that is a ListFragment i mean Jan 28 23:08:25 explodes, I see... wont that create a new object everytime a Activity gets initilized, and it will have a unset LOGIN_HASH ? Jan 28 23:47:50 Can I pass Intent.EXTRAS from a Activity to a Fragment? Jan 28 23:48:03 Can a Fragment access variables/data from a Activity? Jan 28 23:49:20 if you expose them correctly Jan 28 23:50:31 Which way is preferred? Jan 28 23:51:22 depends what you are doing, really. if it's repeatable, make an interface and check if the activity implements it Jan 28 23:51:36 then cast and call back :) Jan 28 23:52:49 if you're going activity-> fragment, then you use bundle and pass that on Jan 28 23:59:14 Hi, Im using android studio, and it always creates a fragment when using blank activity, that fragment has a Button, how do I access that button from my activity? Jan 28 23:59:28 you access it in the fragment Jan 28 23:59:58 the activity shouldn't know about the fragment's button Jan 29 00:00:17 okay, makes sense Jan 29 00:03:55 Greetings, i am using async trask with httpget, how do i determin how many bytes of data how downloaded at any given time ? would that be on the InputStream? Jan 29 00:04:04 http://pastie.org/8676963 Just curios, in that snipper, how do I access the placeholderfragment by getSupportmanager? I thought the id was R.id.container but It returns null Jan 29 00:07:12 bankai_, whats a bundle? Jan 29 00:07:55 Zylinx, check the API, I think there is a .contentLength() or .size() or something Jan 29 00:08:43 Bundle is just a set of key value pairs. The keys are limited to strings Jan 29 00:08:51 I see Jan 29 00:08:55 so I can't pass integers? Jan 29 00:09:00 with a bundle? Jan 29 00:09:04 you can Jan 29 00:09:11 smallfoot-, are you refering to getting the contentLength of what i am downloading or what i have downloaded so far, im already getting the content length from the headers. i want to know how far along i am Jan 29 00:09:16 values are limited to primitives, primitive arrays and parcelables Jan 29 00:09:27 Zylinx, ah, I see. I don't know then... Jan 29 00:09:39 I see Jan 29 00:10:00 f2prateek_, cant I pass an Intent.EXTRA when calling a fragment? Jan 29 00:10:05 oh and serializables Jan 29 00:10:24 you can, pass it as an argument to eh fragment Jan 29 00:10:59 Fragment#setArguments Jan 29 00:12:14 use #getArguments inside the fragment to retrive the bundle, and use it the same way you woudl in the activity Jan 29 00:13:31 I see, thanks! Jan 29 00:14:03 hallo Jan 29 00:14:11 i just imported someone's project Jan 29 00:14:14 and i'm getting this error: https://github.com/ProLoser/Veckify/issues/1 Jan 29 00:14:44 is @drawable/ic_button_resume an android asset (it's a media control graphic) or does this sound like something the project dev may have accidentally forgotton to include? Jan 29 00:15:15 can you resource in that repo? Jan 29 00:15:20 *see that resource Jan 29 00:15:59 if not, they forgot it Jan 29 00:19:06 ProLoser, if it's not prefixed with android: it's not an android asset Jan 29 00:19:14 yeah nvm Jan 29 00:19:17 i was importing the wrong project Jan 29 00:19:28 i don't know why but veckify isn't recognizing my rpoject Jan 29 00:19:42 what's the "proper" way to open a project on sdk eclipse? Jan 29 00:19:59 that project should be opened with android studio or intellij Jan 29 00:20:01 not with eclipse Jan 29 00:21:34 so why does the sdk come with eclipse? Jan 29 00:21:44 ADT Jan 29 00:24:00 because they're still in the process of phasing it out Jan 29 00:24:30 at least, that's the feel I get Jan 29 00:25:19 hmm Jan 29 00:25:26 so i imported into intellij Jan 29 00:25:29 installed the android plugins Jan 29 00:25:37 tried to run and added an android run config Jan 29 00:25:48 nothing's happening Jan 29 00:27:29 is it possible to like... nest projects? Jan 29 00:27:41 actually... according to Google, the Eclipse ADT isn't going to die Jan 29 00:28:15 how do i point intellij to my sdk? Jan 29 00:29:22 File>Project Structure Jan 29 00:29:28 subheading "Android SDK" Jan 29 00:30:06 hi, i'm loading 10 different images on the screen each with 10 frames. i am using createBitmap() but this seems to slow the app too much when it is called. is there a more efficient way to do it? Jan 29 00:30:11 module sdk? Jan 29 00:30:29 under "Platform Settings", ProLoser Jan 29 00:30:48 arcode: are these fixed bitmaps that you'll never change, or is it 10 bitmaps downloaded from the server? Jan 29 00:31:23 okay Jan 29 00:31:28 now it wants me to choose the sdk? Jan 29 00:31:34 rager: bitmaps in the /res folder, so they never change Jan 29 00:31:56 imageView.setImageResource(R.drawable.theImage)? Jan 29 00:32:09 nvm Jan 29 00:32:11 hmm Jan 29 00:32:54 rager: can i draw an imageView directly onto a canvas and change it's x and y position? Jan 29 00:33:03 nope Jan 29 00:33:08 you didn't give that bit of context Jan 29 00:33:10 making progress... Jan 29 00:33:18 not sure how to help you on that one, arcode Jan 29 00:33:42 but make sure the bitmaps are being displayed w/o any scaling, at least, if you're trying to keep the phone from straining Jan 29 00:33:43 rager: yes sorry, its for mobs in a 2d game. np thanks anyway Jan 29 00:33:43 http://hastebin.com/bawayudigo Jan 29 00:33:49 this is what happens when i'm trying to run Jan 29 00:34:27 rager: ok i will save the images to the scales i need. thanks :) Jan 29 00:34:28 any ideas Jan 29 00:34:38 here's the source code: https://github.com/ProLoser/Veckify Jan 29 00:34:48 i'm just trying to run the damn thing Jan 29 00:34:58 i reimported the project from the root directory Jan 29 00:35:01 into intellij Jan 29 00:35:10 specified my android sdk (latest, android-19) Jan 29 00:35:20 and specified that as the sdk for this project Jan 29 00:35:59 close project, then click "Check out from Version Control" on the welcome screen Jan 29 00:36:18 AS should configure itself out of the box, tbqh Jan 29 00:36:30 it even comes with the Android SDK packaged with Jan 29 00:36:42 running the gradle import on the github project you showed me... Jan 29 00:37:17 hmm okay Jan 29 00:37:22 doing that now Jan 29 00:37:27 i only use my intellij for 1 project lol Jan 29 00:38:22 at the top level, the 'run' says SpotifyApp Jan 29 00:38:45 select Veckify in the drop-down Jan 29 00:38:53 ah Jan 29 00:39:02 it's asking if i want to make an intellij project Jan 29 00:39:05 should i just skip this part? Jan 29 00:39:11 yeah Jan 29 00:39:24 are you using intellij or android studio? it should default to just managing everything with gradle Jan 29 00:39:39 android studio is mostly just a streamlined intellihj Jan 29 00:39:39 how much memory does the worst android 2.3 phone have? Jan 29 00:39:44 it didn't open the project Jan 29 00:39:45 intellij Jan 29 00:39:57 roughly so i know what to aim for? Jan 29 00:40:15 Why are you using intellij if you don't use it for anything else? Why not use Android Studio? Jan 29 00:40:18 arcode: nexus 1 has 0.5G Jan 29 00:40:56 what is the proper way to do something with the width of a view, i.e. when can you actually get the real size of the view? Jan 29 00:40:58 i'm still freaking getting errors Jan 29 00:41:14 http://hastebin.com/mokoyakiti Jan 29 00:41:20 nick9998: i need the worst, apparently it is HTC Wildfire (2.2.1) with 16MB Jan 29 00:41:23 is it onMeasure? then you call super.onMeasure(…,…) then you get the width via this.getMeasuredWidth() ? Jan 29 00:41:36 i mean HTC Wildfire S (2.3.5) = 20MB Jan 29 00:41:51 ProLoser: Is that the only output you get? And from where? Jan 29 00:42:04 yes, and in intellij Jan 29 00:42:06 that's like 15 floppy disks lol Jan 29 00:42:30 i'm a little confused Jan 29 00:42:32 "in intellij" is a little unspecific, intellij has a bunch of places with text Jan 29 00:43:55 ah Jan 29 00:43:56 make logs Jan 29 00:44:41 Ok, do you have JDK 6 installed? Jan 29 00:46:28 " Barometer driver hangs and kills accellerometer on its way" :( Jan 29 00:46:58 well, i guess i won't be adding the barometer feature :| Jan 29 00:47:26 This fragment should be reused… but it looks like its not, its creating its subviews again when i re-add it Jan 29 00:48:20 Nevermind, you're probably fine with 7 (although I'd suggest updating, u09 is ancient). Go to settings, and under project settings, see Compiler, and Java Compiler, bytecode version should probably be 1.6 Jan 29 00:48:50 ProLoser: But again, why are you trying to use vanilla intellij if you're not using it for anything else? Why not just use Android Studio? Jan 29 00:49:24 explodes: is the fragment being regenerated or just its views? Jan 29 00:50:07 i'm using intellij cuz i already have it installed Jan 29 00:50:13 i use java at my work and we use intellij Jan 29 00:50:19 normally i work on frontend web dev in sublime lol Jan 29 00:50:53 Thorbear: what (free) solution do you recommend i get just to make this as easy as possible? Jan 29 00:50:56 i just want to start hacking Jan 29 00:51:07 Android Studio Jan 29 00:51:19 why does this not come with the sdk? Jan 29 00:51:42 Android Studio comes with the Android SDK Jan 29 00:51:52 i found ADT in the sdk Jan 29 00:51:57 eclipse ADT Jan 29 00:52:06 other way around Jan 29 00:52:10 ? Jan 29 00:52:18 oh Jan 29 00:52:22 i gotcha Jan 29 00:52:23 the adt bundle comes with eclipse w/ the android plugin integrated, and the sdk Jan 29 00:52:23 IntelliJ is a java IDE that has addons to make it work with Android. Android Studio is the next version of IntelliJ, with all the necessary addons preinstalled and configured for you. Jan 29 00:52:25 what's wrong with IJ? works fine for me ... Jan 29 00:52:34 so expalin to me, WHY when i go to their site to download the SDK are they giving me eclipse? Jan 29 00:52:46 because you're clicking the wrong link Jan 29 00:52:50 ProLoser: because you're downloading the adt bundle, not just the sdk Jan 29 00:52:59 also, android studio has the damn android sdk Jan 29 00:53:00 http://developer.android.com/sdk/index.html Jan 29 00:53:05 my name is nick Jan 29 00:53:13 button on the right Jan 29 00:53:19 yeah i get it i get it Jan 29 00:53:27 i'm deleting the old sdk folder and downloading android studio Jan 29 00:53:28 it says "ADT Bundle for [your OS here]" Jan 29 00:53:44 i'm just pressing buttons dude Jan 29 00:53:45 right below it says SDK ONLY Jan 29 00:53:48 you could click the bold link that says "Use an Existing IDE" Jan 29 00:53:49 that's what you want Jan 29 00:54:07 or you could click on "Getting Started with Android Studio" Jan 29 00:54:15 or you know... read further than 3 words Jan 29 00:54:18 okay, that was mean Jan 29 00:54:19 sorry Jan 29 00:54:37 i GOT the sdk for like rooting my device Jan 29 00:54:42 so i wasn't trying to do development Jan 29 00:55:07 Hello ladies and gentlemen Jan 29 00:55:09 Boys and girls Jan 29 00:55:14 Lads and lassies Jan 29 00:55:21 Also, bankai_ nothing is wrong with IJ, but for someone who isn't familiar with it, there is no reason to choose it over Android Studio Jan 29 00:55:27 hello sheman Jan 29 00:55:31 hello Jan 29 00:55:32 Please help me, but making the rest of this app for me, thank you in advance p.s. i have $5 for you Jan 29 00:55:34 ProLoser http://i3.kym-cdn.com/photos/images/original/000/234/765/b7e.jpg Jan 29 00:55:36 wow, this really IS just intellij Jan 29 00:55:36 by making* Jan 29 00:55:37 he said he uses IJ Jan 29 00:55:50 explodes: cool, i will take the 5$ .. Jan 29 00:56:29 yes... it is just intellij. we've been telling you that, too Jan 29 00:56:36 i just mean Jan 29 00:56:37 it's intellij streamlined for android dev Jan 29 00:56:41 doesn't IJ cost money? Jan 29 00:56:44 and based on 13 Jan 29 00:56:47 how is google giving it out for free? Jan 29 00:56:49 intellij has a community edition that's free Jan 29 00:56:54 so this is that? Jan 29 00:56:57 no Jan 29 00:57:00 it's android studio Jan 29 00:57:13 but it's based on the same codebase Jan 29 00:57:13 ProLoser: it's essentialy IJ 13 with 5 extra plugins Jan 29 00:57:14 okay Jan 29 00:57:28 and lets not forget about the android devleopment plugin for emacs Jan 29 00:58:00 oh no, let's please forget about that Jan 29 00:58:01 failed to find android-17 Jan 29 00:58:05 while importing Jan 29 00:58:26 nick9998: got a url? Jan 29 00:58:26 install android-17 in the SDK manager Jan 29 00:58:31 @ ProLoser Jan 29 00:59:00 (On the toolbar, the far-right icon (by-default) with an android and a blue box with a down arrow in it) Jan 29 00:59:23 Is there not an ExpandableListFragment? Jan 29 00:59:32 i can't even OPEN AS Jan 29 00:59:38 *Android Studio Jan 29 00:59:43 i can get to the preferences though Jan 29 00:59:50 is it inside studio? or a separate app? Jan 29 01:00:13 bankai_: https://github.com/remvee/android-mode Jan 29 01:00:43 nick9998: that's disgusting, don't post links like that here Jan 29 01:01:05 lol sorry not for you Jan 29 01:01:52 if you can't get to the sdk manager, then just start a blank project and click on the button from there Jan 29 01:02:10 it's annoying, but you can't actually open the sdk manager from android studio unless there's a project open Jan 29 01:02:26 either that, or track it down inside the android studio directory you unpacked Jan 29 01:02:58 i did that Jan 29 01:03:03 waiting for it to install Jan 29 01:03:37 ok Jan 29 01:06:03 should i choose auto-import Jan 29 01:06:08 on the gradle project modal Jan 29 01:10:29 Im trying to learn how to use findfragmentById(), but I always get a null back, what do I do wrong? http://pastie.org/8677079 Jan 29 01:10:53 ProLoser this is why AS isn't the default link; its a tech preview. there is more hand-holding doc with eclipse Jan 29 01:13:35 okamis_, container is a view, find it with findViewById() Jan 29 01:14:02 morning everyone Jan 29 01:14:16 i fucking hate how popups keep getting covered up Jan 29 01:14:29 hey alex_PP Jan 29 01:14:51 watch out Jan 29 01:14:52 don't lose the popups Jan 29 01:14:59 or you might end up force-quitting the ide Jan 29 01:15:06 ProLoser: what is your intent in building this project? Jan 29 01:15:31 i want to hack on the project Jan 29 01:15:40 it's a very simple app atm that i was thinking about expanding on Jan 29 01:15:48 it's a spotify alarm clock, specify a playlist and set a timer Jan 29 01:16:09 alex_PP: I want to find the placeholderfragment Jan 29 01:16:11 i wanted to adjust things like the showing of notifcations, or seeing if i could get it to use the global alarm notification icon Jan 29 01:17:04 http://cl.ly/image/1O0X2X170G21 Jan 29 01:17:07 now i'm getting this Jan 29 01:17:25 morning g00s Jan 29 01:17:38 okamis_: when you commit a fragment transaction, it's not instant... you may have a bit of a race condition here Jan 29 01:17:44 okamis_, add a tag to the add() call and use that to retreive it again Jan 29 01:17:51 ProLoser go back to eclipse super bundle and follow the docs ;) Jan 29 01:17:56 or, save the reference when you create the framgment Jan 29 01:18:25 seriously, why is this so complicated Jan 29 01:18:40 and if you got AS, why the hell are you using 0.3.2 Jan 29 01:18:55 me? Jan 29 01:18:59 0.3.2? of what? Jan 29 01:19:07 he Jan 29 01:19:13 * g00s headdesk Jan 29 01:19:22 nvm Jan 29 01:19:26 i didn't know what version it was Jan 29 01:19:28 i'm updating now Jan 29 01:19:37 again, i just downloaded whatever was on the google site Jan 29 01:19:48 sounds like a great plan :) Jan 29 01:19:49 Im just curios how the findfragmentById works, am I using the correct id? Jan 29 01:19:56 i like that headdesk is a thing Jan 29 01:21:17 that appears to have fixed it Jan 29 01:21:47 okamis_, http://pastie.org/8677102 Jan 29 01:23:02 alex_PP: Is it convention not to use tags? I want to do things a certain way that is why im insisting, maybe I should let it go and use tags Jan 29 01:24:15 you can't set the id of a fragment except in XML, so if you're creating your fragments in java, then you have to use a tag to find it again Jan 29 01:24:46 there's nothing wrong with tags as far as i'm aware Jan 29 01:24:48 :s Jan 29 01:24:53 hope not anyway Jan 29 01:25:41 thank you, that answer helped alot. Jan 29 01:26:37 okay Jan 29 01:26:43 where are build tools in sdk manager? Jan 29 01:27:05 nvm Jan 29 01:29:04 can someone help me out here, not sure if this is a bug w/ eclipse Jan 29 01:29:17 if i change any xml, and run build all Jan 29 01:29:30 it won't actually deploy to my device unless i make some change in the java Jan 29 01:29:34 like adding one space Jan 29 01:29:53 hephaestus_rg: i think its okay Jan 29 01:30:15 is that what's supposed to happen? Jan 29 01:32:57 DAE get this behavior? Jan 29 01:33:37 hephaestus_rg: what if you're running the app does it kill it and restart the new copy? Jan 29 01:34:50 no it will only kill/restart if i make a change in any java file Jan 29 01:35:12 never happens to me... Jan 29 01:36:11 maybe that's just me then Jan 29 01:36:21 i am stil on eclipse helios Jan 29 01:38:46 unrelated question: is the "up" button in the action bar supposed to behave differently than the back button in the normal bottom navigation? Jan 29 01:39:07 seems like up button causes the previous activity to lose state Jan 29 01:46:24 amazon is coming out with a game console O.o Jan 29 01:46:36 android based, sub $300 Jan 29 01:46:43 * g00s yawns Jan 29 01:48:49 g00s: got any more book recommendations ? Jan 29 01:49:04 bankai_ what topic :) Jan 29 01:49:42 for UI? Jan 29 01:49:46 technology related Jan 29 01:49:56 that narrows it down :| Jan 29 01:49:58 XD Jan 29 01:50:08 i didn't know how specific you wanted Jan 29 01:50:48 i'm reading a short book atm called Microinteractions Jan 29 01:51:13 http://shop.oreilly.com/product/0636920027676.do Jan 29 01:51:54 yeah that'll do, thanks :) Jan 29 01:52:06 :) Jan 29 01:54:14 from the android design stuff "Checkboxes allow the user to select multiple options from a set. Avoid using a single checkbox to turn an option off or on. Instead, use an on/off switch." … but i see far more checkboxes in say Settings, even if the option isn't related to any group Jan 29 01:55:11 digging around in the email app, say Exchange Account, google doesn't use that advice either Jan 29 01:55:21 'Use secure setting' is a checkbox, not a switch Jan 29 01:55:28 I think that's because switch wasn't introduced until later Jan 29 01:55:44 so it's backwards compatible out of the box Jan 29 01:55:53 *not backwards compatible Jan 29 01:56:19 i disagree with that Jan 29 01:56:28 on/off switches are usually ambiguous Jan 29 01:56:32 checkboxes are obvious Jan 29 01:57:03 i'm with hephaestus_rg here Jan 29 01:57:15 i think the on/off switch fetish was just started by apple Jan 29 01:57:16 switch takes up a lot of screen estate Jan 29 01:57:20 so everyone is latching on to it Jan 29 01:57:24 any 'tinyplay' guys in the house, tonight? Jan 29 01:57:32 hate switches, i always have to turn them on and off a few times to decide which is on Jan 29 01:57:36 tinyalsa/tinymix Jan 29 01:58:16 <|0xD34D|> how about tinydancer? Jan 29 01:58:26 Is there a good method for inserting layouts into listviews from the activity? Jan 29 01:58:38 hold me closer, tony danza" Jan 29 01:58:54 can anyones suggest a good ORM for android? Jan 29 01:59:02 i've read about activeandroid Jan 29 01:59:32 hephaestus_rg: what's wrong with sqlite? Jan 29 01:59:55 i don't like writing raw sql, and the ORM saves me the trouble of writing another abstraction Jan 29 02:00:45 also i'm used to orms (rails background) Jan 29 02:02:29 Point Jan 29 02:02:50 I don't know of anything on Android comparable to data mapper, sadly D: Jan 29 02:02:55 data mapper on Ruby is awesome Jan 29 02:03:19 is not... Jan 29 02:04:02 im getting into the docs, and activeandroid doesn't seem to bad Jan 29 02:04:16 it's a very java-eyy version of activerecord Jan 29 02:14:14 hmm. http://www.androidpolice.com/2014/01/28/google-launches-developer-preview-of-chrome-apps-for-android-and-ios-app-submissions-start-immediately/ Jan 29 02:15:50 "These apps don't run inside of a browser" Jan 29 02:15:51 yeah, i was wondering what the point is Jan 29 02:16:40 probably part of Sandar's master plan Jan 29 02:16:49 *Sundar **** ENDING LOGGING AT Wed Jan 29 02:59:58 2014