**** BEGIN LOGGING AT Wed Dec 11 02:59:59 2013 Dec 11 03:00:06 second question : can I set an app to start automatically after bootup? (app with interface not background service) Dec 11 03:01:56 nuke_: only seen that happen a few times with eclipse and i had to kill eclipse, emulator and adb to make it happy again Dec 11 03:02:31 bankai: It has never worked on this computer... killing and restarting does not help sadly Dec 11 03:03:13 does it normally connect via a domain socket or something? Dec 11 03:05:19 539797401297b4b7 stream 0 0 0 539797401297b57f 0 0 /tmp/android-nuke/qemu-gles-1236 Dec 11 03:05:44 wonder if it is a permission problem or something Dec 11 03:07:21 seems like it is domain sockets... Dec 11 03:08:05 you can telnet to it on 5554 or something Dec 11 03:08:51 thanks... guess I'll just keep investigating....was hoping it was a common problem Dec 11 03:10:05 hmm I telneted in and... avd status Dec 11 03:10:05 virtual device is running Dec 11 03:10:06 OK Dec 11 03:14:00 why in the world don't they show up in the interface Dec 11 03:14:46 does it show up in 'adb devices' ? Dec 11 03:15:20 how do you run that command? Dec 11 03:15:34 it isn't in my path... or in the telnet session Dec 11 03:16:17 it's in the adk bundle somewhere .... sdk/platform-tools maybe Dec 11 03:16:49 ok thanks let me see Dec 11 03:17:25 does not show any devices in the list Dec 11 03:20:43 http://google-latlong.blogspot.fr/2013/12/create-your-own-street-view.html <-- "create your own street view"... very swish Dec 11 03:34:27 so in AS when starting a blank project.. I notice the template no longer has a main method that matched my package name.. Dec 11 03:35:29 wow adb kill-server the adb start-server ... the the emulator shows up Dec 11 03:35:33 just has OnCreate onCreateOptionsMenu onOptionsMenu onOptionsSelected PlaceholderFragment and onCreateView Dec 11 03:35:48 nuke_: you said you killed adb Dec 11 03:35:50 main method? Dec 11 03:35:56 So, I know this sounds dumb.. Dec 11 03:36:00 Gentoon: that's more than what you need Dec 11 03:36:07 But where do I start throwing in code.. Dec 11 03:36:20 I restarted the app and the computer Dec 11 03:36:23 bankai_: I know, and it confuses me.. but removing any of it breaks it Dec 11 03:36:32 I really hate the changes they made in the last update Dec 11 03:36:35 assumed that would restart the server Dec 11 03:36:45 Gentoon: 'breaks' it? Dec 11 03:37:20 The IDE gives errors about things that I am referencing not existing anymore Dec 11 03:37:26 I will give an example Dec 11 03:37:46 First let me post the entire starting template so you know what I am working with Dec 11 03:38:21 guess I am not fully grasping how adb functions Dec 11 03:38:31 http://pastebin.com/0AW6rchH Dec 11 03:38:34 okay Dec 11 03:38:57 now I will remove say... just the onCreateView Method Dec 11 03:39:15 ok, no errors there Dec 11 03:39:30 Gentoon: you should learn what overriding these methods do, have a look at the 'activity lifecycle' Dec 11 03:39:54 there are plenty of tutorials and guides online.. Dec 11 03:40:01 I know about the activity lifecycle, thanks Dec 11 03:40:06 <|0xD34D|> lol Dec 11 03:40:10 I just watched a tutorial on it Dec 11 03:40:23 Please don't tell me I need to have a look at anything, thanks Dec 11 03:40:37 why are you so arrogant when asking for help ? Dec 11 03:40:37 well when you clearly dont understand it Dec 11 03:40:42 Oh really? Dec 11 03:40:54 <|0xD34D|> stop being a troll bankai_ :P Dec 11 03:41:03 |0xD34D|, he has a point.. Dec 11 03:41:13 Tell me a scenario of a user using an activity.. and I wil tell you what happens.. Dec 11 03:41:14 desmin88: he's making a joke from before ;) Dec 11 03:41:18 <|0xD34D|> desmin88: inside joke, you missed it earlier with Gentoon Dec 11 03:41:24 oh lol Dec 11 03:41:25 <|0xD34D|> it was great Dec 11 03:41:38 Yeah you missed them trolling. Dec 11 03:42:02 <|0xD34D|> actually desmin88 just keep listening and you'll get the gist of what occurred earlier Dec 11 03:42:10 sure thing Dec 11 03:42:11 reading the last 3 lines of an hour long conversation I has having with someone and jumping in, having no idea what we were talking about. Dec 11 03:42:22 <|0xD34D|> you hours sure are short Dec 11 03:42:34 <|0xD34D|> must be a relativity thing Dec 11 03:42:38 it was 1 Hour and 12 minutes Dec 11 03:42:41 want to see logs? Dec 11 03:42:48 Thanks bankai... I had guessed rebooting would cause adb to restart clean... but the commands definitely fixed it Dec 11 03:43:00 Or is this channel publicly logged? Even better. Dec 11 03:43:27 <|0xD34D|> 17:10 to 17:30 PST Dec 11 03:43:29 <|0xD34D|> so 20 minutes Dec 11 03:43:31 Gentoon: so what was your question.... where do you put the code? it depends what code you want to run where Dec 11 03:44:05 so, since you understand the lifecycle, you'll know which methods fire in which order, so knowing that you can make a fair judgement Dec 11 03:44:33 ie. if you're going to be dealing with maps 'n' stuff, they take ages to load, so you want any references to mapping to start as late as possible Dec 11 03:44:49 if you are dealing with views, you need them inflated and available before doing anything Dec 11 03:45:04 there's no "main method", it's just what you need to happen when and where Dec 11 03:45:16 Anyways, my question was simply.. before all these recent changes to As when I started a project I simply had public class MainActivity extends Activity { Dec 11 03:45:23 bankai_: let me finish Dec 11 03:45:31 still waiting for you to start Dec 11 03:45:31 you do not even understand what I am asking Dec 11 03:45:49 so ask your damn question instead of being a little arrogant bitch Dec 11 03:45:54 No you are not, you are running off on some useless tangent of things I already know. Dec 11 03:46:09 And there is the troll I am talkjing about. Dec 11 03:46:17 Is there any ops here? Dec 11 03:46:17 !ops Dec 11 03:46:31 I will message some Dec 11 03:46:33 Gentoon: ask the question Dec 11 03:46:35 ffs Dec 11 03:46:45 thx Dec 11 03:46:46 No, I am reporting this idiot Dec 11 03:46:53 <|0xD34D|> hahaha Dec 11 03:46:58 Tired of him abusing everyone who comes in here Dec 11 03:46:59 <|0xD34D|> gotta love the internets Dec 11 03:47:01 to the internet police? Dec 11 03:47:06 To the ops Dec 11 03:47:06 <|0xD34D|> interpol Dec 11 03:47:08 have you Dec 11 03:47:09 perhaps Dec 11 03:47:14 I have been a user of this channel for 3 years Dec 11 03:47:14 ...backtraced him? Dec 11 03:47:21 desmin88: stop trolling Dec 11 03:47:22 never had an idiot like this. Dec 11 03:47:28 3 yrs and you still cant use a template without errors? Dec 11 03:47:32 <|0xD34D|> really? never? Dec 11 03:47:36 <|0xD34D|> in your ages of being online Dec 11 03:47:48 See, just abuse. No help. Dec 11 03:47:56 you havent even asked a question Dec 11 03:47:58 still yet to see an actual question Dec 11 03:47:59 how can anyone help you Dec 11 03:47:59 lol Dec 11 03:48:04 I have asked 3 Dec 11 03:48:07 anyone able to help me out? in opengl es 2, i call e.getX() and e.getY() and assign them to a float. how does it calculate what it assigns to these Dec 11 03:48:26 <|0xD34D|> Tacticalmind: what is e? Dec 11 03:48:31 <|0xD34D|> a MotionEvent? Dec 11 03:48:33 MotionEvent Dec 11 03:48:36 ye Dec 11 03:48:39 Not my fault you can't read cause you are scrolling away all the text with your childish internet insults and trolling. Dec 11 03:49:06 <|0xD34D|> Tacticalmind: I'm not sure how GLES2 has to do with what you are trying to do Dec 11 03:49:44 desmin88: 3 years of being in the channel.. doesn't mean i have been developing android that entire time. I just started yesterday. Dec 11 03:49:46 just tryin to figure out how it takes the detected touch and translates it into a float Dec 11 03:50:20 Tacticalmind: This guy has never written a line of code in his life, he will just insult the way you word your questions or something, save your time. Dec 11 03:50:22 <|0xD34D|> not sure but I think that happens down at the touch driver level, but I could be wrong Dec 11 03:50:47 <|0xD34D|> Gentoon: perhaps you should look at my github then come back and say that Dec 11 03:50:52 <|0xD34D|> mmkay, thanks Dec 11 03:50:59 i can tell Dec 11 03:51:04 Yeah Dec 11 03:51:07 lol Dec 11 03:51:21 He uses some other guys name on IRC who is an actual developer, everyone here hates him. Dec 11 03:51:41 i'm telling my mum! Dec 11 03:51:44 interesting Dec 11 03:51:44 <|0xD34D|> and thus we now see the kettle is once again calling the pot black Dec 11 03:51:49 you're bordering on insanity Dec 11 03:52:04 so no one's got an answer for me? Dec 11 03:52:12 Not here lol Dec 11 03:52:20 There are no actual developers online right now Dec 11 03:52:21 damn Dec 11 03:52:27 Just the wannabe script kiddies Dec 11 03:52:27 <|0xD34D|> Tacticalmind: the best thing would be too look at the MotionEvent class in the source Dec 11 03:52:31 <|0xD34D|> and back track from there Dec 11 03:52:38 alright thanks Dec 11 03:52:51 <|0xD34D|> that's the nice thing about core android being open source Dec 11 03:52:55 He is just gogoling stuff and regurgitating it to you. He doiesnt know a class from an object Dec 11 03:52:58 <|0xD34D|> you can actually see what is going on Dec 11 03:53:27 this channel needs more moderation for loons like gentoon Dec 11 03:53:30 alright lol i'll shift through this shit as i need Dec 11 03:53:31 see what i did there? Dec 11 03:53:35 loons toon Dec 11 03:53:36 hehehe Dec 11 03:53:41 You are right, it does need moderation. Dec 11 03:54:18 This kid calls me names like a 13 year old, and is racist. And not a single op to do anything. Dec 11 03:54:19 <|0xD34D|> kroot: you around? Gentoon would like to chat with you if so Dec 11 03:54:22 Great community. Dec 11 03:54:38 I already PM's every op in here. Dec 11 03:54:44 PM'd Dec 11 03:54:45 just ignore him Dec 11 03:54:57 It is more than one Dec 11 03:55:03 He has an e Buddy Dec 11 03:55:05 then ignore them all Dec 11 03:55:34 You are right, but they should really be dealt with. Dec 11 03:56:21 I just don't understand why the default blank activity in As doesnt even have a public class MainActivity extends Activity {} anymore? Dec 11 03:57:02 It has all the lifecycle methods instead Dec 11 03:57:24 paste what you're talking about Dec 11 03:57:40 and instead of a simple layout_main_xml it creates some fragment now. Dec 11 03:57:53 That makes no sense, paste what I am talking about. Dec 11 03:57:59 I just said what I am talking about Dec 11 03:58:05 Gentoon: i don't use Android Studio, but is it possible you didn't create an app? Dec 11 03:58:16 and I have already pasted the entired blank activity default template Dec 11 03:58:31 <|0xD34D|> he did, it just extends ActionBarActivity instead of Activity Dec 11 03:58:32 wait, sorry Dec 11 03:58:32 angelsl: I created a project Dec 11 03:59:09 what if you create a new activity in the project? it creates a fragment instead? Dec 11 03:59:10 |0xD34D|: Why? Dec 11 03:59:34 <|0xD34D|> not sure, I don't use AS but maybe you chose one of the other templates it offers Dec 11 03:59:41 <|0xD34D|> I remember there being some choices a while back Dec 11 03:59:43 |0xD34D|: Why does it now extend ActionBarActivity? Dec 11 03:59:44 because the activity it's creating defaulty has an actionbar and a fragment Dec 11 03:59:50 No I didnt Dec 11 03:59:58 I chose blank activity Dec 11 04:00:21 Do none of you have the latest version of AS? Dec 11 04:00:24 ActionBarActivity is part of the support library. Dec 11 04:00:32 Just create ANY blank activity Dec 11 04:00:36 <|0xD34D|> let me see how different IDEA 13 is to AS when I create a new project Dec 11 04:00:55 |0xD34D|: Does it use Brandle? Dec 11 04:01:03 <|0xD34D|> Gradle? Dec 11 04:01:03 Maybe this IDe is just garbage? Dec 11 04:01:20 yeas I meant Brandle Dec 11 04:01:27 Grandle* Dec 11 04:01:33 <|0xD34D|> close Dec 11 04:01:34 <|0xD34D|> :P Dec 11 04:01:42 <|0xD34D|> see, not bad for someone that just googles this shit, eh? Dec 11 04:01:51 <|0xD34D|> I understood gradle from brandle Dec 11 04:02:02 <|0xD34D|> but yes I can create and Android Gradle project Dec 11 04:02:25 But not out of the box? Dec 11 04:02:38 why do you care about the blank activity it makes Dec 11 04:02:40 <|0xD34D|> okay, so mine shows me options for "Support Mode" Dec 11 04:02:40 lots of configuration for android projects before you are coding? Dec 11 04:02:43 correct it and be on your way Dec 11 04:02:58 <|0xD34D|> Action Bar is one of those items as is fragments Dec 11 04:03:03 desmin88: That makes no sense Dec 11 04:03:09 i think he's having issues because teh default activity doesn't look like any example code anywhere anymore Dec 11 04:03:13 That isnt how As works Dec 11 04:03:18 <|0xD34D|> Gentle: did you by chance check any of those? or possibly already checked Dec 11 04:03:25 lol Dec 11 04:03:30 No I didnt Dec 11 04:03:37 They just updated AS Dec 11 04:03:49 So when I create a blank activity I get all this junk Dec 11 04:03:51 http://pastebin.com/0AW6rchH Dec 11 04:04:17 ok Dec 11 04:04:19 and I get a fragment_main.xml instead of a layoutmain.xml or whatever it used to be Dec 11 04:04:23 and if you dont like that default stuff Dec 11 04:04:24 remove it Dec 11 04:04:26 and make your own? Dec 11 04:04:34 i dont see why you're whining about the default code Dec 11 04:04:41 I am not whining Dec 11 04:04:42 <|0xD34D|> Gentoon: here's what I would do, and I understand you've probably tried this but just entertain me here. Start over and create a new project and go over all the options it gives you very carefully Dec 11 04:04:44 Go away Dec 11 04:05:20 |0xD34D|: I have read about these changes already.. install AS and start a new project.. you will understand. Dec 11 04:05:21 why do you even care? its default code, i delete it everytime anyway, just create your own activites and xml files. Dec 11 04:05:26 <|0xD34D|> AS may be auto checking some of these options when you create a new project. Dec 11 04:05:37 <|0xD34D|> I prefer to use IDEA since I can use it for more than just android Dec 11 04:05:59 I know the checkboxes.. I do not check any of them ever exept create activity Dec 11 04:06:14 just make your own activity Dec 11 04:06:51 They even talked about this new fragment_main.xml change in the default package template in a newer tutorial Dec 11 04:07:14 you're neurotic Dec 11 04:07:15 im done Dec 11 04:07:15 desmin88: that would destroy the entire stucture of the paclage template.. have you ever used AS? Dec 11 04:07:27 desmin88: Good, be done... you are not helpful. Dec 11 04:07:44 |0xD34D|: Please, get AS.. you will see I am not crazy. Dec 11 04:07:48 youre being a fucking idiot, who cares about this default code or the example package template Dec 11 04:07:50 delete it all Dec 11 04:07:52 make it manually Dec 11 04:07:53 done Dec 11 04:08:10 I am 2 days into android.. I can not do that obviously. Dec 11 04:08:16 Please just leave or stfu desmin88 Dec 11 04:09:03 Seriously, just because you can something because you have already learned it doesn't mean everyone else can magically do it as well. Dec 11 04:09:08 |0xD34D|: Are you still here? Dec 11 04:09:17 <|0xD34D|> I am Dec 11 04:09:21 <|0xD34D|> should I leave Dec 11 04:09:22 <|0xD34D|> ? Dec 11 04:09:30 i never used example code or the example project Dec 11 04:09:38 desmin88: I do not care Dec 11 04:09:44 <|0xD34D|> I was going to download AS and install it but I'm not patient enough for the 465MB download to complete Dec 11 04:09:55 IJ13 is the same thing Dec 11 04:10:10 |0xD34D|: Would you like me to walk you through me starting a new project in AS/ Every box in the AS.. I will if you will help me. Dec 11 04:10:13 <|0xD34D|> AS didn't add any additional wizards Dec 11 04:10:30 |0xD34D|: are you not on Cable or FIOS? Dec 11 04:10:53 <|0xD34D|> yes and 3 minutes is too long :P Dec 11 04:10:57 |0xD34D|: It is way different than IntelliJ actually, since I use both Dec 11 04:10:59 <|0xD34D|> I'm letting it go though Dec 11 04:11:12 3 Minutes? Hope you don't pay much for your internet Dec 11 04:11:21 IJ 13? it's different from 12, not so much from 13 Dec 11 04:11:29 I download 500 MB in less than a minute.. Dec 11 04:11:35 cool Dec 11 04:11:35 <|0xD34D|> Gentoon: actually it's not the only thing I have going Dec 11 04:11:38 and I am on a lower FIOS teir Dec 11 04:11:46 Anyways Dec 11 04:12:01 <|0xD34D|> I'm on the low FiOS tier too, I am willing to at least download and install it to have a look Dec 11 04:12:10 |0xD34D|: Letting the download finish? Dec 11 04:12:15 <|0xD34D|> yes Dec 11 04:12:21 Cause I could just start a new project and stream my desktop? Dec 11 04:12:24 Gentoon: I'm going to say you can't beat 7.9 seconds :P Dec 11 04:12:28 Okay, thanks. Dec 11 04:12:44 Leeds: 7.9 Seconds? Relative to? Dec 11 04:12:51 to download AS Dec 11 04:12:59 Leeds: bah ... you're SG, right ? Dec 11 04:13:00 You couldn't either. Dec 11 04:13:19 OC3 couldnt Dec 11 04:13:29 yup, I could... Dec 11 04:13:42 Okay Dec 11 04:13:53 Okay, so new Project Dec 11 04:13:56 http://pastebin.com/ciU91ndP Dec 11 04:14:08 bankai_: close - HK Dec 11 04:14:12 The New Project screen comes up Dec 11 04:14:28 This is where I name my project, this doesn't matter Dec 11 04:14:30 Leeds: i have a mate in HK and he's always posting speedtests ... bastard ... very jealous! Dec 11 04:15:06 bankai_: I'm pretty sure Google's HK CDN endpoint is on my ISP, which is why I get massive speeds from them Dec 11 04:15:17 |0xD34D|: The only checkboxes I check are Create activity Dec 11 04:15:41 Then I hit next Dec 11 04:15:55 I select blank activity Dec 11 04:16:19 Now with the new update there is a new text field here clled Fragment Layout Name Dec 11 04:16:27 Which you can not leave blank Dec 11 04:16:34 It did not used to be here. Dec 11 04:18:00 <|0xD34D|> it would appear they seem to want you to use the ActionBarActivity Dec 11 04:18:01 I know the latest version on intelliJ doesnt have this Dec 11 04:18:11 See I am not crazy! Dec 11 04:18:19 I may be rude.. Dec 11 04:18:38 <|0xD34D|> and I still at least bothered to download and install it to see Dec 11 04:18:41 This is google's doing.. not IDEA Dec 11 04:18:50 Thank you. Dec 11 04:19:55 This sucks for me, because as a semi new Java developer and a brand new Android Developer.. I want to use AS.. but all the tutorials are setup for the ol versions and I have not even learned fragments yet Dec 11 04:20:32 So I get a templete I don't even understand. Dec 11 04:22:59 Gentoon: if you're having that many problems with it, have a look at the samples in the 'sdk' dir of the dev bundle, those samples will look more familiar to you Dec 11 04:23:02 as far as I can tell, I can trim out everything in the MainActivity.java but the PlaceholderFragment and the onCreate Dec 11 04:23:40 bankai_: How will that help me create new prjects I can use to follow tutorials though? Dec 11 04:23:54 I have to create 10's of projects a day Dec 11 04:24:21 it won't, but it'll give you to understand what you do/don't need until you can understand the fragment stuff Dec 11 04:25:01 whoa dude Dec 11 04:25:04 net splat Dec 11 04:25:22 What is the name of the /dev/ice that controls the Intent IO? Dec 11 04:25:47 I will just continue on with my turoial as best i can i guess Dec 11 04:25:52 Thanks for the bother Dec 11 04:26:02 explodes: it wasnt net split Dec 11 04:26:18 it was probably one person with 11 clients lol Dec 11 04:28:06 Huh; Dec 11 04:28:16 Well what's the device o.O Dec 11 04:42:28 is there any java/dalvik debugger available that can print the contents of dalvik registers? (v0, v1, ...) ? Dec 11 04:47:18 nobody? the lack of references to such registers in platform_dalvik/vm/jdwp makes me wonder how possible it even is without modifications Dec 11 04:47:35 lwerdna: I haven't heard of anything. Dec 11 04:48:43 dragorn: how are reversers doing any amount of dynamic analysis without being able to display the arguments to functions, or functions' return values, or local variables? Dec 11 04:49:26 lwerdna: dunno; I don't do that ;P Dec 11 04:49:33 Mostly they deodex it and decompile Dec 11 04:49:37 as I understand it Dec 11 04:49:59 looking at a static disassembly can get you only so far.. Dec 11 04:53:48 Hello, I have a question re Gradle. I'm migrating from Maven, which automated the signing process. I have what appears to be a valid build.gradle, but when I try to build or sync the project, I get the error "Could not find method builtTypes() for arguments [build_25mkq9jcaqr2v70fat81eviuh5$_run_closure2_closure6@55264c84] on project ':xxxxxxxxx' Dec 11 04:54:11 It's only when I add the signingConfigs Dec 11 04:55:49 Also, when I try and sync my build.gradle, it will usually also have a popup telling me that I am using an old, unsupported version of Gradle, and I should use 1.8. I am using 1.8. Dec 11 04:56:12 Anyway, any help would be very much appreciated. I feel like I have exhausted other methods of figuring this out. Dec 11 05:10:03 Nobody? Dec 11 05:17:21 how do you know you're using 1.8 Dec 11 05:20:01 ./gradlew -v shows 1.8 Dec 11 05:20:25 I also tried standalone gradle, with the same output. Dec 11 05:21:29 I'm going to try to update to latest canary release and see if that helps. But it seems the problem is the "could not find method buildTypes for arguments [GARBAGE THAT I DON'T UNDERSTAND]" error I quoted above Dec 11 05:21:35 you've tried to sync the project to build.gradle? Dec 11 05:21:39 err Dec 11 05:21:44 sync project to gradle files Dec 11 05:22:30 Yes, and that's when I get the error saying I am running an old version of gradle. It's my guess that it thinks there's a syntax error in my build.gradle, because it is ok when I remove the signing ojects Dec 11 05:32:53 Looks like 0.3.6 is giving me helpful feedback on my build.gradle now... Dec 11 05:36:37 Well using a different and newer install of Android Studio helped. Dec 11 05:51:57 Is there a log event that happens when a GCM is received? Dec 11 06:35:47 Is anyone here using lombok with proguard? Dec 11 06:36:04 And gradle, I should add Dec 11 06:39:28 lombok Dec 11 06:42:11 quick question, do you set up intents in manifest.xml? Dec 11 06:43:04 onr, are you using it with Android Studio? Dec 11 06:43:29 Dragonya, just activities as far as I am aware Dec 11 06:43:45 ok, but you can do intent.. somethings, right? Dec 11 06:43:52 elBradford: with IntelliJ IDEA, but its Android plugin is identical to Android Studio AFAIK Dec 11 06:43:54 Intent filters, yes Dec 11 06:43:57 yes! Dec 11 06:44:13 what are those? I've done lots of android programming, but never come across those Dec 11 06:44:34 I use them to allow my app to be a default app for particular URLs Dec 11 06:44:51 They're what allow Twitter app to open twitter urls, or a phone dialer to open phone links Dec 11 06:44:58 If I already have the AS bundle installed and I am just using Plaing IDEA 13.. where is the Android SDK? So I can pint IDE at it? Dec 11 06:45:04 onr: Yes, I think you're right. Do you use proguard with it as well? Dec 11 06:47:32 onr: And are you using the IntelliJ plugin, or the lib jar? Dec 11 06:47:34 |0x2CB2|: Dec 11 06:48:03 anybody got any experience with the ndk? Dec 11 06:48:05 I ask because when I run it with proguard I'm getting a thousand (literally) warnings about missing classes Dec 11 06:49:49 Guess I didnt need to install 4 different API levels at once Dec 11 06:49:53 This is gunna take forever Dec 11 06:49:54 got a project coming up soon that is going to require the use of a c++ library, and im having some difficultys understanding the docs I have read on JNI so far. Dec 11 06:50:05 And why isn't KitKat available in the SDK yet? Dec 11 06:50:13 is it Dec 11 06:50:27 Hmm doesnt appear in the SDK manager :( Dec 11 06:51:04 API 19 Dec 11 06:51:04 depresses me they changed the name I was looking forward to "Key Lime Pie" :-( Dec 11 06:51:05 dblosevn: I haven't done anything with the ndk, but as I understand it you will need to compile the c++ for android, then write a native code interface with what you compiled. Dec 11 06:51:09 Oh wait API19 Dec 11 06:51:14 Yup Yup Dec 11 06:51:27 I didnt see it, I am actually downloading it, cool. Thx Dec 11 06:52:06 My phone isnt due to get it for a month.. so I can at least see it in a damn emulator! Dec 11 06:52:17 Or try and unlock my damn bootloader Dec 11 06:52:20 elBradford: ya thats where I am getting stuck, all the tutorials I have seen wirte the c from scratch implementing JNI in the process Dec 11 06:52:42 But there is a 700 USD Bounty on XDA to unlock this bootloader.. doubt I can do it Dec 11 06:53:27 elBradford: what I havent seen is really what I am looking for, leaving my c code alone and building a JNI interface on top of it so I can leave the codebase alone. Dec 11 06:53:58 *the c++ codebase Dec 11 06:54:19 basically java -> JNI interface -> c class Dec 11 06:55:25 but all the docs I see so far are more like java -> c class with integrated JNI interface Dec 11 06:55:35 dblosevn: if the c++ class is small (like you're not trying to use c library, for example) then it might be easier to just implement it natively. But I am not the best person to ask about that. Good luck man! Time for bed. Dec 11 06:56:07 Its extremely complex, dealing with particle physics Dec 11 06:57:02 so Id rather matintain one codepath for the actual calculations and just build wrappers for android, ios, windows Dec 11 06:57:58 elBradford: thanks for keeping me company anyways :-) good night Dec 11 06:58:38 Can I close a WebView from Javascript? Dec 11 06:58:43 with window.this.close ? Dec 11 06:58:54 cff: no Dec 11 06:58:59 dblosevn: why not? Dec 11 06:59:09 Anyone have 4.4 on a devive yet? Dec 11 06:59:12 youd have to build a javascript interface and close it via java Dec 11 06:59:16 device Dec 11 06:59:22 dblosevn: that's the only way? Dec 11 06:59:25 yes Dec 11 06:59:26 dblosevn: close it from java? Dec 11 06:59:32 alright Dec 11 06:59:45 cff: its not a browser its a compent in an activity doesnt behave the same way Dec 11 06:59:50 *component Dec 11 07:00:15 dblosevn: that is? the same way as? Dec 11 07:00:27 as a browser like chrome Dec 11 07:00:59 think about it if you didnt implement a js interface what would you expect the app to do on window.close? Dec 11 07:01:00 right, I need to close a webview without changing the java code Dec 11 07:01:08 4.5 is KLP? Dec 11 07:01:21 destroy the webview and display a now blank activity? Dec 11 07:01:34 no codes changes allowed Dec 11 07:01:35 in java Dec 11 07:01:41 only js, html , css Dec 11 07:01:42 because thats about all it could do either that or force close Dec 11 07:01:46 i.e. what the webview renders Dec 11 07:02:08 dblosevn: what you say I can only do from Java Dec 11 07:02:21 cff: you can trigger it from js Dec 11 07:02:33 cff: but you have to write a js inteface in java first Dec 11 07:02:48 dblosevn: ah, without adding anything in java... Dec 11 07:03:09 cff: your not going to be able to avoid that Dec 11 07:03:19 cff: unless your using phonegap Dec 11 07:03:32 then navigator.app.exitApp() Dec 11 07:12:01 if I have a button thats width is wrap_content how can I see its actual DP so I can make another button the same size? Dec 11 07:12:37 have 4.4 on 2 devices now... Dec 11 07:12:53 you don't, programmatically Dec 11 07:13:06 i guess we're waiting for 4.4.1 ? Dec 11 07:13:28 pfn: So what should I do then? to match the buttons sizes? Dec 11 07:13:30 Actually, I have 4.4.2 waiting to install on my n7 Dec 11 07:13:31 g00s: 4.4.2 rolled out to devices yesterday Dec 11 07:13:41 Can I update elements in ListView ? Dec 11 07:13:43 huh Dec 11 07:13:51 i need to revert my email hack and apply the update Dec 11 07:14:00 4.4.2 was the first 4.4 final rlease canidate Dec 11 07:14:17 Say I return View that contains 4 Textviews. And I want update 3 of them every second.... Dec 11 07:14:24 cff: in actuality, the java youd need to write would be quite short, http://stackoverflow.com/questions/17945556/eclipse-using-javascriptinterface-triggering-toast-from-javascript this post comes close youd just replace the Toast.makeText line with something like http://pastebin.ca/2496055 and oviosuly renaming the interface, from public void showToast to public void close at which point Dec 11 07:14:24 you could run window.close from js and it would appear to close the webview which really just ends the current activity Dec 11 07:14:27 Of course I don't need to update ones that arend visible. Dec 11 07:14:29 not sure what else, but apparently it fixes the SMS DOS vulnerability Dec 11 07:14:31 Gentoon, either specify the width dp or use a container to constrain them at the same size Dec 11 07:14:55 never used a container before Dec 11 07:14:56 hmm Dec 11 07:15:14 Leeds did you say you used linode? http://www.androidpolice.com/2013/12/10/new-app-official-linode-manager-app-comes-to-android-with-a-clean-ui-and-plenty-of-features/ Dec 11 07:15:25 you can do it with a relative layout Dec 11 07:15:44 I am using relative Dec 11 07:15:51 I mean Linear haha Dec 11 07:16:35 well I am going to take a break for a few mins, if anybody is around with NDK exprience and has a couple mins to chat it would be greatly appreciated Dec 11 07:16:37 g00s: looks good, thanks Dec 11 07:16:53 dblosevn, ndk experience is basic jni Dec 11 07:17:08 and interfacing c to c++ is trivial... Dec 11 07:17:25 pfn: I have never attempted to do it, I just dont want to get stuck Dec 11 07:17:43 ... Dec 11 07:18:08 you learn by making mistakes and solving problems, not handholding Dec 11 07:18:23 not asking for handholding :-) Dec 11 07:18:36 just have a couple highlevel questions Dec 11 07:19:42 hehe, twitter 5.0 was just released … and its still not tablet optimized? or did they forget to add those screenshots Dec 11 07:19:44 really only one as I have a pretty good understanding of how JNI works it just irks me I havent seen any examples that match the senerio I have, and it would seem to be pretty common. Dec 11 07:20:26 is there some recommended way to build persistent background network clients? I'm looking at the docs for Service, but neither started nor bounded services seem to be the right fit. Dec 11 07:21:19 it's also not clear how it should interface with the activities that provide the UI. It'd be nice if some of the activities wouldn't run if the user hasn't logged in, for example. Dec 11 07:21:32 g00s: and if I could actually remember my linode password... Dec 11 07:22:08 AIDL seems like overkill for something that's only needed in a single app Dec 11 07:22:10 dblosevn, who needs examples Dec 11 07:22:13 just do it Dec 11 07:22:47 and use aidl whenever ipc is involved Dec 11 07:23:22 well, communicating with a Service within the same task isn't really IPC, is it Dec 11 07:23:28 pfn: basically I have a c++ library that has been heavily tested and nearing completion within days. This library is to be used to build apps on 3 different platforms and I would like if possible to be able to utilize it without modifying the source at all (of the c++ library). What I havent seen is a senerio like this although it seems to be what JNI is made for. I would think I would be Dec 11 07:23:28 able to create an inteface class around the c++ code implementing JNI and be able to leave the c++ code untouched. But I havent read anything to support that fact Dec 11 07:23:55 so? Dec 11 07:24:17 I only presume that it would be in the same task though, after all, the subject of my inquiry is how this should be done Dec 11 07:24:21 dblosevn: what if I have an onWindowClose handler already in Java, would that capture the window.close() event I send from JS ? Dec 11 07:24:51 Can I create it more efficient ? -> https://gist.github.com/bluesm/7906291 Dec 11 07:25:26 I havent found any documentation that confirms an answer to my question. Dec 11 07:25:48 (I of course should reuse the view here) Dec 11 07:26:12 dblosevn, can c interop with c++, your question is answered Dec 11 07:26:19 But beside that... It is terrible when it comes to adding one view to the viewList. Dec 11 07:26:23 Zaba, No ipc, No aidl Dec 11 07:26:48 and for that matter, you can communicate any way you want, it's just java Dec 11 07:27:05 services and activities are just life cycle containers Dec 11 07:28:17 hm Dec 11 07:29:00 so I can just startService whenever I need to issue a network command, and rely on it to get me the existing Service or create one if there isn't? Dec 11 07:29:05 pfn: thank you although a simple yes that would work would have sufficed :-) Dec 11 07:29:28 Zaba, yes Dec 11 07:29:43 cff: ya, I forgot about that event on the webchromeclient, you could grab the UI thread from there and finsh the activity Dec 11 07:29:47 and start service doesn't return anything Dec 11 07:31:24 weird; i still have only Play Store 4.4.22 Dec 11 07:31:35 every other app updates, but not Play :| Dec 11 07:32:18 patience is a virtue Dec 11 07:32:35 i dont mind waiting; just worried something is busted Dec 11 07:33:24 g00s: I still have 4.4.21 Dec 11 07:33:55 How can I stop Android from caching web views? Dec 11 07:33:59 i.e. what they render Dec 11 07:34:04 its freaking annoying Dec 11 07:34:05 huh, ok. Play Store 4.5.10 is latest, so i thought i missed like 10 point releases Dec 11 07:34:33 I have to go to clear cache everytime I change something, and it stay for minutes to Compute the storage and cache Dec 11 07:34:37 hey Dec 11 07:34:53 what is a good way to make your app known in the play store? Dec 11 07:35:58 Zgary: make a good one Dec 11 07:36:11 spend money on advertisements Dec 11 07:36:20 don't suck Dec 11 07:37:08 what the hell, did you guys see Nokia is working on a low end android-based (forked) asha-class device ? Dec 11 07:38:56 pfn take any good pictures of the trip :) Dec 11 07:39:03 hi all Dec 11 07:39:35 howdy Dec 11 07:39:45 can anyone help me upgrade my s3 mini to kitkat Dec 11 07:39:52 dillonko: no Dec 11 07:40:04 why Dec 11 07:40:09 ? Dec 11 07:40:18 dillonko see topic :) Dec 11 07:40:33 g00s: it's pretty unclear to me if it's "working on", or "has in the labs", or "used it as a threat against Microsoft" - I *really* doubt they're going to ship such a thing Dec 11 07:41:24 i dont see how they would compete with stuff like the moto G using their own ecosystem ... Dec 11 07:41:39 but $179 is low end for many parts of the world, maybe its much cheaper Dec 11 07:41:53 pfn, right, but startService takes an intent in the extras of which I can pass some data. Would be it be silly to pass the network commands in such a way? Dec 11 07:42:28 if it's meant to be an Asha replacement, it's not meant to compete - but I thought Nokia weren't allowed to ship smartphones which competed with MS for a while, and it's pretty hard to argue that even a low-end Android phone isn't a smartphone Dec 11 07:42:54 yeah .. unless they really butcher the UI Dec 11 07:43:23 wasn't there an android device in a magazine add while back ? Dec 11 07:43:42 pfn, I'm trying to figure out whether there's an idiomatic way to do this. Sure I can hack together a lot of things. Dec 11 07:43:59 wow nokia still makes phones ;-P I havent heard of a nokia phone since about the time the blackberry launched Dec 11 07:44:29 and android isn't very familiar territory for me, so while I can see what mechanisms I can use, I don't know what constitutes as abuse Dec 11 07:44:51 you're going into abuse-land when you start a service foreground Dec 11 07:45:17 and leave stuff running when it doesn't need to be Dec 11 07:45:22 +1 Dec 11 07:45:34 ohai canadiancow Dec 11 07:45:37 hi Dec 11 07:46:06 if I have no way to implement push notifications but still want to be receiving events from a server, does that count as abuse? :P Dec 11 07:46:28 I thought intent filters listened for push Dec 11 07:46:44 android uses Java idioms Dec 11 07:48:00 sorry im tired, *I thought you used intentfilters to listen for push notifications Dec 11 07:48:20 while technically true, i dont think you understand those concepts Dec 11 07:48:35 intent filters, as the name suggests, filter intents Dec 11 07:48:48 I reversed what I said Dec 11 07:48:55 broadcastreceiver/service/activity (am i missing anything) can use intentfilters to listen for intents Dec 11 07:49:04 pfn, okay, thank you for the clarification Dec 11 07:49:16 the push service fires an intent which your intentfilter matches and launches an activity Dec 11 07:49:18 "push notifications" (i assume you mean google cloud messaging) are sent to the device, and generate an intent Dec 11 07:49:45 well ya google calls it something different :-) Dec 11 07:56:28 shizzle, i have a heisenbug Dec 11 08:08:01 drawables can't have cap letters? Dec 11 08:08:24 g00s, http://heisenbergschemistry.files.wordpress.com/2012/05/heisenberg-hybrid.jpg Dec 11 08:10:10 hehe Dec 11 08:11:00 man I get so many errors while testing my apps on my tablet Dec 11 08:11:04 I mean it runs fine Dec 11 08:11:13 But the logcat just kicks errors non stop Dec 11 08:11:27 it's generally a bad idea to hold a reference to an activity or a service, right? Dec 11 08:11:38 stuff about like E/AEE/DUMPSTATE: Dec 11 08:11:39 since the OS manages their lifecycle and they can be gone at any time Dec 11 08:12:02 Hi, I have some problem with WebView. I can't download PDF using a WebView. When i load page in Chome Browser Mobile it works, i download pdf but when i load page in WebView download doesn't work. Dec 11 08:32:15 any lightweight JSON library for Droid Dec 11 08:33:06 Hi all, I have a listview and an adapter. Each item in the list contains a button too. The button works but the onItemClicked (listview) isn't working anymore, how can I fix this? Dec 11 08:39:34 Looney: gson, jackson, etc. Dec 11 08:40:16 hmm, I can take pain of extra effort, tell me which is like the lightest of them Dec 11 08:40:32 good memory footprint is what I am looking at Dec 11 08:40:48 may have to target low end devices Dec 11 08:41:04 write your own library then Dec 11 08:41:13 if it needs to be ultra low footprint Dec 11 08:41:14 but really Dec 11 08:41:17 any one will do Dec 11 08:43:02 https://code.google.com/p/thrift-protobuf-compare/wiki/Benchmarking Dec 11 08:43:58 gson is slow Dec 11 08:51:11 desmin88 gson is convenient Dec 11 08:51:18 i never said it wasnt Dec 11 08:51:23 :-) Dec 11 08:51:26 in other words Dec 11 08:51:28 why care Dec 11 08:51:47 " may have to target low end devices" "the lightest of them" Dec 11 08:52:38 jackson's just as easy Dec 11 08:52:54 and fast, according to these charts Dec 11 08:53:18 mhm Dec 11 08:53:54 never liked protobuf, too much messin' Dec 11 08:54:32 spring server -> jackson -> spring android is super easy Dec 11 08:55:07 bollocks Dec 11 08:55:07 we usually package the domain objects from the server as a seperate jar so we both use the same one Dec 11 08:55:18 alex_PP have you used Spring Reactor on android? Dec 11 08:55:27 i cant seem to remember that textview a guy wrote and posted on here before for easy reading Dec 11 08:55:40 don't believe so Dec 11 08:55:46 ;; ticker Dec 11 08:55:50 but spring has a mind of its own Dec 11 08:57:30 g00s, looks interesting Dec 11 08:58:09 gtg Dec 11 08:58:18 i wasn't sure if it hah 'enterprise' dependencies :( Dec 11 08:58:26 gotta look at the pom Dec 11 08:59:50 yeah, like your ISP router says FU Dec 11 09:00:00 oops , wrong channel :) Dec 11 09:00:02 :O Dec 11 09:01:03 ;) Dec 11 09:01:05 wtf Dec 11 09:01:21 i just got this water what seems like 2 minutes ago, somehow its all gone now Dec 11 09:01:26 i have no recollection of drinking it.. Dec 11 09:04:51 desmin88: mice ... Dec 11 09:05:00 i think bankai_ did it Dec 11 09:05:29 bankai_: WHYYYY Dec 11 09:05:38 ran outta beer, had to drink something Dec 11 09:05:50 :( Dec 11 09:05:57 it was too young to go Dec 11 09:07:40 i've used dagger in about three toy projects of mine and i 'still' don't think i get it -_-# Dec 11 09:08:31 You've pricked the surface then would you say? Dec 11 09:08:39 But its not clear cut Dec 11 09:08:56 You'd need to sharpen your understanding Dec 11 09:09:05 To really get the point Dec 11 09:09:47 JakeWharton any recent presentations on it by square ? Dec 11 09:09:50 * Leeds should have a stab at it some time Dec 11 09:09:50 wow, much puns, such funny Dec 11 09:09:57 my sides Dec 11 09:10:04 g00s: I gave an hour talk at Devoxx 3 weeks ago Dec 11 09:10:14 hm, i'll try to find it Dec 11 09:10:27 I posted slides. Video will be on parleys.com Dec 11 09:10:31 Eventually Dec 11 09:10:47 http://www.infoq.com/presentations/Dagger Dec 11 09:11:03 cool , found speakerdeck slides Dec 11 09:12:02 thanks mapiko Dec 11 09:12:43 gosh im using such bad practices in my app Dec 11 09:12:49 global static constants class Dec 11 09:13:30 omfg :D Dec 11 09:13:32 and in my constants class i have an enum with a class that I then instantiate as a fragment so i dont have to dick around with enum types/ifs Dec 11 09:13:36 mapiko: That's over a year old now Dec 11 09:13:44 fragment = (Fragment) type.getClazz().newInstance(); Dec 11 09:13:54 uf sorry.. did not know that Dec 11 09:14:03 Still relevant Dec 11 09:14:25 The Guice I/O talk by Jesse is also relevant Dec 11 09:14:32 oh, ok :) Dec 11 09:15:15 JakeWharton: do you guys use it with everything or just large projects? Dec 11 09:15:32 ie. are there situations where the setup is just too much effort/bothersome to really warrant dagger? Dec 11 09:15:35 JakeWharton: does you "hugo" project piggyback on gradle builds? Dec 11 09:15:44 thepoosh: yes Dec 11 09:15:49 YAY!!!! Dec 11 09:15:52 bankai_: we use it pretty much everywhere Dec 11 09:16:00 we just created an internal build machine from gradles Dec 11 09:16:06 now we'll be able to add this Dec 11 09:16:16 and make our logging easier Dec 11 09:17:15 Nice. I need to look into dagger 2! Dec 11 09:17:22 no time tho.. Dec 11 09:18:48 how much faster is developmet.. with dagger.. can u tell us Jake? Dec 11 09:25:28 is here anyone from google? I need a little google play helpp Dec 11 09:26:27 im sure we could help.. Dec 11 09:27:40 mostly, Google people don't do official support on IRC Dec 11 09:27:59 to be honest, mostly, Google people don't do official support :) Dec 11 09:28:16 aint that the truth! Dec 11 09:29:42 mapiko: ask the channel... Dec 11 09:29:52 which channel? Dec 11 09:30:28 this channel Dec 11 09:31:15 well ok Dec 11 09:31:26 i have recieved some warnings for my apps Dec 11 09:31:27 lol Dec 11 09:31:33 for using wrong jars Dec 11 09:31:36 what is funny? Dec 11 09:31:44 nvm Dec 11 09:33:16 :) Dec 11 09:33:24 i tihnk all is good now.. tho.. Dec 11 09:33:38 but shame that google does not offer support for developers Dec 11 09:34:00 oh oh , will we eventually have android rings :| http://www.gizmag.com/smarty-ring/30084/ Dec 11 09:37:20 g00s: you know how kickstarter won't allow hardware projects which just have renders? Dec 11 09:37:41 i dont know much about kickstarter Dec 11 09:38:10 well... kickstarter changed their rules a while ago to ban hardware projects which rely on renders rather than photos... Dec 11 09:38:47 How can I save data for simple data structure (list of objects with integer and string) Dec 11 09:39:05 (it appears I'm going to be interviewed by local TV about kickstarter in a couple of weeks) Dec 11 09:39:19 cool Dec 11 09:40:00 bluesm sqlite seems a safe bet :) Dec 11 09:40:03 friend of mine is a reporter/producer - I've been interviewed a couple of times before, about ebooks and readers, and about group-buying things like groupon :) Dec 11 09:40:23 g00s: Via Cursor Class ? Dec 11 09:41:06 Leeds reviews about certain ebooks ? Dec 11 09:41:17 nah, about ebooks and readers in general Dec 11 09:41:17 or about the form of ebook in general ? Dec 11 09:41:21 ah Dec 11 09:41:34 i wish amazon had a kindle rating for the conversion quality Dec 11 09:42:09 this was a few years ago - I showed off my original nook and a Chinese 7" tablet I was using :) Dec 11 09:43:17 Leeds did you see the newest Play Book update lets you upload ebooks directly without the cloud stuff ? Dec 11 09:44:02 yeah, but it seems you still can't just open a local file Dec 11 09:44:10 hm Dec 11 09:44:16 I mean, there's cloud, and there's "upload a book and download it again to read it" Dec 11 09:48:15 nice.. Dec 11 09:48:21 maybe link to kickstarter? Dec 11 09:49:01 mapiko: what? Dec 11 09:49:56 didnt u say that u were on kickstaerter Dec 11 09:50:30 no, I did not Dec 11 09:51:27 sorry :) Dec 11 09:51:39 I said I'm going to be on TV talking about it Dec 11 09:51:43 but that's as a backer Dec 11 09:52:17 local station? Dec 11 09:52:31 yeah Dec 11 09:52:38 they can't get enough Dec 11 09:52:53 oh, right.. ok :D Dec 11 09:53:27 why as backer? Dec 11 09:54:12 um... because I don't have experience with running a campaign Dec 11 09:54:13 talking about what it is, etc? Dec 11 09:54:40 yes Dec 11 09:54:56 particularly she wants to talk to me about successful and 'failed' projects Dec 11 09:55:01 Morning all Dec 11 09:55:29 www.fourhourworkweek.com/blog/2012/12/18/hacking-kickstarter-how-to-raise-100000-in-10-days-includes-successful-templates-e-mails-etc/ Dec 11 09:55:48 hate how this guy uses virtual assistants and not just programing Dec 11 09:56:13 but good some good info in there if you adapt it Dec 11 09:56:20 -good Dec 11 09:58:25 wow, this is looking pretty interesting http://www.slideshare.net/StphaneMaldini/reactor-spring-one2gx20130902final Dec 11 09:58:39 Java 8 Streams look very interesting too Dec 11 09:59:20 seems to use lmax disruptor underneath too Dec 11 10:00:19 was reading about spring framework earlier Dec 11 10:00:47 spring is huge, what part Dec 11 10:03:15 saw this on appbrain Market share overall: 0.34% of apps ... Market share in top apps: 8.78% of apps Dec 11 10:03:28 spring for andorid? Dec 11 10:03:43 in general, nothing specific Dec 11 10:04:41 yeah stpring is huge and quite used a lot Dec 11 10:08:38 test Dec 11 10:08:56 no testing! Dec 11 10:08:59 compiling an app from AOSP: is this difficult? Dec 11 10:11:07 Could you recommend me a design ? There are 4 TextViews in every ListView's element. And I have to update 3 of them (simple timer) every 1000 ms. Dec 11 10:11:37 how big it will be listiew? Dec 11 10:12:14 not sure IJs annotation processor is quite right... seems to have that fickle bug eclipse has where you have to force a rebuild if you make changes Dec 11 10:12:54 test Dec 11 10:13:23 mapiko: It is user defined.. Dec 11 10:13:56 mapiko: User can add as many things he/she wants... And every Element needs to be updated every second. Dec 11 10:15:38 just call notifyDatsetCahnged every second Dec 11 10:15:44 well why does it need to be updated everysecond? Dec 11 10:15:53 what about refresh button = on action bar? Dec 11 10:15:54 as long as polling goes, if its efficient, should be ok Dec 11 10:16:34 where's the data coming from? Dec 11 10:18:11 yeah thats the important part 2.. Dec 11 10:18:23 where do you get data to present in listview/? Dec 11 10:19:59 being all cryptic Dec 11 10:21:58 hey guys... i need some help with parsing json in android... I'm new to android, and im working on a certain project Dec 11 10:22:16 danogwok: gson is the answer to all your json problems Dec 11 10:24:55 i've not used gson before... but i dont know if u can look into my code and see...for some reason i believe its a small issue Dec 11 10:25:01 something i can't see Dec 11 10:25:36 pase it up! Dec 11 10:25:36 :D Dec 11 10:25:37 https://code.google.com/p/google-gson/ take a look Dec 11 10:26:20 hey https://github.com/danogwok/roadconexion.git .... Dec 11 10:26:24 thanks bankai Dec 11 10:26:51 hi Dec 11 10:27:36 mapiko: Could you include "bluesm" in your messages ? I miss your messages among others :) Dec 11 10:28:00 how do i do that? (sorry. irc n00b here) Dec 11 10:28:12 i open browser, download a pdf... and after i must open this file... i create a timer task to check is file is download... ok it works but when i open file Brower remain in top and i don't see adobe reader Dec 11 10:28:19 type it out lol Dec 11 10:28:41 bluesm ok! Dec 11 10:29:03 just add to friends and set an alert Dec 11 10:29:35 mapiko: The user input it from "4 edit texts" , wait a second for screenshot. Dec 11 10:29:45 bluesm which class? Dec 11 10:29:45 :D Dec 11 10:30:08 mapiko: Class ? Dec 11 10:30:30 Hi all, anyone knows something about harmony in android here ? Dec 11 10:30:56 we are very harmonious people Dec 11 10:31:10 mapiko: It is all in the MainActivity. Dec 11 10:31:11 haha, that's nice I guess Dec 11 10:31:49 ever heard of android messing the runtime so that it starts returning weird objects instead of Class while doing reflectivity Dec 11 10:31:52 ? Dec 11 10:32:55 getActualTypeArguments returning org.apache.harmony.luni.lang.reflect.ImplForVariable instead of Class ? Dec 11 10:33:04 vitaminwater: To me ? Dec 11 10:33:11 mapiko: http://imgur.com/enPLx5Q Dec 11 10:33:38 bluesm: to anyone Dec 11 10:34:28 I got this bug yesterday, android run time totally screwed reflectivity, might some compiler configuration or whatnot. Dec 11 10:34:30 vitaminwater: You were referring to me, that all is in MainActivity ? Dec 11 10:34:34 mapiko: ? Dec 11 10:34:36 nop Dec 11 10:34:39 sry Dec 11 10:34:44 misunderstood Dec 11 10:35:12 vitaminwater: Nvm. If it wasn't to me. Nvm :) Dec 11 10:35:39 ok;) Dec 11 10:38:48 anyone knows of other android-dev irc channel ? Dec 11 10:49:47 Any android runtime gurus in the room ? Dec 11 10:59:38 Anyone awake? Dec 11 11:00:15 When in a LinearLayout with a Vertical Orientation.. How can I put buttons next to each other.. Instead on on top of one another? Dec 11 11:00:53 android:orentation= Dec 11 11:00:54 in xml Dec 11 11:01:06 but u need to declare your view in layout-land folder Dec 11 11:01:14 What Dec 11 11:01:15 No Dec 11 11:01:20 I am using a Vertical layput Dec 11 11:01:25 Gentoon, well, if you have a vertical linearlayout you can't have items aligned horizontally in THAT layout right? Dec 11 11:01:27 Orientation Dec 11 11:01:35 What? Dec 11 11:01:39 Gentoon, so either use another linear layout inside with horizontal orientation or use relativelayout as a top layout. Dec 11 11:02:30 Mavrik: Really? I can't use a vertical Layout and have say a 3x3 grid of buttons? Dec 11 11:02:55 it's a LINEAR layout Dec 11 11:03:06 if you wan't to make na non-LINEAR design, use a layout that's not LINEAR Dec 11 11:03:08 right? Dec 11 11:03:22 there's a GRID layout to make a GRID of 3x3 buttons ;) Dec 11 11:04:00 The word Linear has nothing to do in any defenition about placing items ONLY above or ONLY next to eachother, but okay. Dec 11 11:04:32 um, it refers to the fact it places items in a line Dec 11 11:04:35 a line isn't a grid Dec 11 11:04:46 one after another Dec 11 11:04:48 either way Dec 11 11:05:03 That isn't what Linear means, but okay. Dec 11 11:05:09 I get your point. Dec 11 11:05:12 what did it mean to you ? Dec 11 11:05:49 What it means.. Linear as in non expenential Dec 11 11:06:38 Sequential Dec 11 11:07:20 Anyways, I didn't realize it was so complicated to design simple things in android. Disapointing. Dec 11 11:08:13 O.o Dec 11 11:08:14 ok. Dec 11 11:09:48 Gentoon: what were you doing before android dev ? Dec 11 11:10:43 math ! Dec 11 11:11:00 Doing before? Dec 11 11:11:12 This is a hobby, not a job. Dec 11 11:11:27 And I do not believe that matters. Dec 11 11:11:34 I am reading http://developer.android.com/guide/topics/ui/layout/gridview.html Dec 11 11:12:41 I need to understand how these things work better. Seems in my Activity I have a layout and in the layout I can nest more layouts and inside Layouts are Views.. These are all just like containers.. Dec 11 11:13:22 Gentoon: yeah same as java was Dec 11 11:13:30 or java is Dec 11 11:13:34 Hello Dec 11 11:13:38 What? Dec 11 11:13:42 What about Java? Dec 11 11:15:29 So I don't need a gridlayout I just need a gridview Dec 11 11:16:42 yeah and a asynctask with support lib fragments and abs Dec 11 11:16:44 Gentoon you can look in the old phone app (back to froyo) they made a custom layout for a grid of buttons Dec 11 11:16:48 Gentoon, you have ViewGroups which can contain other Views and well, views, which display something on screen Dec 11 11:16:56 Layouts are ViewGroups Dec 11 11:17:07 and Layouts determine how views are stretched and positioned on screen Dec 11 11:17:28 so your UI looks proper on as many screen resolutions and orientations as possible Dec 11 11:21:37 I am just going to do the tuorial I linked Dec 11 11:21:42 Doesnt use a layout at all Dec 11 11:21:54 Just a GridView Dec 11 11:28:16 Seems even better, say if making a simple calculator to maybe use a RelativeLayout with a GridView inside of it Dec 11 11:28:28 Or maybe I don't even need the gridview Dec 11 11:31:47 Gentoon: http://developer.android.com/guide/topics/ui/custom-components.html Dec 11 11:38:45 shmooz: Thanks, I got it though. Dec 11 11:38:56 Just needed to read more about relativeview Dec 11 11:39:00 very powerful Dec 11 11:45:53 I see how it can be difficult to design things so they scale correctly to different screen resolutons though :( Dec 11 12:32:50 is the max filename length constant across all devices or are there differences? what is the minimum (if known)? Dec 11 12:47:29 Hi guys, I have a problem with inflating a LinearView with tow fragments in a ActionBar TabView. If I click on the the tab the second time it says. Binary XML file line #8: Duplicate id Dec 11 12:56:07 ohcibi: it may vary from file system to file system. The minimum is 8.3 Dec 11 13:16:33 Does anyone know how can I change the timestamp of a nmea GSP log file? Dec 11 13:18:46 has anyone had any experience with "FAILED BINDER TRANSACTION" errors? Dec 11 13:21:01 is it easy to use maven dependencies on gradle in eclipse? Dec 11 13:39:36 hi all Dec 11 13:40:34 is there anyway to use a recent version of Apache HTTPClient in Android? Kinda stuck here since the stone age version bundled with Android messes up the name space of the one provided by Apache Dec 11 13:46:13 hy all Dec 11 13:46:59 why does Android Studio says "unable to start the daemon process"? I made GRADLE_HOME variable and browsed the newest gradle Dec 11 13:48:08 FrancescoV: yes definitely. just add something like " Dec 11 13:48:08 dependencies { Dec 11 13:48:08 compile "ch.acra:acra:4.5.0" Dec 11 13:48:08 } Dec 11 13:48:27 ch.acra:acra:4.5.0 is a package on maven central Dec 11 13:49:29 Does anybody have experience with using several instances of WebView simultaneously? ... How many WebView instances would you guys recommend to be run at the same time at maximum ? Dec 11 13:51:35 is it bad to call setBounds on a bunch of times on a few drawables in one onDraw call? Dec 11 14:12:45 hello Dec 11 14:12:51 Morning Dec 11 14:13:34 an ios developer and apple fanboy in team told me that it might not worth to develop the app in android and I should drop it because it would be lower quality as andorid isnt that snappy etc.. Dec 11 14:13:53 what would you respond? Dec 11 14:14:06 on newer devices it isn't a problem really, on older devices android is kind of sluggish Dec 11 14:14:22 I've even seen some stuttering on an S3 Dec 11 14:14:35 mainly I would ask him for the business case for ignoring the majority of smartphones in the world Dec 11 14:14:36 but it being lower quality? Dec 11 14:14:37 targetting tablets only Dec 11 14:14:56 Oh for tablets? If you go that route I would probably go for kindle fire more than anything else Dec 11 14:14:58 then... approximately half the tablets sold today Dec 11 14:15:02 Baluse, why would you want to respond? Dec 11 14:15:04 heh Dec 11 14:15:08 i didnt Dec 11 14:15:21 it is a bussiness app Dec 11 14:15:32 and most of the apps of this kind are ios based Dec 11 14:15:35 Why would you waste your breath with a fanboy anyway? You don't go wasting your time converting religious fanatics no matter what they believe in. Dec 11 14:15:37 maybe some of the samsung tablets, but I beleive the kindle fire has the highest market share of any other android tablet Dec 11 14:15:42 hey hey Dec 11 14:15:54 so I should ignore the fanboy heh Dec 11 14:16:12 I've even seen some stuttering on an S3 <------- only if you dont develop it properly our app runs smooth on most devices from 2.2 to 4.4 Dec 11 14:16:24 Baluse, it's your project managers / managers you need to convince, not Apple fanboys :) Dec 11 14:16:26 lemonxah, not in apps, even on the homescreen Dec 11 14:16:27 its smooth even on a galaxy pocket Dec 11 14:16:37 project manager wants android because it is cheaper Dec 11 14:16:51 but he is kind of fanboy too but because it costs less Dec 11 14:17:06 former coworker had one and would demonstrate that flipping through the homescreen and opening up settings / the apps page could be sluggish / stutter Dec 11 14:17:15 he wants android too Dec 11 14:17:24 Baluse: costs less meaning $25 rather than $99/year, or what? Dec 11 14:17:41 i mean costs less to buy an android tablet Dec 11 14:17:50 than ipad Dec 11 14:18:13 android tablets are awesome though Dec 11 14:18:26 we develop for both ios and android and j2me and bb Dec 11 14:18:36 both** all of those Dec 11 14:18:40 I have an old acer a500. My problem is I have no use for it Dec 11 14:18:41 j2me, heh Dec 11 14:19:03 and tbh i didn't like iOS but since 7 they are coming closer to android Dec 11 14:19:12 the LG 8.4" tab looks awesome Dec 11 14:19:15 one of us, one of us Dec 11 14:19:40 its not a coincidence that iOS 7 looks like android Dec 11 14:19:46 they are copying a pattern that works Dec 11 14:19:47 which is an easy way to store some json text in a textfile ? Dec 11 14:19:59 that's a funny question Dec 11 14:20:07 just... save it to a text file? :) Dec 11 14:20:07 Baluse: open a text file, write some json text into it, close the file Dec 11 14:20:10 so to throw away android over iOS makes no sence cause iOS is striving to be android :) Dec 11 14:20:22 well not striving to be but they are aligning to it Dec 11 14:20:42 i want to write more than one . Dec 11 14:20:43 Hello! I have an android tablet which changes screen orientation when connected to an hdmi screen. Is there any way to avoid that? Dec 11 14:20:46 in the US business world for tablets, iPads have a lot higher adoption rate Dec 11 14:21:04 Baluse, are they the same objects? Dec 11 14:21:11 have a json object that contains a list of them Dec 11 14:21:19 Baluse, wrap them in an object Dec 11 14:21:21 or have the objects one after the other Dec 11 14:21:49 actually i want to store it as strings Dec 11 14:21:52 its only in the US that iPads have a higher adoption rate Dec 11 14:22:03 that is what I said lemonxah Dec 11 14:22:14 yeah :) Dec 11 14:22:26 just added that its only US Dec 11 14:23:15 I do not like apple, but depending on your target market, android may not be worth it now, but the same could be said of iOS with a different target market Dec 11 14:23:54 it is dependant on what you are trying to achieve i guess Dec 11 14:23:59 yup Dec 11 14:24:15 but we have to have both iOS and android Dec 11 14:24:21 well and also j2me and bb Dec 11 14:24:33 we are doing just android, but that's because we get to choose the devices it runs on Dec 11 14:24:34 being the biggest social network in africa and all :) Dec 11 14:24:42 the current app I am working on is for s4 only Dec 11 14:24:48 we dont choose we have to supply it to all Dec 11 14:24:54 yup Dec 11 14:24:57 that is awesome Dec 11 14:25:06 I think that unless you're *just* targeting silicon valley, or some other well-defined group with specific needs, you'd be insane to ignore Android now Dec 11 14:25:08 ours have to run on 3800+ android devices Dec 11 14:25:37 Leeds, if you are talking business tablet market in the US, you could pretty safely ignore android Dec 11 14:26:04 jonc: as long as you don't expect to be doing business in a year or two, sure Dec 11 14:26:24 lol Dec 11 14:26:25 Why my /data is empty if this is a place where all databases should be placed ...? Dec 11 14:26:44 bluesm, there are 2 data folders, the database is placed on the internal one Dec 11 14:26:44 has anyone ever had any issues with "failed binder transaction" errors? Dec 11 14:26:58 the one you are looking at is probably the emulated sd card that gets mounted on your computer's filesystem Dec 11 14:27:02 android is leading the Smartphone market, and lets be honsest that's all that really counts, right? Dec 11 14:27:12 sorry Dec 11 14:27:16 I mean Smartwatch market Dec 11 14:27:32 unless you have rooted your phone you cannot see the app's local data folder Dec 11 14:28:05 (not quite true, but still a good rule of thumb) Dec 11 14:31:44 depending on the device (if it doesn't have 4.3, which has a bug that breaks the functionality), you can basically run commands through the adb shell as an app that is built with the debug flag Dec 11 14:31:49 which means you can get into the shell Dec 11 14:31:57 get into the files through the shell Dec 11 14:33:13 what is the best practice for applying the Navigation Drawer to every activity? Dec 11 14:43:25 jonc: nope ... http://imgur.com/vjRTajU Dec 11 14:49:57 jonc: internal ? I have. No SD card Dec 11 14:51:38 is anyone aware of a permission I should use to restrict calling of my DreamService? Lint complains (for good reason) but I can't find the permission I'd need to require ... Dec 11 14:55:39 can you detect when a user stops with editing a textfield, need to do a apicall search but not for every change (too much api calls) Dec 11 14:55:54 Can someone give me a good example for when to use TouchDelegate? Roman Nurik's example (https://plus.google.com/+RomanNurik/posts/5HDnfDCFWQe) uses a listview, but in that scenario is much easier (and nicer IMHO) to set your ImageButton's src to the image, up its width/height, and scale it with scaleType "center" Dec 11 14:59:05 FrancescoV: Figure out what your definition of the user stopping is.. Then update when that condition has been met Dec 11 15:00:09 guys, how to add right margin for ActionBar element? Dec 11 15:00:37 hello folks...i'm trying to do a ContextMenu for my ListView but it's not working..i've registered ListView and implemented methods for ContextMenu ( onCreateContextMenu and onContextItemSelected ) but still no working...i've tried to put a breakpoint inside onCreateContextMenu but debug don't stop on breakpoint ... my fragment declation is like "public class Banana extends ListFragment implements LoaderManager.LoaderCallbacks< Dec 11 15:03:34 Chainfire: It complains for all exported services. I think they just want devs to either not export or require a permission so the user know if other apps access it. I don't see any permissions related to dreams, so they probably haven't added one Dec 11 15:06:00 SimonVT yeah I get how it complains for all exported services - just thinking it might have indeed been a good idea if there was some system permission required to start dreams. Not really sure what would happen but I could imagine havoc if a rogue app starts randomly launching dream services. Dec 11 15:06:46 oh well at least I didn't overlook it ;) Dec 11 15:11:39 what is the simplest easiest way to find out what country you user is in? If it can be done without requiring location permission that would be ideal Dec 11 15:15:55 Ankhwatcher: IP can sort-of-do it. Dec 11 15:16:19 http://www.geoiptool.com/ Dec 11 15:16:32 This will usually be in the right country. Dec 11 15:16:49 But for me is >500km off. Dec 11 15:16:55 (in the right country) Dec 11 15:18:04 E_COUNTRY_TOO_BIG_EXCEPTION: Get a smaller country Dec 11 15:18:54 http://stackoverflow.com/questions/3659809/where-am-i-get-country @Ankhwatcher Dec 11 15:18:59 Unsure if this requires already permissions. Dec 11 15:19:53 Else I would also tend to use the IP. geoiptool is at my location not that worse @ SpeedEvil Dec 11 15:19:55 100-200km Dec 11 15:20:59 Schalla: why do you want to know what country somebody is in? Dec 11 15:21:06 I don't want to? Dec 11 15:21:21 Dark-Side: I'm in the UK - but it gets where my ISP is - which is at the other end of it. Dec 11 15:21:34 Schalla: why has my irc tool given you the same colour Ankhwatcher Dec 11 15:21:40 as* Dec 11 15:21:40 BlackMagic! Dec 11 15:22:18 I'm pretty much a noob concerning Android Development, I don't need such inforamtion yet. Dec 11 15:22:19 :p Dec 11 15:22:19 Ankhwatcher: why do you want to know what country the user is in? Dec 11 15:22:36 SpeedEvil: mine is about 2 miles out Dec 11 15:22:55 But thats not really hard for London Dec 11 15:27:41 have fragments changed in KK? Dec 11 15:27:45 im so confused Dec 11 15:28:04 my parcel able object doesn't get called to parcel when orientating, but it does if I leave the activity Dec 11 15:28:24 even though I'm calling "outState.putParcelable" in onSavedInstanceState Dec 11 15:33:30 sweet, intellij 13 came out? Dec 11 15:33:43 yup Dec 11 15:33:48 ages ago! Dec 11 15:33:59 I've been gone 2 weeks Dec 11 15:34:26 excuses :) Dec 11 15:46:01 yuck, I have to enable gradle and groovy plugins? that's lame, oh well, should be fine Dec 11 15:50:18 What's the actual mechanism that's used to validate the application-identity [not the user-identity] in this process: http://android-developers.blogspot.com/2013/01/verifying-back-end-calls-from-android.html Dec 11 15:51:15 Context is - I'd like to be able to validate just the app-identity (I don't really want the user-identity) in order to pull out app-sensitive info [eg: oauth-app-secret keys] from a server Dec 11 15:51:33 Maybe there's a less dumb way to accomplish the goal as well - please enlighten me :-) Dec 11 15:53:11 can anyone explain this better to me: http://olegflo.com/test-your-parcelable-classes-carefully/ Dec 11 15:55:01 It seems to indicate a reliable way to test that your parcelable class actually calls writeToParcel(), I guess Dec 11 15:55:07 * pfn kicks intellij 13 Dec 11 15:55:13 it keeps telling me to set android sdk... this is stupid Dec 11 15:55:35 one of these days pfn, you'll break down and revert to emacs ;-) Dec 11 15:55:47 you can test your parcelable w/ unit tests Dec 11 15:56:54 weird, it's not detecting some of my installed platform sdks Dec 11 15:57:50 http://pastebin.com/XTmYyVgu Dec 11 16:02:52 oh well, messing with it further makes it work Dec 11 16:14:16 pfft, unit testing Dec 11 16:27:50 anyone here on osx snow leopard ? Dec 11 16:28:01 I have an urgent request :( Dec 11 16:29:53 I have version 10.6.8 Dec 11 16:29:55 why not just make the request then, instead of wasting time with the polling? Dec 11 16:31:33 evanc: you scared him Dec 11 16:32:01 * evanc flexes Dec 11 16:34:46 Well that's a hassle; latest AS flags release builds as debuggable, then yells at you for setting the debug=false flag in the manifest and says it will do it automatically. :P Dec 11 16:40:57 so, why continue using AS now that intellij13 is out... Dec 11 16:41:05 it even does all the gradle build bullshit, too Dec 11 16:41:08 evanc: cause A it was a long shot, and B I left cause someone was at the door Dec 11 16:41:44 I need the charatermap viewer from snow leopard Dec 11 16:42:22 cause apple has fudged it in lion + Dec 11 16:42:41 Dark-Side: I want to offer the user a variety of products, and default to the products for their country Dec 11 16:44:45 Ankhwatcher: then you'll probably want to use the location permissions Dec 11 16:44:56 the corse location will be fine Dec 11 16:47:13 Could also use their IP address probably Dec 11 16:53:18 pfn: because I haven't looked at IJ yet? heh Dec 11 17:01:51 Hello Dec 11 17:03:11 pfn: because AS is updated by Google. the people who work on the Gradle Android integration Dec 11 17:04:03 i guess if you want less frequent updates and less features then IJ13 is your man. or woman. Dec 11 17:04:11 * pfn shrugs Dec 11 17:04:16 doesn't fit the bill for me Dec 11 17:04:25 gradle is completely at the bottom of my list Dec 11 17:04:36 oh? what do you use? Dec 11 17:05:00 you forget so quickly :p Dec 11 17:05:17 i don't. it's just fun baiting you into talking about scala and sbt Dec 11 17:23:59 the only feature I semi-want out of gradle is build flavors Dec 11 17:39:01 hey, anyone had the issue of children of a group appearing twice after removing some group from an expandablelistview? Dec 11 17:51:25 your adapter is probably wrong Dec 11 17:55:44 pfn: s/probably // Dec 11 17:56:58 hi guys, I have webservice with a function i want to use. How to program android to call it and get data from it? Dec 11 17:57:12 any idea? Dec 11 17:58:34 pfn: i don't think so... i store my objects in an arraylist inside my adapter, i remove from that arraylist through a public method on the adapter, and then call notifyDataSetChanged and invalidateView Dec 11 17:59:13 my getGroupCount is just return arraylist.size(), childcount is arraylist.get(groupindex).size Dec 11 18:01:30 Dec 11 18:03:17 https://gist.github.com/andor44/5157ac58f5dbadd93f5b here's the adapter, with irrelevant code left out Dec 11 18:03:49 i've been fighting this for an hour now and i cannot spot any mistake whatsoever Dec 11 18:04:06 how do i init repo to only get CM11 for mako source ? Dec 11 18:04:41 if i call remove(id), then the specified group gets removed, but one other gets its children repeated in its place Dec 11 18:10:36 Hey, I have a custom view, is there a way for me to know when onDraw as been called and finished executing? I want to do some memory allocation but I dont want to do it inside onDraw since it slows it down Dec 11 18:14:50 Hi, anyone know where I can get the value for "@integer/google_play_services_version" ? I have the google play api linked to the project, but Eclipse is failing to find the value. Assuming I'll need to hardcode it in Dec 11 18:15:00 hi Smashcat Dec 11 18:15:08 hello Dec 11 18:15:17 do you know how to call to webservice? Dec 11 18:15:27 basically i want to learn how to get data from webservice Dec 11 18:15:32 Smashcat: don't hardcode it Dec 11 18:15:42 i do have webservice with a function to get data Dec 11 18:15:44 Smashcat: your eclipse configuration is broken; fix that Dec 11 18:16:05 evanc, is andriod studio better then eclipse? Dec 11 18:16:09 evanc: I've seen others with the same issue, people tend to just hardcode it as Eclipse has a bug. I'm not sure where it is though Dec 11 18:16:16 phong_: if you like it better, yes. If not, no. Dec 11 18:16:22 oh Dec 11 18:16:38 phong_: is red better than blue? Dec 11 18:16:43 dont know Dec 11 18:16:44 lol Dec 11 18:16:58 it probably will be eventually Dec 11 18:17:05 evanc, i meant in term of usability..which is more easy to use? Dec 11 18:17:16 evanc: anything blindingly wrong with my adapter? i'm really hopeless at this point Dec 11 18:17:34 anyway, do u know how to call a function from webservice to get data? Dec 11 18:17:42 i do have a webservice to get data Dec 11 18:20:16 Ah I see the problem. Eclipse has screwed the project up again. Need to create a new project and copy everything over... again. Wish they'd fix this. Ho hum. Dec 11 18:20:26 evanc, this is what i have: http://69.136.73.157/testservice/Service1.asmx Dec 11 18:20:42 so how to call a webservice in android to use? Dec 11 18:21:20 evanc, ? Dec 11 18:21:32 phong_ I think there are plenty of examples of how to make REST calls online (and probably in the example project download for Eclipse) Dec 11 18:21:54 Smashcat, i don't use eclipse Dec 11 18:22:01 phong_: I'm not about to teach you how to internet; sorry. Dec 11 18:22:08 lol Dec 11 18:22:11 wow Dec 11 18:22:17 phone_ : What do you use then:? Dec 11 18:22:34 Smashcat, android studio Dec 11 18:23:28 phone_: Well I'm sure you can download the example projects for that too. Or type "webservice call android" into a search engine like Google? Dec 11 18:23:40 evanc: how can you be such a stuck-up smug little shit? you just tell people off without actually offering any kind of real advice Dec 11 18:23:41 ok Dec 11 18:23:42 thanks Dec 11 18:26:28 i'm trying to center the text inside my custom (vertical) textview: http://pastie.org/8545277. but it doesn't center (in the x axis) a text with a uppercase accented character Dec 11 18:26:31 I think the big problem with Eclipse/Android is that it stores absolute paths to libs etc, so if you're working in a team on a project, everyone needs to reset all the paths. Dec 11 18:27:34 Anyone found a good solution for offlining webpages so they can be used offline in a hybrid app? To me http://developer.android.com/reference/android/webkit/WebView.html#saveWebArchive(java.lang.String) seems the best so far Dec 11 18:28:26 problem is I want this to be offlined in a separate service while the app does other stuff (not showing the WebView) Dec 11 18:34:07 Hey guys! What is the best way to implement a gif image into an android app if i want it to rotate? Dec 11 18:36:34 just learn that build-tool is mess Dec 11 18:37:12 I mean whats the point of bufferoverflow exceptio on a virgin project Dec 11 18:39:25 Hi I have a BroadcastReceiver that publishes a RemoteViews how do I unpublish that RemoveViews from the activity? Dec 11 18:42:40 hi Dec 11 18:43:05 i have a question Dec 11 18:43:54 I have an activity, it starts a service, the service starts a medieplayer. But when i close the activity and remove it from memory, the medieplayer stops Dec 11 18:44:56 Electric_U: you get the LocalBroadcastManager and call unregisterReceiver(...) on whatever thing you don't want to receive broadcasts anymore Dec 11 18:45:59 (gnn2) Hey guys! What is the best way to implement a gif image into an android app if i want it to rotate? Dec 11 18:46:34 gnn2: any particular reason you are using a gif? is it a moving image? Dec 11 18:47:20 Yes its a simple animation Dec 11 18:48:25 gnn2: is it a gif animation - or are you going to rotate in code? Dec 11 18:48:48 It's a gif animation Dec 11 18:48:54 that you will rotate in code? Dec 11 18:49:38 Yes rotate in code Dec 11 18:49:39 snowpong: my receiver is listening for proximity alerts from a LocationManager. When the entering flag is received I publish a RemoteView. I want to close the RemoteView without stoping the proximity alert. Will unregisterReceiver() stop the proximity alert from triggering the BroadcastReceiver? Dec 11 18:51:37 gnn2: if you can seperate the gif, frame by frame, you can use this solution provided by Piotr: http://stackoverflow.com/questions/15022152/how-to-animate-gif-images-in-an-android Dec 11 18:51:44 gnn2: then you've got two problems 1) "how do I show an animated gif on android?" and 2) how do I rotate a view Dec 11 18:52:26 Anyone know where I can find sample data to fill emulator with? Phone numbers, contact info/pictures, and beyond that just random data that a normal user accumulates with long term usage? Relevant phone data though.. not just creating it myself? Dec 11 18:52:29 gnn2: here is a solution for playing back a gif anim https://code.google.com/p/apidemos/source/browse/trunk/ApiDemos/src/com/example/android/apis/graphics/BitmapDecode.java#103 Dec 11 18:52:49 I'm using xamarin is there maybe something ready i can use? Dec 11 18:53:07 gnn2: And heres a code I used a while back to rotate a drawable: http://tny.cz/f58e6f90 Dec 11 18:53:26 gnn2: oh, then I don'th know - that's mostly .NET Dec 11 18:53:29 Imageview* Dec 11 18:54:18 Electric_U: unregistering a receiver does nothing with whatever is being broadcasted Dec 11 18:54:36 Electric_U: I've never used RemoteViews though - what are they used for? Dec 11 18:55:20 Any regulars here that can tell me, yes something like that exists or no it doesn't? Only logged in cause Google isn't producing anything Dec 11 18:55:39 snowpong: https://developers.google.com/glass/develop/gdk/reference/com/google/android/glass/timeline/LiveCard Dec 11 18:55:52 Eeeeeee: I'm not aware of anything like that Dec 11 18:56:03 Thank you Dec 11 18:57:20 Electric_U: aha, cool Dec 11 19:00:40 Found something for contacts at least: create contacts in gmail.com, then export them to a vcf file and use adb to push them to the emulator and then import into Contacts Dec 11 19:03:40 is OnDestroy called when a user presses the back button? Dec 11 19:03:56 on an activity Dec 11 19:04:05 often times, yes Dec 11 19:08:05 hello Dec 11 19:08:12 is this channel about building android itself Dec 11 19:08:19 or about android apps? Dec 11 19:08:24 has anyone tried to access a private method in framework, using reflection? Dec 11 19:13:10 paulo_: mostly apps Dec 11 19:13:41 paulo_: I heard once that platform talk was supposed to happen in #android, but that... quickly changed Dec 11 19:14:22 p_l: Sure Dec 11 19:14:38 SimonVT: re. reflection? Dec 11 19:14:43 Yeah Dec 11 19:15:20 so, it worked I guess? Dec 11 19:16:04 Yep :) Dec 11 19:16:10 On nexus devices at least Dec 11 19:16:32 SimonVT: well, then I know how to get (possibly) every NFC-enabled device to work with Mifare crap :> Dec 11 19:17:01 Just have some kind of fallback behavior Dec 11 19:17:06 (no, there are no NXP parts needed to do so, it's all legal dumbfuckery) Dec 11 19:19:19 SimonVT: there's a method that is declared 'protected' in NFC classes/interfaces that implements the NfcA tag stuff, and the public variant is essentially just calling it with second argument fixed to false, which is kinda all that prevents non-rooted, non-modified use of Mifare tags on headsets without NXP chips Dec 11 19:23:50 p_l: What are we talking about? Using the device as a mifare tag? Dec 11 19:24:14 xaizorx: no, talking & programming mifare tags Dec 11 19:24:38 Anyone have any idea how I can add this lib to an existing project (using Eclipse)? I've tried all sorts, but Eclipse seems to totally screw it up each time: https://github.com/biokys/cropimage Dec 11 19:26:01 when i have FLAG_ACTIVITY_NEW_TASK in an intent, then StartActivity(intent). What will happen if the activity is already running Dec 11 19:32:45 hello Dec 11 19:32:54 i put at finally code to close stream but i get error: unreported exception IOException; must be caught or declared to be thrown Dec 11 19:33:01 at fos.close() Dec 11 19:33:10 p_l: Does it work? Dec 11 19:33:37 Yes, close() throws IOException Dec 11 19:35:18 SimonVT: don't have time to check now, but I think it might be nice christmas time project Dec 11 19:35:22 if (fos != null && fos.isOpen()) { fos.close(); } Dec 11 19:36:22 SimonVT: flag that is set by the public method tells the "hidden" interface whether the data given in first argument is raw or not. IIRC if it's not raw, then the NFC stack has to compute CRC Dec 11 19:36:31 birbeck this code at finaly has the same problem Dec 11 19:36:56 however, if it's raw, you can pass in NXP's shit-for-brains crapto-1 "crypto" Dec 11 19:40:41 If I create a WebView but newer add it to a view, will it still work ? Can I load pages with it? Dec 11 19:40:55 can a WebView live in another thread? Dec 11 19:42:51 Does anyone know a useful site describing how to create a AccountAuthenticator and AuthenticationService on Android? I want to actually do this the right way and the Google docs are a bit light. Dec 11 19:53:11 Anyone know how to include drawable resources for an external lib imported into a project? Currently have an external project import eu.janmuller.android.simplecropimage.CropImage; imported. It references drawables - so I've copied them all into the res/drawable/xhdpi, but it still can't see them Dec 11 19:54:16 Is it better to just copy all the .jaja files from the project into my project, and get rid of the other package path completely? Dec 11 19:54:21 *java Dec 11 20:08:19 So I've got this info page, that is mostly comprised of ImageViews, in a ScrollView. I made different sized versions for the appropriate drawable folders, and it works great on all my new devices. The older devices are pretty choppy though, which I assume has something to do with scaling them. Is there anything I can do to fix this? Dec 11 20:10:09 theblang: Might just be that the old devices don't have any hardware acceleration. If they're really old, who cares? :) Dec 11 20:10:37 Smashcat haha, yeah Dec 11 20:13:05 Is there a broadcast for when the date changes? Dec 11 20:13:21 like when time goes to 00:00, the date changes. How can i pick that up? Dec 11 20:14:43 xaizorx: Guess you could just start a thread to poll the time every second? Dec 11 20:15:16 I am doing that. Calculating time till midnight, and setting alarmmanager, but the alarm wont go off for some reason Dec 11 20:17:58 So i found this: android.intent.action.DATE_CHANGED Dec 11 20:18:06 do i have to add it to the manifest? or just use it Dec 11 20:18:30 Hi. Dec 11 20:35:01 Hi guys, what is the simple way to create camera video streaming to server ? Maybe through MediaRecorder class ? any ideas ? Dec 11 20:46:12 Can someone help me with video streaming from android ? I need help on server side, what to use ? The exact logic , should i embded VLC on site or what ? Dec 11 20:49:48 I am getting error ".. Has leaked IntentReceiver" But I have an unregisterReceiver in my onDestroy Dec 11 20:57:52 how are folks using oauth app-key/app-secret [for non-google providers] handling its storage (or lack thereof) within the app? Any concerns about others recovering your app-{key,secret} and using within their own applications - and perhaps to grab auto-issued tokens to previously authorized users? Dec 11 21:05:16 kbs: are you worried about apps with root access? Or just normal apps on an un-rooted device? Dec 11 21:05:31 How do I get the leftMargin from a ViewGroup.LayoutParam? Dec 11 21:06:21 JesusFreke: less about the user itself, more that someone can just grab the apk file and pull out the app-key and app-secret Dec 11 21:07:13 [I'm resigned to just storing the user's access tokens locally on the device - rooted users are up the proverbial creek ;-)] Dec 11 21:07:51 (er, "locally" meaning, shared preferences or an app-private db) Dec 11 21:08:01 Hey guys, I have a webview with a chromewebclient. I'm trying to display this html http://pastebin.com/raw.php?i=LQgCruXz with a youtube player in it, but all I get is a big blank space where it should be Dec 11 21:12:36 kbs: oh, from the apk itself? hmm. yeah Dec 11 21:23:29 hey, is there some existing ui element for composing a sequence from a set of options? Dec 11 21:23:47 just realized my mistake. Dec 11 21:23:56 to give an example, i'm writing a little addon for my app that allows a user to specify a series of actions that they're going to perform (walk, run, stand still, etc.) -- i'd like for them to click each option to add it in order to a list, allowing for items that have been added to be removed Dec 11 21:24:04 reordering would be nice too, but it's not essential Dec 11 21:25:09 perhaps a listview with some buttons would do Dec 11 21:25:27 Guys, i set my permissions and still get this error, what can be problem ? recorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); Dec 11 21:35:03 DOSP: that's a line of code, not an error, haha. Dec 11 21:35:25 damn sorry :D Dec 11 21:37:52 please, I am trying to read a json http get but my app is breaking on "HttpResponse response = client.execute(httpGet);".. here's my code and stacktrace: http://pastebin.com/vy8Yv6CX Dec 11 21:38:20 I finally found a way to easily archive, and then later when offline restore a webpage. Basically it's WebView.saveWebArchive(...) and an WebView.loadDataWithBaseURL(null, getStringFromFile(savedArchive), "application/x-webarchive-xml", "UTF-8", null); Dec 11 21:38:38 RxDx: "localhost" refers to the phone/emulator/device, not the host PC Dec 11 21:38:53 the format "application/x-webarchive-xml" is sorta undocimmented/unsupported - but it works Dec 11 21:38:53 evanc, sure.. thanks :) Dec 11 21:39:10 RxDx: try http://10.0.2.2:3000/whatever Dec 11 21:39:37 right.. didnt realize that.. thanks bro.. Dec 11 21:40:54 worked.. Dec 11 21:42:53 no problem Dec 11 21:47:31 I've got a 1080 X 1451 overlay image that I am displaying on top of an Activity, using fill_parent on width and high. If I view the app on a 10 inch tablet, it looks awful. Shouldn't that be a big enough resolution? Dec 11 21:48:03 whats the resolution of the tablet Dec 11 21:48:06 Depends on the tablet Dec 11 21:49:46 Seems like a weird aspect ratio too - most Android devices are almost 2:1 (i.e. 1920x1080) Dec 11 21:50:27 Smashcat: maybe it's scaled because you put it in the wrong drawable-somedpi folder... Dec 11 21:50:45 snowpong: Wrong person dude Dec 11 21:50:58 meh Dec 11 21:51:28 theblang: where did you put the image? which folder? Dec 11 21:52:22 snowpong I just did a test, it seems to be pulling from the hdpi folder, not the xhdpi folder. I have versions ranging from xhdpi to mdpi Dec 11 21:52:42 So.. how do I stop stuck Gradle build processes in Android Studio which are running forever? Any ideas? Dec 11 21:52:59 theblang: maybe the name differs :) Dec 11 21:53:26 snowpong it definitely doesn't, I guess the 7 and 10 inch tablets I have are still considered high density? Dec 11 21:53:31 snowpong not extra high Dec 11 21:54:30 theblang: could be, it's the ppi (dpi) not the resolution that determines that really - google them and see what their values are Dec 11 21:54:55 i actually had the issue where it pulled the wrong image asset, didn't need to fix the root cause, i just plopped the xhdpi in the hdpi Dec 11 21:55:02 theblang: You still haven't told us the resolution, or type of tablet Dec 11 21:55:21 smashcat sorry, testing on a Nexus 7 and a Galaxy Tab 2 10.1 Dec 11 21:55:21 Hello. I use retrofit. How can I store permantely 5 results ? Dec 11 21:55:27 theblang: http://blog.blundell-apps.com/list-of-android-devices-with-pixel-density-buckets/ Dec 11 21:55:35 theblang: seems to be some interesting info there Dec 11 21:55:58 Baluse: How is retrofit related? Dec 11 21:56:06 snowpong very interesting. good grief, the tab 2 uses mdpi Dec 11 21:56:20 snowpong that is an interesting problem, how shoudl I make it use the xhdpi version Dec 11 21:56:58 Think there are some tablets/phones now using xxxhdpi . Google will soon have to refactor the naming convention I think Dec 11 21:57:22 theblang: for larger images, I tend to just plopp them in -nodpi and then scale them with f.ex centerCrop ... don't know if others do similarly (not assets, but larger splashscreen images or whatever) Dec 11 21:57:32 porn resolution ;) Dec 11 21:57:42 pornhdmi :P Dec 11 21:57:44 :) Dec 11 21:58:01 snowpong yeah, I think ill try that. just gotta make sure my lower rez crappy versions aren't effect too badly Dec 11 21:58:11 keep getting this weird re-occurring onslaught off cancelled transaction in Play store for my app in australia, someone trying to use the same credit card, keeps getting declined, etc Dec 11 21:58:31 honestly it probably wont gappen if it breaks older android app compitiability. Dec 11 21:58:33 over and over and over ... Dec 11 21:58:55 thats weird g00 Dec 11 21:59:32 g00s: Might be some kid. Dec 11 21:59:44 is it possible to reference a R.drawable dynamically? me.setImageViewResource(R.id.image1, R.drawable.DYNAMIC); Dec 11 22:00:20 Electric_U: it's just an integer value Dec 11 22:00:46 do you mean look it up by name dynamically? Dec 11 22:00:51 Electric_U: http://developer.android.com/reference/android/content/res/Resources.html#getDrawable(int) ? Dec 11 22:02:20 snowpong so the galaxy ace, which has the smallest resolution ive ever seen uses mdpi, and so does the galaxy tab 2 10 inch tablet.... that seems to present a problem Dec 11 22:02:32 Electric_U: it's technically possible, but you really shouldn't. You should fix your design so you don't have to do that. Dec 11 22:02:50 will this give me what I want? getIdentifier (String name, String defType, String defPackage) Dec 11 22:03:44 theblang: Well it's dots per inch, so they could be in the same bucket. A 1" screen at 400x300 res would be xxhdpi or more too I guess Dec 11 22:04:14 smashcat yeah, I get why that is. but I would think there would be another way to handle drawables then Dec 11 22:04:45 theblang: there is also -large -small -iveforgottentmeall Dec 11 22:04:54 theblang: Well you can also get the native resolution if you need it, but you don't really need to know the actual resolution for many uses Dec 11 22:04:59 snowpong: I'm displaying a remoteView populated with info based on which ever thing from a set list you are closest to. Dec 11 22:05:44 Electric_U: on google glass - so people walk around and stuff pop up? Dec 11 22:06:12 snowpong smashcat so I took away the different versions, and just used drawable to house my larger version. it looks great now on tablet, but awful on the small galaxy ace. lol Dec 11 22:06:54 smashcat snowpong ohhh, I see. I can do this http://stackoverflow.com/a/16080277/1747491 Dec 11 22:07:00 theblang: http://developer.android.com/guide/practices/screens_support.html#NewQualifiers Dec 11 22:07:22 you got it Dec 11 22:07:42 Augmented reality if you will Dec 11 22:07:47 Electric_U: http://indoo.rs/ <- indoor GPS with 5 meter accuracy Dec 11 22:08:01 Electric_U: can also tell which floor you're on Dec 11 22:08:20 Electric_U: you're one step closer to minority report adds ;D Dec 11 22:10:06 that is sick not that sophisticated in my app yet... It's just a tour guide but it should only show cards if the place is in your direct line of site. Dec 11 22:10:09 I want to write an app for Google Glass - so it'll do facial recognition and pull someone's comments and posts from Facebook, Twitter, Reddit or whatever, and tokanise it to put a floating bubble above their heads with either "ok", or "twat", so I can tell who to avoid :) Dec 11 22:10:46 =) I was thinking of a facial recon app that would remind you what you talked to them about last... Dec 11 22:12:12 Hey, I've just added a library to my gradle build, what's the best way to add the libraries autocomplete stuff / documentation to Andrid Studio? Dec 11 22:12:29 Electric_U: sounds cool, never tried google glass stuff Dec 11 22:14:48 I need help. Dec 11 22:15:20 In app billing is breaking every way till tuesday Dec 11 22:15:52 I bought a product "android.item.purchased" or whatever that special key is, and now everything is broken. Dec 11 22:16:05 I get In-app billing warning: Purchase signature verification **FAILED**. Not adding item. Dec 11 22:25:20 i must be stupid, but i'm still kinda confused between AS and IDEA 13 CE; yeah yeah i know they are based on each other, great ! but if I use one or the rother, what am I missing? for example, only 13 CE seems to have this cool sqlite editor that is specific to that ide; if I use 13 CE what features from AS will i be missing, and on what schedule will the 'presumably' be merged into CE ? Dec 11 22:25:58 why do you care? Dec 11 22:26:05 i told you IJ is the shit Dec 11 22:26:14 * g00s smacks bankai_ Dec 11 22:26:17 "Developers have reported that IntelliJ IDEA’s higher level of support for Gradle is the biggest difference between the two IDEs." Dec 11 22:26:34 if i'm reading, sounds like they are saying CE has better gradle support than AS ? Dec 11 22:26:35 that's not a very clear cut statement, is it ? Dec 11 22:27:01 i wonder if it means "you can also use it for stock standard java apps" Dec 11 22:29:47 IJ? Dec 11 22:29:51 That's in Amsterdam :) Dec 11 22:37:32 when i run an activity (using fragments) in android < v 15 i end up in Class Not Found exeptions Dec 11 22:37:43 is it possible to fix this? Dec 11 22:38:18 java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{ Dec 11 22:38:20 smart1: use the support library with support fragments Dec 11 22:40:11 or set minsdk = 14 Dec 11 22:40:28 i want to run in >10 Dec 11 22:41:07 someone know how i can include the support lib after downloading it by the sdk manager? Dec 11 22:41:18 i do not find the file Dec 11 22:42:21 it's hidden quite well Dec 11 22:42:46 smart1: /extras/android/support/ Dec 11 22:42:53 thx Dec 11 22:42:56 https://developer.android.com/tools/support-library/setup.html Dec 11 22:52:45 ok, the converting was easy but i'm missing one method. Dec 11 22:52:53 the getActionBar from the activiti Dec 11 22:55:18 getsupportactionbar Dec 11 22:59:02 g00s: you around ? Dec 11 22:59:26 This garbage where you can only query 20 IAB skus at a time is really annoying Dec 11 22:59:34 Does anyone use a working solution for this? Dec 11 22:59:40 The solution i have downloaded doesn't work Dec 11 22:59:40 is the x86 emulation of android faster? and does it make sense to use it for arm development? Dec 11 23:00:04 smart1: you won't be able to do any native stuff if you use that Dec 11 23:00:41 bankai_, you talk about super user privileges? Dec 11 23:00:48 bankai_: not true. You can compile native stuff for x86 and arm at the same time, and use the x86 binaries in a virtual x86 device and the arm binaries on your hardware device Dec 11 23:01:19 but if you're not using natove stuff at all, then you shouldn't worry about cpu architevtures at all Dec 11 23:01:50 but is the emulator runnig faster? Dec 11 23:01:59 and yes, x86 is faster, becuase you can virtualise a x86 device, you don't need to actually emulate a complete cpu Dec 11 23:02:08 ok, thx Dec 11 23:02:21 I use Genymotion instead of the default emulator, because of the performance Dec 11 23:03:12 the x86 images + haxm is pretty nice, but it doesnt work anymore for me on 8.1 Dec 11 23:07:25 hey bankai_ Dec 11 23:07:50 g00s: which OS do you have IJ13 running on? Dec 11 23:07:51 desmin88 does genymotion work for you? works great for me Dec 11 23:08:01 bankai_ oh, i'm using mac os 10.7.5 Dec 11 23:08:05 yeah geny works for me Dec 11 23:08:24 had to dick around with registry settings to get it to work Dec 11 23:08:27 can you paste me the output of find . in your plugins dir? I've compiled IJ from source and i'm not getting any of the android stuff for some reason Dec 11 23:08:50 bankai_ i have AS Dec 11 23:09:02 i switched back and forth and now just have AS Dec 11 23:09:18 is it a plugin in IJ or is it integrated? Dec 11 23:09:46 bankai_ i'm sorry, can you clarify? is what a plugin? Dec 11 23:09:54 the android stuff Dec 11 23:10:29 thats kinda my confusion; i don't know what deltas between the 2 are baked in vs plugin Dec 11 23:10:49 i think its kinda like 2 snakes eating each others' tail Dec 11 23:11:43 does ANYBODY Dec 11 23:12:17 anybody what Dec 11 23:12:58 hi all Dec 11 23:13:22 has anyone ever encountered this crazy exception : java.lang.ClassCastException: org.apache.harmony.luni.lang.reflect.ImplForVariable cannot be cast to java.lang.Class Dec 11 23:13:25 ? Dec 11 23:13:28 driving me crazy Dec 11 23:13:49 get it when calling getActualTypeArguments() Dec 11 23:13:55 for reflectivity Dec 11 23:14:19 been trying for hours reinstalling every thing, tried on another computer etc.. Dec 11 23:14:22 ? Dec 11 23:15:10 well obviously' Dec 11 23:15:12 my SO on this http://stackoverflow.com/questions/20498162/out-of-nowhere-classcastexception-in-android Dec 11 23:15:30 obviously ? Dec 11 23:15:47 wrong channel Dec 11 23:15:48 sorry Dec 11 23:16:08 erf... that's one of the worst false hope I got in ages ;) Dec 11 23:17:31 What could I do to wait for a user input for each iteration in my loop? Dec 11 23:17:59 It's a yes or no from the user that would decide on which method to call. Dec 11 23:18:14 what do you mean by user input ? Dec 11 23:18:18 button press ? Dec 11 23:18:20 Yes. Dec 11 23:18:26 and what loop are you refering to ? Dec 11 23:18:38 are you in a thread ? Dec 11 23:19:04 if you loop in the main thread you freeze the ui, so your not going to get any input event Dec 11 23:19:14 *you're Dec 11 23:19:38 No.. I need to filter out a list of words depending upon the user button press. If he says no, I keep filtering, if he says yes, I make some changes, and iterate again. Dec 11 23:20:38 I am dynamically building UI elements with layoutInflator. The elements that are generated are going to be based on the contents of an xml file. I am wanting to make a configuration class that holds all the elements parsed from the xml file. Do think it would be a good idea to make the class have lists of elements and add them to the list as it is parsed? Dec 11 23:20:52 Basically it's like an infinite loop, but should wait for the user input to complete one loop. Dec 11 23:21:00 Node: I'm sorry but what do you mean by filtering, I don't really understand how you can filtering forever, is there network involved ? Dec 11 23:21:35 I'm sorry to confuse you. Filtering a list of words. Dec 11 23:21:48 No, I'm using a large text file to get a list of words. Dec 11 23:22:15 ok, so the filtering can be quite long.. I guess you are doing the filtering in a thread, right ? Dec 11 23:22:51 No I'm not using a thread Dec 11 23:22:55 ... Dec 11 23:23:01 then you are freezing the ui Dec 11 23:23:21 Yeah. Dec 11 23:23:28 then doesn Dec 11 23:23:34 't the anr kick you ? Dec 11 23:24:54 sorry? Dec 11 23:24:55 actually you are meant to do long time jobs in a thread, create a Handler in this thread, and use this Handler to send messages to it. Dec 11 23:25:16 Node: http://developer.android.com/training/articles/perf-anr.html Dec 11 23:25:47 Node: http://developer.android.com/reference/android/os/Handler.html Dec 11 23:26:01 sirpatrick: could you clarify ? Dec 11 23:26:07 stant Do you mind if I pvt with more information on what I'm trying to do? Dec 11 23:26:17 alright Dec 11 23:26:20 Thanks. Dec 11 23:27:55 In my xml file each node is a UI element. Each will have a tag that says if it is a textbox, dropdown, etc. What would be the best way to store all of the elements parsed from the file to be based to a layoutInflator method that adds elements Dec 11 23:28:14 to be passed to a layoutInflator method * Dec 11 23:32:25 do you want to store the layout associated with elements ? Dec 11 23:32:53 Yes Dec 11 23:33:17 we can say no for now if you would like to discuss that with me Dec 11 23:34:35 actually it is possible to get a layoutId from its name Dec 11 23:37:16 Ok Dec 11 23:40:16 sirpatrick: use getIdentifier from the Resources object in your context Dec 11 23:44:40 hi Dec 11 23:46:19 what's the best way to build an android app with a native lib with gradle? Dec 11 23:46:48 i think the android gradle 0.7.0 plugin is supposed to have better ndk support? Dec 11 23:47:07 it should be right around the corner Dec 11 23:47:17 nice! Dec 11 23:47:22 http://tools.android.com/tech-docs/new-build-system/roadmap Dec 11 23:47:42 i think some people have hacked it already, but i cant say - don't use ndk Dec 11 23:48:34 I hope it comes out soon Dec 11 23:48:38 however, thanks! Dec 11 23:50:15 np Dec 11 23:50:33 on that note, where is the next gradle plugin with 1.9 support :P Dec 11 23:57:57 I run an AsyncTask execute on main thread to get a json request. Everything works fine I have my String result variable correct on onPostExecute() method. Please, how can I send this result to my main thread? I mean, how can I access the result of the AsyncTask on the main thread? Dec 11 23:59:36 heres my code http://pastebin.com/qaQdAFD4 Dec 12 00:02:06 RxDx: i use a listener class that allows my task to deliver the payload Dec 12 00:03:12 desmin88, can u recommend any tutorial that explains it? Dec 12 00:05:54 desmin88, got it.. thanks :) Dec 12 00:07:15 just went through literally almost all of the sample apps... is it just me, or do the worthwhile ones use some variation of an icon with a projector backdrop? http://oi43.tinypic.com/2d79f6x.jpg Dec 12 00:12:25 when I run or debug a program on the device from Eclipse, it doesn't show up on the Phone Dec 12 00:16:29 anyone else notice the same or am I the dorkiest one here Dec 12 00:19:47 dunno Dec 12 00:21:54 maybe the samples are just getting better and this is the best looking icon combination Dec 12 00:23:26 lol know what's best icon of all? Dec 12 00:23:42 projector screen in projector screen, all way in. ;) Dec 12 00:23:43 i bet you're gonna tell me! Dec 12 00:23:47 hahahaha Dec 12 00:25:37 definitely going to make one now Dec 12 00:25:44 :) Dec 12 00:25:51 ythen make app for it, no? Dec 12 00:26:15 that's how everyone's creative process works right? Dec 12 00:26:28 icon first, app second. that's what i always say Dec 12 00:26:36 lol Dec 12 00:31:03 what's a good, light, and up-to-date 3d engine? Dec 12 00:31:34 unity Dec 12 00:31:38 I know of Rajawali and libgdx, would like to know if there are any more Dec 12 00:31:39 unity Dec 12 00:31:39 no :p Dec 12 00:31:47 please not unity xD Dec 12 00:31:48 good and up to date anyway Dec 12 00:32:05 it's the opposite of light though :p Dec 12 00:32:20 and is more of a "game maker" than an engine Dec 12 00:32:55 when I run app from Eclipse to be launched on the phone I get this http://pastebin.com/FUG8pp0g Dec 12 00:33:13 friend just won awards with app he made using unity.. i'm beta testing it. Don't know how to tell him that the android version suckssss Dec 12 00:33:38 Eeeeeee: start by googling a dictionary of insults? Dec 12 00:33:43 frankdrey: http://www.jpct.net/jpct-ae/ Dec 12 00:34:01 shmooz, really, really old :( Dec 12 00:34:12 lol that response just seems like an irc bot response for some reason Dec 12 00:34:26 well he is friend, and it did win stuff.. who am I to insult Dec 12 00:34:39 or...at least last I checked... Dec 12 00:34:45 * frankdrey looks again Dec 12 00:34:58 old doesn't mean bad Dec 12 00:36:15 what about the new phones with gl 3? Dec 12 00:36:17 i'm guessing unity doesn't let you use activity/xml to make your interface better? maybe he's just lazy. Dec 12 00:36:35 Eeeeeee, Unity isn't very flexible from my experience Dec 12 00:36:35 frankdrey: http://mobilegameengines.com/android/game_engines Dec 12 00:37:04 Does anyone know about "11546-11564/? E/ExternalAccountType﹕ Unsupported attribute readOnly" ? When try to run my program, it compiles fine, but during loading it or running it on the phone, something happens, and the app will not start (no indication of anything on the phone) I am guessing, but no sure, that it has somehting to do with that error it spits out Dec 12 00:37:05 shmooz, thanks :D Dec 12 00:37:50 that's what i guessed because all android patterns were lost with the interface Dec 12 00:42:55 zzxx http://imgur.com/jacoj Dec 12 00:45:58 hmmm jmonkeyengine looks interesting Dec 12 00:47:31 did you see the psychics library google just released? Dec 12 00:47:35 Eeeeeee: thanks, please bear with me, I am trying to find the stack trace Dec 12 00:47:58 wha? Dec 12 00:48:45 no problem, a quick google turned up this, but it might not be relevant: "It seems like a problem with the phones firmware. This might hapen if you want to use a feature not really supported by your phone (like playing unsupported media, using unsupported OpenGL commands, etc.)" Dec 12 00:49:06 XXCoder1 if that was directed at me http://google.github.io/liquidfun/ Dec 12 00:49:19 ooking Dec 12 00:49:21 l Dec 12 00:49:47 thats cool. Dec 12 00:50:17 probably a lot cooler than google's demonstration lol Dec 12 00:50:57 lol probably yes Dec 12 00:55:22 Eeeeeee: I am not trying to do anything fancy that would be unsupported. I'm just learning about fragments (on a kitkat phone). It is a very bare bones application. Dec 12 00:55:25 However, I did find these errors which may be more telling of what is happening http://codepad.org/LPM2lqPj perhaps someone could help me understand them Dec 12 00:55:35 maybe something is wrong with my xml? Dec 12 00:56:34 data/app/vmdl220860893.tmp Dec 12 00:57:33 hmmmk gonna give jmonkeyengine a shot :D Dec 12 00:57:39 if anything, i guess i'll go with rajawali Dec 12 00:58:41 frankdrey: what will you make ? Dec 12 00:59:04 shmooz, a game :p Dec 12 01:01:57 Eeeeeee: what is this file? Dec 12 01:02:42 post your stacktrace Dec 12 01:03:00 where would i find it in android studio? Dec 12 01:03:09 Google it Dec 12 01:04:30 google is your friend, and so is stackoverflow. Use those for 10 minutes before asking for help Dec 12 01:06:54 Eeeeeee: i understand that it is important to search out solutions to your own problems, and not just come in here and be a helpless person nagging for answers. To be honest though I have been sorting through google and stack overflow for the last half hour without any luck Dec 12 01:06:59 there's always a different way to form your search queries to google... take the errors, remove unique identifying information like numbers, paths, etc Dec 12 01:07:18 does the stacktrace come up in logcat? because I am not getting anything come up there Dec 12 01:08:41 log level: error.. or only show logcat from selected process, and select your app Dec 12 01:09:47 http://lmgtfy.com/?q=android+does+the+stacktrace+come+up+in+logcat%3F Dec 12 01:10:50 you're forming your questions right just using the wrong program to search Dec 12 01:12:35 don't be scared to go through every result on the first 3+ pages, I often do if I know it's easily solvable Dec 12 01:18:46 blargh Dec 12 01:18:52 jmonkeyengine build failed Dec 12 01:18:55 CBA to fix it :P Dec 12 01:19:00 Rajawali is good enough anyway :P Dec 12 01:19:35 Had to force my retired computer illiterate parental units to learn the basic google search operands Dec 12 01:22:09 I haven't heard of either of these engines Dec 12 01:23:34 Rajawali is good but lacks up to date docs Dec 12 01:25:34 they're adding gl 3s 3.0 even Dec 12 01:25:35 have any games released? Dec 12 01:25:41 *gl es 3 Dec 12 01:26:03 i don't know what it is, but i've never been able to wrap my head around how to do layouts, despite being a (in my humble opinion) competent web developer Dec 12 01:26:17 is there a guide or tutorial out there that explains it all succinctly? Dec 12 01:26:44 https://www.youtube.com/watch?v=-XpLxw3-vkk Dec 12 01:27:01 Eeeeeee, ^ Dec 12 01:28:19 Eeeeeee: thank you for your help and patience. I solved the error. There were some invalid cache issues in the intellij ide its self. I just had to rest the cache and now it is working. Dec 12 01:28:35 looks cool from flipping through.. on capped bandwidth. Was wondering if you've released any games yet frankdrey Dec 12 01:29:36 Eeeeeee, not for android :P Dec 12 01:29:45 I made some shitty PSP game once with a friend though xD Dec 12 01:30:05 http://www.youtube.com/watch?v=x1k2lLYdjN8 Dec 12 01:30:34 zzxx awesome Dec 12 01:30:44 haha. quake1 made me really want to learn opengl, but never took the plunge Dec 12 01:32:11 is it true that fragments are more expensive than activities?? Dec 12 01:32:21 i mean sure, you have to put a fragment -in- an activity Dec 12 01:32:49 Eeeeeee, we didn't really do much low level stuff, it was actually written in LUA Dec 12 01:32:51 but you can have multiple fragments in one activity, which has gotta be cheaper than multiple activities in an activitygroup, for instance Dec 12 01:32:57 http://runawaycar-psp.googlecode.com Dec 12 01:33:09 hey that's not bad, looks pretty addictive actually Dec 12 01:33:40 otiose, isn't OOP more expensive than /regular/ programming?:P Dec 12 01:34:18 sorry, i dont get the analogy :( Dec 12 01:35:00 i'm mainly an iOS guy now working on android with some android guy; From my research, i think we should be using fragments, but he disagrees because they are expensive Dec 12 01:35:20 basically, their benefits outweigh how "expensive" they are Dec 12 01:35:26 ya Dec 12 01:35:43 i figured as much Dec 12 01:36:06 kinda worried to see what he comes up with Dec 12 01:36:11 win, got Rajawali set up in IntelliJ :D Dec 12 01:36:24 wasn't as hard as last time I tried it xD that was...fun Dec 12 02:12:05 hey, i'm getting a 'cannot resolve method vibrate(int)' with this: v.vibrate(300). any idea why? i've imported android.os.Vibrator Dec 12 02:12:20 and declared v with: v = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE); Dec 12 02:12:54 has somebody else run into this? Dec 12 02:13:55 got the vibrate permisson? Dec 12 02:14:09 yep. actually, i think i figured it out Dec 12 02:14:24 i'm using the variable v somewhere else :/ silly mistake Dec 12 02:14:35 public void onClick(View v) { Dec 12 02:19:13 Don't use 1 letter variable names :p Dec 12 02:21:45 onClick(View vw) { Dec 12 02:25:45 onClick(View $){} Dec 12 02:27:39 :P Dec 12 02:35:30 test Dec 12 02:36:12 bah, I can't beleive we still don't have a reliable smoothScrollToPosition() methon on ListViews in Android. Like... how is that possible!! Dec 12 02:49:25 hi guys Dec 12 02:49:52 does anyone know if there are books about how to use or programming with Android Studio sdk? Dec 12 02:50:06 anyone? Dec 12 02:50:25 I want to learn android Dec 12 02:50:31 Eeeeeee ? Dec 12 02:50:33 we need to get all those jquery plugin writers to come help us out lol Dec 12 02:50:41 hehe Dec 12 02:50:43 sry hit enter on accident Dec 12 02:50:49 Phong_, do u know Java yet? Dec 12 02:50:58 i'm learning as we speak. my first app is a flashlight app. taking bits and pieces from github and stackoverflow. best way to do it IMO Dec 12 02:51:20 izolate: not always ... there's a LOT of very very bad information on SO Dec 12 02:51:35 java sdk? Dec 12 02:51:47 this is true. but you gotta be smart. look for the latest stuff, and answers that are ripe in discussion Dec 12 02:52:12 Wavesonics, something like book that will walk you thru step by step Dec 12 02:52:13 even still, they lock answers to prevent thanks, and 2 api's later Dec 12 02:53:05 Phong_: there's heaps of tutorials on d.android.com ... maybe AS isn't a great thing for beginners, use eclipse until you've gotten used to android code Dec 12 02:53:11 Wavesonics, i have programming skills but i just need to know android environment Dec 12 02:53:14 so my flashlight app is pretty much done, and works on the Nexus4, S3, HTC1... but not my own nexus5 :P how sad is that? Dec 12 02:53:15 definitely not the best way to do it, but I can't say anything cause that's kind of how I'm doing it as wel Dec 12 02:53:19 hi, anybody from usa? Dec 12 02:53:26 the camera APIs on the N5 must be different Dec 12 02:53:33 julito30: 90% of this channel is from the US Dec 12 02:53:47 people from usa: do you know the game named PANG? Dec 12 02:53:55 bankai_, i meant is there a book ? Dec 12 02:54:00 is a famous game in usa? Dec 12 02:54:11 angry birds, fruit ninja ! Dec 12 02:54:13 Phong_: Android Development for Dummies? Dec 12 02:54:14 I keep having to use eclipse to convert old projects, and wow I'm so glad I took the time to deal with AS even with all the bugs Dec 12 02:54:18 * g00s doesn't even play games, but heard of those Dec 12 02:54:38 izolate, are they teach how to code in that book? I hope not... Dec 12 02:54:49 izolate, i am more like how environment things are Dec 12 02:54:54 g00s you should play them, for research :P Dec 12 02:55:05 buddy, if you don't know how to code, start with CodeAcademy Dec 12 02:55:26 Dear Google, Fix yo shit. Naming something smoothScrollToPosition(), and not having it do so for 5 years is no acceptable. Dec 12 02:55:31 izolate, i know how to code, just i am not familiar with the environment of eclipse or android studio Dec 12 02:55:36 Love, The internet Dec 12 02:56:16 attempt to fix it yourself and open source it Dec 12 02:56:17 Phong_: you know how to fix that? Install Android Studio, start a new project and play around. Also, do a 101 tutorial from YouTube Dec 12 02:56:19 Phong_: youtube is your best option Dec 12 02:56:22 izolate, it's like if you ask me how to code in Visual Studio, then i know where things are and what are needed Dec 12 02:56:52 so i'm not familar what is needed in eclipse or android studio...you get my points Dec 12 02:56:54 ? Dec 12 02:57:07 does people in USA know a game named PANG or buster bros? Dec 12 02:57:07 so is there a book show how to use it? Dec 12 02:57:12 Wavesonics: curious, what does smoothScrollToPosition() *actually* do? Dec 12 02:57:16 julito30: shutup Dec 12 02:57:47 julito30 the most familiar game we play in the US is "the american dream" game Dec 12 02:57:49 Phong_: I get your points. Sorry, but there's no shortcut. You have to just dive into the deep end, open up AS/Eclipse and get started Dec 12 02:58:02 nobody really wins that one though Dec 12 02:58:07 except a few Dec 12 02:58:10 izolate, i got the android studio installed and JAVA installed too...run the new demo project, it runs in emulator, then what? still have no idea what is being done there Dec 12 02:58:37 but everyone gets to play Dec 12 02:58:57 can aussies play? Dec 12 02:59:09 Go to your activity.xml and click "design" and add some elements to your view Dec 12 02:59:10 yes, and everyone considers themselves temporarily embarrassed millionaires Dec 12 02:59:12 izolate, it's odd where someone create android studio without it's manual? Dec 12 02:59:18 izolate, it's SUPPOSED to do an animated scroll from where ever you are in the list, to the position you specify. The problem is, the ListView doesn't know the size of all the elements between where you are and where you're going, so it simluates a "fling" animation, then when that finishes, checks to see if it made it to the desired position, and not not, does another fling. But it's buggy, and doesn't actually get you to where you asked it to ge Dec 12 02:59:18 t you... Dec 12 02:59:28 izolate, i know that, deisng and text view Dec 12 02:59:49 and your coach, that used to say winning isn't everything, well that's because he was losing at this game **** ENDING LOGGING AT Thu Dec 12 02:59:59 2013