**** BEGIN LOGGING AT Sat Apr 13 02:59:58 2013 Apr 13 03:00:38 well read() allways blocks if the the 4096k does not fill Apr 13 03:01:30 i have tried to use java.nio but im not familiar on how to implement a socket that does not connect to a server Apr 13 03:03:07 I wish I could assist you mmo:( Apr 13 03:03:25 but I just learned how to create a android project today Apr 13 03:03:54 its no problem i worked around that problem. now im trying to figure out how to toast from a background thread Apr 13 03:04:13 nice thats awsome you are doing what you need to to start learning Apr 13 03:04:21 having any problems with the sdk? Apr 13 03:05:51 I'm doing a guide, doing well so far :) Apr 13 03:05:59 nice =) Apr 13 03:06:15 stackoverflow will be your friend Apr 13 03:06:17 mmoassistdev1: can't you create an if statement that checks if the user hasn't clicked the screen for a certain amount of time. after a certain amount of time has passed without clicks, the toast shows. Apr 13 03:07:51 well if i did something like that it would block the ui thread Apr 13 03:08:51 i have a while statment that checks the buffer to see if it is able to be read from without blocking if it cant be read from. I want a messege to tell the user to keep tapping the screeen Apr 13 03:09:36 why? Apr 13 03:10:21 becasue im filling the buffer with the output of getevent and i need them to fill the buffer so they can get the output of thier touches Apr 13 03:10:42 you could update the layout before starting the async task and update it again after the task completes. or you could do incremental ui updates or show toasts from the AsyncTask's onPublishProgress Apr 13 03:10:55 unless you're using it to collect entropy for key generation, or something like that - you're doing something insane Apr 13 03:11:30 but i need the toast to fire in the middle of the task not at the beginning or end Apr 13 03:11:46 i know im doing something insane Apr 13 03:12:05 but im up for the challenge Apr 13 03:12:18 you can call publishProgress from your doInBackground to trigger a call to onProgressUpdate on your UI thread Apr 13 03:12:51 ohhhh then i can call the toast from onprogressupdate? Apr 13 03:13:12 i been reading about that still have not got it to work Apr 13 03:13:32 have problems with implementing it so man errors Apr 13 03:13:56 an in-layout notification might make more sense than toast as toast's only have fixed durations Apr 13 03:14:23 lett me google in-layout notification Apr 13 03:14:36 :/ Apr 13 03:14:52 i just mean like a TextView that says "Please touch the screen" Apr 13 03:17:39 i have not messed with textview. wouldt that cover up my main activity view? keep in mind i am new to object orianted programming and java so i basicly brute force code till it works haha Apr 13 03:17:56 messed with textview? it's about the most basic UI element in Android... Apr 13 03:18:15 if you haven't dealt with it, you haven't done the basic training and tutorials, which might explain a lot... Apr 13 03:19:02 mmoassistdev1: seriously, you need to take things a lot more slowly and work out what the fsck you're doing, rather than blundering around blindly until you find something which sort of works Apr 13 03:19:26 yea my app is a mess but it is functional so oh well Apr 13 03:19:38 I bet it isn't Apr 13 03:20:02 functional, that is - I bet it has all sorts of interesting failures built in Apr 13 03:20:14 lol but it works Apr 13 03:20:31 what is it actually meant to do? Apr 13 03:21:01 i mean all i need is to send messege to use from the doinbackground seems i get stuck on the hard stuff not the easy stuff i can read Apr 13 03:21:08 does not mean i have to understand everything Apr 13 03:21:15 im going to college for that Apr 13 03:21:43 took my first object programming class this semester Apr 13 03:22:16 ah, if a job's worth doing, it's worth fucking up? Apr 13 03:22:23 im learning slowly about standerds Apr 13 03:22:56 but im trying to push my app so that i can pay for school Apr 13 03:23:06 oh my Apr 13 03:23:09 seriously? Apr 13 03:23:14 so i cant afford to learn every detail right now Apr 13 03:23:18 mmoassistdev1: hope you have goof finiancial aid ;) Apr 13 03:23:25 but i will learn as i go Apr 13 03:23:28 goof is the word, yes Apr 13 03:23:32 :D Apr 13 03:24:00 seriously, if you think you're going to pay for schooling with some random app, without actually ever learning how to code, you need to think again Apr 13 03:24:15 mmoassistdev1: if you're lucky, your app may pay for lunches Apr 13 03:24:27 it works and i can allways update it and fix things Apr 13 03:24:31 if you're lucky, your app may pay back your $25 fee Apr 13 03:24:48 he will make the next Facebook and then come ballin' at yall haterzzz Apr 13 03:25:06 thx dah Apr 13 03:25:36 i'd focus on school ;) Apr 13 03:25:48 now that i have made a fool of myself i guess i wont ask for any more help i was only be real with all of you Apr 13 03:26:12 neither steve jobs nor bill gates finished school Apr 13 03:26:16 mmoassistdev1: nothing wrong with asking for help Apr 13 03:26:20 mmoassistdev1: i'm being honest with you; dont expect your app to pay for school Apr 13 03:26:21 neither did I Apr 13 03:26:29 what's wrong is being proud of not bothering to learn properly Apr 13 03:26:38 lol if i get over 100k downloads it will pay for school Apr 13 03:26:42 learn properly Apr 13 03:26:45 hahaha Apr 13 03:27:04 http://en.wikipedia.org/wiki/List_of_college_dropout_billionaires Apr 13 03:27:07 mmoassistdev1: have you looked at any statistics on what app devs make ? Apr 13 03:27:08 I think assuming "learning properly" is going to school to have a teacher teach you how to think is a bad assumption Apr 13 03:27:14 I wouldnt assume its gonna happen Apr 13 03:27:22 no i have not Apr 13 03:27:23 pragma-: is there a much longer list of "List_of_college_dropouts"? Apr 13 03:27:32 ron_frown: I'm not talking about school... Apr 13 03:27:37 k Apr 13 03:27:47 mmoassistdev1: here, read this. please http://www.visionmobile.com/blog/2013/01/report-developer-economics-2013-key-insights/ Apr 13 03:27:48 I'm proud I am where I am without formal edu Apr 13 03:28:00 oh i know im the smartest programm out of 30 students in my class so atleast i know im doing something right Apr 13 03:28:03 I'm talking about "I don't need to learn complicated things like TextViews to publish a 100k-sale app" Apr 13 03:28:25 mmoassistdev1: or your college is in a strip-mall shopping center Apr 13 03:28:31 yes i learn everything on my own that is why i went into these clases knowing so much Apr 13 03:28:38 oh dear Apr 13 03:28:59 mmoassistdev1: please don't take this personally, but the real world is probably going to hit you hard, some time soon Apr 13 03:29:21 but i am knew to java so give me a break im trying everything i can to learn on my own Apr 13 03:30:02 firstly, you're *not* trying to learn Apr 13 03:30:12 secondly... nah, I'm not going to go there Apr 13 03:30:43 hi Apr 13 03:30:53 wtf im not trying to learn i have my program allmost done on my own with no help im here becase of little problems im having with input/output stream and msgging from a background thread Apr 13 03:31:03 what does your app do? Apr 13 03:31:18 it autmates touches on android devices Apr 13 03:32:07 tell me there is not a market for that Apr 13 03:32:28 I don't know what that actually means Apr 13 03:32:39 well for one i write bots Apr 13 03:32:56 now do you understand? Apr 13 03:33:08 erm... Apr 13 03:33:23 this doesn't sound like it's going anywhere good Apr 13 03:33:32 i'm betting he's recording touch input and then replaying it, for example to automate games Apr 13 03:33:39 I WRITE BOTS GOD DAMN IT Apr 13 03:33:42 I WRITE BOTS Apr 13 03:34:00 pfft, i write bots that write bots Apr 13 03:34:24 kev is a smart cookie Apr 13 03:34:32 We had a guy at work who used to focus on writing AutoIt scripts to automate his tasks with a particular application instead of just using that application's scripting interface directly Apr 13 03:34:46 he'd rather program his mouse to move and click GUI buttons instead of writing a script to directly interact with the app's API Apr 13 03:34:52 ... he doesn't work here anymore. Apr 13 03:34:54 yea my first bot was writen in autoit its called prophet bot Apr 13 03:35:16 opensource too Apr 13 03:35:56 i used memory Apr 13 03:36:17 i get my bots to fit in the registerz Apr 13 03:36:29 a previous job also thought AutoIt was the solution to signing some keys during a compilation process -- we were instructed to remove our hands from the keyboard and mouse while compiling so the mouse could click the right buttons on the screen Apr 13 03:36:46 hahah Apr 13 03:36:47 makes it easier for them to check out ;) Apr 13 03:36:50 you know, instead of just using the signer's command-line executable, he used its GUI interface... Apr 13 03:36:55 brilliant Apr 13 03:44:34 ill be back possibly on monday guys after its posted on the market wish me luck please ill need it! Apr 13 03:44:46 take care Apr 13 03:44:49 What will it be named? Apr 13 03:45:00 ill let you know on monday Apr 13 03:45:07 Okay, good luck bye Apr 13 03:45:45 What an ignorant fool Apr 13 03:46:12 "I'm smartest in my class" <-aspberger quote Apr 13 03:46:21 * hesperaux lold Apr 13 03:46:27 i have someone in my class like that Apr 13 03:46:42 you misspelled "assburger" Apr 13 03:46:52 lol Apr 13 03:46:54 or was it "asparagus"? Apr 13 03:48:00 I suppose I'm competent with c++, but absolutely new to java. I have written the back end of an app that I plan to release on iOS and Android in c++. Hooking up the backend with the UI for iOS was simple, now it's time to do the same for android in java. The app stores a vector< myClass *>, this is how data is shared from the UI to the back end. There is a class "Calculate", that generates Apr 13 03:48:00 the vector, stores a copy for itself, and returns a copy for the UI to access. Calculate also has a method void doCalculation that will perform the necessary work on the myClass objects pointed to in the vector. Once the UI initiates the calculation, waits for it to complete, it accesses the results by calling a method getResults on each object pointed to in the vector. getResults returns Apr 13 03:48:00 a struct with with primitive data types, a few integers and floats. My questions is how do I go about hooking this up to a the java bases UI? Apr 13 03:52:18 I didnt understand one word. I bet Dan is an alien trying to communicate with me with a alien language. translation: "Me come from Mars, me come with peaceful intentions" with a chinese accent Apr 13 03:53:09 Dan-_: Do you understand how to hook up JNI methods to java, to be able to call into your c++ stuff? Apr 13 03:53:49 JesusFreke: Me mean you no harm Apr 13 03:54:22 dahlmoony: spaghetti? Apr 13 03:54:37 I'm absolutely new to java Apr 13 03:54:56 I assume since the struct is POD it can't be that difficult to read from it Apr 13 03:54:57 Dan-_: well, JNI is probably the first thing to research then :) Apr 13 03:55:29 basically, you write a class in java, and you can mark some of the methods as native methods Apr 13 03:55:43 I know that the JNI is, is SWIG an effective way to go about this or hand rolled? Apr 13 03:55:43 and then write a c/c++ component that provides the implementation of those methods Apr 13 03:56:20 I've typically done hand-rolled. I've never researched what's out there to do it automatically Apr 13 03:57:32 from a slightly higher level pespective, when the UI requests the calculation, assuming this is a longish calcuation, you'll probably want to do the calculation in an AsyncTask Apr 13 03:58:01 and then when it's finished, you can update the UI accordingly, in the onPostExecute method (I think that's the method name, might be slightly different) Apr 13 03:58:31 and you'll have JNI bindings to request the calculation and to get the results Apr 13 03:58:53 c/c++ is the only language that is supported on all the important mobile operating systems, making it perfect for writing the back end of an app. I just wish it wasn't a second class citizen. Apr 13 03:59:13 heh Apr 13 04:00:06 Dan-_: All you need to know is that Android LOVES greeting big audiences, "Hello World" is a common phrase in the industry. Once you understand this then you are golden Apr 13 04:01:44 dahlmoony: Now I am top Alien Apr 13 04:03:00 Here is an unrelated question. I have no desire to invade anyones privacy, I don't care about there location or contacts or anything like that. I have an app that takes about 20 parameters and then does some fairly CPU intensive work with them, eventually returning a different 20 values. I have coded it to accept huge values for the parameters, even though values that large are very unlikely Apr 13 04:03:00 to be used for anything other than a user testing the limits of the app ( i suspect ). The ability to accept these parameters come at a performance cost. So I would be interested in gathering usage statistics. Does anyone have any thoughts on this? Apr 13 04:03:10 Thanks for the input on the JNI/C++ Apr 13 04:03:23 Apr 13 04:04:08 Dan-_: as a first pass, maybe log the size of the inputs? Apr 13 04:04:31 you'll still need some way to collect that. I'm sure there are solutions out there, but I'm not familiar with any offhand Apr 13 04:05:33 I wasn't thinking about the technical aspects, more the philosophical aspects. Apr 13 04:06:25 well, it's definitely better to anonymize the data as much as possible. Apr 13 04:06:48 and if you do collect data, make sure the user is aware of what is being collected Apr 13 04:07:07 and provide a way to opt out Apr 13 04:07:40 collecting data isn't bad thing in itself, especially if used to make the app better Apr 13 04:07:47 it just has to be done right :) Apr 13 04:07:50 the user identity is of no interest for me, so anonymous is the way to go. Apr 13 04:08:17 norbusaurus rex, do you do fun apps? :) Apr 13 04:08:50 I personally am very concerned about privacy issues and what is collected about me, so I am concerned about violating the pricacy of others. Apr 13 04:09:23 right. hence the disclosure and ability to opt-out :) Apr 13 04:09:37 dahlmoony3000 I've never made an app in my life Apr 13 04:09:56 my apps are always fun Apr 13 04:10:05 who doesn't love disassembling dalvik bytecode! Apr 13 04:10:28 why don't you make one then? :o Apr 13 04:11:03 dahlmoony: I always seem to get errors that are unique to me Apr 13 04:11:07 How does the performance of c++ compare to java on android? I'm concerned strictly with performace of CPU intensive stuff, not the ease of interacting with the environment (UI, network, camera, etc...) Apr 13 04:11:23 this is like my millionth excursion into app dev Apr 13 04:11:39 you'll almost certainly get better performance with c++ Apr 13 04:11:53 I might be wrong, but I was assuming that since processing power is so small that the JIT doesn't have much time to do real optimization before launch Apr 13 04:12:03 just be aware that making a JNI call is more expensive than a normal method call - you don't want to be doing a lot of them in a tight loop or anything Apr 13 04:12:34 the JIT is pretty good. but native will usually beat it Apr 13 04:12:53 I only need 2 calls to native, one to populate the data and initiate the computation and one to retrieve the results. Apr 13 04:12:59 dahlmoony: I am working on one right now though. Not meant to be fun though lol Apr 13 04:13:37 norbu: Is it secret concept or can you tell me? Apr 13 04:16:04 dahlmoony: a schedule maker for store managers with many employees. Sends the schedule via text, email etc. Apr 13 04:16:36 norbu: what do you mean not a fun app. sounds like a blast! Apr 13 04:17:17 That's probably just your cover... I'm guessing you're really making an app for CIA! Apr 13 04:17:40 dahlmoony: Yes... the CIA... muahahahahaha Apr 13 04:17:49 :D Apr 13 04:18:14 Do you need export licenses or any other gov't involvment if your app makes internal use of cryptography, as opposed allowing the user to encrypt data? Apr 13 04:18:35 * norbu sends neural message via unknown waves through air to overlord in sky Apr 13 04:19:40 Dan-_: afaik, it's not using cryptography that's generally regulated, it's exporting implementations of some cryptography. Apr 13 04:19:51 but you would be using the existing implementations in android Apr 13 04:19:57 so not an issue for you Apr 13 04:20:36 I'm not sure that's generally an issue these days anyway Apr 13 04:20:51 but, I haven't actually looked into it in a while. and am not a lawyer, yada yada :) Apr 13 04:21:48 that's what I thought, just wanted to check. If I collect any data I would want to encrypt it before it's sent to my server Apr 13 04:23:32 Dan-_: just use https :) Apr 13 04:24:16 that works as well! Apr 13 04:25:27 So my app doesn't need anything fancy in the UI or anything. No hardware access other that a little networking. So what SDK should I target so that I can reach the broadest audience? Apr 13 04:25:55 froyo+ will get the large majority of the market Apr 13 04:26:05 dahlmoony: I want to program nanobots Apr 13 04:26:20 http://developer.android.com/about/dashboards/index.html Apr 13 04:26:28 looks like that will get you 98+% Apr 13 04:26:39 throw in eclair and you've got 99.9 :) Apr 13 04:26:53 hi guys! The question about "Search Interface". Can I use only one activity when I want to implement it? Because, right now, I have HomeActivity and I want to add search interface into it. And display search result again in the same HomeActivity. Apr 13 04:27:48 Dan-_: for comparison, the google play store is froyo+ Apr 13 04:28:32 (the play store app, I mean) Apr 13 04:31:42 I just looked at googles stats... I didn't even think about screen sizes to support, what a pain in the ass. It's so easy with apple, only a few to concern yourself with. Further you can just write for the old iphone screen size and every other device will support it perfectly. Apr 13 04:32:56 Is blackberry even worth supporting these days? Apr 13 04:33:47 I wouldn't worry about it Apr 13 04:33:49 * JesusFreke shrugs Apr 13 04:34:57 It's sad how whatever company is the pride of the Canadian tech industry eventually gets crushed. Avro, Nortel, RIM... Why can't we do anything right up here? Apr 13 04:35:17 If you're just doing a simple UI, it's not hard to get it right for all the various screen sizes on android. The main thing is portrait vs. landscape and phone vs. tablet Apr 13 04:35:52 If you're doing a complex, hi-fidelity UI, it's probably a lot harder Apr 13 04:35:54 * JesusFreke shrugs Apr 13 04:36:02 Is there a UI designer similar to interface builder in xcode? Apr 13 04:36:05 I generally try to stay away from writing UIs :) Apr 13 04:36:21 Dan-_: I've never used xcode, but there's a graphical ui designer in eclipse Apr 13 04:36:39 and intellij has a graphical view, although I don't think you can edit it graphically (have to edit the xml) Apr 13 04:36:52 My UI is simple, insanely simple. Two inputs for text, sixteen rows in a table with an image, two text boxes, and a label in each. Apr 13 04:36:54 I generally prefer writing the xml directly anyway Apr 13 04:37:08 Yeah, you shouldn't have much trouble with different screen sizes, etc. Apr 13 04:37:40 Never used xcode, really? I thought everyone who created an android app created an ios version as well, it's just more profitable. Apr 13 04:37:55 I don't do much android app development :) Apr 13 04:37:59 and the one app I do have is free Apr 13 04:38:07 and not interested in ios at all Apr 13 04:38:12 what app is that JesusFreke Apr 13 04:38:28 https://play.google.com/store/apps/details?id=org.jf.Penroser Apr 13 04:39:01 JesusFreke: Does it have a virus? Apr 13 04:39:05 JesusFreke: jk lol Apr 13 04:39:16 penrose tiles, very cool Apr 13 04:39:24 norbu: feel free to inspect the source ;) Apr 13 04:39:25 https://github.com/JesusFreke/Penroser/ Apr 13 04:39:39 Dan-_: yeah, that was a fun one Apr 13 04:39:46 I'm a math guy, I love stuff like that, the useless but fun aspects! Apr 13 04:39:53 norbu: You can make me some nanobot pets that I will train into gladiators whom will fight ants! Apr 13 04:39:54 http://www.youtube.com/watch?v=rNu1VDpPAxs Apr 13 04:40:00 It was surprisingly hard to figure out how to generate the tiling in way that allows you to scroll indefinitely Apr 13 04:40:20 cool you can mess with it on the homescreen Apr 13 04:40:28 does it accept some sort of user parameter? Apr 13 04:40:39 mine? Apr 13 04:40:58 there's not much of a parameter that could be provided Apr 13 04:41:00 yeah, or does it only generate vertain patterns? Apr 13 04:41:13 it generates a penrose tiling randomly Apr 13 04:41:35 it generates new tiling randomly when you get out towards the edge of what it currently has generated Apr 13 04:42:25 that's cool! Apr 13 04:42:43 I love the fact that it's aperiodic Apr 13 04:43:32 a penroser tiling has at most a single 5-fold rotational symmetry Apr 13 04:43:40 in other words a "center" Apr 13 04:43:45 but it doesn't have to Apr 13 04:44:05 I was thinking about writing a decent linear algebra app, specifically matrix related stuff. Last time I looked they were all shit, they couldn't even determine the rank or a basis for the row space. Apr 13 04:44:28 and no translational symmetry at all Apr 13 04:44:51 does anyone have the 9 patches adn styles/themes for 2.2.2 and 4.xxx so I dont have to get the whole distro just to get those few files? would really appreciate it thanks Apr 13 04:44:58 the symmetry of the tilings is what made me think about abstract algebra, and that made me thing about linear. Apr 13 04:45:13 Out of interest did you open source it? I would be interested in looking at it Apr 13 04:45:19 https://github.com/JesusFreke/Penroser/ Apr 13 04:45:49 cool. I will use that as a way of aquanting myself with java! Apr 13 04:45:57 heh Apr 13 04:46:07 im surprsied there isnt tamagotchi for android Apr 13 04:46:14 there is Apr 13 04:46:17 Pou Apr 13 04:46:33 kawaii!! Apr 13 04:47:02 there is, I just swa it on CNN a couple weeks ago Apr 13 04:47:07 a long time ago i named a server on the network tamagotchi and some douche was like wtf is a tamagotchi Apr 13 04:47:23 genius, someone gonna make a lot of paper of that. Nostalgic twenty somethings.... Apr 13 04:47:35 that was back when they were as popular as cell phones and i'm like...uh do you live in a cave? Apr 13 04:47:40 My brother had a buzz lightyear one Apr 13 04:47:40 more like 30 somethings Apr 13 04:47:45 heh Apr 13 04:47:54 must go for $500 on ebay that sounds like a classic Apr 13 04:48:49 I never even thought of that. I know some of my transformers go for mint now. I had tripticon and omega supreme, I hear they are worth some serious coin. Apr 13 04:49:37 Buzz Lightyear etc is the most epic toys one can possess, as they really are toys, even in the movie.... ok im abstract/stupid but still Apr 13 04:50:04 http://www.virtualpet.com/vp/farm/tstory/tstory.htm Apr 13 04:50:26 its the alien, not buzz lightyear. Apr 13 04:50:42 yeah, buzz lightyear was a pretty bad ass character. Apr 13 04:52:14 so its a alien? Apr 13 04:52:50 So what are the real sticky points I need to concern myself with regarding learning java with a c++ background? I understand shallow vs deep copies are an issue, also the lack of pointers. Apr 13 04:53:50 Yeah, I doubt you'll have much trouble Apr 13 04:56:01 Do you guys like Apple? Apr 13 04:56:31 not particularly :) Apr 13 04:56:40 they make great laptops Apr 13 04:56:53 their phone hardware is superb Apr 13 04:57:15 I like the ipod, and I think for profit considerations you have to support apple devices as a developer. That said, I hate apple and their over priced crap and their insane controll issues. Apr 13 04:58:52 As far as computers, they have the same commodity hardware in them that everyone else has. Intel processor, nVidea GPU, and so one. However they charge some insane price for it, just so some fucking hipster can feel good about himself. And I hate hte fact that I can't develop for apple devices on windows. Apr 13 04:59:29 Do you like apple? Apr 13 04:59:29 The MacBooks are way superior to any PC Apr 13 04:59:38 yea macbooks Apr 13 04:59:48 how? They are the same commodity hardware. Apr 13 05:00:26 yea, if only hardware counts then apple is overpriced religious idiots. But they have so awesome design its worth the extra cash Apr 13 05:00:35 Further, as an IDE visual studio kicks the shit ot of xcode. WOuld it kill them to spend some time writing a decent debugger so I can inspect the contents of an STL container? Apr 13 05:00:44 so its worth the cash to be a stylish religious idiot dahlmoony? Apr 13 05:00:54 visual studio *is* nice Apr 13 05:00:55 multi-touch, nice OS, the magnetic charging cable and so on Apr 13 05:01:09 Dan-_: heh stl ... isn't it like some obj-c shit? can you even USE stl without hanging yourself at night? Apr 13 05:01:13 for java stuff, I really like intellij IDEA Apr 13 05:01:46 why doesnt Eclipse show intellisense for google maps and other play service? cant seem to get it to use the javadoc Apr 13 05:01:50 I don't see anything special about osx. I really dont, other than the fact there are fewer virus targeting it. Apr 13 05:02:04 the community edition of IDEA is fine for android development Apr 13 05:02:41 plus, they gave me a free open source license for their ultimate edition, for baksmali :D Apr 13 05:02:57 STL is the c++ standard template library. I like it, it is nowhere near as broad as the standard java libraries, or .net, or cocoa, but it isn't mean to be. Apr 13 05:03:18 Well I just like how you can have like 10 desktops on the os x and swipe between them easily and move programs back and forth :) Apr 13 05:03:53 the multi-touch gestures seem like they would be nice Apr 13 05:03:56 on osx Apr 13 05:04:05 they are quite useful once you get used to them Apr 13 05:04:17 Dan-_: i know that but objective C is not C++ Apr 13 05:04:18 you can navigate around extremely fast Apr 13 05:04:44 I don't really care for eclipse. Intellij looks nice so far! I'm hardly a brand loyalist, but visual studio really is the best IDE in my experience. It just works, and the debugger is by far the best debugger out there. Apr 13 05:04:59 well plus C# is a hell of a lot nicer than java Apr 13 05:05:12 Have any of you tried the Ubuntu SDK? Apr 13 05:05:31 Ubuntu just get the phaugck out of here Apr 13 05:05:47 :D Apr 13 05:05:49 The Ubuntu Phone Apr 13 05:05:56 Dorky: it's fairly easy to combine objective c and c++, I think it's called objective-c++. I write the back end of my apps in c++, the UI in objective-c, and wire them together with a very thin layer of objective c++. Apr 13 05:06:05 The Ubuntu Potato Apr 13 05:06:13 lol Apr 13 05:07:00 I have concerns about privacy, I understant when you search your computer (in ubuntu) it now sends the search off to canonical, then from there to amazon, so they can sell you shit. Apr 13 05:08:10 That's why I replaced all my Ubuntu installs Apr 13 05:08:26 Redid everything with a dedicated distro suited for those needs Apr 13 05:08:32 the absolute lack of respect that that shows is horrible. ALthough it does pale incomparison to facebook. Facebook has a new advertising plan. They are going to combine their database with the consumer databases for real world purchases. Now facebook will know what you bey at a fucking store.... Apr 13 05:08:35 People actually use search on ubuntu? :) Apr 13 05:08:51 In some cases, you have to if you don't know the CLI Apr 13 05:09:05 So all new Ubuntu users get data harvested Apr 13 05:09:29 dan are you the V for Vendetta guy? Why are everyone so privacy-whiny? Wh gives a shit if a company knows alot about you? Its better for you becouse you will be presented with ads that are more customized to your interests. Apr 13 05:10:28 That is bullshit. You cannot sell me on it being for my convenience, it doesn't conveneince me at all. Apr 13 05:10:48 With Google, I can understand it. If you use a free service then you are the product. Apr 13 05:11:07 For something like a Linux distro? Not acceptable. It's not normal. Apr 13 05:11:21 I would tend to disagree. I would rather see ads that are based on my preferences, than some random ad that doesn't interest me at all Apr 13 05:11:28 I fully understand that. I however have a problem with companies tracking my location via my cell phone and now looking to what I buy in the real world. Apr 13 05:12:14 For instance, if I want to order sex toys and that info is tied to my account on my phone, then my GF uses my phone and asks me why I'm shopping for sex toys Apr 13 05:12:23 Since all the ads are for dragon shaped dildos Apr 13 05:12:24 I don't care myself, but I fully support the right to keep that data private :) Apr 13 05:12:57 I don't need to see an add at all. If I need to buy something I will look for it. Now I understand the necessity of having adds, google does it tastefully in search and I don't use facebook so I don't know if it is intrusive or not. However I just don't like the idea of that much information being centralized in on some companies servers. Apr 13 05:13:04 alkain: that doesn't sound like a bad situation to me ;) Apr 13 05:13:54 Well, what if my girlie isn't into that? Then I look all freaky and there will be lots of awkward moments Apr 13 05:13:59 Really, why does apple or facebook need to know where I am? I see absolutely no reason they should track my movement. Apr 13 05:14:12 I guess there is no right and wrong here, I even understand your view Dan. Apr 13 05:14:32 Personally, I dislike the whole concept of "It's not hurting you, so why not go with the flow?" Apr 13 05:14:57 alkain: exactly! Thanks YOU! Apr 13 05:15:19 No, the data won't be used to mess with me. No, I'm quite sure it won't impact my digital experience overall. But the principle stands: Does a man have a right to privacy in this modern age? Apr 13 05:15:29 I tend to be a pretty lazy/go with the flow kinda person anyway :) Apr 13 05:15:49 alkain: your carrier is selling your location anyhow :) Apr 13 05:15:55 I can't muster the effort to care :D Apr 13 05:16:02 I mean no offence, of course, but that attitude is why we have a bunch of idiots in politics :) Apr 13 05:16:17 I'm not saying you don't vote but I am making a parallel. Apr 13 05:16:27 all the people in politics are old enough they did not grow up with tech Apr 13 05:16:40 well, most anyhow Apr 13 05:16:44 As for my carrier, f' them. I turn my phone off and remove the battery when I go out to become Batman Apr 13 05:17:07 alkain: i'm paranoid too ;) Apr 13 05:17:10 That way TMobile doesn't know my secret identity Apr 13 05:17:19 just saying Apr 13 05:17:34 your phone is a tracking device that happens to make calls :) Apr 13 05:17:56 Further, no information is secure. There is a new massive data breach on the news every week, so none of it is secure. Further when that much data is available in one place, it will only be a matter of time before other groups try accessing it. When will my car insurer raise my rates because I am friends with others with speeding charges? Or health insurer raise rates because someone posted Apr 13 05:17:56 a photo of me eating greasy food at a bar? And so on.... Apr 13 05:18:49 I think that the core fears of information harvesting eventually translates to a worst case scenario in most peoples minds. Apr 13 05:19:02 alkain: i'm betting you are going to love Google Glasses Apr 13 05:19:14 i.e. You are falsely accused of a crime and google sells your ass out Apr 13 05:19:45 Honestly? I will be buying Glass. I don't mind selling my data to Google because they do provide me with a large variety of services. Apr 13 05:19:46 well of course, the saying is that almost everybody commits crime on a daily basis (without their knowledge). Apr 13 05:20:01 and of course, you don't define what is legal and not, and that is always changing Apr 13 05:20:04 Ok the whole "lets track your every move on the planet so we can kidnap your children at your home while you are shopping for milk" is not something I promote but talking about ads customized after what you have "liked" on facebook is brilliant, as you will be alerted when something new gets into the market that you enjoy, without even having to search for it. Right? Apr 13 05:20:06 Agreed. Apr 13 05:20:13 Think specifically about insurance. The whole point of insurance to to spread risk across a large and diverse group. But when people are not able to get insurance because of their eating habits, then you are only insuring those with very lo probability of needing it. It is then no longer insurance, it is tax. Apr 13 05:20:54 dahlmoony: If I want a particular product, I will learn about it through my own means, not from a Google ad tailored to my interests. Apr 13 05:20:54 Dan-_: your insurance company will use FB graph search to analyze your friends :) Apr 13 05:21:46 dahlmoony: For most people, it probably works. For me, it does not. I never click those links. Apr 13 05:22:07 I don't have a huge problem with ads. But it seems to be that it will become inevitable that other groups will want access to this information, and facebook will happily sell it to them. That is my concern. Apr 13 05:22:26 of course, they have to figure out how to make money Apr 13 05:22:28 alkain: I'm with you completely. Apr 13 05:22:38 Also, keep in mind that information selling means your data may become public, correct? Apr 13 05:22:50 btw, DoNotTrackMe plugin FTW (or Ghostery) Apr 13 05:22:54 What if a potential employer has access to your ad data for $5? Apr 13 05:23:31 employers already monitor facebook, there are reports of employers forcing employees to hand over login credential so they can monitor them. Apr 13 05:23:33 What if a potential employer made a fake facebook account with a pic of a hot girl and friend you and see all your interests? Apr 13 05:23:46 alkain: what you are referring to is often called "the database of ruin" Apr 13 05:23:55 Dan-_: Yes, excellent point. Apr 13 05:24:01 Dan-_: at that point I would no longer be employed with said company :) Apr 13 05:24:23 g00s: And any path to that point is scary to me. Apr 13 05:24:58 Bruce Schneier thinks we're all fucked Apr 13 05:25:19 Quite a large amount of people think we're all fucked, to put things into perspective. Apr 13 05:25:23 dahlmoony: I think it would be a plus to let me potential employer know I'm interested in android, open source development, didgeridoos and unicyling :) Apr 13 05:25:54 JesusFreak: that is easy to say now that you would walk from that company, and maybe you even have a high demand skill set so you could find new work easily. That is not true for everyone. Apr 13 05:26:20 JesusFreke: True but there is always a plus side to a situation like this. The idea is how much does that benefit outweigh the cons of the concept Apr 13 05:26:49 i was reading this yesterday , from the DNTMe guys https://www.abine.com/how-firefoxs-new-cookie-settings-compare-to-dntme/ Apr 13 05:26:58 the add companies are devious ;) Apr 13 05:27:14 Go, IceWeasel, fetch me a webpage Apr 13 05:27:32 Can you really be held accountable because of the behaviour of your brother in law who is a coke sniffing womnizing douche bag? There is no scale of friendship of face book. There is no "acquantance, I only friended him because i married his sister. In reality I detest the man" radio button. Apr 13 05:28:03 i wouldn't be surprised if FB impacts your credit score Apr 13 05:28:36 You guys are Anonymous V for Vendetta Occupy Wall Streeters, just chill the fuck out. If facebook sells all the information then your bosses will be fucked too as they write just as much shit in there as you do, so we all get equally embarrased and therefore nothing is changed. Paranoid developers :D Apr 13 05:28:39 Microsoft set DNT to on as the default setting in the new IE. Some douche decided at apache decided he didn't like that, so now apache disregards it. Apr 13 05:28:47 Sadly, we must all agree that no matter what, data harvesting will continue to occur, correct? To some degree, modern man has forever lost the concept of total privacy. Apr 13 05:28:58 On the other hand, if they refuse me a job based on my friends on facebook, I'm probably better off not working for them anyway :). Of course, like you said, given that you are able to get a job elsewhere and aren't desperate Apr 13 05:29:25 alkain: i really think, the best strategy it to increase the noise in the s/n ratio Apr 13 05:29:45 g00s: You mean give them too much data to sift through properly? Apr 13 05:29:49 if i had a drone i'd tape my phone to it and fly it around town :) Apr 13 05:30:00 alkain: too much /bogus/ data Apr 13 05:30:08 That leads me back to why I'm in this channel, btw Apr 13 05:30:30 One last thing about facebook, I find it incredibly vain to think the world needs to know your fucking status updates every ten minutes. Seriously, who the fuck cares. And people I havn't spoke to since grade three... I havn't spoke to you in over twenty years, what the fuck makes you think we're friends? Apr 13 05:30:30 I'm trying to connect my android phone to my linux install and get the GPS data to output through ADB Apr 13 05:30:30 oh yeah, this is android dev Apr 13 05:30:48 Dan-_: haha. amen to that Apr 13 05:30:49 I'm having trouble installing Python4Android though Apr 13 05:31:50 Man, everytime I ask this, the entire channel gets silent Apr 13 05:31:57 lol Apr 13 05:31:58 Every time, every channel Apr 13 05:31:59 * JesusFreke whistles tunelessly Apr 13 05:32:12 how do you do these purple stuff Apr 13 05:32:19 You smoke it. Apr 13 05:32:25 haze Apr 13 05:32:25 dahlmoony: /me whistles tunelessy Apr 13 05:32:37 * dahlmoony ballin' with zuckerberg Apr 13 05:32:39 * alkain can emote like a baws Apr 13 05:33:05 hehe. I forgot about emoting. I haven't used irc since like.. the 90s when I did rpgs Apr 13 05:33:11 heh Apr 13 05:33:22 I miss a MUD I used to play on Apr 13 05:33:27 I bet it's still around Apr 13 05:33:31 Oh man, MUDs were the best. Apr 13 05:33:37 http://www.outland.org/news.php Apr 13 05:33:39 anyone here interested in doing serious startups in future? like, silicon valley serious? Apr 13 05:33:40 hey whaddya know Apr 13 05:33:48 I always wanted to do a hacking MUD with serious linux based emulation Apr 13 05:34:02 Real deep stuff, you know? Add in some combat Apr 13 05:34:38 dahlmoony: I'm on an IT company startup in South Texas. Main service call tech. Apr 13 05:35:01 wow! :) Apr 13 05:35:07 We do networking and custom databased for pipe yards and oil fields. Apr 13 05:35:08 alkain: have you seen http://0x10c.com/ ? Apr 13 05:35:31 JesusFreke: I have. It's not here yet, so I can't play it. Apr 13 05:35:34 So, I am sad. Apr 13 05:36:18 I'm actually really looking forward to star citizen Apr 13 05:36:24 Agreed. Apr 13 05:36:44 I wish I had a few thousand to give them. I mean, they deserve it for Freelancer alone Apr 13 05:36:56 Can't recall how many hours of enjoyment that game brought me. Apr 13 05:37:21 and then we have elite dangerous in the works too. good stuff Apr 13 05:38:22 kickstarter is definitely doing some great things for the game development ecosystem Apr 13 05:38:52 All the space startups need to get on kickstart Apr 13 05:39:01 Then we can get to Mars in like, 5 years Apr 13 05:39:02 I wonder why google chose java as the preferred language for a mobile device. On would think from a limited processing power and battery life perspective they would have gone with a native language. And what about apple and objective-c, that I really don't get. I mean outside of apple nobody uses it, and i mean nobody. It's almost like they chose it just to be different. I don't mind the Apr 13 05:39:02 language, it's easy enough to learn and cocoa has some cool libraries, and it's even compiled, I just don't get it. Apr 13 05:39:21 Even MS stopped pushing .net with WP8 and are now pushing c++ Apr 13 05:39:25 Java is a pain to code with as well Apr 13 05:39:25 Dan-_: portability, for one thing Apr 13 05:40:14 I do miss coding in c# though. Apr 13 05:40:17 alkain what is call tech oil? Apr 13 05:40:19 This is a pretty nice language Apr 13 05:40:51 dahlmoony: call tech oil? Pardon? Apr 13 05:41:04 JesusFreke: portable across what though? How many desktop apps are actually made available on android? If they were looking to become a game platform, then c or c++ would have been the way to go. Apr 13 05:41:10 what was the objective of that startup? Apr 13 05:41:21 Dan-_: no, portability between different devices Apr 13 05:41:41 i.e. one app that runs on all android devices Apr 13 05:42:03 We setup network infrastructure for oil field companies and pipe yards. We provide routing setup, VPN, digital security, custom database solutions, and soon custom software solutions Apr 13 05:42:37 JesusFreke: But that could have been any other framework other than java. Apr 13 05:42:47 c would have been portable, just don't use inline assembler. Maybe with a few corner cases where it isn't. My questioning has nothing to do with some kind of language evangelism, I just though with limited resources effeciency would have been top priority. Apr 13 05:43:01 alkain okey:) Apr 13 05:43:15 Dan-_: not source compatibility. binary compatibility Apr 13 05:43:35 Oh yay. A new Wu-Tang album is arriving in July. Apr 13 05:43:35 right right... that makes sense! Apr 13 05:43:37 Joy. Apr 13 05:43:38 s/compatibility/portability/ Apr 13 05:44:04 Im defining setContentView(R.layout.main);, but that R.lay.main doesnt exist? Apr 13 05:44:27 Although again, it would't be hard to have the compiler compile it for a bunch of architectures and have google play query the device, then send the right one. Apr 13 05:44:50 Yeah, there are certainly other ways to do it Apr 13 05:45:03 binary compatability is a nice feature though Apr 13 05:45:58 Goddamn it Apr 13 05:46:02 R.layout.main <---- who knows where this is located? I cant find in src, layout or anything Apr 13 05:46:14 I'm starting to think that web apps are the way to go for simple things. True write once, run everywhere. Except for obvious cases like 3d graphics and such. Apr 13 05:46:16 dahlmoony: in your out/build folder Apr 13 05:46:27 This Python4Android is pissing me off Apr 13 05:46:30 maybe gen Apr 13 05:46:37 I wish I could read logcat Apr 13 05:46:43 c# is nice in that you can write apps and also asp.net. Apr 13 05:46:44 find -name "R.java" from your project root :) Apr 13 05:47:17 and if you're on windows, I'm sorry :) Apr 13 05:47:24 wu-tang... cool. RZA has been working with john frusciante lately. Some of it is pretty cool. Apr 13 05:53:35 how to use only one activity for http://developer.android.com/guide/topics/search/search-dialog.html ? Apr 13 05:54:20 I want to use the same activity. What should be my steps? Apr 13 05:56:57 I'm tired of looking at log files and my eyes are bleeding Apr 13 05:57:01 Need cigarette.. Apr 13 05:57:10 ugh. :) Apr 13 05:57:22 never saw the appeal Apr 13 05:58:35 Of what, log files? I can safely say that there is little appeal Apr 13 05:58:41 Mind numbing.. Apr 13 05:59:21 Indeed. I can't imagine why you would want to wade through them Apr 13 06:00:29 Because Python won't install :( Apr 13 06:00:41 It looked like a permissions error but I cannot fathom as to why Apr 13 06:00:50 what error? Apr 13 06:01:05 Thanks for the help. I need to sleep. I will be back in the future with more questions as I get into this java business. Apr 13 06:01:09 Guide say: setContentView(R.layout.main); <- get that under the onCreate stuff Apr 13 06:01:19 but I dont know how to get the stuff inside () right Apr 13 06:01:39 dahlmoony: if your layout xml file is named blah.xml Apr 13 06:01:43 then you would use R.layout.blah Apr 13 06:02:00 if your IDE is complaining at you, try building it once Apr 13 06:02:10 the R.java file is generated on the fly by the android build stuff Apr 13 06:02:10 Which one? There are many. Apr 13 06:02:54 alkain: any of them that you care to share? :) Apr 13 06:04:22 thank god it worked Apr 13 06:04:26 took 4 hours Apr 13 06:04:28 JesusFreke: http://pastebin.com/Uamch7k1 Apr 13 06:05:00 That's the logcat output through adb. Apr 13 06:05:09 alkain: what does 'df' say? :) Apr 13 06:05:11 I ran the installer twice while catting Apr 13 06:05:24 I think android has df. I don't recall for sure Apr 13 06:05:52 Where does it say df in the log? I missed that.. Apr 13 06:05:59 alkain: no, from the console Apr 13 06:06:00 run df Apr 13 06:06:06 is your data partition full? Apr 13 06:06:30 No. I should have plenty of space Apr 13 06:06:41 both on my interal and sd Apr 13 06:07:55 line 1152 looks suspicious Apr 13 06:08:08 what phone do you have? Apr 13 06:08:28 LG G2X Apr 13 06:08:37 Running Hellfire Sandwich Apr 13 06:08:42 what version of android? Apr 13 06:09:09 4.0.4 Apr 13 06:09:42 hmmm. that didn't have the multi-user stuff yet, iirc. I think in 4.1 /mnt/sdcard might have been moved somewhere else. Apr 13 06:10:28 Honestly, I don't even like this ROM. It's the most stable thing I've found thus far beside Bionix Apr 13 06:10:32 oh, the /mnt/sdcard path was a source path, not a destination path Apr 13 06:10:39 Yes Apr 13 06:10:49 I install from /mnt/sdcard/LOST.DIR Apr 13 06:12:22 are you using adb shell, or an on-device terminal emulator? Apr 13 06:13:02 I moved the apk over to the sd card and am installing this apk from the phone itself Apr 13 06:13:10 I did the logcat through adb Apr 13 06:13:33 It was the only thing that I could figure out how to do for logging Apr 13 06:15:16 alkain: what does your df say? Apr 13 06:15:50 there's *something* that's running out of space :) Apr 13 06:15:58 One sec, lemme see.. Apr 13 06:16:07 Gotta switch to root to access adb Apr 13 06:16:37 ... that doesn't sound right :) Apr 13 06:16:50 you should be able to set up some udev rules Apr 13 06:22:15 Whoops. Machine locked up Apr 13 06:53:31 Well, I'm getting closer. Just a few python errors Apr 13 06:56:08 http://www.youtube.com/watch?v=TEdasNdp8C8 Apr 13 07:07:40 can the SQLiteDatabase be used for Where in clause in Android sqlite? Apr 13 07:07:45 Okay, eff this. http://pastebin.com/guDR0dYf Apr 13 07:07:49 I'm done for the night. Apr 13 07:08:46 any help? Apr 13 07:09:00 alkain: it would probably be easier just to do it in java :) Apr 13 07:10:11 At this point? No. Also, I feel like using Java to push GPS data through an adb port to Kismet may not work Apr 13 07:10:38 It's one thing to get the data to the adb port. It's another to have Kismet pick it up Apr 13 07:11:30 If the phone's on the same network as your host, you might try a direct network connection. Apr 13 07:12:10 I don't have any specific advice about the connection reset though. sorry :) Apr 13 07:13:35 what was the installation problem, out of curiosity? Apr 13 07:13:53 lol. lack of space Apr 13 07:14:03 connection reset might be caused by androids power saving leaving it in a coma too long, causing it to not reply to tcp packets in time Apr 13 07:14:04 and iso was accidentally moved to my sdcard Apr 13 07:14:10 heh :) Apr 13 07:14:33 I think I just need to use and early form of ASE instead of the new SL4A Apr 13 07:14:42 that or use and earlier form of Python Apr 13 07:15:08 alkain: you might be able to use the app 'wake lock' to activate a wake lock (of any level) Apr 13 07:15:15 Well, whatever it is.. I will do it tomorrow. It's late, I'm tired, and my GF has hogged all my dang covers. Apr 13 07:15:19 that would then chew thru battery, and maybe fix the disconnection issues Apr 13 07:15:39 I'll give it a shot, clever. Thanks Apr 13 07:15:45 Night y'all Apr 13 07:39:25 hello? Apr 13 08:43:39 hi Apr 13 08:44:40 i understood that getLastNonConfigurationInstance() is deprecated and i need to move to setRetainInstance and to work with ListFregment. is there a good example out there. i'm googling but it just get me confused Apr 13 08:47:52 hey guys, if i wanna create a table layout with square cells however no content in those cells (no textview etc.), what do I have to do? use a "space" for each column? Apr 13 08:53:56 i have android:screenOrientation="landscape" in my manifest in the action and i say setContentView(R.layout.main); in my MainActivity.java. i have an valid main.xml in layout-land only. when i start this it can't find the ressource main. if i put the main.xml in layout instead of the layout-land folder, it works Apr 13 08:54:18 can anybody explain to me why? i thought if i wand landscape only the xml file needs to be in layout-land? Apr 13 08:55:19 why would you want landscape only ? Apr 13 08:55:52 but it will choose from the qualifiers what it needs, IF the folder name exists Apr 13 08:55:58 because it is for a game where only this makes sense. please tell me how to do it right :( Apr 13 08:56:11 it doesn't Apr 13 08:56:15 that's the problem Apr 13 08:56:48 if i put main.xml in the layout folder it works, if i put it into layout-land it crashes with can't fidn ressource [adress of main] Apr 13 08:57:15 hand on, if you only need a landscape layout Apr 13 08:57:22 hang* Apr 13 08:57:29 yes :) Apr 13 08:57:34 you just need the layout in normal layout folder Apr 13 08:57:39 thats it Apr 13 08:58:04 landscape is for when the view will "change" and a "different" layout is needed Apr 13 08:58:21 ok so the layout-land folder is needed only if i have layouts for landscape and portrait? Apr 13 08:58:49 well if there will be a choice made by the system Apr 13 08:58:50 yes Apr 13 08:59:05 so that explains everything. thanks StingRay_ Apr 13 09:00:52 hey guys, if i wanna create a table layout with square cells however no content in those cells (no textview etc.), what do I have to do? use a "space" for each column? Apr 13 09:02:00 thing is, I just wanna color cells differently, I probably don't need extra views Apr 13 09:05:49 seems odd using a viewGroup for that Apr 13 09:06:01 whats the reason + purpose ? Apr 13 09:10:03 I need a grid for different "objects" of different sizes Apr 13 09:10:31 gridlayout Apr 13 09:10:56 now my idea was, as it really doesn't need to be fancy or anything, to use a table grid and just color cells differently representing those objects (the objects are all built of squares) Apr 13 09:11:55 erm, yeah, go with a frid view and just get your stuff in there Apr 13 09:12:11 later on one shall be able to move those "objects" within the grid, so I would add listeners to those cells with colored background and so on... Apr 13 09:12:27 ok but in a gridview its the same problem, what do I add to create an "empty cell"? Apr 13 09:13:40 and what do I add to create a cell with backround color? right now I am using a tablegrid and in each row I add as many RelativeLayouts as I have cells Apr 13 09:13:50 add a "View" Apr 13 09:13:51 *columns Apr 13 09:13:57 ah alright Apr 13 09:14:51 and you're sure its better to use a GridLayout over a tablelayout still? allthough I probably won't need span over multiple columns/rows? Apr 13 09:23:40 i dont know what you want Apr 13 09:43:28 what video format can i use as an intro for my application that older phones will support? i used mp4 and i noticed that older phones don't support it Apr 13 09:44:24 http://developer.android.com/guide/appendix/media-formats.html Apr 13 09:47:26 ok.. if i understand the document correctly.. .webm is supoorted. not for streaming. but if the file is already on the phone that it should work. can anyone confirm please ? Apr 13 09:54:28 StingRay_: I want to create an app where objects (built of squares) are movable on a grid Apr 13 09:54:31 When "activity" is named "MainActivity" It's label will be shown to the user as application name ? Apr 13 09:55:21 StingRay_: as it only needs to be as simple as possible, I thought to represent those objects by just coloring cells in a table grid Apr 13 09:55:42 thats pretty much what I wanna do Apr 13 09:55:59 movable though ? Apr 13 09:56:07 like drag ? Apr 13 09:56:10 and move ? Apr 13 09:56:57 * monsti loves to fly Apr 13 09:57:01 yeah so I thought I somewhere store the objects cell coordinates, whenever you click on such cells you are able move/drag it around Apr 13 09:57:04 high in the air Apr 13 09:57:27 bluesm: The Activity name does not matter. Apr 13 09:57:44 and I dont need any other kinds of views or such as I just differ between white cells (cells not occupied) and colored cells Apr 13 09:58:12 I think drawing that yourself on a canvas maybe better Apr 13 09:58:34 the thing is, objects can be of any cell length and width for instance 4x2 Apr 13 09:59:12 kakazza: So when the "label" is the name of the app (that user see under icon) ? Apr 13 09:59:36 so I wouldnt add any kind of view in a cell, as that would create problems in such cases Apr 13 10:02:22 hang on I show you what I mean... Apr 13 10:05:14 StingRay_: http://i46.tinypic.com/2dguxk6.png Apr 13 10:06:14 yeah I would say you need to look at drawing it yourself Apr 13 10:06:14 those objects with different colors shall be dragable within the grid Apr 13 10:06:18 on a canvas Apr 13 10:06:38 so you dont think using a table grid and just changing colors is a good idea? Apr 13 10:06:58 not really what it's for I dont think Apr 13 10:15:48 ooh new butterknife Apr 13 10:16:10 anyone here using Mono (monodroid)? Apr 13 10:23:05 when i have a double value, and I cast it to integer, is this considered truncating? Apr 13 10:24:47 maybe Apr 13 10:25:10 if the value exceeds ±2 billion, then yes Apr 13 10:25:27 and the decimal places Apr 13 10:25:54 it may not be, but there is usually lost accuracy Apr 13 10:26:13 or truncation Apr 13 10:30:16 anyone here got a n4? Apr 13 10:30:26 aye Apr 13 10:30:38 just ordered mine from google Apr 13 10:30:49 what's your current phone Apr 13 10:30:54 it was between an unlocked n4 or unlocked s3 Apr 13 10:31:06 shit, my phone broke months ago Apr 13 10:31:11 ive been phoneless for a while Apr 13 10:31:17 oh Apr 13 10:31:17 so i got no ties to carriers Apr 13 10:31:25 but ive had a roommate with a gnex Apr 13 10:31:29 so i know that phone well Apr 13 10:31:34 i went from gnex to a n4 Apr 13 10:31:42 biggest thing is the speed Apr 13 10:31:43 my ONLY issue with the n4 Apr 13 10:31:48 yea Apr 13 10:31:50 the speed Apr 13 10:32:06 is it worth adding the LVL to a root app (especially concerning uniloc's patents) or is the chance of an app being cracked too high anyway? Apr 13 10:32:29 what carrier are u using with u n4 storkme? Apr 13 10:32:38 three Apr 13 10:32:50 (UK) Apr 13 10:32:58 oh Apr 13 10:33:12 well i heard that if u live in an area that has a good hspa+ network Apr 13 10:33:20 u can get almost 4g lte speeds Apr 13 10:33:28 but its just kinda like where u live Apr 13 10:33:38 and what kinda networks u got there Apr 13 10:33:54 erm Apr 13 10:33:59 also its like, i heard u might od better with one of the NOT main carriers Apr 13 10:34:05 cuz they use the same networks Apr 13 10:34:08 but are cheaper Apr 13 10:34:10 idk Apr 13 10:34:12 shrugs Apr 13 10:34:28 basically im looking for some input on whats teh fastest way to go with the n4 Apr 13 10:34:39 and ofc the 16gb only of space kinda sucks Apr 13 10:34:54 but with dropbox/drive/box.com/mega.nz.co these days Apr 13 10:35:00 lots of cloud hosting available Apr 13 10:35:07 so shouldnt be that big of a deal with space Apr 13 10:35:21 im more concerned with picking the best carrier for speed Apr 13 10:35:41 also i read that eventually it might get lte Apr 13 10:35:43 on the n4 Apr 13 10:35:49 idk how much truth is in that Apr 13 10:36:18 iirc it does have some 4g capable chip in it, but it'll only work on certain networks I think Apr 13 10:36:31 not really a concern for me personally - 4g in the UK is coming on pretty slowlyt Apr 13 10:38:03 oh really Apr 13 10:38:15 cuz im in an area with a all the big networks and shit Apr 13 10:38:23 and alot of speed in this area on th enetworks Apr 13 10:38:33 so maybe ill be able to get that fast speed Apr 13 10:38:39 just cuz of the networks in my area Apr 13 10:38:46 just wanna find teh best deal Apr 13 10:47:07 http://arstechnica.com/gadgets/2013/02/android-4-2-2-kills-the-nexus-4s-unofficial-lte-support/ Apr 13 10:47:46 c0ded: might interest you Apr 13 10:59:49 shitty kakazza Apr 13 10:59:52 ill read it Apr 13 10:59:56 but from what i heard Apr 13 11:00:00 if ur in a good network area Apr 13 11:00:05 with hspa+ networks Apr 13 11:00:14 u can get up to 4g lte speeds np Apr 13 11:00:19 it all depends on the area ur in Apr 13 11:00:23 and how good the networks area Apr 13 11:00:27 *are Apr 13 11:00:32 but its like idk whats what Apr 13 11:00:39 what to go with when i get it in a day or 2 Apr 13 11:04:19 Could you help me: Apr 13 11:04:19 DisplayMessageActivity.java:22: error: cannot find symbol Apr 13 11:04:20 [javac] String message = intent.getStringExtra(MainActivity.EXTRA_MESSAGE); Apr 13 11:04:43 It point to "MainActivity" ... Apr 13 11:05:36 https://gist.github.com/bluesm/5377960 Apr 13 11:11:09 ? Apr 13 11:13:28 ? Apr 13 11:15:07 the_gamer: https://gist.github.com/bluesm/5377994 Apr 13 11:15:40 WHAT'S UP WITH THAT? Apr 13 11:15:42 sry Apr 13 11:16:11 the_gamer: I didn't dublicate calss Apr 13 11:16:14 *class Apr 13 11:17:55 onc Apr 13 11:18:42 bluesm: you'll need to show your code, coz there's some pretty obvious errors there you need to clean up Apr 13 11:19:09 can't i catch onSelectionChange on a spinner from the layout XML? eclipse doesn't code completion it Apr 13 11:19:31 bluesm, you did. always trust the pc ;) Apr 13 11:19:41 clean the project Apr 13 11:21:14 bluesm, showing an error and saying it is wrong, what kind of help do you expect? Apr 13 11:22:04 https://gist.github.com/bluesm/5378013 Apr 13 11:22:32 They are called DisplayMessageActivity.java MainActivity.java Apr 13 11:24:45 ufk: no Apr 13 11:24:58 ok :) Apr 13 11:25:40 hey guys, is it somehow possible to assign multiple background values in an XML for a View? Apr 13 11:26:03 all views shall have a stroke around them, however some shall also have a specific backgroundcolor which might change dynamically Apr 13 11:26:13 bluesm, have you cleaned the project yet? Apr 13 11:26:37 something like that: android:background="@drawable/cell_shape_border;@android:color/darker_gray" Apr 13 11:26:59 the_gamer: What do you mean by "clean" ? Apr 13 11:26:59 ray122: code it Apr 13 11:27:08 project->clean in eclipse Apr 13 11:27:36 okay :) Apr 13 11:27:52 the_gamer: Uh. I do not use eclipse. Because I learn... And IDE's make all in magical way... And You don't know what is going on... Apr 13 11:27:58 thanks @StingRay_ Apr 13 11:28:09 eclipse is fine for android :) Apr 13 11:28:16 no magic involved Apr 13 11:28:41 fine is a strong word :) Apr 13 11:28:58 occasionally acceptable is better Apr 13 11:28:59 :) Apr 13 11:29:14 * StingRay_ has been having eclipse problems/bugs :) Apr 13 11:29:29 bluesm: your DisplayMessageActivity isn't in a pkg Apr 13 11:29:41 StingRay_, yeah… but it works ok Apr 13 11:29:50 works is a strong word Apr 13 11:29:56 see previous statement :) Apr 13 11:30:49 I'm less and less a fan these days Apr 13 11:31:01 but I still refuse to try intellij Apr 13 11:31:27 what are you using ? Apr 13 11:31:45 i am programming full screen for nexus 7(to test) i have created an image 1024x600. not everything shows on the fullscreen canvas. there are some pixel chopped off. what could be the reason? Apr 13 11:38:22 bankai_: Thanks ! But why it stays that I doesn't have to access to DisplayMessageActivity and that DisplayMessageActivity is dublcate ? Apr 13 11:41:13 i don't know what command you ran. but i would assume you have some conflicting file or code somewhere Apr 13 11:49:59 bankai_: ant debug Apr 13 11:50:10 the_gamer: Nexus 7 is 1280x800 or 16:10. 1024x600 is uhm... 128:75? Apr 13 11:50:43 Could this be your problem, depending on how exactly you display your picture. Apr 13 11:55:09 kakazza, if i make the picture 1280x800 even more is cut off! Apr 13 11:55:25 kakazza, as i said, the picture is not to small but patrs are missing Apr 13 11:56:17 what is the best way/what resolutions do i have to provide pictures in to make it fullscreen on every device? Apr 13 11:59:43 the_gamer: you accounting for the system nav bar? Apr 13 11:59:46 :) Apr 13 12:00:06 that since honeycomb cannot be hidden Apr 13 12:00:13 silly choice Apr 13 12:00:24 StingRay_, yes. it is cut off on the x and on the y side Apr 13 12:00:43 would be only y if it was the system nav bar Apr 13 12:00:52 cut off ? Apr 13 12:01:05 you mean smaller than the screen? or bigger on both ? Apr 13 12:01:13 as in runs off the screen Apr 13 12:05:56 bigger than the screen Apr 13 12:06:02 i can't see the whole picture Apr 13 12:06:20 is it not easy to get your source bitmap and get x,y and get x,y of canvas ? Apr 13 12:06:39 dimension that is Apr 13 12:06:41 colored the edges to see that perfectly. i need a perfect fit for any resolution/device. how to do that? Apr 13 12:07:02 depends Apr 13 12:07:10 cause if it has detail Apr 13 12:07:21 you cant just think in "fit" terms Apr 13 12:07:27 you have to think aspect also Apr 13 12:08:05 also detail will be stripped based on resize methods Apr 13 12:08:19 what is it may I ask ? Apr 13 12:08:24 the image Apr 13 12:08:28 and whats the purpose Apr 13 12:08:31 ? Apr 13 12:08:33 So your approach is to supply pictures that match every single resolution out there perfectly? Apr 13 12:08:44 me? Apr 13 12:08:47 god no Apr 13 12:09:02 but based on content I would have layers Apr 13 12:09:08 That seems to be what the_gamer is trying to do Apr 13 12:09:12 Unless he only supports nexus 7 Apr 13 12:09:13 oh Apr 13 12:09:20 Which is kinda.. stupid Apr 13 12:09:25 indeed Apr 13 12:09:47 SimonVT, i want to support multiple devices but need to fit the background on fullscreen for every device Apr 13 12:10:03 whats the "background" ? Apr 13 12:10:06 example ? Apr 13 12:10:09 don't know what is the best way to do it. i can scale it and supply mutliple resolutions if needed Apr 13 12:10:16 any picture Apr 13 12:10:32 There are hundreds of resolutions out there Apr 13 12:10:41 and many aspects !! Apr 13 12:10:50 In some cases, the space available to you changes between android versions as well Apr 13 12:10:54 i have a picture i put some lines with numbers in and marked the edges to see how well it fits Apr 13 12:11:15 it works with the games in the playstore. how do they do it? Apr 13 12:11:47 you mean a sprite/tile based background ? Apr 13 12:12:11 or do you mean a streamed region loading background ? Apr 13 12:12:14 So to support a single resolution, you have to create one or two pictures.. Now multiply that by the amount of different resolutions out there Apr 13 12:12:59 no, i mean a picture background. let's say a have a fixed aspect i need for it and if the aspect is not the same on the device used i want to have black on the left and right of it Apr 13 12:13:30 SimonVT, that's how it is done with the games in the playstore? Apr 13 12:13:47 You can stretch it, you can make it larger than needed and cut parts of it away Apr 13 12:13:58 You can't supply pixel perfect images for every single resolution Apr 13 12:14:23 no! that can't be done. everything of the picture has to be seen. ok if it is scaled but nothing can be cut off Apr 13 12:14:43 That's up to you Apr 13 12:14:55 Why can't it be cropped? Apr 13 12:14:56 it is ok if the screen is black on the left and right of it if the aspect ratio doesn't fit Apr 13 12:15:07 No, that's a horrible approach Apr 13 12:15:13 should become a game. everything on it is immportant Apr 13 12:15:36 sow hat would be a good approach? Apr 13 12:16:34 Stretch it or crop it Apr 13 12:17:07 yes, i want to stretch it but keep the espect ratio otherwise it will look terrible Apr 13 12:17:16 the_gamer: I think you have a problem with design more than anything else, why does this background need to be full? Apr 13 12:17:31 if the aspect ratio of the picture is not the same as on the screen it should be black on the left and right of the picture Apr 13 12:17:37 that can be done, right? Apr 13 12:17:37 or rather your approach to the type of solution you want is wrong Apr 13 12:18:06 I know of no games that would rely on what your wanting Apr 13 12:18:18 you keep telling me my approach is wrong and bad and everything but why can't anybody tell me what a good approach would be? i want to learn it Apr 13 12:18:20 well, sure there are some hacky things that do, but they are poor Apr 13 12:18:36 cause YOU have not explained what you want Apr 13 12:18:41 and i don't understand why that approach is so bad Apr 13 12:18:49 your asking about a method to do something Apr 13 12:18:58 your not saying the pupose or cause of this something Apr 13 12:19:15 so cant give you another method to get this something Apr 13 12:19:17 i want i picture seen in fullscreen on any screen. stretched that height fits and if width doesn't fit it should show black on the left and on the right Apr 13 12:19:30 thats the method Apr 13 12:19:34 why and what is it ? Apr 13 12:19:37 i am telling this the whole time, what part is so hard to understand? Apr 13 12:19:39 whats the game context of it Apr 13 12:19:44 a background for a game Apr 13 12:19:50 point and click when it is done Apr 13 12:20:02 with a static background ? Apr 13 12:20:06 there are items anywhere on the background so it can't be chopped off Apr 13 12:20:20 for each area the background is fixed Apr 13 12:20:31 so you dont want panning etc ? Apr 13 12:20:50 zoom and all that ? Apr 13 12:21:10 no zoom. panning if i can manage it. i guess this is harder than what i want to do now Apr 13 12:21:12 http://pastebin.com/Fi5NXhsw how do I pass vairable (String xxx = "some_value";) inside setOnChildClickListener? Apr 13 12:21:32 I think most games just draw more of the ground/sky if there's space. Apr 13 12:21:39 well you want a features list before deciding implementation Apr 13 12:22:06 concept > features > design/tech > implementation > code Apr 13 12:22:15 What kakazza said is also a way to do it Apr 13 12:22:33 Whatever you choose, never ever put black borders Apr 13 12:22:35 so chopping it off is the best way? Apr 13 12:22:48 having a pan solves your issues Apr 13 12:22:52 sounds bad but if that's the way i am open for it. so how to know how much is chopped off Apr 13 12:23:08 i can't do anything if i don't know because there still could be items chopped off Apr 13 12:23:16 having panning I mean Apr 13 12:23:31 how to implement pan on a canvas? Apr 13 12:27:21 never played with canvas much but touch/event Apr 13 12:30:37 you didn't help me really :( Apr 13 12:31:29 implement a listener for the type of action/events you want Apr 13 12:31:41 not sure what else to add Apr 13 12:32:28 eg like an OnTouchListener Apr 13 12:32:41 i guess i still go on without the pan and figure it out on my own. only telling me my approach sucks but not being able to give me anything which helps is not constructive Apr 13 12:32:46 where you get a motionEvent Apr 13 12:33:11 ugh, good luck … l8rz Apr 13 12:34:33 thanks for your time anyway Apr 13 12:36:54 versionCode changes from 1 2 3 4.. or 1.1, 1.2 and so on ? Apr 13 12:37:04 android:versionCode Apr 13 12:37:09 versionCode is an integer Apr 13 12:37:14 ok thanks Apr 13 12:37:25 so in versionName i can do whatever i want 1.1 and so on ? Apr 13 12:37:34 http://developer.android.com/guide/topics/manifest/manifest-element.html#vcode Apr 13 12:37:47 Yes, versionName is a string Apr 13 12:37:58 thanks Apr 13 12:49:13 Why compiler couldn't be soo smart that if I use "sms api" it would automatically make me "sms" permission in AndroidManifest ? Apr 13 12:54:04 Hello world! The ListView doesn't seem to have some sort of callback for when all items have gone from (some) checked -> all unchecked - am I correct on that part? Apr 13 13:06:01 Hi people ^^ Apr 13 13:06:15 I have a question for you :D Apr 13 13:07:00 I'm a noob (obviously ^^) I work on eclipse ADT, and I want to insert a drawable in my layout Apr 13 13:07:20 drawables go ON widgets, not IN layouts Apr 13 13:08:13 Thanks, but I'm affraid I don't really understand the difference between widget and layout Apr 13 13:08:28 a layout contains widgets, widgets exist in layouts Apr 13 13:08:39 widget is for example TextView, Button Apr 13 13:08:51 layouts are things that position widgets according to the rules you specify Apr 13 13:08:53 Ok then, replace layout by widget :D Apr 13 13:09:15 I drag'ndrop the ImageView on my widget Apr 13 13:09:26 no the imageview is the widget Apr 13 13:09:37 in my layout Apr 13 13:09:42 a dialog box opens Apr 13 13:09:54 Better with background or not? http://bildr.no/image/1437504.jpeg and http://bildr.no/image/1437501.jpeg ? Or maybe something completely different for background? Apr 13 13:10:13 Quacked: I'd say without. :) Apr 13 13:10:20 i'd say another background Apr 13 13:10:20 I can chose the ic_launcher in project resources or little icons from System resources or create a new icon Apr 13 13:10:55 crockstylie ok so you want to define a drawable somewhere. can be as easy as dropping a .png in res/drawables Apr 13 13:11:03 Give the letter count a different text color Apr 13 13:11:08 Fade it out a bit Apr 13 13:11:28 I actually thought the "no background" was completely white, but I see theres some kinda gradient on it now Apr 13 13:11:43 SimonVT: good idea Apr 13 13:11:48 Ok in fact my real question is : Is there a way in eclipse to generate the different resolution drawables automatically ? Apr 13 13:12:01 Yeah, it's a gradient when hw accel is enabled Apr 13 13:12:15 oh Apr 13 13:12:25 crockstylie no but there's http://android-ui-utils.googlecode.com/hg/asset-studio/dist/index.html Apr 13 13:12:44 SimonVT: any ideas on what to do with the background? Apr 13 13:13:08 xorgate: what kind of background do you suggest? Apr 13 13:13:10 Cool cool cool thx, Apr 13 13:13:20 Merci beaucoup ;) Apr 13 13:13:35 Quacked i am a programmer i dont understand these things, i just grab things from http://subtlepatterns.com/ Apr 13 13:13:42 haha Apr 13 13:14:42 xorgate: cool site, thanks Apr 13 13:15:13 Yes thx for the site ^^ Apr 13 13:16:36 Bye amigos Apr 13 13:16:45 xorgate: you do any tweaks or just set it as backround? Apr 13 13:17:06 Quacked i make a tiling drawable Apr 13 13:17:42 how? Apr 13 13:18:17 i deleted .project by mistake :( Apr 13 13:18:31 Quacked http://developer.android.com/guide/topics/resources/drawable-resource.html find 'tilemode' Apr 13 13:19:42 was actually on that site :) Apr 13 13:19:44 thanks Apr 13 13:23:01 xorgate: why do all those patterns come with 2x size as well? Apr 13 13:24:33 androi:id="@+id/telephone_number" is this reference to "values/strings" Apr 13 13:25:14 Or Just the information that i could get by ID ("telephone_number") something ? Apr 13 13:25:39 That I could find this view by id ? Apr 13 13:25:45 huh? Apr 13 13:26:00 R.string.telephone_number would be the ID for you String Apr 13 13:26:34 Quacked: It would be reference to which object ? Apr 13 13:26:48 I'm not following Apr 13 13:27:03 Is it possible to set your phone number in the Android emulator? Apr 13 13:27:05 Quacked : R.string.telephone_number is the pointer to ? Apr 13 13:28:02 if you have this in your strings.xml : 22222222 Apr 13 13:28:18 R.string.telephone_number would be the ID for 222222222 Apr 13 13:29:32 Quacked: But If I have In main.xml ? Apr 13 13:29:52 bluesm: ah, think I understand you. You need a android:text="@string/telephone_number" as well Apr 13 13:31:25 Quacked where you answering me? Apr 13 13:31:43 Quacked: Ok... Thanks. But I wonder what is the meaning of this (main.xml) and this (MainActivity.java) EditText editText = (EditText) findViewById(R.id.edit_message); Apr 13 13:31:45 theGrg: nah Apr 13 13:31:50 Ah. Apr 13 13:32:34 bluesm when compiling, a tool makes R.java which is translation between your R.id.bla and the resource packaged in your .apk Apr 13 13:32:40 bluesm: say you want to modify your edittext programatically.. if you want to change the text when user clicks button Apr 13 13:33:07 bluesm: then you find the ID with findViewById, and then you can modify it Apr 13 13:35:18 xorgate: What is the type of R.id.bla ? Apr 13 13:35:35 blues it's int, you can probably see this in eclipse Apr 13 13:35:45 you can defo see it in R.java, look at it Apr 13 13:35:55 all strings layouts dimensions etc are in there Apr 13 13:38:36 xorgate, Quacked : Ok. I think I do understand. Thank you very much for you time :) Apr 13 13:39:07 :) Apr 13 13:40:58 hi - im looking for some data on mobile apps Apr 13 13:41:04 but i cant find any Apr 13 13:41:16 what specially? Apr 13 13:41:22 im looking for the costs associated with a specific setup and the revenue generated per setup Apr 13 13:41:42 e.g. iphone mobile apps Apr 13 13:41:50 or android mobile apps Apr 13 13:45:24 any ideas? Apr 13 13:46:09 any more specific questions? Apr 13 13:46:23 ok let me explain Apr 13 13:46:25 better Apr 13 13:46:50 im working on a project and i need to build a model for the NPV (net present value) of a mobile app game Apr 13 13:47:06 i have built the model but then i realsied i need to consider different platforms e.g. iphone, anroid etc Apr 13 13:47:21 maybe this background is a little dirty? http://bildr.no/image/1437536.jpeg Apr 13 13:47:24 resembles a paper though Apr 13 13:47:27 and also need to consider 1) free + rev from ads, 2) paid + rev from ads, 3) paid + subscriptions Apr 13 13:47:35 but this is going to be very long Apr 13 13:47:41 and complicated and i have no idea how to simplify Apr 13 13:48:04 quacked - that link you sent i cant see anything :s Apr 13 13:49:28 Ugh, scumbag devs who have ads in paid apps Apr 13 13:51:50 any ideas? Apr 13 13:51:54 or shall i explain more? Apr 13 13:51:58 not sure if i was clear Apr 13 13:52:36 or i can send my brief and model and you can have a look? not sure what will help though Apr 13 13:54:59 lseactuary: what do you mean you cant see anything? Apr 13 13:55:03 hello all Apr 13 13:55:30 quacked - i dont get what the pic has to do with my question - can you please explain? Apr 13 13:55:47 it doesnt Apr 13 13:55:55 it wasnt directed at you Apr 13 13:56:05 oh sorry Apr 13 13:56:53 is it possible to make an app that use the microphone of the phone in a chat ? Apr 13 13:57:58 cortexA9: converting your voice into text for a messaging app? Apr 13 13:58:32 no the real voice. Apr 13 13:59:03 uhm Apr 13 13:59:07 live? Apr 13 13:59:11 you want to make another skype? Apr 13 13:59:37 yes Apr 13 13:59:45 but for know new people. Apr 13 13:59:54 not only friends and family. Apr 13 13:59:57 well, skype has an app, so yes, its possible Apr 13 14:04:32 anyone can do that ? Apr 13 14:04:46 for android-dev ? Apr 13 14:05:12 what? Apr 13 14:05:20 yes Apr 13 14:05:25 we can speak Apr 13 14:05:32 with this app. Apr 13 14:06:05 are you drunk? Apr 13 14:06:10 no Apr 13 14:06:13 why ? Apr 13 14:12:06 Quacked: why not ? Apr 13 14:16:21 it's incredible that we have a phone and we can't talk each other with an app. Apr 13 14:17:38 You were already told it's possible for an app to use the microphone Apr 13 14:18:31 SimonVT: yes Apr 13 14:18:39 Hey there, how can I set XML attributes of a view dynamically? for instance stuff like "android:layout_column" etc,? Apr 13 14:19:09 layout_ attributes are parsed into LayoutParams .. so change the views LayoutParams Apr 13 14:19:53 yeah but how does it behave, do they get overriden each time SetLayoutParams is called? Apr 13 14:21:46 or how do I set more than one "param type" at once? Apr 13 14:22:14 I don't follow Apr 13 14:22:32 The layoutparams holds the layout_ attributes you set Apr 13 14:22:59 Alright e.g. I wanna set the following xml attributes for my view: android:layout_column="1" & android:layout_width="30dp" Apr 13 14:23:25 I know I can set the width and height with: view.setLayoutParams(new LayoutParams(width, heigth); Apr 13 14:23:58 Each viewgroup have their own layoutparams class where you can set whatever attributes they support Apr 13 14:23:59 how do I additionally set the layout_column attribute?= Apr 13 14:24:07 ok... Apr 13 14:25:20 Good morning Apr 13 14:25:25 How can I create EditText "full witdt" and then fullWidth button beneath ? Apr 13 14:25:45 and that is "ViewGroup" for Views? Apr 13 14:26:01 "android.view.ViewGroup.LayoutParams" ? Apr 13 14:26:09 hi alkain Apr 13 14:26:10 https://gist.github.com/bluesm/5378614 Apr 13 14:27:00 A viewgroup is a view that holds other views Apr 13 14:27:06 Like linearlayout, framelayout, etc Apr 13 14:27:17 Each have their own layoutparams subclass Apr 13 14:27:21 bluesm: are you sure you dont know ? "android:orientation="horizontal" ? Apr 13 14:27:27 With all the attributes that particular viewgroup support Apr 13 14:27:52 ok but I need to change the Attributes of a "View" not a LinearLayout or a TableLayout or such Apr 13 14:28:18 so what do I have to pick? (sorry right now I ve got a hard time understanding) Apr 13 14:28:23 Another day of hacking away at Python, I guess.. Apr 13 14:28:35 Stupid project. I should never have started it. Apr 13 14:28:42 StingRay_: What do you mean ? Apr 13 14:28:56 if you add a view to a linearlayout, the layoutparams must be of the type LinearLayout.LayoutParams Apr 13 14:29:27 SimonVT: To me ? Apr 13 14:29:31 bluesm: (" How can I create EditText "full witdt" and then fullWidth button beneath ") Apr 13 14:29:33 So to change the layoutparams of that view, you create an instance of LinearLayout.LayoutParams and set whatever attributes you want Apr 13 14:29:41 Then set it on the view Apr 13 14:29:53 bluesm: are you sure you dont know ? "android:orientation="horizontal" ? Apr 13 14:30:11 can you see the obvious thing in your layout ? Apr 13 14:31:08 StingRay_: Should be vertical ? Apr 13 14:31:49 only if you want it err…….vertical Apr 13 14:32:11 StingRay_: It seems that I don't understand full this property. Apr 13 14:32:30 read about it then Apr 13 14:32:33 in the docs Apr 13 14:32:35 StingRay_: Thank you. I see :) Thanks for time :) Apr 13 14:32:41 :) Apr 13 14:33:19 Anyone know about Python and Android? Apr 13 14:33:41 how to limit demo version upto specified date? Apr 13 14:34:14 I'm trying to use a python script to push GPS data through an ADB port but I'm getting some issues Apr 13 14:37:17 Oh, bloody hell. Whenever I ask for help, the room goes silent. Apr 13 14:37:45 :-p Apr 13 14:39:15 alkain: you should probably be a little more concise Apr 13 14:39:25 maybe people would know what your asking then Apr 13 14:40:08 you asked the broadest of generalised quation then you stated something Apr 13 14:40:17 Yes because the details get murky. Apr 13 14:40:30 question* Apr 13 14:41:26 At the moment, my main issue is moving this python script from ASE to SL4A Apr 13 14:41:46 this background too dirty? http://bildr.no/image/1437536.jpeg Apr 13 14:41:50 The ASE Interface no longer exists, apparently, along with a few other errors. Apr 13 14:42:05 Quacked: horrid Apr 13 14:42:06 The tuts says "By default, the system uses the Bundle instance state to save information about each View object in your activity layout (such as the text value entered into an EditText object)". Apr 13 14:42:24 this does not seem to be the case... Apr 13 14:42:38 StingRay_: kinda agree, but it resembles a paper a bit :p Apr 13 14:42:47 not really Apr 13 14:42:54 Wait, here we go. http://pastebin.com/guDR0dYf Apr 13 14:42:59 This is my issue exactly Apr 13 14:43:10 StingRay_: a recyled one :D Apr 13 14:43:14 if i do for instance setText on some TextView - this information is lost at OnCreate().. Apr 13 14:43:18 recycled* Apr 13 14:44:31 The view state isn't restored yet in onCreate Apr 13 14:44:53 StingRay_: think its too boring with no background? http://bildr.no/image/1437504.jpeg Apr 13 14:45:06 It's restored in onRestoreInstanceState Apr 13 14:45:06 it's on restoreInstanceState() right? Apr 13 14:45:23 Quacked: no Apr 13 14:45:26 yes, but tuts state that: "As your activity begins to stop, the system calls onSaveInstanceState() so your activity can save state information with a collection of key-value pairs. The default implementation of this method saves information about the state of the activity's view hierarchy, such as the text in an EditText widget or the scroll position of a ListView." Apr 13 14:45:53 Yes Apr 13 14:46:14 what is "state of activity's view hierachy" ? Is it the XML objects describes for example in the XML. Or are these states the actual objects later manipulated in code Apr 13 14:46:53 is writing a robust app that streams media over the network a complex task or have I just made a mess of it? Apr 13 14:47:33 It's whatever views you set as the activitys content Apr 13 14:48:32 from onSavedInstanceState(Bundle bundle) javadocs: Apr 13 14:48:35 The default implementation takes care of most of the UI per-instance state for you by calling onSaveInstanceState() on each view in the hierarchy that has an id, and by saving the id of the currently focused view (all of which is restored by the default implementation of onRestoreInstanceState(Bundle)). If you override this method to save additional information not captured by each individual Apr 13 14:48:35 view, you will likely want to call through to the default implementation, otherwise be prepared to save all of the state of each view yourself. Apr 13 14:49:38 is there a question in there? Apr 13 14:50:54 the API seems to tell me that if a get a View by findViewByID(), edit this in some code . Stop my activity. Then when recreating it, the savedInstanceBundle should take object saved rather than the static resource (which it seems to be doing now) Apr 13 14:51:28 That's correct Apr 13 14:51:45 what is Apr 13 14:51:52 static resource, or object Apr 13 14:52:07 That the views save their own state Apr 13 14:53:12 my app seems to be ignoring the saved bundle... or not properly saving it.. Apr 13 14:53:23 this is w/o overriding any default implementations Apr 13 14:54:26 Seems to work for everyone else Apr 13 14:54:37 very helpful answer Apr 13 14:55:02 You're welcome Apr 13 14:55:20 where do you edit the view? Apr 13 14:55:58 from a Button view, defined in XML.. onClick:doStuff() Apr 13 14:56:11 doStuff(){ text.setText("");} Apr 13 14:59:06 SimonVT: thanks man now Ive understood it :) Apr 13 15:00:56 i mean , it sets the text very nicely when the activity is "active". However when being destroyed and recreated it seems to be ignoring any savedInstanceBundle and just defines content view directly from static XML (like starting the app for the first time) Apr 13 15:07:25 Screw this. I'm getting a GPS to BT app to do this for me. Apr 13 15:07:39 Watch, it'll work in like 5 minutes. Apr 13 15:11:40 I just cloned a repo which opens fine in eclipse, but then i tried copying the src and gen files into my project and now it says "component.foo failed to instantiate". Does anyone have any ideas? I'm trying to implement this: https://github.com/Todd-Davies/ProgressWheel Apr 13 15:26:22 is it possible to push data from a server to an android app? Apr 13 15:29:18 * StingRay_ dont think it's a good idea to be in this chat on a weekend Apr 13 15:30:42 When using a Cursor c for AppWidget data, should one pre-fetch data for all items and close c or is it safe to not close c and use it until RemoteViewsService#onDestroy() gets called? Apr 13 15:31:23 so more specifically, i found out my custom resource isn't being recognized in my project. Is there way to make eclipse see my values/attrs.xml file? Apr 13 15:32:34 mattinahat, If you added attrs.xml with your file browser: F5 in Eclipse's files view. Apr 13 15:33:24 Or just clean the projects. Apr 13 15:33:38 Rayne: Is that just right click, clean? Apr 13 15:34:55 mattinahat, Where did you click? It is also possible to follow: Project → Clean… in the title bar. Apr 13 15:37:18 Rayne: ok. I tried that and no dice. That actually removed my R.java file and now I have unresolved R.layout variables. Apr 13 15:37:53 Clean rebuild all generated files. It cleans up the environment. Apr 13 15:38:14 And it finds new files, which where added by some mysterious ways (outside of Eclipse) Apr 13 15:38:41 Could be possible that it is still building R Apr 13 15:39:26 If not, there is something wrong which you need to fix manually. Eclipse marks files with problems with a red cross. Apr 13 15:39:53 Yeah, all my errors are unresolved R.java references. Apr 13 15:42:19 I am about to publish my app to the Android market, any hints or blog posts to read beforehand? Apr 13 15:46:55 Rayne: So an error in xml stops R.java from being created. Which was my original error and prevented R.java. I fixed that, but now my other package doesn't have an R.java file. Should packages have unique R files? Apr 13 15:48:19 What is wrong here https://gist.github.com/bluesm/5378923 Apr 13 15:48:25 you should have one for the app Apr 13 15:48:30 I get an error [aapt] /root/an/MyFirstApp/res/layout/main.xml:7: error: Error: String types not allowed (at 'width' with value 'match_parent'). Apr 13 15:48:30 [aapt] /root/an/MyFirstApp/res/layout/main.xml:7: error: Error: String types not allowed (at 'height' with value 'wrap_content'). Apr 13 15:49:29 Look at line 7 and 8, then look at line 3 and 4.. Spot the difference Apr 13 15:50:55 f2prateek: do I need to do anything special after adding a new package then? Apr 13 15:52:05 SimonVT: Uh, so there is also "height" property (alone height property without "layout prefix") Apr 13 15:52:09 no, everything in the default package will be able to access R.java without an import. Classes that aren't in the in the default package will have to have "import {default-package-name}.R.java;" Apr 13 15:52:43 I Apr 13 15:53:04 I'm the only one who have to fight with dumbasses giving 1* Rating for no-lame-really-ugly-idiots-reasons? Apr 13 15:53:25 bluesm: not for LinearLayout Apr 13 15:53:25 if yes.. how to avoid them? Apr 13 15:53:51 misterli: dont release an app Apr 13 15:53:52 f2prateek: It is for "fixed and absolute" layouts . Right ? Apr 13 15:54:02 StingRay_. Haha Apr 13 15:54:42 or find a way to brick some1's phone if they offer a <4* rating for no reason Apr 13 15:54:44 :) Apr 13 15:54:53 bluesm: No idea, but it's not in LinearLayout http://bit.ly/16UmPYo Apr 13 15:55:08 bluesm: It is in textview Apr 13 15:55:13 It's not a 4* Rating. Not even 3* Rating. But 1* Rating for reasons like "I would like to use the app but i cannot understand english and i dont know how to use it" Apr 13 15:55:42 The App uses the Locale Language. The Website itself has straight after login "Choose Language:". Still such idiots who dont understand this. Apr 13 15:55:48 bluesm: on is for a viewGroup layoutParams, the other is a View property Apr 13 15:55:53 one* Apr 13 15:57:48 Well. Anyway. I've an other question. How can i read files in /? Remounting to rewrite with su does not work. Do i really have to chmod the whole folder to 777? Apr 13 16:04:14 you mean change permissions of everything in the (root) ? Apr 13 16:04:20 that would not be all that good to do Apr 13 16:06:09 mhm okay Apr 13 16:07:41 Can you send messages to an Async task? Apr 13 16:09:32 do0ob i guess you could, if you hold on to a ref to the task Apr 13 16:09:57 setting properties on it Apr 13 16:10:02 not sure how to do it safely Apr 13 16:10:46 Whats the usual method for running something in the background and controlling it? a service? Apr 13 16:10:53 anything simpler than a service? Apr 13 16:11:19 I find IntentService simpler if you just want to process something and be done with it Apr 13 16:11:34 ok, i'll give it a shop Apr 13 16:11:38 shot* Apr 13 16:11:58 but its not something running in background doing stuff for a long time Apr 13 16:20:13 what does the "back-button" displayed at the top-left corner of an activities title screen. It seems to return to some hierachical parent but does not in fact load the savedInstanceState such as when using "back" on the Apr 13 16:20:14 ac Apr 13 16:20:16 action menu Apr 13 16:21:17 If editText is numeric Apr 13 16:21:19 tortal: Back on the action menu? Apr 13 16:21:23 i meant the menu on the bottom of the screen Apr 13 16:21:31 Back, home button, switch apps Apr 13 16:21:35 This would return integer ? myNumericEditText.getText() ? Apr 13 16:22:05 bluesm: if you look at that method in the docs it tells you the return type Apr 13 16:22:23 bluesm: No, it always returns an Editable, but you can get an int like this: Integer.parseInt(editText.getText().toString); Apr 13 16:22:50 bluesm: Notice that this will crash if the input is invalid, so you should put it in a try block Apr 13 16:23:04 Integer.parseInt(editText.getText().toString()); Right ? Apr 13 16:23:21 bluesm: Yeah Apr 13 16:23:43 But think of the try-block! Apr 13 16:24:27 flan3002: But I've tested it, and if android:numeric="integer" -> Then user couldn't enter anything else other than numbers... Apr 13 16:25:20 Yeah, but I got an old device, where this seems to be buggy, so I can input other chars too, when being fast, so it's your risk! Apr 13 16:26:29 http://i.imgur.com/vD6k0X4.jpg. Theses two "back" buttons does not do the same thing.. the lower "proper" back button will restore and bundle that was saved in the last activity. Apr 13 16:26:52 the upper back button seems to just load static XML resources related to the parent Apr 13 16:26:58 torchie: They are not supposed to do the same thing! Apr 13 16:27:02 i know Apr 13 16:27:17 http://developer.android.com/design/patterns/navigation.html Apr 13 16:27:43 flan3002: Ok. Thank you very much for time :) Apr 13 16:28:05 great, thx.. maybe i didnt google enough but it was what i was looking for Apr 13 16:28:24 tortal: Have a look at http://developer.android.com/training/implementing-navigation/ancestral.html Apr 13 16:28:49 This a test, if I can write in color Apr 13 16:29:01 flan3002: perfect! Apr 13 16:29:32 as i've never used android device before im unfamilliar with different API levels Apr 13 16:30:13 You can use the emulator to get familiar with behaviour and looks on the different version of android (menu in 2.1 vs 4.2). Apr 13 16:30:20 http://imgur.com/ZrF2WRV how do i stop this happening Apr 13 16:30:36 i want the text to resize if it wont all fit on one line Apr 13 16:31:07 WhereIsMySpoon: Have you tried android:singleLine="true"? Apr 13 16:31:37 flan3002: no Apr 13 16:31:56 must have missed it, i just went through all of the androd: xml tags to try and find smth like that Apr 13 16:32:22 flan3002: true. i just really hate using the SDK emulator as it's being real slow. Using AndroVM i get speed but i also get a more generic experience. not really reflecting different client models. Apr 13 16:32:32 WhereIsMySpoon: Try to use android:maxLines="1"! Apr 13 16:32:42 flan3002: what's the difference/ Apr 13 16:32:48 will that not just cut it off Apr 13 16:32:49 or rather why should I use one over the other Apr 13 16:32:54 as in not resize it :) Apr 13 16:32:56 WhereIsMySpoon: maxLines is newer! Apr 13 16:33:00 i dont know, StingRay_ Apr 13 16:33:05 flan3002: that isnt a reason Apr 13 16:33:26 WhereIsMySpoon: singleLine is deprecated, because maxLines is more powerful! Apr 13 16:33:36 singleLine isnt deprecated Apr 13 16:33:41 unless eclipse is wrong Apr 13 16:33:57 it's lint ;) Apr 13 16:34:04 tortal: My emulator was very slow too, until I installed Intel Haxm. Apr 13 16:34:06 which in the most recent version sucks more then ever Apr 13 16:34:13 monsti: huh? Apr 13 16:34:22 WhereIsMySpoon: My Eclipse says its deprecated... Apr 13 16:34:26 yeah that stuff sucks so hard :( Apr 13 16:34:40 WhereIsMySpoon: e.g. i use custom xml attributes Apr 13 16:35:00 tortal: Now it runs faster than my Nexus 7! Apr 13 16:35:06 WhereIsMySpoon: which is supported and stupid lint claims errors Apr 13 16:35:13 Except for the openGl part... Apr 13 16:35:27 StingRay_: yea it just gets cut off and says "Tournamen..." Apr 13 16:35:36 intel haxm? i'll give it a try. ive seen it on the SDK download manager but i figured VMware would be quick enough.. TCP with ADB makes it simple to connect to eclipse anyhow.. Apr 13 16:35:43 flan3002: androvm.org has opengl support Apr 13 16:35:46 StingRay_: is there a way to actually scale the text? Apr 13 16:36:02 never got the OpenGL bus to work Apr 13 16:36:12 WhereIsMySpoon: I think you would have to do that yourself Apr 13 16:36:17 i can connect with adb, root etc. Apr 13 16:36:22 really? :| Apr 13 16:36:52 i boot my virtual machine, then start "Android VM Player".. which will by host-to-host render the OpenGL Apr 13 16:36:56 nothing.. Apr 13 16:37:13 tortal: you have to read the readme's ;) Apr 13 16:37:16 WhereIsMySpoon: having font size driven by visual elements is not a brill idea in the 1st place Apr 13 16:37:17 i did Apr 13 16:37:23 StingRay_: what should I do instead? Apr 13 16:37:25 that only works for certain nvidia cards/drivers Apr 13 16:37:34 oh Apr 13 16:37:38 missed that part :p Apr 13 16:37:48 it's work in progress ;) Apr 13 16:38:06 yeah i presume Apr 13 16:38:11 a hack for a patch of a fix for a beta xDDD Apr 13 16:38:29 monsti: Right now, I don't need more speed for the emulator, even though it looks nice... Apr 13 16:38:33 btw. If i want to list all my files from / to a List ill get an out of memory. Is there a way to avoid this? I need them in my List :} Apr 13 16:38:33 but in the end it's faster then that intel stuff Apr 13 16:38:38 WhereIsMySpoon: proper design :) Apr 13 16:38:52 StingRay_: which means what? images instead? Apr 13 16:39:08 on small devices , and most of the time, ya Apr 13 16:39:30 added advantage of "NO" localized text :) Apr 13 16:39:35 misterli: Recursive? Apr 13 16:39:53 yea, not really sure how I can market "tournaments" and "matches" via a small image tho D: Apr 13 16:40:07 design Apr 13 16:40:08 espeically to someone using the app for the first time Apr 13 16:40:09 :) Apr 13 16:40:14 StingRay_: that doesn't help |: Apr 13 16:40:43 well I can think of loads Apr 13 16:40:44 misterli: well on my archos you lose ;) Apr 13 16:40:58 misterli: the device mounts my samba shares to /mnt/smb Apr 13 16:41:23 StingRay_: humour me, say I can't and you'd be willing to share? Apr 13 16:41:27 misterli: also try use a list of strings not a list of files Apr 13 16:41:46 misterli: the information "isDirectory" or "isFile" can be obtained in realtime Apr 13 16:41:52 misterli: or by keeping 2 lists Apr 13 16:41:54 does it really make any difference? I thought listFiles will only store a Pointer to the File (which is better or similar to storing the path as string)? Apr 13 16:42:01 WhereIsMySpoon: I would do a tournament icon "trophy/cup" etc Apr 13 16:42:14 I would think about it for more time than I'm willing to here Apr 13 16:42:28 I dont think that android will store the whole content (only the meta informations proberbly) of the file in the list? Apr 13 16:42:34 This -> public int getIntExtra (String name, int defaultValue) Apr 13 16:42:35 misterli: Yeah, but the pointer points somewhere, so somewhere there is memory consumed as well... Apr 13 16:42:42 Means that all parameters are required ? Apr 13 16:42:42 misterli: you can also read your favourite program tutorial on how to use btrees to avoid ram consumtion Apr 13 16:43:15 match would be some symbol or V's or any other symbolic stuff I would do Apr 13 16:43:19 but like I say Apr 13 16:43:27 I would "design/think/try" Apr 13 16:43:38 not time I would be willing to spare atm :) Apr 13 16:43:40 sorry Apr 13 16:44:10 bluesm: what does the this -> stand for? Apr 13 16:44:12 StingRay_: ok np Apr 13 16:44:53 StingRay_: is there some attribute of the button that can tell you if its text is currently fitting or that it's had to shorten it to "bla..."? Apr 13 16:44:54 flan3002: It is only arrow that "this" means something after this arrow :) Apr 13 16:45:28 >>>--------------> no idea Apr 13 16:45:30 :) Apr 13 16:45:34 bluesm: If there is no overloaded version, it means, that all parameters are required. Apr 13 16:45:42 what's with the hueg arrow o.o Apr 13 16:45:54 but ok Apr 13 16:46:19 And because you didn't give the context, I can't look it up (even though I assume it's about Bundle). Apr 13 16:46:34 flan3002: hmm methods with the same name and and "less" parameters are also called "overload" not "underload" ? :P Apr 13 16:47:03 omg omg omg i need this! http://www-03.ibm.com/systems/storage/flash/720-820/index.html ... 24tb with 5GB/s Apr 13 16:47:11 bluesm: Overloading just means there are several methods with this name, but different signatures. Apr 13 16:47:30 flan3002: I get it. Thank you :) Apr 13 16:53:00 hi there Apr 13 16:53:05 hi Apr 13 16:54:11 hi Apr 13 16:56:57 when calling setToNow() on a Time instance that's had it's time zone set to UTC, will it interpret local time as UTC or will it convert local time to UTC= Apr 13 16:57:08 *? Apr 13 16:59:18 ChaosColor: Damn, its a native method! Apr 13 16:59:57 Can't you test that somehow? Apr 13 17:02:29 ChaosColor: But I guess it does, because set(long) does take them as UTC millis, and the name of setToNow() implies that it does set(System.currentTimeMillis()). But I think you should do a test, and compare the results with what you expect. Apr 13 17:04:04 any dev here ? Apr 13 17:04:58 cortexA9: You mean an android developer? Apr 13 17:04:59 What property use "message" app to show the contact list ? Apr 13 17:05:07 yes flan3002 Apr 13 17:05:37 cortexA9: I guess we all are android developers here, aren't we? Or do you mean a developer of AOSP? Apr 13 17:06:13 bluesm: Would you give me a screenshot? If it is in there, you can also inspect the source! Apr 13 17:06:14 oh ok no i mean android developers. Apr 13 17:06:44 Just ask, if anyone reads the question and can help, he will. Apr 13 17:07:45 can we discuss about my idea ? Apr 13 17:08:18 Yeah, why not, although I don't have much time anymore. Apr 13 17:09:17 the purpose is to make a new app to talk each other. Apr 13 17:09:30 here in android-dev. Apr 13 17:09:32 flan3002: It show contact list as you type. Apr 13 17:09:42 cortexA9: nobody wants to talk to you ;) Apr 13 17:09:45 cortexA9: Why on IRC? Apr 13 17:09:50 lol Apr 13 17:10:01 flan3002: (I can't make good screenshot because it is only showed when you type. Apr 13 17:10:07 because irc Apr 13 17:10:16 is good Apr 13 17:10:20 for interaction. Apr 13 17:10:30 As good as any other chat... Apr 13 17:10:59 Well, it's bigger. Apr 13 17:11:43 my idea is to make a new app to know new android users. Apr 13 17:11:54 with the mobile phone. Apr 13 17:12:14 with the help of irc. Apr 13 17:12:52 with the possibility to interact with microphone. Apr 13 17:13:31 seems an irc evolved. Apr 13 17:13:58 the beauty of irc is that you can type Apr 13 17:14:06 and you dont have to answer within a second Apr 13 17:14:17 and everyone can see what you type on a channel Apr 13 17:14:28 yes i agree. Apr 13 17:14:34 sounds like chat roulette. Mean time before tourettes: about 30 seconds Apr 13 17:14:39 also many services once offered voice Apr 13 17:14:40 dragorn: hehehe Apr 13 17:14:44 it failed Apr 13 17:14:51 or they failed Apr 13 17:14:58 voice sucks.. everybody shut up Apr 13 17:15:01 lol Apr 13 17:15:12 Quacked: you sound like a girl Apr 13 17:15:14 !!! Apr 13 17:15:37 chat roulette is random. Apr 13 17:15:42 dafuq Apr 13 17:16:10 :) Apr 13 17:16:22 too many probs with multi person voice Apr 13 17:16:34 and if it's group voice chat, there are many apps for that Apr 13 17:16:41 but public voice chat, ewww Apr 13 17:16:49 but an app Apr 13 17:17:04 to interact to know android people. Apr 13 17:17:05 yes many apps Apr 13 17:17:14 there is that ? Apr 13 17:17:18 to know whoever Apr 13 17:17:23 go listen to a guild raid in world of warcraft on youtube or something.. listen to their voices Apr 13 17:17:33 you think anyone can discuss android doing that? :D Apr 13 17:18:15 idk. Apr 13 17:18:34 There's also already G+ hangouts if you really want to do voice chat. Sometimes people organize them on the android dev communities. Apr 13 17:18:36 * dragorn shrugs Apr 13 17:18:43 Voice/video is negatively interesting to me Apr 13 17:18:58 oh yes Apr 13 17:19:24 but my privacy ? Apr 13 17:19:26 :P Apr 13 17:19:35 cortexA9: and we havent even started discussing the implications youll face with creating such an app Apr 13 17:20:19 your privacy is a lot more protected on G+ than if you do anything involving peer to peer chat Apr 13 17:21:07 many people don't trust social media. Apr 13 17:23:26 I don't trust many people too Apr 13 17:24:29 There's a matter of trusting social media, and then there's the matter of knowing exactly what your IP is when you do a peer to peer connect. Apr 13 17:30:05 dragorn: you dev other stuff for android than kismet stuff? Apr 13 17:35:32 Hey guys, I'm using Feinstein's sliding menu library and was wondering if anyone knew how I could add sub menu items to it? The demo app doesn't seem to have any.. I'm currently just populating the menu using an arrayadapter with a string arraylist that gets inserted into the listview. Apr 13 17:37:01 bluesm: Are you still there? Have you solved the problem? Apr 13 17:37:30 hi guys, when i launch my android app through my phone, it runs for a second, and then closes. how can i debug this? it seems to be crashing in when it calls into the draw method of my triangle class: http://pastebin.com/z0UeWyiT Apr 13 17:38:13 demifuror: Do you have any output? Apr 13 17:38:18 If not, use logs! Apr 13 17:38:53 You can log to a file. Apr 13 17:39:43 sorry, got dc'd Apr 13 17:51:19 flan3002: Nope. Apr 13 17:51:42 flan3002: I look for the "contact match" editText field. :) Apr 13 17:52:41 Just from your description, I'd guess for some auto-completion edittext inputmode, but I got no Idea what you mean :D Apr 13 17:54:16 bluesm: Do you mean this http://ge.tt/4P2G3yd/v/0?c ? Apr 13 17:54:56 flan3002: Exactly. Apr 13 17:56:56 bluesm: Use AutoCompleteTextView (http://developer.android.com/reference/android/widget/AutoCompleteTextView.html)! Apr 13 17:57:14 Quacked: Generally kismet-related stuff Apr 13 17:57:35 Quacked: Been messing with making a rom to make porting some stuff easier; not really what I want to be doing tho Apr 13 17:58:21 Quacked: working on a scanning mode version that doesn't need usb stuff, did the pcap stuff which doesn't have Kismet behind it tho that's on the list to get done; need to make some infrastructure changes in kismet to make it support all that better Apr 13 17:59:02 Quacked: Going to be working on some commercial stuff @ work, not sure if the app will be commercial or free w/ the hardware Apr 13 17:59:21 sounds hard :) Apr 13 18:00:09 Quacked: would be easier if manufacturers weren't crappy about USB support Apr 13 18:00:38 got an A on my master's thesis btw.. where I used kismet in a war-walking Apr 13 18:00:46 think I credited your help in the beginning :P Apr 13 18:01:04 Quacked: the bcmon guys sent me some pre-release radio firmware hack stuff that gets monitor on the N7 internal radio, got to hack kismet to play nice since you cant' actually modify the interface normally since it's a total hack Apr 13 18:01:11 Quacked: hah awesome :) Apr 13 18:01:38 Quacked: Ironically I have no degrees :P Apr 13 18:01:43 :D Apr 13 18:02:07 /wcx Apr 13 18:04:23 Quacked: but no, I'm not doing much on android that isn't, in some sense, related to wireless stuff, tho not necessarily kismet specific; got the zigbee stuff brewing still, got some chipcon stuff I might get ported over for rfcat, haven't been able to spend as much time on android shit as I've wanted lately Apr 13 18:07:45 I think I need new hardware... major crash without bsod.. everything just black and a bad noise from the speakers :P Apr 13 18:12:10 Quacked: I'm working on some USB3 stuff but it won't probably interface usefully with android Apr 13 18:15:32 dragorn: is there a need for usb3 stuff really? or do you just do it for fun? :P Apr 13 18:17:49 My Dialogfragment's title has a weird color, probably using the wrong style, but I set the style in onCreate... Any ideas? Apr 13 18:18:28 Its really bright white... Apr 13 18:19:47 can any one give link to a good android tutorial that explains tab layout using fragments without using deprecated functions? Apr 13 18:21:23 is everyone afk? Apr 13 18:21:45 No, but I dont know a good one... Apr 13 18:22:09 agent47: with tablayout you mean TabHost? Apr 13 18:22:25 yup Apr 13 18:22:54 you might want to look at ViewPager and not TabHost anymore Apr 13 18:23:11 http://developer.android.com/reference/android/support/v4/view/ViewPager.html Apr 13 18:23:27 available in the support library down to api level 4 Apr 13 18:23:39 timroes :thanks a lot mate... will check it out :) Apr 13 18:23:53 and in general search for viewpager for tutorials, I guess you will find a lot :) Apr 13 18:25:26 Quacked: for high data rate stuff you need usb3, yeah Apr 13 18:25:52 dragorn: yeah, but for kismet stuff? Apr 13 18:26:00 Quacked: it's not for kismet ;P Apr 13 18:26:06 ah, got ya :) Apr 13 18:26:51 Quacked: fpga w/ different front ends, gig-e, usb3, and hdmi MITM sniffing. Definitely needs USB output. In theory possible to do it on android if there's a device with usb3 support on it. Apr 13 18:28:50 So, no Ideas? Apr 13 18:29:39 hdmi mitm.. lol :D Apr 13 18:35:37 hmm.. admob as good as any other? Apr 13 18:37:38 guys quick question: I am creating a table in code, in each row I have several views.. setting height and width is no longer a problem using "TableRow.LayoutParams", however there is no "background" attribute I can set... how do I get to that? as I do not want to just set the background color, but use a drawable I created Apr 13 18:39:20 forget it... SetBackgroundDrawable Apr 13 18:46:13 yay! Apr 13 18:46:30 any of you play with the google glass? curious about the experience fo writing apps for it Apr 13 18:46:36 or i guess pushing crap to it Apr 13 18:47:36 I would advise against pushing crap to it Apr 13 18:47:46 do you really want crap in front of your eyes all day? :) Apr 13 18:47:55 yes Apr 13 18:47:59 bc its there already Apr 13 18:48:03 better than looking at some people Apr 13 18:48:16 most* people Apr 13 18:48:17 :P Apr 13 18:48:21 I recommend only pushing non-crap Apr 13 18:48:38 but it looks like it's just a POST to a API with the crap you want and it displays the crap Apr 13 18:48:48 (note: I don't actually know anything about glass) Apr 13 18:48:50 :) Apr 13 18:49:31 http://www.youtube.com/embed/JpWmGX55a40 Apr 13 18:49:35 funkbox: it seemed to be so Apr 13 18:50:01 you POST (or PUT?) pieces of data using HTTP Multipart encoding, with cards defined through HTML Apr 13 18:50:23 dude's wearing a fedora, not sure if i can trust anything he says Apr 13 18:50:38 I'm have a small issue. I have a chat feature in my game and the IME option for the EditText is set to "actionSend". The edittext also has a Button with the text "Send" next to it. Apr 13 18:51:09 On Gingerbread, while typing out chat messages and hitting Send (on both, keyboard and Button), the keyboard doesn't automatically hide itself. Apr 13 18:51:32 But on my Galaxy Nexus running 4.2.2, the keyboard hides itself every time I hit Send on the soft keyboard. Apr 13 18:52:03 I see the same behavior on HTC One X and Samsung Galaxy Note (both running 4.1.x) Apr 13 18:52:12 Any ideas what could be going wrong? Apr 13 18:52:40 lut4rp: it might just be an intended change in behavior. Or maybe a bug on gingerbread. Apr 13 18:53:11 in any case, can you detect when you get text from the IME and try hiding it yourself? Apr 13 18:53:23 although that feels more like a bandaid :) Apr 13 18:53:37 That's possible, but for chat applications, it is painful to have the user hit the EditText after every message they send Apr 13 18:54:00 Talk still works fine. No keyboard collapsing happening there. Apr 13 18:54:04 (Google Talk) Apr 13 18:54:18 oh, you want it to *not* hide itself? Apr 13 18:54:23 Yes. Apr 13 18:54:34 Hey, what do you think about the absence of Java 7/8 in android? Do you know of a possibility to get it to android? Apr 13 18:54:50 im pretty sure java 7 is bytecode compatible iwth java 6, so it should work on android Apr 13 18:55:00 JesusFreke, I want to it to stay open (just like other chat applications). Sorry if I wasn't clear earlier. Apr 13 18:55:01 or at least most of the cool features would work Apr 13 18:55:56 But I cant even use string-switch in my app, so what am I doing wrong? Apr 13 18:56:27 It says Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please use Android Tools > Fix Project Properties. Apr 13 18:57:29 Because I think the parallel collections and the lambda functions will provide beautiful solutions to many common problems... Apr 13 18:58:14 lut4rp: yeah, I dunno offhand. sorry :) Apr 13 18:59:22 Thanks anyway. Apr 13 18:59:34 you need to use buildTarget 1.6 or something like that Apr 13 19:00:15 p_l: You adress me? Apr 13 19:01:33 flan3002: yes Apr 13 19:01:33 flan3002: you can't use java 7 for android applications Apr 13 19:01:48 bytecode from javac 1.7 is incompatible with 1.6 Apr 13 19:01:56 are you sure about that? Apr 13 19:02:11 canadiancow: you can use java 1.7 compiler, and have it produce 1.6 bytecode Apr 13 19:02:22 canadiancow: well, not exactly bytecode itself, but the classfile version field will make the tools scream Apr 13 19:02:24 but that's really no different than using 1.6 compiler, afaik Apr 13 19:02:45 JesseC: That exactly what I said, and thats why I guess we don't get the Java 8 features... Apr 13 19:02:49 well i know a few of the 1.7 features can produce compatible bytecode Apr 13 19:02:58 JesusFreke: it is, a little, but it avoids using bytecode constructs that will make 1.6 puke Apr 13 19:03:10 Apache Harmony being discontinued... Apr 13 19:03:20 ah, ok. so you can get a limited set of 1.7 functionality then? interesting Apr 13 19:03:40 http://stackoverflow.com/questions/338206/switch-statement-with-strings-in-java Apr 13 19:03:53 assuming that answer is correct, it looks reasonable to assume it would work on 1.6 Apr 13 19:03:56 re java 7 features: http://stackoverflow.com/a/13550632/1156340 Apr 13 19:04:30 SimonVT: nice. TIL :) Apr 13 19:04:32 Underscore in number literals (1_234_567) Apr 13 19:04:32 Binary literals (0b1110111) Apr 13 19:04:36 those are my favs Apr 13 19:05:43 Mine are lambda and parallel collections, as I said above... Apr 13 19:11:00 i can't wait until java 8 Apr 13 19:11:03 on android that is Apr 13 19:11:15 2024 looks to be a very exciting year Apr 13 19:16:52 Anyone knows how I can add a new inputfilter to an edittext? Apr 13 19:16:58 Except with TextWatcher? Apr 13 19:29:00 In a TableLayout with Rows, whats the quickest way to get the row id of a TableRow object codewise? Apr 13 19:29:32 By giving each row an id when creating them in their name in the first place for instance (that was the first idea i had)? or is there a better way Apr 13 19:29:37 Does anyone know of a good way to implement an indented listview? Something similar to this: http://cdn1.iconfinder.com/data/icons/humano2/128x128/actions/format-indent-more.png Apr 13 19:39:13 I'm trying to set admob at the bottom of my Activity but I'm not getting enough space for it. Admob wants <480, 75> but only has <480, 0>. I think it's because my ListView pushes it down, but how can I fix it? :) http://pastebin.com/iww5MC09 Apr 13 19:47:17 Quacked: Is it a listview item? If not, have you tried minHeight? Apr 13 19:48:06 the admob? nah, its in an own linearlayout Apr 13 19:48:17 What about minHeight? Apr 13 19:49:17 on the linearlayout? Apr 13 19:49:21 didnt change anything Apr 13 19:49:43 How big is the linearlayout in runtime? Apr 13 19:50:54 did you see the link? I have an outer linearlayout for the entire screen at 480x800, then inside that a relativelayout and a new linearlayout for the admob stuff Apr 13 19:51:43 Yeah, but you always set matchParent, no weight for the outermost linearlayout, no minHeight... Apr 13 19:52:37 uhm Apr 13 19:53:23 I dont follow Apr 13 19:53:43 why do I need a weight for outermost linearlayout? Apr 13 19:53:50 You can use one... Apr 13 19:54:55 Because if the RelativeLayout takes all space (set to matchParent by you) consumes all place, the adMob LinearLayout is 'pushed out'. Apr 13 19:55:19 oh right, relativelayout takes all Apr 13 19:55:41 Thats why I asked how much space the LinearLayout takes at RUNTIME. Apr 13 19:55:59 easy way to test? Apr 13 19:57:12 Output getHeight via Log? Apr 13 19:57:22 right.. on it Apr 13 19:58:10 And then, with Eclipse, you can always take an View hierarchy snapshot with DDMS. Apr 13 20:02:14 outer linearlayout says 0 height and 0 width Apr 13 20:03:23 just did View v = findViewById(R.id.bagga); and sysout(v.getHeight()); Apr 13 20:09:09 flan3002: what benefit will minHeight and weight have on the outermost linearlayout when its the only layout on that level? Apr 13 20:09:44 Not on the outermost, but on the one containing the adMob! Apr 13 20:10:28 yes, that makes more sense, hehe Apr 13 20:12:40 Oh man, I love IRCing at the park Apr 13 20:12:52 It's so beautiful today Apr 13 20:13:31 So what is everyone up to? Apr 13 20:14:05 * StingRay_ is thinking about a new view Apr 13 20:14:23 * StingRay_ is also not far from calling it a "night" Apr 13 20:14:30 Hmm.. new view.. Apr 13 20:14:47 I wonder if I could push my camera data through an RFCOMM port too.. Apr 13 20:14:48 yeah, a better switch Apr 13 20:15:48 flan3002: if I do let the relativelayout wrap_content instead, it will show the ad at the bottom. But when the list is populated it pushes the ad down Apr 13 20:16:37 even with minHeight in the admob linearlayout Apr 13 20:17:37 Yeah, because you need to have a weight or minHeight (outermost layout changed to relativeLayout) as I'm trying to tell you for half an hour. Good luck, going to bed now. Apr 13 20:17:57 oh Apr 13 20:19:22 Hm. Daughter wnts to get a swing push. Apr 13 20:19:31 brb. daddy duties Apr 13 20:26:36 when I 'run' in Eclipse how does it choose which emulator to use? Sometimes it seems to start a new one, sometimes it uses the one already running. Is there a configuration for this? Apr 13 20:34:54 hello... I've got this custom layout for the elements of a ListView: http://pastebin.com/Wwd2EZRi - it works as expected but for margins: they are completely ignored. I've set 10dp both as padding and margin, but the result is that while I can clearly see the (inner) padding, the (outer) margin is 0... Apr 13 20:40:26 Anyone tried c++11 with the NDK? std::thread, lambda, etc? Apr 13 20:49:33 elegos, you have to consider the adaptive positioning in a relative layout Apr 13 20:49:48 switch to a linearLayout and see Apr 13 20:49:57 StingRay_: thanks :) Apr 13 20:50:29 StingRay_: also, how can I hide the separators? I mean between a list element and the other Apr 13 20:50:43 it's a property of the listView Apr 13 20:50:54 divider and dividerSize Apr 13 20:50:56 iirc Apr 13 20:51:11 null and 0dp Apr 13 20:51:15 thanks Apr 13 20:59:32 StingRay_: uhm... I've passed to a LinearLayout without any difference... I've tried setting up a RelativeLayout (with the properties) inside a LinearLayout and it works, but the ADT alert me that this nesting is useless... any idea? Apr 13 21:00:22 oh wait Apr 13 21:00:26 I'm dense Apr 13 21:00:49 I think the evaluation of a listView item positions and works out height Apr 13 21:01:06 so maybe instead of padding on the parent, add a margin to the child Apr 13 21:01:21 inside a linearLayout Apr 13 21:01:37 as a relativeLayout is a bit pointless where you have it Apr 13 21:02:14 StingRay_: i.e. a linear layout inside another linear layout? Apr 13 21:02:20 no Apr 13 21:02:24 Any advice for easiest way to implement login in an app, preferrably to one or more third parties (gplus, facebook, twitter etc)? Reading about Plus Login, and it specifically mentions that it will not run in the emulator, which sounds really strange. Apr 13 21:02:40 Apr 13 21:03:00 margin to the textView Apr 13 21:03:41 StingRay_: I'll dynamically add ImageViews in the "backgrounded" layout, this is why I'm not setting margins and the background drawable to the TextView directly Apr 13 21:03:52 Probably not passing the listview as parent when inflating the layout Apr 13 21:04:42 SimonVT: I'm a little bit lost with your last comment... isn't a ListView the parent of its elements? Apr 13 21:05:00 It is, but you have to tell that to the layoutinflater when you inflate the layout Apr 13 21:05:11 Otherwise it can't parse layoutparams Apr 13 21:05:29 (it needs to know the type) Apr 13 21:05:37 No layoutparams, no margins Apr 13 21:05:59 I gotta that -> the child's layout_* params refere to the parent LayoutParams Apr 13 21:06:08 Yep Apr 13 21:06:30 I load the main layout via setContentView, is there anything I can do there, or when I inflate from the adapter? Apr 13 21:06:42 (the main layout has the LinearLayout) Apr 13 21:06:47 ops, I meant ListView Apr 13 21:07:47 Suggestions how I can make the ListView "stop" when my ad_catalog_layout starts here? http://pastebin.com/M3RDt2Cy Apr 13 21:08:40 Use weight Apr 13 21:08:54 on RelativeLayouts? :S Apr 13 21:09:20 Guess Apr 13 21:09:26 hehe Apr 13 21:10:05 had so much issues with linearlayout so I switched to relative Apr 13 21:10:31 Issue with linearlayout? It's probably one of the simplest layouts Apr 13 21:11:12 yeah, normally, but to make it work here with ad etc Apr 13 21:13:31 I don't want to set a margin at the bottom, because the ad size probably varies Apr 13 21:13:49 and why do you need a margin ? Apr 13 21:13:58 just use weight Apr 13 21:14:17 on a relativelayout? Apr 13 21:14:34 hehehe Apr 13 21:14:48 ugh MS broke xbox live T_T Apr 13 21:14:54 well no, I assumed linearLayout vertical with 2 child views Apr 13 21:14:59 you view, and the add Apr 13 21:15:01 ^_^ Apr 13 21:15:10 your* Apr 13 21:16:07 trying all those layout_above as well Apr 13 21:16:29 whats wrong with what I just said ? Apr 13 21:17:09 I dont use linearlayouts :P Apr 13 21:17:21 oh then yeah, your in trouble :) Apr 13 21:17:27 for simple things Apr 13 21:17:30 hehe Apr 13 21:17:31 http://pastebin.com/M3RDt2Cy Apr 13 21:17:31 "I don't use the right layout for the job" Apr 13 21:17:50 Apr 13 21:17:52 Problem solved Apr 13 21:17:55 just use a LL for everything Apr 13 21:17:58 see thats using really heavy views for no function Apr 13 21:18:22 I used linearlayouts for my previous app and that was so boring ;) Apr 13 21:18:29 heh Apr 13 21:18:45 there must be a way to do this with RL Apr 13 21:19:15 Quacked there is Apr 13 21:19:26 Can I use google maps in a game where the app is free but I have pay elements for the game? like Farmville or something, but with Google maps for graphics. Apr 13 21:19:31 if you put all your relativeLayouts inside linear ones Apr 13 21:19:33 :) Apr 13 21:19:41 :D Apr 13 21:19:50 KungFuHamster, read the terms for the maps api Apr 13 21:20:09 i am not a lawyer, nor have i read the terms recently, but i would assume that using maps in an app that costs money is fine Apr 13 21:21:28 ok, using android:layout_above on the first of the two nested RL kinda worked Apr 13 21:22:20 Quacked: honestly it's a 10 second job with linearLayouts and a f*ck load lighter for android to deal with Apr 13 21:23:12 He's on step 2 of android layout clarity.. Step 1 is using linearlayout for everything, step 2 is using relativelayout for everything, step 3 is using the right layout Apr 13 21:23:17 He'll get there eventually Apr 13 21:23:29 (step 4 is making your own layouts) Apr 13 21:24:04 Every time I go to 'storage' on my emulator, it crashes the settings app. What's up. Tried with 3 different devices. Apr 13 21:24:35 Maybe you didn't set up any external storage Apr 13 21:25:42 :D Apr 13 21:38:39 Anyone has luck compiling this on Linux x86? https://github.com/SecurityCompass/android_emulator_spoofing Apr 13 21:47:27 theGrg, i try Apr 13 21:55:58 theGrg, buargh too much dependencies ;P Apr 13 21:56:26 Ah. It was just esound for me. Apr 13 21:56:36 or libesd-dev Apr 13 21:56:47 <-- gentoo Apr 13 21:56:49 ;P Apr 13 21:56:57 Hehe Apr 13 21:57:21 StingRay_: meh, now I converted everything to LL and when list is populated it pushes out the ad: http://pastebin.com/XX1BQivp Apr 13 21:57:55 theGrg, i install esound and try ;P Apr 13 21:58:04 cause you give both equal weight Apr 13 21:58:20 and your using heights Apr 13 21:58:29 do you know how to use a linear layout ? Apr 13 21:58:33 with weight ? Apr 13 21:58:40 oh right Apr 13 21:59:02 yeah, I fixed both being set to weight, but forgot the heigth Apr 13 21:59:15 why would you want both at 1 ? Apr 13 21:59:22 just a typo Apr 13 21:59:29 ok Apr 13 22:02:21 eclipse usually tells me when I forget to change height when I set weights Apr 13 22:02:26 weird Apr 13 22:04:11 I will commit suicide now Apr 13 22:04:19 just wanted to chat with someone first Apr 13 22:04:31 can someone say hi? :D Apr 13 22:04:33 Hi! Apr 13 22:05:00 Alright that was all I needed, thank you for helping me kill myself! Apr 13 22:05:07 lol Apr 13 22:06:34 alkain you bad-ass texas mahfagga, what is difference between SDK, ADT, IDE, Eclipse? Are they the same thing? Apr 13 22:09:21 <*4Lk41N_> hellooo?:) Apr 13 22:09:45 Quacked: you sorted it now ? Apr 13 22:10:16 When a bunch of ducks cause an earthquake = earthquack Apr 13 22:13:54 Clique clique clique, there actually ain't nobody fresher, than my motherfucking clique Apr 13 22:14:15 And all these mean women they want to ahhh Apr 13 22:15:51 I DONT WANNA CLOSE MAH AYIZ, I DONN WANNA FAOULL ASLIJP CAUZ AY MIHS JUO BEYJB, EN AY DOHNT WANNA MESS A THEAJNG Apr 13 22:17:04 I fucked a goose last night and now we're in love Apr 13 22:19:06 StingRay_: yeah, just sorting out some minor details like the progressbar Apr 13 22:19:18 and setting views to GONE instead of INVISIBLE Apr 13 22:19:19 :P Apr 13 22:19:21 Quacked: see how easy was that Apr 13 22:19:22 :) Apr 13 22:19:27 ITS, NOT, GOOOOONE! Apr 13 22:20:00 what is difference between SDK, ADT, IDE, Eclipse? Are they the same thing? Apr 13 22:20:18 dahlmoony: no, and google will tell you that Apr 13 22:20:31 He said no. Apr 13 22:22:04 do i need these links and shit in the xml? i cant code when i see that ugly stuff Apr 13 22:22:05 xmlns:android="http://schemas.android.com/apk/res/android" Apr 13 22:22:05 xmlns:tools="http://schemas.android.com/tools" Apr 13 22:22:17 StingRay_: but its not RL anymore :'( Apr 13 22:22:20 hehehe Apr 13 22:22:44 Quacked: you mean it's more fitting to purpose :) Apr 13 22:23:02 uhm, I mean, yeah, but no, but yeah, but no, but.. Apr 13 22:23:08 you were not really using anything of a relativeLayout though Apr 13 22:23:32 I know :p Apr 13 22:25:24 Any luck ninharp ? :p Apr 13 22:26:17 dahlmoony: why did you pm me the same question you asked in the chan? :O Apr 13 22:27:13 Fakking dumb telephone-nerd, sitting there doing dumb computer programming in a fucking cellphone, JUST TELL ME IF I NEED THOSE LINKS! dont attempt to exercise acts of power on the net to compensate, JUST AAAANSWEEEEEEEEEEEEER Apr 13 22:28:14 how do I make the banner adjust to landscape when I tilt the device? Apr 13 22:28:18 I'm using SMART_BANNER Apr 13 22:29:05 Quacked: is this ads for that word thingy ? Apr 13 22:29:14 Do you think you have gained an edge of power becouse you can ignore people on the internet? I will hunt you two nerds down!!! Apr 13 22:29:19 StingRay_: yah Apr 13 22:30:57 Quacked: You useless appstore-geek. Do i need those mahfaugging links in the xml? Apr 13 22:31:16 dahlmoony: yes. Apr 13 22:31:54 dahlmoony: not really, replace them with your amazing dialog and things will just sparke ;) Apr 13 22:32:43 Quacked: just put him on ignore Apr 13 22:32:49 tis what I just did :) Apr 13 22:32:58 he be funny :P Apr 13 22:33:21 and he seems to be kind.. he called me a nerd Apr 13 22:33:27 he's probably just a 13 year old boy in need of a girlfriend Apr 13 22:33:30 lol have you guys seen StingRay_ irl? He put mustard on his cats ass so it ran until it died xD Apr 13 22:33:41 omg, he really dont know you then lol Apr 13 22:33:53 would this be the right place to ask a question about using NFC in an android app? Apr 13 22:34:00 :D Apr 13 22:34:28 Jubb: if its not about developing its better to do it at #android Apr 13 22:35:05 I am planning on developing an app to use NFC, just had a quick question about how it works Apr 13 22:35:32 Jubb you sick cunt get the fuck out of here brah Apr 13 22:36:10 Jubb: sounds like you can ask it here Apr 13 22:36:12 dahlmoony, language Apr 13 22:36:14 Wonder if canadiancow is still around Apr 13 22:36:21 SimonVT, moooooooooooooo Apr 13 22:36:36 Jubb: there are good tuts on d.android.com Apr 13 22:36:54 Actually, a canadian cow would apologize for being so loud after each moo Apr 13 22:37:27 ok cool, so if I hold a card that complies with ISO14443 Type B to the phone with NFC enabled, would it have to have its data defined as ndef messages to be automatically read? Apr 13 22:37:54 been doing some testing and basically nothing happens when I tap the card to the phone Apr 13 22:38:18 Built a house up on that ass, That's an ass state Is that good code or wrong? Apr 13 22:38:49 u know, real estate, asstate xD Apr 13 22:38:55 (my testing has been with apps found in the play store like nfc tag reader) Apr 13 22:38:58 unfortunately it doesnt compile dahlmoony Apr 13 22:39:04 :( Apr 13 22:39:18 Ohkey :( Apr 13 22:39:24 is there a better solution to this? http://stackoverflow.com/questions/11281562/android-admob-resize-on-landscape Apr 13 22:39:52 I was wondering if I wrote an app to specifically look for binary data of this type would I be able to read the card, or is it just not compatible? Apr 13 22:40:38 StingRay_ thanks, I've been going through those to see what they have readily available for NFC compatibility Apr 13 22:41:35 StingRay_: booh, the LL resized my background! Apr 13 22:41:49 and I have android:configChanges="keyboardHidden|orientation|screenSize" Apr 13 22:43:08 I'm not surprised Apr 13 22:43:17 haha Apr 13 22:43:44 Your app probably crashed on orientation changes.. And then you "fixed" it by handling those Apr 13 22:44:13 nah, I have those because my ListView got cleared on orientation change Apr 13 22:44:36 Quacked: poor show, poor show my friend Apr 13 22:44:38 :) Apr 13 22:44:39 What do you think happens when your activity is destroyed because of other reasons then Apr 13 22:44:46 Another empty listview Apr 13 22:44:56 Yay, 1 star Apr 13 22:44:58 SimonVT: what are those xml flags even there for ? Apr 13 22:45:08 I mean the REAL purpose ? Apr 13 22:45:22 SimonVT: why would it be destroyed? :P Apr 13 22:45:26 obviously not to just ignore config changes Apr 13 22:45:31 Well, I came here for a simple question regarding phone GPS through BT but now I kinda wanna make an app Apr 13 22:45:38 SimonVT: if the activity is destroyed it should need a new search Apr 13 22:45:39 I guess I'll boot up Eclipse.. Apr 13 22:45:41 You might have reasons to handle config changes yourself Apr 13 22:46:01 (listview clearing isn't one of them) Apr 13 22:46:02 hmmm Apr 13 22:46:07 Like, if you're playing a video Apr 13 22:46:20 ah, suppose yeah Apr 13 22:46:21 It might take too long to re-create the activity and start up the video again Apr 13 22:46:32 Youtube used to be like that Apr 13 22:46:43 Now at least the sound continues, video halts for a bit Apr 13 22:46:49 whats a better way to prevent listview being cleared? Apr 13 22:46:53 but people use them to ignore config change ? and that has no….implications ? Apr 13 22:46:58 Actually saving your state Apr 13 22:47:06 Yeah, it has implications Apr 13 22:47:16 Because they think they're solving an issue Apr 13 22:47:18 context leak etc ? Apr 13 22:47:26 No, just bad user experience Apr 13 22:47:40 e.g. Quacked can't figure out how to save his state Apr 13 22:47:44 So he loses it on orientation change Apr 13 22:47:56 Quick fix: don't allow orientation change to destroy the activity Apr 13 22:48:06 What he didn't consider: There are other reasons an activity might be destroyedf Apr 13 22:48:08 I blame stackoverflow Apr 13 22:48:09 Like low memory Apr 13 22:48:10 Query : Should I learn Java a bit more extensively before getting into Android development? Apr 13 22:48:21 All leads to him losing his state Apr 13 22:48:24 SimonVT: if activity is destroyed, I want it cleared :) Apr 13 22:48:25 And a shitty user experience Apr 13 22:48:29 No you don't Apr 13 22:48:34 I do Apr 13 22:48:39 for this app I do Apr 13 22:48:46 Whatever Apr 13 22:48:51 :) Apr 13 22:49:09 SimonVT: ah, I was using retainInstance on fragments, (not now) and it seems to be quicker, and all my activites and fragments actually restore quicker and are snappier Apr 13 22:49:23 That's.. the same thing Apr 13 22:49:30 I know Apr 13 22:49:40 You STILL need to save all state required to re-create your activity/fragments as they were Apr 13 22:49:47 I do now Apr 13 22:49:51 if you don't, shitty user experience .. and undefined behavior Apr 13 22:50:10 my app can be destroyed and will restore just fine Apr 13 22:50:17 Good :) Apr 13 22:50:19 but I was saying it's actually quicker Apr 13 22:50:23 which I find odd Apr 13 22:50:31 eg.. keep hold of it = slow Apr 13 22:50:44 let it restore/recreate = fast Apr 13 22:50:52 and that I dont really understand :) Apr 13 22:50:58 Huh? Apr 13 22:51:08 retaininstance = keep hold of it Apr 13 22:51:40 well I was doing a bad thing, holding a view cache Apr 13 22:51:52 but turns out it is quicker not to Apr 13 22:52:04 Well, yeah Apr 13 22:52:31 When you retain your fragment, you need to de-reference everything that holds a context reference in onDetach Apr 13 22:55:22 I'm also suprised in just how fast complex view creation is compared to inflating it Apr 13 22:55:35 long text about this here: http://www.gitshah.com/2011/03/how-to-handle-screen-orientation_28.html Apr 13 22:55:55 hi Apr 13 22:56:06 I have the skills to write an android app but I don't have the skills to create nice UI elements. what software should I master to be able to create UI elements for my app? Apr 13 22:56:38 StingRay_ knows I am a master of this, SN3 Apr 13 22:56:39 Adobe Illustrator/Photoshop + Pencil Project Apr 13 22:56:52 thats what I use Apr 13 22:56:53 oh Apr 13 22:57:02 and a REAL pencil and paper sometimes too :) Apr 13 22:57:21 StingRay_: you mean that icon on far left in PS? Apr 13 22:57:40 your funny Apr 13 22:57:47 not really, its just late ;) Apr 13 22:57:47 Quacked: Wow, you found a long article that tells you not to handle orientation changes yourself :) Apr 13 22:58:04 SimonVT: magic Apr 13 22:58:23 Not like that's what I was telling you or anything Apr 13 22:58:24 SN3: but there is more than just button pushing in design Apr 13 22:58:38 so knowing a design tool != designer/artist Apr 13 22:59:12 SimonVT: I prefer a tlnr text to tell me ;) Apr 13 23:00:06 Hello! I'm trying to test the bluetoothchat example. I created a new project, dragged in the files and resources, and it builds. However, I get this when I try to run it. Not sure what it means. 04-13 17:59:10.667: E/AndroidRuntime(27621): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.bluetoothchat/com.example.bluetoothchat.BluetoothChat}: android.util.AndroidRuntimeException: You cannot combine custom titles with Apr 13 23:00:06 other title features Apr 13 23:00:56 I think it has to do with how i created the project, but importing it directly failed hard so I'm not sure how else to do it Apr 13 23:01:34 SimonVT: the background on that site made every fan in this pc speed up Apr 13 23:01:53 even though it was cool as hell Apr 13 23:04:22 Could've just looked at the docs for the same information Apr 13 23:04:39 Quacked: do you know how to sim an out of mem error ? Apr 13 23:05:05 see if your app stands up to it Apr 13 23:05:38 no, I don't Apr 13 23:05:51 you got your device connected ? Apr 13 23:05:56 app running / Apr 13 23:05:58 ? Apr 13 23:06:00 wirelessly Apr 13 23:06:02 but yeah Apr 13 23:06:17 ok cool, go to some place in your app Apr 13 23:06:22 anywhere Apr 13 23:06:32 theres no place to go ;D Apr 13 23:06:36 then switch to another app (home, then another app) Apr 13 23:06:53 now look at the DDMS perspective in eclipse Apr 13 23:07:01 see your app running under device Apr 13 23:07:13 click it and press the stop/kill button Apr 13 23:07:47 thats as if andoind just killed it for you cause some app in the foreground wanted all the mem etc, like pintrest Apr 13 23:07:50 or the gallery Apr 13 23:08:05 now on your phone, open tasks Apr 13 23:08:07 nice tip Apr 13 23:08:17 that shows your recent apps Apr 13 23:08:21 yours is still there Apr 13 23:08:27 select it to go back to it Apr 13 23:08:36 thats what the user will have to deal with Apr 13 23:08:45 two sec..gonna try Apr 13 23:08:51 good luck Apr 13 23:10:10 StingRay_: so bascially just a clean sheat for users to type in a search string again Apr 13 23:10:32 what if i was already started Apr 13 23:10:42 the search in progress you mean Apr 13 23:10:43 ? Apr 13 23:10:45 I have to start again ? Apr 13 23:11:06 what was that timer app you did ? Apr 13 23:11:18 yeah, you might have to type in a word all over ;) Apr 13 23:11:29 Think about that for a minute.. User is playing some word game on their phone.. They go to your app to search for some words.. They go back to the game quickly, then to your app.. And they have to start typing all over Apr 13 23:11:56 When the "clean slate" could be achieved by adding a simple button that clears the input Apr 13 23:12:19 SimonVT: yeah, marking the edittext selects the text to type fresh Apr 13 23:12:28 quack also do the same thing with ninja timer while your in settings Apr 13 23:14:07 hello Apr 13 23:14:14 need help again Apr 13 23:14:22 olleh Apr 13 23:14:23 SimonVT: Its not intended for such purposes, but I understand what youre saying Apr 13 23:14:26 and I will fix it :P Apr 13 23:14:28 niaga pleh deen Apr 13 23:14:32 * zhej says "hi" to dahlmoony Apr 13 23:14:37 * zhej greets Quacked with hugs and kisses, mostly hugs though Apr 13 23:15:05 i have a logcat error i don't quite understand, any1 can take a look? Apr 13 23:15:13 StingRay_: you often experience out of memory killing the activity your in? :O Apr 13 23:15:15 If you think you decide how users will use your app, you're gonna have a bad time Apr 13 23:15:21 Quacked: yes Apr 13 23:15:24 SimonVT: tru dat :P Apr 13 23:15:29 and I have 1 last thing to solve Apr 13 23:16:06 SimonVT: when is onActivityResult delivered when your app is recreated from being destroyed ? Apr 13 23:16:18 http://dpaste.com/1057522/ Apr 13 23:16:19 after oncreate before onresume Apr 13 23:16:34 StingRay_: but when it comes to the settings activity, whats the big deal when every setting is saved as you set it? Apr 13 23:17:02 Quacked: but what happens, does it crash? or does it go back to settings activity ? Apr 13 23:17:09 when you do that process ? Apr 13 23:17:36 so can any1 take a look at this: http://dpaste.com/1057522/ ? Apr 13 23:18:53 StingRay_: goes back to settings activity Apr 13 23:19:15 well I'm quite shocked Apr 13 23:19:20 haha Apr 13 23:20:04 yep, even tried twice Apr 13 23:20:13 uh, guys? Apr 13 23:20:43 zhej: don't be discouraged, sometimes the answers are slow in coming Apr 13 23:21:35 zhej: hmm... you got something wrong in your format string Apr 13 23:22:00 oiaj!? Apr 13 23:22:06 p_l: do i have to import String formatting, thot that was done auto Apr 13 23:22:30 zhej: no, you made an error in your format string Apr 13 23:22:42 p_l: basically i have textView.setText(String.format("%0.02f",number)); Apr 13 23:23:18 interesting that it complains, that looks fine to me Apr 13 23:23:20 could someone explain using "ClassName.this.methodName()" instead of just methodName() from a private class in ClassName? Apr 13 23:23:37 p_l: ikr Apr 13 23:23:39 but please recheck with javadoc for String.format Apr 13 23:25:08 p_l: ? i'm doing this in mainActivity.java Apr 13 23:25:30 zhej: it doesn't matter where Apr 13 23:26:08 u mean online? Apr 13 23:26:25 please recheck details of acceptable format strings (the "%0.02f" in your case) because there can be subtle differences between languages that use "similar" sequences Apr 13 23:26:36 zhej: yes, look up javadoc for String.format() Apr 13 23:27:19 hmm, i was told it it's the same for in eclispe Apr 13 23:27:20 http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Formatter.html#syntax Apr 13 23:28:06 Anyone know a guide where I can start? Apr 13 23:28:19 The developer.android is way too hard Apr 13 23:28:41 dahlmoony: no guide :D Apr 13 23:29:04 anyone? Apr 13 23:29:24 how can I learn >.< Apr 13 23:29:55 hesperaux: since it's private, it cannot be accessed outside, therefore the full path must be specified Apr 13 23:30:22 zhej, a private class can't access it's parent's private variables? Apr 13 23:30:42 hesperaux: never used this too much tho, but i believe a private method inside a private class can be accessed without full path Apr 13 23:31:02 well, this is the private class accessing a parent method Apr 13 23:31:29 BluetoothChatService.this.start(); <--it's inside private ConnectedThread within BluetoothChatService.java Apr 13 23:31:30 hesperaux: idk what u r doin, but an inner private class is usually the result of event handling for what i do Apr 13 23:31:51 I wonder how to learn Java, maybe someone here have done it before? :) Apr 13 23:31:52 i'm trying to understand the Bluetooth Chat example Apr 13 23:32:05 p_l: hmm, very strange, my string formatter is correct Apr 13 23:32:44 zhej: try "%0.2f" Apr 13 23:33:53 nope Apr 13 23:33:59 still the same? Apr 13 23:34:06 yes, crashing Apr 13 23:34:17 Shouldn't it just be %.2f Apr 13 23:34:20 ... put a breakpoint on it and run the debugger Apr 13 23:35:48 SimonVT: well, it *looks* to me that %0.2f should get it zero-padded Apr 13 23:36:38 p_l: btw, form widgets are editable right, not textfields? Apr 13 23:36:53 not sure Apr 13 23:43:43 any point in publishing apps internationally when theyre only usable in one language? Apr 13 23:43:46 I'm suddenly not getting any of my normal resources under R Apr 13 23:44:13 Anniepoo: done Project-Clean? Apr 13 23:44:14 Quacked yes, everyone speak english, we are not stupid just becouse we're not american Apr 13 23:44:15 jesus Apr 13 23:44:19 yes Apr 13 23:44:30 dahlmoony: what? Apr 13 23:44:39 dahlmoony: the app is not in english Apr 13 23:44:47 then its not very useful Apr 13 23:44:54 ^__^ Apr 13 23:45:47 I suspect I've been working with a stale resource for a while - I made a small change to androidmanifest.xml Apr 13 23:45:54 I've tried backing that change out Apr 13 23:46:17 quacked how did u learn java? Apr 13 23:46:35 anniepoo how did u learn java? Apr 13 23:47:23 I learned Java when it was an obscure language. I was hired by a company that was using it, Java programmers were so rare they said 'go home, come back when you know Java' Apr 13 23:48:18 so I did, came back after a week of messing with it, started coding in it Apr 13 23:48:39 so you just go into a java file and learn automatically? Apr 13 23:48:58 you weren't born in it? molded by it? Apr 13 23:49:04 I've been a software engineer for 35 years Apr 13 23:49:07 I started in B Apr 13 23:49:17 and 1401 assembler Apr 13 23:49:28 ok i'm back Apr 13 23:49:36 I didn't see C++ until I was already a man, but it was nothing to me but BLINDING! Apr 13 23:50:13 knowing the history of curly brace languages is useful Apr 13 23:50:34 35 goddamn years??? thats CRAAAZY! Apr 13 23:50:45 anyway, how do the R files get compiled? Apr 13 23:50:49 Anniepoo: care to help Apr 13 23:50:52 I'm new to android Apr 13 23:50:55 Anniepoo: same here Apr 13 23:51:07 I'm new to computers :D Apr 13 23:51:28 Anniepoo: r files r updated automatically Apr 13 23:51:32 Anniepoo: never touch those Apr 13 23:52:03 even i knew that! HAH! Im better than an 35-years-of-engineering-guy! YES!!!!!!! Apr 13 23:52:11 * zhej slaps dahlmoony about with a fat Leprechaun Apr 13 23:52:13 Anniepoo aapt program Apr 13 23:52:24 Anniepoo: u usin eclispe? Apr 13 23:52:26 yah, so why isn't R in my sole activity filled with the things it should be? Apr 13 23:52:28 yes, Apr 13 23:53:34 programming for 35 years just means I've got horrible habits acquired when nobody knew they were horrible. When I was learning 'structured programming' was the new fad Apr 13 23:53:48 and I've got carpal Apr 13 23:54:48 Anniepoo did u get rich during the dotcom bubble? Apr 13 23:54:54 no Apr 13 23:54:58 noob. Apr 13 23:54:59 I got poor Apr 13 23:55:10 lolololol Apr 13 23:55:13 I lost money, actually Apr 13 23:55:43 Did you own stock or something? Apr 13 23:56:06 yes - we weren't public yet, but I was leaving the company, had to buy my options. Apr 13 23:56:17 which turned out to be worth less than I paid for them Apr 13 23:56:41 thats too bad :( Apr 13 23:56:43 p_l: ok, gonna try with text fielsds instead Apr 13 23:57:06 STOOOPIDLY, back in Apple ][ days I got invited to come work for Apple - turned them down Apr 13 23:57:21 * zhej slaps Anniepoo in the face with a large tree Apr 13 23:57:30 ^that's for missing out on a huge op Apr 13 23:57:55 that is not fun! Apr 13 23:58:00 poor u Apr 13 23:58:17 Ironicly, I was later a tech lead for Apple Apr 13 23:58:47 yippi! :D Apr 13 23:59:18 ok, so how does the layout file get bound into all this stuff? Apr 14 00:00:26 aaah, android asset packaging tool - Apr 14 00:01:14 is there a way to look at the aapt output, or run it manually? Apr 14 00:02:35 annie how do i learn java? I dont understand what i do, and what all the { ; () stuff is for :((( Apr 14 00:02:56 write some console applications Apr 14 00:03:20 is it android? Apr 14 00:03:28 there's tons of java books and tutorials out there Apr 14 00:03:35 no, don't start with android Apr 14 00:03:42 but I like android :( Apr 14 00:04:12 I like Chopin, but don't expect to start playing his stuff if I decide to learn piano Apr 14 00:05:20 can i do websites with console applications? Apr 14 00:05:27 i want to either do a website or an app Apr 14 00:06:05 I want to climb Denali. My plan is to lay in bed and watch daytime TV. Apr 14 00:06:34 i'm getting the javax.net.ssl.SSLPeerUnverifiedException: No peer certificate when trying to upload crashes to HockeyApp Apr 14 00:06:54 most suggested solutions on stackoverflow suggest a trust manager that doesn't do anything Apr 14 00:07:07 is there a better way to do this Apr 14 00:07:17 this is happening on a real phone, although an old one... Apr 14 00:09:09 Anniepoo So your belief is that it is not likely that I will learn by only doing android stuff? Apr 14 00:09:46 well, you need to learn imperative programming Apr 14 00:10:14 which can be learned in any imperative environment, but the less you mess with the environment Apr 14 00:10:25 and the more time you spend learning to actually program Apr 14 00:10:27 the better Apr 14 00:10:58 eat your fundamentals, kiddies! Apr 14 00:11:38 * Anniepoo 's normal day job language is Prolog Apr 14 00:12:21 seekBar returns a value between 0 and 100 right? not a percentage? Apr 14 00:12:47 print out the values it's returning Apr 14 00:13:10 i can't Apr 14 00:13:43 just as a sanity check - the layout belongs in ./res/layout/activity_usb.xml yes? Apr 14 00:13:57 ey guys, if I have say login->view1->view2->view3 and when I do view4 I want to "delete" login to view3. How I do it? Apr 14 00:14:50 Anniepoo but i think im doing imperative stuff, like this Thread logoTimer = new Thread(){@Override public void run() { Apr 14 00:15:08 use the login activity as an application context, flip a bit to tell view3 to immediately go elsewhere Apr 14 00:15:28 well, all your code is imperative - java being an imperative language. Apr 14 00:15:50 I'm saying, find out what all those bits of confusing syntax are Apr 14 00:16:10 Get a good book on Java syntax and figure out all that stuff Apr 14 00:16:17 dahlmoony: r u programming in drjava? Apr 14 00:16:47 im programming in something that seems to have like 10 names, adt/ide/api/sdk/eclipse Apr 14 00:16:57 from the android site Apr 14 00:18:13 is drjava better? Apr 14 00:20:01 dahlmoony: depends on what u are doing Apr 14 00:20:18 dahlmoony: java, then use drjava, android, then use eclispe Apr 14 00:21:43 okey:D But I will use eclipse Apr 14 00:22:33 cuz I dont take tech advice from old people like anniepoo :> Apr 14 00:22:41 LOL Apr 14 00:22:47 IDE bites me Apr 14 00:22:47 dahlmoony: Anniepoo suggests drjava? Apr 14 00:22:59 anniepoo's never heard of drjava Apr 14 00:23:03 he suggets not developing android :P Apr 14 00:23:33 no, I just suggest that there's an activity called 'programming', which takes some practice Apr 14 00:23:44 is there a clean way to kill a process from adb shell without having root on the device? Apr 14 00:23:51 and the average Android program doesn't involve too much of that activity Apr 14 00:24:42 so if you are confused by things you see in the java syntax, or aren't sure what a for loop is for, Apr 14 00:25:18 you might consider learning those things in an environment that won't distract you with lots of other crazy issues Apr 14 00:25:44 and, for those curious about my issue - Eclipse bit me - fixed up imports by addding android.R Apr 14 00:27:13 is there a way to reboot from adb shell? Apr 14 00:28:29 Anniepoo It was good advice but not right for me, I either do this droid stuff right away or dont program at all :D Apr 14 00:28:53 so I will try to understand syntax on the go Apr 14 00:29:46 so... do i need to include the whole certificate chain for *.hockeyapp.net in my app if i want to be able to upload using SSL from every phone? Apr 14 00:29:56 that seems... complex... Apr 14 00:30:35 davcamer: is the ssl cert signed by a root authority? Apr 14 00:30:46 it is, through a chain Apr 14 00:30:46 hmm, i put updateComponents in my textListener and it crashes Apr 14 00:31:04 but if updateComponents isn't in the listener, it doesn't crash, but of course nothing gets updated Apr 14 00:31:06 davcamer: i think it should work without any extra code then Apr 14 00:31:07 well, dahlmoony - then get a java book, and make yourself a simple android project, and then go through the java book Apr 14 00:31:14 clever: but i am getting an SSLPeerUnverifiedException: no peer certificate Apr 14 00:31:22 dont know then Apr 14 00:31:24 adding something to your android project that uses that feature of java Apr 14 00:33:02 uh, guyz, little help Apr 14 00:33:32 zhej: need more context than what you have said so far Apr 14 00:33:53 davcamer: ok, basically i have an app, so far, no error in code, but not sure bout logic Apr 14 00:34:04 you probably also would find the book "Design Patterns: Elements of Reusable Object-Oriented Software" useful Apr 14 00:34:14 onCreate women Apr 14 00:34:24 davcamer: when i run it in avd, it crashes, giving a MissingFormatWidthException Apr 14 00:34:29 http://en.wikipedia.org/wiki/Design_Patterns_(book) Apr 14 00:34:36 thanks Apr 14 00:35:00 davcamer: when i remove updateComponents in my textListener, input works, but when I have it in there, once I enter a number, it fails Apr 14 00:35:14 davcamer: i'm sure textField is a decimal with the assocaited variable a double Apr 14 00:35:16 what makes more money, having in-app option to remove ads or have a separate app without ads? Apr 14 00:35:21 if you REALLY want to learn to program, read Jay Sussman's "The Structure and Interpretation of Computer Programs" Apr 14 00:35:58 you said that in a way like its going to come with a sacrifice? Apr 14 00:36:29 is it a hard book? Apr 14 00:36:37 davcamer: that enuff context? Apr 14 00:36:50 yes, that last one is a 'hard book' Apr 14 00:36:54 throw a log statement in your text listener, like Apr 14 00:37:03 as in, starting from Apr 14 00:37:14 "what the heck are all these curly braces?" Apr 14 00:37:22 it should take you a couple years to read it Apr 14 00:37:59 haha ok :D but I dont have years, I need to become a billionaire by next year Apr 14 00:38:22 I'm gonna do like a Instagram or something and get aquired by facebook/google Apr 14 00:39:12 Design Patterns-book will be enough I think Apr 14 00:39:13 zhej: Log.d("about to try to convert " + inputString); Apr 14 00:39:30 zhej: probably an intermediate input value is not formattable Apr 14 00:39:32 davcamer: where? in updateComponents? Apr 14 00:39:52 davcamer: btw, when user 'inputs' number ,it crashes Apr 14 00:39:56 zhej: in textListener. textListener is a method right? Apr 14 00:39:59 get a Java syntax book - the tutorials on oracles java site aren't bad Apr 14 00:40:05 davcamer: yes Apr 14 00:40:14 hi all Apr 14 00:40:18 davcamer: btw, this is how i parse: billTotal = Double.parseDouble(s.toString()); Apr 14 00:40:31 Alright thanks annie Apr 14 00:40:43 8cD good luck Apr 14 00:41:32 is there an official api that allows you to modify sms messages stored locally without having to hit the sqlite db directly? Apr 14 00:44:11 nvm found this http://stackoverflow.com/questions/14089896/reading-sms-and-mms-database-in-android Apr 14 00:46:25 dahlmoony: there are some android crash courses on youtube if you don't have the patience and time, it will make you comfortable watching someone else code a simple program and run it to get started Apr 14 00:46:48 dahlmoony: just rage quit Apr 14 00:46:51 zhej: that method doesn't throw the exception you're getting: http://developer.android.com/reference/java/lang/Double.html#parseDouble(java.lang.String) Apr 14 00:46:56 dahlmoony: if ur not using dr.java, no point in using it Apr 14 00:47:13 davcamer: yeah, i know, i'm pretty sure that is right Apr 14 00:47:13 zhej: so which method is the exception being thrown from Apr 14 00:47:47 davcamer: well, when I have updateComponents() in my textListener, it crashes, when i have updateComponents commented, I can enter numbers in the editText field, but then it doesn't get updated Apr 14 00:48:45 sigh, too late, gonna work on it tomorrow Apr 14 00:48:48 ty anyways davcamer Apr 14 00:59:32 is there a simple way to determine if a user is actively using the device, not just when the device wakes? Apr 14 01:00:24 how do i have it so that the scroll is outside the listview Apr 14 01:01:39 nvm Apr 14 01:24:34 ok, that is bad.. I just set up admob on my android device... and it showed me an ad for a game called candy crush saga.. when I clicked it my browser opened a page with itunes preview for an IOS APP! Apr 14 01:24:51 it's a shitty game, don't play it Apr 14 01:24:58 i wont Apr 14 01:25:09 its an awesome game Apr 14 01:25:11 but you would think it would show an android version Apr 14 01:25:14 on an android device Apr 14 01:25:20 the ways they try to get your money.. not for nothing top grossing app Apr 14 01:25:38 i like around the world in 80 dyas Apr 14 01:25:44 best game of that type Apr 14 01:26:01 wonder what refresh rate to set for admob Apr 14 01:26:25 60 sec Apr 14 01:26:55 tempting to set it at 30 Apr 14 01:27:22 read 5 comments somewhere saying that their revenue went up going from 60 to 30 Apr 14 01:27:30 but thats.... 5 comments.. :P Apr 14 01:27:58 experiment with it Apr 14 01:28:00 lemme know :0 Apr 14 01:29:01 If your click through rate goes too low your fill rate can fall Apr 14 01:29:53 Ologn: I don't follow Apr 14 01:30:42 fill rate? Apr 14 01:30:59 fill rate is adview tries to fetch an ad, but can't Apr 14 01:31:07 what does () do? Apr 14 01:31:08 ah, right Apr 14 01:31:09 and then it's not 100% anymore Apr 14 01:31:48 dahlmoony it's calling a function without params Apr 14 01:34:43 turns out my earlier SSL issues were because i was using a test device without a SIM, which had run down at some point, and who's clock was now set to 2005. Apr 14 01:34:47 :S Apr 14 01:35:36 what theme is this? http://developer.android.com/images/training/ads-cover-content.png Apr 14 01:36:24 the light grey actionbar with blue title Apr 14 01:36:46 R.theme.LightGreyActionBarWithBlueTitle Apr 14 01:37:02 Dude, srsly Apr 14 01:37:05 It's R.style Apr 14 01:37:28 Maybe it is for you Apr 14 01:42:12 meh Apr 14 01:46:12 dahlmoony: " 03 - Hello, World: Android Bootcamp Series 2012 " - http://www.youtube.com/watch?v=QPUtX1dtrAk , take and hour and a half to watch that Apr 14 01:46:24 hey guys, whats the best resource/tutorial for showing me how to click a 3d object in open gl es? Apr 14 01:48:59 i need some sleep.. gnite Apr 14 01:55:40 shmooz: My ISP dont allow YouTube, only torrents :/ Apr 14 01:56:05 north korea ? :0 Apr 14 01:56:25 :) Apr 14 01:56:40 your ISP doesn't allow youtube? Apr 14 01:58:25 After some usage it gets down to like 5kb/s cuz its mobile broadband, but they forgot to restrict torrents so I still download like 50gb/month ^_^ Apr 14 01:59:58 If I wanna see a youtube video I have to ask friends to download the video and then make a torrent and then I download it through them lol Apr 14 02:01:13 time for another provider then Apr 14 02:01:58 depends on where he is Apr 14 02:02:58 Anniepoo what do u mean? :) Apr 14 02:06:15 dahlmoony: theres sites like savevid.com that will let you paste the youtube url and download the video file Apr 14 02:08:56 Yea but that type of downloading is restricted, torrents only Apr 14 02:09:09 :( Apr 14 02:10:27 Hey, is anyone here familiar with JakeWharton's viewpagerindicator? Apr 14 02:10:35 nope Apr 14 02:10:39 hah Apr 14 02:10:51 :) Apr 14 02:10:57 Is there an easy way to use a custom xml layout for the tab indicator? Apr 14 02:11:16 lol Apr 14 02:11:36 dahlmoony: ok then try this ... http://thepiratebay.se/torrent/5343767/Android_video_Tutorial_Training_for_developers Apr 14 02:12:14 I hope i'm being stupid and it's simple, but it seems like i should rewrite it to extend linearlayout or something rather than TextView Apr 14 02:12:25 shmooz thanks friend! :) Apr 14 02:12:43 sampullman: I don't think so, no. Apr 14 02:12:52 I've been really dying to rewrite all of the indicators from scratch Apr 14 02:12:54 sampullman: yeah, i ended up ripping it out and making my own Apr 14 02:13:04 So that they're easier to use and simpler Apr 14 02:13:06 JakeWharton: it's very inconvenient if you want unorthordox tab indicators Apr 14 02:13:18 It should be simple enough to just replace the TabView inner class though, yeah? Apr 14 02:13:25 well it's straightforward to write your own indicators Apr 14 02:13:33 without anything from VPI Apr 14 02:13:38 yeah but..i already downloaded the library :( Apr 14 02:14:03 Thanks though, just wanted to confirm what I suspected Apr 14 02:14:06 it was last week, i already forgot what i did Apr 14 02:14:14 sampullman: it's not too bad Apr 14 02:14:55 funkbox: yeah, seems like it Apr 14 02:15:31 speaking of bad, does anyone know of a solid implementation of a rounded corner imageview that supports scaletypes? Apr 14 02:16:15 The stackoverflow solutions aren't great, and my own solution is shaky Apr 14 02:16:49 sampullman: eh, i've shipped mine and no one has complained about it Apr 14 02:16:50 have an A13 board with Android 4 how do I disable android from writting to a /mnt/sddisk Apr 14 02:17:34 sdcard Apr 14 02:18:15 funkbox: bah, well maybe i'll try to do it right and open source it if it turns out ok Apr 14 02:18:51 i was going to do that, but then netflix put all of dexter's lab online Apr 14 02:19:45 heh Apr 14 02:44:29 dahlmoony: here's another bigger one ... http://thepiratebay.se/torrent/7102283/Android_Programming_and_Android_Game_video_tutorial Apr 14 02:48:31 thank you :) Apr 14 02:50:56 I have an intent that fires code caught with: if (intent.getAction().equals(Intent.ACTION_USER_PRESENT)) Apr 14 02:51:24 However, I can't for the life of me seem to catch a screen_off intent with if (intent.getAction().equals(Intent.ACTION_SCREEN_OFF)) Apr 14 02:52:00 I'm not sure where to start troubleshooting this. Thoughts? Apr 14 02:57:03 Hey guys Apr 14 02:57:21 I have two 'issues' today is anyone online? Apr 14 02:58:06 Ok, well I will just post them and see if anyone respondes... Apr 14 02:58:54 My first issue is the lacking of a Play Store API. It makes it impossible for web developers to display apps with an updating/nice UI Apr 14 02:59:18 My Second issue is that I am not seeing the option to respond to comments... is that available to everyone? Apr 14 02:59:52 If anyone can give me any insight that would be great **** ENDING LOGGING AT Sun Apr 14 02:59:58 2013