**** BEGIN LOGGING AT Sat Jan 04 02:59:58 2014 Jan 04 03:12:39 Mattx: is the media yours? Jan 04 03:15:32 no, that's the problem Jan 04 03:50:29 Anyone in here Jan 04 03:50:39 I am trying to skin my options menu Jan 04 03:50:54 but i can't figure out how i'm supposed to go about it Jan 04 03:51:03 i want it to look something like this Jan 04 03:51:04 http://d3cuwgf533ybcw.cloudfront.net/wp-content/uploads/Solid-Explorer-Main-file-menu.png Jan 04 04:25:15 can anyone help me out Jan 04 04:25:27 how do i skin the options menu? Jan 04 05:04:54 Question. I'm making a custom widget and lets say I want one format of an attribute to be a Bitmap.config can I do that? Jan 04 05:06:17 I can probably do an altenrative Jan 04 05:06:19 I'll see what I can do Jan 04 05:39:56 I generated a theme with action bar style generator Jan 04 05:40:05 now i have a gaping hole in my layout Jan 04 05:40:20 space for tabs and i can't seem to get rid of it Jan 04 05:45:05 in this image, is the icon with the 4 lines on the dropdown standard? Jan 04 05:45:06 http://4.bp.blogspot.com/-pSrGmu1ZGaI/TaXdUL8MXXI/AAAAAAAAAVk/hbe_m-1QIf8/s1600/I4.png Jan 04 05:53:29 we got any glass GDK users in here? Jan 04 05:54:07 I wrote a little app for multifactor authentication, https://github.com/grep-awesome/GlassMFA. It's in its early stages, but if anyone wants to play it's there. Jan 04 05:55:08 i want glass... Jan 04 05:55:13 but i'm poor Jan 04 05:56:28 well I only paid for half of mine, but it is quite a price to pay Jan 04 05:57:11 grep_awesome what is glass? Jan 04 05:57:39 zquad: http://www.google.com/glass/start/ Jan 04 05:57:39 why is it possible to create a getter for a varriable in java before that variable is declared? .net would go nuts Jan 04 05:57:54 oh glass lol Jan 04 05:58:46 zquad: ha, yeah I was little thrown to get that question in the android irc channel Jan 04 05:59:05 bkboggy: getters are just methods Jan 04 05:59:22 anyone know the name of that last icon? http://4.bp.blogspot.com/-pSrGmu1ZGaI/TaXdUL8MXXI/AAAAAAAAAVk/hbe_m-1QIf8/s1600/I4.png left most icon with 5 lines? I am looking for that icon for about an hour now Jan 04 05:59:24 right, but why is a method able to use variable before it's declared? Jan 04 05:59:45 that shouldn't work... Jan 04 06:00:12 ie someMethod() { int numVar = otherVar; } then a few lines down int otherVar = 3; Jan 04 06:00:23 yeah, that's what's driving me nuts Jan 04 06:00:28 it works Jan 04 06:00:30 i don't get it Jan 04 06:01:30 where is the method called? Jan 04 06:01:45 what is the issue bkboggy Jan 04 06:01:46 let me give you a pastebin, sec Jan 04 06:02:18 this is within a class: http://pastebin.com/LjGegeSD Jan 04 06:02:20 why does this work Jan 04 06:02:42 i am able to assign to those variables in those methods before they're declared Jan 04 06:03:03 C++ would make hell freeze over Jan 04 06:03:20 no one can help me with this icon? Jan 04 06:03:35 Well java is made with a lot of duct tape and super glue... Jan 04 06:03:56 so magic can happen Jan 04 06:04:25 zquad, https://android.googlesource.com/platform/frameworks/base/+/master/core/res/res/drawable-hdpi/ Jan 04 06:04:27 has all the icons Jan 04 06:05:14 right, i don't believe in any magic except magic strings, but i want to know why that works... is it a compile time thing Jan 04 06:05:27 bkboggy thanks, Jan 04 06:05:30 what line? Jan 04 06:05:38 what line what Jan 04 06:05:54 in your pastebin, where do I see the code specifically? Jan 04 06:06:04 oh, the entire thing Jan 04 06:06:06 there are 3 methods Jan 04 06:06:09 and 3 variables under Jan 04 06:06:31 i'm just trying to wrap my head around why i can declare varaibles after their use Jan 04 06:06:32 I think at compile time methods aren't actually visited until they are called Jan 04 06:06:49 it's been a few years since i've taken a java class... i remember there being a reason, just don't remember why Jan 04 06:07:10 bkboggy I dont see any issue Jan 04 06:07:19 all looks fine to me Jan 04 06:07:21 well, every other language i've used will throw an error Jan 04 06:07:30 if you use a variable before its declaration Jan 04 06:07:45 class member in java do not need to be in order Jan 04 06:07:45 so, it's not that there is an error, i want to know why java allows that Jan 04 06:07:48 as in, how it works Jan 04 06:08:04 the interpreter of the ide and the compile will allocate them first Jan 04 06:08:29 so if it encouters a method, it'll search through the entire code to find it? Jan 04 06:08:37 yes Jan 04 06:08:37 find variable used* Jan 04 06:08:40 hmm, k Jan 04 06:09:01 just like how any other language handles global variables Jan 04 06:09:16 class variables are global to methods Jan 04 06:09:42 hmm Jan 04 06:09:54 I should learn how java works Jan 04 06:10:07 yeah... java... i wasn't fond of it when i used it Jan 04 06:10:08 lol Jan 04 06:10:16 this is not related to java though, most other languages including php works like that Jan 04 06:10:24 but it's better for android development, eventhough i can do it with c# Jan 04 06:10:25 which i love Jan 04 06:10:44 well, C, C#, C++ are the ones I'm used to and... yeah, no bueno there Jan 04 06:10:47 bkboggy: i'm on the opposite end of the coin... Jan 04 06:10:48 it'll crach and burn Jan 04 06:10:55 crash* Jan 04 06:10:59 I don't like C# so much.. Jan 04 06:11:04 oh Jan 04 06:11:34 i like C though Jan 04 06:11:51 im partial to c# Jan 04 06:11:56 python is my favorite, to be honest, but the whole thing about compiling on the go... not so good for large-scale programs (look at Eve) Jan 04 06:13:14 python is a mixed demon for me... Jan 04 06:13:23 It feels like a deck of cards Jan 04 06:13:46 It's all fun and games until your pyramid comes crashing down Jan 04 06:14:03 zquad, would you happen to know where i can find some official information on that whole compile-time variable distribution, i've beeng googling for an hour and can't find anything Jan 04 06:14:23 mmmmmmm Jan 04 06:14:32 I kinda learn that in computer science class Jan 04 06:14:48 DarkSlay3r, yeah... it sucks when you don't find out that something is wrong with your program until deep down into it, whereas with other languages it would be an obviouse compile-time error Jan 04 06:14:55 I would pick up a computer science 1 book or some tutorial like that Jan 04 06:15:02 zquad, same here, but it's been a few years, so i want to find some solid info... ;/ Jan 04 06:15:19 haaaa Jan 04 06:15:22 you made me think Jan 04 06:15:29 i think i still have the book somewhere in the garage Jan 04 06:15:29 bkboggy: get one of those java certification books or training vids Jan 04 06:15:40 I remember reading related content Jan 04 06:16:00 bingo, it was on the shelf, starting out with java early objects fourth edition Jan 04 06:16:02 time to read Jan 04 06:16:03 lol Jan 04 06:16:20 There are lots of unintuitive quirks like that in Java Jan 04 06:16:57 Some of them can be safely ignored but the others make you want to chew a raw cat... Jan 04 06:16:59 well, i threw in the towel with java when i was trying to design a personnel management application for my office and my UI was going out-of-whack because of the way manager is setup Jan 04 06:17:24 bkboggy: If it's simple enough i just use eclipse SWT Jan 04 06:17:37 C# + WPF and a weekend is all i need these days Jan 04 06:17:57 but WPF can get frustrating at times too Jan 04 06:17:58 lol Jan 04 06:18:03 that is the one thing i envy about C# folk Jan 04 06:18:06 it needs more attention from MS Jan 04 06:18:17 Visual studio and the form designer Jan 04 06:18:28 oh, I don't do Forms Jan 04 06:18:35 i do Windows Presentation Foundation Jan 04 06:18:46 XAML + C# Jan 04 06:18:59 bkboggy have you done any WP dev yet ? Jan 04 06:19:07 soft of like Java SWT? i think, one of them is XML... can't remember which one, or is it FX... not sure Jan 04 06:19:34 g00s, you mean phone development? Jan 04 06:19:37 yes Jan 04 06:19:40 no Jan 04 06:20:01 been doing desktop applications Jan 04 06:20:14 one of my babies is about to go into beta Jan 04 06:20:18 so happy Jan 04 06:20:21 bkboggy: Java SWT - windowing tool Jan 04 06:20:44 You could also use JavaFX uses web stuff to build UI Jan 04 06:20:59 ah yes, JavaFX is the one that has XML, right? Jan 04 06:21:06 A bit Jan 04 06:21:14 Swing and SWT do not use it, i think Jan 04 06:21:19 no Jan 04 06:21:37 i only had a college semester of experience with it, so.. yeah, not a java expert ;) Jan 04 06:22:04 Swing is old and has not aged well imho Jan 04 06:22:13 heck, not an expert in anytihng... really, still working on AS in Computer Programming, got one class left Jan 04 06:22:32 bkboggy: I didn't do CS in college Jan 04 06:22:45 are you doing it for a living? Jan 04 06:22:46 So i'm not anything close to an expert Jan 04 06:23:02 I'm trying to Jan 04 06:23:11 i got lucky... very lucky Jan 04 06:24:02 Looks that way Jan 04 06:24:22 i was working for the same company i do now, and their network admin was doing a piss poor job of maintaing equipment... so i kind of mentioned that i am trying to become a software engineer, so they made me an offer and next thing i know i'm a network admin... then 2 months later i'm a programmer, writing .net applications for them Jan 04 06:24:44 odd world Jan 04 06:25:18 Nice Jan 04 06:25:23 i'm trying to get my degree so that i can work for an actual dev company.. who knows how long this will last Jan 04 06:25:24 o.O Jan 04 06:25:49 I am trying to build a portfolio of apps Jan 04 06:26:09 which languages do you use? Jan 04 06:26:24 Java Jan 04 06:26:32 C Jan 04 06:27:16 two of the most popular ones, nice Jan 04 06:38:20 If I add javax.script.ScriptEngine will I need to include any additional licenses? Jan 04 06:41:20 later guys, off to eat Jan 04 07:09:57 <_genuser_> guys, onCreateOptionsMenu in a class fra1 extends Fragment which is being loading onto the activity isn't running. Jan 04 07:10:17 <_genuser_> doesn't a fragment have the option to add it's own items to the menu? Jan 04 07:19:47 so reading the logs on android studio isn't as neat as it was in Eclipse Jan 04 07:19:53 am I doing something wrong, or is it just shit Jan 04 07:20:05 <_genuser_> regrestting your eclipse defection!!! Jan 04 07:20:11 <_genuser_> *regretting Jan 04 07:20:23 <_genuser_> bet the eclipse devs are doing their muhaha .... Jan 04 07:20:34 * capella doubts Jan 04 07:20:41 lol Jan 04 07:20:44 Not regretting yet Jan 04 07:20:54 it's still using oodles less resources than eclipse, or at least appears to be Jan 04 07:21:00 because it doesn't freeze up as much as eclipse used to Jan 04 07:21:01 xD Jan 04 07:21:13 <_genuser_> anybody got any ideas about why I can't get a fragment to load it's menu along with the activity? Jan 04 07:24:11 <_genuser_> the fragment has a public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) which does a super.onCreateOptionsMenu, and then inflates it's own. Jan 04 07:29:07 Do people still use Tab listeners Jan 04 07:29:13 or tabs Jan 04 07:29:37 <_genuser_> I use teh t@bzzz Jan 04 07:29:43 <_genuser_> pager rather. Jan 04 07:29:44 Dicking around making a life counter app, probably noone here will have any idea what I'm talking about unless you play MTG Jan 04 07:29:46 http://imgur.com/IrSDslZ Jan 04 07:41:29 <_genuser_> where do you guys get image for your apps? Jan 04 07:41:39 <_genuser_> google free icons? Jan 04 08:31:11 Good day, how can I make a test project? Jan 04 08:32:44 if you are using gradle, test projects are no more Jan 04 08:33:14 you just add the test cases to the instrumentTest directory Jan 04 08:33:33 oh Jan 04 08:33:33 okay Jan 04 08:33:37 that's why, then Jan 04 08:33:39 in eclipse, and the old build system, there was a separate test project. Jan 04 08:34:09 so if I want to test a library, how do I create the necessary Activities? Jan 04 08:34:15 MockActivity ? Jan 04 08:34:44 hm, i never used MockActivity Jan 04 08:35:04 if you have a library, just write the tests the way you always would have Jan 04 08:35:13 I never have. Jan 04 08:35:14 but put them i the instrumenTests dir Jan 04 08:35:25 see the gradle examples for lots of that Jan 04 08:35:27 But I mean, I want to make custom views in this library. Jan 04 08:35:44 In the test I will have to put these inside some activities to instrument them, right? Jan 04 08:35:57 presumably Jan 04 08:36:46 damn it capella , ff mobile has too many weird issues Jan 04 08:36:55 Yay for interfaces Jan 04 08:37:04 So I tried to make some helper activity under instrumentTest but it of course it fails to instantiate it Jan 04 08:37:25 g00s: I didn't do it Jan 04 08:37:42 i hate having to use chrome :| Jan 04 08:37:47 Mine get caught in interation testing Jan 04 08:37:52 *integration Jan 04 08:37:56 Caught? Jan 04 08:38:04 I'm probably just doing something wrong. Jan 04 08:38:41 g00s: I love FF Mobile - it's gotten so much faster Jan 04 08:38:49 dont custom views have to have their own namespace marrrk Jan 04 08:38:50 and the new about:home UI is awesome Jan 04 08:39:08 yeah but its screwing up web pages Jan 04 08:39:17 Howso? Jan 04 08:39:21 g00s: can you elaborate? I don't see a problem with that. Jan 04 08:39:51 there used to be some weirdness with library projects and custom views, i think that was long ago though Jan 04 08:40:09 capella http://docs.oracle.com/javase/6/docs/technotes/guides/security/jsse/JSSERefGuide.html Jan 04 08:40:38 the scrolling is all weird and FF wants to consider the page to be much further than the EOL Jan 04 08:40:42 thanks :) Jan 04 08:41:31 on chome, chrome mobile, FF desktop, there is no right border Jan 04 08:41:47 but in FF mobile, seems like it wants to make a huge right border, and smoosh all the text too small Jan 04 08:41:52 g00s: You're on the release version and see scrolling / page issues? Jan 04 08:41:58 yeah Jan 04 08:42:06 oh, thats the metaview maybe Jan 04 08:42:17 granted, this is a 55 page html page :) Jan 04 08:42:26 capella wut is the metaview Jan 04 08:43:32 I thing I bumped into once or twice and would have to go find but it helps define gecko layouts Jan 04 08:44:11 g00s: so I guess it can't start the activity because it is not in the manifest but you're saying that there is no need for a manifest anymore in Gradle, right? How do I work around this then? Jan 04 08:44:25 and I was only guessing since that's an unfamilar area on my part and I wouldn't mind reviewing the code for a contrived reason even ;) Jan 04 08:44:38 How would you store data (users, and information related to those users) on the Internet for usage on an Android app? Parse, maybe? Jan 04 08:45:18 autrilla: yeah if you don't wanna deal with storing DB data Jan 04 08:47:09 marrrk it should all work Jan 04 08:47:18 look at the gradle example, tictactoe Jan 04 08:47:21 GameView Jan 04 08:48:00 I can successfully test the Activities in my project. Just not the ones I create under instrumentTest/... Jan 04 08:48:21 hm.. what's the least power-wasting way to have an app that keeps a network connection established in the background? do I really need to hold a partial wakelock? Jan 04 08:49:10 (it needs to listen for data from the server) Jan 04 08:49:44 Zaba dont do it ;) Jan 04 08:49:55 g00s, yeah, but I need to Jan 04 08:50:07 your users will hate you :) Jan 04 08:50:12 g00s, not at all Jan 04 08:50:19 thats why there is stuff like gcm, etc Jan 04 08:50:32 this is pretty specialized stuff, the users know what they're getting into :P Jan 04 08:51:04 ok, well you asked the least power wasting way … no point then, full wakelock ahead ! Jan 04 08:51:30 just joking Jan 04 08:51:42 there was a class at the last i/o i thought that spoke to this ./.. Jan 04 08:52:28 https://developers.google.com/events/io/sessions/327864330 Jan 04 08:53:09 I'll look into this, thanks Jan 04 08:56:04 Hey guys, could someone, please please please, explain me how the following things work... Jan 04 08:56:21 I have class Parent1 - an Activity with some TextView and ProbressBar. And I have class Child1 - an AsyncTask, which can do some work in background. Lets say I created class Parent1, inside it I created an instance of Child1, and context was passed into it's constructor (thus Child1 knows context of Parent1). Jan 04 08:56:41 My question is what is the correct way to update the ProgressBar in Parent1 from inside of Child1? At the moment I did this: ((Parent1) context).handler.sendEmptyMessage(Parent1.STATUS_LOADING); Jan 04 08:56:46 But what if I will 2 instances: Parent1 and Parent2 will be working with the same Child1 - how do I update ProgressBar in Parent1 and Parent2 from within Child1? Jan 04 08:57:59 Is parse.com intelligent enough to handle an ArrayList of custom Objects? Jan 04 09:46:08 g00s: read this earlier .... seems up your alley :D http://valverde.me/2014/01/03/reverse-engineering-my-bank%27s-security-token/ Jan 04 09:53:01 meh - he bailed Jan 04 10:27:57 Can Picasso read byte[] to get images? Jan 04 10:28:02 no Jan 04 10:28:08 hello Jan 04 10:28:27 is there some kind of central repository of android libraries that one can use? like ruby-toolbox.com ? Jan 04 10:28:29 JakeWharton, what can I do to load an image I get from Parse.com? Jan 04 10:28:47 give it a URL. why do you have a byte[] already? Jan 04 10:28:59 JakeWharton, parse gives you a byte[ Jan 04 10:29:08 oh Jan 04 10:29:09 nvm Jan 04 10:42:18 I'm getting data from the internet, and I want to populate a ListView with it. I want the ListView to populate as the data downloads, with no need for a spinning wheel Jan 04 10:42:24 How can I do that? Jan 04 10:43:54 volley Jan 04 10:44:37 storkme, I'm using Parse.com Jan 04 10:45:06 btw, what's up with all that connect/disconnect flood? Jan 04 10:58:20 maybe I'm just doing it wrong. http://pastebin.com/FzDX2SJp Jan 04 10:58:33 Should I get the data on my Fragment or on the Adapter? Jan 04 11:22:31 What's wrong today? Jan 04 11:22:34 Ah, it's saturday Jan 04 11:31:23 Saturday night here :) Jan 04 11:32:36 Meh, I guess I'll have to post questions on stackoverflow Jan 04 11:35:22 i eat questions for breakfastt Jan 04 11:37:21 i'm kind of confused by the options for injecting stuff. there's Roboguice+android-annotations, and then there's Dagger+Butterknife? Jan 04 11:37:32 what is "stuff" Jan 04 11:37:51 dagger and butter knife are libraries. roboguice and android-annotations are frameworks Jan 04 11:38:59 well, i'm transitioning from server to client-side after around 5 years of not doing any UI work. when I did UI work it was building crazy desktop environments at the scale of things like Visual Studio for the enterprise. We built a lot of what I see people perceive as essential today :) Jan 04 11:39:00 ahh dagger...big fan :) Jan 04 11:39:23 pellis: i'm biased as to what's essential :) Jan 04 11:39:34 so, in short "stuff" is everything that would make me write less code and have less bugs, and make better decoupling Jan 04 11:41:40 JakeWharton, so, dagger and BK are explicit alternatives to roboguice and annotations? Jan 04 11:41:51 yes and no Jan 04 11:41:55 dagger is an alternative to guice Jan 04 11:42:21 roboguice is (shocker) built on guice with a bunch of other android-isms and a grab bag of things they think are useful Jan 04 11:42:22 didn't guice get abandoned? Jan 04 11:42:37 no. it just had v4 RC1 a couple months ago Jan 04 11:42:53 guice is absolutely awful on Android Jan 04 11:43:00 do roboguice even have a 'recommended' tag-along of taking android-annotations with it? or do they clash? Jan 04 11:43:31 didn't you guys get a guice dev to work on dagger? Jan 04 11:43:40 bankai_: Bob Lee and Jesse Wilson Jan 04 11:43:59 the creator of Guice/JSR330 and Guice v2, respectively Jan 04 11:45:37 although Bob only served an advisory role Jan 04 11:45:41 (on Dagger) Jan 04 11:47:28 JakeWharton, so for a guy like me, jumping into the water - should I take RG or dagger as DI? Jan 04 11:47:30 I am lost here Jan 04 11:47:41 What is all this sorcery you speak of Jan 04 11:47:55 in other words - is Dagger aimed at the more experienced battle scarred RoboGuice developer? Jan 04 11:47:56 autrilla, it seems someone is spamming channels Jan 04 11:48:37 pellis: Dagger is better than Guice in every way for developing on Android except it's a tiny bit more verbose in declaring dependencies Jan 04 11:49:19 JakeWharton, i'm all in for explicit injection. i see implicit injection as bad practice. Jan 04 11:49:25 I'm getting constant CTCP VERSION DoS attempt :) Jan 04 11:50:11 JakeWharton, also, as an experienced (and old, and lazy) developer, this is the kind of things I like seeing - https://github.com/pyricau/shipfaster Jan 04 11:52:11 yeah so Butter Knife started as a giant joke for all the people complaining that Dagger didn't have "view injection" Jan 04 11:52:37 but it turns out it was a fun project to mess around with and it actually wound up being useful Jan 04 11:52:45 now it's in all of our apps Jan 04 11:52:54 haha is that right? Jan 04 11:52:59 that's my favourite kind of punchline Jan 04 11:53:38 it's pure boilerplate reduction. nothing magical. just kills findViewById calls and setOnClickListener calls Jan 04 11:53:45 JakeWharton, square has several apps? Jan 04 11:53:50 four Jan 04 11:53:56 well, three public apps Jan 04 11:54:58 cool. Jan 04 11:57:01 JakeWharton, i also noticed you guys use Maven religiously - think Gradle is ought to pick up now after Android Studio backing? Jan 04 11:57:13 it's also funny how Gradle just sat in a dark corner until now Jan 04 11:57:27 nah we've been on Gradle since 0.1 internally on three apps Jan 04 11:57:51 we used Maven before because there was no alternative Jan 04 12:00:17 How to i get the 1px border at the bottom of the actionbar Jan 04 12:00:23 so open source work gets Maven? Jan 04 12:00:33 btw - is Droidcon the leading android convention? Jan 04 12:01:13 pellis: existing stuff does because it's easy. new libs will probably be Gradle. and some will be migrated when it's necessary Jan 04 12:01:57 never been to Droidcon so I can't say Jan 04 12:02:50 i mean get rid of the 1px border at the bottom of the action bar Jan 04 12:02:55 i'm wondering what kind of conf i can download videos from. i want to focus how android is done today (modern testing, libs, UI etc) to accelerate development Jan 04 12:03:05 DarkSlay3r: that's the action bar background Jan 04 12:03:18 set it to null in code or @null in your styles Jan 04 12:05:09 I don't get the question. Jan 04 12:05:10 your adapter determines what is rendered in the listview Jan 04 12:05:11 when you need to update the content, make sure your adapter data is udpated and call notifyOnDatasetChanged() Jan 04 12:05:34 pellis: the one i go to is Devoxx and they post videos on parleys.com. it just happened though so all the latest videos are not free yet Jan 04 12:05:49 i'm heading to sleep. later Jan 04 12:05:51 JakeWharton, thanks! Jan 04 12:14:31 Why the heck does parse give me the URL of an image with a / before the actual URL? Duh Jan 04 12:17:22 anyone knows how to test/debug pre-installed apps such as Contacts app ? Jan 04 12:18:04 I have modified some code on that apps ? but dont know how to test ? just simple as replace the app in /system/apps ? Jan 04 12:31:16 is it normal for two appwidgets to share a RemoteViewsFactory? Jan 04 12:31:43 if I add two instances of my widget, it seems to me that my RemoteViewsService.RemoteViewsFactory is only created once Jan 04 12:42:25 makes sense, rvs are services Jan 04 12:43:59 hey i have a question regarding OAuth. i wanna build a OAuth handler in my app so it can work with the our company application server via OAuth. so should use a android client library for it? Jan 04 12:45:47 omid8bimo look at the: play services lib Jan 04 12:46:10 im a girl Jan 04 12:46:15 Hello. I asked this morning already, but there wasn't really a satisfying resolution of the issue. This is what I want to do: A library project in the Gradle layout style. I also want to include some instrumentation tests. Now what I don't get how to do is exclude all the test stuff from the release of the library project. Jan 04 12:47:03 bankai_: which section exactly? Jan 04 12:48:37 can anyone assist me with a stupid newbie question: I have a spinner, which i populated with string array via android:entries . Everything looks great, I only need to hook an array adapter. However when I do so with the examples shown by google, the font color goes from black to white which makes it invisible Jan 04 12:48:44 bankai_: if you meant play_services/auth -- that requires a google account. i want to build something stand alone to work with my application server's oauth php implementation. Jan 04 12:49:04 Did anyone face similar error when starting to work with Gradle?.. https://db.tt/7twL8T2p Jan 04 12:49:11 omid8bimo: We are using XAuth and it works Jan 04 12:50:03 Without too much hassle. Of course there is a lot of stupid stuff that needs to be done because it's Java, but aside from that it's almost easy. Jan 04 12:50:55 marrrk: let me search on that Jan 04 12:51:15 So the jars are signpost-commonshttp4-1.2.1.2.jar signpost-core-1.2.1.2.jar spring-android-auth-1.0.1.RELEASE.jar and spring-android-core-1.0.1.RELEASE.jar Jan 04 12:52:57 marrrk: so its spring? Jan 04 12:53:11 Probably, I didn't do that part. Jan 04 12:53:33 I just took out the two necessary classes once for a spin-off project. Jan 04 12:54:18 marrrk: ok but i cant find anything related to android aouth implementation called xuath Jan 04 12:54:42 https://dev.twitter.com/docs/oauth/xauth Jan 04 12:55:48 marrrk: oh! its for twitter! Jan 04 12:56:06 No, it's not. Twitter came up with oAuth, you know? Jan 04 12:56:52 marrrk: yeah right! that makes sense :) Jan 04 12:57:11 so xauth is general enough to be used in android projects? Jan 04 12:57:29 It depends on your use case. Are you sure you know what you want to do in the first place? Jan 04 13:01:23 marrrk: yeah. the php developrs have implemented OAuth in main application server, so now the android app must be authenticated via oauth Jan 04 13:01:59 Quote: "The xAuth process will only yield read-only or read-write access tokens. Direct message read access is not provided with xAuth. If your application requires access to a user's direct messages, you will need to use the full OAuth flow." Jan 04 13:02:24 so i was reading about oauth and got wondering if i should use a library like spring for it or i can just extends a class in android sdk and write my own oauth class? Jan 04 13:02:57 You can do both. Personally, I would not enjoy the second option very much. Jan 04 13:04:11 i don't get it. android library has oauth support - http://developer.android.com/google/play-services/auth.html Jan 04 13:05:47 fmj47: yeah but as far as i know, that need a valid google account Jan 04 13:06:05 fmj47: From what I understand, that is only to log in somewhere with a Google Account not with an account on your own server. Jan 04 13:06:08 im my case, users have a valid account in my application server and should not be linked to google account Jan 04 13:06:32 marrrk: precisely Jan 04 13:07:05 hmm quick googling and found this :http://blog.doityourselfandroid.com/2011/09/05/integrate-foursquare-android-application/ Jan 04 13:07:42 That seems to be equivalent to the Play Services with the difference that now it's foursquare. Jan 04 13:07:47 looks to be using the library for a non google service Jan 04 13:10:50 Maybe, you're right, I didn't have a close look at it. Jan 04 13:20:55 Weird stuff, picasso doesn't show the placeholder. My code: Picasso.with(mContext).load(object.getImage().getUrl()).placeholder(new ColorDrawable(object.getColor())).into(imageView); Jan 04 13:57:46 I have a ImageView inside a RelativeLayout inside a RelativeLayout and I need the position of the image in the activity. I tired some things like getLeft(), getPaddingLeft()... but it always returns 0 Jan 04 13:59:02 uh Jan 04 13:59:07 what does first thing have to do with other? Jan 04 13:59:11 how are you trying to position it? Jan 04 14:05:23 Can anyone here help me with Parse? Jan 04 14:13:30 hi guys, Jan 04 14:14:00 is there any built in way to show the date name inside a DatePickerFragment (which extends DialogFragment) ? Jan 04 14:18:35 Mavrik, I have a layout with the image, it is positioned with layout_alignParentRight Jan 04 14:19:47 Mavrik, I am trying to create an splash screen with property animations Jan 04 14:23:36 Mavrik, there are two images and I want to "move" (changing x value) the first image so that it overlays with the second therefore I need the position of the second image Jan 04 14:23:59 nmhm Jan 04 14:24:08 djangonoob, use viewtreeobserver on your parent view Jan 04 14:24:14 and do calculations after global layout Jan 04 14:24:17 hello guys; i created an xmppconnection with asmack...how can i passt the connection from activity to activitiy? Jan 04 14:24:28 since the values for positions, sizes, etc. are only populated after layout is done on those elements Jan 04 14:24:42 aruscher, don't. Separate connection stuff from activities. Jan 04 14:25:19 Can anyone help with this? http://stackoverflow.com/questions/20922152/get-relational-data-with-parse Jan 04 14:25:20 Mavrik: my only idea is to create an static class which holds all the information stuff .... Jan 04 14:25:32 *connection Jan 04 14:25:38 aruscher, create a 1.) Service 2.) Singleton 3.) static class Jan 04 14:25:47 then call it from activities Jan 04 14:26:16 Mavrik: Service looks too complicated -.- Jan 04 14:27:52 you poor thing. Jan 04 14:28:03 Mavrik: :P Jan 04 14:41:39 Mavrik, any idea how to change the "Set date" to the current date, or anything else inside DatePickerDialog ? Jan 04 14:44:41 tonySoprano9099: may you should look at System.getCurrentTimeMillis() in Combination with the Calendar Class Jan 04 14:45:09 aruscher, i am already doing that, and able to get the name of the day in my textview, Jan 04 14:45:23 I just want to change the title of the dialogfragment real time Jan 04 14:45:54 aruscher, i got some leads, im working on them, i'll update asap Jan 04 14:46:15 tonySoprano9099: does this help ? http://stackoverflow.com/questions/5193722/how-to-set-the-title-of-dialogfragment Jan 04 14:47:20 aruscher, possible. lemme check. Jan 04 14:47:40 aruscher, indeed, this was the method i was trying anyhow. thanks. Jan 04 14:49:30 Relational mapping is a hassle Jan 04 14:49:41 http://stackoverflow.com/questions/20922152/get-relational-data-with-parse Jan 04 14:49:44 Any help anyone? Jan 04 14:49:54 aruscher, however, i am getting null pointers, as i am inside an activity. Jan 04 15:04:30 i have a v4.support.ViewPager in a Fragment and when I click back the ViewPager's child fragments aren't being stopped/destroyed. wtf am i missing? Jan 04 15:07:43 you need to kill them Jan 04 15:09:10 great, can you elaborate? Jan 04 15:09:35 my understanding is their lifecycle is managed by the FragmentViewStateAdapter I'm using Jan 04 15:09:42 via FragmentManager Jan 04 15:10:55 *FragmentStatePagerAdapter Jan 04 15:41:00 Hmmm.. I go to Build -> Generate signed APK on Android Studio and Google Play tells me it's debuggable Jan 04 15:44:48 hey there Jan 04 15:45:56 can there occur any problems, if I use android 4.3 for development with support library in that case that I want to support api lvl 10? Jan 04 15:46:16 I think of using navigation drawer pattern e.g. Jan 04 15:46:29 is this working with api lvl 10 and support library? Jan 04 15:48:05 Use the latest API for development Jan 04 15:48:17 Support whatever you want Jan 04 15:48:21 And yes, it will work Jan 04 15:49:16 ah ok Jan 04 15:49:18 nice :) Jan 04 15:49:19 thx Jan 04 15:49:54 so with latest api and support library all is fine Jan 04 15:50:08 Yes Jan 04 15:50:19 This Google Play stuff is really weird Jan 04 16:05:14 any tool for managing values-x/strings.xml? Jan 04 16:07:47 how to know which is the current orientation of the device? I just need to know whether the current orientation baseline is on the width, or on the height. Jan 04 16:09:16 groton http://stackoverflow.com/questions/2795833/check-orientation-on-android-phone Jan 04 16:44:35 Does anyone know of a guide on how to use Zxing's QR generator code (java) in an android app without having to install Zxing's barcode reader and send intents? Jan 04 16:45:48 you embed the library Jan 04 16:45:50 why would you need a guide Jan 04 16:56:38 any idea why if I have 2 radio groups in the same fragment/layout I get consecutive integers from the on checkedchanged listener ? Jan 04 17:17:59 pfn: I'm no software developer. I have very basic skills in the area. This is my beginning.. just goofing around with an idea. So by embed the library, simply copy the directory structure for the java I need into my eclipse workspace? I assume I'd have to modify all of the import calls to reflect the new directory structure. Jan 04 17:25:00 SuperTeece, anyway, you embed the library Jan 04 17:25:02 not copy the source Jan 04 17:26:31 ok, I'll have a look around their site again. I didn't see any libraries. Jan 04 17:34:14 How do you mount an Android phone as a USB on Debian? Jan 04 17:42:30 hi! In my app I allow user to select locale manually. The app is started in proper locale, but when I rotate screen - the language is changed back to system default. Does anyone know how to fix that? Jan 04 17:45:03 osmij_, handle the orientation change yourself Jan 04 17:46:04 EPG: I disabled orientation change in Manifest: android:configChanges="orientation|locale|screenSize" Jan 04 17:46:16 isn't that enought?.. Jan 04 17:51:46 any starting point to develop and adapt a TextView in order to enter a color in hex format (line HTML #0F3C4D)? Jan 04 17:55:03 EditView with a TextWatcher? Jan 04 17:55:10 maybe Jan 04 18:13:31 . Jan 04 18:15:23 Can anyone help with this? http://stackoverflow.com/questions/20922152/get-relational-data-with-parse Jan 04 18:50:54 The general strategy is to have one activity for a menu and another for a game right? not having both in the same activity and just switch view? Jan 04 19:18:26 Correct. But you'll want to have loaded everything on the game launch, so that by the time the menu pops up, all the assets are ready to go when the player clicks play. Jan 04 19:18:28 good luck! Jan 04 19:18:53 check out Beginning Android Games by Apress - it is a great way to get started quickly Jan 04 19:19:34 i`m writing a app in eclipse , what is the best way of saving data from the app ? Jan 04 19:19:45 while shes in pause mode or like that Jan 04 19:34:20 hi. I'm trying to add RTL support for Android 4.2+ into my app. I have hebrew strings and android:supportsRtl="true" in the manifest; what can I do to make horizontal LinearLayouts automatically go RTL instead of LTR? Jan 04 19:38:55 hmmm ... is RTL a function of a LinearLayout? Or the individual TextViews involved? Jan 04 19:39:51 Sup Jan 04 19:40:05 Pretty sure linearlayout already does that Jan 04 19:40:16 Supper is done lol it cut me short Jan 04 19:40:30 Hi g00s Jan 04 19:42:53 Is the android kernel loosely based on an arm Linus? Jan 04 19:43:03 Linux Jan 04 19:43:21 loosely based on? Jan 04 19:43:25 it's a linux kernel... Jan 04 19:43:49 Didn't know. New to this. Jan 04 19:43:53 in fact, it is almost entirely a pure linux kernel Jan 04 19:44:53 So i could in theory get the source and recompile my own for devices. Jan 04 19:45:15 it used to have custom stuff not merged into the official kernel tree, like wakelocks - but i think that at least has been resolved. Jan 04 19:45:19 not sure about the current state Jan 04 19:46:37 I was looking into tccboot ... integration into a recovery mode to recompile the kernel Jan 04 19:47:09 Port to arm wouldn't be too difficult. Jan 04 19:48:06 SimonVT: I've added all the Start and End properties in addition to Left and Right, but my layouts still are LTR. Jan 04 19:48:18 does tccboot still work on recent kernels? Jan 04 19:49:01 I don't think you are going to get linux 2.4.26 running on a phone :) Jan 04 19:49:10 It will compile 3.13 haven't had any issues. Jan 04 19:49:22 Was thinking tablet Jan 04 19:49:55 oh nice Jan 04 19:50:37 well lots of people on adk-developers seem to compile their own kernels Jan 04 19:50:47 But that's on x86 and i have modded the code for minimal size Jan 04 19:50:53 (in a minute someone is going to pop up and tell you this is the wrong channel) Jan 04 19:51:00 K Jan 04 19:51:01 (but I don't mind) Jan 04 19:51:30 er, I meant xda-developers Jan 04 19:52:15 where db file is generated by SQLiteOpenHelper? Jan 04 19:52:33 capella: I want the LinearLayout to reorder its children according to the locale bidi setting Jan 04 19:53:54 Must have got the Chan name wrong Jan 04 19:54:16 Ge0rG: Seems to work fine here Jan 04 19:54:40 SimonVT: what did you change in the app? Jan 04 19:54:48 SimonVT: also, which locale are you testing Jan 04 19:54:54 Added supportsRtl Jan 04 19:55:09 Used the force rtl dev option Jan 04 19:55:47 nobody know where db file is created by SQLiteOpenHelper? Jan 04 19:56:15 Choosing a random rtl language works as well Jan 04 19:56:22 should be on the application data folder Jan 04 19:56:29 (I don't know which, can't read it) Jan 04 19:56:33 i could not locate the file in my source code folder Jan 04 19:57:08 my extended dbtol is creating db, tables and rows but i dont know where it saves the db. Jan 04 19:57:29 db name search did not return anythnin Jan 04 19:57:57 SimonVT: I can't find force rtl in the dev prefs on my cyanogenmod 4.3 device :( Jan 04 19:58:21 vmusr: are you talking about the db file? Jan 04 19:58:29 It was probably added in kitkat then Jan 04 19:58:47 JamesLeeds, yep Jan 04 19:58:53 jaami-win, yep Jan 04 19:59:11 pfn maybe you would have an idea; i have a 3rd party lib using SSL but not doing peer verification. i have to pass it an SSLSocketFactory. my idea was to create a custom factory that, when socket created, added a handshakeCompletedListener to do the peer verification. trouble is, i can't figure out where / when to unregister the damn thing :| Jan 04 19:59:14 Either way, supportsRtl + rtl language = horizontal linearlayout lays out from right to left for me Jan 04 19:59:34 SimonVT: which language did you test? Jan 04 19:59:45 I don't know Jan 04 19:59:49 vmusr: im sorry really i dnt see any data folder and i searched data but nothing was returned. Jan 04 19:59:50 One that's rtl Jan 04 20:00:22 jaami-win, each app has it's folder on the /data partition of device Jan 04 20:00:29 vmusr: only metadat folder from my source code is returned Jan 04 20:00:52 vmusr: oh sorry i was looking in my source code folder Jan 04 20:01:38 vmusr: plz tell me how to use same sqlite3 db created with the tool Jan 04 20:03:27 what tool :D Jan 04 20:03:35 vmusr: you understand what i am asking? if i create databse file with sqlite 3 and want to use same db file in my app then what i should in my code? Jan 04 20:03:59 vmusr: oh im sorry forgot, the tool is sqlite3 Jan 04 20:04:34 http://lmgtfy.com/?q=android+bundle+database+with+app Jan 04 20:05:51 jaami-win, are you using the default android provided classes? Jan 04 20:06:00 android.database.sqlite.* Jan 04 20:06:35 vmusr: you know what i want to do is that , i want to create db with sqlite3 , create tables and rows and then send the db file to a friend who want to add more rows and will send the same file back to me. i will then use the same file in my app. my friend asked me to send him the dbfile Jan 04 20:07:21 ok, I'm not sure whether this will work properly Jan 04 20:08:20 you need to navigate to the /data partition on the device/emulator Jan 04 20:09:30 vmusr: as you said the db file should be in device's data folder , now how i can copy the file in my app source code and add more rows in the dbfile and then copy it back to the same location on device Jan 04 20:10:23 am i asking too many question? :) Jan 04 20:11:42 jaami-win, you need to add the rows from the application itself (at least I haven't tried sqlite browsers), and for the file itself you need to transfer it as I said with a file manager Jan 04 20:12:00 SimonVT. You said that the GUY is usually here (which made the keep-alive). Do you remember his name? Jan 04 20:12:07 anybody there who care ? Jan 04 20:12:18 care for newb's help Jan 04 20:12:54 misterli: what? Jan 04 20:13:31 good night Jan 04 20:13:38 :) hmm again theme changed to zombies land Jan 04 20:14:41 I'm developing a player for android and I'm trying to check hdmi status, It's a stick pc with and I want to know if monitor is in standby or on Jan 04 20:14:52 android version 4.1.6 Jan 04 20:15:19 bais: you are still here? Jan 04 20:16:20 yes Jan 04 20:18:02 where did vmusr go? Jan 04 20:23:35 anybody can help me ? Jan 04 20:27:54 hello Jan 04 20:28:29 star_ski12: Hi Jan 04 20:28:56 is anyone here familiar with like eclipse-ish? Im getting like some weird error when i open my android workspace Jan 04 20:29:04 What's the error? Jan 04 20:29:17 Here is the pastebin http://pastebin.com/vrSTvKkc Jan 04 20:30:22 I had also tried the solution here: http://stackoverflow.com/questions/11310970/eclipse-juno-doesnt-start Does anyone know what might be the problem and how to fix it? Jan 04 20:30:34 star_ski12: http://stackoverflow.com/a/16901800/2109184 Jan 04 20:37:46 anybody can read hdmi status on android? Jan 04 20:37:54 gverig Jan 04 20:38:05 Do you remember the test yesterday? :-) Jan 04 20:38:38 Using executors does help ALOT. This will use all available cpus instead of just creating new threads which uses only 1 cpu. Jan 04 20:42:14 AndreYonadam: i see. yeah got it working. thanks Jan 04 20:42:19 np Jan 04 20:46:09 When using action bar tabs do you guys replace the layout or replace the activity of the fragment. Can you do it two ways? Jan 04 20:48:00 hey I'm working with IntelliJ and I'm having trouble adding external libs Jan 04 20:48:32 I put a couple jars in my libs folder, created new libraries from those, and added them to the project with scope "compile" Jan 04 20:48:58 everything compiles fine and the depends are resolved but I get a NoClassDefFound at runtmie Jan 04 20:49:01 runtime* Jan 04 20:50:52 Is there anyway to "test" the battery-usage of an app/package? Jan 04 20:54:22 found it Jan 04 21:00:02 Best vid on YouTube lol Jan 04 21:00:02 http://www.youtube.com/watch?v=N6YdwzAvwOA Jan 04 21:01:18 can anyone help me with my issue above? Jan 04 21:01:21 why the lol? Jan 04 21:02:12 what is in the vid? AndreYonadam Jan 04 21:02:20 All about adapters Jan 04 21:02:41 Idk I have a bad habbit of writing "lol" a lot Jan 04 21:02:47 http://www.npr.org/2013/12/13/248191096/is-texting-actually-advancing-language Jan 04 21:03:01 Understand why they are important now Jan 04 21:03:04 http://lpaste.net/97976 Jan 04 21:03:11 whats wrong with my activity switch? Jan 04 21:03:18 np :D thanks for the link AndreYonadam Jan 04 21:03:38 Fritiof: what are the symptoms? Jan 04 21:04:17 I have 2 activities that look the same but different menus, just want to see it working. i have tried with and withtou finish. what happens is when i press item 0 in the menu it says app has stopped working. Jan 04 21:04:43 hmm Jan 04 21:04:51 you need to look at logcat to see the exception + stacktrace Jan 04 21:04:58 maybe getListAdapter() is returning null? Jan 04 21:05:49 Fritiof: any output in logcat? Jan 04 21:06:43 OK i didnt add it to AndroidManifest.xml Jan 04 21:06:49 that would do it Jan 04 21:08:38 next time check logcat first :) Jan 04 21:16:24 anyone work with intellij here? Jan 04 21:19:25 nope Jan 04 21:19:28 never Jan 04 21:19:30 ever Jan 04 21:20:10 not even once. Jan 04 21:20:16 you've seen the ad campaign. Jan 04 21:21:18 android studio is basically intellij with some flashy extras Jan 04 21:21:30 :D Jan 04 21:21:57 s/basically // Jan 04 21:23:42 I am starting to work on my first real app. I hired a part time designer to make icons for me and such. Jan 04 21:23:52 I have a small problem though. Jan 04 21:24:07 When it comes to telling him what sizes I need certain things… I'm not really sure. Jan 04 21:24:38 Things like action bar icons are laid out nicely in design guidelines. But how do I tell him to make something that I'm not sure of the "exact" size? Jan 04 21:26:06 figure out how big you want it on screen Jan 04 21:26:08 then tell him Jan 04 21:26:12 convert dp to px as necessary Jan 04 21:26:35 anybody have a piece of code to detect hdmi status ? Jan 04 21:26:50 what kind of intent ACTION and CATEGORYis it when you send an Intent to start another Activity? Jan 04 21:27:18 pfn: I know how to do it for action bar icons. But, should I mock it up in photoshop, then measure it? Jan 04 21:28:06 Hello world! Jan 04 21:28:41 Do you guys create new adapters everytime you need to refresh the data set, or do you grab the current one (if available) and re-use it? Jan 04 21:29:28 I've seen both ways, and personally I prefer #2 (ie, I re-use an adapter if it's available and just reset the data set). Jan 04 21:30:27 eghdk: or mock it up on the device, like pfn said tho make sure you convert from dp to pixels... Jan 04 21:31:24 n20: i create different adapter for different listView Jan 04 21:32:39 jaami-win: Same here (if the data is different), but I'm talking about for the same listview :) Jan 04 21:34:14 Like A) setListAdapter(new FooAdapter(context, items)); or B) FooAdapter adapter = getListAdapter(); adapter.setItems(items); adapter.notifyDataSetChanged(); setListAdapter(adapter); Jan 04 21:34:22 sabton: Can't multiple DPIs fall into the same DPI bucket? Jan 04 21:35:19 yes dpis are only categorized as hdpi, xhdpi, etc., why does that concern you? Jan 04 21:36:42 So let's say a device just barely qualifies as XHDPI, and then another device is almost XXHDPI but it's not. It's still XHDPI, wouldn't the two devices use the same asset? Jan 04 21:36:57 yes Jan 04 21:37:11 xhdpi is xhdpi Jan 04 21:37:51 I cannot figure out how external dependencies are handled in IntelliJ for android projects Jan 04 21:38:11 I've added librarys via Right Click Jar in 'libs' > Add Library Jan 04 21:38:31 everything compiles fine but the libs aren't included in the final apk so a NoClassDefFound is thrown Jan 04 21:38:36 what am I doing wrong Jan 04 21:39:07 sabton: So XHDPI is XHDPI, I get it. But does that mean does screens both use the SAME exact dpi? Jan 04 21:39:36 eghdk: you are designing layouts that need to adapt to many diff. screens, what's important is that the assets are high quality and sized relative to each other when viewed by the user Jan 04 21:40:28 back Jan 04 21:40:41 sabton: Ugh. I'm confused. Jan 04 21:41:09 Okay sabton this is my last example. And if you can explain it, then I think I'll be all clear. Jan 04 21:43:14 I sit down in photoshop and I'm using a resolution of the nexus 7 2013. 1920 x 1200. I find out that the image I want is exactly 258 x 258. That's what I would use to calcuate all of the lower dpis… correct? Jan 04 21:43:26 windwaker: your dep scope may be wrong Jan 04 21:44:38 eghdk: that is your baseline, your mdpi size in real pixels and dip's as well Jan 04 21:44:52 eghdk: http://developer.android.com/guide/topics/resources/providing-resources.html <-- has some information on scale factor Jan 04 21:46:04 no way to get my LinearLayouts to reorder to RTL with android:supportsRtl="true" :( Jan 04 21:48:18 sabton and n20 I get the scaling, and the dpi buckets. But I guess what I'm saying is, that if I have two different devices, but they are BOTH the same DPI, which device do I use as a template in photoshop? Because in one template my image looks better at 268 x 268 and on the other template it looks better at 272 x 272 Jan 04 21:48:46 guys Jan 04 21:49:16 eghdk: just pick one, because there are many different devices out there with diff screen sizes, density Jan 04 21:49:32 Okay sabton I think I was just over thinking it. Jan 04 21:49:34 seems like you are determined to make every device look exactly the same, and that's not rly possible Jan 04 21:49:57 I'm just determined to do it the right way. Jan 04 21:49:58 you are trying to make your layouts adapt to every screen out there, and to provide Android with appropriate assets to do so Jan 04 21:50:05 that is what I think the right way is Jan 04 21:52:07 bankai_: I have everything set to compile Jan 04 21:52:18 file manager shows size od database greater than 0 while pull copies the db file with 0 size. what could be wrong with pull? Jan 04 21:54:41 any idea why pull saved database to local HD with 0 bytes? Jan 04 21:55:20 while file explorer on device shows size greater than 0 Jan 04 21:55:40 eghdk, remember that dpi buckets only really count for images Jan 04 21:55:53 http://stackoverflow.com/questions/20927200/dependency-handling-for-android-project-in-intellij-idea Jan 04 21:56:09 and that displaying those images should be the same for devices in the same bucket (e.g. same pixel-perfect size? Jan 04 21:58:30 windwaker, appcompat requires the android part of library as well Jan 04 21:58:32 not only the jar. Jan 04 21:58:43 that's why you're missing the R resource class Jan 04 22:00:53 I voluntieered to make a simple app for my school's website and information about my school I only have 2 days left Jan 04 22:01:06 I'll probably finish in two hours though Jan 04 22:01:40 uhuh. Jan 04 22:02:28 Mavrik: Do you know how to calculate a device dpi? Jan 04 22:02:29 AndreYonadam: how much you will be pais for that simple app? Jan 04 22:02:38 volunteered Jan 04 22:02:40 paid** Jan 04 22:02:41 Nothing. No service hours and no money. Jan 04 22:02:44 sounds like unpaid Jan 04 22:03:04 I maintain my schools website (modX) and do other small work for them. Jan 04 22:03:05 eghdk, that's a wierd question really Jan 04 22:03:19 as a developer you should just care about the multiplier connected to the dpi Jan 04 22:03:36 because only bitmaps matter with dpi... if you're doing layout you should be defining it based on dp width of the screen Jan 04 22:03:44 Like… how would I know that the nexus 7 is xhdpi without using the getResources.getDisplayMetrics method? Jan 04 22:03:55 Now they want an app and I mean I have nothing better to do so I'm making them one. Only problem is that he wants an iOS one too. ha. Idk I've been learning obj-c for a couple of weeks now. Jan 04 22:03:57 eghdk: the device knows it Jan 04 22:04:06 AndreYonadam: took classes for android in your school, i mean you are student there? Jan 04 22:04:28 eghdk, the dpi bucket is preset when device firmware is compiled Jan 04 22:04:36 but getDisplayMetrics() IS the way to check it in code. Jan 04 22:04:37 Yeah. I'm a Senior in my highschool. Its on the north side of chicago and we're supposed to get a lot of snow so I hope they extend the winter break. Jan 04 22:04:50 I took an AP class for college credit. It was all Java. Jan 04 22:05:46 jaami-win: They actually wanted to pay me once for something forgot what I refused. Jan 04 22:05:56 I told them I'm volunteering. Jan 04 22:05:56 lol Jan 04 22:05:59 Mavrik: So, is a device that just barely 320 dpi (xhdpi), let's say it's actually 315 dpi, does the device entirely scale up to 320 dpi? Jan 04 22:06:32 that's a non-sensical question Jan 04 22:06:47 device doesnt care about numbers Jan 04 22:06:58 AndreYonadam, that is nice. almst every student like his/her school Jan 04 22:07:06 the device has it set in it's build prop that it's dpi multiplier is "3.0" for xhdpi Jan 04 22:07:21 and it'll multiply all sizes in interface passed with "dp" units by 3.0 Jan 04 22:07:23 that's it Jan 04 22:07:36 eghdk: mav's right, in your example the device picks the xhdpi asset you (presumably) provided and renders it, period. Jan 04 22:07:44 jaami-win: Yeah I like my school a lot. Sad to leave. Its my final year. I got into four colleges in Chicago I mean I don't know which one I should go to. Jan 04 22:07:47 AndreYonadam: i learn android and java from internet through videos and practice Jan 04 22:08:14 eghdk: all the dpi bucket system is trying to accomplish is a way for you the dev. to provide an appropriately sized (quality) resource Jan 04 22:08:30 does it scale the asset? If I include an XHDPI asset, will two differentXHDPI devices scale it differently? or will both deivces use the same exact XHDPI image, and thats it. period. Jan 04 22:08:30 jaami-win: Me too. My school didn't teach me anything. I was the only person , actually one other person, who pased the AP test for all the 3 years they taught Computer Science at my school Jan 04 22:08:31 lol Jan 04 22:08:44 eghdk, two xhdpi devices will render it the same Jan 04 22:08:54 eghdk, if your target view is the same dp size Jan 04 22:09:27 that is if your ImageView is 100dp wide, both devices will render your image from xdpi folder as 300px wide Jan 04 22:09:54 (xhdpi is 2x, xxhdpi is 3x) Jan 04 22:10:27 eghdk: now, using your example, if you only provided the mdpi image... the image will be scaled up Jan 04 22:10:34 AndreYonadam: college might welcome you to new challenges in java / android Jan 04 22:10:34 doh, SimonVT is right :) Jan 04 22:10:34 and look like shit Jan 04 22:10:47 mdpi = 1.0, hdpi = 1.5, xhdpi = 2.0, xxhdpi=3.0 Jan 04 22:11:00 jaami-win: Hopefully. I wish they had another level of computer sceince I can take this year. Jan 04 22:11:03 SimonVT: What's your take on list adapters? Re-use instances or create new one (upon data changed)? :-) Jan 04 22:11:17 For mea its either UIC, Depaul, or IIT Jan 04 22:11:22 Love em, use them all the time Jan 04 22:11:27 n20, remember that creating a new one will clear scrolling position Jan 04 22:11:33 n20, so don't do it when you update data Jan 04 22:11:37 or you'll piss off users Jan 04 22:11:40 ^ Jan 04 22:12:18 Mavrik: Yup. That's my take on it. However, my partner in crime seems more intersted in creating new instances all the time and instead "storing" the currently viewed position. Jan 04 22:12:23 eghdk: in summary, take your photoshop measurements and tell him to provide in 3x, 2x, 1.5x, and 1x whatever you measured. done. Jan 04 22:12:27 Hi guys, I'm getting an error which is included in the paste but i'm trying to get a string from a method and put it in another string to send as an sms. Here is the code and the error: https://gist.github.com/anonymous/9d5adad104a008f33bc0 Jan 04 22:12:58 sabton, but I need to be using a device that's mdpi to have a base line 1x… correct? Jan 04 22:13:06 n20, slap him with a CRT display Jan 04 22:13:23 don't allocate more objects than necessary -_- Jan 04 22:13:51 eghdk: correct. sort of outdated... your choice whether to provide or not Jan 04 22:14:09 anyone? Jan 04 22:14:10 CocoStorm, learn to use the debugger Jan 04 22:14:21 it'll show you that your getBaseContext() returns null. Jan 04 22:14:21 Mavrik, I will Jan 04 22:14:39 Mavrik, are there any tutorials, and why does getBaseContext() return null? Jan 04 22:14:42 eghdk, the thing how you handle this is... you make the layout Jan 04 22:14:42 eghdk: mdpi can scale down from hdpi or higher, but you're loading larger bitmaps into memory than necessary on older devices with less memory... potential issues there Jan 04 22:14:57 eghdk, then you see "ah, I need an icon that's 100x50dp Jan 04 22:15:26 and you create images 100x50 (mdpi), 150x75 (hdpi), 200x100 (xhdpi) ... Jan 04 22:15:42 remember, dpi DOES NOT imply anything about the size of the screen Jan 04 22:16:08 Gotcha. I think it just all clicked Jan 04 22:16:15 "make the layout" Jan 04 22:16:42 and then I see that I have a spot that is 120 dp x 120 dp that I want an icon. Jan 04 22:16:51 Mavrik, Why does getBasecontext() return null? :S Jan 04 22:16:58 CocoStorm, I have no idea Jan 04 22:17:02 AndreYonadam: better go with the best one , my college experience wasnt good. not because of teaching level but friends who wasted my golden time. Jan 04 22:17:11 Mavrik, but how do you know it returns null :S Jan 04 22:17:12 lol Jan 04 22:17:26 because it's a NullPointerException? Jan 04 22:17:30 Mavrik, could it be because it's in a separate (preference activity) Jan 04 22:17:31 jaami-win: Yeah its going to be a hard decision Jan 04 22:17:46 eghdk, yep Jan 04 22:17:54 if you want to draw stuff Jan 04 22:18:44 just remember that a 1920x1080 xxhdpi device (e.g. HTC One, S4 ... ) will have 640dp x 360dp screen space for layout :) Jan 04 22:19:38 Mavrik: So I guess my last question is how do you do that for let's say a layout where you want a big image in the center…? Such as… when you are making one of those "intro" sliders when you first go into an application. How do you size one of those? Jan 04 22:20:22 ah :) Jan 04 22:20:28 yeah, that's an interesting one Jan 04 22:21:06 a splash screen? Jan 04 22:21:17 eghdk, basically I usually go with an image that has a solid color around edges Jan 04 22:21:46 eghdk, center it, set background color to the edge color Jan 04 22:22:01 the size of the image is chosen according to most common screen sizes / aspects :) Jan 04 22:22:33 if you look around you'll quickly notice that most devices are 16:9 (e.g. 800x480 hdpi, 1280x720 xhdpi, 1920x1080 xxhdpi) with some minor differences Jan 04 22:22:37 Mavrik: My thought exactly. He tried to use the "it's easier to handle orientation changes" card, but I don't really buy it unfortunately. :-) Jan 04 22:23:14 can anyone help with this? I'm getting a nullPointer https://gist.github.com/anonymous/9d5adad104a008f33bc0 Jan 04 22:23:18 Mavrik: It's not hard to handle them with adapters - just check if we have one, or create a new one. Not create 100 new ones just because we reloaded a 100 times Jan 04 22:23:35 yeah that'll be terrible for performance :) Jan 04 22:23:36 eghdk: the other answer would be to use a full-screen ImageView layout and set one of the variety of scaling/cropping options so it fits any screen nicely Jan 04 22:23:42 not that you asked me :) Jan 04 22:24:18 of course you do that, but the hard part is making an image that looks nice on most devices :) Jan 04 22:24:23 n20: ListView retains the scroll position Jan 04 22:24:59 hmm, does it retain the adapter? I don't remember :/ Jan 04 22:25:03 anyone? Jan 04 22:25:05 :| Jan 04 22:25:10 Of course not Jan 04 22:25:30 CocoStorm: If I had to guess you're passing null as the context Jan 04 22:25:59 Mavrik: However, it's an non-expensive check to do though (imo): (if (adapter == null) { adapter = new FooAdapter(...); } Jan 04 22:26:20 SimonVT: Do you guys know of any github projects doing it the "sane" way? :) Mavrik Jan 04 22:26:20 Mavrik, okay, so what do I do for other external jars then Jan 04 22:26:41 SimonVT, getBaseContext() returns null? Jan 04 22:26:53 CocoStorm: I don't know, does it? Jan 04 22:26:58 Also, why are you using getBaseContext Jan 04 22:27:28 windwaker, I don't understand the question. What other external jars? Jan 04 22:27:30 SimonVT, I've no idea Jan 04 22:27:34 jaami-win: I've benefited a lot from making an app for them I kinda know how fragments now and know how to deal with a view pager and tabs and stuff. Jan 04 22:27:50 SimonVT: am i going to be best with the patch provided on this issue, or is something better avail? (iz old): https://github.com/JakeWharton/ActionBarSherlock/issues/828 Jan 04 22:28:37 No idea, never tried it Jan 04 22:28:47 Mavrik, like Apache IOUtils, for example, how can include that Jan 04 22:29:06 windwaker, the same way you included those? Jan 04 22:29:07 well, it seems reasonable. no better options though still right, other than patching? Jan 04 22:29:20 windwaker, .jars can be included in libs Jan 04 22:29:29 appcompat and some other Android libraries are special because they need resources. Jan 04 22:29:43 and there's no jar-like build system for those unless you use Maven or Gradle Jan 04 22:30:00 so I'm going to have to use maven or gradle? Jan 04 22:30:08 no. Jan 04 22:30:11 AndreYonadam: better take some appriciation letter before leaving. or just keep in touch with mre to help them Jan 04 22:30:21 more** Jan 04 22:30:35 how do I include ioutils in a way where it's available at runtime then Jan 04 22:31:11 SimonVT, what should I put instead? Jan 04 22:31:25 Mavrik ^ Jan 04 22:31:55 uh Jan 04 22:32:03 copy it to libs and add it as dependency? Jan 04 22:32:15 where's the problem? Jan 04 22:33:16 that is the problem Jan 04 22:33:17 I did that Jan 04 22:33:26 it compiles but is not available at runtime Jan 04 22:33:38 jaami-win: He actually wrote me a letter or reccomendation for a college. The vice principal. for a college. Jan 04 22:34:01 jaami-win: I feel bad actually. I forgot that I promossed the IT guy to do something for him. Shoot. Jan 04 22:34:05 CocoStorm: What class is the method in Jan 04 22:34:15 I can't belive I forgot. He wan'ted me to help him with an Excel document. Jan 04 22:34:15 lol Jan 04 22:34:41 windwaker, well, is it even compatible with Android? Jan 04 22:35:13 SimonVT, the getSignature method is in the Preference class Jan 04 22:35:17 *Preferences Jan 04 22:35:29 SimonVT, the sendSMS is in MainActivity Jan 04 22:35:58 Yeah, that tells me nothing Jan 04 22:36:06 Is Preference a context? Jan 04 22:36:07 AndreYonadam: its never late to send email for an apology :P Jan 04 22:36:22 3 weeks? Maybe it is. Jan 04 22:36:35 SimonVT, Preferences is a PreferenceActivity Jan 04 22:36:43 Mavrik, should be, if a library isn't compatible with android will it not be included in the apk when building? Jan 04 22:36:45 AndreYonadam: i said never Jan 04 22:36:59 CocoStorm, how the hell is one activity calling methods directly on another activity Jan 04 22:37:09 Yeah. I will probably send him one once I finish this app. At least it shows him that I'm busy or doing something. Jan 04 22:37:19 SimonVT, what do you mean? Jan 04 22:37:36 I've made an instance of Preference SimonVT Jan 04 22:37:43 That's.. no Jan 04 22:37:48 That's not how you use activities Jan 04 22:37:54 oh.. Jan 04 22:37:54 You start them with startActivity Jan 04 22:37:59 windwaker, it will be included. Jan 04 22:38:06 it's just possible it won't be able to be loaded. Jan 04 22:38:16 AndreYonadam: right, but dont foget to tell him that you forgot about ecel sheet Jan 04 22:38:19 You don't manually instantiate them, and two activities should never have references to eachother Jan 04 22:38:24 excel** :P Jan 04 22:38:36 jaami-win: yeah I'm going to send him the email in a couple of hours Jan 04 22:38:38 thanks for the advice Jan 04 22:38:44 SimonVT, I see Jan 04 22:38:58 AndreYonadam: you are welcome, Jan 04 22:39:00 SimonVT, I saw them as classes :P Jan 04 22:39:00 woops Jan 04 22:39:08 SimonVT, why not anyway Jan 04 22:39:11 They are classes.. You're just using them wrong Jan 04 22:39:45 Because they need to be properly set up.. Which the framework handles Jan 04 22:40:19 I see Jan 04 22:41:30 maybe I should just move away from the apache libs altogether Jan 04 22:41:57 SimonVT, so that was the problem Jan 04 22:41:59 :? Jan 04 22:42:00 Do you HAVE to use the support lib with Fragements? is there any alternative to FragmentStatePagerAdapter that isn't from the support library? Jan 04 22:43:32 CocoStorm: yes Jan 04 22:43:51 SimonVT, I see, thanks! Jan 04 22:43:54 tried it and it worked Jan 04 22:43:59 works now Jan 04 22:44:01 AndreYonadam, it's the smartest way to go Jan 04 22:44:41 Mavrik: Guess so. Probably will do that. Thanks. Jan 04 22:45:13 Do I have to add additional Licenses if I add the support library Mavrik? Jan 04 22:45:47 licenses? Jan 04 22:45:59 support library has the same license as rest of Android Jan 04 22:46:04 Is it licensed. Do I have to list Its license? Jan 04 22:46:09 like some other Libraries? Jan 04 22:51:05 * k0nichiwa fears the ndk Jan 04 22:52:11 haha Jan 04 22:52:14 Guess not then Jan 04 23:37:44 any way I can fix this? Jan 04 23:37:44 Hey, I reopened a project I haven't touched in awhile, and I'm getting "android-apt-compiler: [android_version] error: No resource identifier found for attribute 'drag_enabled' in package 'com.topcontotalcare.topconnews'" Jan 04 23:37:44 Permission denied: checkComponentPermission() Jan 04 23:38:02 drag_enabled is definied by drag-sort-listview Jan 04 23:39:41 I'm not sure where to go from here, it was definitely working the last time I built Jan 04 23:42:22 IS there something fancy I have to do while importing for android studio? Jan 04 23:44:07 Android Studio? Jan 04 23:44:13 Idk I use eclipse. Jan 04 23:45:45 hello, im using http://www.appcelerator.com/titanium/ and Alloy framework on Win7 to develop android apps... but im having trouble setting up my env, the sample simple project always have abnormal termination.... can anyone help me please? do anyone knows this Titanium+Alloy framework/IDE, please help, i need it Jan 04 23:46:54 eww Jan 04 23:46:55 webaps Jan 04 23:49:04 Can anyone help with this? http://stackoverflow.com/questions/20922152/get-relational-data-with-parse Jan 04 23:59:06 I have missing dependencies for a few Apache objects, but the correct lib and version is included in gradle. For instance, it can't find org.apache.http.conn.ssl.TrustStrategy, whereas other .ssl objects are available. Any ideas as to the possible cause? Jan 05 00:00:16 According to grepcode.com, it should be available in my version (4.2.3) Jan 05 00:01:31 airlok8: I don't think so… http://viste.com/Java/Language/http-client/httpcomponents-client-4.2.3-bin/httpcomponents-client-4.2.3/javadoc/index.html?org/apache/http/client/HttpClient.html Jan 05 00:01:46 oh, it's an interface Jan 05 00:02:38 durka42: yup... now why can't I import it? Jan 05 00:02:51 Hi guys, my app takes a picture but when it does the preview just displays the image that's just been captured. how can I clear is so that the preview is back? Jan 05 00:03:51 anyone? please Jan 05 00:07:03 This is the only class it can't find from httpclient, from any version. Could it be a bug in Android Studio, an unexpected behavior of not checking in the .xml into git via GUI? Jan 05 00:15:34 MEEEEH Jan 05 00:15:50 my workspace is destroyed, I'm getting "android.app.Activity" showing up as not existing Jan 05 00:17:18 such are the pitfalls of alpha software Jan 05 00:23:09 hey guys, i got some code here and its like referencing the R variable Jan 05 00:23:50 but it keeps on giving me an error saying R cannot be resolved Jan 05 00:24:09 oh nevermind Jan 05 00:32:37 <_genuser_> hello folks. Jan 05 00:33:22 <_genuser_> onActivityResult(int requestCode.... can the requestCode by used to identify requests AND activities? Jan 05 00:33:40 Alright, I resolved most of my problems, only thing left is "com.actionbarsherlock" is not found when trying to import Jan 05 00:33:47 <_genuser_> or there a better way to track which activity was launched using startActivityForResult(int, int); Jan 05 00:34:30 _genuser_, huh Jan 05 00:34:35 that's up to you to figure out Jan 05 00:34:42 it's jst a straight up mapping of id to whatever Jan 05 00:34:43 <_genuser_> pfn: so totally freeform, eh? Jan 05 00:34:52 free form? you define what the ints mean Jan 05 00:34:59 that's not completely free form Jan 05 00:35:11 <_genuser_> nice, yeah that's what I meant that you define what they mean. Jan 05 00:36:02 <_genuser_> thanks. Jan 05 00:57:04 Can I get data from sharedpreferences to recreate views in the case of rotation ? (Instead of bundle) Jan 05 00:57:39 you can put whatever you like in sharedpreferences, and retrieve it Jan 05 00:58:44 Can anyone help with this? http://stackoverflow.com/questions/20922152/get-relational-data-with-parse Jan 05 00:59:20 Leeds: so "saved bundle" doesn't feature any advantage over shared preferences ? (I know the latter is permanent storage) Jan 05 00:59:54 shared prefs are just a name/value store Jan 05 01:03:50 Leeds: isn't both are hash tables ? But one of them is permanent? Jan 05 01:04:31 last time I looked, shared prefs were just xml Jan 05 01:04:34 meh Jan 05 01:05:02 So I'm still stuck on this: error: No resource identifier found for attribute 'drag_start_mode' in package Jan 05 01:05:07 Leeds: so every query, parses XML chars ? Omg :p Jan 05 01:05:13 that's defined in drag-sort-listview Jan 05 01:05:34 but it's not finding it in the template Jan 05 01:08:13 Leeds: so optimal method would be to store the same contents both in Bundle and SharedPreferences ... Jan 05 01:08:19 Leeds: ? Jan 05 01:08:30 probably not, but I don't know Jan 05 01:08:32 How do you set the defualt fragment in a View PAger Adapter because right now It gives me null since I don't have one Jan 05 01:11:43 Leeds: OK thank you very very much :) Jan 05 01:18:40 How can I get my webview to keep text normal size and scale images down to fit the width, rather than scale text down to fit the width? Jan 05 01:18:55 Single/narrow column are deprecated and dont give the correct results Jan 05 01:19:01 and i cannot control the source html Jan 05 01:19:22 Does anyone have any idea why I'd be getting invalid resource identifier? Jan 05 01:20:51 desmin88: as a last resort you could inject javascript Jan 05 01:21:57 desmin88: HEHE Jan 05 01:22:03 RAN INTO THE SAME PROBLEM 5 MINITES ago Jan 05 01:22:04 solved it Jan 05 01:22:41 desmin88: websiteWebView.getSettings().setLoadWithOverviewMode(true); Jan 05 01:22:41 websiteWebView.getSettings().setUseWideViewPort(true); Jan 05 01:23:00 And you might want to add zoom functionality which I also did after adding that lol Jan 05 01:23:13 i tried that Jan 05 01:23:21 The text got really small. Jan 05 01:23:46 Does the webpage fit though? Jan 05 01:24:08 I mean if you really want to go in you can use JS and change the h1 h2 h3, etc and the p and other font sizes Jan 05 01:24:31 Think you can also do scale to the view but that won't help much because it littlerly scales it and not the webpage Jan 05 01:25:50 What's something that would cause resource identifiers to not be found? Jan 05 01:26:05 https://gist.github.com/KorvinSzanto/aa8781b76c198ee14dd6 Jan 05 01:27:51 AndreYonadam: With those two lines (I've used them before) It just makes the text incredibly small and similarly the image. Jan 05 01:28:05 I'm looking to keep the text the normal font size while scaling down the image. Jan 05 01:28:12 What effet are you trying to ahve Jan 05 01:28:13 ohh Jan 05 01:28:18 hmm Jan 05 01:28:33 Hey guys, im still getting R cannot be resolved as type Jan 05 01:28:41 And I can't figure out how to fix it Jan 05 01:28:58 star_ski12: It could be many things. Maybe you are missing a file or a library? Jan 05 01:29:34 desmin88: well. There is probably a library (JS) that resizes all images. Jan 05 01:29:39 You should look for one Jan 05 01:29:41 Korvin: You don't need to type out the entire package name, just do /apk/res-auto Jan 05 01:29:42 ohh Jan 05 01:29:55 desmin88: you can run 50% width and height for .img Jan 05 01:29:57 class Jan 05 01:30:00 in JS Jan 05 01:30:10 so they would be around 50% the origional size Jan 05 01:30:18 This is my webview without any special settings: http://gyazo.com/ddba0d1c54216b9c3a00b6b446905716 It has horizontal scrolling, which I don't want. Jan 05 01:30:32 and you can adjust that baised on device DPI I don't know how you would calculate that. You would need to think of an alogrithm Jan 05 01:30:42 AndreYonadam: I am looking at a sample project i downloaded from Google http://developer.android.com/training/implementing-navigation/nav-drawer.html and it is giving me a whole bunch of errors saying "R cannot be resolved as type". To resolve it, it recommends importing R (android) Jan 05 01:30:43 This is the webview with either single column, or wide viewport/load with overview http://gyazo.com/e432263499a70783fab98dfb117e8cf7 Jan 05 01:30:59 star_ski12: check your build paths Jan 05 01:31:02 Wait Jan 05 01:31:17 star_ski12: What other errors are you getting in errors? Jan 05 01:31:21 under that project Jan 05 01:32:07 desmin88: Keep it single. Looks good. Jan 05 01:32:19 Just change the text size using Javascript through the URL? How does that sound? Jan 05 01:32:37 No, thats not what I'm going for. I'd prefer the first link with the image scaled down Jan 05 01:32:42 the second link is almost unreadable Jan 05 01:32:55 AndreYonadam: It just a bunch of R cannot be resolved as type. Jan 05 01:33:11 and a few warnings here and there. Jan 05 01:33:17 JS could change the image sizes Jan 05 01:33:28 what kind of thread should i use to do normal database operations off of the ui thread Jan 05 01:33:47 There's only one kind Jan 05 01:33:50 durka42: Yeah by chaning the Img class altogether but it would be easier if he just makes the text biger using JD Jan 05 01:33:53 *JS Jan 05 01:34:43 star_ski12: Your probably missing something and are you sure there is no other error? Jan 05 01:34:55 Other than that I don't know what can be causing the R error because there is no trace. Jan 05 01:35:00 Also make sure you didn't Import R Jan 05 01:35:04 If I scale up the text I get the same issue, the image won't fit Jan 05 01:35:34 desmin88: Even by using single column and scaling up the text using JS Jan 05 01:35:35 ? Jan 05 01:35:53 AndreYonadam: Yeah i don't see any other errors. god why can't google just fix this persistent error in the next SDK release or something? Jan 05 01:36:03 Don't scale the body. Just incase the image is in there I don't konw if it will have an affect on that. Jan 05 01:36:15 SimonVT class rather Jan 05 01:36:37 runnable? Jan 05 01:36:49 Runnable is not a thread Jan 05 01:36:52 java.lang.Thread is Jan 05 01:37:15 class rather Jan 05 01:37:21 You can have a Thread run a Runnable if you want Jan 05 01:37:23 desmin88: Or scale the image down. And there is an option you can use to optimize quality when scaling or speed. I would reccomend quality Jan 05 01:38:10 was looking for something like: blank is the best for database operations Jan 05 01:38:18 AndreYonadam: Ah actually after digging around some more, i found an error in the Manifest Jan 05 01:38:23 "error: No resource identifier found for attribute 'xlargeScreens' in package 'android' " Jan 05 01:39:58 Yeah. star_ski12It I think it mostly happenes because of one error. Idk are you using Eclipse? I am and it acts up a lot some times just because of one error. Jan 05 01:42:49 How do I create a listactivity as a fragment? Jan 05 01:43:13 ListFragment? Jan 05 01:43:41 AndreYonadam: yeah im using Eclipse. I want to try and eventually migrate over to the Android Studio. I haven't looked to much into it, but heard its based on Intellij Jan 05 01:44:05 I think it is. Idk I still rather stay with Eclipse. Jan 05 01:45:56 <[twisti]> is there a distribution/update mechanisms for apps in development ? i dont want to have my testers download apk files and figure out how to install them all the time Jan 05 01:46:34 AndreYonadam: geez. i can't stand all these R errors. Every time i make a project or something, I get a bunch of weird R errors. Jan 05 01:52:21 because your not building correctly Jan 05 01:52:27 and therefore there is no 'R' to reference Jan 05 01:54:17 Hi, I have surfaceView.getLayoutParams().height = 130; but it doesn't appear as 130dp like I set in XML.. what type of size does it take? Jan 05 01:54:40 pixels Jan 05 01:55:50 SimonVT, oh I see, is there a way of telling it to use dp instead? Jan 05 01:56:52 Nope Jan 05 01:57:09 It's all pixels in code Jan 05 01:57:20 aw, damn :( Jan 05 01:57:47 what if i wrap it around a layout Jan 05 01:57:52 and tell it to fill parent Jan 05 01:57:52 programmatically somehow Jan 05 01:58:16 and have the fill parent set to a certain size Jan 05 01:58:16 Or just convert dp to pixels Jan 05 01:58:27 in fdp Jan 05 01:58:27 *dp Jan 05 01:58:39 <[twisti]> presumably you could have something thats 130dip or whatever they are and get the height from that Jan 05 01:59:01 hm, wouldn't it be an issue with different screen sizes? Jan 05 01:59:03 or does it not matter Jan 05 01:59:22 <[twisti]> isnt that what one WANTS dp for ? Jan 05 01:59:31 I'm guessing I don't need to implement threading if using a cursor loader instead? Jan 05 01:59:36 <[twisti]> so the actual pixel count is different depending on screen size Jan 05 01:59:38 yes Jan 05 01:59:50 <[twisti]> if you DONT want it different depending on screen size, then pixels is what you want Jan 05 01:59:51 exactly Jan 05 01:59:54 <[twisti]> and you have no problm Jan 05 02:00:01 I want dp Jan 05 02:00:11 so it varies depending on screen size Jan 05 02:00:12 apparently remoteviewsfactory's are cached depending on the uniqueness of the intent creating them Jan 05 02:00:26 but what defines this uniqueness? should different extras do it? Jan 05 02:01:38 CocoStorm: Google it.. It's really easy to convert dp to pixels Jan 05 02:02:37 There's even a sample on d.android.com if you search for "convert dp to px" Jan 05 02:06:13 checking Jan 05 02:07:46 Is there built in oAuth on android now? Jan 05 02:10:46 SimonVT, I understand now, thanks! Also, how do I target different screen sizes? Or does android cover that for me? Jan 05 02:20:21 for some reason android is using the same cached viewsfactory for all instances of the widget I have placed Jan 05 02:20:31 which results in the gridview for each showing the same content Jan 05 02:20:58 even though the intents to my RemoteViewsService differ Jan 05 02:21:12 (appwidget id in the extras, among other things) Jan 05 02:21:47 actually one other weird thing I'm seeing which might be the cause of this Jan 05 02:21:58 is that onUpdate is being called on my widget as SOON as it is placed on the screen Jan 05 02:22:04 even though I have a configure activity for it set Jan 05 02:22:31 Korvin: and HTTP client is built in and so is a web browser. that's all you need for oauth. Jan 05 02:29:35 JakeWharton: I know, but I don't want to implement oauth, I want to use an oauth authentication tool :P Jan 05 02:29:41 Hi, I just installed android studio, put the google play dependency in my build.gradle and hit synchronize project and it's telling me i'm using an old, unsupported version of gradle and it wants 1.8 or later. I never had gradle installed before, but I installed 1.10 and set it to use my system version and its giving the sam eerror... Jan 05 02:29:44 Anyone have any hints? Jan 05 02:31:29 nvm, apparently putting it in the wrong gradle.build will do that Jan 05 02:31:43 build.gradle change 0.6.0+ to 0.7.0+ Jan 05 02:31:52 change the syntax to whatever it is though Jan 05 02:32:18 http://stackoverflow.com/questions/9144262/android-widget-show-configuration-activity-before-widget-is-added-to-the-screen/12236443#12236443 Jan 05 02:32:21 assholes Jan 05 02:32:50 r04r, ./gradle/wrapper/gradle-wrapper.properties I change the version number to 1.9 in this file as well Jan 05 02:33:33 Eeeeeee: I think I got it figured out. I was putting it in the build.gradle that's in the same directory as the gradlew.bat instead of the one in directory named after my project Jan 05 02:33:40 And it's working now. Thanks though :) Jan 05 02:34:03 ;) Jan 05 02:45:09 Can someone help me with a problem thats been driving me crazy. I'm using mono and Parse.com and running a few async/await methods. My code runs 100% good in the emulator. However, I am experiencing null pointer exception errors when I run this code on my device Jan 05 02:47:30 ahhh, extras do not differ two intents Jan 05 02:57:09 why is gcm deprecated? Jan 05 02:57:49 It isn't Jan 05 02:57:53 pretty sure it isn't.. Jan 05 02:57:57 a2cdm is though Jan 05 02:58:23 c2dm **** ENDING LOGGING AT Sun Jan 05 02:59:58 2014