**** BEGIN LOGGING AT Sun Aug 24 02:59:59 2014 Aug 24 03:00:04 instead of having a scroll listener Aug 24 03:00:08 cwac-endless uses getview Aug 24 03:00:11 i like that way better Aug 24 03:00:59 every adapter uses getView Aug 24 03:01:08 you mean just async the lookups Aug 24 03:01:16 no. Aug 24 03:01:30 this is in the context of endless scrolling Aug 24 03:01:40 https://github.com/thecodepath/android_guides/wiki/Endless-Scrolling-with-AdapterViews Uses a scroll listener Aug 24 03:01:46 https://github.com/commonsguy/cwac-endless/blob/master/endless/src/com/commonsware/cwac/endless/EndlessAdapter.java#L240 uses getview Aug 24 03:02:12 ah, yeah they dont do the same thing Aug 24 03:02:14 :) Aug 24 03:02:27 load more != endless scroll Aug 24 03:03:00 its more of just the method on which they do it Aug 24 03:03:09 getView vs onScroll Aug 24 03:03:17 its pendantic but i like the getView way Aug 24 03:04:21 oh wow look at this grossness: this.category = Category.values()[getArguments().getInt("category")]; Aug 24 03:04:27 where the int is the enums ordinal Aug 24 03:04:47 that sneaked by Aug 24 03:05:26 although enums should be able to put in bundles imo Aug 24 03:05:45 well you can Aug 24 03:05:50 im gonna stop talking now Aug 24 03:09:43 desmin88 maybe RecyclerView makes it deprecated Aug 24 03:09:52 somehow, in some way i'm not sure Aug 24 03:10:09 perhaps Aug 24 03:10:13 interesting thing, I asked 60-75 ppl if they liked material design, 40% could not give a sh*t 10% really did 30% not bothered 20% no Aug 24 03:11:08 i thought holo was fine but whatever. 5 years from now there will be some other asthetic so its probably a fad Aug 24 03:11:21 who exactly were these people? Aug 24 03:12:08 some of my users Aug 24 03:12:16 need a bigger sample size Aug 24 03:12:24 g00s: i think material is nifty but fluff Aug 24 03:12:25 were they unix/linux admins? lol Aug 24 03:13:25 desmin88 well, I've added material design themes now so huh, I dont care… though I changed the way the buttons work Aug 24 03:13:44 if they are on an interface bar, the effect travels beyond the bounds of the button Aug 24 03:13:55 cause it just looks better Aug 24 03:13:56 :) Aug 24 03:14:27 desmin88 seems like a good branding strategy, to have web + native look similar Aug 24 03:14:34 true Aug 24 03:14:40 but i was meh too Aug 24 03:15:20 interesting though, that survey was cascaded of another survey, 150 people, do you know what material design is Aug 24 03:15:21 lol Aug 24 03:15:27 55% did Aug 24 03:16:00 I like my little survey thing, really does help sometimes Aug 24 03:16:17 i watched 3 or 4 videos on it , but still can't describe it. i remember paper and lots of animations Aug 24 03:16:26 and a shadow Aug 24 03:16:29 and a FAB Aug 24 03:16:43 lol Aug 24 03:16:50 :) Aug 24 03:16:55 http://google.com/design/spec Aug 24 03:17:02 see hidden menu on top left Aug 24 03:17:49 woah Aug 24 03:17:52 https://plus.google.com/103847211392162949263/posts/gfiD4M1pMJE Aug 24 03:18:19 https://plus.google.com/+AleksandarTe%C5%A1i%C4%87/posts/76CMELB6iim Aug 24 03:19:56 i'll have to watch the videos again when L is out and things are more baked Aug 24 03:20:13 I like the idea of a floating context sensitive icon though Aug 24 03:20:20 but thats not a google thing :) Aug 24 03:21:13 i was just about to play with RecyclerView but seems its minSdk=L Aug 24 03:21:45 what does it bring to the table then ? Aug 24 03:22:10 i hear good things about it from Napalm :) Aug 24 03:22:19 so i thought i should study it Aug 24 03:22:26 g00s: its not minSdkL Aug 24 03:22:53 g00s: requires support library v20 Aug 24 03:22:58 v4-20 Aug 24 03:23:01 i thought 21 Aug 24 03:23:05 nope Aug 24 03:23:13 support only Aug 24 03:23:20 Napalm whats good about it ? Aug 24 03:23:40 ecyclerview-v7-21.0.0-rc1.jar Aug 24 03:38:26 maybe im just daft but what is so good about recyclerview Aug 24 03:46:20 desmin88: well, lets say, recycling of views Aug 24 03:46:22 :) Aug 24 03:46:39 so its a green alternative Aug 24 03:46:44 you dont say Aug 24 03:46:45 hehe Aug 24 03:47:55 don't use it to recycle anything else but views Aug 24 03:54:29 if you try really hard though Aug 24 03:54:31 you might be able to Aug 24 03:55:56 desmin88: the only ViewGroup/Layout that is fast and memory efficient on android is ListView. RecyclerView brings those features too anything else and gives you the flexability to do anything you like Aug 24 03:56:14 oh Aug 24 03:56:19 well thats neat Aug 24 04:00:17 Napalm if you write a book on RecyclerView tricks (like UICOllectionView book) i'll buy a copy :D Aug 24 04:00:40 might do Aug 24 04:05:28 Napalm made that book Aug 24 04:05:29 ? Aug 24 04:05:57 he said "like" Aug 24 04:06:28 i thought he meant like as in Aug 24 04:06:34 similar to the book you previously wrote Aug 24 04:08:40 desmin88 http://www.amazon.com/dp/B00IHZKDCU Aug 24 04:08:56 Android RecyclerView : The Complete Guide (by Napalm!) Aug 24 04:09:33 of course Aug 24 04:11:29 printed on recycled paper too Aug 24 04:12:06 at least 85% post consumer recycled Aug 24 04:14:49 when I saw ios I smilled and closed the browser ;) Aug 24 04:14:54 *smiled Aug 24 04:15:53 funnily enough Aug 24 04:15:56 i smilled too Aug 24 04:19:17 UICollectionView is iOS :) Aug 24 04:25:24 for some reason im cracking up over smilled Aug 24 04:32:00 Is there a default practice to adapt font sizes on my NavigationDrawer and calendar GridView to the change of device (phone/tablet)? Using sp doesn't really work. Can I set different dimensions and switch them? Aug 24 04:32:21 creitve: you use a dimension resource Aug 24 04:33:04 creitve: and use the normal resource qualifiers so you get a different size on different size screens Aug 24 04:34:36 Napalm, can recycler do both horizontally and vertically at the same time? like a spreadsheet Aug 24 04:34:41 yes Aug 24 04:35:05 recycler gettin better n better Aug 24 04:35:16 Napalm: Thank you, found a page about res.q. Aug 24 04:43:14 Is there a way to tell android its plugged in to AC? I'm dealing with someone else port to a board with no battery. It just reads 0% battery. Aug 24 04:44:08 yeah, BatteryManager.EXTRA_PLUGGED Aug 24 04:44:20 this was googleable in 3 sec Aug 24 04:44:38 sorry, didn't happen across it Aug 24 04:45:06 just wondering Aug 24 04:45:11 how did you not happen across it Aug 24 04:45:45 I was too focused on BATTERY_PLUGGED_AC, and am pretty new to android Aug 24 04:45:49 oh Aug 24 04:45:51 gotcha Aug 24 05:08:17 Guidelines say nav.drawer shouldn't be longer than 320dp, but is it true for tablets also? Aug 24 05:10:02 probably Aug 24 05:10:07 i mean how big does it need to be Aug 24 05:11:20 if it gets too wide, just put a Drawer in your Drawer Aug 24 05:11:52 drawer-ception Aug 24 05:16:58 What I mean is it is kind of a blind spot in their otherwise so scrupulous guidelines. Or I am just too sleepy to see through it. Aug 24 05:17:38 for material its "side nav width = screen width - app bar height" Aug 24 05:18:09 Interesting, thanks. Aug 24 05:18:38 hey guys Aug 24 05:18:44 http://www.google.com/design/spec/layout/structure.html#structure-side-nav-1 Aug 24 05:18:47 On the Nexus 5 emulator that comes with the SDK Aug 24 05:18:58 is there a way to "cover with your palm"? Aug 24 05:19:13 wat Aug 24 05:19:22 We seem to be stuck on the load screen because our emulator doesn't have a screen and we don't know how to get passed the screen asking us to cover it with our palm Aug 24 05:19:57 oh Aug 24 05:20:08 you mean cover the light sensor Aug 24 05:20:10 or whatever Aug 24 05:20:22 cant really do that Aug 24 05:20:39 yeah Aug 24 05:20:43 we seem to be stuck because of it :( Aug 24 05:21:00 stuck on the load screen of what Aug 24 05:24:12 tac Aug 24 05:25:03 when we load up the emulator, it runs some stupid tutorial program Aug 24 05:25:25 asking us to swipe various screens to practice the mechanics the android is capable of, I guess Aug 24 05:25:28 do you have an actual android device Aug 24 05:25:38 It's an emulated Nexus 5 Aug 24 05:25:47 yeah Aug 24 05:25:51 do you have an actual device Aug 24 05:26:42 yeah we do Aug 24 05:27:01 actual devices are always better Aug 24 05:28:07 I'd believe it Aug 24 05:28:21 It's unfortunate we can't get the example program to work on the first try though Aug 24 05:28:36 yeah thats pretty odd Aug 24 05:48:52 I was thinking about making a flashlight app for my moto G, I wondering if anyone had any general advice, I am hoping to set it up to run from the lock screen. Aug 24 05:51:21 just for the sake of learning it or why there isnt any? coz i think the playstore should be flooded with flashlight apps Aug 24 05:51:21 dont forget to drink your ovaltine Aug 24 05:51:43 heh Aug 24 05:52:03 ya there are some good flashlight apps, mostly to learn but also because of features Aug 24 05:52:41 Motorola has one that only uses a few permissions but most of the "free" ones seem to want a lot of permissions, watching network traffic and stuff Aug 24 05:52:55 the Moto one does not have a very good interface. Aug 24 05:53:35 so as an excuse to learn how to add things to the lock screen for example Aug 24 05:53:48 try the one "pure flashlight widget" it has quite minimalistic permissions Aug 24 05:54:02 ah thank you :) Aug 24 05:54:11 and its a widget too Aug 24 05:54:38 does it have to be a widget to appear on the lockscreen? I can research that actually. Aug 24 05:55:12 i guess you can place any widget on lock screen? Aug 24 05:55:27 ok, that makes sense Aug 24 05:55:52 i dont use that though coz with pattern widgets are not available it seems Aug 24 05:56:02 everything I have written so far has been opengl stuff that just takes over the screen so I want to get more android UI experience. Aug 24 05:59:40 thanks for the information :) Aug 24 06:14:41 db.query(TABLE_POSTS, null, "id = ? AND slug = ?", new String[] {String.valueOf(id), slug}, null, null, null); Aug 24 06:14:41 Would that equate to "select * from posts where id = 1 and slug = test" Aug 24 06:32:40 nevermind figured that out Aug 24 06:36:34 thats good because I think I have had to much wine to parse that easily Aug 24 06:42:11 Carbonflux: I liked the default htc flashlight because it had 3 brightness settings , maybe you can make a dial that you can slide up and down for brightness Aug 24 06:43:57 thats a good idea, it looks like there is a list of flash options and params you can get from the camera api, its easier than I thought. Aug 24 06:44:13 the Moto G one is really bright default Aug 24 06:45:28 another good feature, you can have it send text using morse code flashing Aug 24 06:45:49 and receive through the camera Aug 24 06:45:57 haha, thats great Aug 24 06:46:05 I never would have thought of that Aug 24 06:46:46 be a fun thing it have at burning man or something Aug 24 06:48:23 I wonder how they parse the incoming flashes. Aug 24 07:06:46 I'm starting a new project and I'm debating between eclipse and android studio Aug 24 07:07:28 seems like AS is the way to go moving forward Aug 24 07:07:52 if you're just getting started and not already used to eclipse Aug 24 07:08:10 use* Aug 24 07:08:39 i've used eclipse a bunch Aug 24 07:08:56 including for android Aug 24 07:09:08 i just wonder when android studio will take over Aug 24 07:09:44 also, how difficult is it to convert a project from eclipse to AS? Aug 24 07:09:44 I guess it depends on your time window then, if you need to get the app finished quickly or not Aug 24 07:10:03 quick is always good, but I'm not in a huge hurry Aug 24 07:10:13 side project Aug 24 07:10:26 thats something I don't know, I have heard people talk about some kind of important functionality Aug 24 07:10:33 gaaa, can't type tonight, import, I mean Aug 24 07:11:27 i doubt I'll need to use NDK Aug 24 07:11:37 i love that feeling when your app works without a hitch Aug 24 07:11:49 which AFAIK is the main thing android studio still needs to work on Aug 24 07:11:57 in the end AS will be the "official" dev environment, if you have time to make the transition it might be a good idea Aug 24 07:12:19 ah, thats a good qualifier then Aug 24 07:12:37 desmin88, rare and wonderful ;) Aug 24 07:15:29 Personally I take the "BETA" label seriously even thought AS seems to be able to support a full development cycle. I worry about unknown blocking issues emerging late in the process and stuff Aug 24 07:16:01 yeah that makes me apprehensive as well Aug 24 07:16:23 any idea when AS gets released officially? Aug 24 07:16:25 if anything just dont use it for big company projects i suppose Aug 24 07:16:31 but personal stuff, AS all the way Aug 24 07:17:18 I have not heard anything personally about a schedule for AS but I tend to be "out of the loop" normally. Aug 24 07:19:00 another issue might be documentation lag, most of the examples out there will be eclipse for a while, tho that won't effect and experienced dev as much. Aug 24 07:19:14 an* Aug 24 07:24:53 gah Aug 24 07:25:14 this wordpress site im pulling json from is so damn slow Aug 24 07:25:32 that really needs to get fixed Aug 24 07:26:51 server lag rather than bandwidth? Aug 24 07:27:11 no idea Aug 24 07:29:53 i always get super interested in programming right before school starts Aug 24 07:30:14 I had all summer, and *now* I find something to eat up all my free time Aug 24 07:30:16 that sounds like a good thing Aug 24 07:30:25 heh, ah I get it Aug 24 07:31:00 Good morning :) I want to somehow open the power menu from my code, and I read that there is no API for doing that. Any idea where should I start looking in the code in order to find something relevant? Aug 24 07:31:30 well if theres no api Aug 24 07:31:49 you cant do it Aug 24 07:31:53 I have seen power manger apps tho Aug 24 07:32:13 you just want the menu? maybe you just need to create an intent Aug 24 07:32:19 so how do they open it when you press on the button? there mast be a way... Aug 24 07:32:31 yes I want the menu, couldn't find the intent for this Aug 24 07:32:47 *must Aug 24 07:33:11 there is no way to open the power menu from within an app Aug 24 07:33:42 so how can I open it not from an app? Aug 24 07:33:54 press the power button Aug 24 07:33:59 on your device Aug 24 07:34:07 ya, maybe simulation a press Aug 24 07:34:19 you cant do that with a non rooted app Aug 24 07:34:34 lets assume that my phone is rooted Aug 24 07:34:53 youd have to figure that out yourself Aug 24 07:34:57 I'm not sure that it's possible to simulate a press on the power button, but I'll check again Aug 24 07:35:27 I know, I just asked if you can think of a good starting point to investigate that ;) Aug 24 07:35:33 looks like the only way to do it is force a reboot Aug 24 07:35:44 http://stackoverflow.com/questions/9957104/how-can-i-open-power-off-dialog-on-android Aug 24 07:36:14 "If you look at the source code, you'll see it's handled internally (PhoneWindowManager.java and GlobalActions.java). There is no interface whatsoever through the API. In short: Can't be done." Aug 24 07:36:22 if you look at the comments Aug 24 07:36:31 you cant reboot the phone from your app Aug 24 07:36:45 so you would have to alter the android source and make your own build heh Aug 24 07:37:05 or be rooted Aug 24 07:37:49 probably be easier to just have root Aug 24 07:37:53 I assume the reason its this way is security Aug 24 07:38:07 well of course Aug 24 07:38:13 :) Aug 24 07:40:59 again, lets assume that I have root - how can I open this menu? Aug 24 07:41:35 you have to figure that out yourself Aug 24 07:42:28 ok thanks :) Aug 24 07:42:32 you would simulate a power button press, or force a reboot, at least that that is how I would approach it based on what I am reading. Aug 24 07:43:27 yeah, i'll probably try simulating a press Aug 24 07:48:57 man i do love a good total app rewrite Aug 24 07:49:11 I fo. Aug 24 07:49:26 I follow the three rewrite rule Aug 24 07:49:41 lol Aug 24 07:50:32 1) you have no idea what you're doing, 2) who think you know, but you're wrong, 3) you finally have it figure out, but you're out of time Aug 24 07:51:09 that is the damned truth Aug 24 07:51:18 :) Aug 24 07:51:24 ive always been bad at ui;s Aug 24 07:51:30 uis* Aug 24 07:51:36 but atleast this is pretty clean imo http://i.imgur.com/SzvvsDY.jpg Aug 24 07:51:56 there is a 3.5 as well, 3.5) management considers the code a capital asset and won't let you alter it. Aug 24 07:53:05 great paintings Aug 24 07:53:33 def. Aug 24 07:53:35 lol Aug 24 07:56:17 hi, i'm trying to build bdb with the NDK for a C++ Qt application port, but there's almost no documentation Aug 24 07:56:31 is there some way to tell autotools configure to cross-compile with ndk? Aug 24 07:59:19 oh its for Qt? IMO, use the native android tools instead of Qt Aug 24 07:59:28 not really the answer you want to hear, sorry Aug 24 08:00:10 Hi everyone. Someone could be so kind to help me to create this layout?http://goo.gl/tczUc5 I can't do it :) Aug 24 08:00:27 it doesn't really matter that it's for qt Aug 24 08:00:32 i'm just trying to compile the .a file Aug 24 08:00:49 I was not going to say it but I agree, Qt is huge, almost an OS in its own right, tho it can be stripped down, I think its better to use the android tools Aug 24 08:00:58 i would love to Aug 24 08:01:04 but the code is written, and i have to finish this today Aug 24 08:01:33 if it means compiling stuff by hand Aug 24 08:02:02 well compiling certain things with NDK is a pain Aug 24 08:02:24 i remember having to try different compiler versions to build some image processing library Aug 24 08:02:50 unfortunately all I remember about it is that it was a ginormous pain Aug 24 08:04:25 I have memories of nothing but waiting when trying to compile Qt, anymore I just limit the features to a mainstream distro and use the built in Qt, I guess it could be done but its such a long build process and huge footprint it does not seem very "androidish" Aug 24 08:04:46 another reason Qt is tough is because of its custom build tools Aug 24 08:05:02 ya Aug 24 08:05:25 i forget what it's called (moc maybe?), but Qt classes are not normal C++ classes Aug 24 08:05:34 yeah, i know Aug 24 08:05:34 in a way its like treating android as a general form of linux Aug 24 08:05:43 if you think qt is bad you should see this code i'm trying to get running Aug 24 08:06:16 I like Qt for linux stuff, we use it for UI on the luxrender project and it does everything you want Aug 24 08:06:25 sorry, I wish I could be more help. I think you'll probably want to read Qt's docs about this Aug 24 08:06:28 I like it better than winapi etc Aug 24 08:06:35 i'm not using qt to build bdb though Aug 24 08:07:15 I'm not familiar with bdb. Maybe check their docs or find their mailing list Aug 24 08:07:24 yeah, their docs want me to rebuild all of android Aug 24 08:07:34 oh, well that doesn't sound right Aug 24 08:07:35 :/ Aug 24 08:07:55 coding is fun, isn't it? :p Aug 24 08:08:06 heh Aug 24 08:08:31 when it work Aug 24 08:08:43 i'm just gonna throw away their build system and do it from scratch Aug 24 08:09:22 yet, its hard to stop, I have been coding since the early 80s and I keep thinking I will stop it, I always find something new to do tho Aug 24 08:12:23 Hi everyone. Someone could be so kind to help me to create this layout?http://goo.gl/tczUc5 I can't do it :) Aug 24 08:14:14 what do you mean you can't do it? Aug 24 08:14:36 can't you just cut and paste that code? Aug 24 08:18:08 That's mine code. But i doesn't look like the picture I created (link at top) Aug 24 08:18:41 *it Aug 24 08:20:30 I admit thats too much work for me right now, sorry I can't be more helpful Aug 24 08:20:44 its nightime here :) Aug 24 08:20:55 thanks anyway @Carbonflux :) Aug 24 08:21:04 :) Aug 24 08:29:03 Hi everyone. I'm trying to create a layout?http://goo.gl/tczUc5 Someone could help me? :) Aug 24 08:38:55 mcmaur: you should put those inside a listview or gridview Aug 24 08:51:44 Yes @shmooz. The layout listed in the etherpad is the layout of the row. It is already inside a listview Aug 24 09:18:23 Hi everyone. I'm trying to create a layout?http://goo.gl/tczUc5 Someone could help me? :) Aug 24 09:24:26 mcmaur: what seems to be the issue? Aug 24 09:29:11 it doesn't look like the screenshot Aug 24 09:29:20 all image are at the same level Aug 24 09:29:30 everything is at the same level Aug 24 09:31:02 @thepoosh maybe first image 100dp? or is it too much? Aug 24 10:47:55 http://developer.android.com/reference/android/provider/MediaStore.MediaColumns.html#DATA - says it contains the DATA STREAM - I assume that should be the image data in some format like base64 or some such. But what I get is the path of the image on external storage. why? Aug 24 10:57:40 Is't possible to import Android eclipse project into Android Studio ? Aug 24 10:59:28 my application is composed of two project (main project is java, library project java+jni) Aug 24 11:16:53 hi guys, am writting an app that customizes the list view and i have encontered some issue that i have ever encountered but i don't remember how i solved it, the issue is Aug 24 11:17:08 what caused a textView to return null at run time? Aug 24 11:18:09 i have TextView displayName = (TextView) findViewById(R.id.name); in my getView method and when am i call displayName.setText(name); at runtime the textView returns null, Aug 24 11:18:22 how do i clear this up guys, thanks? Aug 24 11:19:46 show your getView Aug 24 11:20:07 are you sure you are calling the right id for your textview in your inflated layout? Aug 24 11:21:16 and in your getView should be calling findViewById on your inflated layout Aug 24 11:22:52 using NDK 9c. Having an issue with mfloat-abi=hard Aug 24 11:23:11 seems some of the libc or other libs are built with soft float Aug 24 11:25:35 anyone? Aug 24 11:25:54 what for? Aug 24 11:26:20 http://developer.android.com/reference/android/provider/MediaStore.MediaColumns.html#DATA - says it contains the DATA STREAM - I assume that should be the image data in some format like base64 or some such. But what I get is the path of the image on external storage. why? Aug 24 11:27:28 hmm, does android come with a korean .ttf font somewhere in the system directories? Aug 24 12:03:10 heyy all X) Aug 24 12:04:06 whats the best way to reach a wide group of people/devices for testing? Aug 24 12:07:33 lacx: payed services like U-Test Aug 24 12:07:55 ok never heard of that thepoosh, a lot of $$? Aug 24 12:08:20 idk, we have a large variety of devices in house Aug 24 12:08:39 yea I have 2 X) Aug 24 12:08:53 S3 n Nexus 5 Aug 24 12:09:06 but obv need loads more coverage Aug 24 12:38:00 I am download the android source code. `repo sync` often failed. Is there a command help me auto retry when download failed? Aug 24 12:47:32 can anyone tell me how to reject a incoming call from my app? Aug 24 13:31:37 hi Aug 24 13:33:04 I am tryinh to do endless list, I read chunks of data from the Web and display items on the list. 50 items per one refresh. What would be best for this task? AsyncTask, AsyncTaskLoader? Aug 24 13:49:27 hi Aug 24 14:11:11 hey guys Aug 24 14:38:27 I am trying to do endless list, I read chunks of data from the Web and display items on the list. 50 items per one refresh. What would be best for this task? AsyncTask, AsyncTaskLoader? Aug 24 14:42:31 hey guys, I need to sent data and query for data in a server from time to time, maybe from week to week and I saw that the solution I should probably use is the SyncAdapter, but the SyncAdapter just seems to be dirt, with a lot of code that does nothing does anyone knows if there is a simpler solution? Aug 24 14:49:02 Giordano alarmManager ? Aug 24 14:51:17 StingRay_: yeah, the alarm manager is probably a best solution. Do you know if I can register the same alarm every time the user initialize the app? Or do I need to keep testing if the alarm is already register? Aug 24 14:51:46 well I would maybe keep data local and register update each time I guess Aug 24 14:51:53 cause that is quite a long time Aug 24 14:52:01 hard to test :) Aug 24 14:52:58 StingRay_: ok, thank you =D Aug 24 14:54:20 should i connect my bot to here? is that allowed? it does very useful/handy job Aug 24 15:02:23 Hey guys, is there a invalidate method for menus created with onCreatePanelMenu. Because invalidateOptionsMenu() only invalidates the menu with the featureId == Window.FEATURE_OPTIONS_PANEL. Aug 24 15:11:40 Ah i found it myself... after searching for 15 minutes :/ Aug 24 15:11:51 Thanks anyway! :) It works with the following command: getWindow().invalidatePanelMenu(WindowUtils.FEATURE_VOICE_COMMANDS); Aug 24 15:12:22 my bot can do nice things here Aug 24 15:12:30 %youtube google i/o Aug 24 15:12:37 http://youtu.be/wtLJPvx7-ys Aug 24 15:13:04 Is't possible to import Android eclipse project into Android Studio ? Aug 24 15:13:05 my application is composed of two project (main project is java, library project java+jni) Aug 24 15:13:52 http://youtu.be/ZBpkvR2-nQo Aug 24 15:14:13 OverCoder feels like spamming Aug 24 15:14:14 http://youtu.be/OGxg58nA1iE Aug 24 15:14:23 oww Aug 24 15:14:23 http://youtu.be/OGxg58nA1iE Aug 24 15:14:25 http://youtu.be/OGxg58nA1iE Aug 24 15:14:34 repeating? Aug 24 15:14:41 no, a bot that does that Aug 24 15:14:46 not needed Aug 24 15:14:47 i know Aug 24 15:14:50 OverCoder: You should make it answer whoever asked it. Aug 24 15:15:00 And we don't youtube here... Aug 24 15:15:14 you can do some math calculations too :P Aug 24 15:15:48 As long as we can't eval code on your machine it's no fun. ^^ Aug 24 15:15:57 y'just don't use youtube function Aug 24 15:16:07 %help Aug 24 15:16:11 idk it's stupid but does something Aug 24 15:16:15 like Aug 24 15:16:17 %square 5 Aug 24 15:16:17 25.0 Aug 24 15:16:25 %squareroot 25 Aug 24 15:16:25 5.0 Aug 24 15:16:29 Ugh. We don't need that. Aug 24 15:16:37 %weather new york Aug 24 15:16:38 22° Aug 24 15:16:42 you'd generally ask the ops before joining a bot like that to a channel... Aug 24 15:16:47 %quit Aug 24 15:16:53 hmm Aug 24 15:16:53 If it would query WolframAlpha, it might have... some coolness, but... Aug 24 15:16:56 so useles.. Aug 24 15:17:02 %fuck Aug 24 15:17:39 OverCoder, it would be useful in #android if it told people to join here regarding app questions Aug 24 15:17:49 s/app/app dev Aug 24 15:18:42 Yup. Not called awesomenessBot then, but if anyone in #android mentions any Class or long method name, as well as other app-dev keywords, the bot pms him with instruction to join this channel and how to register. Aug 24 15:19:23 flan3002, nah,that's too much Aug 24 15:19:32 I usually just say , #android-dev Aug 24 15:19:49 so in the end uselesss bot Aug 24 15:19:56 but, wait sec Aug 24 15:20:12 %talk Aug 24 15:20:14 i Aug 24 15:20:16 And for half of them (exaggerated, maybe), we need to explain them how to register. Of course, we don't have to make it easier than it is... Aug 24 15:20:25 I Aug 24 15:20:42 OverCoder: Please test your bot somewhere else. Aug 24 15:20:50 it works everywhere else Aug 24 15:20:55 OverCoder stop spamming now Aug 24 15:20:57 except freenode Aug 24 15:21:01 nvm.. Aug 24 15:40:08 * ravilov thought the rules and the title of this channel clearly state NO BOTS Aug 24 15:44:18 ravilov the thought only occurred to me after reading your comment but a android docs bot for when people ask questions where the answer is well documented and explained on d.android.com :) Aug 24 16:18:22 I am trying to do endless list, I read chunks of data from the Web and display items on the list. 50 items per one refresh. What would be best for this task? AsyncTask, AsyncTaskLoader? Aug 24 16:18:46 whats the difference ? Aug 24 16:20:10 Loader may be better suited for activity lifetime Aug 24 16:20:51 so that means you would also need a cache system too right ? Aug 24 16:21:07 why is that? Aug 24 16:21:29 as in the load would re-connect and deliver the current/next 50 but what would be on the screen while it completes ? Aug 24 16:21:33 on a resume Aug 24 16:21:54 but anyways, think you are better trying things rather than waiting for answers here Aug 24 16:22:12 either or will do, personally never needed and endless scroll, what data is in there ? Aug 24 16:23:01 a toplist of photos Aug 24 16:23:34 unlimited photos ? whats toplist ? Aug 24 16:31:36 StingRay_ http://www.thesmartset.com/article/article08221401.aspx Aug 24 16:32:03 g00s bit late, I got it today :) Aug 24 16:32:09 this is great; He’d [Dickens] often suggest to guests “Let’s have a walk before dinner,” and then lead them off on a march of a dozen miles or more, Aug 24 16:32:21 returning with the host invigorated and guests on the point of debilitation and collapse. Aug 24 16:32:23 haha Aug 24 16:35:52 this is interesting http://techcrunch.com/2014/08/23/why-are-pcs-up-and-tablets-down/ Aug 24 16:36:07 "For the tablet category to continue to grow, tablets need to move beyond what Chris Dixon calls the “toy phase” and become more like PCs." Aug 24 16:36:19 i think Android going to have a hard time with that Aug 24 16:36:53 yeah, apple less so Aug 24 16:36:55 meanwhile iOS and Windows have the architectural traits to make that shift Aug 24 16:37:02 no, Apple will be easy Aug 24 16:37:19 when ipad was going to be announced I actually thought full version of osx Aug 24 16:37:43 g00s thats what I said, apple less so (android going to have hard time) Aug 24 16:37:52 in Apple's case, its more a vision of Steve than a technical one Aug 24 16:38:06 2 difference use cases (desktop / tablet) Aug 24 16:38:26 they would loose the dumb f*ck market though Aug 24 16:38:38 and thats a big big market for them :) Aug 24 16:38:41 that's a big market share Aug 24 16:38:45 :) Aug 24 16:39:14 if I paint on a canvas like 100 times thats nothing in terms of draw time right ? Aug 24 16:39:26 primitive shape too Aug 24 16:40:16 Depends on what you draw. Aug 24 16:40:46 A Nexus 5 can't draw an image with a matrix transformation at 30fps... Aug 24 16:41:04 just a paint object that has opacity Aug 24 16:41:14 100 times is the max really Aug 24 16:41:21 Why would you do that? Aug 24 16:41:42 well I playing for the 1st time with ways to do soft controlled directional shadows Aug 24 16:42:00 figured in a logic way this would be the easiest for me to code/test Aug 24 16:42:04 flan3002: it most certainly can. I'm getting 60fps with 3 parallax backgrounds and 2 or three animating images going through a matrix transformation from a loaded bitmap on a nexus 4 Aug 24 16:42:48 rgr: Well, then I suppose I did something wrong. It was a simply 1000x1000 image, with transformation and rotation. I asked in this channel, multiple times, but OpenGL was the sole answer. Aug 24 16:43:02 *simple Aug 24 16:43:11 ah, 1000x1000 is a different matter.. :) Aug 24 16:43:46 But considering the 1920x1080 display of the N5, anything smaller than 1000x1000 is a joke... Aug 24 16:45:35 suppose easiest thing is to try it I guess :) Aug 24 16:46:02 well, is very rare in any game you'd be rotating anything that size : normally the game sprites are much smaller. Te bigger issue is the memory usage for that. I keep my looping bgs in a scaled bitmap in memory which is ok but the chars which go through a matrix transform use dynamic memory and then that bastard known as GC kicks in whenver it feels like causing noticeable jitters. Just in the process of caching the transforms. Aug 24 16:55:40 StingRay_, the bot could be made much simpler - as soon as someone joins and says their first line, it could respond with "have you looked it up on d.android.com?" :) Aug 24 16:55:53 I made a (very) short video! Yay! https://plus.google.com/u/0/+MikeWallaceDev/posts/1jhFwjcTtGW Aug 24 16:55:56 lol Aug 24 16:57:03 MikeWallaceDev nice tip, but you need to space the title text better :) Aug 24 16:57:43 also better to record the smallest area that you need so that it's the biggest size it can be for clarity Aug 24 16:57:48 StingRay_: took me 2 seconds to find the tip. about 10 hours to learn how to make the video :D Aug 24 16:57:51 or thats what I have found when doing views Aug 24 16:57:59 why link to a page that links to youtube? why not just link to youtube? Aug 24 16:58:22 because I wanted you to go to the page. Aug 24 16:59:16 control freak :p Aug 24 16:59:16 StingRay_: yeah, I know lot's of whitespace. But it's my first screen cast and I didn't trust the rectangular selection tool Aug 24 17:00:09 ravilov: http://goo.gl/l1KKjA Aug 24 17:00:15 no, you have two options, auto focus mode if the capture tool is worth it's weight it will have this, or simply scale your application window down and do window capture Aug 24 17:00:29 nope Aug 24 17:01:02 StingRay_: well... I could have redone it... but now I'm just sick of it :D Aug 24 17:01:13 kdenlive was giving me mucho problems Aug 24 17:01:15 crashes Aug 24 17:01:21 sound not exporting Aug 24 17:01:28 effects not working Aug 24 17:01:34 crashes Aug 24 17:01:41 did I mention crashes? Aug 24 17:02:29 but it was fun editing this thing and putting the effects in :) Aug 24 17:03:05 crashes are to be expected when using kde and made-for-kde software Aug 24 17:03:31 * ravilov uses recordmydesktop, never failed Aug 24 17:03:48 that's what I used for recording Aug 24 17:04:00 first time though, so I wasn't too sure about it Aug 24 17:04:04 oh wait Aug 24 17:04:06 video editing Aug 24 17:04:12 then most probably cinelerra Aug 24 17:04:20 not perfect and has its quirks, but works for me Aug 24 17:04:48 I think that's what I used 3 years ago when I made some videos. It worked fine. Aug 24 17:05:31 I actually like the way Kdenlive works. If only it did what it's supposed to do... Aug 24 17:05:31 I remember trying kdenlive at some point, along with some other video editors. I was totally underwhelmed with all of them and quickly went back to cinelerra Aug 24 17:07:33 My biggest problem was sound editing. I couldn't fix my sound :( There are some bad clicks and pops Aug 24 17:09:39 xvidcap works well for me. Aug 24 17:09:58 but screencasting under linux is abysmal in general compared to Windows and Mac. So be it. Aug 24 17:13:13 I don't know rgr, I didn't find it that bad. And the price is right :) Aug 24 17:15:08 It is bad. for all the problems you listed. Its got better. like I say I use xvidcap : simple and relatively reliable. But yeah the price is right : but then so is the SW on Windows and Mac which can be had for free too. Aug 24 17:15:52 My beef was Kenlive... RecordMyDesktop and Audicity went well.. Aug 24 17:16:04 Hello, can you help me with httpclient and ssl? Aug 24 17:16:15 I'm looking into Cinelerra now. I believe that's what I used previously and it went well Aug 24 17:25:31 Have to compile it. Blah Aug 24 17:26:25 Hello everyone, is someone here who could help me with a TCP connection I'm trying to build up between my smartphone and my pc? Aug 24 17:29:26 no you don't... Aug 24 17:30:24 Panni, this is not a helpdesk, you can't expect individualized help here, just ask as specific as possible and hope for responses Aug 24 17:33:20 hi guys,i think that in android several views can share the same id!!! i have a listview with several checkboxes, then have all checkbox to check all, how can i get the other checkboxes to perform this action Aug 24 17:34:21 k-joseph maintain a control list Aug 24 17:34:24 k-joseph, you will most probably have to restructure your approach Aug 24 17:34:41 the crudest method would be to walk the view tree and find all instances of CheckBox Aug 24 17:35:01 that would probably be the most wrong method too Aug 24 17:35:10 ravilov :) Aug 24 17:35:59 k-joseph have some way to ident that as a master toggle, anyway you want really… constructor passed id maybe…. then have a list the size of getCount with checked states on Aug 24 17:36:03 k-joseph, and yes, there is actually no guarantee view IDs will be unique within the whole entire view tree Aug 24 17:36:21 then in getView check this list and set accordingly Aug 24 17:36:42 on the master toggle it sets all in that list to true, and calls refresh (notifyDataSetChanged) Aug 24 17:36:52 if many subviews are inflated from the same XML that contains some IDs, then all inflated subviews will have the same IDs Aug 24 17:42:22 StingRay_: ravilov, thanks for the responses, actually the checkbox object within the listview that is displayed several times returns null Aug 24 17:42:58 StingRay_: let me try that Aug 24 17:43:56 not sure what findViewById() returns if there is more than one view with that ID in the tree, quite possible it will return null Aug 24 17:48:11 when i call viewPager.setCurrentItem(1), while i'm on view 0 of the total of 3 views, the ViewPager first starts creating view 3, then proceed to smoothly scroll to the position 1 Aug 24 17:48:15 can i avoid that? Aug 24 17:49:03 creating a view takes time and it makes scrolling not quite smooth Aug 24 17:49:35 there is a cache size or something iirc Aug 24 17:49:52 so it will be created 2 ahead Aug 24 17:50:56 yes Aug 24 17:51:12 but the thing is that it is creating view 3 /while/ scrolling Aug 24 17:51:25 i want it to do that /after/ scrolling Aug 24 17:54:18 this is about what i've got in the log: Aug 24 17:54:20 08-24 20:50:34.149 ...MainPagerAdapter﹕ calling pager.setCurrentItem(1) Aug 24 17:54:22 08-24 20:50:34.149 ...MainPagerAdapter﹕ instantiateItem(..., 2) Aug 24 17:55:03 I would think more about the design of whats on page 3 rather than attempting to control the way the pager works Aug 24 17:55:08 what is taking so long ? Aug 24 17:57:57 well, i tried making it lighter on the ui thread but i'm not sure i can Aug 24 17:59:18 three lines of code in the getView of the listview that's on every view (apart from inflating and all) but that's still sorta slow Aug 24 18:16:07 to bad one can't load fragments in background :( Aug 24 18:17:28 no but those fragments can do background loading Aug 24 18:17:36 on things that are taking the time up Aug 24 18:17:38 :) Aug 24 18:17:40 hi once again, i have tried this http://pastebin.com/rugthEAs and i have not yet been able to check all checkbox in a list view with listView.setItemChecked(i, true); Aug 24 18:18:01 I hardly can, I have all the date ready in the service Aug 24 18:20:23 k-joseph unless you say what is happening, then we cant help Aug 24 18:23:34 StingRay_: i have this http://snag.gy/AEuNF.jpg and when i click select all with that code in the background nothing happens, seems that listView.setItemChecked(i, true); doesn't check checkboxes! Aug 24 18:24:07 k-joseph and where do you set the state of those boxes ? Aug 24 18:24:51 StingRay_: i do that in oncreate method of the activity using http://pastebin.com/rugthEAs Aug 24 18:26:14 setItemChecked <-- is for the inflated view right ? not the checkbox contained within ? Aug 24 18:29:23 StingRay_: so how can i check rather the checkbox within it? Aug 24 18:29:32 in getView Aug 24 18:29:56 and by checking a state list that you can maintain Aug 24 18:31:05 StingRay_: let me try, am thinking that still the checkbox id beiing refering to many objects will return null, any way let me give it a try Aug 24 18:31:19 no you are thinking wrong Aug 24 18:31:23 forget the listVIew Aug 24 18:31:33 just do it per item Aug 24 18:31:36 in getVIew Aug 24 18:31:50 as in is this position checked….then check the checkbox, if not dont Aug 24 18:31:57 or rather set it to unchecked Aug 24 18:31:59 geMyBrainById(R.all.current); Aug 24 18:33:45 monsti: :) Aug 24 18:41:19 btw when I said forget the listView I mean forget attempting to get all id's that may be the same…. you do all you need to on a per position/item basis in getView :) Aug 24 18:59:59 k-joseph: idk how you are doing it, setItemChecked works just fine for me Aug 24 19:00:57 sq: what could be my problem, have you used my code at http://pastebin.com/rugthEAs Aug 24 19:00:59 ? Aug 24 19:01:32 k-joseph: my code https://gist.github.com/anonymous/3a21e73cc4c8745b276a Aug 24 19:03:43 isChecked == true? isChecked == false? Aug 24 19:03:44 lol Aug 24 19:04:08 you don't need equality checks for booleans, that just evaulates to another boolean Aug 24 19:04:15 also Aug 24 19:04:40 who's to say the checkbox will actually get checked at the time of onClick? I wouldn't rely on isChecked Aug 24 19:05:01 on the other hand, not sure how else to get the checked state... Aug 24 19:05:41 http://developer.android.com/reference/android/widget/CompoundButton.OnCheckedChangeListener.html Aug 24 19:05:43 you can post stuff Aug 24 19:05:53 or that haha Aug 24 19:06:26 posting stuff is generally considered an ugly kludge Aug 24 19:07:51 k-joseph, as for booleans, you also don't need double if, it's not as if a boolean can be anything else other than true or false Aug 24 19:09:15 overall, the 'check all / uncheck all' feature just seems too simple and straightforward to cause so much issues Aug 24 19:10:06 hey guys, i'm in a remote service and i need to use PreferenceManager.getDefaultSharedPreferences(this); but i need to set the flag MODE_MULTI_PROCESS ... how can i do it? Aug 24 19:12:02 sq: when do u call checkall? Aug 24 19:12:21 k-joseph: on button click Aug 24 19:12:45 k-joseph, you can set methods to be called in XML too Aug 24 19:12:56 sq: which button, i see none Aug 24 19:13:26 ravilov: that's fine, thanks Aug 24 19:13:50 k-joseph: just a button that has this in onClick Aug 24 19:13:52 hm? Aug 24 19:13:55 there's help now in my bot Aug 24 19:14:01 %help Aug 24 19:14:08 OverCoder, you were asked already to take your bot elsewhere Aug 24 19:14:18 o.o Aug 24 19:14:21 wrong channel Aug 24 19:14:24 omg Aug 24 19:14:44 k-joseph: here, look https://gist.github.com/anonymous/0e191052b651b57b0315 Aug 24 19:14:48 check one check em all Aug 24 19:15:56 sq, does that go for girls too? Aug 24 19:17:39 ravilov: can't think of a funny answer :< Aug 24 19:18:02 lol Aug 24 19:24:39 To be able to update an app without destroying the old database, what do I have to do? Or is everything from the old app wiped on update and this requires an external DB? I want to keep the users highscores when I update the game with new levels... Aug 24 19:25:26 smitzer unless you do it, there will be no wipe Aug 24 19:25:42 smitzer, implement onUpgrade Aug 24 19:26:33 OK, but how does android know what to replace and waht not? images, are they deleted? Android never touches sqlite files? Aug 24 19:27:56 and it is the onUpgrade in the new version of the app that gets called? Aug 24 19:44:19 I think the silence is a hint to read the docs ... Aug 24 19:45:16 smitzer dont know what gdrc was on about, the only onUpgade I know of is for sqlite schema versions Aug 24 19:46:12 stingray: yes but onUpgrade will be called from the new app, not the old one? Aug 24 19:46:22 new Aug 24 19:46:36 onUpgrade will called on new schema version Aug 24 19:46:44 will be Aug 24 19:47:16 smitzer but thats only if you changed the db version number Aug 24 19:47:26 if nothing has changed then nothing will change Aug 24 19:47:27 :) Aug 24 19:47:33 or it will not get triggered Aug 24 19:49:00 im creating a custom view, i wanted to make this code public and add functionality, id like for some of this functionality to be set using xml parameters Aug 24 19:49:10 how can i add a set method to xml? Aug 24 19:49:28 to the xml params of the view, i mean Aug 24 20:04:42 smitzer, if an app is to be upgraded to a newer version, why on earth would anything at all be called from the old (now considered obsolete) version? Aug 24 20:05:23 no, old versions of apps don't get to do some sort of "cleanup" or anything, the new version is supposed to be smart enough to do it for them Aug 24 20:05:42 ravilov: because it is calle don upDate not onInstall. But yeah i get it Aug 24 20:06:01 * StingRay_ needs to learn some maths Aug 24 20:06:05 but other files that comes with the app like images, are they not deleted either? Aug 24 20:06:07 :) Aug 24 20:06:47 smitzer, yes, the transition to a newer version is not an install, it's an update Aug 24 20:07:23 smitzer, very little is done for you, you should get ready to do most work yourself Aug 24 20:17:34 I'm getting some weird things going on with SwipeRefreshLayout Aug 24 20:18:21 I have it as part of a fragment, and after I pull it down to refresh, occassionally Ill see the fragment, unrefreshed Aug 24 20:18:28 'behind' the swiperefreshlayout Aug 24 20:18:51 Pulling down clears the list, but if i keep pulling down enough, ill see the uncleared list behind the layout Aug 24 20:19:30 <_emmanuel_> are you adding the Fragment in onCreate()? Aug 24 20:20:22 <_emmanuel_> have you posted a SO question? Aug 24 20:20:27 yes Aug 24 20:20:30 and no ive not Aug 24 20:20:45 I bet you double create the fragment onCreate Aug 24 20:20:52 due to rotation Aug 24 20:21:20 i dont rotate my phone when this occurs Aug 24 20:21:39 bet lost : Aug 24 20:21:42 :( Aug 24 20:21:48 and i manage rotation Aug 24 20:23:31 <_emmanuel_> is there any way you are adding the Fragment twice via the transaction? Aug 24 20:23:49 <_emmanuel_> you should post a question in SO so we can better help Aug 24 20:23:56 figured it out Aug 24 20:24:51 <_emmanuel_> what was it Aug 24 20:24:52 <_emmanuel_> ? Aug 24 20:25:18 ravilov: ok thanks Aug 24 20:25:31 flip flopped if statement Aug 24 20:25:39 <_emmanuel_> cool Aug 24 20:27:43 ls Aug 24 20:27:59 ls: .: Invalid path Aug 24 20:53:04 the right way to name XML files/elements? Aug 24 20:54:06 ? Aug 24 20:55:19 for example should i name an XML color ButtonPressed or Buttonpressed, or ..etc. Aug 24 20:55:57 OverCoder, think you're over thinking Aug 24 20:56:06 maybe Aug 24 20:56:09 ask whoever is in charge of the project Aug 24 20:56:11 ;) Aug 24 20:56:18 i always over do thing Aug 24 20:56:23 s Aug 24 20:56:33 Yes there is. CHeck out the Android dev docs and the SDK. Also one google away : http://stackoverflow.com/questions/7165582/are-there-conventions-on-how-to-name-resources Aug 24 20:56:53 Thanks, rgr Aug 24 20:58:25 Is there a better way to take things like "’" and make it an apostrophe other than using the html clas Aug 24 21:13:19 why by all thats holy does 9patchresizer create drawable-*** dirs in the directory from which you dropped the source image? Aug 24 21:13:33 its resizing Aug 24 21:13:51 Yes I know what it does. My comment is about where it creates the drawable directories. Aug 24 21:13:55 * StingRay_ just uses photoshop Aug 24 21:14:40 Thats a point I must see if there's a Gimp script to export to all the drawable directories. Aug 24 21:14:51 If not set myself a small project to write one. Aug 24 21:17:00 hmm overheads to using negative margins that are beyond the screen bounds ? Aug 24 21:17:25 oh balls to it, will just scale inside the canvas instead Aug 24 21:17:42 oh waint, no I wont Aug 24 21:42:38 hey im trying to get a rooted nook simple touch to show up on ADB but cant. usb debugging over wifi works. anyone have any suggestions? Aug 24 21:42:50 i mean wireless adb works* Aug 24 21:42:57 and also usb debugging is turned on in settings Aug 24 21:43:16 not showing up on adb devices but its showing up on lsusb Aug 24 21:51:54 in android studio, can i not launch on emulator and device at the same time? like in eclipse there is "launch on all active emulators and devices" Aug 24 22:04:57 * rgr cant seem to post from #irc for android Aug 24 22:12:17 how can i apply this http://pastebin.com/SGsrxRKL style to a button Aug 24 22:12:46 it's in drawables folder Aug 24 22:13:14 set it as a background Aug 24 22:13:50 android:background="@drawable/button_layout" Aug 24 22:13:53 that way? Aug 24 22:14:13 yeah Aug 24 22:14:16 it crashes.. Aug 24 22:14:24 let me inspect the logcat Aug 24 22:14:24 neat Aug 24 22:15:26 "it crashes" is not a brilliant thing for a developer to say… thats more a user :) Aug 24 22:15:42 ffs this wordpress json plugin is driving me insane Aug 24 22:15:54 and nobody on the wordpress irc knows Aug 24 22:16:24 http://www.example.org/api/get_posts/?post__in=7751,20721 gives me this bullshit http://pastie.org/9499675 Aug 24 22:16:33 i didn't able to understand the error Aug 24 22:16:37 http://pastebin.com/L4W4V3VF Logcat Aug 24 22:17:14 InflateException Aug 24 22:18:01 OverCoder you should read down the trace Aug 24 22:18:01 Caused by: android.content.res.Resources$NotFoundException: File res/drawable-xxhdpi/button_layout.xml from drawable Aug 24 22:18:12 not just the 1st line or so :) Aug 24 22:18:19 argh Aug 24 22:18:38 o Aug 24 22:18:42 didn't see that Aug 24 22:18:49 but it exists anyway? Aug 24 22:19:11 that a question ? Aug 24 22:19:17 nope Aug 24 22:19:18 lol Aug 24 22:19:24 the question mark is a typo Aug 24 22:19:26 :P Aug 24 22:21:41 * OverCoder shrugs Aug 24 22:22:33 is that drawable xml dimension specific ? Aug 24 22:22:47 or is it adaptive to all, as in -nodpi Aug 24 22:24:08 maybe Project -> Clean will work Aug 24 22:24:37 fixed my problem of nook simple touch not showing up over usb: http://forum.xda-developers.com/showthread.php?t=2335799 Aug 24 22:29:44 t Aug 24 22:29:50 StingRay_: sorry i just noticed your message, i put the xml in xxhdpi Aug 24 22:29:56 should i put in all? Aug 24 22:30:02 no Aug 24 22:30:27 put it in your drawable folder Aug 24 22:30:30 let android do the work. Aug 24 22:30:42 the one without any dashes Aug 24 22:31:03 hmm, like buttonlayout ? Aug 24 22:31:06 hey shouldn't need to. android can downscale Aug 24 22:32:01 someone on stackoverflow uses the same method as mine, it works i think Aug 24 22:34:39 OverCoder you still have not read the excption Aug 24 22:34:41 ooops Aug 24 22:34:45 exception * Aug 24 22:34:51 all info there Aug 24 22:35:10 I just illustrated you not reading it, I didn't explain all of it, or read all of it Aug 24 22:35:14 but have now, and all is there Aug 24 22:35:19 i Aug 24 22:35:32 I'm* trying to read it, buy i'm so noob Aug 24 22:35:39 but* Aug 24 22:35:42 Caused by: org.xmlpull.v1.XmlPullParserException: Binary XML file line #4: tag requires a 'drawable' attribute or child tag defining a drawable Aug 24 22:35:52 the parser has the issue with that file Aug 24 22:35:57 how could i miss that :o Aug 24 22:35:58 and tells you why Aug 24 22:36:15 but i don't want to use drawable? Aug 24 22:36:21 what should i do? Aug 24 22:36:40 a stateListDrawable which that xml creates uses drawables Aug 24 22:36:49 hence the stateList"drawable" bit Aug 24 22:37:14 hmmm, if i used a transparent drawable with background, will i get what i want? Aug 24 22:37:26 how do I know what you want ? Aug 24 22:37:35 just read up on what drawables are Aug 24 22:37:39 and the different types Aug 24 22:37:53 hmm, k thanks, will see that Aug 24 22:52:02 Anyone have some input how to clean this up? http://pastie.org/9499744 Aug 24 22:52:36 I don't like all this nesting but I can't think of a better way since its all in a scroll view Aug 24 22:54:18 desmin88 looks fine Aug 24 22:54:28 BUT THE NESTING Aug 24 22:55:11 a single relative layout is not really going to gain you much if any performance over 3 depth nesting Aug 24 22:55:17 or that would be my guess Aug 24 22:55:23 could even be the opposite Aug 24 22:55:31 i know Aug 24 22:55:37 i just dont like it Aug 24 22:58:13 do something else then Aug 24 22:58:14 :) Aug 24 22:58:43 perhaps Aug 24 22:58:47 its already a simple view though Aug 24 22:59:29 desmin88: its really bad to have a WebView with wrap_content in a ScrollView Aug 24 22:59:49 desmin88: it means the entire WebView is rendered, which has a large memory cost Aug 24 23:00:05 its a design problem im having Aug 24 23:00:08 desmin88: you'd be better off injecting your heading and icons into the html page and just having a WebView Aug 24 23:00:26 desmin88: this means your layout now becomes just a WebView Aug 24 23:00:42 honestly not a bad idea Aug 24 23:01:37 however theres a reason the heading is a framelayout, its either an imageview or a youtubeplayer Aug 24 23:01:56 im using webview for the wrong reasons here Aug 24 23:02:27 but it does a lot of the work that i dont want to Aug 24 23:04:28 What if i just have it match parent Aug 24 23:05:12 just remove the ScrollView then Aug 24 23:07:02 honestly i need some sort of textview solution Aug 24 23:07:15 my 'html' is just just formatting tags and possibly an image Aug 24 23:07:50 can use Spannables Aug 24 23:08:06 yeah ive used a textview + html.fromhtml before Aug 24 23:08:09 but it doesnt load images Aug 24 23:09:04 i really hate working with unknown html Aug 24 23:09:37 no look at spannables Aug 24 23:10:20 i know what spannables are Aug 24 23:11:31 and what's wrong with em for formatting textview text Aug 24 23:12:03 its html Aug 24 23:12:41 uh, you don't use html Aug 24 23:12:51 in this case i am using html Aug 24 23:13:06 oh thought you were saying spannables was xml Aug 24 23:13:25 html* Aug 24 23:13:26 no im saying what im trying to display on the screen is html Aug 24 23:13:54 html you remotely get, or html your app creates? Aug 24 23:14:04 i get it remotely from wordpress Aug 24 23:14:09 ok Aug 24 23:14:29 i'd have to see an example output to give any other suggestions :) Aug 24 23:14:35 sure. Aug 24 23:17:16 http://pastebin.com/HZ0caz2c Aug 24 23:17:36 it may contain images or a youtube embed or links Aug 24 23:18:33 i usually scraped for the youtube embed, removed it, then put a youtubeplayer in the framelayout Aug 24 23:19:57 such is life when dealing with annoying wordpress html Aug 24 23:20:10 this library looks promising: https://github.com/dschuermann/html-textview Aug 24 23:24:26 if you are already extracting the links, does it contain images as links too? if so seems you should be able to parse that rather easily and display in textview Aug 24 23:24:46 i dont extract the links Aug 24 23:25:02 i do extract youtube video id then remove the embed Aug 25 01:43:24 Anyone who uses retrofit know how i can do this? http://www.example.org/api/core/get_posts/?post__in[]=7742&post__in[]=20715 Aug 25 01:45:47 desmin88 your links always lead me to some holding thing Aug 25 01:45:56 never to what I assume you want to show :) Aug 25 01:46:08 Im talking about the rest part Aug 25 01:46:13 "api/core/get_posts/?post__in[]=7742&post__in[]=20715" Aug 25 01:46:40 Would getPosts(@Query("post__in") int[] posts, Callback callback) @GET("/api/core/get_posts") work? Aug 25 01:47:02 oh now I get ya Aug 25 01:47:12 @Query("post__in[]") Aug 25 01:47:14 dunno I wrote my own interface to my web/server Aug 25 01:47:37 JakeWharton: thanks! Aug 25 01:48:20 how do I respond to when an EditText is finished being edited? (indicated by clicking the action button on the keyboard) Aug 25 01:48:45 move to next item and collapse kb ? Aug 25 01:48:56 if no kb is needed on next item Aug 25 01:49:08 or that would be my guess Aug 25 01:49:30 There's a KeyEvent.ACTION_DONE you can grab Aug 25 01:50:24 JakeWharton are you not responsible for setting the action in the input though, or is that the default ? Aug 25 01:50:50 You have to set actionDone in imeOptions Aug 25 01:50:59 Or whatever action you want Aug 25 01:52:14 hm, just no luck with that JakeWharton =\ Aug 25 01:52:51 I get the actionId zero in the callback (onEditorAction) **** ENDING LOGGING AT Mon Aug 25 02:59:58 2014