**** BEGIN LOGGING AT Tue Dec 10 02:59:58 2013 Dec 10 03:00:23 where you're supposed to see it? Dec 10 03:00:55 in the API guides Dec 10 03:01:18 oh wait i found it Dec 10 03:01:36 the half a dozen getScaledx methods made me miss it Dec 10 03:01:56 i think you can use getSize too Dec 10 03:02:19 writing with a min SDK version of 8 Dec 10 03:02:22 10* Dec 10 03:02:43 one of my teammates has a Droid X with gingerbread on it Dec 10 03:07:24 okay, quick question, what values does the accellerometer return? Dec 10 03:07:58 is it a value between 0 and 1 or something else? Dec 10 03:14:35 oy, i just answered my own collision detection question from earlier x.x Dec 10 03:23:15 I've got a custom view w\ custom XML attributes, and in one use case it works just fine, gets the Attributes I set on it. And in another place, the custom XML attributes are just missing from the AttributeSet I get passed, anyone seem something like this? Dec 10 03:37:32 just so I'm reading this right Dec 10 03:37:38 you have an view, which you inflate from xml Dec 10 03:37:41 you set some stuff on it Dec 10 03:37:52 you use the same view, somewhere else, which you inflate from xml Dec 10 03:38:01 and you check some stuff on the new view, and the previous stuff you set wasn't there Dec 10 03:56:53 so my app is getting a bunch of Timed out waiting on IInputContextCallback, but only for 4/5 times i try launching an activity Dec 10 03:59:29 wmealing, sorry didnt see you replied! I figured it out Dec 10 03:59:34 instead of this: Dec 10 03:59:35 xmlns:app="http://schemas.android.com/apk/res-auto" Dec 10 03:59:37 I had this: Dec 10 03:59:42 xmlns:app="schemas.android.com/apk/res-auto" Dec 10 03:59:52 nothing through an error... it just didn't work... Dec 10 04:10:51 Hi guys Dec 10 04:11:38 Can i use my ps3 for building? I have a custom firmware so i can install ubuntu on it. Dec 10 04:11:55 congratulations, you are the 694th person to say hi today! Dec 10 04:12:12 hi Dec 10 04:12:20 K...good...glad to know bro Dec 10 04:12:41 Now can you answer me please? Dec 10 04:12:58 lol Dec 10 04:14:06 you want to build what with it ? android apps? well i can't see why not if it's x86 running linux Dec 10 04:14:32 Bankai, apps and roms too. Dec 10 04:14:54 Does a ps3 has those specs? Dec 10 04:15:20 I mean it requires a considerable power to build a rom on a pc. Dec 10 04:15:32 *shrugs* ask #android-root or something, this is an app dev channel Dec 10 04:16:15 Ah...sorry...but you must be having an idea Dec 10 04:16:54 can it do it? probably... Dec 10 04:17:06 Right bankai_ Dec 10 04:17:12 Hmm Dec 10 04:17:27 Dunno...i am asking you :l Dec 10 04:17:39 Rudolf_: get one of those $399 17.3 inch laptops Dec 10 04:17:48 Rudolf_: you don't seem to understand. This is an App dev channel. so adios? Dec 10 04:18:10 K man...no issues Dec 10 04:18:16 Thanks anyways Dec 10 04:18:32 I don't see anyone doing android dev on ps3 Dec 10 04:18:34 I mean you guys are into dev so you must be knowing. Dec 10 04:18:45 Hmm Dec 10 04:18:47 Yeah app dev'ing Dec 10 04:18:47 ps3 is not x8 Dec 10 04:18:48 x86 Dec 10 04:18:49 Okies Dec 10 04:18:59 /part already? Dec 10 04:20:58 canvs2321: oh good job ... why didn't you just say that to start with ? Dec 10 04:21:14 lol Dec 10 04:21:25 i need help with my collision detection Dec 10 04:21:27 http://pastebin.com/HrHu74jj Dec 10 04:21:37 it's sending my ball haywire and through things Dec 10 04:21:42 you said you fixed that Dec 10 04:21:47 though mostly to the end of a wall Dec 10 04:22:00 the app isn't crashing Dec 10 04:22:13 so you got that going for you Dec 10 04:22:15 :) Dec 10 04:22:19 which is nice Dec 10 04:22:29 it just doesn't gurantee to start every time Dec 10 04:23:27 ml417: you are aware of logcat? or atleast on screen display of coordinates? Dec 10 04:23:39 is it always returns true? Dec 10 04:24:49 logcat yes Dec 10 04:24:56 on screen display i haven't added yet Dec 10 04:25:08 yeah, the return true thing is useless Dec 10 04:25:33 it sets the velocity and position variables depending on the results Dec 10 04:25:36 then use it! :) i'm saying you are going blind with your current situation, debug! something is going haywire, you should know the why where and what of it, it shouldn't be voodoo Dec 10 04:25:58 i can see the ball on my screen Dec 10 04:26:07 it's just not going where it should Dec 10 04:26:08 grab it .. quick ! Dec 10 04:26:12 yeah you can see it going haywire Dec 10 04:26:29 mostly teleporting using the walls instead of stopping at them Dec 10 04:27:03 it's a problem with my logic on the collision detection Dec 10 04:27:11 it's simple to to add log entries to know position, velocity, collision detects etc, using a simple Log.i/Log.d/Log.WHATEVER to see the ball on screen then read why it is where it is on the screen Dec 10 04:27:13 or at least the positioning based on it Dec 10 04:27:46 too much action/reaction using just your sight of a ball isn't working, so get the statistics Dec 10 04:28:10 it's a school project that is due tomorrow Dec 10 04:28:26 method name is checkCollision... Dec 10 04:28:46 i'm telling you to take in all the information, not just what you see. Take in why you are seeing what you are seeing Dec 10 04:28:50 group project Dec 10 04:29:13 i try working the logic on paper/my head Dec 10 04:29:30 but it isnt check method. Dec 10 04:30:00 don't do that, cuz you can't trust anything on paper&especially what's in your head, use the data used that is to draw your object? Dec 10 04:30:23 okay, so how do i make that stuff apear on logcat Dec 10 04:30:28 appear* Dec 10 04:30:32 using Log Dec 10 04:30:37 you should be separate the logic Dec 10 04:30:45 check and modified status.. Dec 10 04:30:57 i didnt write most of that chunk of code Dec 10 04:31:26 right now i'm focused on getting it working correctly Dec 10 04:32:04 canvs2321 can you write a line of code for me that will write to logcat? Dec 10 04:32:13 i dont really have much android coding experience in general Dec 10 04:32:21 or at all Dec 10 04:32:35 Log.i("MyAppTag_whereImAtInMyCode","currentX:"+ currentX + "/currentY:" + currentY + "|collison:" + collisionDetected); whatever, just take your needed data and extrapolate(sp?) Dec 10 04:32:50 ml417: sounds like you are checking where its not matching, and skipping the point of collision Dec 10 04:33:35 i'm trying to set the ball next to the wall if it detects a collision Dec 10 04:33:37 ml417: you might need to check for a range like if greater than and less than so it doesn't step through the collision without being detected Dec 10 04:33:54 at the very least i'm setting velocity in that direction to 0 so it does not move into the wall Dec 10 04:34:18 i have velocity limited so it doesnt step through Dec 10 04:34:39 Log is simple&effective, you Log.X("MYTAG","MYDATAPOINTS"); Dec 10 04:35:20 i clipped the data from the accelerometer at 5 and set velocity to accel * length or width of cell / 5 Dec 10 04:35:48 what would "mytag" be? Dec 10 04:36:35 wait, i think i answered myself Dec 10 04:37:03 don't use mytag, use urtag :P Dec 10 04:37:04 would it be like Log.i("xVelocity", mVx);?? Dec 10 04:37:19 yeah anything you wanna log&see what's happening Dec 10 04:37:43 maybe Log.i("xVelocity",""+ mVx); as log want's a string Dec 10 04:39:05 okay Dec 10 04:39:32 so ""+ is a blank string that adds mVx to it? Dec 10 04:40:03 yeah, it just makes it take mVx if it's an integer,float,double or whatever&concats it as a string Dec 10 04:40:28 okay, thought so Dec 10 04:40:34 i know c++ Dec 10 04:40:43 at least to a certain level Dec 10 04:40:48 :) Log will be your friend Dec 10 04:41:03 i know debugger is with my c++ projects Dec 10 04:41:14 you know how to view logcat? Dec 10 04:41:19 yeah Dec 10 04:41:22 k Dec 10 04:41:31 it's built into eclipse ADT anyways Dec 10 04:41:44 before release you can always comment out, or remove any Log.X(); Dec 10 04:41:52 but i've been using ADB long before i ever considered writing anything for android, much less need to for a class Dec 10 04:42:02 get off my lawn Dec 10 04:42:03 or if you have windows just open command prompt and adb logcat etc Dec 10 04:42:15 lol i know Dec 10 04:42:19 wmealing: lawns are over rated, grow a garden Dec 10 04:44:42 gotta have chickens too - free eggs! Dec 10 04:45:14 free after u pay for them&build them a coop&feed them :) Dec 10 04:46:45 don't forget taken that coop apart after you eat all the chickens Dec 10 04:46:54 taking* Dec 10 04:47:29 never it's a perpetual harvest :) Dec 10 04:47:49 just slaughter the pig&make bacon! Dec 10 04:48:31 but i'm jewish Dec 10 04:48:57 then grow some spinach with your eggs :) Dec 10 04:49:24 on your lawn with green beans, bell peppers&all the assorted veggies :) Dec 10 04:49:36 i love meat though Dec 10 04:49:42 especially lamb Dec 10 04:49:47 and let the pig sleep in the laundry room Dec 10 04:49:59 i'm interested in all the cool stuff for indoor (apartment) growing Dec 10 04:50:11 i'd set up some space and grow my own kale Dec 10 04:50:20 g00s_: are you saying you're growing... herbs... indoors? :p Dec 10 04:50:33 greens :) Dec 10 04:50:40 bah, I know you are all just a bunch of potheads Dec 10 04:50:41 it'll be legal in 5-10 years anyways Dec 10 04:50:49 g00s_: get some compact flourescents(sp?) or HID lighting and use hydro! Dec 10 04:50:54 now way man, don't smoke, chew, or date women that do :D Dec 10 04:51:21 canvs2321 yeah, looking at some indoor hydroponics, etc Dec 10 04:51:21 what about dudes? Dec 10 04:51:27 i don't need pot to feel high, a 15 hour coding session lasting until 4-5am does it for me Dec 10 04:51:28 fish, etc Dec 10 04:51:39 good, don't smoke it, all the more for me Dec 10 04:51:40 that's aquaponics :) Dec 10 04:51:45 yeah :D Dec 10 04:52:06 some really adventurous people try this in their apartments (at small scale) Dec 10 04:52:23 ml417: try didgeridoo for 1 hour straight sometime :) Dec 10 04:53:07 try band camp on tuba Dec 10 04:53:31 that's marching band for you non-americans Dec 10 04:53:36 nah, you (generally) don't circular breathe with a tuba Dec 10 04:53:52 very few people can do that to begin with Dec 10 04:54:06 g00s_: Hyrdo equiptment can be acquired at most Big Stores, just google it&conquer! Dec 10 04:54:12 it's pretty much a requirement for didgeridoo playing Dec 10 04:54:27 well i guess i can't play the didgeridoo Dec 10 04:54:36 it just takes practice, like anything :) Dec 10 04:54:49 canvs2321 yeah, but its no fun unless EACH PLANT is on the internet of things :D Dec 10 04:54:51 also i was taught a breathing technique that can get you high on oxygen in 10 minutes instead of an hour Dec 10 04:54:56 I like how jamiriquai used it in their acid jazz Dec 10 04:54:57 each plant must have its own IP ;) Dec 10 04:55:30 you do know that circular breathing is pretty much an airway deformty Dec 10 04:55:37 no each plant needs it's PH & food requirements, keep deligent&you will be prosperous(sp?) Dec 10 04:55:48 i think the odds of being able to physically do it are somewhere in the 1 to 50 or something like that Dec 10 04:55:52 far off topic so i'll stop :) Dec 10 04:55:59 ml417: no, it's physically possible for everyone Dec 10 04:56:02 (sp indeed) Dec 10 04:56:13 well, everyone with a normal respiratory system, at least Dec 10 04:56:28 hmm are we talking about the same type of circular breathing? Dec 10 04:56:32 you just store air in your cheeks, and then push it out your mouth with your cheeks while you inhale through the nose Dec 10 04:56:34 I want a robot body. Dec 10 04:57:08 either way, this has really gotten off topic Dec 10 04:57:14 i have a teleporting ball i need to take care of Dec 10 04:57:15 just a bit :) Dec 10 05:01:42 Anyone know about the Tinder app? of course u do Dec 10 05:02:17 i write a stupid monkeyrunner script and press like in while true loop. i post the results on a blog and advertise it. i hope people realize this app is dumb and will leave it kek Dec 10 05:02:57 wonder if that's the real JesusFreke. Dec 10 05:02:58 hmm, do i need to override touch or keyboard controls if i don't use them? Dec 10 05:03:01 wat Dec 10 05:03:28 wmealing: it depends on your definition of "real". but likely, yes. Dec 10 05:03:30 i think the issue i've been having is that my app is causing swiftkey to wait for input that is never sent to it Dec 10 05:03:33 I think dogarrhea should change her name to doggerel. Dec 10 05:03:57 the rom maker, you also helped me with bionic, about 5 years ago Dec 10 05:03:59 JesusFreke once in a while AS loses connection with my genymotion vm, even when adb devices shows it. is there a way to reset the adb connection without restarting the IDE ? Dec 10 05:04:04 thanks btw.. and hi Dec 10 05:04:13 nilium why doggerel Dec 10 05:04:13 maybe 4 years ago.. Dec 10 05:04:40 So then you can have a gimmick. Dec 10 05:06:21 oh yep, the app broke my phone again, restart time Dec 10 05:07:36 is there a place in eclipse to access adb? or should i just use the cmd? Dec 10 05:07:55 ml417: what OS you running> Dec 10 05:07:57 ? Dec 10 05:08:00 Windows 7 Dec 10 05:08:08 use command prompt Dec 10 05:08:25 adb logcat i n a command promplt will keep a running tally of logs Dec 10 05:08:45 i can view the logcat with eclipse Dec 10 05:08:55 stop it if you no like it Dec 10 05:08:55 it's just my phone got to the point where everything was crashing Dec 10 05:09:03 you just ask how to view otherwise Dec 10 05:09:11 no i asked access adb Dec 10 05:09:15 crashing will be viewed in logcat Dec 10 05:09:33 yeah, the logcat is practically all red Dec 10 05:10:01 i just was being lazy about opening cmd to type adb reboot Dec 10 05:10:10 red in eclipse? you can filter in eclipse, or use command prompt and filter or see all Dec 10 05:10:19 red = bad Dec 10 05:10:25 as in stuff crashing Dec 10 05:10:29 don't type adb reboot, that'll reboot your device Dec 10 05:10:35 that was my intentions Dec 10 05:10:46 once in a while my app crashes so badly that it causes everything else to crash Dec 10 05:10:50 requiring a reboot Dec 10 05:10:55 doubt it Dec 10 05:10:57 g00s_: dunno, sorry :) Dec 10 05:11:01 i dont Dec 10 05:11:03 i do Dec 10 05:11:05 my launcher even crashed Dec 10 05:11:16 you are far away from knowing development for android Dec 10 05:11:21 oh i know Dec 10 05:11:38 but when my app crashes and suddenly everything else starts crashing Dec 10 05:11:51 and everything is fine after a reboot Dec 10 05:11:58 so it's super late right now EST, but if your shit is crashing everything, then there are threads doing work that are doing it. Dec 10 05:12:42 i haven't been able to pinpoint that particular problem with my app, but it's next on my list after collision detection Dec 10 05:12:46 and it's only midnight here Dec 10 05:12:53 i'm a college student, it's not late Dec 10 05:15:33 OOOH kollege Dec 10 05:15:45 but if class is in 6hrs or so you are screwed as you don't know the basics about debugging java apps for android. Do what you can! Dec 10 05:15:51 soon u will be competing for minimum wage jobs against h1bs and trying to make rent before u decide to flip burgers Dec 10 05:16:08 and get a double major in medicine and go into debt permanently for the rest of your life Dec 10 05:16:23 lol Dec 10 05:16:34 this is for an engineering class, not a java class Dec 10 05:16:46 it's a combined Cpe, EE, and CS course Dec 10 05:16:56 and then? Dec 10 05:17:12 the CS majors take java, CpE/EE take c++, i'm a CpE Dec 10 05:17:32 then do what you need to do! but i'm pretty sure no matter how much googling you do, it won't work. just suck it up&make shit work with the limited time you left yourself Dec 10 05:17:39 the CS department also babies their students so they don't have a clue about half of what it takes to create their stuff Dec 10 05:17:43 no one cares about your knowledge of schrodinger equation/Big O/np completeness or what not Dec 10 05:17:57 take it from someone with 5 years of industry experience out of kollege Dec 10 05:17:57 well yeah, the entire thing has been cut down way back to begin with lol Dec 10 05:18:30 ml417: how much time have you had to finish this project? Dec 10 05:18:43 dog would you be put in an android project with only knowledge of c++? Dec 10 05:18:52 go ahead. tell your future employer "NO NO NO traveling salesman problem is np-complete. we should not try to optimize" Fed ex pays their data algorithm employees 1 million $ / year to optimize that problem Dec 10 05:18:54 hmm this has been like a month long thing Dec 10 05:19:11 but we did about 60% of the work this weekend Dec 10 05:19:28 hello Dec 10 05:19:55 no one cares about c++ or java or javascript or android or objective c or c shit shit or whatever language you learn in kollege Dec 10 05:19:56 scheme lol Dec 10 05:20:04 they only care about "WHERES MY FUCKING WEBSITE" Dec 10 05:20:10 haha lol Dec 10 05:20:26 either way i have no idea about the details of java/android Dec 10 05:20:28 "WHERES MY FUCKING APP" Dec 10 05:20:35 but i'm focusing on things part by part Dec 10 05:20:51 so had a month, but waited til this weekend. You are a child&fucked up Dec 10 05:20:53 "BUILD SOMETHING FOR ME SO I CAN BE A BILLIONAIRE AND YOU BECOME THAT HOMELESS GUY IN THE STREET" Dec 10 05:21:06 client work = where's my fucking __ Dec 10 05:21:12 no, we've been working on other parts of it before hand Dec 10 05:21:49 it's just we haven't started putting everything together until last week Dec 10 05:22:03 before that it was all proof of concept on varius parts Dec 10 05:22:34 it's mostly "build my entire business for me and i pay you peanuts" these days. but too bad programmers have to make a living some how Dec 10 05:22:49 but all proof of concept on visuals. No actual android development involved. Good Luck Dec 10 05:22:54 work 12 hours a day... 9 for your place of work and 3 for your own apps Dec 10 05:23:19 i think it takes at least a few mos to grok android Dec 10 05:23:21 say you're using GPS location data as a kind of security key that unlocks something in your app... is there a way to prevent that location from being faked? Dec 10 05:23:28 well the visual proof of concept included a ball moving around on the screen Dec 10 05:24:11 it was also not my part Dec 10 05:27:16 is finish() called on an activity if the back button is pressed? Dec 10 05:28:13 yes Dec 10 05:28:29 thanks Dec 10 05:28:30 at least if you don't override onBackPressed Dec 10 05:28:39 yeah, i haven't overridden it Dec 10 05:31:24 if i launch an activity with startActivityForResult() and just press back once the new activity is visible, what is the resultCode ? Dec 10 05:34:59 I would assume RESULT_CANCELED Dec 10 05:37:41 right, i'm checking now.. Dec 10 05:37:54 hello guys Dec 10 05:38:10 i was trying to create a custom view Dec 10 05:39:05 it is a map view and i wanted to register a longpress listener Dec 10 05:40:16 i extended GestureDetector.SimpleOnGestureListener Dec 10 05:42:08 but when i try to register GestureDetectorCompat object eclipse highlights the object as error and i get a suggestion to change it to GestureDetector Dec 10 05:42:14 why is this ? Dec 10 05:57:10 alex_PP, you still here? Dec 10 05:59:34 sequence1: Main (not logged in)-> Login (signup button press, startActivityForResult)-> Signup Dec 10 06:00:02 now next sequence is: (back button pressed) -> Login (onResultActivity triggered).. this woks as expected Dec 10 06:01:21 but if after sequence1, this is the sequence: (signed up successfully, setResult(RESULT_OK), startActivity(Main), finish()) -> Main (onResultActivity within Login is *not* triggered) Dec 10 06:01:22 :( Dec 10 06:22:47 bluesm there ? Dec 10 06:57:08 guys this is crazy Dec 10 06:58:01 so is what my app does have the time Dec 10 06:58:04 half* Dec 10 06:58:24 thank god eclipse catches my types otherwise i'd never be able to code at this hour Dec 10 06:58:29 typos* Dec 10 07:00:21 i have 3 activitie: A, B, C. A is the launcher/main activity. A -> B immediately if user is not logged in, they can login at B or launch startActivityForResult() B->C to signup. C has 2 buttons: signup and cancel. pressing cancel brings back C->B with onActivityResult (in B) triggered. pressing signup starts C->A, but onActivityResult (in B) is not triggered Dec 10 07:00:58 now only if your irc client would do the same Dec 10 07:01:47 Eeeeeee, i'm not understanding your statement/sarcasm/etc. ! Dec 10 07:02:04 talking to ml417 :P Dec 10 07:02:11 ah, ok Dec 10 07:02:21 i agree Dec 10 07:02:30 i reread that sentence and it makes almost no sense Dec 10 07:03:34 diagonal collision detection is a bitch x.x Dec 10 07:03:58 every time i think i have it, I realize it's more complex than it seems Dec 10 07:13:30 dodobrain maybe i don't really understand onactivityresult, but it seems logical that it wouldn't trigger B in that scenario. Dec 10 07:17:04 Did i read that someone doesn't understand something? Dec 10 07:17:34 DarkSlay3r, maybe you can help me out? Dec 10 07:17:42 Depends... Dec 10 07:17:43 i have 3 activitie: A, B, C. A is the launcher/main activity. A -> B immediately if user is not logged in, they can login at B or launch startActivityForResult() B->C to signup. C has 2 buttons: signup and cancel. pressing cancel brings back C->B with onActivityResult (in B) triggered. pressing signup starts C->A, but onActivityResult (in B) is not triggered Dec 10 07:18:29 so what's the problem? Dec 10 07:19:07 in your onActivity result, you probably have a switch right? Dec 10 07:19:10 err.. i would like to call finish() on the onActivityResult() within B Dec 10 07:19:50 Did you handle result RESULT_CANCELLED? Dec 10 07:20:04 essentially A->B->C->A so when i do eventually switch from C->A i want B to be finish()ed Dec 10 07:20:46 darken, i am not doing anything in that callback onActivityResult() iwithin B. just Log.d("blah", "onActivityResult called"); Dec 10 07:21:08 this does not get printed if the user actually managed to signup and C->A is the step that happens Dec 10 07:21:33 if the user presses the cancel button or back button, C->B happens and onActivityResult() *does* get called! Dec 10 07:22:35 Then it means that C doesn't trigger the callback... Dec 10 07:23:11 basically C is a activity started by startActivityForResult(). but instead of just doing something and calling finish(). it calls finish() but also triggers a switch to another activity Dec 10 07:24:44 C doesn't do what you want it to... Dec 10 07:25:14 C's problem not yours Dec 10 07:25:22 DarkSlay3r, if i am understanding it correctly. calling finish() within C *should* trigger the onActivityResult() in B *regardless* of whether the activity shown next is B or A or X or Y or Z Dec 10 07:27:11 i.e. C has finished doing whatever it wanted to do. oh look, B wanted to know when C was finished, lemme invoke that callback. doesn't matter that i am now showing A Dec 10 07:28:26 This isn't making any sense to me... Dec 10 07:28:45 the *other* possible reason that the callback is not triggered makes *no* sense: i.e. C hasn;t really finish()ed Dec 10 07:29:07 DarkSlay3r, i'll try to explain with batter/proper names now. this A B C business is rubbish Dec 10 07:29:36 Well at least i got to practice my Alphabets... Dec 10 07:30:07 DarkSlay3r, 3 activities: Main, Login, Signup. starting the app launches Main; onCreate checks if user is logged in. If not. startActivity() for Login Dec 10 07:33:42 Main finish()es itself. Login has username/passwd fields and 2 buttons: loginbtn, signupbtn. filling in username/passwd and pressing loginbtn if successful calls finish() and startActivity() Main. if unsuccessful shows a toast. if signupbtn is pressed, startActivityForResult() Signup Dec 10 07:35:43 Signup has 2 buttons: cancelbtn, reallysignupbtn. pressing cancelbtn setResult(RESULT_CANCELLED); finish(); and now user is back on Login and the onActivityResult() is triggered . pressing reallysignupbtn setResult(RESULT_OK); startActivity()Main; finish(); onActivityResult() in Login is not triggered Dec 10 07:36:13 I want to finish() Login within onActivityResult() once the user has successfully signed up and is on Main Dec 10 07:36:29 maybe, i'm doing this the wrong way. Dec 10 07:36:54 DarkSlay3r, how would you handle this situation. i.e. simple app with main screen, login screen and signup screen Dec 10 07:37:40 Login -> Main Dec 10 07:37:46 Login - Signup Dec 10 07:37:53 Not main first Dec 10 07:38:32 no.. thats crap because 99% of the time one expects the user to be logged in already Dec 10 07:38:45 wtf is google that DUMB? "you are using version 3.02 of make, android can only be built by version 3.01" Dec 10 07:39:04 Yeah save preferences and then authenticate Dec 10 07:39:38 more secure anyway Dec 10 07:40:13 umm.. "yeah" to what i said or what you were saying ? Dec 10 07:41:11 is there a way to make my app request a large chunk of memory? logcat has a lot of Grow heap (frag case) in it Dec 10 07:41:24 Sorry dodobrain i'm just confused Dec 10 07:41:27 I440r: not dumb, EVIL Dec 10 07:41:43 I guess i don't have an answer for yo Dec 10 07:41:48 you** Dec 10 07:41:56 :( Dec 10 07:42:22 leeds no. this is just pure dumb Dec 10 07:42:29 NO, EVIL Dec 10 07:42:46 can i bring in a new word for it? moronic? Dec 10 07:43:32 EVIL COVERS IT Dec 10 07:43:39 No Dec 10 07:43:45 Google is life Dec 10 07:43:54 Everything Google does is perfect Dec 10 07:44:05 Google said so Dec 10 07:44:09 or to put it another way, IT'S A *MASSIVE* AMOUNT OF CODE, WITH A COMPLICATED BUILD SYSTEM, WHICH COULD EASILY BE BROKEN BY A MINOR CHANGE IN MAKE Dec 10 07:44:46 "calling finish() within C *should* trigger the onActivityResult() in B *regardless* of whether the activity shown next is B or A or X or Y or Z" --- I would think the activity would need to be B to to trigger onfinish, but this is only a baseless guess from reading docs Dec 10 07:45:25 Eeeeeee: What bothers me is onActivityResult is not called Dec 10 07:45:27 not onfinish.. onActivityResult() Dec 10 07:46:02 You need to return be able to return at least activityok and activitycancel Dec 10 07:46:12 starting an activity with startActivityForResult() is really just setting up a callback for when the newly started activity finish()es iitself Dec 10 07:46:23 doesn;t matter what else the newly started activity does! Dec 10 07:46:24 ah Dec 10 07:46:34 like I said, aseless Dec 10 07:46:38 baseless Dec 10 07:46:49 Run a lifecycle test Dec 10 07:47:01 then we'll know for sure Dec 10 07:47:06 make 3.02? is this gmake ? Dec 10 07:47:29 Is it possible for adb to trigger a simulated physical button press? Dec 10 07:50:43 GNU Make 3.81 -- 3.82, which you can download from Dec 10 07:50:51 ugh, i dont know what you guys are talking about Dec 10 07:52:23 hello Dec 10 07:58:19 can someone walk me through the steps of what happens when a new activity is called? I'm having problems with my app freezing on the onCreate() method of the activity that is called right after a buttom press Dec 10 08:00:57 ml417 grab a book, read the user guide .... Dec 10 08:01:21 when is your part of the project due ? Dec 10 08:01:23 I'm trying to figure out what's going wrong with my code Dec 10 08:01:33 we're presenting Tomorrow evening Dec 10 08:01:46 and you dont know java or android :| Dec 10 08:01:47 i'm doing clean up on the code Dec 10 08:01:54 pretty much Dec 10 08:01:57 i know c++ Dec 10 08:01:57 oh, so its done ? Dec 10 08:02:01 sorta Dec 10 08:02:12 the end popup still crashes the app Dec 10 08:02:19 and isn't even in the code i'm using right now Dec 10 08:02:47 and it freezes most times i try opening the main game activity Dec 10 08:03:08 and collision detection still isn't perfect, but i'm pretty close on that Dec 10 08:06:33 wait i think i narrowed down the line that is causing the issue Dec 10 08:06:37 or at least the current one Dec 10 08:06:47 mSensorManager = (SensorManager)getSystemService(SENSOR_SERVICE); Dec 10 08:26:03 what's the cleanest way to get the screen size? Dec 10 08:26:20 pixles wise Dec 10 08:27:57 ml417 : http://stackoverflow.com/questions/1016896/how-to-get-screen-dimensions Dec 10 08:28:59 thanks Dec 10 08:29:40 i'm trying to figure out why my app freezes on an onCreate() method and I can't figure out why Dec 10 08:29:49 what's causing it* Dec 10 08:29:55 so i'm going line by line Dec 10 08:31:43 5M+ downloads https://play.google.com/store/apps/details?id=jp.co.asbit.pvstar :-o Dec 10 08:31:59 i wonder if the next version of AS will be based on 13 final Dec 10 08:32:07 build 133.33 something Dec 10 08:32:07 and I thought that YouTube has its own app Dec 10 08:50:21 what is the default/good button/menu layout to use if the app has multiple screens? Dec 10 08:50:49 join #Skate2Create Dec 10 08:52:33 dodobrain .. multiple screens? Dec 10 08:52:43 multiple activities Dec 10 08:52:58 my apologies.. multiple screens can mean something else Dec 10 08:53:05 and i assume that is possible too with android Dec 10 08:53:18 anything is possible ;) Dec 10 08:53:46 but multiple activities can be done in many ways Dec 10 08:54:32 i was thinking maybe a bottom buttonbar that has buttons 'home', 'feedback', 'Pizza', etc. Dec 10 08:54:56 dodobrain consider the design guidelines for navigation Dec 10 08:55:04 you could also use the actionbar Dec 10 08:55:12 g00s, yes.. i want some good guidelines for proper native apps Dec 10 08:55:37 google has fine tutorials and guidelines on their site Dec 10 08:55:54 i'm trying to replicate a design from an ios app, but i think its pretty rubish and it would like out of place with the non-android weirdness Dec 10 08:56:02 http://developer.android.com/design/index.html Dec 10 08:56:38 get started there ... Dec 10 08:58:37 I think my thread is trying to call onDraw after i press the back button and it causes the app to crash Dec 10 08:58:51 any clue where should i start looking to prevent this? Dec 10 09:00:24 ml417, why not kill your thread in onBackPressed() ? Dec 10 09:00:35 okay, so i need to override that? Dec 10 09:00:44 in your activity, yes Dec 10 09:00:48 thanks Dec 10 09:00:55 better to do it in onPause, I think Dec 10 09:01:09 I have an onPause Dec 10 09:01:17 hmm question Dec 10 09:01:20 how do i kill a thread? Dec 10 09:01:42 Zharf, i assume back gets him out of the activity and he really wants to kill the thread , i.e. simulation is gone Dec 10 09:01:48 my onPause method just calls super.onPause(); Dec 10 09:01:55 while i assume his pause is something like getting back to the home screen Dec 10 09:02:10 i.e. the simulation is running in bg Dec 10 09:02:35 https://gist.github.com/anonymous/7887668 Dec 10 09:02:40 or maybe the max he will do is pause the simulation itself, i.e. when resumed the objects will continue from their current positions with their current velocities Dec 10 09:02:50 i doubt he really want to kill the thread in onpause Dec 10 09:02:57 i want to kill it Dec 10 09:03:06 if you press the home button? Dec 10 09:03:07 you'll need to make sure your thread handles interrupted state though, also I often have some sort of stop() method in my threads that set the running state to stopped Dec 10 09:03:12 yeah Dec 10 09:03:23 don;t you want to resume your animation if user just starts your activity again? Dec 10 09:03:42 nope Dec 10 09:03:52 i want to go back to the main screen and hit start again Dec 10 09:03:54 ok, up to you.. kill it! Dec 10 09:04:04 (main screen only has the logo and a start button) Dec 10 09:04:18 and the logo is actually part of the background Dec 10 09:04:23 don't ask me why Dec 10 09:04:26 threads are tricky in that if they aren't written with care, shutting them down can be bothersome Dec 10 09:04:42 you're not really 'pausing' your application if you are killing your thread and removing all state about your particles Dec 10 09:04:48 anyway, your app, your rules Dec 10 09:04:50 well right now, to not run out of memory i need to manually clear my app before every time i run it Dec 10 09:07:27 okay, so i added your code into the thread class Dec 10 09:08:40 okay i think i have a problem Dec 10 09:08:58 the instance of the thread class is created inside the surfaceview class Dec 10 09:09:09 how do i call it from onPause? Dec 10 09:13:25 Hi all! Dec 10 09:14:03 i would go in debug into android framework sources... i have compiled android source and now i'm tring to setup android framework sources into eclipse Dec 10 09:14:30 i'm following this guide: http://source.android.com/source/using-eclipse.html#eclipse-is-not-working-correctly-what-should-i-do Dec 10 09:16:04 but in Eclipse when i choose "File > New > Java Project" Dec 10 09:16:17 there isn't "Create project from existing source" Dec 10 09:16:19 why ? Dec 10 09:16:47 try import Dec 10 09:17:03 is there a max URL length for when using loadUrl in a webview? I'm trying to send a JSON string to the JavaScript in the webview but it seems to never go through as the JSON as rather large Dec 10 09:17:08 Anyone know how to get ints from a database column that are larger than zome value? Dec 10 09:17:42 ml417: but i official guide Dec 10 09:17:43 http://source.android.com/source/using-eclipse.html#increase-eclipses-memory-settings Dec 10 09:17:51 it say File > New > Java Project Dec 10 09:18:38 okay, i'm a novice, so if something says do it one way, you probably shouldn't listen to me Dec 10 09:19:54 ech0s7: try "Import" ;) Dec 10 09:20:33 ech0s7: right-click on the sidebar with your projects Dec 10 09:23:54 lasserix: SQL? "where `column_name` > 42" Dec 10 09:28:32 selecting "Import", eclipse start search for projects in all subfolders1 Dec 10 09:29:03 hey Guys Dec 10 09:29:30 It seems with v18 ActionBar is part of support package, Is there any reason not to move away from ABS Dec 10 09:29:32 ZHarf: I'm still confused about how to properly kill a thread Dec 10 09:30:10 ml417, does your run() handle interrupted states and does it have some sort of loop that can be exited somehow Dec 10 09:30:25 loop yes, interrupted states i'm not sure Dec 10 09:30:45 it has a typical while (mRun) loop Dec 10 09:30:56 with setRunning(bool) Dec 10 09:31:16 ew, mCrap :p Dec 10 09:31:18 aanyway Dec 10 09:31:32 ml417, make that while (running && !Thread.interrupted()) Dec 10 09:32:22 then when you want to shut it down, call thread.setRunning(false) and the shutdownThread(thread) method that I pasted Dec 10 09:32:45 do i type this.interrupt()? Dec 10 09:32:53 no Dec 10 09:33:13 it's complaining about not being able to make a non-staic reference static Dec 10 09:33:23 wait Dec 10 09:33:24 reverse that Dec 10 09:33:45 cannot make static reference to non-staic method Dec 10 09:35:16 Zharf: ? Dec 10 09:35:26 read what I said again Dec 10 09:35:37 x.x Dec 10 09:35:39 got it Dec 10 09:35:45 i reread it 3 times before you said that Dec 10 09:35:46 brickhead, depends if you need some additional features ABS offers Dec 10 09:35:56 brickhead, you should be moving away from 2.3 anyway ;) Dec 10 09:36:41 Zharf, now what? Dec 10 09:37:50 well it should shut down if you called those two methods Dec 10 09:38:12 call what where? Dec 10 09:38:17 11:32 < Zharf> then when you want to shut it down, call thread.setRunning(false) and the shutdownThread(thread) method that I pasted Dec 10 09:38:32 where thread is the thread instance you want to shutdown Dec 10 09:38:44 totally lost that between the join and quit in there Dec 10 09:38:45 sorry Dec 10 09:38:46 it's late Dec 10 09:40:05 late has nothing to do with it; if you don't know android, java, and the homework is due tomorrow, its /procrastinating/ :) Dec 10 09:40:33 ;) Dec 10 09:40:43 blame my entire team lol Dec 10 09:40:48 i can't control 4 other people Dec 10 09:41:03 i've been contributing to this project every week Dec 10 09:41:08 minus thanksgiving break Dec 10 09:52:42 hi. I try to update Wallpaper Preferences from code. I do in one of my methods: http://pastebin.com/D4upP4Ny Dec 10 09:52:57 it does not not work Dec 10 09:56:59 Mavrik, negative. I've about 30% users still on 2.3 Dec 10 09:57:34 enabler. Dec 10 09:58:17 Mavrik, 1btw what other features you have in mind? I might have some styles and themes replying on it I guess Dec 10 09:58:42 Hi, what's the best way to imort a library jar file. copy in the libs folder or add external jar in properties? Dec 10 09:59:16 brickhead, IIRC there are some things AppCompat won't support on 2.3... there were some problems with transparency, actionviews and some themes missing Dec 10 09:59:29 if you already use ABS then there's really not much reason to switch Dec 10 09:59:37 FrancescoV, by using Gradle or Maven really. Dec 10 10:00:50 Mavrik, hmm.. apart from the extra library size, I can't think of any much advantage Dec 10 10:03:30 Hmm, I have this problem, I can import a class from a library but I've got a java.lang.NoClassDefFoundError error Dec 10 10:04:41 FrancescoV, on runtime? then its not in classpath.. i.e. you need to export the lib as well Dec 10 10:05:00 dodobrain: yes on runtime Dec 10 10:05:07 Zharf, I moved my thread outside of my surfaceview class, but now it doesn't create a canvas in run() so it gets a pull pointer on the first onDraw called Dec 10 10:05:40 if you are using eclipse, you need to *export* the lib.. check it in build path for the project Dec 10 10:05:49 i'll ask again if anybody knows how to access the settings for the advertising ID? I just can't find it on the device Dec 10 10:06:24 ohcibi, it's the gray Google icon called "Google Settings" Dec 10 10:07:23 does anyone know the solution to my problem? the 3 activitites and onActivityResult() not being triggered problem Dec 10 10:07:23 Mavrik: wow thanks... no i've found it, i dont know why i've overseen it.. 8) Dec 10 10:11:12 has anyone here had any issues with parcelable data and "FAILED BINDER TRANSACTION" errors? Dec 10 10:11:37 getting the error when leaving my activity to go to another one, but when I orientate, it doesn't happen Dec 10 10:11:48 even though I'm saving the content in saveInstanceState Dec 10 10:20:54 Anyone know how to structure the selection clause of a contentresolver such that I can select where column name has a value greater than 0? Dec 10 10:22:38 *using the selection args arg Dec 10 10:22:41 (argggghhh!) Dec 10 10:22:42 ;p Dec 10 10:30:36 in AS i have a logcat filter by package name, but the logs are still spammed by OpenGLRenderer Dec 10 10:30:58 is there a way to remove these ? Dec 10 10:31:48 http://stackoverflow.com/questions/7889888/how-to-filter-out-a-tagname-in-eclipse-logcat-viewer Dec 10 10:32:23 As, not eclipse :) Dec 10 10:32:41 how difficult is it to create a wakelock? Dec 10 10:34:20 is relativelayout the one to use as the main container within an activity ? Dec 10 10:34:48 i see eclipse creates a relative layout by default if i create a new activity Dec 10 10:36:28 cool Dec 10 10:36:29 tag:^(?!(WifiMulticast|WifiHW|MtpService|PushClient)) Dec 10 10:38:04 yeah Dec 10 10:38:44 oh sorry not eclipse but same principle :) Dec 10 10:38:48 is it possible to generate R's in different packages? Dec 10 10:39:15 I want to generate an R in a different package then the default for some resources Dec 10 10:39:26 or do I have to create a libraryproject for this? Dec 10 10:39:35 userLandscape API level 18 (╯°□°)╯︵ ┻━┻ Dec 10 10:41:33 what the fish guys.. Dec 10 10:41:54 why the heck doesn't android provide a good stock set of icons? Dec 10 10:42:27 there isn't a food/restaurant/spoon/fork icon :( Dec 10 10:42:37 there is a library of icons somewhere? Dec 10 10:42:46 is there some great free resource you guys know of that has good icon coverage? Dec 10 10:42:48 I've been using custom made the entire time Dec 10 10:43:05 yeah the default iconset is available Dec 10 10:43:10 but it is very limited Dec 10 10:45:13 the native content providers of android os don't do DISTINCT selection ? Dec 10 10:46:47 so when retreiving the users advertising ID. I'd have to check if isLimitAdTrackingEnabled returns true, and if not I must assure that the ID is not used to create targeted advertising? Dec 10 10:47:14 (but I could create targeted advertising anyway by just using the ID anyways?) Dec 10 10:48:14 ml417: http://developer.android.com/design/downloads/index.html Dec 10 10:49:32 ohcibi, I'm not sure what you're asking? Dec 10 10:49:53 I was trying to figure out how to add the permission for it, and stumbled upon a single line that keeps the screen on without a wakelock Dec 10 10:50:03 thank you though CallumTaylor Dec 10 10:50:47 Mavrik: I guess It is answered already in the docs... it was just a bit confusing to me that the decision wether the user can receive targeted advertising (i.e. based on some profile which is connected to his or here ad ID) or not must be done by the developer with resepect to some boolean.. Dec 10 10:51:00 There is one last thing that still makes no sense to me, and that is in the way the ball is being displayed, no one has been able to answer this one so far Dec 10 10:51:21 i turned off the background so i can see the ball's movement, and it looks like every redraw of the ball is moving Dec 10 10:52:26 CallumTaylor, i don't see a restaurant/food icon there ( Dec 10 10:52:28 :( Dec 10 10:52:41 it won't have every icon, its main action icons Dec 10 10:52:50 ohcibi, I don't see what's confusing Dec 10 10:53:01 user said "don't track me" and you get that passed Dec 10 10:53:02 helveticons is a good place for similar style icons Dec 10 10:53:47 what is this helveticons ? Dec 10 10:54:14 lmgtfy.com/?q=helveticons Dec 10 10:54:16 http://lmgtfy.com/?q=helveticons Dec 10 10:54:18 Mavrik: right, I somehow had expected something more "safe" because this can be overseen even by a foolish programmer... but on the other hand I wouldn't know how to implement it "more safe", so yes the boolean is the way to go... Dec 10 10:56:01 ml417, provide the canvas for it through some other means and just idle in the thread until it's ready.. Dec 10 10:56:44 no, i mean it appears as if every instance of the ball is moving with new ones created where the ball goes Dec 10 10:57:01 instead of creating a bunch of stationary balls where it goes Dec 10 10:58:51 CallumTaylor, i still don't see a restaurant/food/spoon/fork icon there in helveticons.. Dec 10 10:59:02 i assume you meant this one? http://mmminimal.com/helveticons/ Dec 10 10:59:42 http://hlvticons.ch/ Dec 10 10:59:46 they have different packages Dec 10 11:00:17 you may just have to create your own icon Dec 10 11:03:06 the best way i can think of describing what i'm getting is a river of bitmaps, where it looks like all of them are flowing Dec 10 11:12:15 is R's package _always_ tied to the root package of the app or can I change the package R lives in? Dec 10 11:23:14 Hi guys i got problems with the picture quality of my custom camera application Dec 10 11:23:35 here is the full explication : http://stackoverflow.com/questions/20420682/android-camera-parameters-setjpegquallity-deprecated-custom-camera-application Dec 10 11:23:52 my camera dont want to set jpeg quality :( Dec 10 11:36:37 hello, I am currenlty trying to import android.support.v4.app.Fragment, but developer studio cannot resolve the support package. other imports seem to work fine (android.os.*, android.Bundle.*, etc) but I am not certain why support is not showing up. Dec 10 11:36:55 where can i start looking to make sure it is properly discoverable? Dec 10 11:44:50 further to my question - I have just checked in the SDK manager, and it is showing the support library as installed (at revision 19), so it is not that Dec 10 11:44:51 helllo Dec 10 11:45:03 hello Dec 10 11:46:44 zzxx you need to add the jar into your libs folder, or to your gradle build script Dec 10 11:46:53 If I create a method in a Class like startDoingSlowShit() that could take 5-10 secs then if I call this using async task Dec 10 11:47:07 how can i get progress within it ? Dec 10 11:52:30 CallumTaylor: Thanks! where can i find, or what can i search for to find more info on how to add it to my build.gradle? Dec 10 11:53:34 compile 'com.android.support:support-v4:19.0.0' I believe Dec 10 11:53:41 http://stackoverflow.com/questions/16746558/android-gradle-build-and-the-support-library Dec 10 11:54:35 CallumTaylor: great. I'll read that Dec 10 11:56:53 Hi guys ! i'm trying to implement SQLCipher in the AOSP's ContactsProvider by changing the required package imports to those of SQLCipher and by editing the Android.mk accordingly. However, when i try to mm in order to rebuild i get a lot of unknown symbols errors, which refer to the new SQLCIpher calls in the code. Is something wrong in my work flow ? Dec 10 12:01:16 h all Dec 10 12:01:21 hi all Dec 10 12:03:43 is there a lite weight version of the android SDK. I have a 4 year old netbook and no desktop for now. Dec 10 12:07:45 I'm trying to compile the LocationProvider example. I get the infamous NoClassDefFoundError on the SendMockLocationService class. I've checked that the class is in the classes.dex in the apk. How comes it can't be found? Dec 10 12:08:15 dillonko: do you mean IDE? Dec 10 12:08:41 Guys, can android.mk be used to compile android apps which don't contain jni code ? Dec 10 12:09:08 oh look the sun is rising Dec 10 12:11:08 ml417: happy programmer! Time to go to sleep, Good night! Dec 10 12:11:16 after months of hard work public beta is out .. then we get this one guy that rates us a 1 star .. but his comment is "its a great app" lol how does that work? Dec 10 12:11:37 not done yet Dec 10 12:11:45 ball still going through corners Dec 10 12:12:01 when programming for android, how much coffee is considered too much coffee? Dec 10 12:12:07 i might go to class in 2 hours though Dec 10 12:12:10 there is never enough coffee Dec 10 12:12:14 lol Dec 10 12:12:24 Eeeeeee, how many pots have you already had today Dec 10 12:12:27 Eeeeeee i survived the night on mountain dew Dec 10 12:12:40 i have a direct IV drip to my blood stream with pure concentrated caffeine Dec 10 12:13:17 actually this is first pot, transitioning from soda Dec 10 12:13:53 oh look, i completely broke it Dec 10 12:14:00 well almost Dec 10 12:14:05 git reset ALL the code Dec 10 12:14:09 once i go into a wall i cant leave it until i reach another corner Dec 10 12:14:57 lemonxah: what is your app? Dec 10 12:15:10 social network :) Dec 10 12:15:13 lemonxah: i fucking hate reviews like that Dec 10 12:15:17 yaeh me too Dec 10 12:15:21 i wish you could flag those types of reviews Dec 10 12:15:36 yes indeed Dec 10 12:16:01 but it's all worth it when you get reviews like this http://s.scruffyfox.me/fnja21s.png Dec 10 12:16:59 you got a link to your app? Dec 10 12:17:29 sure am i allowed to post it here? Dec 10 12:17:41 sure Dec 10 12:17:44 https://play.google.com/store/apps/details?id=com.mxit Dec 10 12:17:49 as long as you're not spamming it with no context Dec 10 12:17:59 its a redesign of https://play.google.com/store/apps/details?id=com.mxit.android Dec 10 12:18:15 wow Dec 10 12:18:17 that old one was done before i got here at the company Dec 10 12:18:17 much improvement Dec 10 12:18:25 looks really nice Dec 10 12:18:28 then when i got here i moaned at how bad it was Dec 10 12:18:35 so i got to redo it Dec 10 12:18:41 grats Dec 10 12:19:01 looks great Dec 10 12:19:08 thnx Eeeeeee :P Dec 10 12:19:09 i love the blurred background of the chat Dec 10 12:19:14 with the right picture, looks sick Dec 10 12:19:15 its a backdrop Dec 10 12:19:22 yeah Dec 10 12:19:25 so its shared for everyone in the chat Dec 10 12:19:35 shared background type thing Dec 10 12:19:40 that's the issue with free apps, any idiot can rate it badly Dec 10 12:19:46 yeah Dec 10 12:19:51 and if you have competition, they do Dec 10 12:19:51 i think its pretty decent Dec 10 12:19:54 but i am biased Dec 10 12:20:08 it's defiantly an improvement Dec 10 12:20:12 our old client has 960,000 installs Dec 10 12:20:33 i see its a fresh app rather than an update what was the reasoning behind that? Dec 10 12:20:38 and as soon as this one comes out of beta and replaces the old one it will be more than a million Dec 10 12:20:50 ah ok Dec 10 12:20:53 well the old app was just done so badly Dec 10 12:20:59 not taking advantage of the google play beta functionality? Dec 10 12:21:06 and we are going to run a public beta and a public released version side by side Dec 10 12:21:11 we are Dec 10 12:21:17 the beta one is .. alpha and beta Dec 10 12:21:35 and the benefit of having it 2 separate apps Dec 10 12:21:40 is that you can run then both Dec 10 12:21:42 side by side Dec 10 12:21:52 mm but bad for users who may get confused Dec 10 12:21:53 have the production one and the beta one at the same time Dec 10 12:22:06 yeah :) but the beta is just for the advanced users Dec 10 12:22:16 i know reddit sync does the same Dec 10 12:22:27 btw most users are blind to words beta Dec 10 12:22:28 and google chrome for android Dec 10 12:22:30 they have 4 versions, a standard, pro, classic (before the last UI update) and a dev Dec 10 12:23:02 yeah Dec 10 12:23:27 and also it was a strategy to catch all the bad reviews in one BETA Dec 10 12:23:47 and then have a great polished app without the stupid ratings cause ofa silly bug Dec 10 12:23:58 fair enough Dec 10 12:24:07 it might be a bad idea but it wasnt mine :) Dec 10 12:24:14 but with that many users i wouldn't have Dec 10 12:24:26 if you upload a brand new app, you've just lost probably half of your install base Dec 10 12:24:28 try tell that to men in suits that only see money Dec 10 12:24:35 yeah that sucks Dec 10 12:24:36 oh no no Dec 10 12:24:41 once its out of beta Dec 10 12:24:47 the old one gets the update Dec 10 12:25:26 so we dont loose that install base Dec 10 12:25:38 they are just waiting for the new one to be stable if you know what i mean Dec 10 12:25:58 anyway Dec 10 12:26:05 but you like the look of the new app? Dec 10 12:26:19 is this quote talking about the media.AudioRecord-class or what? "Android phones come with a built in Sound Recorder application hidden in the system (no user interface)." as seen on https://play.google.com/store/apps/details?id=com.pete.recorder Dec 10 12:26:24 yeah it looks great Dec 10 12:27:26 cool Dec 10 12:27:30 thnx Dec 10 12:38:02 got 1901 installs in about 6 hours Dec 10 12:38:20 internal counters on our servers count how many clients that are connecting is using that beta Dec 10 12:38:46 its a bit slow heh but its cause its the beta and not the release .. oh well now the hard work starts Dec 10 12:38:51 invation :) Dec 10 12:45:15 whelp, my alarm just went off, time to wake up Dec 10 13:02:39 Where can I find a renderscript tutorial that would work with the latest RS reviision? Dec 10 13:09:06 right, i've got a signup activity.. it has EditText entries for username/password/email addr/etc. and a signup button Dec 10 13:09:23 the problem is that the keyboard partially covers up the signup button! Dec 10 13:10:39 all the text entry fields and the button are enclosed within a linearlayout which is within a relativelayout that encompasses the entire screen Dec 10 13:11:19 speaking from a user perspective this happens in almost every app Dec 10 13:11:50 :/ Dec 10 13:11:59 why doesn't my notification turn on the notification light? Dec 10 13:12:02 eeww.. thats rubbish Dec 10 13:12:12 i ahve the .setPriority(Notification.PRIORITY_MAX) Dec 10 13:12:21 can i avoid this happening if i put everything within a scrollview or something? Dec 10 13:12:30 doesn't bother me, that's what the back button is for Dec 10 13:13:05 Eeeeeee, but i;ve seen in some apps that the entire top part can scrolled upwards a little bit Dec 10 13:13:17 is that the scrollview in action or something like that? Dec 10 13:13:28 i can only speak from the user perspective sorry Dec 10 13:14:51 ummm.. this looks interesting: http://developer.android.com/guide/topics/manifest/activity-element.html#wsoft Dec 10 13:15:22 i have seen what you're talking about, but i don't like when apps do that to be honest Dec 10 13:17:39 Hello guys. I want to store some json responses in order to have offline working ability. I dont need sql database because i do very simple operations and these objects are read only. I could implement serializable and store as objects but seems that it might not worth it . How can i do this ? I use retrofit Dec 10 13:19:56 i would debug c/c++ code of system_process, it's possible ? Dec 10 13:23:46 Baluse: you can just store the JSON strings into a file. Or into a TEXT column of a database. Dec 10 14:10:37 Anyone ever get a stackoverflow when using GSON to serialize something that extends Observable? Dec 10 14:33:43 Let's assume an ImageView, which when added to my layout, with no scaling(the scale is now 1). If I call getX(), it returns the correct position. However, if I now call setScaleX() with 2, and then call getX(), I get a totally different value. If i divide this value by the scale factor(2), it still doesn't give me the actual position. How do I get the actual position? Why is getX() returning absurdly large values which keep growing when the ImageVi Dec 10 14:33:43 ew is scaled? Dec 10 14:37:43 ilmenite: do you do a setScaleX(1) before the setScaleX(2) to ensure there isn't already some scaling? Dec 10 14:38:29 not at all, but I know that it's 1, because i can see it in the debugger Dec 10 14:38:34 I would like to add numerous TextViews dynamicly to some container layout/view and make a TextView automaticly position on the next row when a given length is reached of the combined textviews already on that row... Dec 10 14:38:48 anyone any idea how to accomplish that? Dec 10 14:39:39 I guess what I mean is like the Word Wrap function in standard windows Notepad Dec 10 14:40:42 Sirolf, do you want to create a new textview after every n characters? Dec 10 14:41:02 right now I just add TextViews to a horizontal LinearLayout ... but obviously it doesnt go to next row when linearlayout width is filled Dec 10 14:41:45 ilmenite, no I just add new textviews ... Dec 10 14:42:17 wrap the linear layout inside a scrollview? Dec 10 14:42:41 I guess I would like some kind of Table form ... Dec 10 14:43:16 where the amount of columns depends on the width of the combined content Dec 10 14:43:28 so it fits horizontally Dec 10 14:43:36 :) know what I mean ilmenite? Dec 10 14:44:52 Sirolf, some graphics would be good. I really can't understand you Dec 10 14:45:46 its like this Dec 10 14:45:50 He wants essentially a wrapping layout Dec 10 14:45:55 yeah Dec 10 14:46:03 if he adds too many things horizontally wrap to the next line Dec 10 14:46:10 exactly Dec 10 14:46:16 so almost like wrapping text to the next line, but wrapping views to the next line Dec 10 14:46:32 is there some fancy layout for that ? Dec 10 14:47:02 or what would be your approach jonc ? Dec 10 14:47:55 I have no clue really, I may just do it in code, anytime text changes or another view is added get the width of each view starting from the left, and start breaking them to another line Dec 10 14:48:34 to make it work with a horizontal linearlayout you may want to have a parent vertical linearlayout and for each line add a new horizontal linear layout Dec 10 14:48:40 maybe a gridview with custom baseadapter to add stuff the way I like? Dec 10 14:48:54 that might work too Dec 10 14:48:56 hmm Dec 10 14:50:06 I thought maybe there was some nice standard wrapper widget for this Dec 10 14:51:57 Hi guys, Can someone give me advise, what to use to stream while recording a video to server ? maybe over ftp ? Dec 10 14:52:06 It seems that things were designed to only really work in 1 direction dynamically Dec 10 14:52:54 DOSP, that depends, ftp would require that the connection not be interrupted basically (can get around this), with mobile not the nicest thing Dec 10 14:53:41 jonc okay if we ignore ftp, what is the best to use ? Dec 10 14:53:52 a TCP connection with a server that will send out a session token for a particular upload would allow you to reestablish any connections Dec 10 14:54:23 and then communicate how far into the upload you were before the connection was terminated Dec 10 14:54:23 any developers that have released an app that supports pre API level 11, do you maintain two versions of the app or limit yourself to what is included in the support libraries? Dec 10 14:55:30 theblang_ half lititting yourself, half checking apilvl dynamicly Dec 10 14:55:37 then server side every day you could remove any non-complete video transfer files, invalidate the session tokens of those videos and require the people to start from scratch Dec 10 14:56:31 jonc wow, thanks great idea, also, Is there class that handles Dec 10 14:56:36 hops Dec 10 14:57:51 I would suggest on the clientside that you create a service to do the actual upload (and start it on it's own thread) Dec 10 14:58:08 jonc wow, thanks great idea, also, Is there class that handles vidoe streaming right from camera ? i mean Iam propably gonna create my own video recording app which while recording will be sending data ? or it is better to record to temp or sdcard and from there immeadiatelly start service which will upload the thing Dec 10 14:58:23 I don't know about that, sorry Dec 10 14:58:42 well you actually answered above :) Dec 10 14:59:16 I guess that depends, if you want to make sure you lose nothing, record to sdcard and start sending that file as it is being written (will take a little coordination) Dec 10 14:59:20 you can probably directly upload the streaming data ... but you might miss frames Dec 10 14:59:25 because they could lose connection 1/2 way through recording Dec 10 14:59:39 and then since you never cached that video it is lost Dec 10 14:59:40 exactly ;) Dec 10 15:00:16 if you cache it to a file and only upload while you have a connection you will eventually get the entire file sent Dec 10 15:00:43 you could also try buffering blocks in memory ... but it's limited in size Dec 10 15:00:56 Hmmm, I think overloading RAM doesnt come to a question right ? or ? is the video stream large to load whole memory if the recording is saved to TEMP and then uploaded up, so if we lose connection the recording will be stacking in ram Dec 10 15:01:01 also streaming will affect the quality that can be uploaded (based on connection) Dec 10 15:01:16 save it out to a file Dec 10 15:01:49 yea, will be better Dec 10 15:01:50 cache like 10 seconds at a time in memory, dump to file, queue that 10 seconds to be sent to server Dec 10 15:02:24 uhmmmm, okay that'll be better Dec 10 15:03:03 couldnt saving 10 seconds of hd-quality to sd be slow? Dec 10 15:03:27 at least cause lag between the different chunks ? Dec 10 15:04:11 I doubt it will take 10 seconds, you're talking probably around 10-20mb max Dec 10 15:04:41 I believe you get compressed video data straight from the camera Dec 10 15:04:44 mpeg-2 probably Dec 10 15:05:16 (could be wrong though) Dec 10 15:05:37 also DOSP : https://code.google.com/p/spydroid-ipcamera/ Dec 10 15:06:02 is something like that useful? Dec 10 15:07:50 http://developer.android.com/reference/java/io/RandomAccessFile.html Allows you to read and write to a file at the same time (stream to file while reading to send to server) Dec 10 15:07:51 https://code.google.com/p/ipcamera-for-android/ Dec 10 15:07:55 that one I meant Dec 10 15:09:13 oooo treasure :) great, thanks guys :) Dec 10 15:09:32 Heya is there any way to set TextView's to automatically switch to View.GONE when they have no content and View.VISIBLE when they do have content? Dec 10 15:10:35 You could extend TextView and overload the setText() function, call super.set(text), check the contents of the string parameter and set the visibility based on that Dec 10 15:10:38 Ankhwatcher if(tv.getText().equals(""))tv.setVisibility(View.GONE); ? Dec 10 15:10:55 then use your class instead of the textview Dec 10 15:11:49 super.setText(text)* Dec 10 15:12:57 how about this: http://pastebin.com/XG7tjZV0 Dec 10 15:13:53 should work, just make sure to always call that on the ui thread Dec 10 15:15:41 :S Dec 10 15:15:44 will calling String.valueof(null) crash my app Dec 10 15:15:53 .. there is no spoon Dec 10 15:16:03 Ankhwatcher: try it Dec 10 15:16:20 google it :P Dec 10 15:16:33 first hit of "String.valueof(null)" tells you Dec 10 15:16:36 call it out loud ;) see what happens Dec 10 15:17:19 sweet, jetbrains gave me a full license because i report so many issues Dec 10 15:18:10 nice :) Dec 10 15:18:13 osxorgate: was one of them that f***ing thing where it tells you that getClass() is ambiguous? Dec 10 15:18:33 lol Dec 10 15:18:35 no, but you can report it yourself :0 Dec 10 15:18:42 If I see that one more time I might have to tie the bug report to a brick... Dec 10 15:18:53 i dont think i ever call getClass() Dec 10 15:19:12 because it's ambiguous Dec 10 15:20:47 and a little racist ;) Dec 10 15:21:14 guess it's friday afternoon in my time-zone Dec 10 15:21:15 you do know that classism is it's only thing, right? Dec 10 15:21:57 more left than right, I guess Dec 10 15:22:21 politically speaking Dec 10 15:23:18 s/only/own Dec 10 15:24:39 wondering if anyone can help me out... I have AOSP (4.4) building fine at the command line. I've followed the Eclipse guide from Google but I'm getting about 3K errors when I load the code into eclipse Dec 10 15:25:01 I'm assuming the .classpath that's included is out of date/ Dec 10 15:25:01 ? Dec 10 15:26:03 what kind of errors BrutusBoots ? Dec 10 15:26:37 lots of unresolved types Dec 10 15:26:47 hang on, I'll try and get the error list into pastebin Dec 10 15:27:43 http://pastebin.com/0zLBtUGh Dec 10 15:27:50 that's all my build errors Dec 10 15:27:56 I'm using Eclipse indigo Dec 10 15:29:09 my .classpath -> http://pastebin.com/9YmDWrFZ Dec 10 15:31:19 maybe simply use Project -> Clean.. ? Dec 10 15:32:46 if I go through the 'out/target/common/obj/JAVA_LIBRARIES/' directories and add some of them to the classpath the errors start to go away Dec 10 15:32:55 but it's a pain finding out what references are missing Dec 10 15:35:35 if I give a list an array of strings (from a resource), it works, if I use array adapter with a list of strings being read from a file I get nothing. If I extend ArrayAdapter and inflate everything myself, the views are set, but nothing shows Dec 10 15:35:38 guys.. how would i hardcode a listview ? Dec 10 15:36:14 i want to basically have a twolistitem listview for showing about 5 listitems Dec 10 15:36:36 You can create your own listadapter Dec 10 15:36:38 i don;t want to make an adapter and then use java to populate this.. this listview will never change in contents Dec 10 15:37:04 Are you only showing text? Dec 10 15:37:09 like 1 textview? Dec 10 15:37:18 i can always put the listitems right next/below each other in the xml, but i lose the nice line separator between listitems Dec 10 15:37:36 each listitem has 2 textviews and 1 small img for now Dec 10 15:37:49 then you will have to create your own list adapter I believe Dec 10 15:38:09 that's a non-standard layout and you have to write something that can handle populating the fields correctly Dec 10 15:38:27 populating what fields? every string/img is hardcoced Dec 10 15:38:36 and it will never change over the liefecycle of the entire app! Dec 10 15:38:49 and you still recommend me to write an adapter for this? Dec 10 15:38:53 it is hardcoded, but the generic list adapter that you can use will not handle images / multiple textviews Dec 10 15:39:30 err.. what if i have my listitem have only 1 textview? Dec 10 15:39:41 if you want to have more than just text in the list items then you need to write your own adapter that inflates a layout (or make the layout in code) for the list item and assigns the image / text to the appropriate views Dec 10 15:39:49 you're still going to tell me to populate the listview from the java code using the default adapter right? Dec 10 15:40:04 then you don't even need a textview, you can just set an array as the items I believe Dec 10 15:40:22 yeah i know.. but i want to do this in the layout! Dec 10 15:40:24 not in code! Dec 10 15:40:37 yes I understand that Dec 10 15:40:51 and you can create arrays in the resource files Dec 10 15:41:03 you can create an array in your strings.xml values file and then set the listview to use that, all in xml files Dec 10 15:41:49 the "entries" for a listview can be set to an array defined in strings.xml Dec 10 15:41:49 good.. that sounds heaps better than writing any code for this trivial task Dec 10 15:41:50 and then bam Dec 10 15:42:03 a customized look is not as trivial as you'd think Dec 10 15:42:23 it doesn't know where the image should go, or what textview any strings should go into Dec 10 15:42:30 now with just text, yes you can do that Dec 10 15:42:34 err.. i have heaps of listviews where the listitems have a complex layout.. i have written the adapters for such and they work fine Dec 10 15:42:39 but anything more, how does it know to populate things? Dec 10 15:42:45 just for this one i don;t *want* to write *any* code Dec 10 15:42:56 then you will only be able to show text Dec 10 15:43:27 is there a way to draw the horizontal line separator? Dec 10 15:43:47 it should draw it on it's own Dec 10 15:44:03 but I've used other views and just set their height to 1-2 px if I want a seperator Dec 10 15:44:06 if yes, my job will be complete as i will simply put the hardcoded/hardlayoutted items within a scrollview and bam, my job is done without touching code Dec 10 15:45:12 http://pastebin.com/ir9nfLfX Dec 10 15:45:28 doing that allows you to create a line Dec 10 15:48:17 jonc, is border_breaks a builtin definition of the colour ? Dec 10 15:48:33 nope, our own color in colors.xml Dec 10 15:49:01 umm.. wouldn't that mess up if the user has a different colour scheme or something >? Dec 10 15:49:09 no Dec 10 15:49:23 colors.xml is part of the resources of your app Dec 10 15:49:31 you can define colors to be used all over the place Dec 10 15:49:42 same thing with strings.xml, numbers.xml, styles.xml Dec 10 15:50:24 all of them are things to be reused throughout your app so you can change the value in 1 place and it will change the look of anything that references it Dec 10 15:51:54 sirolf: clean doesn't help anything Dec 10 15:52:05 is anyone here building Android 4.4 in eclipse? Dec 10 15:52:09 could you share your .classpath file? Dec 10 15:56:40 BrutusBoots : http://pastebin.com/wLCQDe8h Dec 10 15:56:41 hi Dec 10 15:56:52 I try to modify preferences of a wallpaper from code, http://pastebin.com/MeAbrwvG Dec 10 15:57:10 my key does not change as the output shows Dec 10 15:57:15 any ideas? Dec 10 16:02:03 Zgary: you have to commit an editor after changing something Dec 10 16:02:34 I use: prefs.edit().commit() . is that wrong? Dec 10 16:02:57 I don't see that in your pastebinned code Dec 10 16:03:03 sirolf - thanks! Dec 10 16:03:18 is in the Log: Log.i(TAG, "done?: " + prefs.edit().commit()); Dec 10 16:03:31 and I don't know if it's correct, regardless - edit returns an editor instance, i've only ever seen it assigned, changes made, and the instance committed. Dec 10 16:03:40 I'd suspect edit() returns a new instance every time Dec 10 16:03:46 the fact that your code doesn't work would back that up :P Dec 10 16:03:52 sirolf - and you use that to build aosp in eclipse? :o Dec 10 16:04:33 so i should do prefs.edit().putBoolean("rotate key", flag).commit() ? Dec 10 16:05:03 I wouldn't. Dec 10 16:05:13 final SharedPreferences.Editor edit = mPrefs.edit(); Dec 10 16:05:14 edit.putInt("zoomLevel", mMapView.getZoomLevel()); Dec 10 16:05:18 I'd assign the edit instance to something, modify it, then commit it. Dec 10 16:05:20 edit.commit(); Dec 10 16:05:25 that's what I use Dec 10 16:05:27 Like that, yes Dec 10 16:05:28 thx Dec 10 16:05:50 you MAY be able to stack calls, but I've only ever done what sirolf does, and only ever seen it of that style, too Dec 10 16:06:00 of course, try one, and if it doesnt' work, try the other Dec 10 16:06:45 tried my method, the chain, it works Dec 10 16:06:54 I think I will use yours to be safe Dec 10 16:07:28 it's easier if you'd like to put more in the editor before committing I think Dec 10 16:10:03 yup, that too Dec 10 16:10:14 now I want to show a Toast message from the update method of a class TapObserver that implements Observer (I detect when a flag changes state true/false) .. I cannot get a context for the Toast, is it possible to show one? Dec 10 16:12:41 can't pass the TapObserver a context in the constructor? Dec 10 16:12:54 Zgary: if your callback is inside an activity you can use ActivityWhatever.this ; otherwise you could pass a context to your observer class after its created or in its constructor Dec 10 16:13:59 for a live wallpaper where should I get the context from? Dec 10 16:14:30 Should you be showing toasts from a live wallpaper? Dec 10 16:15:09 I want to confirm when a long press is detected Dec 10 16:15:19 this changes a state on the wallapaper Dec 10 16:15:19 Log it? Dec 10 16:15:33 I want to confirm the change to the user Dec 10 16:15:37 according to google, it looks like the wallpaper passed in your renderer functions as a context Dec 10 16:15:50 Yeah, realized that after you said the state change Dec 10 16:17:39 I am trying to use setProgressBarIndeterminateVisibility, but it doesn't seem to work on my older devices running 2.3.x. Anyone else come across the same problem? Dec 10 16:18:23 I investigate on getting the context, thx dragon Dec 10 16:20:07 Anyone know where Google moved ant to in the mac sdk? Dec 10 16:20:17 Seems my binary is missing after updating to the 4.4 sdk Dec 10 16:21:41 I'm pretty sure ant has never been in the SDK - on Linux at least - it's a separate install Dec 10 16:22:08 hmmm I don't recall ever installing it but I guess that doesnt mean anything :) Dec 10 16:23:37 does ant come pre-installed on ubuntu? Dec 10 16:23:59 Ahh, it was because I wasn't using supportRequestWindow Dec 10 16:24:11 doubt it, but I don't use ubunutuntun Dec 10 16:25:36 Anyone encountered "Fragment com.google.etc.MapFragment did not create a view" before when adding it through xml? Dec 10 16:26:09 is there a lite version of the sdk Dec 10 16:26:14 for linux Dec 10 16:26:56 dillonko: what would a light version exclude? Dec 10 16:27:40 only takes 1.3 seconds to download the existing SDK... Dec 10 16:28:08 IDK im new to android coding Dec 10 16:28:27 you do mean the SDK, not the ADT bundle, right? Dec 10 16:28:42 but i code on my netbook Dec 10 16:28:45 you obviously think it's too big, or you wouldn't have asked the question Dec 10 16:28:48 ooh, that's a bad sign Dec 10 16:29:14 You code exclusively on your netbook? Dec 10 16:30:08 yes Dec 10 16:30:10 jonc: he also types really slowly, apparently Dec 10 16:30:28 I couldn't do that, too small of a screen and no 2nd monitor :P Dec 10 16:30:49 no i was also doing some python practice Dec 10 16:31:14 sorry im on codeacademy Dec 10 16:31:21 just started at a new place and they gave me a 15 inch laptop, had to request a 2nd monitor immediately Dec 10 16:31:43 and now the laptop sits off to the side Dec 10 16:31:46 second monitor I can live without - actually got mine turned off at the moment - but I like having a proper keyboard and mouse Dec 10 16:32:09 gaming mouse needed Dec 10 16:32:16 jonc: sounds like an underpowered mac mini :P Dec 10 16:32:17 the i know i need a desktop Dec 10 16:32:20 Yeah, that's what I've done here, hooked up a mouse + keyboard and a 24 inch monitor to the laptop, the external monitor is my primary monitor now Dec 10 16:32:29 i will get one soon Dec 10 16:32:32 hell no, no mac's here Dec 10 16:33:02 Although I do need to request more ram for this, only has 4gb Dec 10 16:33:03 i have a linux mint Dec 10 16:33:14 i dont like windows Dec 10 16:33:28 jonc: anyway, yeah, no reduced version of the sdk, but IDE is a bigger concern I guess Dec 10 16:33:45 damn Dec 10 16:33:54 The thing I love about windows is the Windows Key + Direction buttons for snapping windows (linux probably has it also, or at least something you can install) Dec 10 16:33:58 nah, you don't need an IDE Dec 10 16:34:02 I know macs don't have it Dec 10 16:34:06 what can i do to keep it from crashing Dec 10 16:34:09 real men use vim Dec 10 16:34:11 how do i set the spacing between 2 elements in a linearlayout ? Dec 10 16:34:21 Padding or margin dodobrain Dec 10 16:34:41 padding is internal, margin is external Dec 10 16:34:54 padding is for the first and last elements.. or rather the elements that are close to the boundary of the linearlayout Dec 10 16:34:55 dillonko: what bit is crashing? What are you using? Dec 10 16:35:13 you can add it to the inner elements Dec 10 16:35:47 adding bottom padding (as long as backgrounds are transparent) will give you the same look as if you added a top margin to an element below Dec 10 16:36:17 just the sdk Dec 10 16:36:29 yeah, i'll do it with margins and an extra linearlayout container encompassing everything Dec 10 16:36:33 thanks Dec 10 16:38:37 dillonko: Eclipse? Dec 10 16:39:00 sorry yes eclipse Dec 10 16:39:08 eclipse is not the SDK Dec 10 16:39:17 do not attempt to run Eclipse on a netbook Dec 10 16:39:24 it may melt Dec 10 16:39:42 ^ Dec 10 16:40:01 You may have to code in something like Notepad++ and build using command line Dec 10 16:40:09 vim Dec 10 16:40:10 error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Dark.ActionBar'. Dec 10 16:40:17 I hate vim Dec 10 16:40:19 jonc: wtf is Notepad++? Dec 10 16:40:30 notepad + 1 Dec 10 16:41:16 It's similar to sublime text Dec 10 16:41:25 it's almost like Notepad meets an IDE Dec 10 16:41:26 Similar... ;O Dec 10 16:41:37 sublime text is infinitely better though Dec 10 16:41:48 all of which are inherently inferior to vim Dec 10 16:41:52 also, emacs Dec 10 16:41:53 gedit > * Dec 10 16:41:58 FIGHT Dec 10 16:42:01 No, Vim is terrible Dec 10 16:42:09 anyway, to get back to the serious point Dec 10 16:42:12 sed >> anything Dec 10 16:42:24 how do i get sublime text to work with android sdk Dec 10 16:42:25 pff, ed Dec 10 16:42:28 sublimetext ftw Dec 10 16:42:28 I prefer notepad++ with explorer and nppexec plugins Dec 10 16:42:35 dillonko: whatever the developer site suggests, you do not have to use an IDE - if you don't have a computer capable of running one, don't Dec 10 16:42:40 is this the best solution for a horizontally scrolling listview - http://www.dev-smart.com/archives/34 Dec 10 16:43:05 dillonko, if you don't use android studio / eclipse you will have to do a lot more upfront work to get things started Dec 10 16:43:07 jonc tried sublime text? Dec 10 16:43:11 yes Dec 10 16:43:24 ahhh Dec 10 16:43:31 so im stuck Dec 10 16:43:38 that sucks Dec 10 16:43:41 anyone write tests using gradle and android studio? Dec 10 16:43:42 sublime text isn't good for android/java i've found Dec 10 16:43:44 dillonko, and on a netbook you will have to ignore android studio / eclipse Dec 10 16:43:44 if you're used to using vim, vim is great Dec 10 16:44:09 dillonko: how is eclipse crashing ? Dec 10 16:44:20 try Android Studio Dec 10 16:44:49 but yeah if it's a netbook you're better off with vim Dec 10 16:45:16 there won't be enough screen real estate for eclipse Dec 10 16:45:32 i think its better if i show you an example Dec 10 16:46:02 Screen real estate isn't the issue, memory will be the big problem Dec 10 16:46:09 shmooz: it crashed when i run a test program Dec 10 16:46:20 like hello world Dec 10 16:46:34 the IDE disappeared ? Dec 10 16:46:39 no error msg ? Dec 10 16:46:56 or are you talking about your hello world app crashing ? Dec 10 16:48:32 let me get a snap shot. a picture is worth a thosand words Dec 10 16:48:44 I do have a friend who says he runs eclipse fine on his netbook Dec 10 16:49:14 so it can run on netbooks Dec 10 16:50:54 to be exact its android studio Dec 10 16:51:30 i have written many java projects in eclipse Dec 10 16:51:48 i love eclipse Dec 10 16:51:59 dillonko: sicko Dec 10 16:52:13 ok then get the eclipse juno mobile or whatever Dec 10 16:52:27 and you'll feel at home Dec 10 16:52:42 Leeds: lol Dec 10 16:53:45 but I really hope it wont crash on me agaim Dec 10 16:57:15 "dillonko: i love eclipse" Dec 10 16:57:17 what Dec 10 16:57:22 no one loves eclipse Dec 10 16:58:20 Is there any reason that apps would look different on a Samsung Galaxy S4, and on an emulator with Google API 17? Dec 10 16:58:20 CallumTaylor: really y Dec 10 16:58:47 maybe in still new to the hidden pains of use Dec 10 16:59:26 the biggest headache is it eats ram like a cookie monster Dec 10 16:59:31 It is a phonegap app, and it looks ok on most of the devices I have tested, but when it was downloaded on an S4 I got a screenshot and it looks bad Dec 10 17:00:14 can I call MyActivity.onCreate(null) from within some Listener of MyActivity ? ? Dec 10 17:02:24 jrtappers: s4 has two flavors, touchwiz and google experience Dec 10 17:02:30 jrtappers: touchwiz is skinned differently Dec 10 17:03:04 is there a way to test if that is the problem? Dec 10 17:06:30 It looks ok on Nexus 4,7,10 (Emulated) and Galaxy Ace and Toshiba AT300, and it even looks ok in chromium with the correct screen size for the S4 Dec 10 17:07:18 But on the actual S4 the text is a lot larger, so is there a way to emulate a touchwiz device to test if that is the problem? Dec 10 17:07:21 is there a standard implementation for a webbrowser-view? like just a webview, back and forward and refresh and a close button? or is this something android apps don't do? on ios its common that apps open links in a small webview, but I actually can't remember how it is on android... are all apps openening links via intents? Dec 10 17:07:47 ohcibi: you can set a webview to open the real browser for any links inside it Dec 10 17:08:00 jrtappers: not so far as i know Dec 10 17:08:13 jrtappers: unless samsung provides a touchwiz vm on their dev pages or something Dec 10 17:08:24 dragorn: i know but the webview does not have a back and forward and a refresh button... I was asking if there is a standard implementation for it or if I have to build this myself.. Dec 10 17:08:55 ohcibi: as far as I know it doesn't, it's not really meant to provide a web browser environment Dec 10 17:42:48 Hi, I'm trying to troubleshoot why my ASUS Transformer TF101 won't do Android encryption (dm-crypt) even with the stock ROM anymore. Can anyone here possibly help me out? I'm kinda out of ideas at the moment after trying all sorts of different ROMs. Dec 10 17:48:55 Is this bad design: Dec 10 17:48:56 public class StudioActivity extends BaseStudioActivity implements IStudioDrawerListener, IPhotoDrawerListener, IAcquirePictureListener, IChooseOverlaySetDrawerListener, IChooseOverlayDrawerListener, IPhotoOptionListener, IScaleListener, IChooseFontDrawerListener, ITextEditOptionListener, ISVGEditOptionListener, Dec 10 17:48:56 IPreviewDrawerListener, IShareDrawerListener, IOverlayDecodedListener, IOverlayUpdatedListener, IBookmarksDrawerListener, IOverlayMarketDrawerListener Dec 10 18:00:28 guys, how to overlay TextView at top of other views in layout? Dec 10 18:00:43 I have RelativeLayout Dec 10 18:01:55 with relativelayout's children, you can do alignTop="@id/myOtherView" and the top's will be the same. Dec 10 18:02:21 if you align TOP BOTTOM LEFT and RIGHT, the TextView will appear to be inside the view to which you are aligning. Dec 10 18:03:40 explodes: okay... I'll try to create new TextView programmatically, and then set it at top of whole layout, but It doesn't work :( Dec 10 18:04:29 whelp Dec 10 18:05:36 Just put the relativelayout and the textview in a framelayout Dec 10 18:06:46 I noticed that the Google apps include a send feedback widget… is this widget available in the API or is it just a Google thing? I'm guessing the latter. Dec 10 18:09:56 Hey SimonVT, how do I test that proguard ran successfully on my APK? Dec 10 18:10:15 ColinTheShots: Hmm, I know there's the "Market Feedback Agent" service that likes to startup on boot and run in the background. Dec 10 18:10:58 mmm, I see: http://jd.benow.ca/ Dec 10 18:11:23 Decompile and see if it did the stuff you told it to? Dec 10 18:15:16 Hi all. WOuld anybody know if there's a way to default bluetooth radio to being ON when you start up the device? My Nexus 7 2013 always boots with it turned off. Dec 10 18:33:27 how do i make a nexus 5/1080p phone emulator? i've tried cloning the nexus 4 emulator and changing it to 1080p but that just results in some unholy phone-tablet avd Dec 10 18:37:02 Hello, I have got a fragment in which I add an handler: " public static Handler myHandler = new Handler(){ @Override public void handleMessage(Message msg) {" Do you know how can I get the activity into the handleMessage function please ? I would like to do Toast.makeText inside which will make a text appear on the fragment but I can't get the view nor the activity :( Dec 10 18:40:24 I have an issue with styling a ListView Dec 10 18:40:38 If anyone can help, I'd appreciate it Dec 10 18:40:39 http://stackoverflow.com/questions/20501959/styling-string-in-listview-android-dev Dec 10 18:40:47 Arkky: you can call SomeFragment.this.getActivity() probably Dec 10 18:40:55 I posted the issue on stackoverflow but haven't received a response yet Dec 10 18:41:51 Dreadnaught: I've tried but I get "No enclosing instance of the type Settings is accessible in scope". I will implements Handler.Callback I think Dec 10 18:44:39 If I can just get the ListView styled, I will be done with this project >.< Dec 10 18:46:48 hello Dec 10 18:46:55 is there a way in retrofit Dec 10 18:47:08 to return data + response without Dec 10 18:47:11 callback ? Dec 10 18:47:20 can you Dec 10 18:47:25 collapse your messages Dec 10 18:47:27 into one question Dec 10 18:47:29 in the future? Dec 10 18:47:43 what do you mean in the future ? Dec 10 18:48:09 the next time you ask a question, please don't send four messages for one sentence :) Dec 10 18:50:23 After the pretentious corrections you are doubtful to get a response from these jackasses Dec 10 18:50:51 lol Dec 10 18:50:58 ;) Dec 10 18:51:06 I'd just move on evanc Dec 10 18:51:15 shrug it off... and move on Dec 10 18:52:30 Baluse: use Response as method return type Dec 10 18:52:39 no callback param Dec 10 18:56:44 JakeWharton rethinking my problem seems that Response return type is what I need Dec 10 18:58:17 JakeWharton you have implemented tons of things.. How can something like this bottom sliding bar can be implemented at android ? http://i.imgur.com/0zYn57v.png Dec 10 18:58:48 it behaves like title strip and tabs Dec 10 18:59:24 how do I know how much memory my app is allowed to use for caches? Dec 10 19:00:17 Runtime.getRuntime().maxMemory() Dec 10 19:00:30 Baluse: is that russian or greek ? Dec 10 19:00:41 obviously you don't want to use that much for your caches... but that'll steer you in the right direction Dec 10 19:03:39 greek Dec 10 19:04:40 lhunath if you want to store bitmaps they are heavy:P . I recall days when windows mobile could handle only one bitmap before memory overlflow Dec 10 19:11:49 Yea I loaded one bitmap (full size) into memory for google glass and it overflowed :P\ Dec 10 19:32:51 How does one retrieve the status of syncadapters associated with an account/provider pair? [eg: the last run time] I've written an authenticator and associated it with the mediastore provider. Is it possible to get back some statistics about its operation via the framework [without needing the adapter to record it separately on each run, of course.] Dec 10 19:38:00 capcool, ff 26 Dec 10 19:38:04 capella :) Dec 10 19:39:21 trying to transfer my project to gradle, getting this error https://gist.github.com/rymate1234/7896787 Dec 10 19:45:24 I want to eventually use a master-detail fragment to display content from local database. Not knowing much about fragments, would it be smart to skip using fragments all together at first, and implement them after rough functionality of app is established? Or should I just learn fragments and implement them from the start? Dec 10 19:45:36 the whole syncadapter/accountmanager waltz seems strange, if at the end of all the dancing it still doesn't let you retrieve the stats sent back via the syncadapter. Ah well. Guess time to record it separately. Dec 10 19:45:47 Eeeeeee: just don't use fragments period... Dec 10 19:46:17 jaynewstrom: fragments are cool! Dec 10 19:46:27 Fragments are dumb Dec 10 19:46:49 <|0xD34D|> Eeeeeee: I would go with using fragments, might as well start getting use to using them now Dec 10 19:46:51 why? Dec 10 19:47:54 jaynewstrom: fragments make it really easy to make a tablet app in the future Dec 10 19:48:01 Management is painful Dec 10 19:48:19 Hey guys, so I have a small problem. I'm trying to make a messaging app, but when I press send, my view doesn't seem to get added to the listview. If I hide the keyboard, the view is added. Any ideas? Dec 10 19:48:38 jaynewstrom: not for me Dec 10 19:50:23 Hey, when linking a Play account with Google analythics, does the analytics updates daily? how does that work? Dec 10 19:52:28 Daily Dec 10 19:53:02 It's mor frequent through the analytics site directly, but the play dashboard only updates daily Dec 10 19:53:30 |0xD34D| that's my thought process. Is everything done differently with fragments? If I adopted them later, would I have to completely change approach for specific functionality, or is everything more or less portable (not requiring recode or different approach)? Not sure if this makes sense Dec 10 19:54:13 I've personally found that using fragments is rather like hailing a cab to go to the next block. It's certainly possible; though it seems rather excessive if the objective is to simply to visit the next block. And it sometimes prevents one from seeing more elegant solutions [like climbing up stairs rather than walking a block.] Dec 10 19:54:58 then again, lots of folks [and the android/google crowd in general] loves using fragments, so lots of folks find joy to be had using fragments Dec 10 19:55:19 nice analogy Dec 10 19:56:15 It seems like the standard now is to use fragments, they are greatly encouraged Dec 10 19:57:06 From a learning perspective as well? Dec 10 19:58:04 I would say learn them as early as possible Dec 10 19:58:17 To me they make more sense than an activity Dec 10 19:58:35 maybe I shouldn't start with the master-detail fragment though Dec 10 19:58:38 at least for multiple pages of an app Dec 10 20:00:06 appreciate the advice everyone Dec 10 20:15:02 If I have an activity with a container and a fragment (fragA) inside that container, is it bad practice to replace that fragment (fragA) with another inside of fragA's code? Dec 10 20:19:48 jonc its probably best if fragments dont know about each other, but i'm not an expert on it Dec 10 20:20:51 Good evening. I got a question, any good recommendations when you wanna get into android development in general? Dec 10 20:21:01 Books (Print or PDF), Tutorials, ... Dec 10 20:23:25 For me the best way to learn was to just start building what I wanted / was needed Dec 10 20:23:45 I was given a design and some requirements and built towards that, learned as I went. Dec 10 20:24:15 That's right, I also did it like that in any language I started. Dec 10 20:24:20 When searching for how to do certain things and learning from it, everything will feel more worthwhile Dec 10 20:25:06 Possibly find a tutorial for an ok sample app, but instead of following it word for word the first time, get the design and see if you can put together what they have on your own? Dec 10 20:25:17 and then compare with their final code / resources Dec 10 20:25:22 Wanted to start out with a simple ToDo App. Dec 10 20:25:30 Guess that is a pretty basic-example Dec 10 20:25:52 http://www.developerfeed.com/building-todo-list-app-android-using-sqlite Dec 10 20:26:13 it uses eclipse I believe, but not hard to use android studio with it Dec 10 20:26:25 jonc: Using IntelliJ here, deployment works like a charm already. Dec 10 20:26:34 I'm having trouble with setShadowLayer with the paint object. It takes 4 parameters, radius, x and y and color. Dec 10 20:26:37 Thanks for the link, thought. :) Dec 10 20:26:38 Yeah, I use Android Studio Dec 10 20:26:41 I'm not sure about the first three. Dec 10 20:27:38 x and y are the offset Dec 10 20:27:44 and the radius is the blur radius Dec 10 20:27:54 (how far it will go out) Dec 10 20:29:31 How can I preserve the fragment inside a container inside an activity? Dec 10 20:29:55 jonc: I'm trying to use this shadow layer as a border. What would I set the offset? Dec 10 20:30:11 It seems like the activity goes back to the first fragment (the one that is added in the activity's onCreate) if I suspend the app and bring it back Dec 10 20:30:37 I am not positive, but 0,0 I would imagine means don't offset at all, and it blurs all edges the same Dec 10 20:30:55 by setting an offset it may push it towards different edges Dec 10 20:31:30 so a blur radius of 10 and 10,10 may give you a bottom right shadow only (not positive) Dec 10 20:31:40 try different values and see what it does Dec 10 20:35:07 Hmm… thats not gonna work. My main paint color has alpha, and so setting a shadow layer actually paints another entire path. So I can see my shadow under my actual image. Dec 10 20:35:15 Any ideas on adding a border? Dec 10 20:35:20 TO a paint object? Dec 10 20:38:15 Create an image that is your image size + 2x border width / height Dec 10 20:38:38 flood it with the color you want, then draw your image offset by border width and height onto the all 1 color image Dec 10 20:39:33 eghdk, will the image be displayed in a view or is this for like a game / being displayed using opengl? Dec 10 20:39:46 view Dec 10 20:39:54 if a view, just wrap it in a RelativeLayout with the image on the inside Dec 10 20:40:07 set the relativelayout padding to be equal to your border width size Dec 10 20:40:24 set the background of the relativelayout to the color of your choice Dec 10 20:40:29 and then bam, border Dec 10 20:40:30 Does anyone have a clue what could be causing this stacktrace? I am a bit stumped. It is only a warning, not error level. It seems to be happening after messing around with a navigation drawer + support library. http://pastebin.com/NxkDSpJ4 Dec 10 20:41:48 What if the view inside is transparent though. Wont the background color bleed through? Dec 10 20:42:34 yes Dec 10 20:42:49 Also, I'm basically drawing a semi tranparent circle, so creating a layout inside of it, will not really give me the 2px border I'm looking for. Any other ideas? Dec 10 20:43:24 so the image is a circle, with transparency? Dec 10 20:43:32 yeah. Dec 10 20:43:36 and you want to add a border around the circle part only? Dec 10 20:43:42 Yep! Dec 10 20:43:59 Im' drawing the circle as a custom view, with Paint() and Path() Dec 10 20:44:01 maybe simplest to just use two separate paints to draw your circle. One with stroke, the other with fill. Dec 10 20:44:03 the only way I would know how to do it would be render to a texture with a pixel shader Dec 10 20:44:47 I don't know of any built in android functions that will actually go into the image and check if something is transparent and draw the border around the transparent / non-transparent parts of the image Dec 10 20:44:54 kbs: I'm not sure how I would do that. Dec 10 20:45:29 I want to use paint.setStyle(Paint.Style.FILL_AND_STROKE); BUT I Don't know how to use a seperate color for fill, and sepetate for stroke Dec 10 20:45:35 Why not put the border around the image in photoshop or something similar? Dec 10 20:45:54 It's not an "image", I'm drawing it as a custom view. Dec 10 20:45:58 gotcha Dec 10 20:46:10 eghdk: I said - two paints. not, one paint with fill_and_stroke Dec 10 20:46:13 sorry for the misunderstanding. Dec 10 20:46:35 gotcha Dec 10 20:46:37 canvas.drawPath(my_circle_path, paint_with_alpha_fill) Dec 10 20:46:53 canvas.drawPath(my_circle_path, paint_with_stroke) Dec 10 20:47:03 dunno, that's the dumb and simple way to do it I guess Dec 10 20:47:14 Okay, so do canvas.drawPath TWICE. Dec 10 20:47:18 I'll try that now. Dec 10 20:51:36 I am starting with android... please, can anyone help me? Im trying to print a json get, but my app is crashing. Dec 10 20:52:00 RxDx, stacktrace? Dec 10 20:52:23 kbs: I still need to mess around with it, but I think that will be the solution. Thanks very much. Dec 10 20:52:29 jonc, noob question.. whats that? I am lost with logs Dec 10 20:52:34 eghdk: sure, good luck. Dec 10 20:53:06 It should show up in the logs Dec 10 20:53:15 it should have line numbers and an exception Dec 10 20:53:35 look for FATAL in logcat Dec 10 20:53:57 jons, is it suppose to appear on Console tab or LogCat tab? Dec 10 20:54:10 in the logcat tab in ddms/monitor Dec 10 20:54:14 ^ Dec 10 20:56:09 ddms/monitor? didnt find Dec 10 20:57:07 hmm sorry must have confused you, are you using eclipse ? there should be a logcat tab or view Dec 10 20:57:43 12-10 18:56:43.228: E/Trace(22554): error opening trace file: No such file or directory (2) Dec 10 20:57:48 santebi, yes.. eclipse Dec 10 20:57:53 try to toggle it to show "errors" only Dec 10 20:58:41 http://pastebin.com/fbHWwqjt Dec 10 20:59:18 is this a stacktrace? Dec 10 20:59:54 no, this is a log dump :) there isn't anything that i can see that suggests a crash ... Dec 10 21:01:14 usually when a crash occurs you will see something like "FATAL EXCEPTION " Dec 10 21:01:46 santebi, ok.. ill try to read more in android documentation Dec 10 21:01:47 thanks :) Dec 10 21:02:20 Is it a good idea to make a MasterActivity that all of your activities inherit from, in order to implement stuff like navigation drawer and menus in one place? Dec 10 21:02:36 adb logcat | grep `adb shell ps | grep com.sample.stuff | cut -c10-15` Dec 10 21:02:44 ^ good stuff Dec 10 21:02:59 Is there a simpler,lighter,faster alternative to using the Android emulator for basic dev testing of a basic GUI app? I don't need hyper accurate simulation, I just want to make sure the basics work. Dec 10 21:03:30 kurt21: there is an x86 emulator, which is quite a bit faster than the arm emulators Dec 10 21:03:59 it's still basically the same VM approach, just native performance Dec 10 21:04:08 is there a tool that just runs a single android app and doesn't simulate an entire android device? Dec 10 21:04:42 uh OS is definitely required Dec 10 21:04:43 not that i know of... the tool would have to reimplement a ton of stuff Dec 10 21:05:09 http://stackoverflow.com/questions/20504004/attempting-to-transfer-my-android-app-to-gradle-having-some-issues-with-buildin Dec 10 21:05:18 any help is appreciated Dec 10 21:05:19 the arm emulators run quite nice on linux with gpu acceleration Dec 10 21:05:20 notifications, ibinder, etc etc... it would end up being an android reimplementation :) Dec 10 21:05:38 helo: awesome. is that a configuration option in the stock emulator or a completely separate product? Dec 10 21:07:30 kurt21: you set the CPU/ABI to 'Intel Atom (x86)' when you make a new Android Virtual Device. it looks like it is only available for some devices Dec 10 21:07:43 helo: awesome. thanks Dec 10 21:07:51 and only more recent API levels Dec 10 21:08:33 i think you also need to download an image from the sdk manager for the x86 flavors Dec 10 21:10:05 Hi Dec 10 21:10:50 is it possible to send Messages via a Handler between two worker threads? If yes, doe s someone have an example or maybe a better idea in general Dec 10 21:11:13 Kilian] sure , a basic scenario Dec 10 21:11:25 hey guys Dec 10 21:11:27 i need your help Dec 10 21:11:31 i'm freaking out.. Dec 10 21:11:32 SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable. Dec 10 21:11:42 i get this error in android studio over and over again.. Dec 10 21:11:48 i tried setting android_home Dec 10 21:12:00 tried to set in local.properties.. all not working Dec 10 21:13:05 pastebin local.properties Dec 10 21:13:26 and what do you get for 'echo $ANDROID_HOME' in terminal? Dec 10 21:13:38 dk.dir=D\:/android developing/sdk Dec 10 21:14:23 FabianH you can also try setting this in AS default settings for Projects Dec 10 21:14:30 change it to sdk.dir=D\:/android\ developing/sdk Dec 10 21:15:11 and was that ANDROID_HOME or from local.properties Dec 10 21:15:16 i was to stupid to copy -.- Dec 10 21:15:20 it was sdk.dir........ Dec 10 21:15:29 where to set this default settings? Dec 10 21:15:41 FabianH eclipse ? Dec 10 21:15:55 android studio Dec 10 21:15:57 not eclipse Dec 10 21:16:47 i'm freaking out Dec 10 21:17:43 in eclipse it's under Window->Preferences->Android, it might be the same in android studio as it's based on eclipse Dec 10 21:18:16 FabianH go to file -> close project Dec 10 21:18:17 AS isn't based on eclipse Dec 10 21:18:32 SimonVT ok grandson of eclipse :) Dec 10 21:18:41 FabianH then go to configure -> project defaults Dec 10 21:18:44 santebi, is this a stacktrace? http://pastebin.com/sVR5JMum Dec 10 21:18:47 santebi: not even that Dec 10 21:19:10 Project Structure - set it there Dec 10 21:19:14 how can java have a c++ baby? Dec 10 21:19:22 isn't IDEA a fork of eclipse ? Dec 10 21:19:30 lol Dec 10 21:19:35 where did you get that idea Dec 10 21:19:38 IDEA Dec 10 21:20:00 i defined the sdk path at platfrom settings sdk Dec 10 21:20:07 haha Dec 10 21:20:41 is there anyw ay to tell proguard to not optimize only a certain class? Dec 10 21:20:44 rather than the whole app Dec 10 21:20:55 -dontoptimize seems to work on the whole app Dec 10 21:21:21 RxDx: you are trying to access the internet / networking on the main thread, try to use an asynctask for network connections as thsese are blocking operations Dec 10 21:21:25 C:\Users\fabian>echo %ANDROID_HOME% D:\android developing\sdk Dec 10 21:21:36 santebi, thanks :) Dec 10 21:22:07 echo reads a value Dec 10 21:22:12 export sets the value Dec 10 21:23:06 export is for linux Dec 10 21:23:21 C:\Users\fabian>echo %ANDROID_HOME% Dec 10 21:23:24 gave the output Dec 10 21:23:26 D:\android developing\sdk Dec 10 21:24:04 i hate it -.- Dec 10 21:31:39 i give the one that helps me a reward Dec 10 21:31:52 a big cookie Dec 10 21:35:32 ok i give you 2 cookies Dec 10 21:35:38 last offer Dec 10 21:35:40 i'm poor :P Dec 10 21:36:07 how about a nice healthy apple Dec 10 21:36:12 ok Dec 10 21:36:17 only if you help me :P Dec 10 21:36:54 with what Dec 10 21:37:16 with android studio Dec 10 21:37:27 gives me android_home error Dec 10 21:37:54 take the space out of the file path, certain things don't like that Dec 10 21:37:59 cookies or apples? I am going home and cooking burgers and corn on the grill Dec 10 21:38:08 what you want Dec 10 21:38:13 if you help me you get a steak :D Dec 10 21:39:01 the spaces? Dec 10 21:39:01 It bothers me that there is still no nice way to close the keyboard Dec 10 21:39:12 daaay, then i have to change everything.. Dec 10 21:39:24 *daayuum Dec 10 21:39:26 fabianh google is your friend Dec 10 21:39:38 i googled like a stupid fish Dec 10 21:39:44 like for hours.. Dec 10 21:40:17 your google skills need improvement Dec 10 21:40:54 so you give me a solution Dec 10 21:40:57 reread the documentation a couple more times, google a couple more times Dec 10 21:41:01 and you get a medal Dec 10 21:41:14 a gold medal Dec 10 21:41:17 so just show me Dec 10 21:41:28 FabianH this is an intelligence test :) Dec 10 21:41:31 are you running studio from a shortcut ? Dec 10 21:41:52 maybe developing isn't for you Dec 10 21:42:16 oh, wow, that really hurt Dec 10 21:42:21 you want a diss battle now? Dec 10 21:42:23 or smth Dec 10 21:42:24 ok Dec 10 21:42:29 but private please :) Dec 10 21:42:41 FabianH: you might be setting the environment locally (only for the terminal session), trying setting the variables in os settings Dec 10 21:42:49 not trying to be hurtful... Dec 10 21:42:52 i did Dec 10 21:43:02 i did it with ennvironment variables.. Dec 10 21:43:14 under windows settings? Dec 10 21:43:19 yes Dec 10 21:44:10 and another dummy question, have you tried to run the sdk manager ? Dec 10 21:44:20 yes i did Dec 10 21:44:25 i tried everything.. Dec 10 21:44:26 local.properties overrides the ANDROID_HOME stuff so doesn't really matter Dec 10 21:44:34 and you installed the basic sdk tools ? Dec 10 21:44:40 yes Dec 10 21:44:49 i updated them too Dec 10 21:44:56 you still have a space in your sdk.dir path Dec 10 21:45:13 my path has a space Dec 10 21:45:14 if it's an os wide env, can you try running an admin terminal and try to run studio from there Dec 10 21:45:15 sdk.dir is in local.properties correct? Dec 10 21:45:25 yes Dec 10 21:45:27 use \ to escape the space Dec 10 21:45:36 delete the file and have android studio remake it Dec 10 21:45:42 Im using this selection http://pastebin.kde.org/pcscszudh/m4lbzq with cursor to get contacts list, but how can I exclude contacts which are on sim card(s)? Dec 10 21:45:45 like i said earlier - sdk.dir=D\:/android\ developing/sdk Dec 10 21:45:47 tried that too :( Dec 10 21:46:03 ok i'll try that Dec 10 21:46:40 why not start over from beginning following docs very closely Dec 10 21:47:38 f2prateek Dec 10 21:47:43 i think.. Dec 10 21:47:46 it may.. Dec 10 21:47:53 Could not find property 'VERSION_NAME' on project ':datetimepicker-library'. Dec 10 21:47:57 if you visit my website it will give you a cookie Dec 10 21:48:02 i really love that shit -.- Dec 10 21:48:15 Fabian uninstall android studio and use eclipse Dec 10 21:48:22 i'm using eclipse.. Dec 10 21:48:47 i'm currently working with eclipse.. but i want to try android studio .. Dec 10 21:48:56 don't Dec 10 21:49:22 Could not find property 'VERSION_NAME' Dec 10 21:49:22 wait for it to be out of preview Dec 10 21:49:32 if you help me fix that, you get all cookies Dec 10 21:49:56 want us to write the code for you as well? Dec 10 21:50:14 if you want to Dec 10 21:50:15 yes and compile and sell it too Dec 10 21:51:04 you are so nice! Dec 10 21:51:06 thank you :) Dec 10 21:51:16 compiling would be nice Dec 10 21:51:19 -.- Dec 10 21:53:49 http://www.ahrens.de/wp-content/uploads/2012/05/Cookie.jpg Dec 10 21:53:56 for those wo helped me :) Dec 10 21:54:03 alt + f4 for private message, and i will help Dec 10 21:55:01 oh wow Dec 10 21:55:14 better start your career as comedian Dec 10 21:56:12 I made a entry to my strings.xml and would like to access it like android:entries="@string/entries", I have to reference it somehow in the main.xml? Dec 10 22:00:23 android:entries="@string/entries"> Dec 10 22:00:26 or that's notvalid? Dec 10 22:02:23 Hello, I am trying to set a progress bar visible in a fragment (using a Handler) but it stay invisible), could someone help me please ? :) http://pastebin.com/g7p31Jpp Dec 10 22:03:23 where are you chanign the progress abrs visibility? Dec 10 22:03:32 just saw it nvm Dec 10 22:04:09 line 11 and 17 are referencing different id's Dec 10 22:04:36 yeah I've just changed it, deleting a few line in my pastebin that's all Dec 10 22:05:48 I arrive well in my handlemessage function, there is a Log.v inside which tells me that Dec 10 22:07:24 holy crap. textual 4.0 is out Dec 10 22:11:16 g00s any new interestring changes? Dec 10 22:12:27 Anyone may help me regarding my starting problem? Dec 10 22:14:07 Schalla: did you try the code you posted? Dec 10 22:14:16 Sure I did, else I would not ask. Dec 10 22:14:30 That would be pretty unpolite. Dec 10 22:15:01 you asked "or that's notvalid?" which implies that you didn't try it. Anyway, could you post the relevant bit(s) of your strings.xml and your main.xml? Dec 10 22:15:13 http://pastebin.com/ Dec 10 22:15:47 http://pastebin.com/4jJ5gwKb Dec 10 22:15:47 Thanks. Dec 10 22:16:02 evanc: Sometimes things are valid but there is a problem with the setup e.g. Dec 10 22:16:21 So I came up with the question if it's valid Dec 10 22:16:44 your pastebin has a backslash Dec 10 22:16:55 @string\entries is most certainly not valid Dec 10 22:17:24 oh sorry, that's a typo. Also tried with / Dec 10 22:17:41 IntelliJ marks as symbol not found, compiler also fails. Dec 10 22:20:08 oh, duh: @array/entries Dec 10 22:21:02 Oh. I thought the string makes a reference to the strings.xml and not to the type :/ Thanks evanc. Dec 10 22:24:58 hi Dec 10 22:26:01 how i grab graph.facebook.com i have error json Dec 10 22:28:08 Guys, how to solve this error ? I always do something wrong http://pastebin.com/8DmGVrAw , thanks Dec 10 22:28:15 i use http://pastebin.com/WJPhjR54 Dec 10 22:28:19 i have json error Dec 10 22:29:08 That has no JSON parsing code at all. Dec 10 22:29:55 I would debug the app and look at the actual value of result Dec 10 22:30:16 if it's invalid, you should be able to see what is wrong with it Dec 10 22:30:27 JesusFreke, you speak at me ? Dec 10 22:30:28 and if it's not invalid, then you know your json parsing logic is wrong Dec 10 22:30:28 after json ? Dec 10 22:30:32 yes. Dec 10 22:30:45 not json error sorry Dec 10 22:30:50 {"error":{"message":"An access token is required to request this resource.","type":"OAuthException","code":104}} Dec 10 22:31:13 sounds like you need to authenticate first Dec 10 22:31:32 If it's an official facebook api, then consult facebook's documentation Dec 10 22:31:41 otherwise, you're on your own to figure it out :) Dec 10 22:32:03 because user enter name facebook.com/name Dec 10 22:32:20 i get name and grab ID Dec 10 22:32:23 do you have an oauth token? Dec 10 22:32:27 for go on facebook page Dec 10 22:33:15 if you are not log on facebook work .. Dec 10 22:33:22 https://graph.facebook.com/name Dec 10 22:33:39 test https://graph.facebook.com/facebook Dec 10 22:35:04 kript: try using a GET instead of a POST Dec 10 22:35:40 ^^ Dec 10 22:41:42 how would view.getLayoutParams() return null if view is in a listview? Dec 10 22:41:46 thx Dec 10 22:42:17 is there a good solution to handle code logic for unattached fragments or do I just have to sprinkle my entire codebase with checks that the fragment is still attached before doing anything? Dec 10 22:42:25 hi! The preferred class to represent Dates in android is Calendar? JodaTime? DateTime? Dec 10 22:44:17 charco I use DateTime from jodatime atm Dec 10 22:44:42 Ok, thanks theblang :) Dec 10 22:46:01 If I want to create a "Master" Activity, that all my activities will inherit from, and that will set up stuff like my Navigation Drawer, what is the proper way to do it? Dec 10 22:48:18 theblang: public class SomeOtherActivity extends MasterActivity { /* this is for you to fill in */ } Dec 10 22:48:40 evanc right, but the trouble I am having is how to setup my layouts Dec 10 22:49:28 Does anyone know of good android tutorial videos? Dec 10 22:51:15 charco: youtube ? Dec 10 22:53:39 Hey guys, I created a custom text view, it draws a purple square, and now I want to use it in my xml. I put my text in it, but my text shows up beneath the purple square. Ideas? Dec 10 22:55:04 eghdk: I assume you overriding onDraw and calling super.onDraw()? Dec 10 22:55:24 if so.. draw your purple box before calling super.onDraw().. Dec 10 22:55:57 oh, wait. which meaning of "beneath" did you mean there? Dec 10 22:56:13 vertically beneath, or covered by? Dec 10 22:58:31 The box is covering the text Dec 10 22:58:51 I can see some letters peaking out from under the box. Dec 10 22:59:08 under the box = below the box. Dec 10 23:01:04 yeah, then call super.onDraw after drawing the box, assuming that's how you're doing it. Dec 10 23:01:27 moved super.onDraw down after drawing on canvas, as per your suggestion and it works now. Dec 10 23:01:31 Thanks very much. Dec 10 23:08:23 JesusFreke: Any idea why my text wont center? Dec 10 23:09:00 Basically, I have a square, and my text consists of a single Letter. Let's say "J", but it's not being centered… Dec 10 23:09:01 eghdk: nope :) Dec 10 23:13:28 wow, installing textual 4 was a mistake :( Dec 10 23:14:59 With Parse, does query.include('whatever') make the query then require 'whatever' to not be null? Dec 10 23:22:14 eghdk: the text isnt centered in the textview? Dec 10 23:34:45 why running Dec 10 23:34:46 ./arm-linux-androideabi-nm -an /Volumes/android/SOURCES/out/target/product/generic/system/bin/app_process Dec 10 23:34:56 i get no symbols Dec 10 23:34:57 ? Dec 10 23:35:43 lol Dec 10 23:36:49 Excuse my ignorance but why does the sdk emulator have to emulate hardware that's running under a vm? (it's soo slow) Surely it's only really necessary for testing native apps? Dec 10 23:41:37 hawkal: hardware running under a vm? Dec 10 23:44:30 desmin88: Yes I mean if the virtual machine is a point of abstraction from the device hardware then why emulate it (e.g arm/x86 atom emulator)? Why not just provide a vm that can run on host machines x86/x86_64? Dec 10 23:46:07 umm Dec 10 23:46:11 that made little sense Dec 10 23:47:01 <|0xD34D|> hawkal: there are x86 images Dec 10 23:47:14 <|0xD34D|> not for 4.4 yet but lower APIs have them Dec 10 23:47:39 Is it possible to use them for testing? Dec 10 23:47:41 |0xD34D|, i was initially thinking along those lines but he mentioned x86 images. Dec 10 23:47:52 <|0xD34D|> I use them when possible Dec 10 23:47:54 which had me confused Dec 10 23:47:57 <|0xD34D|> and if need be Dec 10 23:48:16 Technically, ARM is emulated, and the x86 images are 'virtualized' Dec 10 23:48:26 ok Dec 10 23:48:30 |0xD34D|, also api 19 has the x86 images Dec 10 23:48:44 <|0xD34D|> desmin88: oh they have them up now? Dec 10 23:48:51 yup Dec 10 23:49:14 <|0xD34D|> luckily I have a device running 4.4 but I might as well download them now just to have Dec 10 23:49:49 or use genymotion Dec 10 23:50:49 i still dont know what hawkal means lol Dec 10 23:50:58 <|0xD34D|> don't see 4.4 in their list of images in the cloud Dec 10 23:51:12 'the cloud' Dec 10 23:51:16 <|0xD34D|> at least not via their gui front end Dec 10 23:51:26 http://gyazo.com/4003db43c961a8dd63aee1c1c1e79bdb Dec 10 23:51:32 <|0xD34D|> yes "Virtual device available from the Genymotion Cloud" Dec 10 23:51:39 oh Dec 10 23:53:19 Hey All.. I have pulled the AOSP code (tag: android-4.4_r1.2) and am compiling file via make. I want to get everything loaded in Eclipse (Indigo) so I copied the .classpath file from /development/ide/eclipse to the root of my source folder and created a new java project based on my source path. Dec 10 23:53:52 All the projects seemed to load fine, however I'm getting a lot of build errors (http://pastebin.com/0zLBtUGh) related to missing references Dec 10 23:53:57 <|0xD34D|> 4.4.1_r1 or gtfo :P Dec 10 23:53:59 <|0xD34D|> j/k Dec 10 23:54:10 this is my .classpath - http://pastebin.com/9YmDWrFZ Dec 10 23:54:23 can anyone help me out? Dec 10 23:55:00 |0xD34D|: haha Dec 10 23:55:40 if I modify my build path I can find some of the missing refs in 'out/target/common/obj/JAVA_LIBRARIES/' Dec 10 23:55:57 but shouldn't it build fine using the provided .classpath ? Dec 10 23:56:05 <|0xD34D|> I could never get that to work right when I tried it Dec 10 23:56:29 Thanks desmin88 and |0xD34D| Dec 10 23:56:36 I'd love to be able to debug in an IDE Dec 10 23:56:43 <|0xD34D|> I use intelliJ to import AOSP projects to make use of some of the features it offers and to debug but never to build Dec 10 23:57:07 |0xD34D|: whoa.... wait Dec 10 23:57:12 |0xD34D|: I can use IDEA? Dec 10 23:57:16 <|0xD34D|> I do Dec 10 23:57:17 and debug? Dec 10 23:57:21 oh snap Dec 10 23:57:22 <|0xD34D|> sure Dec 10 23:57:25 <3 IDEA Dec 10 23:57:25 <|0xD34D|> that's what I use Dec 10 23:57:29 don't like Eclipse Dec 10 23:57:41 <|0xD34D|> I just use import project and import what I want to work on Dec 10 23:57:46 <|0xD34D|> for example, SystemUI Dec 10 23:57:53 <|0xD34D|> I even imported all of frameworks/base Dec 10 23:58:00 interesting Dec 10 23:58:03 <|0xD34D|> and I can attach to system_process to debug services Dec 10 23:58:22 <|0xD34D|> you can set breakpoints and inspect variables and all that jazz Dec 10 23:58:35 <|0xD34D|> it sure beats spamming logcat Dec 10 23:58:45 you gonna be here for a few if I give this a go? Dec 10 23:59:01 <|0xD34D|> I'm in and out but just ping me Dec 10 23:59:20 <|0xD34D|> I use ZNC so I'm always on even when away from the screen Dec 10 23:59:59 ok cool. Installing IDEA on my VM right now Dec 11 00:01:15 I just noticed there's an initellij folder in development/ide Dec 11 00:01:22 worth using anything in there? Dec 11 00:04:37 <|0xD34D|> I'm inspecting it now as a matter of fact Dec 11 00:04:56 <|0xD34D|> setting up a shadow of my build directory so I don't screw anything up Dec 11 00:07:06 |0xD34D|: http://stackoverflow.com/questions/16582112/aosp-and-intellij-idea Dec 11 00:07:22 wish they had a readme or something in that folder Dec 11 00:07:35 <|0xD34D|> I don't have ideagen.sh Dec 11 00:07:58 <|0xD34D|> *idegen.sh Dec 11 00:10:24 |0xD34D|: there's a similar script in tools Dec 11 00:12:06 |0xD34D|: development/tools/idegen Dec 11 00:12:30 <|0xD34D|> "Couldn't find idegen.jar. Please run make first." Dec 11 00:12:38 <|0xD34D|> even though I've recently built the damn ROM Dec 11 00:12:44 lol Dec 11 00:14:31 <|0xD34D|> but there is an Android.mk in there so I made it Dec 11 00:14:56 let me know if you figure anything out Dec 11 00:15:25 <|0xD34D|> will do, it finished so time to see start up idea again and set it up Dec 11 00:16:44 |0xD34D|: how are you running idegen.sh? iirc, you need to run it from the root of the android build tree Dec 11 00:17:00 <|0xD34D|> correct Dec 11 00:17:11 <|0xD34D|> ./development/tools/idegen/idegen.sh Dec 11 00:17:23 <|0xD34D|> from the root of AOSP or whatever ROM I am using :P Dec 11 00:17:46 <|0xD34D|> it created the android.ipr project file Dec 11 00:18:12 <|0xD34D|> and intellij is currently loading and indexing Dec 11 00:18:21 ah, yeah. sonuds like you have it working Dec 11 00:18:29 but yeah, that first index run... takes a while :) Dec 11 00:18:35 <|0xD34D|> I can imagine Dec 11 00:18:55 I usually try to strip down the set of projects it includes in the project Dec 11 00:19:13 <|0xD34D|> normally I just import the projects I want to work on Dec 11 00:19:26 <|0xD34D|> a system app most of the time or possibly frameworks/base Dec 11 00:19:36 Yeah, it's just a pain figuring out the set of projects you need, to be able to resolve all the dependencies Dec 11 00:19:59 <|0xD34D|> I usually don't worry about dependencies since I build from the command line Dec 11 00:20:10 <|0xD34D|> it's more to make use of the IDE features and debugging Dec 11 00:20:14 But but but, the red squigglies! :) Dec 11 00:20:32 <|0xD34D|> I work on a hercules monochrome monitor Dec 11 00:20:43 The grey squigglies! :) Dec 11 00:20:48 or white, I guess. Dec 11 00:20:49 <|0xD34D|> amber squigglies! Dec 11 00:21:01 <|0xD34D|> amber everything! Dec 11 00:22:04 <|0xD34D|> ~45% indexed \o/ Dec 11 00:22:54 Does anyone know if google has open sourced the libraries it uses for licensing dialogs in their apps? Dec 11 00:24:11 hwrd|work: you mean http://developer.android.com/google/play/licensing/index.html ? Dec 11 00:25:54 JesusFreke: Nah I mean like this: http://cl.ly/image/0G051N321i0A Dec 11 00:26:04 ahh Dec 11 00:26:33 I would guess you can probably find the source somewhere in AOSP, but not positive. Dec 11 00:26:57 |0xD34D|: so it's still going? Dec 11 00:27:03 JesusFreke: Yeah that's a good idea I'll dig around in there Dec 11 00:27:26 <|0xD34D|> BrutusBoots: it just finished up Dec 11 00:28:26 |0xD34D|: that'd be sweet if it loaded up Dec 11 00:28:32 Hello, What is the non-support library version of a FragmentActivity? Dec 11 00:30:48 Activity? Dec 11 00:31:09 zzxx: FragmentActivity Dec 11 00:31:50 oh wait, duh; f2prateek is correct Dec 11 00:32:01 evanc: Android Studio does not seem to recognise it unless... ah yes. ok Dec 11 00:32:10 i figgured that might be the case Dec 11 00:32:15 but was not sure Dec 11 00:32:24 Im still new and learning. thanks Dec 11 00:32:37 <|0xD34D|> BrutusBoots: it seems to be working, no "red squigglies" on hidden API classes and methods Dec 11 00:32:57 <|0xD34D|> even for stuff I added to the framework so it seems good to go thus far Dec 11 00:33:04 |0xD34D|: awesome Dec 11 00:33:16 |0xD34D|: trying it now Dec 11 00:35:22 so once idegen is done, start idea and import project? Dec 11 00:36:07 Soooo, push notifications. I was reading this http://developer.android.com/google/gcm/gs.html, but then when I opened the sdk manager it said the cloud stuff was deprecated Dec 11 00:36:18 <|0xD34D|> BrutusBoots: just choose open project Dec 11 00:36:27 <|0xD34D|> it creates a project file in the root named android.ipr Dec 11 00:36:30 gotcha Dec 11 00:37:18 Hey guys, are there any good android testing tutorials? Apart from the docs of course Dec 11 00:37:24 |0xD34D|: idegen is putting a beating on my VM lol Dec 11 00:37:49 <|0xD34D|> you are using a VM, what do you expect :P Dec 11 00:38:10 <|0xD34D|> mine took a little over 12 seconds Dec 11 00:38:12 <|0xD34D|> Traversed tree: 12424ms Dec 11 00:38:40 |0xD34D|: this laptop is an i7 w/16GB of RAM.. I should just dual boot Dec 11 00:39:02 Traversed tree: 221319ms Dec 11 00:39:04 lol Dec 11 00:39:31 <|0xD34D|> just wait until you open it in IDEA and it starts indexing Dec 11 00:39:50 Where are the current docs for google's push notification stuff? Dec 11 00:40:14 http://developer.android.com/google/gcm/index.html Dec 11 00:40:49 JesusFreke: I thought it was moved into google play services. Is that still current? Dec 11 00:41:21 Eviltechie: that is current, afaik. It used to be c2dm when it was in beta, but then was changed to gcm when it was officially released Dec 11 00:42:23 JesusFreke: The sdk manager says "[Deprecated] Google Cloud Messaging for Android Library" Dec 11 00:42:33 |0xD34D|: shoot. I didn't increase idea's default ram settings... wonder when this will bomb Dec 11 00:43:03 Hey guys, are there any good android testing tutorials? Apart from the docs of course Dec 11 00:43:23 there's some great vids on junit, CocoStorm , have you seen those? Dec 11 00:43:26 <|0xD34D|> BrutusBoots: after an hour Dec 11 00:43:29 Eviltechie: http://developer.android.com/google/gcm/gs.html mentions that you need the google play services SDK Dec 11 00:43:41 bankai_, they are basically the same thing? Dec 11 00:43:59 so it sounds like it's a part of the play services stuff, and the GCM-only jar is deprecated Dec 11 00:44:09 but that's still the correct documentation :) Dec 11 00:44:24 and it's still called, GCM, etc. Dec 11 00:44:42 I swear I just saw something that said download the gcm thing Dec 11 00:45:06 CocoStorm: http://www.youtube.com/watch?v=wEhu57pih5w Dec 11 00:45:27 and espresso http://www.youtube.com/watch?v=T7ugmCuNxDU Dec 11 00:45:44 |0xD34D|: lol Dec 11 00:46:03 * Eviltechie shrugs Dec 11 00:47:19 bankai_, thanks Dec 11 00:47:53 hello I have a simple question: is it possible to open another app from your own app but then manipulate the other app e.g. simulating clicking? Dec 11 00:48:07 also, if you're interested, there's a good vid on (square)dagger dep injection Dec 11 00:49:14 <_Auron_> mea: unless you have root, which I don't know how much that'd help if at all, or the other app has receivers to take external app input, no. Dec 11 00:49:48 i wonder if you can manipulate espresso to do that :S i doubt it, but it'd be an interesting experiment Dec 11 00:50:11 _Auron_: I have a 1st gen Nexus 7 so i could theoretically get root access ? Dec 11 00:50:36 I don't intend to have this be an externally available app - its more of an experiment yeah Dec 11 00:51:04 Hi, I have a noob question here :P Dec 11 00:51:12 mea: I believe you can send keyboard/mouse input via adb (even without root) Dec 11 00:51:48 I have an application, that has 2 activities, I don't know why, but its textViews and EditTexts are saved upon configuration changes (screen rotate). And I have another app which doesn't save the status of textViews and EditTexts Dec 11 00:52:09 I have checked the manifest and the views and I can't find what's the difference between the apps :/ Dec 11 00:52:22 mea: but you can't access adb from an application on-device of course, that would only be from a script or something running on a machine that the phone is connected to Dec 11 00:52:23 (I don't do any saving) Dec 11 00:52:50 JesusFreke: http://stackoverflow.com/questions/4386449/send-touch-event-from-adb-to-a-device this is probably what I want, yeah? Dec 11 00:52:59 Any ideas? Dec 11 00:53:03 mea: sounds right :) Dec 11 00:53:07 espresso does this, mea Dec 11 00:53:26 |0xD34D|: you were't kidding. this index is going to take a while Dec 11 00:53:30 also the uiautomator Dec 11 00:53:59 |0xD34D|: so I loaded the userdebug build of the rom on my device. What's the procedure to attach the debugger in idea? Dec 11 00:54:26 <_Auron_> ah adb works too Dec 11 00:55:04 adb seems simplest Dec 11 00:55:18 just gotta find the right coordinates and write a bash script Dec 11 00:55:51 <|0xD34D|> BrutusBoots: in the upper right there should be an icon that looks like a device with a bug in the bottom left corner of it Dec 11 00:56:07 haha yeah specifying something by id/description is pretty hard, hardcoded touch locations is 'much' easier -_-# Dec 11 00:56:08 <|0xD34D|> that lets you attach the debugger to an android process Dec 11 00:59:58 |0xD34D|: ok. So you didn't have to create and debug configurations or anything? Do you have any android tools installed? Dec 11 01:00:24 <|0xD34D|> I never create any configurations, just attach and go Dec 11 01:02:44 <|0xD34D|> BrutusBoots: http://i.minus.com/ibwiWAT4KkpIP5.png Dec 11 01:03:31 <|0xD34D|> I do seem to need to have an android SDK associated with the project in order to attach the debugger Dec 11 01:03:46 I have an application, that has 2 activities, I don't know why, but its textViews and EditTexts are saved upon configuration changes (screen rotate). And I have another app which doesn't save the status of textViews and EditTexts Dec 11 01:03:55 <|0xD34D|> I went with API 19 from the sdk and from there I can attach to my process just fine Dec 11 01:06:43 |0xD34D|: I don't have the debug icon.. you sure you didn't install any android tools previously on your copy of idea? Dec 11 01:07:02 <|0xD34D|> yeah I already had that stuff setup, sorry Dec 11 01:07:06 <|0xD34D|> I use it for app dev too Dec 11 01:07:22 |0xD34D|: oh, you know what... maybe mine will show up once it finishes indexing Dec 11 01:07:42 I'll probably just have to point my ide at the sdk Dec 11 01:08:53 <|0xD34D|> "Create a JDK configuration named "1.6 (No Libraries)" by adding a new JDK like you normally would and then removing all of the jar entries under the "Classpath" tab. This will ensure that you only get access to Android's core libraries and not those from your desktop VM." Dec 11 01:09:03 ok Dec 11 01:09:13 <|0xD34D|> that's from the README in idegen Dec 11 01:10:59 Hello world, I am a noob and am reading about buttons and aligning. Dec 11 01:11:34 I am in my fragment_main.xml and inside of a